8000 refactor(mcp): bound results with chord output helpers by geminixiang · Pull Request #186 · geminixiang/mikan · GitHub
[go: up one dir, main page]

Skip to content

refactor(mcp): bound results wi 8000 th chord output helpers - #186

Merged
geminixiang merged 1 commit into
mainfrom
refactor/chord-helpers
Oct 17, 2026
Merged

geminixiang merged 1 commit into
mainfrom
refactor/chord-helpers

Conversation

@geminixiang
@geminixiang geminixiang commented Oct 17, 2026 •
Copy link
Copy Markdown
Owner

Pi 1.3 moved bounded output to @earendil-works/chord/output. MCP and web_fetch results now use boundOutput and utf8ByteLength in place of a local line and UTF-8 slicer, and the script result is copied with copyJson.

Other JSON.parse(JSON.stringify(...)) copies stay: copyJson throws on Date, NaN, functions, and array holes, which those copies take from arbitrary tools.

Acceptance

Case main branch
Whole lines kept, no trailing newline before the notice pass pass
Single oversized line cut on a character boundary pass pass
Existing mcp-result cases (digest, head truncation, huge string) pass pass

The new tests pass on main too, so results are unchanged.

Verification

  • Full gate (lint, fmt, knip, build, typecheck, test) passes on the branch.
  • Real-platform check and Slack E2E (slack-e2e.yml) not yet run: this changes the run loop and its tools, so it is on the Slack message path; they wait for approval.

Research: docs/research/pi-1.3-retirement-2026-10.md (added in #186).

Pi 1.3 moved bounded output to @earendil-works/chord/output, so MCP and web_fetch results use boundOutput and utf8ByteLength instead of a local line and UTF-8 slicer, and the script result is copied with copyJson. Results are unchanged; the new tests pass on main too.
@geminixiang
geminixiang merged commit d5fa4e5 into main Oct 17, 2026
5 checks passed
@geminixiang
geminixiang deleted the refactor/chord-helpers branch October 17, 2026 15:03
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

0