From d3b05490a8fcab167cbd2f5e1fc48c5704381ac5 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Tue, 17 Nov 2026 21:01:39 +0000 Subject: [PATCH 1/3] chore(deps): bump ai from 7.0.137 to 7.0.173 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] --- apps/api/package.json | 2 +- pnpm-lock.yaml | 99 ++++++++++++++++++++++--------------------- 2 files changed, 52 insertions(+), 49 deletions(-) diff --git a/apps/api/package.json b/apps/api/package.json index 636c2c9f6d..9c7d0ceaed 100644 --- a/apps/api/package.json +++ b/apps/api/package.json @@ -44,7 +44,7 @@ "@simple-agent-manager/shared": "workspace:*", "@simple-agent-manager/worker-core": "workspace:*", "@valibot/to-json-schema": "catalog:", - "ai": "7.0.137", + "ai": "7.0.173", "better-auth": "catalog:", "better-auth-cloudflare": "0.3.1", "drizzle-orm": "catalog:", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index b9c1497c39..d3c91b9f9f 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -263,7 +263,7 @@ importers: version: 0.6.1(hono@4.13.4)(valibot@1.5.0(typescript@5.9.3)) '@mastra/core': specifier: 1.81.0 - version: 1.81.0(@grpc/grpc-js@1.14.6)(@opentelemetry/api@1.10.0)(@valibot/to-json-schema@1.3.0(valibot@1.5.0(typescript@5.9.3)))(ai@7.0.137(zod@4.5.4))(express@5.2.1)(valibot@1.5.0(typescript@5.9.3))(zod-to-json-schema@3.25.2(zod@4.5.4))(zod@4.5.4) + version: 1.81.0(@grpc/grpc-js@1.14.6)(@opentelemetry/api@1.10.0)(@valibot/to-json-schema@1.3.0(valibot@1.5.0(typescript@5.9.3)))(ai@7.0.173(zod@4.5.4))(express@5.2.1)(valibot@1.5.0(typescript@5.9.3))(zod-to-json-schema@3.25.2(zod@4.5.4))(zod@4.5.4) '@modelcontextprotocol/server': specifier: 2.3.1 version: 2.3.1 @@ -307,8 +307,8 @@ importers: specifier: 'catalog:' version: 1.3.0(valibot@1.5.0(typescript@5.9.3)) ai: - specifier: 7.0.137 - version: 7.0.137(zod@4.5.4) + specifier: 7.0.173 + version: 7.0.173(zod@4.5.4) better-auth: specifier: 'catalog:' version: 1.7.14(@opentelemetry/api@1.10.0)(drizzle-kit@0.26.2)(drizzle-orm@0.45.2(@cloudflare/workers-types@5.20260707.1)(@opentelemetry/api@1.10.0)(@types/better-sqlite3@7.6.13)(better-sqlite3@13.0.3)(kysely@0.28.17))(react-dom@19.3.1(react@19.3.1))(react@19.3.1)(vitest@4.1.5) @@ -332,7 +332,7 @@ importers: version: 1.5.0(typescript@5.9.3) workers-ai-provider: specifier: 4.0.0 - version: 4.0.0(@ai-sdk/provider@4.0.34)(ai@7.0.137(zod@4.5.4)) + version: 4.0.0(@ai-sdk/provider@4.0.38)(ai@7.0.173(zod@4.5.4)) yaml: specifier: 'catalog:' version: 2.9.0 @@ -1358,8 +1358,8 @@ packages: peerDependencies: zod: ^3.25.0 || ^4.0.0 - '@ai-sdk/gateway@4.0.110': - resolution: {integrity: sha512-5IwnOR6v7KC+D9eddUqsCobXl/FbLUVb2LaQc/uyuQdpP3/n9s0YLc9zl4/W3IS/R2pjHrqUfCzEAeOu7bFLoQ==} + '@ai-sdk/gateway@4.0.146': + resolution: {integrity: sha512-rJ5NQSyjnpo6HSBEYc9Ff6k1EROUuB7KeAfHYVbVDsk68ynY0Eb8JeWflZKXlT6NhYgqyCiBDxE5blXWACXMKQ==} engines: {node: '>=22'} peerDependencies: zod: ^3.25.76 || ^4.1.8 @@ -1376,14 +1376,14 @@ packages: peerDependencies: zod: ^3.25.76 || ^4.1.8 - '@ai-sdk/provider-utils@5.0.58': - resolution: {integrity: sha512-iXSwKR/7LpHzAlyrUl+bTinwzmZ3Nmup1viwPisM5Gn5cogRdIG4rV9w1ZDuKFcrXyu/AeVs42E1CX/0aNwrfQ==} + '@ai-sdk/provider-utils@5.0.69': + resolution: {integrity: sha512-oGCXIoBKLpNrrAzJvltFHdBl20FJMyT+7edD9D4nwxoI8Scbj3y1EgKzjoF2XFhNYkMTcv1oTFDgUzLxdjqSKg==} engines: {node: '>=22'} peerDependencies: zod: ^3.25.76 || ^4.1.8 - '@ai-sdk/provider-utils@5.0.69': - resolution: {integrity: sha512-oGCXIoBKLpNrrAzJvltFHdBl20FJMyT+7edD9D4nwxoI8Scbj3y1EgKzjoF2XFhNYkMTcv1oTFDgUzLxdjqSKg==} + '@ai-sdk/provider-utils@5.0.81': + resolution: {integrity: sha512-pfvvdQ3d1WxdBuug/mnGEP6E48cPokwD8dMBnsFeeAUp0/rb/H2aj0f3mwOiY62gu/Cu5GO44e+SE5nDHyBWMA==} engines: {node: '>=22'} peerDependencies: zod: ^3.25.76 || ^4.1.8 @@ -1396,14 +1396,14 @@ packages: resolution: {integrity: sha512-5lWq7zSfRaU5ylDESn3sDQjgGl2AI1vjZKO/6JY3aFW70ct4zcP1kN+ZUYOuTXr28fVsYbyu2YFhddLdIgQFZQ==} engines: {node: '>=18'} - '@ai-sdk/provider@4.0.26': - resolution: {integrity: sha512-BZ443uBEq6HuMA+Z4b7Hpm65GpZSo7pWqnYqpf/7tAO3C48JbtvAhOE2JnODFj+jodsZzfRHkAyQb64xuD2tZQ==} - engines: {node: '>=22'} - '@ai-sdk/provider@4.0.34': resolution: {integrity: sha512-Ip7ZQBq/FiGpM1mmOVseTtX9PBjnzo0bLC41WTgBSBBRUBz6LhNFGbYaNUzI6hPm6ll1oNSPOAZc/q/z+3QZEQ==} engines: {node: '>=22'} + '@ai-sdk/provider@4.0.38': + resolution: {integrity: sha512-GElz70UUCuDFFyD6m6aQJFgRY0HEABQzB5otzgkrisYaF5mnss7o0upAmbBTSD6KWiM9h7lZm1ls2c7xzHR8CA==} + engines: {node: '>=22'} + '@antfu/install-pkg@1.1.0': resolution: {integrity: sha512-MGQsmw10ZyI+EJo45CdSER4zEb+p31LpDAFp2Z3gkSd1yqVZGi0Ebx++YTEMonJy4oChEMLsxZ64j8FH6sSqtQ==} @@ -5281,8 +5281,8 @@ packages: resolution: {integrity: sha512-MnA+YT8fwfJPgBx3m60MNqakm30XOkyIoH1y6huTQvC0PwZG7ki8NacLBcrPbNoo8vEZy7Jpuk7+jMO+CUovTQ==} engines: {node: '>= 14'} - ai@7.0.137: - resolution: {integrity: sha512-JxrPkSQknxIN/gYqS3UQksExS6eWI23QMPBrKMGXeeFHhru6xFtF4MuMq17WaHD+lXPh0lne6H0BM2Z2VMW9EQ==} + ai@7.0.173: + resolution: {integrity: sha512-dLea37zT1h7cjkUsBprU4Rq35HJqhtHHaq1jTAXjHQoyfpeswpgCrhjZJWdWc10gjEAxmz114py7iLGQ3xIMxw==} engines: {node: '>=22'} peerDependencies: zod: ^3.25.76 || ^4.1.8 @@ -5403,6 +5403,9 @@ packages: ast-v8-to-istanbul@1.0.7: resolution: {integrity: sha512-kFL68AG6ajd8fg248zwM9GQrUWEp79gsmjum34OEXjs4yHuUMZfYKwOLW9GMmB4oNvVrj+EAGxsP7ye2UR9UlA==} + ast-v8-to-istanbul@1.0.8: + resolution: {integrity: sha512-lPdpagk13ANXV+HClJEpCZM7kUsl5XcvgqKzZhaj6Ve1ZFICcY2sGhAN1n1vT0tML6EclT7bfVgTxqL57Gkpow==} + astring@1.9.0: resolution: {integrity: sha512-LElXdjswlqjWrPpJFg1Fx4wpkOCxj1TDHlSV4PlaRxHGWko024xICaa97ZkMfs6DRKlCguiAI+rbXv5GWwXIkg==} hasBin: true @@ -9445,12 +9448,8 @@ packages: resolution: {integrity: sha512-RYONW2MeafgYlkVOKYKkA/Ag7BmXqgIWCa8t1m0JcxrQg9pI9lEqRhAOruOBCbAohOa/gkCF+iPi9hrgvTzu6Q==} engines: {node: '>=20.18.1'} - undici@7.30.0: - resolution: {integrity: sha512-dkrQXeHSaoamnItlYbmzG0wFYrM0ZwDxCIg0A7aKjTyyhh9svRzCNFEzV+Vm05/yehjCzjDZ31KXfGEjYSztDQ==} - engines: {node: '>=20.18.1'} - - undici@7.30.1: - resolution: {integrity: sha512-03KrMbjIFDWQR5RNPrSw3bd1r12JpyFQl9/yxjUbJtqkjmllqC5lFjZh6ujeuJCKr8EOQvRW872Oy/az+nLYxg==} + undici@7.30.2: + resolution: {integrity: sha512-mLyPQnHwUxaM/rideoK/+KL8DaAJLRl4aBCfmX444aCSLnIaomqPLtNRe2jdCYcsk5wZzXrDIQC8ZeYNRAYyIA==} engines: {node: '>=20.18.1'} unenv@2.0.0-rc.24: @@ -10168,10 +10167,10 @@ snapshots: dependencies: zod: 4.6.7 - '@ai-sdk/gateway@4.0.110(zod@4.5.4)': + '@ai-sdk/gateway@4.0.146(zod@4.5.4)': dependencies: - '@ai-sdk/provider': 4.0.26 - '@ai-sdk/provider-utils': 5.0.58(zod@4.5.4) + '@ai-sdk/provider': 4.0.38 + '@ai-sdk/provider-utils': 5.0.81(zod@4.5.4) '@vercel/oidc': 3.2.0 zod: 4.5.4 @@ -10189,22 +10188,21 @@ snapshots: undici: 6.29.1 zod: 4.5.4 - '@ai-sdk/provider-utils@5.0.58(zod@4.5.4)': + '@ai-sdk/provider-utils@5.0.69(zod@4.5.4)': dependencies: - '@ai-sdk/provider': 4.0.26 + '@ai-sdk/provider': 4.0.34 '@standard-schema/spec': 1.1.0 '@workflow/serde': 4.1.0 eventsource-parser: 3.1.1 - undici: 7.30.0 + undici: 7.30.2 zod: 4.5.4 - '@ai-sdk/provider-utils@5.0.69(zod@4.5.4)': + '@ai-sdk/provider-utils@5.0.81(zod@4.5.4)': dependencies: - '@ai-sdk/provider': 4.0.34 + '@ai-sdk/provider': 4.0.38 '@standard-schema/spec': 1.1.0 '@workflow/serde': 4.1.0 eventsource-parser: 3.1.1 - undici: 7.30.1 zod: 4.5.4 '@ai-sdk/provider@2.0.5': @@ -10215,11 +10213,11 @@ snapshots: dependencies: json-schema: 0.4.0 - '@ai-sdk/provider@4.0.26': + '@ai-sdk/provider@4.0.34': dependencies: json-schema: 0.4.0 - '@ai-sdk/provider@4.0.34': + '@ai-sdk/provider@4.0.38': dependencies: json-schema: 0.4.0 @@ -11979,7 +11977,7 @@ snapshots: dependencies: '@lukeed/csprng': 1.1.0 - '@mastra/core@1.81.0(@grpc/grpc-js@1.14.6)(@opentelemetry/api@1.10.0)(@valibot/to-json-schema@1.3.0(valibot@1.5.0(typescript@5.9.3)))(ai@7.0.137(zod@4.5.4))(express@5.2.1)(valibot@1.5.0(typescript@5.9.3))(zod-to-json-schema@3.25.2(zod@4.5.4))(zod@4.5.4)': + '@mastra/core@1.81.0(@grpc/grpc-js@1.14.6)(@opentelemetry/api@1.10.0)(@valibot/to-json-schema@1.3.0(valibot@1.5.0(typescript@5.9.3)))(ai@7.0.173(zod@4.5.4))(express@5.2.1)(valibot@1.5.0(typescript@5.9.3))(zod-to-json-schema@3.25.2(zod@4.5.4))(zod@4.5.4)': dependencies: '@a2a-js/sdk-v0_3': '@a2a-js/sdk@0.3.14(@grpc/grpc-js@1.14.6)(express@5.2.1)' '@a2a-js/sdk-v1': '@a2a-js/sdk@1.0.1(@grpc/grpc-js@1.14.6)(express@5.2.1)' @@ -11992,7 +11990,7 @@ snapshots: '@lukeed/uuid': 2.0.1 '@mastra/schema-compat': 1.3.17(zod@4.5.4) '@standard-schema/spec': 1.1.0 - chat: 4.44.0(ai@7.0.137(zod@4.5.4))(zod@4.5.4) + chat: 4.44.0(ai@7.0.173(zod@4.5.4))(zod@4.5.4) croner: 10.0.1 dotenv: 17.4.2 execa: 9.6.1 @@ -13679,7 +13677,7 @@ snapshots: dependencies: '@bcoe/v8-coverage': 1.0.2 '@vitest/utils': 4.1.5 - ast-v8-to-istanbul: 1.0.7 + ast-v8-to-istanbul: 1.0.8 istanbul-lib-coverage: 3.2.2 istanbul-lib-report: 3.0.1 istanbul-reports: 3.2.0 @@ -13933,11 +13931,11 @@ snapshots: agent-base@7.1.4: {} - ai@7.0.137(zod@4.5.4): + ai@7.0.173(zod@4.5.4): dependencies: - '@ai-sdk/gateway': 4.0.110(zod@4.5.4) - '@ai-sdk/provider': 4.0.26 - '@ai-sdk/provider-utils': 5.0.58(zod@4.5.4) + '@ai-sdk/gateway': 4.0.146(zod@4.5.4) + '@ai-sdk/provider': 4.0.38 + '@ai-sdk/provider-utils': 5.0.81(zod@4.5.4) zod: 4.5.4 ajv-draft-04@1.0.0(ajv@8.20.0): @@ -14070,6 +14068,13 @@ snapshots: estree-walker: 3.0.3 js-tokens: 10.0.0 + ast-v8-to-istanbul@1.0.8: + dependencies: + '@jridgewell/trace-mapping': 0.3.31 + estree-walker: 3.0.3 + js-tokens: 10.0.0 + optional: true + astring@1.9.0: {} astro-eslint-parser@1.4.0: @@ -14487,7 +14492,7 @@ snapshots: character-reference-invalid@2.0.1: {} - chat@4.44.0(ai@7.0.137(zod@4.5.4))(zod@4.5.4): + chat@4.44.0(ai@7.0.173(zod@4.5.4))(zod@4.5.4): dependencies: '@chat-adapter/catalog': 4.44.0 '@workflow/serde': 4.1.0-beta.2 @@ -14498,7 +14503,7 @@ snapshots: remend: 1.4.0 unified: 11.0.5 optionalDependencies: - ai: 7.0.137(zod@4.5.4) + ai: 7.0.173(zod@4.5.4) zod: 4.5.4 transitivePeerDependencies: - supports-color @@ -19137,9 +19142,7 @@ snapshots: undici@7.29.1: {} - undici@7.30.0: {} - - undici@7.30.1: {} + undici@7.30.2: {} unenv@2.0.0-rc.24: dependencies: @@ -19832,10 +19835,10 @@ snapshots: '@cloudflare/workerd-linux-arm64': 1.20261006.1 '@cloudflare/workerd-windows-64': 1.20261006.1 - workers-ai-provider@4.0.0(@ai-sdk/provider@4.0.34)(ai@7.0.137(zod@4.5.4)): + workers-ai-provider@4.0.0(@ai-sdk/provider@4.0.38)(ai@7.0.173(zod@4.5.4)): dependencies: - '@ai-sdk/provider': 4.0.34 - ai: 7.0.137(zod@4.5.4) + '@ai-sdk/provider': 4.0.38 + ai: 7.0.173(zod@4.5.4) wrangler@4.106.0(@cloudflare/workers-types@5.20260707.1): dependencies: From 1f327b790b02fdc0c9935b5eb5a224801d2e432d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rapha=C3=ABl=20Titsworth-Morin?= Date: Wed, 18 Nov 2026 09:00:29 +0000 Subject: [PATCH 2/3] fix(deps): pair ai 7.0.173 with @mastra/core 1.84.0 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 --- apps/api/package.json | 2 +- pnpm-lock.yaml | 55 +++++++++++++++++-------------------------- 2 files changed, 23 insertions(+), 34 deletions(-) diff --git a/apps/api/package.json b/apps/api/package.json index 9c7d0ceaed..0852799823 100644 --- a/apps/api/package.json +++ b/apps/api/package.json @@ -29,7 +29,7 @@ "@cloudflare/workers-oauth-provider": "1.2.4", "@hono/node-server": "1.19.9", "@hono/valibot-validator": "0.6.1", - "@mastra/core": "1.81.0", + "@mastra/core": "1.84.0", "@modelcontextprotocol/server": "2.3.1", "@simple-agent-manager/agent-email": "workspace:*", "@simple-agent-manager/ai-proxy": "workspace:*", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index d3c91b9f9f..b431a8caed 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -262,8 +262,8 @@ importers: specifier: 0.6.1 version: 0.6.1(hono@4.13.4)(valibot@1.5.0(typescript@5.9.3)) '@mastra/core': - specifier: 1.81.0 - version: 1.81.0(@grpc/grpc-js@1.14.6)(@opentelemetry/api@1.10.0)(@valibot/to-json-schema@1.3.0(valibot@1.5.0(typescript@5.9.3)))(ai@7.0.173(zod@4.5.4))(express@5.2.1)(valibot@1.5.0(typescript@5.9.3))(zod-to-json-schema@3.25.2(zod@4.5.4))(zod@4.5.4) + specifier: 1.84.0 + version: 1.84.0(@grpc/grpc-js@1.14.6)(@opentelemetry/api@1.10.0)(@valibot/to-json-schema@1.3.0(valibot@1.5.0(typescript@5.9.3)))(ai@7.0.173(zod@4.5.4))(express@5.2.1)(valibot@1.5.0(typescript@5.9.3))(zod-to-json-schema@3.25.2(zod@4.5.4))(zod@4.5.4) '@modelcontextprotocol/server': specifier: 2.3.1 version: 2.3.1 @@ -1376,9 +1376,9 @@ packages: peerDependencies: zod: ^3.25.76 || ^4.1.8 - '@ai-sdk/provider-utils@5.0.69': - resolution: {integrity: sha512-oGCXIoBKLpNrrAzJvltFHdBl20FJMyT+7edD9D4nwxoI8Scbj3y1EgKzjoF2XFhNYkMTcv1oTFDgUzLxdjqSKg==} - engines: {node: '>=22'} + '@ai-sdk/provider-utils@4.0.66': + resolution: {integrity: sha512-tITCIYBJlxD4PmDIAI2VXb67yEbWRepvJBJrv2pIY5vMRUta51AFRxLlxm0IexRGdIBGuQ10+ClClZMXtawkbA==} + engines: {node: '>=18.17'} peerDependencies: zod: ^3.25.76 || ^4.1.8 @@ -1396,10 +1396,6 @@ packages: resolution: {integrity: sha512-5lWq7zSfRaU5ylDESn3sDQjgGl2AI1vjZKO/6JY3aFW70ct4zcP1kN+ZUYOuTXr28fVsYbyu2YFhddLdIgQFZQ==} engines: {node: '>=18'} - '@ai-sdk/provider@4.0.34': - resolution: {integrity: sha512-Ip7ZQBq/FiGpM1mmOVseTtX9PBjnzo0bLC41WTgBSBBRUBz6LhNFGbYaNUzI6hPm6ll1oNSPOAZc/q/z+3QZEQ==} - engines: {node: '>=22'} - '@ai-sdk/provider@4.0.38': resolution: {integrity: sha512-GElz70UUCuDFFyD6m6aQJFgRY0HEABQzB5otzgkrisYaF5mnss7o0upAmbBTSD6KWiM9h7lZm1ls2c7xzHR8CA==} engines: {node: '>=22'} @@ -3352,14 +3348,18 @@ packages: resolution: {integrity: sha512-qC72D4+CDdjGqJvkFMMEAtancHUQ7/d/tAiHf64z8MopFDmcrtbcJuerDtFceuAfQJ2pDSfCKCtbqoGBNnwg0w==} engines: {node: '>=8'} - '@mastra/core@1.81.0': - resolution: {integrity: sha512-K04zX5VxjaZbodrZsQIfVWWNWjfEfTXMthAVRCNsTbz4SMee5gpEJoAB4oEcZPVgZR/HEzoOl8JVQ9TXQm445w==} + '@mastra/core@1.84.0': + resolution: {integrity: sha512-0Ko51xP2R5BN5QBSzdMX5b2IKthElMzgKYfmTzumPqnHYcP1I5PoSRuHj/u8wx9m5UKl0ECc6dHpkjiOYO3OxQ==} engines: {node: '>=22.13.0'} peerDependencies: + '@json-render/chat': ^0.22.0 zod: ^3.25.0 || ^4.0.0 + peerDependenciesMeta: + '@json-render/chat': + optional: true - '@mastra/schema-compat@1.3.17': - resolution: {integrity: sha512-8tuRZkVL7JE5A7pH2/GV3khYM+R8xHa+WPSjykq4OjKT2O4s9mNpPl8174dEN8TZUYetUAtxZM0HVM24ON0UQg==} + '@mastra/schema-compat@1.4.0': + resolution: {integrity: sha512-td/x/hfCxY1/3w44FNMNv/qQ/ydNke5tFIP1FLxqGtO33wwtfDR801dQwSSLa8MA3z02D9RkNTb2ynLWuqX88A==} engines: {node: '>=22.13.0'} peerDependencies: zod: ^3.25.0 || ^4.0.0 @@ -9448,10 +9448,6 @@ packages: resolution: {integrity: sha512-RYONW2MeafgYlkVOKYKkA/Ag7BmXqgIWCa8t1m0JcxrQg9pI9lEqRhAOruOBCbAohOa/gkCF+iPi9hrgvTzu6Q==} engines: {node: '>=20.18.1'} - undici@7.30.2: - resolution: {integrity: sha512-mLyPQnHwUxaM/rideoK/+KL8DaAJLRl4aBCfmX444aCSLnIaomqPLtNRe2jdCYcsk5wZzXrDIQC8ZeYNRAYyIA==} - engines: {node: '>=20.18.1'} - unenv@2.0.0-rc.24: resolution: {integrity: sha512-i7qRCmY42zmCwnYlh9H2SvLEypEFGye5iRmEMKjcGi7zk9UquigRjFtTLz0TYqr0ZGLZhaMHl/foy1bZR+Cwlw==} @@ -10188,13 +10184,12 @@ snapshots: undici: 6.29.1 zod: 4.5.4 - '@ai-sdk/provider-utils@5.0.69(zod@4.5.4)': + '@ai-sdk/provider-utils@4.0.66(zod@4.5.4)': dependencies: - '@ai-sdk/provider': 4.0.34 + '@ai-sdk/provider': 3.0.19 '@standard-schema/spec': 1.1.0 - '@workflow/serde': 4.1.0 eventsource-parser: 3.1.1 - undici: 7.30.2 + undici: 6.29.1 zod: 4.5.4 '@ai-sdk/provider-utils@5.0.81(zod@4.5.4)': @@ -10213,10 +10208,6 @@ snapshots: dependencies: json-schema: 0.4.0 - '@ai-sdk/provider@4.0.34': - dependencies: - json-schema: 0.4.0 - '@ai-sdk/provider@4.0.38': dependencies: json-schema: 0.4.0 @@ -11977,18 +11968,18 @@ snapshots: dependencies: '@lukeed/csprng': 1.1.0 - '@mastra/core@1.81.0(@grpc/grpc-js@1.14.6)(@opentelemetry/api@1.10.0)(@valibot/to-json-schema@1.3.0(valibot@1.5.0(typescript@5.9.3)))(ai@7.0.173(zod@4.5.4))(express@5.2.1)(valibot@1.5.0(typescript@5.9.3))(zod-to-json-schema@3.25.2(zod@4.5.4))(zod@4.5.4)': + '@mastra/core@1.84.0(@grpc/grpc-js@1.14.6)(@opentelemetry/api@1.10.0)(@valibot/to-json-schema@1.3.0(valibot@1.5.0(typescript@5.9.3)))(ai@7.0.173(zod@4.5.4))(express@5.2.1)(valibot@1.5.0(typescript@5.9.3))(zod-to-json-schema@3.25.2(zod@4.5.4))(zod@4.5.4)': dependencies: '@a2a-js/sdk-v0_3': '@a2a-js/sdk@0.3.14(@grpc/grpc-js@1.14.6)(express@5.2.1)' '@a2a-js/sdk-v1': '@a2a-js/sdk@1.0.1(@grpc/grpc-js@1.14.6)(express@5.2.1)' - '@ai-sdk/provider-utils-v6': '@ai-sdk/provider-utils@4.0.62(zod@4.5.4)' - '@ai-sdk/provider-utils-v7': '@ai-sdk/provider-utils@5.0.69(zod@4.5.4)' + '@ai-sdk/provider-utils-v6': '@ai-sdk/provider-utils@4.0.66(zod@4.5.4)' + '@ai-sdk/provider-utils-v7': '@ai-sdk/provider-utils@5.0.81(zod@4.5.4)' '@ai-sdk/provider-v5': '@ai-sdk/provider@2.0.5' '@ai-sdk/provider-v6': '@ai-sdk/provider@3.0.19' - '@ai-sdk/provider-v7': '@ai-sdk/provider@4.0.34' + '@ai-sdk/provider-v7': '@ai-sdk/provider@4.0.38' '@isaacs/ttlcache': 2.1.5 '@lukeed/uuid': 2.0.1 - '@mastra/schema-compat': 1.3.17(zod@4.5.4) + '@mastra/schema-compat': 1.4.0(zod@4.5.4) '@standard-schema/spec': 1.1.0 chat: 4.44.0(ai@7.0.173(zod@4.5.4))(zod@4.5.4) croner: 10.0.1 @@ -12030,7 +12021,7 @@ snapshots: - zod-openapi - zod-to-json-schema - '@mastra/schema-compat@1.3.17(zod@4.5.4)': + '@mastra/schema-compat@1.4.0(zod@4.5.4)': dependencies: json-schema-to-zod: 2.8.1 zod: 4.5.4 @@ -19142,8 +19133,6 @@ snapshots: undici@7.29.1: {} - undici@7.30.2: {} - unenv@2.0.0-rc.24: dependencies: pathe: 2.0.3 From 4aed25c1170119428a36d445d82636532c79e348 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rapha=C3=ABl=20Titsworth-Morin?= Date: Tue, 17 Nov 2026 12:26:10 +0000 Subject: [PATCH 3/3] test(api): control secret submit transaction arrival order (cherry picked from commit 0277830fc00649143e48739b2363b8e2975198b5) 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 --- .../integration/runtime-secret-requests.test.ts | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/apps/api/tests/integration/runtime-secret-requests.test.ts b/apps/api/tests/integration/runtime-secret-requests.test.ts index 4604d74a2c..e9f9b2c370 100644 --- a/apps/api/tests/integration/runtime-secret-requests.test.ts +++ b/apps/api/tests/integration/runtime-secret-requests.test.ts @@ -754,12 +754,17 @@ describe('hardening', () => { const firstHeld = new Promise((resolve) => { releaseFirst = resolve; }); + let firstBatchEntered!: () => void; + const firstAtBatch = new Promise((resolve) => { + firstBatchEntered = resolve; + }); let batches = 0; let firstRan: Promise = Promise.resolve(); env.DATABASE.batch = (async (statements: D1PreparedStatement[]) => { batches += 1; if (batches === 1) { firstRan = firstHeld.then(() => realBatch(statements)); + firstBatchEntered(); return firstRan; } // Second submit: both have now passed every pre-check. Run the first transaction, then this. @@ -768,8 +773,14 @@ describe('hardening', () => { return realBatch(statements); }) as typeof env.DATABASE.batch; + const firstSubmit = fulfill(request.id, { value: SENTINEL }); + // Async encryption can reorder batch arrival. Hold the first request at its + // transaction before starting the second, while both still read pending. + await firstAtBatch; + expect(requestRow(request.id)?.status).toBe('pending'); + expect(envRow('STRIPE_API_KEY')).toBeUndefined(); const [first, second] = await Promise.all([ - fulfill(request.id, { value: SENTINEL }), + firstSubmit, fulfill(request.id, { value: OTHER_SENTINEL }), ]); expect(batches).toBe(2);