Documentation
¶
Index ¶
- Constants
- type Agent
- type AgentInfo
- type AuthMethod
- type CheckResult
- type Deps
- type Input
- type LoginStatus
- type NodeInfo
- type Preset
- type PresetStatus
- type Problem
- type Sandbox
- type Service
- func (s *Service) CancelLogin(name string) (LoginStatus, error)
- func (s *Service) Check(ctx context.Context, name string) (CheckResult, error)
- func (s *Service) Create(ctx context.Context, in Input) (Agent, error)
- func (s *Service) Delete(ctx context.Context, name string) error
- func (s *Service) Get(ctx context.Context, name string) (Agent, error)
- func (s *Service) InstallPreset(ctx context.Context, id string) (PresetStatus, error)
- func (s *Service) List(ctx context.Context) ([]Agent, error)
- func (s *Service) LoginStatus(name string) (LoginStatus, error)
- func (s *Service) Presets(ctx context.Context) ([]PresetStatus, error)
- func (s *Service) SetEnabled(ctx context.Context, name string, enabled bool) (Agent, error)
- func (s *Service) StartLogin(ctx context.Context, name, methodID string) (LoginStatus, error)
- func (s *Service) SubmitLoginCode(ctx context.Context, name, code string) (LoginStatus, error)
- func (s *Service) Update(ctx context.Context, name string, in Input) (Agent, error)
Constants ¶
View Source
const ( ProblemCommandNotFound = "command_not_found" ProblemStartFailed = "start_failed" ProblemHandshakeFailed = "handshake_failed" ProblemDisabled = "disabled" )
View Source
const ( InstallIdle = "idle" InstallRunning = "installing" InstallSucceeded = "installed" InstallFailed = "failed" )
View Source
const ( ProblemNodeMissing = "node_missing" ProblemNodeTooOld = "node_too_old" ProblemNpmMissing = "npm_missing" ProblemInstallFailed = "install_failed" )
View Source
const ( LoginRunning = "running" LoginWaiting = "waiting_for_code" LoginSucceeded = "succeeded" LoginFailed = "failed" LoginCancelled = "cancelled" )
View Source
const PresetClaudeCode = "claude-code"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Agent ¶
type Agent struct {
ID string `json:"id"`
Name string `json:"name"`
Title string `json:"title"`
Enabled bool `json:"enabled"`
Preset string `json:"preset,omitempty"`
Version string `json:"version,omitempty"`
Command string `json:"command"`
Args []string `json:"args"`
Env map[string]string `json:"env"`
Paths []runtimetypes.ExternalACPPath `json:"paths"`
Modes []string `json:"modes"`
McpServers []string `json:"mcpServers"`
Sandbox Sandbox `json:"sandbox"`
CreatedAt time.Time `json:"createdAt"`
UpdatedAt time.Time `json:"updatedAt"`
}
type AuthMethod ¶
type CheckResult ¶
type CheckResult struct {
Ready bool `json:"ready"`
Agent *AgentInfo `json:"agent,omitempty"`
AuthMethods []AuthMethod `json:"authMethods"`
SignedIn *bool `json:"signedIn,omitempty"`
AuthLabel string `json:"authLabel,omitempty"`
Problem *Problem `json:"problem,omitempty"`
CheckedAt time.Time `json:"checkedAt"`
}
type Deps ¶
type Deps struct {
Agents agentregistryservice.Service
DB libdb.DBManager
ContenoxDir string
Home string
Tracker libtracker.ActivityTracker
LookPath func(file string) (string, error)
}
type Input ¶
type Input struct {
Name string `json:"name"`
Enabled *bool `json:"enabled,omitempty"`
Command string `json:"command"`
Args []string `json:"args"`
Env map[string]string `json:"env"`
Paths []runtimetypes.ExternalACPPath `json:"paths"`
Modes []string `json:"modes"`
McpServers []string `json:"mcpServers"`
}
type LoginStatus ¶
type Preset ¶
type Preset struct {
ID string `json:"id"`
Title string `json:"title"`
AgentName string `json:"agentName"`
Package string `json:"package"`
Version string `json:"version"`
MinNode int `json:"minNode"`
Modes []string `json:"modes"`
Homepage string `json:"homepage"`
// contains filtered or unexported fields
}
type PresetStatus ¶
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
func (*Service) CancelLogin ¶
func (s *Service) CancelLogin(name string) (LoginStatus, error)
func (*Service) InstallPreset ¶
func (*Service) LoginStatus ¶
func (s *Service) LoginStatus(name string) (LoginStatus, error)
func (*Service) SetEnabled ¶
func (*Service) StartLogin ¶
func (*Service) SubmitLoginCode ¶
Click to show internal directories.
Click to hide internal directories.