From 5bb1089245463687dc9bede9141301cc01017e92 Mon Sep 17 00:00:00 2001 From: Ivan Cheung Date: Sun, 7 Jun 2026 18:40:28 -0400 Subject: [PATCH] fix(docs): AGENTS.md push/status exit code is 4, not 3 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit When TERMCHART_VIEWER_URL/TOKEN are unset, push and status return EXIT_NO_VIEWER=4 (packages/cli/src/viewer-detect.ts:15), and the message is '…are not set: no termchart viewer configured.' AGENTS.md claimed exit 3 with a non-matching hint, which can mislead an agent into a wrong retry path. --- AGENTS.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/AGENTS.md b/AGENTS.md index 5b14412..cb1e12f 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -39,7 +39,7 @@ Supported subset: `graph TD|LR` nodes `A[x]` `B{decision}` `C[(db)]` edges `-->` Push native JSON to a running viewer — run it locally (`PUSH_TOKEN=dev PORT=8080 node packages/viewer/dist/server.js`, open `http://localhost:8080/w/me/`; the viewer ships in this repo, not the npm CLI) or point at a deployed one. Configured by two -env vars — **if either is unset, `push`/`status` exit 3** with `Set TERMCHART_VIEWER_URL and TERMCHART_VIEWER_TOKEN.`: +env vars — **if either is unset, `push`/`status` exit 4** with `…are not set: no termchart viewer configured.`: ```bash export TERMCHART_VIEWER_URL="http://localhost:8080/w/me"