Documentation
¶
Index ¶
- func Embedded() []byte
- func Install() (string, error)
- func InstallPluginTo(scope Scope, baseDir string) (string, bool, error)
- func InstallTo(scope Scope, baseDir string) (string, error)
- func PluginDir(scope Scope, baseDir string) string
- func SettingsPath(scope Scope, baseDir string) string
- func SkillPath(scope Scope, baseDir string) string
- func Uninstall() (string, error)
- func UninstallFrom(scope Scope, baseDir string) (string, error)
- func UninstallPluginFrom(scope Scope, baseDir string) (string, error)
- type AutoUpdateResult
- type InstallRequest
- type InstallResult
- type PluginStatus
- type Scope
- type ScopeStatus
- type SettingsChange
- type SettingsStatus
- type SkillStatus
- type UninstallRequest
- type UninstallResult
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func InstallTo ¶
InstallTo writes the embedded skill to the Claude Code skill location under baseDir.
func SettingsPath ¶
func SkillPath ¶
SkillPath returns the Claude Code skill path for the given base directory. For user scope, baseDir should be the user's home directory. For project scope, baseDir should be the project root directory.
func UninstallFrom ¶
UninstallFrom removes the skill from the Claude Code skill location under baseDir.
Types ¶
type AutoUpdateResult ¶
AutoUpdateResult captures which installed components were updated to match embedded assets.
func AutoUpdateIfInstalled ¶
func AutoUpdateIfInstalled(scope Scope, baseDir string) (AutoUpdateResult, error)
type InstallRequest ¶
type InstallResult ¶
type InstallResult struct {
SkillPath string
PluginDir string
UpdatedSkill bool
UpdatedPlugin bool
Settings SettingsChange
}
func InstallAll ¶
func InstallAll(req InstallRequest) (InstallResult, error)
type PluginStatus ¶
type PluginStatus struct {
Dir string
Installed bool
UpToDate bool
EmbeddedSHA256 string
InstalledSHA256 string
}
PluginStatus describes the installation state of the embedded plugin.
func GetPluginStatusFor ¶
func GetPluginStatusFor(scope Scope, baseDir string) (PluginStatus, error)
type ScopeStatus ¶
type ScopeStatus struct {
Scope Scope
BaseDir string
Skill SkillStatus
Plugin PluginStatus
Settings SettingsStatus
}
ScopeStatus describes installation state for a specific scope.
func GetScopeStatus ¶
func GetScopeStatus(scope Scope, baseDir string) (ScopeStatus, error)
type SettingsChange ¶
func EnsurePluginEnabled ¶
func EnsurePluginEnabled(scope Scope, baseDir string) (SettingsChange, error)
func RemovePluginEnabled ¶
func RemovePluginEnabled(scope Scope, baseDir string) (SettingsChange, error)
type SettingsStatus ¶
SettingsStatus describes plugin registration status for Claude Code.
func GetSettingsStatusFor ¶
func GetSettingsStatusFor(scope Scope, baseDir string) SettingsStatus
type SkillStatus ¶
type SkillStatus struct {
Path string
Installed bool
UpToDate bool
EmbeddedSHA256 string
InstalledSHA256 string
}
SkillStatus describes the installation state of the embedded skill.
func GetSkillStatus ¶
func GetSkillStatus() (SkillStatus, error)
GetSkillStatus returns installation status for the Claude Code skill location (user scope).
func GetSkillStatusFor ¶
func GetSkillStatusFor(scope Scope, baseDir string) (SkillStatus, error)
GetSkillStatusFor returns status for baseDir/scope without consulting environment.
type UninstallRequest ¶
type UninstallResult ¶
type UninstallResult struct {
SkillPath string
PluginDir string
Settings SettingsChange
}
func UninstallAll ¶
func UninstallAll(req UninstallRequest) (UninstallResult, error)