@mastra/core 0.9.0 → 0.9.1-alpha.1
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/dist/agent/index.cjs +2 -2
- package/dist/agent/index.d.cts +4 -2
- package/dist/agent/index.d.ts +4 -2
- package/dist/agent/index.js +1 -1
- package/dist/{base-oP3DoUrm.d.cts → base-CZmT-p10.d.cts} +524 -53
- package/dist/{base-Bk5V1doj.d.ts → base-DDoWFpFc.d.ts} +524 -53
- package/dist/{chunk-NTHHPNOW.js → chunk-34622N67.js} +1 -1
- package/dist/{chunk-ATXF6TIO.cjs → chunk-422BXQRT.cjs} +24 -677
- package/dist/{chunk-HARYMLZH.js → chunk-4K4DHXRF.js} +6 -658
- package/dist/{chunk-N2ONCUUS.js → chunk-6AHC67YY.js} +132 -12
- package/dist/chunk-7AGAXO6B.cjs +588 -0
- package/dist/{chunk-GEIPVIW4.js → chunk-BFF2O6RO.js} +1 -1
- package/dist/{chunk-RASVJ3TR.js → chunk-BU45BMXY.js} +55 -1
- package/dist/{chunk-DIZZQ3E5.cjs → chunk-CEXM6WP5.cjs} +2 -2
- package/dist/chunk-HNEE7IF4.js +60 -0
- package/dist/{chunk-NZDXKMDP.cjs → chunk-LABUWBKX.cjs} +1 -1
- package/dist/chunk-MUNFCOMB.cjs +62 -0
- package/dist/{chunk-GJWCFDFN.js → chunk-PS2ZF6MA.js} +1 -1
- package/dist/{chunk-M472GIT6.js → chunk-SGGPJWRQ.js} +1 -1
- package/dist/{chunk-7CSNWYGJ.cjs → chunk-U5DGGGS2.cjs} +2 -2
- package/dist/{chunk-W5IA5OGL.cjs → chunk-V7IE36YV.cjs} +58 -4
- package/dist/chunk-VMVXIPGW.js +586 -0
- package/dist/{chunk-53P5ZBJE.cjs → chunk-YTTBFAQJ.cjs} +2 -2
- package/dist/{chunk-KZWBYRXW.cjs → chunk-YZFNMXY4.cjs} +135 -14
- package/dist/di/index.cjs +2 -2
- package/dist/di/index.d.cts +1 -52
- package/dist/di/index.d.ts +1 -52
- package/dist/di/index.js +1 -1
- package/dist/eval/index.d.cts +4 -2
- package/dist/eval/index.d.ts +4 -2
- package/dist/index.cjs +60 -55
- package/dist/index.d.cts +5 -3
- package/dist/index.d.ts +5 -3
- package/dist/index.js +10 -9
- package/dist/integration/index.cjs +3 -3
- package/dist/integration/index.d.cts +4 -2
- package/dist/integration/index.d.ts +4 -2
- package/dist/integration/index.js +1 -1
- package/dist/llm/index.cjs +8 -0
- package/dist/llm/index.d.cts +4 -2
- package/dist/llm/index.d.ts +4 -2
- package/dist/llm/index.js +1 -1
- package/dist/mastra/index.cjs +2 -2
- package/dist/mastra/index.d.cts +4 -2
- package/dist/mastra/index.d.ts +4 -2
- package/dist/mastra/index.js +1 -1
- package/dist/memory/index.cjs +7 -3
- package/dist/memory/index.d.cts +4 -2
- package/dist/memory/index.d.ts +4 -2
- package/dist/memory/index.js +1 -1
- package/dist/network/index.cjs +4 -4
- package/dist/network/index.d.cts +4 -2
- package/dist/network/index.d.ts +4 -2
- package/dist/network/index.js +2 -2
- package/dist/relevance/index.cjs +4 -4
- package/dist/relevance/index.d.cts +4 -2
- package/dist/relevance/index.d.ts +4 -2
- package/dist/relevance/index.js +1 -1
- package/dist/runtime-context/index.cjs +7 -68
- package/dist/runtime-context/index.js +1 -69
- package/dist/server/index.d.cts +4 -2
- package/dist/server/index.d.ts +4 -2
- package/dist/storage/index.d.cts +4 -2
- package/dist/storage/index.d.ts +4 -2
- package/dist/storage/libsql/index.cjs +19 -0
- package/dist/storage/libsql/index.d.cts +7 -8
- package/dist/storage/libsql/index.d.ts +7 -8
- package/dist/storage/libsql/index.js +19 -0
- package/dist/telemetry/index.d.cts +4 -2
- package/dist/telemetry/index.d.ts +4 -2
- package/dist/tools/index.cjs +4 -4
- package/dist/tools/index.d.cts +4 -2
- package/dist/tools/index.d.ts +4 -2
- package/dist/tools/index.js +1 -1
- package/dist/utils.cjs +14 -14
- package/dist/utils.d.cts +6 -4
- package/dist/utils.d.ts +6 -4
- package/dist/utils.js +1 -1
- package/dist/voice/index.d.cts +5 -3
- package/dist/voice/index.d.ts +5 -3
- package/dist/workflows/index.cjs +22 -26
- package/dist/workflows/index.d.cts +5 -3
- package/dist/workflows/index.d.ts +5 -3
- package/dist/workflows/index.js +1 -1
- package/dist/workflows/vNext/index.cjs +1058 -0
- package/dist/workflows/vNext/index.d.cts +180 -0
- package/dist/workflows/vNext/index.d.ts +180 -0
- package/dist/workflows/vNext/index.js +1046 -0
- package/package.json +11 -1
- package/workflows/vNext.d.ts +1 -0
- /package/dist/{chunk-WEYWYKLG.cjs → chunk-27PAET7X.cjs} +0 -0
- /package/dist/{chunk-FRQFWZDN.cjs → chunk-HSVOEWAM.cjs} +0 -0
- /package/dist/{chunk-ZDWFBE5L.js → chunk-NH5WJNNS.js} +0 -0
- /package/dist/{chunk-LANFNMEE.js → chunk-SGTFVHOZ.js} +0 -0
|
@@ -3,7 +3,7 @@ import { SpanKind } from '@opentelemetry/api';
|
|
|
3
3
|
import { ExportResult } from '@opentelemetry/core';
|
|
4
4
|
import { SpanExporter, ReadableSpan } from '@opentelemetry/sdk-trace-base';
|
|
5
5
|
import { L as Logger } from '../index-CquI0inB.cjs';
|
|
6
|
-
import { e as MastraStorage } from '../base-
|
|
6
|
+
import { e as MastraStorage } from '../base-CZmT-p10.cjs';
|
|
7
7
|
import 'stream';
|
|
8
8
|
import 'pino';
|
|
9
9
|
import 'ai';
|
|
@@ -11,17 +11,19 @@ import '../types-BtMyV38I.cjs';
|
|
|
11
11
|
import 'sift';
|
|
12
12
|
import 'zod';
|
|
13
13
|
import 'json-schema';
|
|
14
|
-
import '../
|
|
14
|
+
import '../runtime-context/index.cjs';
|
|
15
15
|
import 'xstate';
|
|
16
16
|
import 'node:events';
|
|
17
17
|
import '../vector/index.cjs';
|
|
18
18
|
import '../vector/filter/index.cjs';
|
|
19
19
|
import '../tts/index.cjs';
|
|
20
|
+
import 'events';
|
|
20
21
|
import '../deployer/index.cjs';
|
|
21
22
|
import '../bundler/index.cjs';
|
|
22
23
|
import 'hono';
|
|
23
24
|
import 'hono/cors';
|
|
24
25
|
import 'hono-openapi';
|
|
26
|
+
import 'ai/test';
|
|
25
27
|
|
|
26
28
|
declare function withSpan(options: {
|
|
27
29
|
spanName?: string;
|
|
@@ -3,7 +3,7 @@ import { SpanKind } from '@opentelemetry/api';
|
|
|
3
3
|
import { ExportResult } from '@opentelemetry/core';
|
|
4
4
|
import { SpanExporter, ReadableSpan } from '@opentelemetry/sdk-trace-base';
|
|
5
5
|
import { L as Logger } from '../index-CquI0inB.js';
|
|
6
|
-
import { e as MastraStorage } from '../base-
|
|
6
|
+
import { e as MastraStorage } from '../base-DDoWFpFc.js';
|
|
7
7
|
import 'stream';
|
|
8
8
|
import 'pino';
|
|
9
9
|
import 'ai';
|
|
@@ -11,17 +11,19 @@ import '../types-BtMyV38I.js';
|
|
|
11
11
|
import 'sift';
|
|
12
12
|
import 'zod';
|
|
13
13
|
import 'json-schema';
|
|
14
|
-
import '../
|
|
14
|
+
import '../runtime-context/index.js';
|
|
15
15
|
import 'xstate';
|
|
16
16
|
import 'node:events';
|
|
17
17
|
import '../vector/index.js';
|
|
18
18
|
import '../vector/filter/index.js';
|
|
19
19
|
import '../tts/index.js';
|
|
20
|
+
import 'events';
|
|
20
21
|
import '../deployer/index.js';
|
|
21
22
|
import '../bundler/index.js';
|
|
22
23
|
import 'hono';
|
|
23
24
|
import 'hono/cors';
|
|
24
25
|
import 'hono-openapi';
|
|
26
|
+
import 'ai/test';
|
|
25
27
|
|
|
26
28
|
declare function withSpan(options: {
|
|
27
29
|
spanName?: string;
|
package/dist/tools/index.cjs
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkYTTBFAQJ_cjs = require('../chunk-YTTBFAQJ.cjs');
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
Object.defineProperty(exports, "Tool", {
|
|
8
8
|
enumerable: true,
|
|
9
|
-
get: function () { return
|
|
9
|
+
get: function () { return chunkYTTBFAQJ_cjs.Tool; }
|
|
10
10
|
});
|
|
11
11
|
Object.defineProperty(exports, "createTool", {
|
|
12
12
|
enumerable: true,
|
|
13
|
-
get: function () { return
|
|
13
|
+
get: function () { return chunkYTTBFAQJ_cjs.createTool; }
|
|
14
14
|
});
|
|
15
15
|
Object.defineProperty(exports, "isVercelTool", {
|
|
16
16
|
enumerable: true,
|
|
17
|
-
get: function () { return
|
|
17
|
+
get: function () { return chunkYTTBFAQJ_cjs.isVercelTool; }
|
|
18
18
|
});
|
package/dist/tools/index.d.cts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export {
|
|
1
|
+
export { au as CoreTool, J as Tool, D as ToolAction, I as ToolExecutionContext, at as VercelTool, as as createTool } from '../base-CZmT-p10.cjs';
|
|
2
2
|
export { isVercelTool } from '../utils.cjs';
|
|
3
3
|
import 'ai';
|
|
4
4
|
import '../base-BihKcqDY.cjs';
|
|
@@ -11,14 +11,16 @@ import '../types-BtMyV38I.cjs';
|
|
|
11
11
|
import 'sift';
|
|
12
12
|
import 'zod';
|
|
13
13
|
import 'json-schema';
|
|
14
|
-
import '../
|
|
14
|
+
import '../runtime-context/index.cjs';
|
|
15
15
|
import 'xstate';
|
|
16
16
|
import 'node:events';
|
|
17
17
|
import '../vector/index.cjs';
|
|
18
18
|
import '../vector/filter/index.cjs';
|
|
19
19
|
import '../tts/index.cjs';
|
|
20
|
+
import 'events';
|
|
20
21
|
import '../deployer/index.cjs';
|
|
21
22
|
import '../bundler/index.cjs';
|
|
22
23
|
import 'hono';
|
|
23
24
|
import 'hono/cors';
|
|
24
25
|
import 'hono-openapi';
|
|
26
|
+
import 'ai/test';
|
package/dist/tools/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export {
|
|
1
|
+
export { au as CoreTool, J as Tool, D as ToolAction, I as ToolExecutionContext, at as VercelTool, as as createTool } from '../base-DDoWFpFc.js';
|
|
2
2
|
export { isVercelTool } from '../utils.js';
|
|
3
3
|
import 'ai';
|
|
4
4
|
import '../base-DT2poiVK.js';
|
|
@@ -11,14 +11,16 @@ import '../types-BtMyV38I.js';
|
|
|
11
11
|
import 'sift';
|
|
12
12
|
import 'zod';
|
|
13
13
|
import 'json-schema';
|
|
14
|
-
import '../
|
|
14
|
+
import '../runtime-context/index.js';
|
|
15
15
|
import 'xstate';
|
|
16
16
|
import 'node:events';
|
|
17
17
|
import '../vector/index.js';
|
|
18
18
|
import '../vector/filter/index.js';
|
|
19
19
|
import '../tts/index.js';
|
|
20
|
+
import 'events';
|
|
20
21
|
import '../deployer/index.js';
|
|
21
22
|
import '../bundler/index.js';
|
|
22
23
|
import 'hono';
|
|
23
24
|
import 'hono/cors';
|
|
24
25
|
import 'hono-openapi';
|
|
26
|
+
import 'ai/test';
|
package/dist/tools/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { Tool, createTool, isVercelTool } from '../chunk-
|
|
1
|
+
export { Tool, createTool, isVercelTool } from '../chunk-34622N67.js';
|
package/dist/utils.cjs
CHANGED
|
@@ -1,58 +1,58 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkYTTBFAQJ_cjs = require('./chunk-YTTBFAQJ.cjs');
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
Object.defineProperty(exports, "checkEvalStorageFields", {
|
|
8
8
|
enumerable: true,
|
|
9
|
-
get: function () { return
|
|
9
|
+
get: function () { return chunkYTTBFAQJ_cjs.checkEvalStorageFields; }
|
|
10
10
|
});
|
|
11
11
|
Object.defineProperty(exports, "createMastraProxy", {
|
|
12
12
|
enumerable: true,
|
|
13
|
-
get: function () { return
|
|
13
|
+
get: function () { return chunkYTTBFAQJ_cjs.createMastraProxy; }
|
|
14
14
|
});
|
|
15
15
|
Object.defineProperty(exports, "deepMerge", {
|
|
16
16
|
enumerable: true,
|
|
17
|
-
get: function () { return
|
|
17
|
+
get: function () { return chunkYTTBFAQJ_cjs.deepMerge; }
|
|
18
18
|
});
|
|
19
19
|
Object.defineProperty(exports, "delay", {
|
|
20
20
|
enumerable: true,
|
|
21
|
-
get: function () { return
|
|
21
|
+
get: function () { return chunkYTTBFAQJ_cjs.delay; }
|
|
22
22
|
});
|
|
23
23
|
Object.defineProperty(exports, "ensureAllMessagesAreCoreMessages", {
|
|
24
24
|
enumerable: true,
|
|
25
|
-
get: function () { return
|
|
25
|
+
get: function () { return chunkYTTBFAQJ_cjs.ensureAllMessagesAreCoreMessages; }
|
|
26
26
|
});
|
|
27
27
|
Object.defineProperty(exports, "ensureToolProperties", {
|
|
28
28
|
enumerable: true,
|
|
29
|
-
get: function () { return
|
|
29
|
+
get: function () { return chunkYTTBFAQJ_cjs.ensureToolProperties; }
|
|
30
30
|
});
|
|
31
31
|
Object.defineProperty(exports, "isVercelTool", {
|
|
32
32
|
enumerable: true,
|
|
33
|
-
get: function () { return
|
|
33
|
+
get: function () { return chunkYTTBFAQJ_cjs.isVercelTool; }
|
|
34
34
|
});
|
|
35
35
|
Object.defineProperty(exports, "isZodType", {
|
|
36
36
|
enumerable: true,
|
|
37
|
-
get: function () { return
|
|
37
|
+
get: function () { return chunkYTTBFAQJ_cjs.isZodType; }
|
|
38
38
|
});
|
|
39
39
|
Object.defineProperty(exports, "jsonSchemaPropertiesToTSTypes", {
|
|
40
40
|
enumerable: true,
|
|
41
|
-
get: function () { return
|
|
41
|
+
get: function () { return chunkYTTBFAQJ_cjs.jsonSchemaPropertiesToTSTypes; }
|
|
42
42
|
});
|
|
43
43
|
Object.defineProperty(exports, "jsonSchemaToModel", {
|
|
44
44
|
enumerable: true,
|
|
45
|
-
get: function () { return
|
|
45
|
+
get: function () { return chunkYTTBFAQJ_cjs.jsonSchemaToModel; }
|
|
46
46
|
});
|
|
47
47
|
Object.defineProperty(exports, "makeCoreTool", {
|
|
48
48
|
enumerable: true,
|
|
49
|
-
get: function () { return
|
|
49
|
+
get: function () { return chunkYTTBFAQJ_cjs.makeCoreTool; }
|
|
50
50
|
});
|
|
51
51
|
Object.defineProperty(exports, "maskStreamTags", {
|
|
52
52
|
enumerable: true,
|
|
53
|
-
get: function () { return
|
|
53
|
+
get: function () { return chunkYTTBFAQJ_cjs.maskStreamTags; }
|
|
54
54
|
});
|
|
55
55
|
Object.defineProperty(exports, "resolveSerializedZodOutput", {
|
|
56
56
|
enumerable: true,
|
|
57
|
-
get: function () { return
|
|
57
|
+
get: function () { return chunkYTTBFAQJ_cjs.resolveSerializedZodOutput; }
|
|
58
58
|
});
|
package/dist/utils.d.cts
CHANGED
|
@@ -1,17 +1,18 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { at as VercelTool, D as ToolAction, b3 as ToolsInput, a as Mastra, b4 as MastraPrimitives, H as MastraMemory, au as CoreTool, F as Agent, L as Workflow, K as Step, av as StepExecutionContext, aL as WorkflowContext, s as NewWorkflow, N as NewStep, b5 as AgentNetwork } from './base-CZmT-p10.cjs';
|
|
2
2
|
import { CoreMessage, Message } from 'ai';
|
|
3
3
|
import { MastraTTS } from './tts/index.cjs';
|
|
4
4
|
import { MastraVector } from './vector/index.cjs';
|
|
5
|
-
import { z, ZodObject } from 'zod';
|
|
6
5
|
import { a as Metric } from './types-BtMyV38I.cjs';
|
|
6
|
+
import { z, ZodObject } from 'zod';
|
|
7
7
|
import { L as Logger } from './index-CquI0inB.cjs';
|
|
8
8
|
import './base-BihKcqDY.cjs';
|
|
9
|
-
import { RuntimeContext } from './
|
|
9
|
+
import { RuntimeContext } from './runtime-context/index.cjs';
|
|
10
10
|
import 'sift';
|
|
11
11
|
import 'json-schema';
|
|
12
12
|
import '@opentelemetry/api';
|
|
13
13
|
import 'xstate';
|
|
14
14
|
import 'node:events';
|
|
15
|
+
import 'events';
|
|
15
16
|
import './deployer/index.cjs';
|
|
16
17
|
import './bundler/index.cjs';
|
|
17
18
|
import 'stream';
|
|
@@ -20,6 +21,7 @@ import '@opentelemetry/sdk-trace-base';
|
|
|
20
21
|
import 'hono';
|
|
21
22
|
import 'hono/cors';
|
|
22
23
|
import 'hono-openapi';
|
|
24
|
+
import 'ai/test';
|
|
23
25
|
import './vector/filter/index.cjs';
|
|
24
26
|
|
|
25
27
|
declare const delay: (ms: number) => Promise<unknown>;
|
|
@@ -100,7 +102,7 @@ declare function makeCoreTool(tool: ToolToConvert, options: ToolOptions, logType
|
|
|
100
102
|
declare function createMastraProxy({ mastra, logger }: {
|
|
101
103
|
mastra: Mastra;
|
|
102
104
|
logger: Logger;
|
|
103
|
-
}): Mastra<Record<string, Agent<any, ToolsInput, Record<string, Metric>>>, Record<string, Workflow<Step<string, any, any, StepExecutionContext<any, WorkflowContext<any, Step<string, any, any, any>[], Record<string, any>>>>[], string, any, any>>, Record<string, MastraVector>, Record<string, MastraTTS>, Logger, Record<string, AgentNetwork>>;
|
|
105
|
+
}): Mastra<Record<string, Agent<any, ToolsInput, Record<string, Metric>>>, Record<string, Workflow<Step<string, any, any, StepExecutionContext<any, WorkflowContext<any, Step<string, any, any, any>[], Record<string, any>>>>[], string, any, any>>, Record<string, NewWorkflow<NewStep<string, any, any, z.ZodType<any, z.ZodTypeDef, any>, z.ZodType<any, z.ZodTypeDef, any>>[], string, z.ZodType<any, z.ZodTypeDef, any>, z.ZodType<any, z.ZodTypeDef, any>, z.ZodType<any, z.ZodTypeDef, any>>>, Record<string, MastraVector>, Record<string, MastraTTS>, Logger, Record<string, AgentNetwork>>;
|
|
104
106
|
declare function checkEvalStorageFields(traceObject: any, logger?: Logger): boolean;
|
|
105
107
|
declare function ensureAllMessagesAreCoreMessages(messages: (CoreMessage | Message)[]): CoreMessage[];
|
|
106
108
|
|
package/dist/utils.d.ts
CHANGED
|
@@ -1,17 +1,18 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { at as VercelTool, D as ToolAction, b3 as ToolsInput, a as Mastra, b4 as MastraPrimitives, H as MastraMemory, au as CoreTool, F as Agent, L as Workflow, K as Step, av as StepExecutionContext, aL as WorkflowContext, s as NewWorkflow, N as NewStep, b5 as AgentNetwork } from './base-DDoWFpFc.js';
|
|
2
2
|
import { CoreMessage, Message } from 'ai';
|
|
3
3
|
import { MastraTTS } from './tts/index.js';
|
|
4
4
|
import { MastraVector } from './vector/index.js';
|
|
5
|
-
import { z, ZodObject } from 'zod';
|
|
6
5
|
import { a as Metric } from './types-BtMyV38I.js';
|
|
6
|
+
import { z, ZodObject } from 'zod';
|
|
7
7
|
import { L as Logger } from './index-CquI0inB.js';
|
|
8
8
|
import './base-DT2poiVK.js';
|
|
9
|
-
import { RuntimeContext } from './
|
|
9
|
+
import { RuntimeContext } from './runtime-context/index.js';
|
|
10
10
|
import 'sift';
|
|
11
11
|
import 'json-schema';
|
|
12
12
|
import '@opentelemetry/api';
|
|
13
13
|
import 'xstate';
|
|
14
14
|
import 'node:events';
|
|
15
|
+
import 'events';
|
|
15
16
|
import './deployer/index.js';
|
|
16
17
|
import './bundler/index.js';
|
|
17
18
|
import 'stream';
|
|
@@ -20,6 +21,7 @@ import '@opentelemetry/sdk-trace-base';
|
|
|
20
21
|
import 'hono';
|
|
21
22
|
import 'hono/cors';
|
|
22
23
|
import 'hono-openapi';
|
|
24
|
+
import 'ai/test';
|
|
23
25
|
import './vector/filter/index.js';
|
|
24
26
|
|
|
25
27
|
declare const delay: (ms: number) => Promise<unknown>;
|
|
@@ -100,7 +102,7 @@ declare function makeCoreTool(tool: ToolToConvert, options: ToolOptions, logType
|
|
|
100
102
|
declare function createMastraProxy({ mastra, logger }: {
|
|
101
103
|
mastra: Mastra;
|
|
102
104
|
logger: Logger;
|
|
103
|
-
}): Mastra<Record<string, Agent<any, ToolsInput, Record<string, Metric>>>, Record<string, Workflow<Step<string, any, any, StepExecutionContext<any, WorkflowContext<any, Step<string, any, any, any>[], Record<string, any>>>>[], string, any, any>>, Record<string, MastraVector>, Record<string, MastraTTS>, Logger, Record<string, AgentNetwork>>;
|
|
105
|
+
}): Mastra<Record<string, Agent<any, ToolsInput, Record<string, Metric>>>, Record<string, Workflow<Step<string, any, any, StepExecutionContext<any, WorkflowContext<any, Step<string, any, any, any>[], Record<string, any>>>>[], string, any, any>>, Record<string, NewWorkflow<NewStep<string, any, any, z.ZodType<any, z.ZodTypeDef, any>, z.ZodType<any, z.ZodTypeDef, any>>[], string, z.ZodType<any, z.ZodTypeDef, any>, z.ZodType<any, z.ZodTypeDef, any>, z.ZodType<any, z.ZodTypeDef, any>>>, Record<string, MastraVector>, Record<string, MastraTTS>, Logger, Record<string, AgentNetwork>>;
|
|
104
106
|
declare function checkEvalStorageFields(traceObject: any, logger?: Logger): boolean;
|
|
105
107
|
declare function ensureAllMessagesAreCoreMessages(messages: (CoreMessage | Message)[]): CoreMessage[];
|
|
106
108
|
|
package/dist/utils.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { checkEvalStorageFields, createMastraProxy, deepMerge, delay, ensureAllMessagesAreCoreMessages, ensureToolProperties, isVercelTool, isZodType, jsonSchemaPropertiesToTSTypes, jsonSchemaToModel, makeCoreTool, maskStreamTags, resolveSerializedZodOutput } from './chunk-
|
|
1
|
+
export { checkEvalStorageFields, createMastraProxy, deepMerge, delay, ensureAllMessagesAreCoreMessages, ensureToolProperties, isVercelTool, isZodType, jsonSchemaPropertiesToTSTypes, jsonSchemaToModel, makeCoreTool, maskStreamTags, resolveSerializedZodOutput } from './chunk-34622N67.js';
|
package/dist/voice/index.d.cts
CHANGED
|
@@ -1,26 +1,28 @@
|
|
|
1
|
-
import { b as MastraVoice } from '../base-
|
|
2
|
-
export { C as CompositeVoice, d as VoiceConfig, c as VoiceEventMap, V as VoiceEventType } from '../base-
|
|
1
|
+
import { b as MastraVoice } from '../base-CZmT-p10.cjs';
|
|
2
|
+
export { C as CompositeVoice, d as VoiceConfig, c as VoiceEventMap, V as VoiceEventType } from '../base-CZmT-p10.cjs';
|
|
3
3
|
import '../base-BihKcqDY.cjs';
|
|
4
4
|
import 'ai';
|
|
5
5
|
import '../types-BtMyV38I.cjs';
|
|
6
6
|
import 'sift';
|
|
7
7
|
import 'zod';
|
|
8
8
|
import 'json-schema';
|
|
9
|
-
import '../di/index.cjs';
|
|
10
9
|
import '../index-CquI0inB.cjs';
|
|
11
10
|
import 'stream';
|
|
12
11
|
import 'pino';
|
|
12
|
+
import '../runtime-context/index.cjs';
|
|
13
13
|
import '@opentelemetry/api';
|
|
14
14
|
import 'xstate';
|
|
15
15
|
import 'node:events';
|
|
16
16
|
import '../vector/index.cjs';
|
|
17
17
|
import '../vector/filter/index.cjs';
|
|
18
18
|
import '../tts/index.cjs';
|
|
19
|
+
import 'events';
|
|
19
20
|
import '../deployer/index.cjs';
|
|
20
21
|
import '../bundler/index.cjs';
|
|
21
22
|
import 'hono';
|
|
22
23
|
import 'hono/cors';
|
|
23
24
|
import 'hono-openapi';
|
|
25
|
+
import 'ai/test';
|
|
24
26
|
import '@opentelemetry/sdk-trace-base';
|
|
25
27
|
|
|
26
28
|
declare class DefaultVoice extends MastraVoice {
|
package/dist/voice/index.d.ts
CHANGED
|
@@ -1,26 +1,28 @@
|
|
|
1
|
-
import { b as MastraVoice } from '../base-
|
|
2
|
-
export { C as CompositeVoice, d as VoiceConfig, c as VoiceEventMap, V as VoiceEventType } from '../base-
|
|
1
|
+
import { b as MastraVoice } from '../base-DDoWFpFc.js';
|
|
2
|
+
export { C as CompositeVoice, d as VoiceConfig, c as VoiceEventMap, V as VoiceEventType } from '../base-DDoWFpFc.js';
|
|
3
3
|
import '../base-DT2poiVK.js';
|
|
4
4
|
import 'ai';
|
|
5
5
|
import '../types-BtMyV38I.js';
|
|
6
6
|
import 'sift';
|
|
7
7
|
import 'zod';
|
|
8
8
|
import 'json-schema';
|
|
9
|
-
import '../di/index.js';
|
|
10
9
|
import '../index-CquI0inB.js';
|
|
11
10
|
import 'stream';
|
|
12
11
|
import 'pino';
|
|
12
|
+
import '../runtime-context/index.js';
|
|
13
13
|
import '@opentelemetry/api';
|
|
14
14
|
import 'xstate';
|
|
15
15
|
import 'node:events';
|
|
16
16
|
import '../vector/index.js';
|
|
17
17
|
import '../vector/filter/index.js';
|
|
18
18
|
import '../tts/index.js';
|
|
19
|
+
import 'events';
|
|
19
20
|
import '../deployer/index.js';
|
|
20
21
|
import '../bundler/index.js';
|
|
21
22
|
import 'hono';
|
|
22
23
|
import 'hono/cors';
|
|
23
24
|
import 'hono-openapi';
|
|
25
|
+
import 'ai/test';
|
|
24
26
|
import '@opentelemetry/sdk-trace-base';
|
|
25
27
|
|
|
26
28
|
declare class DefaultVoice extends MastraVoice {
|
package/dist/workflows/index.cjs
CHANGED
|
@@ -1,94 +1,90 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunk422BXQRT_cjs = require('../chunk-422BXQRT.cjs');
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
Object.defineProperty(exports, "Step", {
|
|
8
8
|
enumerable: true,
|
|
9
|
-
get: function () { return
|
|
9
|
+
get: function () { return chunk422BXQRT_cjs.Step; }
|
|
10
10
|
});
|
|
11
11
|
Object.defineProperty(exports, "WhenConditionReturnValue", {
|
|
12
12
|
enumerable: true,
|
|
13
|
-
get: function () { return
|
|
13
|
+
get: function () { return chunk422BXQRT_cjs.WhenConditionReturnValue; }
|
|
14
14
|
});
|
|
15
15
|
Object.defineProperty(exports, "Workflow", {
|
|
16
16
|
enumerable: true,
|
|
17
|
-
get: function () { return
|
|
17
|
+
get: function () { return chunk422BXQRT_cjs.Workflow; }
|
|
18
18
|
});
|
|
19
19
|
Object.defineProperty(exports, "agentToStep", {
|
|
20
20
|
enumerable: true,
|
|
21
|
-
get: function () { return
|
|
22
|
-
});
|
|
23
|
-
Object.defineProperty(exports, "createStep", {
|
|
24
|
-
enumerable: true,
|
|
25
|
-
get: function () { return chunkATXF6TIO_cjs.createStep; }
|
|
21
|
+
get: function () { return chunk422BXQRT_cjs.agentToStep; }
|
|
26
22
|
});
|
|
27
23
|
Object.defineProperty(exports, "getActivePathsAndStatus", {
|
|
28
24
|
enumerable: true,
|
|
29
|
-
get: function () { return
|
|
25
|
+
get: function () { return chunk422BXQRT_cjs.getActivePathsAndStatus; }
|
|
30
26
|
});
|
|
31
27
|
Object.defineProperty(exports, "getResultActivePaths", {
|
|
32
28
|
enumerable: true,
|
|
33
|
-
get: function () { return
|
|
29
|
+
get: function () { return chunk422BXQRT_cjs.getResultActivePaths; }
|
|
34
30
|
});
|
|
35
31
|
Object.defineProperty(exports, "getStepResult", {
|
|
36
32
|
enumerable: true,
|
|
37
|
-
get: function () { return
|
|
33
|
+
get: function () { return chunk422BXQRT_cjs.getStepResult; }
|
|
38
34
|
});
|
|
39
35
|
Object.defineProperty(exports, "getSuspendedPaths", {
|
|
40
36
|
enumerable: true,
|
|
41
|
-
get: function () { return
|
|
37
|
+
get: function () { return chunk422BXQRT_cjs.getSuspendedPaths; }
|
|
42
38
|
});
|
|
43
39
|
Object.defineProperty(exports, "isAgent", {
|
|
44
40
|
enumerable: true,
|
|
45
|
-
get: function () { return
|
|
41
|
+
get: function () { return chunk422BXQRT_cjs.isAgent; }
|
|
46
42
|
});
|
|
47
43
|
Object.defineProperty(exports, "isConditionalKey", {
|
|
48
44
|
enumerable: true,
|
|
49
|
-
get: function () { return
|
|
45
|
+
get: function () { return chunk422BXQRT_cjs.isConditionalKey; }
|
|
50
46
|
});
|
|
51
47
|
Object.defineProperty(exports, "isErrorEvent", {
|
|
52
48
|
enumerable: true,
|
|
53
|
-
get: function () { return
|
|
49
|
+
get: function () { return chunk422BXQRT_cjs.isErrorEvent; }
|
|
54
50
|
});
|
|
55
51
|
Object.defineProperty(exports, "isFinalState", {
|
|
56
52
|
enumerable: true,
|
|
57
|
-
get: function () { return
|
|
53
|
+
get: function () { return chunk422BXQRT_cjs.isFinalState; }
|
|
58
54
|
});
|
|
59
55
|
Object.defineProperty(exports, "isLimboState", {
|
|
60
56
|
enumerable: true,
|
|
61
|
-
get: function () { return
|
|
57
|
+
get: function () { return chunk422BXQRT_cjs.isLimboState; }
|
|
62
58
|
});
|
|
63
59
|
Object.defineProperty(exports, "isTransitionEvent", {
|
|
64
60
|
enumerable: true,
|
|
65
|
-
get: function () { return
|
|
61
|
+
get: function () { return chunk422BXQRT_cjs.isTransitionEvent; }
|
|
66
62
|
});
|
|
67
63
|
Object.defineProperty(exports, "isVariableReference", {
|
|
68
64
|
enumerable: true,
|
|
69
|
-
get: function () { return
|
|
65
|
+
get: function () { return chunk422BXQRT_cjs.isVariableReference; }
|
|
70
66
|
});
|
|
71
67
|
Object.defineProperty(exports, "isWorkflow", {
|
|
72
68
|
enumerable: true,
|
|
73
|
-
get: function () { return
|
|
69
|
+
get: function () { return chunk422BXQRT_cjs.isWorkflow; }
|
|
74
70
|
});
|
|
75
71
|
Object.defineProperty(exports, "mergeChildValue", {
|
|
76
72
|
enumerable: true,
|
|
77
|
-
get: function () { return
|
|
73
|
+
get: function () { return chunk422BXQRT_cjs.mergeChildValue; }
|
|
78
74
|
});
|
|
79
75
|
Object.defineProperty(exports, "recursivelyCheckForFinalState", {
|
|
80
76
|
enumerable: true,
|
|
81
|
-
get: function () { return
|
|
77
|
+
get: function () { return chunk422BXQRT_cjs.recursivelyCheckForFinalState; }
|
|
82
78
|
});
|
|
83
79
|
Object.defineProperty(exports, "resolveVariables", {
|
|
84
80
|
enumerable: true,
|
|
85
|
-
get: function () { return
|
|
81
|
+
get: function () { return chunk422BXQRT_cjs.resolveVariables; }
|
|
86
82
|
});
|
|
87
83
|
Object.defineProperty(exports, "updateStepInHierarchy", {
|
|
88
84
|
enumerable: true,
|
|
89
|
-
get: function () { return
|
|
85
|
+
get: function () { return chunk422BXQRT_cjs.updateStepInHierarchy; }
|
|
90
86
|
});
|
|
91
87
|
Object.defineProperty(exports, "workflowToStep", {
|
|
92
88
|
enumerable: true,
|
|
93
|
-
get: function () { return
|
|
89
|
+
get: function () { return chunk422BXQRT_cjs.workflowToStep; }
|
|
94
90
|
});
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export {
|
|
1
|
+
import { aB as VariableReference, aI as StepResult, K as Step, L as Workflow, F as Agent, aL as WorkflowContext, b3 as ToolsInput, a as Mastra, aw as StepAction, aK as WorkflowRunResult } from '../base-CZmT-p10.cjs';
|
|
2
|
+
export { aD as ActionContext, aC as BaseCondition, aR as DependencyCheckOutput, aY as ExtractSchemaFromStep, a$ as ExtractSchemaType, aZ as ExtractStepResult, b0 as PathsToStringProps, aO as ResolverFunctionInput, aP as ResolverFunctionOutput, aA as RetryConfig, aG as StepCondition, aH as StepConfig, aF as StepDef, av as StepExecutionContext, az as StepGraph, aX as StepId, a_ as StepInputType, ay as StepNode, aS as StepResolverOutput, ax as StepVariableType, aJ as StepsRecord, aQ as SubscriberFunctionOutput, aE as WhenConditionReturnValue, aU as WorkflowActionParams, aV as WorkflowActions, aT as WorkflowActors, aN as WorkflowEvent, aM as WorkflowLogMessage, O as WorkflowOptions, b1 as WorkflowResumeResult, W as WorkflowRunState, aW as WorkflowState } from '../base-CZmT-p10.cjs';
|
|
3
3
|
import { z } from 'zod';
|
|
4
4
|
import { a as Metric } from '../types-BtMyV38I.cjs';
|
|
5
5
|
import { L as Logger } from '../index-CquI0inB.cjs';
|
|
@@ -7,7 +7,7 @@ import '../base-BihKcqDY.cjs';
|
|
|
7
7
|
import 'ai';
|
|
8
8
|
import 'sift';
|
|
9
9
|
import 'json-schema';
|
|
10
|
-
import '../
|
|
10
|
+
import '../runtime-context/index.cjs';
|
|
11
11
|
import '@opentelemetry/api';
|
|
12
12
|
import 'xstate';
|
|
13
13
|
import 'node:events';
|
|
@@ -17,11 +17,13 @@ import 'stream';
|
|
|
17
17
|
import 'pino';
|
|
18
18
|
import '@opentelemetry/sdk-trace-base';
|
|
19
19
|
import '../tts/index.cjs';
|
|
20
|
+
import 'events';
|
|
20
21
|
import '../deployer/index.cjs';
|
|
21
22
|
import '../bundler/index.cjs';
|
|
22
23
|
import 'hono';
|
|
23
24
|
import 'hono/cors';
|
|
24
25
|
import 'hono-openapi';
|
|
26
|
+
import 'ai/test';
|
|
25
27
|
|
|
26
28
|
declare function isErrorEvent(stateEvent: any): stateEvent is {
|
|
27
29
|
type: `xstate.error.actor.${string}`;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export {
|
|
1
|
+
import { aB as VariableReference, aI as StepResult, K as Step, L as Workflow, F as Agent, aL as WorkflowContext, b3 as ToolsInput, a as Mastra, aw as StepAction, aK as WorkflowRunResult } from '../base-DDoWFpFc.js';
|
|
2
|
+
export { aD as ActionContext, aC as BaseCondition, aR as DependencyCheckOutput, aY as ExtractSchemaFromStep, a$ as ExtractSchemaType, aZ as ExtractStepResult, b0 as PathsToStringProps, aO as ResolverFunctionInput, aP as ResolverFunctionOutput, aA as RetryConfig, aG as StepCondition, aH as StepConfig, aF as StepDef, av as StepExecutionContext, az as StepGraph, aX as StepId, a_ as StepInputType, ay as StepNode, aS as StepResolverOutput, ax as StepVariableType, aJ as StepsRecord, aQ as SubscriberFunctionOutput, aE as WhenConditionReturnValue, aU as WorkflowActionParams, aV as WorkflowActions, aT as WorkflowActors, aN as WorkflowEvent, aM as WorkflowLogMessage, O as WorkflowOptions, b1 as WorkflowResumeResult, W as WorkflowRunState, aW as WorkflowState } from '../base-DDoWFpFc.js';
|
|
3
3
|
import { z } from 'zod';
|
|
4
4
|
import { a as Metric } from '../types-BtMyV38I.js';
|
|
5
5
|
import { L as Logger } from '../index-CquI0inB.js';
|
|
@@ -7,7 +7,7 @@ import '../base-DT2poiVK.js';
|
|
|
7
7
|
import 'ai';
|
|
8
8
|
import 'sift';
|
|
9
9
|
import 'json-schema';
|
|
10
|
-
import '../
|
|
10
|
+
import '../runtime-context/index.js';
|
|
11
11
|
import '@opentelemetry/api';
|
|
12
12
|
import 'xstate';
|
|
13
13
|
import 'node:events';
|
|
@@ -17,11 +17,13 @@ import 'stream';
|
|
|
17
17
|
import 'pino';
|
|
18
18
|
import '@opentelemetry/sdk-trace-base';
|
|
19
19
|
import '../tts/index.js';
|
|
20
|
+
import 'events';
|
|
20
21
|
import '../deployer/index.js';
|
|
21
22
|
import '../bundler/index.js';
|
|
22
23
|
import 'hono';
|
|
23
24
|
import 'hono/cors';
|
|
24
25
|
import 'hono-openapi';
|
|
26
|
+
import 'ai/test';
|
|
25
27
|
|
|
26
28
|
declare function isErrorEvent(stateEvent: any): stateEvent is {
|
|
27
29
|
type: `xstate.error.actor.${string}`;
|
package/dist/workflows/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { Step, WhenConditionReturnValue, Workflow, agentToStep,
|
|
1
|
+
export { Step, WhenConditionReturnValue, Workflow, agentToStep, getActivePathsAndStatus, getResultActivePaths, getStepResult, getSuspendedPaths, isAgent, isConditionalKey, isErrorEvent, isFinalState, isLimboState, isTransitionEvent, isVariableReference, isWorkflow, mergeChildValue, recursivelyCheckForFinalState, resolveVariables, updateStepInHierarchy, workflowToStep } from '../chunk-4K4DHXRF.js';
|