@mastra/core 1.87.0-alpha.13 → 1.87.0-alpha.15

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (130) hide show
  1. package/dist/agent/durable/index.cjs +1 -1
  2. package/dist/agent/durable/index.js +1 -1
  3. package/dist/agent/index.cjs +2 -2
  4. package/dist/agent/index.js +2 -2
  5. package/dist/agent-builder/ee/index.cjs +1 -1
  6. package/dist/agent-builder/ee/index.js +1 -1
  7. package/dist/agent-controller/index.cjs +1 -1
  8. package/dist/agent-controller/index.js +1 -1
  9. package/dist/{agent-controller-DDxEG9Nd.cjs → agent-controller-DhDQXNoI.cjs} +5 -5
  10. package/dist/{agent-controller-DYwtbG2-.js → agent-controller-DihwxeVJ.js} +5 -5
  11. package/dist/background-tasks/index.cjs +1 -1
  12. package/dist/background-tasks/index.js +1 -1
  13. package/dist/{background-tasks-B8Lk1bt5.js → background-tasks-BoUX5G90.js} +1 -1
  14. package/dist/{background-tasks-LfQsDG6J.cjs → background-tasks-udYDvnlw.cjs} +1 -1
  15. package/dist/browser/index.cjs +1 -1
  16. package/dist/browser/index.js +1 -1
  17. package/dist/{builder-CPgUrTDP.cjs → builder-B2n-bUbl.cjs} +2 -2
  18. package/dist/{builder-DLaSPG2u.js → builder-Cn1lOWio.js} +2 -2
  19. package/dist/channels/index.cjs +2 -2
  20. package/dist/channels/index.js +2 -2
  21. package/dist/{channels-BPxJYR70.js → channels-DA3oMfhF.js} +1 -1
  22. package/dist/{channels-DH9fKqmy.cjs → channels-HRrlHnwF.cjs} +1 -1
  23. package/dist/coding-agent/index.cjs +2 -2
  24. package/dist/coding-agent/index.js +2 -2
  25. package/dist/{constants-Bou0hEgY.cjs → constants-CFO8w780.cjs} +8 -0
  26. package/dist/{constants-CFWgIaqA.js → constants-CUv0mU2y.js} +8 -0
  27. package/dist/datasets/index.cjs +2 -2
  28. package/dist/datasets/index.js +2 -2
  29. package/dist/docs/SKILL.md +1 -1
  30. package/dist/docs/assets/SOURCE_MAP.json +759 -749
  31. package/dist/docs/references/docs-harness-schedules.md +34 -0
  32. package/dist/docs/references/docs-signals-sending-signals.md +13 -0
  33. package/dist/docs/references/docs-signals-state-signals.md +1 -1
  34. package/dist/docs/references/reference-signals-time-signal-provider.md +35 -0
  35. package/dist/docs/references/reference-workspace-factory-sandbox.md +2 -0
  36. package/dist/evals/index.cjs +2 -2
  37. package/dist/evals/index.js +2 -2
  38. package/dist/evals/scoreTraces/index.cjs +2 -2
  39. package/dist/evals/scoreTraces/index.js +2 -2
  40. package/dist/harness/index.cjs +1 -1
  41. package/dist/harness/index.js +1 -1
  42. package/dist/index.cjs +1 -1
  43. package/dist/index.js +1 -1
  44. package/dist/knowledge/index.cjs +1 -1
  45. package/dist/knowledge/index.js +1 -1
  46. package/dist/llm/index.cjs +3 -3
  47. package/dist/llm/index.js +3 -3
  48. package/dist/{llm-DeOr7BXy.cjs → llm-Bljw7LII.cjs} +2 -2
  49. package/dist/{llm-DGa7alUy.js → llm-CxHzqEEI.js} +2 -2
  50. package/dist/loop/index.cjs +2 -2
  51. package/dist/loop/index.js +2 -2
  52. package/dist/{manager-BErWwr50.js → manager-BimN8ZdV.js} +3 -3
  53. package/dist/{manager-B-pQMauy.cjs → manager-DVYVB-3O.cjs} +3 -3
  54. package/dist/mastra/index.cjs +1 -1
  55. package/dist/mastra/index.js +1 -1
  56. package/dist/{mastra-B1BKkzX0.js → mastra-BpMvri3z.js} +17 -16
  57. package/dist/{mastra-CoWxmLQl.cjs → mastra-k8L1lFip.cjs} +17 -16
  58. package/dist/memory/index.cjs +2 -2
  59. package/dist/memory/index.js +2 -2
  60. package/dist/{model-CGH6nAvh.cjs → model-CrDuEDRq.cjs} +1 -1
  61. package/dist/{model-Bz3zffBv.js → model-sUJDcX2v.js} +1 -1
  62. package/dist/{netlify-CzbukKO2.js → netlify-BEJ96z-w.js} +1 -1
  63. package/dist/{netlify-D7oirBdu.cjs → netlify-Td-JUUkt.cjs} +1 -1
  64. package/dist/notifications/index.cjs +1 -1
  65. package/dist/notifications/index.js +1 -1
  66. package/dist/processor-provider/index.cjs +1 -1
  67. package/dist/processor-provider/index.js +1 -1
  68. package/dist/processors/index.cjs +2 -2
  69. package/dist/processors/index.js +2 -2
  70. package/dist/{provider-registry-DTaqnIYP.cjs → provider-registry-CCYXykIZ.cjs} +4 -4
  71. package/dist/{provider-registry-CdCkSE3h.js → provider-registry-DBG4hlGl.js} +4 -4
  72. package/dist/{registry-generator-CcgFsigf.cjs → registry-generator-BxiC9XcX.cjs} +1 -1
  73. package/dist/{registry-generator-Dbxm-MYh.js → registry-generator-D2lO3JJJ.js} +1 -1
  74. package/dist/{rehydrate-D7eaaJxI.cjs → rehydrate-BD0zOfc8.cjs} +2 -2
  75. package/dist/{rehydrate-BhmzzvtV.js → rehydrate-PRFAu8yl.js} +2 -2
  76. package/dist/relevance/index.cjs +2 -2
  77. package/dist/relevance/index.js +2 -2
  78. package/dist/{run-registry-59R9kE8Z.cjs → run-registry-BvMXuIb_.cjs} +530 -367
  79. package/dist/{run-registry-Du22tS_D.js → run-registry-Cqp-VFdv.js} +530 -367
  80. package/dist/{scheduler-B-VZUvv_.js → scheduler-0ShtMM1I.js} +71 -21
  81. package/dist/{scheduler-D00X03jQ.cjs → scheduler-CMjK0LoQ.cjs} +82 -20
  82. package/dist/signals/index.cjs +1 -1
  83. package/dist/signals/index.js +1 -1
  84. package/dist/signals/time-signal-provider.d.ts +8 -0
  85. package/dist/{signals-CIwzgkvN.cjs → signals-CbmgVwL-.cjs} +74 -7
  86. package/dist/{signals-BTfT-6DE.js → signals-Clupx3jz.js} +74 -7
  87. package/dist/storage/constants.cjs +1 -1
  88. package/dist/storage/constants.js +1 -1
  89. package/dist/storage/domains/knowledge/base.d.ts +33 -1
  90. package/dist/storage/domains/knowledge/inmemory.d.ts +2 -0
  91. package/dist/storage/domains/knowledge/pages-inmemory.d.ts +20 -12
  92. package/dist/storage/domains/schedules/base.d.ts +31 -2
  93. package/dist/storage/domains/schedules/inmemory.d.ts +9 -2
  94. package/dist/storage/index.cjs +3 -3
  95. package/dist/storage/index.js +3 -3
  96. package/dist/stream/index.cjs +2 -2
  97. package/dist/stream/index.js +2 -2
  98. package/dist/{stream-mYc-fHPF.cjs → stream-BIbVD8V8.cjs} +1 -1
  99. package/dist/{stream-C_oNulbg.js → stream-D607FmAx.js} +1 -1
  100. package/dist/test-utils/llm-mock.cjs +1 -1
  101. package/dist/test-utils/llm-mock.js +1 -1
  102. package/dist/tool-loop-agent/index.cjs +1 -1
  103. package/dist/tool-loop-agent/index.js +1 -1
  104. package/dist/{tool-loop-agent-Bi09dOW5.cjs → tool-loop-agent-Cnf7vONA.cjs} +3 -3
  105. package/dist/{tool-loop-agent-Du1BJO8a.js → tool-loop-agent-eyoY_TEX.js} +3 -3
  106. package/dist/{utils-nyjsIsHZ.js → utils-CQkzZUcK.js} +1 -1
  107. package/dist/{utils-BGq3p2MX.cjs → utils-O1TXaFUl.cjs} +1 -1
  108. package/dist/utils.cjs +1 -1
  109. package/dist/utils.js +1 -1
  110. package/dist/{validate-CcE7gP2j.cjs → validate-CEgWy7P0.cjs} +1 -1
  111. package/dist/{validate-q0hhKzA4.js → validate-CTWjOlWp.js} +1 -1
  112. package/dist/vector/index.cjs +1 -1
  113. package/dist/vector/index.js +1 -1
  114. package/dist/worker/index.cjs +1 -1
  115. package/dist/worker/index.js +1 -1
  116. package/dist/{worker-DmJLbaGI.cjs → worker-CCDvbK3P.cjs} +2 -2
  117. package/dist/{worker-Dboi5I9k.js → worker-CCNb2aJe.js} +3 -3
  118. package/dist/{worker-Dzfx-9D0.cjs → worker-CI1joT3R.cjs} +3 -3
  119. package/dist/{worker-Wv2nS-Df.js → worker-D52cos24.js} +2 -2
  120. package/dist/{workflow-BPf1-mkb.cjs → workflow-BJL0qlPN.cjs} +3 -3
  121. package/dist/{workflow-CFfCkulP.js → workflow-DsmyWwxG.js} +3 -3
  122. package/dist/workflows/builder/index.cjs +1 -1
  123. package/dist/workflows/builder/index.js +1 -1
  124. package/dist/workflows/evented/index.cjs +1 -1
  125. package/dist/workflows/evented/index.js +1 -1
  126. package/dist/workflows/index.cjs +7 -5
  127. package/dist/workflows/index.js +6 -6
  128. package/dist/workflows/scheduler/claim.d.ts +51 -0
  129. package/dist/workflows/scheduler/index.d.ts +2 -0
  130. package/package.json +7 -7
