@mastra/core 0.9.4 → 0.10.0-alpha.1
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/README.md +3 -2
- package/dist/agent/index.cjs +2 -2
- package/dist/agent/index.d.cts +13 -14
- package/dist/agent/index.d.ts +13 -14
- package/dist/agent/index.js +1 -1
- package/dist/{base-BCfssGt6.d.ts → base-DttB7sJD.d.ts} +1187 -886
- package/dist/{base-CAEcd6q2.d.cts → base-aJ3etsh5.d.cts} +1187 -886
- package/dist/{base-H7siSAfu.d.cts → base-aPYtPBT2.d.cts} +3 -3
- package/dist/{base-4Z34GQL8.d.ts → base-tc5kgDTD.d.ts} +3 -3
- package/dist/base.cjs +2 -2
- package/dist/base.d.cts +2 -3
- package/dist/base.d.ts +2 -3
- package/dist/base.js +1 -1
- package/dist/bundler/index.cjs +2 -2
- package/dist/bundler/index.d.cts +2 -3
- package/dist/bundler/index.d.ts +2 -3
- package/dist/bundler/index.js +1 -1
- package/dist/{chunk-W4BSLENO.js → chunk-2NTUAUGH.js} +1 -1
- package/dist/{chunk-S34QVMKE.js → chunk-2PW6UJMW.js} +77 -10
- package/dist/{chunk-WE36CRQV.cjs → chunk-2U7ZZUFO.cjs} +2 -2
- package/dist/{workflows/vNext/index.js → chunk-3SQ3G2EJ.js} +19 -16
- package/dist/chunk-5HULBQ2W.cjs +38 -0
- package/dist/{chunk-XRGDVLM4.cjs → chunk-5JRD3NDP.cjs} +15 -15
- package/dist/{chunk-GXKODTLA.cjs → chunk-5W2G7S44.cjs} +83 -68
- package/dist/chunk-75Z4BZEE.js +36 -0
- package/dist/{chunk-66GQROSI.cjs → chunk-AOGUTJUO.cjs} +58 -51
- package/dist/{chunk-WIKOYZ63.js → chunk-BPTSLJHA.js} +9 -9
- package/dist/{chunk-JBJ7KXN5.js → chunk-C3ICEF6E.js} +1 -1
- package/dist/{chunk-E4FAXBUV.cjs → chunk-CWSFP2HS.cjs} +2 -2
- package/dist/{chunk-FW5RS6WV.js → chunk-E7CLY6SK.js} +42 -35
- package/dist/{chunk-235X76GC.js → chunk-FI7R232B.js} +2 -2
- package/dist/chunk-GQ2XQ4UN.js +321 -0
- package/dist/{chunk-H4CEZSRM.js → chunk-J7GDGV6F.js} +1 -1
- package/dist/{chunk-NLBJOFNG.js → chunk-JW5TMK2L.js} +1 -1
- package/dist/{chunk-NOPY74PV.js → chunk-KJQFFEEQ.js} +1 -1
- package/dist/{chunk-V2Q2FEVO.cjs → chunk-KSPHQSZX.cjs} +2 -2
- package/dist/{chunk-NZV4OA6P.js → chunk-LHRZV5VG.js} +2 -23
- package/dist/chunk-NMDM4IZN.cjs +78 -0
- package/dist/chunk-OBEALYTK.js +74 -0
- package/dist/{chunk-PEK4TY3P.js → chunk-OCT2762Q.js} +1 -1
- package/dist/{chunk-5DUFC7TV.cjs → chunk-P7BGXOQV.cjs} +2 -2
- package/dist/{chunk-WQKOM7XM.cjs → chunk-PIZM25KI.cjs} +3 -24
- package/dist/{chunk-S7J63JOG.cjs → chunk-RVS6OUJN.cjs} +2 -2
- package/dist/{chunk-5JUWUTPJ.cjs → chunk-SKG2NIZW.cjs} +2 -2
- package/dist/chunk-SWW4EBUZ.cjs +96 -0
- package/dist/{chunk-RGE4UF6A.cjs → chunk-TMPFLJLG.cjs} +2 -2
- package/dist/{workflows/vNext/index.cjs → chunk-TTKQ37ZZ.cjs} +24 -21
- package/dist/{chunk-EJITEVAB.cjs → chunk-U3L3NEOM.cjs} +81 -10
- package/dist/chunk-VHLL4AZK.js +90 -0
- package/dist/{chunk-EG74VBSP.cjs → chunk-YEULQPUY.cjs} +6 -6
- package/dist/{chunk-SOLXHDNQ.js → chunk-ZB3LEHL2.js} +81 -66
- package/dist/{chunk-TAFOICHR.js → chunk-ZKN6HYYQ.js} +1 -1
- package/dist/chunk-ZZDAC5KD.cjs +325 -0
- package/dist/deployer/index.cjs +2 -2
- package/dist/deployer/index.d.cts +2 -3
- package/dist/deployer/index.d.ts +2 -3
- package/dist/deployer/index.js +1 -1
- package/dist/eval/index.d.cts +13 -14
- package/dist/eval/index.d.ts +13 -14
- package/dist/hooks/index.d.cts +1 -1
- package/dist/hooks/index.d.ts +1 -1
- package/dist/index.cjs +88 -159
- package/dist/index.d.cts +17 -25
- package/dist/index.d.ts +17 -25
- package/dist/index.js +18 -25
- package/dist/integration/index.cjs +3 -3
- package/dist/integration/index.d.cts +12 -13
- package/dist/integration/index.d.ts +12 -13
- package/dist/integration/index.js +1 -1
- package/dist/llm/index.d.cts +13 -14
- package/dist/llm/index.d.ts +13 -14
- package/dist/logger/index.cjs +18 -17
- package/dist/logger/index.d.cts +42 -2
- package/dist/logger/index.d.ts +42 -2
- package/dist/logger/index.js +2 -1
- package/dist/{index-QV27jkxQ.d.ts → logger-EhZkzZOr.d.cts} +38 -52
- package/dist/{index-QV27jkxQ.d.cts → logger-EhZkzZOr.d.ts} +38 -52
- package/dist/mastra/index.cjs +2 -2
- package/dist/mastra/index.d.cts +11 -12
- package/dist/mastra/index.d.ts +11 -12
- package/dist/mastra/index.js +1 -1
- package/dist/mcp/index.cjs +75 -17
- package/dist/mcp/index.d.cts +14 -15
- package/dist/mcp/index.d.ts +14 -15
- package/dist/mcp/index.js +69 -15
- package/dist/memory/index.cjs +4 -4
- package/dist/memory/index.d.cts +12 -13
- package/dist/memory/index.d.ts +12 -13
- package/dist/memory/index.js +1 -1
- package/dist/network/index.cjs +8 -8
- package/dist/network/index.d.cts +12 -13
- package/dist/network/index.d.ts +12 -13
- package/dist/network/index.js +5 -5
- package/dist/relevance/index.cjs +4 -4
- package/dist/relevance/index.d.cts +15 -16
- package/dist/relevance/index.d.ts +15 -16
- package/dist/relevance/index.js +1 -1
- package/dist/server/index.cjs +4 -0
- package/dist/server/index.d.cts +13 -12
- package/dist/server/index.d.ts +13 -12
- package/dist/server/index.js +4 -1
- package/dist/storage/index.cjs +184 -3
- package/dist/storage/index.d.cts +83 -13
- package/dist/storage/index.d.ts +83 -13
- package/dist/storage/index.js +186 -1
- package/dist/telemetry/index.d.cts +14 -15
- package/dist/telemetry/index.d.ts +14 -15
- package/dist/telemetry/otel-vendor.cjs +2 -2
- package/dist/telemetry/otel-vendor.d.cts +1 -1
- package/dist/telemetry/otel-vendor.d.ts +1 -1
- package/dist/telemetry/otel-vendor.js +1 -1
- package/dist/tools/index.cjs +4 -4
- package/dist/tools/index.d.cts +12 -13
- package/dist/tools/index.d.ts +12 -13
- package/dist/tools/index.js +1 -1
- package/dist/tts/index.cjs +2 -2
- package/dist/tts/index.d.cts +2 -3
- package/dist/tts/index.d.ts +2 -3
- package/dist/tts/index.js +1 -1
- package/dist/{types-BtMyV38I.d.ts → types-Bo1uigWx.d.cts} +1 -1
- package/dist/{types-BtMyV38I.d.cts → types-Bo1uigWx.d.ts} +1 -1
- package/dist/utils.cjs +28 -12
- package/dist/utils.d.cts +59 -16
- package/dist/utils.d.ts +59 -16
- package/dist/utils.js +1 -1
- package/dist/vector/filter/index.cjs +189 -7
- package/dist/vector/filter/index.js +190 -1
- package/dist/vector/index.cjs +2 -2
- package/dist/vector/index.d.cts +28 -20
- package/dist/vector/index.d.ts +28 -20
- package/dist/vector/index.js +1 -1
- package/dist/voice/index.cjs +4 -4
- package/dist/voice/index.d.cts +12 -13
- package/dist/voice/index.d.ts +12 -13
- package/dist/voice/index.js +1 -1
- package/dist/workflows/index.cjs +17 -69
- package/dist/workflows/index.d.cts +197 -77
- package/dist/workflows/index.d.ts +197 -77
- package/dist/workflows/index.js +1 -1
- package/dist/workflows/legacy/index.cjs +90 -0
- package/dist/workflows/legacy/index.d.cts +87 -0
- package/dist/workflows/legacy/index.d.ts +87 -0
- package/dist/workflows/legacy/index.js +1 -0
- package/package.json +19 -40
- package/workflows/legacy.d.ts +1 -0
- package/dist/chunk-4WABQORE.js +0 -781
- package/dist/chunk-CIEPFV6B.js +0 -658
- package/dist/chunk-CMPPXW4U.js +0 -154
- package/dist/chunk-CTKNWYK2.js +0 -131
- package/dist/chunk-LGERQTJM.js +0 -190
- package/dist/chunk-O44MSFMZ.cjs +0 -168
- package/dist/chunk-QDAMIZY3.cjs +0 -783
- package/dist/chunk-QHDPLMHB.cjs +0 -667
- package/dist/chunk-RAQBTCIR.cjs +0 -134
- package/dist/chunk-YK3XJ52U.cjs +0 -192
- package/dist/storage/libsql/index.cjs +0 -581
- package/dist/storage/libsql/index.d.cts +0 -104
- package/dist/storage/libsql/index.d.ts +0 -104
- package/dist/storage/libsql/index.js +0 -578
- package/dist/vector/libsql/index.cjs +0 -14
- package/dist/vector/libsql/index.d.cts +0 -82
- package/dist/vector/libsql/index.d.ts +0 -82
- package/dist/vector/libsql/index.js +0 -1
- package/dist/workflows/vNext/index.d.cts +0 -209
- package/dist/workflows/vNext/index.d.ts +0 -209
- package/storage/libsql.d.ts +0 -1
- package/vector/libsql.d.ts +0 -1
- package/workflows/vNext.d.ts +0 -1
package/dist/index.cjs
CHANGED
|
@@ -1,24 +1,24 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
var
|
|
5
|
-
var
|
|
6
|
-
var
|
|
7
|
-
var
|
|
8
|
-
var chunkQHDPLMHB_cjs = require('./chunk-QHDPLMHB.cjs');
|
|
9
|
-
var chunkWQKOM7XM_cjs = require('./chunk-WQKOM7XM.cjs');
|
|
10
|
-
var chunk5DUFC7TV_cjs = require('./chunk-5DUFC7TV.cjs');
|
|
11
|
-
var chunk66GQROSI_cjs = require('./chunk-66GQROSI.cjs');
|
|
12
|
-
var chunkUVRGQEMD_cjs = require('./chunk-UVRGQEMD.cjs');
|
|
13
|
-
var chunkEJITEVAB_cjs = require('./chunk-EJITEVAB.cjs');
|
|
3
|
+
var chunkKSPHQSZX_cjs = require('./chunk-KSPHQSZX.cjs');
|
|
4
|
+
var chunkPIZM25KI_cjs = require('./chunk-PIZM25KI.cjs');
|
|
5
|
+
var chunkTTKQ37ZZ_cjs = require('./chunk-TTKQ37ZZ.cjs');
|
|
6
|
+
var chunk2U7ZZUFO_cjs = require('./chunk-2U7ZZUFO.cjs');
|
|
7
|
+
var chunkP7BGXOQV_cjs = require('./chunk-P7BGXOQV.cjs');
|
|
14
8
|
var chunk3C6V2FEP_cjs = require('./chunk-3C6V2FEP.cjs');
|
|
9
|
+
var chunkSKG2NIZW_cjs = require('./chunk-SKG2NIZW.cjs');
|
|
10
|
+
var chunkMUNFCOMB_cjs = require('./chunk-MUNFCOMB.cjs');
|
|
11
|
+
var chunk5W2G7S44_cjs = require('./chunk-5W2G7S44.cjs');
|
|
12
|
+
var chunkZZDAC5KD_cjs = require('./chunk-ZZDAC5KD.cjs');
|
|
13
|
+
var chunkAOGUTJUO_cjs = require('./chunk-AOGUTJUO.cjs');
|
|
15
14
|
var chunkST5RMVLG_cjs = require('./chunk-ST5RMVLG.cjs');
|
|
16
|
-
var
|
|
17
|
-
var
|
|
18
|
-
var
|
|
15
|
+
var chunkUVRGQEMD_cjs = require('./chunk-UVRGQEMD.cjs');
|
|
16
|
+
var chunkU3L3NEOM_cjs = require('./chunk-U3L3NEOM.cjs');
|
|
17
|
+
var chunkCWSFP2HS_cjs = require('./chunk-CWSFP2HS.cjs');
|
|
18
|
+
var chunkYEULQPUY_cjs = require('./chunk-YEULQPUY.cjs');
|
|
19
19
|
|
|
20
20
|
// src/agent/index.warning.ts
|
|
21
|
-
var Agent2 = class extends
|
|
21
|
+
var Agent2 = class extends chunkAOGUTJUO_cjs.Agent {
|
|
22
22
|
constructor(config) {
|
|
23
23
|
super(config);
|
|
24
24
|
this.logger.warn('Please import "Agent from "@mastra/core/agent" instead of "@mastra/core"');
|
|
@@ -26,7 +26,7 @@ var Agent2 = class extends chunk66GQROSI_cjs.Agent {
|
|
|
26
26
|
};
|
|
27
27
|
|
|
28
28
|
// src/base.warning.ts
|
|
29
|
-
var MastraBase2 = class extends
|
|
29
|
+
var MastraBase2 = class extends chunkYEULQPUY_cjs.MastraBase {
|
|
30
30
|
constructor(args) {
|
|
31
31
|
super(args);
|
|
32
32
|
this.logger.warn('Please import "MastraBase" from "@mastra/core/base" instead of "@mastra/core"');
|
|
@@ -34,7 +34,7 @@ var MastraBase2 = class extends chunkEG74VBSP_cjs.MastraBase {
|
|
|
34
34
|
};
|
|
35
35
|
|
|
36
36
|
// src/deployer/index.warning.ts
|
|
37
|
-
var MastraDeployer2 = class extends
|
|
37
|
+
var MastraDeployer2 = class extends chunkCWSFP2HS_cjs.MastraDeployer {
|
|
38
38
|
constructor(args) {
|
|
39
39
|
super(args);
|
|
40
40
|
this.logger.warn('Please import "MastraDeployer" from "@mastra/core/deployer" instead of "@mastra/core"');
|
|
@@ -42,7 +42,7 @@ var MastraDeployer2 = class extends chunkE4FAXBUV_cjs.MastraDeployer {
|
|
|
42
42
|
};
|
|
43
43
|
|
|
44
44
|
// src/storage/base.warning.ts
|
|
45
|
-
var MastraStorage2 = class extends
|
|
45
|
+
var MastraStorage2 = class extends chunkP7BGXOQV_cjs.MastraStorage {
|
|
46
46
|
constructor({ name }) {
|
|
47
47
|
super({
|
|
48
48
|
name
|
|
@@ -52,7 +52,7 @@ var MastraStorage2 = class extends chunk5DUFC7TV_cjs.MastraStorage {
|
|
|
52
52
|
};
|
|
53
53
|
|
|
54
54
|
// src/integration/integration.warning.ts
|
|
55
|
-
var Integration2 = class extends
|
|
55
|
+
var Integration2 = class extends chunkSKG2NIZW_cjs.Integration {
|
|
56
56
|
constructor() {
|
|
57
57
|
super();
|
|
58
58
|
console.warn('Please import "Integration" from "@mastra/core/integration" instead of "@mastra/core"');
|
|
@@ -60,21 +60,15 @@ var Integration2 = class extends chunk5JUWUTPJ_cjs.Integration {
|
|
|
60
60
|
};
|
|
61
61
|
|
|
62
62
|
// src/integration/openapi-toolset.warning.ts
|
|
63
|
-
var OpenAPIToolset2 = class extends
|
|
63
|
+
var OpenAPIToolset2 = class extends chunkSKG2NIZW_cjs.OpenAPIToolset {
|
|
64
64
|
constructor() {
|
|
65
65
|
super();
|
|
66
66
|
console.warn('Please import "OpenAPIToolset" from "@mastra/core/integration" instead of "@mastra/core"');
|
|
67
67
|
}
|
|
68
68
|
};
|
|
69
69
|
|
|
70
|
-
// src/logger/index.warning.ts
|
|
71
|
-
function createLogger2(options) {
|
|
72
|
-
console.warn('Please import "createLogger" from "@mastra/core/logger" instead of "@mastra/core"');
|
|
73
|
-
return chunkO44MSFMZ_cjs.createLogger(options);
|
|
74
|
-
}
|
|
75
|
-
|
|
76
70
|
// src/memory/index.warning.ts
|
|
77
|
-
var MastraMemory2 = class extends
|
|
71
|
+
var MastraMemory2 = class extends chunkZZDAC5KD_cjs.MastraMemory {
|
|
78
72
|
constructor(_arg) {
|
|
79
73
|
super({ name: `Deprecated memory` });
|
|
80
74
|
this.logger.warn('Please import "MastraMemory" from "@mastra/core/memory" instead of "@mastra/core"');
|
|
@@ -82,7 +76,7 @@ var MastraMemory2 = class extends chunkQHDPLMHB_cjs.MastraMemory {
|
|
|
82
76
|
};
|
|
83
77
|
|
|
84
78
|
// src/tools/index.warning.ts
|
|
85
|
-
var Tool2 = class extends
|
|
79
|
+
var Tool2 = class extends chunkU3L3NEOM_cjs.Tool {
|
|
86
80
|
constructor(opts) {
|
|
87
81
|
super(opts);
|
|
88
82
|
console.warn('Please import "Tool" from "@mastra/core/tools" instead of "@mastra/core"');
|
|
@@ -90,7 +84,7 @@ var Tool2 = class extends chunkEJITEVAB_cjs.Tool {
|
|
|
90
84
|
};
|
|
91
85
|
|
|
92
86
|
// src/tts/index.warning.ts
|
|
93
|
-
var MastraTTS2 = class extends
|
|
87
|
+
var MastraTTS2 = class extends chunkKSPHQSZX_cjs.MastraTTS {
|
|
94
88
|
constructor(args) {
|
|
95
89
|
super(args);
|
|
96
90
|
this.logger.warn('Please import "MastraTTS" from "@mastra/core/tts" instead of "@mastra/core"');
|
|
@@ -98,7 +92,7 @@ var MastraTTS2 = class extends chunkV2Q2FEVO_cjs.MastraTTS {
|
|
|
98
92
|
};
|
|
99
93
|
|
|
100
94
|
// src/vector/index.warning.ts
|
|
101
|
-
var MastraVector2 = class extends
|
|
95
|
+
var MastraVector2 = class extends chunkPIZM25KI_cjs.MastraVector {
|
|
102
96
|
constructor() {
|
|
103
97
|
super();
|
|
104
98
|
this.logger.warn('Please import "MastraVector" from "@mastra/core/vector" instead of "@mastra/core"');
|
|
@@ -106,120 +100,88 @@ var MastraVector2 = class extends chunkWQKOM7XM_cjs.MastraVector {
|
|
|
106
100
|
};
|
|
107
101
|
|
|
108
102
|
// src/workflows/workflow.warning.ts
|
|
109
|
-
var Workflow2 = class extends
|
|
103
|
+
var Workflow2 = class extends chunkTTKQ37ZZ_cjs.Workflow {
|
|
110
104
|
constructor(args) {
|
|
111
105
|
super(args);
|
|
112
106
|
this.logger.warn('Please import "Workflow" from "@mastra/core/workflows" instead of "@mastra/core"');
|
|
113
107
|
}
|
|
114
108
|
};
|
|
115
109
|
|
|
116
|
-
Object.defineProperty(exports, "
|
|
117
|
-
enumerable: true,
|
|
118
|
-
get: function () { return chunkWE36CRQV_cjs.CohereRelevanceScorer; }
|
|
119
|
-
});
|
|
120
|
-
Object.defineProperty(exports, "MastraAgentRelevanceScorer", {
|
|
121
|
-
enumerable: true,
|
|
122
|
-
get: function () { return chunkWE36CRQV_cjs.MastraAgentRelevanceScorer; }
|
|
123
|
-
});
|
|
124
|
-
Object.defineProperty(exports, "createSimilarityPrompt", {
|
|
125
|
-
enumerable: true,
|
|
126
|
-
get: function () { return chunkWE36CRQV_cjs.createSimilarityPrompt; }
|
|
127
|
-
});
|
|
128
|
-
Object.defineProperty(exports, "createMockModel", {
|
|
129
|
-
enumerable: true,
|
|
130
|
-
get: function () { return chunkMUNFCOMB_cjs.createMockModel; }
|
|
131
|
-
});
|
|
132
|
-
Object.defineProperty(exports, "Mastra", {
|
|
133
|
-
enumerable: true,
|
|
134
|
-
get: function () { return chunkGXKODTLA_cjs.Mastra; }
|
|
135
|
-
});
|
|
136
|
-
Object.defineProperty(exports, "MemoryProcessor", {
|
|
137
|
-
enumerable: true,
|
|
138
|
-
get: function () { return chunkQHDPLMHB_cjs.MemoryProcessor; }
|
|
139
|
-
});
|
|
140
|
-
Object.defineProperty(exports, "memoryDefaultOptions", {
|
|
141
|
-
enumerable: true,
|
|
142
|
-
get: function () { return chunkQHDPLMHB_cjs.memoryDefaultOptions; }
|
|
143
|
-
});
|
|
144
|
-
Object.defineProperty(exports, "Step", {
|
|
110
|
+
Object.defineProperty(exports, "DefaultExecutionEngine", {
|
|
145
111
|
enumerable: true,
|
|
146
|
-
get: function () { return
|
|
112
|
+
get: function () { return chunkTTKQ37ZZ_cjs.DefaultExecutionEngine; }
|
|
147
113
|
});
|
|
148
|
-
Object.defineProperty(exports, "
|
|
114
|
+
Object.defineProperty(exports, "ExecutionEngine", {
|
|
149
115
|
enumerable: true,
|
|
150
|
-
get: function () { return
|
|
116
|
+
get: function () { return chunkTTKQ37ZZ_cjs.ExecutionEngine; }
|
|
151
117
|
});
|
|
152
|
-
Object.defineProperty(exports, "
|
|
118
|
+
Object.defineProperty(exports, "Run", {
|
|
153
119
|
enumerable: true,
|
|
154
|
-
get: function () { return
|
|
120
|
+
get: function () { return chunkTTKQ37ZZ_cjs.Run; }
|
|
155
121
|
});
|
|
156
|
-
Object.defineProperty(exports, "
|
|
122
|
+
Object.defineProperty(exports, "cloneStep", {
|
|
157
123
|
enumerable: true,
|
|
158
|
-
get: function () { return
|
|
124
|
+
get: function () { return chunkTTKQ37ZZ_cjs.cloneStep; }
|
|
159
125
|
});
|
|
160
|
-
Object.defineProperty(exports, "
|
|
126
|
+
Object.defineProperty(exports, "cloneWorkflow", {
|
|
161
127
|
enumerable: true,
|
|
162
|
-
get: function () { return
|
|
128
|
+
get: function () { return chunkTTKQ37ZZ_cjs.cloneWorkflow; }
|
|
163
129
|
});
|
|
164
|
-
Object.defineProperty(exports, "
|
|
130
|
+
Object.defineProperty(exports, "createStep", {
|
|
165
131
|
enumerable: true,
|
|
166
|
-
get: function () { return
|
|
132
|
+
get: function () { return chunkTTKQ37ZZ_cjs.createStep; }
|
|
167
133
|
});
|
|
168
|
-
Object.defineProperty(exports, "
|
|
134
|
+
Object.defineProperty(exports, "createWorkflow", {
|
|
169
135
|
enumerable: true,
|
|
170
|
-
get: function () { return
|
|
136
|
+
get: function () { return chunkTTKQ37ZZ_cjs.createWorkflow; }
|
|
171
137
|
});
|
|
172
|
-
Object.defineProperty(exports, "
|
|
173
|
-
enumerable: true,
|
|
174
|
-
get: function () { return chunk66GQROSI_cjs.isAgent; }
|
|
175
|
-
});
|
|
176
|
-
Object.defineProperty(exports, "isConditionalKey", {
|
|
138
|
+
Object.defineProperty(exports, "CohereRelevanceScorer", {
|
|
177
139
|
enumerable: true,
|
|
178
|
-
get: function () { return
|
|
140
|
+
get: function () { return chunk2U7ZZUFO_cjs.CohereRelevanceScorer; }
|
|
179
141
|
});
|
|
180
|
-
Object.defineProperty(exports, "
|
|
142
|
+
Object.defineProperty(exports, "MastraAgentRelevanceScorer", {
|
|
181
143
|
enumerable: true,
|
|
182
|
-
get: function () { return
|
|
144
|
+
get: function () { return chunk2U7ZZUFO_cjs.MastraAgentRelevanceScorer; }
|
|
183
145
|
});
|
|
184
|
-
Object.defineProperty(exports, "
|
|
146
|
+
Object.defineProperty(exports, "createSimilarityPrompt", {
|
|
185
147
|
enumerable: true,
|
|
186
|
-
get: function () { return
|
|
148
|
+
get: function () { return chunk2U7ZZUFO_cjs.createSimilarityPrompt; }
|
|
187
149
|
});
|
|
188
|
-
Object.defineProperty(exports, "
|
|
150
|
+
Object.defineProperty(exports, "Metric", {
|
|
189
151
|
enumerable: true,
|
|
190
|
-
get: function () { return
|
|
152
|
+
get: function () { return chunk3C6V2FEP_cjs.Metric; }
|
|
191
153
|
});
|
|
192
|
-
Object.defineProperty(exports, "
|
|
154
|
+
Object.defineProperty(exports, "evaluate", {
|
|
193
155
|
enumerable: true,
|
|
194
|
-
get: function () { return
|
|
156
|
+
get: function () { return chunk3C6V2FEP_cjs.evaluate; }
|
|
195
157
|
});
|
|
196
|
-
Object.defineProperty(exports, "
|
|
158
|
+
Object.defineProperty(exports, "createMockModel", {
|
|
197
159
|
enumerable: true,
|
|
198
|
-
get: function () { return
|
|
160
|
+
get: function () { return chunkMUNFCOMB_cjs.createMockModel; }
|
|
199
161
|
});
|
|
200
|
-
Object.defineProperty(exports, "
|
|
162
|
+
Object.defineProperty(exports, "Mastra", {
|
|
201
163
|
enumerable: true,
|
|
202
|
-
get: function () { return
|
|
164
|
+
get: function () { return chunk5W2G7S44_cjs.Mastra; }
|
|
203
165
|
});
|
|
204
|
-
Object.defineProperty(exports, "
|
|
166
|
+
Object.defineProperty(exports, "MemoryProcessor", {
|
|
205
167
|
enumerable: true,
|
|
206
|
-
get: function () { return
|
|
168
|
+
get: function () { return chunkZZDAC5KD_cjs.MemoryProcessor; }
|
|
207
169
|
});
|
|
208
|
-
Object.defineProperty(exports, "
|
|
170
|
+
Object.defineProperty(exports, "memoryDefaultOptions", {
|
|
209
171
|
enumerable: true,
|
|
210
|
-
get: function () { return
|
|
172
|
+
get: function () { return chunkZZDAC5KD_cjs.memoryDefaultOptions; }
|
|
211
173
|
});
|
|
212
|
-
Object.defineProperty(exports, "
|
|
174
|
+
Object.defineProperty(exports, "AvailableHooks", {
|
|
213
175
|
enumerable: true,
|
|
214
|
-
get: function () { return
|
|
176
|
+
get: function () { return chunkST5RMVLG_cjs.AvailableHooks; }
|
|
215
177
|
});
|
|
216
|
-
Object.defineProperty(exports, "
|
|
178
|
+
Object.defineProperty(exports, "executeHook", {
|
|
217
179
|
enumerable: true,
|
|
218
|
-
get: function () { return
|
|
180
|
+
get: function () { return chunkST5RMVLG_cjs.executeHook; }
|
|
219
181
|
});
|
|
220
|
-
Object.defineProperty(exports, "
|
|
182
|
+
Object.defineProperty(exports, "registerHook", {
|
|
221
183
|
enumerable: true,
|
|
222
|
-
get: function () { return
|
|
184
|
+
get: function () { return chunkST5RMVLG_cjs.registerHook; }
|
|
223
185
|
});
|
|
224
186
|
Object.defineProperty(exports, "InstrumentClass", {
|
|
225
187
|
enumerable: true,
|
|
@@ -247,99 +209,67 @@ Object.defineProperty(exports, "withSpan", {
|
|
|
247
209
|
});
|
|
248
210
|
Object.defineProperty(exports, "checkEvalStorageFields", {
|
|
249
211
|
enumerable: true,
|
|
250
|
-
get: function () { return
|
|
212
|
+
get: function () { return chunkU3L3NEOM_cjs.checkEvalStorageFields; }
|
|
251
213
|
});
|
|
252
214
|
Object.defineProperty(exports, "createMastraProxy", {
|
|
253
215
|
enumerable: true,
|
|
254
|
-
get: function () { return
|
|
216
|
+
get: function () { return chunkU3L3NEOM_cjs.createMastraProxy; }
|
|
255
217
|
});
|
|
256
218
|
Object.defineProperty(exports, "createTool", {
|
|
257
219
|
enumerable: true,
|
|
258
|
-
get: function () { return
|
|
220
|
+
get: function () { return chunkU3L3NEOM_cjs.createTool; }
|
|
259
221
|
});
|
|
260
222
|
Object.defineProperty(exports, "deepMerge", {
|
|
261
223
|
enumerable: true,
|
|
262
|
-
get: function () { return
|
|
224
|
+
get: function () { return chunkU3L3NEOM_cjs.deepMerge; }
|
|
263
225
|
});
|
|
264
226
|
Object.defineProperty(exports, "delay", {
|
|
265
227
|
enumerable: true,
|
|
266
|
-
get: function () { return
|
|
228
|
+
get: function () { return chunkU3L3NEOM_cjs.delay; }
|
|
267
229
|
});
|
|
268
230
|
Object.defineProperty(exports, "ensureAllMessagesAreCoreMessages", {
|
|
269
231
|
enumerable: true,
|
|
270
|
-
get: function () { return
|
|
232
|
+
get: function () { return chunkU3L3NEOM_cjs.ensureAllMessagesAreCoreMessages; }
|
|
271
233
|
});
|
|
272
234
|
Object.defineProperty(exports, "ensureToolProperties", {
|
|
273
235
|
enumerable: true,
|
|
274
|
-
get: function () { return
|
|
236
|
+
get: function () { return chunkU3L3NEOM_cjs.ensureToolProperties; }
|
|
275
237
|
});
|
|
276
|
-
Object.defineProperty(exports, "
|
|
238
|
+
Object.defineProperty(exports, "isCoreMessage", {
|
|
277
239
|
enumerable: true,
|
|
278
|
-
get: function () { return
|
|
240
|
+
get: function () { return chunkU3L3NEOM_cjs.isCoreMessage; }
|
|
279
241
|
});
|
|
280
|
-
Object.defineProperty(exports, "
|
|
242
|
+
Object.defineProperty(exports, "isUiMessage", {
|
|
281
243
|
enumerable: true,
|
|
282
|
-
get: function () { return
|
|
244
|
+
get: function () { return chunkU3L3NEOM_cjs.isUiMessage; }
|
|
283
245
|
});
|
|
284
|
-
Object.defineProperty(exports, "
|
|
285
|
-
enumerable: true,
|
|
286
|
-
get: function () { return chunkEJITEVAB_cjs.makeCoreTool; }
|
|
287
|
-
});
|
|
288
|
-
Object.defineProperty(exports, "maskStreamTags", {
|
|
289
|
-
enumerable: true,
|
|
290
|
-
get: function () { return chunkEJITEVAB_cjs.maskStreamTags; }
|
|
291
|
-
});
|
|
292
|
-
Object.defineProperty(exports, "resolveSerializedZodOutput", {
|
|
293
|
-
enumerable: true,
|
|
294
|
-
get: function () { return chunkEJITEVAB_cjs.resolveSerializedZodOutput; }
|
|
295
|
-
});
|
|
296
|
-
Object.defineProperty(exports, "Metric", {
|
|
297
|
-
enumerable: true,
|
|
298
|
-
get: function () { return chunk3C6V2FEP_cjs.Metric; }
|
|
299
|
-
});
|
|
300
|
-
Object.defineProperty(exports, "evaluate", {
|
|
301
|
-
enumerable: true,
|
|
302
|
-
get: function () { return chunk3C6V2FEP_cjs.evaluate; }
|
|
303
|
-
});
|
|
304
|
-
Object.defineProperty(exports, "AvailableHooks", {
|
|
305
|
-
enumerable: true,
|
|
306
|
-
get: function () { return chunkST5RMVLG_cjs.AvailableHooks; }
|
|
307
|
-
});
|
|
308
|
-
Object.defineProperty(exports, "executeHook", {
|
|
309
|
-
enumerable: true,
|
|
310
|
-
get: function () { return chunkST5RMVLG_cjs.executeHook; }
|
|
311
|
-
});
|
|
312
|
-
Object.defineProperty(exports, "registerHook", {
|
|
313
|
-
enumerable: true,
|
|
314
|
-
get: function () { return chunkST5RMVLG_cjs.registerHook; }
|
|
315
|
-
});
|
|
316
|
-
Object.defineProperty(exports, "LogLevel", {
|
|
246
|
+
Object.defineProperty(exports, "isVercelTool", {
|
|
317
247
|
enumerable: true,
|
|
318
|
-
get: function () { return
|
|
248
|
+
get: function () { return chunkU3L3NEOM_cjs.isVercelTool; }
|
|
319
249
|
});
|
|
320
|
-
Object.defineProperty(exports, "
|
|
250
|
+
Object.defineProperty(exports, "isZodType", {
|
|
321
251
|
enumerable: true,
|
|
322
|
-
get: function () { return
|
|
252
|
+
get: function () { return chunkU3L3NEOM_cjs.isZodType; }
|
|
323
253
|
});
|
|
324
|
-
Object.defineProperty(exports, "
|
|
254
|
+
Object.defineProperty(exports, "makeCoreTool", {
|
|
325
255
|
enumerable: true,
|
|
326
|
-
get: function () { return
|
|
256
|
+
get: function () { return chunkU3L3NEOM_cjs.makeCoreTool; }
|
|
327
257
|
});
|
|
328
|
-
Object.defineProperty(exports, "
|
|
258
|
+
Object.defineProperty(exports, "maskStreamTags", {
|
|
329
259
|
enumerable: true,
|
|
330
|
-
get: function () { return
|
|
260
|
+
get: function () { return chunkU3L3NEOM_cjs.maskStreamTags; }
|
|
331
261
|
});
|
|
332
|
-
Object.defineProperty(exports, "
|
|
262
|
+
Object.defineProperty(exports, "parseFieldKey", {
|
|
333
263
|
enumerable: true,
|
|
334
|
-
get: function () { return
|
|
264
|
+
get: function () { return chunkU3L3NEOM_cjs.parseFieldKey; }
|
|
335
265
|
});
|
|
336
|
-
Object.defineProperty(exports, "
|
|
266
|
+
Object.defineProperty(exports, "parseSqlIdentifier", {
|
|
337
267
|
enumerable: true,
|
|
338
|
-
get: function () { return
|
|
268
|
+
get: function () { return chunkU3L3NEOM_cjs.parseSqlIdentifier; }
|
|
339
269
|
});
|
|
340
|
-
Object.defineProperty(exports, "
|
|
270
|
+
Object.defineProperty(exports, "resolveSerializedZodOutput", {
|
|
341
271
|
enumerable: true,
|
|
342
|
-
get: function () { return
|
|
272
|
+
get: function () { return chunkU3L3NEOM_cjs.resolveSerializedZodOutput; }
|
|
343
273
|
});
|
|
344
274
|
exports.Agent = Agent2;
|
|
345
275
|
exports.Integration = Integration2;
|
|
@@ -352,4 +282,3 @@ exports.MastraVector = MastraVector2;
|
|
|
352
282
|
exports.OpenAPIToolset = OpenAPIToolset2;
|
|
353
283
|
exports.Tool = Tool2;
|
|
354
284
|
exports.Workflow = Workflow2;
|
|
355
|
-
exports.createLogger = createLogger2;
|
package/dist/index.d.cts
CHANGED
|
@@ -1,11 +1,10 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export { E as EvaluationResult,
|
|
3
|
-
import {
|
|
4
|
-
export {
|
|
5
|
-
import { M as MastraBase$1 } from './base-
|
|
6
|
-
export { O as OtelConfig, S as SamplingStrategy, T as Telemetry } from './base-
|
|
7
|
-
import { R as RegisteredLogger
|
|
8
|
-
export { B as BaseLogMessage, b as LoggerTransport, M as MultiLogger, c as combineLoggers, n as noopLogger } from './index-QV27jkxQ.cjs';
|
|
1
|
+
import { M as Metric } from './types-Bo1uigWx.cjs';
|
|
2
|
+
export { E as EvaluationResult, a as MetricResult, T as TestInfo } from './types-Bo1uigWx.cjs';
|
|
3
|
+
import { a9 as ToolAction, r as Agent$1, aa as AgentConfig, c as MastraStorage$1, ab as MastraMemory$1, ac as ToolExecutionContext, ad as Tool$1, ae as Step, af as Workflow$1, ag as WorkflowConfig } from './base-aJ3etsh5.cjs';
|
|
4
|
+
export { ap as BaseStructuredOutputType, aG as Config, ak as CoreAssistantMessage, ai as CoreMessage, aj as CoreSystemMessage, aP as CoreTool, am as CoreToolMessage, al as CoreUserMessage, az as DefaultLLMStreamObjectOptions, ay as DefaultLLMStreamOptions, ax as DefaultLLMTextObjectOptions, aw as DefaultLLMTextOptions, b6 as DynamicMapping, ao as EmbedManyResult, an as EmbedResult, E as EvalRow, b0 as ExecuteFunction, a$ as ExecutionEngine, a_ as ExecutionGraph, b9 as ExtractSchemaFromStep, b8 as ExtractSchemaType, at as GenerateReturn, aQ as InternalCoreTool, aD as LLMInnerStreamOptions, aE as LLMStreamObjectOptions, aC as LLMStreamOptions, aB as LLMTextObjectOptions, aA as LLMTextOptions, ah as LanguageModel, h as LegacyWorkflowRun, L as LegacyWorkflowRuns, a as Mastra, aI as MemoryConfig, aL as MemoryProcessor, aK as MemoryProcessorOpts, aH as MessageResponse, e as MessageType, av as OutputType, b7 as PathsToStringProps, aZ as Run, aS as SerializedStep, aT as SerializedStepFlowEntry, aJ as SharedMemoryConfig, b2 as StepFailure, aR as StepFlowEntry, b4 as StepResult, b1 as StepSuccess, b3 as StepSuspended, b5 as StepsRecord, S as StorageColumn, f as StorageGetMessagesArg, d as StorageThreadType, au as StreamReturn, as as StructuredOutput, ar as StructuredOutputArrayItem, aq as StructuredOutputType, ba as VariableReference, aO as VercelTool, bb as WatchEvent, aY as WorkflowResult, g as WorkflowRun, bd as WorkflowRunState, W as WorkflowRuns, bc as ZodPathType, aV as cloneStep, aX as cloneWorkflow, aF as createMockModel, aU as createStep, aN as createTool, aW as createWorkflow, aM as memoryDefaultOptions } from './base-aJ3etsh5.cjs';
|
|
5
|
+
import { M as MastraBase$1 } from './base-aPYtPBT2.cjs';
|
|
6
|
+
export { O as OtelConfig, S as SamplingStrategy, T as Telemetry } from './base-aPYtPBT2.cjs';
|
|
7
|
+
import { R as RegisteredLogger } from './logger-EhZkzZOr.cjs';
|
|
9
8
|
import { MastraDeployer as MastraDeployer$1 } from './deployer/index.cjs';
|
|
10
9
|
export { evaluate } from './eval/index.cjs';
|
|
11
10
|
import { Integration as Integration$1, OpenAPIToolset as OpenAPIToolset$1 } from './integration/index.cjs';
|
|
@@ -13,27 +12,26 @@ export { CohereRelevanceScorer, MastraAgentRelevanceScorer, RelevanceScoreProvid
|
|
|
13
12
|
export { InstrumentClass, OTLPStorageExporter, getBaggageValues, hasActiveTelemetry, withSpan } from './telemetry/index.cjs';
|
|
14
13
|
import { z } from 'zod';
|
|
15
14
|
import { MastraTTS as MastraTTS$1, TTSConfig } from './tts/index.cjs';
|
|
16
|
-
export { TagMaskOptions, ToolOptions, checkEvalStorageFields, createMastraProxy, deepMerge, delay, ensureAllMessagesAreCoreMessages, ensureToolProperties, isVercelTool, isZodType, makeCoreTool, maskStreamTags, resolveSerializedZodOutput } from './utils.cjs';
|
|
15
|
+
export { TagMaskOptions, ToolOptions, checkEvalStorageFields, createMastraProxy, deepMerge, delay, ensureAllMessagesAreCoreMessages, ensureToolProperties, isCoreMessage, isUiMessage, isVercelTool, isZodType, makeCoreTool, maskStreamTags, parseFieldKey, parseSqlIdentifier, resolveSerializedZodOutput } from './utils.cjs';
|
|
17
16
|
import { MastraVector as MastraVector$1 } from './vector/index.cjs';
|
|
18
|
-
export {
|
|
19
|
-
export {
|
|
17
|
+
export { CreateIndexParams, DeleteIndexParams, DeleteVectorParams, DescribeIndexParams, IndexStats, QueryResult, QueryVectorParams, UpdateVectorParams, UpsertVectorParams } from './vector/index.cjs';
|
|
18
|
+
export { DefaultExecutionEngine, ExecutionContext } from './workflows/index.cjs';
|
|
20
19
|
export { AvailableHooks, executeHook, registerHook } from './hooks/index.cjs';
|
|
21
20
|
export { Message as AiMessageType } from 'ai';
|
|
22
21
|
import 'sift';
|
|
23
22
|
import 'json-schema';
|
|
23
|
+
import 'node:http';
|
|
24
|
+
import 'hono';
|
|
24
25
|
import './runtime-context/index.cjs';
|
|
26
|
+
import 'hono/cors';
|
|
27
|
+
import 'hono-openapi';
|
|
25
28
|
import '@opentelemetry/api';
|
|
26
29
|
import 'xstate';
|
|
27
30
|
import 'node:events';
|
|
28
|
-
import 'node:http';
|
|
29
|
-
import 'hono';
|
|
30
31
|
import 'events';
|
|
31
|
-
import 'hono/cors';
|
|
32
|
-
import 'hono-openapi';
|
|
33
32
|
import 'ai/test';
|
|
34
33
|
import '@opentelemetry/sdk-trace-base';
|
|
35
34
|
import 'stream';
|
|
36
|
-
import 'pino';
|
|
37
35
|
import './bundler/index.cjs';
|
|
38
36
|
import '@opentelemetry/core';
|
|
39
37
|
import './vector/filter/index.cjs';
|
|
@@ -71,12 +69,6 @@ declare abstract class OpenAPIToolset extends OpenAPIToolset$1 {
|
|
|
71
69
|
constructor();
|
|
72
70
|
}
|
|
73
71
|
|
|
74
|
-
declare function createLogger(options: {
|
|
75
|
-
name?: string;
|
|
76
|
-
level?: LogLevel;
|
|
77
|
-
transports?: TransportMap;
|
|
78
|
-
}): Logger;
|
|
79
|
-
|
|
80
72
|
declare abstract class MastraMemory extends MastraMemory$1 {
|
|
81
73
|
constructor(_arg?: any);
|
|
82
74
|
}
|
|
@@ -93,8 +85,8 @@ declare abstract class MastraVector extends MastraVector$1 {
|
|
|
93
85
|
constructor();
|
|
94
86
|
}
|
|
95
87
|
|
|
96
|
-
declare class Workflow<TSteps extends Step<any, any, any>[] = any,
|
|
97
|
-
constructor(args:
|
|
88
|
+
declare class Workflow<TSteps extends Step<string, any, any, any, any>[] = Step<string, any, any, any, any>[], TWorkflowId extends string = string, TInput extends z.ZodType<any> = z.ZodType<any>, TOutput extends z.ZodType<any> = z.ZodType<any>, TPrevSchema extends z.ZodType<any> = TInput> extends Workflow$1<TSteps, TWorkflowId, TInput, TOutput, TPrevSchema> {
|
|
89
|
+
constructor(args: WorkflowConfig<TWorkflowId, TInput, TOutput, TSteps>);
|
|
98
90
|
}
|
|
99
91
|
|
|
100
|
-
export { Agent, Integration,
|
|
92
|
+
export { Agent, Integration, MastraBase, MastraDeployer, MastraMemory, MastraStorage, MastraTTS, MastraVector, Metric, OpenAPIToolset, Step, TTSConfig, Tool, ToolAction, ToolExecutionContext, Workflow, WorkflowConfig };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,11 +1,10 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export { E as EvaluationResult,
|
|
3
|
-
import {
|
|
4
|
-
export {
|
|
5
|
-
import { M as MastraBase$1 } from './base-
|
|
6
|
-
export { O as OtelConfig, S as SamplingStrategy, T as Telemetry } from './base-
|
|
7
|
-
import { R as RegisteredLogger
|
|
8
|
-
export { B as BaseLogMessage, b as LoggerTransport, M as MultiLogger, c as combineLoggers, n as noopLogger } from './index-QV27jkxQ.js';
|
|
1
|
+
import { M as Metric } from './types-Bo1uigWx.js';
|
|
2
|
+
export { E as EvaluationResult, a as MetricResult, T as TestInfo } from './types-Bo1uigWx.js';
|
|
3
|
+
import { a9 as ToolAction, r as Agent$1, aa as AgentConfig, c as MastraStorage$1, ab as MastraMemory$1, ac as ToolExecutionContext, ad as Tool$1, ae as Step, af as Workflow$1, ag as WorkflowConfig } from './base-DttB7sJD.js';
|
|
4
|
+
export { ap as BaseStructuredOutputType, aG as Config, ak as CoreAssistantMessage, ai as CoreMessage, aj as CoreSystemMessage, aP as CoreTool, am as CoreToolMessage, al as CoreUserMessage, az as DefaultLLMStreamObjectOptions, ay as DefaultLLMStreamOptions, ax as DefaultLLMTextObjectOptions, aw as DefaultLLMTextOptions, b6 as DynamicMapping, ao as EmbedManyResult, an as EmbedResult, E as EvalRow, b0 as ExecuteFunction, a$ as ExecutionEngine, a_ as ExecutionGraph, b9 as ExtractSchemaFromStep, b8 as ExtractSchemaType, at as GenerateReturn, aQ as InternalCoreTool, aD as LLMInnerStreamOptions, aE as LLMStreamObjectOptions, aC as LLMStreamOptions, aB as LLMTextObjectOptions, aA as LLMTextOptions, ah as LanguageModel, h as LegacyWorkflowRun, L as LegacyWorkflowRuns, a as Mastra, aI as MemoryConfig, aL as MemoryProcessor, aK as MemoryProcessorOpts, aH as MessageResponse, e as MessageType, av as OutputType, b7 as PathsToStringProps, aZ as Run, aS as SerializedStep, aT as SerializedStepFlowEntry, aJ as SharedMemoryConfig, b2 as StepFailure, aR as StepFlowEntry, b4 as StepResult, b1 as StepSuccess, b3 as StepSuspended, b5 as StepsRecord, S as StorageColumn, f as StorageGetMessagesArg, d as StorageThreadType, au as StreamReturn, as as StructuredOutput, ar as StructuredOutputArrayItem, aq as StructuredOutputType, ba as VariableReference, aO as VercelTool, bb as WatchEvent, aY as WorkflowResult, g as WorkflowRun, bd as WorkflowRunState, W as WorkflowRuns, bc as ZodPathType, aV as cloneStep, aX as cloneWorkflow, aF as createMockModel, aU as createStep, aN as createTool, aW as createWorkflow, aM as memoryDefaultOptions } from './base-DttB7sJD.js';
|
|
5
|
+
import { M as MastraBase$1 } from './base-tc5kgDTD.js';
|
|
6
|
+
export { O as OtelConfig, S as SamplingStrategy, T as Telemetry } from './base-tc5kgDTD.js';
|
|
7
|
+
import { R as RegisteredLogger } from './logger-EhZkzZOr.js';
|
|
9
8
|
import { MastraDeployer as MastraDeployer$1 } from './deployer/index.js';
|
|
10
9
|
export { evaluate } from './eval/index.js';
|
|
11
10
|
import { Integration as Integration$1, OpenAPIToolset as OpenAPIToolset$1 } from './integration/index.js';
|
|
@@ -13,27 +12,26 @@ export { CohereRelevanceScorer, MastraAgentRelevanceScorer, RelevanceScoreProvid
|
|
|
13
12
|
export { InstrumentClass, OTLPStorageExporter, getBaggageValues, hasActiveTelemetry, withSpan } from './telemetry/index.js';
|
|
14
13
|
import { z } from 'zod';
|
|
15
14
|
import { MastraTTS as MastraTTS$1, TTSConfig } from './tts/index.js';
|
|
16
|
-
export { TagMaskOptions, ToolOptions, checkEvalStorageFields, createMastraProxy, deepMerge, delay, ensureAllMessagesAreCoreMessages, ensureToolProperties, isVercelTool, isZodType, makeCoreTool, maskStreamTags, resolveSerializedZodOutput } from './utils.js';
|
|
15
|
+
export { TagMaskOptions, ToolOptions, checkEvalStorageFields, createMastraProxy, deepMerge, delay, ensureAllMessagesAreCoreMessages, ensureToolProperties, isCoreMessage, isUiMessage, isVercelTool, isZodType, makeCoreTool, maskStreamTags, parseFieldKey, parseSqlIdentifier, resolveSerializedZodOutput } from './utils.js';
|
|
17
16
|
import { MastraVector as MastraVector$1 } from './vector/index.js';
|
|
18
|
-
export {
|
|
19
|
-
export {
|
|
17
|
+
export { CreateIndexParams, DeleteIndexParams, DeleteVectorParams, DescribeIndexParams, IndexStats, QueryResult, QueryVectorParams, UpdateVectorParams, UpsertVectorParams } from './vector/index.js';
|
|
18
|
+
export { DefaultExecutionEngine, ExecutionContext } from './workflows/index.js';
|
|
20
19
|
export { AvailableHooks, executeHook, registerHook } from './hooks/index.js';
|
|
21
20
|
export { Message as AiMessageType } from 'ai';
|
|
22
21
|
import 'sift';
|
|
23
22
|
import 'json-schema';
|
|
23
|
+
import 'node:http';
|
|
24
|
+
import 'hono';
|
|
24
25
|
import './runtime-context/index.js';
|
|
26
|
+
import 'hono/cors';
|
|
27
|
+
import 'hono-openapi';
|
|
25
28
|
import '@opentelemetry/api';
|
|
26
29
|
import 'xstate';
|
|
27
30
|
import 'node:events';
|
|
28
|
-
import 'node:http';
|
|
29
|
-
import 'hono';
|
|
30
31
|
import 'events';
|
|
31
|
-
import 'hono/cors';
|
|
32
|
-
import 'hono-openapi';
|
|
33
32
|
import 'ai/test';
|
|
34
33
|
import '@opentelemetry/sdk-trace-base';
|
|
35
34
|
import 'stream';
|
|
36
|
-
import 'pino';
|
|
37
35
|
import './bundler/index.js';
|
|
38
36
|
import '@opentelemetry/core';
|
|
39
37
|
import './vector/filter/index.js';
|
|
@@ -71,12 +69,6 @@ declare abstract class OpenAPIToolset extends OpenAPIToolset$1 {
|
|
|
71
69
|
constructor();
|
|
72
70
|
}
|
|
73
71
|
|
|
74
|
-
declare function createLogger(options: {
|
|
75
|
-
name?: string;
|
|
76
|
-
level?: LogLevel;
|
|
77
|
-
transports?: TransportMap;
|
|
78
|
-
}): Logger;
|
|
79
|
-
|
|
80
72
|
declare abstract class MastraMemory extends MastraMemory$1 {
|
|
81
73
|
constructor(_arg?: any);
|
|
82
74
|
}
|
|
@@ -93,8 +85,8 @@ declare abstract class MastraVector extends MastraVector$1 {
|
|
|
93
85
|
constructor();
|
|
94
86
|
}
|
|
95
87
|
|
|
96
|
-
declare class Workflow<TSteps extends Step<any, any, any>[] = any,
|
|
97
|
-
constructor(args:
|
|
88
|
+
declare class Workflow<TSteps extends Step<string, any, any, any, any>[] = Step<string, any, any, any, any>[], TWorkflowId extends string = string, TInput extends z.ZodType<any> = z.ZodType<any>, TOutput extends z.ZodType<any> = z.ZodType<any>, TPrevSchema extends z.ZodType<any> = TInput> extends Workflow$1<TSteps, TWorkflowId, TInput, TOutput, TPrevSchema> {
|
|
89
|
+
constructor(args: WorkflowConfig<TWorkflowId, TInput, TOutput, TSteps>);
|
|
98
90
|
}
|
|
99
91
|
|
|
100
|
-
export { Agent, Integration,
|
|
92
|
+
export { Agent, Integration, MastraBase, MastraDeployer, MastraMemory, MastraStorage, MastraTTS, MastraVector, Metric, OpenAPIToolset, Step, TTSConfig, Tool, ToolAction, ToolExecutionContext, Workflow, WorkflowConfig };
|