Documentation
¶
Overview ¶
scaffold: generated from docs/specs/init-subcommand.md
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AgentsRepo ¶ added in v0.3.0
AgentsRepo reads AGENTS.md from targetDir and returns the repository field from its frontmatter, or an error if the file is absent or malformed.
func ManifestRepo ¶ added in v0.3.0
manifestRepo reads .agentic/manifest.yml from targetDir and returns the kernel.repository value, or an error if absent or unreadable.
Types ¶
type KernelInfo ¶
type KernelInfo struct {
Version string
Title string
Repository string
Organization string
License string
CacheDir string
}
KernelInfo holds metadata parsed from the upstream AGENTS.md frontmatter and the path to the local temp cache of fetched files.
func Fetch ¶
Fetch retrieves the upstream kernel from GitHub, writes all relevant files to a temporary directory, and returns a KernelInfo with metadata and the cache path. On any failure the temp dir is removed and the error is returned verbatim. The caller is responsible for os.RemoveAll(k.CacheDir) when done.
type Manifest ¶ added in v0.3.0
type Manifest struct {
Kernel struct {
Repository string `yaml:"repository"`
Version string `yaml:"version"`
} `yaml:"kernel"`
}
Manifest is a minimal typed view of .agentic/manifest.yml sufficient for sync operations. Unknown/user fields are preserved in the raw decoded map.