rea/scripts/verify/javascript
Kaoru0822 ca3131b36c
perf(cli): write compact JSON when output is not a terminal (#1413)
`--json` / `--format json` always indented its streamed result. Agents and
scripts read REA through pipes and redirects, where indentation carries no
information: on real application results it added 16-45% model tokens
(o200k proxy) and 25-73% bytes. The skill's CLI fallback uses `--json`.

Indent only when stdout is a TTY, as `gh --json` does; piped or redirected
JSON is compact. The JSON value, `jsonl`, `--filter-output`,
`--full-output` and the token-window paths are unchanged. `jq .` restores
indentation for files.

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-09 20:29:48 -07:00
..
application-workflows.mjs refactor(javascript): group domain semantics and contracts (#907) 2026-10-07 17:16:58 +08:00
digests.mjs refactor: use canonical implementations and types directly 2026-10-09 23:35:19 +08:00
output.mjs perf(cli): write compact JSON when output is not a terminal (#1413) 2026-10-09 20:29:48 -07:00
recovery.mjs refactor!: enforce canonical evidence and provider boundaries 2026-10-09 20:18:52 +08:00
runtime-observation.mjs refactor(javascript): group application workflows and verification (#896) 2026-10-07 16:03:37 +08:00