@mastra/core 0.6.4 → 0.7.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/dist/agent/index.cjs +2 -2
- package/dist/agent/index.d.cts +6 -6
- package/dist/agent/index.d.ts +6 -6
- package/dist/agent/index.js +1 -1
- package/dist/{base-DbCjWM67.d.cts → base-6TZjD_gW.d.cts} +560 -516
- package/dist/{base-CMQiCwHG.d.ts → base-DYeWJ7uK.d.ts} +560 -516
- package/dist/{chunk-B7OACOMS.js → chunk-3PWZCDYW.js} +1 -1
- package/dist/{chunk-4OM3F6KZ.cjs → chunk-5T43A3YE.cjs} +7 -0
- package/dist/{chunk-3OXCRLRW.js → chunk-5YT3KIH3.js} +7 -0
- package/dist/{chunk-YTP2MMIM.cjs → chunk-6ZCLYB53.cjs} +2 -2
- package/dist/{chunk-2DKUBXLZ.cjs → chunk-G5HHCEH3.cjs} +2 -2
- package/dist/{chunk-YLLXAKL2.cjs → chunk-LOPB4SHX.cjs} +91 -15
- package/dist/{chunk-PRNJCD6I.js → chunk-MLWSGLXY.js} +81 -5
- package/dist/{chunk-34GSMLRD.js → chunk-QMSSRQVR.js} +1 -1
- package/dist/{chunk-ZG35KSBA.js → chunk-X4JHAQSU.js} +242 -23
- package/dist/{chunk-33QB276D.cjs → chunk-ZLSEJA42.cjs} +245 -23
- package/dist/eval/index.d.cts +5 -5
- package/dist/eval/index.d.ts +5 -5
- package/dist/index.cjs +49 -37
- package/dist/index.d.cts +5 -5
- package/dist/index.d.ts +5 -5
- package/dist/index.js +6 -6
- package/dist/integration/index.d.cts +6 -6
- package/dist/integration/index.d.ts +6 -6
- package/dist/llm/index.d.cts +8 -8
- package/dist/llm/index.d.ts +8 -8
- package/dist/mastra/index.d.cts +7 -7
- package/dist/mastra/index.d.ts +7 -7
- package/dist/memory/index.cjs +2 -2
- package/dist/memory/index.d.cts +6 -6
- package/dist/memory/index.d.ts +6 -6
- package/dist/memory/index.js +1 -1
- package/dist/network/index.cjs +12 -12
- package/dist/network/index.d.cts +6 -6
- package/dist/network/index.d.ts +6 -6
- package/dist/network/index.js +11 -11
- package/dist/relevance/index.cjs +4 -4
- package/dist/relevance/index.d.cts +11 -11
- package/dist/relevance/index.d.ts +11 -11
- package/dist/relevance/index.js +1 -1
- package/dist/storage/index.d.cts +6 -6
- package/dist/storage/index.d.ts +6 -6
- package/dist/storage/libsql/index.d.cts +6 -6
- package/dist/storage/libsql/index.d.ts +6 -6
- package/dist/telemetry/index.d.cts +6 -6
- package/dist/telemetry/index.d.ts +6 -6
- package/dist/tools/index.d.cts +6 -6
- package/dist/tools/index.d.ts +6 -6
- package/dist/utils.cjs +12 -12
- package/dist/utils.d.cts +5 -5
- package/dist/utils.d.ts +5 -5
- package/dist/utils.js +1 -1
- package/dist/voice/index.d.cts +6 -6
- package/dist/voice/index.d.ts +6 -6
- package/dist/workflows/index.cjs +29 -17
- package/dist/workflows/index.d.cts +24 -14
- package/dist/workflows/index.d.ts +24 -14
- package/dist/workflows/index.js +1 -1
- package/package.json +4 -4
package/dist/network/index.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkLOPB4SHX_cjs = require('../chunk-LOPB4SHX.cjs');
|
|
4
4
|
var chunk2W2GYEYQ_cjs = require('../chunk-2W2GYEYQ.cjs');
|
|
5
5
|
var chunkPL7PVTGF_cjs = require('../chunk-PL7PVTGF.cjs');
|
|
6
6
|
var chunkNPOKIPWC_cjs = require('../chunk-NPOKIPWC.cjs');
|
|
@@ -17,7 +17,7 @@ var AgentNetwork = class extends chunkPL7PVTGF_cjs.MastraBase {
|
|
|
17
17
|
this.#instructions = config.instructions;
|
|
18
18
|
this.#agents = config.agents;
|
|
19
19
|
this.#model = config.model;
|
|
20
|
-
this.#routingAgent = new
|
|
20
|
+
this.#routingAgent = new chunkLOPB4SHX_cjs.Agent({
|
|
21
21
|
name: config.name,
|
|
22
22
|
instructions: this.getInstructions(),
|
|
23
23
|
model: this.#model,
|
|
@@ -44,13 +44,13 @@ var AgentNetwork = class extends chunkPL7PVTGF_cjs.MastraBase {
|
|
|
44
44
|
execute: async ({ context }) => {
|
|
45
45
|
try {
|
|
46
46
|
const actions = context.actions;
|
|
47
|
-
|
|
47
|
+
this.logger.debug(`Executing ${actions.length} specialized agents`);
|
|
48
48
|
const results = await Promise.all(
|
|
49
49
|
actions.map(
|
|
50
50
|
(action) => this.executeAgent(action.agent, [{ role: "user", content: action.input }], action.includeHistory)
|
|
51
51
|
)
|
|
52
52
|
);
|
|
53
|
-
|
|
53
|
+
this.logger.debug("Results:", { results });
|
|
54
54
|
actions.forEach((action, index) => {
|
|
55
55
|
this.#addToAgentHistory(action.agent, {
|
|
56
56
|
input: action.input,
|
|
@@ -61,7 +61,7 @@ var AgentNetwork = class extends chunkPL7PVTGF_cjs.MastraBase {
|
|
|
61
61
|
return actions.map((action, index) => `[${action.agent}]: ${results[index]}`).join("\n\n");
|
|
62
62
|
} catch (err) {
|
|
63
63
|
const error = err;
|
|
64
|
-
|
|
64
|
+
this.logger.error("Error in transmit tool:", { error });
|
|
65
65
|
return `Error executing agents: ${error.message}`;
|
|
66
66
|
}
|
|
67
67
|
}
|
|
@@ -159,11 +159,10 @@ ${interactions.map(
|
|
|
159
159
|
}
|
|
160
160
|
}
|
|
161
161
|
const result = await agent.generate(messagesWithContext);
|
|
162
|
-
console.log(result);
|
|
163
162
|
return result.text;
|
|
164
163
|
} catch (err) {
|
|
165
164
|
const error = err;
|
|
166
|
-
|
|
165
|
+
this.logger.error(`Error executing agent "${agentId}":`, { error });
|
|
167
166
|
return `Unable to execute agent "${agentId}": ${error.message}`;
|
|
168
167
|
}
|
|
169
168
|
}
|
|
@@ -258,29 +257,29 @@ ${interactions.map(
|
|
|
258
257
|
}
|
|
259
258
|
async generate(messages, args) {
|
|
260
259
|
this.#clearNetworkHistoryBeforeRun();
|
|
261
|
-
|
|
260
|
+
this.logger.debug(`AgentNetwork: Starting generation with ${this.#agents.length} available agents`);
|
|
262
261
|
const ops = {
|
|
263
262
|
maxSteps: this.#agents?.length * 10,
|
|
264
263
|
// Default to 10 steps per agent
|
|
265
264
|
...args
|
|
266
265
|
};
|
|
267
|
-
|
|
266
|
+
this.logger.debug(`AgentNetwork: Routing with max steps: ${ops.maxSteps}`);
|
|
268
267
|
const result = await this.#routingAgent.generate(
|
|
269
268
|
messages,
|
|
270
269
|
ops
|
|
271
270
|
);
|
|
272
|
-
|
|
271
|
+
this.logger.debug(`AgentNetwork: Generation complete with ${result.steps?.length || 0} steps`);
|
|
273
272
|
return result;
|
|
274
273
|
}
|
|
275
274
|
async stream(messages, args) {
|
|
276
275
|
this.#clearNetworkHistoryBeforeRun();
|
|
277
|
-
|
|
276
|
+
this.logger.debug(`AgentNetwork: Starting generation with ${this.#agents.length} available agents`);
|
|
278
277
|
const ops = {
|
|
279
278
|
maxSteps: this.#agents?.length * 10,
|
|
280
279
|
// Default to 10 steps per agent
|
|
281
280
|
...args
|
|
282
281
|
};
|
|
283
|
-
|
|
282
|
+
this.logger.debug(`AgentNetwork: Routing with max steps: ${ops.maxSteps}`);
|
|
284
283
|
const result = await this.#routingAgent.stream(
|
|
285
284
|
messages,
|
|
286
285
|
ops
|
|
@@ -288,6 +287,7 @@ ${interactions.map(
|
|
|
288
287
|
return result;
|
|
289
288
|
}
|
|
290
289
|
__registerMastra(p) {
|
|
290
|
+
this.__setLogger(p.getLogger());
|
|
291
291
|
this.#routingAgent.__registerMastra(p);
|
|
292
292
|
for (const agent of this.#agents) {
|
|
293
293
|
if (typeof agent.__registerMastra === "function") {
|
package/dist/network/index.d.cts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { f as AgentNetwork,
|
|
1
|
+
export { f as AgentNetwork, aF as AgentNetworkConfig } from '../base-6TZjD_gW.cjs';
|
|
2
2
|
import 'ai';
|
|
3
3
|
import '../base-ObPJ-w8K.cjs';
|
|
4
4
|
import '@opentelemetry/api';
|
|
@@ -6,14 +6,14 @@ import '../index-CquI0inB.cjs';
|
|
|
6
6
|
import 'stream';
|
|
7
7
|
import 'pino';
|
|
8
8
|
import '@opentelemetry/sdk-trace-base';
|
|
9
|
+
import '../types-CwTG2XyQ.cjs';
|
|
9
10
|
import 'sift';
|
|
10
11
|
import 'zod';
|
|
11
12
|
import 'json-schema';
|
|
12
|
-
import '../types-CwTG2XyQ.cjs';
|
|
13
|
-
import '../deployer/index.cjs';
|
|
14
|
-
import '../bundler/index.cjs';
|
|
15
|
-
import '../vector/index.cjs';
|
|
16
|
-
import '../vector/filter/index.cjs';
|
|
17
13
|
import 'xstate';
|
|
18
14
|
import 'node:events';
|
|
15
|
+
import '../vector/index.cjs';
|
|
16
|
+
import '../vector/filter/index.cjs';
|
|
19
17
|
import '../tts/index.cjs';
|
|
18
|
+
import '../deployer/index.cjs';
|
|
19
|
+
import '../bundler/index.cjs';
|
package/dist/network/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { f as AgentNetwork,
|
|
1
|
+
export { f as AgentNetwork, aF as AgentNetworkConfig } from '../base-DYeWJ7uK.js';
|
|
2
2
|
import 'ai';
|
|
3
3
|
import '../base-Cmunaaxb.js';
|
|
4
4
|
import '@opentelemetry/api';
|
|
@@ -6,14 +6,14 @@ import '../index-CquI0inB.js';
|
|
|
6
6
|
import 'stream';
|
|
7
7
|
import 'pino';
|
|
8
8
|
import '@opentelemetry/sdk-trace-base';
|
|
9
|
+
import '../types-CwTG2XyQ.js';
|
|
9
10
|
import 'sift';
|
|
10
11
|
import 'zod';
|
|
11
12
|
import 'json-schema';
|
|
12
|
-
import '../types-CwTG2XyQ.js';
|
|
13
|
-
import '../deployer/index.js';
|
|
14
|
-
import '../bundler/index.js';
|
|
15
|
-
import '../vector/index.js';
|
|
16
|
-
import '../vector/filter/index.js';
|
|
17
13
|
import 'xstate';
|
|
18
14
|
import 'node:events';
|
|
15
|
+
import '../vector/index.js';
|
|
16
|
+
import '../vector/filter/index.js';
|
|
19
17
|
import '../tts/index.js';
|
|
18
|
+
import '../deployer/index.js';
|
|
19
|
+
import '../bundler/index.js';
|
package/dist/network/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Agent } from '../chunk-
|
|
1
|
+
import { Agent } from '../chunk-MLWSGLXY.js';
|
|
2
2
|
import { createTool } from '../chunk-ZINPRHAN.js';
|
|
3
3
|
import { MastraBase } from '../chunk-VN4M67DA.js';
|
|
4
4
|
import { RegisteredLogger } from '../chunk-L7CR75HA.js';
|
|
@@ -42,13 +42,13 @@ var AgentNetwork = class extends MastraBase {
|
|
|
42
42
|
execute: async ({ context }) => {
|
|
43
43
|
try {
|
|
44
44
|
const actions = context.actions;
|
|
45
|
-
|
|
45
|
+
this.logger.debug(`Executing ${actions.length} specialized agents`);
|
|
46
46
|
const results = await Promise.all(
|
|
47
47
|
actions.map(
|
|
48
48
|
(action) => this.executeAgent(action.agent, [{ role: "user", content: action.input }], action.includeHistory)
|
|
49
49
|
)
|
|
50
50
|
);
|
|
51
|
-
|
|
51
|
+
this.logger.debug("Results:", { results });
|
|
52
52
|
actions.forEach((action, index) => {
|
|
53
53
|
this.#addToAgentHistory(action.agent, {
|
|
54
54
|
input: action.input,
|
|
@@ -59,7 +59,7 @@ var AgentNetwork = class extends MastraBase {
|
|
|
59
59
|
return actions.map((action, index) => `[${action.agent}]: ${results[index]}`).join("\n\n");
|
|
60
60
|
} catch (err) {
|
|
61
61
|
const error = err;
|
|
62
|
-
|
|
62
|
+
this.logger.error("Error in transmit tool:", { error });
|
|
63
63
|
return `Error executing agents: ${error.message}`;
|
|
64
64
|
}
|
|
65
65
|
}
|
|
@@ -157,11 +157,10 @@ ${interactions.map(
|
|
|
157
157
|
}
|
|
158
158
|
}
|
|
159
159
|
const result = await agent.generate(messagesWithContext);
|
|
160
|
-
console.log(result);
|
|
161
160
|
return result.text;
|
|
162
161
|
} catch (err) {
|
|
163
162
|
const error = err;
|
|
164
|
-
|
|
163
|
+
this.logger.error(`Error executing agent "${agentId}":`, { error });
|
|
165
164
|
return `Unable to execute agent "${agentId}": ${error.message}`;
|
|
166
165
|
}
|
|
167
166
|
}
|
|
@@ -256,29 +255,29 @@ ${interactions.map(
|
|
|
256
255
|
}
|
|
257
256
|
async generate(messages, args) {
|
|
258
257
|
this.#clearNetworkHistoryBeforeRun();
|
|
259
|
-
|
|
258
|
+
this.logger.debug(`AgentNetwork: Starting generation with ${this.#agents.length} available agents`);
|
|
260
259
|
const ops = {
|
|
261
260
|
maxSteps: this.#agents?.length * 10,
|
|
262
261
|
// Default to 10 steps per agent
|
|
263
262
|
...args
|
|
264
263
|
};
|
|
265
|
-
|
|
264
|
+
this.logger.debug(`AgentNetwork: Routing with max steps: ${ops.maxSteps}`);
|
|
266
265
|
const result = await this.#routingAgent.generate(
|
|
267
266
|
messages,
|
|
268
267
|
ops
|
|
269
268
|
);
|
|
270
|
-
|
|
269
|
+
this.logger.debug(`AgentNetwork: Generation complete with ${result.steps?.length || 0} steps`);
|
|
271
270
|
return result;
|
|
272
271
|
}
|
|
273
272
|
async stream(messages, args) {
|
|
274
273
|
this.#clearNetworkHistoryBeforeRun();
|
|
275
|
-
|
|
274
|
+
this.logger.debug(`AgentNetwork: Starting generation with ${this.#agents.length} available agents`);
|
|
276
275
|
const ops = {
|
|
277
276
|
maxSteps: this.#agents?.length * 10,
|
|
278
277
|
// Default to 10 steps per agent
|
|
279
278
|
...args
|
|
280
279
|
};
|
|
281
|
-
|
|
280
|
+
this.logger.debug(`AgentNetwork: Routing with max steps: ${ops.maxSteps}`);
|
|
282
281
|
const result = await this.#routingAgent.stream(
|
|
283
282
|
messages,
|
|
284
283
|
ops
|
|
@@ -286,6 +285,7 @@ ${interactions.map(
|
|
|
286
285
|
return result;
|
|
287
286
|
}
|
|
288
287
|
__registerMastra(p) {
|
|
288
|
+
this.__setLogger(p.getLogger());
|
|
289
289
|
this.#routingAgent.__registerMastra(p);
|
|
290
290
|
for (const agent of this.#agents) {
|
|
291
291
|
if (typeof agent.__registerMastra === "function") {
|
package/dist/relevance/index.cjs
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunk6ZCLYB53_cjs = require('../chunk-6ZCLYB53.cjs');
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
Object.defineProperty(exports, "CohereRelevanceScorer", {
|
|
8
8
|
enumerable: true,
|
|
9
|
-
get: function () { return
|
|
9
|
+
get: function () { return chunk6ZCLYB53_cjs.CohereRelevanceScorer; }
|
|
10
10
|
});
|
|
11
11
|
Object.defineProperty(exports, "MastraAgentRelevanceScorer", {
|
|
12
12
|
enumerable: true,
|
|
13
|
-
get: function () { return
|
|
13
|
+
get: function () { return chunk6ZCLYB53_cjs.MastraAgentRelevanceScorer; }
|
|
14
14
|
});
|
|
15
15
|
Object.defineProperty(exports, "createSimilarityPrompt", {
|
|
16
16
|
enumerable: true,
|
|
17
|
-
get: function () { return
|
|
17
|
+
get: function () { return chunk6ZCLYB53_cjs.createSimilarityPrompt; }
|
|
18
18
|
});
|
|
@@ -1,22 +1,22 @@
|
|
|
1
|
+
import { az as MastraLanguageModel } from '../base-6TZjD_gW.cjs';
|
|
1
2
|
import '../base-ObPJ-w8K.cjs';
|
|
2
|
-
import { az as MastraLanguageModel } from '../base-DbCjWM67.cjs';
|
|
3
|
-
import '@opentelemetry/api';
|
|
4
|
-
import '../index-CquI0inB.cjs';
|
|
5
|
-
import 'stream';
|
|
6
|
-
import 'pino';
|
|
7
|
-
import '@opentelemetry/sdk-trace-base';
|
|
8
3
|
import 'ai';
|
|
4
|
+
import '../types-CwTG2XyQ.cjs';
|
|
9
5
|
import 'sift';
|
|
10
6
|
import 'zod';
|
|
11
7
|
import 'json-schema';
|
|
12
|
-
import '../
|
|
13
|
-
import '
|
|
14
|
-
import '
|
|
15
|
-
import '
|
|
16
|
-
import '../vector/filter/index.cjs';
|
|
8
|
+
import '../index-CquI0inB.cjs';
|
|
9
|
+
import 'stream';
|
|
10
|
+
import 'pino';
|
|
11
|
+
import '@opentelemetry/api';
|
|
17
12
|
import 'xstate';
|
|
18
13
|
import 'node:events';
|
|
14
|
+
import '../vector/index.cjs';
|
|
15
|
+
import '../vector/filter/index.cjs';
|
|
19
16
|
import '../tts/index.cjs';
|
|
17
|
+
import '@opentelemetry/sdk-trace-base';
|
|
18
|
+
import '../deployer/index.cjs';
|
|
19
|
+
import '../bundler/index.cjs';
|
|
20
20
|
|
|
21
21
|
interface RelevanceScoreProvider {
|
|
22
22
|
getRelevanceScore(text1: string, text2: string): Promise<number>;
|
|
@@ -1,22 +1,22 @@
|
|
|
1
|
+
import { az as MastraLanguageModel } from '../base-DYeWJ7uK.js';
|
|
1
2
|
import '../base-Cmunaaxb.js';
|
|
2
|
-
import { az as MastraLanguageModel } from '../base-CMQiCwHG.js';
|
|
3
|
-
import '@opentelemetry/api';
|
|
4
|
-
import '../index-CquI0inB.js';
|
|
5
|
-
import 'stream';
|
|
6
|
-
import 'pino';
|
|
7
|
-
import '@opentelemetry/sdk-trace-base';
|
|
8
3
|
import 'ai';
|
|
4
|
+
import '../types-CwTG2XyQ.js';
|
|
9
5
|
import 'sift';
|
|
10
6
|
import 'zod';
|
|
11
7
|
import 'json-schema';
|
|
12
|
-
import '../
|
|
13
|
-
import '
|
|
14
|
-
import '
|
|
15
|
-
import '
|
|
16
|
-
import '../vector/filter/index.js';
|
|
8
|
+
import '../index-CquI0inB.js';
|
|
9
|
+
import 'stream';
|
|
10
|
+
import 'pino';
|
|
11
|
+
import '@opentelemetry/api';
|
|
17
12
|
import 'xstate';
|
|
18
13
|
import 'node:events';
|
|
14
|
+
import '../vector/index.js';
|
|
15
|
+
import '../vector/filter/index.js';
|
|
19
16
|
import '../tts/index.js';
|
|
17
|
+
import '@opentelemetry/sdk-trace-base';
|
|
18
|
+
import '../deployer/index.js';
|
|
19
|
+
import '../bundler/index.js';
|
|
20
20
|
|
|
21
21
|
interface RelevanceScoreProvider {
|
|
22
22
|
getRelevanceScore(text1: string, text2: string): Promise<number>;
|
package/dist/relevance/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { CohereRelevanceScorer, MastraAgentRelevanceScorer, createSimilarityPrompt } from '../chunk-
|
|
1
|
+
export { CohereRelevanceScorer, MastraAgentRelevanceScorer, createSimilarityPrompt } from '../chunk-3PWZCDYW.js';
|
package/dist/storage/index.d.cts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { E as EvalRow, g as MastraStorage, i as StorageColumn, l as StorageGetMessagesArg, aK as TABLE_EVALS, aL as TABLE_MESSAGES, h as TABLE_NAMES, aM as TABLE_THREADS, aN as TABLE_TRACES, aJ as TABLE_WORKFLOW_SNAPSHOT, q as WorkflowRow } from '../base-
|
|
1
|
+
export { E as EvalRow, g as MastraStorage, i as StorageColumn, l as StorageGetMessagesArg, aK as TABLE_EVALS, aL as TABLE_MESSAGES, h as TABLE_NAMES, aM as TABLE_THREADS, aN as TABLE_TRACES, aJ as TABLE_WORKFLOW_SNAPSHOT, q as WorkflowRow } from '../base-6TZjD_gW.cjs';
|
|
2
2
|
import 'ai';
|
|
3
3
|
import '../base-ObPJ-w8K.cjs';
|
|
4
4
|
import '@opentelemetry/api';
|
|
@@ -6,14 +6,14 @@ import '../index-CquI0inB.cjs';
|
|
|
6
6
|
import 'stream';
|
|
7
7
|
import 'pino';
|
|
8
8
|
import '@opentelemetry/sdk-trace-base';
|
|
9
|
+
import '../types-CwTG2XyQ.cjs';
|
|
9
10
|
import 'sift';
|
|
10
11
|
import 'zod';
|
|
11
12
|
import 'json-schema';
|
|
12
|
-
import '../types-CwTG2XyQ.cjs';
|
|
13
|
-
import '../deployer/index.cjs';
|
|
14
|
-
import '../bundler/index.cjs';
|
|
15
|
-
import '../vector/index.cjs';
|
|
16
|
-
import '../vector/filter/index.cjs';
|
|
17
13
|
import 'xstate';
|
|
18
14
|
import 'node:events';
|
|
15
|
+
import '../vector/index.cjs';
|
|
16
|
+
import '../vector/filter/index.cjs';
|
|
19
17
|
import '../tts/index.cjs';
|
|
18
|
+
import '../deployer/index.cjs';
|
|
19
|
+
import '../bundler/index.cjs';
|
package/dist/storage/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { E as EvalRow, g as MastraStorage, i as StorageColumn, l as StorageGetMessagesArg, aK as TABLE_EVALS, aL as TABLE_MESSAGES, h as TABLE_NAMES, aM as TABLE_THREADS, aN as TABLE_TRACES, aJ as TABLE_WORKFLOW_SNAPSHOT, q as WorkflowRow } from '../base-
|
|
1
|
+
export { E as EvalRow, g as MastraStorage, i as StorageColumn, l as StorageGetMessagesArg, aK as TABLE_EVALS, aL as TABLE_MESSAGES, h as TABLE_NAMES, aM as TABLE_THREADS, aN as TABLE_TRACES, aJ as TABLE_WORKFLOW_SNAPSHOT, q as WorkflowRow } from '../base-DYeWJ7uK.js';
|
|
2
2
|
import 'ai';
|
|
3
3
|
import '../base-Cmunaaxb.js';
|
|
4
4
|
import '@opentelemetry/api';
|
|
@@ -6,14 +6,14 @@ import '../index-CquI0inB.js';
|
|
|
6
6
|
import 'stream';
|
|
7
7
|
import 'pino';
|
|
8
8
|
import '@opentelemetry/sdk-trace-base';
|
|
9
|
+
import '../types-CwTG2XyQ.js';
|
|
9
10
|
import 'sift';
|
|
10
11
|
import 'zod';
|
|
11
12
|
import 'json-schema';
|
|
12
|
-
import '../types-CwTG2XyQ.js';
|
|
13
|
-
import '../deployer/index.js';
|
|
14
|
-
import '../bundler/index.js';
|
|
15
|
-
import '../vector/index.js';
|
|
16
|
-
import '../vector/filter/index.js';
|
|
17
13
|
import 'xstate';
|
|
18
14
|
import 'node:events';
|
|
15
|
+
import '../vector/index.js';
|
|
16
|
+
import '../vector/filter/index.js';
|
|
19
17
|
import '../tts/index.js';
|
|
18
|
+
import '../deployer/index.js';
|
|
19
|
+
import '../bundler/index.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { g as MastraStorage, h as TABLE_NAMES, i as StorageColumn, j as StorageThreadType, k as MessageType, l as StorageGetMessagesArg, E as EvalRow } from '../../base-
|
|
1
|
+
import { g as MastraStorage, h as TABLE_NAMES, i as StorageColumn, j as StorageThreadType, k as MessageType, l as StorageGetMessagesArg, E as EvalRow } from '../../base-6TZjD_gW.cjs';
|
|
2
2
|
import 'ai';
|
|
3
3
|
import '../../base-ObPJ-w8K.cjs';
|
|
4
4
|
import '@opentelemetry/api';
|
|
@@ -6,17 +6,17 @@ import '../../index-CquI0inB.cjs';
|
|
|
6
6
|
import 'stream';
|
|
7
7
|
import 'pino';
|
|
8
8
|
import '@opentelemetry/sdk-trace-base';
|
|
9
|
+
import '../../types-CwTG2XyQ.cjs';
|
|
9
10
|
import 'sift';
|
|
10
11
|
import 'zod';
|
|
11
12
|
import 'json-schema';
|
|
12
|
-
import '../../types-CwTG2XyQ.cjs';
|
|
13
|
-
import '../../deployer/index.cjs';
|
|
14
|
-
import '../../bundler/index.cjs';
|
|
15
|
-
import '../../vector/index.cjs';
|
|
16
|
-
import '../../vector/filter/index.cjs';
|
|
17
13
|
import 'xstate';
|
|
18
14
|
import 'node:events';
|
|
15
|
+
import '../../vector/index.cjs';
|
|
16
|
+
import '../../vector/filter/index.cjs';
|
|
19
17
|
import '../../tts/index.cjs';
|
|
18
|
+
import '../../deployer/index.cjs';
|
|
19
|
+
import '../../bundler/index.cjs';
|
|
20
20
|
|
|
21
21
|
interface LibSQLConfig {
|
|
22
22
|
url: string;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { g as MastraStorage, h as TABLE_NAMES, i as StorageColumn, j as StorageThreadType, k as MessageType, l as StorageGetMessagesArg, E as EvalRow } from '../../base-
|
|
1
|
+
import { g as MastraStorage, h as TABLE_NAMES, i as StorageColumn, j as StorageThreadType, k as MessageType, l as StorageGetMessagesArg, E as EvalRow } from '../../base-DYeWJ7uK.js';
|
|
2
2
|
import 'ai';
|
|
3
3
|
import '../../base-Cmunaaxb.js';
|
|
4
4
|
import '@opentelemetry/api';
|
|
@@ -6,17 +6,17 @@ import '../../index-CquI0inB.js';
|
|
|
6
6
|
import 'stream';
|
|
7
7
|
import 'pino';
|
|
8
8
|
import '@opentelemetry/sdk-trace-base';
|
|
9
|
+
import '../../types-CwTG2XyQ.js';
|
|
9
10
|
import 'sift';
|
|
10
11
|
import 'zod';
|
|
11
12
|
import 'json-schema';
|
|
12
|
-
import '../../types-CwTG2XyQ.js';
|
|
13
|
-
import '../../deployer/index.js';
|
|
14
|
-
import '../../bundler/index.js';
|
|
15
|
-
import '../../vector/index.js';
|
|
16
|
-
import '../../vector/filter/index.js';
|
|
17
13
|
import 'xstate';
|
|
18
14
|
import 'node:events';
|
|
15
|
+
import '../../vector/index.js';
|
|
16
|
+
import '../../vector/filter/index.js';
|
|
19
17
|
import '../../tts/index.js';
|
|
18
|
+
import '../../deployer/index.js';
|
|
19
|
+
import '../../bundler/index.js';
|
|
20
20
|
|
|
21
21
|
interface LibSQLConfig {
|
|
22
22
|
url: string;
|
|
@@ -3,21 +3,21 @@ import { SpanKind } from '@opentelemetry/api';
|
|
|
3
3
|
import { ExportResult } from '@opentelemetry/core';
|
|
4
4
|
import { SpanExporter, ReadableSpan } from '@opentelemetry/sdk-trace-base';
|
|
5
5
|
import { L as Logger } from '../index-CquI0inB.cjs';
|
|
6
|
-
import { g as MastraStorage } from '../base-
|
|
6
|
+
import { g as MastraStorage } from '../base-6TZjD_gW.cjs';
|
|
7
7
|
import 'stream';
|
|
8
8
|
import 'pino';
|
|
9
9
|
import 'ai';
|
|
10
|
+
import '../types-CwTG2XyQ.cjs';
|
|
10
11
|
import 'sift';
|
|
11
12
|
import 'zod';
|
|
12
13
|
import 'json-schema';
|
|
13
|
-
import '../types-CwTG2XyQ.cjs';
|
|
14
|
-
import '../deployer/index.cjs';
|
|
15
|
-
import '../bundler/index.cjs';
|
|
16
|
-
import '../vector/index.cjs';
|
|
17
|
-
import '../vector/filter/index.cjs';
|
|
18
14
|
import 'xstate';
|
|
19
15
|
import 'node:events';
|
|
16
|
+
import '../vector/index.cjs';
|
|
17
|
+
import '../vector/filter/index.cjs';
|
|
20
18
|
import '../tts/index.cjs';
|
|
19
|
+
import '../deployer/index.cjs';
|
|
20
|
+
import '../bundler/index.cjs';
|
|
21
21
|
|
|
22
22
|
declare function withSpan(options: {
|
|
23
23
|
spanName?: string;
|
|
@@ -3,21 +3,21 @@ import { SpanKind } from '@opentelemetry/api';
|
|
|
3
3
|
import { ExportResult } from '@opentelemetry/core';
|
|
4
4
|
import { SpanExporter, ReadableSpan } from '@opentelemetry/sdk-trace-base';
|
|
5
5
|
import { L as Logger } from '../index-CquI0inB.js';
|
|
6
|
-
import { g as MastraStorage } from '../base-
|
|
6
|
+
import { g as MastraStorage } from '../base-DYeWJ7uK.js';
|
|
7
7
|
import 'stream';
|
|
8
8
|
import 'pino';
|
|
9
9
|
import 'ai';
|
|
10
|
+
import '../types-CwTG2XyQ.js';
|
|
10
11
|
import 'sift';
|
|
11
12
|
import 'zod';
|
|
12
13
|
import 'json-schema';
|
|
13
|
-
import '../types-CwTG2XyQ.js';
|
|
14
|
-
import '../deployer/index.js';
|
|
15
|
-
import '../bundler/index.js';
|
|
16
|
-
import '../vector/index.js';
|
|
17
|
-
import '../vector/filter/index.js';
|
|
18
14
|
import 'xstate';
|
|
19
15
|
import 'node:events';
|
|
16
|
+
import '../vector/index.js';
|
|
17
|
+
import '../vector/filter/index.js';
|
|
20
18
|
import '../tts/index.js';
|
|
19
|
+
import '../deployer/index.js';
|
|
20
|
+
import '../bundler/index.js';
|
|
21
21
|
|
|
22
22
|
declare function withSpan(options: {
|
|
23
23
|
spanName?: string;
|
package/dist/tools/index.d.cts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { C as CoreTool, o as Tool, T as ToolAction, n as ToolExecutionContext, V as VercelTool, $ as createTool } from '../base-
|
|
1
|
+
export { C as CoreTool, o as Tool, T as ToolAction, n as ToolExecutionContext, V as VercelTool, $ as createTool } from '../base-6TZjD_gW.cjs';
|
|
2
2
|
import 'ai';
|
|
3
3
|
import '../base-ObPJ-w8K.cjs';
|
|
4
4
|
import '@opentelemetry/api';
|
|
@@ -6,14 +6,14 @@ import '../index-CquI0inB.cjs';
|
|
|
6
6
|
import 'stream';
|
|
7
7
|
import 'pino';
|
|
8
8
|
import '@opentelemetry/sdk-trace-base';
|
|
9
|
+
import '../types-CwTG2XyQ.cjs';
|
|
9
10
|
import 'sift';
|
|
10
11
|
import 'zod';
|
|
11
12
|
import 'json-schema';
|
|
12
|
-
import '../types-CwTG2XyQ.cjs';
|
|
13
|
-
import '../deployer/index.cjs';
|
|
14
|
-
import '../bundler/index.cjs';
|
|
15
|
-
import '../vector/index.cjs';
|
|
16
|
-
import '../vector/filter/index.cjs';
|
|
17
13
|
import 'xstate';
|
|
18
14
|
import 'node:events';
|
|
15
|
+
import '../vector/index.cjs';
|
|
16
|
+
import '../vector/filter/index.cjs';
|
|
19
17
|
import '../tts/index.cjs';
|
|
18
|
+
import '../deployer/index.cjs';
|
|
19
|
+
import '../bundler/index.cjs';
|
package/dist/tools/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { C as CoreTool, o as Tool, T as ToolAction, n as ToolExecutionContext, V as VercelTool, $ as createTool } from '../base-
|
|
1
|
+
export { C as CoreTool, o as Tool, T as ToolAction, n as ToolExecutionContext, V as VercelTool, $ as createTool } from '../base-DYeWJ7uK.js';
|
|
2
2
|
import 'ai';
|
|
3
3
|
import '../base-Cmunaaxb.js';
|
|
4
4
|
import '@opentelemetry/api';
|
|
@@ -6,14 +6,14 @@ import '../index-CquI0inB.js';
|
|
|
6
6
|
import 'stream';
|
|
7
7
|
import 'pino';
|
|
8
8
|
import '@opentelemetry/sdk-trace-base';
|
|
9
|
+
import '../types-CwTG2XyQ.js';
|
|
9
10
|
import 'sift';
|
|
10
11
|
import 'zod';
|
|
11
12
|
import 'json-schema';
|
|
12
|
-
import '../types-CwTG2XyQ.js';
|
|
13
|
-
import '../deployer/index.js';
|
|
14
|
-
import '../bundler/index.js';
|
|
15
|
-
import '../vector/index.js';
|
|
16
|
-
import '../vector/filter/index.js';
|
|
17
13
|
import 'xstate';
|
|
18
14
|
import 'node:events';
|
|
15
|
+
import '../vector/index.js';
|
|
16
|
+
import '../vector/filter/index.js';
|
|
19
17
|
import '../tts/index.js';
|
|
18
|
+
import '../deployer/index.js';
|
|
19
|
+
import '../bundler/index.js';
|
package/dist/utils.cjs
CHANGED
|
@@ -1,50 +1,50 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunk5T43A3YE_cjs = require('./chunk-5T43A3YE.cjs');
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
Object.defineProperty(exports, "checkEvalStorageFields", {
|
|
8
8
|
enumerable: true,
|
|
9
|
-
get: function () { return
|
|
9
|
+
get: function () { return chunk5T43A3YE_cjs.checkEvalStorageFields; }
|
|
10
10
|
});
|
|
11
11
|
Object.defineProperty(exports, "createMastraProxy", {
|
|
12
12
|
enumerable: true,
|
|
13
|
-
get: function () { return
|
|
13
|
+
get: function () { return chunk5T43A3YE_cjs.createMastraProxy; }
|
|
14
14
|
});
|
|
15
15
|
Object.defineProperty(exports, "deepMerge", {
|
|
16
16
|
enumerable: true,
|
|
17
|
-
get: function () { return
|
|
17
|
+
get: function () { return chunk5T43A3YE_cjs.deepMerge; }
|
|
18
18
|
});
|
|
19
19
|
Object.defineProperty(exports, "delay", {
|
|
20
20
|
enumerable: true,
|
|
21
|
-
get: function () { return
|
|
21
|
+
get: function () { return chunk5T43A3YE_cjs.delay; }
|
|
22
22
|
});
|
|
23
23
|
Object.defineProperty(exports, "ensureToolProperties", {
|
|
24
24
|
enumerable: true,
|
|
25
|
-
get: function () { return
|
|
25
|
+
get: function () { return chunk5T43A3YE_cjs.ensureToolProperties; }
|
|
26
26
|
});
|
|
27
27
|
Object.defineProperty(exports, "isVercelTool", {
|
|
28
28
|
enumerable: true,
|
|
29
|
-
get: function () { return
|
|
29
|
+
get: function () { return chunk5T43A3YE_cjs.isVercelTool; }
|
|
30
30
|
});
|
|
31
31
|
Object.defineProperty(exports, "jsonSchemaPropertiesToTSTypes", {
|
|
32
32
|
enumerable: true,
|
|
33
|
-
get: function () { return
|
|
33
|
+
get: function () { return chunk5T43A3YE_cjs.jsonSchemaPropertiesToTSTypes; }
|
|
34
34
|
});
|
|
35
35
|
Object.defineProperty(exports, "jsonSchemaToModel", {
|
|
36
36
|
enumerable: true,
|
|
37
|
-
get: function () { return
|
|
37
|
+
get: function () { return chunk5T43A3YE_cjs.jsonSchemaToModel; }
|
|
38
38
|
});
|
|
39
39
|
Object.defineProperty(exports, "makeCoreTool", {
|
|
40
40
|
enumerable: true,
|
|
41
|
-
get: function () { return
|
|
41
|
+
get: function () { return chunk5T43A3YE_cjs.makeCoreTool; }
|
|
42
42
|
});
|
|
43
43
|
Object.defineProperty(exports, "maskStreamTags", {
|
|
44
44
|
enumerable: true,
|
|
45
|
-
get: function () { return
|
|
45
|
+
get: function () { return chunk5T43A3YE_cjs.maskStreamTags; }
|
|
46
46
|
});
|
|
47
47
|
Object.defineProperty(exports, "resolveSerializedZodOutput", {
|
|
48
48
|
enumerable: true,
|
|
49
|
-
get: function () { return
|
|
49
|
+
get: function () { return chunk5T43A3YE_cjs.resolveSerializedZodOutput; }
|
|
50
50
|
});
|
package/dist/utils.d.cts
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import { V as VercelTool, T as ToolAction, a as ToolsInput, M as Mastra, b as MastraPrimitives, c as MastraMemory, C as CoreTool, A as Agent, W as Workflow, S as Step, d as StepExecutionContext, e as WorkflowContext, f as AgentNetwork } from './base-
|
|
1
|
+
import { V as VercelTool, T as ToolAction, a as ToolsInput, M as Mastra, b as MastraPrimitives, c as MastraMemory, C as CoreTool, A as Agent, W as Workflow, S as Step, d as StepExecutionContext, e as WorkflowContext, f as AgentNetwork } from './base-6TZjD_gW.cjs';
|
|
2
2
|
import { MastraTTS } from './tts/index.cjs';
|
|
3
3
|
import { MastraVector } from './vector/index.cjs';
|
|
4
|
-
import { M as Metric } from './types-CwTG2XyQ.cjs';
|
|
5
4
|
import { z, ZodObject } from 'zod';
|
|
6
5
|
import { L as Logger } from './index-CquI0inB.cjs';
|
|
6
|
+
import { M as Metric } from './types-CwTG2XyQ.cjs';
|
|
7
7
|
import './base-ObPJ-w8K.cjs';
|
|
8
8
|
import 'ai';
|
|
9
9
|
import 'sift';
|
|
10
10
|
import 'json-schema';
|
|
11
|
-
import './deployer/index.cjs';
|
|
12
|
-
import './bundler/index.cjs';
|
|
13
11
|
import '@opentelemetry/api';
|
|
14
12
|
import 'xstate';
|
|
15
13
|
import 'node:events';
|
|
14
|
+
import './deployer/index.cjs';
|
|
15
|
+
import './bundler/index.cjs';
|
|
16
16
|
import './vector/filter/index.cjs';
|
|
17
17
|
import 'stream';
|
|
18
18
|
import 'pino';
|
|
@@ -89,7 +89,7 @@ declare function makeCoreTool(tool: ToolToConvert, options: ToolOptions, logType
|
|
|
89
89
|
declare function createMastraProxy({ mastra, logger }: {
|
|
90
90
|
mastra: Mastra;
|
|
91
91
|
logger: Logger;
|
|
92
|
-
}): Mastra<Record<string, Agent<any, Record<string, Metric>>>, Record<string, Workflow<Step<string, any, any, StepExecutionContext<any, WorkflowContext<any, Step<string, any, any, any>[], Record<string, any>>>>[], any>>, Record<string, MastraVector>, Record<string, MastraTTS>, Logger, Record<string, AgentNetwork>>;
|
|
92
|
+
}): Mastra<Record<string, Agent<any, Record<string, Metric>>>, Record<string, Workflow<Step<string, any, any, StepExecutionContext<any, WorkflowContext<any, Step<string, any, any, any>[], Record<string, any>>>>[], string, any, any>>, Record<string, MastraVector>, Record<string, MastraTTS>, Logger, Record<string, AgentNetwork>>;
|
|
93
93
|
declare function checkEvalStorageFields(traceObject: any, logger?: Logger): boolean;
|
|
94
94
|
|
|
95
95
|
export { type TagMaskOptions, checkEvalStorageFields, createMastraProxy, deepMerge, delay, ensureToolProperties, isVercelTool, jsonSchemaPropertiesToTSTypes, jsonSchemaToModel, makeCoreTool, maskStreamTags, resolveSerializedZodOutput };
|