@mastra/core 1.31.0-alpha.0 → 1.31.0-alpha.2

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 (144) hide show
  1. package/CHANGELOG.md +14 -0
  2. package/dist/agent/agent-legacy.d.ts +11 -0
  3. package/dist/agent/agent-legacy.d.ts.map +1 -1
  4. package/dist/agent/agent.d.ts.map +1 -1
  5. package/dist/agent/durable/index.cjs +22 -22
  6. package/dist/agent/durable/index.js +4 -4
  7. package/dist/agent/index.cjs +9 -9
  8. package/dist/agent/index.js +1 -1
  9. package/dist/agent/workflows/prepare-stream/prepare-tools-step.d.ts.map +1 -1
  10. package/dist/browser/index.cjs +2 -2
  11. package/dist/browser/index.js +1 -1
  12. package/dist/channels/index.cjs +4 -4
  13. package/dist/channels/index.js +1 -1
  14. package/dist/{chunk-T6M7LXNH.js → chunk-2ZK5IF7F.js} +3 -3
  15. package/dist/{chunk-T6M7LXNH.js.map → chunk-2ZK5IF7F.js.map} +1 -1
  16. package/dist/{chunk-FNOZT6AO.js → chunk-56YX4QXF.js} +9 -9
  17. package/dist/{chunk-FNOZT6AO.js.map → chunk-56YX4QXF.js.map} +1 -1
  18. package/dist/{chunk-JCSNUAZW.js → chunk-7K3DRXR5.js} +3 -3
  19. package/dist/{chunk-JCSNUAZW.js.map → chunk-7K3DRXR5.js.map} +1 -1
  20. package/dist/{chunk-JFJ2Z5TP.cjs → chunk-BBGULRCO.cjs} +9 -9
  21. package/dist/{chunk-JFJ2Z5TP.cjs.map → chunk-BBGULRCO.cjs.map} +1 -1
  22. package/dist/{chunk-G4LS5NU4.js → chunk-CVPDCNSV.js} +8 -8
  23. package/dist/{chunk-G4LS5NU4.js.map → chunk-CVPDCNSV.js.map} +1 -1
  24. package/dist/{chunk-I2GDFWAT.cjs → chunk-DOKVBCA6.cjs} +389 -389
  25. package/dist/{chunk-I2GDFWAT.cjs.map → chunk-DOKVBCA6.cjs.map} +1 -1
  26. package/dist/{chunk-2FJAQWKL.cjs → chunk-GM5PX2CG.cjs} +224 -224
  27. package/dist/{chunk-2FJAQWKL.cjs.map → chunk-GM5PX2CG.cjs.map} +1 -1
  28. package/dist/{chunk-DQUFXPSD.js → chunk-HQ5T3ORE.js} +6 -6
  29. package/dist/{chunk-DQUFXPSD.js.map → chunk-HQ5T3ORE.js.map} +1 -1
  30. package/dist/{chunk-6NWBVKKX.js → chunk-IXX6CCDW.js} +7 -5
  31. package/dist/chunk-IXX6CCDW.js.map +1 -0
  32. package/dist/{chunk-ATWCWU4A.cjs → chunk-JGRV2X4U.cjs} +3 -3
  33. package/dist/{chunk-ATWCWU4A.cjs.map → chunk-JGRV2X4U.cjs.map} +1 -1
  34. package/dist/{chunk-BJYOYIKM.cjs → chunk-JHS4KPNK.cjs} +5 -5
  35. package/dist/{chunk-BJYOYIKM.cjs.map → chunk-JHS4KPNK.cjs.map} +1 -1
  36. package/dist/{chunk-YOSCM4RG.cjs → chunk-N6L3UFHQ.cjs} +3 -3
  37. package/dist/{chunk-YOSCM4RG.cjs.map → chunk-N6L3UFHQ.cjs.map} +1 -1
  38. package/dist/{chunk-PXLF2RXT.cjs → chunk-NJPEAYX3.cjs} +20 -20
  39. package/dist/{chunk-PXLF2RXT.cjs.map → chunk-NJPEAYX3.cjs.map} +1 -1
  40. package/dist/{chunk-D76ZTSAI.js → chunk-NWMUCSF3.js} +4 -4
  41. package/dist/{chunk-D76ZTSAI.js.map → chunk-NWMUCSF3.js.map} +1 -1
  42. package/dist/{chunk-4IXBC75W.cjs → chunk-PMPEPPEM.cjs} +169 -34
  43. package/dist/chunk-PMPEPPEM.cjs.map +1 -0
  44. package/dist/{chunk-WKXVKWRG.js → chunk-Q6ZGFUVB.js} +3 -3
  45. package/dist/{chunk-WKXVKWRG.js.map → chunk-Q6ZGFUVB.js.map} +1 -1
  46. package/dist/{chunk-4HNDVU6H.cjs → chunk-QIFCHCII.cjs} +18 -18
  47. package/dist/{chunk-4HNDVU6H.cjs.map → chunk-QIFCHCII.cjs.map} +1 -1
  48. package/dist/{chunk-5EP5MXPD.cjs → chunk-RB5GPVWV.cjs} +62 -60
  49. package/dist/chunk-RB5GPVWV.cjs.map +1 -0
  50. package/dist/{chunk-WE5LBH4J.js → chunk-RPNNSCCV.js} +160 -25
  51. package/dist/chunk-RPNNSCCV.js.map +1 -0
  52. package/dist/{chunk-OFOW2B3L.cjs → chunk-RRYFFH4I.cjs} +7 -7
  53. package/dist/{chunk-OFOW2B3L.cjs.map → chunk-RRYFFH4I.cjs.map} +1 -1
  54. package/dist/{chunk-AZXBNANX.js → chunk-TBGATHGK.js} +3 -3
  55. package/dist/{chunk-AZXBNANX.js.map → chunk-TBGATHGK.js.map} +1 -1
  56. package/dist/{chunk-NXPFGWJP.cjs → chunk-VKILDR4Y.cjs} +6 -6
  57. package/dist/{chunk-NXPFGWJP.cjs.map → chunk-VKILDR4Y.cjs.map} +1 -1
  58. package/dist/{chunk-D7YBG3X3.js → chunk-VRSJM3W2.js} +3 -3
  59. package/dist/{chunk-D7YBG3X3.js.map → chunk-VRSJM3W2.js.map} +1 -1
  60. package/dist/{chunk-LYX254UT.js → chunk-W6637N6M.js} +4 -4
  61. package/dist/{chunk-LYX254UT.js.map → chunk-W6637N6M.js.map} +1 -1
  62. package/dist/datasets/index.cjs +17 -17
  63. package/dist/datasets/index.js +2 -2
  64. package/dist/docs/SKILL.md +2 -1
  65. package/dist/docs/assets/SOURCE_MAP.json +242 -242
  66. package/dist/docs/references/reference-processors-skill-search-processor.md +19 -0
  67. package/dist/docs/references/reference-tools-perplexity.md +155 -0
  68. package/dist/docs/references/reference.md +1 -0
  69. package/dist/evals/index.cjs +6 -6
  70. package/dist/evals/index.js +2 -2
  71. package/dist/evals/scoreTraces/index.cjs +3 -3
  72. package/dist/evals/scoreTraces/index.js +1 -1
  73. package/dist/harness/index.cjs +7 -7
  74. package/dist/harness/index.js +5 -5
  75. package/dist/index.cjs +2 -2
  76. package/dist/index.js +1 -1
  77. package/dist/llm/index.cjs +20 -20
  78. package/dist/llm/index.js +5 -5
  79. package/dist/loop/index.cjs +14 -14
  80. package/dist/loop/index.js +1 -1
  81. package/dist/mastra/index.cjs +2 -2
  82. package/dist/mastra/index.js +1 -1
  83. package/dist/mastra-GU4WOJJ6.js +3 -0
  84. package/dist/{mastra-M3N2HPTL.js.map → mastra-GU4WOJJ6.js.map} +1 -1
  85. package/dist/mastra-HZ6MUPHV.cjs +12 -0
  86. package/dist/{mastra-7KQSO6TX.cjs.map → mastra-HZ6MUPHV.cjs.map} +1 -1
  87. package/dist/memory/index.cjs +19 -19
  88. package/dist/memory/index.js +1 -1
  89. package/dist/models-dev-2U52GDNO.cjs +12 -0
  90. package/dist/{models-dev-FYM3UMMI.cjs.map → models-dev-2U52GDNO.cjs.map} +1 -1
  91. package/dist/models-dev-GBYVKYLD.js +3 -0
  92. package/dist/{models-dev-UUMUDSM2.js.map → models-dev-GBYVKYLD.js.map} +1 -1
  93. package/dist/netlify-26S2YWQC.js +3 -0
  94. package/dist/{netlify-5ZBXHVLT.js.map → netlify-26S2YWQC.js.map} +1 -1
  95. package/dist/netlify-JNHXGWXV.cjs +12 -0
  96. package/dist/{netlify-CWSVLBIK.cjs.map → netlify-JNHXGWXV.cjs.map} +1 -1
  97. package/dist/processor-provider/index.cjs +10 -10
  98. package/dist/processor-provider/index.js +1 -1
  99. package/dist/processors/index.cjs +49 -49
  100. package/dist/processors/index.d.ts +5 -0
  101. package/dist/processors/index.d.ts.map +1 -1
  102. package/dist/processors/index.js +1 -1
  103. package/dist/processors/processors/batch-parts.d.ts.map +1 -1
  104. package/dist/processors/processors/skill-search.d.ts +1 -0
  105. package/dist/processors/processors/skill-search.d.ts.map +1 -1
  106. package/dist/provider-registry-2V4UUBCN.cjs +44 -0
  107. package/dist/{provider-registry-2ARM242M.cjs.map → provider-registry-2V4UUBCN.cjs.map} +1 -1
  108. package/dist/provider-registry-ZOKLGIOR.js +3 -0
  109. package/dist/{provider-registry-P2LJ6OUB.js.map → provider-registry-ZOKLGIOR.js.map} +1 -1
  110. package/dist/relevance/index.cjs +3 -3
  111. package/dist/relevance/index.js +1 -1
  112. package/dist/runner-DCM7XKBG.cjs +16 -0
  113. package/dist/{runner-5LZJOXWB.cjs.map → runner-DCM7XKBG.cjs.map} +1 -1
  114. package/dist/runner-LXMA6PBE.js +3 -0
  115. package/dist/{runner-FPZRZ3D7.js.map → runner-LXMA6PBE.js.map} +1 -1
  116. package/dist/storage/index.cjs +59 -59
  117. package/dist/storage/index.js +2 -2
  118. package/dist/stream/index.cjs +11 -11
  119. package/dist/stream/index.js +1 -1
  120. package/dist/tool-loop-agent/index.cjs +4 -4
  121. package/dist/tool-loop-agent/index.js +1 -1
  122. package/dist/vector/index.cjs +7 -7
  123. package/dist/vector/index.js +1 -1
  124. package/dist/workflows/evented/index.cjs +10 -10
  125. package/dist/workflows/evented/index.js +1 -1
  126. package/dist/workflows/evented/workflow.d.ts.map +1 -1
  127. package/dist/workflows/index.cjs +24 -24
  128. package/dist/workflows/index.js +1 -1
  129. package/dist/workflows/workflow.d.ts.map +1 -1
  130. package/package.json +5 -5
  131. package/dist/chunk-4IXBC75W.cjs.map +0 -1
  132. package/dist/chunk-5EP5MXPD.cjs.map +0 -1
  133. package/dist/chunk-6NWBVKKX.js.map +0 -1
  134. package/dist/chunk-WE5LBH4J.js.map +0 -1
  135. package/dist/mastra-7KQSO6TX.cjs +0 -12
  136. package/dist/mastra-M3N2HPTL.js +0 -3
  137. package/dist/models-dev-FYM3UMMI.cjs +0 -12
  138. package/dist/models-dev-UUMUDSM2.js +0 -3
  139. package/dist/netlify-5ZBXHVLT.js +0 -3
  140. package/dist/netlify-CWSVLBIK.cjs +0 -12
  141. package/dist/provider-registry-2ARM242M.cjs +0 -44
  142. package/dist/provider-registry-P2LJ6OUB.js +0 -3
  143. package/dist/runner-5LZJOXWB.cjs +0 -16
  144. package/dist/runner-FPZRZ3D7.js +0 -3
