Skip to content

chore(deps): bump ai from 7.0.137 to 7.0.173 - #2877

Merged
simple-agent-manager[bot] merged 5 commits into
mainfrom
dependabot/npm_and_yarn/ai-7.0.173
Nov 18, 2026
Merged

simple-agent-manager[bot] merged 5 commits into
mainfrom
dependabot/npm_and_yarn/ai-7.0.173

Conversation

@dependabot

@dependabot dependabot Bot commented on behalf of github Nov 17, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Dependabot bump of ai 7.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. 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 @ai-sdk/provider-v7: npm:@ai-sdk/provider@4.0.34. Two nominally distinct LanguageModelV4 declarations reached apps/api/src/services/tts-text.ts, which passes a Workers AI model into a Mastra Agent: tts-text.ts(77,7) and (146,7) failed with WorkersAIChatLanguageModel is not assignable to DynamicArgument<MastraModelConfig ...>.

Fix (commit 1f327b7). Also bump @mastra/core to 1.84.0, which pins exactly @ai-sdk/provider 4.0.38 and provider-utils 5.0.81, the versions ai 7.0.173 uses. One provider copy remains. The cloudflare-specialist review confirmed the bundle now carries one @ai-sdk/provider 4.x copy (main carries two: 4.0.26 and 4.0.34). No source changes.

This supersedes the @mastra/core 1.83.0 bump in #2797 (1.83.0 pins @ai-sdk/provider 4.0.35, which would re-create the duplicate once ai 7.0.173 lands). #2797 is closed as superseded. Its only other change, the test-fixture barrier in apps/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/core pins, 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/provider 4.0.38, @mastra/core 1.84.0, ai 7.0.173, workers-ai-provider 4.0.1 from #2796), frozen install OK, build 12/12, apps/api typecheck 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/api tsc --noEmit clean locally; CI Build and Type Check PASS on 1f327b7
  • pnpm test: focused TTS / SAM operator / SAM session / runtime-secret suites, 19 files and 474 tests PASS locally; full CI suite on this head
  • Additional validation: wrangler deploy --dry-run bundle builds; vitest.sam-runtime.config.ts (Mastra Agent in workerd) 67 tests PASS (cloudflare-specialist)
  • N/A: no sweep/cron candidate selection change

