You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
feat(cli): machine-readable output for agent callers #86
An agent can drive every command in one output mode and branch on failures without parsing prose.
--json exists only on read commands today, which contradicts the CLI's own spec, where it is declared a total contract. The gap matters most on creation: wayful step create prints the new step's id inside a sentence, and under the GitHub backend that id is an unguessable issue number, so an agent must pattern-match prose to learn the identifier it needs for its next three commands.
Failures are similarly opaque to a script. Every one exits 2 regardless of cause, so a map that does not exist, a rejected credential, a rate limit, and a failed integrity check are indistinguishable to a caller.
Records also carry no backend identity. Nothing in any output gives a github-backed map, step, or goal its issue URL, so an agent cannot hand a human a link to the thing it just changed.
Deliberately outside the GitHub UX epic (#78) and lower priority than the work in it: agents can work from the human-readable output in the meantime.
Acceptance criteria
Every command accepts --json, including creation and lifecycle commands.
wayful step create --json returns the created step, including its id.
A failure under --json emits a single object carrying the message and a stable machine-readable code, and the codes are documented.
wayful map validate keeps its existing shape and its exit code.
Github-backed maps, steps, and goals carry their issue URL in JSON output.
Human-readable output is unchanged except where a URL is added.
Activity