Documentation
¶
Index ¶
- func EnsureEnabled(name string, enabled *bool) error
- func Run(root string) ([]warnings.Warning, error)
- func RunWithProject(root string, project *config.ProjectConfig) ([]warnings.Warning, error)
- func WriteAntigravitySkills(root string, commands []config.SlashCommand) error
- func WriteClaudeSettings(root string, project *config.ProjectConfig) error
- func WriteCodexConfig(root string, project *config.ProjectConfig) error
- func WriteCodexInstructions(root string, instructions []config.InstructionFile) error
- func WriteCodexRules(root string, project *config.ProjectConfig) error
- func WriteCodexSkills(root string, commands []config.SlashCommand) error
- func WriteGeminiSettings(root string, project *config.ProjectConfig) error
- func WriteInstructionShims(root string, instructions []config.InstructionFile) error
- func WriteMCPConfig(root string, project *config.ProjectConfig) error
- func WriteVSCodeLaunchers(root string) error
- func WriteVSCodeMCPConfig(root string, project *config.ProjectConfig) error
- func WriteVSCodePrompts(root string, commands []config.SlashCommand) error
- func WriteVSCodeSettings(root string, project *config.ProjectConfig) error
- type OrderedMap
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func EnsureEnabled ¶
EnsureEnabled is a helper for command handlers.
func Run ¶
Run regenerates all configured outputs for the repo. Returns any sync-time warnings and an error if sync failed.
func RunWithProject ¶
RunWithProject regenerates outputs using an already loaded project config. Returns any sync-time warnings and an error if sync failed.
func WriteAntigravitySkills ¶
func WriteAntigravitySkills(root string, commands []config.SlashCommand) error
WriteAntigravitySkills generates Antigravity skill files for slash commands.
func WriteClaudeSettings ¶
func WriteClaudeSettings(root string, project *config.ProjectConfig) error
WriteClaudeSettings generates .claude/settings.json.
func WriteCodexConfig ¶
func WriteCodexConfig(root string, project *config.ProjectConfig) error
WriteCodexConfig generates .codex/config.toml.
func WriteCodexInstructions ¶
func WriteCodexInstructions(root string, instructions []config.InstructionFile) error
WriteCodexInstructions generates the Codex-specific instruction shim.
func WriteCodexRules ¶
func WriteCodexRules(root string, project *config.ProjectConfig) error
WriteCodexRules generates .codex/rules/default.rules.
func WriteCodexSkills ¶
func WriteCodexSkills(root string, commands []config.SlashCommand) error
WriteCodexSkills generates Codex skill files for slash commands.
func WriteGeminiSettings ¶
func WriteGeminiSettings(root string, project *config.ProjectConfig) error
WriteGeminiSettings generates .gemini/settings.json.
func WriteInstructionShims ¶
func WriteInstructionShims(root string, instructions []config.InstructionFile) error
WriteInstructionShims generates instruction shims for supported clients.
func WriteMCPConfig ¶
func WriteMCPConfig(root string, project *config.ProjectConfig) error
WriteMCPConfig generates .mcp.json for Claude Code.
func WriteVSCodeLaunchers ¶
WriteVSCodeLaunchers generates VS Code launchers for macOS, Windows, and Linux: - .agent-layer/open-vscode.command (macOS Terminal script) - .agent-layer/open-vscode.app (macOS app bundle - no Terminal window) - .agent-layer/open-vscode.bat (Windows batch file) - .agent-layer/open-vscode.desktop (Linux desktop entry)
func WriteVSCodeMCPConfig ¶
func WriteVSCodeMCPConfig(root string, project *config.ProjectConfig) error
WriteVSCodeMCPConfig generates .vscode/mcp.json.
func WriteVSCodePrompts ¶
func WriteVSCodePrompts(root string, commands []config.SlashCommand) error
WriteVSCodePrompts generates VS Code prompt files for slash commands.
func WriteVSCodeSettings ¶
func WriteVSCodeSettings(root string, project *config.ProjectConfig) error
WriteVSCodeSettings generates .vscode/settings.json.
Types ¶
type OrderedMap ¶
OrderedMap marshals map keys in a stable order.
func (OrderedMap[T]) MarshalJSON ¶
func (m OrderedMap[T]) MarshalJSON() ([]byte, error)
MarshalJSON encodes a map with sorted keys for deterministic output.