Documentation
¶
Overview ¶
Package brokerclient holds the low-level transport for talking to the boid broker over its UNIX socket, plus a self-contained JobDone helper.
It is a leaf package: it deliberately does NOT import internal/sandbox so that both the sandbox CLI shim (internal/sandbox/boid_shim.go) and the go-native sandbox runner (internal/sandbox/runner) can share the transport without an import cycle. The wire structs below mirror the JSON shapes the broker decodes (internal/sandbox/protocol.go: ExecRequest / ExecResponse / BoidRequest) field-for-field; keep the json tags in sync.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func JobDone ¶
JobDone posts a `boid job done` builtin request to the broker. It replaces the former EXIT-trap `boid job done --exit-code … --output-file …` CLI fork-exec: the go runner calls this directly from runner-inner-child.
cwd must be the sandbox working directory (the same cwd the EXIT trap ran in) because the broker validates it against the token's project/worktree root (validateBoidBuiltinCwd). output carries the agent's payload_patch.json (or the stdout-capture fallback); an empty output is valid and matches the bare `boid job done --exit-code` form.
Types ¶
This section is empty.