internal/

directory
v0.14.0 Latest Latest
Warning

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

Go to latest
Published: Aug 21, 2026 License: MIT

Directories

Path Synopsis
adapters
inbound/http
@index Compile-time MCP dependency checks owned by the server runtime.
@index Compile-time MCP dependency checks owned by the server runtime.
inbound/mcp
@index In-memory TTL cache for repeat MCP read-tool responses with background eviction.
@index In-memory TTL cache for repeat MCP read-tool responses with background eviction.
inbound/webhook
@index HTTP webhook intake for repository sync dispatch.
@index HTTP webhook intake for repository sync dispatch.
inbound/wikihttp
@index HTTP handlers for the ccg-server Wiki UI and its viewer-oriented JSON API.
@index HTTP handlers for the ccg-server Wiki UI and its viewer-oriented JSON API.
outbound/contentfiles
@index Symlink-safe atomic filesystem access rooted beneath one generated-content directory.
@index Symlink-safe atomic filesystem access rooted beneath one generated-content directory.
outbound/gitrepo
@index Authentication helpers for webhook-driven git access.
@index Authentication helpers for webhook-driven git access.
outbound/graphgorm
@index GORM persistence adapter for git-diff change-risk analysis.
@index GORM persistence adapter for git-diff change-risk analysis.
outbound/reposyncobs
@index OpenTelemetry and trace-log adapter for repository sync queue lifecycles.
@index OpenTelemetry and trace-log adapter for repository sync queue lifecycles.
outbound/searchsql
@index Shared search backend interface and errors for SQLite FTS5 and PostgreSQL tsvector implementations.
@index Shared search backend interface and errors for SQLite FTS5 and PostgreSQL tsvector implementations.
outbound/treesitter
@index Language-specific grammar specifications and discovery hooks for the Tree-sitter parser.
@index Language-specific grammar specifications and discovery hooks for the Tree-sitter parser.
app
analyze
@index Consumer-owned outbound ports shared by graph analysis use cases.
@index Consumer-owned outbound ports shared by graph analysis use cases.
analyze/changes
@index Application git-diff overlap and deterministic change-risk policy.
@index Application git-diff overlap and deterministic change-risk policy.
analyze/flow
@index Persisted flow rebuild service for namespace-scoped stored flows.
@index Persisted flow rebuild service for namespace-scoped stored flows.
analyze/impact
@index Application BFS blast-radius analysis with depth and node-count bounds.
@index Application BFS blast-radius analysis with depth and node-count bounds.
analyze/query
@index Application graph-query policy for callers, imports, inheritance, summaries, and exact-name fallback.
@index Application graph-query policy for callers, imports, inheritance, summaries, and exact-name fallback.
crossref
@index Cross-namespace reference sync: materializes @see ccg:// annotation tags into cross_refs rows.
@index Cross-namespace reference sync: materializes @see ccg:// annotation tags into cross_refs rows.
describe
@index Structural outlines: what the graph holds under one path, without ranking it.
@index Structural outlines: what the graph holds under one path, without ranking it.
docs
@index Consumer-owned graph read contracts for generated documentation and lint policy.
@index Consumer-owned graph read contracts for generated documentation and lint policy.
ingest
@index Consumer-owned transaction ports for graph ingest application workflows.
@index Consumer-owned transaction ports for graph ingest application workflows.
ingest/incremental
@index Session-local parsed-edge spool for staged incremental reconciliation.
@index Session-local parsed-edge spool for staged incremental reconciliation.
ingest/resolve
@index Language-specific dispatch hooks used by call edge resolution.
@index Language-specific dispatch hooks used by call edge resolution.
ingest/workflow
@index Full graph build pipeline: spool, batch persistence, and edge resolution.
@index Full graph build pipeline: spool, batch persistence, and edge resolution.
reposync
@index Repository/branch admission, ref normalization, and namespace policy for repository sync.
@index Repository/branch admission, ref normalization, and namespace policy for repository sync.
search
Package search assembles the one pipeline every search surface shares: fetch full-text and recorded-reason candidates in parallel, filter them by path, rerank the full-text pool structurally, absorb the intent hits as evidence, and cut the answer down to the hits that can justify themselves.
Package search assembles the one pipeline every search surface shares: fetch full-text and recorded-reason candidates in parallel, filter them by path, rerank the full-text pool structurally, absorb the intent hits as evidence, and cut the answer down to the hits that can justify themselves.
search/document
@index Pure search-document content construction from graph nodes and annotations.
@index Pure search-document content construction from graph nodes and annotations.
search/evidence
@index Turns ranked search candidates into a list a reader can judge.
@index Turns ranked search candidates into a list a reader can judge.
search/identtoken
Package identtoken is the one place search text turns into tokens: Fields cuts free text into identifier-like terms, and Split cuts one identifier into its sub-tokens.
Package identtoken is the one place search text turns into tokens: Fields cuts free text into identifier-like terms, and Split cuts one identifier into its sub-tokens.
search/intent
@index Recorded-reason retrieval: the intent index port and its answer types.
@index Recorded-reason retrieval: the intent index port and its answer types.
search/intentrank
@index BM25 scoring of recorded reasons against a plain-language question, shared by every search backend.
@index BM25 scoring of recorded reasons against a plain-language question, shared by every search backend.
search/offsetrule
Package offsetrule holds one rule about a page position and the one sentence every surface turns a bad position away with.
Package offsetrule holds one rule about a page position and the one sentence every surface turns a bad position away with.
search/queryterm
Package queryterm holds the query-side vocabulary rules that both ways of searching this graph have to agree on: the full-text query built for the database, and the term list the fallback scan matches nodes against.
Package queryterm holds the query-side vocabulary rules that both ways of searching this graph have to agree on: the full-text query built for the database, and the term list the fallback scan matches nodes against.
search/rank
Package rank reranks FTS-ranked code-search candidates using dependency-free structural signals (name subsequence similarity, path proximity), so both the CLI `search` command and the MCP `search` tool share one ranking.
Package rank reranks FTS-ranked code-search candidates using dependency-free structural signals (name subsequence similarity, path proximity), so both the CLI `search` command and the MCP `search` tool share one ranking.
search/wire
Package wire is the serialized form of a search answer — the JSON contract MCP's search tool and the CLI's --json output both speak.
Package wire is the serialized form of a search answer — the JSON contract MCP's search tool and the CLI's --json output both speak.
wiki
@index Built-in CCG Wiki eager/lazy tree construction and compatibility snapshot policy.
@index Built-in CCG Wiki eager/lazy tree construction and compatibility snapshot policy.
Package archtest holds executable package-boundary contracts for the CCG modular-hexagonal refactor.
Package archtest holds executable package-boundary contracts for the CCG modular-hexagonal refactor.
@index 요청 범위 값을 context.Context에 안전하게 전파하는 공용 패키지.
@index 요청 범위 값을 context.Context에 안전하게 전파하는 공용 패키지.
db
@index Database connection, SQLite WAL/busy_timeout, connection pool, and search-backend selection helpers for SQLite and PostgreSQL.
@index Database connection, SQLite WAL/busy_timeout, connection pool, and search-backend selection helpers for SQLite and PostgreSQL.
dbtest
@index Test-only PostgreSQL helpers that give each test its own schema so postgres-tagged packages can run concurrently.
@index Test-only PostgreSQL helpers that give each test its own schema so postgres-tagged packages can run concurrently.
domain
annotation
@index 커스텀 어노테이션 파서.
@index 커스텀 어노테이션 파서.
graph
@index Materialized cross-namespace annotation references for federated graph analysis.
@index Materialized cross-namespace annotation references for federated graph analysis.
reference
@index CCG reference parser for cross-namespace annotation links.
@index CCG reference parser for cross-namespace annotation links.
@index OpenTelemetry SDK tracer setup and trace-aware logging helpers for server paths.
@index OpenTelemetry SDK tracer setup and trace-aware logging helpers for server paths.
Package pathspec evaluates lexical path filters without filesystem access.
Package pathspec evaluates lexical path filters without filesystem access.
@index Shared runtime wiring for ccg CLI and ccg-server binaries.
@index Shared runtime wiring for ccg CLI and ccg-server binaries.
mcp
@index Shared MCP runtime assembly for stdio and HTTP server entry points.
@index Shared MCP runtime assembly for stdio and HTTP server entry points.
remote
@index Remote HTTP runtime composition for MCP, Wiki, webhook, and repository sync.
@index Remote HTTP runtime composition for MCP, Wiki, webhook, and repository sync.
@index safepath는 여러 핸들러가 공유하는 저수준 경로 안전 프리미티브를 단일화한다.
@index safepath는 여러 핸들러가 공유하는 저수준 경로 안전 프리미티브를 단일화한다.

Jump to

Keyboard shortcuts

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