mirror of
https://github.com/Finesssee/ProxyPilot.git
synced 2026-11-19 02:17:46 +00:00
This release removes the need for a separate proxypilot-engine.exe binary. The ProxyPilot.exe tray app now runs the proxy service in-process using the cliproxy SDK builder pattern. Changes: - Add internal/embedded package for in-process server management - Update desktopctl to support embedded mode alongside subprocess mode - Clean up vestigial -exe flag and engine binary references - Update package scripts to build only single binary - Bump version to 0.1.2 The embedded engine in cmd/cliproxytray was already implemented; this commit cleans up the remaining references to the old two-binary architecture.
32 lines
995 B
Go
32 lines
995 B
Go
package desktopctl
|
|
|
|
import "time"
|
|
|
|
type Status struct {
|
|
Running bool `json:"running"`
|
|
Version string `json:"version,omitempty"`
|
|
Managed bool `json:"managed"`
|
|
AutoStartProxy bool `json:"auto_start_proxy,omitempty"`
|
|
PID int `json:"pid,omitempty"`
|
|
Port int `json:"port,omitempty"`
|
|
ThinkingPort int `json:"thinking_port,omitempty"`
|
|
ThinkingRunning bool `json:"thinking_running,omitempty"`
|
|
BaseURL string `json:"base_url,omitempty"`
|
|
ConfigPath string `json:"config_path,omitempty"`
|
|
ExePath string `json:"exe_path,omitempty"`
|
|
StartedAt time.Time `json:"started_at,omitempty"`
|
|
LastError string `json:"last_error,omitempty"`
|
|
}
|
|
|
|
type StartOptions struct {
|
|
RepoRoot string
|
|
ConfigPath string
|
|
ExePath string
|
|
LogDir string
|
|
Embedded bool // If true, run server in-process instead of spawning subprocess
|
|
}
|
|
|
|
type StopOptions struct {
|
|
PID int
|
|
}
|