@@ -2,6 +2,15 @@
2
2
 
3
3
  The `SkillSearchProcessor` is an **input processor** that enables on-demand skill discovery and loading. Instead of injecting all skill metadata into the system prompt upfront (like `SkillsProcessor`), it gives the agent two meta-tools (`search_skills` and `load_skill`) that let it find and load skills on demand. This reduces context token usage when workspaces have many skills.
4
4
 
5
+ By default, when you attach only `SkillSearchProcessor` to an agent with a skill-enabled `Workspace`, the agent treats skills as on-demand:
6
+
7
+ - The default eager `SkillsProcessor` is not auto-added.
8
+ - `search_skills` and `load_skill` are exposed for discovery and instruction loading.
9
+ - Overlapping `skill` and `skill_search` tools are hidden.
10
+ - `skill_read` remains available so the agent can read supporting skill files such as references, scripts, and assets.
11
+
12
+ If you explicitly configure `SkillsProcessor` alongside `SkillSearchProcessor`, the agent preserves the eager `skill` and `skill_search` tools as an opt-in path.
13
+
5
14
  ## Usage example
6
15
 
7
16
  ```typescript
@@ -36,6 +45,8 @@ const skillSearch = new SkillSearchProcessor({
36
45
 
37
46
  **name** (`string`): Processor display name set to 'Skill Search Processor'
38
47
 
48
+ **providesSkillDiscovery** (`'on-demand'`): Signals to the agent that this processor owns skill discovery and instruction loading.
49
+
39
50
  **processInputStep** (`(args: ProcessInputStepArgs) => Promise<ProcessInputStepResult>`): Processes each step to inject search/load meta-tools and any previously loaded skill instructions as system messages.
40
51
 
41
52
  ## Extended usage example
@@ -77,6 +88,14 @@ The agent workflow is:
77
88
  4. The skill's instructions appear as system messages on the next turn
78
89
  5. Agent follows the loaded skill's instructions
79
90
 
91
+ ## Workspace file tools
92
+
93
+ `SkillSearchProcessor` loads skill instructions into the conversation. It does not block workspace file tools from reading files.
94
+
95
+ Use `skill_read` for supporting files that belong to a loaded skill, such as files under `references/`, `scripts/`, or `assets/`.
96
+
97
+ Reserve workspace file tools such as `mastra_workspace_read_file` for explicit file inspection or editing workflows. During normal task execution, the agent does not need to read the same `SKILL.md` file after `load_skill` succeeds.
98
+
80
99
  ## Compared to SkillsProcessor
81
100
 
82
101
  | | SkillsProcessor | SkillSearchProcessor |
@@ -0,0 +1,155 @@
1
+ # Perplexity tools
2
+
3
+ Added in: `@mastra/perplexity@0.1.0-alpha.0`
4
+
5
+ The `@mastra/perplexity` package wraps the [Perplexity Search API](https://docs.perplexity.ai/docs/search/quickstart) as a Mastra-compatible tool. It exposes a factory function that returns a tool created with [`createTool()`](https://mastra.ai/reference/tools/create-tool) and full Zod input/output schemas.
6
+
7
+ For chat completions or agentic workflows powered by Perplexity, use Mastra's built-in [Perplexity model provider](https://mastra.ai/models/providers/perplexity) or [Perplexity Agent provider](https://mastra.ai/models/providers/perplexity-agent). Those are separate from this Search tool.
8
+
9
+ ## Installation
10
+
11
+ Install the package alongside Zod:
12
+
13
+ **npm**:
14
+
15
+ ```sh
16
+ npm install @mastra/perplexity zod
17
+ ```
18
+
19
+ **pnpm**:
20
+
21
+ ```sh
22
+ pnpm add @mastra/perplexity zod
23
+ ```
24
+
25
+ **Yarn**:
26
+
27
+ ```sh
28
+ yarn add @mastra/perplexity zod
29
+ ```
30
+
31
+ **Bun**:
32
+
33
+ ```sh
34
+ bun add @mastra/perplexity zod
35
+ ```
36
+
37
+ ## Usage example
38
+
39
+ The following example creates the search tool with the default configuration. By default, the tool reads `PERPLEXITY_API_KEY` (with `PPLX_API_KEY` as a fallback) from the environment. Pass `{ apiKey }` explicitly to override.
40
+
41
+ ```typescript
42
+ import { createPerplexitySearchTool } from '@mastra/perplexity'
43
+
44
+ const searchTool = createPerplexitySearchTool()
45
+ ```
46
+
47
+ To pass an API key explicitly:
48
+
49
+ ```typescript
50
+ import { createPerplexitySearchTool } from '@mastra/perplexity'
51
+
52
+ const searchTool = createPerplexitySearchTool({ apiKey: 'pplx-...' })
53
+ ```
54
+
55
+ ## Configuration
56
+
57
+ All factory functions accept a `PerplexityClientOptions` object:
58
+
59
+ **apiKey** (`string`): Perplexity API key. Falls back to the \`PERPLEXITY\_API\_KEY\` then \`PPLX\_API\_KEY\` environment variables.
60
+
61
+ **baseUrl** (`string`): Override the API base URL. (Default: `'https://api.perplexity.ai'`)
62
+
63
+ **fetch** (`typeof fetch`): Custom \`fetch\` implementation. Useful for tests, retries, or instrumentation.
64
+
65
+ ## Methods
66
+
67
+ ### Factory functions
68
+
69
+ #### `createPerplexityTools(config?)`
70
+
71
+ Returns an object containing all Perplexity tools that share the supplied configuration.
72
+
73
+ ```typescript
74
+ import { createPerplexityTools } from '@mastra/perplexity'
75
+
76
+ const tools = createPerplexityTools({ apiKey: 'pplx-...' })
77
+ // tools.perplexitySearch
78
+ ```
79
+
80
+ Returns: `{ perplexitySearch }`
81
+
82
+ #### `createPerplexitySearchTool(config?)`
83
+
84
+ Creates a tool that searches the web using the Perplexity Search API. Returns ranked results with titles, URLs, snippets, and optional publication dates.
85
+
86
+ The tool is registered with the ID `perplexity-search`.
87
+
88
+ ```typescript
89
+ import { createPerplexitySearchTool } from '@mastra/perplexity'
90
+
91
+ const searchTool = createPerplexitySearchTool()
92
+ ```
93
+
94
+ ##### Input
95
+
96
+ **query** (`string`): The search query.
97
+
98
+ **maxResults** (`number`): Maximum number of results to return (1-20).
99
+
100
+ **searchDomainFilter** (`string[]`): Restrict (or exclude) results by domain. Prefix a domain with \`-\` to exclude it (for example, \`-pinterest.com\`). Do not mix allow- and deny-list entries in the same call.
101
+
102
+ **searchRecencyFilter** (`'hour' | 'day' | 'week' | 'month' | 'year'`): Only return results from within the given recency window.
103
+
104
+ **searchAfterDateFilter** (`string`): Only return results published on or after this date. Format: m/d/yyyy.
105
+
106
+ **searchBeforeDateFilter** (`string`): Only return results published on or before this date. Format: m/d/yyyy.
107
+
108
+ ##### Output
109
+
110
+ **query** (`string`): The original search query.
111
+
112
+ **results** (`SearchResult[]`): Array of search results.
113
+
114
+ **results.title** (`string`): Result title.
115
+
116
+ **results.url** (`string`): Result URL.
117
+
118
+ **results.snippet** (`string`): Content snippet.
119
+
120
+ **results.date** (`string`): Publication date when available.
121
+
122
+ ## Agent example
123
+
124
+ The following example registers the search tool on an agent so it can fetch fresh web results before answering.
125
+
126
+ ```typescript
127
+ import { Agent } from '@mastra/core/agent'
128
+ import { createPerplexitySearchTool } from '@mastra/perplexity'
129
+
130
+ const agent = new Agent({
131
+ id: 'research-agent',
132
+ name: 'Research Agent',
133
+ model: 'anthropic/claude-sonnet-4-6',
134
+ instructions:
135
+ 'You are a research assistant. Use the perplexity-search tool to find up-to-date information from the web before answering.',
136
+ tools: {
137
+ search: createPerplexitySearchTool(),
138
+ },
139
+ })
140
+ ```
141
+
142
+ ## Environment variables
143
+
144
+ | Variable | Description |
145
+ | -------------------- | ----------------------------------------------------------------------------------------------- |
146
+ | `PERPLEXITY_API_KEY` | Your Perplexity API key. Used as the default when `apiKey` is not passed to a factory function. |
147
+ | `PPLX_API_KEY` | Fallback used when `PERPLEXITY_API_KEY` is unset. |
148
+
149
+ ## Related
150
+
151
+ - [`createTool()`](https://mastra.ai/reference/tools/create-tool)
152
+ - [Perplexity Search quickstart](https://docs.perplexity.ai/docs/search/quickstart)
153
+ - [Perplexity Agent quickstart](https://docs.perplexity.ai/docs/agent/quickstart)
154
+ - [Perplexity model provider](https://mastra.ai/models/providers/perplexity)
155
+ - [Perplexity Agent provider](https://mastra.ai/models/providers/perplexity-agent)
@@ -224,6 +224,7 @@ The Reference section provides documentation of Mastra's API, including paramete
224
224
  - [createVectorQueryTool()](https://mastra.ai/reference/tools/vector-query-tool)
225
225
  - [MCPClient](https://mastra.ai/reference/tools/mcp-client)
226
226
  - [MCPServer](https://mastra.ai/reference/tools/mcp-server)
227
+ - [Perplexity Tools](https://mastra.ai/reference/tools/perplexity)
227
228
  - [Tavily Tools](https://mastra.ai/reference/tools/tavily)
228
229
  - [Amazon S3 Vector Store](https://mastra.ai/reference/vectors/s3vectors)
229
230
  - [Astra Vector Store](https://mastra.ai/reference/vectors/astra)
@@ -1,26 +1,26 @@
1
1
  'use strict';
2
2
 
3
- var chunkBJYOYIKM_cjs = require('../chunk-BJYOYIKM.cjs');
4
- var chunk4IXBC75W_cjs = require('../chunk-4IXBC75W.cjs');
3
+ var chunkJHS4KPNK_cjs = require('../chunk-JHS4KPNK.cjs');
4
+ var chunkPMPEPPEM_cjs = require('../chunk-PMPEPPEM.cjs');
5
5
  var chunkEEC3EO3T_cjs = require('../chunk-EEC3EO3T.cjs');
6
6
 
7
7
 
8
8
 
9
9
  Object.defineProperty(exports, "runEvals", {
10
10
  enumerable: true,
11
- get: function () { return chunkBJYOYIKM_cjs.runEvals; }
11
+ get: function () { return chunkJHS4KPNK_cjs.runEvals; }
12
12
  });
13
13
  Object.defineProperty(exports, "MastraScorer", {
14
14
  enumerable: true,
15
- get: function () { return chunk4IXBC75W_cjs.MastraScorer; }
15
+ get: function () { return chunkPMPEPPEM_cjs.MastraScorer; }
16
16
  });
17
17
  Object.defineProperty(exports, "createScorer", {
18
18
  enumerable: true,
19
- get: function () { return chunk4IXBC75W_cjs.createScorer; }
19
+ get: function () { return chunkPMPEPPEM_cjs.createScorer; }
20
20
  });
21
21
  Object.defineProperty(exports, "filterRun", {
22
22
  enumerable: true,
23
- get: function () { return chunk4IXBC75W_cjs.filterRun; }
23
+ get: function () { return chunkPMPEPPEM_cjs.filterRun; }
24
24
  });
25
25
  Object.defineProperty(exports, "extractTrajectory", {
26
26
  enumerable: true,
@@ -1,5 +1,5 @@
1
- export { runEvals } from '../chunk-AZXBNANX.js';
2
- export { MastraScorer, createScorer, filterRun } from '../chunk-WE5LBH4J.js';
1
+ export { runEvals } from '../chunk-TBGATHGK.js';
2
+ export { MastraScorer, createScorer, filterRun } from '../chunk-RPNNSCCV.js';
3
3
  export { extractTrajectory, extractTrajectoryFromTrace, extractWorkflowTrajectory, listScoresResponseSchema, saveScorePayloadSchema, scoreResultSchema, scoreRowDataSchema, scoringEntityTypeSchema, scoringExtractStepResultSchema, scoringHookInputSchema, scoringInputSchema, scoringInputWithExtractStepResultAndAnalyzeStepResultSchema, scoringInputWithExtractStepResultAndScoreAndReasonSchema, scoringInputWithExtractStepResultSchema, scoringPromptsSchema, scoringSourceSchema, scoringValueSchema } from '../chunk-I6R27AUG.js';
4
4
  //# sourceMappingURL=index.js.map
5
5
  //# sourceMappingURL=index.js.map
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var chunk5EP5MXPD_cjs = require('../../chunk-5EP5MXPD.cjs');
3
+ var chunkRB5GPVWV_cjs = require('../../chunk-RB5GPVWV.cjs');
4
4
  var chunkEEC3EO3T_cjs = require('../../chunk-EEC3EO3T.cjs');
5
5
  var chunkYGD6CZV4_cjs = require('../../chunk-YGD6CZV4.cjs');
6
6
  var chunk4U7ZLI36_cjs = require('../../chunk-4U7ZLI36.cjs');
@@ -234,7 +234,7 @@ function transformTraceToScorerInputAndOutput(trace) {
234
234
  }
235
235
 
236
236
  // src/evals/scoreTraces/scoreTracesWorkflow.ts
237
- var getTraceStep = chunk5EP5MXPD_cjs.createStep({
237
+ var getTraceStep = chunkRB5GPVWV_cjs.createStep({
238
238
  id: "__process-trace-scoring",
239
239
  inputSchema: v4.z.object({
240
240
  targets: v4.z.array(
@@ -429,7 +429,7 @@ async function attachScoreToSpan({
429
429
  } catch {
430
430
  }
431
431
  }
432
- var scoreTracesWorkflow = chunk5EP5MXPD_cjs.createWorkflow({
432
+ var scoreTracesWorkflow = chunkRB5GPVWV_cjs.createWorkflow({
433
433
  id: "__batch-scoring-traces",
434
434
  inputSchema: v4.z.object({
435
435
  targets: v4.z.array(
@@ -1,4 +1,4 @@
1
- import { createStep, createWorkflow } from '../../chunk-6NWBVKKX.js';
1
+ import { createStep, createWorkflow } from '../../chunk-IXX6CCDW.js';
2
2
  import { saveScorePayloadSchema } from '../../chunk-I6R27AUG.js';
3
3
  import { getEntityTypeForSpan } from '../../chunk-G2SVLNSC.js';
4
4
  import { MastraError } from '../../chunk-FJEVLHJT.js';
@@ -1,7 +1,7 @@
1
1
  'use strict';
2
2
 
3
- var chunk4HNDVU6H_cjs = require('../chunk-4HNDVU6H.cjs');
4
- var chunk4IXBC75W_cjs = require('../chunk-4IXBC75W.cjs');
3
+ var chunkQIFCHCII_cjs = require('../chunk-QIFCHCII.cjs');
4
+ var chunkPMPEPPEM_cjs = require('../chunk-PMPEPPEM.cjs');
5
5
  var chunkYQR772OH_cjs = require('../chunk-YQR772OH.cjs');
6
6
  var chunkYNE3ZCU5_cjs = require('../chunk-YNE3ZCU5.cjs');
7
7
  var chunkM4KUR53T_cjs = require('../chunk-M4KUR53T.cjs');
@@ -610,7 +610,7 @@ ${FORKED_SUBAGENT_NESTING_NOTICE}`;
610
610
  isError: true
611
611
  };
612
612
  }
613
- subagentToRun = new chunk4IXBC75W_cjs.Agent({
613
+ subagentToRun = new chunkPMPEPPEM_cjs.Agent({
614
614
  id: `subagent-${definition.id}`,
615
615
  name: `${definition.name} Subagent`,
616
616
  instructions: definition.instructions,
@@ -890,7 +890,7 @@ var Harness = class {
890
890
  */
891
891
  async init() {
892
892
  if (this.config.storage) {
893
- this.#internalMastra = new chunk4HNDVU6H_cjs.Mastra({
893
+ this.#internalMastra = new chunkQIFCHCII_cjs.Mastra({
894
894
  logger: false,
895
895
  storage: this.config.storage,
896
896
  ...this.config.observability ? { observability: this.config.observability } : {}
@@ -1150,7 +1150,7 @@ var Harness = class {
1150
1150
  }
1151
1151
  }
1152
1152
  try {
1153
- const { PROVIDER_REGISTRY } = await import('../provider-registry-2ARM242M.cjs');
1153
+ const { PROVIDER_REGISTRY } = await import('../provider-registry-2V4UUBCN.cjs');
1154
1154
  const registry = PROVIDER_REGISTRY;
1155
1155
  const providerConfig = registry[provider];
1156
1156
  const envVars = providerConfig?.apiKeyEnvVar;
@@ -1170,7 +1170,7 @@ var Harness = class {
1170
1170
  */
1171
1171
  async listAvailableModels() {
1172
1172
  try {
1173
- const { PROVIDER_REGISTRY } = await import('../provider-registry-2ARM242M.cjs');
1173
+ const { PROVIDER_REGISTRY } = await import('../provider-registry-2V4UUBCN.cjs');
1174
1174
  if (!PROVIDER_REGISTRY) return [];
1175
1175
  const registry = PROVIDER_REGISTRY;
1176
1176
  const providers = Object.keys(registry);
@@ -1229,7 +1229,7 @@ var Harness = class {
1229
1229
  }
1230
1230
  async getProviderApiKeyEnvVar(provider) {
1231
1231
  try {
1232
- const { PROVIDER_REGISTRY } = await import('../provider-registry-2ARM242M.cjs');
1232
+ const { PROVIDER_REGISTRY } = await import('../provider-registry-2V4UUBCN.cjs');
1233
1233
  const registry = PROVIDER_REGISTRY;
1234
1234
  const envVars = registry[provider]?.apiKeyEnvVar;
1235
1235
  return Array.isArray(envVars) ? envVars[0] : envVars;
@@ -1,5 +1,5 @@
1
- import { Mastra } from '../chunk-FNOZT6AO.js';
2
- import { Agent } from '../chunk-WE5LBH4J.js';
1
+ import { Mastra } from '../chunk-56YX4QXF.js';
2
+ import { Agent } from '../chunk-RPNNSCCV.js';
3
3
  import { Workspace, createWorkspaceTools } from '../chunk-KGL33Q5K.js';
4
4
  import { safeStringify } from '../chunk-ARNDQ2SQ.js';
5
5
  import { createTool } from '../chunk-PXOIM2JE.js';
@@ -1148,7 +1148,7 @@ var Harness = class {
1148
1148
  }
1149
1149
  }
1150
1150
  try {
1151
- const { PROVIDER_REGISTRY } = await import('../provider-registry-P2LJ6OUB.js');
1151
+ const { PROVIDER_REGISTRY } = await import('../provider-registry-ZOKLGIOR.js');
1152
1152
  const registry = PROVIDER_REGISTRY;
1153
1153
  const providerConfig = registry[provider];
1154
1154
  const envVars = providerConfig?.apiKeyEnvVar;
@@ -1168,7 +1168,7 @@ var Harness = class {
1168
1168
  */
1169
1169
  async listAvailableModels() {
1170
1170
  try {
1171
- const { PROVIDER_REGISTRY } = await import('../provider-registry-P2LJ6OUB.js');
1171
+ const { PROVIDER_REGISTRY } = await import('../provider-registry-ZOKLGIOR.js');
1172
1172
  if (!PROVIDER_REGISTRY) return [];
1173
1173
  const registry = PROVIDER_REGISTRY;
1174
1174
  const providers = Object.keys(registry);
@@ -1227,7 +1227,7 @@ var Harness = class {
1227
1227
  }
1228
1228
  async getProviderApiKeyEnvVar(provider) {
1229
1229
  try {
1230
- const { PROVIDER_REGISTRY } = await import('../provider-registry-P2LJ6OUB.js');
1230
+ const { PROVIDER_REGISTRY } = await import('../provider-registry-ZOKLGIOR.js');
1231
1231
  const registry = PROVIDER_REGISTRY;
1232
1232
  const envVars = registry[provider]?.apiKeyEnvVar;
1233
1233
  return Array.isArray(envVars) ? envVars[0] : envVars;
package/dist/index.cjs CHANGED
@@ -1,12 +1,12 @@
1
1
  'use strict';
2
2
 
3
- var chunk4HNDVU6H_cjs = require('./chunk-4HNDVU6H.cjs');
3
+ var chunkQIFCHCII_cjs = require('./chunk-QIFCHCII.cjs');
4
4
 
5
5
 
6
6
 
7
7
  Object.defineProperty(exports, "Mastra", {
8
8
  enumerable: true,
9
- get: function () { return chunk4HNDVU6H_cjs.Mastra; }
9
+ get: function () { return chunkQIFCHCII_cjs.Mastra; }
10
10
  });
11
11
  //# sourceMappingURL=index.cjs.map
12
12
  //# sourceMappingURL=index.cjs.map
package/dist/index.js CHANGED
@@ -1,3 +1,3 @@
1
- export { Mastra } from './chunk-FNOZT6AO.js';
1
+ export { Mastra } from './chunk-56YX4QXF.js';
2
2
  //# sourceMappingURL=index.js.map
3
3
  //# sourceMappingURL=index.js.map
@@ -1,72 +1,72 @@
1
1
  'use strict';
2
2
 
3
- var chunkI2GDFWAT_cjs = require('../chunk-I2GDFWAT.cjs');
4
- var chunkPXLF2RXT_cjs = require('../chunk-PXLF2RXT.cjs');
5
- var chunk2FJAQWKL_cjs = require('../chunk-2FJAQWKL.cjs');
6
- var chunkJFJ2Z5TP_cjs = require('../chunk-JFJ2Z5TP.cjs');
7
- var chunkYOSCM4RG_cjs = require('../chunk-YOSCM4RG.cjs');
3
+ var chunkDOKVBCA6_cjs = require('../chunk-DOKVBCA6.cjs');
4
+ var chunkNJPEAYX3_cjs = require('../chunk-NJPEAYX3.cjs');
5
+ var chunkGM5PX2CG_cjs = require('../chunk-GM5PX2CG.cjs');
6
+ var chunkBBGULRCO_cjs = require('../chunk-BBGULRCO.cjs');
7
+ var chunkN6L3UFHQ_cjs = require('../chunk-N6L3UFHQ.cjs');
8
8
 
9
9
 
10
10
 
11
11
  Object.defineProperty(exports, "AzureOpenAIGateway", {
12
12
  enumerable: true,
13
- get: function () { return chunkI2GDFWAT_cjs.AzureOpenAIGateway; }
13
+ get: function () { return chunkDOKVBCA6_cjs.AzureOpenAIGateway; }
14
14
  });
15
15
  Object.defineProperty(exports, "EMBEDDING_MODELS", {
16
16
  enumerable: true,
17
- get: function () { return chunkI2GDFWAT_cjs.EMBEDDING_MODELS; }
17
+ get: function () { return chunkDOKVBCA6_cjs.EMBEDDING_MODELS; }
18
18
  });
19
19
  Object.defineProperty(exports, "ModelRouterEmbeddingModel", {
20
20
  enumerable: true,
21
- get: function () { return chunkI2GDFWAT_cjs.ModelRouterEmbeddingModel; }
21
+ get: function () { return chunkDOKVBCA6_cjs.ModelRouterEmbeddingModel; }
22
22
  });
23
23
  Object.defineProperty(exports, "ModelRouterLanguageModel", {
24
24
  enumerable: true,
25
- get: function () { return chunkI2GDFWAT_cjs.ModelRouterLanguageModel; }
25
+ get: function () { return chunkDOKVBCA6_cjs.ModelRouterLanguageModel; }
26
26
  });
27
27
  Object.defineProperty(exports, "defaultGateways", {
28
28
  enumerable: true,
29
- get: function () { return chunkI2GDFWAT_cjs.defaultGateways; }
29
+ get: function () { return chunkDOKVBCA6_cjs.defaultGateways; }
30
30
  });
31
31
  Object.defineProperty(exports, "resolveModelConfig", {
32
32
  enumerable: true,
33
- get: function () { return chunkI2GDFWAT_cjs.resolveModelConfig; }
33
+ get: function () { return chunkDOKVBCA6_cjs.resolveModelConfig; }
34
34
  });
35
35
  Object.defineProperty(exports, "GatewayRegistry", {
36
36
  enumerable: true,
37
- get: function () { return chunkPXLF2RXT_cjs.GatewayRegistry; }
37
+ get: function () { return chunkNJPEAYX3_cjs.GatewayRegistry; }
38
38
  });
39
39
  Object.defineProperty(exports, "MastraGateway", {
40
40
  enumerable: true,
41
- get: function () { return chunkPXLF2RXT_cjs.MastraGateway; }
41
+ get: function () { return chunkNJPEAYX3_cjs.MastraGateway; }
42
42
  });
43
43
  Object.defineProperty(exports, "PROVIDER_REGISTRY", {
44
44
  enumerable: true,
45
- get: function () { return chunkPXLF2RXT_cjs.PROVIDER_REGISTRY; }
45
+ get: function () { return chunkNJPEAYX3_cjs.PROVIDER_REGISTRY; }
46
46
  });
47
47
  Object.defineProperty(exports, "getProviderConfig", {
48
48
  enumerable: true,
49
- get: function () { return chunkPXLF2RXT_cjs.getProviderConfig; }
49
+ get: function () { return chunkNJPEAYX3_cjs.getProviderConfig; }
50
50
  });
51
51
  Object.defineProperty(exports, "parseModelString", {
52
52
  enumerable: true,
53
- get: function () { return chunkPXLF2RXT_cjs.parseModelString; }
53
+ get: function () { return chunkNJPEAYX3_cjs.parseModelString; }
54
54
  });
55
55
  Object.defineProperty(exports, "ModelsDevGateway", {
56
56
  enumerable: true,
57
- get: function () { return chunk2FJAQWKL_cjs.ModelsDevGateway; }
57
+ get: function () { return chunkGM5PX2CG_cjs.ModelsDevGateway; }
58
58
  });
59
59
  Object.defineProperty(exports, "NetlifyGateway", {
60
60
  enumerable: true,
61
- get: function () { return chunkJFJ2Z5TP_cjs.NetlifyGateway; }
61
+ get: function () { return chunkBBGULRCO_cjs.NetlifyGateway; }
62
62
  });
63
63
  Object.defineProperty(exports, "GATEWAY_AUTH_HEADER", {
64
64
  enumerable: true,
65
- get: function () { return chunkYOSCM4RG_cjs.GATEWAY_AUTH_HEADER; }
65
+ get: function () { return chunkN6L3UFHQ_cjs.GATEWAY_AUTH_HEADER; }
66
66
  });
67
67
  Object.defineProperty(exports, "MastraModelGateway", {
68
68
  enumerable: true,
69
- get: function () { return chunkYOSCM4RG_cjs.MastraModelGateway; }
69
+ get: function () { return chunkN6L3UFHQ_cjs.MastraModelGateway; }
70
70
  });
71
71
  //# sourceMappingURL=index.cjs.map
72
72
  //# sourceMappingURL=index.cjs.map
package/dist/llm/index.js CHANGED
@@ -1,7 +1,7 @@
1
- export { AzureOpenAIGateway, EMBEDDING_MODELS, ModelRouterEmbeddingModel, ModelRouterLanguageModel, defaultGateways, resolveModelConfig } from '../chunk-DQUFXPSD.js';
2
- export { GatewayRegistry, MastraGateway, PROVIDER_REGISTRY, getProviderConfig, parseModelString } from '../chunk-G4LS5NU4.js';
3
- export { ModelsDevGateway } from '../chunk-T6M7LXNH.js';
4
- export { NetlifyGateway } from '../chunk-WKXVKWRG.js';
5
- export { GATEWAY_AUTH_HEADER, MastraModelGateway } from '../chunk-D7YBG3X3.js';
1
+ export { AzureOpenAIGateway, EMBEDDING_MODELS, ModelRouterEmbeddingModel, ModelRouterLanguageModel, defaultGateways, resolveModelConfig } from '../chunk-HQ5T3ORE.js';
2
+ export { GatewayRegistry, MastraGateway, PROVIDER_REGISTRY, getProviderConfig, parseModelString } from '../chunk-CVPDCNSV.js';
3
+ export { ModelsDevGateway } from '../chunk-2ZK5IF7F.js';
4
+ export { NetlifyGateway } from '../chunk-Q6ZGFUVB.js';
5
+ export { GATEWAY_AUTH_HEADER, MastraModelGateway } from '../chunk-VRSJM3W2.js';
6
6
  //# sourceMappingURL=index.js.map
7
7
  //# sourceMappingURL=index.js.map
@@ -1,60 +1,60 @@
1
1
  'use strict';
2
2
 
3
- var chunk4IXBC75W_cjs = require('../chunk-4IXBC75W.cjs');
3
+ var chunkPMPEPPEM_cjs = require('../chunk-PMPEPPEM.cjs');
4
4
 
5
5
 
6
6
 
7
7
  Object.defineProperty(exports, "createScorer", {
8
8
  enumerable: true,
9
- get: function () { return chunk4IXBC75W_cjs.createScorer; }
9
+ get: function () { return chunkPMPEPPEM_cjs.createScorer; }
10
10
  });
11
11
  Object.defineProperty(exports, "formatCheckFeedback", {
12
12
  enumerable: true,
13
- get: function () { return chunk4IXBC75W_cjs.formatCheckFeedback; }
13
+ get: function () { return chunkPMPEPPEM_cjs.formatCheckFeedback; }
14
14
  });
15
15
  Object.defineProperty(exports, "formatCompletionFeedback", {
16
16
  enumerable: true,
17
- get: function () { return chunk4IXBC75W_cjs.formatCompletionFeedback; }
17
+ get: function () { return chunkPMPEPPEM_cjs.formatCompletionFeedback; }
18
18
  });
19
19
  Object.defineProperty(exports, "formatStreamCompletionFeedback", {
20
20
  enumerable: true,
21
- get: function () { return chunk4IXBC75W_cjs.formatStreamCompletionFeedback; }
21
+ get: function () { return chunkPMPEPPEM_cjs.formatStreamCompletionFeedback; }
22
22
  });
23
23
  Object.defineProperty(exports, "formatValidationFeedback", {
24
24
  enumerable: true,
25
- get: function () { return chunk4IXBC75W_cjs.formatValidationFeedback; }
25
+ get: function () { return chunkPMPEPPEM_cjs.formatValidationFeedback; }
26
26
  });
27
27
  Object.defineProperty(exports, "generateFinalResult", {
28
28
  enumerable: true,
29
- get: function () { return chunk4IXBC75W_cjs.generateFinalResult; }
29
+ get: function () { return chunkPMPEPPEM_cjs.generateFinalResult; }
30
30
  });
31
31
  Object.defineProperty(exports, "generateStructuredFinalResult", {
32
32
  enumerable: true,
33
- get: function () { return chunk4IXBC75W_cjs.generateStructuredFinalResult; }
33
+ get: function () { return chunkPMPEPPEM_cjs.generateStructuredFinalResult; }
34
34
  });
35
35
  Object.defineProperty(exports, "loop", {
36
36
  enumerable: true,
37
- get: function () { return chunk4IXBC75W_cjs.loop; }
37
+ get: function () { return chunkPMPEPPEM_cjs.loop; }
38
38
  });
39
39
  Object.defineProperty(exports, "runChecks", {
40
40
  enumerable: true,
41
- get: function () { return chunk4IXBC75W_cjs.runChecks; }
41
+ get: function () { return chunkPMPEPPEM_cjs.runChecks; }
42
42
  });
43
43
  Object.defineProperty(exports, "runCompletionScorers", {
44
44
  enumerable: true,
45
- get: function () { return chunk4IXBC75W_cjs.runCompletionScorers; }
45
+ get: function () { return chunkPMPEPPEM_cjs.runCompletionScorers; }
46
46
  });
47
47
  Object.defineProperty(exports, "runDefaultCompletionCheck", {
48
48
  enumerable: true,
49
- get: function () { return chunk4IXBC75W_cjs.runDefaultCompletionCheck; }
49
+ get: function () { return chunkPMPEPPEM_cjs.runDefaultCompletionCheck; }
50
50
  });
51
51
  Object.defineProperty(exports, "runStreamCompletionScorers", {
52
52
  enumerable: true,
53
- get: function () { return chunk4IXBC75W_cjs.runStreamCompletionScorers; }
53
+ get: function () { return chunkPMPEPPEM_cjs.runStreamCompletionScorers; }
54
54
  });
55
55
  Object.defineProperty(exports, "runValidation", {
56
56
  enumerable: true,
57
- get: function () { return chunk4IXBC75W_cjs.runValidation; }
57
+ get: function () { return chunkPMPEPPEM_cjs.runValidation; }
58
58
  });
59
59
  //# sourceMappingURL=index.cjs.map
60
60
  //# sourceMappingURL=index.cjs.map
@@ -1,3 +1,3 @@
1
- export { createScorer, formatCheckFeedback, formatCompletionFeedback, formatStreamCompletionFeedback, formatValidationFeedback, generateFinalResult, generateStructuredFinalResult, loop, runChecks, runCompletionScorers, runDefaultCompletionCheck, runStreamCompletionScorers, runValidation } from '../chunk-WE5LBH4J.js';
1
+ export { createScorer, formatCheckFeedback, formatCompletionFeedback, formatStreamCompletionFeedback, formatValidationFeedback, generateFinalResult, generateStructuredFinalResult, loop, runChecks, runCompletionScorers, runDefaultCompletionCheck, runStreamCompletionScorers, runValidation } from '../chunk-RPNNSCCV.js';
2
2
  //# sourceMappingURL=index.js.map
3
3
  //# sourceMappingURL=index.js.map
@@ -1,12 +1,12 @@
1
1
  'use strict';
2
2
 
3
- var chunk4HNDVU6H_cjs = require('../chunk-4HNDVU6H.cjs');
3
+ var chunkQIFCHCII_cjs = require('../chunk-QIFCHCII.cjs');
4
4
 
5
5
 
6
6
 
7
7
  Object.defineProperty(exports, "Mastra", {
8
8
  enumerable: true,
9
- get: function () { return chunk4HNDVU6H_cjs.Mastra; }
9
+ get: function () { return chunkQIFCHCII_cjs.Mastra; }
10
10
  });
11
11
  //# sourceMappingURL=index.cjs.map
12
12
  //# sourceMappingURL=index.cjs.map
@@ -1,3 +1,3 @@
1
- export { Mastra } from '../chunk-FNOZT6AO.js';
1
+ export { Mastra } from '../chunk-56YX4QXF.js';
2
2
  //# sourceMappingURL=index.js.map
3
3
  //# sourceMappingURL=index.js.map
@@ -0,0 +1,3 @@
1
+ export { MastraGateway } from './chunk-CVPDCNSV.js';
2
+ //# sourceMappingURL=mastra-GU4WOJJ6.js.map
3
+ //# sourceMappingURL=mastra-GU4WOJJ6.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":[],"names":[],"mappings":"","file":"mastra-M3N2HPTL.js"}
1
+ {"version":3,"sources":[],"names":[],"mappings":"","file":"mastra-GU4WOJJ6.js"}
@@ -0,0 +1,12 @@
1
+ 'use strict';
2
+
3
+ var chunkNJPEAYX3_cjs = require('./chunk-NJPEAYX3.cjs');
4
+
5
+
6
+
7
+ Object.defineProperty(exports, "MastraGateway", {
8
+ enumerable: true,
9
+ get: function () { return chunkNJPEAYX3_cjs.MastraGateway; }
10
+ });
11
+ //# sourceMappingURL=mastra-HZ6MUPHV.cjs.map
12
+ //# sourceMappingURL=mastra-HZ6MUPHV.cjs.map
@@ -1 +1 @@
1
- {"version":3,"sources":[],"names":[],"mappings":"","file":"mastra-7KQSO6TX.cjs"}
1
+ {"version":3,"sources":[],"names":[],"mappings":"","file":"mastra-HZ6MUPHV.cjs"}