@mastra/core 0.10.13 → 0.10.15-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/a2a.d.ts +1 -0
- package/agent.d.ts +1 -0
- package/base.d.ts +1 -0
- package/bundler.d.ts +1 -0
- package/deployer.d.ts +1 -0
- package/di.d.ts +1 -0
- package/dist/a2a/index.cjs +79 -0
- package/dist/a2a/index.d.cts +780 -0
- package/dist/a2a/index.d.ts +780 -0
- package/dist/a2a/index.js +68 -0
- package/dist/agent/index.cjs +15 -0
- package/dist/agent/index.d.cts +29 -0
- package/dist/agent/index.d.ts +29 -0
- package/dist/agent/index.js +2 -0
- package/dist/base-B_y9sMg0.d.cts +162 -0
- package/dist/base-CTj7ESwt.d.cts +4132 -0
- package/dist/base-ClrXcCRx.d.ts +162 -0
- package/dist/base-qVqAnB-c.d.ts +4132 -0
- package/dist/base.cjs +10 -0
- package/dist/base.d.cts +6 -0
- package/dist/base.d.ts +6 -0
- package/dist/base.js +1 -0
- package/dist/bundler/index.cjs +10 -0
- package/dist/bundler/index.d.cts +30 -0
- package/dist/bundler/index.d.ts +30 -0
- package/dist/bundler/index.js +1 -0
- package/dist/chunk-32C7JDIZ.js +1 -0
- package/dist/chunk-4UWPFBC6.js +88 -0
- package/dist/chunk-4Z3OU5RY.cjs +31 -0
- package/dist/chunk-5HTMDAXP.js +359 -0
- package/dist/chunk-5IEKR756.js +53 -0
- package/dist/chunk-5YDTZN2X.js +114 -0
- package/dist/chunk-6UNGH46J.js +75 -0
- package/dist/chunk-6Y4UL5Z6.cjs +94 -0
- package/dist/chunk-7H2GET5Z.cjs +668 -0
- package/dist/chunk-7HZ6NIAF.cjs +2 -0
- package/dist/chunk-7XQIPES3.js +668 -0
- package/dist/chunk-AKYTYALY.js +70 -0
- package/dist/chunk-AOWJUV2N.js +2415 -0
- package/dist/chunk-ATXBSEFT.js +22 -0
- package/dist/chunk-B6TOBUS6.cjs +80 -0
- package/dist/chunk-B7SQOKEC.cjs +91 -0
- package/dist/chunk-BB4KXGBU.js +83 -0
- package/dist/chunk-BB6DPGIV.cjs +6 -0
- package/dist/chunk-BVD7NVAR.cjs +244 -0
- package/dist/chunk-C4LMN2IR.js +27 -0
- package/dist/chunk-DR4JS662.js +989 -0
- package/dist/chunk-F2WMR75C.cjs +183 -0
- package/dist/chunk-FEYYOBBG.cjs +24 -0
- package/dist/chunk-FL5SZ2XU.js +181 -0
- package/dist/chunk-GH2KM66J.js +37 -0
- package/dist/chunk-GWFS5DAR.cjs +37 -0
- package/dist/chunk-HNEE7IF4.js +60 -0
- package/dist/chunk-HSVOEWAM.cjs +2 -0
- package/dist/chunk-IBKM5CLQ.js +428 -0
- package/dist/chunk-ID5LG5CQ.cjs +659 -0
- package/dist/chunk-J52TXHZV.cjs +73 -0
- package/dist/chunk-J62R4M7K.js +240 -0
- package/dist/chunk-JNMQKJH4.js +10 -0
- package/dist/chunk-JQOMTERC.js +89 -0
- package/dist/chunk-LABUWBKX.cjs +71 -0
- package/dist/chunk-LBUQ6YNU.cjs +447 -0
- package/dist/chunk-LXFZUKP3.cjs +34 -0
- package/dist/chunk-MP2QBLUJ.cjs +70 -0
- package/dist/chunk-MUNFCOMB.cjs +62 -0
- package/dist/chunk-MVCHTRVB.js +5038 -0
- package/dist/chunk-NH5WJNNS.js +1 -0
- package/dist/chunk-P3Q73CAW.cjs +55 -0
- package/dist/chunk-Q33INUG2.cjs +81 -0
- package/dist/chunk-QFTBW7ZZ.cjs +2 -0
- package/dist/chunk-QQ5K5TZE.cjs +619 -0
- package/dist/chunk-R4V75T7J.js +1 -0
- package/dist/chunk-RVFWMGGR.js +77 -0
- package/dist/chunk-SGGPJWRQ.js +69 -0
- package/dist/chunk-ST5RMVLG.cjs +87 -0
- package/dist/chunk-TC2SCOTE.js +605 -0
- package/dist/chunk-TTMYHBQM.js +657 -0
- package/dist/chunk-U64IJDC5.cjs +109 -0
- package/dist/chunk-ULZ6MRTN.cjs +5065 -0
- package/dist/chunk-V5D2LIF5.js +68 -0
- package/dist/chunk-WQNOATKB.js +103 -0
- package/dist/chunk-Y7D2JLKS.js +4 -0
- package/dist/chunk-YOQP5T77.js +32 -0
- package/dist/chunk-ZCU3PLIL.cjs +2429 -0
- package/dist/chunk-ZIZ3CVHN.cjs +120 -0
- package/dist/chunk-ZPOUMTTH.cjs +362 -0
- package/dist/chunk-ZTPPDHQK.cjs +991 -0
- package/dist/chunk-ZZLBNB3U.cjs +12 -0
- package/dist/deployer/index.cjs +10 -0
- package/dist/deployer/index.d.cts +19 -0
- package/dist/deployer/index.d.ts +19 -0
- package/dist/deployer/index.js +1 -0
- package/dist/di/index.cjs +10 -0
- package/dist/di/index.d.cts +1 -0
- package/dist/di/index.d.ts +1 -0
- package/dist/di/index.js +1 -0
- package/dist/error/index.cjs +22 -0
- package/dist/error/index.d.cts +86 -0
- package/dist/error/index.d.ts +86 -0
- package/dist/error/index.js +1 -0
- package/dist/eval/index.cjs +14 -0
- package/dist/eval/index.d.cts +43 -0
- package/dist/eval/index.d.ts +43 -0
- package/dist/eval/index.js +1 -0
- package/dist/hooks/index.cjs +18 -0
- package/dist/hooks/index.d.cts +33 -0
- package/dist/hooks/index.d.ts +33 -0
- package/dist/hooks/index.js +1 -0
- package/dist/index.cjs +285 -0
- package/dist/index.d.cts +92 -0
- package/dist/index.d.ts +92 -0
- package/dist/index.js +112 -0
- package/dist/integration/index.cjs +14 -0
- package/dist/integration/index.d.cts +65 -0
- package/dist/integration/index.d.ts +65 -0
- package/dist/integration/index.js +1 -0
- package/dist/llm/index.cjs +10 -0
- package/dist/llm/index.d.cts +29 -0
- package/dist/llm/index.d.ts +29 -0
- package/dist/llm/index.js +1 -0
- package/dist/logger/index.cjs +43 -0
- package/dist/logger/index.d.cts +96 -0
- package/dist/logger/index.d.ts +96 -0
- package/dist/logger/index.js +2 -0
- package/dist/logger-B8XXh6ya.d.cts +159 -0
- package/dist/logger-Bpa2oLL4.d.ts +159 -0
- package/dist/mastra/index.cjs +10 -0
- package/dist/mastra/index.d.cts +29 -0
- package/dist/mastra/index.d.ts +29 -0
- package/dist/mastra/index.js +1 -0
- package/dist/mcp/index.cjs +106 -0
- package/dist/mcp/index.d.cts +29 -0
- package/dist/mcp/index.d.ts +29 -0
- package/dist/mcp/index.js +100 -0
- package/dist/memory/index.cjs +18 -0
- package/dist/memory/index.d.cts +29 -0
- package/dist/memory/index.d.ts +29 -0
- package/dist/memory/index.js +1 -0
- package/dist/network/index.cjs +311 -0
- package/dist/network/index.d.cts +29 -0
- package/dist/network/index.d.ts +29 -0
- package/dist/network/index.js +309 -0
- package/dist/network/vNext/index.cjs +880 -0
- package/dist/network/vNext/index.d.cts +29 -0
- package/dist/network/vNext/index.d.ts +29 -0
- package/dist/network/vNext/index.js +878 -0
- package/dist/relevance/index.cjs +18 -0
- package/dist/relevance/index.d.cts +50 -0
- package/dist/relevance/index.d.ts +50 -0
- package/dist/relevance/index.js +1 -0
- package/dist/runtime-context/index.cjs +10 -0
- package/dist/runtime-context/index.d.cts +52 -0
- package/dist/runtime-context/index.d.ts +52 -0
- package/dist/runtime-context/index.js +1 -0
- package/dist/server/index.cjs +62 -0
- package/dist/server/index.d.cts +52 -0
- package/dist/server/index.d.ts +52 -0
- package/dist/server/index.js +59 -0
- package/dist/storage/index.cjs +336 -0
- package/dist/storage/index.d.cts +149 -0
- package/dist/storage/index.d.ts +149 -0
- package/dist/storage/index.js +303 -0
- package/dist/telemetry/index.cjs +30 -0
- package/dist/telemetry/index.d.cts +75 -0
- package/dist/telemetry/index.d.ts +75 -0
- package/dist/telemetry/index.js +1 -0
- package/dist/telemetry/otel-vendor.cjs +103 -0
- package/dist/telemetry/otel-vendor.d.cts +20 -0
- package/dist/telemetry/otel-vendor.d.ts +20 -0
- package/dist/telemetry/otel-vendor.js +57 -0
- package/dist/tools/index.cjs +18 -0
- package/dist/tools/index.d.cts +41 -0
- package/dist/tools/index.d.ts +41 -0
- package/dist/tools/index.js +1 -0
- package/dist/tts/index.cjs +10 -0
- package/dist/tts/index.d.cts +28 -0
- package/dist/tts/index.d.ts +28 -0
- package/dist/tts/index.js +1 -0
- package/dist/types-Bo1uigWx.d.cts +17 -0
- package/dist/types-Bo1uigWx.d.ts +17 -0
- package/dist/utils.cjs +62 -0
- package/dist/utils.d.cts +150 -0
- package/dist/utils.d.ts +150 -0
- package/dist/utils.js +1 -0
- package/dist/vector/filter/index.cjs +192 -0
- package/dist/vector/filter/index.d.cts +128 -0
- package/dist/vector/filter/index.d.ts +128 -0
- package/dist/vector/filter/index.js +190 -0
- package/dist/vector/index.cjs +10 -0
- package/dist/vector/index.d.cts +77 -0
- package/dist/vector/index.d.ts +77 -0
- package/dist/vector/index.js +1 -0
- package/dist/voice/index.cjs +18 -0
- package/dist/voice/index.d.cts +29 -0
- package/dist/voice/index.d.ts +29 -0
- package/dist/voice/index.js +1 -0
- package/dist/workflows/constants.cjs +10 -0
- package/dist/workflows/constants.d.cts +3 -0
- package/dist/workflows/constants.d.ts +3 -0
- package/dist/workflows/constants.js +1 -0
- package/dist/workflows/index.cjs +42 -0
- package/dist/workflows/index.d.cts +285 -0
- package/dist/workflows/index.d.ts +285 -0
- package/dist/workflows/index.js +1 -0
- package/dist/workflows/legacy/index.cjs +90 -0
- package/dist/workflows/legacy/index.d.cts +91 -0
- package/dist/workflows/legacy/index.d.ts +91 -0
- package/dist/workflows/legacy/index.js +1 -0
- package/error.d.ts +1 -0
- package/eval.d.ts +1 -0
- package/hooks.d.ts +1 -0
- package/integration.d.ts +1 -0
- package/llm.d.ts +1 -0
- package/logger.d.ts +1 -0
- package/mastra.d.ts +1 -0
- package/mcp.d.ts +1 -0
- package/memory.d.ts +1 -0
- package/network/vNext.d.ts +1 -0
- package/network.d.ts +1 -0
- package/package.json +2 -3
- package/relevance.d.ts +1 -0
- package/runtime-context.d.ts +1 -0
- package/server.d.ts +1 -0
- package/storage.d.ts +1 -0
- package/telemetry/otel-vendor.d.ts +1 -0
- package/telemetry.d.ts +1 -0
- package/tools.d.ts +1 -0
- package/tts.d.ts +1 -0
- package/utils.d.ts +1 -0
- package/vector/filter.d.ts +1 -0
- package/vector.d.ts +1 -0
- package/voice.d.ts +1 -0
- package/workflows/_constants.d.ts +1 -0
- package/workflows/legacy.d.ts +1 -0
- package/workflows.d.ts +1 -0
package/dist/index.cjs
ADDED
|
@@ -0,0 +1,285 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var chunkGWFS5DAR_cjs = require('./chunk-GWFS5DAR.cjs');
|
|
4
|
+
var chunkMP2QBLUJ_cjs = require('./chunk-MP2QBLUJ.cjs');
|
|
5
|
+
var chunkZCU3PLIL_cjs = require('./chunk-ZCU3PLIL.cjs');
|
|
6
|
+
var chunkBVD7NVAR_cjs = require('./chunk-BVD7NVAR.cjs');
|
|
7
|
+
var chunkQ33INUG2_cjs = require('./chunk-Q33INUG2.cjs');
|
|
8
|
+
var chunkF2WMR75C_cjs = require('./chunk-F2WMR75C.cjs');
|
|
9
|
+
var chunkJ52TXHZV_cjs = require('./chunk-J52TXHZV.cjs');
|
|
10
|
+
var chunkB7SQOKEC_cjs = require('./chunk-B7SQOKEC.cjs');
|
|
11
|
+
var chunkMUNFCOMB_cjs = require('./chunk-MUNFCOMB.cjs');
|
|
12
|
+
var chunk7H2GET5Z_cjs = require('./chunk-7H2GET5Z.cjs');
|
|
13
|
+
var chunkULZ6MRTN_cjs = require('./chunk-ULZ6MRTN.cjs');
|
|
14
|
+
var chunkST5RMVLG_cjs = require('./chunk-ST5RMVLG.cjs');
|
|
15
|
+
var chunkQQ5K5TZE_cjs = require('./chunk-QQ5K5TZE.cjs');
|
|
16
|
+
var chunkLBUQ6YNU_cjs = require('./chunk-LBUQ6YNU.cjs');
|
|
17
|
+
var chunk4Z3OU5RY_cjs = require('./chunk-4Z3OU5RY.cjs');
|
|
18
|
+
var chunkZZLBNB3U_cjs = require('./chunk-ZZLBNB3U.cjs');
|
|
19
|
+
var chunkP3Q73CAW_cjs = require('./chunk-P3Q73CAW.cjs');
|
|
20
|
+
|
|
21
|
+
// src/agent/index.warning.ts
|
|
22
|
+
var Agent2 = class extends chunkULZ6MRTN_cjs.Agent {
|
|
23
|
+
constructor(config) {
|
|
24
|
+
super(config);
|
|
25
|
+
this.logger.warn('Please import "Agent from "@mastra/core/agent" instead of "@mastra/core"');
|
|
26
|
+
}
|
|
27
|
+
};
|
|
28
|
+
|
|
29
|
+
// src/base.warning.ts
|
|
30
|
+
var MastraBase2 = class extends chunkP3Q73CAW_cjs.MastraBase {
|
|
31
|
+
constructor(args) {
|
|
32
|
+
super(args);
|
|
33
|
+
this.logger.warn('Please import "MastraBase" from "@mastra/core/base" instead of "@mastra/core"');
|
|
34
|
+
}
|
|
35
|
+
};
|
|
36
|
+
|
|
37
|
+
// src/deployer/index.warning.ts
|
|
38
|
+
var MastraDeployer2 = class extends chunkZZLBNB3U_cjs.MastraDeployer {
|
|
39
|
+
constructor(args) {
|
|
40
|
+
super(args);
|
|
41
|
+
this.logger.warn('Please import "MastraDeployer" from "@mastra/core/deployer" instead of "@mastra/core"');
|
|
42
|
+
}
|
|
43
|
+
};
|
|
44
|
+
|
|
45
|
+
// src/storage/base.warning.ts
|
|
46
|
+
var MastraStorage2 = class extends chunkF2WMR75C_cjs.MastraStorage {
|
|
47
|
+
constructor({ name }) {
|
|
48
|
+
super({
|
|
49
|
+
name
|
|
50
|
+
});
|
|
51
|
+
this.logger.warn('Please import "MastraStorage" from "@mastra/core/storage" instead of "@mastra/core"');
|
|
52
|
+
}
|
|
53
|
+
};
|
|
54
|
+
|
|
55
|
+
// src/integration/integration.warning.ts
|
|
56
|
+
var Integration2 = class extends chunkB7SQOKEC_cjs.Integration {
|
|
57
|
+
constructor() {
|
|
58
|
+
super();
|
|
59
|
+
console.warn('Please import "Integration" from "@mastra/core/integration" instead of "@mastra/core"');
|
|
60
|
+
}
|
|
61
|
+
};
|
|
62
|
+
|
|
63
|
+
// src/integration/openapi-toolset.warning.ts
|
|
64
|
+
var OpenAPIToolset2 = class extends chunkB7SQOKEC_cjs.OpenAPIToolset {
|
|
65
|
+
constructor() {
|
|
66
|
+
super();
|
|
67
|
+
console.warn('Please import "OpenAPIToolset" from "@mastra/core/integration" instead of "@mastra/core"');
|
|
68
|
+
}
|
|
69
|
+
};
|
|
70
|
+
|
|
71
|
+
// src/memory/index.warning.ts
|
|
72
|
+
var MastraMemory2 = class extends chunkBVD7NVAR_cjs.MastraMemory {
|
|
73
|
+
constructor(_arg) {
|
|
74
|
+
super({ name: `Deprecated memory` });
|
|
75
|
+
this.logger.warn('Please import "MastraMemory" from "@mastra/core/memory" instead of "@mastra/core"');
|
|
76
|
+
}
|
|
77
|
+
};
|
|
78
|
+
|
|
79
|
+
// src/tools/index.warning.ts
|
|
80
|
+
var Tool2 = class extends chunk4Z3OU5RY_cjs.Tool {
|
|
81
|
+
constructor(opts) {
|
|
82
|
+
super(opts);
|
|
83
|
+
console.warn('Please import "Tool" from "@mastra/core/tools" instead of "@mastra/core"');
|
|
84
|
+
}
|
|
85
|
+
};
|
|
86
|
+
|
|
87
|
+
// src/tts/index.warning.ts
|
|
88
|
+
var MastraTTS2 = class extends chunkGWFS5DAR_cjs.MastraTTS {
|
|
89
|
+
constructor(args) {
|
|
90
|
+
super(args);
|
|
91
|
+
this.logger.warn('Please import "MastraTTS" from "@mastra/core/tts" instead of "@mastra/core"');
|
|
92
|
+
}
|
|
93
|
+
};
|
|
94
|
+
|
|
95
|
+
// src/vector/index.warning.ts
|
|
96
|
+
var MastraVector2 = class extends chunkMP2QBLUJ_cjs.MastraVector {
|
|
97
|
+
constructor() {
|
|
98
|
+
super();
|
|
99
|
+
this.logger.warn('Please import "MastraVector" from "@mastra/core/vector" instead of "@mastra/core"');
|
|
100
|
+
}
|
|
101
|
+
};
|
|
102
|
+
|
|
103
|
+
// src/workflows/workflow.warning.ts
|
|
104
|
+
var Workflow2 = class extends chunkZCU3PLIL_cjs.Workflow {
|
|
105
|
+
constructor(args) {
|
|
106
|
+
super(args);
|
|
107
|
+
this.logger.warn('Please import "Workflow" from "@mastra/core/workflows" instead of "@mastra/core"');
|
|
108
|
+
}
|
|
109
|
+
};
|
|
110
|
+
|
|
111
|
+
Object.defineProperty(exports, "DefaultExecutionEngine", {
|
|
112
|
+
enumerable: true,
|
|
113
|
+
get: function () { return chunkZCU3PLIL_cjs.DefaultExecutionEngine; }
|
|
114
|
+
});
|
|
115
|
+
Object.defineProperty(exports, "ExecutionEngine", {
|
|
116
|
+
enumerable: true,
|
|
117
|
+
get: function () { return chunkZCU3PLIL_cjs.ExecutionEngine; }
|
|
118
|
+
});
|
|
119
|
+
Object.defineProperty(exports, "Run", {
|
|
120
|
+
enumerable: true,
|
|
121
|
+
get: function () { return chunkZCU3PLIL_cjs.Run; }
|
|
122
|
+
});
|
|
123
|
+
Object.defineProperty(exports, "cloneStep", {
|
|
124
|
+
enumerable: true,
|
|
125
|
+
get: function () { return chunkZCU3PLIL_cjs.cloneStep; }
|
|
126
|
+
});
|
|
127
|
+
Object.defineProperty(exports, "cloneWorkflow", {
|
|
128
|
+
enumerable: true,
|
|
129
|
+
get: function () { return chunkZCU3PLIL_cjs.cloneWorkflow; }
|
|
130
|
+
});
|
|
131
|
+
Object.defineProperty(exports, "createStep", {
|
|
132
|
+
enumerable: true,
|
|
133
|
+
get: function () { return chunkZCU3PLIL_cjs.createStep; }
|
|
134
|
+
});
|
|
135
|
+
Object.defineProperty(exports, "createWorkflow", {
|
|
136
|
+
enumerable: true,
|
|
137
|
+
get: function () { return chunkZCU3PLIL_cjs.createWorkflow; }
|
|
138
|
+
});
|
|
139
|
+
Object.defineProperty(exports, "mapVariable", {
|
|
140
|
+
enumerable: true,
|
|
141
|
+
get: function () { return chunkZCU3PLIL_cjs.mapVariable; }
|
|
142
|
+
});
|
|
143
|
+
Object.defineProperty(exports, "MemoryProcessor", {
|
|
144
|
+
enumerable: true,
|
|
145
|
+
get: function () { return chunkBVD7NVAR_cjs.MemoryProcessor; }
|
|
146
|
+
});
|
|
147
|
+
Object.defineProperty(exports, "memoryDefaultOptions", {
|
|
148
|
+
enumerable: true,
|
|
149
|
+
get: function () { return chunkBVD7NVAR_cjs.memoryDefaultOptions; }
|
|
150
|
+
});
|
|
151
|
+
Object.defineProperty(exports, "CohereRelevanceScorer", {
|
|
152
|
+
enumerable: true,
|
|
153
|
+
get: function () { return chunkQ33INUG2_cjs.CohereRelevanceScorer; }
|
|
154
|
+
});
|
|
155
|
+
Object.defineProperty(exports, "MastraAgentRelevanceScorer", {
|
|
156
|
+
enumerable: true,
|
|
157
|
+
get: function () { return chunkQ33INUG2_cjs.MastraAgentRelevanceScorer; }
|
|
158
|
+
});
|
|
159
|
+
Object.defineProperty(exports, "createSimilarityPrompt", {
|
|
160
|
+
enumerable: true,
|
|
161
|
+
get: function () { return chunkQ33INUG2_cjs.createSimilarityPrompt; }
|
|
162
|
+
});
|
|
163
|
+
Object.defineProperty(exports, "Metric", {
|
|
164
|
+
enumerable: true,
|
|
165
|
+
get: function () { return chunkJ52TXHZV_cjs.Metric; }
|
|
166
|
+
});
|
|
167
|
+
Object.defineProperty(exports, "evaluate", {
|
|
168
|
+
enumerable: true,
|
|
169
|
+
get: function () { return chunkJ52TXHZV_cjs.evaluate; }
|
|
170
|
+
});
|
|
171
|
+
Object.defineProperty(exports, "createMockModel", {
|
|
172
|
+
enumerable: true,
|
|
173
|
+
get: function () { return chunkMUNFCOMB_cjs.createMockModel; }
|
|
174
|
+
});
|
|
175
|
+
Object.defineProperty(exports, "Mastra", {
|
|
176
|
+
enumerable: true,
|
|
177
|
+
get: function () { return chunk7H2GET5Z_cjs.Mastra; }
|
|
178
|
+
});
|
|
179
|
+
Object.defineProperty(exports, "AvailableHooks", {
|
|
180
|
+
enumerable: true,
|
|
181
|
+
get: function () { return chunkST5RMVLG_cjs.AvailableHooks; }
|
|
182
|
+
});
|
|
183
|
+
Object.defineProperty(exports, "executeHook", {
|
|
184
|
+
enumerable: true,
|
|
185
|
+
get: function () { return chunkST5RMVLG_cjs.executeHook; }
|
|
186
|
+
});
|
|
187
|
+
Object.defineProperty(exports, "registerHook", {
|
|
188
|
+
enumerable: true,
|
|
189
|
+
get: function () { return chunkST5RMVLG_cjs.registerHook; }
|
|
190
|
+
});
|
|
191
|
+
Object.defineProperty(exports, "InstrumentClass", {
|
|
192
|
+
enumerable: true,
|
|
193
|
+
get: function () { return chunkQQ5K5TZE_cjs.InstrumentClass; }
|
|
194
|
+
});
|
|
195
|
+
Object.defineProperty(exports, "OTLPStorageExporter", {
|
|
196
|
+
enumerable: true,
|
|
197
|
+
get: function () { return chunkQQ5K5TZE_cjs.OTLPTraceExporter; }
|
|
198
|
+
});
|
|
199
|
+
Object.defineProperty(exports, "Telemetry", {
|
|
200
|
+
enumerable: true,
|
|
201
|
+
get: function () { return chunkQQ5K5TZE_cjs.Telemetry; }
|
|
202
|
+
});
|
|
203
|
+
Object.defineProperty(exports, "getBaggageValues", {
|
|
204
|
+
enumerable: true,
|
|
205
|
+
get: function () { return chunkQQ5K5TZE_cjs.getBaggageValues; }
|
|
206
|
+
});
|
|
207
|
+
Object.defineProperty(exports, "hasActiveTelemetry", {
|
|
208
|
+
enumerable: true,
|
|
209
|
+
get: function () { return chunkQQ5K5TZE_cjs.hasActiveTelemetry; }
|
|
210
|
+
});
|
|
211
|
+
Object.defineProperty(exports, "withSpan", {
|
|
212
|
+
enumerable: true,
|
|
213
|
+
get: function () { return chunkQQ5K5TZE_cjs.withSpan; }
|
|
214
|
+
});
|
|
215
|
+
Object.defineProperty(exports, "checkEvalStorageFields", {
|
|
216
|
+
enumerable: true,
|
|
217
|
+
get: function () { return chunkLBUQ6YNU_cjs.checkEvalStorageFields; }
|
|
218
|
+
});
|
|
219
|
+
Object.defineProperty(exports, "createMastraProxy", {
|
|
220
|
+
enumerable: true,
|
|
221
|
+
get: function () { return chunkLBUQ6YNU_cjs.createMastraProxy; }
|
|
222
|
+
});
|
|
223
|
+
Object.defineProperty(exports, "deepMerge", {
|
|
224
|
+
enumerable: true,
|
|
225
|
+
get: function () { return chunkLBUQ6YNU_cjs.deepMerge; }
|
|
226
|
+
});
|
|
227
|
+
Object.defineProperty(exports, "delay", {
|
|
228
|
+
enumerable: true,
|
|
229
|
+
get: function () { return chunkLBUQ6YNU_cjs.delay; }
|
|
230
|
+
});
|
|
231
|
+
Object.defineProperty(exports, "ensureToolProperties", {
|
|
232
|
+
enumerable: true,
|
|
233
|
+
get: function () { return chunkLBUQ6YNU_cjs.ensureToolProperties; }
|
|
234
|
+
});
|
|
235
|
+
Object.defineProperty(exports, "generateEmptyFromSchema", {
|
|
236
|
+
enumerable: true,
|
|
237
|
+
get: function () { return chunkLBUQ6YNU_cjs.generateEmptyFromSchema; }
|
|
238
|
+
});
|
|
239
|
+
Object.defineProperty(exports, "isCoreMessage", {
|
|
240
|
+
enumerable: true,
|
|
241
|
+
get: function () { return chunkLBUQ6YNU_cjs.isCoreMessage; }
|
|
242
|
+
});
|
|
243
|
+
Object.defineProperty(exports, "isUiMessage", {
|
|
244
|
+
enumerable: true,
|
|
245
|
+
get: function () { return chunkLBUQ6YNU_cjs.isUiMessage; }
|
|
246
|
+
});
|
|
247
|
+
Object.defineProperty(exports, "isZodType", {
|
|
248
|
+
enumerable: true,
|
|
249
|
+
get: function () { return chunkLBUQ6YNU_cjs.isZodType; }
|
|
250
|
+
});
|
|
251
|
+
Object.defineProperty(exports, "makeCoreTool", {
|
|
252
|
+
enumerable: true,
|
|
253
|
+
get: function () { return chunkLBUQ6YNU_cjs.makeCoreTool; }
|
|
254
|
+
});
|
|
255
|
+
Object.defineProperty(exports, "maskStreamTags", {
|
|
256
|
+
enumerable: true,
|
|
257
|
+
get: function () { return chunkLBUQ6YNU_cjs.maskStreamTags; }
|
|
258
|
+
});
|
|
259
|
+
Object.defineProperty(exports, "parseFieldKey", {
|
|
260
|
+
enumerable: true,
|
|
261
|
+
get: function () { return chunkLBUQ6YNU_cjs.parseFieldKey; }
|
|
262
|
+
});
|
|
263
|
+
Object.defineProperty(exports, "parseSqlIdentifier", {
|
|
264
|
+
enumerable: true,
|
|
265
|
+
get: function () { return chunkLBUQ6YNU_cjs.parseSqlIdentifier; }
|
|
266
|
+
});
|
|
267
|
+
Object.defineProperty(exports, "resolveSerializedZodOutput", {
|
|
268
|
+
enumerable: true,
|
|
269
|
+
get: function () { return chunkLBUQ6YNU_cjs.resolveSerializedZodOutput; }
|
|
270
|
+
});
|
|
271
|
+
Object.defineProperty(exports, "createTool", {
|
|
272
|
+
enumerable: true,
|
|
273
|
+
get: function () { return chunk4Z3OU5RY_cjs.createTool; }
|
|
274
|
+
});
|
|
275
|
+
exports.Agent = Agent2;
|
|
276
|
+
exports.Integration = Integration2;
|
|
277
|
+
exports.MastraBase = MastraBase2;
|
|
278
|
+
exports.MastraDeployer = MastraDeployer2;
|
|
279
|
+
exports.MastraMemory = MastraMemory2;
|
|
280
|
+
exports.MastraStorage = MastraStorage2;
|
|
281
|
+
exports.MastraTTS = MastraTTS2;
|
|
282
|
+
exports.MastraVector = MastraVector2;
|
|
283
|
+
exports.OpenAPIToolset = OpenAPIToolset2;
|
|
284
|
+
exports.Tool = Tool2;
|
|
285
|
+
exports.Workflow = Workflow2;
|
package/dist/index.d.cts
ADDED
|
@@ -0,0 +1,92 @@
|
|
|
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 { c as ToolAction, A as Agent$1, av as AgentConfig, o as MastraStorage$1, b as MastraMemory$1, aw as DefaultEngineType, f as Step, e as Workflow$1, ax as WorkflowConfig } from './base-CTj7ESwt.cjs';
|
|
4
|
+
export { aG as BaseStructuredOutputType, aX as Config, aB as CoreAssistantMessage, az as CoreMessage, aA as CoreSystemMessage, C as CoreTool, aD as CoreToolMessage, aC as CoreUserMessage, aQ as DefaultLLMStreamObjectOptions, aP as DefaultLLMStreamOptions, aO as DefaultLLMTextObjectOptions, aN as DefaultLLMTextOptions, aZ as DynamicArgument, bw as DynamicMapping, aF as EmbedManyResult, aE as EmbedResult, bo as Emitter, E as EvalRow, bn as ExecuteFunction, bm as ExecutionEngine, bl as ExecutionGraph, bz as ExtractSchemaFromStep, by as ExtractSchemaType, aK as GenerateReturn, at as InternalCoreTool, aU as LLMInnerStreamOptions, aV as LLMStreamObjectOptions, aT as LLMStreamOptions, aS as LLMTextObjectOptions, aR as LLMTextOptions, ay as LanguageModel, z as LegacyWorkflowRun, y as LegacyWorkflowRuns, M as Mastra, aY as MastraLanguageModel, v as MastraMessageV1, t as MastraMessageV2, b1 as MemoryConfig, b7 as MemoryProcessor, b6 as MemoryProcessorOpts, a$ as MessageResponse, a_ as MessageType, aM as OutputType, B as PaginationArgs, P as PaginationInfo, bx as PathsToStringProps, bk as Run, bb as SerializedStep, bc as SerializedStepFlowEntry, b2 as SharedMemoryConfig, bq as StepFailure, ba as StepFlowEntry, bu as StepResult, bs as StepRunning, bp as StepSuccess, br as StepSuspended, bt as StepWaiting, bd as StepWithComponent, bv as StepsRecord, q as StorageColumn, u as StorageGetMessagesArg, D as StorageGetTracesArg, s as StorageResourceType, r as StorageThreadType, bB as StreamEvent, aL as StreamReturn, aJ as StructuredOutput, aI as StructuredOutputArrayItem, aH as StructuredOutputType, b9 as Tool, au as ToolExecutionContext, b3 as TraceType, bA as VariableReference, V as VercelTool, bD as WatchEvent, bj as WorkflowResult, x as WorkflowRun, bF as WorkflowRunState, bC as WorkflowRunStatus, w as WorkflowRuns, b0 as WorkingMemory, b4 as WorkingMemoryFormat, b5 as WorkingMemoryTemplate, bE as ZodPathType, bg as cloneStep, bi as cloneWorkflow, aW as createMockModel, bf as createStep, as as createTool, bh as createWorkflow, be as mapVariable, b8 as memoryDefaultOptions } from './base-CTj7ESwt.cjs';
|
|
5
|
+
import { M as MastraBase$1 } from './base-B_y9sMg0.cjs';
|
|
6
|
+
export { O as OtelConfig, S as SamplingStrategy, a as Telemetry, T as Trace } from './base-B_y9sMg0.cjs';
|
|
7
|
+
import { R as RegisteredLogger } from './logger-B8XXh6ya.cjs';
|
|
8
|
+
import { MastraDeployer as MastraDeployer$1 } from './deployer/index.cjs';
|
|
9
|
+
export { evaluate } from './eval/index.cjs';
|
|
10
|
+
import { Integration as Integration$1, OpenAPIToolset as OpenAPIToolset$1 } from './integration/index.cjs';
|
|
11
|
+
export { CohereRelevanceScorer, MastraAgentRelevanceScorer, RelevanceScoreProvider, createSimilarityPrompt } from './relevance/index.cjs';
|
|
12
|
+
export { InstrumentClass, OTLPStorageExporter, getBaggageValues, hasActiveTelemetry, withSpan } from './telemetry/index.cjs';
|
|
13
|
+
import { MastraTTS as MastraTTS$1, TTSConfig } from './tts/index.cjs';
|
|
14
|
+
export { TagMaskOptions, ToolOptions, checkEvalStorageFields, createMastraProxy, deepMerge, delay, ensureToolProperties, generateEmptyFromSchema, isCoreMessage, isUiMessage, isZodType, makeCoreTool, maskStreamTags, parseFieldKey, parseSqlIdentifier, resolveSerializedZodOutput } from './utils.cjs';
|
|
15
|
+
import { MastraVector as MastraVector$1 } from './vector/index.cjs';
|
|
16
|
+
export { CreateIndexParams, DeleteIndexParams, DeleteVectorParams, DescribeIndexParams, IndexStats, QueryResult, QueryVectorParams, UpdateVectorParams, UpsertVectorParams } from './vector/index.cjs';
|
|
17
|
+
import { z } from 'zod';
|
|
18
|
+
export { DefaultExecutionEngine, ExecutionContext } from './workflows/index.cjs';
|
|
19
|
+
export { AvailableHooks, executeHook, registerHook } from './hooks/index.cjs';
|
|
20
|
+
export { Message as AiMessageType } from 'ai';
|
|
21
|
+
import 'json-schema';
|
|
22
|
+
import 'sift';
|
|
23
|
+
import './runtime-context/index.cjs';
|
|
24
|
+
import '@opentelemetry/api';
|
|
25
|
+
import 'xstate';
|
|
26
|
+
import 'node:events';
|
|
27
|
+
import 'node:http';
|
|
28
|
+
import 'hono';
|
|
29
|
+
import 'stream/web';
|
|
30
|
+
import './vector/filter/index.cjs';
|
|
31
|
+
import 'events';
|
|
32
|
+
import 'node:stream/web';
|
|
33
|
+
import './workflows/constants.cjs';
|
|
34
|
+
import 'ai/test';
|
|
35
|
+
import 'hono/cors';
|
|
36
|
+
import 'hono-openapi';
|
|
37
|
+
import '@opentelemetry/sdk-trace-base';
|
|
38
|
+
import './error/index.cjs';
|
|
39
|
+
import 'stream';
|
|
40
|
+
import './bundler/index.cjs';
|
|
41
|
+
import '@opentelemetry/core';
|
|
42
|
+
|
|
43
|
+
declare class Agent<TAgentId extends string = string, TTools extends Record<string, ToolAction<any, any, any>> = Record<string, ToolAction<any, any, any>>, TMetrics extends Record<string, Metric> = Record<string, Metric>> extends Agent$1<TAgentId, TTools, TMetrics> {
|
|
44
|
+
constructor(config: AgentConfig<TAgentId, TTools, TMetrics>);
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
declare class MastraBase extends MastraBase$1 {
|
|
48
|
+
constructor(args: {
|
|
49
|
+
component?: RegisteredLogger;
|
|
50
|
+
name?: string;
|
|
51
|
+
});
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
declare abstract class MastraDeployer extends MastraDeployer$1 {
|
|
55
|
+
constructor(args: {
|
|
56
|
+
name: string;
|
|
57
|
+
mastraDir: string;
|
|
58
|
+
outputDirectory: string;
|
|
59
|
+
});
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
declare abstract class MastraStorage extends MastraStorage$1 {
|
|
63
|
+
constructor({ name }: {
|
|
64
|
+
name: string;
|
|
65
|
+
});
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
declare class Integration<ToolsParams = void, ApiClient = void> extends Integration$1<ToolsParams, ApiClient> {
|
|
69
|
+
constructor();
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
declare abstract class OpenAPIToolset extends OpenAPIToolset$1 {
|
|
73
|
+
constructor();
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
declare abstract class MastraMemory extends MastraMemory$1 {
|
|
77
|
+
constructor(_arg?: any);
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
declare abstract class MastraTTS extends MastraTTS$1 {
|
|
81
|
+
constructor(args: TTSConfig);
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
declare abstract class MastraVector extends MastraVector$1 {
|
|
85
|
+
constructor();
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
declare class Workflow<TEngineType = DefaultEngineType, TSteps extends Step<string, any, any, any, any, TEngineType>[] = Step<string, any, any, any, any, TEngineType>[], 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<TEngineType, TSteps, TWorkflowId, TInput, TOutput, TPrevSchema> {
|
|
89
|
+
constructor(args: WorkflowConfig<TWorkflowId, TInput, TOutput, TSteps>);
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
export { Agent, DefaultEngineType, Integration, MastraBase, MastraDeployer, MastraMemory, MastraStorage, MastraTTS, MastraVector, Metric, OpenAPIToolset, Step, TTSConfig, ToolAction, Workflow, WorkflowConfig };
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,92 @@
|
|
|
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 { c as ToolAction, A as Agent$1, av as AgentConfig, o as MastraStorage$1, b as MastraMemory$1, aw as DefaultEngineType, f as Step, e as Workflow$1, ax as WorkflowConfig } from './base-qVqAnB-c.js';
|
|
4
|
+
export { aG as BaseStructuredOutputType, aX as Config, aB as CoreAssistantMessage, az as CoreMessage, aA as CoreSystemMessage, C as CoreTool, aD as CoreToolMessage, aC as CoreUserMessage, aQ as DefaultLLMStreamObjectOptions, aP as DefaultLLMStreamOptions, aO as DefaultLLMTextObjectOptions, aN as DefaultLLMTextOptions, aZ as DynamicArgument, bw as DynamicMapping, aF as EmbedManyResult, aE as EmbedResult, bo as Emitter, E as EvalRow, bn as ExecuteFunction, bm as ExecutionEngine, bl as ExecutionGraph, bz as ExtractSchemaFromStep, by as ExtractSchemaType, aK as GenerateReturn, at as InternalCoreTool, aU as LLMInnerStreamOptions, aV as LLMStreamObjectOptions, aT as LLMStreamOptions, aS as LLMTextObjectOptions, aR as LLMTextOptions, ay as LanguageModel, z as LegacyWorkflowRun, y as LegacyWorkflowRuns, M as Mastra, aY as MastraLanguageModel, v as MastraMessageV1, t as MastraMessageV2, b1 as MemoryConfig, b7 as MemoryProcessor, b6 as MemoryProcessorOpts, a$ as MessageResponse, a_ as MessageType, aM as OutputType, B as PaginationArgs, P as PaginationInfo, bx as PathsToStringProps, bk as Run, bb as SerializedStep, bc as SerializedStepFlowEntry, b2 as SharedMemoryConfig, bq as StepFailure, ba as StepFlowEntry, bu as StepResult, bs as StepRunning, bp as StepSuccess, br as StepSuspended, bt as StepWaiting, bd as StepWithComponent, bv as StepsRecord, q as StorageColumn, u as StorageGetMessagesArg, D as StorageGetTracesArg, s as StorageResourceType, r as StorageThreadType, bB as StreamEvent, aL as StreamReturn, aJ as StructuredOutput, aI as StructuredOutputArrayItem, aH as StructuredOutputType, b9 as Tool, au as ToolExecutionContext, b3 as TraceType, bA as VariableReference, V as VercelTool, bD as WatchEvent, bj as WorkflowResult, x as WorkflowRun, bF as WorkflowRunState, bC as WorkflowRunStatus, w as WorkflowRuns, b0 as WorkingMemory, b4 as WorkingMemoryFormat, b5 as WorkingMemoryTemplate, bE as ZodPathType, bg as cloneStep, bi as cloneWorkflow, aW as createMockModel, bf as createStep, as as createTool, bh as createWorkflow, be as mapVariable, b8 as memoryDefaultOptions } from './base-qVqAnB-c.js';
|
|
5
|
+
import { M as MastraBase$1 } from './base-ClrXcCRx.js';
|
|
6
|
+
export { O as OtelConfig, S as SamplingStrategy, a as Telemetry, T as Trace } from './base-ClrXcCRx.js';
|
|
7
|
+
import { R as RegisteredLogger } from './logger-Bpa2oLL4.js';
|
|
8
|
+
import { MastraDeployer as MastraDeployer$1 } from './deployer/index.js';
|
|
9
|
+
export { evaluate } from './eval/index.js';
|
|
10
|
+
import { Integration as Integration$1, OpenAPIToolset as OpenAPIToolset$1 } from './integration/index.js';
|
|
11
|
+
export { CohereRelevanceScorer, MastraAgentRelevanceScorer, RelevanceScoreProvider, createSimilarityPrompt } from './relevance/index.js';
|
|
12
|
+
export { InstrumentClass, OTLPStorageExporter, getBaggageValues, hasActiveTelemetry, withSpan } from './telemetry/index.js';
|
|
13
|
+
import { MastraTTS as MastraTTS$1, TTSConfig } from './tts/index.js';
|
|
14
|
+
export { TagMaskOptions, ToolOptions, checkEvalStorageFields, createMastraProxy, deepMerge, delay, ensureToolProperties, generateEmptyFromSchema, isCoreMessage, isUiMessage, isZodType, makeCoreTool, maskStreamTags, parseFieldKey, parseSqlIdentifier, resolveSerializedZodOutput } from './utils.js';
|
|
15
|
+
import { MastraVector as MastraVector$1 } from './vector/index.js';
|
|
16
|
+
export { CreateIndexParams, DeleteIndexParams, DeleteVectorParams, DescribeIndexParams, IndexStats, QueryResult, QueryVectorParams, UpdateVectorParams, UpsertVectorParams } from './vector/index.js';
|
|
17
|
+
import { z } from 'zod';
|
|
18
|
+
export { DefaultExecutionEngine, ExecutionContext } from './workflows/index.js';
|
|
19
|
+
export { AvailableHooks, executeHook, registerHook } from './hooks/index.js';
|
|
20
|
+
export { Message as AiMessageType } from 'ai';
|
|
21
|
+
import 'json-schema';
|
|
22
|
+
import 'sift';
|
|
23
|
+
import './runtime-context/index.js';
|
|
24
|
+
import '@opentelemetry/api';
|
|
25
|
+
import 'xstate';
|
|
26
|
+
import 'node:events';
|
|
27
|
+
import 'node:http';
|
|
28
|
+
import 'hono';
|
|
29
|
+
import 'stream/web';
|
|
30
|
+
import './vector/filter/index.js';
|
|
31
|
+
import 'events';
|
|
32
|
+
import 'node:stream/web';
|
|
33
|
+
import './workflows/constants.js';
|
|
34
|
+
import 'ai/test';
|
|
35
|
+
import 'hono/cors';
|
|
36
|
+
import 'hono-openapi';
|
|
37
|
+
import '@opentelemetry/sdk-trace-base';
|
|
38
|
+
import './error/index.js';
|
|
39
|
+
import 'stream';
|
|
40
|
+
import './bundler/index.js';
|
|
41
|
+
import '@opentelemetry/core';
|
|
42
|
+
|
|
43
|
+
declare class Agent<TAgentId extends string = string, TTools extends Record<string, ToolAction<any, any, any>> = Record<string, ToolAction<any, any, any>>, TMetrics extends Record<string, Metric> = Record<string, Metric>> extends Agent$1<TAgentId, TTools, TMetrics> {
|
|
44
|
+
constructor(config: AgentConfig<TAgentId, TTools, TMetrics>);
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
declare class MastraBase extends MastraBase$1 {
|
|
48
|
+
constructor(args: {
|
|
49
|
+
component?: RegisteredLogger;
|
|
50
|
+
name?: string;
|
|
51
|
+
});
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
declare abstract class MastraDeployer extends MastraDeployer$1 {
|
|
55
|
+
constructor(args: {
|
|
56
|
+
name: string;
|
|
57
|
+
mastraDir: string;
|
|
58
|
+
outputDirectory: string;
|
|
59
|
+
});
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
declare abstract class MastraStorage extends MastraStorage$1 {
|
|
63
|
+
constructor({ name }: {
|
|
64
|
+
name: string;
|
|
65
|
+
});
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
declare class Integration<ToolsParams = void, ApiClient = void> extends Integration$1<ToolsParams, ApiClient> {
|
|
69
|
+
constructor();
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
declare abstract class OpenAPIToolset extends OpenAPIToolset$1 {
|
|
73
|
+
constructor();
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
declare abstract class MastraMemory extends MastraMemory$1 {
|
|
77
|
+
constructor(_arg?: any);
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
declare abstract class MastraTTS extends MastraTTS$1 {
|
|
81
|
+
constructor(args: TTSConfig);
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
declare abstract class MastraVector extends MastraVector$1 {
|
|
85
|
+
constructor();
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
declare class Workflow<TEngineType = DefaultEngineType, TSteps extends Step<string, any, any, any, any, TEngineType>[] = Step<string, any, any, any, any, TEngineType>[], 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<TEngineType, TSteps, TWorkflowId, TInput, TOutput, TPrevSchema> {
|
|
89
|
+
constructor(args: WorkflowConfig<TWorkflowId, TInput, TOutput, TSteps>);
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
export { Agent, DefaultEngineType, Integration, MastraBase, MastraDeployer, MastraMemory, MastraStorage, MastraTTS, MastraVector, Metric, OpenAPIToolset, Step, TTSConfig, ToolAction, Workflow, WorkflowConfig };
|
package/dist/index.js
ADDED
|
@@ -0,0 +1,112 @@
|
|
|
1
|
+
import { MastraTTS } from './chunk-GH2KM66J.js';
|
|
2
|
+
import { MastraVector } from './chunk-V5D2LIF5.js';
|
|
3
|
+
import { Workflow } from './chunk-AOWJUV2N.js';
|
|
4
|
+
export { DefaultExecutionEngine, ExecutionEngine, Run, cloneStep, cloneWorkflow, createStep, createWorkflow, mapVariable } from './chunk-AOWJUV2N.js';
|
|
5
|
+
import { MastraMemory } from './chunk-J62R4M7K.js';
|
|
6
|
+
export { MemoryProcessor, memoryDefaultOptions } from './chunk-J62R4M7K.js';
|
|
7
|
+
export { CohereRelevanceScorer, MastraAgentRelevanceScorer, createSimilarityPrompt } from './chunk-RVFWMGGR.js';
|
|
8
|
+
import { MastraStorage } from './chunk-FL5SZ2XU.js';
|
|
9
|
+
export { Metric, evaluate } from './chunk-AKYTYALY.js';
|
|
10
|
+
import { Integration, OpenAPIToolset } from './chunk-4UWPFBC6.js';
|
|
11
|
+
export { createMockModel } from './chunk-HNEE7IF4.js';
|
|
12
|
+
export { Mastra } from './chunk-7XQIPES3.js';
|
|
13
|
+
import { Agent } from './chunk-MVCHTRVB.js';
|
|
14
|
+
export { AvailableHooks, executeHook, registerHook } from './chunk-BB4KXGBU.js';
|
|
15
|
+
export { InstrumentClass, OTLPTraceExporter as OTLPStorageExporter, Telemetry, getBaggageValues, hasActiveTelemetry, withSpan } from './chunk-TC2SCOTE.js';
|
|
16
|
+
export { checkEvalStorageFields, createMastraProxy, deepMerge, delay, ensureToolProperties, generateEmptyFromSchema, isCoreMessage, isUiMessage, isZodType, makeCoreTool, maskStreamTags, parseFieldKey, parseSqlIdentifier, resolveSerializedZodOutput } from './chunk-IBKM5CLQ.js';
|
|
17
|
+
import { Tool } from './chunk-C4LMN2IR.js';
|
|
18
|
+
export { createTool } from './chunk-C4LMN2IR.js';
|
|
19
|
+
import { MastraDeployer } from './chunk-JNMQKJH4.js';
|
|
20
|
+
import { MastraBase } from './chunk-5IEKR756.js';
|
|
21
|
+
|
|
22
|
+
// src/agent/index.warning.ts
|
|
23
|
+
var Agent2 = class extends Agent {
|
|
24
|
+
constructor(config) {
|
|
25
|
+
super(config);
|
|
26
|
+
this.logger.warn('Please import "Agent from "@mastra/core/agent" instead of "@mastra/core"');
|
|
27
|
+
}
|
|
28
|
+
};
|
|
29
|
+
|
|
30
|
+
// src/base.warning.ts
|
|
31
|
+
var MastraBase2 = class extends MastraBase {
|
|
32
|
+
constructor(args) {
|
|
33
|
+
super(args);
|
|
34
|
+
this.logger.warn('Please import "MastraBase" from "@mastra/core/base" instead of "@mastra/core"');
|
|
35
|
+
}
|
|
36
|
+
};
|
|
37
|
+
|
|
38
|
+
// src/deployer/index.warning.ts
|
|
39
|
+
var MastraDeployer2 = class extends MastraDeployer {
|
|
40
|
+
constructor(args) {
|
|
41
|
+
super(args);
|
|
42
|
+
this.logger.warn('Please import "MastraDeployer" from "@mastra/core/deployer" instead of "@mastra/core"');
|
|
43
|
+
}
|
|
44
|
+
};
|
|
45
|
+
|
|
46
|
+
// src/storage/base.warning.ts
|
|
47
|
+
var MastraStorage2 = class extends MastraStorage {
|
|
48
|
+
constructor({ name }) {
|
|
49
|
+
super({
|
|
50
|
+
name
|
|
51
|
+
});
|
|
52
|
+
this.logger.warn('Please import "MastraStorage" from "@mastra/core/storage" instead of "@mastra/core"');
|
|
53
|
+
}
|
|
54
|
+
};
|
|
55
|
+
|
|
56
|
+
// src/integration/integration.warning.ts
|
|
57
|
+
var Integration2 = class extends Integration {
|
|
58
|
+
constructor() {
|
|
59
|
+
super();
|
|
60
|
+
console.warn('Please import "Integration" from "@mastra/core/integration" instead of "@mastra/core"');
|
|
61
|
+
}
|
|
62
|
+
};
|
|
63
|
+
|
|
64
|
+
// src/integration/openapi-toolset.warning.ts
|
|
65
|
+
var OpenAPIToolset2 = class extends OpenAPIToolset {
|
|
66
|
+
constructor() {
|
|
67
|
+
super();
|
|
68
|
+
console.warn('Please import "OpenAPIToolset" from "@mastra/core/integration" instead of "@mastra/core"');
|
|
69
|
+
}
|
|
70
|
+
};
|
|
71
|
+
|
|
72
|
+
// src/memory/index.warning.ts
|
|
73
|
+
var MastraMemory2 = class extends MastraMemory {
|
|
74
|
+
constructor(_arg) {
|
|
75
|
+
super({ name: `Deprecated memory` });
|
|
76
|
+
this.logger.warn('Please import "MastraMemory" from "@mastra/core/memory" instead of "@mastra/core"');
|
|
77
|
+
}
|
|
78
|
+
};
|
|
79
|
+
|
|
80
|
+
// src/tools/index.warning.ts
|
|
81
|
+
var Tool2 = class extends Tool {
|
|
82
|
+
constructor(opts) {
|
|
83
|
+
super(opts);
|
|
84
|
+
console.warn('Please import "Tool" from "@mastra/core/tools" instead of "@mastra/core"');
|
|
85
|
+
}
|
|
86
|
+
};
|
|
87
|
+
|
|
88
|
+
// src/tts/index.warning.ts
|
|
89
|
+
var MastraTTS2 = class extends MastraTTS {
|
|
90
|
+
constructor(args) {
|
|
91
|
+
super(args);
|
|
92
|
+
this.logger.warn('Please import "MastraTTS" from "@mastra/core/tts" instead of "@mastra/core"');
|
|
93
|
+
}
|
|
94
|
+
};
|
|
95
|
+
|
|
96
|
+
// src/vector/index.warning.ts
|
|
97
|
+
var MastraVector2 = class extends MastraVector {
|
|
98
|
+
constructor() {
|
|
99
|
+
super();
|
|
100
|
+
this.logger.warn('Please import "MastraVector" from "@mastra/core/vector" instead of "@mastra/core"');
|
|
101
|
+
}
|
|
102
|
+
};
|
|
103
|
+
|
|
104
|
+
// src/workflows/workflow.warning.ts
|
|
105
|
+
var Workflow2 = class extends Workflow {
|
|
106
|
+
constructor(args) {
|
|
107
|
+
super(args);
|
|
108
|
+
this.logger.warn('Please import "Workflow" from "@mastra/core/workflows" instead of "@mastra/core"');
|
|
109
|
+
}
|
|
110
|
+
};
|
|
111
|
+
|
|
112
|
+
export { Agent2 as Agent, Integration2 as Integration, MastraBase2 as MastraBase, MastraDeployer2 as MastraDeployer, MastraMemory2 as MastraMemory, MastraStorage2 as MastraStorage, MastraTTS2 as MastraTTS, MastraVector2 as MastraVector, OpenAPIToolset2 as OpenAPIToolset, Tool2 as Tool, Workflow2 as Workflow };
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var chunkB7SQOKEC_cjs = require('../chunk-B7SQOKEC.cjs');
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
Object.defineProperty(exports, "Integration", {
|
|
8
|
+
enumerable: true,
|
|
9
|
+
get: function () { return chunkB7SQOKEC_cjs.Integration; }
|
|
10
|
+
});
|
|
11
|
+
Object.defineProperty(exports, "OpenAPIToolset", {
|
|
12
|
+
enumerable: true,
|
|
13
|
+
get: function () { return chunkB7SQOKEC_cjs.OpenAPIToolset; }
|
|
14
|
+
});
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
import { e as Workflow, c as ToolAction } from '../base-CTj7ESwt.cjs';
|
|
2
|
+
import '../base-B_y9sMg0.cjs';
|
|
3
|
+
import 'ai';
|
|
4
|
+
import 'json-schema';
|
|
5
|
+
import 'zod';
|
|
6
|
+
import '../logger-B8XXh6ya.cjs';
|
|
7
|
+
import '../error/index.cjs';
|
|
8
|
+
import 'stream';
|
|
9
|
+
import '../types-Bo1uigWx.cjs';
|
|
10
|
+
import 'sift';
|
|
11
|
+
import '../runtime-context/index.cjs';
|
|
12
|
+
import '@opentelemetry/api';
|
|
13
|
+
import 'xstate';
|
|
14
|
+
import 'node:events';
|
|
15
|
+
import '../vector/index.cjs';
|
|
16
|
+
import '../vector/filter/index.cjs';
|
|
17
|
+
import '../tts/index.cjs';
|
|
18
|
+
import '@opentelemetry/sdk-trace-base';
|
|
19
|
+
import 'node:http';
|
|
20
|
+
import 'hono';
|
|
21
|
+
import 'stream/web';
|
|
22
|
+
import 'events';
|
|
23
|
+
import 'node:stream/web';
|
|
24
|
+
import '../workflows/constants.cjs';
|
|
25
|
+
import 'ai/test';
|
|
26
|
+
import '../deployer/index.cjs';
|
|
27
|
+
import '../bundler/index.cjs';
|
|
28
|
+
import 'hono/cors';
|
|
29
|
+
import 'hono-openapi';
|
|
30
|
+
|
|
31
|
+
declare class Integration<ToolsParams = void, ApiClient = void> {
|
|
32
|
+
name: string;
|
|
33
|
+
private workflows;
|
|
34
|
+
constructor();
|
|
35
|
+
/**
|
|
36
|
+
* Workflows
|
|
37
|
+
*/
|
|
38
|
+
registerWorkflow(name: string, fn: Workflow): void;
|
|
39
|
+
getWorkflows({ serialized }: {
|
|
40
|
+
serialized?: boolean;
|
|
41
|
+
}): Record<string, Workflow>;
|
|
42
|
+
/**
|
|
43
|
+
* TOOLS
|
|
44
|
+
*/
|
|
45
|
+
getStaticTools(_params?: ToolsParams): Record<string, ToolAction<any, any, any>>;
|
|
46
|
+
getTools(_params?: ToolsParams): Promise<Record<string, ToolAction<any, any, any>>>;
|
|
47
|
+
getApiClient(): Promise<ApiClient>;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
declare abstract class OpenAPIToolset {
|
|
51
|
+
abstract readonly name: string;
|
|
52
|
+
abstract readonly tools: Record<string, ToolAction<any, any, any>>;
|
|
53
|
+
authType: string;
|
|
54
|
+
constructor();
|
|
55
|
+
protected get toolSchemas(): any;
|
|
56
|
+
protected get toolDocumentations(): Record<string, {
|
|
57
|
+
comment: string;
|
|
58
|
+
doc?: string;
|
|
59
|
+
}>;
|
|
60
|
+
protected get baseClient(): any;
|
|
61
|
+
getApiClient(): Promise<any>;
|
|
62
|
+
protected _generateIntegrationTools<T>(): T;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
export { Integration, OpenAPIToolset };
|