Documentation
¶
Overview ¶
Package hostconfig defines the ACP process configuration shared by Agent definitions, runtime adapters, and native agent implementations. It contains no persisted service object or management lifecycle.
Index ¶
Constants ¶
View Source
const ( CodexModeAdapter = "adapter" CodexModeAppServer = "app_server" )
Variables ¶
This section is empty.
Functions ¶
func ValidateCWDAllowed ¶
Types ¶
type CodexConfig ¶
type CodexConfig struct {
Mode string `json:"mode,omitempty"`
AdapterCommand string `json:"adapter_command,omitempty"`
AdapterArgs []string `json:"adapter_args,omitempty"`
AppServerCommand string `json:"app_server_command,omitempty"`
AppServerArgs []string `json:"app_server_args,omitempty"`
DefaultProfile string `json:"default_profile,omitempty"`
InitialAuthMode string `json:"initial_auth_mode,omitempty"`
TraceJSON bool `json:"trace_json,omitempty"`
RetryTurnOnCrash bool `json:"retry_turn_on_crash,omitempty"`
}
type Config ¶
type Config struct {
OwnerID string `json:"-"`
AgentType string `json:"agent_type"`
CWD string `json:"cwd"`
AllowedRoots []string `json:"allowed_roots,omitempty"`
DefaultModel string `json:"default_model,omitempty"`
Env map[string]string `json:"env,omitempty"`
ConfigOverrides map[string]string `json:"config_overrides,omitempty"`
IdleTTL time.Duration `json:"idle_ttl,omitempty"`
MaxInstances int `json:"max_instances,omitempty"`
PermissionMode string `json:"permission_mode,omitempty"`
Codex *CodexConfig `json:"codex,omitempty"`
}
Config is the process-facing ACP runtime configuration. OwnerID is assigned by the runtime adapter from the owning Agent and is never serialized as an independent management identity.
func (Config) Fingerprint ¶
Fingerprint returns a canonical process-config fingerprint. The Agent owner is validated but excluded from the serialized configuration.
Click to show internal directories.
Click to hide internal directories.