Documentation
¶
Index ¶
- func InstallAutoSyncForAgent(agentName, configPath, scriptPath string) error
- func InstallClaudeAutoSync(configPath, scriptPath string) error
- func InstallClaudeHook(configPath, endpoint, apiKey, scriptPath string) error
- func InstallCodexAutoSync(configPath, scriptPath string) error
- func InstallCursorAutoSync(configPath, scriptPath string) error
- func InstallForAgent(agentName, configPath, endpoint, apiKey, scriptPath string) error
- func UninstallAutoSyncForAgent(agentName, configPath string) error
- func UninstallClaudeAutoSync(configPath string) error
- func UninstallClaudeHook(configPath string) error
- func UninstallCodexAutoSync(configPath string) error
- func UninstallCursorAutoSync(configPath string) error
- func UninstallForAgent(agentName, configPath string) error
- func WriteAutoSyncScript(skaalDir string) (string, error)
- func WriteCursorStopScript(skaalDir string) (string, error)
- func WriteHookScript(skaalDir string) (string, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func InstallAutoSyncForAgent ¶ added in v0.8.0
InstallAutoSyncForAgent calls the appropriate auto-sync installer based on agentName.
func InstallClaudeAutoSync ¶ added in v0.8.0
InstallClaudeAutoSync adds a UserPromptSubmit hook that runs the debounced auto-sync script. This is separate from the activation tracking hook (PreToolUse) — it uses _managed_by: "skael-autosync".
func InstallClaudeHook ¶
InstallClaudeHook reads configPath (or starts with an empty object), inserts or updates the single skael-managed PreToolUse hook, and writes the file back.
Hook structure:
{
"hooks": {
"PreToolUse": [
{
"matcher": "Skill",
"hooks": [
{
"type": "command",
"command": "SKAEL_AGENT=claude-code SKAEL_ENDPOINT=... SKAEL_API_KEY=... <scriptPath>",
"_managed_by": "skael"
}
]
}
]
}
}
func InstallCodexAutoSync ¶ added in v0.8.0
InstallCodexAutoSync appends (or replaces) a skael-autosync managed pre_tool_use TOML block.
func InstallCursorAutoSync ¶ added in v0.8.0
InstallCursorAutoSync adds/updates a sessionStart hook pointing to the auto-sync script. This is separate from the activation tracking hook (stop) — it uses _managed_by: "skael-autosync".
func InstallForAgent ¶
InstallForAgent calls the appropriate installer based on agentName.
func UninstallAutoSyncForAgent ¶ added in v0.8.0
UninstallAutoSyncForAgent calls the appropriate auto-sync uninstaller based on agentName.
func UninstallClaudeAutoSync ¶ added in v0.8.0
UninstallClaudeAutoSync removes the auto-sync hook from configPath.
func UninstallClaudeHook ¶
UninstallClaudeHook removes all hook entries tagged with _managed_by=skael from configPath and writes the cleaned file back. Empty arrays/objects are pruned.
func UninstallCodexAutoSync ¶ added in v0.8.0
UninstallCodexAutoSync removes the skael-autosync TOML block.
func UninstallCursorAutoSync ¶ added in v0.8.0
UninstallCursorAutoSync removes the auto-sync sessionStart hook.
func UninstallForAgent ¶
UninstallForAgent calls the appropriate uninstaller based on agentName.
func WriteAutoSyncScript ¶ added in v0.8.0
WriteAutoSyncScript creates ~/.skael/hooks/ and writes skael-autosync.sh with 0755 permissions. It returns the full path to the written script.
func WriteCursorStopScript ¶
func WriteHookScript ¶
WriteHookScript creates ~/.skael/hooks/ and writes skael-hook.sh with 0755 permissions. It returns the full path to the written script.
Types ¶
This section is empty.