cli

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Jul 24, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Claude      = "claude"
	Codex       = "codex"
	CursorCLI   = "cursor-cli"
	CopilotCLI  = "copilot-cli"
	OpencodeCLI = "opencode"
)

Supported agent CLIs for R12/R13 (KTD6).

Variables

View Source
var ErrNotFound = errors.New("cli binary not found on PATH")

ErrNotFound indicates the CLI binary is absent from PATH.

Functions

func InputStrategy

func InputStrategy(name string) pty.InputStrategy

InputStrategy returns how API input should be delivered for a CLI session.

func SessionForCLI

func SessionForCLI(name string) (config.Session, error)

SessionForCLI resolves name and returns session options, or an error.

Types

type Driver

type Driver struct {
	Name          string
	Bin           string
	Args          []string
	InputStrategy pty.InputStrategy
}

Driver describes how to spawn an agent CLI in a PTY.

func Resolve

func Resolve(name string) (Driver, error)

Resolve locates a supported CLI binary and default interactive args.

func (Driver) SessionOptions

func (d Driver) SessionOptions() config.Session

SessionOptions returns PTY session config that launches the driver.

Jump to

Keyboard shortcuts

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