setup

package
v0.1.7 Latest Latest
Warning

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

Go to latest
Published: May 23, 2026 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Run

func Run(opts Options) error

Run is the entry point invoked by `codag setup`.

func RunDisable

func RunDisable(opts DisableOptions) error

RunDisable unregisters codag's MCP server from known agent config files. It does not remove auth tokens, provider config, or the codag binary.

func SetDeviceLoginRunner

func SetDeviceLoginRunner(fn func() error)

SetDeviceLoginRunner is called by cmd/setup.go init() to inject the real device-flow runner. Lets internal/setup stay free of cmd imports.

Types

type Agent

type Agent struct {
	Name           string // human-readable
	LocationHint   string // where we found it (CLI on PATH, config dir, etc.)
	RegisterMethod string // describe the path we'll take
	Register       func(codagBin string) error
}

Agent is one MCP-aware agent we know how to register codag with.

type DisableOptions

type DisableOptions struct {
	PrintOnly bool
}

type MCPConfigTarget

type MCPConfigTarget struct {
	Name string
	Path string
}

MCPConfigTarget is one known agent config file that may contain a codag MCP server entry. Used by `codag disable`.

type Options

type Options struct {
	PrintOnly     bool
	SkipAuth      bool
	SkipAgents    bool
	SkipProviders bool
	SkipWarm      bool
}

Jump to

Keyboard shortcuts

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