docgraph

package
v0.5.3 Latest Latest
Warning

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

Go to latest
Published: Jun 10, 2026 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DefaultProfile

func DefaultProfile() model.DocsReadProfile

func DetectLayerForPath added in v0.3.0

func DetectLayerForPath(profile model.DocsReadProfile, path string) string

func GovernanceDocPath added in v0.3.0

func GovernanceDocPath(root string) string

func GovernanceReadinessSummary added in v0.3.0

func GovernanceReadinessSummary(status model.GovernanceStatus) string

func IndexWorkspaceDocs

func IndexWorkspaceDocs(ctx context.Context, root string, matcher *workspace.IgnoreMatcher) ([]model.DocRecord, []model.DocEdge, []model.DocMention, []string, error)

func IndexWorkspaceDocsWithProgress added in v0.3.0

func IndexWorkspaceDocsWithProgress(ctx context.Context, root string, matcher *workspace.IgnoreMatcher, progress ProgressFunc) ([]model.DocRecord, []model.DocEdge, []model.DocMention, []string, error)

func IndexWorkspaceDocsWithSourcesWithProgress added in v0.3.0

func IndexWorkspaceDocsWithSourcesWithProgress(ctx context.Context, root string, matcher *workspace.IgnoreMatcher, progress ProgressFunc) ([]model.DocRecord, []model.DocEdge, []model.DocMention, []model.DocSourceBlock, []model.DocSourceRecord, []string, error)

func InspectGovernance added in v0.3.0

func InspectGovernance(root string, autoSync bool) model.GovernanceStatus

func LoadProfile

func LoadProfile(root string) (model.DocsReadProfile, string, []string)

func MatchFamily

func MatchFamily(question string, profile model.DocsReadProfile) string

func ProfilePath

func ProfilePath(root string) string

func QuestionTokens

func QuestionTokens(question string) []string

func Tier1CanonicalRoute added in v0.3.0

func Tier1CanonicalRoute(question string, profile model.DocsReadProfile, root string) (model.RouteCanonicalLane, []string)

Tier1CanonicalRoute builds a canonical route from governance/profile alone. It does not require a full docs index — it derives the route skeleton from the read-model and the root docs that exist on the filesystem. This implements the fail-closed canonical semantics for RF-QRY-014.

Types

type Progress added in v0.3.0

type Progress struct {
	Stage      string
	Path       string
	Docs       int
	FilesTotal int
	Force      bool
}

type ProgressFunc added in v0.3.0

type ProgressFunc func(context.Context, Progress) error

type RFFrontMatter

type RFFrontMatter struct {
	ID         string   `yaml:"id"`
	Title      string   `yaml:"title"`
	Implements []string `yaml:"implements"`
	Tests      []string `yaml:"tests"`
}

Jump to

Keyboard shortcuts

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