@mastra/core 1.0.0-beta.13 → 1.0.0-beta.14
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 +170 -0
- package/dist/agent/agent.d.ts +2 -2
- package/dist/agent/agent.d.ts.map +1 -1
- package/dist/agent/agent.types.d.ts +6 -7
- package/dist/agent/agent.types.d.ts.map +1 -1
- package/dist/agent/index.cjs +17 -9
- package/dist/agent/index.d.ts +1 -1
- package/dist/agent/index.d.ts.map +1 -1
- 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/trip-wire.d.ts +2 -2
- package/dist/agent/trip-wire.d.ts.map +1 -1
- package/dist/agent/utils.d.ts +4 -1
- package/dist/agent/utils.d.ts.map +1 -1
- package/dist/agent/workflows/prepare-stream/index.d.ts +3 -3
- package/dist/agent/workflows/prepare-stream/index.d.ts.map +1 -1
- package/dist/agent/workflows/prepare-stream/map-results-step.d.ts +3 -3
- package/dist/agent/workflows/prepare-stream/map-results-step.d.ts.map +1 -1
- package/dist/agent/workflows/prepare-stream/prepare-memory-step.d.ts +3 -3
- package/dist/agent/workflows/prepare-stream/prepare-memory-step.d.ts.map +1 -1
- package/dist/agent/workflows/prepare-stream/prepare-tools-step.d.ts +3 -3
- package/dist/agent/workflows/prepare-stream/prepare-tools-step.d.ts.map +1 -1
- package/dist/bundler/types.d.ts +1 -0
- package/dist/bundler/types.d.ts.map +1 -1
- package/dist/chunk-2AU5ZHBL.js +79 -0
- package/dist/chunk-2AU5ZHBL.js.map +1 -0
- package/dist/{chunk-BQDZIQ3G.js → chunk-3IP3DZ7G.js} +85 -18
- package/dist/chunk-3IP3DZ7G.js.map +1 -0
- package/dist/{chunk-WYWRMIQC.js → chunk-4AT6YQKZ.js} +4 -103
- package/dist/chunk-4AT6YQKZ.js.map +1 -0
- package/dist/{chunk-62Q7K656.js → chunk-4CMIJQF6.js} +114 -110
- package/dist/chunk-4CMIJQF6.js.map +1 -0
- package/dist/{chunk-MXBVP7HX.cjs → chunk-53SZJCBX.cjs} +220 -174
- package/dist/chunk-53SZJCBX.cjs.map +1 -0
- package/dist/{chunk-2IU4RGU5.js → chunk-5UQ5TB6J.js} +5 -5
- package/dist/{chunk-2IU4RGU5.js.map → chunk-5UQ5TB6J.js.map} +1 -1
- package/dist/{chunk-WYGUWVTF.js → chunk-67LM2UCT.js} +8 -8
- package/dist/chunk-67LM2UCT.js.map +1 -0
- package/dist/{chunk-U4CSOY6T.cjs → chunk-6CG7IY57.cjs} +110 -43
- package/dist/chunk-6CG7IY57.cjs.map +1 -0
- package/dist/{chunk-X6IBA7FP.cjs → chunk-72E3YF6A.cjs} +9 -110
- package/dist/chunk-72E3YF6A.cjs.map +1 -0
- package/dist/{chunk-GIWC35YQ.js → chunk-AYBJ5GAD.js} +180 -4
- package/dist/chunk-AYBJ5GAD.js.map +1 -0
- package/dist/{chunk-VEPP75C4.cjs → chunk-DBW6S25C.cjs} +10 -10
- package/dist/{chunk-VEPP75C4.cjs.map → chunk-DBW6S25C.cjs.map} +1 -1
- package/dist/{chunk-Y7MZ5LJT.cjs → chunk-EGHGFLL3.cjs} +101 -102
- package/dist/chunk-EGHGFLL3.cjs.map +1 -0
- package/dist/{chunk-LGB4VNZI.cjs → chunk-ETWAR2YE.cjs} +5 -5
- package/dist/{chunk-LGB4VNZI.cjs.map → chunk-ETWAR2YE.cjs.map} +1 -1
- package/dist/{chunk-OWIEOL55.cjs → chunk-F75EQ574.cjs} +695 -254
- package/dist/chunk-F75EQ574.cjs.map +1 -0
- package/dist/{chunk-AGHLXC4I.cjs → chunk-FPDJ4XN6.cjs} +181 -5
- package/dist/chunk-FPDJ4XN6.cjs.map +1 -0
- package/dist/{chunk-VETAQUW3.js → chunk-GBQXIVL6.js} +3 -3
- package/dist/{chunk-VETAQUW3.js.map → chunk-GBQXIVL6.js.map} +1 -1
- package/dist/{chunk-4BC5FUAO.js → chunk-GELVUDUY.js} +5 -4
- package/dist/chunk-GELVUDUY.js.map +1 -0
- package/dist/chunk-GVAPYQRO.cjs +252 -0
- package/dist/chunk-GVAPYQRO.cjs.map +1 -0
- package/dist/{chunk-R5AJGM55.cjs → chunk-JAGQZZ43.cjs} +410 -265
- package/dist/chunk-JAGQZZ43.cjs.map +1 -0
- package/dist/{chunk-ARAQIW6E.js → chunk-K66U47VL.js} +617 -188
- package/dist/chunk-K66U47VL.js.map +1 -0
- package/dist/{chunk-RCJLMMTO.js → chunk-LDXKZYOV.js} +4 -4
- package/dist/{chunk-RCJLMMTO.js.map → chunk-LDXKZYOV.js.map} +1 -1
- package/dist/{chunk-MLKE7HRS.cjs → chunk-O3ULBGV6.cjs} +4 -4
- package/dist/{chunk-MLKE7HRS.cjs.map → chunk-O3ULBGV6.cjs.map} +1 -1
- package/dist/{chunk-PJAK4U6R.cjs → chunk-O5BQBZEF.cjs} +15 -15
- package/dist/chunk-O5BQBZEF.cjs.map +1 -0
- package/dist/{chunk-H4VUIOWU.cjs → chunk-OOUFPYSX.cjs} +5 -4
- package/dist/chunk-OOUFPYSX.cjs.map +1 -0
- package/dist/{chunk-5VZGJTPR.js → chunk-QDVYP2T7.js} +56 -10
- package/dist/chunk-QDVYP2T7.js.map +1 -0
- package/dist/{chunk-E5BQRAJK.js → chunk-QF4MHFSU.js} +364 -221
- package/dist/chunk-QF4MHFSU.js.map +1 -0
- package/dist/{chunk-WPTTKULS.js → chunk-SLBWA2F3.js} +3 -3
- package/dist/{chunk-WPTTKULS.js.map → chunk-SLBWA2F3.js.map} +1 -1
- package/dist/chunk-ST7NBF4H.cjs +84 -0
- package/dist/chunk-ST7NBF4H.cjs.map +1 -0
- package/dist/{chunk-7HEAVZRS.cjs → chunk-TDM43G4I.cjs} +8 -8
- package/dist/{chunk-7HEAVZRS.cjs.map → chunk-TDM43G4I.cjs.map} +1 -1
- package/dist/{chunk-SZYSDJTN.cjs → chunk-TRUNX3AX.cjs} +117 -112
- package/dist/chunk-TRUNX3AX.cjs.map +1 -0
- package/dist/chunk-VE6HQ7H6.js +250 -0
- package/dist/chunk-VE6HQ7H6.js.map +1 -0
- package/dist/{chunk-MRRFTNF4.js → chunk-VZJOEGQA.js} +3 -4
- package/dist/chunk-VZJOEGQA.js.map +1 -0
- package/dist/evals/index.cjs +4 -4
- package/dist/evals/index.js +1 -1
- package/dist/evals/run/index.d.ts.map +1 -1
- package/dist/evals/scoreTraces/index.cjs +3 -3
- package/dist/evals/scoreTraces/index.js +1 -1
- package/dist/index.cjs +2 -2
- package/dist/index.js +1 -1
- package/dist/llm/index.cjs +15 -15
- package/dist/llm/index.js +5 -5
- package/dist/llm/model/aisdk/generate-to-stream.d.ts +20 -0
- package/dist/llm/model/aisdk/generate-to-stream.d.ts.map +1 -0
- package/dist/llm/model/aisdk/v5/model.d.ts +4 -0
- package/dist/llm/model/aisdk/v5/model.d.ts.map +1 -1
- package/dist/llm/model/aisdk/v6/model.d.ts +51 -0
- package/dist/llm/model/aisdk/v6/model.d.ts.map +1 -0
- package/dist/llm/model/model.loop.d.ts +1 -1
- package/dist/llm/model/provider-types.generated.d.ts +84 -0
- package/dist/llm/model/resolve-model.d.ts +2 -2
- package/dist/llm/model/resolve-model.d.ts.map +1 -1
- package/dist/llm/model/shared.types.d.ts +18 -7
- package/dist/llm/model/shared.types.d.ts.map +1 -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/test-utils/MastraLanguageModelV2Mock.d.ts +1 -1
- package/dist/loop/test-utils/MastraLanguageModelV2Mock.d.ts.map +1 -1
- package/dist/loop/test-utils/MastraLanguageModelV3Mock.d.ts +37 -0
- package/dist/loop/test-utils/MastraLanguageModelV3Mock.d.ts.map +1 -0
- package/dist/loop/test-utils/fullStream.d.ts +2 -1
- package/dist/loop/test-utils/fullStream.d.ts.map +1 -1
- package/dist/loop/test-utils/resultObject.d.ts +2 -1
- package/dist/loop/test-utils/resultObject.d.ts.map +1 -1
- package/dist/loop/test-utils/streamObject.d.ts.map +1 -1
- package/dist/loop/test-utils/utils-v3.d.ts +55 -0
- package/dist/loop/test-utils/utils-v3.d.ts.map +1 -0
- package/dist/loop/types.d.ts +5 -6
- package/dist/loop/types.d.ts.map +1 -1
- package/dist/loop/workflows/agentic-execution/index.d.ts +36 -36
- package/dist/loop/workflows/agentic-execution/llm-execution-step.d.ts +25 -25
- package/dist/loop/workflows/agentic-execution/llm-execution-step.d.ts.map +1 -1
- package/dist/loop/workflows/agentic-execution/llm-mapping-step.d.ts +12 -12
- package/dist/loop/workflows/agentic-loop/index.d.ts +36 -36
- package/dist/loop/workflows/run-state.d.ts +2 -2
- package/dist/loop/workflows/run-state.d.ts.map +1 -1
- package/dist/loop/workflows/schema.d.ts +12 -12
- package/dist/mastra/index.cjs +2 -2
- package/dist/mastra/index.js +1 -1
- package/dist/memory/index.cjs +6 -6
- package/dist/memory/index.js +1 -1
- package/dist/models-dev-E3WWI7VA.js +3 -0
- package/dist/{models-dev-EO22XOXQ.js.map → models-dev-E3WWI7VA.js.map} +1 -1
- package/dist/models-dev-PPS7X4JM.cjs +12 -0
- package/dist/{models-dev-D3EKFGAO.cjs.map → models-dev-PPS7X4JM.cjs.map} +1 -1
- package/dist/netlify-TY656UYF.js +3 -0
- package/dist/{netlify-AE4LNCAI.js.map → netlify-TY656UYF.js.map} +1 -1
- package/dist/netlify-VZFM5UH3.cjs +12 -0
- package/dist/{netlify-WE42TZIT.cjs.map → netlify-VZFM5UH3.cjs.map} +1 -1
- package/dist/processors/index.cjs +37 -37
- package/dist/processors/index.d.ts +7 -7
- package/dist/processors/index.d.ts.map +1 -1
- package/dist/processors/index.js +1 -1
- package/dist/processors/runner.d.ts.map +1 -1
- package/dist/processors/step-schema.d.ts +26 -26
- package/dist/processors/step-schema.d.ts.map +1 -1
- package/dist/provider-registry-NXVD764B.js +3 -0
- package/dist/{provider-registry-6LF3NGC5.js.map → provider-registry-NXVD764B.js.map} +1 -1
- package/dist/provider-registry-ZIWSEUQE.cjs +40 -0
- package/dist/{provider-registry-73FKMXJV.cjs.map → provider-registry-ZIWSEUQE.cjs.map} +1 -1
- package/dist/provider-registry.json +176 -0
- package/dist/relevance/index.cjs +3 -3
- package/dist/relevance/index.cjs.map +1 -1
- package/dist/relevance/index.js +2 -2
- package/dist/relevance/index.js.map +1 -1
- package/dist/storage/index.cjs +38 -38
- package/dist/storage/index.js +1 -1
- package/dist/stream/aisdk/v5/execute.d.ts +4 -4
- package/dist/stream/aisdk/v5/execute.d.ts.map +1 -1
- package/dist/stream/aisdk/v5/output.d.ts +2 -2
- package/dist/stream/aisdk/v5/output.d.ts.map +1 -1
- package/dist/stream/aisdk/v5/transform.d.ts.map +1 -1
- package/dist/stream/base/output.d.ts +7 -5
- package/dist/stream/base/output.d.ts.map +1 -1
- package/dist/stream/index.cjs +12 -12
- package/dist/stream/index.js +2 -2
- package/dist/stream/types.d.ts +29 -21
- package/dist/stream/types.d.ts.map +1 -1
- package/dist/test-utils/llm-mock.cjs +4 -4
- package/dist/test-utils/llm-mock.cjs.map +1 -1
- package/dist/test-utils/llm-mock.js +1 -1
- package/dist/test-utils/llm-mock.js.map +1 -1
- package/dist/token-6GSAFR2W-LTZ7QQUP.js +61 -0
- package/dist/token-6GSAFR2W-LTZ7QQUP.js.map +1 -0
- package/dist/token-6GSAFR2W-UEEINYAN.cjs +63 -0
- package/dist/token-6GSAFR2W-UEEINYAN.cjs.map +1 -0
- package/dist/token-util-NEHG7TUY-QTFZ26EN.js +8 -0
- package/dist/token-util-NEHG7TUY-QTFZ26EN.js.map +1 -0
- package/dist/token-util-NEHG7TUY-WZL2DNCG.cjs +10 -0
- package/dist/token-util-NEHG7TUY-WZL2DNCG.cjs.map +1 -0
- package/dist/utils.cjs +22 -22
- package/dist/utils.d.ts +2 -2
- package/dist/utils.d.ts.map +1 -1
- package/dist/utils.js +1 -1
- package/dist/vector/embed.d.ts +1 -0
- package/dist/vector/embed.d.ts.map +1 -1
- package/dist/vector/index.cjs +5300 -0
- package/dist/vector/index.cjs.map +1 -1
- package/dist/vector/index.js +5279 -1
- package/dist/vector/index.js.map +1 -1
- package/dist/vector/vector.d.ts +14 -1
- package/dist/vector/vector.d.ts.map +1 -1
- package/dist/voice/composite-voice.d.ts.map +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/evented/step-executor.d.ts +4 -0
- package/dist/workflows/evented/step-executor.d.ts.map +1 -1
- package/dist/workflows/evented/workflow-event-processor/index.d.ts +15 -0
- package/dist/workflows/evented/workflow-event-processor/index.d.ts.map +1 -1
- package/dist/workflows/evented/workflow.d.ts +5 -0
- package/dist/workflows/evented/workflow.d.ts.map +1 -1
- package/dist/workflows/index.cjs +23 -23
- package/dist/workflows/index.js +1 -1
- package/dist/workflows/workflow.d.ts +4 -1
- package/dist/workflows/workflow.d.ts.map +1 -1
- package/package.json +10 -12
- package/src/llm/model/provider-types.generated.d.ts +84 -0
- package/dist/chunk-4BC5FUAO.js.map +0 -1
- package/dist/chunk-5VZGJTPR.js.map +0 -1
- package/dist/chunk-62Q7K656.js.map +0 -1
- package/dist/chunk-AGHLXC4I.cjs.map +0 -1
- package/dist/chunk-ARAQIW6E.js.map +0 -1
- package/dist/chunk-BQDZIQ3G.js.map +0 -1
- package/dist/chunk-E5BQRAJK.js.map +0 -1
- package/dist/chunk-GIWC35YQ.js.map +0 -1
- package/dist/chunk-H4VUIOWU.cjs.map +0 -1
- package/dist/chunk-IXZ2T2QX.cjs +0 -448
- package/dist/chunk-IXZ2T2QX.cjs.map +0 -1
- package/dist/chunk-MRRFTNF4.js.map +0 -1
- package/dist/chunk-MXBVP7HX.cjs.map +0 -1
- package/dist/chunk-OWIEOL55.cjs.map +0 -1
- package/dist/chunk-PJAK4U6R.cjs.map +0 -1
- package/dist/chunk-R5AJGM55.cjs.map +0 -1
- package/dist/chunk-SZYSDJTN.cjs.map +0 -1
- package/dist/chunk-U4CSOY6T.cjs.map +0 -1
- package/dist/chunk-UBSPZTQX.js +0 -434
- package/dist/chunk-UBSPZTQX.js.map +0 -1
- package/dist/chunk-WYGUWVTF.js.map +0 -1
- package/dist/chunk-WYWRMIQC.js.map +0 -1
- package/dist/chunk-X6IBA7FP.cjs.map +0 -1
- package/dist/chunk-Y7MZ5LJT.cjs.map +0 -1
- package/dist/llm/model/is-v2-model.d.ts +0 -3
- package/dist/llm/model/is-v2-model.d.ts.map +0 -1
- package/dist/models-dev-D3EKFGAO.cjs +0 -12
- package/dist/models-dev-EO22XOXQ.js +0 -3
- package/dist/netlify-AE4LNCAI.js +0 -3
- package/dist/netlify-WE42TZIT.cjs +0 -12
- package/dist/provider-registry-6LF3NGC5.js +0 -3
- package/dist/provider-registry-73FKMXJV.cjs +0 -40
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
import { __require } from './chunk-7D4SUZUM.js';
|
|
2
|
+
|
|
3
|
+
// ../_vendored/ai_v6/dist/chunk-7D4SUZUM.js
|
|
4
|
+
var __create = Object.create;
|
|
5
|
+
var __defProp = Object.defineProperty;
|
|
6
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
7
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
8
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
9
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
10
|
+
var __require2 = /* @__PURE__ */ ((x) => typeof __require !== "undefined" ? __require : typeof Proxy !== "undefined" ? new Proxy(x, {
|
|
11
|
+
get: (a, b) => (typeof __require !== "undefined" ? __require : a)[b]
|
|
12
|
+
}) : x)(function(x) {
|
|
13
|
+
if (typeof __require !== "undefined") return __require.apply(this, arguments);
|
|
14
|
+
throw Error('Dynamic require of "' + x + '" is not supported');
|
|
15
|
+
});
|
|
16
|
+
var __commonJS = (cb, mod) => function __require22() {
|
|
17
|
+
return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
|
|
18
|
+
};
|
|
19
|
+
var __copyProps = (to, from, except, desc) => {
|
|
20
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
21
|
+
for (let key of __getOwnPropNames(from))
|
|
22
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
23
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
24
|
+
}
|
|
25
|
+
return to;
|
|
26
|
+
};
|
|
27
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
28
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
29
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
30
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
31
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
32
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
33
|
+
mod
|
|
34
|
+
));
|
|
35
|
+
|
|
36
|
+
// ../_vendored/ai_v6/dist/chunk-TLQKI65U.js
|
|
37
|
+
var require_token_error = __commonJS({
|
|
38
|
+
"../../../node_modules/.pnpm/@vercel+oidc@3.0.5/node_modules/@vercel/oidc/dist/token-error.js"(exports, module) {
|
|
39
|
+
var __defProp2 = Object.defineProperty;
|
|
40
|
+
var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor;
|
|
41
|
+
var __getOwnPropNames2 = Object.getOwnPropertyNames;
|
|
42
|
+
var __hasOwnProp2 = Object.prototype.hasOwnProperty;
|
|
43
|
+
var __export = (target, all) => {
|
|
44
|
+
for (var name in all)
|
|
45
|
+
__defProp2(target, name, { get: all[name], enumerable: true });
|
|
46
|
+
};
|
|
47
|
+
var __copyProps2 = (to, from, except, desc) => {
|
|
48
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
49
|
+
for (let key of __getOwnPropNames2(from))
|
|
50
|
+
if (!__hasOwnProp2.call(to, key) && key !== except)
|
|
51
|
+
__defProp2(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc2(from, key)) || desc.enumerable });
|
|
52
|
+
}
|
|
53
|
+
return to;
|
|
54
|
+
};
|
|
55
|
+
var __toCommonJS = (mod) => __copyProps2(__defProp2({}, "__esModule", { value: true }), mod);
|
|
56
|
+
var token_error_exports = {};
|
|
57
|
+
__export(token_error_exports, {
|
|
58
|
+
VercelOidcTokenError: () => VercelOidcTokenError
|
|
59
|
+
});
|
|
60
|
+
module.exports = __toCommonJS(token_error_exports);
|
|
61
|
+
var VercelOidcTokenError = class extends Error {
|
|
62
|
+
constructor(message, cause) {
|
|
63
|
+
super(message);
|
|
64
|
+
this.name = "VercelOidcTokenError";
|
|
65
|
+
this.cause = cause;
|
|
66
|
+
}
|
|
67
|
+
toString() {
|
|
68
|
+
if (this.cause) {
|
|
69
|
+
return `${this.name}: ${this.message}: ${this.cause}`;
|
|
70
|
+
}
|
|
71
|
+
return `${this.name}: ${this.message}`;
|
|
72
|
+
}
|
|
73
|
+
};
|
|
74
|
+
}
|
|
75
|
+
});
|
|
76
|
+
|
|
77
|
+
export { __commonJS, __require2 as __require, __toESM, require_token_error };
|
|
78
|
+
//# sourceMappingURL=chunk-2AU5ZHBL.js.map
|
|
79
|
+
//# sourceMappingURL=chunk-2AU5ZHBL.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../_vendored/ai_v6/dist/chunk-7D4SUZUM.js","../../../node_modules/.pnpm/@vercel+oidc@3.0.5/node_modules/@vercel/oidc/dist/token-error.js"],"names":["__require","__require2","__defProp","__getOwnPropDesc","__getOwnPropNames","__hasOwnProp","__copyProps"],"mappings":";;;AAAA,IAAI,WAAW,MAAA,CAAO,MAAA;AACtB,IAAI,YAAY,MAAA,CAAO,cAAA;AACvB,IAAI,mBAA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,KAAK,OAAO,CAAA,CAAA;AACtC,MAAA;AAAA,KAAA;AACF,EAAA;AAAA,CAAA","file":"chunk-2AU5ZHBL.js","sourcesContent":["var __create = Object.create;\nvar __defProp = Object.defineProperty;\nvar __getOwnPropDesc = Object.getOwnPropertyDescriptor;\nvar __getOwnPropNames = Object.getOwnPropertyNames;\nvar __getProtoOf = Object.getPrototypeOf;\nvar __hasOwnProp = Object.prototype.hasOwnProperty;\nvar __require = /* @__PURE__ */ ((x) => typeof require !== \"undefined\" ? require : typeof Proxy !== \"undefined\" ? new Proxy(x, {\n get: (a, b) => (typeof require !== \"undefined\" ? require : a)[b]\n}) : x)(function(x) {\n if (typeof require !== \"undefined\") return require.apply(this, arguments);\n throw Error('Dynamic require of \"' + x + '\" is not supported');\n});\nvar __commonJS = (cb, mod) => function __require2() {\n return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;\n};\nvar __copyProps = (to, from, except, desc) => {\n if (from && typeof from === \"object\" || typeof from === \"function\") {\n for (let key of __getOwnPropNames(from))\n if (!__hasOwnProp.call(to, key) && key !== except)\n __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });\n }\n return to;\n};\nvar __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(\n // If the importer is in node compatibility mode or this is not an ESM\n // file that has been converted to a CommonJS file using a Babel-\n // compatible transform (i.e. \"__esModule\" has not been set), then set\n // \"default\" to the CommonJS \"module.exports\" for node compatibility.\n isNodeMode || !mod || !mod.__esModule ? __defProp(target, \"default\", { value: mod, enumerable: true }) : target,\n mod\n));\n\nexport { __commonJS, __require, __toESM };\n//# sourceMappingURL=chunk-7D4SUZUM.js.map\n//# sourceMappingURL=chunk-7D4SUZUM.js.map","\"use strict\";\nvar __defProp = Object.defineProperty;\nvar __getOwnPropDesc = Object.getOwnPropertyDescriptor;\nvar __getOwnPropNames = Object.getOwnPropertyNames;\nvar __hasOwnProp = Object.prototype.hasOwnProperty;\nvar __export = (target, all) => {\n for (var name in all)\n __defProp(target, name, { get: all[name], enumerable: true });\n};\nvar __copyProps = (to, from, except, desc) => {\n if (from && typeof from === \"object\" || typeof from === \"function\") {\n for (let key of __getOwnPropNames(from))\n if (!__hasOwnProp.call(to, key) && key !== except)\n __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });\n }\n return to;\n};\nvar __toCommonJS = (mod) => __copyProps(__defProp({}, \"__esModule\", { value: true }), mod);\nvar token_error_exports = {};\n__export(token_error_exports, {\n VercelOidcTokenError: () => VercelOidcTokenError\n});\nmodule.exports = __toCommonJS(token_error_exports);\nclass VercelOidcTokenError extends Error {\n constructor(message, cause) {\n super(message);\n this.name = \"VercelOidcTokenError\";\n this.cause = cause;\n }\n toString() {\n if (this.cause) {\n return `${this.name}: ${this.message}: ${this.cause}`;\n }\n return `${this.name}: ${this.message}`;\n }\n}\n// Annotate the CommonJS export names for ESM import in node:\n0 && (module.exports = {\n VercelOidcTokenError\n});\n"]}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { validateStepInput, createDeprecationProxy, EventEmitterPubSub, getStepResult, validateStepSuspendData, runCountDeprecationMessage, createTimeTravelExecutionParams, validateStepResumeData, Workflow, Run, ExecutionEngine, hydrateSerializedStepErrors } from './chunk-
|
|
1
|
+
import { validateStepInput, createDeprecationProxy, EventEmitterPubSub, getStepResult, validateStepSuspendData, runCountDeprecationMessage, createTimeTravelExecutionParams, validateStepResumeData, Workflow, Run, ExecutionEngine, hydrateSerializedStepErrors } from './chunk-QF4MHFSU.js';
|
|
2
2
|
import { STREAM_FORMAT_SYMBOL, PUBSUB_SYMBOL } from './chunk-6PMMP3FR.js';
|
|
3
|
+
import { getErrorFromUnknown, MastraError } from './chunk-YPLZDWG7.js';
|
|
3
4
|
import { Tool } from './chunk-373OC54J.js';
|
|
4
5
|
import { RequestContext } from './chunk-6TBWJV35.js';
|
|
5
|
-
import { getErrorFromUnknown, MastraError } from './chunk-YPLZDWG7.js';
|
|
6
6
|
import { MastraBase } from './chunk-LSHPJWM5.js';
|
|
7
7
|
import { RegisteredLogger } from './chunk-NRUZYMHE.js';
|
|
8
8
|
import EventEmitter from 'events';
|
|
@@ -20,7 +20,7 @@ var StepExecutor = class extends MastraBase {
|
|
|
20
20
|
}
|
|
21
21
|
async execute(params) {
|
|
22
22
|
const { step, stepResults, runId, requestContext, retryCount = 0 } = params;
|
|
23
|
-
const abortController = new AbortController();
|
|
23
|
+
const abortController = params.abortController ?? new AbortController();
|
|
24
24
|
let suspended;
|
|
25
25
|
let bailed;
|
|
26
26
|
const startedAt = Date.now();
|
|
@@ -144,7 +144,7 @@ var StepExecutor = class extends MastraBase {
|
|
|
144
144
|
}
|
|
145
145
|
async evaluateConditions(params) {
|
|
146
146
|
const { step, stepResults, runId, requestContext, retryCount = 0 } = params;
|
|
147
|
-
const abortController = new AbortController();
|
|
147
|
+
const abortController = params.abortController ?? new AbortController();
|
|
148
148
|
const ee = new EventEmitter();
|
|
149
149
|
const results = await Promise.all(
|
|
150
150
|
step.conditions.map((condition) => {
|
|
@@ -231,7 +231,7 @@ var StepExecutor = class extends MastraBase {
|
|
|
231
231
|
}
|
|
232
232
|
async resolveSleep(params) {
|
|
233
233
|
const { step, stepResults, runId, requestContext, retryCount = 0 } = params;
|
|
234
|
-
const abortController = new AbortController();
|
|
234
|
+
const abortController = params.abortController ?? new AbortController();
|
|
235
235
|
const ee = new EventEmitter();
|
|
236
236
|
if (step.duration) {
|
|
237
237
|
return step.duration;
|
|
@@ -289,7 +289,7 @@ var StepExecutor = class extends MastraBase {
|
|
|
289
289
|
}
|
|
290
290
|
async resolveSleepUntil(params) {
|
|
291
291
|
const { step, stepResults, runId, requestContext, retryCount = 0 } = params;
|
|
292
|
-
const abortController = new AbortController();
|
|
292
|
+
const abortController = params.abortController ?? new AbortController();
|
|
293
293
|
const ee = new EventEmitter();
|
|
294
294
|
if (step.date) {
|
|
295
295
|
return step.date.getTime() - Date.now();
|
|
@@ -921,10 +921,52 @@ async function processWorkflowSleepUntil({
|
|
|
921
921
|
// src/workflows/evented/workflow-event-processor/index.ts
|
|
922
922
|
var WorkflowEventProcessor = class extends EventProcessor {
|
|
923
923
|
stepExecutor;
|
|
924
|
+
// Map of runId -> AbortController for active workflow runs
|
|
925
|
+
abortControllers = /* @__PURE__ */ new Map();
|
|
926
|
+
// Map of child runId -> parent runId for tracking nested workflows
|
|
927
|
+
parentChildRelationships = /* @__PURE__ */ new Map();
|
|
924
928
|
constructor({ mastra }) {
|
|
925
929
|
super({ mastra });
|
|
926
930
|
this.stepExecutor = new StepExecutor({ mastra });
|
|
927
931
|
}
|
|
932
|
+
/**
|
|
933
|
+
* Get or create an AbortController for a workflow run
|
|
934
|
+
*/
|
|
935
|
+
getOrCreateAbortController(runId) {
|
|
936
|
+
let controller = this.abortControllers.get(runId);
|
|
937
|
+
if (!controller) {
|
|
938
|
+
controller = new AbortController();
|
|
939
|
+
this.abortControllers.set(runId, controller);
|
|
940
|
+
}
|
|
941
|
+
return controller;
|
|
942
|
+
}
|
|
943
|
+
/**
|
|
944
|
+
* Cancel a workflow run and all its nested child workflows
|
|
945
|
+
*/
|
|
946
|
+
cancelRunAndChildren(runId) {
|
|
947
|
+
const controller = this.abortControllers.get(runId);
|
|
948
|
+
if (controller) {
|
|
949
|
+
controller.abort();
|
|
950
|
+
}
|
|
951
|
+
for (const [childRunId, parentRunId] of this.parentChildRelationships.entries()) {
|
|
952
|
+
if (parentRunId === runId) {
|
|
953
|
+
this.cancelRunAndChildren(childRunId);
|
|
954
|
+
}
|
|
955
|
+
}
|
|
956
|
+
}
|
|
957
|
+
/**
|
|
958
|
+
* Clean up abort controller and relationships when a workflow completes.
|
|
959
|
+
* Also cleans up any orphaned child entries that reference this run as parent.
|
|
960
|
+
*/
|
|
961
|
+
cleanupRun(runId) {
|
|
962
|
+
this.abortControllers.delete(runId);
|
|
963
|
+
this.parentChildRelationships.delete(runId);
|
|
964
|
+
for (const [childRunId, parentRunId] of this.parentChildRelationships.entries()) {
|
|
965
|
+
if (parentRunId === runId) {
|
|
966
|
+
this.parentChildRelationships.delete(childRunId);
|
|
967
|
+
}
|
|
968
|
+
}
|
|
969
|
+
}
|
|
928
970
|
__registerMastra(mastra) {
|
|
929
971
|
super.__registerMastra(mastra);
|
|
930
972
|
this.stepExecutor.__registerMastra(mastra);
|
|
@@ -956,6 +998,7 @@ var WorkflowEventProcessor = class extends EventProcessor {
|
|
|
956
998
|
});
|
|
957
999
|
}
|
|
958
1000
|
async processWorkflowCancel({ workflowId, runId }) {
|
|
1001
|
+
this.cancelRunAndChildren(runId);
|
|
959
1002
|
const storage = this.mastra.getStorage();
|
|
960
1003
|
const currentState = await storage?.loadWorkflowSnapshot({
|
|
961
1004
|
workflowName: workflowId,
|
|
@@ -991,6 +1034,10 @@ var WorkflowEventProcessor = class extends EventProcessor {
|
|
|
991
1034
|
stepResults,
|
|
992
1035
|
requestContext
|
|
993
1036
|
}) {
|
|
1037
|
+
this.getOrCreateAbortController(runId);
|
|
1038
|
+
if (parentWorkflow?.runId) {
|
|
1039
|
+
this.parentChildRelationships.set(runId, parentWorkflow.runId);
|
|
1040
|
+
}
|
|
994
1041
|
const existingRun = await this.mastra.getStorage()?.getWorkflowRunById({ runId, workflowName: workflow.id });
|
|
995
1042
|
const resourceId = existingRun?.resourceId;
|
|
996
1043
|
await this.mastra.getStorage()?.persistWorkflowSnapshot({
|
|
@@ -1061,6 +1108,7 @@ var WorkflowEventProcessor = class extends EventProcessor {
|
|
|
1061
1108
|
}
|
|
1062
1109
|
async processWorkflowEnd(args) {
|
|
1063
1110
|
const { resumeSteps, prevResult, resumeData, parentWorkflow, activeSteps, requestContext, runId, timeTravel } = args;
|
|
1111
|
+
this.cleanupRun(runId);
|
|
1064
1112
|
if (parentWorkflow) {
|
|
1065
1113
|
await this.mastra.pubsub.publish("workflows", {
|
|
1066
1114
|
type: "workflow.step.end",
|
|
@@ -1136,6 +1184,7 @@ var WorkflowEventProcessor = class extends EventProcessor {
|
|
|
1136
1184
|
requestContext,
|
|
1137
1185
|
timeTravel
|
|
1138
1186
|
} = args;
|
|
1187
|
+
this.cleanupRun(runId);
|
|
1139
1188
|
await this.mastra.getStorage()?.updateWorkflowState({
|
|
1140
1189
|
workflowName: workflowId,
|
|
1141
1190
|
runId,
|
|
@@ -1529,6 +1578,7 @@ var WorkflowEventProcessor = class extends EventProcessor {
|
|
|
1529
1578
|
} else if (resumeSteps?.length > 0 && resumeSteps?.[0] === step.step.id) {
|
|
1530
1579
|
resumeDataToUse = resumeData;
|
|
1531
1580
|
}
|
|
1581
|
+
const abortController = this.getOrCreateAbortController(runId);
|
|
1532
1582
|
const stepResult = await this.stepExecutor.execute({
|
|
1533
1583
|
workflowId,
|
|
1534
1584
|
step: step.step,
|
|
@@ -1542,7 +1592,8 @@ var WorkflowEventProcessor = class extends EventProcessor {
|
|
|
1542
1592
|
resumeData: resumeDataToUse,
|
|
1543
1593
|
retryCount,
|
|
1544
1594
|
foreachIdx: step.type === "foreach" ? executionPath[1] : void 0,
|
|
1545
|
-
validateInputs: workflow.options.validateInputs
|
|
1595
|
+
validateInputs: workflow.options.validateInputs,
|
|
1596
|
+
abortController
|
|
1546
1597
|
});
|
|
1547
1598
|
requestContext = Object.fromEntries(rc.entries());
|
|
1548
1599
|
if (stepResult.status === "bailed") {
|
|
@@ -2229,7 +2280,9 @@ var EventedWorkflow = class extends Workflow {
|
|
|
2229
2280
|
workflowStatus: run.workflowRunStatus,
|
|
2230
2281
|
stepResults: {}
|
|
2231
2282
|
});
|
|
2232
|
-
const workflowSnapshotInStorage = await this.getWorkflowRunExecutionResult(runIdToUse,
|
|
2283
|
+
const workflowSnapshotInStorage = await this.getWorkflowRunExecutionResult(runIdToUse, {
|
|
2284
|
+
withNestedWorkflows: false
|
|
2285
|
+
});
|
|
2233
2286
|
if (!workflowSnapshotInStorage && shouldPersistSnapshot) {
|
|
2234
2287
|
await this.mastra?.getStorage()?.persistWorkflowSnapshot({
|
|
2235
2288
|
workflowName: this.id,
|
|
@@ -2261,6 +2314,25 @@ var EventedRun = class extends Run {
|
|
|
2261
2314
|
super(params);
|
|
2262
2315
|
this.serializedStepGraph = params.serializedStepGraph;
|
|
2263
2316
|
}
|
|
2317
|
+
/**
|
|
2318
|
+
* Set up abort signal handler to publish workflow.cancel event when abortController.abort() is called.
|
|
2319
|
+
* This ensures consistent cancellation behavior whether abort() is called directly or via cancel().
|
|
2320
|
+
*/
|
|
2321
|
+
setupAbortHandler() {
|
|
2322
|
+
const abortHandler = () => {
|
|
2323
|
+
this.mastra?.pubsub.publish("workflows", {
|
|
2324
|
+
type: "workflow.cancel",
|
|
2325
|
+
runId: this.runId,
|
|
2326
|
+
data: {
|
|
2327
|
+
workflowId: this.workflowId,
|
|
2328
|
+
runId: this.runId
|
|
2329
|
+
}
|
|
2330
|
+
}).catch((err) => {
|
|
2331
|
+
console.error(`Failed to publish workflow.cancel for runId ${this.runId}:`, err);
|
|
2332
|
+
});
|
|
2333
|
+
};
|
|
2334
|
+
this.abortController.signal.addEventListener("abort", abortHandler, { once: true });
|
|
2335
|
+
}
|
|
2264
2336
|
async start({
|
|
2265
2337
|
inputData,
|
|
2266
2338
|
initialState,
|
|
@@ -2299,6 +2371,7 @@ var EventedRun = class extends Run {
|
|
|
2299
2371
|
if (!this.mastra?.pubsub) {
|
|
2300
2372
|
throw new Error("Mastra instance with pubsub is required for workflow execution");
|
|
2301
2373
|
}
|
|
2374
|
+
this.setupAbortHandler();
|
|
2302
2375
|
const result = await this.executionEngine.execute({
|
|
2303
2376
|
workflowId: this.workflowId,
|
|
2304
2377
|
runId: this.runId,
|
|
@@ -2414,6 +2487,7 @@ var EventedRun = class extends Run {
|
|
|
2414
2487
|
if (!this.mastra?.pubsub) {
|
|
2415
2488
|
throw new Error("Mastra instance with pubsub is required for workflow execution");
|
|
2416
2489
|
}
|
|
2490
|
+
this.setupAbortHandler();
|
|
2417
2491
|
const executionResultPromise = this.executionEngine.execute({
|
|
2418
2492
|
workflowId: this.workflowId,
|
|
2419
2493
|
runId: this.runId,
|
|
@@ -2477,14 +2551,7 @@ var EventedRun = class extends Run {
|
|
|
2477
2551
|
status: "canceled"
|
|
2478
2552
|
}
|
|
2479
2553
|
});
|
|
2480
|
-
|
|
2481
|
-
type: "workflow.cancel",
|
|
2482
|
-
runId: this.runId,
|
|
2483
|
-
data: {
|
|
2484
|
-
workflowId: this.workflowId,
|
|
2485
|
-
runId: this.runId
|
|
2486
|
-
}
|
|
2487
|
-
});
|
|
2554
|
+
this.abortController.abort();
|
|
2488
2555
|
}
|
|
2489
2556
|
};
|
|
2490
2557
|
|
|
@@ -2667,5 +2734,5 @@ var EventedExecutionEngine = class extends ExecutionEngine {
|
|
|
2667
2734
|
};
|
|
2668
2735
|
|
|
2669
2736
|
export { EventedExecutionEngine, EventedRun, EventedWorkflow, StepExecutor, WorkflowEventProcessor, cloneStep, cloneWorkflow, createStep, createWorkflow };
|
|
2670
|
-
//# sourceMappingURL=chunk-
|
|
2671
|
-
//# sourceMappingURL=chunk-
|
|
2737
|
+
//# sourceMappingURL=chunk-3IP3DZ7G.js.map
|
|
2738
|
+
//# sourceMappingURL=chunk-3IP3DZ7G.js.map
|