Skip to content

feat(cli): --json output for chats and messages - #30

Open
sinjab wants to merge 1 commit into
mingnz:mainfrom
sinjab:feat/json-output
Open

sinjab wants to merge 1 commit into
mingnz:mainfrom
sinjab:feat/json-output

Conversation

@sinjab

@sinjab sinjab commented Oct 15, 2026

Copy link
Copy Markdown

Adds --json to chats and messages: one JSON array of the raw API objects on stdout (diagnostics to stderr, nonzero exit on error, table output unchanged). Raw items keep properties/amsreferences/string ids, so file attachments (properties.files[].filePreview.previewUrl) become visible to reads for the first time — the table formatter drops them today. 9 new tests (output parses as JSON array; stdout clean on errors; index caching preserved; table path unchanged).

Print raw API objects as one JSON array on stdout (diagnostics to
stderr, errors exit nonzero, table output unchanged). Raw items keep
properties/amsreferences/string ids, so file attachments
(properties.files[].filePreview.previewUrl) become visible to reads
for the first time. Implemented via claude relay lane (dispatch
C2CE5820), reviewed + tested live by the calling session.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants