Versions in this module Expand all Collapse all v0 v0.1.0 Jul 18, 2026 Changes in this version + func ChunkID(file string, startLine, endLine int, contentSHA256 string) string + func ContentSHA256(text string) string + func IsTestPath(path, lang string) bool + type Branch struct + At string + Then string + When string + type Chunk struct + CanonicalID string + Category string + ChunkKind ChunkKind + CommitHash string + ContentSHA256 string + ConventionStats map[string]any + EndLine int + EnforcedAt []EnforcePoint + File string + FlowSpine *FlowSpineMeta + FlowStep *FlowStepMeta + Guidance *ModificationGuidance + ID string + Invariants []InvariantRef + IsTest bool + Language string + Provenance string + RecentPRs []PRRef + StartLine int + SymbolKind SymbolKind + SymbolName string + Text string + func (c Chunk) Citation() Citation + type ChunkKind string + const ChunkCommitMessage + const ChunkConvention + const ChunkDoc + const ChunkFileFull + const ChunkFileHeader + const ChunkFlowSpine + const ChunkFlowStep + const ChunkFunctionSplit + const ChunkInvariant + const ChunkPRBackground + const ChunkPRSolution + const ChunkSymbol + type Citation struct + CommitHash string + EndLine int + File string + StartLine int + type Embedder interface + Dimension func() int + Embed func(ctx context.Context, batch []string) ([][]float32, error) + Identity func() EmbeddingIdentity + MaxInputTokens func() int + Name func() string + type EmbeddingIdentity struct + Dim int + Model string + Normalize string + Pooling string + Provider string + func (id EmbeddingIdentity) Checksum() string + type EnforcePoint struct + Flow string + Loc string + Step string + type Filter struct + ChunkKinds []ChunkKind + CommitHash string + Language string + PathGlob string + SymbolKinds []SymbolKind + func (f Filter) IsZero() bool + func (f Filter) Matches(c Chunk) bool + type FlowSpineMeta struct + CalledBy []string + EntryPoint string + FlowID string + Links []string + RootSymbol string + Trigger string + type FlowStepMeta struct + AlignedChunkID string + Branches []Branch + Calls []string + Emits string + FlowID string + Invariants []string + Kind string + Reads string + StepID string + Symbol string + Writes string + type Hit struct + Chunk Chunk + Score HitScore + StaleCitation bool + type HitScore struct + BM25Score float64 + HybridRank int + Normalized float64 + VectorDistance float64 + VectorRank int + type InvariantRef struct + ChunkID string + Marker string + Tier InvariantTier + type InvariantTier int + const InvariantTierExistingMarker + const InvariantTierHeuristic + const InvariantTierNewMarker + type ModificationGuidance struct + AlsoReview []string + RequiredTests []string + WatchOut []string + type PRRef struct + MergedAtUTC string + Number int + Title string + type QueryEmbedder interface + EmbedQuery func(ctx context.Context, queries []string) ([][]float32, error) + type Stats struct + BuiltAt string + ChunkCount int + EmbeddingDim int + EmbeddingModel string + IndexedHead string + SchemaVersion string + type SymbolKind string + const KindADRSection + const KindContract + const KindDocSection + const KindEvent + const KindFileHeader + const KindFunction + const KindInterface + const KindMethod + const KindModifier + const KindStruct + const KindType + type VectorStore interface + Close func() error + DeleteByFile func(ctx context.Context, path string) error + Search func(ctx context.Context, query []float32, k int, filter Filter) ([]Hit, error) + Stats func(ctx context.Context) (Stats, error) + Upsert func(ctx context.Context, chunks []Chunk, embeddings [][]float32) error