@mastra/core 0.10.4 → 0.10.5
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 +4 -4
- package/dist/agent/index.d.cts +1 -1
- package/dist/agent/index.d.ts +1 -1
- package/dist/agent/index.js +2 -2
- package/dist/{base-icHjkcs-.d.ts → base-CmIdgTSq.d.ts} +37 -31
- package/dist/{base-Bdc5hWla.d.cts → base-_mZ6e_qo.d.cts} +37 -31
- package/dist/chunk-2RZXEVWT.js +68 -0
- package/dist/{chunk-UFQERGWG.js → chunk-32XBQVNY.js} +117 -28
- package/dist/{chunk-TRJIWZKM.js → chunk-3SY7GRSA.js} +1 -1
- package/dist/{chunk-PUG7THT5.cjs → chunk-6EMFDXAQ.cjs} +4 -4
- package/dist/{chunk-36UICULV.js → chunk-6PQRSQZF.js} +35 -5
- package/dist/{chunk-VB4S54R3.cjs → chunk-7L56W43N.cjs} +118 -29
- package/dist/{chunk-62ZSDIUK.js → chunk-BMED2N3R.js} +1 -1
- package/dist/{chunk-I2KL5KMY.js → chunk-CMEK3A3W.js} +2 -2
- package/dist/{chunk-HGPLTKJA.cjs → chunk-D2ULEJL3.cjs} +2 -2
- package/dist/{chunk-AX6IHSGY.js → chunk-DPKEVI6Q.js} +1 -1
- package/dist/{chunk-ZKUUYDOQ.cjs → chunk-EFJIVMMM.cjs} +21 -21
- package/dist/{chunk-SI2ENZ3O.js → chunk-F2DBWJK3.js} +1 -1
- package/dist/{chunk-Z37B4W7B.js → chunk-HIQ3FPBN.js} +1 -1
- package/dist/{chunk-RO5VPM3P.cjs → chunk-HVI3SKIH.cjs} +278 -55
- package/dist/{chunk-GV6P24NY.cjs → chunk-ISRXIKDS.cjs} +4 -4
- package/dist/{chunk-QVROTSA5.cjs → chunk-J7MLMW6O.cjs} +2 -2
- package/dist/{chunk-PVGSY24V.js → chunk-LDNCERLU.js} +7 -0
- package/dist/{chunk-S6WRT7GI.cjs → chunk-LRMKKZ6M.cjs} +2 -2
- package/dist/{chunk-BBAQW23O.cjs → chunk-OLSQRA2V.cjs} +7 -0
- package/dist/chunk-Q65UGFQK.cjs +70 -0
- package/dist/{chunk-ZAXPU6F2.cjs → chunk-QQ3KHYKE.cjs} +35 -5
- package/dist/{chunk-ZWYZGIV3.cjs → chunk-QQT4XTOG.cjs} +279 -73
- package/dist/{chunk-XUODQRSL.cjs → chunk-TGK6JO2D.cjs} +3 -3
- package/dist/{chunk-JYLH5IY3.cjs → chunk-VRDDTY4O.cjs} +87 -16
- package/dist/{chunk-SWJKOFCU.js → chunk-VZDPK54I.js} +262 -56
- package/dist/{chunk-HFEELWJO.js → chunk-YDGX5LRI.js} +274 -51
- package/dist/{chunk-7UNDRBOU.js → chunk-YLCFUSJ4.js} +86 -15
- package/dist/{chunk-IZGRJXUQ.js → chunk-Z7SBZ7XB.js} +1 -1
- package/dist/error/index.cjs +5 -5
- package/dist/error/index.d.cts +7 -0
- package/dist/error/index.d.ts +7 -0
- package/dist/error/index.js +1 -1
- package/dist/eval/index.d.cts +1 -1
- package/dist/eval/index.d.ts +1 -1
- package/dist/index.cjs +48 -48
- package/dist/index.d.cts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +12 -12
- package/dist/integration/index.d.cts +1 -1
- package/dist/integration/index.d.ts +1 -1
- package/dist/llm/index.d.cts +1 -1
- package/dist/llm/index.d.ts +1 -1
- package/dist/mastra/index.cjs +2 -2
- package/dist/mastra/index.d.cts +1 -1
- package/dist/mastra/index.d.ts +1 -1
- package/dist/mastra/index.js +1 -1
- package/dist/mcp/index.d.cts +1 -1
- package/dist/mcp/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 +11 -5
- package/dist/network/index.d.cts +1 -1
- package/dist/network/index.d.ts +1 -1
- package/dist/network/index.js +10 -4
- 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.cjs +9 -3
- package/dist/server/index.d.cts +2 -2
- package/dist/server/index.d.ts +2 -2
- package/dist/server/index.js +8 -2
- package/dist/storage/index.cjs +12 -12
- package/dist/storage/index.d.cts +2 -2
- package/dist/storage/index.d.ts +2 -2
- package/dist/storage/index.js +4 -4
- package/dist/telemetry/index.cjs +7 -7
- package/dist/telemetry/index.d.cts +1 -1
- package/dist/telemetry/index.d.ts +1 -1
- package/dist/telemetry/index.js +1 -1
- package/dist/tools/index.d.cts +2 -2
- package/dist/tools/index.d.ts +2 -2
- package/dist/tts/index.cjs +2 -2
- package/dist/tts/index.js +1 -1
- package/dist/utils.cjs +14 -14
- package/dist/utils.d.cts +2 -2
- package/dist/utils.d.ts +2 -2
- package/dist/utils.js +1 -1
- package/dist/vector/index.cjs +2 -2
- package/dist/vector/index.js +1 -1
- package/dist/voice/index.cjs +4 -4
- package/dist/voice/index.d.cts +1 -1
- package/dist/voice/index.d.ts +1 -1
- package/dist/voice/index.js +1 -1
- package/dist/workflows/index.cjs +9 -9
- package/dist/workflows/index.d.cts +14 -7
- package/dist/workflows/index.d.ts +14 -7
- package/dist/workflows/index.js +1 -1
- package/dist/workflows/legacy/index.cjs +22 -22
- package/dist/workflows/legacy/index.d.cts +2 -2
- package/dist/workflows/legacy/index.d.ts +2 -2
- package/dist/workflows/legacy/index.js +1 -1
- package/package.json +2 -2
- package/dist/chunk-IM7CLVLZ.js +0 -43
- package/dist/chunk-LEK3J7YN.cjs +0 -45
package/dist/server/index.d.cts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Handler, Context, MiddlewareHandler } from 'hono';
|
|
2
2
|
import { DescribeRouteOptions } from 'hono-openapi';
|
|
3
|
-
import { i as Methods, M as Mastra, j as ApiRoute, k as MastraAuthConfig } from '../base-
|
|
4
|
-
export { l as ContextWithMastra, m as MastraAuthProvider, n as MastraAuthProviderOptions } from '../base-
|
|
3
|
+
import { i as Methods, M as Mastra, j as ApiRoute, k as MastraAuthConfig } from '../base-_mZ6e_qo.cjs';
|
|
4
|
+
export { l as ContextWithMastra, m as MastraAuthProvider, n as MastraAuthProviderOptions } from '../base-_mZ6e_qo.cjs';
|
|
5
5
|
import 'ai';
|
|
6
6
|
import '../base-DVVTzIQy.cjs';
|
|
7
7
|
import '@opentelemetry/api';
|
package/dist/server/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Handler, Context, MiddlewareHandler } from 'hono';
|
|
2
2
|
import { DescribeRouteOptions } from 'hono-openapi';
|
|
3
|
-
import { i as Methods, M as Mastra, j as ApiRoute, k as MastraAuthConfig } from '../base-
|
|
4
|
-
export { l as ContextWithMastra, m as MastraAuthProvider, n as MastraAuthProviderOptions } from '../base-
|
|
3
|
+
import { i as Methods, M as Mastra, j as ApiRoute, k as MastraAuthConfig } from '../base-CmIdgTSq.js';
|
|
4
|
+
export { l as ContextWithMastra, m as MastraAuthProvider, n as MastraAuthProviderOptions } from '../base-CmIdgTSq.js';
|
|
5
5
|
import 'ai';
|
|
6
6
|
import '../base-BbdvunNJ.js';
|
|
7
7
|
import '@opentelemetry/api';
|
package/dist/server/index.js
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import { InstrumentClass } from '../chunk-
|
|
1
|
+
import { InstrumentClass } from '../chunk-6PQRSQZF.js';
|
|
2
|
+
import { MastraError } from '../chunk-LDNCERLU.js';
|
|
2
3
|
import { MastraBase } from '../chunk-5IEKR756.js';
|
|
3
4
|
import { __decoratorStart, __decorateElement, __runInitializers } from '../chunk-C6A6W6XS.js';
|
|
4
5
|
|
|
@@ -35,7 +36,12 @@ MastraAuthProvider = /*@__PURE__*/(_ => {
|
|
|
35
36
|
// src/server/index.ts
|
|
36
37
|
function registerApiRoute(path, options) {
|
|
37
38
|
if (path.startsWith("/api/")) {
|
|
38
|
-
throw new
|
|
39
|
+
throw new MastraError({
|
|
40
|
+
id: "MASTRA_SERVER_API_PATH_RESERVED",
|
|
41
|
+
text: `Path must not start with "/api", it's reserved for internal API routes`,
|
|
42
|
+
domain: "MASTRA_SERVER" /* MASTRA_SERVER */,
|
|
43
|
+
category: "USER" /* USER */
|
|
44
|
+
});
|
|
39
45
|
}
|
|
40
46
|
return {
|
|
41
47
|
path,
|
package/dist/storage/index.cjs
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
var
|
|
5
|
-
var
|
|
3
|
+
var chunkEFJIVMMM_cjs = require('../chunk-EFJIVMMM.cjs');
|
|
4
|
+
var chunkTGK6JO2D_cjs = require('../chunk-TGK6JO2D.cjs');
|
|
5
|
+
var chunkQQ3KHYKE_cjs = require('../chunk-QQ3KHYKE.cjs');
|
|
6
6
|
|
|
7
7
|
// src/storage/mock.ts
|
|
8
|
-
var MockStore = class extends
|
|
8
|
+
var MockStore = class extends chunkEFJIVMMM_cjs.MastraStorage {
|
|
9
9
|
data = {
|
|
10
10
|
mastra_workflow_snapshot: {},
|
|
11
11
|
mastra_evals: {},
|
|
@@ -96,7 +96,7 @@ var MockStore = class extends chunkZKUUYDOQ_cjs.MastraStorage {
|
|
|
96
96
|
const key = message.id;
|
|
97
97
|
this.data.mastra_messages[key] = message;
|
|
98
98
|
}
|
|
99
|
-
const list = new
|
|
99
|
+
const list = new chunkTGK6JO2D_cjs.MessageList().add(messages, "memory");
|
|
100
100
|
if (format === `v2`) return list.get.all.v2();
|
|
101
101
|
return list.get.all.v1();
|
|
102
102
|
}
|
|
@@ -258,30 +258,30 @@ var MockStore = class extends chunkZKUUYDOQ_cjs.MastraStorage {
|
|
|
258
258
|
|
|
259
259
|
Object.defineProperty(exports, "MastraStorage", {
|
|
260
260
|
enumerable: true,
|
|
261
|
-
get: function () { return
|
|
261
|
+
get: function () { return chunkEFJIVMMM_cjs.MastraStorage; }
|
|
262
262
|
});
|
|
263
263
|
Object.defineProperty(exports, "TABLE_EVALS", {
|
|
264
264
|
enumerable: true,
|
|
265
|
-
get: function () { return
|
|
265
|
+
get: function () { return chunkQQ3KHYKE_cjs.TABLE_EVALS; }
|
|
266
266
|
});
|
|
267
267
|
Object.defineProperty(exports, "TABLE_MESSAGES", {
|
|
268
268
|
enumerable: true,
|
|
269
|
-
get: function () { return
|
|
269
|
+
get: function () { return chunkQQ3KHYKE_cjs.TABLE_MESSAGES; }
|
|
270
270
|
});
|
|
271
271
|
Object.defineProperty(exports, "TABLE_SCHEMAS", {
|
|
272
272
|
enumerable: true,
|
|
273
|
-
get: function () { return
|
|
273
|
+
get: function () { return chunkQQ3KHYKE_cjs.TABLE_SCHEMAS; }
|
|
274
274
|
});
|
|
275
275
|
Object.defineProperty(exports, "TABLE_THREADS", {
|
|
276
276
|
enumerable: true,
|
|
277
|
-
get: function () { return
|
|
277
|
+
get: function () { return chunkQQ3KHYKE_cjs.TABLE_THREADS; }
|
|
278
278
|
});
|
|
279
279
|
Object.defineProperty(exports, "TABLE_TRACES", {
|
|
280
280
|
enumerable: true,
|
|
281
|
-
get: function () { return
|
|
281
|
+
get: function () { return chunkQQ3KHYKE_cjs.TABLE_TRACES; }
|
|
282
282
|
});
|
|
283
283
|
Object.defineProperty(exports, "TABLE_WORKFLOW_SNAPSHOT", {
|
|
284
284
|
enumerable: true,
|
|
285
|
-
get: function () { return
|
|
285
|
+
get: function () { return chunkQQ3KHYKE_cjs.TABLE_WORKFLOW_SNAPSHOT; }
|
|
286
286
|
});
|
|
287
287
|
exports.MockStore = MockStore;
|
package/dist/storage/index.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { o as MastraStorage, p as TABLE_NAMES, q as StorageColumn, r as StorageThreadType, s as MastraMessageV2, t as StorageGetMessagesArg, u as MastraMessageV1, E as EvalRow, v as WorkflowRuns, w as WorkflowRun, P as PaginationInfo } from '../base-
|
|
2
|
-
export { y as LegacyWorkflowRun, x as LegacyWorkflowRuns, z as PaginationArgs, B as StorageGetTracesArg,
|
|
1
|
+
import { o as MastraStorage, p as TABLE_NAMES, q as StorageColumn, r as StorageThreadType, s as MastraMessageV2, t as StorageGetMessagesArg, u as MastraMessageV1, E as EvalRow, v as WorkflowRuns, w as WorkflowRun, P as PaginationInfo } from '../base-_mZ6e_qo.cjs';
|
|
2
|
+
export { y as LegacyWorkflowRun, x as LegacyWorkflowRuns, z as PaginationArgs, B as StorageGetTracesArg, G as TABLE_EVALS, H as TABLE_MESSAGES, K as TABLE_SCHEMAS, I as TABLE_THREADS, J as TABLE_TRACES, F as TABLE_WORKFLOW_SNAPSHOT } from '../base-_mZ6e_qo.cjs';
|
|
3
3
|
import { T as Trace } from '../base-DVVTzIQy.cjs';
|
|
4
4
|
import 'ai';
|
|
5
5
|
import 'zod';
|
package/dist/storage/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { o as MastraStorage, p as TABLE_NAMES, q as StorageColumn, r as StorageThreadType, s as MastraMessageV2, t as StorageGetMessagesArg, u as MastraMessageV1, E as EvalRow, v as WorkflowRuns, w as WorkflowRun, P as PaginationInfo } from '../base-
|
|
2
|
-
export { y as LegacyWorkflowRun, x as LegacyWorkflowRuns, z as PaginationArgs, B as StorageGetTracesArg,
|
|
1
|
+
import { o as MastraStorage, p as TABLE_NAMES, q as StorageColumn, r as StorageThreadType, s as MastraMessageV2, t as StorageGetMessagesArg, u as MastraMessageV1, E as EvalRow, v as WorkflowRuns, w as WorkflowRun, P as PaginationInfo } from '../base-CmIdgTSq.js';
|
|
2
|
+
export { y as LegacyWorkflowRun, x as LegacyWorkflowRuns, z as PaginationArgs, B as StorageGetTracesArg, G as TABLE_EVALS, H as TABLE_MESSAGES, K as TABLE_SCHEMAS, I as TABLE_THREADS, J as TABLE_TRACES, F as TABLE_WORKFLOW_SNAPSHOT } from '../base-CmIdgTSq.js';
|
|
3
3
|
import { T as Trace } from '../base-BbdvunNJ.js';
|
|
4
4
|
import 'ai';
|
|
5
5
|
import 'zod';
|
package/dist/storage/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { MastraStorage } from '../chunk-
|
|
2
|
-
export { MastraStorage } from '../chunk-
|
|
3
|
-
import { MessageList } from '../chunk-
|
|
4
|
-
export { TABLE_EVALS, TABLE_MESSAGES, TABLE_SCHEMAS, TABLE_THREADS, TABLE_TRACES, TABLE_WORKFLOW_SNAPSHOT } from '../chunk-
|
|
1
|
+
import { MastraStorage } from '../chunk-BMED2N3R.js';
|
|
2
|
+
export { MastraStorage } from '../chunk-BMED2N3R.js';
|
|
3
|
+
import { MessageList } from '../chunk-DPKEVI6Q.js';
|
|
4
|
+
export { TABLE_EVALS, TABLE_MESSAGES, TABLE_SCHEMAS, TABLE_THREADS, TABLE_TRACES, TABLE_WORKFLOW_SNAPSHOT } from '../chunk-6PQRSQZF.js';
|
|
5
5
|
|
|
6
6
|
// src/storage/mock.ts
|
|
7
7
|
var MockStore = class extends MastraStorage {
|
package/dist/telemetry/index.cjs
CHANGED
|
@@ -1,30 +1,30 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkQQ3KHYKE_cjs = require('../chunk-QQ3KHYKE.cjs');
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
Object.defineProperty(exports, "InstrumentClass", {
|
|
8
8
|
enumerable: true,
|
|
9
|
-
get: function () { return
|
|
9
|
+
get: function () { return chunkQQ3KHYKE_cjs.InstrumentClass; }
|
|
10
10
|
});
|
|
11
11
|
Object.defineProperty(exports, "OTLPStorageExporter", {
|
|
12
12
|
enumerable: true,
|
|
13
|
-
get: function () { return
|
|
13
|
+
get: function () { return chunkQQ3KHYKE_cjs.OTLPTraceExporter; }
|
|
14
14
|
});
|
|
15
15
|
Object.defineProperty(exports, "Telemetry", {
|
|
16
16
|
enumerable: true,
|
|
17
|
-
get: function () { return
|
|
17
|
+
get: function () { return chunkQQ3KHYKE_cjs.Telemetry; }
|
|
18
18
|
});
|
|
19
19
|
Object.defineProperty(exports, "getBaggageValues", {
|
|
20
20
|
enumerable: true,
|
|
21
|
-
get: function () { return
|
|
21
|
+
get: function () { return chunkQQ3KHYKE_cjs.getBaggageValues; }
|
|
22
22
|
});
|
|
23
23
|
Object.defineProperty(exports, "hasActiveTelemetry", {
|
|
24
24
|
enumerable: true,
|
|
25
|
-
get: function () { return
|
|
25
|
+
get: function () { return chunkQQ3KHYKE_cjs.hasActiveTelemetry; }
|
|
26
26
|
});
|
|
27
27
|
Object.defineProperty(exports, "withSpan", {
|
|
28
28
|
enumerable: true,
|
|
29
|
-
get: function () { return
|
|
29
|
+
get: function () { return chunkQQ3KHYKE_cjs.withSpan; }
|
|
30
30
|
});
|
|
@@ -3,7 +3,7 @@ import { SpanKind, Context } from '@opentelemetry/api';
|
|
|
3
3
|
import { ExportResult } from '@opentelemetry/core';
|
|
4
4
|
import { SpanExporter, ReadableSpan } from '@opentelemetry/sdk-trace-base';
|
|
5
5
|
import { I as IMastraLogger } from '../logger-CpL0z5v_.cjs';
|
|
6
|
-
import { o as MastraStorage } from '../base-
|
|
6
|
+
import { o as MastraStorage } from '../base-_mZ6e_qo.cjs';
|
|
7
7
|
import '../error/index.cjs';
|
|
8
8
|
import 'stream';
|
|
9
9
|
import 'ai';
|
|
@@ -3,7 +3,7 @@ import { SpanKind, Context } from '@opentelemetry/api';
|
|
|
3
3
|
import { ExportResult } from '@opentelemetry/core';
|
|
4
4
|
import { SpanExporter, ReadableSpan } from '@opentelemetry/sdk-trace-base';
|
|
5
5
|
import { I as IMastraLogger } from '../logger-DtVDdb81.js';
|
|
6
|
-
import { o as MastraStorage } from '../base-
|
|
6
|
+
import { o as MastraStorage } from '../base-CmIdgTSq.js';
|
|
7
7
|
import '../error/index.js';
|
|
8
8
|
import 'stream';
|
|
9
9
|
import 'ai';
|
package/dist/telemetry/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { InstrumentClass, OTLPTraceExporter as OTLPStorageExporter, Telemetry, getBaggageValues, hasActiveTelemetry, withSpan } from '../chunk-
|
|
1
|
+
export { InstrumentClass, OTLPTraceExporter as OTLPStorageExporter, Telemetry, getBaggageValues, hasActiveTelemetry, withSpan } from '../chunk-6PQRSQZF.js';
|
package/dist/tools/index.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { V as VercelTool, c as ToolAction } from '../base-
|
|
2
|
-
export { C as CoreTool,
|
|
1
|
+
import { V as VercelTool, c as ToolAction } from '../base-_mZ6e_qo.cjs';
|
|
2
|
+
export { C as CoreTool, ar as InternalCoreTool, ap as Tool, as as ToolExecutionContext, aq as createTool } from '../base-_mZ6e_qo.cjs';
|
|
3
3
|
import '../base-DVVTzIQy.cjs';
|
|
4
4
|
import 'ai';
|
|
5
5
|
import 'zod';
|
package/dist/tools/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { V as VercelTool, c as ToolAction } from '../base-
|
|
2
|
-
export { C as CoreTool,
|
|
1
|
+
import { V as VercelTool, c as ToolAction } from '../base-CmIdgTSq.js';
|
|
2
|
+
export { C as CoreTool, ar as InternalCoreTool, ap as Tool, as as ToolExecutionContext, aq as createTool } from '../base-CmIdgTSq.js';
|
|
3
3
|
import '../base-BbdvunNJ.js';
|
|
4
4
|
import 'ai';
|
|
5
5
|
import 'zod';
|
package/dist/tts/index.cjs
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkLRMKKZ6M_cjs = require('../chunk-LRMKKZ6M.cjs');
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
Object.defineProperty(exports, "MastraTTS", {
|
|
8
8
|
enumerable: true,
|
|
9
|
-
get: function () { return
|
|
9
|
+
get: function () { return chunkLRMKKZ6M_cjs.MastraTTS; }
|
|
10
10
|
});
|
package/dist/tts/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { MastraTTS } from '../chunk-
|
|
1
|
+
export { MastraTTS } from '../chunk-F2DBWJK3.js';
|
package/dist/utils.cjs
CHANGED
|
@@ -1,58 +1,58 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkJ7MLMW6O_cjs = require('./chunk-J7MLMW6O.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 chunkJ7MLMW6O_cjs.checkEvalStorageFields; }
|
|
10
10
|
});
|
|
11
11
|
Object.defineProperty(exports, "createMastraProxy", {
|
|
12
12
|
enumerable: true,
|
|
13
|
-
get: function () { return
|
|
13
|
+
get: function () { return chunkJ7MLMW6O_cjs.createMastraProxy; }
|
|
14
14
|
});
|
|
15
15
|
Object.defineProperty(exports, "deepMerge", {
|
|
16
16
|
enumerable: true,
|
|
17
|
-
get: function () { return
|
|
17
|
+
get: function () { return chunkJ7MLMW6O_cjs.deepMerge; }
|
|
18
18
|
});
|
|
19
19
|
Object.defineProperty(exports, "delay", {
|
|
20
20
|
enumerable: true,
|
|
21
|
-
get: function () { return
|
|
21
|
+
get: function () { return chunkJ7MLMW6O_cjs.delay; }
|
|
22
22
|
});
|
|
23
23
|
Object.defineProperty(exports, "ensureToolProperties", {
|
|
24
24
|
enumerable: true,
|
|
25
|
-
get: function () { return
|
|
25
|
+
get: function () { return chunkJ7MLMW6O_cjs.ensureToolProperties; }
|
|
26
26
|
});
|
|
27
27
|
Object.defineProperty(exports, "isCoreMessage", {
|
|
28
28
|
enumerable: true,
|
|
29
|
-
get: function () { return
|
|
29
|
+
get: function () { return chunkJ7MLMW6O_cjs.isCoreMessage; }
|
|
30
30
|
});
|
|
31
31
|
Object.defineProperty(exports, "isUiMessage", {
|
|
32
32
|
enumerable: true,
|
|
33
|
-
get: function () { return
|
|
33
|
+
get: function () { return chunkJ7MLMW6O_cjs.isUiMessage; }
|
|
34
34
|
});
|
|
35
35
|
Object.defineProperty(exports, "isZodType", {
|
|
36
36
|
enumerable: true,
|
|
37
|
-
get: function () { return
|
|
37
|
+
get: function () { return chunkJ7MLMW6O_cjs.isZodType; }
|
|
38
38
|
});
|
|
39
39
|
Object.defineProperty(exports, "makeCoreTool", {
|
|
40
40
|
enumerable: true,
|
|
41
|
-
get: function () { return
|
|
41
|
+
get: function () { return chunkJ7MLMW6O_cjs.makeCoreTool; }
|
|
42
42
|
});
|
|
43
43
|
Object.defineProperty(exports, "maskStreamTags", {
|
|
44
44
|
enumerable: true,
|
|
45
|
-
get: function () { return
|
|
45
|
+
get: function () { return chunkJ7MLMW6O_cjs.maskStreamTags; }
|
|
46
46
|
});
|
|
47
47
|
Object.defineProperty(exports, "parseFieldKey", {
|
|
48
48
|
enumerable: true,
|
|
49
|
-
get: function () { return
|
|
49
|
+
get: function () { return chunkJ7MLMW6O_cjs.parseFieldKey; }
|
|
50
50
|
});
|
|
51
51
|
Object.defineProperty(exports, "parseSqlIdentifier", {
|
|
52
52
|
enumerable: true,
|
|
53
|
-
get: function () { return
|
|
53
|
+
get: function () { return chunkJ7MLMW6O_cjs.parseSqlIdentifier; }
|
|
54
54
|
});
|
|
55
55
|
Object.defineProperty(exports, "resolveSerializedZodOutput", {
|
|
56
56
|
enumerable: true,
|
|
57
|
-
get: function () { return
|
|
57
|
+
get: function () { return chunkJ7MLMW6O_cjs.resolveSerializedZodOutput; }
|
|
58
58
|
});
|
package/dist/utils.d.cts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { M as Mastra, a as MastraPrimitives, b as MastraMemory, T as ToolsInput, V as VercelTool, c as ToolAction, C as CoreTool, A as Agent, L as LegacyWorkflow, d as LegacyStep, S as StepExecutionContext, W as WorkflowContext, e as Workflow, f as Step, g as AgentNetwork, h as MCPServerBase } from './base-
|
|
1
|
+
import { M as Mastra, a as MastraPrimitives, b as MastraMemory, T as ToolsInput, V as VercelTool, c as ToolAction, C as CoreTool, A as Agent, L as LegacyWorkflow, d as LegacyStep, S as StepExecutionContext, W as WorkflowContext, e as Workflow, f as Step, D as DefaultEngineType, g as AgentNetwork, h as MCPServerBase } from './base-_mZ6e_qo.cjs';
|
|
2
2
|
import { LanguageModelV1, CoreMessage, Message } from 'ai';
|
|
3
3
|
import { MastraTTS } from './tts/index.cjs';
|
|
4
4
|
import { MastraVector } from './vector/index.cjs';
|
|
@@ -97,7 +97,7 @@ declare function makeCoreTool(originalTool: ToolToConvert, options: ToolOptions,
|
|
|
97
97
|
declare function createMastraProxy({ mastra, logger }: {
|
|
98
98
|
mastra: Mastra;
|
|
99
99
|
logger: IMastraLogger;
|
|
100
|
-
}): Mastra<Record<string, Agent<any, ToolsInput, Record<string, Metric>>>, Record<string, LegacyWorkflow<LegacyStep<string, any, any, StepExecutionContext<any, WorkflowContext<any, LegacyStep<string, any, any, any>[], Record<string, any>>>>[], string, any, any>>, Record<string, Workflow<Step<string, any, any, any, 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>, IMastraLogger, Record<string, AgentNetwork>, Record<string, MCPServerBase>>;
|
|
100
|
+
}): Mastra<Record<string, Agent<any, ToolsInput, Record<string, Metric>>>, Record<string, LegacyWorkflow<LegacyStep<string, any, any, StepExecutionContext<any, WorkflowContext<any, LegacyStep<string, any, any, any>[], Record<string, any>>>>[], string, any, any>>, Record<string, Workflow<Step<string, any, any, any, any, any>[], string, z.ZodType<any, z.ZodTypeDef, any>, z.ZodType<any, z.ZodTypeDef, any>, DefaultEngineType, z.ZodType<any, z.ZodTypeDef, any>>>, Record<string, MastraVector>, Record<string, MastraTTS>, IMastraLogger, Record<string, AgentNetwork>, Record<string, MCPServerBase>>;
|
|
101
101
|
declare function checkEvalStorageFields(traceObject: any, logger?: IMastraLogger): boolean;
|
|
102
102
|
declare function isUiMessage(message: CoreMessage | Message): message is Message;
|
|
103
103
|
declare function isCoreMessage(message: CoreMessage | Message): message is CoreMessage;
|
package/dist/utils.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { M as Mastra, a as MastraPrimitives, b as MastraMemory, T as ToolsInput, V as VercelTool, c as ToolAction, C as CoreTool, A as Agent, L as LegacyWorkflow, d as LegacyStep, S as StepExecutionContext, W as WorkflowContext, e as Workflow, f as Step, g as AgentNetwork, h as MCPServerBase } from './base-
|
|
1
|
+
import { M as Mastra, a as MastraPrimitives, b as MastraMemory, T as ToolsInput, V as VercelTool, c as ToolAction, C as CoreTool, A as Agent, L as LegacyWorkflow, d as LegacyStep, S as StepExecutionContext, W as WorkflowContext, e as Workflow, f as Step, D as DefaultEngineType, g as AgentNetwork, h as MCPServerBase } from './base-CmIdgTSq.js';
|
|
2
2
|
import { LanguageModelV1, CoreMessage, Message } from 'ai';
|
|
3
3
|
import { MastraTTS } from './tts/index.js';
|
|
4
4
|
import { MastraVector } from './vector/index.js';
|
|
@@ -97,7 +97,7 @@ declare function makeCoreTool(originalTool: ToolToConvert, options: ToolOptions,
|
|
|
97
97
|
declare function createMastraProxy({ mastra, logger }: {
|
|
98
98
|
mastra: Mastra;
|
|
99
99
|
logger: IMastraLogger;
|
|
100
|
-
}): Mastra<Record<string, Agent<any, ToolsInput, Record<string, Metric>>>, Record<string, LegacyWorkflow<LegacyStep<string, any, any, StepExecutionContext<any, WorkflowContext<any, LegacyStep<string, any, any, any>[], Record<string, any>>>>[], string, any, any>>, Record<string, Workflow<Step<string, any, any, any, 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>, IMastraLogger, Record<string, AgentNetwork>, Record<string, MCPServerBase>>;
|
|
100
|
+
}): Mastra<Record<string, Agent<any, ToolsInput, Record<string, Metric>>>, Record<string, LegacyWorkflow<LegacyStep<string, any, any, StepExecutionContext<any, WorkflowContext<any, LegacyStep<string, any, any, any>[], Record<string, any>>>>[], string, any, any>>, Record<string, Workflow<Step<string, any, any, any, any, any>[], string, z.ZodType<any, z.ZodTypeDef, any>, z.ZodType<any, z.ZodTypeDef, any>, DefaultEngineType, z.ZodType<any, z.ZodTypeDef, any>>>, Record<string, MastraVector>, Record<string, MastraTTS>, IMastraLogger, Record<string, AgentNetwork>, Record<string, MCPServerBase>>;
|
|
101
101
|
declare function checkEvalStorageFields(traceObject: any, logger?: IMastraLogger): boolean;
|
|
102
102
|
declare function isUiMessage(message: CoreMessage | Message): message is Message;
|
|
103
103
|
declare function isCoreMessage(message: CoreMessage | Message): message is CoreMessage;
|
package/dist/utils.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { checkEvalStorageFields, createMastraProxy, deepMerge, delay, ensureToolProperties, isCoreMessage, isUiMessage, isZodType, makeCoreTool, maskStreamTags, parseFieldKey, parseSqlIdentifier, resolveSerializedZodOutput } from './chunk-
|
|
1
|
+
export { checkEvalStorageFields, createMastraProxy, deepMerge, delay, ensureToolProperties, isCoreMessage, isUiMessage, isZodType, makeCoreTool, maskStreamTags, parseFieldKey, parseSqlIdentifier, resolveSerializedZodOutput } from './chunk-3SY7GRSA.js';
|
package/dist/vector/index.cjs
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkQ65UGFQK_cjs = require('../chunk-Q65UGFQK.cjs');
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
Object.defineProperty(exports, "MastraVector", {
|
|
8
8
|
enumerable: true,
|
|
9
|
-
get: function () { return
|
|
9
|
+
get: function () { return chunkQ65UGFQK_cjs.MastraVector; }
|
|
10
10
|
});
|
package/dist/vector/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { MastraVector } from '../chunk-
|
|
1
|
+
export { MastraVector } from '../chunk-2RZXEVWT.js';
|
package/dist/voice/index.cjs
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkVRDDTY4O_cjs = require('../chunk-VRDDTY4O.cjs');
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
Object.defineProperty(exports, "CompositeVoice", {
|
|
8
8
|
enumerable: true,
|
|
9
|
-
get: function () { return
|
|
9
|
+
get: function () { return chunkVRDDTY4O_cjs.CompositeVoice; }
|
|
10
10
|
});
|
|
11
11
|
Object.defineProperty(exports, "DefaultVoice", {
|
|
12
12
|
enumerable: true,
|
|
13
|
-
get: function () { return
|
|
13
|
+
get: function () { return chunkVRDDTY4O_cjs.DefaultVoice; }
|
|
14
14
|
});
|
|
15
15
|
Object.defineProperty(exports, "MastraVoice", {
|
|
16
16
|
enumerable: true,
|
|
17
|
-
get: function () { return
|
|
17
|
+
get: function () { return chunkVRDDTY4O_cjs.MastraVoice; }
|
|
18
18
|
});
|
package/dist/voice/index.d.cts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export {
|
|
1
|
+
export { bx as CompositeVoice, by as DefaultVoice, bw as MastraVoice, bv as VoiceConfig, bu as VoiceEventMap, bt as VoiceEventType } from '../base-_mZ6e_qo.cjs';
|
|
2
2
|
import 'ai';
|
|
3
3
|
import '../base-DVVTzIQy.cjs';
|
|
4
4
|
import '@opentelemetry/api';
|
package/dist/voice/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export {
|
|
1
|
+
export { bx as CompositeVoice, by as DefaultVoice, bw as MastraVoice, bv as VoiceConfig, bu as VoiceEventMap, bt as VoiceEventType } from '../base-CmIdgTSq.js';
|
|
2
2
|
import 'ai';
|
|
3
3
|
import '../base-BbdvunNJ.js';
|
|
4
4
|
import '@opentelemetry/api';
|
package/dist/voice/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { CompositeVoice, DefaultVoice, MastraVoice } from '../chunk-
|
|
1
|
+
export { CompositeVoice, DefaultVoice, MastraVoice } from '../chunk-YLCFUSJ4.js';
|
package/dist/workflows/index.cjs
CHANGED
|
@@ -1,38 +1,38 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunk7L56W43N_cjs = require('../chunk-7L56W43N.cjs');
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
Object.defineProperty(exports, "DefaultExecutionEngine", {
|
|
8
8
|
enumerable: true,
|
|
9
|
-
get: function () { return
|
|
9
|
+
get: function () { return chunk7L56W43N_cjs.DefaultExecutionEngine; }
|
|
10
10
|
});
|
|
11
11
|
Object.defineProperty(exports, "ExecutionEngine", {
|
|
12
12
|
enumerable: true,
|
|
13
|
-
get: function () { return
|
|
13
|
+
get: function () { return chunk7L56W43N_cjs.ExecutionEngine; }
|
|
14
14
|
});
|
|
15
15
|
Object.defineProperty(exports, "Run", {
|
|
16
16
|
enumerable: true,
|
|
17
|
-
get: function () { return
|
|
17
|
+
get: function () { return chunk7L56W43N_cjs.Run; }
|
|
18
18
|
});
|
|
19
19
|
Object.defineProperty(exports, "Workflow", {
|
|
20
20
|
enumerable: true,
|
|
21
|
-
get: function () { return
|
|
21
|
+
get: function () { return chunk7L56W43N_cjs.Workflow; }
|
|
22
22
|
});
|
|
23
23
|
Object.defineProperty(exports, "cloneStep", {
|
|
24
24
|
enumerable: true,
|
|
25
|
-
get: function () { return
|
|
25
|
+
get: function () { return chunk7L56W43N_cjs.cloneStep; }
|
|
26
26
|
});
|
|
27
27
|
Object.defineProperty(exports, "cloneWorkflow", {
|
|
28
28
|
enumerable: true,
|
|
29
|
-
get: function () { return
|
|
29
|
+
get: function () { return chunk7L56W43N_cjs.cloneWorkflow; }
|
|
30
30
|
});
|
|
31
31
|
Object.defineProperty(exports, "createStep", {
|
|
32
32
|
enumerable: true,
|
|
33
|
-
get: function () { return
|
|
33
|
+
get: function () { return chunk7L56W43N_cjs.createStep; }
|
|
34
34
|
});
|
|
35
35
|
Object.defineProperty(exports, "createWorkflow", {
|
|
36
36
|
enumerable: true,
|
|
37
|
-
get: function () { return
|
|
37
|
+
get: function () { return chunk7L56W43N_cjs.createWorkflow; }
|
|
38
38
|
});
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export {
|
|
1
|
+
import { bb as ExecutionEngine, bh as StepResult, ba as ExecutionGraph, b3 as SerializedStepFlowEntry, b1 as StepFlowEntry, f as Step, bc as ExecuteFunction, D as DefaultEngineType } from '../base-_mZ6e_qo.cjs';
|
|
2
|
+
export { bj as DynamicMapping, bm as ExtractSchemaFromStep, bl as ExtractSchemaType, bk as PathsToStringProps, b9 as Run, b2 as SerializedStep, be as StepFailure, bg as StepRunning, bd as StepSuccess, bf as StepSuspended, bi as StepsRecord, bo as StreamEvent, bn as VariableReference, bp as WatchEvent, e as Workflow, au as WorkflowConfig, b8 as WorkflowResult, br as WorkflowRunState, bq as ZodPathType, b5 as cloneStep, b7 as cloneWorkflow, b4 as createStep, b6 as createWorkflow } from '../base-_mZ6e_qo.cjs';
|
|
3
3
|
import { Span } from '@opentelemetry/api';
|
|
4
4
|
import { RuntimeContext } from '../runtime-context/index.cjs';
|
|
5
5
|
import 'ai';
|
|
@@ -118,7 +118,7 @@ declare class DefaultExecutionEngine extends ExecutionEngine {
|
|
|
118
118
|
entry: {
|
|
119
119
|
type: 'conditional';
|
|
120
120
|
steps: StepFlowEntry[];
|
|
121
|
-
conditions: ExecuteFunction<any, any, any, any>[];
|
|
121
|
+
conditions: ExecuteFunction<any, any, any, any, DefaultEngineType>[];
|
|
122
122
|
};
|
|
123
123
|
prevStep: StepFlowEntry;
|
|
124
124
|
prevOutput: any;
|
|
@@ -141,7 +141,7 @@ declare class DefaultExecutionEngine extends ExecutionEngine {
|
|
|
141
141
|
entry: {
|
|
142
142
|
type: 'loop';
|
|
143
143
|
step: Step;
|
|
144
|
-
condition: ExecuteFunction<any, any, any, any>;
|
|
144
|
+
condition: ExecuteFunction<any, any, any, any, DefaultEngineType>;
|
|
145
145
|
loopType: 'dowhile' | 'dountil';
|
|
146
146
|
};
|
|
147
147
|
prevStep: StepFlowEntry;
|
|
@@ -184,12 +184,15 @@ declare class DefaultExecutionEngine extends ExecutionEngine {
|
|
|
184
184
|
};
|
|
185
185
|
runtimeContext: RuntimeContext;
|
|
186
186
|
}): Promise<StepResult<any, any, any, any>>;
|
|
187
|
-
protected persistStepUpdate({ workflowId, runId, stepResults, serializedStepGraph, executionContext, }: {
|
|
187
|
+
protected persistStepUpdate({ workflowId, runId, stepResults, serializedStepGraph, executionContext, workflowStatus, result, error, }: {
|
|
188
188
|
workflowId: string;
|
|
189
189
|
runId: string;
|
|
190
190
|
stepResults: Record<string, StepResult<any, any, any, any>>;
|
|
191
191
|
serializedStepGraph: SerializedStepFlowEntry[];
|
|
192
192
|
executionContext: ExecutionContext;
|
|
193
|
+
workflowStatus: 'success' | 'failed' | 'suspended' | 'running';
|
|
194
|
+
result?: Record<string, any>;
|
|
195
|
+
error?: string | Error;
|
|
193
196
|
}): Promise<void>;
|
|
194
197
|
executeEntry({ workflowId, runId, entry, prevStep, serializedStepGraph, stepResults, resume, executionContext, emitter, runtimeContext, }: {
|
|
195
198
|
workflowId: string;
|
|
@@ -209,7 +212,11 @@ declare class DefaultExecutionEngine extends ExecutionEngine {
|
|
|
209
212
|
emit: (event: string, data: any) => Promise<void>;
|
|
210
213
|
};
|
|
211
214
|
runtimeContext: RuntimeContext;
|
|
212
|
-
}): Promise<
|
|
215
|
+
}): Promise<{
|
|
216
|
+
result: StepResult<any, any, any, any>;
|
|
217
|
+
stepResults?: Record<string, StepResult<any, any, any, any>>;
|
|
218
|
+
executionContext?: ExecutionContext;
|
|
219
|
+
}>;
|
|
213
220
|
}
|
|
214
221
|
|
|
215
|
-
export { DefaultExecutionEngine, ExecuteFunction, type ExecutionContext, ExecutionEngine, ExecutionGraph, SerializedStepFlowEntry, Step, StepFlowEntry, StepResult };
|
|
222
|
+
export { DefaultEngineType, DefaultExecutionEngine, ExecuteFunction, type ExecutionContext, ExecutionEngine, ExecutionGraph, SerializedStepFlowEntry, Step, StepFlowEntry, StepResult };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export {
|
|
1
|
+
import { bb as ExecutionEngine, bh as StepResult, ba as ExecutionGraph, b3 as SerializedStepFlowEntry, b1 as StepFlowEntry, f as Step, bc as ExecuteFunction, D as DefaultEngineType } from '../base-CmIdgTSq.js';
|
|
2
|
+
export { bj as DynamicMapping, bm as ExtractSchemaFromStep, bl as ExtractSchemaType, bk as PathsToStringProps, b9 as Run, b2 as SerializedStep, be as StepFailure, bg as StepRunning, bd as StepSuccess, bf as StepSuspended, bi as StepsRecord, bo as StreamEvent, bn as VariableReference, bp as WatchEvent, e as Workflow, au as WorkflowConfig, b8 as WorkflowResult, br as WorkflowRunState, bq as ZodPathType, b5 as cloneStep, b7 as cloneWorkflow, b4 as createStep, b6 as createWorkflow } from '../base-CmIdgTSq.js';
|
|
3
3
|
import { Span } from '@opentelemetry/api';
|
|
4
4
|
import { RuntimeContext } from '../runtime-context/index.js';
|
|
5
5
|
import 'ai';
|
|
@@ -118,7 +118,7 @@ declare class DefaultExecutionEngine extends ExecutionEngine {
|
|
|
118
118
|
entry: {
|
|
119
119
|
type: 'conditional';
|
|
120
120
|
steps: StepFlowEntry[];
|
|
121
|
-
conditions: ExecuteFunction<any, any, any, any>[];
|
|
121
|
+
conditions: ExecuteFunction<any, any, any, any, DefaultEngineType>[];
|
|
122
122
|
};
|
|
123
123
|
prevStep: StepFlowEntry;
|
|
124
124
|
prevOutput: any;
|
|
@@ -141,7 +141,7 @@ declare class DefaultExecutionEngine extends ExecutionEngine {
|
|
|
141
141
|
entry: {
|
|
142
142
|
type: 'loop';
|
|
143
143
|
step: Step;
|
|
144
|
-
condition: ExecuteFunction<any, any, any, any>;
|
|
144
|
+
condition: ExecuteFunction<any, any, any, any, DefaultEngineType>;
|
|
145
145
|
loopType: 'dowhile' | 'dountil';
|
|
146
146
|
};
|
|
147
147
|
prevStep: StepFlowEntry;
|
|
@@ -184,12 +184,15 @@ declare class DefaultExecutionEngine extends ExecutionEngine {
|
|
|
184
184
|
};
|
|
185
185
|
runtimeContext: RuntimeContext;
|
|
186
186
|
}): Promise<StepResult<any, any, any, any>>;
|
|
187
|
-
protected persistStepUpdate({ workflowId, runId, stepResults, serializedStepGraph, executionContext, }: {
|
|
187
|
+
protected persistStepUpdate({ workflowId, runId, stepResults, serializedStepGraph, executionContext, workflowStatus, result, error, }: {
|
|
188
188
|
workflowId: string;
|
|
189
189
|
runId: string;
|
|
190
190
|
stepResults: Record<string, StepResult<any, any, any, any>>;
|
|
191
191
|
serializedStepGraph: SerializedStepFlowEntry[];
|
|
192
192
|
executionContext: ExecutionContext;
|
|
193
|
+
workflowStatus: 'success' | 'failed' | 'suspended' | 'running';
|
|
194
|
+
result?: Record<string, any>;
|
|
195
|
+
error?: string | Error;
|
|
193
196
|
}): Promise<void>;
|
|
194
197
|
executeEntry({ workflowId, runId, entry, prevStep, serializedStepGraph, stepResults, resume, executionContext, emitter, runtimeContext, }: {
|
|
195
198
|
workflowId: string;
|
|
@@ -209,7 +212,11 @@ declare class DefaultExecutionEngine extends ExecutionEngine {
|
|
|
209
212
|
emit: (event: string, data: any) => Promise<void>;
|
|
210
213
|
};
|
|
211
214
|
runtimeContext: RuntimeContext;
|
|
212
|
-
}): Promise<
|
|
215
|
+
}): Promise<{
|
|
216
|
+
result: StepResult<any, any, any, any>;
|
|
217
|
+
stepResults?: Record<string, StepResult<any, any, any, any>>;
|
|
218
|
+
executionContext?: ExecutionContext;
|
|
219
|
+
}>;
|
|
213
220
|
}
|
|
214
221
|
|
|
215
|
-
export { DefaultExecutionEngine, ExecuteFunction, type ExecutionContext, ExecutionEngine, ExecutionGraph, SerializedStepFlowEntry, Step, StepFlowEntry, StepResult };
|
|
222
|
+
export { DefaultEngineType, DefaultExecutionEngine, ExecuteFunction, type ExecutionContext, ExecutionEngine, ExecutionGraph, SerializedStepFlowEntry, Step, StepFlowEntry, StepResult };
|
package/dist/workflows/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { DefaultExecutionEngine, ExecutionEngine, Run, Workflow, cloneStep, cloneWorkflow, createStep, createWorkflow } from '../chunk-
|
|
1
|
+
export { DefaultExecutionEngine, ExecutionEngine, Run, Workflow, cloneStep, cloneWorkflow, createStep, createWorkflow } from '../chunk-32XBQVNY.js';
|