Staging Verification (REQUIRED for all code changes — merge-blocking)

  • Staging deployment green
  • Live app verified via Playwright: authenticated API session via token-login on staging (API-level user flows; this PR has no UI change)
  • Existing workflows confirmed working: Deploy Staging smoke tests passed; project, task, workspace and node flows exercised below
  • New feature/fix verified on staging
  • Infrastructure verification completed: N/A: no infra changes (a real VM was also provisioned in the same run for the Go bumps)
  • Mobile and desktop verification notes added for UI changes: N/A, no UI change

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 (head f776f2823; merges every PR head, including the #2877 fix pairing @mastra/core 1.84.0, plus a regenerated lockfile). Deploy Staging run 44288653931 passed, including smoke tests. Each bump's consumers were exercised:

  • TTS via Mastra + workers-ai-provider + ai (apps/api/src/services/tts-text.ts): POST /api/tts/synthesize full mode returned 200 with 60,768 bytes of audio; Worker log tts.cleanup_complete (gemma-4 cleanup through the Mastra Agent). Summary mode returned 200 summarized: true with 46,944 bytes; tts.summary_complete on 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.
  • SAM operator (Mastra Agent.stream, tool calls, @mastra/schema-compat 1.4.0): a turn streamed thinking ×8, tool ×2, text ×6 and done. It persisted as completed with the correct answer ("33 projects"). The setting was restored to disabled afterwards.
  • yaml 2.9.1 (compose parser in 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 400 COMPOSE_PARSE_FAILED "Excessive alias count". No release was created.
  • Real VM (vm-agent with all three Go bumps; required release 69d717b9): a conversation task on the "Claude Code VM Chat" profile provisioned fresh node 01M7Q5HP9AAGVPFXRE8XBZ3ZKD (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 replied x86_64 v22.23.5. Terminal access via POST /api/terminal/token and wss://ws-<id>.sammy.party/terminal/ws, a control-plane JWT validated by keyfunc 3.9.2 in the vm-agent, echoed deps-ok-42 and x86_64. A tampered token was refused (WebSocket close 1006, plain GET 401). Cleanup: workspace deletion confirmed, node deleted, both 404, D1 rows gone, no nodes left.
  • patternmatcher / compress consumers (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.
  • Observability noise gate (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 were idle_cleanup.cleanup_failed for an unrelated session.
  • Lease released early (run 44294388985 succeeded); next queued task notified.

UI Compliance Checklist (Required for UI changes)

N/A: no UI changes.

End-to-End Verification (Required for multi-component changes)

  • Data flow traced: apps/api/src/services/tts-text.ts (createWorkersAI → Mastra Agent.generate), apps/api/src/durable-objects/sam-session/operator/{agent,model}.ts (Mastra Agent.stream)
  • Capability test across system boundaries: staging TTS (full + summary) and SAM operator turn with tool calls, see above
  • Assumptions verified: provider pins read from installed package.json files and npm view
  • Manual verification steps documented above

Data Flow Trace

TTS: routes/tts → services/tts-text.ts (createWorkersAI({ binding }), Mastra Agent) → Workers AI binding. Operator: SamSession DO → operator/agent.ts (Mastra Agent.stream) → operator/model.ts model 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)

  • All local reviewers completed and findings addressed before merge
  • If any reviewer did NOT complete: needs-human-review label added and merge deferred to human
Reviewer Status Outcome
cloudflare-specialist PASS Diagnosis and fix verified; one @ai-sdk/provider 4.x copy in the bundle; no new node-only imports; ai 7.0.138–7.0.173 changelog read (LOW: interrupted finish reason is passed through as a normal answer by operator/agent.ts, not a regression).
task-completion-validator PASS No CRITICAL/HIGH across all eight PR heads; diagnosis confirmed from the lockfile; MEDIUM plan items (merge-order rule for #2797/#2877, yaml consumer) addressed before staging.

CodeRabbit Review Evidence (Required for agent-authored PRs)

  • CodeRabbit requested when the PR was marked ready for review
  • Waited about 15 minutes (or until a skip, rate-limit or quota reply)
  • Either CodeRabbit reviewed and no CodeRabbit feedback is unresolved, or it did not review and the observed outcome is recorded below

CodeRabbit Notes

coderabbit-review label 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)

  • Scope: none

Agent Preflight

  • Preflight completed before code changes

Classification

  • external-api-change
  • cross-component-change

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-v7 pins 4.0.35 / 4.0.38), npm view ai@7.0.173 dependencies (@ai-sdk/provider 4.0.38, provider-utils 5.0.81), installed @mastra/core package.json, diff of @ai-sdk/provider 4.0.34 vs 4.0.38 index.d.ts, ai changelog 7.0.138–7.0.173.

Codebase Impact Analysis

apps/api only: src/services/tts-text.ts, src/durable-objects/sam-session/operator/{agent,model,operations}.ts. apps/api/package.json and pnpm-lock.yaml change; 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 and durable changes do not apply). Verified on staging before merge.

🤖 Generated with Claude Code

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>
@dependabot dependabot Bot added dependencies Pull requests that update a dependency file javascript Pull requests that update javascript code labels Nov 17, 2026
@coderabbitai

coderabbitai Bot commented Nov 17, 2026 •

Copy link
Copy Markdown

Important

Review skipped

Auto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

Run configuration

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • Trigger review
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 17, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ❌ Failed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ❌ Failed 2026-11-18T14:32:22.568963Z
We couldn’t complete this review. Comment @codex review to try again.
3de73da New commits
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@codspeed

codspeed Bot commented Nov 17, 2026 •

Copy link
Copy Markdown
Contributor

Merging this PR will not alter performance

✅ 5 untouched benchmarks
⏩ 1 skipped benchmark1


Comparing dependabot/npm_and_yarn/ai-7.0.173 (3de73da) with main (3bab529)

Open in CodSpeed

Footnotes

  1. 1 benchmark was skipped, so the baseline result was used instead. If it was deleted from the codebase, click here and archive it to remove it from the performance reports. ↩

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>
@chatgpt-codex-connector

Copy link
Copy Markdown

Codex usage limits have been reached for code reviews. Please check with the admins of this repo to increase the limits by adding credits.
Repo admins can enable using credits for code reviews in their settings.

@simple-agent-manager simple-agent-manager Bot added the coderabbit-review Trigger CodeRabbit review for opt-in PRs label Nov 18, 2026
@raphaeltm

Copy link
Copy Markdown
Owner

@coderabbitai review

@coderabbitai

coderabbitai Bot commented Nov 18, 2026 •

Copy link
Copy Markdown
Action not completed

Review skipped.

Note: CodeRabbit is an incremental review system and does not re-review already reviewed commits. This command is applicable only when automatic reviews are paused.

raphaeltm and others added 2 commits November 18, 2026 14:16
(cherry picked from commit 0277830)

Carried over from #2797 (superseded by this PR's @mastra/core 1.84.0 bump)
so the fixture fix lands with the Mastra update it was written for.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@chatgpt-codex-connector

Copy link
Copy Markdown

Codex usage limits have been reached for code reviews. Please check with the admins of this repo to increase the limits by adding credits.
Repo admins can enable using credits for code reviews in their settings.

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex usage limits have been reached for code reviews. Please check with the admins of this repo to increase the limits by adding credits.
Repo admins can enable using credits for code reviews in their settings.

@sonarqubecloud

Copy link
Copy Markdown

@simple-agent-manager
simple-agent-manager Bot merged commit 974a997 into main Nov 18, 2026
37 checks passed
@dependabot
dependabot Bot deleted the dependabot/npm_and_yarn/ai-7.0.173 branch November 18, 2026 15:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

coderabbit-review Trigger CodeRabbit review for opt-in PRs dependencies Pull requests that update a dependency file javascript Pull requests that update javascript code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant