cli

package
v0.3.3 Latest Latest
Warning

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

Go to latest
Published: Feb 28, 2026 License: MIT Imports: 32 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Version = "dev"

Version information (populated by goreleaser)

Functions

func Execute

func Execute() error

Execute 执行 CLI

func NewAcpCommand added in v0.3.2

func NewAcpCommand() *cobra.Command

NewAcpCommand creates the ACP CLI command group.

func SetVersion

func SetVersion(v string)

SetVersion sets the version from main package

Types

type AgentInfo

type AgentInfo struct {
	Name       string            `json:"name"`
	Workspace  string            `json:"workspace"`
	Model      string            `json:"model"`
	AgentDir   string            `json:"agent_dir,omitempty"`
	Bindings   []string          `json:"bindings,omitempty"`
	ConfigPath string            `json:"config_path"`
	CreatedAt  string            `json:"created_at,omitempty"`
	Metadata   map[string]string `json:"metadata,omitempty"`
}

AgentInfo represents agent configuration information

type ApprovalsConfig

type ApprovalsConfig struct {
	Behavior             string   `yaml:"behavior" json:"behavior"`
	Allowlist            []string `yaml:"allowlist" json:"allowlist"`
	AskForDangerousTools bool     `yaml:"ask_for_dangerous_tools" json:"ask_for_dangerous_tools"`
}

ApprovalsConfig represents the approval configuration

type SessionInfo

type SessionInfo struct {
	Key          string            `json:"key"`
	MessageCount int               `json:"message_count"`
	CreatedAt    time.Time         `json:"created_at"`
	UpdatedAt    time.Time         `json:"updated_at"`
	LastMessage  string            `json:"last_message,omitempty"`
	Channel      string            `json:"channel,omitempty"`
	ChatID       string            `json:"chat_id,omitempty"`
	Metadata     map[string]string `json:"metadata,omitempty"`
	Active       bool              `json:"active"`
}

SessionInfo represents session information for display

Directories

Path Synopsis
Package commands 提供可扩展的 slash 命令处理
Package commands 提供可扩展的 slash 命令处理

Jump to

Keyboard shortcuts

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