Skip to content

[FEATURE] Add session list --json flag for machine-readable output #124

@ranveerd11

Description

@ranveerd11

Feature Request

Add --json flag to session list command for machine-readable output, consistent with session search --json.

Current Behavior

ainative-code session list --json
# Error: unknown flag: --json

Expected Behavior

ainative-code session list --json
# [{"id": "abc123", "title": "My Session", "status": "active", ...}]

Use Cases

  1. Scripting and automation
  2. Piping to jq for filtering
  3. Integration with other tools
  4. Consistent with session search --json

Suggested Implementation

Add --json or -j flag that outputs JSON array of sessions.

Environment

  • Version: v0.1.8
  • Platform: darwin/arm64

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions