cli

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Feb 13, 2026 License: MIT Imports: 30 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 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 JobData

type JobData struct {
	ID        string    `json:"id"`
	Name      string    `json:"name"`
	Schedule  string    `json:"schedule"`
	Task      string    `json:"task"`
	Message   string    `json:"message,omitempty"`
	EventType string    `json:"event_type,omitempty"`
	Enabled   bool      `json:"enabled"`
	CreatedAt time.Time `json:"created_at"`
	UpdatedAt time.Time `json:"updated_at"`
}

type RunHistory

type RunHistory struct {
	JobID      string    `json:"job_id"`
	JobName    string    `json:"job_name"`
	StartedAt  time.Time `json:"started_at"`
	FinishedAt time.Time `json:"finished_at"`
	Status     string    `json:"status"`
	Error      string    `json:"error,omitempty"`
}

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