Documentation
¶
Index ¶
- Constants
- func DispatchControlRequest(ctx context.Context, request desktopcontrol.Request) (any, error)
- func PathForBinary(binaryPath string) string
- func PrepareCoreEnvironment(runtimeRoot string) error
- func RunConfigCommand(ctx context.Context, args []string, stdout, stderr io.Writer) error
- func RunServiceCommand(ctx context.Context, args []string, stdout, stderr io.Writer) error
- func RunTunnelCommand(ctx context.Context, args []string, stdout, stderr io.Writer) error
- func Save(path string, manifest Manifest) error
- type ConfigUpdateRequest
- type Manifest
- type ServiceStatus
- type TunnelConfigureRequest
- type TunnelStatus
Constants ¶
View Source
const SchemaVersion = 1
Variables ¶
This section is empty.
Functions ¶
func DispatchControlRequest ¶
DispatchControlRequest 是后台核心的本地控制 API。这里只暴露桌面日常管理能力, 安装、卸载和提权仍由系统安装器负责。
func PathForBinary ¶
func PrepareCoreEnvironment ¶
func RunConfigCommand ¶
func RunServiceCommand ¶
func RunTunnelCommand ¶
Types ¶
type ConfigUpdateRequest ¶
type ConfigUpdateRequest struct {
RuntimeRoot string
Port int
LogLevel string
NexusEndpoint string
NexusTokenFile string
BrowserEnabled bool
BrowserRunnerDir string
BrowserNodePath string
ACPEnabled bool
ACPAgent string
ACPAllowedRoots []string
}
ConfigUpdateRequest 是桌面端保存日常运行设置时使用的结构化请求。
type Manifest ¶
type Manifest struct {
SchemaVersion int `json:"schema_version"`
Version string `json:"version,omitempty"`
InstallRoot string `json:"install_root,omitempty"`
AgentDockBinary string `json:"agentdock_binary"`
TrayBinary string `json:"tray_binary,omitempty"`
AgentDockLauncher string `json:"agentdock_launcher,omitempty"`
AgentDockTaskName string `json:"agentdock_task_name,omitempty"`
PrivilegeMode string `json:"privilege_mode,omitempty"`
CloudflaredBinary string `json:"cloudflared_binary,omitempty"`
CloudflaredLauncher string `json:"cloudflared_launcher,omitempty"`
StartupValueName string `json:"startup_value_name,omitempty"`
TrayStartupValueName string `json:"tray_startup_value_name,omitempty"`
CloudflaredStartupValueName string `json:"cloudflared_startup_value_name,omitempty"`
Host string `json:"host"`
Port int `json:"port"`
LocalMCPURL string `json:"local_mcp_url"`
TunnelMode string `json:"tunnel_mode"`
PublicURL string `json:"public_url,omitempty"`
InstallChannel string `json:"install_channel"`
}
func LoadForBinary ¶
func (Manifest) UsesScheduledTask ¶
type ServiceStatus ¶
type ServiceStatus struct {
Running bool `json:"running"`
Healthy bool `json:"healthy"`
StartupEnabled bool `json:"startup_enabled"`
}
ServiceStatus 是桌面端和 CLI 共享的结构化运行状态。 生命周期操作统一返回 JSON,避免桌面端继续解析 PowerShell 文本。
type TunnelConfigureRequest ¶
Click to show internal directories.
Click to hide internal directories.