Documentation
¶
Index ¶
- Variables
- func AddLink(name, globalPath, linkPath string) error
- func CleanBrokenLinks() []string
- func CreateLink(oldname, newname string) error
- func DirExists(path string) bool
- func EnsureDir(dir string) error
- func FileExists(path string) bool
- func GetDefaultAgentName() string
- func GetDefaultConfig() *models.AppConfig
- func GetGlobalSkillsDir() string
- func GetLink(name string) *models.SkillLink
- func GetLinksPath() string
- func GetSkillsDirForAgent(a agent.AgentProfile, projectDir string) (string, error)
- func GetSkillsOutputDir(outputDir string) (string, error)
- func InitAppDirs() error
- func IsClaudeCodeProject(dir string) bool
- func LoadLinks() *models.LinksConfig
- func PromptSelectAgent(agents []agent.AgentProfile) (agent.AgentProfile, error)
- func RemoveLink(name string) error
- func ResolveOutputDir(outputDir string, agentName string) (string, error)
- func SaveLinks(config *models.LinksConfig) error
- func SelectAgent(projectDir string, agentName string) (agent.AgentProfile, error)
- func Unzip(src, dest string) error
- func ZipDir(dir, outputPath string) error
- type Config
- func (c *Config) GetAppDir() string
- func (c *Config) GetAppSeriesDir() string
- func (c *Config) GetConfigDir() string
- func (c *Config) GetConfigPath() string
- func (c *Config) GetGlobalSkillsDir() string
- func (c *Config) GetHomeDir() string
- func (c *Config) GetLogDir() string
- func (c *Config) GetLogPath() string
- func (c *Config) LoadConfig() *models.AppConfig
- func (c *Config) SaveConfig(config *models.AppConfig)
Constants ¶
This section is empty.
Variables ¶
var ConfigInstance = Config{}
Functions ¶
func CleanBrokenLinks ¶
func CleanBrokenLinks() []string
func CreateLink ¶
func FileExists ¶
func GetDefaultConfig ¶
func GetGlobalSkillsDir ¶
func GetGlobalSkillsDir() string
func GetLinksPath ¶
func GetLinksPath() string
func GetSkillsDirForAgent ¶
func GetSkillsDirForAgent(a agent.AgentProfile, projectDir string) (string, error)
GetSkillsDirForAgent 获取指定 Agent 的 skills 目录
func GetSkillsOutputDir ¶
GetSkillsOutputDir 保持向后兼容,默认使用 Claude Code
func InitAppDirs ¶
func InitAppDirs() error
func IsClaudeCodeProject ¶
func LoadLinks ¶
func LoadLinks() *models.LinksConfig
func PromptSelectAgent ¶
func PromptSelectAgent(agents []agent.AgentProfile) (agent.AgentProfile, error)
PromptSelectAgent 交互式选择 Agent
func RemoveLink ¶
func ResolveOutputDir ¶
ResolveOutputDir 根据 --agent 和 --outputDir 解析最终输出目录 优先级: --outputDir > --agent > config default_agent > 检测 > 默认 claude
func SaveLinks ¶
func SaveLinks(config *models.LinksConfig) error
func SelectAgent ¶
func SelectAgent(projectDir string, agentName string) (agent.AgentProfile, error)
SelectAgent 选择目标 Agent
Types ¶
type Config ¶
type Config struct {
HomeDir string
AppSeriesDir string
AppDir string
ConfigDir string
ConfigPath string
GlobalSkillsDir string
LogDir string
LogPath string
}