Documentation
¶
Index ¶
- Constants
- func CreateDefaultConfig() error
- type Config
- func (c *Config) AddSkill(skillName string)
- func (c *Config) AddSkillInfo(info SkillInfo)
- func (c *Config) GetSkillInfo(name string) *SkillInfo
- func (c *Config) GetSkillsDir() string
- func (c *Config) RemoveSkill(skillName string)
- func (c *Config) RemoveSkillInfo(skillName string)
- func (c *Config) Save() error
- type LockEntry
- type LockFile
- type Repo
- type SkillInfo
Constants ¶
View Source
const DefaultSkillsDir = ".agent/skills"
View Source
const LockFileName = "ask.lock"
Variables ¶
This section is empty.
Functions ¶
func CreateDefaultConfig ¶
func CreateDefaultConfig() error
CreateDefaultConfig creates a new ask.yaml in the current directory
Types ¶
type Config ¶
type Config struct {
Version string `yaml:"version"`
SkillsDir string `yaml:"skills_dir,omitempty"` // Skills installation directory (default: .agent/skills)
Skills []string `yaml:"skills,omitempty"` // Legacy: simple list of skill names
SkillsInfo []SkillInfo `yaml:"skills_info,omitempty"` // New: skills with metadata
Repos []Repo `yaml:"repos,omitempty"`
}
Config represents the structure of ask.yaml
func LoadConfig ¶
LoadConfig loads the current ask.yaml configuration
func (*Config) AddSkillInfo ¶
AddSkillInfo adds a skill with metadata to the configuration
func (*Config) GetSkillInfo ¶
GetSkillInfo returns skill info by name
func (*Config) GetSkillsDir ¶ added in v0.2.0
GetSkillsDir returns the skills directory, using default if not set
func (*Config) RemoveSkill ¶
RemoveSkill removes a skill from the configuration
func (*Config) RemoveSkillInfo ¶ added in v0.2.0
RemoveSkillInfo removes skill metadata from the configuration
type LockEntry ¶ added in v0.2.0
type LockEntry struct {
Name string `yaml:"name"`
Source string `yaml:"source,omitempty"`
URL string `yaml:"url"`
Commit string `yaml:"commit,omitempty"`
Version string `yaml:"version,omitempty"`
InstalledAt time.Time `yaml:"installed_at"`
}
LockEntry represents a locked skill version
type LockFile ¶ added in v0.2.0
LockFile represents the ask.lock file structure
func LoadLockFile ¶ added in v0.2.0
LoadLockFile loads the ask.lock file
func (*LockFile) RemoveEntry ¶ added in v0.2.0
RemoveEntry removes a lock entry by name
Click to show internal directories.
Click to hide internal directories.