Repository navigation
chore(deps): bump ai from 7.0.137 to 7.0.173 - #2877
Conversation
Bumps [ai](https://github.com/vercel/ai/tree/HEAD/packages/ai) from 7.0.137 to 7.0.173. - [Release notes](https://github.com/vercel/ai/releases) - [Changelog](https://github.com/vercel/ai/blob/main/packages/ai/CHANGELOG.md) - [Commits](https://github.com/vercel/ai/commits/ai@7.0.173/packages/ai) --- updated-dependencies: - dependency-name: ai dependency-version: 7.0.173 dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com>
|
Important Review skippedAuto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the
|
Codex Review Summary: ❌ FailedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
Merging this PR will not alter performance
Comparing Footnotes
|
ai 7.0.173 depends on @ai-sdk/provider 4.0.38, so workers-ai-provider's peer resolved to 4.0.38 while @mastra/core 1.81.0 pins 4.0.34. The two LanguageModelV4 declarations are nominally distinct, which broke tts-text.ts (WorkersAIChatLanguageModel not assignable to Mastra's model config). @mastra/core 1.84.0 pins exactly @ai-sdk/provider 4.0.38 and provider-utils 5.0.81, matching ai 7.0.173, so one provider copy remains. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Codex usage limits have been reached for code reviews. Please check with the admins of this repo to increase the limits by adding credits. |
|
@coderabbitai review |
Action not completed
|
…rn/ai-7.0.173 # Conflicts: # pnpm-lock.yaml
|
Codex usage limits have been reached for code reviews. Please check with the admins of this repo to increase the limits by adding credits. |
…rn/ai-7.0.173 # Conflicts: # pnpm-lock.yaml
|
Codex usage limits have been reached for code reviews. Please check with the admins of this repo to increase the limits by adding credits. |
|



