@mastra/core 1.22.0 → 1.23.0-alpha.0
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.
- package/CHANGELOG.md +29 -0
- package/dist/agent/agent.d.ts.map +1 -1
- package/dist/agent/index.cjs +8 -8
- package/dist/agent/index.js +1 -1
- package/dist/browser/index.cjs +2 -2
- package/dist/browser/index.js +1 -1
- package/dist/channels/index.cjs +4 -4
- package/dist/channels/index.js +1 -1
- package/dist/{chunk-V5FLTMXK.js → chunk-2RUQ6WLT.js} +3 -3
- package/dist/chunk-2RUQ6WLT.js.map +1 -0
- package/dist/{chunk-HPVNBI7J.js → chunk-33TK5IJV.js} +3 -3
- package/dist/{chunk-HPVNBI7J.js.map → chunk-33TK5IJV.js.map} +1 -1
- package/dist/{chunk-DRITAH5L.js → chunk-4J2OKODY.js} +3 -3
- package/dist/{chunk-DRITAH5L.js.map → chunk-4J2OKODY.js.map} +1 -1
- package/dist/{chunk-7RUFTPIY.js → chunk-5UMYIPAN.js} +4 -4
- package/dist/{chunk-7RUFTPIY.js.map → chunk-5UMYIPAN.js.map} +1 -1
- package/dist/{chunk-KLHUYSDF.cjs → chunk-7VTVEVCQ.cjs} +6 -6
- package/dist/{chunk-KLHUYSDF.cjs.map → chunk-7VTVEVCQ.cjs.map} +1 -1
- package/dist/{chunk-HXX4JDIB.js → chunk-A2L5N4VL.js} +3 -3
- package/dist/{chunk-HXX4JDIB.js.map → chunk-A2L5N4VL.js.map} +1 -1
- package/dist/{chunk-Y7KNCAZY.js → chunk-BKIU77ZJ.js} +3 -3
- package/dist/{chunk-Y7KNCAZY.js.map → chunk-BKIU77ZJ.js.map} +1 -1
- package/dist/{chunk-VRH5HTH5.cjs → chunk-BNDFOTCS.cjs} +7 -7
- package/dist/{chunk-VRH5HTH5.cjs.map → chunk-BNDFOTCS.cjs.map} +1 -1
- package/dist/{chunk-VDXTOWVO.cjs → chunk-CH4EKSQP.cjs} +63 -19
- package/dist/chunk-CH4EKSQP.cjs.map +1 -0
- package/dist/{chunk-4CUUOZHE.cjs → chunk-CXNNDMLF.cjs} +9 -9
- package/dist/{chunk-4CUUOZHE.cjs.map → chunk-CXNNDMLF.cjs.map} +1 -1
- package/dist/{chunk-GYQ22SLZ.js → chunk-EV5XAPDO.js} +4 -4
- package/dist/{chunk-GYQ22SLZ.js.map → chunk-EV5XAPDO.js.map} +1 -1
- package/dist/{chunk-A67TNS6N.cjs → chunk-HIC3WGQU.cjs} +75 -30
- package/dist/chunk-HIC3WGQU.cjs.map +1 -0
- package/dist/{chunk-NMRSL5GT.js → chunk-IRNYM55C.js} +9 -9
- package/dist/{chunk-NMRSL5GT.js.map → chunk-IRNYM55C.js.map} +1 -1
- package/dist/{chunk-TULT7C36.js → chunk-J5QMVI5J.js} +50 -6
- package/dist/chunk-J5QMVI5J.js.map +1 -0
- package/dist/{chunk-UZVGJ26K.cjs → chunk-JLGX4VZB.cjs} +77 -77
- package/dist/{chunk-UZVGJ26K.cjs.map → chunk-JLGX4VZB.cjs.map} +1 -1
- package/dist/{chunk-AUJ7TUEZ.cjs → chunk-MQSONVAO.cjs} +185 -185
- package/dist/{chunk-AUJ7TUEZ.cjs.map → chunk-MQSONVAO.cjs.map} +1 -1
- package/dist/{chunk-CXQ3QR5K.cjs → chunk-OY6GCNBU.cjs} +48 -48
- package/dist/{chunk-CXQ3QR5K.cjs.map → chunk-OY6GCNBU.cjs.map} +1 -1
- package/dist/{chunk-NVMXENQS.cjs → chunk-P4Q7BSKN.cjs} +17 -17
- package/dist/{chunk-NVMXENQS.cjs.map → chunk-P4Q7BSKN.cjs.map} +1 -1
- package/dist/{chunk-M7O57C2Y.js → chunk-PGXL3YYH.js} +72 -27
- package/dist/chunk-PGXL3YYH.js.map +1 -0
- package/dist/{chunk-RHKFYYB6.cjs → chunk-QGLY25ND.cjs} +20 -20
- package/dist/{chunk-RHKFYYB6.cjs.map → chunk-QGLY25ND.cjs.map} +1 -1
- package/dist/{chunk-PJERQ3YG.cjs → chunk-SKWXGIIH.cjs} +3 -3
- package/dist/chunk-SKWXGIIH.cjs.map +1 -0
- package/dist/{chunk-NLN4DDI6.js → chunk-TAEBGE3H.js} +6 -6
- package/dist/{chunk-NLN4DDI6.js.map → chunk-TAEBGE3H.js.map} +1 -1
- package/dist/{chunk-WTVDTW4F.js → chunk-VFCMAAIK.js} +8 -8
- package/dist/{chunk-WTVDTW4F.js.map → chunk-VFCMAAIK.js.map} +1 -1
- package/dist/{chunk-QFVPZL25.cjs → chunk-XCNL4BNL.cjs} +5 -5
- package/dist/{chunk-QFVPZL25.cjs.map → chunk-XCNL4BNL.cjs.map} +1 -1
- package/dist/datasets/index.cjs +11 -11
- package/dist/datasets/index.js +1 -1
- package/dist/docs/SKILL.md +1 -1
- package/dist/docs/assets/SOURCE_MAP.json +154 -154
- package/dist/docs/references/docs-workspace-overview.md +35 -7
- package/dist/evals/index.cjs +5 -5
- package/dist/evals/index.js +2 -2
- package/dist/evals/scoreTraces/index.cjs +3 -3
- package/dist/evals/scoreTraces/index.js +1 -1
- package/dist/harness/index.cjs +18 -11
- package/dist/harness/index.cjs.map +1 -1
- package/dist/harness/index.js +14 -7
- package/dist/harness/index.js.map +1 -1
- package/dist/harness/tools.d.ts.map +1 -1
- package/dist/index.cjs +2 -2
- package/dist/index.js +1 -1
- package/dist/llm/index.cjs +20 -20
- package/dist/llm/index.js +5 -5
- package/dist/loop/index.cjs +14 -14
- package/dist/loop/index.js +1 -1
- package/dist/loop/workflows/agentic-execution/tool-call-step.d.ts.map +1 -1
- package/dist/mastra/index.cjs +2 -2
- package/dist/mastra/index.js +1 -1
- package/dist/mastra-6PTZVLRU.cjs +12 -0
- package/dist/{mastra-33MCZUH4.cjs.map → mastra-6PTZVLRU.cjs.map} +1 -1
- package/dist/mastra-PL2TINKB.js +3 -0
- package/dist/{mastra-RY543V4U.js.map → mastra-PL2TINKB.js.map} +1 -1
- package/dist/memory/index.cjs +17 -17
- package/dist/memory/index.js +1 -1
- package/dist/models-dev-LB2MHSPK.js +3 -0
- package/dist/{models-dev-2BJQPEQJ.js.map → models-dev-LB2MHSPK.js.map} +1 -1
- package/dist/models-dev-RNN2XIDN.cjs +12 -0
- package/dist/{models-dev-OZGJCJIG.cjs.map → models-dev-RNN2XIDN.cjs.map} +1 -1
- package/dist/netlify-7YIJ54SJ.cjs +12 -0
- package/dist/{netlify-TSDN7D7F.cjs.map → netlify-7YIJ54SJ.cjs.map} +1 -1
- package/dist/netlify-IAZEAHV7.js +3 -0
- package/dist/{netlify-N7PUN3NA.js.map → netlify-IAZEAHV7.js.map} +1 -1
- package/dist/processor-provider/index.cjs +10 -10
- package/dist/processor-provider/index.js +1 -1
- package/dist/processors/index.cjs +44 -44
- package/dist/processors/index.js +1 -1
- package/dist/provider-registry-3AI2NIS7.js +3 -0
- package/dist/{provider-registry-EINTM27D.js.map → provider-registry-3AI2NIS7.js.map} +1 -1
- package/dist/provider-registry-MGQGWIDH.cjs +40 -0
- package/dist/{provider-registry-DBWCMPP3.cjs.map → provider-registry-MGQGWIDH.cjs.map} +1 -1
- package/dist/relevance/index.cjs +3 -3
- package/dist/relevance/index.js +1 -1
- package/dist/stream/index.cjs +8 -8
- package/dist/stream/index.js +1 -1
- package/dist/tool-loop-agent/index.cjs +4 -4
- package/dist/tool-loop-agent/index.js +1 -1
- package/dist/workflows/evented/index.cjs +10 -10
- package/dist/workflows/evented/index.js +1 -1
- package/dist/workflows/index.cjs +24 -24
- package/dist/workflows/index.js +1 -1
- package/dist/workspace/index.cjs +68 -68
- package/dist/workspace/index.d.ts +1 -1
- package/dist/workspace/index.d.ts.map +1 -1
- package/dist/workspace/index.js +1 -1
- package/dist/workspace/tools/index.d.ts +1 -1
- package/dist/workspace/tools/index.d.ts.map +1 -1
- package/dist/workspace/tools/tools.d.ts +18 -10
- package/dist/workspace/tools/tools.d.ts.map +1 -1
- package/dist/workspace/tools/types.d.ts +51 -7
- package/dist/workspace/tools/types.d.ts.map +1 -1
- package/package.json +6 -6
- package/dist/chunk-A67TNS6N.cjs.map +0 -1
- package/dist/chunk-M7O57C2Y.js.map +0 -1
- package/dist/chunk-PJERQ3YG.cjs.map +0 -1
- package/dist/chunk-TULT7C36.js.map +0 -1
- package/dist/chunk-V5FLTMXK.js.map +0 -1
- package/dist/chunk-VDXTOWVO.cjs.map +0 -1
- package/dist/mastra-33MCZUH4.cjs +0 -12
- package/dist/mastra-RY543V4U.js +0 -3
- package/dist/models-dev-2BJQPEQJ.js +0 -3
- package/dist/models-dev-OZGJCJIG.cjs +0 -12
- package/dist/netlify-N7PUN3NA.js +0 -3
- package/dist/netlify-TSDN7D7F.cjs +0 -12
- package/dist/provider-registry-DBWCMPP3.cjs +0 -40
- package/dist/provider-registry-EINTM27D.js +0 -3
|
@@ -195,13 +195,41 @@ const workspace = new Workspace({
|
|
|
195
195
|
|
|
196
196
|
### Tool options
|
|
197
197
|
|
|
198
|
-
| Option | Type
|
|
199
|
-
| ------------------------ |
|
|
200
|
-
| `enabled` | `boolean` | Whether the tool is available (default: `true`)
|
|
201
|
-
| `requireApproval` | `boolean` | Whether the tool requires user approval before execution (default: `false`)
|
|
202
|
-
| `requireReadBeforeWrite` | `boolean` | For write tools: require reading the file first (default: `false`)
|
|
203
|
-
| `name` | `string`
|
|
204
|
-
| `maxOutputTokens` | `number`
|
|
198
|
+
| Option | Type | Description |
|
|
199
|
+
| ------------------------ | --------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------ |
|
|
200
|
+
| `enabled` | `boolean \| (context) => boolean` | Whether the tool is available (default: `true`). When a function, evaluated at tool-listing time. |
|
|
201
|
+
| `requireApproval` | `boolean \| (context) => boolean` | Whether the tool requires user approval before execution (default: `false`). When a function, evaluated at execution time with access to `args`. |
|
|
202
|
+
| `requireReadBeforeWrite` | `boolean \| (context) => boolean` | For write tools: require reading the file first (default: `false`). When a function, evaluated at execution time with access to `args`. |
|
|
203
|
+
| `name` | `string` | Custom name for the tool. Replaces the default `mastra_workspace_*` name. |
|
|
204
|
+
| `maxOutputTokens` | `number` | Maximum tokens for tool output (default: `2000`). Output exceeding this limit is truncated using tiktoken. |
|
|
205
|
+
|
|
206
|
+
### Dynamic tool configuration
|
|
207
|
+
|
|
208
|
+
Tool options that accept functions receive a context object and return a boolean. This enables context-aware tool behavior.
|
|
209
|
+
|
|
210
|
+
```typescript
|
|
211
|
+
const workspace = new Workspace({
|
|
212
|
+
filesystem: new LocalFilesystem({ basePath: './workspace' }),
|
|
213
|
+
tools: {
|
|
214
|
+
// Dynamic enabled: disable command execution unless explicitly allowed
|
|
215
|
+
[WORKSPACE_TOOLS.SANDBOX.EXECUTE_COMMAND]: {
|
|
216
|
+
enabled: async ({ requestContext }) => {
|
|
217
|
+
return requestContext['allowExecution'] === 'true'
|
|
218
|
+
},
|
|
219
|
+
},
|
|
220
|
+
|
|
221
|
+
// Dynamic requireApproval: only require approval for protected paths
|
|
222
|
+
[WORKSPACE_TOOLS.FILESYSTEM.WRITE_FILE]: {
|
|
223
|
+
requireApproval: async ({ args }) => {
|
|
224
|
+
return (args.path as string).startsWith('/protected')
|
|
225
|
+
},
|
|
226
|
+
requireReadBeforeWrite: true,
|
|
227
|
+
},
|
|
228
|
+
},
|
|
229
|
+
})
|
|
230
|
+
```
|
|
231
|
+
|
|
232
|
+
Functions for `enabled` receive `{ requestContext, workspace }`. Functions for `requireApproval` and `requireReadBeforeWrite` also receive `args` since they are evaluated when the tool is called.
|
|
205
233
|
|
|
206
234
|
### Tool name remapping
|
|
207
235
|
|
package/dist/evals/index.cjs
CHANGED
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
var
|
|
3
|
+
var chunkXCNL4BNL_cjs = require('../chunk-XCNL4BNL.cjs');
|
|
4
|
+
var chunkCH4EKSQP_cjs = require('../chunk-CH4EKSQP.cjs');
|
|
5
5
|
var chunk7HWDGEET_cjs = require('../chunk-7HWDGEET.cjs');
|
|
6
6
|
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
Object.defineProperty(exports, "runEvals", {
|
|
10
10
|
enumerable: true,
|
|
11
|
-
get: function () { return
|
|
11
|
+
get: function () { return chunkXCNL4BNL_cjs.runEvals; }
|
|
12
12
|
});
|
|
13
13
|
Object.defineProperty(exports, "MastraScorer", {
|
|
14
14
|
enumerable: true,
|
|
15
|
-
get: function () { return
|
|
15
|
+
get: function () { return chunkCH4EKSQP_cjs.MastraScorer; }
|
|
16
16
|
});
|
|
17
17
|
Object.defineProperty(exports, "createScorer", {
|
|
18
18
|
enumerable: true,
|
|
19
|
-
get: function () { return
|
|
19
|
+
get: function () { return chunkCH4EKSQP_cjs.createScorer; }
|
|
20
20
|
});
|
|
21
21
|
Object.defineProperty(exports, "extractTrajectory", {
|
|
22
22
|
enumerable: true,
|
package/dist/evals/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export { runEvals } from '../chunk-
|
|
2
|
-
export { MastraScorer, createScorer } from '../chunk-
|
|
1
|
+
export { runEvals } from '../chunk-BKIU77ZJ.js';
|
|
2
|
+
export { MastraScorer, createScorer } from '../chunk-J5QMVI5J.js';
|
|
3
3
|
export { extractTrajectory, extractTrajectoryFromTrace, extractWorkflowTrajectory, listScoresResponseSchema, saveScorePayloadSchema, scoreResultSchema, scoreRowDataSchema, scoringEntityTypeSchema, scoringExtractStepResultSchema, scoringHookInputSchema, scoringInputSchema, scoringInputWithExtractStepResultAndAnalyzeStepResultSchema, scoringInputWithExtractStepResultAndScoreAndReasonSchema, scoringInputWithExtractStepResultSchema, scoringPromptsSchema, scoringSourceSchema, scoringValueSchema } from '../chunk-56OCTZBD.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
|
|
3
|
+
var chunkOY6GCNBU_cjs = require('../../chunk-OY6GCNBU.cjs');
|
|
4
4
|
var chunk7HWDGEET_cjs = require('../../chunk-7HWDGEET.cjs');
|
|
5
5
|
var chunkW6PDQCCN_cjs = require('../../chunk-W6PDQCCN.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 =
|
|
237
|
+
var getTraceStep = chunkOY6GCNBU_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 =
|
|
432
|
+
var scoreTracesWorkflow = chunkOY6GCNBU_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-
|
|
1
|
+
import { createStep, createWorkflow } from '../../chunk-33TK5IJV.js';
|
|
2
2
|
import { saveScorePayloadSchema } from '../../chunk-56OCTZBD.js';
|
|
3
3
|
import { getEntityTypeForSpan } from '../../chunk-LQY5E2LW.js';
|
|
4
4
|
import { MastraError } from '../../chunk-FJEVLHJT.js';
|
package/dist/harness/index.cjs
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
var
|
|
5
|
-
var
|
|
3
|
+
var chunkP4Q7BSKN_cjs = require('../chunk-P4Q7BSKN.cjs');
|
|
4
|
+
var chunkCH4EKSQP_cjs = require('../chunk-CH4EKSQP.cjs');
|
|
5
|
+
var chunkHIC3WGQU_cjs = require('../chunk-HIC3WGQU.cjs');
|
|
6
6
|
var chunkW232X652_cjs = require('../chunk-W232X652.cjs');
|
|
7
7
|
var chunkLDLHW3QN_cjs = require('../chunk-LDLHW3QN.cjs');
|
|
8
8
|
var chunkXB4FLS7A_cjs = require('../chunk-XB4FLS7A.cjs');
|
|
@@ -313,7 +313,7 @@ Use this tool when:
|
|
|
313
313
|
};
|
|
314
314
|
}
|
|
315
315
|
const workspace = context?.workspace;
|
|
316
|
-
const subagent = new
|
|
316
|
+
const subagent = new chunkCH4EKSQP_cjs.Agent({
|
|
317
317
|
id: `subagent-${definition.id}`,
|
|
318
318
|
name: `${definition.name} Subagent`,
|
|
319
319
|
instructions: definition.instructions,
|
|
@@ -321,8 +321,15 @@ Use this tool when:
|
|
|
321
321
|
tools: mergedTools,
|
|
322
322
|
workspace
|
|
323
323
|
});
|
|
324
|
-
const allWorkspaceToolNames = workspace ? new Set(Object.keys(chunkA67TNS6N_cjs.createWorkspaceTools(workspace))) : void 0;
|
|
325
324
|
const allowedWs = definition.allowedWorkspaceTools ? new Set(definition.allowedWorkspaceTools) : void 0;
|
|
325
|
+
const allWorkspaceToolNames = workspace && allowedWs ? new Set(
|
|
326
|
+
Object.keys(
|
|
327
|
+
await chunkHIC3WGQU_cjs.createWorkspaceTools(workspace, {
|
|
328
|
+
requestContext: context?.requestContext ?? {},
|
|
329
|
+
workspace
|
|
330
|
+
})
|
|
331
|
+
)
|
|
332
|
+
) : void 0;
|
|
326
333
|
const startTime = Date.now();
|
|
327
334
|
emitEvent?.({
|
|
328
335
|
type: "subagent_start",
|
|
@@ -543,7 +550,7 @@ var Harness = class {
|
|
|
543
550
|
throw new Error("Harness requires at least one agent mode");
|
|
544
551
|
}
|
|
545
552
|
this.currentModeId = defaultMode.id;
|
|
546
|
-
if (config.workspace instanceof
|
|
553
|
+
if (config.workspace instanceof chunkHIC3WGQU_cjs.Workspace) {
|
|
547
554
|
this.workspace = config.workspace;
|
|
548
555
|
} else if (typeof config.workspace === "function") {
|
|
549
556
|
this.workspaceFn = config.workspace;
|
|
@@ -562,13 +569,13 @@ var Harness = class {
|
|
|
562
569
|
*/
|
|
563
570
|
async init() {
|
|
564
571
|
if (this.config.storage) {
|
|
565
|
-
this.#internalMastra = new
|
|
572
|
+
this.#internalMastra = new chunkP4Q7BSKN_cjs.Mastra({ logger: false, storage: this.config.storage });
|
|
566
573
|
await this.#internalMastra.getStorage().init();
|
|
567
574
|
}
|
|
568
575
|
if (this.config.workspace && !this.workspaceInitialized && !this.workspaceFn) {
|
|
569
576
|
try {
|
|
570
577
|
if (!this.workspace) {
|
|
571
|
-
this.workspace = new
|
|
578
|
+
this.workspace = new chunkHIC3WGQU_cjs.Workspace(this.config.workspace);
|
|
572
579
|
}
|
|
573
580
|
this.emit({ type: "workspace_status_changed", status: "initializing" });
|
|
574
581
|
await this.workspace.init();
|
|
@@ -814,7 +821,7 @@ var Harness = class {
|
|
|
814
821
|
}
|
|
815
822
|
}
|
|
816
823
|
try {
|
|
817
|
-
const { PROVIDER_REGISTRY } = await import('../provider-registry-
|
|
824
|
+
const { PROVIDER_REGISTRY } = await import('../provider-registry-MGQGWIDH.cjs');
|
|
818
825
|
const registry = PROVIDER_REGISTRY;
|
|
819
826
|
const providerConfig = registry[provider];
|
|
820
827
|
const envVars = providerConfig?.apiKeyEnvVar;
|
|
@@ -834,7 +841,7 @@ var Harness = class {
|
|
|
834
841
|
*/
|
|
835
842
|
async listAvailableModels() {
|
|
836
843
|
try {
|
|
837
|
-
const { PROVIDER_REGISTRY } = await import('../provider-registry-
|
|
844
|
+
const { PROVIDER_REGISTRY } = await import('../provider-registry-MGQGWIDH.cjs');
|
|
838
845
|
if (!PROVIDER_REGISTRY) return [];
|
|
839
846
|
const registry = PROVIDER_REGISTRY;
|
|
840
847
|
const providers = Object.keys(registry);
|
|
@@ -893,7 +900,7 @@ var Harness = class {
|
|
|
893
900
|
}
|
|
894
901
|
async getProviderApiKeyEnvVar(provider) {
|
|
895
902
|
try {
|
|
896
|
-
const { PROVIDER_REGISTRY } = await import('../provider-registry-
|
|
903
|
+
const { PROVIDER_REGISTRY } = await import('../provider-registry-MGQGWIDH.cjs');
|
|
897
904
|
const registry = PROVIDER_REGISTRY;
|
|
898
905
|
const envVars = registry[provider]?.apiKeyEnvVar;
|
|
899
906
|
return Array.isArray(envVars) ? envVars[0] : envVars;
|