8000 fix(deps): upgrade Pi to 1.2.0 by geminixiang · Pull Request #181 · geminixiang/mikan · GitHub
[go: up one dir, main page]

Skip to content

fix(deps): upgrade Pi to 1.2.0 - #181

Merged
geminixiang merged 1 commit into
mainfrom
chore/pi-1.2
Oct 12, 2026
Merged

geminixiang merged 1 commit into
mainfrom
chore/pi-1.2

Conversation

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

Why

Pi 1.2.0 (released 2026-10-12 23:00 UTC) removed mcpStructuredContentSchema from @earendil-works/pi-codemode. mikan depends on ^1.1.0, so a fresh install of the published mikan 1.4.0 now resolves Pi 1.2.0 and crashes on start (verified: mikan --version throws SyntaxError: ... does not provide an export named 'mcpStructuredContentSchema'). Running installs keep Pi 1.1.0 until they reinstall. main's package-install check fails the same way.

What

Dependencies move to ^1.2.0, adapted to Pi 1.2's breaking changes:

Pi 1.2 change mikan change
mcpStructuredContentSchema removed; renderToolOutputType no longer treats MCP results specially codemode's call note lists an object schema's fields directly
ToolExecutionResult.content renamed output mikan tools keep MikanToolResult.content; toPiTool in session.ts converts at the registration boundary, and Pi's own read/write/edit/bash results convert back in withLabel. The loop-guard notice is appended to output in the Pi hook
bash answers a nonzero exit with an error result and an exit_code diagnostic instead of throwing MikanToolResult carries diagnostics; tests assert the error result
ToolExecutionApi gains retainedOutput and executeTool test tool API implements them

Without the content → output conversion every mikan tool's output would silently reach the model empty; 19 existing tests fail when it is removed.

Not adopted here: Pi 1.2's native codemode (pi-durable/codemode), nested tool calls, structured output, and deferred tools overlap mikan's own codemode and tool_search; moving to them is a separate change.

Verification

  • Gate: 2171 tests pass
  • CI (includes the package install check)
  • Slack E2E: 26 of 26 on the third run. The first two never reached the tests: the daemon lost its Slack socket about 5 s after starting and did not reconnect within the 60 s wait. A main run between them passed, and a local daemon on this branch connected normally, so this looks like a Socket Mode flake rather than Pi 1.2; noted in case it recurs.

@cloudflare-workers-and-pages
cloudflare-workers-and-pages Bot commented Oct 12, 2026 •
Copy link
Copy Markdown

Deploying mikan with  Cloudflare Pages  Cloudflare Pages

Latest commit: 7d023e5
Status: ✅  Deploy successful!
Preview URL: https://98fb75a6.mikan-1wv.pages.dev
Branch Preview URL: https://chore-pi-1-2.mikan-1wv.pages.dev

View logs

@geminixiang
geminixiang merged commit 3749c17 into main Oct 12, 2026
7 of 9 checks passed
@geminixiang
geminixiang deleted the chore/pi-1.2 branch October 12, 2026 23:38
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