host

package
v0.1.0-beta.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 10, 2026 License: Apache-2.0 Imports: 35 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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

Constants

This section is empty.

Variables

This section is empty.

Functions

func Cleanup

func Cleanup(ctx context.Context, repo, short string) error

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

func Land(ctx context.Context, repo, runBranch, base string) (string, error)

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 Print

func Print(e Event)

Print is a notify func for a terminal: one line per event.

func Provision

func Provision(ctx context.Context, cfg *config.Config, st *config.State) error

Provision creates the roster's addresses that don't exist yet and saves a token for each.

func Run

func Run(ctx context.Context, cfg *config.Config, st *config.State, notify func(Event)) error

Run runs the roster until ctx ends, reporting what happens to notify (nil prints).

func RunDir

func RunDir(repo, short string) (string, error)

RunDir is the worktree of the run branch for a run's short id, the directory runBranch creates, so that the TUI can find where the run's code lives.

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.

type Host

type Host struct {
	// contains filtered or unexported fields
}

Host is the running roster.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL