@mastra/core 1.1.0 → 1.2.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 +74 -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/{chunk-RYVRCT7Z.cjs → chunk-22EV7GMK.cjs} +55 -19
- package/dist/chunk-22EV7GMK.cjs.map +1 -0
- package/dist/chunk-2QXNHEDL.js +8 -0
- package/dist/chunk-2QXNHEDL.js.map +1 -0
- package/dist/{chunk-OSIE5L6N.js → chunk-66BWIF4S.js} +7 -7
- package/dist/{chunk-OSIE5L6N.js.map → chunk-66BWIF4S.js.map} +1 -1
- package/dist/{chunk-IDDFKLI7.js → chunk-AC63Y6KP.js} +865 -1471
- package/dist/chunk-AC63Y6KP.js.map +1 -0
- package/dist/{chunk-4QJBNJI4.cjs → chunk-BLXWTBLL.cjs} +168 -168
- package/dist/{chunk-4QJBNJI4.cjs.map → chunk-BLXWTBLL.cjs.map} +1 -1
- package/dist/{chunk-KPIJA2R5.js → chunk-CILDTRXD.js} +2 -2
- package/dist/{chunk-KPIJA2R5.js.map → chunk-CILDTRXD.js.map} +1 -1
- package/dist/{chunk-OW7H7G5N.js → chunk-DWD5DB6W.js} +4 -4
- package/dist/{chunk-OW7H7G5N.js.map → chunk-DWD5DB6W.js.map} +1 -1
- package/dist/{chunk-MGOFRL36.cjs → chunk-EYUXOOSQ.cjs} +106 -39
- package/dist/chunk-EYUXOOSQ.cjs.map +1 -0
- package/dist/{chunk-FVVQY6UU.js → chunk-FAJYC6PA.js} +375 -23
- package/dist/chunk-FAJYC6PA.js.map +1 -0
- package/dist/{chunk-YQMDMIP6.js → chunk-FYMM4PKR.js} +1337 -312
- package/dist/chunk-FYMM4PKR.js.map +1 -0
- package/dist/{chunk-FAM74XPO.js → chunk-G6E3QNJC.js} +3741 -2912
- package/dist/chunk-G6E3QNJC.js.map +1 -0
- package/dist/{chunk-YSFYUEEG.cjs → chunk-I6PWV32C.cjs} +42 -10
- package/dist/chunk-I6PWV32C.cjs.map +1 -0
- package/dist/{chunk-VNGQXHUE.cjs → chunk-MCI7M6AT.cjs} +7 -7
- package/dist/{chunk-VNGQXHUE.cjs.map → chunk-MCI7M6AT.cjs.map} +1 -1
- package/dist/{chunk-4KQEQ4NM.js → chunk-NS33UC72.js} +55 -20
- package/dist/chunk-NS33UC72.js.map +1 -0
- package/dist/{chunk-4PERRFZD.cjs → chunk-OAOMKZXU.cjs} +1378 -353
- package/dist/chunk-OAOMKZXU.cjs.map +1 -0
- package/dist/{chunk-4ACKGMN2.cjs → chunk-ODNSWEMV.cjs} +7 -7
- package/dist/{chunk-4ACKGMN2.cjs.map → chunk-ODNSWEMV.cjs.map} +1 -1
- package/dist/{chunk-H4C5NORS.js → chunk-OQPAOUDS.js} +36 -5
- package/dist/chunk-OQPAOUDS.js.map +1 -0
- package/dist/{chunk-VAJRNUEF.js → chunk-SPVI7HCP.js} +76 -76
- package/dist/chunk-SPVI7HCP.js.map +1 -0
- package/dist/{chunk-ENLG644T.cjs → chunk-STNSGW7W.cjs} +1514 -2120
- package/dist/chunk-STNSGW7W.cjs.map +1 -0
- package/dist/{chunk-FZZI2V2T.js → chunk-USHB3SPM.js} +4 -4
- package/dist/{chunk-FZZI2V2T.js.map → chunk-USHB3SPM.js.map} +1 -1
- package/dist/{chunk-4NGQR4ML.cjs → chunk-UZL4H5P2.cjs} +5092 -4247
- package/dist/chunk-UZL4H5P2.cjs.map +1 -0
- package/dist/{chunk-DOVI2C5F.cjs → chunk-VZXYBFCX.cjs} +8 -8
- package/dist/{chunk-DOVI2C5F.cjs.map → chunk-VZXYBFCX.cjs.map} +1 -1
- package/dist/{chunk-4FUG3CNY.js → chunk-W3AQUG66.js} +3 -3
- package/dist/{chunk-4FUG3CNY.js.map → chunk-W3AQUG66.js.map} +1 -1
- package/dist/{chunk-SLMSUZBA.cjs → chunk-W57QS6F6.cjs} +400 -46
- package/dist/chunk-W57QS6F6.cjs.map +1 -0
- package/dist/{chunk-BG6DCMO2.js → chunk-XS2MED4Y.js} +105 -38
- package/dist/chunk-XS2MED4Y.js.map +1 -0
- package/dist/{chunk-HR67B4UM.cjs → chunk-XVHK5IAO.cjs} +15 -15
- package/dist/{chunk-HR67B4UM.cjs.map → chunk-XVHK5IAO.cjs.map} +1 -1
- package/dist/{chunk-RIPKI7ON.cjs → chunk-Y2SVKUOQ.cjs} +2 -2
- package/dist/{chunk-RIPKI7ON.cjs.map → chunk-Y2SVKUOQ.cjs.map} +1 -1
- package/dist/{chunk-LJOQ7WYC.cjs → chunk-ZCBG4ZQT.cjs} +4 -2
- package/dist/chunk-ZCBG4ZQT.cjs.map +1 -0
- package/dist/docs/README.md +2 -2
- package/dist/docs/SKILL.md +3 -3
- package/dist/docs/SOURCE_MAP.json +280 -270
- package/dist/docs/agents/01-overview.md +6 -2
- package/dist/docs/agents/02-using-tools.md +1 -0
- package/dist/docs/agents/06-processors.md +87 -1
- package/dist/docs/evals/01-overview.md +5 -5
- package/dist/docs/mcp/01-overview.md +2 -2
- package/dist/docs/observability/01-overview.md +1 -1
- package/dist/docs/observability/03-overview.md +3 -3
- package/dist/docs/processors/01-reference.md +100 -1
- package/dist/docs/rag/01-overview.md +1 -1
- package/dist/docs/rag/03-vector-databases.md +10 -1
- package/dist/docs/server/04-request-context.md +168 -0
- package/dist/docs/tools-mcp/01-mcp-overview.md +2 -2
- package/dist/docs/voice/01-overview.md +1 -1
- package/dist/docs/workflows/01-overview.md +9 -5
- package/dist/docs/workspace/01-overview.md +38 -31
- package/dist/docs/workspace/02-filesystem.md +9 -11
- package/dist/docs/workspace/03-sandbox.md +8 -10
- package/dist/docs/workspace/04-skills.md +24 -25
- package/dist/docs/workspace/05-search.md +34 -31
- package/dist/docs/workspace/06-reference.md +24 -149
- package/dist/evals/index.cjs +20 -20
- package/dist/evals/index.js +3 -3
- package/dist/evals/scoreTraces/index.cjs +5 -5
- package/dist/evals/scoreTraces/index.js +2 -2
- package/dist/index.cjs +2 -2
- package/dist/index.js +1 -1
- package/dist/llm/index.cjs +15 -15
- package/dist/llm/index.js +5 -5
- package/dist/llm/model/gateways/models-dev.d.ts.map +1 -1
- package/dist/llm/model/provider-types.generated.d.ts +44 -15
- package/dist/loop/index.cjs +12 -12
- package/dist/loop/index.js +1 -1
- package/dist/loop/network/index.d.ts.map +1 -1
- package/dist/mastra/index.cjs +2 -2
- package/dist/mastra/index.js +1 -1
- package/dist/memory/index.cjs +11 -11
- package/dist/memory/index.js +1 -1
- package/dist/memory/memory.d.ts +6 -0
- package/dist/memory/memory.d.ts.map +1 -1
- package/dist/models-dev-2HBSVUOS.js +3 -0
- package/dist/{models-dev-B2ESSYRH.js.map → models-dev-2HBSVUOS.js.map} +1 -1
- package/dist/models-dev-SOIECXXQ.cjs +12 -0
- package/dist/{models-dev-IQ54YHQ4.cjs.map → models-dev-SOIECXXQ.cjs.map} +1 -1
- package/dist/netlify-SSWMYSAX.js +3 -0
- package/dist/{netlify-KPCOQ52P.js.map → netlify-SSWMYSAX.js.map} +1 -1
- package/dist/netlify-TXZZCT6N.cjs +12 -0
- package/dist/{netlify-D6LNGTDH.cjs.map → netlify-TXZZCT6N.cjs.map} +1 -1
- package/dist/processors/index.cjs +44 -40
- package/dist/processors/index.js +1 -1
- package/dist/processors/processors/index.d.ts +1 -0
- package/dist/processors/processors/index.d.ts.map +1 -1
- package/dist/processors/processors/tool-search.d.ts +176 -0
- package/dist/processors/processors/tool-search.d.ts.map +1 -0
- package/dist/provider-registry-K5L4DHRK.js +3 -0
- package/dist/{provider-registry-B3CGX3OF.js.map → provider-registry-K5L4DHRK.js.map} +1 -1
- package/dist/provider-registry-ML2VWWLB.cjs +40 -0
- package/dist/{provider-registry-CHV3DFFA.cjs.map → provider-registry-ML2VWWLB.cjs.map} +1 -1
- package/dist/provider-registry.json +101 -34
- package/dist/relevance/index.cjs +3 -3
- package/dist/relevance/index.js +1 -1
- package/dist/storage/constants.cjs +16 -16
- package/dist/storage/constants.js +1 -1
- package/dist/storage/domains/workflows/inmemory.d.ts.map +1 -1
- package/dist/storage/index.cjs +101 -101
- package/dist/storage/index.js +2 -2
- package/dist/storage/types.d.ts +4 -0
- package/dist/storage/types.d.ts.map +1 -1
- package/dist/stream/aisdk/v5/compat/prepare-tools.d.ts.map +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/vector/index.cjs +7 -7
- package/dist/vector/index.js +1 -1
- package/dist/workflows/constants.cjs +7 -3
- package/dist/workflows/constants.d.ts +1 -0
- package/dist/workflows/constants.d.ts.map +1 -1
- package/dist/workflows/constants.js +1 -1
- package/dist/workflows/default.d.ts.map +1 -1
- package/dist/workflows/evented/execution-engine.d.ts +8 -1
- package/dist/workflows/evented/execution-engine.d.ts.map +1 -1
- package/dist/workflows/evented/helpers.d.ts +68 -0
- package/dist/workflows/evented/helpers.d.ts.map +1 -0
- package/dist/workflows/evented/index.cjs +10 -10
- package/dist/workflows/evented/index.js +1 -1
- package/dist/workflows/evented/step-executor.d.ts +9 -17
- package/dist/workflows/evented/step-executor.d.ts.map +1 -1
- package/dist/workflows/evented/types.d.ts +29 -0
- package/dist/workflows/evented/types.d.ts.map +1 -0
- package/dist/workflows/evented/workflow-event-processor/index.d.ts +12 -3
- package/dist/workflows/evented/workflow-event-processor/index.d.ts.map +1 -1
- package/dist/workflows/evented/workflow-event-processor/loop.d.ts +2 -2
- package/dist/workflows/evented/workflow-event-processor/loop.d.ts.map +1 -1
- package/dist/workflows/evented/workflow-event-processor/parallel.d.ts +2 -2
- package/dist/workflows/evented/workflow-event-processor/parallel.d.ts.map +1 -1
- package/dist/workflows/evented/workflow-event-processor/sleep.d.ts.map +1 -1
- package/dist/workflows/evented/workflow-event-processor/utils.d.ts.map +1 -1
- package/dist/workflows/evented/workflow.d.ts +54 -3
- package/dist/workflows/evented/workflow.d.ts.map +1 -1
- package/dist/workflows/index.cjs +28 -24
- package/dist/workflows/index.js +1 -1
- package/dist/workflows/utils.d.ts +27 -0
- package/dist/workflows/utils.d.ts.map +1 -1
- package/dist/workflows/workflow.d.ts.map +1 -1
- package/dist/workspace/filesystem/local-filesystem.d.ts +3 -0
- package/dist/workspace/filesystem/local-filesystem.d.ts.map +1 -1
- package/dist/workspace/index.cjs +32 -32
- package/dist/workspace/index.js +1 -1
- package/dist/workspace/lifecycle.d.ts +2 -0
- package/dist/workspace/lifecycle.d.ts.map +1 -1
- package/dist/workspace/sandbox/local-sandbox.d.ts +1 -2
- package/dist/workspace/sandbox/local-sandbox.d.ts.map +1 -1
- package/dist/workspace/sandbox/sandbox.d.ts +0 -2
- package/dist/workspace/sandbox/sandbox.d.ts.map +1 -1
- package/dist/workspace/search/bm25.d.ts +2 -0
- package/dist/workspace/search/bm25.d.ts.map +1 -1
- package/package.json +4 -4
- package/src/llm/model/provider-types.generated.d.ts +44 -15
- package/dist/chunk-4KQEQ4NM.js.map +0 -1
- package/dist/chunk-4NGQR4ML.cjs.map +0 -1
- package/dist/chunk-4PERRFZD.cjs.map +0 -1
- package/dist/chunk-BG6DCMO2.js.map +0 -1
- package/dist/chunk-ENLG644T.cjs.map +0 -1
- package/dist/chunk-FAM74XPO.js.map +0 -1
- package/dist/chunk-FVVQY6UU.js.map +0 -1
- package/dist/chunk-H4C5NORS.js.map +0 -1
- package/dist/chunk-IDDFKLI7.js.map +0 -1
- package/dist/chunk-LJOQ7WYC.cjs.map +0 -1
- package/dist/chunk-MGOFRL36.cjs.map +0 -1
- package/dist/chunk-RYVRCT7Z.cjs.map +0 -1
- package/dist/chunk-SLMSUZBA.cjs.map +0 -1
- package/dist/chunk-VAJRNUEF.js.map +0 -1
- package/dist/chunk-YEQB4VUA.js +0 -7
- package/dist/chunk-YEQB4VUA.js.map +0 -1
- package/dist/chunk-YQMDMIP6.js.map +0 -1
- package/dist/chunk-YSFYUEEG.cjs.map +0 -1
- package/dist/models-dev-B2ESSYRH.js +0 -3
- package/dist/models-dev-IQ54YHQ4.cjs +0 -12
- package/dist/netlify-D6LNGTDH.cjs +0 -12
- package/dist/netlify-KPCOQ52P.js +0 -3
- package/dist/provider-registry-B3CGX3OF.js +0 -3
- package/dist/provider-registry-CHV3DFFA.cjs +0 -40
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
|
|
6
6
|
---
|
|
7
7
|
|
|
8
|
-
## Reference: WorkspaceFilesystem
|
|
8
|
+
## Reference: WorkspaceFilesystem
|
|
9
9
|
|
|
10
10
|
> Documentation for the WorkspaceFilesystem interface that defines file storage operations.
|
|
11
11
|
|
|
@@ -184,7 +184,7 @@ const instructions = filesystem.getInstructions?.();
|
|
|
184
184
|
|
|
185
185
|
---
|
|
186
186
|
|
|
187
|
-
## Reference: WorkspaceSandbox
|
|
187
|
+
## Reference: WorkspaceSandbox
|
|
188
188
|
|
|
189
189
|
> Documentation for the WorkspaceSandbox interface that defines command execution operations.
|
|
190
190
|
|
|
@@ -229,18 +229,6 @@ const result = await sandbox.executeCommand('npm', ['install', 'lodash']);
|
|
|
229
229
|
|
|
230
230
|
**Parameters:**
|
|
231
231
|
|
|
232
|
-
**Returns:** `Promise<CommandResult>`
|
|
233
|
-
|
|
234
|
-
```typescript
|
|
235
|
-
interface CommandResult {
|
|
236
|
-
success: boolean;
|
|
237
|
-
stdout: string;
|
|
238
|
-
stderr: string;
|
|
239
|
-
exitCode: number;
|
|
240
|
-
executionTimeMs: number;
|
|
241
|
-
}
|
|
242
|
-
```
|
|
243
|
-
|
|
244
232
|
### `getInfo()`
|
|
245
233
|
|
|
246
234
|
Get sandbox status and resource information.
|
|
@@ -250,22 +238,6 @@ const info = await sandbox.getInfo();
|
|
|
250
238
|
// { status: 'running', resources: { memoryMB: 512, cpuPercent: 5 } }
|
|
251
239
|
```
|
|
252
240
|
|
|
253
|
-
**Returns:** `Promise<SandboxInfo>`
|
|
254
|
-
|
|
255
|
-
```typescript
|
|
256
|
-
interface SandboxInfo {
|
|
257
|
-
status: 'starting' | 'running' | 'stopped' | 'error';
|
|
258
|
-
resources?: {
|
|
259
|
-
memoryMB?: number;
|
|
260
|
-
memoryUsedMB?: number;
|
|
261
|
-
cpuCores?: number;
|
|
262
|
-
cpuPercent?: number;
|
|
263
|
-
diskMB?: number;
|
|
264
|
-
diskUsedMB?: number;
|
|
265
|
-
};
|
|
266
|
-
}
|
|
267
|
-
```
|
|
268
|
-
|
|
269
241
|
### `getInstructions()`
|
|
270
242
|
|
|
271
243
|
Get a description of how this sandbox works. Used in tool descriptions to help agents understand the execution context.
|
|
@@ -275,8 +247,6 @@ const instructions = sandbox.getInstructions?.();
|
|
|
275
247
|
// 'Local command execution. Working directory: "/workspace".'
|
|
276
248
|
```
|
|
277
249
|
|
|
278
|
-
**Returns:** `string`
|
|
279
|
-
|
|
280
250
|
## Related
|
|
281
251
|
|
|
282
252
|
- [Workspace Class](https://mastra.ai/reference/workspace/workspace-class)
|
|
@@ -294,14 +264,6 @@ Stores files in a directory on the local filesystem.
|
|
|
294
264
|
|
|
295
265
|
For interface details, see [WorkspaceFilesystem Interface](https://mastra.ai/reference/workspace/filesystem).
|
|
296
266
|
|
|
297
|
-
## Installation
|
|
298
|
-
|
|
299
|
-
`LocalFilesystem` is included in `@mastra/core`:
|
|
300
|
-
|
|
301
|
-
```bash npm2yarn
|
|
302
|
-
npm install @mastra/core@latest
|
|
303
|
-
```
|
|
304
|
-
|
|
305
267
|
## Usage
|
|
306
268
|
|
|
307
269
|
Add a `LocalFilesystem` to a workspace and assign it to an agent. The agent can then read, write, and manage files as part of its tasks:
|
|
@@ -326,7 +288,7 @@ const agent = new Agent({
|
|
|
326
288
|
const response = await agent.generate('List all files in the workspace');
|
|
327
289
|
```
|
|
328
290
|
|
|
329
|
-
## Constructor
|
|
291
|
+
## Constructor parameters
|
|
330
292
|
|
|
331
293
|
## Properties
|
|
332
294
|
|
|
@@ -342,6 +304,10 @@ await filesystem.init();
|
|
|
342
304
|
|
|
343
305
|
Called by `workspace.init()`.
|
|
344
306
|
|
|
307
|
+
### Lazy initialization
|
|
308
|
+
|
|
309
|
+
LocalFilesystem initializes on first operation if not already initialized, creating the base directory automatically. Calling `init()` explicitly is optional but can be useful to pre-create directories before the first operation.
|
|
310
|
+
|
|
345
311
|
### `destroy()`
|
|
346
312
|
|
|
347
313
|
Clean up filesystem resources.
|
|
@@ -363,8 +329,6 @@ const buffer = await filesystem.readFile('/image.png', { encoding: 'binary' });
|
|
|
363
329
|
|
|
364
330
|
**Parameters:**
|
|
365
331
|
|
|
366
|
-
**Returns:** `Promise<string | Buffer>`
|
|
367
|
-
|
|
368
332
|
### `writeFile(path, content, options?)`
|
|
369
333
|
|
|
370
334
|
Write content to a file.
|
|
@@ -450,17 +414,6 @@ const entries = await filesystem.readdir('/docs');
|
|
|
450
414
|
// [{ name: 'guide.md', type: 'file' }, { name: 'api', type: 'directory' }]
|
|
451
415
|
```
|
|
452
416
|
|
|
453
|
-
**Returns:** `Promise<FileEntry[]>`
|
|
454
|
-
|
|
455
|
-
```typescript
|
|
456
|
-
interface FileEntry {
|
|
457
|
-
name: string;
|
|
458
|
-
type: 'file' | 'directory';
|
|
459
|
-
size?: number;
|
|
460
|
-
modifiedAt?: Date;
|
|
461
|
-
}
|
|
462
|
-
```
|
|
463
|
-
|
|
464
417
|
### `exists(path)`
|
|
465
418
|
|
|
466
419
|
Check if a path exists.
|
|
@@ -469,8 +422,6 @@ Check if a path exists.
|
|
|
469
422
|
const exists = await filesystem.exists('/docs/guide.md');
|
|
470
423
|
```
|
|
471
424
|
|
|
472
|
-
**Returns:** `Promise<boolean>`
|
|
473
|
-
|
|
474
425
|
### `stat(path)`
|
|
475
426
|
|
|
476
427
|
Get file or directory metadata.
|
|
@@ -480,18 +431,6 @@ const stat = await filesystem.stat('/docs/guide.md');
|
|
|
480
431
|
// { type: 'file', size: 1234, modifiedAt: Date, createdAt: Date, path: '/docs/guide.md' }
|
|
481
432
|
```
|
|
482
433
|
|
|
483
|
-
**Returns:** `Promise<FileStat>`
|
|
484
|
-
|
|
485
|
-
```typescript
|
|
486
|
-
interface FileStat {
|
|
487
|
-
type: 'file' | 'directory';
|
|
488
|
-
size: number;
|
|
489
|
-
modifiedAt: Date;
|
|
490
|
-
createdAt: Date;
|
|
491
|
-
path: string;
|
|
492
|
-
}
|
|
493
|
-
```
|
|
494
|
-
|
|
495
434
|
### `getInfo()`
|
|
496
435
|
|
|
497
436
|
Returns metadata about this filesystem instance.
|
|
@@ -501,18 +440,6 @@ const info = filesystem.getInfo();
|
|
|
501
440
|
// { id: '...', name: 'LocalFilesystem', provider: 'local', basePath: '/workspace', readOnly: false }
|
|
502
441
|
```
|
|
503
442
|
|
|
504
|
-
**Returns:** `FilesystemInfo`
|
|
505
|
-
|
|
506
|
-
```typescript
|
|
507
|
-
interface FilesystemInfo {
|
|
508
|
-
id: string;
|
|
509
|
-
name: string;
|
|
510
|
-
provider: string;
|
|
511
|
-
basePath?: string;
|
|
512
|
-
readOnly?: boolean;
|
|
513
|
-
}
|
|
514
|
-
```
|
|
515
|
-
|
|
516
443
|
### `getInstructions()`
|
|
517
444
|
|
|
518
445
|
Returns a description of how paths work in this filesystem. Used in tool descriptions.
|
|
@@ -522,9 +449,7 @@ const instructions = filesystem.getInstructions();
|
|
|
522
449
|
// 'Local filesystem at "/workspace". Files at workspace path "/foo" are stored at "/workspace/foo" on disk.'
|
|
523
450
|
```
|
|
524
451
|
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
## Path Resolution
|
|
452
|
+
## Path resolution
|
|
528
453
|
|
|
529
454
|
### How basePath works
|
|
530
455
|
|
|
@@ -572,9 +497,9 @@ Set `WORKSPACE_PATH` in your environment to an absolute path like `/home/user/my
|
|
|
572
497
|
|
|
573
498
|
## Related
|
|
574
499
|
|
|
575
|
-
- [WorkspaceFilesystem
|
|
576
|
-
- [Workspace
|
|
577
|
-
- [Workspace
|
|
500
|
+
- [WorkspaceFilesystem interface](https://mastra.ai/reference/workspace/filesystem)
|
|
501
|
+
- [Workspace class](https://mastra.ai/reference/workspace/workspace-class)
|
|
502
|
+
- [Workspace overview](https://mastra.ai/docs/workspace/overview)
|
|
578
503
|
|
|
579
504
|
---
|
|
580
505
|
|
|
@@ -586,15 +511,7 @@ Executes commands on the local system.
|
|
|
586
511
|
|
|
587
512
|
> **Note:**
|
|
588
513
|
|
|
589
|
-
For interface details, see [WorkspaceSandbox
|
|
590
|
-
|
|
591
|
-
## Installation
|
|
592
|
-
|
|
593
|
-
`LocalSandbox` is included in `@mastra/core`:
|
|
594
|
-
|
|
595
|
-
```bash npm2yarn
|
|
596
|
-
npm install @mastra/core@latest
|
|
597
|
-
```
|
|
514
|
+
For interface details, see [WorkspaceSandbox interface](https://mastra.ai/reference/workspace/sandbox).
|
|
598
515
|
|
|
599
516
|
## Usage
|
|
600
517
|
|
|
@@ -628,7 +545,7 @@ const response = await agent.generate('Run npm install');
|
|
|
628
545
|
|
|
629
546
|
`LocalSandbox` automatically starts on the first command execution if not already running. You can also explicitly start the sandbox by calling `workspace.init()` at application startup to avoid first-command latency.
|
|
630
547
|
|
|
631
|
-
## Constructor
|
|
548
|
+
## Constructor parameters
|
|
632
549
|
|
|
633
550
|
## NativeSandboxConfig
|
|
634
551
|
|
|
@@ -675,8 +592,6 @@ const ready = await sandbox.isReady();
|
|
|
675
592
|
// true if status is 'running'
|
|
676
593
|
```
|
|
677
594
|
|
|
678
|
-
**Returns:** `Promise<boolean>`
|
|
679
|
-
|
|
680
595
|
### `executeCommand(command, args?, options?)`
|
|
681
596
|
|
|
682
597
|
Execute a shell command in the sandbox.
|
|
@@ -691,18 +606,6 @@ const installResult = await sandbox.executeCommand('npm', ['install', 'lodash'],
|
|
|
691
606
|
|
|
692
607
|
**Parameters:**
|
|
693
608
|
|
|
694
|
-
**Returns:** `Promise<CommandResult>`
|
|
695
|
-
|
|
696
|
-
```typescript
|
|
697
|
-
interface CommandResult {
|
|
698
|
-
success: boolean;
|
|
699
|
-
stdout: string;
|
|
700
|
-
stderr: string;
|
|
701
|
-
exitCode: number;
|
|
702
|
-
executionTimeMs: number;
|
|
703
|
-
}
|
|
704
|
-
```
|
|
705
|
-
|
|
706
609
|
### `getInfo()`
|
|
707
610
|
|
|
708
611
|
Get sandbox status and resource information.
|
|
@@ -712,22 +615,6 @@ const info = await sandbox.getInfo();
|
|
|
712
615
|
// { status: 'running', resources: { ... } }
|
|
713
616
|
```
|
|
714
617
|
|
|
715
|
-
**Returns:** `Promise<SandboxInfo>`
|
|
716
|
-
|
|
717
|
-
```typescript
|
|
718
|
-
interface SandboxInfo {
|
|
719
|
-
status: 'starting' | 'running' | 'stopped' | 'error';
|
|
720
|
-
resources?: {
|
|
721
|
-
memoryMB?: number;
|
|
722
|
-
memoryUsedMB?: number;
|
|
723
|
-
cpuCores?: number;
|
|
724
|
-
cpuPercent?: number;
|
|
725
|
-
diskMB?: number;
|
|
726
|
-
diskUsedMB?: number;
|
|
727
|
-
};
|
|
728
|
-
}
|
|
729
|
-
```
|
|
730
|
-
|
|
731
618
|
### `getInstructions()`
|
|
732
619
|
|
|
733
620
|
Returns a description of how this sandbox works. Used in tool descriptions.
|
|
@@ -737,8 +624,6 @@ const instructions = sandbox.getInstructions();
|
|
|
737
624
|
// 'Local command execution. Working directory: "/workspace".'
|
|
738
625
|
```
|
|
739
626
|
|
|
740
|
-
**Returns:** `string`
|
|
741
|
-
|
|
742
627
|
## Path Resolution
|
|
743
628
|
|
|
744
629
|
### Relative paths and execution context
|
|
@@ -778,16 +663,6 @@ const detection = LocalSandbox.detectIsolation();
|
|
|
778
663
|
// { backend: 'seatbelt', available: true, message: 'Seatbelt available on macOS' }
|
|
779
664
|
```
|
|
780
665
|
|
|
781
|
-
**Returns:** `SandboxDetectionResult`
|
|
782
|
-
|
|
783
|
-
```typescript
|
|
784
|
-
interface SandboxDetectionResult {
|
|
785
|
-
backend: IsolationBackend;
|
|
786
|
-
available: boolean;
|
|
787
|
-
message: string;
|
|
788
|
-
}
|
|
789
|
-
```
|
|
790
|
-
|
|
791
666
|
## Environment Isolation
|
|
792
667
|
|
|
793
668
|
By default, `LocalSandbox` only includes `PATH` in the environment. This allows commands to run while preventing accidental exposure of API keys and secrets.
|
|
@@ -894,9 +769,9 @@ const workspace = new Workspace({
|
|
|
894
769
|
});
|
|
895
770
|
```
|
|
896
771
|
|
|
897
|
-
## Constructor
|
|
772
|
+
## Constructor parameters
|
|
898
773
|
|
|
899
|
-
## Tool
|
|
774
|
+
## Tool configuration
|
|
900
775
|
|
|
901
776
|
The `tools` option accepts a `WorkspaceToolsConfig` object that controls which workspace tools are enabled and their safety settings.
|
|
902
777
|
|
|
@@ -919,9 +794,9 @@ The config object has two parts:
|
|
|
919
794
|
- **Global defaults** (`enabled`, `requireApproval`) - Apply to all tools unless overridden
|
|
920
795
|
- **Per-tool overrides** - Use `WORKSPACE_TOOLS` constants as keys to configure individual tools
|
|
921
796
|
|
|
922
|
-
See [
|
|
797
|
+
See [workspace overview](https://mastra.ai/docs/workspace/overview#tool-configuration) for more examples.
|
|
923
798
|
|
|
924
|
-
### Per-tool
|
|
799
|
+
### Per-tool options
|
|
925
800
|
|
|
926
801
|
Each tool can be configured with these options:
|
|
927
802
|
|
|
@@ -941,7 +816,7 @@ await workspace.init();
|
|
|
941
816
|
|
|
942
817
|
Calling `init()` is optional in most cases:
|
|
943
818
|
- **Sandbox**: Auto-starts on first `executeCommand()` call. Use `init()` to avoid first-command latency.
|
|
944
|
-
- **Filesystem**:
|
|
819
|
+
- **Filesystem**: Creates the base directory and runs any provider-specific setup. Some providers auto-create the directory on first operation.
|
|
945
820
|
- **Search**: Required only if using `autoIndexPaths` for auto-indexing.
|
|
946
821
|
|
|
947
822
|
Initialization performs:
|
|
@@ -957,7 +832,7 @@ Destroy the workspace and clean up resources.
|
|
|
957
832
|
await workspace.destroy();
|
|
958
833
|
```
|
|
959
834
|
|
|
960
|
-
### Search
|
|
835
|
+
### Search operations
|
|
961
836
|
|
|
962
837
|
#### `index(path, content, options?)`
|
|
963
838
|
|
|
@@ -1024,7 +899,7 @@ Get the tools configuration.
|
|
|
1024
899
|
const config = workspace.getToolsConfig();
|
|
1025
900
|
```
|
|
1026
901
|
|
|
1027
|
-
## Agent
|
|
902
|
+
## Agent tools
|
|
1028
903
|
|
|
1029
904
|
A workspace provides tools to agents based on what is configured.
|
|
1030
905
|
|
|
@@ -1065,7 +940,7 @@ The `index` tool is excluded when the filesystem is in read-only mode.
|
|
|
1065
940
|
|
|
1066
941
|
## Related
|
|
1067
942
|
|
|
1068
|
-
- [Workspace
|
|
1069
|
-
- [Search and
|
|
1070
|
-
- [Filesystem
|
|
1071
|
-
- [Sandbox
|
|
943
|
+
- [Workspace overview](https://mastra.ai/docs/workspace/overview)
|
|
944
|
+
- [Search and indexing](https://mastra.ai/docs/workspace/search)
|
|
945
|
+
- [Filesystem reference](https://mastra.ai/reference/workspace/filesystem)
|
|
946
|
+
- [Sandbox reference](https://mastra.ai/reference/workspace/sandbox)
|
package/dist/evals/index.cjs
CHANGED
|
@@ -1,78 +1,78 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
var
|
|
5
|
-
var
|
|
3
|
+
var chunkODNSWEMV_cjs = require('../chunk-ODNSWEMV.cjs');
|
|
4
|
+
var chunkW57QS6F6_cjs = require('../chunk-W57QS6F6.cjs');
|
|
5
|
+
var chunkY2SVKUOQ_cjs = require('../chunk-Y2SVKUOQ.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 chunkODNSWEMV_cjs.runEvals; }
|
|
12
12
|
});
|
|
13
13
|
Object.defineProperty(exports, "MastraScorer", {
|
|
14
14
|
enumerable: true,
|
|
15
|
-
get: function () { return
|
|
15
|
+
get: function () { return chunkW57QS6F6_cjs.MastraScorer; }
|
|
16
16
|
});
|
|
17
17
|
Object.defineProperty(exports, "createScorer", {
|
|
18
18
|
enumerable: true,
|
|
19
|
-
get: function () { return
|
|
19
|
+
get: function () { return chunkW57QS6F6_cjs.createScorer; }
|
|
20
20
|
});
|
|
21
21
|
Object.defineProperty(exports, "listScoresResponseSchema", {
|
|
22
22
|
enumerable: true,
|
|
23
|
-
get: function () { return
|
|
23
|
+
get: function () { return chunkY2SVKUOQ_cjs.listScoresResponseSchema; }
|
|
24
24
|
});
|
|
25
25
|
Object.defineProperty(exports, "saveScorePayloadSchema", {
|
|
26
26
|
enumerable: true,
|
|
27
|
-
get: function () { return
|
|
27
|
+
get: function () { return chunkY2SVKUOQ_cjs.saveScorePayloadSchema; }
|
|
28
28
|
});
|
|
29
29
|
Object.defineProperty(exports, "scoreResultSchema", {
|
|
30
30
|
enumerable: true,
|
|
31
|
-
get: function () { return
|
|
31
|
+
get: function () { return chunkY2SVKUOQ_cjs.scoreResultSchema; }
|
|
32
32
|
});
|
|
33
33
|
Object.defineProperty(exports, "scoreRowDataSchema", {
|
|
34
34
|
enumerable: true,
|
|
35
|
-
get: function () { return
|
|
35
|
+
get: function () { return chunkY2SVKUOQ_cjs.scoreRowDataSchema; }
|
|
36
36
|
});
|
|
37
37
|
Object.defineProperty(exports, "scoringEntityTypeSchema", {
|
|
38
38
|
enumerable: true,
|
|
39
|
-
get: function () { return
|
|
39
|
+
get: function () { return chunkY2SVKUOQ_cjs.scoringEntityTypeSchema; }
|
|
40
40
|
});
|
|
41
41
|
Object.defineProperty(exports, "scoringExtractStepResultSchema", {
|
|
42
42
|
enumerable: true,
|
|
43
|
-
get: function () { return
|
|
43
|
+
get: function () { return chunkY2SVKUOQ_cjs.scoringExtractStepResultSchema; }
|
|
44
44
|
});
|
|
45
45
|
Object.defineProperty(exports, "scoringHookInputSchema", {
|
|
46
46
|
enumerable: true,
|
|
47
|
-
get: function () { return
|
|
47
|
+
get: function () { return chunkY2SVKUOQ_cjs.scoringHookInputSchema; }
|
|
48
48
|
});
|
|
49
49
|
Object.defineProperty(exports, "scoringInputSchema", {
|
|
50
50
|
enumerable: true,
|
|
51
|
-
get: function () { return
|
|
51
|
+
get: function () { return chunkY2SVKUOQ_cjs.scoringInputSchema; }
|
|
52
52
|
});
|
|
53
53
|
Object.defineProperty(exports, "scoringInputWithExtractStepResultAndAnalyzeStepResultSchema", {
|
|
54
54
|
enumerable: true,
|
|
55
|
-
get: function () { return
|
|
55
|
+
get: function () { return chunkY2SVKUOQ_cjs.scoringInputWithExtractStepResultAndAnalyzeStepResultSchema; }
|
|
56
56
|
});
|
|
57
57
|
Object.defineProperty(exports, "scoringInputWithExtractStepResultAndScoreAndReasonSchema", {
|
|
58
58
|
enumerable: true,
|
|
59
|
-
get: function () { return
|
|
59
|
+
get: function () { return chunkY2SVKUOQ_cjs.scoringInputWithExtractStepResultAndScoreAndReasonSchema; }
|
|
60
60
|
});
|
|
61
61
|
Object.defineProperty(exports, "scoringInputWithExtractStepResultSchema", {
|
|
62
62
|
enumerable: true,
|
|
63
|
-
get: function () { return
|
|
63
|
+
get: function () { return chunkY2SVKUOQ_cjs.scoringInputWithExtractStepResultSchema; }
|
|
64
64
|
});
|
|
65
65
|
Object.defineProperty(exports, "scoringPromptsSchema", {
|
|
66
66
|
enumerable: true,
|
|
67
|
-
get: function () { return
|
|
67
|
+
get: function () { return chunkY2SVKUOQ_cjs.scoringPromptsSchema; }
|
|
68
68
|
});
|
|
69
69
|
Object.defineProperty(exports, "scoringSourceSchema", {
|
|
70
70
|
enumerable: true,
|
|
71
|
-
get: function () { return
|
|
71
|
+
get: function () { return chunkY2SVKUOQ_cjs.scoringSourceSchema; }
|
|
72
72
|
});
|
|
73
73
|
Object.defineProperty(exports, "scoringValueSchema", {
|
|
74
74
|
enumerable: true,
|
|
75
|
-
get: function () { return
|
|
75
|
+
get: function () { return chunkY2SVKUOQ_cjs.scoringValueSchema; }
|
|
76
76
|
});
|
|
77
77
|
//# sourceMappingURL=index.cjs.map
|
|
78
78
|
//# sourceMappingURL=index.cjs.map
|
package/dist/evals/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export { runEvals } from '../chunk-
|
|
2
|
-
export { MastraScorer, createScorer } from '../chunk-
|
|
3
|
-
export { listScoresResponseSchema, saveScorePayloadSchema, scoreResultSchema, scoreRowDataSchema, scoringEntityTypeSchema, scoringExtractStepResultSchema, scoringHookInputSchema, scoringInputSchema, scoringInputWithExtractStepResultAndAnalyzeStepResultSchema, scoringInputWithExtractStepResultAndScoreAndReasonSchema, scoringInputWithExtractStepResultSchema, scoringPromptsSchema, scoringSourceSchema, scoringValueSchema } from '../chunk-
|
|
1
|
+
export { runEvals } from '../chunk-USHB3SPM.js';
|
|
2
|
+
export { MastraScorer, createScorer } from '../chunk-FAJYC6PA.js';
|
|
3
|
+
export { listScoresResponseSchema, saveScorePayloadSchema, scoreResultSchema, scoreRowDataSchema, scoringEntityTypeSchema, scoringExtractStepResultSchema, scoringHookInputSchema, scoringInputSchema, scoringInputWithExtractStepResultAndAnalyzeStepResultSchema, scoringInputWithExtractStepResultAndScoreAndReasonSchema, scoringInputWithExtractStepResultSchema, scoringPromptsSchema, scoringSourceSchema, scoringValueSchema } from '../chunk-CILDTRXD.js';
|
|
4
4
|
//# sourceMappingURL=index.js.map
|
|
5
5
|
//# sourceMappingURL=index.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
var
|
|
3
|
+
var chunkOAOMKZXU_cjs = require('../../chunk-OAOMKZXU.cjs');
|
|
4
|
+
var chunkY2SVKUOQ_cjs = require('../../chunk-Y2SVKUOQ.cjs');
|
|
5
5
|
var chunk4U7ZLI36_cjs = require('../../chunk-4U7ZLI36.cjs');
|
|
6
6
|
var pMap = require('p-map');
|
|
7
7
|
var z = require('zod');
|
|
@@ -235,7 +235,7 @@ function transformTraceToScorerInputAndOutput(trace) {
|
|
|
235
235
|
}
|
|
236
236
|
|
|
237
237
|
// src/evals/scoreTraces/scoreTracesWorkflow.ts
|
|
238
|
-
var getTraceStep =
|
|
238
|
+
var getTraceStep = chunkOAOMKZXU_cjs.createStep({
|
|
239
239
|
id: "__process-trace-scoring",
|
|
240
240
|
inputSchema: z__default.default.object({
|
|
241
241
|
targets: z__default.default.array(
|
|
@@ -381,7 +381,7 @@ async function validateAndSaveScore({ storage, scorerResult }) {
|
|
|
381
381
|
text: "Scores storage domain is not available"
|
|
382
382
|
});
|
|
383
383
|
}
|
|
384
|
-
const payloadToSave =
|
|
384
|
+
const payloadToSave = chunkY2SVKUOQ_cjs.saveScorePayloadSchema.parse(scorerResult);
|
|
385
385
|
const result = await scoresStore.saveScore(payloadToSave);
|
|
386
386
|
return result.score;
|
|
387
387
|
}
|
|
@@ -432,7 +432,7 @@ async function attachScoreToSpan({
|
|
|
432
432
|
updates: { links: [...existingLinks, link] }
|
|
433
433
|
});
|
|
434
434
|
}
|
|
435
|
-
var scoreTracesWorkflow =
|
|
435
|
+
var scoreTracesWorkflow = chunkOAOMKZXU_cjs.createWorkflow({
|
|
436
436
|
id: "__batch-scoring-traces",
|
|
437
437
|
inputSchema: z__default.default.object({
|
|
438
438
|
targets: z__default.default.array(
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { createStep, createWorkflow } from '../../chunk-
|
|
2
|
-
import { saveScorePayloadSchema } from '../../chunk-
|
|
1
|
+
import { createStep, createWorkflow } from '../../chunk-FYMM4PKR.js';
|
|
2
|
+
import { saveScorePayloadSchema } from '../../chunk-CILDTRXD.js';
|
|
3
3
|
import { MastraError } from '../../chunk-FJEVLHJT.js';
|
|
4
4
|
import pMap from 'p-map';
|
|
5
5
|
import z from 'zod';
|
package/dist/index.cjs
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkXVHK5IAO_cjs = require('./chunk-XVHK5IAO.cjs');
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
Object.defineProperty(exports, "Mastra", {
|
|
8
8
|
enumerable: true,
|
|
9
|
-
get: function () { return
|
|
9
|
+
get: function () { return chunkXVHK5IAO_cjs.Mastra; }
|
|
10
10
|
});
|
|
11
11
|
//# sourceMappingURL=index.cjs.map
|
|
12
12
|
//# sourceMappingURL=index.cjs.map
|
package/dist/index.js
CHANGED
package/dist/llm/index.cjs
CHANGED
|
@@ -1,52 +1,52 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
var
|
|
5
|
-
var
|
|
6
|
-
var
|
|
7
|
-
var
|
|
3
|
+
var chunkBLXWTBLL_cjs = require('../chunk-BLXWTBLL.cjs');
|
|
4
|
+
var chunkVZXYBFCX_cjs = require('../chunk-VZXYBFCX.cjs');
|
|
5
|
+
var chunkEYUXOOSQ_cjs = require('../chunk-EYUXOOSQ.cjs');
|
|
6
|
+
var chunkSTNSGW7W_cjs = require('../chunk-STNSGW7W.cjs');
|
|
7
|
+
var chunkUZL4H5P2_cjs = require('../chunk-UZL4H5P2.cjs');
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
Object.defineProperty(exports, "AzureOpenAIGateway", {
|
|
12
12
|
enumerable: true,
|
|
13
|
-
get: function () { return
|
|
13
|
+
get: function () { return chunkBLXWTBLL_cjs.AzureOpenAIGateway; }
|
|
14
14
|
});
|
|
15
15
|
Object.defineProperty(exports, "ModelRouterEmbeddingModel", {
|
|
16
16
|
enumerable: true,
|
|
17
|
-
get: function () { return
|
|
17
|
+
get: function () { return chunkBLXWTBLL_cjs.ModelRouterEmbeddingModel; }
|
|
18
18
|
});
|
|
19
19
|
Object.defineProperty(exports, "ModelRouterLanguageModel", {
|
|
20
20
|
enumerable: true,
|
|
21
|
-
get: function () { return
|
|
21
|
+
get: function () { return chunkBLXWTBLL_cjs.ModelRouterLanguageModel; }
|
|
22
22
|
});
|
|
23
23
|
Object.defineProperty(exports, "resolveModelConfig", {
|
|
24
24
|
enumerable: true,
|
|
25
|
-
get: function () { return
|
|
25
|
+
get: function () { return chunkBLXWTBLL_cjs.resolveModelConfig; }
|
|
26
26
|
});
|
|
27
27
|
Object.defineProperty(exports, "NetlifyGateway", {
|
|
28
28
|
enumerable: true,
|
|
29
|
-
get: function () { return
|
|
29
|
+
get: function () { return chunkVZXYBFCX_cjs.NetlifyGateway; }
|
|
30
30
|
});
|
|
31
31
|
Object.defineProperty(exports, "PROVIDER_REGISTRY", {
|
|
32
32
|
enumerable: true,
|
|
33
|
-
get: function () { return
|
|
33
|
+
get: function () { return chunkEYUXOOSQ_cjs.PROVIDER_REGISTRY; }
|
|
34
34
|
});
|
|
35
35
|
Object.defineProperty(exports, "getProviderConfig", {
|
|
36
36
|
enumerable: true,
|
|
37
|
-
get: function () { return
|
|
37
|
+
get: function () { return chunkEYUXOOSQ_cjs.getProviderConfig; }
|
|
38
38
|
});
|
|
39
39
|
Object.defineProperty(exports, "parseModelString", {
|
|
40
40
|
enumerable: true,
|
|
41
|
-
get: function () { return
|
|
41
|
+
get: function () { return chunkEYUXOOSQ_cjs.parseModelString; }
|
|
42
42
|
});
|
|
43
43
|
Object.defineProperty(exports, "ModelsDevGateway", {
|
|
44
44
|
enumerable: true,
|
|
45
|
-
get: function () { return
|
|
45
|
+
get: function () { return chunkSTNSGW7W_cjs.ModelsDevGateway; }
|
|
46
46
|
});
|
|
47
47
|
Object.defineProperty(exports, "MastraModelGateway", {
|
|
48
48
|
enumerable: true,
|
|
49
|
-
get: function () { return
|
|
49
|
+
get: function () { return chunkUZL4H5P2_cjs.MastraModelGateway; }
|
|
50
50
|
});
|
|
51
51
|
//# sourceMappingURL=index.cjs.map
|
|
52
52
|
//# sourceMappingURL=index.cjs.map
|
package/dist/llm/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
export { AzureOpenAIGateway, ModelRouterEmbeddingModel, ModelRouterLanguageModel, resolveModelConfig } from '../chunk-
|
|
2
|
-
export { NetlifyGateway } from '../chunk-
|
|
3
|
-
export { PROVIDER_REGISTRY, getProviderConfig, parseModelString } from '../chunk-
|
|
4
|
-
export { ModelsDevGateway } from '../chunk-
|
|
5
|
-
export { MastraModelGateway } from '../chunk-
|
|
1
|
+
export { AzureOpenAIGateway, ModelRouterEmbeddingModel, ModelRouterLanguageModel, resolveModelConfig } from '../chunk-SPVI7HCP.js';
|
|
2
|
+
export { NetlifyGateway } from '../chunk-W3AQUG66.js';
|
|
3
|
+
export { PROVIDER_REGISTRY, getProviderConfig, parseModelString } from '../chunk-XS2MED4Y.js';
|
|
4
|
+
export { ModelsDevGateway } from '../chunk-AC63Y6KP.js';
|
|
5
|
+
export { MastraModelGateway } from '../chunk-G6E3QNJC.js';
|
|
6
6
|
//# sourceMappingURL=index.js.map
|
|
7
7
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"models-dev.d.ts","sourceRoot":"","sources":["../../../../src/llm/model/gateways/models-dev.ts"],"names":[],"mappings":"AASA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AAK3D,OAAO,EAAE,kBAAkB,EAAE,MAAM,WAAW,CAAC;AAC/C,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,WAAW,CAAC;
|
|
1
|
+
{"version":3,"file":"models-dev.d.ts","sourceRoot":"","sources":["../../../../src/llm/model/gateways/models-dev.ts"],"names":[],"mappings":"AASA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AAK3D,OAAO,EAAE,kBAAkB,EAAE,MAAM,WAAW,CAAC;AAC/C,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,WAAW,CAAC;AA8ChD,qBAAa,gBAAiB,SAAQ,kBAAkB;IACtD,QAAQ,CAAC,EAAE,gBAAgB;IAC3B,QAAQ,CAAC,IAAI,gBAAgB;IAE7B,OAAO,CAAC,eAAe,CAAsC;gBAEjD,eAAe,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,cAAc,CAAC;IAKtD,cAAc,IAAI,OAAO,CAAC,MAAM,CAAC,MAAM,EAAE,cAAc,CAAC,CAAC;IAiF/D,QAAQ,CAAC,QAAQ,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,OAAO,OAAO,CAAC,GAAG,GAAG,MAAM,GAAG,SAAS;IAgB5E,SAAS,CAAC,OAAO,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC;IAoBrC,oBAAoB,CAAC,EACzB,OAAO,EACP,UAAU,EACV,MAAM,EACN,OAAO,GACR,EAAE;QACD,OAAO,EAAE,MAAM,CAAC;QAChB,UAAU,EAAE,MAAM,CAAC;QACnB,MAAM,EAAE,MAAM,CAAC;QACf,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;KAClC,GAAG,OAAO,CAAC,eAAe,CAAC;CAuE7B"}
|