Documentation
¶
Index ¶
- func ClearState() error
- func DesktopFrontend() http.Handler
- func DesktopProxy() http.Handler
- func ForceStop(state State)
- func ForceStopPID(pid int)
- func GlobalAgentsHandlerForTest() http.HandlerFunc
- func LogPath() (string, error)
- func QuotaErrorFromBodyForTest(status string, body []byte) string
- func Run(ctx context.Context, options Options) error
- func RunningVersion() string
- func SaveState(state State) error
- func StatePath() (string, error)
- type Health
- type Options
- type QuotaBarForTest
- type ReachableAddress
- type State
- type UpdateAPIForTest
- func (a *UpdateAPIForTest) ServeHTTP(w http.ResponseWriter, r *http.Request)
- func (a *UpdateAPIForTest) SetCheck(check func(context.Context) updater.CheckResult)
- func (a *UpdateAPIForTest) SetLaunch(launch func(string, string, string) error)
- func (a *UpdateAPIForTest) SetPrepare(prepare func(context.Context, string, io.Writer) (string, string, error))
- func (a *UpdateAPIForTest) SetStatus(phase, latest, staged string)
- func (a *UpdateAPIForTest) Status() (phase, message string)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ClearState ¶ added in v2026.909.0
func ClearState() error
func DesktopFrontend ¶ added in v2026.1009.0
DesktopFrontend makes the daemon the source of the native client's UI assets. Reloading a client after an update loads the daemon's matching frontend.
func DesktopProxy ¶ added in v2026.1003.0
DesktopProxy connects the native WebView to the shared daemon. It adapts the native origin to the desktop HTTP origin understood by older running daemons, so installing a new GUI does not require interrupting their active sessions. The caller must serve this handler exclusively on a loopback listener.
func ForceStop ¶ added in v2026.909.0
func ForceStop(state State)
ForceStop terminates the server and, when present, its separately managed Vite process group. Detached Solomon and Vite commands are process-group leaders, while a foreground "server run" may share its terminal's group; forceStopProcess handles both cases without killing an unrelated shell.
func ForceStopPID ¶ added in v2026.909.0
func ForceStopPID(pid int)
func GlobalAgentsHandlerForTest ¶ added in v2026.1010.0
func GlobalAgentsHandlerForTest() http.HandlerFunc
GlobalAgentsHandlerForTest exposes the handler to tests in test/.
func QuotaErrorFromBodyForTest ¶ added in v2026.924.0
func RunningVersion ¶ added in v2026.1009.0
func RunningVersion() string
Types ¶
type Health ¶ added in v2026.909.0
type QuotaBarForTest ¶ added in v2026.924.0
QuotaBarForTest is a narrow test view of a provider quota bar.
func QuotaBarsForTest ¶ added in v2026.924.0
func QuotaBarsForTest(payload any, kind string) []QuotaBarForTest
QuotaBarsForTest exposes the pure parser to external package tests.
type ReachableAddress ¶ added in v2026.909.0
type State ¶ added in v2026.909.0
type State struct {
Home string `json:"home,omitempty"`
PID int `json:"pid"`
URL string `json:"url"`
LocalURL string `json:"localhost_url"`
Addresses []ReachableAddress `json:"addresses,omitempty"`
StartedAt time.Time `json:"started_at"`
Version string `json:"version"`
Commit string `json:"commit,omitempty"`
CommitTime time.Time `json:"commit_time,omitempty"`
SourceTree string `json:"source_tree,omitempty"`
Mode string `json:"mode"`
Vite string `json:"vite"`
ViteURL string `json:"vite_url,omitempty"`
VitePID int `json:"vite_pid,omitempty"`
DevDir string `json:"dev_directory,omitempty"`
GOOS string `json:"goos"`
GoVersion string `json:"go_version"`
}
func EnsureRunning ¶ added in v2026.1003.0
EnsureRunning reuses a healthy local daemon or starts it through the CLI. cliPath must point to solomon, since the daemon also launches CLI PTY children.
func LoadRunningState ¶ added in v2026.1009.3
LoadRunningState recovers lost startup metadata from the configured local daemon. A home match prevents one installation from adopting another's daemon.
type UpdateAPIForTest ¶ added in v2026.1010.0
type UpdateAPIForTest struct {
// contains filtered or unexported fields
}
UpdateAPIForTest provides controlled dependencies and synchronized state access for the external update API tests.
func NewUpdateAPIForTest ¶ added in v2026.1010.0
func NewUpdateAPIForTest(ctx context.Context, build State) *UpdateAPIForTest
func (*UpdateAPIForTest) ServeHTTP ¶ added in v2026.1010.0
func (a *UpdateAPIForTest) ServeHTTP(w http.ResponseWriter, r *http.Request)
func (*UpdateAPIForTest) SetCheck ¶ added in v2026.1010.0
func (a *UpdateAPIForTest) SetCheck(check func(context.Context) updater.CheckResult)
func (*UpdateAPIForTest) SetLaunch ¶ added in v2026.1010.0
func (a *UpdateAPIForTest) SetLaunch(launch func(string, string, string) error)
func (*UpdateAPIForTest) SetPrepare ¶ added in v2026.1010.0
func (*UpdateAPIForTest) SetStatus ¶ added in v2026.1010.0
func (a *UpdateAPIForTest) SetStatus(phase, latest, staged string)
func (*UpdateAPIForTest) Status ¶ added in v2026.1010.0
func (a *UpdateAPIForTest) Status() (phase, message string)
Source Files
¶
- active_agents_api.go
- api_test_support.go
- chat_api.go
- client.go
- customization_api.go
- desktop_proxy.go
- frontend.go
- gui_settings_api.go
- listener_unix.go
- model_api.go
- process_unix.go
- project_api.go
- project_file_operations.go
- provider_quota.go
- provider_quota_parse.go
- service.go
- slash_api.go
- source_format_api.go
- terminal.go
- terminal_api.go
- terminal_process.go
- terminal_process_unix.go
- update_api.go