configure

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Aug 10, 2026 License: MIT Imports: 13 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SortChanges

func SortChanges(changes []Change)

SortChanges keeps plan output stable across platforms and tests.

Types

type Agent

type Agent struct {
	ID       AgentID
	Name     string
	Detected bool
}

Agent describes a supported agent and whether it appears to be installed.

type AgentID

type AgentID string

AgentID identifies an agent integration supported by configure.

const (
	// Codex identifies the Codex integration.
	Codex AgentID = "codex"
	// ClaudeCode identifies the Claude Code integration.
	ClaudeCode AgentID = "claude-code"
	// Cursor identifies the Cursor integration.
	Cursor AgentID = "cursor"
)

func ParseAgent

func ParseAgent(value string) (AgentID, error)

ParseAgent validates an agent flag value.

type ApplyFailure

type ApplyFailure struct {
	Change Change
	Err    error
}

ApplyFailure records one configuration change that could not be applied.

type ApplyResult

type ApplyResult struct {
	Applied  []Change
	Failures []ApplyFailure
}

ApplyResult reports every successful and failed configuration change.

type Change

type Change struct {
	Agent     AgentID
	AgentName string
	Component string
	Action    string
	Target    string
}

Change is one user-visible configuration mutation.

type Manager

type Manager struct {
	// contains filtered or unexported fields
}

Manager detects, plans, applies, and checks agent integrations.

func New

func New(profile string) (*Manager, error)

New creates a manager for the current user and executable.

func (*Manager) Agents

func (m *Manager) Agents() []Agent

Agents returns all supported agents with local detection results.

func (*Manager) Apply

func (m *Manager) Apply(ctx context.Context, changes []Change) ApplyResult

Apply performs every change in a previously confirmed plan and reports all outcomes.

func (*Manager) Plan

func (m *Manager) Plan(ctx context.Context, opts Options) ([]Change, error)

Plan returns the exact configuration changes that Apply will perform.

func (*Manager) Statuses

func (m *Manager) Statuses(ctx context.Context) []Status

Statuses returns local MCP and skill status for detected agents.

type Options

type Options struct {
	Agents    []AgentID
	SkipMCP   bool
	SkipSkill bool
	Force     bool
}

Options controls planning and applying configuration.

type Status

type Status struct {
	Agent     AgentID
	AgentName string
	MCP       bool
	Skill     bool
}

Status describes the local Disbug integration for one detected agent.

Jump to

Keyboard shortcuts

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