internal/

directory
v0.0.0-...-b8e9622 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 30, 2026 License: AGPL-3.0

Directories

Path Synopsis
Package build is the indexer orchestrator: discover → parse → chunk → embed → store.
Package build is the indexer orchestrator: discover → parse → chunk → embed → store.
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.
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.
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.
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.
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.
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.
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.
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.
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.
registry
Package registry holds the model configuration catalog.
Package registry holds the model configuration catalog.
Package eval scores ckv against a known-query fixture.
Package eval scores ckv against a known-query fixture.
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.
Package filter implements the Sensitive Filter engine.
Package filter implements the Sensitive Filter engine.
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.
Package flowcorpus parses a curated flow corpus (corpus.jsonl) into CKV chunks.
Package flowcorpus parses a curated flow corpus (corpus.jsonl) into CKV chunks.
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:
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.
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.
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:
Package manifest is the on-disk index metadata.
Package manifest is the on-disk index metadata.
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.
fuzzcheck
Package fuzzcheck provides shared invariant checks for parser fuzz tests.
Package fuzzcheck provides shared invariant checks for parser fuzz tests.
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.
javascript
Package javascript parses .js / .jsx / .mjs / .cjs source files.
Package javascript parses .js / .jsx / .mjs / .cjs source files.
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.
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.
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).
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.
typescript
Package typescript parses .ts and .tsx source via tree-sitter.
Package typescript parses .ts and .tsx source via tree-sitter.
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.
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.
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.
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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL