Skip to content

Tidy src/index.ts unknown-command JSON path: use outputJson() and hoist…#91

Merged
jayminwest merged 2 commits into
mainfrom
warren/run_2zv80epgtw58
Jun 16, 2026
Merged

Tidy src/index.ts unknown-command JSON path: use outputJson() and hoist…#91
jayminwest merged 2 commits into
mainfrom
warren/run_2zv80epgtw58

Conversation

@jayminwest

Copy link
Copy Markdown
Owner

Summary

refactor(cli): tidy unknown-command JSON path and hoist jsonMode

Run

  • Warren run: run_2zv80epgtw58
  • Agent: pi
  • Cost: $0.260 (22 in / 3.0k out / 228.0k cache-r)

Seeds

  • seeds-e93c — Tidy src/index.ts unknown-command JSON path: use outputJson() and hoist jsonMode declaration above main()

Commits (2)

  • a34c251 refactor(cli): tidy unknown-command JSON path and hoist jsonMode
  • 108e887 chore(warren): seeds state

Files changed

...596Z_019ed023-ad4c-7f44-bfbb-98e2c4682874.jsonl | 35 ++++++++++++++++++++++
 .seeds/issues.jsonl                                |  6 ++--
 src/index.ts                                       | 10 ++++---
 3 files changed, 44 insertions(+), 7 deletions(-)

Prompt

Show prompt
work on sd seeds-e93c

🤖 Opened by warren run run_2zv80epgtw58

agent and others added 2 commits June 16, 2026 11:16
Route the unknown-command JSON error envelope through outputJson() like
every other JSON output site, and hoist the top-level jsonMode constant
above main() so the closure read inside main() and the .catch() handler
both see a fully initialized binding (no TDZ window).

Output is byte-identical: outputJson() emits the same two-space
JSON.stringify with a trailing newline.

Closes seeds-e93c.
@jayminwest jayminwest enabled auto-merge (squash) June 16, 2026 11:16
@jayminwest jayminwest merged commit 1201f4e into main Jun 16, 2026
2 checks passed
@jayminwest jayminwest deleted the warren/run_2zv80epgtw58 branch June 16, 2026 11:17
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.

1 participant