@mastra/core 0.9.2 → 0.9.3-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/dist/agent/index.cjs +2 -2
- package/dist/agent/index.d.cts +1 -1
- package/dist/agent/index.d.ts +1 -1
- package/dist/agent/index.js +1 -1
- package/dist/{base-B3g_Q3KV.d.cts → base-Cs0ddGCf.d.cts} +5 -5
- package/dist/{base-Dq_YZkEc.d.ts → base-CzHSMvOb.d.ts} +5 -5
- package/dist/{chunk-ZVBLRU4W.cjs → chunk-22CFFDPA.cjs} +5 -5
- package/dist/{chunk-QV4ZJLWA.js → chunk-2UAN6SRJ.js} +1 -1
- package/dist/{chunk-6FW4DXZO.cjs → chunk-4DEDPTLO.cjs} +2 -2
- package/dist/{chunk-SIQPAONL.js → chunk-6HHSM7FP.js} +1 -1
- package/dist/{chunk-URYHOYKQ.js → chunk-KSH5B376.js} +3 -3
- package/dist/{chunk-B7N24G5E.cjs → chunk-O6EYGXZO.cjs} +2 -2
- package/dist/chunk-OHIRECYU.cjs +930 -0
- package/dist/{chunk-2JNVEJCM.js → chunk-PPNVAI5G.js} +1 -1
- package/dist/{chunk-JTKSOVYL.cjs → chunk-QJJD56YR.cjs} +2 -2
- package/dist/{chunk-IBKW4TJU.js → chunk-TZIOJX3N.js} +1 -1
- package/dist/chunk-WD3HYQV3.js +911 -0
- package/dist/{chunk-HAFLSGW5.cjs → chunk-WYL4MKWH.cjs} +14 -14
- package/dist/eval/index.d.cts +1 -1
- package/dist/eval/index.d.ts +1 -1
- package/dist/index.cjs +57 -57
- package/dist/index.d.cts +3 -3
- package/dist/index.d.ts +3 -3
- package/dist/index.js +8 -8
- package/dist/integration/index.cjs +3 -3
- package/dist/integration/index.d.cts +1 -1
- package/dist/integration/index.d.ts +1 -1
- package/dist/integration/index.js +1 -1
- package/dist/llm/index.d.cts +1 -1
- package/dist/llm/index.d.ts +1 -1
- package/dist/mastra/index.d.cts +1 -1
- package/dist/mastra/index.d.ts +1 -1
- package/dist/memory/index.cjs +4 -4
- package/dist/memory/index.d.cts +1 -1
- package/dist/memory/index.d.ts +1 -1
- package/dist/memory/index.js +1 -1
- package/dist/network/index.cjs +4 -4
- package/dist/network/index.d.cts +1 -1
- package/dist/network/index.d.ts +1 -1
- package/dist/network/index.js +2 -2
- package/dist/relevance/index.cjs +4 -4
- package/dist/relevance/index.d.cts +1 -1
- package/dist/relevance/index.d.ts +1 -1
- package/dist/relevance/index.js +1 -1
- package/dist/server/index.d.cts +1 -1
- package/dist/server/index.d.ts +1 -1
- package/dist/storage/index.d.cts +1 -1
- package/dist/storage/index.d.ts +1 -1
- package/dist/storage/libsql/index.d.cts +1 -1
- package/dist/storage/libsql/index.d.ts +1 -1
- package/dist/telemetry/index.d.cts +1 -1
- package/dist/telemetry/index.d.ts +1 -1
- package/dist/tools/index.cjs +4 -4
- package/dist/tools/index.d.cts +1 -1
- package/dist/tools/index.d.ts +1 -1
- package/dist/tools/index.js +1 -1
- package/dist/utils.cjs +12 -12
- package/dist/utils.d.cts +7 -6
- package/dist/utils.d.ts +7 -6
- package/dist/utils.js +1 -1
- package/dist/voice/index.d.cts +1 -1
- package/dist/voice/index.d.ts +1 -1
- package/dist/workflows/index.cjs +22 -22
- package/dist/workflows/index.d.cts +2 -2
- package/dist/workflows/index.d.ts +2 -2
- package/dist/workflows/index.js +1 -1
- package/dist/workflows/vNext/index.cjs +13 -13
- package/dist/workflows/vNext/index.d.cts +2 -2
- package/dist/workflows/vNext/index.d.ts +2 -2
- package/dist/workflows/vNext/index.js +11 -11
- package/package.json +7 -5
- package/dist/chunk-D2Y3ET63.cjs +0 -362
- package/dist/chunk-ZCJJ6XOH.js +0 -344
package/dist/network/index.cjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
var
|
|
3
|
+
var chunkWYL4MKWH_cjs = require('../chunk-WYL4MKWH.cjs');
|
|
4
|
+
var chunkOHIRECYU_cjs = require('../chunk-OHIRECYU.cjs');
|
|
5
5
|
var chunkD63P5O4Q_cjs = require('../chunk-D63P5O4Q.cjs');
|
|
6
6
|
var chunkO7IW545H_cjs = require('../chunk-O7IW545H.cjs');
|
|
7
7
|
var zod = require('zod');
|
|
@@ -17,7 +17,7 @@ var AgentNetwork = class extends chunkD63P5O4Q_cjs.MastraBase {
|
|
|
17
17
|
this.#instructions = config.instructions;
|
|
18
18
|
this.#agents = config.agents;
|
|
19
19
|
this.#model = config.model;
|
|
20
|
-
this.#routingAgent = new
|
|
20
|
+
this.#routingAgent = new chunkWYL4MKWH_cjs.Agent({
|
|
21
21
|
name: config.name,
|
|
22
22
|
instructions: this.getInstructions(),
|
|
23
23
|
model: this.#model,
|
|
@@ -29,7 +29,7 @@ var AgentNetwork = class extends chunkD63P5O4Q_cjs.MastraBase {
|
|
|
29
29
|
}
|
|
30
30
|
getTools() {
|
|
31
31
|
return {
|
|
32
|
-
transmit:
|
|
32
|
+
transmit: chunkOHIRECYU_cjs.createTool({
|
|
33
33
|
id: "transmit",
|
|
34
34
|
description: "Call one or more specialized agents to handle specific tasks",
|
|
35
35
|
inputSchema: zod.z.object({
|
package/dist/network/index.d.cts
CHANGED
package/dist/network/index.d.ts
CHANGED
package/dist/network/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Agent } from '../chunk-
|
|
2
|
-
import { createTool } from '../chunk-
|
|
1
|
+
import { Agent } from '../chunk-KSH5B376.js';
|
|
2
|
+
import { createTool } from '../chunk-WD3HYQV3.js';
|
|
3
3
|
import { MastraBase } from '../chunk-CLJQYXNM.js';
|
|
4
4
|
import { RegisteredLogger } from '../chunk-2BVZNKLX.js';
|
|
5
5
|
import { z } from 'zod';
|
package/dist/relevance/index.cjs
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunk4DEDPTLO_cjs = require('../chunk-4DEDPTLO.cjs');
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
Object.defineProperty(exports, "CohereRelevanceScorer", {
|
|
8
8
|
enumerable: true,
|
|
9
|
-
get: function () { return
|
|
9
|
+
get: function () { return chunk4DEDPTLO_cjs.CohereRelevanceScorer; }
|
|
10
10
|
});
|
|
11
11
|
Object.defineProperty(exports, "MastraAgentRelevanceScorer", {
|
|
12
12
|
enumerable: true,
|
|
13
|
-
get: function () { return
|
|
13
|
+
get: function () { return chunk4DEDPTLO_cjs.MastraAgentRelevanceScorer; }
|
|
14
14
|
});
|
|
15
15
|
Object.defineProperty(exports, "createSimilarityPrompt", {
|
|
16
16
|
enumerable: true,
|
|
17
|
-
get: function () { return
|
|
17
|
+
get: function () { return chunk4DEDPTLO_cjs.createSimilarityPrompt; }
|
|
18
18
|
});
|
package/dist/relevance/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { CohereRelevanceScorer, MastraAgentRelevanceScorer, createSimilarityPrompt } from '../chunk-
|
|
1
|
+
export { CohereRelevanceScorer, MastraAgentRelevanceScorer, createSimilarityPrompt } from '../chunk-6HHSM7FP.js';
|
package/dist/server/index.d.cts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Handler, MiddlewareHandler } from 'hono';
|
|
2
2
|
import { DescribeRouteOptions } from 'hono-openapi';
|
|
3
|
-
import { M as Methods, a as Mastra, A as ApiRoute } from '../base-
|
|
3
|
+
import { M as Methods, a as Mastra, A as ApiRoute } from '../base-Cs0ddGCf.cjs';
|
|
4
4
|
import 'ai';
|
|
5
5
|
import '../base-BihKcqDY.cjs';
|
|
6
6
|
import '@opentelemetry/api';
|
package/dist/server/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Handler, MiddlewareHandler } from 'hono';
|
|
2
2
|
import { DescribeRouteOptions } from 'hono-openapi';
|
|
3
|
-
import { M as Methods, a as Mastra, A as ApiRoute } from '../base-
|
|
3
|
+
import { M as Methods, a as Mastra, A as ApiRoute } from '../base-CzHSMvOb.js';
|
|
4
4
|
import 'ai';
|
|
5
5
|
import '../base-DT2poiVK.js';
|
|
6
6
|
import '@opentelemetry/api';
|
package/dist/storage/index.d.cts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { E as EvalRow, b as MastraStorage, S as StorageColumn, e as StorageGetMessagesArg, bh as TABLE_EVALS, bi as TABLE_MESSAGES, T as TABLE_NAMES, bl as TABLE_SCHEMAS, bj as TABLE_THREADS, bk as TABLE_TRACES, bg as TABLE_WORKFLOW_SNAPSHOT, f as WorkflowRun, W as WorkflowRuns } from '../base-
|
|
1
|
+
export { E as EvalRow, b as MastraStorage, S as StorageColumn, e as StorageGetMessagesArg, bh as TABLE_EVALS, bi as TABLE_MESSAGES, T as TABLE_NAMES, bl as TABLE_SCHEMAS, bj as TABLE_THREADS, bk as TABLE_TRACES, bg as TABLE_WORKFLOW_SNAPSHOT, f as WorkflowRun, W as WorkflowRuns } from '../base-Cs0ddGCf.cjs';
|
|
2
2
|
import 'ai';
|
|
3
3
|
import '../base-BihKcqDY.cjs';
|
|
4
4
|
import '@opentelemetry/api';
|
package/dist/storage/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { E as EvalRow, b as MastraStorage, S as StorageColumn, e as StorageGetMessagesArg, bh as TABLE_EVALS, bi as TABLE_MESSAGES, T as TABLE_NAMES, bl as TABLE_SCHEMAS, bj as TABLE_THREADS, bk as TABLE_TRACES, bg as TABLE_WORKFLOW_SNAPSHOT, f as WorkflowRun, W as WorkflowRuns } from '../base-
|
|
1
|
+
export { E as EvalRow, b as MastraStorage, S as StorageColumn, e as StorageGetMessagesArg, bh as TABLE_EVALS, bi as TABLE_MESSAGES, T as TABLE_NAMES, bl as TABLE_SCHEMAS, bj as TABLE_THREADS, bk as TABLE_TRACES, bg as TABLE_WORKFLOW_SNAPSHOT, f as WorkflowRun, W as WorkflowRuns } from '../base-CzHSMvOb.js';
|
|
2
2
|
import 'ai';
|
|
3
3
|
import '../base-DT2poiVK.js';
|
|
4
4
|
import '@opentelemetry/api';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Config } from '@libsql/client';
|
|
2
|
-
import { b as MastraStorage, T as TABLE_NAMES, S as StorageColumn, c as StorageThreadType, d as MessageType, e as StorageGetMessagesArg, E as EvalRow, W as WorkflowRuns, f as WorkflowRun } from '../../base-
|
|
2
|
+
import { b as MastraStorage, T as TABLE_NAMES, S as StorageColumn, c as StorageThreadType, d as MessageType, e as StorageGetMessagesArg, E as EvalRow, W as WorkflowRuns, f as WorkflowRun } from '../../base-Cs0ddGCf.cjs';
|
|
3
3
|
import 'ai';
|
|
4
4
|
import '../../base-BihKcqDY.cjs';
|
|
5
5
|
import '@opentelemetry/api';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Config } from '@libsql/client';
|
|
2
|
-
import { b as MastraStorage, T as TABLE_NAMES, S as StorageColumn, c as StorageThreadType, d as MessageType, e as StorageGetMessagesArg, E as EvalRow, W as WorkflowRuns, f as WorkflowRun } from '../../base-
|
|
2
|
+
import { b as MastraStorage, T as TABLE_NAMES, S as StorageColumn, c as StorageThreadType, d as MessageType, e as StorageGetMessagesArg, E as EvalRow, W as WorkflowRuns, f as WorkflowRun } from '../../base-CzHSMvOb.js';
|
|
3
3
|
import 'ai';
|
|
4
4
|
import '../../base-DT2poiVK.js';
|
|
5
5
|
import '@opentelemetry/api';
|
|
@@ -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 { b as MastraStorage } from '../base-
|
|
6
|
+
import { b as MastraStorage } from '../base-Cs0ddGCf.cjs';
|
|
7
7
|
import 'stream';
|
|
8
8
|
import 'pino';
|
|
9
9
|
import 'ai';
|
|
@@ -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 { b as MastraStorage } from '../base-
|
|
6
|
+
import { b as MastraStorage } from '../base-CzHSMvOb.js';
|
|
7
7
|
import 'stream';
|
|
8
8
|
import 'pino';
|
|
9
9
|
import 'ai';
|
package/dist/tools/index.cjs
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkOHIRECYU_cjs = require('../chunk-OHIRECYU.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 chunkOHIRECYU_cjs.Tool; }
|
|
10
10
|
});
|
|
11
11
|
Object.defineProperty(exports, "createTool", {
|
|
12
12
|
enumerable: true,
|
|
13
|
-
get: function () { return
|
|
13
|
+
get: function () { return chunkOHIRECYU_cjs.createTool; }
|
|
14
14
|
});
|
|
15
15
|
Object.defineProperty(exports, "isVercelTool", {
|
|
16
16
|
enumerable: true,
|
|
17
|
-
get: function () { return
|
|
17
|
+
get: function () { return chunkOHIRECYU_cjs.isVercelTool; }
|
|
18
18
|
});
|
package/dist/tools/index.d.cts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { as as CoreTool, J as Tool, C as ToolAction, I as ToolExecutionContext, ar as VercelTool, aq as createTool } from '../base-
|
|
1
|
+
export { as as CoreTool, J as Tool, C as ToolAction, I as ToolExecutionContext, ar as VercelTool, aq as createTool } from '../base-Cs0ddGCf.cjs';
|
|
2
2
|
export { isVercelTool } from '../utils.cjs';
|
|
3
3
|
import 'ai';
|
|
4
4
|
import '../base-BihKcqDY.cjs';
|
package/dist/tools/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { as as CoreTool, J as Tool, C as ToolAction, I as ToolExecutionContext, ar as VercelTool, aq as createTool } from '../base-
|
|
1
|
+
export { as as CoreTool, J as Tool, C as ToolAction, I as ToolExecutionContext, ar as VercelTool, aq as createTool } from '../base-CzHSMvOb.js';
|
|
2
2
|
export { isVercelTool } from '../utils.js';
|
|
3
3
|
import 'ai';
|
|
4
4
|
import '../base-DT2poiVK.js';
|
package/dist/tools/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { Tool, createTool, isVercelTool } from '../chunk-
|
|
1
|
+
export { Tool, createTool, isVercelTool } from '../chunk-WD3HYQV3.js';
|
package/dist/utils.cjs
CHANGED
|
@@ -1,50 +1,50 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkOHIRECYU_cjs = require('./chunk-OHIRECYU.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 chunkOHIRECYU_cjs.checkEvalStorageFields; }
|
|
10
10
|
});
|
|
11
11
|
Object.defineProperty(exports, "createMastraProxy", {
|
|
12
12
|
enumerable: true,
|
|
13
|
-
get: function () { return
|
|
13
|
+
get: function () { return chunkOHIRECYU_cjs.createMastraProxy; }
|
|
14
14
|
});
|
|
15
15
|
Object.defineProperty(exports, "deepMerge", {
|
|
16
16
|
enumerable: true,
|
|
17
|
-
get: function () { return
|
|
17
|
+
get: function () { return chunkOHIRECYU_cjs.deepMerge; }
|
|
18
18
|
});
|
|
19
19
|
Object.defineProperty(exports, "delay", {
|
|
20
20
|
enumerable: true,
|
|
21
|
-
get: function () { return
|
|
21
|
+
get: function () { return chunkOHIRECYU_cjs.delay; }
|
|
22
22
|
});
|
|
23
23
|
Object.defineProperty(exports, "ensureAllMessagesAreCoreMessages", {
|
|
24
24
|
enumerable: true,
|
|
25
|
-
get: function () { return
|
|
25
|
+
get: function () { return chunkOHIRECYU_cjs.ensureAllMessagesAreCoreMessages; }
|
|
26
26
|
});
|
|
27
27
|
Object.defineProperty(exports, "ensureToolProperties", {
|
|
28
28
|
enumerable: true,
|
|
29
|
-
get: function () { return
|
|
29
|
+
get: function () { return chunkOHIRECYU_cjs.ensureToolProperties; }
|
|
30
30
|
});
|
|
31
31
|
Object.defineProperty(exports, "isVercelTool", {
|
|
32
32
|
enumerable: true,
|
|
33
|
-
get: function () { return
|
|
33
|
+
get: function () { return chunkOHIRECYU_cjs.isVercelTool; }
|
|
34
34
|
});
|
|
35
35
|
Object.defineProperty(exports, "isZodType", {
|
|
36
36
|
enumerable: true,
|
|
37
|
-
get: function () { return
|
|
37
|
+
get: function () { return chunkOHIRECYU_cjs.isZodType; }
|
|
38
38
|
});
|
|
39
39
|
Object.defineProperty(exports, "makeCoreTool", {
|
|
40
40
|
enumerable: true,
|
|
41
|
-
get: function () { return
|
|
41
|
+
get: function () { return chunkOHIRECYU_cjs.makeCoreTool; }
|
|
42
42
|
});
|
|
43
43
|
Object.defineProperty(exports, "maskStreamTags", {
|
|
44
44
|
enumerable: true,
|
|
45
|
-
get: function () { return
|
|
45
|
+
get: function () { return chunkOHIRECYU_cjs.maskStreamTags; }
|
|
46
46
|
});
|
|
47
47
|
Object.defineProperty(exports, "resolveSerializedZodOutput", {
|
|
48
48
|
enumerable: true,
|
|
49
|
-
get: function () { return
|
|
49
|
+
get: function () { return chunkOHIRECYU_cjs.resolveSerializedZodOutput; }
|
|
50
50
|
});
|
package/dist/utils.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ar as VercelTool, C as ToolAction,
|
|
2
|
-
import { CoreMessage, Message } from 'ai';
|
|
1
|
+
import { ar as VercelTool, C as ToolAction, a as Mastra, b2 as MastraPrimitives, H as MastraMemory, b3 as ToolsInput, as as CoreTool, F as Agent, L as Workflow, K as Step, at as StepExecutionContext, aJ as WorkflowContext, t as NewWorkflow, N as NewStep, b4 as AgentNetwork } from './base-Cs0ddGCf.cjs';
|
|
2
|
+
import { LanguageModelV1, CoreMessage, Message } from 'ai';
|
|
3
3
|
import { MastraTTS } from './tts/index.cjs';
|
|
4
4
|
import { MastraVector } from './vector/index.cjs';
|
|
5
5
|
import { a as Metric } from './types-BtMyV38I.cjs';
|
|
@@ -63,12 +63,13 @@ interface ToolOptions {
|
|
|
63
63
|
runId?: string;
|
|
64
64
|
threadId?: string;
|
|
65
65
|
resourceId?: string;
|
|
66
|
-
logger
|
|
66
|
+
logger?: Logger;
|
|
67
67
|
description?: string;
|
|
68
68
|
mastra?: (Mastra & MastraPrimitives) | MastraPrimitives;
|
|
69
69
|
runtimeContext: RuntimeContext;
|
|
70
70
|
memory?: MastraMemory;
|
|
71
71
|
agentName?: string;
|
|
72
|
+
model?: LanguageModelV1;
|
|
72
73
|
}
|
|
73
74
|
type ToolToConvert = VercelTool | ToolAction<any, any, any>;
|
|
74
75
|
/**
|
|
@@ -85,12 +86,12 @@ declare function isZodType(value: unknown): value is z.ZodType;
|
|
|
85
86
|
declare function ensureToolProperties(tools: ToolsInput): ToolsInput;
|
|
86
87
|
/**
|
|
87
88
|
* Converts a Vercel Tool or Mastra Tool into a CoreTool format
|
|
88
|
-
* @param
|
|
89
|
+
* @param originalTool - The tool to convert (either VercelTool or ToolAction)
|
|
89
90
|
* @param options - Tool options including Mastra-specific settings
|
|
90
91
|
* @param logType - Type of tool to log (tool or toolset)
|
|
91
92
|
* @returns A CoreTool that can be used by the system
|
|
92
93
|
*/
|
|
93
|
-
declare function makeCoreTool(
|
|
94
|
+
declare function makeCoreTool(originalTool: ToolToConvert, options: ToolOptions, logType?: 'tool' | 'toolset' | 'client-tool'): CoreTool;
|
|
94
95
|
/**
|
|
95
96
|
* Creates a proxy for a Mastra instance to handle deprecated properties
|
|
96
97
|
* @param mastra - The Mastra instance to proxy
|
|
@@ -104,4 +105,4 @@ declare function createMastraProxy({ mastra, logger }: {
|
|
|
104
105
|
declare function checkEvalStorageFields(traceObject: any, logger?: Logger): boolean;
|
|
105
106
|
declare function ensureAllMessagesAreCoreMessages(messages: (CoreMessage | Message)[]): CoreMessage[];
|
|
106
107
|
|
|
107
|
-
export { type TagMaskOptions, checkEvalStorageFields, createMastraProxy, deepMerge, delay, ensureAllMessagesAreCoreMessages, ensureToolProperties, isVercelTool, isZodType, makeCoreTool, maskStreamTags, resolveSerializedZodOutput };
|
|
108
|
+
export { type TagMaskOptions, type ToolOptions, checkEvalStorageFields, createMastraProxy, deepMerge, delay, ensureAllMessagesAreCoreMessages, ensureToolProperties, isVercelTool, isZodType, makeCoreTool, maskStreamTags, resolveSerializedZodOutput };
|
package/dist/utils.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ar as VercelTool, C as ToolAction,
|
|
2
|
-
import { CoreMessage, Message } from 'ai';
|
|
1
|
+
import { ar as VercelTool, C as ToolAction, a as Mastra, b2 as MastraPrimitives, H as MastraMemory, b3 as ToolsInput, as as CoreTool, F as Agent, L as Workflow, K as Step, at as StepExecutionContext, aJ as WorkflowContext, t as NewWorkflow, N as NewStep, b4 as AgentNetwork } from './base-CzHSMvOb.js';
|
|
2
|
+
import { LanguageModelV1, CoreMessage, Message } from 'ai';
|
|
3
3
|
import { MastraTTS } from './tts/index.js';
|
|
4
4
|
import { MastraVector } from './vector/index.js';
|
|
5
5
|
import { a as Metric } from './types-BtMyV38I.js';
|
|
@@ -63,12 +63,13 @@ interface ToolOptions {
|
|
|
63
63
|
runId?: string;
|
|
64
64
|
threadId?: string;
|
|
65
65
|
resourceId?: string;
|
|
66
|
-
logger
|
|
66
|
+
logger?: Logger;
|
|
67
67
|
description?: string;
|
|
68
68
|
mastra?: (Mastra & MastraPrimitives) | MastraPrimitives;
|
|
69
69
|
runtimeContext: RuntimeContext;
|
|
70
70
|
memory?: MastraMemory;
|
|
71
71
|
agentName?: string;
|
|
72
|
+
model?: LanguageModelV1;
|
|
72
73
|
}
|
|
73
74
|
type ToolToConvert = VercelTool | ToolAction<any, any, any>;
|
|
74
75
|
/**
|
|
@@ -85,12 +86,12 @@ declare function isZodType(value: unknown): value is z.ZodType;
|
|
|
85
86
|
declare function ensureToolProperties(tools: ToolsInput): ToolsInput;
|
|
86
87
|
/**
|
|
87
88
|
* Converts a Vercel Tool or Mastra Tool into a CoreTool format
|
|
88
|
-
* @param
|
|
89
|
+
* @param originalTool - The tool to convert (either VercelTool or ToolAction)
|
|
89
90
|
* @param options - Tool options including Mastra-specific settings
|
|
90
91
|
* @param logType - Type of tool to log (tool or toolset)
|
|
91
92
|
* @returns A CoreTool that can be used by the system
|
|
92
93
|
*/
|
|
93
|
-
declare function makeCoreTool(
|
|
94
|
+
declare function makeCoreTool(originalTool: ToolToConvert, options: ToolOptions, logType?: 'tool' | 'toolset' | 'client-tool'): CoreTool;
|
|
94
95
|
/**
|
|
95
96
|
* Creates a proxy for a Mastra instance to handle deprecated properties
|
|
96
97
|
* @param mastra - The Mastra instance to proxy
|
|
@@ -104,4 +105,4 @@ declare function createMastraProxy({ mastra, logger }: {
|
|
|
104
105
|
declare function checkEvalStorageFields(traceObject: any, logger?: Logger): boolean;
|
|
105
106
|
declare function ensureAllMessagesAreCoreMessages(messages: (CoreMessage | Message)[]): CoreMessage[];
|
|
106
107
|
|
|
107
|
-
export { type TagMaskOptions, checkEvalStorageFields, createMastraProxy, deepMerge, delay, ensureAllMessagesAreCoreMessages, ensureToolProperties, isVercelTool, isZodType, makeCoreTool, maskStreamTags, resolveSerializedZodOutput };
|
|
108
|
+
export { type TagMaskOptions, type ToolOptions, checkEvalStorageFields, createMastraProxy, deepMerge, delay, ensureAllMessagesAreCoreMessages, ensureToolProperties, isVercelTool, isZodType, makeCoreTool, maskStreamTags, resolveSerializedZodOutput };
|
package/dist/utils.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { checkEvalStorageFields, createMastraProxy, deepMerge, delay, ensureAllMessagesAreCoreMessages, ensureToolProperties, isVercelTool, isZodType, makeCoreTool, maskStreamTags, resolveSerializedZodOutput } from './chunk-
|
|
1
|
+
export { checkEvalStorageFields, createMastraProxy, deepMerge, delay, ensureAllMessagesAreCoreMessages, ensureToolProperties, isVercelTool, isZodType, makeCoreTool, maskStreamTags, resolveSerializedZodOutput } from './chunk-WD3HYQV3.js';
|
package/dist/voice/index.d.cts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { ba as CompositeVoice, bb as DefaultVoice, b9 as MastraVoice, b8 as VoiceConfig, b7 as VoiceEventMap, b6 as VoiceEventType } from '../base-
|
|
1
|
+
export { ba as CompositeVoice, bb as DefaultVoice, b9 as MastraVoice, b8 as VoiceConfig, b7 as VoiceEventMap, b6 as VoiceEventType } from '../base-Cs0ddGCf.cjs';
|
|
2
2
|
import 'ai';
|
|
3
3
|
import '../base-BihKcqDY.cjs';
|
|
4
4
|
import '@opentelemetry/api';
|
package/dist/voice/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { ba as CompositeVoice, bb as DefaultVoice, b9 as MastraVoice, b8 as VoiceConfig, b7 as VoiceEventMap, b6 as VoiceEventType } from '../base-
|
|
1
|
+
export { ba as CompositeVoice, bb as DefaultVoice, b9 as MastraVoice, b8 as VoiceConfig, b7 as VoiceEventMap, b6 as VoiceEventType } from '../base-CzHSMvOb.js';
|
|
2
2
|
import 'ai';
|
|
3
3
|
import '../base-DT2poiVK.js';
|
|
4
4
|
import '@opentelemetry/api';
|
package/dist/workflows/index.cjs
CHANGED
|
@@ -1,90 +1,90 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkWYL4MKWH_cjs = require('../chunk-WYL4MKWH.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 chunkWYL4MKWH_cjs.Step; }
|
|
10
10
|
});
|
|
11
11
|
Object.defineProperty(exports, "WhenConditionReturnValue", {
|
|
12
12
|
enumerable: true,
|
|
13
|
-
get: function () { return
|
|
13
|
+
get: function () { return chunkWYL4MKWH_cjs.WhenConditionReturnValue; }
|
|
14
14
|
});
|
|
15
15
|
Object.defineProperty(exports, "Workflow", {
|
|
16
16
|
enumerable: true,
|
|
17
|
-
get: function () { return
|
|
17
|
+
get: function () { return chunkWYL4MKWH_cjs.Workflow; }
|
|
18
18
|
});
|
|
19
19
|
Object.defineProperty(exports, "agentToStep", {
|
|
20
20
|
enumerable: true,
|
|
21
|
-
get: function () { return
|
|
21
|
+
get: function () { return chunkWYL4MKWH_cjs.agentToStep; }
|
|
22
22
|
});
|
|
23
23
|
Object.defineProperty(exports, "getActivePathsAndStatus", {
|
|
24
24
|
enumerable: true,
|
|
25
|
-
get: function () { return
|
|
25
|
+
get: function () { return chunkWYL4MKWH_cjs.getActivePathsAndStatus; }
|
|
26
26
|
});
|
|
27
27
|
Object.defineProperty(exports, "getResultActivePaths", {
|
|
28
28
|
enumerable: true,
|
|
29
|
-
get: function () { return
|
|
29
|
+
get: function () { return chunkWYL4MKWH_cjs.getResultActivePaths; }
|
|
30
30
|
});
|
|
31
31
|
Object.defineProperty(exports, "getStepResult", {
|
|
32
32
|
enumerable: true,
|
|
33
|
-
get: function () { return
|
|
33
|
+
get: function () { return chunkWYL4MKWH_cjs.getStepResult; }
|
|
34
34
|
});
|
|
35
35
|
Object.defineProperty(exports, "getSuspendedPaths", {
|
|
36
36
|
enumerable: true,
|
|
37
|
-
get: function () { return
|
|
37
|
+
get: function () { return chunkWYL4MKWH_cjs.getSuspendedPaths; }
|
|
38
38
|
});
|
|
39
39
|
Object.defineProperty(exports, "isAgent", {
|
|
40
40
|
enumerable: true,
|
|
41
|
-
get: function () { return
|
|
41
|
+
get: function () { return chunkWYL4MKWH_cjs.isAgent; }
|
|
42
42
|
});
|
|
43
43
|
Object.defineProperty(exports, "isConditionalKey", {
|
|
44
44
|
enumerable: true,
|
|
45
|
-
get: function () { return
|
|
45
|
+
get: function () { return chunkWYL4MKWH_cjs.isConditionalKey; }
|
|
46
46
|
});
|
|
47
47
|
Object.defineProperty(exports, "isErrorEvent", {
|
|
48
48
|
enumerable: true,
|
|
49
|
-
get: function () { return
|
|
49
|
+
get: function () { return chunkWYL4MKWH_cjs.isErrorEvent; }
|
|
50
50
|
});
|
|
51
51
|
Object.defineProperty(exports, "isFinalState", {
|
|
52
52
|
enumerable: true,
|
|
53
|
-
get: function () { return
|
|
53
|
+
get: function () { return chunkWYL4MKWH_cjs.isFinalState; }
|
|
54
54
|
});
|
|
55
55
|
Object.defineProperty(exports, "isLimboState", {
|
|
56
56
|
enumerable: true,
|
|
57
|
-
get: function () { return
|
|
57
|
+
get: function () { return chunkWYL4MKWH_cjs.isLimboState; }
|
|
58
58
|
});
|
|
59
59
|
Object.defineProperty(exports, "isTransitionEvent", {
|
|
60
60
|
enumerable: true,
|
|
61
|
-
get: function () { return
|
|
61
|
+
get: function () { return chunkWYL4MKWH_cjs.isTransitionEvent; }
|
|
62
62
|
});
|
|
63
63
|
Object.defineProperty(exports, "isVariableReference", {
|
|
64
64
|
enumerable: true,
|
|
65
|
-
get: function () { return
|
|
65
|
+
get: function () { return chunkWYL4MKWH_cjs.isVariableReference; }
|
|
66
66
|
});
|
|
67
67
|
Object.defineProperty(exports, "isWorkflow", {
|
|
68
68
|
enumerable: true,
|
|
69
|
-
get: function () { return
|
|
69
|
+
get: function () { return chunkWYL4MKWH_cjs.isWorkflow; }
|
|
70
70
|
});
|
|
71
71
|
Object.defineProperty(exports, "mergeChildValue", {
|
|
72
72
|
enumerable: true,
|
|
73
|
-
get: function () { return
|
|
73
|
+
get: function () { return chunkWYL4MKWH_cjs.mergeChildValue; }
|
|
74
74
|
});
|
|
75
75
|
Object.defineProperty(exports, "recursivelyCheckForFinalState", {
|
|
76
76
|
enumerable: true,
|
|
77
|
-
get: function () { return
|
|
77
|
+
get: function () { return chunkWYL4MKWH_cjs.recursivelyCheckForFinalState; }
|
|
78
78
|
});
|
|
79
79
|
Object.defineProperty(exports, "resolveVariables", {
|
|
80
80
|
enumerable: true,
|
|
81
|
-
get: function () { return
|
|
81
|
+
get: function () { return chunkWYL4MKWH_cjs.resolveVariables; }
|
|
82
82
|
});
|
|
83
83
|
Object.defineProperty(exports, "updateStepInHierarchy", {
|
|
84
84
|
enumerable: true,
|
|
85
|
-
get: function () { return
|
|
85
|
+
get: function () { return chunkWYL4MKWH_cjs.updateStepInHierarchy; }
|
|
86
86
|
});
|
|
87
87
|
Object.defineProperty(exports, "workflowToStep", {
|
|
88
88
|
enumerable: true,
|
|
89
|
-
get: function () { return
|
|
89
|
+
get: function () { return chunkWYL4MKWH_cjs.workflowToStep; }
|
|
90
90
|
});
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { az as VariableReference, aG as StepResult, K as Step, L as Workflow, F as Agent, aJ as WorkflowContext,
|
|
2
|
-
export { aB as ActionContext, aA as BaseCondition, aP as DependencyCheckOutput, aW as ExtractSchemaFromStep, aZ as ExtractSchemaType, aX as ExtractStepResult, a_ as PathsToStringProps, aM as ResolverFunctionInput, aN as ResolverFunctionOutput, ay as RetryConfig, aE as StepCondition, aF as StepConfig, aD as StepDef, at as StepExecutionContext, ax as StepGraph, aV as StepId, aY as StepInputType, aw as StepNode, aQ as StepResolverOutput, av as StepVariableType, aH as StepsRecord, aO as SubscriberFunctionOutput, aC as WhenConditionReturnValue, aS as WorkflowActionParams, aT as WorkflowActions, aR as WorkflowActors, aL as WorkflowEvent, aK as WorkflowLogMessage, O as WorkflowOptions, b0 as WorkflowResumeResult, a$ as WorkflowRunState, aU as WorkflowState } from '../base-
|
|
1
|
+
import { az as VariableReference, aG as StepResult, K as Step, L as Workflow, F as Agent, aJ as WorkflowContext, b3 as ToolsInput, a as Mastra, au as StepAction, aI as WorkflowRunResult } from '../base-Cs0ddGCf.cjs';
|
|
2
|
+
export { aB as ActionContext, aA as BaseCondition, aP as DependencyCheckOutput, aW as ExtractSchemaFromStep, aZ as ExtractSchemaType, aX as ExtractStepResult, a_ as PathsToStringProps, aM as ResolverFunctionInput, aN as ResolverFunctionOutput, ay as RetryConfig, aE as StepCondition, aF as StepConfig, aD as StepDef, at as StepExecutionContext, ax as StepGraph, aV as StepId, aY as StepInputType, aw as StepNode, aQ as StepResolverOutput, av as StepVariableType, aH as StepsRecord, aO as SubscriberFunctionOutput, aC as WhenConditionReturnValue, aS as WorkflowActionParams, aT as WorkflowActions, aR as WorkflowActors, aL as WorkflowEvent, aK as WorkflowLogMessage, O as WorkflowOptions, b0 as WorkflowResumeResult, a$ as WorkflowRunState, aU as WorkflowState } from '../base-Cs0ddGCf.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';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { az as VariableReference, aG as StepResult, K as Step, L as Workflow, F as Agent, aJ as WorkflowContext,
|
|
2
|
-
export { aB as ActionContext, aA as BaseCondition, aP as DependencyCheckOutput, aW as ExtractSchemaFromStep, aZ as ExtractSchemaType, aX as ExtractStepResult, a_ as PathsToStringProps, aM as ResolverFunctionInput, aN as ResolverFunctionOutput, ay as RetryConfig, aE as StepCondition, aF as StepConfig, aD as StepDef, at as StepExecutionContext, ax as StepGraph, aV as StepId, aY as StepInputType, aw as StepNode, aQ as StepResolverOutput, av as StepVariableType, aH as StepsRecord, aO as SubscriberFunctionOutput, aC as WhenConditionReturnValue, aS as WorkflowActionParams, aT as WorkflowActions, aR as WorkflowActors, aL as WorkflowEvent, aK as WorkflowLogMessage, O as WorkflowOptions, b0 as WorkflowResumeResult, a$ as WorkflowRunState, aU as WorkflowState } from '../base-
|
|
1
|
+
import { az as VariableReference, aG as StepResult, K as Step, L as Workflow, F as Agent, aJ as WorkflowContext, b3 as ToolsInput, a as Mastra, au as StepAction, aI as WorkflowRunResult } from '../base-CzHSMvOb.js';
|
|
2
|
+
export { aB as ActionContext, aA as BaseCondition, aP as DependencyCheckOutput, aW as ExtractSchemaFromStep, aZ as ExtractSchemaType, aX as ExtractStepResult, a_ as PathsToStringProps, aM as ResolverFunctionInput, aN as ResolverFunctionOutput, ay as RetryConfig, aE as StepCondition, aF as StepConfig, aD as StepDef, at as StepExecutionContext, ax as StepGraph, aV as StepId, aY as StepInputType, aw as StepNode, aQ as StepResolverOutput, av as StepVariableType, aH as StepsRecord, aO as SubscriberFunctionOutput, aC as WhenConditionReturnValue, aS as WorkflowActionParams, aT as WorkflowActions, aR as WorkflowActors, aL as WorkflowEvent, aK as WorkflowLogMessage, O as WorkflowOptions, b0 as WorkflowResumeResult, a$ as WorkflowRunState, aU as WorkflowState } from '../base-CzHSMvOb.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';
|
package/dist/workflows/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
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-
|
|
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-KSH5B376.js';
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
var
|
|
5
|
-
var chunkLABUWBKX_cjs = require('../../chunk-LABUWBKX.cjs');
|
|
3
|
+
var chunkWYL4MKWH_cjs = require('../../chunk-WYL4MKWH.cjs');
|
|
4
|
+
var chunkOHIRECYU_cjs = require('../../chunk-OHIRECYU.cjs');
|
|
6
5
|
var chunkD63P5O4Q_cjs = require('../../chunk-D63P5O4Q.cjs');
|
|
7
6
|
var chunkO7IW545H_cjs = require('../../chunk-O7IW545H.cjs');
|
|
7
|
+
var chunkLABUWBKX_cjs = require('../../chunk-LABUWBKX.cjs');
|
|
8
8
|
var crypto = require('crypto');
|
|
9
9
|
var EventEmitter = require('events');
|
|
10
10
|
var zod = require('zod');
|
|
@@ -631,7 +631,7 @@ var DefaultExecutionEngine = class extends ExecutionEngine {
|
|
|
631
631
|
|
|
632
632
|
// src/workflows/vNext/workflow.ts
|
|
633
633
|
function createStep(params) {
|
|
634
|
-
if (params instanceof
|
|
634
|
+
if (params instanceof chunkWYL4MKWH_cjs.Agent) {
|
|
635
635
|
return {
|
|
636
636
|
id: params.name,
|
|
637
637
|
// @ts-ignore
|
|
@@ -655,7 +655,7 @@ function createStep(params) {
|
|
|
655
655
|
}
|
|
656
656
|
};
|
|
657
657
|
}
|
|
658
|
-
if (params instanceof
|
|
658
|
+
if (params instanceof chunkOHIRECYU_cjs.Tool) {
|
|
659
659
|
if (!params.inputSchema || !params.outputSchema) {
|
|
660
660
|
throw new Error("Tool must have input and output schemas defined");
|
|
661
661
|
}
|
|
@@ -781,7 +781,7 @@ var NewWorkflow = class extends chunkD63P5O4Q_cjs.MastraBase {
|
|
|
781
781
|
id: step.id,
|
|
782
782
|
description: step.description,
|
|
783
783
|
component: step.component,
|
|
784
|
-
|
|
784
|
+
serializedStepFlow: step.serializedStepFlow
|
|
785
785
|
}
|
|
786
786
|
});
|
|
787
787
|
this.steps[step.id] = step;
|
|
@@ -802,7 +802,7 @@ var NewWorkflow = class extends chunkD63P5O4Q_cjs.MastraBase {
|
|
|
802
802
|
id: mappingStep2.id,
|
|
803
803
|
description: mappingStep2.description,
|
|
804
804
|
component: mappingStep2.component,
|
|
805
|
-
|
|
805
|
+
serializedStepFlow: mappingStep2.serializedStepFlow
|
|
806
806
|
}
|
|
807
807
|
});
|
|
808
808
|
return this;
|
|
@@ -854,7 +854,7 @@ var NewWorkflow = class extends chunkD63P5O4Q_cjs.MastraBase {
|
|
|
854
854
|
id: mappingStep.id,
|
|
855
855
|
description: mappingStep.description,
|
|
856
856
|
component: mappingStep.component,
|
|
857
|
-
|
|
857
|
+
serializedStepFlow: mappingStep.serializedStepFlow
|
|
858
858
|
}
|
|
859
859
|
});
|
|
860
860
|
return this;
|
|
@@ -870,7 +870,7 @@ var NewWorkflow = class extends chunkD63P5O4Q_cjs.MastraBase {
|
|
|
870
870
|
id: step.id,
|
|
871
871
|
description: step.description,
|
|
872
872
|
component: step.component,
|
|
873
|
-
|
|
873
|
+
serializedStepFlow: step.serializedStepFlow
|
|
874
874
|
}
|
|
875
875
|
}))
|
|
876
876
|
});
|
|
@@ -895,7 +895,7 @@ var NewWorkflow = class extends chunkD63P5O4Q_cjs.MastraBase {
|
|
|
895
895
|
id: step.id,
|
|
896
896
|
description: step.description,
|
|
897
897
|
component: step.component,
|
|
898
|
-
|
|
898
|
+
serializedStepFlow: step.serializedStepFlow
|
|
899
899
|
}
|
|
900
900
|
})),
|
|
901
901
|
serializedConditions: steps.map(([cond, _step]) => ({ id: `${_step.id}-condition`, fn: cond.toString() }))
|
|
@@ -919,7 +919,7 @@ var NewWorkflow = class extends chunkD63P5O4Q_cjs.MastraBase {
|
|
|
919
919
|
id: step.id,
|
|
920
920
|
description: step.description,
|
|
921
921
|
component: step.component,
|
|
922
|
-
|
|
922
|
+
serializedStepFlow: step.serializedStepFlow
|
|
923
923
|
},
|
|
924
924
|
serializedCondition: { id: `${step.id}-condition`, fn: condition.toString() },
|
|
925
925
|
loopType: "dowhile"
|
|
@@ -941,7 +941,7 @@ var NewWorkflow = class extends chunkD63P5O4Q_cjs.MastraBase {
|
|
|
941
941
|
id: step.id,
|
|
942
942
|
description: step.description,
|
|
943
943
|
component: step.component,
|
|
944
|
-
|
|
944
|
+
serializedStepFlow: step.serializedStepFlow
|
|
945
945
|
},
|
|
946
946
|
serializedCondition: { id: `${step.id}-condition`, fn: condition.toString() },
|
|
947
947
|
loopType: "dountil"
|
|
@@ -957,7 +957,7 @@ var NewWorkflow = class extends chunkD63P5O4Q_cjs.MastraBase {
|
|
|
957
957
|
id: step.id,
|
|
958
958
|
description: step.description,
|
|
959
959
|
component: step.component,
|
|
960
|
-
|
|
960
|
+
serializedStepFlow: step.serializedStepFlow
|
|
961
961
|
},
|
|
962
962
|
opts: opts ?? { concurrency: 1 }
|
|
963
963
|
});
|