@@ -230,6 +230,40 @@ Things to know:
230
230
 
231
231
  Turning on **Experimental schedule tools** in `/settings` (restart required) gives the agent tools that manage the same schedules: `schedule_create`, `schedule_list`, `schedule_update` (pause or delete), `schedule_resume`, and `schedule_run`. The tools only see and change schedules on the thread of the run that calls them. Because a schedule can run a script on every fire, `schedule_create`, `schedule_resume`, and `schedule_run` need the same approval as running a shell command unless YOLO mode is on. Schedules the agent creates are marked `created by agent` in the transcript.
232
232
 
233
+ ## Ticking from outside the process
234
+
235
+ By default the in-process scheduler polls storage on a timer and fires due schedules. A host that serves many tenants from one database, or that runs without a long-lived process, can instead drive ticks itself, for example from a cron job that calls an HTTP route every minute.
236
+
237
+ Give each tenant a view of the store with `forTenant()`. A view only reads and writes that tenant's schedules and triggers, so schedule IDs only need to be unique per tenant:
238
+
239
+ ```typescript
240
+ const schedules = await mastra.getStorage()!.getStore('schedules')
241
+ const project = schedules!.forTenant('org_1:project_1')
242
+
243
+ await project.createSchedule(schedule)
244
+ ```
245
+
246
+ On each tick, call `runScheduleTick()` with the root store. It lists due tenant schedules across every tenant, passes each occurrence to `dispatch`, and only then advances the schedule:
247
+
248
+ ```typescript
249
+ import { runScheduleTick } from '@mastra/core/workflows'
250
+
251
+ await runScheduleTick({
252
+ store: schedules!,
253
+ now: Date.now(),
254
+ dispatch: fire => queue.enqueue({ name: fire.runId, payload: fire }),
255
+ onError: (error, schedule) =>
256
+ logger.error('Schedule dispatch failed', { scheduleId: schedule.id, error }),
257
+ })
258
+ ```
259
+
260
+ - **Dedupe on `runId`.** `runId` is the same for every attempt at one occurrence. If the process dies after `dispatch` but before the schedule advances, the next tick dispatches the same `runId` again, so `dispatch` must be idempotent on it, for example by naming the queue task after it.
261
+ - **Handle `onError`.** A failed dispatch leaves the schedule due, so it's retried on the next tick. A dispatch that keeps failing fails on every tick, and `onError` is the only place it's reported.
262
+ - **Tenant schedules only.** `runScheduleTick()` never fires schedules without a tenant. Those belong to the in-process scheduler, so the two never fire the same occurrence.
263
+ - **Claiming one fire.** To advance a single schedule you already dispatched yourself, call `claimScheduleFire({ store, schedule, now })`. It returns the claimed occurrence, or `undefined` if another tick claimed it first.
264
+
265
+ Tenant views are supported by the in-memory store, `@mastra/pg` and `@mastra/libsql`. Other stores throw from `forTenant()`. Prune trigger history from the root store. A tenant view refuses `prune()`.
266
+
233
267
  ## Related
234
268
 
