Documentation
¶
Overview ¶
Package state is the snapshot file a running console leaves behind so an agent can read the same facts without sampling again.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Doc ¶
type Doc struct {
sample.Snapshot
Git *gitscan.Report `json:"git,omitempty"`
Recommendations []advice.Rec `json:"recommendations"`
Queue []queue.Item `json:"queue"`
// Doors are the setup steps of the machine; the console shows the open ones.
Doors []doors.Door `json:"doors,omitempty"`
// Stoker is the stoker mode and the steps of its last run. Nil: the
// service keeps no stoker.
Stoker *stoker.View `json:"stoker,omitempty"`
// Ships are the pull requests sessions drive. Nil: the service reads
// none (no git, or a fixture).
Ships *ships.Report `json:"ships,omitempty"`
// Holds are the sessions nothing types into: parked, or held by the stoker.
Holds []holds.Hold `json:"holds,omitempty"`
// Reasons say why each quiet session is idle, by its pane.
Reasons map[string]idle.Reason `json:"reasons,omitempty"`
// StokerServer is the tmux server (-L) matchblox keeps the stoker
// agent on: a session whose pane is on it is the stoker's. Empty: none.
StokerServer string `json:"stoker_server,omitempty"`
// Agents are the agents a new session can start on this host: the
// installed ones of claude, codex, opencode and cursor-agent.
Agents []string `json:"agents,omitempty"`
// Renames are the names sessions take at their next rest, by pane.
Renames map[string]string `json:"renames,omitempty"`
}
Doc is everything the console knows at one moment.
Click to show internal directories.
Click to hide internal directories.