Documentation
¶
Overview ¶
Package host runs the roster on this machine: the lead, the workers and the reviewer, each a Claude Code agent behind its own Lagrange tunnel. Every message between them goes through the Lagrange server as an A2A task.
Index ¶
- func Cleanup(ctx context.Context, repo, short string) error
- func Land(ctx context.Context, repo, runBranch, base string) (string, error)
- func Print(e Event)
- func Provision(ctx context.Context, cfg *config.Config, st *config.State) error
- func Run(ctx context.Context, cfg *config.Config, st *config.State, notify func(Event)) error
- func RunDir(repo, short string) (string, error)
- type Event
- type Host
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Cleanup ¶
Cleanup removes what run short left behind: its worktrees, its branches (halo/<short> and halo/<short>-*) and its cache directory. Call it only after Land succeeded.
func Land ¶
Land merges the run's branch into base without leaving the user's checkout in a broken state. If base is checked out in repo, it makes a merge commit there (and refuses when tracked files have uncommitted changes); otherwise it only fast-forwards base. It returns a short summary of what was merged.
func Provision ¶
Provision creates the roster's addresses that don't exist yet and saves a token for each.
Types ¶
type Event ¶
type Event struct {
Kind string // "start", "online", "error", "acp"
Agent string // the handle, for "online" and "acp"
Text string // for "acp", the session update type
Task string // for "acp", the A2A task the agent works on
// Context is the A2A context of Task: one ACP session per context.
Context string
Data json.RawMessage // for "acp", the session update as the agent sent it
}
Event is something the running roster reports: an agent connected, where the logs are, an error.