Skip to main content

Module schema

Module schema 

Source
Expand description

Shared output schema types for agent-exec v0.1.

Stdout output is JSON by default; YAML when –yaml is set. Tracing logs go to stderr. Schema version is fixed at “0.1”.

Structs§

CompletionEvent
The job.finished event payload.
CompletionEventRecord
Persisted in completion_event.json after terminal state is reached.
CreateData
Response for create command.
DeleteData
Response for the delete command.
DeleteJobResult
Per-job result entry in a delete response.
ErrorDetail
ErrorResponse
Top-level envelope for error responses.
GcData
Response for the gc command.
GcJobResult
Per-job result entry in a gc response.
InstallSkillsData
Response for install-skills command.
InstalledSkillSummary
Summary of a single installed skill, included in install_skills responses.
JobMeta
Persisted in meta.json at job creation time.
JobMetaJob
Nested job block within meta.json.
JobState
Persisted in state.json, updated as the job progresses.
JobStateJob
Nested job block within state.json.
JobStateResult
Nested result block within state.json.
JobSummary
Summary of a single job, included in list responses.
KillData
Response for kill command.
ListData
Response for list command.
NotificationConfig
Notification configuration persisted in meta.json.
NotifySetData
Response for notify set command.
OutputMatchConfig
Configuration for output-match notifications.
OutputMatchEvent
The job.output.matched event payload.
OutputMatchEventRecord
Delivery record for a single output-match event; appended to notification_events.ndjson.
Response
Top-level envelope used for every successful response.
RunData
Response for run command.
SchemaData
Response for schema command.
SinkDeliveryResult
Delivery result for a single notification sink.
Snapshot
Snapshot of stdout/stderr tail at a point in time.
StatusData
Response for status command.
TagSetData
Response for tag set command.
TailData
Response for tail command.
WaitData
Response for wait command.

Enums§

JobStatus
OutputMatchStream
Stream selector for output-match notification.
OutputMatchType
Match type for output-match notification.

Constants§

SCHEMA_VERSION

Functions§

set_yaml_output
Set the output format. Call once from main before running any subcommand.