Directories
¶
| Path | Synopsis |
|---|---|
|
cmd
|
|
|
ckv
command
|
|
|
internal
|
|
|
build
Package build is the indexer orchestrator: discover → parse → chunk → embed → store.
|
Package build is the indexer orchestrator: discover → parse → chunk → embed → store. |
|
chunk
Package chunk turns ([]parse.SymbolSpan, source) into ([]types.Chunk) — the records the embedder + vector store actually persist.
|
Package chunk turns ([]parse.SymbolSpan, source) into ([]types.Chunk) — the records the embedder + vector store actually persist. |
|
ckgalign
Package ckgalign builds an in-memory index from a CKG SQLite store (graph.db) and resolves each CKV chunk's CKGNodeID by matching (file_path, start_line) — exact start-line preferred, then smallest containing line range.
|
Package ckgalign builds an in-memory index from a CKG SQLite store (graph.db) and resolves each CKV chunk's CKGNodeID by matching (file_path, start_line) — exact start-line preferred, then smallest containing line range. |
|
convention
Package convention computes per-package AST statistics that describe the package's prevailing idioms — error handling style, logging library, naming patterns, concurrency primitives.
|
Package convention computes per-package AST statistics that describe the package's prevailing idioms — error handling style, logging library, naming patterns, concurrency primitives. |
|
discover
Package discover walks --src and yields the source files CKV should index.
|
Package discover walks --src and yields the source files CKV should index. |
|
embed/bgeonnx
Package bgeonnx is the production Embedder backend running ONNX models locally via CGO.
|
Package bgeonnx is the production Embedder backend running ONNX models locally via CGO. |
|
embed/cache
Package cache wraps a types.Embedder with a hot-path LRU cache so repeated embed calls on the same text return without paying the model cost.
|
Package cache wraps a types.Embedder with a hot-path LRU cache so repeated embed calls on the same text return without paying the model cost. |
|
embed/convert
Package convert wraps external model conversion tools (optimum-cli, coremltools) as subprocess calls.
|
Package convert wraps external model conversion tools (optimum-cli, coremltools) as subprocess calls. |
|
embed/coreml
Package coreml provides an Embedder that runs models directly via Apple's CoreML framework, bypassing ONNX Runtime.
|
Package coreml provides an Embedder that runs models directly via Apple's CoreML framework, bypassing ONNX Runtime. |
|
embed/mock
Package mock is a deterministic, dependency-free Embedder used for integration tests, the dev-loop, and CI before the real ONNX adapter lands.
|
Package mock is a deterministic, dependency-free Embedder used for integration tests, the dev-loop, and CI before the real ONNX adapter lands. |
|
embed/model
Package model manages embedding model files: download, cache directory resolution, and format conversion.
|
Package model manages embedding model files: download, cache directory resolution, and format conversion. |
|
embed/registry
Package registry holds the model configuration catalog.
|
Package registry holds the model configuration catalog. |
|
eval
Package eval scores ckv against a known-query fixture.
|
Package eval scores ckv against a known-query fixture. |
|
eval/prregress
Package prregress implements PR-based regression evaluation: given a merged PR, check out the world *before* it landed, build a ckv index over that snapshot, hand the PR's Background to an agent, and compare the agent's plan against what the PR actually did.
|
Package prregress implements PR-based regression evaluation: given a merged PR, check out the world *before* it landed, build a ckv index over that snapshot, hand the PR's Background to an agent, and compare the agent's plan against what the PR actually did. |
|
filter
Package filter implements the Sensitive Filter engine.
|
Package filter implements the Sensitive Filter engine. |
|
filterlist
Package filterlist implements the --files-from JSON include/exclude allowlist for ckv build.
|
Package filterlist implements the --files-from JSON include/exclude allowlist for ckv build. |
|
footprint
Package footprint records structured events about every CKV operation — build, query, MCP tool call — to two sinks:
|
Package footprint records structured events about every CKV operation — build, query, MCP tool call — to two sinks: |
|
freshness
Package freshness compares an index's manifest against the live git HEAD of its source tree.
|
Package freshness compares an index's manifest against the live git HEAD of its source tree. |
|
glossary
Package glossary auto-extracts korean → english keyword mappings from markdown documents (typically a project's .claude/docs/ tree) and emits the AliasMap YAML that `ckv query --alias` consumes.
|
Package glossary auto-extracts korean → english keyword mappings from markdown documents (typically a project's .claude/docs/ tree) and emits the AliasMap YAML that `ckv query --alias` consumes. |
|
invariant
Package invariant extracts policy-bearing statements from Go source files in a three-tier confidence ladder:
|
Package invariant extracts policy-bearing statements from Go source files in a three-tier confidence ladder: |
|
manifest
Package manifest is the on-disk index metadata.
|
Package manifest is the on-disk index metadata. |
|
parse
Package parse extracts symbol-level spans (functions, methods, types) from source files so the chunker can build embeddable chunks.
|
Package parse extracts symbol-level spans (functions, methods, types) from source files so the chunker can build embeddable chunks. |
|
parse/fuzzcheck
Package fuzzcheck provides shared invariant checks for parser fuzz tests.
|
Package fuzzcheck provides shared invariant checks for parser fuzz tests. |
|
parse/golang
Package golang parses Go source via the stdlib go/parser+go/ast.
|
Package golang parses Go source via the stdlib go/parser+go/ast. |
|
parse/javascript
Package javascript parses .js / .jsx / .mjs / .cjs source files.
|
Package javascript parses .js / .jsx / .mjs / .cjs source files. |
|
parse/markdown
Package markdown parses *.md / *.markdown files into heading-level SymbolSpans so docs/ADR content becomes searchable alongside source code.
|
Package markdown parses *.md / *.markdown files into heading-level SymbolSpans so docs/ADR content becomes searchable alongside source code. |
|
parse/prdoc
Package prdoc parses PR descriptions and commit messages into chunks for the PR corpus index.
|
Package prdoc parses PR descriptions and commit messages into chunks for the PR corpus index. |
|
parse/solidity
Package solidity parses .sol via the vendored tree-sitter-solidity grammar (see internal/parse/solidity/binding).
|
Package solidity parses .sol via the vendored tree-sitter-solidity grammar (see internal/parse/solidity/binding). |
|
parse/solidity/binding
Package binding wraps tree-sitter-solidity (vendored from github.com/JoranHonig/tree-sitter-solidity v1.2.13, MIT-licensed — see ./LICENSE) into a *sitter.Language for go-tree-sitter.
|
Package binding wraps tree-sitter-solidity (vendored from github.com/JoranHonig/tree-sitter-solidity v1.2.13, MIT-licensed — see ./LICENSE) into a *sitter.Language for go-tree-sitter. |
|
parse/typescript
Package typescript parses .ts and .tsx source via tree-sitter.
|
Package typescript parses .ts and .tsx source via tree-sitter. |
|
policy
Package policy loads project-specific category + ModificationGuidance rules from a YAML file and applies them to chunks during build/reindex.
|
Package policy loads project-specific category + ModificationGuidance rules from a YAML file and applies them to chunks during build/reindex. |
|
projectcfg
Package projectcfg loads <src>/ckv.yaml — the per-project hook for customizing how CKV indexes a repository.
|
Package projectcfg loads <src>/ckv.yaml — the per-project hook for customizing how CKV indexes a repository. |
|
query
Package query is the read path: open an index built by internal/build and serve semantic_search.
|
Package query is the read path: open an index built by internal/build and serve semantic_search. |
|
query/bm25
Package bm25 provides candidate-set BM25 rerank for CKV's query path.
|
Package bm25 provides candidate-set BM25 rerank for CKV's query path. |
|
store/sqlitevec
Package sqlitevec is the default CKV VectorStore implementation — SQLite + the sqlite-vec extension's vec0 virtual table.
|
Package sqlitevec is the default CKV VectorStore implementation — SQLite + the sqlite-vec extension's vec0 virtual table. |
|
pkg
|
|
|
ckv
Package ckv is the stable, in-process Go API to a ckv vector index.
|
Package ckv is the stable, in-process Go API to a ckv vector index. |
|
embed/ollama
Package ollama implements the Embedder interface via Ollama's HTTP API.
|
Package ollama implements the Embedder interface via Ollama's HTTP API. |
|
mcp
Package mcp wraps the CKV read-only surface as an MCP server.
|
Package mcp wraps the CKV read-only surface as an MCP server. |
|
types
Package types holds the cross-package data contracts: Chunk, Hit, Filter, the Embedder and VectorStore interfaces.
|
Package types holds the cross-package data contracts: Chunk, Hit, Filter, the Embedder and VectorStore interfaces. |
Click to show internal directories.
Click to hide internal directories.