Documentation
¶
Overview ¶
Package computerhost keeps the state of computer steps that the server, CLI and executor share.
Index ¶
Constants ¶
View Source
const ( // AgentProvider identifies computer steps in agent sessions. AgentProvider = "computer" // DataDirName is the directory under the Dagu data directory that holds // computer step state. DataDirName = "computer" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Record ¶
type Record struct {
DAGName string `json:"dagName"`
DAGRunID string `json:"dagRunId"`
StepName string `json:"stepName"`
// Generation is the agent-session generation that paused.
Generation int `json:"generation"`
// Deadline bounds how long the step waits to be resumed.
Deadline time.Time `json:"deadline"`
// Cursor is the index of the next operation a resumed step runs.
Cursor int `json:"cursor"`
// Outputs holds values extracted before the step paused.
Outputs map[string]any `json:"outputs,omitempty"`
// ReplayPending and ReplayUsed carry the step's replay cache changes
// across the pause: the act operations it recorded or dropped, applied
// only if the step succeeds, and the recordings it replayed, as they
// were read.
ReplayPending map[string]json.RawMessage `json:"replayPending,omitempty"`
ReplayUsed map[string]json.RawMessage `json:"replayUsed,omitempty"`
}
Record describes a computer step that paused for input. It exists only while the step waits. A DAG run holds one record per step.
type Store ¶
type Store struct {
// contains filtered or unexported fields
}
Store persists records as private files.
func (*Store) Delete ¶
Delete removes the record of a step of a DAG run. A missing record is not an error.
Click to show internal directories.
Click to hide internal directories.