meta

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Apr 21, 2026 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Package meta manages the .sdd/ metadata directory: discovery, config reading, and path resolution. This is project-level infrastructure, separate from the domain model (pure) and graph finders (query-driven).

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DiscoverRoot

func DiscoverRoot(startDir string) string

DiscoverRoot walks up from startDir looking for a directory named ".sdd". Returns the repo root (parent of .sdd/) or empty string if not found.

func IsSDDMetaDir

func IsSDDMetaDir(d fs.DirEntry) bool

IsSDDMetaDir returns true if the directory entry is the .sdd metadata directory. Used by graph scanning to skip .sdd/ contents.

func ReadConfig

func ReadConfig(sddDir string) (*model.Config, error)

ReadConfig reads and parses .sdd/config.yaml from the given .sdd directory, then overlays any .sdd/config.local.yaml present. Returns nil config with nil error if neither file exists. The local file is gitignored and carries per-machine overrides (API keys, Ollama endpoint, participant name).

func ResolveGraphDir

func ResolveGraphDir(repoRoot string, cfg *model.Config) string

ResolveGraphDir returns the absolute graph directory path from a config and the repo root (parent of .sdd/). If cfg is nil or GraphDir is empty, falls back to model.DefaultGraphDir.

func SDDDir

func SDDDir(repoRoot string) string

SDDDir returns the absolute path to .sdd/ given the repo root.

func TmpDir

func TmpDir(sddDir string) string

TmpDir returns the path to .sdd/tmp/ given the .sdd/ directory path.

Types

This section is empty.

Jump to

Keyboard shortcuts

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