Documentation
¶
Overview ¶
Package setup owns local coding-client detection and MCP registration.
Index ¶
- Variables
- func CheckRegistration(client Client, home string) (bool, string, error)
- func CodexSkillInstalled(home string) (bool, string, error)
- func CodexSkillPath(home string) string
- func ResolveNPMVersion(version string) (string, error)
- type Client
- type CodexSkillResult
- type Launcher
- type Operation
- type Options
- type Report
- type Result
Constants ¶
This section is empty.
Variables ¶
var AllClients = []Client{Codex, Claude}
AllClients lists supported adapters in deterministic application order.
Functions ¶
func CheckRegistration ¶
CheckRegistration reports whether the selected client has a GitContribute MCP entry without changing its configuration.
func CodexSkillInstalled ¶ added in v0.8.0
CodexSkillInstalled reports whether the managed discovery skill is current.
func CodexSkillPath ¶ added in v0.8.0
CodexSkillPath returns the managed discovery skill path for a home directory.
func ResolveNPMVersion ¶
ResolveNPMVersion returns a registry-safe package version for CLI installation and private runtime directory names. It removes one release-tag "v" prefix and maps empty or development versions to the explicit "latest" tag.
Types ¶
type CodexSkillResult ¶ added in v0.8.0
type CodexSkillResult struct {
Path string `json:"path,omitempty"`
Status string `json:"status"`
Error string `json:"error,omitempty"`
}
CodexSkillResult reports the managed discovery-skill effect.
type Launcher ¶
Launcher is the exact process command stored in a coding client's MCP configuration.
func ResolveLauncher ¶
ResolveLauncher returns a durable absolute MCP command. The setup application must first install an ephemeral package-runner executable into a stable product-owned location and pass that path explicitly.
type Operation ¶
type Operation string
Operation identifies whether client-owned MCP entries are configured or removed.
type Options ¶
type Options struct {
Operation Operation
Clients []Client
All bool
DryRun bool
Home string
Executable string
}
Options controls coding-client MCP registration.
type Report ¶
type Report struct {
Operation Operation `json:"operation"`
DryRun bool `json:"dry_run"`
Launcher Launcher `json:"launcher"`
Results []Result `json:"results"`
CodexSkill CodexSkillResult `json:"codex_skill,omitempty"`
}