acp

package
v1.3.103 Latest Latest
Warning

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

Go to latest
Published: Oct 12, 2026 License: MIT Imports: 42 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsStartupError

func IsStartupError(err error) bool

IsStartupError reports whether Run failed before ACP initialization. CLI adapters use this to avoid appending an unstructured Cobra error after the machine-readable stderr line has already been emitted.

func Run

func Run(opts RunOptions) (runErr error)

Run starts the ACP stdio server.

Types

type RunOptions

type RunOptions struct {
	Version    string
	Provider   string
	Model      string
	Mode       string
	Thinking   string
	Sandbox    bool
	Verbose    bool
	Debug      bool
	MultiAgent bool
	Delegate   bool
	Workflows  bool
	WebSearch  bool
	Browser    bool
	Artifact   bool
	// PermissionTimeout and QuestionTimeout configure the approval and
	// question decision deadlines (Go duration, injected from CLI flags or
	// MOTHX_ACP_PERMISSION_TIMEOUT / MOTHX_ACP_QUESTION_TIMEOUT). Zero values
	// fall back to defaultPermissionTimeout / defaultQuestionTimeout.
	PermissionTimeout time.Duration
	QuestionTimeout   time.Duration
}

Jump to

Keyboard shortcuts

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