Versions in this module Expand all Collapse all v1 v1.2.1 Jun 14, 2026 Changes in this version + const DefaultNearestNeighborLimit + const RrfKConstant v1.2.0 Jun 5, 2026 Changes in this version type SymbolRegistry + SearchHybrid func(ctx context.Context, textQuery string, queryEmbedding []float32, limit int) ([]Symbol, error) v1.1.0 Jun 4, 2026 Changes in this version type StructuralGraph + SaveCallsBulk func(ctx context.Context, calls []Call) error type SymbolRegistry + RecomputeIndegrees func(ctx context.Context) error + SaveSymbolsBulk func(ctx context.Context, symbols []*Symbol) error + UpdateSymbolCentralitiesBulk func(ctx context.Context, updates map[string]int) error + UpdateSymbolPageranksBulk func(ctx context.Context, updates map[string]float64) error v1.0.0 Jun 3, 2026 Changes in this version + type BatchItem struct + Calls []Call + Flows []Flow + Index *FileIndex + Symbols []Symbol + Violations []Violation + type Call struct + Body string + CalleeName string + CalleePath string + CallerName string + ID int + Indegree int + Line int + LinkType string + Path string + type CriticalSymbol struct + Centrality int + Fragility int + type DBTX interface + ExecContext func(context.Context, string, ...interface{}) (sql.Result, error) + PrepareContext func(context.Context, string) (*sql.Stmt, error) + QueryContext func(context.Context, string, ...interface{}) (*sql.Rows, error) + QueryRowContext func(context.Context, string, ...interface{}) *sql.Row + type DiagnosticStore interface + ClearTestResults func(ctx context.Context) error + GetAllFailedTests func(ctx context.Context) iter.Seq2[types.TestResult, error] + GetHealthReport func(ctx context.Context, symbol string, failuresOnly bool) iter.Seq2[types.TestResult, error] + GetViolationsByFile func(ctx context.Context, path string) ([]Violation, error) + SaveTestResult func(ctx context.Context, res *types.TestResult) error + SaveViolation func(ctx context.Context, v *types.ASTRuleMatch) error + type FileIndex struct + AstJson string + Freshness int + Hash string + Mtime int + Path string + Project string + type Flow struct + Line int + Path string + Sink string + Source string + Type string + type GetCallersParams struct + CalleeName string + Limit int64 + Offset int64 + type Queries struct + func New(db DBTX) *Queries + func (q *Queries) ClearSymbols(ctx context.Context, path string) error + func (q *Queries) GetCallees(ctx context.Context, callerName string) ([]Call, error) + func (q *Queries) GetCallers(ctx context.Context, arg GetCallersParams) ([]Call, error) + func (q *Queries) SaveCall(ctx context.Context, arg SaveCallParams) error + func (q *Queries) SaveFileIndex(ctx context.Context, arg SaveFileIndexParams) error + func (q *Queries) SaveSymbol(ctx context.Context, arg SaveSymbolParams) error + func (q *Queries) SearchSymbols(ctx context.Context, arg SearchSymbolsParams) ([]Symbol, error) + func (q *Queries) WithTx(tx *sql.Tx) *Queries + type SaveCallParams struct + Body string + CalleeName string + CalleePath string + CallerName string + Indegree int + Line int + LinkType string + Path string + type SaveFileIndexParams struct + AstJson string + Freshness int + Hash string + Mtime int + Path string + Project string + type SaveSymbolParams struct + AiSummary string + ChurnScore float64 + Doc string + EndByte int + EndLine int + Indegree int + Name string + PackagePath string + Pagerank float64 + Path string + ReceiverType string + Relevance float64 + RuntimeHits int + Signature string + StartByte int + StartCol int + StartLine int + StructuralHash string + Type string + type SearchSymbolsParams struct + Column1 sql.NullString + Column2 sql.NullString + Limit int64 + Offset int64 + type ShardManager struct + func NewShardManager(basePath string) *ShardManager + func (m *ShardManager) Close() error + func (m *ShardManager) GetShard(ctx context.Context, path string) (Store, error) + type SovereignDelta struct + Calls []Call + Flows []Flow + Hash string + Path string + Symbols []Symbol + type Store interface + func NewStore(ctx context.Context, dbPath string) (Store, error) + type StructuralGraph interface + ClearCalls func(ctx context.Context, path string) error + ClearFlows func(ctx context.Context, path string) error + GetAffectedTestsRecursive func(ctx context.Context, name, path string) ([]Symbol, error) + GetAllCalls func(ctx context.Context) iter.Seq2[Call, error] + GetCallees func(ctx context.Context, callerName string) ([]Call, error) + GetCallers func(ctx context.Context, calleeName string, limit, offset int) ([]Call, error) + GetCallersRecursive func(ctx context.Context, name, path string, maxDepth int) ([]Call, error) + GetFlows func(ctx context.Context, sink string) ([]Flow, error) + SaveCall func(ctx context.Context, call Call) error + SaveFlow func(ctx context.Context, flow Flow) error + type Symbol struct + AiSummary string + ChurnScore float64 + Doc string + EndByte int + EndLine int + ID int + Indegree int + Metrics *types.SemanticMetrics + Name string + PackagePath string + Pagerank float64 + Path string + ReceiverType string + Relevance float64 + RuntimeHits int + Signature string + StartByte int + StartCol int + StartLine int + StructuralHash string + Type string + type SymbolRegistry interface + ClearDependencies func(ctx context.Context) error + ClearSymbols func(ctx context.Context, path string) error + DeleteFileIndex func(ctx context.Context, path string) error + GetAllFilePaths func(ctx context.Context) ([]string, error) + GetAllSymbols func(ctx context.Context) iter.Seq2[Symbol, error] + GetDependencies func(ctx context.Context) ([]types.Dependency, error) + GetDirectoryHash func(ctx context.Context, path string) (string, int64, error) + GetFileIndex func(ctx context.Context, path string) (*FileIndex, error) + GetInterfaces func(ctx context.Context) ([]Symbol, error) + GetStats func(ctx context.Context) (int, int, error) + GetSymbolsByNameInFile func(ctx context.Context, name, path string) ([]Symbol, error) + GetSymbolsByPathPrefix func(ctx context.Context, pathPrefix string) ([]Symbol, error) + GetSymbolsByRange func(ctx context.Context, path string, startLine, endLine int) ([]Symbol, error) + GetSymbolsByStructuralHash func(ctx context.Context, hash string) ([]Symbol, error) + GetSymbolsByType func(ctx context.Context, symType string) ([]Symbol, error) + GetUnusedSymbols func(ctx context.Context, includeExported bool) ([]Symbol, error) + InsertSemanticVector func(ctx context.Context, symbolID int64, embedding []float32) error + RecordSymbolUsage func(ctx context.Context, env string, usages []UsageRecord) error + SaveDependency func(ctx context.Context, dep *types.Dependency) error + SaveDirectoryHash func(ctx context.Context, path string, hash string, mtime int64) error + SaveFileIndex func(ctx context.Context, idx *FileIndex) error + SaveFileIndexBatch func(ctx context.Context, items []BatchItem) error + SaveSymbol func(ctx context.Context, sym *Symbol) error + SearchSemantic func(ctx context.Context, queryEmbedding []float32, limit int) ([]Symbol, error) + SearchSymbols func(ctx context.Context, query string, symType string, limit, offset int) ([]Symbol, error) + SearchSymbolsWeighted func(ctx context.Context, query string, symType string) iter.Seq2[Symbol, error] + UpdateSymbolCentrality func(ctx context.Context, name, path string, centrality int) error + UpdateSymbolChurn func(ctx context.Context, path string, score float64) error + UpdateSymbolPagerank func(ctx context.Context, name, path string, score float64) error + UpdateSymbolRuntimeHits func(ctx context.Context, name, path string, hits int) error + type SyncEngine interface + ExportDelta func(ctx context.Context, syncDir string) error + ImportDelta func(ctx context.Context, syncDir string) error + type TransactionManager interface + Close func() error + WithTransaction func(ctx context.Context, fn func(context.Context, Store) error) error + type UsageRecord struct + HitCount int + LastUsed int64 + SymbolName string + SymbolPath string + type Violation struct + FilePath string + ID int + Message string + RuleID string + Severity string + StartCol int + StartLine int + Text string