sync

package
v0.5.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 24, 2026 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EnsureEnabled

func EnsureEnabled(name string, enabled *bool) error

EnsureEnabled is a helper for command handlers.

func Run

func Run(root string) ([]warnings.Warning, error)

Run regenerates all configured outputs for the repo. Returns any sync-time warnings and an error if sync failed.

func RunWithProject

func RunWithProject(root string, project *config.ProjectConfig) ([]warnings.Warning, error)

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

func WriteVSCodeLaunchers(root string) error

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

type OrderedMap[T any] map[string]T

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL