Documentation
¶
Overview ¶
Package manifest loads, validates, and saves the gskill.toml manifest that records install intent.
Index ¶
Constants ¶
View Source
const SchemaVersion = 1
SchemaVersion is the manifest schema this build understands (FR-006).
Variables ¶
View Source
var ( // ErrUnsupportedSchema is returned for a schema_version newer than this build. ErrUnsupportedSchema = errors.New("unsupported manifest schema version") // ErrInvalid is returned for a structurally or semantically invalid manifest. ErrInvalid = errors.New("invalid manifest") )
Sentinel manifest errors.
Functions ¶
Types ¶
type Defaults ¶
type Defaults struct {
Agents []string `toml:"agents,omitempty"`
InstallMode string `toml:"install_mode,omitempty"`
Scope string `toml:"scope,omitempty"`
}
Defaults are project-wide defaults applied when a skill omits a setting.
type Manifest ¶
type Manifest struct {
SchemaVersion int `toml:"schema_version"`
Defaults Defaults `toml:"defaults,omitempty"`
Skills map[string]Skill `toml:"skills,omitempty"`
}
Manifest is the human-editable record of install intent (FR-002).
type Skill ¶
type Skill struct {
Source string `toml:"source"`
Path string `toml:"path,omitempty"`
Version string `toml:"version,omitempty"`
Ref string `toml:"ref,omitempty"`
Commit string `toml:"commit,omitempty"`
Agents []string `toml:"agents,omitempty"`
InstallMode string `toml:"install_mode,omitempty"`
}
Skill is one declared skill's intent.
Click to show internal directories.
Click to hide internal directories.