@mastra/core 1.87.0-alpha.21 → 1.87.0-alpha.22

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 (116) 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 +2 -2
  8. package/dist/agent-controller/index.js +2 -2
  9. package/dist/{agent-controller-Cw5t1dkE.js → agent-controller-WGML_NKp.js} +6 -6
  10. package/dist/{agent-controller-4dz2FE2a.cjs → agent-controller-mS3CgzwJ.cjs} +6 -6
  11. package/dist/background-tasks/index.cjs +1 -1
  12. package/dist/background-tasks/index.js +1 -1
  13. package/dist/{background-tasks-DFDfV-FJ.js → background-tasks-CbBbS-g3.js} +1 -1
  14. package/dist/{background-tasks-fjEu5kC8.cjs → background-tasks-DEBc9BBP.cjs} +1 -1
  15. package/dist/browser/index.cjs +1 -1
  16. package/dist/browser/index.js +1 -1
  17. package/dist/{builder-la4Jv6di.js → builder-BOIUFJTC.js} +2 -2
  18. package/dist/{builder-DrBUrE-F.cjs → builder-DBori4UC.cjs} +2 -2
  19. package/dist/channels/index.cjs +2 -2
  20. package/dist/channels/index.js +2 -2
  21. package/dist/{channels-BUa-51eD.js → channels-BwOQwN3M.js} +1 -1
  22. package/dist/{channels-CqwRfJzZ.cjs → channels-DrLMv8qW.cjs} +1 -1
  23. package/dist/coding-agent/index.cjs +1 -1
  24. package/dist/coding-agent/index.js +1 -1
  25. package/dist/datasets/index.cjs +2 -2
  26. package/dist/datasets/index.js +2 -2
  27. package/dist/docs/SKILL.md +1 -1
  28. package/dist/docs/assets/SOURCE_MAP.json +511 -511
  29. package/dist/docs/references/docs-agents-tools.md +2 -2
  30. package/dist/evals/index.cjs +1 -1
  31. package/dist/evals/index.js +1 -1
  32. package/dist/evals/scoreTraces/index.cjs +1 -1
  33. package/dist/evals/scoreTraces/index.js +1 -1
  34. package/dist/{execution-fence-DeR5VB54.cjs → execution-fence-C-wa17Wr.cjs} +11 -11
  35. package/dist/{execution-fence-Yl_-iJxn.js → execution-fence-DvN3Fwm3.js} +11 -11
  36. package/dist/harness/index.cjs +2 -2
  37. package/dist/harness/index.js +2 -2
  38. package/dist/index.cjs +1 -1
  39. package/dist/index.js +1 -1
  40. package/dist/knowledge/index.cjs +1 -1
  41. package/dist/knowledge/index.js +1 -1
  42. package/dist/llm/index.cjs +3 -3
  43. package/dist/llm/index.js +3 -3
  44. package/dist/llm/model/mastra-gateway-provider-tools.d.ts +7 -0
  45. package/dist/{llm-DVQKutUM.cjs → llm-dX0y0atH.cjs} +4 -2
  46. package/dist/{llm-BZQdtNe1.js → llm-hWZGKDUy.js} +4 -2
  47. package/dist/loop/index.cjs +2 -2
  48. package/dist/loop/index.js +2 -2
  49. package/dist/{manager-CxN9r6o4.js → manager-9pUbVmmS.js} +2 -2
  50. package/dist/{manager-Cr0lJZSV.cjs → manager-CUoAGxcN.cjs} +2 -2
  51. package/dist/mastra/index.cjs +1 -1
  52. package/dist/mastra/index.js +1 -1
  53. package/dist/{mastra-D4Q2NPsZ.cjs → mastra-B6Fw2ZIW.cjs} +16 -16
  54. package/dist/{mastra-CsuV_iVH.js → mastra-CliUSn4-.js} +16 -16
  55. package/dist/mastra-gateway-provider-tools-C-AjGZis.js +58 -0
  56. package/dist/mastra-gateway-provider-tools-WpH3Tmu4.cjs +81 -0
  57. package/dist/memory/index.cjs +2 -2
  58. package/dist/memory/index.js +2 -2
  59. package/dist/{model-CIV_1-kW.js → model-CAp-mgCd.js} +1 -1
  60. package/dist/{model-DOqga9dt.cjs → model-DEnu3A8A.cjs} +1 -1
  61. package/dist/{netlify-KyTDrIQP.cjs → netlify-BMhDN9E8.cjs} +1 -1
  62. package/dist/{netlify-CoThk6uD.js → netlify-xMA06xL8.js} +1 -1
  63. package/dist/notifications/index.cjs +1 -1
  64. package/dist/notifications/index.js +1 -1
  65. package/dist/processor-provider/index.cjs +1 -1
  66. package/dist/processor-provider/index.js +1 -1
  67. package/dist/processors/index.cjs +2 -2
  68. package/dist/processors/index.js +2 -2
  69. package/dist/{provider-registry-BsphJbPb.cjs → provider-registry-CcMAUHdH.cjs} +8 -51
  70. package/dist/{provider-registry-BIXG21H8.js → provider-registry-DsK3rXeU.js} +7 -50
  71. package/dist/{registry-generator-BXZzqm-j.js → registry-generator-CXDt3yuY.js} +1 -1
  72. package/dist/{registry-generator-BBmRjrp4.cjs → registry-generator-DRFJTQ2Q.cjs} +1 -1
  73. package/dist/{rehydrate-BwfL5GuU.js → rehydrate-C_fSTYcV.js} +2 -2
  74. package/dist/{rehydrate-tjUWtbB-.cjs → rehydrate-DNf3nk5t.cjs} +2 -2
  75. package/dist/relevance/index.cjs +2 -2
  76. package/dist/relevance/index.js +2 -2
  77. package/dist/storage/index.cjs +2 -2
  78. package/dist/storage/index.js +2 -2
  79. package/dist/stream/index.cjs +2 -2
  80. package/dist/stream/index.js +2 -2
  81. package/dist/{stream-C4XcOMuS.cjs → stream-BKEfY3-X.cjs} +1 -1
  82. package/dist/{stream-Dgsrva80.js → stream-CyaGm-DI.js} +1 -1
  83. package/dist/test-utils/llm-mock.cjs +1 -1
  84. package/dist/test-utils/llm-mock.js +1 -1
  85. package/dist/tool-loop-agent/index.cjs +1 -1
  86. package/dist/tool-loop-agent/index.js +1 -1
  87. package/dist/{tool-loop-agent-DN4C3VpR.js → tool-loop-agent-BYrNEcU_.js} +3 -3
  88. package/dist/{tool-loop-agent-Dze-IJOx.cjs → tool-loop-agent-Du3Vm65W.cjs} +3 -3
  89. package/dist/tools/builtin/web-search.d.ts +8 -0
  90. package/dist/tools/index.cjs +1 -1
  91. package/dist/tools/index.js +1 -1
  92. package/dist/{tools-C2q0ougI.cjs → tools-DZoVfKPl.cjs} +42 -17
  93. package/dist/{tools-ybbz1YKg.js → tools-FwJyNoyg.js} +41 -10
  94. package/dist/{utils-AfuTYtPM.cjs → utils-Ag63fN_T.cjs} +1 -1
  95. package/dist/{utils-B-UrrqES.js → utils-Dl5BqcZO.js} +1 -1
  96. package/dist/utils.cjs +1 -1
  97. package/dist/utils.js +1 -1
  98. package/dist/{validate-zLPo00kk.js → validate-CYqPJX3z.js} +1 -1
  99. package/dist/{validate-GzP07CVb.cjs → validate-bRsKfPrD.cjs} +1 -1
  100. package/dist/vector/index.cjs +1 -1
  101. package/dist/vector/index.js +1 -1
  102. package/dist/worker/index.cjs +1 -1
  103. package/dist/worker/index.js +1 -1
  104. package/dist/{worker-ChLwyYHR.cjs → worker-DPjo5pv_.cjs} +2 -2
  105. package/dist/{worker-J6-CpZ0n.cjs → worker-Dvt_y5ra.cjs} +2 -2
  106. package/dist/{worker-DP_A9d7f.js → worker-RbY0GNay.js} +2 -2
  107. package/dist/{worker-BYQGN5Lh.js → worker-oSqtPcV6.js} +2 -2
  108. package/dist/{workflow-COgwqQxL.cjs → workflow-B6Xdy2Ck.cjs} +3 -3
  109. package/dist/{workflow-DqV0r2P-.js → workflow-X6iwBizX.js} +3 -3
  110. package/dist/workflows/builder/index.cjs +1 -1
  111. package/dist/workflows/builder/index.js +1 -1
  112. package/dist/workflows/evented/index.cjs +1 -1
  113. package/dist/workflows/evented/index.js +1 -1
  114. package/dist/workflows/index.cjs +4 -4
  115. package/dist/workflows/index.js +4 -4
  116. package/package.json +5 -5
