Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ClearProcessHostDriver ¶ added in v0.0.72
func ClearProcessHostDriver()
ClearProcessHostDriver clears the process default (tests).
func Handle ¶
Handle is the full agent-run CLI entrypoint for args after the program name (os.Args[1:]). Same command surface as today's cmd/agent-run: web, run, resume, attach, send, msg, snapshot, watch, sessions, status, tty, pty, top-level help, --agent-runner, and internal serve/stub paths. Success (including help) returns nil; failures return an error for the thin main to print and exit 1.
func SetProcessHostDriver ¶ added in v0.0.72
func SetProcessHostDriver(d agentdriver.Driver)
SetProcessHostDriver sets the default host Driver for this process when Opts leave Driver zero. Used by embedding hosts (spl agent-run); bare agent-run leaves this unset so serve falls back to agentdriver.DefaultSelf.
Types ¶
type FrontendSource ¶ added in v0.0.71
type FrontendSource string
FrontendSource names where the SPA tree came from.
const ( FrontendSourceEmbed FrontendSource = "embed" FrontendSourceCache FrontendSource = "cache" FrontendSourceDownload FrontendSource = "download" FrontendSourceA1 FrontendSource = "a1" )
type ResolvedFrontend ¶ added in v0.0.71
type ResolvedFrontend struct {
FS fs.FS
Source FrontendSource
CacheDir string
// EnsureErr is set when download was attempted and failed (A1 fallback).
EnsureErr error
}
ResolvedFrontend is the result of resolveAgentRunFrontend. When Source is FrontendSourceA1, FS is nil and callers should serve the A1 shell.
Source Files
¶
- assets_cmd.go
- attach_cmd.go
- frontend_resolve.go
- handle.go
- host_driver.go
- msg_cmd.go
- pty_cmd.go
- resume_cmd.go
- run_cmd.go
- runner_validate.go
- send_cmd.go
- serve_cmd.go
- session_env.go
- session_id.go
- sessions.go
- sessions_list.go
- sessions_print.go
- snapshot_cmd.go
- status.go
- store.go
- tty_cmd.go
- watch_cmd.go
- web.go
- web_fixture.go
- web_handlers.go
- web_run_config.go
- web_static.go
- web_terminal.go