235
269
  - [`mastra.schedules`](https://mastra.ai/reference/schedules/overview): API reference for creating and managing schedules.
@@ -41,6 +41,19 @@ await result.accepted
41
41
 
42
42
  The model receives `<user name="Jane" sentFrom="slack">Use the latest customer note too.</user>`.
43
43
 
44
+ ### Tell the agent the user's time zone
45
+
46
+ Put the user's IANA time zone in `attributes.timeZone`:
47
+
48
+ ```typescript
49
+ const result = agent.sendMessage(
50
+ { contents: 'Remind me after lunch.', attributes: { timeZone: 'Europe/Paris' } },
51
+ { resourceId: 'user_123', threadId: 'thread_456' },
52
+ )
53
+ ```
54
+
55
+ The model sees the attribute on the user's message, as `<user timeZone="Europe/Paris">`. A [`TimeSignalProvider`](https://mastra.ai/reference/signals/time-signal-provider) on the agent also reads it and adds a line with the time there to its `<current-time>` tag. The provider also reads `metadata.timeZone`. That keeps the zone off the user's message, but the `<current-time>` tag still shows the zone and its time.
56
+
44
57
  ## Queue a follow-up
45
58
 
46
59
  Use [`queueMessage()`](https://mastra.ai/reference/agents/agent) when the current answer should finish before the agent sees the next message:
@@ -94,7 +94,7 @@ Mastra uses state signals for long-lived context, and the same patterns apply to
94
94
  - The [browser](https://mastra.ai/docs/browser) context processor keeps the active page and tabs under `browser`.
95
95
  - [Goals](https://mastra.ai/docs/harness/goals) keep the current objective under the `goal` id.
96
96
  - [Task tracking](https://mastra.ai/docs/agents/tools) stores task state through [`TaskStateProcessor`](https://mastra.ai/reference/signals/task-signal-provider).
97
- - [`TimeSignalProvider`](https://mastra.ai/reference/signals/time-signal-provider) keeps the current time for every configured zone in one lane, `current-time`. It adds a full `<current-time>` snapshot with a line per zone, then a small `<current-time-update>` delta each time its interval moves on.
97
+ - [`TimeSignalProvider`](https://mastra.ai/reference/signals/time-signal-provider) keeps the current time for every configured zone in one lane, `current-time`. It adds a full `<current-time>` snapshot with a line per zone, then a small `<current-time-update>` delta each time its interval moves on. It also lists the zones users send as `timeZone` on their messages, so the zone list can change with the conversation.
98
98
  - [Working memory](https://mastra.ai/docs/memory/working-memory) can move out of the system prompt and into a `working-memory` state signal with `useStateSignals: true`.
99
99
 
100
100
  ## Persistence and truncation
@@ -54,6 +54,39 @@ With `interval: 'day'` every line shows a date, such as `UTC: Wednesday, Novembe
54
54
 
55
55
  One provider instance can be listed on several agents and serves every thread.
56
56
 
57
+ ## Zones from user messages
58
+
59
+ When your app knows a user's time zone, put it in `attributes.timeZone` on the message. The model sees the attribute on the user's message, and the provider adds a line with the time where that user is:
60
+
61
+ ```typescript
62
+ agent.sendMessage(
63
+ { contents: 'When should we meet?', attributes: { timeZone: 'Asia/Tokyo' } },
64
+ { resourceId: 'user_123', threadId: 'thread_456' },
65
+ )
66
+ ```
67
+
68
+ ```xml
69
+ <current-time>
70
+ UTC: Tuesday, December 1, 2026 at 4:15 PM UTC
71
+ Asia/Tokyo: Wednesday, December 2, 2026 at 1:15 AM GMT+9
72
+ </current-time>
73
+ ```
74
+
75
+ The provider reads `timeZone` from messages users write, in this order. It uses the first one set to a non-empty string:
76
+
77
+ 1. `attributes.timeZone` on a message sent with `sendMessage()` or a `user` signal. The model sees it too.
78
+ 2. `metadata.timeZone` on that signal. The model doesn't see it.
79
+ 3. `metadata.timeZone` on an AI SDK v4 or v5 UI message passed to `generate()` or `stream()`. UI messages have no attributes, and they keep their `metadata` in memory.
80
+
81
+ Set the zone in one place. When `attributes` has a value, the provider ignores `metadata` on that message. If that value isn't a time zone, the message adds no zone. The provider ignores assistant messages and other signals. Legacy messages that carry `threadId` or `resourceId` drop their metadata, so their zones aren't read.
82
+
83
+ - **Which zones show.** At each step the provider looks at the user messages in the context, newest first. It adds up to `messageTimeZones.max` zones (default 10) after the configured zones, sorted by name. A zone equal to a configured one adds no line. Each learned zone shows its canonical name, so `Asia/Kolkata` can show as `Asia/Calcutta`.
84
+ - **Bounded work.** The provider checks at most 16 distinct values a step. A zone behind 16 newer distinct values isn't shown, even below the limit. No more than 16 learned zones can show, whatever `max` is. It returns when fewer values sit in front of it, or when its user writes again.
85
+ - **Values it can't use are skipped.** A value that isn't a string, is longer than 64 characters or isn't a time zone is ignored, and the step goes on.
86
+ - **A new zone starts a fresh snapshot.** When the set of zones changes, the provider adds a full snapshot with the new list. Deltas then cover every zone in it.
87
+ - **Zones leave with their messages.** A zone stays while the context holds a message that carries it. The next step drops the zone when memory stops loading that message or an input processor removes it. A `prepareStep` callback and a `processLLMRequest` rewrite run after the provider. A message removed there still keeps its zone in the tag for that step.
88
+ - **Agents on one thread can disagree.** Agents that load different amounts of history can see different zones. Each then adds its own snapshot when it runs.
89
+
57
90
  ## Requirements and cost
58
91
 
59
92
  - **Memory is required.** Like every state signal, the time lane is tracked on a memory-backed thread. Listing the provider on an agent without memory makes every run fail with `computeStateSignal requires Mastra memory with an active resourceId and threadId`.
@@ -75,6 +108,8 @@ One provider instance can be listed on several agents and serves every thread.
75
108
 
76
109
  **format** (`Intl.DateTimeFormatOptions | (date: Date, options: { timeZone: string; locale: string }) => string`): Overrides the text the model sees. By default the text matches the interval: the date for day, the date and hour for whole-hour intervals, and the date and time to the minute otherwise, each with the zone name. Deltas then show only the time of day, or the full date after it rolls over. With an override, every delta repeats the full override text.
77
110
 
111
+ **messageTimeZones** (`boolean | { max?: number }`): Adds the zones users send as timeZone in the attributes or metadata of their messages, after the configured zones. max caps how many such zones show; it defaults to 10 and must be a positive integer. Set false to show only the configured zones. See Zones from user messages. (Default: `true`)
112
+
78
113
  **align** (`boolean`): When true, the time moves on at wall-clock boundaries in each zone (12:00, 12:15, ...). When false, it moves on once interval has passed since the last snapshot or delta. (Default: `true`)
79
114
 
80
115
  ## Properties
@@ -200,6 +200,8 @@ When the sandbox declares `builds`, factory builds the environment template ahea
200
200
 
201
201
  A save that leaves every template input unchanged doesn't start a build. Scheduled, push and session builds skip when the last build is ready, no repository head moved and no template input changed (settings, repositories and their order, setup commands, the working directory or the factory's Build variables). Factory stores only the last build id and the active template. Status and history come from the provider through `GET …/environment/builds/:buildId` and `GET …/environment/builds` (404 `no_history` when the provider keeps none).
202
202
 
203
+ When the sandbox declares `builds`, setup commands run only in environment builds, and a session boots only a build of the environment as saved. A sandbox without `builds` keeps running setup in the session. Before the first build, or after a saved change to the sandbox settings, repositories, setup commands or Build variables, a session's sandbox commands fail with a message saying the environment is being built, and Factory starts a build if none is running and notifies each waiting session when it ends. Push and session builds keep the template current, so new commits alone don't make a session wait. If the build of a saved change fails, sessions boot the previous build and the agent is told the change failed. Without a previous build, commands fail with the build's error. Factory doesn't retry a failed build on every command. Start another build from the environment settings. The repositories page shows the setup result of the build that sessions boot from.
204
+
203
205
  When a build start was never recorded and the provider can't list its builds, Factory can't tell whether that build is still running. Triggers skip with reason `unresolved` for 30 minutes after the start's lease lapsed, then Factory treats the start as failed and the next trigger builds.
204
206
 
205
207
  ## Environment variables
@@ -1,6 +1,6 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
- const require_run_registry = require("../run-registry-59R9kE8Z.cjs");
3
- const require_constants = require("../constants-Bou0hEgY.cjs");
2
+ const require_run_registry = require("../run-registry-BvMXuIb_.cjs");
3
+ const require_constants = require("../constants-CFO8w780.cjs");
4
4
  const require_collect_tool_mocks = require("../collect-tool-mocks-k9fM6oDl.cjs");
5
5
  exports.MastraScorer = require_run_registry.MastraScorer;
6
6
  exports.SCORING_PREDICATE_ROOTS = require_run_registry.SCORING_PREDICATE_ROOTS;
@@ -1,4 +1,4 @@
1
- import { C as MastraScorer, D as isNotScorable, E as filterRun, Hc as SCORING_PREDICATE_ROOTS, O as notScorable, S as createClassifierScorer, T as createScorer, Uc as evaluateScoringPredicate, Wc as validateScoringPredicate, v as runEvals, w as ScorerRunError } from "../run-registry-Du22tS_D.js";
2
- import { Ar as scoringEntityTypeSchema, Cr as extractTrajectory, Dr as saveScorePayloadSchema, Er as listScoresResponseSchema, Fr as scoringInputWithExtractStepResultAndScoreAndReasonSchema, Ir as scoringInputWithExtractStepResultSchema, Lr as scoringPromptsSchema, Mr as scoringHookInputSchema, Nr as scoringInputSchema, Or as scoreResultSchema, Pr as scoringInputWithExtractStepResultAndAnalyzeStepResultSchema, Rr as scoringSourceSchema, Tr as extractWorkflowTrajectory, jr as scoringExtractStepResultSchema, kr as scoreRowDataSchema, wr as extractTrajectoryFromTrace, zr as scoringValueSchema } from "../constants-CFWgIaqA.js";
1
+ import { C as MastraScorer, D as isNotScorable, E as filterRun, Hc as SCORING_PREDICATE_ROOTS, O as notScorable, S as createClassifierScorer, T as createScorer, Uc as evaluateScoringPredicate, Wc as validateScoringPredicate, v as runEvals, w as ScorerRunError } from "../run-registry-Cqp-VFdv.js";
2
+ import { Ar as scoringEntityTypeSchema, Cr as extractTrajectory, Dr as saveScorePayloadSchema, Er as listScoresResponseSchema, Fr as scoringInputWithExtractStepResultAndScoreAndReasonSchema, Ir as scoringInputWithExtractStepResultSchema, Lr as scoringPromptsSchema, Mr as scoringHookInputSchema, Nr as scoringInputSchema, Or as scoreResultSchema, Pr as scoringInputWithExtractStepResultAndAnalyzeStepResultSchema, Rr as scoringSourceSchema, Tr as extractWorkflowTrajectory, jr as scoringExtractStepResultSchema, kr as scoreRowDataSchema, wr as extractTrajectoryFromTrace, zr as scoringValueSchema } from "../constants-CUv0mU2y.js";
3
3
  import { t as collectToolMocks } from "../collect-tool-mocks-3s2BN8o7.js";
4
4
  export { MastraScorer, SCORING_PREDICATE_ROOTS, ScorerRunError, collectToolMocks, createClassifierScorer, createScorer, evaluateScoringPredicate, extractTrajectory, extractTrajectoryFromTrace, extractWorkflowTrajectory, filterRun, isNotScorable, listScoresResponseSchema, notScorable, runEvals, saveScorePayloadSchema, scoreResultSchema, scoreRowDataSchema, scoringEntityTypeSchema, scoringExtractStepResultSchema, scoringHookInputSchema, scoringInputSchema, scoringInputWithExtractStepResultAndAnalyzeStepResultSchema, scoringInputWithExtractStepResultAndScoreAndReasonSchema, scoringInputWithExtractStepResultSchema, scoringPromptsSchema, scoringSourceSchema, scoringValueSchema, validateScoringPredicate };
@@ -1,8 +1,8 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
2
  const require_error = require("../../error-D90lJ6M7.cjs");
3
3
  const require_utils = require("../../utils-D-eNsgDM.cjs");
4
- const require_run_registry = require("../../run-registry-59R9kE8Z.cjs");
5
- const require_constants = require("../../constants-Bou0hEgY.cjs");
4
+ const require_run_registry = require("../../run-registry-BvMXuIb_.cjs");
5
+ const require_constants = require("../../constants-CFO8w780.cjs");
6
6
  let zod_v4 = require("zod/v4");
7
7
  // src/evals/scoreTraces/scoreTraces.ts
8
8
  async function scoreTraces({ scorerId, targets, mastra }) {
@@ -1,7 +1,7 @@
1
1
  import { i as MastraError, n as ErrorDomain, t as ErrorCategory } from "../../error-oh2DLsP2.js";
2
2
  import { i as getEntityTypeForSpan } from "../../utils-DU_pU5SK.js";
3
- import { Qs as createWorkflow, Zs as createStep } from "../../run-registry-Du22tS_D.js";
4
- import { Dr as saveScorePayloadSchema } from "../../constants-CFWgIaqA.js";
3
+ import { Qs as createWorkflow, Zs as createStep } from "../../run-registry-Cqp-VFdv.js";
4
+ import { Dr as saveScorePayloadSchema } from "../../constants-CUv0mU2y.js";
5
5
  import { z } from "zod/v4";
6
6
  // src/evals/scoreTraces/scoreTraces.ts
7
7
  async function scoreTraces({ scorerId, targets, mastra }) {
@@ -1,7 +1,7 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
2
  const require_state_processor = require("../state-processor-kRNZ38Nf.cjs");
3
3
  const require_tools = require("../tools-BEYxowf0.cjs");
4
- const require_agent_controller = require("../agent-controller-DDxEG9Nd.cjs");
4
+ const require_agent_controller = require("../agent-controller-DhDQXNoI.cjs");
5
5
  // src/harness/index.ts
6
6
  /**
7
7
  * @deprecated Backwards-compatibility entrypoint.
@@ -1,6 +1,6 @@
1
1
  import { f as taskCheckTool, h as taskWriteTool, m as taskUpdateTool, o as assignTaskIds, p as taskCompleteTool } from "../state-processor-B9kxpM53.js";
2
2
  import { s as askUserTool, t as submitPlanTool } from "../tools-tPy2FwMI.js";
3
- import { a as Session, c as defaultDisplayState, l as defaultOMProgressState, n as parseSubagentMeta, t as AgentController } from "../agent-controller-DYwtbG2-.js";
3
+ import { a as Session, c as defaultDisplayState, l as defaultOMProgressState, n as parseSubagentMeta, t as AgentController } from "../agent-controller-DihwxeVJ.js";
4
4
  // src/harness/index.ts
5
5
  /**
6
6
  * @deprecated Backwards-compatibility entrypoint.
package/dist/index.cjs CHANGED
@@ -1,3 +1,3 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
- const require_mastra = require("./mastra-CoWxmLQl.cjs");
2
+ const require_mastra = require("./mastra-k8L1lFip.cjs");
3
3
  exports.Mastra = require_mastra.Mastra;
package/dist/index.js CHANGED
@@ -1 +1 @@
1
- export { t as Mastra } from "./mastra-B1BKkzX0.js";
1
+ export { t as Mastra } from "./mastra-BpMvri3z.js";
@@ -1,6 +1,6 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
2
  const require_base = require("../base-BIzR1D3_.cjs");
3
- const require_run_registry = require("../run-registry-59R9kE8Z.cjs");
3
+ const require_run_registry = require("../run-registry-BvMXuIb_.cjs");
4
4
  const require_tool = require("../tool-CYlT2UA-.cjs");
5
5
  let crypto = require("crypto");
6
6
  let _mastra_schema_compat_schema = require("@mastra/schema-compat/schema");
@@ -1,5 +1,5 @@
1
1
  import { t as MastraBase } from "../base-CKLWBhDo.js";
2
- import { $i as parseKnowledgePageRef, $o as getStorageSource, $t as PINNED_READ_MEMO_KEY, Ai as inspectKnowledgeSchema, An as knowledgeMemoryScopes, Bi as MAX_KNOWLEDGE_PAGE_DESCRIPTION_TOKENS, Ci as KnowledgeNotFoundError, Cn as syncKnowledgePageBodyLinks, Cr as expandKnowledgeScope, Di as KnowledgeUnsupportedCapabilityError, Dn as knowledgeRoleOn, Dr as knowledgeSemanticIdempotencyKey, Ei as KnowledgeTransactionDeadlineError, En as knowledgeReadScopeFor, Er as knowledgeSemanticDocumentId, Fi as KnowledgePageKeyConflictError, Fn as encodeKnowledgeScopeId, Gi as assertKnowledgeNoteTextWithinBound, Hi as MAX_KNOWLEDGE_PAGE_LINK_REF_LENGTH, Ii as MAX_KNOWLEDGE_MOVE_PAGES, In as buildKnowledgeInstructions, Ji as knowledgeLinkRefKey, Ki as assertKnowledgePageDescriptionWithinBound, Li as MAX_KNOWLEDGE_NOTE_TOKENS, Mi as KnowledgeMoveTooLargeError, Mn as knowledgeScopeAddress, Ni as KnowledgePageDepthError, Nn as strongerKnowledgeRole, Oi as assertKnowledgeSchemaCompatible, On as KnowledgeDeclarationError, Or as knowledgeVisibleScopeKeys, Pi as KnowledgePageHasChildrenError, Pn as decodeKnowledgeScopeId, Qi as knowledgeScopeReadable, Qo as augmentWithInit, Ri as MAX_KNOWLEDGE_PAGE_BODY_LINKS, Si as KnowledgeConflictError, Sn as repairKnowledgeLinks, Sr as createKnowledgeNodeCursor, Ti as KnowledgeStorage, Tn as knowledgeAccessGrants, Tr as knowledgeScopeKey, Ui as MAX_KNOWLEDGE_PAGE_LIST_LIMIT, Vi as MAX_KNOWLEDGE_PAGE_LINKS, Wi as MAX_KNOWLEDGE_PIN_LIST_DEPTH, Xi as knowledgePinDepth, Yi as knowledgePagePath, Zi as knowledgePositionBetween, _i as KnowledgeImporterBindingConflictError, _n as KnowledgeLinkRepairUnsupportedError, _r as assertKnowledgeCeilingRaised, an as knowledgeRunPrincipals, bi as KNOWLEDGE_STORAGE_CONTRACT_VERSION, bn as refreshKnowledgeLinksTo, br as assertKnowledgeScopeWithinCeiling, cn as addKnowledgeNote, dn as removeKnowledgePage, ea as KnowledgeInvalidCursorError, en as knowledgeDeliveredPins, fn as updateKnowledgeNote, gi as InMemoryKnowledgeStorage, gn as KnowledgeLinkRefreshIncompleteError, gr as MAX_KNOWLEDGE_SCOPE_TAGS, hr as MAX_KNOWLEDGE_RECORD_TEXT_LENGTH, in as KnowledgeRunScopesError, ji as parseKnowledgeWikilinks, jn as knowledgeRunScopes, ki as createKnowledgeUlid, kn as compileKnowledgeScopes, kr as parseKnowledgeNodeCursor, ln as moveKnowledgePage, mn as KnowledgeSemanticIndex, mr as MAX_KNOWLEDGE_NODE_DESCRIPTION_LENGTH, nn as heldScopes, on as knowledgeAgentScopes, pn as upsertKnowledgePage, qi as canonicalKnowledgeName, rn as KnowledgeRun, sn as knowledgePersonaScopes, ta as knowledgePageKeyProblem, tn as buildKnowledgePageTools, un as removeKnowledgeNote, vi as KnowledgeImporterRunStateError, vn as canRepairKnowledgeLinksInBatch, vr as assertKnowledgeDescriptionWithinBound, wi as KnowledgeSchemaResetRequiredError, wn as updateKnowledgeLinks, wr as isKnowledgeScopeVisible, xi as KNOWLEDGE_STORAGE_SCHEMA_VERSION, xn as reindexKnowledgeLinks, xr as canonicalizeKnowledgeScope, yi as KnowledgeImportersStorage, yn as knowledgeSubtree, yr as assertKnowledgeRecordTextWithinBound, zi as MAX_KNOWLEDGE_PAGE_DEPTH } from "../run-registry-Du22tS_D.js";
2
+ import { $i as parseKnowledgePageRef, $o as getStorageSource, $t as PINNED_READ_MEMO_KEY, Ai as inspectKnowledgeSchema, An as knowledgeMemoryScopes, Bi as MAX_KNOWLEDGE_PAGE_DESCRIPTION_TOKENS, Ci as KnowledgeNotFoundError, Cn as syncKnowledgePageBodyLinks, Cr as expandKnowledgeScope, Di as KnowledgeUnsupportedCapabilityError, Dn as knowledgeRoleOn, Dr as knowledgeSemanticIdempotencyKey, Ei as KnowledgeTransactionDeadlineError, En as knowledgeReadScopeFor, Er as knowledgeSemanticDocumentId, Fi as KnowledgePageKeyConflictError, Fn as encodeKnowledgeScopeId, Gi as assertKnowledgeNoteTextWithinBound, Hi as MAX_KNOWLEDGE_PAGE_LINK_REF_LENGTH, Ii as MAX_KNOWLEDGE_MOVE_PAGES, In as buildKnowledgeInstructions, Ji as knowledgeLinkRefKey, Ki as assertKnowledgePageDescriptionWithinBound, Li as MAX_KNOWLEDGE_NOTE_TOKENS, Mi as KnowledgeMoveTooLargeError, Mn as knowledgeScopeAddress, Ni as KnowledgePageDepthError, Nn as strongerKnowledgeRole, Oi as assertKnowledgeSchemaCompatible, On as KnowledgeDeclarationError, Or as knowledgeVisibleScopeKeys, Pi as KnowledgePageHasChildrenError, Pn as decodeKnowledgeScopeId, Qi as knowledgeScopeReadable, Qo as augmentWithInit, Ri as MAX_KNOWLEDGE_PAGE_BODY_LINKS, Si as KnowledgeConflictError, Sn as repairKnowledgeLinks, Sr as createKnowledgeNodeCursor, Ti as KnowledgeStorage, Tn as knowledgeAccessGrants, Tr as knowledgeScopeKey, Ui as MAX_KNOWLEDGE_PAGE_LIST_LIMIT, Vi as MAX_KNOWLEDGE_PAGE_LINKS, Wi as MAX_KNOWLEDGE_PIN_LIST_DEPTH, Xi as knowledgePinDepth, Yi as knowledgePagePath, Zi as knowledgePositionBetween, _i as KnowledgeImporterBindingConflictError, _n as KnowledgeLinkRepairUnsupportedError, _r as assertKnowledgeCeilingRaised, an as knowledgeRunPrincipals, bi as KNOWLEDGE_STORAGE_CONTRACT_VERSION, bn as refreshKnowledgeLinksTo, br as assertKnowledgeScopeWithinCeiling, cn as addKnowledgeNote, dn as removeKnowledgePage, ea as KnowledgeInvalidCursorError, en as knowledgeDeliveredPins, fn as updateKnowledgeNote, gi as InMemoryKnowledgeStorage, gn as KnowledgeLinkRefreshIncompleteError, gr as MAX_KNOWLEDGE_SCOPE_TAGS, hr as MAX_KNOWLEDGE_RECORD_TEXT_LENGTH, in as KnowledgeRunScopesError, ji as parseKnowledgeWikilinks, jn as knowledgeRunScopes, ki as createKnowledgeUlid, kn as compileKnowledgeScopes, kr as parseKnowledgeNodeCursor, ln as moveKnowledgePage, mn as KnowledgeSemanticIndex, mr as MAX_KNOWLEDGE_NODE_DESCRIPTION_LENGTH, nn as heldScopes, on as knowledgeAgentScopes, pn as upsertKnowledgePage, qi as canonicalKnowledgeName, rn as KnowledgeRun, sn as knowledgePersonaScopes, ta as knowledgePageKeyProblem, tn as buildKnowledgePageTools, un as removeKnowledgeNote, vi as KnowledgeImporterRunStateError, vn as canRepairKnowledgeLinksInBatch, vr as assertKnowledgeDescriptionWithinBound, wi as KnowledgeSchemaResetRequiredError, wn as updateKnowledgeLinks, wr as isKnowledgeScopeVisible, xi as KNOWLEDGE_STORAGE_SCHEMA_VERSION, xn as reindexKnowledgeLinks, xr as canonicalizeKnowledgeScope, yi as KnowledgeImportersStorage, yn as knowledgeSubtree, yr as assertKnowledgeRecordTextWithinBound, zi as MAX_KNOWLEDGE_PAGE_DEPTH } from "../run-registry-Cqp-VFdv.js";
3
3
  import { standardSchemaToJSONSchema, toStandardSchema } from "../schema/index.js";
4
4
  import { i as createStandardSchemaIssuesError } from "../tool-Z3bykc1m.js";
5
5
  import { randomUUID } from "crypto";
@@ -1,7 +1,7 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
- const require_llm = require("../llm-DeOr7BXy.cjs");
3
- const require_netlify = require("../netlify-D7oirBdu.cjs");
4
- const require_provider_registry = require("../provider-registry-DTaqnIYP.cjs");
2
+ const require_llm = require("../llm-Bljw7LII.cjs");
3
+ const require_netlify = require("../netlify-Td-JUUkt.cjs");
4
+ const require_provider_registry = require("../provider-registry-CCYXykIZ.cjs");
5
5
  exports.AzureOpenAIGateway = require_llm.AzureOpenAIGateway;
6
6
  exports.EMBEDDING_MODELS = require_llm.EMBEDDING_MODELS;
7
7
  exports.GATEWAY_AUTH_HEADER = require_netlify.GATEWAY_AUTH_HEADER;
package/dist/llm/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { a as ModelRouterLanguageModel, c as AzureOpenAIGateway, i as resolveModelConfig, l as defaultGateways, n as ModelRouterEmbeddingModel, r as resolveModelAuth, t as EMBEDDING_MODELS } from "../llm-DGa7alUy.js";
2
- import { l as GATEWAY_AUTH_HEADER, m as getGatewayId, p as findGatewayForModel, r as ModelsDevGateway, t as NetlifyGateway, y as MastraModelGateway } from "../netlify-CzbukKO2.js";
3
- import { c as modelSupportsStructuredOutput, f as MastraGateway, i as getProviderConfig, l as modelSupportsTemperature, n as PROVIDER_REGISTRY, r as getModelReasoningOptions, s as modelSupportsAttachments, t as GatewayRegistry, u as parseModelString } from "../provider-registry-CdCkSE3h.js";
1
+ import { a as ModelRouterLanguageModel, c as AzureOpenAIGateway, i as resolveModelConfig, l as defaultGateways, n as ModelRouterEmbeddingModel, r as resolveModelAuth, t as EMBEDDING_MODELS } from "../llm-CxHzqEEI.js";
2
+ import { l as GATEWAY_AUTH_HEADER, m as getGatewayId, p as findGatewayForModel, r as ModelsDevGateway, t as NetlifyGateway, y as MastraModelGateway } from "../netlify-BEJ96z-w.js";
3
+ import { c as modelSupportsStructuredOutput, f as MastraGateway, i as getProviderConfig, l as modelSupportsTemperature, n as PROVIDER_REGISTRY, r as getModelReasoningOptions, s as modelSupportsAttachments, t as GatewayRegistry, u as parseModelString } from "../provider-registry-DBG4hlGl.js";
4
4
  export { AzureOpenAIGateway, EMBEDDING_MODELS, GATEWAY_AUTH_HEADER, GatewayRegistry, MastraGateway, MastraModelGateway, ModelRouterEmbeddingModel, ModelRouterLanguageModel, ModelsDevGateway, NetlifyGateway, PROVIDER_REGISTRY, defaultGateways, findGatewayForModel, getGatewayId, getModelReasoningOptions, getProviderConfig, modelSupportsAttachments, modelSupportsStructuredOutput, modelSupportsTemperature, parseModelString, resolveModelAuth, resolveModelConfig };
@@ -1,9 +1,9 @@
1
1
  const require_rolldown_runtime = require("./rolldown-runtime-BrhgMLW6.cjs");
2
- const require_netlify = require("./netlify-D7oirBdu.cjs");
2
+ const require_netlify = require("./netlify-Td-JUUkt.cjs");
3
3
  const require_model = require("./model-jBymoqGa.cjs");
4
4
  const require_to_prompt = require("./to-prompt-CG-LyaBY.cjs");
5
5
  const require_content = require("./content-CC0W1d5p.cjs");
6
- const require_provider_registry = require("./provider-registry-DTaqnIYP.cjs");
6
+ const require_provider_registry = require("./provider-registry-CCYXykIZ.cjs");
7
7
  const require_error = require("./error-D90lJ6M7.cjs");
8
8
  const require_request_context = require("./request-context-D9RXYCy8.cjs");
9
9
  const require_dynamic_argument = require("./dynamic-argument-CUc1BBOS.cjs");
@@ -1,8 +1,8 @@
1
- import { S as EventSourceParserStream, a as interpolateUrlTemplate, b as createOpenAI, c as createGoogleGenerativeAI, g as shouldEnableGateway, h as hasAuthCredentials, m as getGatewayId, o as parseModelRouterId, p as findGatewayForModel, r as ModelsDevGateway, s as createOpenAI$1, t as NetlifyGateway, u as MASTRA_USER_AGENT, v as MASTRA_GATEWAY_STREAM_TRANSPORT, x as createOpenAICompatible, y as MastraModelGateway } from "./netlify-CzbukKO2.js";
1
+ import { S as EventSourceParserStream, a as interpolateUrlTemplate, b as createOpenAI, c as createGoogleGenerativeAI, g as shouldEnableGateway, h as hasAuthCredentials, m as getGatewayId, o as parseModelRouterId, p as findGatewayForModel, r as ModelsDevGateway, s as createOpenAI$1, t as NetlifyGateway, u as MASTRA_USER_AGENT, v as MASTRA_GATEWAY_STREAM_TRANSPORT, x as createOpenAICompatible, y as MastraModelGateway } from "./netlify-BEJ96z-w.js";
2
2
  import { n as prepareAzureStrictToolSchemas, r as createStreamFromGenerateResult, t as AISDKV5LanguageModel } from "./model-DS-b2R-R.js";
3
3
  import { i as aiV5PromptToAIV7Prompt, r as aiV5PromptToAIV6Prompt } from "./to-prompt-CMlVGYxC.js";
4
4
  import { t as convertToDataContent } from "./content-CFBIylxS.js";
5
- import { f as MastraGateway, l as modelSupportsTemperature, n as PROVIDER_REGISTRY, p as gatewayServesObservationalMemory, t as GatewayRegistry } from "./provider-registry-CdCkSE3h.js";
5
+ import { f as MastraGateway, l as modelSupportsTemperature, n as PROVIDER_REGISTRY, p as gatewayServesObservationalMemory, t as GatewayRegistry } from "./provider-registry-DBG4hlGl.js";
6
6
  import { i as MastraError } from "./error-oh2DLsP2.js";
7
7
  import { u as RequestContext } from "./request-context-COnZHt2-.js";
8
8
  import { n as resolveDynamicArgument } from "./dynamic-argument-BzPK3qPN.js";
@@ -1,6 +1,6 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
- const require_run_registry = require("../run-registry-59R9kE8Z.cjs");
3
- const require_stream = require("../stream-mYc-fHPF.cjs");
2
+ const require_run_registry = require("../run-registry-BvMXuIb_.cjs");
3
+ const require_stream = require("../stream-BIbVD8V8.cjs");
4
4
  exports.MastraTimeoutError = require_stream.MastraTimeoutError;
5
5
  exports.createScorer = require_run_registry.createScorer;
6
6
  exports.createTimeoutAbortSignal = require_stream.createTimeoutAbortSignal;
@@ -1,3 +1,3 @@
1
- import { Bt as formatCheckFeedback, Gt as generateStructuredFinalResult, Ht as formatStreamCompletionFeedback, Jt as runDefaultCompletionCheck, Kt as runChecks, T as createScorer, Ut as formatValidationFeedback, Vt as formatCompletionFeedback, Wt as generateFinalResult, Xt as runValidation, Yt as runStreamCompletionScorers, Zt as loop, qt as runCompletionScorers } from "../run-registry-Du22tS_D.js";
2
- import { Tn as createTimeoutAbortSignal, kn as isMastraTimeoutError, wn as MastraTimeoutError } from "../stream-C_oNulbg.js";
1
+ import { Bt as formatCheckFeedback, Gt as generateStructuredFinalResult, Ht as formatStreamCompletionFeedback, Jt as runDefaultCompletionCheck, Kt as runChecks, T as createScorer, Ut as formatValidationFeedback, Vt as formatCompletionFeedback, Wt as generateFinalResult, Xt as runValidation, Yt as runStreamCompletionScorers, Zt as loop, qt as runCompletionScorers } from "../run-registry-Cqp-VFdv.js";
2
+ import { Tn as createTimeoutAbortSignal, kn as isMastraTimeoutError, wn as MastraTimeoutError } from "../stream-D607FmAx.js";
3
3
  export { MastraTimeoutError, createScorer, createTimeoutAbortSignal, formatCheckFeedback, formatCompletionFeedback, formatStreamCompletionFeedback, formatValidationFeedback, generateFinalResult, generateStructuredFinalResult, isMastraTimeoutError, loop, runChecks, runCompletionScorers, runDefaultCompletionCheck, runStreamCompletionScorers, runValidation };
@@ -1,13 +1,13 @@
1
1
  import { n as __exportAll } from "./rolldown-runtime-tIEjjQTE.js";
2
- import { Qs as createWorkflow, Zs as createStep, ua as assertSupportedPatterns, w as ScorerRunError, x as validateAndSaveScore, y as flushBeforeTraceRead } from "./run-registry-Du22tS_D.js";
2
+ import { Qs as createWorkflow, Zs as createStep, ua as assertSupportedPatterns, w as ScorerRunError, x as validateAndSaveScore, y as flushBeforeTraceRead } from "./run-registry-Cqp-VFdv.js";
3
3
  import { S as resolveObservabilityContext } from "./observability-D7RNOAPx.js";
4
4
  import { i as MastraError } from "./error-oh2DLsP2.js";
5
- import { ft as loadStepResults, un as isSupportedLanguageModel } from "./stream-C_oNulbg.js";
5
+ import { ft as loadStepResults, un as isSupportedLanguageModel } from "./stream-D607FmAx.js";
6
6
  import { o as MASTRA_RESOURCE_ID_KEY, p as withoutLiveRequestKeys, u as RequestContext } from "./request-context-COnZHt2-.js";
7
7
  import { t as EntityType } from "./storage-Cc50aQAp.js";
8
8
  import { a as getOrCreateSpan } from "./utils-DU_pU5SK.js";
9
9
  import { t as deepEqual } from "./deep-equal-d1xU02ag.js";
10
- import { Cr as extractTrajectory, Tr as extractWorkflowTrajectory, mn as BATCH_DELETE_TRACES_MAX_IDS, wr as extractTrajectoryFromTrace } from "./constants-CFWgIaqA.js";
10
+ import { Cr as extractTrajectory, Tr as extractWorkflowTrajectory, mn as BATCH_DELETE_TRACES_MAX_IDS, wr as extractTrajectoryFromTrace } from "./constants-CUv0mU2y.js";
11
11
  import { z } from "zod";
12
12
  import { isZodType } from "@mastra/schema-compat";
13
13
  import { zodToJsonSchema } from "@mastra/schema-compat/zod-to-json";
@@ -1,13 +1,13 @@
1
1
  const require_rolldown_runtime = require("./rolldown-runtime-BrhgMLW6.cjs");
2
- const require_run_registry = require("./run-registry-59R9kE8Z.cjs");
2
+ const require_run_registry = require("./run-registry-BvMXuIb_.cjs");
3
3
  const require_observability = require("./observability-B0R_D1PZ.cjs");
4
4
  const require_error = require("./error-D90lJ6M7.cjs");
5
- const require_stream = require("./stream-mYc-fHPF.cjs");
5
+ const require_stream = require("./stream-BIbVD8V8.cjs");
6
6
  const require_request_context = require("./request-context-D9RXYCy8.cjs");
7
7
  const require_storage = require("./storage-CfG0I2aF.cjs");
8
8
  const require_utils = require("./utils-D-eNsgDM.cjs");
9
9
  const require_deep_equal = require("./deep-equal-TMDmByBC.cjs");
10
- const require_constants = require("./constants-Bou0hEgY.cjs");
10
+ const require_constants = require("./constants-CFO8w780.cjs");
11
11
  let zod = require("zod");
12
12
  let _mastra_schema_compat = require("@mastra/schema-compat");
13
13
  let _mastra_schema_compat_zod_to_json = require("@mastra/schema-compat/zod-to-json");
@@ -1,3 +1,3 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
- const require_mastra = require("../mastra-CoWxmLQl.cjs");
2
+ const require_mastra = require("../mastra-k8L1lFip.cjs");
3
3
  exports.Mastra = require_mastra.Mastra;
@@ -1 +1 @@
1
- export { t as Mastra } from "../mastra-B1BKkzX0.js";
1
+ export { t as Mastra } from "../mastra-BpMvri3z.js";
@@ -1,13 +1,13 @@
1
- import { $o as getStorageSource, $s as WorkflowEventProcessor, Bc as nestedRunStatusOf, Fl as waitMs, Gc as WORKFLOW_RUN_LEASE_TTL_MS, Ic as cancelNestedRun, Ir as InMemoryStore, Jc as runFenceConflictOf, Kc as renewWorkflowLease, Lc as createNestedRunParentStatusLookup, Ll as hasDurableExecution, Ln as AgentChannels, Mt as __registerMastraCtor, Pl as assertDrainTimeout, Qc as runWithConcurrency, Qo as augmentWithInit, Qs as createWorkflow, Rc as nestedRunParentOf, Rr as WorkflowsInMemory, Xc as createConcurrencyLimiter, Zc as normalizeConcurrency, Zs as createStep, b as createOnScorerHook, ba as BackgroundTasksInMemory, i as abandonDurableAgentExecutions, m as agentThreadStreamRuntime, qc as repeatAfterSettled, s as getActiveDurableAgentWorkflowExecutions, tc as computeScheduleDefinitionHash, ti as dispatchDueNotifications, u as isDurableAgentExecutionDetached, vu as runOutsideRunFenceScope, zc as nestedRunRecoveryAction, zl as isDurableAgentLike } from "./run-registry-Du22tS_D.js";
2
- import { l as BackgroundTaskManager } from "./background-tasks-B8Lk1bt5.js";
1
+ import { $o as getStorageSource, $s as WorkflowEventProcessor, Bc as nestedRunStatusOf, Fl as waitMs, Gc as WORKFLOW_RUN_LEASE_TTL_MS, Ic as cancelNestedRun, Ir as InMemoryStore, Jc as runFenceConflictOf, Kc as renewWorkflowLease, Lc as createNestedRunParentStatusLookup, Ll as hasDurableExecution, Ln as AgentChannels, Mt as __registerMastraCtor, Pl as assertDrainTimeout, Qc as runWithConcurrency, Qo as augmentWithInit, Qs as createWorkflow, Rc as nestedRunParentOf, Rr as WorkflowsInMemory, Xc as createConcurrencyLimiter, Zc as normalizeConcurrency, Zs as createStep, b as createOnScorerHook, ba as BackgroundTasksInMemory, i as abandonDurableAgentExecutions, m as agentThreadStreamRuntime, qc as repeatAfterSettled, s as getActiveDurableAgentWorkflowExecutions, tc as computeScheduleDefinitionHash, ti as dispatchDueNotifications, u as isDurableAgentExecutionDetached, vu as runOutsideRunFenceScope, zc as nestedRunRecoveryAction, zl as isDurableAgentLike } from "./run-registry-Cqp-VFdv.js";
2
+ import { l as BackgroundTaskManager } from "./background-tasks-BoUX5G90.js";
3
3
  import { t as InMemoryServerCache } from "./inmemory-BK3zLwvM.js";
4
- import { t as DatasetsManager } from "./manager-BErWwr50.js";
4
+ import { t as DatasetsManager } from "./manager-BimN8ZdV.js";
5
5
  import { i as MastraError, n as ErrorDomain, t as ErrorCategory } from "./error-oh2DLsP2.js";
6
6
  import { u as isRunLocalTopic, v as EventEmitterPubSub } from "./output-helpers-CVzhy1Y0.js";
7
7
  import { a as registerHook, r as deregisterHook } from "./hooks-Bth8Cjpj.js";
8
8
  import { LicenseClient } from "./license/index.js";
9
- import { m as getGatewayId } from "./netlify-CzbukKO2.js";
10
- import { l as defaultGateways } from "./llm-DGa7alUy.js";
9
+ import { m as getGatewayId } from "./netlify-BEJ96z-w.js";
10
+ import { l as defaultGateways } from "./llm-CxHzqEEI.js";
11
11
  import { l as isAdaptableLogger, n as LogLevel, t as ConsoleLogger, u as noopLogger } from "./logger-BwbmRqfc.js";
12
12
  import { DualLogger, createExportSuppressedLogger, isObservabilityExportSuppressed, resolveTraceFields } from "./logger/index.js";
13
13
  import { c as fsAgentScheduleRowId, g as toEpochMs, h as computeNextFireAt, l as parseFsAgentScheduleRowId, m as computeNextFire, t as Schedules } from "./schedules-DZfSx-7P.js";
@@ -16,14 +16,14 @@ import { initContextStorage } from "./observability/context-storage.js";
16
16
  import { f as resolveCurrentSpan } from "./utils-DU_pU5SK.js";
17
17
  import { r as InMemoryDB } from "./source-DYZMfjv3.js";
18
18
  import { r as trackFeatureUsage } from "./feature-telemetry-DdR8J_5o.js";
19
- import { r as isToolLoopAgentLike, t as toolLoopAgentToMastraAgent } from "./tool-loop-agent-Du1BJO8a.js";
19
+ import { r as isToolLoopAgentLike, t as toolLoopAgentToMastraAgent } from "./tool-loop-agent-eyoY_TEX.js";
20
20
  import { r as normalizeToolPayloadTransformPolicy } from "./payload-transform-Dj3HUeD4.js";
21
- import { v as readPositiveIntEnv } from "./utils-nyjsIsHZ.js";
22
- import { a as OrchestrationWorker, i as ORCHESTRATION_GROUP, n as BackgroundTaskWorker, r as SchedulerWorker } from "./worker-Dboi5I9k.js";
23
- import { n as normalizeWorkflowBuilderDefinition } from "./builder-DLaSPG2u.js";
24
- import { d as toJsonSchemaOrUndefined, p as collectNestedWorkflowIds, t as assertValidDynamicWorkflow } from "./validate-q0hhKzA4.js";
25
- import { t as rehydrateWorkflow } from "./rehydrate-BhmzzvtV.js";
26
- import { Ln as createRunScope } from "./stream-C_oNulbg.js";
21
+ import { v as readPositiveIntEnv } from "./utils-CQkzZUcK.js";
22
+ import { a as OrchestrationWorker, i as ORCHESTRATION_GROUP, n as BackgroundTaskWorker, r as SchedulerWorker } from "./worker-CCNb2aJe.js";
23
+ import { n as normalizeWorkflowBuilderDefinition } from "./builder-Cn1lOWio.js";
24
+ import { d as toJsonSchemaOrUndefined, p as collectNestedWorkflowIds, t as assertValidDynamicWorkflow } from "./validate-CTWjOlWp.js";
25
+ import { t as rehydrateWorkflow } from "./rehydrate-PRFAu8yl.js";
26
+ import { Ln as createRunScope } from "./stream-D607FmAx.js";
27
27
  import { z } from "zod/v4";
28
28
  // src/notifications/workflow.ts
29
29
  const NOTIFICATION_DISPATCH_WORKFLOW_ID = "__mastra_notification_dispatcher";
@@ -2874,7 +2874,7 @@ var Mastra = class Mastra {
2874
2874
  */
2875
2875
  async __ensureExperimentWorkflow() {
2876
2876
  if (this.__hasInternalWorkflow("__mastra-experiment")) return;
2877
- const { buildExperimentWorkflow } = await import("./manager-BErWwr50.js").then((n) => n.b);
2877
+ const { buildExperimentWorkflow } = await import("./manager-BimN8ZdV.js").then((n) => n.b);
2878
2878
  if (this.__hasInternalWorkflow("__mastra-experiment")) return;
2879
2879
  this.__registerInternalWorkflow(buildExperimentWorkflow(), void 0, { distributed: true });
2880
2880
  }
@@ -5075,7 +5075,7 @@ var Mastra = class Mastra {
5075
5075
  if (!this.#workerFilter || this.#workerFilter.has("agent-schedule")) {
5076
5076
  let agentScheduleWorker = this.#findAgentScheduleWorker();
5077
5077
  if (!agentScheduleWorker) {
5078
- const { AgentScheduleWorker } = await import("./worker-Wv2nS-Df.js");
5078
+ const { AgentScheduleWorker } = await import("./worker-D52cos24.js");
5079
5079
  agentScheduleWorker = new AgentScheduleWorker();
5080
5080
  agentScheduleWorker.__registerMastra(this);
5081
5081
  this.#workers.push(agentScheduleWorker);
@@ -5715,7 +5715,7 @@ var Mastra = class Mastra {
5715
5715
  this.#workers.push(sw);
5716
5716
  }
5717
5717
  if (!this.#findAgentScheduleWorker()) {
5718
- const { AgentScheduleWorker } = await import("./worker-Wv2nS-Df.js");
5718
+ const { AgentScheduleWorker } = await import("./worker-D52cos24.js");
5719
5719
  const asw = new AgentScheduleWorker();
5720
5720
  asw.__registerMastra(this);
5721
5721
  this.#workers.push(asw);
@@ -5742,6 +5742,7 @@ var Mastra = class Mastra {
5742
5742
  this.#ensureBackgroundTaskManager("full");
5743
5743
  }
5744
5744
  for (const worker of targets) {
5745
+ if (worker.isRunning) continue;
5745
5746
  await worker.init(deps);
5746
5747
  await worker.start();
5747
5748
  }
@@ -6160,7 +6161,7 @@ var Mastra = class Mastra {
6160
6161
  #syncGatewayRegistry() {
6161
6162
  try {
6162
6163
  if (process.env.MASTRA_DEV !== "true" && process.env.MASTRA_DEV !== "1") return;
6163
- import("./provider-registry-CdCkSE3h.js").then((n) => n.d).then(async ({ GatewayRegistry }) => {
6164
+ import("./provider-registry-DBG4hlGl.js").then((n) => n.d).then(async ({ GatewayRegistry }) => {
6164
6165
  const registry = GatewayRegistry.getInstance();
6165
6166
  const customGateways = Object.values(this.#gateways || {});
6166
6167
  registry.registerCustomGateways(customGateways);
@@ -1,13 +1,13 @@
1
- const require_run_registry = require("./run-registry-59R9kE8Z.cjs");
2
- const require_background_tasks = require("./background-tasks-LfQsDG6J.cjs");
1
+ const require_run_registry = require("./run-registry-BvMXuIb_.cjs");
2
+ const require_background_tasks = require("./background-tasks-udYDvnlw.cjs");
3
3
  const require_inmemory = require("./inmemory-Dc86VWGB.cjs");
4
- const require_manager = require("./manager-B-pQMauy.cjs");
4
+ const require_manager = require("./manager-DVYVB-3O.cjs");
5
5
  const require_error = require("./error-D90lJ6M7.cjs");
6
6
  const require_output_helpers = require("./output-helpers-DgsH4aTb.cjs");
7
7
  const require_hooks = require("./hooks-D7VDBETj.cjs");
8
8
  const require_license_index = require("./license/index.cjs");
9
- const require_netlify = require("./netlify-D7oirBdu.cjs");
10
- const require_llm = require("./llm-DeOr7BXy.cjs");
9
+ const require_netlify = require("./netlify-Td-JUUkt.cjs");
10
+ const require_llm = require("./llm-Bljw7LII.cjs");
11
11
  const require_logger = require("./logger-CvzZYuJd.cjs");
12
12
  const require_logger_index = require("./logger/index.cjs");
13
13
  const require_schedules = require("./schedules-BZS8McF7.cjs");
@@ -16,14 +16,14 @@ const require_observability_context_storage = require("./observability/context-s
16
16
  const require_utils = require("./utils-D-eNsgDM.cjs");
17
17
  const require_source = require("./source-BC8Et5qZ.cjs");
18
18
  const require_feature_telemetry = require("./feature-telemetry-Cw0L1tHo.cjs");
19
- const require_tool_loop_agent = require("./tool-loop-agent-Bi09dOW5.cjs");
19
+ const require_tool_loop_agent = require("./tool-loop-agent-Cnf7vONA.cjs");
20
20
  const require_payload_transform = require("./payload-transform-CWgnsO9w.cjs");
21
- const require_utils$1 = require("./utils-BGq3p2MX.cjs");
22
- const require_worker = require("./worker-Dzfx-9D0.cjs");
23
- const require_builder = require("./builder-CPgUrTDP.cjs");
24
- const require_validate = require("./validate-CcE7gP2j.cjs");
25
- const require_rehydrate = require("./rehydrate-D7eaaJxI.cjs");
26
- const require_stream = require("./stream-mYc-fHPF.cjs");
21
+ const require_utils$1 = require("./utils-O1TXaFUl.cjs");
22
+ const require_worker = require("./worker-CI1joT3R.cjs");
23
+ const require_builder = require("./builder-B2n-bUbl.cjs");
24
+ const require_validate = require("./validate-CEgWy7P0.cjs");
25
+ const require_rehydrate = require("./rehydrate-BD0zOfc8.cjs");
26
+ const require_stream = require("./stream-BIbVD8V8.cjs");
27
27
  let zod_v4 = require("zod/v4");
28
28
  // src/notifications/workflow.ts
29
29
  const NOTIFICATION_DISPATCH_WORKFLOW_ID = "__mastra_notification_dispatcher";
@@ -2874,7 +2874,7 @@ var Mastra = class Mastra {
2874
2874
  */
2875
2875
  async __ensureExperimentWorkflow() {
2876
2876
  if (this.__hasInternalWorkflow("__mastra-experiment")) return;
2877
- const { buildExperimentWorkflow } = await Promise.resolve().then(() => require("./manager-B-pQMauy.cjs")).then((n) => n.workflow_exports);
2877
+ const { buildExperimentWorkflow } = await Promise.resolve().then(() => require("./manager-DVYVB-3O.cjs")).then((n) => n.workflow_exports);
2878
2878
  if (this.__hasInternalWorkflow("__mastra-experiment")) return;
2879
2879
  this.__registerInternalWorkflow(buildExperimentWorkflow(), void 0, { distributed: true });
2880
2880
  }
@@ -5075,7 +5075,7 @@ var Mastra = class Mastra {
5075
5075
  if (!this.#workerFilter || this.#workerFilter.has("agent-schedule")) {
5076
5076
  let agentScheduleWorker = this.#findAgentScheduleWorker();
5077
5077
  if (!agentScheduleWorker) {
5078
- const { AgentScheduleWorker } = await Promise.resolve().then(() => require("./worker-DmJLbaGI.cjs"));
5078
+ const { AgentScheduleWorker } = await Promise.resolve().then(() => require("./worker-CCDvbK3P.cjs"));
5079
5079
  agentScheduleWorker = new AgentScheduleWorker();
5080
5080
  agentScheduleWorker.__registerMastra(this);
5081
5081
  this.#workers.push(agentScheduleWorker);
@@ -5715,7 +5715,7 @@ var Mastra = class Mastra {
5715
5715
  this.#workers.push(sw);
5716
5716
  }
5717
5717
  if (!this.#findAgentScheduleWorker()) {
5718
- const { AgentScheduleWorker } = await Promise.resolve().then(() => require("./worker-DmJLbaGI.cjs"));
5718
+ const { AgentScheduleWorker } = await Promise.resolve().then(() => require("./worker-CCDvbK3P.cjs"));
5719
5719
  const asw = new AgentScheduleWorker();
5720
5720
  asw.__registerMastra(this);
5721
5721
  this.#workers.push(asw);
@@ -5742,6 +5742,7 @@ var Mastra = class Mastra {
5742
5742
  this.#ensureBackgroundTaskManager("full");
5743
5743
  }
5744
5744
  for (const worker of targets) {
5745
+ if (worker.isRunning) continue;
5745
5746
  await worker.init(deps);
5746
5747
  await worker.start();
5747
5748
  }
@@ -6160,7 +6161,7 @@ var Mastra = class Mastra {
6160
6161
  #syncGatewayRegistry() {
6161
6162
  try {
6162
6163
  if (process.env.MASTRA_DEV !== "true" && process.env.MASTRA_DEV !== "1") return;
6163
- Promise.resolve().then(() => require("./provider-registry-DTaqnIYP.cjs")).then((n) => n.provider_registry_exports).then(async ({ GatewayRegistry }) => {
6164
+ Promise.resolve().then(() => require("./provider-registry-CCYXykIZ.cjs")).then((n) => n.provider_registry_exports).then(async ({ GatewayRegistry }) => {
6164
6165
  const registry = GatewayRegistry.getInstance();
6165
6166
  const customGateways = Object.values(this.#gateways || {});
6166
6167
  registry.registerCustomGateways(customGateways);
@@ -1,6 +1,6 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
- const require_run_registry = require("../run-registry-59R9kE8Z.cjs");
3
- const require_stream = require("../stream-mYc-fHPF.cjs");
2
+ const require_run_registry = require("../run-registry-BvMXuIb_.cjs");
3
+ const require_stream = require("../stream-BIbVD8V8.cjs");
4
4
  const require_message_list = require("../message-list-C0F2sDNC.cjs");
5
5
  exports.AUTHORED_USER_TURN = require_message_list.AUTHORED_USER_TURN;
6
6
  exports.DEFAULT_MESSAGE_EMBEDDING_MAX_CHUNK_CHARS = require_run_registry.DEFAULT_MESSAGE_EMBEDDING_MAX_CHUNK_CHARS;
@@ -1,4 +1,4 @@
1
- import { Bo as MESSAGE_EMBEDDING_CHARS_PER_TOKEN, Cs as normalizeMessageHistoryConfig, Go as resolveMaxChunkChars, Ho as chunkMessageText, Jo as MemoryProcessor, Ko as upsertMessageVectors, Ss as isAfterMemoryTokenBoundary, Uo as extractMessageEmbeddingText, Vo as buildMessageEmbeddingRows, Wo as messageVectorId, Xo as filterSystemReminderMessages, Yo as memoryDefaultOptions, Zo as isSystemReminderMessage, bs as advanceMemoryTokenBoundary, dr as MemoryRunState, fr as getMemoryRunState, pr as MockMemory, qo as MastraMemory, vs as groupLinkedToolMessages, xs as getMemoryTokenBoundary, ys as loadMessageHistory, zo as DEFAULT_MESSAGE_EMBEDDING_MAX_CHUNK_CHARS } from "../run-registry-Du22tS_D.js";
2
- import { Jt as getThreadOMMetadata, Qt as setThreadOMMetadata, Xt as isThreadTitlePinned, Yt as isObservationalMemoryEnabled, Zt as parseMemoryRequestContext, qt as TITLE_PINNED_THREAD_METADATA_KEY } from "../stream-C_oNulbg.js";
1
+ import { Bo as MESSAGE_EMBEDDING_CHARS_PER_TOKEN, Cs as normalizeMessageHistoryConfig, Go as resolveMaxChunkChars, Ho as chunkMessageText, Jo as MemoryProcessor, Ko as upsertMessageVectors, Ss as isAfterMemoryTokenBoundary, Uo as extractMessageEmbeddingText, Vo as buildMessageEmbeddingRows, Wo as messageVectorId, Xo as filterSystemReminderMessages, Yo as memoryDefaultOptions, Zo as isSystemReminderMessage, bs as advanceMemoryTokenBoundary, dr as MemoryRunState, fr as getMemoryRunState, pr as MockMemory, qo as MastraMemory, vs as groupLinkedToolMessages, xs as getMemoryTokenBoundary, ys as loadMessageHistory, zo as DEFAULT_MESSAGE_EMBEDDING_MAX_CHUNK_CHARS } from "../run-registry-Cqp-VFdv.js";
2
+ import { Jt as getThreadOMMetadata, Qt as setThreadOMMetadata, Xt as isThreadTitlePinned, Yt as isObservationalMemoryEnabled, Zt as parseMemoryRequestContext, qt as TITLE_PINNED_THREAD_METADATA_KEY } from "../stream-D607FmAx.js";
3
3
  import { $ as AUTHORED_USER_TURN, C as extractWorkingMemoryTags, D as removeWorkingMemoryToolInvocationParts, E as removeWorkingMemoryTags, O as removeWorkingMemoryToolInvocations, S as extractWorkingMemoryContent, T as removeSystemReminderTags, _ as SYSTEM_REMINDER_START_TAG, at as stripClientAuthoredTurnMarks, b as WORKING_MEMORY_START_TAG, et as asUserTurn, g as SYSTEM_REMINDER_END_TAG, h as SET_WORKING_MEMORY_TOOL_NAME, it as sealUserTurnMessage, nt as messageDeclaresAuthoredTurn, rt as sealTurnMarkup, tt as escapeTurnMarkup, v as UPDATE_WORKING_MEMORY_TOOL_NAME, w as isWorkingMemoryToolName, x as WORKING_MEMORY_TOOL_NAMES, y as WORKING_MEMORY_END_TAG } from "../message-list-RgFlLrxG.js";
4
4
  export { AUTHORED_USER_TURN, DEFAULT_MESSAGE_EMBEDDING_MAX_CHUNK_CHARS, MESSAGE_EMBEDDING_CHARS_PER_TOKEN, MastraMemory, MemoryProcessor, MemoryRunState, MockMemory, SET_WORKING_MEMORY_TOOL_NAME, SYSTEM_REMINDER_END_TAG, SYSTEM_REMINDER_START_TAG, TITLE_PINNED_THREAD_METADATA_KEY, UPDATE_WORKING_MEMORY_TOOL_NAME, WORKING_MEMORY_END_TAG, WORKING_MEMORY_START_TAG, WORKING_MEMORY_TOOL_NAMES, advanceMemoryTokenBoundary, asUserTurn, buildMessageEmbeddingRows, chunkMessageText, escapeTurnMarkup, extractMessageEmbeddingText, extractWorkingMemoryContent, extractWorkingMemoryTags, filterSystemReminderMessages, getMemoryRunState, getMemoryTokenBoundary, getThreadOMMetadata, groupLinkedToolMessages, isAfterMemoryTokenBoundary, isObservationalMemoryEnabled, isSystemReminderMessage, isThreadTitlePinned, isWorkingMemoryToolName, loadMessageHistory, memoryDefaultOptions, messageDeclaresAuthoredTurn, messageVectorId, normalizeMessageHistoryConfig, parseMemoryRequestContext, removeSystemReminderTags, removeWorkingMemoryTags, removeWorkingMemoryToolInvocationParts, removeWorkingMemoryToolInvocations, resolveMaxChunkChars, sealTurnMarkup, sealUserTurnMessage, setThreadOMMetadata, stripClientAuthoredTurnMarks, upsertMessageVectors };
@@ -3,7 +3,7 @@ const require_base = require("./base-BIzR1D3_.cjs");
3
3
  const require_error = require("./error-D90lJ6M7.cjs");
4
4
  const require_utils = require("./utils-D-eNsgDM.cjs");
5
5
  const require_observability = require("./observability-B0R_D1PZ.cjs");
6
- const require_utils$1 = require("./utils-BGq3p2MX.cjs");
6
+ const require_utils$1 = require("./utils-O1TXaFUl.cjs");
7
7
  const require_zod_utils = require("./zod-utils-Cl5jw5N_.cjs");
8
8
  let _mastra_schema_compat = require("@mastra/schema-compat");
9
9
  let _mastra_schema_compat_schema = require("@mastra/schema-compat/schema");
@@ -4,7 +4,7 @@ import { i as MastraError, n as ErrorDomain, t as ErrorCategory } from "./error-
4
4
  import { n as executeWithContextSync, t as executeWithContext } from "./utils-DU_pU5SK.js";
5
5
  import { S as resolveObservabilityContext } from "./observability-D7RNOAPx.js";
6
6
  import { isStandardSchemaWithJSON, standardSchemaToJSONSchema, toStandardSchema } from "./schema/index.js";
7
- import { i as delay, u as isZodType$1 } from "./utils-nyjsIsHZ.js";
7
+ import { i as delay, u as isZodType$1 } from "./utils-CQkzZUcK.js";
8
8
  import { i as isZodArray, t as getZodDef } from "./zod-utils-BDDS_mxU.js";
9
9
  import { AnthropicSchemaCompatLayer, DeepSeekSchemaCompatLayer, GoogleSchemaCompatLayer, MetaSchemaCompatLayer, OpenAIReasoningSchemaCompatLayer, OpenAISchemaCompatLayer, applyCompatLayer, jsonSchema } from "@mastra/schema-compat";
10
10
  // src/stream/aisdk/v4/usage.ts
@@ -29125,7 +29125,7 @@ function createOpenRouter(options = {}) {
29125
29125
  }
29126
29126
  createOpenRouter({ compatibility: "strict" });
29127
29127
  // src/llm/model/gateways/constants.ts
29128
- const MASTRA_USER_AGENT = `mastra/1.87.0-alpha.13`;
29128
+ const MASTRA_USER_AGENT = `mastra/1.87.0-alpha.15`;
29129
29129
  const PROVIDERS_WITH_INSTALLED_PACKAGES = [
29130
29130
  "anthropic",
29131
29131
  "cerebras",