Summary
Dependabot bump of
ai7.0.137 → 7.0.173, taken over by Claude task 01M7PX3R4EQ8HWCQEAER9748A3 (previous owner Codex task 01M7NZZA2J4Y9MANWYRGTTCGPN is parked until 2026-11-23).Why CI failed on the original commit.
ai7.0.173 depends on@ai-sdk/provider4.0.38, soworkers-ai-provider's peer resolved to 4.0.38, while@mastra/core1.81.0 pins@ai-sdk/provider-v7: npm:@ai-sdk/provider@4.0.34. Two nominally distinctLanguageModelV4declarations reachedapps/api/src/services/tts-text.ts, which passes a Workers AI model into a MastraAgent:tts-text.ts(77,7)and(146,7)failed withWorkersAIChatLanguageModel is not assignable to DynamicArgument<MastraModelConfig ...>.Fix (commit 1f327b7). Also bump
@mastra/coreto 1.84.0, which pins exactly@ai-sdk/provider4.0.38 andprovider-utils5.0.81, the versionsai7.0.173 uses. One provider copy remains. The cloudflare-specialist review confirmed the bundle now carries one@ai-sdk/provider4.x copy (main carries two: 4.0.26 and 4.0.34). No source changes.This supersedes the
@mastra/core1.83.0 bump in #2797 (1.83.0 pins@ai-sdk/provider4.0.35, which would re-create the duplicate onceai7.0.173 lands). #2797 is closed as superseded. Its only other change, the test-fixture barrier inapps/api/tests/integration/runtime-secret-requests.test.ts(commit 0277830, test-only, reviewed there), is carried over here as commit 4aed25c so it lands with the Mastra update it was written for.Head 3de73da (14:45Z): main merged again after #2875 (yaml 2.9.1), so the lockfile was regenerated; frozen install OK, build 12/12, typecheck clean, focused TTS/operator/runtime-secret suites 12 files / 269 tests PASS. The diff vs main is only the
ai/@mastra/corepins, the lockfile and the carried test.Head 4aed25c (2026-11-18 14:30Z): main merged in (lockfile regenerated from main's: exactly one
@ai-sdk/provider4.0.38,@mastra/core1.84.0,ai7.0.173,workers-ai-provider4.0.1 from #2796), frozen install OK, build 12/12,apps/apitypecheck clean, focused suites 20 files / 478 tests PASS,vitest.sam-runtime.config.ts(Mastra in workerd) 3 files / 67 tests PASS.Validation
pnpm lint(CI Lint PASS)pnpm typecheck:apps/apitsc --noEmitclean locally; CI Build and Type Check PASS on 1f327b7pnpm test: focused TTS / SAM operator / SAM session / runtime-secret suites, 19 files and 474 tests PASS locally; full CI suite on this headwrangler deploy --dry-runbundle builds;vitest.sam-runtime.config.ts(Mastra Agent in workerd) 67 tests PASS (cloudflare-specialist)Staging Verification (REQUIRED for all code changes — merge-blocking)
Staging verification — primary staging, 2026-11-18 (Claude task 01M7PX3R4EQ8HWCQEAER9748A3)
All eight open dependency bumps were deployed together on integration branch
sam/take-over-land-open-9748a3(headf776f2823; merges every PR head, including the #2877 fix pairing@mastra/core1.84.0, plus a regenerated lockfile). Deploy Staging run 44288653931 passed, including smoke tests. Each bump's consumers were exercised:apps/api/src/services/tts-text.ts):POST /api/tts/synthesizefull mode returned 200 with 60,768 bytes of audio; Worker logtts.cleanup_complete(gemma-4 cleanup through the Mastra Agent). Summary mode returned 200summarized: truewith 46,944 bytes;tts.summary_completeon the first attempt (7,118 → 139 chars). Repeat requests hit the cache. The full-mode cleanup needed 3 attempts (two empty LLM results). A local A/B through the same Agent and provider against the real model gave 8/8 non-empty on old deps and 8/8 on new deps, so this is model variance (long reasoning output), not a regression.Agent.stream, tool calls,@mastra/schema-compat1.4.0): a turn streamedthinking×8,tool×2,text×6 anddone. It persisted ascompletedwith the correct answer ("33 projects"). The setting was restored to disabled afterwards.POST /api/projects/:id/environments/:envId/releases): a 51-service compose built from an anchor/alias, with a folded quoted string, parsed and stopped at the image-count limit ("Manifest contains 51 tag-based image references; the configured limit is 50"). An alias bomb returned 400COMPOSE_PARSE_FAILED"Excessive alias count". No release was created.69d717b9): a conversation task on the "Claude Code VM Chat" profile provisioned fresh node01M7Q5HP9AAGVPFXRE8XBZ3ZKD(GCP medium, asia-south1-b, created 11:09:22Z after the deploy, Cloudflare Tunnel). It sent its first heartbeat at 11:12:10Z. The workspace was running at 11:13:04Z, and the Claude agent repliedx86_64 v22.23.5. Terminal access viaPOST /api/terminal/tokenandwss://ws-<id>.sammy.party/terminal/ws, a control-plane JWT validated by keyfunc 3.9.2 in the vm-agent, echoeddeps-ok-42andx86_64. A tampered token was refused (WebSocket close 1006, plain GET 401). Cleanup: workspace deletionconfirmed, node deleted, both 404, D1 rows gone, no nodes left.internal/publish/contextcollect,internal/builder) run only during app publish, which would provision a separate deployment node. They are covered by consumer tests on amd64 and under arm64 emulation (PASS), and by a zstd probe with SAM's exact options: 6–25 MB corpora round-trip, and compressed output is byte-identical on amd64 and arm64.pnpm quality:observability-noise, unchanged defaults 24h/10). Before (09:41Z) and after (11:23Z) show the same 6 pre-existing groups with identical counts (86/67/57/47/33/17). No new group and no increase; pre-existing noise waived per Raphaël 2026-11-18. The Worker tail from 11:10 to 11:24Z had no exceptions; the only error logs wereidle_cleanup.cleanup_failedfor an unrelated session.UI Compliance Checklist (Required for UI changes)
N/A: no UI changes.
End-to-End Verification (Required for multi-component changes)
apps/api/src/services/tts-text.ts(createWorkersAI→ MastraAgent.generate),apps/api/src/durable-objects/sam-session/operator/{agent,model}.ts(MastraAgent.stream)package.jsonfiles andnpm viewData Flow Trace
TTS:
routes/tts→services/tts-text.ts(createWorkersAI({ binding }), MastraAgent) → Workers AI binding. Operator: SamSession DO →operator/agent.ts(MastraAgent.stream) →operator/model.tsmodel resolution.Untested Gaps
N/A: covered by focused tests plus the staging run above.
Post-Mortem (Required for bug fix PRs)
N/A: not a bug fix (dependency bump; the build break never reached main).
Specialist Review Evidence (Required for agent-authored PRs)
needs-human-reviewlabel added and merge deferred to human@ai-sdk/provider4.x copy in the bundle; no new node-only imports;ai7.0.138–7.0.173 changelog read (LOW:interruptedfinish reason is passed through as a normal answer byoperator/agent.ts, not a regression).CodeRabbit Review Evidence (Required for agent-authored PRs)
CodeRabbit Notes
coderabbit-reviewlabel applied 2026-11-18 09:39 UTC; the label run was skipped by the Dependabot author guard, so the trusted workflow was dispatched once from main (run 44278886595). CodeRabbit replied at 09:49:15 UTC: "Action not completed — Review skipped" (bot author without a review seat). Wait ended on the skip; no findings. Not re-triggered for the main-merge head.Exceptions (If any)
Agent Preflight
Classification
External References
Official documentation: npm registry metadata https://www.npmjs.com/package/@mastra/core and https://www.npmjs.com/package/ai, and the AI SDK changelog https://github.com/vercel/ai/blob/main/packages/ai/CHANGELOG.md. Commands:
npm view @mastra/core@1.83.0|1.84.0 dependencies(@ai-sdk/provider-v7pins 4.0.35 / 4.0.38),npm view ai@7.0.173 dependencies(@ai-sdk/provider4.0.38,provider-utils5.0.81), installed@mastra/corepackage.json, diff of@ai-sdk/provider4.0.34 vs 4.0.38index.d.ts,aichangelog 7.0.138–7.0.173.Codebase Impact Analysis
apps/apionly:src/services/tts-text.ts,src/durable-objects/sam-session/operator/{agent,model,operations}.ts.apps/api/package.jsonandpnpm-lock.yamlchange; no source change.Documentation & Specs
N/A: dependency versions only, no interface or behavior documentation affected.
Constitution & Risk Check
Principle X (simplest fix: align the pinned provider rather than casting types or adding overrides), XI (no new values). Risk: Mastra 1.81→1.84 behavior changes; reviewed changelogs show additive features and fixes, and SAM uses a bare
Agent(resumable streams anddurablechanges do not apply). Verified on staging before merge.🤖 Generated with Claude Code