@mastra/core 1.0.0-beta.8 → 1.0.0-beta.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +57 -0
- package/dist/agent/agent.d.ts +1 -1
- package/dist/agent/agent.d.ts.map +1 -1
- package/dist/agent/index.cjs +9 -9
- package/dist/agent/index.js +2 -2
- package/dist/agent/message-list/index.cjs +3 -3
- package/dist/agent/message-list/index.js +1 -1
- package/dist/agent/workflows/prepare-stream/index.d.ts +2 -1
- package/dist/agent/workflows/prepare-stream/index.d.ts.map +1 -1
- package/dist/agent/workflows/prepare-stream/stream-step.d.ts +2 -1
- package/dist/agent/workflows/prepare-stream/stream-step.d.ts.map +1 -1
- package/dist/{chunk-Y7YCQDML.cjs → chunk-3DRGAKUH.cjs} +382 -13
- package/dist/chunk-3DRGAKUH.cjs.map +1 -0
- package/dist/{chunk-RWT3XPKO.js → chunk-4GLDYGNN.js} +3 -3
- package/dist/{chunk-RWT3XPKO.js.map → chunk-4GLDYGNN.js.map} +1 -1
- package/dist/{chunk-4GTU7MB2.js → chunk-7IMDJAYQ.js} +5 -5
- package/dist/{chunk-4GTU7MB2.js.map → chunk-7IMDJAYQ.js.map} +1 -1
- package/dist/{chunk-KBXFAF37.cjs → chunk-7S7TLMTS.cjs} +287 -10
- package/dist/chunk-7S7TLMTS.cjs.map +1 -0
- package/dist/{chunk-QHJ7YVNX.js → chunk-A4C3AGVS.js} +5 -5
- package/dist/{chunk-QHJ7YVNX.js.map → chunk-A4C3AGVS.js.map} +1 -1
- package/dist/{chunk-DMPHPHMU.js → chunk-APMPOYPI.js} +3 -3
- package/dist/{chunk-DMPHPHMU.js.map → chunk-APMPOYPI.js.map} +1 -1
- package/dist/{chunk-EDNHZZUP.js → chunk-ARSSSQQP.js} +69 -11
- package/dist/chunk-ARSSSQQP.js.map +1 -0
- package/dist/{chunk-6BYHQ52F.cjs → chunk-CKRWR5DS.cjs} +15 -15
- package/dist/{chunk-6BYHQ52F.cjs.map → chunk-CKRWR5DS.cjs.map} +1 -1
- package/dist/{chunk-SD2BDUJ6.cjs → chunk-DWB7SBVC.cjs} +23 -23
- package/dist/{chunk-SD2BDUJ6.cjs.map → chunk-DWB7SBVC.cjs.map} +1 -1
- package/dist/{chunk-VWC5AUOQ.cjs → chunk-EGXQVF75.cjs} +372 -6
- package/dist/chunk-EGXQVF75.cjs.map +1 -0
- package/dist/{chunk-QYNZAPFE.cjs → chunk-F77YTHXI.cjs} +4 -4
- package/dist/{chunk-QYNZAPFE.cjs.map → chunk-F77YTHXI.cjs.map} +1 -1
- package/dist/{chunk-6C2PU6J4.cjs → chunk-HSRQXO6F.cjs} +6 -6
- package/dist/{chunk-6C2PU6J4.cjs.map → chunk-HSRQXO6F.cjs.map} +1 -1
- package/dist/{chunk-YUXTDKYN.cjs → chunk-IISGCZJ4.cjs} +15 -15
- package/dist/{chunk-YUXTDKYN.cjs.map → chunk-IISGCZJ4.cjs.map} +1 -1
- package/dist/{chunk-SPIUKQDK.js → chunk-LB7UOP2X.js} +376 -7
- package/dist/chunk-LB7UOP2X.js.map +1 -0
- package/dist/{chunk-URBPEE67.js → chunk-MCRIVYUB.js} +3 -3
- package/dist/{chunk-URBPEE67.js.map → chunk-MCRIVYUB.js.map} +1 -1
- package/dist/{chunk-AZQMPE7G.cjs → chunk-MRFUISXC.cjs} +3 -3
- package/dist/{chunk-AZQMPE7G.cjs.map → chunk-MRFUISXC.cjs.map} +1 -1
- package/dist/{chunk-TLLXRG2Z.js → chunk-OEIVMCWX.js} +3 -3
- package/dist/{chunk-TLLXRG2Z.js.map → chunk-OEIVMCWX.js.map} +1 -1
- package/dist/{chunk-FNSFXWDN.js → chunk-PIHOAJTA.js} +2 -2
- package/dist/chunk-PIHOAJTA.js.map +1 -0
- package/dist/{chunk-ZUWJCGLM.js → chunk-QM5SRDJX.js} +4 -5
- package/dist/chunk-QM5SRDJX.js.map +1 -0
- package/dist/{chunk-7PXCGGMO.js → chunk-QTEIZ2XG.js} +3 -3
- package/dist/{chunk-7PXCGGMO.js.map → chunk-QTEIZ2XG.js.map} +1 -1
- package/dist/{chunk-Y5SFNZUK.cjs → chunk-RIG4JP3V.cjs} +11 -11
- package/dist/{chunk-Y5SFNZUK.cjs.map → chunk-RIG4JP3V.cjs.map} +1 -1
- package/dist/{chunk-GW7BNMGA.js → chunk-SLX3NVAC.js} +4 -4
- package/dist/{chunk-GW7BNMGA.js.map → chunk-SLX3NVAC.js.map} +1 -1
- package/dist/{chunk-TQB2HMEC.cjs → chunk-SVLMF4UZ.cjs} +44 -45
- package/dist/chunk-SVLMF4UZ.cjs.map +1 -0
- package/dist/{chunk-3EYBRHB2.cjs → chunk-UVM27J4A.cjs} +2 -2
- package/dist/chunk-UVM27J4A.cjs.map +1 -0
- package/dist/{chunk-QDIYYAA4.js → chunk-VQ3FTSRC.js} +371 -5
- package/dist/chunk-VQ3FTSRC.js.map +1 -0
- package/dist/{chunk-YBEW5YWC.cjs → chunk-VRFSEZBA.cjs} +6 -6
- package/dist/{chunk-YBEW5YWC.cjs.map → chunk-VRFSEZBA.cjs.map} +1 -1
- package/dist/{chunk-HP6TRJ2Q.cjs → chunk-XMT5T4F2.cjs} +111 -52
- package/dist/chunk-XMT5T4F2.cjs.map +1 -0
- package/dist/{chunk-HDMH5IDV.js → chunk-ZINZHEXZ.js} +282 -9
- package/dist/chunk-ZINZHEXZ.js.map +1 -0
- package/dist/evals/index.cjs +9 -9
- package/dist/evals/index.js +2 -2
- package/dist/evals/scoreTraces/index.cjs +5 -5
- package/dist/evals/scoreTraces/index.js +2 -2
- package/dist/evals/types.d.ts +2 -2
- package/dist/index.cjs +2 -2
- package/dist/index.js +1 -1
- package/dist/llm/index.cjs +11 -11
- package/dist/llm/index.js +3 -3
- package/dist/llm/model/model.loop.d.ts +1 -1
- package/dist/llm/model/model.loop.d.ts.map +1 -1
- package/dist/llm/model/provider-types.generated.d.ts +176 -1
- package/dist/loop/index.cjs +2 -2
- package/dist/loop/index.js +1 -1
- package/dist/loop/network/index.d.ts +2 -2
- package/dist/loop/network/index.d.ts.map +1 -1
- package/dist/loop/types.d.ts +1 -0
- package/dist/loop/types.d.ts.map +1 -1
- package/dist/mastra/index.cjs +2 -2
- package/dist/mastra/index.d.ts +191 -5
- package/dist/mastra/index.d.ts.map +1 -1
- package/dist/mastra/index.js +1 -1
- package/dist/memory/index.cjs +6 -6
- package/dist/memory/index.js +1 -1
- package/dist/memory/memory.d.ts +6 -0
- package/dist/memory/memory.d.ts.map +1 -1
- package/dist/models-dev-23RN2WHG.js +3 -0
- package/dist/{models-dev-6GD3644V.js.map → models-dev-23RN2WHG.js.map} +1 -1
- package/dist/models-dev-EO3SUIY2.cjs +12 -0
- package/dist/{models-dev-IUQBXJSS.cjs.map → models-dev-EO3SUIY2.cjs.map} +1 -1
- package/dist/observability/index.cjs +10 -10
- package/dist/observability/index.js +1 -1
- package/dist/observability/types/tracing.d.ts +4 -0
- package/dist/observability/types/tracing.d.ts.map +1 -1
- package/dist/processors/index.cjs +17 -17
- package/dist/processors/index.js +1 -1
- package/dist/provider-registry-FM3IVY6C.js +3 -0
- package/dist/{provider-registry-A5QZFI2X.js.map → provider-registry-FM3IVY6C.js.map} +1 -1
- package/dist/provider-registry-Q6T32VC5.cjs +40 -0
- package/dist/{provider-registry-V32PGH6F.cjs.map → provider-registry-Q6T32VC5.cjs.map} +1 -1
- package/dist/provider-registry.json +368 -2
- package/dist/relevance/index.cjs +2 -2
- package/dist/relevance/index.js +1 -1
- package/dist/storage/base.d.ts +50 -2
- package/dist/storage/base.d.ts.map +1 -1
- package/dist/storage/constants.d.ts +3 -1
- package/dist/storage/constants.d.ts.map +1 -1
- package/dist/storage/domains/agents/base.d.ts +49 -0
- package/dist/storage/domains/agents/base.d.ts.map +1 -0
- package/dist/storage/domains/agents/index.d.ts +3 -0
- package/dist/storage/domains/agents/index.d.ts.map +1 -0
- package/dist/storage/domains/agents/inmemory.d.ts +22 -0
- package/dist/storage/domains/agents/inmemory.d.ts.map +1 -0
- package/dist/storage/domains/index.d.ts +1 -0
- package/dist/storage/domains/index.d.ts.map +1 -1
- package/dist/storage/domains/operations/inmemory.d.ts.map +1 -1
- package/dist/storage/index.cjs +50 -34
- package/dist/storage/index.js +1 -1
- package/dist/storage/mock.d.ts +1 -0
- package/dist/storage/mock.d.ts.map +1 -1
- package/dist/storage/types.d.ts +82 -0
- package/dist/storage/types.d.ts.map +1 -1
- package/dist/stream/base/output-format-handlers.d.ts +13 -0
- package/dist/stream/base/output-format-handlers.d.ts.map +1 -1
- package/dist/stream/index.cjs +15 -11
- package/dist/stream/index.d.ts +1 -1
- package/dist/stream/index.d.ts.map +1 -1
- package/dist/stream/index.js +2 -2
- package/dist/test-utils/llm-mock.cjs +10 -10
- package/dist/test-utils/llm-mock.js +3 -3
- package/dist/utils.cjs +22 -22
- package/dist/utils.d.ts +1 -1
- package/dist/utils.d.ts.map +1 -1
- package/dist/utils.js +1 -1
- package/dist/vector/index.cjs +2 -2
- package/dist/vector/index.js +1 -1
- package/dist/workflows/evented/index.cjs +10 -10
- package/dist/workflows/evented/index.js +1 -1
- package/dist/workflows/index.cjs +21 -21
- package/dist/workflows/index.js +1 -1
- package/dist/workflows/workflow.d.ts +2 -2
- package/dist/workflows/workflow.d.ts.map +1 -1
- package/package.json +2 -2
- package/src/llm/model/provider-types.generated.d.ts +176 -1
- package/dist/chunk-3EYBRHB2.cjs.map +0 -1
- package/dist/chunk-EDNHZZUP.js.map +0 -1
- package/dist/chunk-FNSFXWDN.js.map +0 -1
- package/dist/chunk-HDMH5IDV.js.map +0 -1
- package/dist/chunk-HP6TRJ2Q.cjs.map +0 -1
- package/dist/chunk-KBXFAF37.cjs.map +0 -1
- package/dist/chunk-QDIYYAA4.js.map +0 -1
- package/dist/chunk-SPIUKQDK.js.map +0 -1
- package/dist/chunk-TQB2HMEC.cjs.map +0 -1
- package/dist/chunk-VWC5AUOQ.cjs.map +0 -1
- package/dist/chunk-Y7YCQDML.cjs.map +0 -1
- package/dist/chunk-ZUWJCGLM.js.map +0 -1
- package/dist/models-dev-6GD3644V.js +0 -3
- package/dist/models-dev-IUQBXJSS.cjs +0 -12
- package/dist/provider-registry-A5QZFI2X.js +0 -3
- package/dist/provider-registry-V32PGH6F.cjs +0 -40
|
@@ -3,6 +3,19 @@ import type { StructuredOutputOptions } from '../../agent/types.js';
|
|
|
3
3
|
import type { IMastraLogger } from '../../logger/index.js';
|
|
4
4
|
import type { ChunkType } from '../types.js';
|
|
5
5
|
import type { OutputSchema } from './schema.js';
|
|
6
|
+
/**
|
|
7
|
+
* Escapes unescaped newlines, carriage returns, and tabs within JSON string values.
|
|
8
|
+
*
|
|
9
|
+
* LLMs often output actual newline characters inside JSON strings instead of properly
|
|
10
|
+
* escaped \n sequences, which breaks JSON parsing. This function fixes that by:
|
|
11
|
+
* 1. Tracking whether we're inside a JSON string (after an unescaped quote)
|
|
12
|
+
* 2. Replacing literal newlines/tabs with their escape sequences only inside strings
|
|
13
|
+
* 3. Preserving already-escaped sequences like \\n
|
|
14
|
+
*
|
|
15
|
+
* @param text - Raw JSON text that may contain unescaped control characters in strings
|
|
16
|
+
* @returns JSON text with control characters properly escaped inside string values
|
|
17
|
+
*/
|
|
18
|
+
export declare function escapeUnescapedControlCharsInJsonStrings(text: string): string;
|
|
6
19
|
/**
|
|
7
20
|
* Transforms raw text-delta chunks into structured object chunks for JSON mode streaming.
|
|
8
21
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"output-format-handlers.d.ts","sourceRoot":"","sources":["../../../src/stream/base/output-format-handlers.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,iBAAiB,CAAC;AAKlD,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,mBAAmB,CAAC;AAEjE,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,cAAc,CAAC;AAIlD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,UAAU,CAAC;AAE1C,OAAO,KAAK,EAAqB,YAAY,EAA6C,MAAM,UAAU,CAAC;
|
|
1
|
+
{"version":3,"file":"output-format-handlers.d.ts","sourceRoot":"","sources":["../../../src/stream/base/output-format-handlers.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,iBAAiB,CAAC;AAKlD,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,mBAAmB,CAAC;AAEjE,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,cAAc,CAAC;AAIlD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,UAAU,CAAC;AAE1C,OAAO,KAAK,EAAqB,YAAY,EAA6C,MAAM,UAAU,CAAC;AAE3G;;;;;;;;;;;GAWG;AACH,wBAAgB,wCAAwC,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAgD7E;AAqeD;;;;;;;;;;GAUG;AACH,wBAAgB,6BAA6B,CAAC,MAAM,SAAS,YAAY,GAAG,SAAS,EAAE,EACrF,gBAAgB,EAChB,MAAM,GACP,EAAE;IACD,gBAAgB,CAAC,EAAE,uBAAuB,CAAC,MAAM,CAAC,CAAC;IACnD,MAAM,CAAC,EAAE,aAAa,CAAC;CACxB,yDAwGA;AAED;;;;;;GAMG;AACH,wBAAgB,+BAA+B,CAAC,MAAM,SAAS,YAAY,GAAG,SAAS,EAAE,MAAM,CAAC,EAAE,MAAM,8CAuDvG"}
|
package/dist/stream/index.cjs
CHANGED
|
@@ -1,45 +1,49 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
var
|
|
3
|
+
var chunkXMT5T4F2_cjs = require('../chunk-XMT5T4F2.cjs');
|
|
4
|
+
var chunkVRFSEZBA_cjs = require('../chunk-VRFSEZBA.cjs');
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
8
8
|
Object.defineProperty(exports, "AISDKV5OutputStream", {
|
|
9
9
|
enumerable: true,
|
|
10
|
-
get: function () { return
|
|
10
|
+
get: function () { return chunkXMT5T4F2_cjs.AISDKV5OutputStream; }
|
|
11
11
|
});
|
|
12
12
|
Object.defineProperty(exports, "ChunkFrom", {
|
|
13
13
|
enumerable: true,
|
|
14
|
-
get: function () { return
|
|
14
|
+
get: function () { return chunkXMT5T4F2_cjs.ChunkFrom; }
|
|
15
15
|
});
|
|
16
16
|
Object.defineProperty(exports, "MastraAgentNetworkStream", {
|
|
17
17
|
enumerable: true,
|
|
18
|
-
get: function () { return
|
|
18
|
+
get: function () { return chunkXMT5T4F2_cjs.MastraAgentNetworkStream; }
|
|
19
19
|
});
|
|
20
20
|
Object.defineProperty(exports, "MastraModelOutput", {
|
|
21
21
|
enumerable: true,
|
|
22
|
-
get: function () { return
|
|
22
|
+
get: function () { return chunkXMT5T4F2_cjs.MastraModelOutput; }
|
|
23
23
|
});
|
|
24
24
|
Object.defineProperty(exports, "WorkflowRunOutput", {
|
|
25
25
|
enumerable: true,
|
|
26
|
-
get: function () { return
|
|
26
|
+
get: function () { return chunkXMT5T4F2_cjs.WorkflowRunOutput; }
|
|
27
|
+
});
|
|
28
|
+
Object.defineProperty(exports, "convertFullStreamChunkToMastra", {
|
|
29
|
+
enumerable: true,
|
|
30
|
+
get: function () { return chunkXMT5T4F2_cjs.convertFullStreamChunkToMastra; }
|
|
27
31
|
});
|
|
28
32
|
Object.defineProperty(exports, "convertFullStreamChunkToUIMessageStream", {
|
|
29
33
|
enumerable: true,
|
|
30
|
-
get: function () { return
|
|
34
|
+
get: function () { return chunkXMT5T4F2_cjs.convertFullStreamChunkToUIMessageStream; }
|
|
31
35
|
});
|
|
32
36
|
Object.defineProperty(exports, "convertMastraChunkToAISDKv5", {
|
|
33
37
|
enumerable: true,
|
|
34
|
-
get: function () { return
|
|
38
|
+
get: function () { return chunkXMT5T4F2_cjs.convertMastraChunkToAISDKv5; }
|
|
35
39
|
});
|
|
36
40
|
Object.defineProperty(exports, "DefaultGeneratedFile", {
|
|
37
41
|
enumerable: true,
|
|
38
|
-
get: function () { return
|
|
42
|
+
get: function () { return chunkVRFSEZBA_cjs.DefaultGeneratedFile; }
|
|
39
43
|
});
|
|
40
44
|
Object.defineProperty(exports, "DefaultGeneratedFileWithType", {
|
|
41
45
|
enumerable: true,
|
|
42
|
-
get: function () { return
|
|
46
|
+
get: function () { return chunkVRFSEZBA_cjs.DefaultGeneratedFileWithType; }
|
|
43
47
|
});
|
|
44
48
|
//# sourceMappingURL=index.cjs.map
|
|
45
49
|
//# sourceMappingURL=index.cjs.map
|
package/dist/stream/index.d.ts
CHANGED
|
@@ -3,7 +3,7 @@ export { ChunkFrom } from './types.js';
|
|
|
3
3
|
export { MastraModelOutput } from './base/output.js';
|
|
4
4
|
export { AISDKV5OutputStream } from './aisdk/v5/output.js';
|
|
5
5
|
export { DefaultGeneratedFile, DefaultGeneratedFileWithType } from './aisdk/v5/file.js';
|
|
6
|
-
export { convertMastraChunkToAISDKv5 } from './aisdk/v5/transform.js';
|
|
6
|
+
export { convertMastraChunkToAISDKv5, convertFullStreamChunkToMastra } from './aisdk/v5/transform.js';
|
|
7
7
|
export { convertFullStreamChunkToUIMessageStream } from './aisdk/v5/compat/index.js';
|
|
8
8
|
export type { OutputSchema, PartialSchemaOutput } from './base/schema.js';
|
|
9
9
|
export { MastraAgentNetworkStream } from './MastraAgentNetworkStream.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/stream/index.ts"],"names":[],"mappings":"AAAA,YAAY,EACV,SAAS,EACT,aAAa,EACb,gBAAgB,EAChB,kBAAkB,EAClB,cAAc,EACd,iBAAiB,EACjB,gBAAgB,GACjB,MAAM,SAAS,CAAC;AACjB,OAAO,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AACpC,OAAO,EAAE,iBAAiB,EAAE,MAAM,eAAe,CAAC;AAClD,OAAO,EAAE,mBAAmB,EAAE,MAAM,mBAAmB,CAAC;AACxD,OAAO,EAAE,oBAAoB,EAAE,4BAA4B,EAAE,MAAM,iBAAiB,CAAC;AACrF,OAAO,EAAE,2BAA2B,EAAE,MAAM,sBAAsB,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/stream/index.ts"],"names":[],"mappings":"AAAA,YAAY,EACV,SAAS,EACT,aAAa,EACb,gBAAgB,EAChB,kBAAkB,EAClB,cAAc,EACd,iBAAiB,EACjB,gBAAgB,GACjB,MAAM,SAAS,CAAC;AACjB,OAAO,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AACpC,OAAO,EAAE,iBAAiB,EAAE,MAAM,eAAe,CAAC;AAClD,OAAO,EAAE,mBAAmB,EAAE,MAAM,mBAAmB,CAAC;AACxD,OAAO,EAAE,oBAAoB,EAAE,4BAA4B,EAAE,MAAM,iBAAiB,CAAC;AACrF,OAAO,EAAE,2BAA2B,EAAE,8BAA8B,EAAE,MAAM,sBAAsB,CAAC;AACnG,OAAO,EAAE,uCAAuC,EAAE,MAAM,mBAAmB,CAAC;AAC5E,YAAY,EAAE,YAAY,EAAE,mBAAmB,EAAE,MAAM,eAAe,CAAC;AACvE,OAAO,EAAE,wBAAwB,EAAE,MAAM,4BAA4B,CAAC;AACtE,OAAO,EAAE,iBAAiB,EAAE,MAAM,aAAa,CAAC"}
|
package/dist/stream/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { AISDKV5OutputStream, ChunkFrom, MastraAgentNetworkStream, MastraModelOutput, WorkflowRunOutput, convertFullStreamChunkToUIMessageStream, convertMastraChunkToAISDKv5 } from '../chunk-
|
|
2
|
-
export { DefaultGeneratedFile, DefaultGeneratedFileWithType } from '../chunk-
|
|
1
|
+
export { AISDKV5OutputStream, ChunkFrom, MastraAgentNetworkStream, MastraModelOutput, WorkflowRunOutput, convertFullStreamChunkToMastra, convertFullStreamChunkToUIMessageStream, convertMastraChunkToAISDKv5 } from '../chunk-ARSSSQQP.js';
|
|
2
|
+
export { DefaultGeneratedFile, DefaultGeneratedFileWithType } from '../chunk-APMPOYPI.js';
|
|
3
3
|
//# sourceMappingURL=index.js.map
|
|
4
4
|
//# sourceMappingURL=index.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
var
|
|
3
|
+
var chunkIISGCZJ4_cjs = require('../chunk-IISGCZJ4.cjs');
|
|
4
|
+
var chunkSVLMF4UZ_cjs = require('../chunk-SVLMF4UZ.cjs');
|
|
5
5
|
var test = require('ai-v5/test');
|
|
6
6
|
|
|
7
7
|
var MastraLanguageModelV2Mock = class {
|
|
@@ -17,11 +17,11 @@ var MastraLanguageModelV2Mock = class {
|
|
|
17
17
|
this.supportedUrls = this.#model.supportedUrls;
|
|
18
18
|
}
|
|
19
19
|
doGenerate(options) {
|
|
20
|
-
const aiSDKModel = new
|
|
20
|
+
const aiSDKModel = new chunkIISGCZJ4_cjs.AISDKV5LanguageModel(this.#model);
|
|
21
21
|
return aiSDKModel.doGenerate(options);
|
|
22
22
|
}
|
|
23
23
|
doStream(options) {
|
|
24
|
-
const aiSDKModel = new
|
|
24
|
+
const aiSDKModel = new chunkIISGCZJ4_cjs.AISDKV5LanguageModel(this.#model);
|
|
25
25
|
return aiSDKModel.doStream(options);
|
|
26
26
|
}
|
|
27
27
|
get doGenerateCalls() {
|
|
@@ -43,7 +43,7 @@ function createMockModel({
|
|
|
43
43
|
const text = typeof mockText === "string" ? mockText : JSON.stringify(mockText);
|
|
44
44
|
const finalText = objectGenerationMode === "json" ? JSON.stringify(mockText) : text;
|
|
45
45
|
if (version === "v1") {
|
|
46
|
-
const mockModel2 = new
|
|
46
|
+
const mockModel2 = new chunkSVLMF4UZ_cjs.MockLanguageModelV1({
|
|
47
47
|
defaultObjectGenerationMode: objectGenerationMode,
|
|
48
48
|
doGenerate: async (props) => {
|
|
49
49
|
if (spyGenerate) {
|
|
@@ -65,7 +65,7 @@ function createMockModel({
|
|
|
65
65
|
textDelta: word + " "
|
|
66
66
|
}));
|
|
67
67
|
return {
|
|
68
|
-
stream:
|
|
68
|
+
stream: chunkSVLMF4UZ_cjs.simulateReadableStream({
|
|
69
69
|
chunks: [
|
|
70
70
|
...chunks,
|
|
71
71
|
{
|
|
@@ -124,14 +124,14 @@ function createMockModel({
|
|
|
124
124
|
});
|
|
125
125
|
return mockModel;
|
|
126
126
|
}
|
|
127
|
-
var MockProvider = class extends
|
|
127
|
+
var MockProvider = class extends chunkIISGCZJ4_cjs.MastraLLMV1 {
|
|
128
128
|
constructor({
|
|
129
129
|
spyGenerate,
|
|
130
130
|
spyStream,
|
|
131
131
|
objectGenerationMode,
|
|
132
132
|
mockText = "Hello, world!"
|
|
133
133
|
}) {
|
|
134
|
-
const mockModel = new
|
|
134
|
+
const mockModel = new chunkSVLMF4UZ_cjs.MockLanguageModelV1({
|
|
135
135
|
defaultObjectGenerationMode: objectGenerationMode,
|
|
136
136
|
doGenerate: async (props) => {
|
|
137
137
|
if (spyGenerate) {
|
|
@@ -162,7 +162,7 @@ var MockProvider = class extends chunkYUXTDKYN_cjs.MastraLLMV1 {
|
|
|
162
162
|
textDelta: word + " "
|
|
163
163
|
}));
|
|
164
164
|
return {
|
|
165
|
-
stream:
|
|
165
|
+
stream: chunkSVLMF4UZ_cjs.simulateReadableStream({
|
|
166
166
|
chunks: [
|
|
167
167
|
...chunks,
|
|
168
168
|
{
|
|
@@ -205,7 +205,7 @@ var MockProvider = class extends chunkYUXTDKYN_cjs.MastraLLMV1 {
|
|
|
205
205
|
|
|
206
206
|
Object.defineProperty(exports, "simulateReadableStream", {
|
|
207
207
|
enumerable: true,
|
|
208
|
-
get: function () { return
|
|
208
|
+
get: function () { return chunkSVLMF4UZ_cjs.simulateReadableStream; }
|
|
209
209
|
});
|
|
210
210
|
exports.MastraLanguageModelV2Mock = MastraLanguageModelV2Mock;
|
|
211
211
|
exports.MockProvider = MockProvider;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { AISDKV5LanguageModel, MastraLLMV1 } from '../chunk-
|
|
2
|
-
import { MockLanguageModelV1, simulateReadableStream } from '../chunk-
|
|
3
|
-
export { simulateReadableStream } from '../chunk-
|
|
1
|
+
import { AISDKV5LanguageModel, MastraLLMV1 } from '../chunk-7IMDJAYQ.js';
|
|
2
|
+
import { MockLanguageModelV1, simulateReadableStream } from '../chunk-QM5SRDJX.js';
|
|
3
|
+
export { simulateReadableStream } from '../chunk-QM5SRDJX.js';
|
|
4
4
|
import { MockLanguageModelV2, convertArrayToReadableStream } from 'ai-v5/test';
|
|
5
5
|
|
|
6
6
|
var MastraLanguageModelV2Mock = class {
|
package/dist/utils.cjs
CHANGED
|
@@ -1,92 +1,92 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkHSRQXO6F_cjs = require('./chunk-HSRQXO6F.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 chunkHSRQXO6F_cjs.checkEvalStorageFields; }
|
|
10
10
|
});
|
|
11
11
|
Object.defineProperty(exports, "createMastraProxy", {
|
|
12
12
|
enumerable: true,
|
|
13
|
-
get: function () { return
|
|
13
|
+
get: function () { return chunkHSRQXO6F_cjs.createMastraProxy; }
|
|
14
14
|
});
|
|
15
15
|
Object.defineProperty(exports, "deepMerge", {
|
|
16
16
|
enumerable: true,
|
|
17
|
-
get: function () { return
|
|
17
|
+
get: function () { return chunkHSRQXO6F_cjs.deepMerge; }
|
|
18
18
|
});
|
|
19
19
|
Object.defineProperty(exports, "delay", {
|
|
20
20
|
enumerable: true,
|
|
21
|
-
get: function () { return
|
|
21
|
+
get: function () { return chunkHSRQXO6F_cjs.delay; }
|
|
22
22
|
});
|
|
23
23
|
Object.defineProperty(exports, "ensureToolProperties", {
|
|
24
24
|
enumerable: true,
|
|
25
|
-
get: function () { return
|
|
25
|
+
get: function () { return chunkHSRQXO6F_cjs.ensureToolProperties; }
|
|
26
26
|
});
|
|
27
27
|
Object.defineProperty(exports, "fetchWithRetry", {
|
|
28
28
|
enumerable: true,
|
|
29
|
-
get: function () { return
|
|
29
|
+
get: function () { return chunkHSRQXO6F_cjs.fetchWithRetry; }
|
|
30
30
|
});
|
|
31
31
|
Object.defineProperty(exports, "generateEmptyFromSchema", {
|
|
32
32
|
enumerable: true,
|
|
33
|
-
get: function () { return
|
|
33
|
+
get: function () { return chunkHSRQXO6F_cjs.generateEmptyFromSchema; }
|
|
34
34
|
});
|
|
35
35
|
Object.defineProperty(exports, "getNestedValue", {
|
|
36
36
|
enumerable: true,
|
|
37
|
-
get: function () { return
|
|
37
|
+
get: function () { return chunkHSRQXO6F_cjs.getNestedValue; }
|
|
38
38
|
});
|
|
39
39
|
Object.defineProperty(exports, "isCoreMessage", {
|
|
40
40
|
enumerable: true,
|
|
41
|
-
get: function () { return
|
|
41
|
+
get: function () { return chunkHSRQXO6F_cjs.isCoreMessage; }
|
|
42
42
|
});
|
|
43
43
|
Object.defineProperty(exports, "isUiMessage", {
|
|
44
44
|
enumerable: true,
|
|
45
|
-
get: function () { return
|
|
45
|
+
get: function () { return chunkHSRQXO6F_cjs.isUiMessage; }
|
|
46
46
|
});
|
|
47
47
|
Object.defineProperty(exports, "isZodType", {
|
|
48
48
|
enumerable: true,
|
|
49
|
-
get: function () { return
|
|
49
|
+
get: function () { return chunkHSRQXO6F_cjs.isZodType; }
|
|
50
50
|
});
|
|
51
51
|
Object.defineProperty(exports, "makeCoreTool", {
|
|
52
52
|
enumerable: true,
|
|
53
|
-
get: function () { return
|
|
53
|
+
get: function () { return chunkHSRQXO6F_cjs.makeCoreTool; }
|
|
54
54
|
});
|
|
55
55
|
Object.defineProperty(exports, "makeCoreToolV5", {
|
|
56
56
|
enumerable: true,
|
|
57
|
-
get: function () { return
|
|
57
|
+
get: function () { return chunkHSRQXO6F_cjs.makeCoreToolV5; }
|
|
58
58
|
});
|
|
59
59
|
Object.defineProperty(exports, "maskStreamTags", {
|
|
60
60
|
enumerable: true,
|
|
61
|
-
get: function () { return
|
|
61
|
+
get: function () { return chunkHSRQXO6F_cjs.maskStreamTags; }
|
|
62
62
|
});
|
|
63
63
|
Object.defineProperty(exports, "omitKeys", {
|
|
64
64
|
enumerable: true,
|
|
65
|
-
get: function () { return
|
|
65
|
+
get: function () { return chunkHSRQXO6F_cjs.omitKeys; }
|
|
66
66
|
});
|
|
67
67
|
Object.defineProperty(exports, "parseFieldKey", {
|
|
68
68
|
enumerable: true,
|
|
69
|
-
get: function () { return
|
|
69
|
+
get: function () { return chunkHSRQXO6F_cjs.parseFieldKey; }
|
|
70
70
|
});
|
|
71
71
|
Object.defineProperty(exports, "parseSqlIdentifier", {
|
|
72
72
|
enumerable: true,
|
|
73
|
-
get: function () { return
|
|
73
|
+
get: function () { return chunkHSRQXO6F_cjs.parseSqlIdentifier; }
|
|
74
74
|
});
|
|
75
75
|
Object.defineProperty(exports, "removeUndefinedValues", {
|
|
76
76
|
enumerable: true,
|
|
77
|
-
get: function () { return
|
|
77
|
+
get: function () { return chunkHSRQXO6F_cjs.removeUndefinedValues; }
|
|
78
78
|
});
|
|
79
79
|
Object.defineProperty(exports, "resolveSerializedZodOutput", {
|
|
80
80
|
enumerable: true,
|
|
81
|
-
get: function () { return
|
|
81
|
+
get: function () { return chunkHSRQXO6F_cjs.resolveSerializedZodOutput; }
|
|
82
82
|
});
|
|
83
83
|
Object.defineProperty(exports, "selectFields", {
|
|
84
84
|
enumerable: true,
|
|
85
|
-
get: function () { return
|
|
85
|
+
get: function () { return chunkHSRQXO6F_cjs.selectFields; }
|
|
86
86
|
});
|
|
87
87
|
Object.defineProperty(exports, "setNestedValue", {
|
|
88
88
|
enumerable: true,
|
|
89
|
-
get: function () { return
|
|
89
|
+
get: function () { return chunkHSRQXO6F_cjs.setNestedValue; }
|
|
90
90
|
});
|
|
91
91
|
//# sourceMappingURL=utils.cjs.map
|
|
92
92
|
//# sourceMappingURL=utils.cjs.map
|
package/dist/utils.d.ts
CHANGED
|
@@ -93,7 +93,7 @@ export declare function makeCoreToolV5(originalTool: ToolToConvert, options: Too
|
|
|
93
93
|
export declare function createMastraProxy({ mastra, logger }: {
|
|
94
94
|
mastra: Mastra;
|
|
95
95
|
logger: IMastraLogger;
|
|
96
|
-
}): Mastra<Record<string, import("./agent").Agent<any, ToolsInput>>, Record<string, import("./workflows").Workflow<any, any, any, any, any, any, any>>, Record<string, import("./vector").MastraVector<any>>, Record<string, import("./tts").MastraTTS>, IMastraLogger, Record<string, import("./mcp").MCPServerBase<any>>, Record<string, import("./evals").MastraScorer<any, any, any, any>>, Record<string, import("./tools").ToolAction<any, any, any, any, any, any>>, Record<string, import("./processors").Processor<any
|
|
96
|
+
}): Mastra<Record<string, import("./agent").Agent<any, ToolsInput>>, Record<string, import("./workflows").Workflow<any, any, any, any, any, any, any>>, Record<string, import("./vector").MastraVector<any>>, Record<string, import("./tts").MastraTTS>, IMastraLogger, Record<string, import("./mcp").MCPServerBase<any>>, Record<string, import("./evals").MastraScorer<any, any, any, any>>, Record<string, import("./tools").ToolAction<any, any, any, any, any, any>>, Record<string, import("./processors").Processor<any>>, Record<string, MastraMemory>>;
|
|
97
97
|
export declare function checkEvalStorageFields(traceObject: any, logger?: IMastraLogger): boolean;
|
|
98
98
|
export declare function isUiMessage(message: CoreMessage | AiMessageType): message is AiMessageType;
|
|
99
99
|
export declare function isCoreMessage(message: CoreMessage | AiMessageType): message is CoreMessage;
|
package/dist/utils.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../src/utils.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC;AACtD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AAEvD,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,KAA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+1,3 @@
|
|
|
1
|
-
export { checkEvalStorageFields, createMastraProxy, deepMerge, delay, ensureToolProperties, fetchWithRetry, generateEmptyFromSchema, getNestedValue, isCoreMessage, isUiMessage, isZodType, makeCoreTool, makeCoreToolV5, maskStreamTags, omitKeys, parseFieldKey, parseSqlIdentifier, removeUndefinedValues, resolveSerializedZodOutput, selectFields, setNestedValue } from './chunk-
|
|
1
|
+
export { checkEvalStorageFields, createMastraProxy, deepMerge, delay, ensureToolProperties, fetchWithRetry, generateEmptyFromSchema, getNestedValue, isCoreMessage, isUiMessage, isZodType, makeCoreTool, makeCoreToolV5, maskStreamTags, omitKeys, parseFieldKey, parseSqlIdentifier, removeUndefinedValues, resolveSerializedZodOutput, selectFields, setNestedValue } from './chunk-MCRIVYUB.js';
|
|
2
2
|
//# sourceMappingURL=utils.js.map
|
|
3
3
|
//# sourceMappingURL=utils.js.map
|
package/dist/vector/index.cjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var chunk6XCINXZ7_cjs = require('../chunk-6XCINXZ7.cjs');
|
|
4
|
-
var
|
|
4
|
+
var chunkSVLMF4UZ_cjs = require('../chunk-SVLMF4UZ.cjs');
|
|
5
5
|
var chunkTWH4PTDG_cjs = require('../chunk-TWH4PTDG.cjs');
|
|
6
6
|
var chunkDGV2FWB4_cjs = require('../chunk-DGV2FWB4.cjs');
|
|
7
7
|
var aiV5 = require('ai-v5');
|
|
@@ -86,7 +86,7 @@ Object.defineProperty(exports, "BaseFilterTranslator", {
|
|
|
86
86
|
});
|
|
87
87
|
Object.defineProperty(exports, "embedV1", {
|
|
88
88
|
enumerable: true,
|
|
89
|
-
get: function () { return
|
|
89
|
+
get: function () { return chunkSVLMF4UZ_cjs.embed; }
|
|
90
90
|
});
|
|
91
91
|
Object.defineProperty(exports, "embedV2", {
|
|
92
92
|
enumerable: true,
|
package/dist/vector/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export { BaseFilterTranslator } from '../chunk-BWYU7D33.js';
|
|
2
|
-
export { embed as embedV1 } from '../chunk-
|
|
2
|
+
export { embed as embedV1 } from '../chunk-QM5SRDJX.js';
|
|
3
3
|
import { MastraError } from '../chunk-JJ5O45LH.js';
|
|
4
4
|
import { MastraBase } from '../chunk-LSHPJWM5.js';
|
|
5
5
|
export { embed as embedV2 } from 'ai-v5';
|
|
@@ -1,44 +1,44 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkDWB7SBVC_cjs = require('../../chunk-DWB7SBVC.cjs');
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
Object.defineProperty(exports, "EventedExecutionEngine", {
|
|
8
8
|
enumerable: true,
|
|
9
|
-
get: function () { return
|
|
9
|
+
get: function () { return chunkDWB7SBVC_cjs.EventedExecutionEngine; }
|
|
10
10
|
});
|
|
11
11
|
Object.defineProperty(exports, "EventedRun", {
|
|
12
12
|
enumerable: true,
|
|
13
|
-
get: function () { return
|
|
13
|
+
get: function () { return chunkDWB7SBVC_cjs.EventedRun; }
|
|
14
14
|
});
|
|
15
15
|
Object.defineProperty(exports, "EventedWorkflow", {
|
|
16
16
|
enumerable: true,
|
|
17
|
-
get: function () { return
|
|
17
|
+
get: function () { return chunkDWB7SBVC_cjs.EventedWorkflow; }
|
|
18
18
|
});
|
|
19
19
|
Object.defineProperty(exports, "StepExecutor", {
|
|
20
20
|
enumerable: true,
|
|
21
|
-
get: function () { return
|
|
21
|
+
get: function () { return chunkDWB7SBVC_cjs.StepExecutor; }
|
|
22
22
|
});
|
|
23
23
|
Object.defineProperty(exports, "WorkflowEventProcessor", {
|
|
24
24
|
enumerable: true,
|
|
25
|
-
get: function () { return
|
|
25
|
+
get: function () { return chunkDWB7SBVC_cjs.WorkflowEventProcessor; }
|
|
26
26
|
});
|
|
27
27
|
Object.defineProperty(exports, "cloneStep", {
|
|
28
28
|
enumerable: true,
|
|
29
|
-
get: function () { return
|
|
29
|
+
get: function () { return chunkDWB7SBVC_cjs.cloneStep; }
|
|
30
30
|
});
|
|
31
31
|
Object.defineProperty(exports, "cloneWorkflow", {
|
|
32
32
|
enumerable: true,
|
|
33
|
-
get: function () { return
|
|
33
|
+
get: function () { return chunkDWB7SBVC_cjs.cloneWorkflow; }
|
|
34
34
|
});
|
|
35
35
|
Object.defineProperty(exports, "createStep", {
|
|
36
36
|
enumerable: true,
|
|
37
|
-
get: function () { return
|
|
37
|
+
get: function () { return chunkDWB7SBVC_cjs.createStep; }
|
|
38
38
|
});
|
|
39
39
|
Object.defineProperty(exports, "createWorkflow", {
|
|
40
40
|
enumerable: true,
|
|
41
|
-
get: function () { return
|
|
41
|
+
get: function () { return chunkDWB7SBVC_cjs.createWorkflow; }
|
|
42
42
|
});
|
|
43
43
|
//# sourceMappingURL=index.cjs.map
|
|
44
44
|
//# sourceMappingURL=index.cjs.map
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export { EventedExecutionEngine, EventedRun, EventedWorkflow, StepExecutor, WorkflowEventProcessor, cloneStep, cloneWorkflow, createStep, createWorkflow } from '../../chunk-
|
|
1
|
+
export { EventedExecutionEngine, EventedRun, EventedWorkflow, StepExecutor, WorkflowEventProcessor, cloneStep, cloneWorkflow, createStep, createWorkflow } from '../../chunk-QTEIZ2XG.js';
|
|
2
2
|
//# sourceMappingURL=index.js.map
|
|
3
3
|
//# sourceMappingURL=index.js.map
|
package/dist/workflows/index.cjs
CHANGED
|
@@ -1,88 +1,88 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkXMT5T4F2_cjs = require('../chunk-XMT5T4F2.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 chunkXMT5T4F2_cjs.DefaultExecutionEngine; }
|
|
10
10
|
});
|
|
11
11
|
Object.defineProperty(exports, "ExecutionEngine", {
|
|
12
12
|
enumerable: true,
|
|
13
|
-
get: function () { return
|
|
13
|
+
get: function () { return chunkXMT5T4F2_cjs.ExecutionEngine; }
|
|
14
14
|
});
|
|
15
15
|
Object.defineProperty(exports, "Run", {
|
|
16
16
|
enumerable: true,
|
|
17
|
-
get: function () { return
|
|
17
|
+
get: function () { return chunkXMT5T4F2_cjs.Run; }
|
|
18
18
|
});
|
|
19
19
|
Object.defineProperty(exports, "Workflow", {
|
|
20
20
|
enumerable: true,
|
|
21
|
-
get: function () { return
|
|
21
|
+
get: function () { return chunkXMT5T4F2_cjs.Workflow; }
|
|
22
22
|
});
|
|
23
23
|
Object.defineProperty(exports, "cloneStep", {
|
|
24
24
|
enumerable: true,
|
|
25
|
-
get: function () { return
|
|
25
|
+
get: function () { return chunkXMT5T4F2_cjs.cloneStep; }
|
|
26
26
|
});
|
|
27
27
|
Object.defineProperty(exports, "cloneWorkflow", {
|
|
28
28
|
enumerable: true,
|
|
29
|
-
get: function () { return
|
|
29
|
+
get: function () { return chunkXMT5T4F2_cjs.cloneWorkflow; }
|
|
30
30
|
});
|
|
31
31
|
Object.defineProperty(exports, "createDeprecationProxy", {
|
|
32
32
|
enumerable: true,
|
|
33
|
-
get: function () { return
|
|
33
|
+
get: function () { return chunkXMT5T4F2_cjs.createDeprecationProxy; }
|
|
34
34
|
});
|
|
35
35
|
Object.defineProperty(exports, "createStep", {
|
|
36
36
|
enumerable: true,
|
|
37
|
-
get: function () { return
|
|
37
|
+
get: function () { return chunkXMT5T4F2_cjs.createStep; }
|
|
38
38
|
});
|
|
39
39
|
Object.defineProperty(exports, "createTimeTravelExecutionParams", {
|
|
40
40
|
enumerable: true,
|
|
41
|
-
get: function () { return
|
|
41
|
+
get: function () { return chunkXMT5T4F2_cjs.createTimeTravelExecutionParams; }
|
|
42
42
|
});
|
|
43
43
|
Object.defineProperty(exports, "createWorkflow", {
|
|
44
44
|
enumerable: true,
|
|
45
|
-
get: function () { return
|
|
45
|
+
get: function () { return chunkXMT5T4F2_cjs.createWorkflow; }
|
|
46
46
|
});
|
|
47
47
|
Object.defineProperty(exports, "getResumeLabelsByStepId", {
|
|
48
48
|
enumerable: true,
|
|
49
|
-
get: function () { return
|
|
49
|
+
get: function () { return chunkXMT5T4F2_cjs.getResumeLabelsByStepId; }
|
|
50
50
|
});
|
|
51
51
|
Object.defineProperty(exports, "getStepIds", {
|
|
52
52
|
enumerable: true,
|
|
53
|
-
get: function () { return
|
|
53
|
+
get: function () { return chunkXMT5T4F2_cjs.getStepIds; }
|
|
54
54
|
});
|
|
55
55
|
Object.defineProperty(exports, "getStepResult", {
|
|
56
56
|
enumerable: true,
|
|
57
|
-
get: function () { return
|
|
57
|
+
get: function () { return chunkXMT5T4F2_cjs.getStepResult; }
|
|
58
58
|
});
|
|
59
59
|
Object.defineProperty(exports, "getZodErrors", {
|
|
60
60
|
enumerable: true,
|
|
61
|
-
get: function () { return
|
|
61
|
+
get: function () { return chunkXMT5T4F2_cjs.getZodErrors; }
|
|
62
62
|
});
|
|
63
63
|
Object.defineProperty(exports, "mapVariable", {
|
|
64
64
|
enumerable: true,
|
|
65
|
-
get: function () { return
|
|
65
|
+
get: function () { return chunkXMT5T4F2_cjs.mapVariable; }
|
|
66
66
|
});
|
|
67
67
|
Object.defineProperty(exports, "runCountDeprecationMessage", {
|
|
68
68
|
enumerable: true,
|
|
69
|
-
get: function () { return
|
|
69
|
+
get: function () { return chunkXMT5T4F2_cjs.runCountDeprecationMessage; }
|
|
70
70
|
});
|
|
71
71
|
Object.defineProperty(exports, "validateStepInput", {
|
|
72
72
|
enumerable: true,
|
|
73
|
-
get: function () { return
|
|
73
|
+
get: function () { return chunkXMT5T4F2_cjs.validateStepInput; }
|
|
74
74
|
});
|
|
75
75
|
Object.defineProperty(exports, "validateStepResumeData", {
|
|
76
76
|
enumerable: true,
|
|
77
|
-
get: function () { return
|
|
77
|
+
get: function () { return chunkXMT5T4F2_cjs.validateStepResumeData; }
|
|
78
78
|
});
|
|
79
79
|
Object.defineProperty(exports, "validateStepStateData", {
|
|
80
80
|
enumerable: true,
|
|
81
|
-
get: function () { return
|
|
81
|
+
get: function () { return chunkXMT5T4F2_cjs.validateStepStateData; }
|
|
82
82
|
});
|
|
83
83
|
Object.defineProperty(exports, "validateStepSuspendData", {
|
|
84
84
|
enumerable: true,
|
|
85
|
-
get: function () { return
|
|
85
|
+
get: function () { return chunkXMT5T4F2_cjs.validateStepSuspendData; }
|
|
86
86
|
});
|
|
87
87
|
//# sourceMappingURL=index.cjs.map
|
|
88
88
|
//# sourceMappingURL=index.cjs.map
|
package/dist/workflows/index.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export { DefaultExecutionEngine, ExecutionEngine, Run, Workflow, cloneStep, cloneWorkflow, createDeprecationProxy, createStep, createTimeTravelExecutionParams, createWorkflow, getResumeLabelsByStepId, getStepIds, getStepResult, getZodErrors, mapVariable, runCountDeprecationMessage, validateStepInput, validateStepResumeData, validateStepStateData, validateStepSuspendData } from '../chunk-
|
|
1
|
+
export { DefaultExecutionEngine, ExecutionEngine, Run, Workflow, cloneStep, cloneWorkflow, createDeprecationProxy, createStep, createTimeTravelExecutionParams, createWorkflow, getResumeLabelsByStepId, getStepIds, getStepResult, getZodErrors, mapVariable, runCountDeprecationMessage, validateStepInput, validateStepResumeData, validateStepStateData, validateStepSuspendData } from '../chunk-ARSSSQQP.js';
|
|
2
2
|
//# sourceMappingURL=index.js.map
|
|
3
3
|
//# sourceMappingURL=index.js.map
|
|
@@ -77,7 +77,7 @@ export declare class Workflow<TEngineType = any, TSteps extends Step<string, any
|
|
|
77
77
|
};
|
|
78
78
|
constructor({ mastra, id, inputSchema, outputSchema, stateSchema, description, executionEngine, retryConfig, steps, options, }: WorkflowConfig<TWorkflowId, TState, TInput, TOutput, TSteps>);
|
|
79
79
|
get runs(): Map<string, Run<TEngineType, TSteps, TState, TInput, TOutput>>;
|
|
80
|
-
get mastra(): Mastra<Record<string, Agent<any, import("../agent").ToolsInput>>, Record<string, Workflow<any, any, any, any, any, any, any>>, Record<string, import("../vector").MastraVector<any>>, Record<string, import("../tts").MastraTTS>, import("../logger").IMastraLogger, Record<string, import("../mcp").MCPServerBase<any>>, Record<string, import("../evals").MastraScorer<any, any, any, any>>, Record<string, import("../tools").ToolAction<any, any, any, any, any, any>>, Record<string, import("../processors").Processor<any
|
|
80
|
+
get mastra(): Mastra<Record<string, Agent<any, import("../agent").ToolsInput>>, Record<string, Workflow<any, any, any, any, any, any, any>>, Record<string, import("../vector").MastraVector<any>>, Record<string, import("../tts").MastraTTS>, import("../logger").IMastraLogger, Record<string, import("../mcp").MCPServerBase<any>>, Record<string, import("../evals").MastraScorer<any, any, any, any>>, Record<string, import("../tools").ToolAction<any, any, any, any, any, any>>, Record<string, import("../processors").Processor<any>>, Record<string, import("../memory").MastraMemory>> | undefined;
|
|
81
81
|
get options(): Omit<WorkflowOptions, "validateInputs" | "shouldPersistSnapshot"> & Required<Pick<WorkflowOptions, "validateInputs" | "shouldPersistSnapshot">>;
|
|
82
82
|
__registerMastra(mastra: Mastra): void;
|
|
83
83
|
__registerPrimitives(p: MastraPrimitives): void;
|
|
@@ -267,7 +267,7 @@ export declare class Run<TEngineType = any, TSteps extends Step<string, any, any
|
|
|
267
267
|
readonly workflowSteps: Record<string, StepWithComponent>;
|
|
268
268
|
workflowRunStatus: WorkflowRunStatus;
|
|
269
269
|
readonly workflowEngineType: WorkflowEngineType;
|
|
270
|
-
get mastra(): Mastra<Record<string, Agent<any, import("../agent").ToolsInput>>, Record<string, Workflow<any, any, any, any, any, any, any>>, Record<string, import("../vector").MastraVector<any>>, Record<string, import("../tts").MastraTTS>, import("../logger").IMastraLogger, Record<string, import("../mcp").MCPServerBase<any>>, Record<string, import("../evals").MastraScorer<any, any, any, any>>, Record<string, import("../tools").ToolAction<any, any, any, any, any, any>>, Record<string, import("../processors").Processor<any
|
|
270
|
+
get mastra(): Mastra<Record<string, Agent<any, import("../agent").ToolsInput>>, Record<string, Workflow<any, any, any, any, any, any, any>>, Record<string, import("../vector").MastraVector<any>>, Record<string, import("../tts").MastraTTS>, import("../logger").IMastraLogger, Record<string, import("../mcp").MCPServerBase<any>>, Record<string, import("../evals").MastraScorer<any, any, any, any>>, Record<string, import("../tools").ToolAction<any, any, any, any, any, any>>, Record<string, import("../processors").Processor<any>>, Record<string, import("../memory").MastraMemory>> | undefined;
|
|
271
271
|
protected streamOutput?: WorkflowRunOutput<WorkflowResult<TState, TInput, TOutput, TSteps>>;
|
|
272
272
|
protected closeStreamAction?: () => Promise<void>;
|
|
273
273
|
protected executionResults?: Promise<WorkflowResult<TState, TInput, TOutput, TSteps>>;
|