Skip to content

feat(chatarchive): add --format flag for machine-readable output (JSON) #92

@CodeMonkeyCybersecurity

Description

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

  • --format json outputs valid JSON Result struct to stdout
  • --format text (default) behaves identically to current behavior
  • E2E smoke test for JSON output parsing

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions