Skip to content

chore(deps): @earendil-works/pi-ai 0.80.6 -> 1.1.0 (model-defaults pre-PR) - #204

Draft
HomenShum wants to merge 1 commit into
mainfrom
claude/pi-ai-1-1-0-nodeslide
Draft

HomenShum wants to merge 1 commit into
mainfrom
claude/pi-ai-1-1-0-nodeslide

Conversation

@HomenShum

Copy link
Copy Markdown
Owner

Status: blocked, draft, label needs-live-eval

This is the pre-PR that SPEC Part A section A.2.8 asks for: @earendil-works/pi-ai 0.80.6 -> 1.1.0 on its own, so that a failure in the post-deploy probe can be traced to the SDK and not to a model change. The model refresh is #203, stacked on this branch.

One gate has not run, because it makes paid provider calls and this PR's author made none:

  • Post-deploy probe. After this PR merges and deploy-production.yml has deployed it: gh workflow run nightly-production-probe.yml --repo HomenShum/NodeSlide --ref main (a workflow_dispatch; it probes every offered route and every free route once, bounded by nodeSlideModelProbeProfile, which is at most 2,048 output tokens per route). Estimated cost: well under 0.25 USD; not measured, there is no prior receipt to read it from. The label is a block, not a note (SPEC A.0.3), and the PR is a draft so the merge button is unavailable until a human marks it ready.

npm run check (the other half of the gate) ran on this branch and passed; output below.

What changes

  • package.json, mcp/package.json, package-lock.json: @earendil-works/pi-ai 0.80.6 -> 1.1.0. The lockfile also moves major transitive SDKs: @anthropic-ai/sdk 0.91.1 -> 0.129.0, @google/genai 1.52.0 -> 2.21.0, openai 6.26.0 -> 7.19.0, the @aws-sdk/* family forward, and it adds @earendil-works/pi-telemetry 1.2.0 and drops @mistralai/mistralai. All of them arrive only through pi-ai.
  • convex/lib/nodeslideProvider.ts: a fix the bump forces. pi-ai 1.1.0 ships OpenRouter's Claude rows as the anthropic-messages API at https://openrouter.ai/api. NodeSlide sends every OpenRouter route through the chat-completions client, so without the fix the existing anthropic/claude-sonnet-5 and anthropic/claude-fable-5 routes POST to /api/chat/completions, which is not an OpenRouter endpoint, and fail on the first call after the upgrade. asOpenRouterChatCompletionsRoute pins those rows to chat-completions on /api/v1.
  • convex/lib/nodeslideProvider.openrouterEndpoints.test.ts (new): a fake fetch records the URL the real provider code builds for both Claude routes and asserts every bundled Claude row is pinned. It fails 2 of 2 without the fix (checked by removing the .map).
  • convex/lib/nodeslideAutoRoutingPolicy.test.ts: the auto-router estimate reads the bundled pi-ai catalog, where z-ai/glm-5.2 is 0.171 / 7.2 under 1.1.0 (it was 0.532 / 1.672 under 0.80.6). The cost-cap test moves from 2,204 to 7,371 micro-USD for 1k in / 1k out, the old figures stay in a comment, and the one-micro-dollar boundary (below by 1, equal, well above) is kept. No assertion was loosened. The only other failure of the full suite on the bumped lockfile was this test (3 cases of 1).

No model id, price table, default or request shape changes in this PR.

Check output (run on the head of this PR)

npm run lint        biome check .   Checked 1078 files. No fixes applied.
npm run typecheck   tsc -b + workspaces   (no errors)
npx vitest run      Test Files 318 passed (318) | Tests 2830 passed | 7 skipped (2837)
workspaces          11 + 5 + 7 + 19 tests passed
npm run build       vite build  built in 27.89s

Merge order

Merge this PR first. #203 contains this branch (a merge commit), so after this lands #203's base becomes main and its diff stays the model refresh only. If this PR is squash- or rebase-merged, GitHub sees different commits on main than the ones #203 contains: update #203 with git merge main; the only overlap is openrouterProviderWithOverrides, where #203 adds .map(priceFromLedger) beside the line this PR changes.

Spec: model-defaults SPEC Part A section A.2.8 (NodeSlide, Pre-PR)

@HomenShum HomenShum added the needs-live-eval Merge blocked until a paid/keyed eval receipt is produced (SPEC A.0.3) label Oct 15, 2026
…e-PR)

SPEC Part A section A.2.8 makes the pi-ai bump its own PR, gated by `npm run check` and a
`nightly-production-probe.yml` dispatch, so a failure in the post-deploy probe can be traced to the
SDK and not to a model change. pi-ai 1.1.0 brings major transitive bumps (@anthropic-ai/sdk 0.91 -> 0.129,
@google/genai 1 -> 2, openai 6 -> 7).

Two things the bump forces, nothing else:
- pi-ai 1.1.0 ships OpenRouter's Claude rows as `anthropic-messages` at https://openrouter.ai/api; this
  provider speaks chat-completions for every OpenRouter route, so the existing claude-sonnet-5 and
  claude-fable-5 routes would POST to /api/chat/completions (not an OpenRouter endpoint). The provider
  pins those rows to chat-completions on /api/v1; a fake-fetch test fails without it.
- The auto-router estimate reads the bundled pi-ai catalog, where z-ai/glm-5.2 is 0.171 / 7.2 under 1.1.0
  (it was 0.532 / 1.672 under 0.80.6). The cost-cap test moves to 7_371 micro-USD, old figures in a
  comment, one-micro-dollar boundary kept.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
@HomenShum
HomenShum force-pushed the claude/pi-ai-1-1-0-nodeslide branch from 5bdfac2 to ef2e0d0 Compare October 16, 2026 11:10

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

needs-live-eval Merge blocked until a paid/keyed eval receipt is produced (SPEC A.0.3)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant