@mastra/core 0.24.8 → 0.24.9-alpha.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +6 -0
- package/dist/agent/index.cjs +13 -13
- package/dist/agent/index.js +2 -2
- package/dist/agent/input-processor/index.cjs +6 -6
- package/dist/agent/input-processor/index.js +1 -1
- package/dist/ai-tracing/index.cjs +56 -39
- package/dist/ai-tracing/index.d.ts +1 -0
- package/dist/ai-tracing/index.d.ts.map +1 -1
- package/dist/ai-tracing/index.js +2 -1
- package/dist/ai-tracing/serialization.d.ts +60 -0
- package/dist/ai-tracing/serialization.d.ts.map +1 -0
- package/dist/ai-tracing/spans/base.d.ts +0 -17
- package/dist/ai-tracing/spans/base.d.ts.map +1 -1
- package/dist/ai-tracing/spans/default.d.ts.map +1 -1
- package/dist/{chunk-FQTJPLCW.cjs → chunk-2L6LTY2M.cjs} +15 -15
- package/dist/{chunk-FQTJPLCW.cjs.map → chunk-2L6LTY2M.cjs.map} +1 -1
- package/dist/{chunk-V2IMZSNO.js → chunk-3N7RP3UB.js} +3 -3
- package/dist/{chunk-V2IMZSNO.js.map → chunk-3N7RP3UB.js.map} +1 -1
- package/dist/{chunk-RP4YCZP7.js → chunk-6KCZMULD.js} +3 -3
- package/dist/{chunk-RP4YCZP7.js.map → chunk-6KCZMULD.js.map} +1 -1
- package/dist/{chunk-E5NCEJEJ.js → chunk-6ZBXSCZR.js} +3 -3
- package/dist/{chunk-E5NCEJEJ.js.map → chunk-6ZBXSCZR.js.map} +1 -1
- package/dist/{chunk-N6P5GJRO.js → chunk-7XP3ZCBG.js} +7 -7
- package/dist/{chunk-N6P5GJRO.js.map → chunk-7XP3ZCBG.js.map} +1 -1
- package/dist/{chunk-2BY7C6Y7.js → chunk-AOUR7HV5.js} +4 -4
- package/dist/{chunk-2BY7C6Y7.js.map → chunk-AOUR7HV5.js.map} +1 -1
- package/dist/{chunk-CNIM7N4E.cjs → chunk-DM46TJNZ.cjs} +17 -17
- package/dist/{chunk-CNIM7N4E.cjs.map → chunk-DM46TJNZ.cjs.map} +1 -1
- package/dist/{chunk-YYKN3NDZ.cjs → chunk-DQNIWOM3.cjs} +54 -54
- package/dist/{chunk-YYKN3NDZ.cjs.map → chunk-DQNIWOM3.cjs.map} +1 -1
- package/dist/{chunk-X5JTTWMF.cjs → chunk-FTV3ZCSR.cjs} +9 -9
- package/dist/{chunk-X5JTTWMF.cjs.map → chunk-FTV3ZCSR.cjs.map} +1 -1
- package/dist/{chunk-6VB52TJV.js → chunk-GLA7XHTK.js} +3 -3
- package/dist/{chunk-6VB52TJV.js.map → chunk-GLA7XHTK.js.map} +1 -1
- package/dist/{chunk-PPAIPZ6C.js → chunk-GWZTWJLK.js} +6 -45
- package/dist/chunk-GWZTWJLK.js.map +1 -0
- package/dist/{chunk-YPYLWTZI.cjs → chunk-KPKDAZ5I.cjs} +18 -58
- package/dist/chunk-KPKDAZ5I.cjs.map +1 -0
- package/dist/chunk-LQJJBWFH.cjs +130 -0
- package/dist/chunk-LQJJBWFH.cjs.map +1 -0
- package/dist/{chunk-4YYPQOP7.cjs → chunk-MIRRWDFC.cjs} +4 -4
- package/dist/{chunk-4YYPQOP7.cjs.map → chunk-MIRRWDFC.cjs.map} +1 -1
- package/dist/{chunk-2YE6RNCZ.cjs → chunk-P67ES4L4.cjs} +4 -4
- package/dist/{chunk-2YE6RNCZ.cjs.map → chunk-P67ES4L4.cjs.map} +1 -1
- package/dist/{chunk-RLYWCJQ6.js → chunk-PTN7GTBG.js} +3 -3
- package/dist/{chunk-RLYWCJQ6.js.map → chunk-PTN7GTBG.js.map} +1 -1
- package/dist/{chunk-2YN6HGEH.js → chunk-PVUCLWGL.js} +3 -3
- package/dist/{chunk-2YN6HGEH.js.map → chunk-PVUCLWGL.js.map} +1 -1
- package/dist/{chunk-DSUKMFZY.js → chunk-QCZOYIZC.js} +92 -111
- package/dist/chunk-QCZOYIZC.js.map +1 -0
- package/dist/{chunk-DISETAP2.cjs → chunk-RLAYS3PT.cjs} +4 -4
- package/dist/{chunk-DISETAP2.cjs.map → chunk-RLAYS3PT.cjs.map} +1 -1
- package/dist/{chunk-Z6ZIJYKK.js → chunk-RR7QPRXN.js} +4 -4
- package/dist/{chunk-Z6ZIJYKK.js.map → chunk-RR7QPRXN.js.map} +1 -1
- package/dist/{chunk-RQPGIUUA.cjs → chunk-SJQ6OUHB.cjs} +6 -6
- package/dist/{chunk-RQPGIUUA.cjs.map → chunk-SJQ6OUHB.cjs.map} +1 -1
- package/dist/{chunk-3IDFSGG3.cjs → chunk-SQ4FHFMU.cjs} +4 -4
- package/dist/{chunk-3IDFSGG3.cjs.map → chunk-SQ4FHFMU.cjs.map} +1 -1
- package/dist/chunk-UG3C67I3.js +124 -0
- package/dist/chunk-UG3C67I3.js.map +1 -0
- package/dist/{chunk-5PSD3IKG.cjs → chunk-UK4QLV4O.cjs} +92 -111
- package/dist/chunk-UK4QLV4O.cjs.map +1 -0
- package/dist/{chunk-ICICKWAG.cjs → chunk-WHW7ZQCM.cjs} +6 -6
- package/dist/{chunk-ICICKWAG.cjs.map → chunk-WHW7ZQCM.cjs.map} +1 -1
- package/dist/{chunk-GIK7MM2K.js → chunk-YWK4OFUM.js} +3 -3
- package/dist/{chunk-GIK7MM2K.js.map → chunk-YWK4OFUM.js.map} +1 -1
- package/dist/{chunk-Y2BH2LUD.js → chunk-Z3PIE2HC.js} +10 -10
- package/dist/{chunk-Y2BH2LUD.js.map → chunk-Z3PIE2HC.js.map} +1 -1
- package/dist/{chunk-RWPKCFZT.cjs → chunk-ZXVDL4TQ.cjs} +4 -4
- package/dist/{chunk-RWPKCFZT.cjs.map → chunk-ZXVDL4TQ.cjs.map} +1 -1
- package/dist/index.cjs +73 -73
- package/dist/index.js +11 -11
- package/dist/loop/index.cjs +2 -2
- package/dist/loop/index.js +1 -1
- package/dist/loop/workflows/agentic-execution/index.d.ts +24 -24
- package/dist/loop/workflows/agentic-execution/llm-execution-step.d.ts +16 -16
- package/dist/loop/workflows/agentic-execution/llm-mapping-step.d.ts +8 -8
- package/dist/loop/workflows/agentic-loop/index.d.ts +24 -24
- package/dist/loop/workflows/schema.d.ts +8 -8
- package/dist/mastra/index.cjs +2 -2
- package/dist/mastra/index.js +1 -1
- package/dist/memory/index.cjs +4 -4
- package/dist/memory/index.js +1 -1
- package/dist/processors/index.cjs +11 -11
- package/dist/processors/index.js +1 -1
- package/dist/relevance/index.cjs +4 -4
- package/dist/relevance/index.js +1 -1
- package/dist/scores/index.cjs +9 -9
- package/dist/scores/index.js +2 -2
- package/dist/scores/scoreTraces/index.cjs +8 -8
- package/dist/scores/scoreTraces/index.js +3 -3
- package/dist/server/index.cjs +2 -2
- package/dist/server/index.js +1 -1
- package/dist/storage/index.cjs +3 -3
- package/dist/storage/index.js +1 -1
- package/dist/stream/index.cjs +11 -11
- package/dist/stream/index.js +2 -2
- package/dist/telemetry/index.cjs +7 -7
- package/dist/telemetry/index.js +1 -1
- package/dist/telemetry/telemetry.d.ts.map +1 -1
- package/dist/telemetry/telemetry.decorators.d.ts.map +1 -1
- package/dist/test-utils/llm-mock.cjs +2 -2
- package/dist/test-utils/llm-mock.js +1 -1
- package/dist/tts/index.cjs +2 -2
- package/dist/tts/index.js +1 -1
- package/dist/utils.cjs +22 -22
- package/dist/utils.js +1 -1
- package/dist/voice/index.cjs +6 -6
- package/dist/voice/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 +17 -17
- package/dist/workflows/index.js +1 -1
- package/dist/workflows/legacy/index.cjs +22 -22
- package/dist/workflows/legacy/index.js +1 -1
- package/dist/workflows/legacy/machine.d.ts +1 -1
- package/package.json +3 -3
- package/dist/chunk-5PSD3IKG.cjs.map +0 -1
- package/dist/chunk-DSUKMFZY.js.map +0 -1
- package/dist/chunk-PPAIPZ6C.js.map +0 -1
- package/dist/chunk-YPYLWTZI.cjs.map +0 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
# @mastra/core
|
|
2
2
|
|
|
3
|
+
## 0.24.9-alpha.0
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Fix memory leak in telemetry decorators when processing large payloads. The `@withSpan` decorator now uses bounded serialization utilities to prevent unbounded memory growth when tracing agents with large inputs like base64 images. ([#11231](https://github.com/mastra-ai/mastra/pull/11231))
|
|
8
|
+
|
|
3
9
|
## 0.24.8
|
|
4
10
|
|
|
5
11
|
## 0.24.8-alpha.0
|
package/dist/agent/index.cjs
CHANGED
|
@@ -1,53 +1,53 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
var
|
|
3
|
+
var chunkDQNIWOM3_cjs = require('../chunk-DQNIWOM3.cjs');
|
|
4
|
+
var chunkMIRRWDFC_cjs = require('../chunk-MIRRWDFC.cjs');
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
8
8
|
Object.defineProperty(exports, "Agent", {
|
|
9
9
|
enumerable: true,
|
|
10
|
-
get: function () { return
|
|
10
|
+
get: function () { return chunkDQNIWOM3_cjs.Agent; }
|
|
11
11
|
});
|
|
12
12
|
Object.defineProperty(exports, "LanguageDetectorInputProcessor", {
|
|
13
13
|
enumerable: true,
|
|
14
|
-
get: function () { return
|
|
14
|
+
get: function () { return chunkDQNIWOM3_cjs.LanguageDetectorInputProcessor; }
|
|
15
15
|
});
|
|
16
16
|
Object.defineProperty(exports, "ModerationInputProcessor", {
|
|
17
17
|
enumerable: true,
|
|
18
|
-
get: function () { return
|
|
18
|
+
get: function () { return chunkDQNIWOM3_cjs.ModerationInputProcessor; }
|
|
19
19
|
});
|
|
20
20
|
Object.defineProperty(exports, "PIIDetectorInputProcessor", {
|
|
21
21
|
enumerable: true,
|
|
22
|
-
get: function () { return
|
|
22
|
+
get: function () { return chunkDQNIWOM3_cjs.PIIDetectorInputProcessor; }
|
|
23
23
|
});
|
|
24
24
|
Object.defineProperty(exports, "PromptInjectionDetectorInputProcessor", {
|
|
25
25
|
enumerable: true,
|
|
26
|
-
get: function () { return
|
|
26
|
+
get: function () { return chunkDQNIWOM3_cjs.PromptInjectionDetectorInputProcessor; }
|
|
27
27
|
});
|
|
28
28
|
Object.defineProperty(exports, "TripWire", {
|
|
29
29
|
enumerable: true,
|
|
30
|
-
get: function () { return
|
|
30
|
+
get: function () { return chunkDQNIWOM3_cjs.TripWire; }
|
|
31
31
|
});
|
|
32
32
|
Object.defineProperty(exports, "UnicodeNormalizerInputProcessor", {
|
|
33
33
|
enumerable: true,
|
|
34
|
-
get: function () { return
|
|
34
|
+
get: function () { return chunkDQNIWOM3_cjs.UnicodeNormalizerInputProcessor; }
|
|
35
35
|
});
|
|
36
36
|
Object.defineProperty(exports, "tryGenerateWithJsonFallback", {
|
|
37
37
|
enumerable: true,
|
|
38
|
-
get: function () { return
|
|
38
|
+
get: function () { return chunkDQNIWOM3_cjs.tryGenerateWithJsonFallback; }
|
|
39
39
|
});
|
|
40
40
|
Object.defineProperty(exports, "tryStreamWithJsonFallback", {
|
|
41
41
|
enumerable: true,
|
|
42
|
-
get: function () { return
|
|
42
|
+
get: function () { return chunkDQNIWOM3_cjs.tryStreamWithJsonFallback; }
|
|
43
43
|
});
|
|
44
44
|
Object.defineProperty(exports, "MessageList", {
|
|
45
45
|
enumerable: true,
|
|
46
|
-
get: function () { return
|
|
46
|
+
get: function () { return chunkMIRRWDFC_cjs.MessageList; }
|
|
47
47
|
});
|
|
48
48
|
Object.defineProperty(exports, "convertMessages", {
|
|
49
49
|
enumerable: true,
|
|
50
|
-
get: function () { return
|
|
50
|
+
get: function () { return chunkMIRRWDFC_cjs.convertMessages; }
|
|
51
51
|
});
|
|
52
52
|
//# sourceMappingURL=index.cjs.map
|
|
53
53
|
//# sourceMappingURL=index.cjs.map
|
package/dist/agent/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { Agent, LanguageDetectorInputProcessor, ModerationInputProcessor, PIIDetectorInputProcessor, PromptInjectionDetectorInputProcessor, TripWire, UnicodeNormalizerInputProcessor, tryGenerateWithJsonFallback, tryStreamWithJsonFallback } from '../chunk-
|
|
2
|
-
export { MessageList, convertMessages } from '../chunk-
|
|
1
|
+
export { Agent, LanguageDetectorInputProcessor, ModerationInputProcessor, PIIDetectorInputProcessor, PromptInjectionDetectorInputProcessor, TripWire, UnicodeNormalizerInputProcessor, tryGenerateWithJsonFallback, tryStreamWithJsonFallback } from '../chunk-Z3PIE2HC.js';
|
|
2
|
+
export { MessageList, convertMessages } from '../chunk-YWK4OFUM.js';
|
|
3
3
|
//# sourceMappingURL=index.js.map
|
|
4
4
|
//# sourceMappingURL=index.js.map
|
|
@@ -1,28 +1,28 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkDQNIWOM3_cjs = require('../../chunk-DQNIWOM3.cjs');
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
Object.defineProperty(exports, "LanguageDetectorInputProcessor", {
|
|
8
8
|
enumerable: true,
|
|
9
|
-
get: function () { return
|
|
9
|
+
get: function () { return chunkDQNIWOM3_cjs.LanguageDetectorInputProcessor; }
|
|
10
10
|
});
|
|
11
11
|
Object.defineProperty(exports, "ModerationInputProcessor", {
|
|
12
12
|
enumerable: true,
|
|
13
|
-
get: function () { return
|
|
13
|
+
get: function () { return chunkDQNIWOM3_cjs.ModerationInputProcessor; }
|
|
14
14
|
});
|
|
15
15
|
Object.defineProperty(exports, "PIIDetectorInputProcessor", {
|
|
16
16
|
enumerable: true,
|
|
17
|
-
get: function () { return
|
|
17
|
+
get: function () { return chunkDQNIWOM3_cjs.PIIDetectorInputProcessor; }
|
|
18
18
|
});
|
|
19
19
|
Object.defineProperty(exports, "PromptInjectionDetectorInputProcessor", {
|
|
20
20
|
enumerable: true,
|
|
21
|
-
get: function () { return
|
|
21
|
+
get: function () { return chunkDQNIWOM3_cjs.PromptInjectionDetectorInputProcessor; }
|
|
22
22
|
});
|
|
23
23
|
Object.defineProperty(exports, "UnicodeNormalizerInputProcessor", {
|
|
24
24
|
enumerable: true,
|
|
25
|
-
get: function () { return
|
|
25
|
+
get: function () { return chunkDQNIWOM3_cjs.UnicodeNormalizerInputProcessor; }
|
|
26
26
|
});
|
|
27
27
|
//# sourceMappingURL=index.cjs.map
|
|
28
28
|
//# sourceMappingURL=index.cjs.map
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export { LanguageDetectorInputProcessor, ModerationInputProcessor, PIIDetectorInputProcessor, PromptInjectionDetectorInputProcessor, UnicodeNormalizerInputProcessor } from '../../chunk-
|
|
1
|
+
export { LanguageDetectorInputProcessor, ModerationInputProcessor, PIIDetectorInputProcessor, PromptInjectionDetectorInputProcessor, UnicodeNormalizerInputProcessor } from '../../chunk-Z3PIE2HC.js';
|
|
2
2
|
//# sourceMappingURL=index.js.map
|
|
3
3
|
//# sourceMappingURL=index.js.map
|
|
@@ -1,148 +1,165 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkKPKDAZ5I_cjs = require('../chunk-KPKDAZ5I.cjs');
|
|
4
|
+
var chunkLQJJBWFH_cjs = require('../chunk-LQJJBWFH.cjs');
|
|
4
5
|
|
|
5
6
|
|
|
6
7
|
|
|
7
8
|
Object.defineProperty(exports, "AISpanType", {
|
|
8
9
|
enumerable: true,
|
|
9
|
-
get: function () { return
|
|
10
|
+
get: function () { return chunkKPKDAZ5I_cjs.AISpanType; }
|
|
10
11
|
});
|
|
11
12
|
Object.defineProperty(exports, "AITracingEventType", {
|
|
12
13
|
enumerable: true,
|
|
13
|
-
get: function () { return
|
|
14
|
+
get: function () { return chunkKPKDAZ5I_cjs.AITracingEventType; }
|
|
14
15
|
});
|
|
15
16
|
Object.defineProperty(exports, "BaseAISpan", {
|
|
16
17
|
enumerable: true,
|
|
17
|
-
get: function () { return
|
|
18
|
+
get: function () { return chunkKPKDAZ5I_cjs.BaseAISpan; }
|
|
18
19
|
});
|
|
19
20
|
Object.defineProperty(exports, "BaseAITracing", {
|
|
20
21
|
enumerable: true,
|
|
21
|
-
get: function () { return
|
|
22
|
+
get: function () { return chunkKPKDAZ5I_cjs.BaseAITracing; }
|
|
22
23
|
});
|
|
23
24
|
Object.defineProperty(exports, "BaseExporter", {
|
|
24
25
|
enumerable: true,
|
|
25
|
-
get: function () { return
|
|
26
|
+
get: function () { return chunkKPKDAZ5I_cjs.BaseExporter; }
|
|
26
27
|
});
|
|
27
28
|
Object.defineProperty(exports, "CloudExporter", {
|
|
28
29
|
enumerable: true,
|
|
29
|
-
get: function () { return
|
|
30
|
+
get: function () { return chunkKPKDAZ5I_cjs.CloudExporter; }
|
|
30
31
|
});
|
|
31
32
|
Object.defineProperty(exports, "ConsoleExporter", {
|
|
32
33
|
enumerable: true,
|
|
33
|
-
get: function () { return
|
|
34
|
+
get: function () { return chunkKPKDAZ5I_cjs.ConsoleExporter; }
|
|
34
35
|
});
|
|
35
36
|
Object.defineProperty(exports, "DefaultAISpan", {
|
|
36
37
|
enumerable: true,
|
|
37
|
-
get: function () { return
|
|
38
|
+
get: function () { return chunkKPKDAZ5I_cjs.DefaultAISpan; }
|
|
38
39
|
});
|
|
39
40
|
Object.defineProperty(exports, "DefaultAITracing", {
|
|
40
41
|
enumerable: true,
|
|
41
|
-
get: function () { return
|
|
42
|
+
get: function () { return chunkKPKDAZ5I_cjs.DefaultAITracing; }
|
|
42
43
|
});
|
|
43
44
|
Object.defineProperty(exports, "DefaultExporter", {
|
|
44
45
|
enumerable: true,
|
|
45
|
-
get: function () { return
|
|
46
|
+
get: function () { return chunkKPKDAZ5I_cjs.DefaultExporter; }
|
|
46
47
|
});
|
|
47
48
|
Object.defineProperty(exports, "InternalSpans", {
|
|
48
49
|
enumerable: true,
|
|
49
|
-
get: function () { return
|
|
50
|
+
get: function () { return chunkKPKDAZ5I_cjs.InternalSpans; }
|
|
50
51
|
});
|
|
51
52
|
Object.defineProperty(exports, "ModelSpanTracker", {
|
|
52
53
|
enumerable: true,
|
|
53
|
-
get: function () { return
|
|
54
|
+
get: function () { return chunkKPKDAZ5I_cjs.ModelSpanTracker; }
|
|
54
55
|
});
|
|
55
56
|
Object.defineProperty(exports, "NoOpAISpan", {
|
|
56
57
|
enumerable: true,
|
|
57
|
-
get: function () { return
|
|
58
|
+
get: function () { return chunkKPKDAZ5I_cjs.NoOpAISpan; }
|
|
58
59
|
});
|
|
59
60
|
Object.defineProperty(exports, "SamplingStrategyType", {
|
|
60
61
|
enumerable: true,
|
|
61
|
-
get: function () { return
|
|
62
|
+
get: function () { return chunkKPKDAZ5I_cjs.SamplingStrategyType; }
|
|
62
63
|
});
|
|
63
64
|
Object.defineProperty(exports, "SensitiveDataFilter", {
|
|
64
65
|
enumerable: true,
|
|
65
|
-
get: function () { return
|
|
66
|
+
get: function () { return chunkKPKDAZ5I_cjs.SensitiveDataFilter; }
|
|
66
67
|
});
|
|
67
68
|
Object.defineProperty(exports, "clearAITracingRegistry", {
|
|
68
69
|
enumerable: true,
|
|
69
|
-
get: function () { return
|
|
70
|
-
});
|
|
71
|
-
Object.defineProperty(exports, "deepClean", {
|
|
72
|
-
enumerable: true,
|
|
73
|
-
get: function () { return chunkYPYLWTZI_cjs.deepClean; }
|
|
70
|
+
get: function () { return chunkKPKDAZ5I_cjs.clearAITracingRegistry; }
|
|
74
71
|
});
|
|
75
72
|
Object.defineProperty(exports, "getAITracing", {
|
|
76
73
|
enumerable: true,
|
|
77
|
-
get: function () { return
|
|
74
|
+
get: function () { return chunkKPKDAZ5I_cjs.getAITracing; }
|
|
78
75
|
});
|
|
79
76
|
Object.defineProperty(exports, "getAllAITracing", {
|
|
80
77
|
enumerable: true,
|
|
81
|
-
get: function () { return
|
|
78
|
+
get: function () { return chunkKPKDAZ5I_cjs.getAllAITracing; }
|
|
82
79
|
});
|
|
83
80
|
Object.defineProperty(exports, "getDefaultAITracing", {
|
|
84
81
|
enumerable: true,
|
|
85
|
-
get: function () { return
|
|
82
|
+
get: function () { return chunkKPKDAZ5I_cjs.getDefaultAITracing; }
|
|
86
83
|
});
|
|
87
84
|
Object.defineProperty(exports, "getNestedValue", {
|
|
88
85
|
enumerable: true,
|
|
89
|
-
get: function () { return
|
|
86
|
+
get: function () { return chunkKPKDAZ5I_cjs.getNestedValue; }
|
|
90
87
|
});
|
|
91
88
|
Object.defineProperty(exports, "getOrCreateSpan", {
|
|
92
89
|
enumerable: true,
|
|
93
|
-
get: function () { return
|
|
90
|
+
get: function () { return chunkKPKDAZ5I_cjs.getOrCreateSpan; }
|
|
94
91
|
});
|
|
95
92
|
Object.defineProperty(exports, "getSelectedAITracing", {
|
|
96
93
|
enumerable: true,
|
|
97
|
-
get: function () { return
|
|
94
|
+
get: function () { return chunkKPKDAZ5I_cjs.getSelectedAITracing; }
|
|
98
95
|
});
|
|
99
96
|
Object.defineProperty(exports, "getValidTraceId", {
|
|
100
97
|
enumerable: true,
|
|
101
|
-
get: function () { return
|
|
98
|
+
get: function () { return chunkKPKDAZ5I_cjs.getValidTraceId; }
|
|
102
99
|
});
|
|
103
100
|
Object.defineProperty(exports, "hasAITracing", {
|
|
104
101
|
enumerable: true,
|
|
105
|
-
get: function () { return
|
|
102
|
+
get: function () { return chunkKPKDAZ5I_cjs.hasAITracing; }
|
|
106
103
|
});
|
|
107
104
|
Object.defineProperty(exports, "isMastra", {
|
|
108
105
|
enumerable: true,
|
|
109
|
-
get: function () { return
|
|
106
|
+
get: function () { return chunkKPKDAZ5I_cjs.isMastra; }
|
|
110
107
|
});
|
|
111
108
|
Object.defineProperty(exports, "omitKeys", {
|
|
112
109
|
enumerable: true,
|
|
113
|
-
get: function () { return
|
|
110
|
+
get: function () { return chunkKPKDAZ5I_cjs.omitKeys; }
|
|
114
111
|
});
|
|
115
112
|
Object.defineProperty(exports, "registerAITracing", {
|
|
116
113
|
enumerable: true,
|
|
117
|
-
get: function () { return
|
|
114
|
+
get: function () { return chunkKPKDAZ5I_cjs.registerAITracing; }
|
|
118
115
|
});
|
|
119
116
|
Object.defineProperty(exports, "selectFields", {
|
|
120
117
|
enumerable: true,
|
|
121
|
-
get: function () { return
|
|
118
|
+
get: function () { return chunkKPKDAZ5I_cjs.selectFields; }
|
|
122
119
|
});
|
|
123
120
|
Object.defineProperty(exports, "setNestedValue", {
|
|
124
121
|
enumerable: true,
|
|
125
|
-
get: function () { return
|
|
122
|
+
get: function () { return chunkKPKDAZ5I_cjs.setNestedValue; }
|
|
126
123
|
});
|
|
127
124
|
Object.defineProperty(exports, "setSelector", {
|
|
128
125
|
enumerable: true,
|
|
129
|
-
get: function () { return
|
|
126
|
+
get: function () { return chunkKPKDAZ5I_cjs.setSelector; }
|
|
130
127
|
});
|
|
131
128
|
Object.defineProperty(exports, "setupAITracing", {
|
|
132
129
|
enumerable: true,
|
|
133
|
-
get: function () { return
|
|
130
|
+
get: function () { return chunkKPKDAZ5I_cjs.setupAITracing; }
|
|
134
131
|
});
|
|
135
132
|
Object.defineProperty(exports, "shutdownAITracingRegistry", {
|
|
136
133
|
enumerable: true,
|
|
137
|
-
get: function () { return
|
|
134
|
+
get: function () { return chunkKPKDAZ5I_cjs.shutdownAITracingRegistry; }
|
|
138
135
|
});
|
|
139
136
|
Object.defineProperty(exports, "unregisterAITracing", {
|
|
140
137
|
enumerable: true,
|
|
141
|
-
get: function () { return
|
|
138
|
+
get: function () { return chunkKPKDAZ5I_cjs.unregisterAITracing; }
|
|
142
139
|
});
|
|
143
140
|
Object.defineProperty(exports, "wrapMastra", {
|
|
144
141
|
enumerable: true,
|
|
145
|
-
get: function () { return
|
|
142
|
+
get: function () { return chunkKPKDAZ5I_cjs.wrapMastra; }
|
|
143
|
+
});
|
|
144
|
+
Object.defineProperty(exports, "DEFAULT_KEYS_TO_STRIP", {
|
|
145
|
+
enumerable: true,
|
|
146
|
+
get: function () { return chunkLQJJBWFH_cjs.DEFAULT_KEYS_TO_STRIP; }
|
|
147
|
+
});
|
|
148
|
+
Object.defineProperty(exports, "DEFAULT_SERIALIZATION_LIMITS", {
|
|
149
|
+
enumerable: true,
|
|
150
|
+
get: function () { return chunkLQJJBWFH_cjs.DEFAULT_SERIALIZATION_LIMITS; }
|
|
151
|
+
});
|
|
152
|
+
Object.defineProperty(exports, "boundedStringify", {
|
|
153
|
+
enumerable: true,
|
|
154
|
+
get: function () { return chunkLQJJBWFH_cjs.boundedStringify; }
|
|
155
|
+
});
|
|
156
|
+
Object.defineProperty(exports, "deepClean", {
|
|
157
|
+
enumerable: true,
|
|
158
|
+
get: function () { return chunkLQJJBWFH_cjs.deepClean; }
|
|
159
|
+
});
|
|
160
|
+
Object.defineProperty(exports, "truncateString", {
|
|
161
|
+
enumerable: true,
|
|
162
|
+
get: function () { return chunkLQJJBWFH_cjs.truncateString; }
|
|
146
163
|
});
|
|
147
164
|
//# sourceMappingURL=index.cjs.map
|
|
148
165
|
//# sourceMappingURL=index.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/ai-tracing/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AAGH,cAAc,SAAS,CAAC;AACxB,cAAc,WAAW,CAAC;AAC1B,cAAc,SAAS,CAAC;AACxB,cAAc,YAAY,CAAC;AAC3B,cAAc,SAAS,CAAC;AACxB,cAAc,WAAW,CAAC;AAC1B,cAAc,aAAa,CAAC;AAC5B,cAAc,mBAAmB,CAAC;AAClC,cAAc,iBAAiB,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/ai-tracing/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AAGH,cAAc,SAAS,CAAC;AACxB,cAAc,WAAW,CAAC;AAC1B,cAAc,SAAS,CAAC;AACxB,cAAc,YAAY,CAAC;AAC3B,cAAc,SAAS,CAAC;AACxB,cAAc,WAAW,CAAC;AAC1B,cAAc,aAAa,CAAC;AAC5B,cAAc,mBAAmB,CAAC;AAClC,cAAc,iBAAiB,CAAC;AAChC,cAAc,iBAAiB,CAAC"}
|
package/dist/ai-tracing/index.js
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
-
export { AISpanType, AITracingEventType, BaseAISpan, BaseAITracing, BaseExporter, CloudExporter, ConsoleExporter, DefaultAISpan, DefaultAITracing, DefaultExporter, InternalSpans, ModelSpanTracker, NoOpAISpan, SamplingStrategyType, SensitiveDataFilter, clearAITracingRegistry,
|
|
1
|
+
export { AISpanType, AITracingEventType, BaseAISpan, BaseAITracing, BaseExporter, CloudExporter, ConsoleExporter, DefaultAISpan, DefaultAITracing, DefaultExporter, InternalSpans, ModelSpanTracker, NoOpAISpan, SamplingStrategyType, SensitiveDataFilter, clearAITracingRegistry, getAITracing, getAllAITracing, getDefaultAITracing, getNestedValue, getOrCreateSpan, getSelectedAITracing, getValidTraceId, hasAITracing, isMastra, omitKeys, registerAITracing, selectFields, setNestedValue, setSelector, setupAITracing, shutdownAITracingRegistry, unregisterAITracing, wrapMastra } from '../chunk-GWZTWJLK.js';
|
|
2
|
+
export { DEFAULT_KEYS_TO_STRIP, DEFAULT_SERIALIZATION_LIMITS, boundedStringify, deepClean, truncateString } from '../chunk-UG3C67I3.js';
|
|
2
3
|
//# sourceMappingURL=index.js.map
|
|
3
4
|
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Bounded serialization utilities for AI tracing.
|
|
3
|
+
*
|
|
4
|
+
* These utilities prevent memory issues by enforcing strict limits on
|
|
5
|
+
* string lengths, array sizes, object depths, and total output size.
|
|
6
|
+
* They are designed to be used across all tracing/telemetry systems.
|
|
7
|
+
*/
|
|
8
|
+
/**
|
|
9
|
+
* Configuration limits for serialization.
|
|
10
|
+
* These defaults are intentionally conservative to prevent OOM issues.
|
|
11
|
+
*/
|
|
12
|
+
export interface SerializationLimits {
|
|
13
|
+
/** Maximum characters for any single attribute string (default: 1024) */
|
|
14
|
+
maxAttrChars: number;
|
|
15
|
+
/** Maximum depth for recursive serialization (default: 6) */
|
|
16
|
+
maxDepth: number;
|
|
17
|
+
/** Maximum object keys to serialize (default: 50) */
|
|
18
|
+
maxKeys: number;
|
|
19
|
+
/** Maximum array elements to serialize (default: 50) */
|
|
20
|
+
maxArrayItems: number;
|
|
21
|
+
/** Maximum total output characters (default: 8192) */
|
|
22
|
+
maxTotalChars: number;
|
|
23
|
+
}
|
|
24
|
+
export declare const DEFAULT_SERIALIZATION_LIMITS: SerializationLimits;
|
|
25
|
+
/**
|
|
26
|
+
* Hard-cap any string to prevent unbounded growth.
|
|
27
|
+
*/
|
|
28
|
+
export declare function truncateString(s: string, maxChars: number): string;
|
|
29
|
+
/**
|
|
30
|
+
* Default keys to strip from objects during deep cleaning.
|
|
31
|
+
* These are typically internal/sensitive fields that shouldn't be traced.
|
|
32
|
+
*/
|
|
33
|
+
export declare const DEFAULT_KEYS_TO_STRIP: Set<string>;
|
|
34
|
+
export interface DeepCleanOptions {
|
|
35
|
+
keysToStrip?: Set<string>;
|
|
36
|
+
maxDepth?: number;
|
|
37
|
+
maxStringLength?: number;
|
|
38
|
+
maxArrayLength?: number;
|
|
39
|
+
maxObjectKeys?: number;
|
|
40
|
+
}
|
|
41
|
+
/**
|
|
42
|
+
* Recursively cleans a value by removing circular references, stripping problematic keys,
|
|
43
|
+
* and enforcing size limits on strings, arrays, and objects.
|
|
44
|
+
*
|
|
45
|
+
* This is used by AI tracing spans to sanitize input/output data before storing.
|
|
46
|
+
*
|
|
47
|
+
* @param value - The value to clean (object, array, primitive, etc.)
|
|
48
|
+
* @param options - Optional configuration for cleaning behavior
|
|
49
|
+
* @returns A cleaned version of the input with size limits enforced
|
|
50
|
+
*/
|
|
51
|
+
export declare function deepClean(value: any, options?: DeepCleanOptions): any;
|
|
52
|
+
/**
|
|
53
|
+
* Bounded safe stringify for when you need JSON output.
|
|
54
|
+
* Uses deepClean internally, then JSON.stringify with total length limit.
|
|
55
|
+
*
|
|
56
|
+
* @param value - The value to stringify
|
|
57
|
+
* @returns A JSON string representation with enforced limits
|
|
58
|
+
*/
|
|
59
|
+
export declare function boundedStringify(value: unknown): string;
|
|
60
|
+
//# sourceMappingURL=serialization.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"serialization.d.ts","sourceRoot":"","sources":["../../src/ai-tracing/serialization.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH;;;GAGG;AACH,MAAM,WAAW,mBAAmB;IAClC,yEAAyE;IACzE,YAAY,EAAE,MAAM,CAAC;IACrB,6DAA6D;IAC7D,QAAQ,EAAE,MAAM,CAAC;IACjB,qDAAqD;IACrD,OAAO,EAAE,MAAM,CAAC;IAChB,wDAAwD;IACxD,aAAa,EAAE,MAAM,CAAC;IACtB,sDAAsD;IACtD,aAAa,EAAE,MAAM,CAAC;CACvB;AAED,eAAO,MAAM,4BAA4B,EAAE,mBAM1C,CAAC;AAEF;;GAEG;AACH,wBAAgB,cAAc,CAAC,CAAC,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,GAAG,MAAM,CAGlE;AAED;;;GAGG;AACH,eAAO,MAAM,qBAAqB,aAMhC,CAAC;AAKH,MAAM,WAAW,gBAAgB;IAC/B,WAAW,CAAC,EAAE,GAAG,CAAC,MAAM,CAAC,CAAC;IAC1B,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,aAAa,CAAC,EAAE,MAAM,CAAC;CACxB;AAED;;;;;;;;;GASG;AACH,wBAAgB,SAAS,CAAC,KAAK,EAAE,GAAG,EAAE,OAAO,GAAE,gBAAqB,GAAG,GAAG,CAoHzE;AAED;;;;;;GAMG;AACH,wBAAgB,gBAAgB,CAAC,KAAK,EAAE,OAAO,GAAG,MAAM,CAYvD"}
|
|
@@ -45,21 +45,4 @@ export declare abstract class BaseAISpan<TType extends AISpanType = any> impleme
|
|
|
45
45
|
/** Returns a lightweight span ready for export */
|
|
46
46
|
exportSpan(includeInternalSpans?: boolean): ExportedAISpan<TType>;
|
|
47
47
|
}
|
|
48
|
-
export interface DeepCleanOptions {
|
|
49
|
-
keysToStrip?: Set<string>;
|
|
50
|
-
maxDepth?: number;
|
|
51
|
-
}
|
|
52
|
-
/**
|
|
53
|
-
* Recursively cleans a value by removing circular references and stripping problematic or sensitive keys.
|
|
54
|
-
* Circular references are replaced with "[Circular]". Unserializable values are replaced with error messages.
|
|
55
|
-
* Keys like "logger" and "tracingContext" are stripped by default.
|
|
56
|
-
* A maximum recursion depth is enforced to avoid stack overflow or excessive memory usage.
|
|
57
|
-
*
|
|
58
|
-
* @param value - The value to clean (object, array, primitive, etc.)
|
|
59
|
-
* @param options - Optional configuration:
|
|
60
|
-
* - keysToStrip: Set of keys to remove from objects (default: logger, tracingContext)
|
|
61
|
-
* - maxDepth: Maximum recursion depth before values are replaced with "[MaxDepth]" (default: 10)
|
|
62
|
-
* @returns A cleaned version of the input with circular references, specified keys, and overly deep values handled
|
|
63
|
-
*/
|
|
64
|
-
export declare function deepClean(value: any, options?: DeepCleanOptions, _seen?: WeakSet<any>, _depth?: number): any;
|
|
65
48
|
//# sourceMappingURL=base.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"base.d.ts","sourceRoot":"","sources":["../../../src/ai-tracing/spans/base.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"base.d.ts","sourceRoot":"","sources":["../../../src/ai-tracing/spans/base.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EACV,MAAM,EACN,aAAa,EACb,SAAS,EACT,gBAAgB,EAChB,iBAAiB,EACjB,cAAc,EACd,gBAAgB,EAChB,iBAAiB,EACjB,iBAAiB,EACjB,SAAS,EACT,cAAc,EACd,UAAU,EACX,MAAM,UAAU,CAAC;AAElB,OAAO,EAAE,UAAU,EAAiB,MAAM,UAAU,CAAC;AA4CrD,8BAAsB,UAAU,CAAC,KAAK,SAAS,UAAU,GAAG,GAAG,CAAE,YAAW,MAAM,CAAC,KAAK,CAAC;IACvF,SAAgB,EAAE,EAAE,MAAM,CAAC;IAC3B,SAAgB,OAAO,EAAE,MAAM,CAAC;IAEzB,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,KAAK,CAAC;IACZ,UAAU,EAAE,aAAa,CAAC,KAAK,CAAC,CAAC;IACjC,MAAM,CAAC,EAAE,SAAS,CAAC;IACnB,SAAS,EAAE,IAAI,CAAC;IAChB,OAAO,CAAC,EAAE,IAAI,CAAC;IACf,OAAO,EAAE,OAAO,CAAC;IACjB,UAAU,EAAE,OAAO,CAAC;IACpB,SAAS,EAAE,SAAS,CAAC;IACrB,KAAK,CAAC,EAAE,GAAG,CAAC;IACZ,MAAM,CAAC,EAAE,GAAG,CAAC;IACb,SAAS,CAAC,EAAE;QACjB,OAAO,EAAE,MAAM,CAAC;QAChB,EAAE,CAAC,EAAE,MAAM,CAAC;QACZ,MAAM,CAAC,EAAE,MAAM,CAAC;QAChB,QAAQ,CAAC,EAAE,MAAM,CAAC;QAClB,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;KAC/B,CAAC;IACK,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;IAC/B,UAAU,CAAC,EAAE,UAAU,CAAC;IAC/B,0EAA0E;IAC1E,SAAS,CAAC,YAAY,CAAC,EAAE,MAAM,CAAC;gBAEpB,OAAO,EAAE,iBAAiB,CAAC,KAAK,CAAC,EAAE,SAAS,EAAE,SAAS;IAsBnE,mBAAmB;IACnB,QAAQ,CAAC,GAAG,CAAC,OAAO,CAAC,EAAE,cAAc,CAAC,KAAK,CAAC,GAAG,IAAI;IAEnD,oEAAoE;IACpE,QAAQ,CAAC,KAAK,CAAC,OAAO,EAAE,gBAAgB,CAAC,KAAK,CAAC,GAAG,IAAI;IAEtD,6BAA6B;IAC7B,QAAQ,CAAC,MAAM,CAAC,OAAO,EAAE,iBAAiB,CAAC,KAAK,CAAC,GAAG,IAAI;IAExD,eAAe,CAAC,UAAU,SAAS,UAAU,EAAE,OAAO,EAAE,gBAAgB,CAAC,UAAU,CAAC,GAAG,MAAM,CAAC,UAAU,CAAC;IAIzG,eAAe,CAAC,UAAU,SAAS,UAAU,EAAE,OAAO,EAAE,iBAAiB,CAAC,UAAU,CAAC,GAAG,MAAM,CAAC,UAAU,CAAC;IAI1G,6DAA6D;IAC7D,IAAI,UAAU,IAAI,OAAO,CAExB;IAED,oEAAoE;IACpE,QAAQ,KAAK,OAAO,IAAI,OAAO,CAAC;IAEhC,gEAAgE;IACzD,eAAe,CAAC,oBAAoB,CAAC,EAAE,OAAO,GAAG,MAAM,GAAG,SAAS;IAW1E,qFAAqF;IAC9E,UAAU,CAAC,CAAC,SAAS,UAAU,EAAE,QAAQ,EAAE,CAAC,GAAG,MAAM,CAAC,CAAC,CAAC,GAAG,SAAS;IAa3E,kDAAkD;IAC3C,UAAU,CAAC,oBAAoB,CAAC,EAAE,OAAO,GAAG,cAAc,CAAC,KAAK,CAAC;CAkBzE"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"default.d.ts","sourceRoot":"","sources":["../../../src/ai-tracing/spans/default.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"default.d.ts","sourceRoot":"","sources":["../../../src/ai-tracing/spans/default.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EACV,UAAU,EACV,SAAS,EACT,cAAc,EACd,gBAAgB,EAChB,iBAAiB,EACjB,iBAAiB,EAClB,MAAM,UAAU,CAAC;AAClB,OAAO,EAAE,UAAU,EAAE,MAAM,QAAQ,CAAC;AAEpC,qBAAa,aAAa,CAAC,KAAK,SAAS,UAAU,CAAE,SAAQ,UAAU,CAAC,KAAK,CAAC;IACrE,EAAE,EAAE,MAAM,CAAC;IACX,OAAO,EAAE,MAAM,CAAC;gBAEX,OAAO,EAAE,iBAAiB,CAAC,KAAK,CAAC,EAAE,SAAS,EAAE,SAAS;IAmCnE,GAAG,CAAC,OAAO,CAAC,EAAE,cAAc,CAAC,KAAK,CAAC,GAAG,IAAI;IAiB1C,KAAK,CAAC,OAAO,EAAE,gBAAgB,CAAC,KAAK,CAAC,GAAG,IAAI;IAoC7C,MAAM,CAAC,OAAO,EAAE,iBAAiB,CAAC,KAAK,CAAC,GAAG,IAAI;IAoB/C,IAAI,OAAO,IAAI,OAAO,CAErB;IAEK,MAAM,IAAI,OAAO,CAAC,MAAM,CAAC;CAUhC"}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkDQNIWOM3_cjs = require('./chunk-DQNIWOM3.cjs');
|
|
4
4
|
var chunkABJOUEVA_cjs = require('./chunk-ABJOUEVA.cjs');
|
|
5
|
+
var chunkVF676YCO_cjs = require('./chunk-VF676YCO.cjs');
|
|
5
6
|
var chunkGPWMM745_cjs = require('./chunk-GPWMM745.cjs');
|
|
6
7
|
var chunk5NTO7S5I_cjs = require('./chunk-5NTO7S5I.cjs');
|
|
7
|
-
var chunkVF676YCO_cjs = require('./chunk-VF676YCO.cjs');
|
|
8
8
|
var chunk6VOPKVYH_cjs = require('./chunk-6VOPKVYH.cjs');
|
|
9
9
|
var chunkA5KDVZDL_cjs = require('./chunk-A5KDVZDL.cjs');
|
|
10
10
|
var EventEmitter = require('events');
|
|
@@ -31,7 +31,7 @@ var StepExecutor = class extends chunk6VOPKVYH_cjs.MastraBase {
|
|
|
31
31
|
let suspended;
|
|
32
32
|
let bailed;
|
|
33
33
|
const startedAt = Date.now();
|
|
34
|
-
const { inputData, validationError } = await
|
|
34
|
+
const { inputData, validationError } = await chunkDQNIWOM3_cjs.validateStepInput({
|
|
35
35
|
prevOutput: typeof params.foreachIdx === "number" ? params.input?.[params.foreachIdx] : params.input,
|
|
36
36
|
step,
|
|
37
37
|
validateInputs: params.validateInputs ?? false
|
|
@@ -63,7 +63,7 @@ var StepExecutor = class extends chunk6VOPKVYH_cjs.MastraBase {
|
|
|
63
63
|
runCount,
|
|
64
64
|
resumeData: params.resumeData,
|
|
65
65
|
getInitData: () => stepResults?.input,
|
|
66
|
-
getStepResult:
|
|
66
|
+
getStepResult: chunkDQNIWOM3_cjs.getStepResult.bind(this, stepResults),
|
|
67
67
|
suspend: async (suspendPayload) => {
|
|
68
68
|
suspended = { payload: { ...suspendPayload, __workflow_meta: { runId, path: [step.id] } } };
|
|
69
69
|
},
|
|
@@ -183,7 +183,7 @@ var StepExecutor = class extends chunk6VOPKVYH_cjs.MastraBase {
|
|
|
183
183
|
runCount,
|
|
184
184
|
resumeData,
|
|
185
185
|
getInitData: () => stepResults?.input,
|
|
186
|
-
getStepResult:
|
|
186
|
+
getStepResult: chunkDQNIWOM3_cjs.getStepResult.bind(this, stepResults),
|
|
187
187
|
suspend: async (_suspendPayload) => {
|
|
188
188
|
throw new Error("Not implemented");
|
|
189
189
|
},
|
|
@@ -230,7 +230,7 @@ var StepExecutor = class extends chunk6VOPKVYH_cjs.MastraBase {
|
|
|
230
230
|
runCount,
|
|
231
231
|
resumeData: params.resumeData,
|
|
232
232
|
getInitData: () => stepResults?.input,
|
|
233
|
-
getStepResult:
|
|
233
|
+
getStepResult: chunkDQNIWOM3_cjs.getStepResult.bind(this, stepResults),
|
|
234
234
|
suspend: async (_suspendPayload) => {
|
|
235
235
|
throw new Error("Not implemented");
|
|
236
236
|
},
|
|
@@ -280,7 +280,7 @@ var StepExecutor = class extends chunk6VOPKVYH_cjs.MastraBase {
|
|
|
280
280
|
runCount,
|
|
281
281
|
resumeData: params.resumeData,
|
|
282
282
|
getInitData: () => stepResults?.input,
|
|
283
|
-
getStepResult:
|
|
283
|
+
getStepResult: chunkDQNIWOM3_cjs.getStepResult.bind(this, stepResults),
|
|
284
284
|
suspend: async (_suspendPayload) => {
|
|
285
285
|
throw new Error("Not implemented");
|
|
286
286
|
},
|
|
@@ -1433,7 +1433,7 @@ var WorkflowEventProcessor = class extends EventProcessor {
|
|
|
1433
1433
|
workflowName: step.step.id,
|
|
1434
1434
|
runId
|
|
1435
1435
|
}) ?? { context: {} };
|
|
1436
|
-
const timeTravelParams =
|
|
1436
|
+
const timeTravelParams = chunkDQNIWOM3_cjs.createTimeTravelExecutionParams({
|
|
1437
1437
|
steps: timeTravel.steps.slice(1),
|
|
1438
1438
|
inputData: timeTravel.inputData,
|
|
1439
1439
|
resumeData: timeTravel.resumeData,
|
|
@@ -1541,7 +1541,7 @@ var WorkflowEventProcessor = class extends EventProcessor {
|
|
|
1541
1541
|
for (const [key, value] of Object.entries(runtimeContext)) {
|
|
1542
1542
|
rc.set(key, value);
|
|
1543
1543
|
}
|
|
1544
|
-
const { resumeData: timeTravelResumeData, validationError: timeTravelResumeValidationError } = await
|
|
1544
|
+
const { resumeData: timeTravelResumeData, validationError: timeTravelResumeValidationError } = await chunkDQNIWOM3_cjs.validateStepResumeData({
|
|
1545
1545
|
resumeData: timeTravel?.stepResults[step.step.id]?.status === "suspended" ? timeTravel?.resumeData : void 0,
|
|
1546
1546
|
step: step.step
|
|
1547
1547
|
});
|
|
@@ -2090,7 +2090,7 @@ var WorkflowEventProcessor = class extends EventProcessor {
|
|
|
2090
2090
|
|
|
2091
2091
|
// src/workflows/evented/workflow.ts
|
|
2092
2092
|
function cloneWorkflow(workflow, opts) {
|
|
2093
|
-
const wf = new
|
|
2093
|
+
const wf = new chunkDQNIWOM3_cjs.Workflow({
|
|
2094
2094
|
id: opts.id,
|
|
2095
2095
|
inputSchema: workflow.inputSchema,
|
|
2096
2096
|
outputSchema: workflow.outputSchema,
|
|
@@ -2231,7 +2231,7 @@ function createWorkflow(params) {
|
|
|
2231
2231
|
executionEngine
|
|
2232
2232
|
});
|
|
2233
2233
|
}
|
|
2234
|
-
var EventedWorkflow = class extends
|
|
2234
|
+
var EventedWorkflow = class extends chunkDQNIWOM3_cjs.Workflow {
|
|
2235
2235
|
constructor(params) {
|
|
2236
2236
|
super(params);
|
|
2237
2237
|
this.engineType = "evented";
|
|
@@ -2286,7 +2286,7 @@ var EventedWorkflow = class extends chunkYYKN3NDZ_cjs.Workflow {
|
|
|
2286
2286
|
return run;
|
|
2287
2287
|
}
|
|
2288
2288
|
};
|
|
2289
|
-
var EventedRun = class extends
|
|
2289
|
+
var EventedRun = class extends chunkDQNIWOM3_cjs.Run {
|
|
2290
2290
|
constructor(params) {
|
|
2291
2291
|
super(params);
|
|
2292
2292
|
this.serializedStepGraph = params.serializedStepGraph;
|
|
@@ -2550,7 +2550,7 @@ function isExecutableStep(step) {
|
|
|
2550
2550
|
}
|
|
2551
2551
|
|
|
2552
2552
|
// src/workflows/evented/execution-engine.ts
|
|
2553
|
-
var EventedExecutionEngine = class extends
|
|
2553
|
+
var EventedExecutionEngine = class extends chunkDQNIWOM3_cjs.ExecutionEngine {
|
|
2554
2554
|
eventProcessor;
|
|
2555
2555
|
constructor({
|
|
2556
2556
|
mastra,
|
|
@@ -2676,5 +2676,5 @@ exports.cloneStep = cloneStep;
|
|
|
2676
2676
|
exports.cloneWorkflow = cloneWorkflow;
|
|
2677
2677
|
exports.createStep = createStep;
|
|
2678
2678
|
exports.createWorkflow = createWorkflow;
|
|
2679
|
-
//# sourceMappingURL=chunk-
|
|
2680
|
-
//# sourceMappingURL=chunk-
|
|
2679
|
+
//# sourceMappingURL=chunk-2L6LTY2M.cjs.map
|
|
2680
|
+
//# sourceMappingURL=chunk-2L6LTY2M.cjs.map
|