@@ -600,11 +600,11 @@ export const researchAgent = new Agent({
600
600
  })
601
601
  ```
602
602
 
603
- `webSearchTool` supports OpenAI, Anthropic, Google Gemini, and xAI models. If Mastra can't infer one of those providers from the active model, the agent run fails with a `MastraError`.
603
+ When you call a provider directly, `webSearchTool` supports OpenAI, Anthropic, Google Gemini, and xAI models. If Mastra can't infer one of those providers from the active model, the agent run fails with a `MastraError`. Durable agents log that error as a warning instead and run the turn without any tools.
604
604
 
605
605
  The resolved tool ID comes from the provider: `openai.web_search`, `anthropic.web_search_20250305`, `google.google_search`, or `xai.web_search`.
606
606
 
607
- Models served through Mastra Gateway, such as `mastra/openai/gpt-5.6-sol`, use the gateway's own web search (`openrouter.web_search`) instead. Results from gateway web search arrive in the model's text response, without separate tool-call or source chunks. Other provider-native tools aren't available through the gateway, so passing one makes the agent run fail with a `MastraError`.
607
+ Models served through the Mastra Gateway chat endpoint, such as `mastra/openai/gpt-5.6-sol`, use the gateway's own web search (`openrouter.web_search`) instead. This works for every tool-calling model on that endpoint, including ones without a native web search tool such as DeepSeek. Anthropic models reached through a gateway OAuth connection call the Anthropic Messages API and keep the native Anthropic web search. Results from gateway web search arrive in the model's text response, without separate tool-call or source chunks. Other provider-native tools aren't available on the gateway chat endpoint, so passing one to a model on that endpoint makes the agent run fail with a `MastraError`.
608
608
 
609
609
  The `search` key is only the agent-local tool name. Use any key. The `webSearchTool` value tells Mastra to use provider web search.
610
610
 
@@ -1,5 +1,5 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
- const require_execution_fence = require("../execution-fence-DeR5VB54.cjs");
2
+ const require_execution_fence = require("../execution-fence-C-wa17Wr.cjs");
3
3
  const require_constants = require("../constants-B2FVV_2e.cjs");
4
4
  const require_collect_tool_mocks = require("../collect-tool-mocks-k9fM6oDl.cjs");
5
5
  exports.MastraScorer = require_execution_fence.MastraScorer;
@@ -1,4 +1,4 @@
1
- import { Gc as SCORING_PREDICATE_ROOTS, Kc as evaluateScoringPredicate, _ as isNotScorable, c as runEvals, f as createClassifierScorer, g as filterRun, h as createScorer, m as ScorerRunError, p as MastraScorer, qc as validateScoringPredicate, v as notScorable } from "../execution-fence-Yl_-iJxn.js";
1
+ import { Gc as SCORING_PREDICATE_ROOTS, Kc as evaluateScoringPredicate, _ as isNotScorable, c as runEvals, f as createClassifierScorer, g as filterRun, h as createScorer, m as ScorerRunError, p as MastraScorer, qc as validateScoringPredicate, v as notScorable } from "../execution-fence-DvN3Fwm3.js";
2
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-Dro9fuhk.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,7 +1,7 @@
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_execution_fence = require("../../execution-fence-DeR5VB54.cjs");
4
+ const require_execution_fence = require("../../execution-fence-C-wa17Wr.cjs");
5
5
  const require_constants = require("../../constants-B2FVV_2e.cjs");
6
6
  let zod_v4 = require("zod/v4");
7
7
  // src/evals/scoreTraces/scoreTraces.ts
@@ -1,6 +1,6 @@
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 { Ns as createStep, Ps as createWorkflow } from "../../execution-fence-Yl_-iJxn.js";
3
+ import { Ns as createStep, Ps as createWorkflow } from "../../execution-fence-DvN3Fwm3.js";
4
4
  import { Dr as saveScorePayloadSchema } from "../../constants-Dro9fuhk.js";
5
5
  import { z } from "zod/v4";
6
6
  // src/evals/scoreTraces/scoreTraces.ts
@@ -4,7 +4,7 @@ const require_base = require("./base-BIzR1D3_.cjs");
4
4
  const require_error = require("./error-D90lJ6M7.cjs");
5
5
  const require_error$1 = require("./error-L1V4uUbd.cjs");
6
6
  const require_output_helpers = require("./output-helpers-By5FbLpp.cjs");
7
- const require_stream = require("./stream-C4XcOMuS.cjs");
7
+ const require_stream = require("./stream-BKEfY3-X.cjs");
8
8
  const require_workflows_constants = require("./workflows/constants.cjs");
9
9
  const require_request_context = require("./request-context-D9RXYCy8.cjs");
10
10
  const require_observability = require("./observability-VaoaeadK.cjs");
@@ -12,9 +12,9 @@ const require_storage = require("./storage-CfG0I2aF.cjs");
12
12
  const require_utils = require("./utils-D-eNsgDM.cjs");
13
13
  const require_tool = require("./tool-Dn9WSDVn.cjs");
14
14
  const require_error_count = require("./error-count-DeDpeWU2.cjs");
15
- const require_utils$1 = require("./utils-AfuTYtPM.cjs");
15
+ const require_utils$1 = require("./utils-Ag63fN_T.cjs");
16
16
  const require_ee_iTj2bRDt = require("./ee-iTj2bRDt-D3-QLGDF.cjs");
17
- const require_background_tasks = require("./background-tasks-fjEu5kC8.cjs");
17
+ const require_background_tasks = require("./background-tasks-DEBc9BBP.cjs");
18
18
  const require_toolchecks = require("./toolchecks-DbBsQGHW.cjs");
19
19
  const require_stream$1 = require("./stream-BGbj9jAU.cjs");
20
20
  const require_fetchWithRetry = require("./fetchWithRetry-f5k4p7_1.cjs");
@@ -22,16 +22,16 @@ const require_utils_safe_stringify = require("./utils/safe-stringify.cjs");
22
22
  const require_deep_equal = require("./deep-equal-TMDmByBC.cjs");
23
23
  const require_dynamic_argument = require("./dynamic-argument-CUc1BBOS.cjs");
24
24
  const require_message_list = require("./message-list-C0F2sDNC.cjs");
25
- const require_llm = require("./llm-DVQKutUM.cjs");
25
+ const require_llm = require("./llm-dX0y0atH.cjs");
26
26
  const require_payload_transform = require("./payload-transform-CWgnsO9w.cjs");
27
27
  const require_signals = require("./signals-CWxAMEmE.cjs");
28
28
  const require_to_prompt = require("./to-prompt-CG-LyaBY.cjs");
29
29
  const require_dist = require("./dist-P2rjrlmj.cjs");
30
30
  const require_dist$1 = require("./dist-CXeCeeW7.cjs");
31
31
  const require_model = require("./model-jBymoqGa.cjs");
32
- const require_provider_registry = require("./provider-registry-BsphJbPb.cjs");
32
+ const require_provider_registry = require("./provider-registry-CcMAUHdH.cjs");
33
33
  const require_inmemory = require("./inmemory-Dc86VWGB.cjs");
34
- const require_model$1 = require("./model-DOqga9dt.cjs");
34
+ const require_model$1 = require("./model-DEnu3A8A.cjs");
35
35
  const require_predicate_index = require("./predicate/index.cjs");
36
36
  const require_classifier_index = require("./classifier/index.cjs");
37
37
  const require_observability_context_storage = require("./observability/context-storage.cjs");
@@ -42,7 +42,7 @@ const require_constants = require("./constants-B2FVV_2e.cjs");
42
42
  const require_signal_provider = require("./signal-provider-D9gbevHN.cjs");
43
43
  const require_slugify = require("./slugify-B_WzG9IY.cjs");
44
44
  const require_workspace = require("./workspace-BQD4tcQi.cjs");
45
- const require_tools = require("./tools-C2q0ougI.cjs");
45
+ const require_tools = require("./tools-DZoVfKPl.cjs");
46
46
  const require_workspace_skills = require("./workspace-skills-BcquhPDn.cjs");
47
47
  const require_filesystem_versioned = require("./filesystem-versioned-BavRtYWJ.cjs");
48
48
  const require_features_index = require("./features/index.cjs");
@@ -85726,7 +85726,7 @@ async function prepareForDurableExecution(options) {
85726
85726
  });
85727
85727
  let tripwireData;
85728
85728
  if (inputProcessors.length > 0) try {
85729
- const { ProcessorRunner } = await Promise.resolve().then(() => require("./stream-C4XcOMuS.cjs")).then((n) => n.runner_exports);
85729
+ const { ProcessorRunner } = await Promise.resolve().then(() => require("./stream-BKEfY3-X.cjs")).then((n) => n.runner_exports);
85730
85730
  await new ProcessorRunner({
85731
85731
  inputProcessors,
85732
85732
  outputProcessors,
@@ -89686,7 +89686,7 @@ var Agent = class Agent extends require_base.MastraBase {
89686
89686
  const ensuredTools = require_utils$1.ensureToolProperties(tools);
89687
89687
  if (!resolveWebSearch || !Object.values(ensuredTools).some(require_tools.isWebSearchTool)) return ensuredTools;
89688
89688
  const model = await this.getModel({ requestContext });
89689
- return Object.fromEntries(Object.entries(ensuredTools).map(([key, tool]) => [key, require_tools.isWebSearchTool(tool) ? require_tools.createWebSearchProviderTool(require_tools.normalizeWebSearchProvider(model)) : tool]));
89689
+ return Object.fromEntries(Object.entries(ensuredTools).map(([key, tool]) => [key, require_tools.isWebSearchTool(tool) ? require_tools.resolveWebSearchProviderTool(model) : tool]));
89690
89690
  };
89691
89691
  if (typeof this.#tools !== "function") return resolveToolList(this.#tools);
89692
89692
  return resolveMaybePromise(require_dynamic_argument.resolveDynamicArgument(this.#tools, {
@@ -90819,7 +90819,7 @@ var Agent = class Agent extends require_base.MastraBase {
90819
90819
  const model = activeModel ?? (assignedToolEntries.length > 0 ? await getModel() : void 0);
90820
90820
  const assignedCoreToolEntries = await Promise.all(assignedToolEntries.map(async ([k, tool]) => {
90821
90821
  if (!tool) return;
90822
- const toolToConvert = require_tools.isWebSearchTool(tool) ? require_tools.createWebSearchProviderTool(require_tools.normalizeWebSearchProvider(model)) : tool;
90822
+ const toolToConvert = require_tools.isWebSearchTool(tool) ? require_tools.resolveWebSearchProviderTool(model) : tool;
90823
90823
  const options = {
90824
90824
  name: k,
90825
90825
  runId,
@@ -90912,7 +90912,7 @@ var Agent = class Agent extends require_base.MastraBase {
90912
90912
  for (const [toolName, tool] of clientToolsForInput) {
90913
90913
  const model = activeModel ?? await getModel();
90914
90914
  let toolToConvert;
90915
- if (require_tools.isWebSearchTool(tool)) toolToConvert = require_tools.createWebSearchProviderTool(require_tools.normalizeWebSearchProvider(model));
90915
+ if (require_tools.isWebSearchTool(tool)) toolToConvert = require_tools.resolveWebSearchProviderTool(model);
90916
90916
  else if (require_toolchecks.isProviderTool(tool)) toolToConvert = tool;
90917
90917
  else {
90918
90918
  const { execute, ...toolRest } = tool;
@@ -4,7 +4,7 @@ import { t as MastraBase } from "./base-CKLWBhDo.js";
4
4
  import { a as MastraNonRetryableError, i as MastraError, n as ErrorDomain, o as getErrorFromUnknown, t as ErrorCategory } from "./error-oh2DLsP2.js";
5
5
  import { a as classifyProviderError, l as describeProviderError, t as recordTerminalErrorMessage, u as readProviderErrorDetails } from "./error-BC9Au-22.js";
6
6
  import { S as isLeaseProvider, _ as PublisherQueueLimitError, b as NoopLeaseProvider, d as isRunLocalTopic, g as stripModelSnapshots, i as CachingPubSub, m as slimNestedAgentChunks, r as serializeError$1, t as DefaultStepResult, v as EventEmitterPubSub, y as withAck } from "./output-helpers-k2-48ssH.js";
7
- import { $ as summarizeToolChoiceForSpan, $t as commitToolResult, A as isSignalChunkExcluded, An as isMastraTimeoutError, At as getSnapshotMemoryInfo, B as removeTrailingAssistantGuardContinuations, Bt as stateColumnsWrite, C as stampChunkProducedAt, Cn as DEADLINE_SAVE_CLAIM_HOLD_MS, D as isStructuredOutputError, Dn as getAbortReason, Dt as validateTemplate, E as escapeUnescapedControlCharsInJsonStrings, En as createTimeoutAbortSignal, Et as traverseMappingPath, F as endOutputStreamSpanOutsideStep, Fn as safeClose, Ft as latestStepResults, G as FLUSH_HELD_PARTS_KEY, Gt as diffStateAsJson, Ht as unusedStateEntries, I as findOwnModelStepSpan, In as safeEnqueue, It as materializeState, J as withoutHeldContent, K as REPROCESS_PART_KEY, Kt as patchState, Ln as safeError, Lt as materializeWorkflowRun, M as ProcessorRunner, Mn as settledOrElapsed, N as ProcessorState, Nt as applyStateColumnsWrite, O as asJsonSchema, On as guardStreamUntilMatch, Ot as getStepResult, P as endOutputStreamSpanAtStepEnd, Pn as MastraModelInput, Pt as isStateCheckpointDue, Q as summarizeProcessorToolsForSpan, R as isTrailingAssistantGuardContinuation, Rn as createRunScope, Rt as pickStateKeys, S as getChunkProducedAt, Sn as takenQueueThreadId, St as stepRefId, T as createOutputHandler, Tn as MastraTimeoutError, Tt as templateReadsState, Ut as applyStatePatch, V as ProviderHistoryCompat, Vt as summarizeStepResult, X as summarizeProcessorModelForSpan, Y as summarizeActiveToolsForSpan, Yt as isObservationalMemoryEnabled$1, Z as summarizeProcessorResultForSpan, Zt as parseMemoryRequestContext, _ as persistProcessorDataChunk, _t as stubStepResult, a as convertFullStreamChunkToMastra, an as snapshotToolResult, at as PROCESSOR_ABORT_SIGNAL, b as resolveOutputMessageSkippingCompletionChecks, bn as pendingQueueThreadId, bt as predicateReadsState, c as WorkflowRunOutput, cn as validationErrorModelOutput, ct as getHydratedStepResult, d as MastraModelOutput, dn as resolveSuspendedToolRunId, dt as lazyStepResults, en as computeModelOutputProviderMetadata, et as resolveProcessorSpanAttributes, f as clearStepPartIndexes, fn as resolveThreadIdFromArgs, ft as loadStepResults, g as isFeedbackContinuation, gn as applyStateSignal, gt as storageV2StepResultAccessors, h as findStepPartBoundaries, hn as tryStreamWithJsonFallback, ht as residentStepResultsLoader, in as resolveModelOutputAfterToolResultProcessors, it as createProcessorSendSignal, j as OUTPUT_STREAM_HOOK_DURATION_KEY_PREFIX, jn as raceAgainstAbort, k as getResponseFormat, kn as guardStreamWithAbort, kt as getStepResultAsync, l as TripWire, ln as isProcessorWorkflow, lt as hydrateStepResults, m as findIterationOffsetInParts, mn as tryGenerateWithJsonFallback, mt as residentStepResults, nn as latestProcessedModelOutput, nt as toProcessorSpanPhase, on as withAgentWorkflowToolMarker, ot as RunJournal, p as createDestructurableOutput, pn as supportedLanguageModelSpecifications, pt as loadedStepResults, q as takeHeldParts, rn as readModelOutput, rt as PROCESSOR_LATE_SIGNAL_SINK, s as MastraAgentNetworkStream, sn as normalizeModelOutput, st as buildStepResultAccessors, tn as hasToolResultProcessor, tt as resolveProcessorSpanName, u as getModelOutputForTripwire, un as isSupportedLanguageModel, ut as isStepResultStub, v as reconcileBufferedStepTexts, vn as assertNotQueueThreadId, vt as collectMappingStepRefs, w as markChunkOutputProcessed, wn as DEADLINE_SAVE_WAIT_MS, wt as resolveTemplate, x as resolveProcessorWriterMessageId, xn as queuedQueueThreadId, xt as resolveStepOutputs, y as resolveMessageText, yn as isQueueThreadId, yt as collectPredicateStepRefs, z as needsTrailingAssistantGuard, zn as createRunScopeKey, zt as stateBaseOf } from "./stream-Dgsrva80.js";
7
+ import { $ as summarizeToolChoiceForSpan, $t as commitToolResult, A as isSignalChunkExcluded, An as isMastraTimeoutError, At as getSnapshotMemoryInfo, B as removeTrailingAssistantGuardContinuations, Bt as stateColumnsWrite, C as stampChunkProducedAt, Cn as DEADLINE_SAVE_CLAIM_HOLD_MS, D as isStructuredOutputError, Dn as getAbortReason, Dt as validateTemplate, E as escapeUnescapedControlCharsInJsonStrings, En as createTimeoutAbortSignal, Et as traverseMappingPath, F as endOutputStreamSpanOutsideStep, Fn as safeClose, Ft as latestStepResults, G as FLUSH_HELD_PARTS_KEY, Gt as diffStateAsJson, Ht as unusedStateEntries, I as findOwnModelStepSpan, In as safeEnqueue, It as materializeState, J as withoutHeldContent, K as REPROCESS_PART_KEY, Kt as patchState, Ln as safeError, Lt as materializeWorkflowRun, M as ProcessorRunner, Mn as settledOrElapsed, N as ProcessorState, Nt as applyStateColumnsWrite, O as asJsonSchema, On as guardStreamUntilMatch, Ot as getStepResult, P as endOutputStreamSpanAtStepEnd, Pn as MastraModelInput, Pt as isStateCheckpointDue, Q as summarizeProcessorToolsForSpan, R as isTrailingAssistantGuardContinuation, Rn as createRunScope, Rt as pickStateKeys, S as getChunkProducedAt, Sn as takenQueueThreadId, St as stepRefId, T as createOutputHandler, Tn as MastraTimeoutError, Tt as templateReadsState, Ut as applyStatePatch, V as ProviderHistoryCompat, Vt as summarizeStepResult, X as summarizeProcessorModelForSpan, Y as summarizeActiveToolsForSpan, Yt as isObservationalMemoryEnabled$1, Z as summarizeProcessorResultForSpan, Zt as parseMemoryRequestContext, _ as persistProcessorDataChunk, _t as stubStepResult, a as convertFullStreamChunkToMastra, an as snapshotToolResult, at as PROCESSOR_ABORT_SIGNAL, b as resolveOutputMessageSkippingCompletionChecks, bn as pendingQueueThreadId, bt as predicateReadsState, c as WorkflowRunOutput, cn as validationErrorModelOutput, ct as getHydratedStepResult, d as MastraModelOutput, dn as resolveSuspendedToolRunId, dt as lazyStepResults, en as computeModelOutputProviderMetadata, et as resolveProcessorSpanAttributes, f as clearStepPartIndexes, fn as resolveThreadIdFromArgs, ft as loadStepResults, g as isFeedbackContinuation, gn as applyStateSignal, gt as storageV2StepResultAccessors, h as findStepPartBoundaries, hn as tryStreamWithJsonFallback, ht as residentStepResultsLoader, in as resolveModelOutputAfterToolResultProcessors, it as createProcessorSendSignal, j as OUTPUT_STREAM_HOOK_DURATION_KEY_PREFIX, jn as raceAgainstAbort, k as getResponseFormat, kn as guardStreamWithAbort, kt as getStepResultAsync, l as TripWire, ln as isProcessorWorkflow, lt as hydrateStepResults, m as findIterationOffsetInParts, mn as tryGenerateWithJsonFallback, mt as residentStepResults, nn as latestProcessedModelOutput, nt as toProcessorSpanPhase, on as withAgentWorkflowToolMarker, ot as RunJournal, p as createDestructurableOutput, pn as supportedLanguageModelSpecifications, pt as loadedStepResults, q as takeHeldParts, rn as readModelOutput, rt as PROCESSOR_LATE_SIGNAL_SINK, s as MastraAgentNetworkStream, sn as normalizeModelOutput, st as buildStepResultAccessors, tn as hasToolResultProcessor, tt as resolveProcessorSpanName, u as getModelOutputForTripwire, un as isSupportedLanguageModel, ut as isStepResultStub, v as reconcileBufferedStepTexts, vn as assertNotQueueThreadId, vt as collectMappingStepRefs, w as markChunkOutputProcessed, wn as DEADLINE_SAVE_WAIT_MS, wt as resolveTemplate, x as resolveProcessorWriterMessageId, xn as queuedQueueThreadId, xt as resolveStepOutputs, y as resolveMessageText, yn as isQueueThreadId, yt as collectPredicateStepRefs, z as needsTrailingAssistantGuard, zn as createRunScopeKey, zt as stateBaseOf } from "./stream-CyaGm-DI.js";
8
8
  import { HAND_BACK_STATE_SYMBOL, PARENT_STATE_SYMBOL, PUBSUB_SYMBOL, STREAM_FORMAT_SYMBOL, WORKFLOW_CANCELLED_SYMBOL } from "./workflows/constants.js";
9
9
  import { c as MASTRA_THREAD_ID_KEY, d as isReservedRequestContextKey, f as mergeVersionOverrides$1, l as MASTRA_VERSIONS_KEY, n as MASTRA_AUTH_TOKEN_KEY, o as MASTRA_RESOURCE_ID_KEY, p as withoutLiveRequestKeys, r as MASTRA_INHERITED_MEMORY_KEY, s as MASTRA_SCOPES_KEY, t as MASTRA_CONTINUATION_TOOL_CALL_IDS_KEY, u as RequestContext } from "./request-context-COnZHt2-.js";
10
10
  import { _ as resolveObservabilityContext, a as agentLoopTermination, c as compactStopReasonContext, g as createObservabilityContext, h as wrapMastra, i as subtractReportedUsage, m as unwrapMastraTracingProxy, n as extractUsageMetrics, o as executionFailureTermination, r as isUsageIncomplete, s as tripwireTermination, t as calculateObservedUsage } from "./observability-DPDWibyH.js";
@@ -13,9 +13,9 @@ import { a as getOrCreateSpan, f as resolveCurrentSpan, l as getTimeToFirstChunk
13
13
  import { _ as getRequestContextInputValues, a as getModelFacingValidationError, d as validateToolOutput, g as getRequestContextInputSource, l as resolveToolOutputValidationSchema, r as createTool, u as validateToolInput } from "./tool-DIFduuTw.js";
14
14
  import { isStandardSchemaWithJSON, standardSchemaToJSONSchema, toStandardSchema } from "./schema/index.js";
15
15
  import { i as setSpanErrorOrigin, n as getSpanErrorOrigin } from "./error-count-BH-rJW7q.js";
16
- import { A as eagerToolCallDidNotExecute, D as EagerToolExecutionCoordinator, E as EAGER_TOOL_EXECUTION_MARKER, F as hasRunningRunStep, I as isRunStepActive, L as setRunLeaseFence, M as isEagerlyExecutableToolCall, N as TOOL_ABORT_NOTICE, O as EagerToolExecutionNotRun, P as clearRunLeaseFence, R as startRunStep, S as selectFields, T as EAGER_TOOL_BAILOUT, a as ensureToolProperties, b as removeUndefinedValues, d as makeCoreTool, i as delay$1, j as eagerToolCallSuspensionIntent, k as eagerToolCallAlreadyAnnouncedInput, n as createMastraProxy, o as generateEmptyFromSchema, p as makeProcessorCoreTool, r as deepMerge$1, v as readPositiveIntEnv, w as EAGER_TOOL_ABORT_SIGNAL, y as rebindProcessorTools, z as whenRunStepsSettle } from "./utils-B-UrrqES.js";
16
+ import { A as eagerToolCallDidNotExecute, D as EagerToolExecutionCoordinator, E as EAGER_TOOL_EXECUTION_MARKER, F as hasRunningRunStep, I as isRunStepActive, L as setRunLeaseFence, M as isEagerlyExecutableToolCall, N as TOOL_ABORT_NOTICE, O as EagerToolExecutionNotRun, P as clearRunLeaseFence, R as startRunStep, S as selectFields, T as EAGER_TOOL_BAILOUT, a as ensureToolProperties, b as removeUndefinedValues, d as makeCoreTool, i as delay$1, j as eagerToolCallSuspensionIntent, k as eagerToolCallAlreadyAnnouncedInput, n as createMastraProxy, o as generateEmptyFromSchema, p as makeProcessorCoreTool, r as deepMerge$1, v as readPositiveIntEnv, w as EAGER_TOOL_ABORT_SIGNAL, y as rebindProcessorTools, z as whenRunStepsSettle } from "./utils-Dl5BqcZO.js";
17
17
  import { h as getWorkflowFGAResourceId, i as MastraFGAPermissions, y as requireFGA } from "./ee-iTj2bRDt-By_B9ngH.js";
18
- import { c as createBackgroundTask, o as resolveBackgroundConfig, s as sanitizeToolArguments, t as generateBackgroundTaskSystemPrompt } from "./background-tasks-DFDfV-FJ.js";
18
+ import { c as createBackgroundTask, o as resolveBackgroundConfig, s as sanitizeToolArguments, t as generateBackgroundTaskSystemPrompt } from "./background-tasks-CbBbS-g3.js";
19
19
  import { a as isApprovalExempt, c as isProviderDefinedTool, d as markAgentWorkflowTool, f as markApprovalExempt, l as isProviderTool, n as getNeedsApprovalFn, o as isBuiltBeforeApproval, r as getProviderToolName, s as isMastraTool, t as getBeforeApprovalFn } from "./toolchecks-CRAfUe9H.js";
20
20
  import { t as ToolStream } from "./stream-D9JOykz7.js";
21
21
  import { a as waitDelay, i as getRetryAfterMs, n as DEFAULT_MAX_RETRY_AFTER_MS, r as clampDelayMs } from "./fetchWithRetry-DFSvpYDT.js";
@@ -23,16 +23,16 @@ import { boundedStringify, ensureSerializable, safeStringify } from "./utils/saf
23
23
  import { t as deepEqual$3 } from "./deep-equal-d1xU02ag.js";
24
24
  import { n as resolveDynamicArgument, t as getRequestUser } from "./dynamic-argument-BzPK3qPN.js";
25
25
  import { A as stableStringify$1, E as removeWorkingMemoryTags, P as embed$3, Z as preserveResponseItemIdsOnMerge, a as isTerminalToolInvocationState, c as withUnavailableAttachmentUrls, d as aiV5UIMessagesToAIV5ModelMessages, f as coreContentToString, i as isClientToolInvocationUpdate, l as isDownloadAssetsError, m as filterMessagesForPersistence, n as MessageList, ot as normalizeToolOutput, p as messagesAreEqual, r as advancesToolInvocationState, s as unavailableAttachmentPlaceholder, t as convertMessages, u as MessageMerger } from "./message-list-RgFlLrxG.js";
26
- import { a as ModelRouterLanguageModel, d as attachModelStreamTransport, f as isDataChunk, i as resolveModelConfig, n as ModelRouterEmbeddingModel, o as resolveApiProviderId, p as readModelStreamTransport } from "./llm-BZQdtNe1.js";
26
+ import { a as ModelRouterLanguageModel, d as attachModelStreamTransport, f as isDataChunk, i as resolveModelConfig, n as ModelRouterEmbeddingModel, o as resolveApiProviderId, p as readModelStreamTransport } from "./llm-hWZGKDUy.js";
27
27
  import { a as withToolPayloadTransformMetadata, i as transformToolPayloadForTargets, n as hasTransformedToolPayload, o as withToolPayloadTransformProviderMetadata, r as normalizeToolPayloadTransformPolicy, t as getTransformedToolPayload } from "./payload-transform-Dj3HUeD4.js";
28
28
  import { d as signalSpanAttributes, h as signalToXmlMarkup, l as mastraDBMessageToSignal, n as createSignal, o as isMastraSignalMessage, s as isTransientSignalMessage, u as resolveDeliveryAttributes } from "./signals-CqR_iWkg.js";
29
29
  import { h as resolveFilePartMediaTypeAndData, m as parseDataUri, o as categorizeFileData } from "./to-prompt-CMlVGYxC.js";
30
30
  import { c as parsePartialJson, h as tool$1, m as generateId$1, p as asSchema$1, r as embed$4, u as APICallError$1 } from "./dist-TPVqg8oV.js";
31
31
  import { n as embed$5 } from "./dist-D3cKCUe-.js";
32
32
  import { i as hasFreeFormObject } from "./model-DS-b2R-R.js";
33
- import { c as modelSupportsStructuredOutput, l as modelSupportsTemperature } from "./provider-registry-BIXG21H8.js";
33
+ import { c as modelSupportsStructuredOutput, l as modelSupportsTemperature } from "./provider-registry-DsK3rXeU.js";
34
34
  import { t as InMemoryServerCache } from "./inmemory-BK3zLwvM.js";
35
- import { t as MastraLLMV1 } from "./model-CIV_1-kW.js";
35
+ import { t as MastraLLMV1 } from "./model-CAp-mgCd.js";
36
36
  import { MISSING, collectInvalidPredicatePaths, createPredicateEvaluator, derivePredicateLabel, normalizePredicatePath, walk } from "./predicate/index.js";
37
37
  import { Classifier } from "./classifier/index.js";
38
38
  import { initContextStorage, withSpanErrorAttempt } from "./observability/context-storage.js";
@@ -43,7 +43,7 @@ import { An as computeTraceStatus, Cr as extractTrajectory, Dr as saveScorePaylo
43
43
  import { t as GoalSignalProvider } from "./signal-provider-B_mfW-J4.js";
44
44
  import { t as slugify } from "./slugify-BUNmb-Ga.js";
45
45
  import { F as LocalSandbox, at as evaluateReadRecord, c as Workspace, dt as WORKSPACE_TOOLS, g as resolveToolConfig, gt as shellQuote, h as createWorkspaceTools, ht as sliceByTokens, l as createSkillTools, lt as CompositeFilesystem, mt as estimateTokenCount, ot as normalizeReadTrackerPath, pt as sliceByTokensSafe, st as LocalFilesystem } from "./workspace-sqcfdZRR.js";
46
- import { i as normalizeWebSearchProvider, n as createWebSearchProviderTool, r as isWebSearchTool } from "./tools-ybbz1YKg.js";
46
+ import { n as isWebSearchTool, r as resolveWebSearchProviderTool } from "./tools-FwJyNoyg.js";
47
47
  import { D as BM25Index, O as tokenize } from "./workspace-skills-38OY32_b.js";
48
48
  import { f as calculatePagination, g as InMemoryThreadStateStorage, h as resolveListOrderBy, m as normalizePerPage, p as compareByField, s as StorageDomain, u as MastraCompositeStore } from "./filesystem-versioned-BL1ojJLo.js";
49
49
  import { coreFeatures } from "./features/index.js";
@@ -85720,7 +85720,7 @@ async function prepareForDurableExecution(options) {
85720
85720
  });
85721
85721
  let tripwireData;
85722
85722
  if (inputProcessors.length > 0) try {
85723
- const { ProcessorRunner } = await import("./stream-Dgsrva80.js").then((n) => n.L);
85723
+ const { ProcessorRunner } = await import("./stream-CyaGm-DI.js").then((n) => n.L);
85724
85724
  await new ProcessorRunner({
85725
85725
  inputProcessors,
85726
85726
  outputProcessors,
@@ -89680,7 +89680,7 @@ var Agent = class Agent extends MastraBase {
89680
89680
  const ensuredTools = ensureToolProperties(tools);
89681
89681
  if (!resolveWebSearch || !Object.values(ensuredTools).some(isWebSearchTool)) return ensuredTools;
89682
89682
  const model = await this.getModel({ requestContext });
89683
- return Object.fromEntries(Object.entries(ensuredTools).map(([key, tool]) => [key, isWebSearchTool(tool) ? createWebSearchProviderTool(normalizeWebSearchProvider(model)) : tool]));
89683
+ return Object.fromEntries(Object.entries(ensuredTools).map(([key, tool]) => [key, isWebSearchTool(tool) ? resolveWebSearchProviderTool(model) : tool]));
89684
89684
  };
89685
89685
  if (typeof this.#tools !== "function") return resolveToolList(this.#tools);
89686
89686
  return resolveMaybePromise(resolveDynamicArgument(this.#tools, {
@@ -90813,7 +90813,7 @@ var Agent = class Agent extends MastraBase {
90813
90813
  const model = activeModel ?? (assignedToolEntries.length > 0 ? await getModel() : void 0);
90814
90814
  const assignedCoreToolEntries = await Promise.all(assignedToolEntries.map(async ([k, tool]) => {
90815
90815
  if (!tool) return;
90816
- const toolToConvert = isWebSearchTool(tool) ? createWebSearchProviderTool(normalizeWebSearchProvider(model)) : tool;
90816
+ const toolToConvert = isWebSearchTool(tool) ? resolveWebSearchProviderTool(model) : tool;
90817
90817
  const options = {
90818
90818
  name: k,
90819
90819
  runId,
@@ -90906,7 +90906,7 @@ var Agent = class Agent extends MastraBase {
90906
90906
  for (const [toolName, tool] of clientToolsForInput) {
90907
90907
  const model = activeModel ?? await getModel();
90908
90908
  let toolToConvert;
90909
- if (isWebSearchTool(tool)) toolToConvert = createWebSearchProviderTool(normalizeWebSearchProvider(model));
90909
+ if (isWebSearchTool(tool)) toolToConvert = resolveWebSearchProviderTool(model);
90910
90910
  else if (isProviderTool(tool)) toolToConvert = tool;
90911
90911
  else {
90912
90912
  const { execute, ...toolRest } = tool;
@@ -1,7 +1,7 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
2
  const require_state_processor = require("../state-processor-DaSmhVUX.cjs");
3
- const require_tools = require("../tools-C2q0ougI.cjs");
4
- const require_agent_controller = require("../agent-controller-4dz2FE2a.cjs");
3
+ const require_tools = require("../tools-DZoVfKPl.cjs");
4
+ const require_agent_controller = require("../agent-controller-mS3CgzwJ.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-B_KsS82m.js";
2
- import { s as askUserTool, t as submitPlanTool } from "../tools-ybbz1YKg.js";
3
- import { a as Session, c as defaultDisplayState, l as defaultOMProgressState, n as parseSubagentMeta, t as AgentController } from "../agent-controller-Cw5t1dkE.js";
2
+ import { o as askUserTool, t as submitPlanTool } from "../tools-FwJyNoyg.js";
3
+ import { a as Session, c as defaultDisplayState, l as defaultOMProgressState, n as parseSubagentMeta, t as AgentController } from "../agent-controller-WGML_NKp.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-D4Q2NPsZ.cjs");
2
+ const require_mastra = require("./mastra-B6Fw2ZIW.cjs");
3
3
  exports.Mastra = require_mastra.Mastra;
package/dist/index.js CHANGED
@@ -1 +1 @@
1
- export { t as Mastra } from "./mastra-CsuV_iVH.js";
1
+ export { t as Mastra } from "./mastra-CliUSn4-.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_execution_fence = require("../execution-fence-DeR5VB54.cjs");
3
+ const require_execution_fence = require("../execution-fence-C-wa17Wr.cjs");
4
4
  const require_tool = require("../tool-Dn9WSDVn.cjs");
5
5
  const require_workspace = require("../workspace-BQD4tcQi.cjs");
6
6
  let crypto = require("crypto");
@@ -1,5 +1,5 @@
1
1
  import { t as MastraBase } from "../base-CKLWBhDo.js";
2
- import { $n as assertKnowledgeCeilingRaised, $r as KnowledgeImporterBindingConflictError, $t as KnowledgeLinkRepairUnsupportedError, Ai as knowledgeLinkRefKey, Bt as KnowledgeRunScopesError, Ci as MAX_KNOWLEDGE_PAGE_LINKS, Di as assertKnowledgeNoteTextWithinBound, Ei as MAX_KNOWLEDGE_PIN_LIST_DEPTH, Fi as parseKnowledgePageRef, Fo as getStorageSource, Ft as PINNED_READ_MEMO_KEY, Gt as moveKnowledgePage, Ht as knowledgeAgentScopes, Ii as KnowledgeInvalidCursorError, It as knowledgeDeliveredPins, Jt as updateKnowledgeNote, Kt as removeKnowledgeNote, Li as knowledgePageKeyProblem, Lt as buildKnowledgePageTools, Mi as knowledgePinDepth, Ni as knowledgePositionBetween, Oi as assertKnowledgePageDescriptionWithinBound, Pi as knowledgeScopeReadable, Po as augmentWithInit, Qn as MAX_KNOWLEDGE_SCOPE_TAGS, Qr as InMemoryKnowledgeStorage, Qt as KnowledgeLinkRefreshIncompleteError, Rt as heldScopes, Si as MAX_KNOWLEDGE_PAGE_DESCRIPTION_TOKENS, Ti as MAX_KNOWLEDGE_PAGE_LIST_LIMIT, Ut as knowledgePersonaScopes, Vt as knowledgeRunPrincipals, Wt as addKnowledgeNote, Xn as MAX_KNOWLEDGE_NODE_DESCRIPTION_LENGTH, Xt as KnowledgeSemanticIndex, Yt as upsertKnowledgePage, Zn as MAX_KNOWLEDGE_RECORD_TEXT_LENGTH, _i as KnowledgePageKeyConflictError, _n as encodeKnowledgeScopeId, ai as KnowledgeNotFoundError, an as syncKnowledgePageBodyLinks, ar as expandKnowledgeScope, bi as MAX_KNOWLEDGE_PAGE_BODY_LINKS, ci as KnowledgeTransactionDeadlineError, cn as knowledgeReadScopeFor, cr as knowledgeSemanticDocumentId, di as createKnowledgeUlid, dn as compileKnowledgeScopes, dr as parseKnowledgeNodeCursor, ei as KnowledgeImporterRunStateError, en as canRepairKnowledgeLinksInBatch, er as assertKnowledgeDescriptionWithinBound, fi as inspectKnowledgeSchema, fn as knowledgeMemoryScopes, gi as KnowledgePageHasChildrenError, gn as decodeKnowledgeScopeId, hi as KnowledgePageDepthError, hn as strongerKnowledgeRole, ii as KnowledgeConflictError, in as repairKnowledgeLinks, ir as createKnowledgeNodeCursor, ji as knowledgePagePath, ki as canonicalKnowledgeName, li as KnowledgeUnsupportedCapabilityError, ln as knowledgeRoleOn, lr as knowledgeSemanticIdempotencyKey, mi as KnowledgeMoveTooLargeError, mn as knowledgeScopeAddress, ni as KNOWLEDGE_STORAGE_CONTRACT_VERSION, nn as refreshKnowledgeLinksTo, nr as assertKnowledgeScopeWithinCeiling, oi as KnowledgeSchemaResetRequiredError, on as updateKnowledgeLinks, or as isKnowledgeScopeVisible, pi as parseKnowledgeWikilinks, pn as knowledgeRunScopes, qt as removeKnowledgePage, ri as KNOWLEDGE_STORAGE_SCHEMA_VERSION, rn as reindexKnowledgeLinks, rr as canonicalizeKnowledgeScope, si as KnowledgeStorage, sn as knowledgeAccessGrants, sr as knowledgeScopeKey, ti as KnowledgeImportersStorage, tn as knowledgeSubtree, tr as assertKnowledgeRecordTextWithinBound, ui as assertKnowledgeSchemaCompatible, un as KnowledgeDeclarationError, ur as knowledgeVisibleScopeKeys, vi as MAX_KNOWLEDGE_MOVE_PAGES, vn as buildKnowledgeInstructions, wi as MAX_KNOWLEDGE_PAGE_LINK_REF_LENGTH, xi as MAX_KNOWLEDGE_PAGE_DEPTH, yi as MAX_KNOWLEDGE_NOTE_TOKENS, zt as KnowledgeRun } from "../execution-fence-Yl_-iJxn.js";
2
+ import { $n as assertKnowledgeCeilingRaised, $r as KnowledgeImporterBindingConflictError, $t as KnowledgeLinkRepairUnsupportedError, Ai as knowledgeLinkRefKey, Bt as KnowledgeRunScopesError, Ci as MAX_KNOWLEDGE_PAGE_LINKS, Di as assertKnowledgeNoteTextWithinBound, Ei as MAX_KNOWLEDGE_PIN_LIST_DEPTH, Fi as parseKnowledgePageRef, Fo as getStorageSource, Ft as PINNED_READ_MEMO_KEY, Gt as moveKnowledgePage, Ht as knowledgeAgentScopes, Ii as KnowledgeInvalidCursorError, It as knowledgeDeliveredPins, Jt as updateKnowledgeNote, Kt as removeKnowledgeNote, Li as knowledgePageKeyProblem, Lt as buildKnowledgePageTools, Mi as knowledgePinDepth, Ni as knowledgePositionBetween, Oi as assertKnowledgePageDescriptionWithinBound, Pi as knowledgeScopeReadable, Po as augmentWithInit, Qn as MAX_KNOWLEDGE_SCOPE_TAGS, Qr as InMemoryKnowledgeStorage, Qt as KnowledgeLinkRefreshIncompleteError, Rt as heldScopes, Si as MAX_KNOWLEDGE_PAGE_DESCRIPTION_TOKENS, Ti as MAX_KNOWLEDGE_PAGE_LIST_LIMIT, Ut as knowledgePersonaScopes, Vt as knowledgeRunPrincipals, Wt as addKnowledgeNote, Xn as MAX_KNOWLEDGE_NODE_DESCRIPTION_LENGTH, Xt as KnowledgeSemanticIndex, Yt as upsertKnowledgePage, Zn as MAX_KNOWLEDGE_RECORD_TEXT_LENGTH, _i as KnowledgePageKeyConflictError, _n as encodeKnowledgeScopeId, ai as KnowledgeNotFoundError, an as syncKnowledgePageBodyLinks, ar as expandKnowledgeScope, bi as MAX_KNOWLEDGE_PAGE_BODY_LINKS, ci as KnowledgeTransactionDeadlineError, cn as knowledgeReadScopeFor, cr as knowledgeSemanticDocumentId, di as createKnowledgeUlid, dn as compileKnowledgeScopes, dr as parseKnowledgeNodeCursor, ei as KnowledgeImporterRunStateError, en as canRepairKnowledgeLinksInBatch, er as assertKnowledgeDescriptionWithinBound, fi as inspectKnowledgeSchema, fn as knowledgeMemoryScopes, gi as KnowledgePageHasChildrenError, gn as decodeKnowledgeScopeId, hi as KnowledgePageDepthError, hn as strongerKnowledgeRole, ii as KnowledgeConflictError, in as repairKnowledgeLinks, ir as createKnowledgeNodeCursor, ji as knowledgePagePath, ki as canonicalKnowledgeName, li as KnowledgeUnsupportedCapabilityError, ln as knowledgeRoleOn, lr as knowledgeSemanticIdempotencyKey, mi as KnowledgeMoveTooLargeError, mn as knowledgeScopeAddress, ni as KNOWLEDGE_STORAGE_CONTRACT_VERSION, nn as refreshKnowledgeLinksTo, nr as assertKnowledgeScopeWithinCeiling, oi as KnowledgeSchemaResetRequiredError, on as updateKnowledgeLinks, or as isKnowledgeScopeVisible, pi as parseKnowledgeWikilinks, pn as knowledgeRunScopes, qt as removeKnowledgePage, ri as KNOWLEDGE_STORAGE_SCHEMA_VERSION, rn as reindexKnowledgeLinks, rr as canonicalizeKnowledgeScope, si as KnowledgeStorage, sn as knowledgeAccessGrants, sr as knowledgeScopeKey, ti as KnowledgeImportersStorage, tn as knowledgeSubtree, tr as assertKnowledgeRecordTextWithinBound, ui as assertKnowledgeSchemaCompatible, un as KnowledgeDeclarationError, ur as knowledgeVisibleScopeKeys, vi as MAX_KNOWLEDGE_MOVE_PAGES, vn as buildKnowledgeInstructions, wi as MAX_KNOWLEDGE_PAGE_LINK_REF_LENGTH, xi as MAX_KNOWLEDGE_PAGE_DEPTH, yi as MAX_KNOWLEDGE_NOTE_TOKENS, zt as KnowledgeRun } from "../execution-fence-DvN3Fwm3.js";
3
3
  import { standardSchemaToJSONSchema, toStandardSchema } from "../schema/index.js";
4
4
  import { i as createStandardSchemaIssuesError } from "../tool-DIFduuTw.js";
5
5
  import { mt as estimateTokenCount } from "../workspace-sqcfdZRR.js";
@@ -1,7 +1,7 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
- const require_llm = require("../llm-DVQKutUM.cjs");
3
- const require_netlify = require("../netlify-KyTDrIQP.cjs");
4
- const require_provider_registry = require("../provider-registry-BsphJbPb.cjs");
2
+ const require_llm = require("../llm-dX0y0atH.cjs");
3
+ const require_netlify = require("../netlify-BMhDN9E8.cjs");
4
+ const require_provider_registry = require("../provider-registry-CcMAUHdH.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-BZQdtNe1.js";
2
- import { d as GATEWAY_AUTH_HEADER, g as getGatewayId, h as findGatewayForModel, r as ModelsDevGateway, t as NetlifyGateway, x as MastraModelGateway } from "../netlify-CoThk6uD.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-BIXG21H8.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-hWZGKDUy.js";
2
+ import { d as GATEWAY_AUTH_HEADER, g as getGatewayId, h as findGatewayForModel, r as ModelsDevGateway, t as NetlifyGateway, x as MastraModelGateway } from "../netlify-xMA06xL8.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-DsK3rXeU.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,3 +1,10 @@
1
+ export declare const OPENROUTER_WEB_SEARCH_TOOL_ID = "openrouter.web_search";
2
+ /**
3
+ * Marks a model whose requests go to the Mastra gateway's chat endpoint. Such a model reports
4
+ * `openrouter` as its provider, so the mark is how callers know its tools are gateway tools.
5
+ */
6
+ export declare function markMastraGatewayChatModel<T extends object>(model: T): T;
7
+ export declare function isMastraGatewayChatModel(model: unknown): boolean;
1
8
  type GatewayTool = {
2
9
  type: string;
3
10
  id?: string;
@@ -1,9 +1,10 @@
1
1
  const require_rolldown_runtime = require("./rolldown-runtime-BrhgMLW6.cjs");
2
- const require_netlify = require("./netlify-KyTDrIQP.cjs");
2
+ const require_netlify = require("./netlify-BMhDN9E8.cjs");
3
3
  const require_model = require("./model-jBymoqGa.cjs");
4
4
  const require_to_prompt = require("./to-prompt-CG-LyaBY.cjs");
5
+ const require_mastra_gateway_provider_tools = require("./mastra-gateway-provider-tools-WpH3Tmu4.cjs");
5
6
  const require_content = require("./content-CC0W1d5p.cjs");
6
- const require_provider_registry = require("./provider-registry-BsphJbPb.cjs");
7
+ const require_provider_registry = require("./provider-registry-CcMAUHdH.cjs");
7
8
  const require_error = require("./error-D90lJ6M7.cjs");
8
9
  const require_request_context = require("./request-context-D9RXYCy8.cjs");
9
10
  const require_dynamic_argument = require("./dynamic-argument-CUc1BBOS.cjs");
@@ -116,6 +117,7 @@ var AISDKV6LanguageModel = class {
116
117
  this.provider = this.#model.provider;
117
118
  this.modelId = this.#model.modelId;
118
119
  this.supportedUrls = this.#model.supportedUrls;
120
+ if (require_mastra_gateway_provider_tools.isMastraGatewayChatModel(config)) require_mastra_gateway_provider_tools.markMastraGatewayChatModel(this);
119
121
  const supportsStructuredOutputs = config.supportsStructuredOutputs;
120
122
  if (typeof supportsStructuredOutputs === "boolean") this.supportsStructuredOutputs = supportsStructuredOutputs;
121
123
  }
@@ -1,8 +1,9 @@
1
- import { C as createOpenAICompatible, S as createOpenAI, _ as hasAuthCredentials, a as interpolateUrlTemplate, b as MASTRA_GATEWAY_STREAM_TRANSPORT, c as parseModelRouterId, f as MASTRA_USER_AGENT, g as getGatewayId, h as findGatewayForModel, l as createOpenAI$1, o as applyOpencodeCallTimeSessionHeader, r as ModelsDevGateway, s as applyOpencodeSessionHeader, t as NetlifyGateway, u as createGoogleGenerativeAI, v as shouldEnableGateway, w as EventSourceParserStream, x as MastraModelGateway } from "./netlify-CoThk6uD.js";
1
+ import { C as createOpenAICompatible, S as createOpenAI, _ as hasAuthCredentials, a as interpolateUrlTemplate, b as MASTRA_GATEWAY_STREAM_TRANSPORT, c as parseModelRouterId, f as MASTRA_USER_AGENT, g as getGatewayId, h as findGatewayForModel, l as createOpenAI$1, o as applyOpencodeCallTimeSessionHeader, r as ModelsDevGateway, s as applyOpencodeSessionHeader, t as NetlifyGateway, u as createGoogleGenerativeAI, v as shouldEnableGateway, w as EventSourceParserStream, x as MastraModelGateway } from "./netlify-xMA06xL8.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
+ import { n as isMastraGatewayChatModel, r as markMastraGatewayChatModel } from "./mastra-gateway-provider-tools-C-AjGZis.js";
4
5
  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-BIXG21H8.js";
6
+ import { f as MastraGateway, l as modelSupportsTemperature, n as PROVIDER_REGISTRY, p as gatewayServesObservationalMemory, t as GatewayRegistry } from "./provider-registry-DsK3rXeU.js";
6
7
  import { i as MastraError } from "./error-oh2DLsP2.js";
7
8
  import { u as RequestContext } from "./request-context-COnZHt2-.js";
8
9
  import { n as resolveDynamicArgument } from "./dynamic-argument-BzPK3qPN.js";
@@ -114,6 +115,7 @@ var AISDKV6LanguageModel = class {
114
115
  this.provider = this.#model.provider;
115
116
  this.modelId = this.#model.modelId;
116
117
  this.supportedUrls = this.#model.supportedUrls;
118
+ if (isMastraGatewayChatModel(config)) markMastraGatewayChatModel(this);
117
119
  const supportsStructuredOutputs = config.supportsStructuredOutputs;
118
120
  if (typeof supportsStructuredOutputs === "boolean") this.supportsStructuredOutputs = supportsStructuredOutputs;
119
121
  }
@@ -1,6 +1,6 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
- const require_stream = require("../stream-C4XcOMuS.cjs");
3
- const require_execution_fence = require("../execution-fence-DeR5VB54.cjs");
2
+ const require_stream = require("../stream-BKEfY3-X.cjs");
3
+ const require_execution_fence = require("../execution-fence-C-wa17Wr.cjs");
4
4
  exports.MastraTimeoutError = require_stream.MastraTimeoutError;
5
5
  exports.createScorer = require_execution_fence.createScorer;
6
6
  exports.createTimeoutAbortSignal = require_stream.createTimeoutAbortSignal;
@@ -1,3 +1,3 @@
1
- import { An as isMastraTimeoutError, En as createTimeoutAbortSignal, Tn as MastraTimeoutError } from "../stream-Dgsrva80.js";
2
- import { At as runDefaultCompletionCheck, Ct as formatCompletionFeedback, Dt as generateStructuredFinalResult, Et as generateFinalResult, Mt as runValidation, Nt as loop, Ot as runChecks, St as formatCheckFeedback, Tt as formatValidationFeedback, h as createScorer, jt as runStreamCompletionScorers, kt as runCompletionScorers, wt as formatStreamCompletionFeedback } from "../execution-fence-Yl_-iJxn.js";
1
+ import { An as isMastraTimeoutError, En as createTimeoutAbortSignal, Tn as MastraTimeoutError } from "../stream-CyaGm-DI.js";
2
+ import { At as runDefaultCompletionCheck, Ct as formatCompletionFeedback, Dt as generateStructuredFinalResult, Et as generateFinalResult, Mt as runValidation, Nt as loop, Ot as runChecks, St as formatCheckFeedback, Tt as formatValidationFeedback, h as createScorer, jt as runStreamCompletionScorers, kt as runCompletionScorers, wt as formatStreamCompletionFeedback } from "../execution-fence-DvN3Fwm3.js";
3
3
  export { MastraTimeoutError, createScorer, createTimeoutAbortSignal, formatCheckFeedback, formatCompletionFeedback, formatStreamCompletionFeedback, formatValidationFeedback, generateFinalResult, generateStructuredFinalResult, isMastraTimeoutError, loop, runChecks, runCompletionScorers, runDefaultCompletionCheck, runStreamCompletionScorers, runValidation };
@@ -1,7 +1,7 @@
1
1
  import { n as __exportAll } from "./rolldown-runtime-tIEjjQTE.js";
2
2
  import { i as MastraError } from "./error-oh2DLsP2.js";
3
- import { ft as loadStepResults, un as isSupportedLanguageModel } from "./stream-Dgsrva80.js";
4
- import { Ki as assertSupportedPatterns, Ns as createStep, Ps as createWorkflow, d as validateAndSaveScore, l as flushBeforeTraceRead, m as ScorerRunError } from "./execution-fence-Yl_-iJxn.js";
3
+ import { ft as loadStepResults, un as isSupportedLanguageModel } from "./stream-CyaGm-DI.js";
4
+ import { Ki as assertSupportedPatterns, Ns as createStep, Ps as createWorkflow, d as validateAndSaveScore, l as flushBeforeTraceRead, m as ScorerRunError } from "./execution-fence-DvN3Fwm3.js";
5
5
  import { o as MASTRA_RESOURCE_ID_KEY, p as withoutLiveRequestKeys, u as RequestContext } from "./request-context-COnZHt2-.js";
6
6
  import { _ as resolveObservabilityContext } from "./observability-DPDWibyH.js";
7
7
  import { t as EntityType } from "./storage-Cc50aQAp.js";
@@ -1,7 +1,7 @@
1
1
  const require_rolldown_runtime = require("./rolldown-runtime-BrhgMLW6.cjs");
2
2
  const require_error = require("./error-D90lJ6M7.cjs");
3
- const require_stream = require("./stream-C4XcOMuS.cjs");
4
- const require_execution_fence = require("./execution-fence-DeR5VB54.cjs");
3
+ const require_stream = require("./stream-BKEfY3-X.cjs");
4
+ const require_execution_fence = require("./execution-fence-C-wa17Wr.cjs");
5
5
  const require_request_context = require("./request-context-D9RXYCy8.cjs");
6
6
  const require_observability = require("./observability-VaoaeadK.cjs");
7
7
  const require_storage = require("./storage-CfG0I2aF.cjs");
@@ -1,3 +1,3 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
- const require_mastra = require("../mastra-D4Q2NPsZ.cjs");
2
+ const require_mastra = require("../mastra-B6Fw2ZIW.cjs");
3
3
  exports.Mastra = require_mastra.Mastra;
@@ -1 +1 @@
1
- export { t as Mastra } from "../mastra-CsuV_iVH.js";
1
+ export { t as Mastra } from "../mastra-CliUSn4-.js";
@@ -1,13 +1,13 @@
1
- const require_execution_fence = require("./execution-fence-DeR5VB54.cjs");
2
- const require_background_tasks = require("./background-tasks-fjEu5kC8.cjs");
1
+ const require_execution_fence = require("./execution-fence-C-wa17Wr.cjs");
2
+ const require_background_tasks = require("./background-tasks-DEBc9BBP.cjs");
3
3
  const require_inmemory = require("./inmemory-Dc86VWGB.cjs");
4
- const require_manager = require("./manager-Cr0lJZSV.cjs");
4
+ const require_manager = require("./manager-CUoAGxcN.cjs");
5
5
  const require_error = require("./error-D90lJ6M7.cjs");
6
6
  const require_output_helpers = require("./output-helpers-By5FbLpp.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-KyTDrIQP.cjs");
10
- const require_llm = require("./llm-DVQKutUM.cjs");
9
+ const require_netlify = require("./netlify-BMhDN9E8.cjs");
10
+ const require_llm = require("./llm-dX0y0atH.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");
@@ -17,14 +17,14 @@ const require_utils = require("./utils-D-eNsgDM.cjs");
17
17
  const require_request_context = require("./request-context-D9RXYCy8.cjs");
18
18
  const require_source = require("./source-C_nWbqI0.cjs");
19
19
  const require_feature_telemetry = require("./feature-telemetry-Cw0L1tHo.cjs");
20
- const require_tool_loop_agent = require("./tool-loop-agent-Dze-IJOx.cjs");
20
+ const require_tool_loop_agent = require("./tool-loop-agent-Du3Vm65W.cjs");
21
21
  const require_payload_transform = require("./payload-transform-CWgnsO9w.cjs");
22
- const require_utils$1 = require("./utils-AfuTYtPM.cjs");
23
- const require_worker = require("./worker-J6-CpZ0n.cjs");
24
- const require_builder = require("./builder-DrBUrE-F.cjs");
25
- const require_validate = require("./validate-GzP07CVb.cjs");
26
- const require_rehydrate = require("./rehydrate-tjUWtbB-.cjs");
27
- const require_stream = require("./stream-C4XcOMuS.cjs");
22
+ const require_utils$1 = require("./utils-Ag63fN_T.cjs");
23
+ const require_worker = require("./worker-Dvt_y5ra.cjs");
24
+ const require_builder = require("./builder-DBori4UC.cjs");
25
+ const require_validate = require("./validate-bRsKfPrD.cjs");
26
+ const require_rehydrate = require("./rehydrate-DNf3nk5t.cjs");
27
+ const require_stream = require("./stream-BKEfY3-X.cjs");
28
28
  let zod_v4 = require("zod/v4");
29
29
  // src/notifications/workflow.ts
30
30
  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-Cr0lJZSV.cjs")).then((n) => n.workflow_exports);
2877
+ const { buildExperimentWorkflow } = await Promise.resolve().then(() => require("./manager-CUoAGxcN.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-ChLwyYHR.cjs"));
5078
+ const { AgentScheduleWorker } = await Promise.resolve().then(() => require("./worker-DPjo5pv_.cjs"));
5079
5079
  agentScheduleWorker = new AgentScheduleWorker();
5080
5080
  agentScheduleWorker.__registerMastra(this);
5081
5081
  this.#workers.push(agentScheduleWorker);
@@ -5760,7 +5760,7 @@ var Mastra = class Mastra {
5760
5760
  this.#workers.push(sw);
5761
5761
  }
5762
5762
  if (!this.#findAgentScheduleWorker()) {
5763
- const { AgentScheduleWorker } = await Promise.resolve().then(() => require("./worker-ChLwyYHR.cjs"));
5763
+ const { AgentScheduleWorker } = await Promise.resolve().then(() => require("./worker-DPjo5pv_.cjs"));
5764
5764
  const asw = new AgentScheduleWorker();
5765
5765
  asw.__registerMastra(this);
5766
5766
  this.#workers.push(asw);
@@ -6210,7 +6210,7 @@ var Mastra = class Mastra {
6210
6210
  #syncGatewayRegistry() {
6211
6211
  try {
6212
6212
  if (process.env.MASTRA_DEV !== "true" && process.env.MASTRA_DEV !== "1") return;
6213
- Promise.resolve().then(() => require("./provider-registry-BsphJbPb.cjs")).then((n) => n.provider_registry_exports).then(async ({ GatewayRegistry }) => {
6213
+ Promise.resolve().then(() => require("./provider-registry-CcMAUHdH.cjs")).then((n) => n.provider_registry_exports).then(async ({ GatewayRegistry }) => {
6214
6214
  const registry = GatewayRegistry.getInstance();
6215
6215
  const customGateways = Object.values(this.#gateways || {});
6216
6216
  registry.registerCustomGateways(customGateways);