Commit Graph

10 Commits

Author SHA1 Message Date
Peter Steinberger
23565e2166
fix: harden concurrent config writes 2026-05-14 16:32:37 +01:00
clawSean
e2c0641c1e
fix: keep mcporter JSON stdout parseable
Move keep-alive daemon retry diagnostics to stderr so mcporter call --output json keeps stdout parseable after daemon recovery. Current main already covers the structuredContent and raw-envelope JSON fallbacks from the same issue; this PR adds explicit regression coverage for MCP isError envelopes and daemon retry logging.\n\nVerified locally with:\n- pnpm exec vitest run tests/cli-output-utils.test.ts tests/keep-alive-runtime.test.ts tests/result-utils.test.ts\n- pnpm check\n- PNPM_CONFIG_LOGLEVEL=error npm_config_loglevel=error pnpm test\n- pnpm build\n- git diff --check\n\nFixes #160.\n\nCo-authored-by: clawSean <260045960+clawSean@users.noreply.github.com>
2026-05-09 04:45:56 -04:00
Peter Steinberger
91819929d9
fix: harden oauth vault persistence 2026-03-29 09:53:17 +09:00
Peter Steinberger
914e03f89c fix: keep json output valid on raw fallback (#128) (thanks @armanddp) 2026-03-28 19:41:21 +00:00
奥尘
a04d663f03 fix(result-utils): avoid collapsing error payloads to data 2026-03-28 19:31:23 +00:00
Peter Steinberger
af2f60eecf refactor: streamline call parsing/output pipeline 2026-03-02 22:58:07 +00:00
Peter Steinberger
7ff297ef2e fix: make image handling opt-in and preserve output contracts (#61) (thanks @daniella-11ways) 2026-03-02 22:38:01 +00:00
Peter Steinberger
cb06392738 fix: harden raw output inspect depth and add regression coverage (#91) (thanks @Blankdlh) 2026-03-02 19:17:29 +00:00
Peter Steinberger
4afb948228
fix(ci): keep raw output untruncated (#23) 2025-12-06 00:46:04 +00:00
Kenn Costales
4a07ceedf3
fix(cli): prevent silent string truncation to 10k characters in raw output (#22)
* fix(cli): prevent string truncation in raw output

Node's util.inspect() has a default maxStringLength of 10000 characters,
causing large MCP responses to be truncated with '... N more characters'.

See: https://nodejs.org/api/util.html#utilinspectobject-options

This affects --output raw and the default output format when it falls
back to printRaw().

Fix: set maxStringLength: null to disable string truncation while
preserving depth: 2 for readable nested object summaries.

Verify (before fix shows 10000, after fix shows 15000):
  node -e "console.log('x count:', (require('util').inspect({t:'x'.repeat(15000)}, {depth:2}).match(/x/g)||[]).length)"
  node -e "console.log('x count:', (require('util').inspect({t:'x'.repeat(15000)}, {depth:2, maxStringLength:null}).match(/x/g)||[]).length)"

* test(cli): ensure raw output not truncated

---------

Co-authored-by: Peter Steinberger <steipete@gmail.com>
2025-12-06 00:32:57 +00:00