Problem
The archive result is currently only emitted via structured logging (otelzap). For scripting and CI integration, operators need machine-readable output without parsing log lines.
Proposed fix
Add --format flag with values: text (default, current behavior) and json (outputs Result struct as JSON to stdout).
eos create chat-archive --format json | jq '.unique_files'
References
- Eos CLI patterns: human-centric output with machine-readable escape hatch
- Similar to
kubectl get -o json, gh issue list --json
Acceptance criteria
Problem
The archive result is currently only emitted via structured logging (otelzap). For scripting and CI integration, operators need machine-readable output without parsing log lines.
Proposed fix
Add
--formatflag with values:text(default, current behavior) andjson(outputsResultstruct as JSON to stdout).References
kubectl get -o json,gh issue list --jsonAcceptance criteria
--format jsonoutputs valid JSON Result struct to stdout--format text(default) behaves identically to current behavior