@mastra/core 0.9.3 → 0.9.4-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/a2a.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 +2 -2
- package/dist/agent/index.d.cts +4 -3
- package/dist/agent/index.d.ts +4 -3
- package/dist/agent/index.js +1 -1
- package/dist/{base-CeEVvwRi.d.ts → base-4Z34GQL8.d.ts} +1 -1
- package/dist/{base-BCnFhShR.d.ts → base-4hc3EYVz.d.ts} +144 -10
- package/dist/{base-VMWGZau0.d.cts → base-DvwYl4To.d.cts} +144 -10
- package/dist/{base-D9APQt4V.d.cts → base-H7siSAfu.d.cts} +1 -1
- package/dist/base.cjs +2 -2
- package/dist/base.d.cts +2 -2
- package/dist/base.d.ts +2 -2
- package/dist/base.js +1 -1
- package/dist/bundler/index.cjs +2 -2
- package/dist/bundler/index.d.cts +2 -2
- package/dist/bundler/index.d.ts +2 -2
- package/dist/bundler/index.js +1 -1
- package/dist/{chunk-NDAW47QQ.js → chunk-235X76GC.js} +1 -1
- package/dist/{chunk-BMSBIZKD.cjs → chunk-2GXSTMD7.cjs} +2 -2
- package/dist/{chunk-Q6ZDDQOB.js → chunk-2OC4YT6C.js} +1 -1
- package/dist/{chunk-R652KYQW.js → chunk-4OTKXCGD.js} +1 -1
- package/dist/{chunk-OGNJRWRQ.cjs → chunk-5DUFC7TV.cjs} +2 -2
- package/dist/{chunk-SONEVGEJ.js → chunk-62M2N34A.js} +1 -1
- package/dist/{chunk-QQFFJTJ4.cjs → chunk-7EXZJ7KS.cjs} +2 -2
- package/dist/{chunk-2BVZNKLX.js → chunk-CMPPXW4U.js} +2 -1
- package/dist/{chunk-CPONI4EX.js → chunk-CTKNWYK2.js} +1 -1
- package/dist/{chunk-JCBDQUQY.js → chunk-D6GO3MBG.js} +1 -1
- package/dist/{chunk-ZMMZXEOL.cjs → chunk-DFZXG6NK.cjs} +9 -9
- package/dist/{chunk-6NUAJ6AB.cjs → chunk-E4FAXBUV.cjs} +2 -2
- package/dist/{chunk-RO52JMKQ.cjs → chunk-EG74VBSP.cjs} +6 -6
- package/dist/{chunk-EYMLOJ2Q.js → chunk-EGZ7J727.js} +4 -4
- package/dist/{chunk-ZQ7FXUGY.js → chunk-GFFVEANU.js} +34 -22
- package/dist/{chunk-5ENQX4BI.cjs → chunk-GXKODTLA.cjs} +42 -9
- package/dist/{chunk-FXAV2WYX.cjs → chunk-IETVW7QJ.cjs} +35 -24
- package/dist/{chunk-QFJY3MEL.js → chunk-JBJ7KXN5.js} +1 -1
- package/dist/{chunk-6YITFTRU.cjs → chunk-KSCPMPZT.cjs} +2 -2
- package/dist/{chunk-TCL7XDJL.js → chunk-NLBJOFNG.js} +1 -1
- package/dist/{chunk-FVYYXFPR.js → chunk-NOPY74PV.js} +1 -1
- package/dist/{chunk-O7IW545H.cjs → chunk-O44MSFMZ.cjs} +2 -1
- package/dist/{chunk-2PLTE53B.cjs → chunk-OYK2RU6Y.cjs} +50 -25
- package/dist/{chunk-KPOUHZFJ.js → chunk-R2JX75H2.js} +3 -3
- package/dist/{chunk-RE5MNHDE.cjs → chunk-RAQBTCIR.cjs} +2 -2
- package/dist/{chunk-CRHH7KRS.cjs → chunk-RGE4UF6A.cjs} +2 -2
- package/dist/{chunk-KXWR3FNX.cjs → chunk-S7J63JOG.cjs} +2 -2
- package/dist/{chunk-IKZWOULI.js → chunk-SOLXHDNQ.js} +35 -2
- package/dist/{chunk-T5V4W7WU.js → chunk-TAFOICHR.js} +1 -1
- package/dist/{chunk-GUMHVPHG.cjs → chunk-V2Q2FEVO.cjs} +2 -2
- package/dist/{chunk-XYP6MY7U.js → chunk-VG2VXLOG.js} +34 -9
- package/dist/{chunk-37HZ77Z5.cjs → chunk-W3FGUGQZ.cjs} +11 -11
- package/dist/{chunk-DWD7X4KB.js → chunk-W4BSLENO.js} +1 -1
- package/dist/{chunk-ITFMXU6H.cjs → chunk-ZPFKNO6J.cjs} +2 -2
- package/dist/deployer/index.cjs +2 -2
- package/dist/deployer/index.d.cts +2 -2
- package/dist/deployer/index.d.ts +2 -2
- package/dist/deployer/index.js +1 -1
- package/dist/eval/index.d.cts +4 -3
- package/dist/eval/index.d.ts +4 -3
- package/dist/{index-CquI0inB.d.ts → index-QV27jkxQ.d.cts} +1 -0
- package/dist/{index-CquI0inB.d.cts → index-QV27jkxQ.d.ts} +1 -0
- package/dist/index.cjs +99 -99
- package/dist/index.d.cts +7 -6
- package/dist/index.d.ts +7 -6
- package/dist/index.js +18 -18
- package/dist/integration/index.cjs +3 -3
- package/dist/integration/index.d.cts +4 -3
- package/dist/integration/index.d.ts +4 -3
- package/dist/integration/index.js +1 -1
- package/dist/llm/index.d.cts +4 -3
- package/dist/llm/index.d.ts +4 -3
- package/dist/logger/index.cjs +9 -9
- package/dist/logger/index.d.cts +1 -1
- package/dist/logger/index.d.ts +1 -1
- package/dist/logger/index.js +1 -1
- package/dist/mastra/index.cjs +2 -2
- package/dist/mastra/index.d.cts +4 -3
- package/dist/mastra/index.d.ts +4 -3
- package/dist/mastra/index.js +1 -1
- package/dist/mcp/index.cjs +42 -0
- package/dist/mcp/index.d.cts +26 -0
- package/dist/mcp/index.d.ts +26 -0
- package/dist/mcp/index.js +40 -0
- package/dist/memory/index.cjs +4 -4
- package/dist/memory/index.d.cts +4 -3
- package/dist/memory/index.d.ts +4 -3
- package/dist/memory/index.js +1 -1
- package/dist/network/index.cjs +8 -8
- package/dist/network/index.d.cts +4 -3
- package/dist/network/index.d.ts +4 -3
- package/dist/network/index.js +4 -4
- package/dist/relevance/index.cjs +4 -4
- package/dist/relevance/index.d.cts +4 -3
- package/dist/relevance/index.d.ts +4 -3
- package/dist/relevance/index.js +1 -1
- package/dist/server/index.d.cts +4 -3
- package/dist/server/index.d.ts +4 -3
- package/dist/storage/index.cjs +2 -2
- package/dist/storage/index.d.cts +4 -3
- package/dist/storage/index.d.ts +4 -3
- package/dist/storage/index.js +1 -1
- package/dist/storage/libsql/index.cjs +2 -2
- package/dist/storage/libsql/index.d.cts +4 -3
- package/dist/storage/libsql/index.d.ts +4 -3
- package/dist/storage/libsql/index.js +1 -1
- package/dist/telemetry/index.d.cts +4 -3
- package/dist/telemetry/index.d.ts +4 -3
- package/dist/tools/index.cjs +4 -4
- package/dist/tools/index.d.cts +4 -3
- package/dist/tools/index.d.ts +4 -3
- package/dist/tools/index.js +1 -1
- package/dist/tts/index.cjs +2 -2
- package/dist/tts/index.d.cts +2 -2
- package/dist/tts/index.d.ts +2 -2
- package/dist/tts/index.js +1 -1
- package/dist/utils.cjs +12 -12
- package/dist/utils.d.cts +5 -4
- package/dist/utils.d.ts +5 -4
- package/dist/utils.js +1 -1
- package/dist/vector/index.cjs +2 -2
- package/dist/vector/index.d.cts +2 -2
- package/dist/vector/index.d.ts +2 -2
- package/dist/vector/index.js +1 -1
- package/dist/vector/libsql/index.cjs +3 -3
- package/dist/vector/libsql/index.d.cts +2 -2
- package/dist/vector/libsql/index.d.ts +2 -2
- package/dist/vector/libsql/index.js +1 -1
- package/dist/voice/index.cjs +4 -4
- package/dist/voice/index.d.cts +4 -3
- package/dist/voice/index.d.ts +4 -3
- package/dist/voice/index.js +1 -1
- package/dist/workflows/index.cjs +22 -22
- package/dist/workflows/index.d.cts +5 -4
- package/dist/workflows/index.d.ts +5 -4
- package/dist/workflows/index.js +1 -1
- package/dist/workflows/vNext/index.cjs +10 -10
- package/dist/workflows/vNext/index.d.cts +5 -4
- package/dist/workflows/vNext/index.d.ts +5 -4
- package/dist/workflows/vNext/index.js +4 -4
- package/mcp.d.ts +1 -0
- package/package.json +2 -2
package/dist/logger/index.cjs
CHANGED
|
@@ -1,38 +1,38 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkO44MSFMZ_cjs = require('../chunk-O44MSFMZ.cjs');
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
Object.defineProperty(exports, "LogLevel", {
|
|
8
8
|
enumerable: true,
|
|
9
|
-
get: function () { return
|
|
9
|
+
get: function () { return chunkO44MSFMZ_cjs.LogLevel; }
|
|
10
10
|
});
|
|
11
11
|
Object.defineProperty(exports, "Logger", {
|
|
12
12
|
enumerable: true,
|
|
13
|
-
get: function () { return
|
|
13
|
+
get: function () { return chunkO44MSFMZ_cjs.Logger; }
|
|
14
14
|
});
|
|
15
15
|
Object.defineProperty(exports, "LoggerTransport", {
|
|
16
16
|
enumerable: true,
|
|
17
|
-
get: function () { return
|
|
17
|
+
get: function () { return chunkO44MSFMZ_cjs.LoggerTransport; }
|
|
18
18
|
});
|
|
19
19
|
Object.defineProperty(exports, "MultiLogger", {
|
|
20
20
|
enumerable: true,
|
|
21
|
-
get: function () { return
|
|
21
|
+
get: function () { return chunkO44MSFMZ_cjs.MultiLogger; }
|
|
22
22
|
});
|
|
23
23
|
Object.defineProperty(exports, "RegisteredLogger", {
|
|
24
24
|
enumerable: true,
|
|
25
|
-
get: function () { return
|
|
25
|
+
get: function () { return chunkO44MSFMZ_cjs.RegisteredLogger; }
|
|
26
26
|
});
|
|
27
27
|
Object.defineProperty(exports, "combineLoggers", {
|
|
28
28
|
enumerable: true,
|
|
29
|
-
get: function () { return
|
|
29
|
+
get: function () { return chunkO44MSFMZ_cjs.combineLoggers; }
|
|
30
30
|
});
|
|
31
31
|
Object.defineProperty(exports, "createLogger", {
|
|
32
32
|
enumerable: true,
|
|
33
|
-
get: function () { return
|
|
33
|
+
get: function () { return chunkO44MSFMZ_cjs.createLogger; }
|
|
34
34
|
});
|
|
35
35
|
Object.defineProperty(exports, "noopLogger", {
|
|
36
36
|
enumerable: true,
|
|
37
|
-
get: function () { return
|
|
37
|
+
get: function () { return chunkO44MSFMZ_cjs.noopLogger; }
|
|
38
38
|
});
|
package/dist/logger/index.d.cts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import 'stream';
|
|
2
2
|
import 'pino';
|
|
3
|
-
export { B as BaseLogMessage, a as LogLevel, L as Logger, b as LoggerTransport, M as MultiLogger, R as RegisteredLogger, T as TransportMap, c as combineLoggers, e as createLogger, n as noopLogger } from '../index-
|
|
3
|
+
export { B as BaseLogMessage, a as LogLevel, L as Logger, b as LoggerTransport, M as MultiLogger, R as RegisteredLogger, T as TransportMap, c as combineLoggers, e as createLogger, n as noopLogger } from '../index-QV27jkxQ.cjs';
|
package/dist/logger/index.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import 'stream';
|
|
2
2
|
import 'pino';
|
|
3
|
-
export { B as BaseLogMessage, a as LogLevel, L as Logger, b as LoggerTransport, M as MultiLogger, R as RegisteredLogger, T as TransportMap, c as combineLoggers, e as createLogger, n as noopLogger } from '../index-
|
|
3
|
+
export { B as BaseLogMessage, a as LogLevel, L as Logger, b as LoggerTransport, M as MultiLogger, R as RegisteredLogger, T as TransportMap, c as combineLoggers, e as createLogger, n as noopLogger } from '../index-QV27jkxQ.js';
|
package/dist/logger/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { LogLevel, Logger, LoggerTransport, MultiLogger, RegisteredLogger, combineLoggers, createLogger, noopLogger } from '../chunk-
|
|
1
|
+
export { LogLevel, Logger, LoggerTransport, MultiLogger, RegisteredLogger, combineLoggers, createLogger, noopLogger } from '../chunk-CMPPXW4U.js';
|
package/dist/mastra/index.cjs
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkGXKODTLA_cjs = require('../chunk-GXKODTLA.cjs');
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
Object.defineProperty(exports, "Mastra", {
|
|
8
8
|
enumerable: true,
|
|
9
|
-
get: function () { return
|
|
9
|
+
get: function () { return chunkGXKODTLA_cjs.Mastra; }
|
|
10
10
|
});
|
package/dist/mastra/index.d.cts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
export { aj as Config, a as Mastra } from '../base-
|
|
2
|
-
import '../index-
|
|
1
|
+
export { aj as Config, a as Mastra } from '../base-DvwYl4To.cjs';
|
|
2
|
+
import '../index-QV27jkxQ.cjs';
|
|
3
3
|
import '../vector/index.cjs';
|
|
4
|
-
import '../base-
|
|
4
|
+
import '../base-H7siSAfu.cjs';
|
|
5
5
|
import '../tts/index.cjs';
|
|
6
6
|
import '../deployer/index.cjs';
|
|
7
7
|
import 'ai';
|
|
@@ -13,6 +13,7 @@ import '../runtime-context/index.cjs';
|
|
|
13
13
|
import '@opentelemetry/api';
|
|
14
14
|
import 'xstate';
|
|
15
15
|
import 'node:events';
|
|
16
|
+
import 'node:http';
|
|
16
17
|
import 'events';
|
|
17
18
|
import 'hono';
|
|
18
19
|
import 'hono/cors';
|
package/dist/mastra/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
export { aj as Config, a as Mastra } from '../base-
|
|
2
|
-
import '../index-
|
|
1
|
+
export { aj as Config, a as Mastra } from '../base-4hc3EYVz.js';
|
|
2
|
+
import '../index-QV27jkxQ.js';
|
|
3
3
|
import '../vector/index.js';
|
|
4
|
-
import '../base-
|
|
4
|
+
import '../base-4Z34GQL8.js';
|
|
5
5
|
import '../tts/index.js';
|
|
6
6
|
import '../deployer/index.js';
|
|
7
7
|
import 'ai';
|
|
@@ -13,6 +13,7 @@ import '../runtime-context/index.js';
|
|
|
13
13
|
import '@opentelemetry/api';
|
|
14
14
|
import 'xstate';
|
|
15
15
|
import 'node:events';
|
|
16
|
+
import 'node:http';
|
|
16
17
|
import 'events';
|
|
17
18
|
import 'hono';
|
|
18
19
|
import 'hono/cors';
|
package/dist/mastra/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { Mastra } from '../chunk-
|
|
1
|
+
export { Mastra } from '../chunk-SOLXHDNQ.js';
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var chunkEG74VBSP_cjs = require('../chunk-EG74VBSP.cjs');
|
|
4
|
+
var chunkO44MSFMZ_cjs = require('../chunk-O44MSFMZ.cjs');
|
|
5
|
+
|
|
6
|
+
// src/mcp/index.ts
|
|
7
|
+
var MCPServerBase = class extends chunkEG74VBSP_cjs.MastraBase {
|
|
8
|
+
/**
|
|
9
|
+
* Name of the MCP server
|
|
10
|
+
*/
|
|
11
|
+
name;
|
|
12
|
+
/**
|
|
13
|
+
* Version of the MCP server
|
|
14
|
+
*/
|
|
15
|
+
version;
|
|
16
|
+
/**
|
|
17
|
+
* Tools registered with the MCP server
|
|
18
|
+
*/
|
|
19
|
+
convertedTools;
|
|
20
|
+
mastra;
|
|
21
|
+
/**
|
|
22
|
+
* Get a read-only view of the registered tools (for testing/introspection).
|
|
23
|
+
*/
|
|
24
|
+
tools() {
|
|
25
|
+
return this.convertedTools;
|
|
26
|
+
}
|
|
27
|
+
__registerMastra(mastra) {
|
|
28
|
+
this.mastra = mastra;
|
|
29
|
+
}
|
|
30
|
+
/**
|
|
31
|
+
* Constructor for the MCPServerBase
|
|
32
|
+
* @param config Configuration options for the MCP server
|
|
33
|
+
*/
|
|
34
|
+
constructor(config) {
|
|
35
|
+
super({ component: chunkO44MSFMZ_cjs.RegisteredLogger.MCP_SERVER, name: config.name });
|
|
36
|
+
this.name = config.name;
|
|
37
|
+
this.version = config.version;
|
|
38
|
+
this.convertedTools = this.convertTools(config.tools);
|
|
39
|
+
}
|
|
40
|
+
};
|
|
41
|
+
|
|
42
|
+
exports.MCPServerBase = MCPServerBase;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import 'node:http';
|
|
2
|
+
export { b8 as ConvertedTool, b6 as MCPServerBase, b7 as MCPServerConfig, b9 as MCPServerSSEOptions } from '../base-DvwYl4To.cjs';
|
|
3
|
+
import '../base-H7siSAfu.cjs';
|
|
4
|
+
import 'ai';
|
|
5
|
+
import '../types-BtMyV38I.cjs';
|
|
6
|
+
import 'sift';
|
|
7
|
+
import 'zod';
|
|
8
|
+
import 'json-schema';
|
|
9
|
+
import '../index-QV27jkxQ.cjs';
|
|
10
|
+
import 'stream';
|
|
11
|
+
import 'pino';
|
|
12
|
+
import '../runtime-context/index.cjs';
|
|
13
|
+
import '@opentelemetry/api';
|
|
14
|
+
import 'xstate';
|
|
15
|
+
import 'node:events';
|
|
16
|
+
import '../vector/index.cjs';
|
|
17
|
+
import '../vector/filter/index.cjs';
|
|
18
|
+
import '@opentelemetry/sdk-trace-base';
|
|
19
|
+
import '../tts/index.cjs';
|
|
20
|
+
import 'events';
|
|
21
|
+
import '../deployer/index.cjs';
|
|
22
|
+
import '../bundler/index.cjs';
|
|
23
|
+
import 'hono';
|
|
24
|
+
import 'hono/cors';
|
|
25
|
+
import 'hono-openapi';
|
|
26
|
+
import 'ai/test';
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import 'node:http';
|
|
2
|
+
export { b8 as ConvertedTool, b6 as MCPServerBase, b7 as MCPServerConfig, b9 as MCPServerSSEOptions } from '../base-4hc3EYVz.js';
|
|
3
|
+
import '../base-4Z34GQL8.js';
|
|
4
|
+
import 'ai';
|
|
5
|
+
import '../types-BtMyV38I.js';
|
|
6
|
+
import 'sift';
|
|
7
|
+
import 'zod';
|
|
8
|
+
import 'json-schema';
|
|
9
|
+
import '../index-QV27jkxQ.js';
|
|
10
|
+
import 'stream';
|
|
11
|
+
import 'pino';
|
|
12
|
+
import '../runtime-context/index.js';
|
|
13
|
+
import '@opentelemetry/api';
|
|
14
|
+
import 'xstate';
|
|
15
|
+
import 'node:events';
|
|
16
|
+
import '../vector/index.js';
|
|
17
|
+
import '../vector/filter/index.js';
|
|
18
|
+
import '@opentelemetry/sdk-trace-base';
|
|
19
|
+
import '../tts/index.js';
|
|
20
|
+
import 'events';
|
|
21
|
+
import '../deployer/index.js';
|
|
22
|
+
import '../bundler/index.js';
|
|
23
|
+
import 'hono';
|
|
24
|
+
import 'hono/cors';
|
|
25
|
+
import 'hono-openapi';
|
|
26
|
+
import 'ai/test';
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { MastraBase } from '../chunk-235X76GC.js';
|
|
2
|
+
import { RegisteredLogger } from '../chunk-CMPPXW4U.js';
|
|
3
|
+
|
|
4
|
+
// src/mcp/index.ts
|
|
5
|
+
var MCPServerBase = class extends MastraBase {
|
|
6
|
+
/**
|
|
7
|
+
* Name of the MCP server
|
|
8
|
+
*/
|
|
9
|
+
name;
|
|
10
|
+
/**
|
|
11
|
+
* Version of the MCP server
|
|
12
|
+
*/
|
|
13
|
+
version;
|
|
14
|
+
/**
|
|
15
|
+
* Tools registered with the MCP server
|
|
16
|
+
*/
|
|
17
|
+
convertedTools;
|
|
18
|
+
mastra;
|
|
19
|
+
/**
|
|
20
|
+
* Get a read-only view of the registered tools (for testing/introspection).
|
|
21
|
+
*/
|
|
22
|
+
tools() {
|
|
23
|
+
return this.convertedTools;
|
|
24
|
+
}
|
|
25
|
+
__registerMastra(mastra) {
|
|
26
|
+
this.mastra = mastra;
|
|
27
|
+
}
|
|
28
|
+
/**
|
|
29
|
+
* Constructor for the MCPServerBase
|
|
30
|
+
* @param config Configuration options for the MCP server
|
|
31
|
+
*/
|
|
32
|
+
constructor(config) {
|
|
33
|
+
super({ component: RegisteredLogger.MCP_SERVER, name: config.name });
|
|
34
|
+
this.name = config.name;
|
|
35
|
+
this.version = config.version;
|
|
36
|
+
this.convertedTools = this.convertTools(config.tools);
|
|
37
|
+
}
|
|
38
|
+
};
|
|
39
|
+
|
|
40
|
+
export { MCPServerBase };
|
package/dist/memory/index.cjs
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkW3FGUGQZ_cjs = require('../chunk-W3FGUGQZ.cjs');
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
Object.defineProperty(exports, "MastraMemory", {
|
|
8
8
|
enumerable: true,
|
|
9
|
-
get: function () { return
|
|
9
|
+
get: function () { return chunkW3FGUGQZ_cjs.MastraMemory; }
|
|
10
10
|
});
|
|
11
11
|
Object.defineProperty(exports, "MemoryProcessor", {
|
|
12
12
|
enumerable: true,
|
|
13
|
-
get: function () { return
|
|
13
|
+
get: function () { return chunkW3FGUGQZ_cjs.MemoryProcessor; }
|
|
14
14
|
});
|
|
15
15
|
Object.defineProperty(exports, "memoryDefaultOptions", {
|
|
16
16
|
enumerable: true,
|
|
17
|
-
get: function () { return
|
|
17
|
+
get: function () { return chunkW3FGUGQZ_cjs.memoryDefaultOptions; }
|
|
18
18
|
});
|
package/dist/memory/index.d.cts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
export { H as MastraMemory, al as MemoryConfig, ao as MemoryProcessor, an as MemoryProcessorOpts, ak as MessageResponse, d as MessageType, am as SharedMemoryConfig, c as StorageThreadType, ap as memoryDefaultOptions } from '../base-
|
|
1
|
+
export { H as MastraMemory, al as MemoryConfig, ao as MemoryProcessor, an as MemoryProcessorOpts, ak as MessageResponse, d as MessageType, am as SharedMemoryConfig, c as StorageThreadType, ap as memoryDefaultOptions } from '../base-DvwYl4To.cjs';
|
|
2
2
|
export { Message as AiMessageType } from 'ai';
|
|
3
|
-
import '../base-
|
|
3
|
+
import '../base-H7siSAfu.cjs';
|
|
4
4
|
import '@opentelemetry/api';
|
|
5
|
-
import '../index-
|
|
5
|
+
import '../index-QV27jkxQ.cjs';
|
|
6
6
|
import 'stream';
|
|
7
7
|
import 'pino';
|
|
8
8
|
import '@opentelemetry/sdk-trace-base';
|
|
@@ -16,6 +16,7 @@ import 'node:events';
|
|
|
16
16
|
import '../vector/index.cjs';
|
|
17
17
|
import '../vector/filter/index.cjs';
|
|
18
18
|
import '../tts/index.cjs';
|
|
19
|
+
import 'node:http';
|
|
19
20
|
import 'events';
|
|
20
21
|
import '../deployer/index.cjs';
|
|
21
22
|
import '../bundler/index.cjs';
|
package/dist/memory/index.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
export { H as MastraMemory, al as MemoryConfig, ao as MemoryProcessor, an as MemoryProcessorOpts, ak as MessageResponse, d as MessageType, am as SharedMemoryConfig, c as StorageThreadType, ap as memoryDefaultOptions } from '../base-
|
|
1
|
+
export { H as MastraMemory, al as MemoryConfig, ao as MemoryProcessor, an as MemoryProcessorOpts, ak as MessageResponse, d as MessageType, am as SharedMemoryConfig, c as StorageThreadType, ap as memoryDefaultOptions } from '../base-4hc3EYVz.js';
|
|
2
2
|
export { Message as AiMessageType } from 'ai';
|
|
3
|
-
import '../base-
|
|
3
|
+
import '../base-4Z34GQL8.js';
|
|
4
4
|
import '@opentelemetry/api';
|
|
5
|
-
import '../index-
|
|
5
|
+
import '../index-QV27jkxQ.js';
|
|
6
6
|
import 'stream';
|
|
7
7
|
import 'pino';
|
|
8
8
|
import '@opentelemetry/sdk-trace-base';
|
|
@@ -16,6 +16,7 @@ import 'node:events';
|
|
|
16
16
|
import '../vector/index.js';
|
|
17
17
|
import '../vector/filter/index.js';
|
|
18
18
|
import '../tts/index.js';
|
|
19
|
+
import 'node:http';
|
|
19
20
|
import 'events';
|
|
20
21
|
import '../deployer/index.js';
|
|
21
22
|
import '../bundler/index.js';
|
package/dist/memory/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { MastraMemory, MemoryProcessor, memoryDefaultOptions } from '../chunk-
|
|
1
|
+
export { MastraMemory, MemoryProcessor, memoryDefaultOptions } from '../chunk-EGZ7J727.js';
|
package/dist/network/index.cjs
CHANGED
|
@@ -1,23 +1,23 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
var
|
|
5
|
-
var
|
|
6
|
-
var
|
|
3
|
+
var chunkOYK2RU6Y_cjs = require('../chunk-OYK2RU6Y.cjs');
|
|
4
|
+
var chunkIETVW7QJ_cjs = require('../chunk-IETVW7QJ.cjs');
|
|
5
|
+
var chunkEG74VBSP_cjs = require('../chunk-EG74VBSP.cjs');
|
|
6
|
+
var chunkO44MSFMZ_cjs = require('../chunk-O44MSFMZ.cjs');
|
|
7
7
|
var zod = require('zod');
|
|
8
8
|
|
|
9
|
-
var AgentNetwork = class extends
|
|
9
|
+
var AgentNetwork = class extends chunkEG74VBSP_cjs.MastraBase {
|
|
10
10
|
#instructions;
|
|
11
11
|
#agents;
|
|
12
12
|
#model;
|
|
13
13
|
#routingAgent;
|
|
14
14
|
#agentHistory = {};
|
|
15
15
|
constructor(config) {
|
|
16
|
-
super({ component:
|
|
16
|
+
super({ component: chunkO44MSFMZ_cjs.RegisteredLogger.NETWORK, name: "AgentNetwork" });
|
|
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 chunkOYK2RU6Y_cjs.Agent({
|
|
21
21
|
name: config.name,
|
|
22
22
|
instructions: this.getInstructions(),
|
|
23
23
|
model: this.#model,
|
|
@@ -29,7 +29,7 @@ var AgentNetwork = class extends chunkRO52JMKQ_cjs.MastraBase {
|
|
|
29
29
|
}
|
|
30
30
|
getTools() {
|
|
31
31
|
return {
|
|
32
|
-
transmit:
|
|
32
|
+
transmit: chunkIETVW7QJ_cjs.createTool({
|
|
33
33
|
id: "transmit",
|
|
34
34
|
description: "Call one or more specialized agents to handle specific tasks",
|
|
35
35
|
inputSchema: zod.z.object({
|
package/dist/network/index.d.cts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
export {
|
|
1
|
+
export { b5 as AgentNetwork, ba as AgentNetworkConfig } from '../base-DvwYl4To.cjs';
|
|
2
2
|
import 'ai';
|
|
3
|
-
import '../base-
|
|
3
|
+
import '../base-H7siSAfu.cjs';
|
|
4
4
|
import '@opentelemetry/api';
|
|
5
|
-
import '../index-
|
|
5
|
+
import '../index-QV27jkxQ.cjs';
|
|
6
6
|
import 'stream';
|
|
7
7
|
import 'pino';
|
|
8
8
|
import '@opentelemetry/sdk-trace-base';
|
|
@@ -16,6 +16,7 @@ import 'node:events';
|
|
|
16
16
|
import '../vector/index.cjs';
|
|
17
17
|
import '../vector/filter/index.cjs';
|
|
18
18
|
import '../tts/index.cjs';
|
|
19
|
+
import 'node:http';
|
|
19
20
|
import 'events';
|
|
20
21
|
import '../deployer/index.cjs';
|
|
21
22
|
import '../bundler/index.cjs';
|
package/dist/network/index.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
export {
|
|
1
|
+
export { b5 as AgentNetwork, ba as AgentNetworkConfig } from '../base-4hc3EYVz.js';
|
|
2
2
|
import 'ai';
|
|
3
|
-
import '../base-
|
|
3
|
+
import '../base-4Z34GQL8.js';
|
|
4
4
|
import '@opentelemetry/api';
|
|
5
|
-
import '../index-
|
|
5
|
+
import '../index-QV27jkxQ.js';
|
|
6
6
|
import 'stream';
|
|
7
7
|
import 'pino';
|
|
8
8
|
import '@opentelemetry/sdk-trace-base';
|
|
@@ -16,6 +16,7 @@ import 'node:events';
|
|
|
16
16
|
import '../vector/index.js';
|
|
17
17
|
import '../vector/filter/index.js';
|
|
18
18
|
import '../tts/index.js';
|
|
19
|
+
import 'node:http';
|
|
19
20
|
import 'events';
|
|
20
21
|
import '../deployer/index.js';
|
|
21
22
|
import '../bundler/index.js';
|
package/dist/network/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { Agent } from '../chunk-
|
|
2
|
-
import { createTool } from '../chunk-
|
|
3
|
-
import { MastraBase } from '../chunk-
|
|
4
|
-
import { RegisteredLogger } from '../chunk-
|
|
1
|
+
import { Agent } from '../chunk-VG2VXLOG.js';
|
|
2
|
+
import { createTool } from '../chunk-GFFVEANU.js';
|
|
3
|
+
import { MastraBase } from '../chunk-235X76GC.js';
|
|
4
|
+
import { RegisteredLogger } from '../chunk-CMPPXW4U.js';
|
|
5
5
|
import { z } from 'zod';
|
|
6
6
|
|
|
7
7
|
var AgentNetwork = class extends MastraBase {
|
package/dist/relevance/index.cjs
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunk7EXZJ7KS_cjs = require('../chunk-7EXZJ7KS.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 chunk7EXZJ7KS_cjs.CohereRelevanceScorer; }
|
|
10
10
|
});
|
|
11
11
|
Object.defineProperty(exports, "MastraAgentRelevanceScorer", {
|
|
12
12
|
enumerable: true,
|
|
13
|
-
get: function () { return
|
|
13
|
+
get: function () { return chunk7EXZJ7KS_cjs.MastraAgentRelevanceScorer; }
|
|
14
14
|
});
|
|
15
15
|
Object.defineProperty(exports, "createSimilarityPrompt", {
|
|
16
16
|
enumerable: true,
|
|
17
|
-
get: function () { return
|
|
17
|
+
get: function () { return chunk7EXZJ7KS_cjs.createSimilarityPrompt; }
|
|
18
18
|
});
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import '../base-
|
|
2
|
-
import {
|
|
1
|
+
import '../base-H7siSAfu.cjs';
|
|
2
|
+
import { b2 as MastraLanguageModel } from '../base-DvwYl4To.cjs';
|
|
3
3
|
import '@opentelemetry/api';
|
|
4
|
-
import '../index-
|
|
4
|
+
import '../index-QV27jkxQ.cjs';
|
|
5
5
|
import 'stream';
|
|
6
6
|
import 'pino';
|
|
7
7
|
import '@opentelemetry/sdk-trace-base';
|
|
@@ -16,6 +16,7 @@ import 'node:events';
|
|
|
16
16
|
import '../vector/index.cjs';
|
|
17
17
|
import '../vector/filter/index.cjs';
|
|
18
18
|
import '../tts/index.cjs';
|
|
19
|
+
import 'node:http';
|
|
19
20
|
import 'events';
|
|
20
21
|
import '../deployer/index.cjs';
|
|
21
22
|
import '../bundler/index.cjs';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import '../base-
|
|
2
|
-
import {
|
|
1
|
+
import '../base-4Z34GQL8.js';
|
|
2
|
+
import { b2 as MastraLanguageModel } from '../base-4hc3EYVz.js';
|
|
3
3
|
import '@opentelemetry/api';
|
|
4
|
-
import '../index-
|
|
4
|
+
import '../index-QV27jkxQ.js';
|
|
5
5
|
import 'stream';
|
|
6
6
|
import 'pino';
|
|
7
7
|
import '@opentelemetry/sdk-trace-base';
|
|
@@ -16,6 +16,7 @@ import 'node:events';
|
|
|
16
16
|
import '../vector/index.js';
|
|
17
17
|
import '../vector/filter/index.js';
|
|
18
18
|
import '../tts/index.js';
|
|
19
|
+
import 'node:http';
|
|
19
20
|
import 'events';
|
|
20
21
|
import '../deployer/index.js';
|
|
21
22
|
import '../bundler/index.js';
|
package/dist/relevance/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { CohereRelevanceScorer, MastraAgentRelevanceScorer, createSimilarityPrompt } from '../chunk-
|
|
1
|
+
export { CohereRelevanceScorer, MastraAgentRelevanceScorer, createSimilarityPrompt } from '../chunk-62M2N34A.js';
|
package/dist/server/index.d.cts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { Handler, Context, MiddlewareHandler } from 'hono';
|
|
2
2
|
import { DescribeRouteOptions } from 'hono-openapi';
|
|
3
|
-
import { M as Methods, a as Mastra, A as ApiRoute } from '../base-
|
|
3
|
+
import { M as Methods, a as Mastra, A as ApiRoute } from '../base-DvwYl4To.cjs';
|
|
4
4
|
import 'ai';
|
|
5
|
-
import '../base-
|
|
5
|
+
import '../base-H7siSAfu.cjs';
|
|
6
6
|
import '@opentelemetry/api';
|
|
7
|
-
import '../index-
|
|
7
|
+
import '../index-QV27jkxQ.cjs';
|
|
8
8
|
import 'stream';
|
|
9
9
|
import 'pino';
|
|
10
10
|
import '@opentelemetry/sdk-trace-base';
|
|
@@ -18,6 +18,7 @@ import 'node:events';
|
|
|
18
18
|
import '../vector/index.cjs';
|
|
19
19
|
import '../vector/filter/index.cjs';
|
|
20
20
|
import '../tts/index.cjs';
|
|
21
|
+
import 'node:http';
|
|
21
22
|
import 'events';
|
|
22
23
|
import '../deployer/index.cjs';
|
|
23
24
|
import '../bundler/index.cjs';
|
package/dist/server/index.d.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { Handler, Context, MiddlewareHandler } from 'hono';
|
|
2
2
|
import { DescribeRouteOptions } from 'hono-openapi';
|
|
3
|
-
import { M as Methods, a as Mastra, A as ApiRoute } from '../base-
|
|
3
|
+
import { M as Methods, a as Mastra, A as ApiRoute } from '../base-4hc3EYVz.js';
|
|
4
4
|
import 'ai';
|
|
5
|
-
import '../base-
|
|
5
|
+
import '../base-4Z34GQL8.js';
|
|
6
6
|
import '@opentelemetry/api';
|
|
7
|
-
import '../index-
|
|
7
|
+
import '../index-QV27jkxQ.js';
|
|
8
8
|
import 'stream';
|
|
9
9
|
import 'pino';
|
|
10
10
|
import '@opentelemetry/sdk-trace-base';
|
|
@@ -18,6 +18,7 @@ import 'node:events';
|
|
|
18
18
|
import '../vector/index.js';
|
|
19
19
|
import '../vector/filter/index.js';
|
|
20
20
|
import '../tts/index.js';
|
|
21
|
+
import 'node:http';
|
|
21
22
|
import 'events';
|
|
22
23
|
import '../deployer/index.js';
|
|
23
24
|
import '../bundler/index.js';
|
package/dist/storage/index.cjs
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunk5DUFC7TV_cjs = require('../chunk-5DUFC7TV.cjs');
|
|
4
4
|
var chunk6KB5CPBV_cjs = require('../chunk-6KB5CPBV.cjs');
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
8
8
|
Object.defineProperty(exports, "MastraStorage", {
|
|
9
9
|
enumerable: true,
|
|
10
|
-
get: function () { return
|
|
10
|
+
get: function () { return chunk5DUFC7TV_cjs.MastraStorage; }
|
|
11
11
|
});
|
|
12
12
|
Object.defineProperty(exports, "TABLE_EVALS", {
|
|
13
13
|
enumerable: true,
|
package/dist/storage/index.d.cts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
export { E as EvalRow, b as MastraStorage, S as StorageColumn, e as StorageGetMessagesArg,
|
|
1
|
+
export { E as EvalRow, b as MastraStorage, S as StorageColumn, e as StorageGetMessagesArg, bm as TABLE_EVALS, bn as TABLE_MESSAGES, T as TABLE_NAMES, bq as TABLE_SCHEMAS, bo as TABLE_THREADS, bp as TABLE_TRACES, bl as TABLE_WORKFLOW_SNAPSHOT, f as WorkflowRun, W as WorkflowRuns } from '../base-DvwYl4To.cjs';
|
|
2
2
|
import 'ai';
|
|
3
|
-
import '../base-
|
|
3
|
+
import '../base-H7siSAfu.cjs';
|
|
4
4
|
import '@opentelemetry/api';
|
|
5
|
-
import '../index-
|
|
5
|
+
import '../index-QV27jkxQ.cjs';
|
|
6
6
|
import 'stream';
|
|
7
7
|
import 'pino';
|
|
8
8
|
import '@opentelemetry/sdk-trace-base';
|
|
@@ -16,6 +16,7 @@ import 'node:events';
|
|
|
16
16
|
import '../vector/index.cjs';
|
|
17
17
|
import '../vector/filter/index.cjs';
|
|
18
18
|
import '../tts/index.cjs';
|
|
19
|
+
import 'node:http';
|
|
19
20
|
import 'events';
|
|
20
21
|
import '../deployer/index.cjs';
|
|
21
22
|
import '../bundler/index.cjs';
|
package/dist/storage/index.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
export { E as EvalRow, b as MastraStorage, S as StorageColumn, e as StorageGetMessagesArg,
|
|
1
|
+
export { E as EvalRow, b as MastraStorage, S as StorageColumn, e as StorageGetMessagesArg, bm as TABLE_EVALS, bn as TABLE_MESSAGES, T as TABLE_NAMES, bq as TABLE_SCHEMAS, bo as TABLE_THREADS, bp as TABLE_TRACES, bl as TABLE_WORKFLOW_SNAPSHOT, f as WorkflowRun, W as WorkflowRuns } from '../base-4hc3EYVz.js';
|
|
2
2
|
import 'ai';
|
|
3
|
-
import '../base-
|
|
3
|
+
import '../base-4Z34GQL8.js';
|
|
4
4
|
import '@opentelemetry/api';
|
|
5
|
-
import '../index-
|
|
5
|
+
import '../index-QV27jkxQ.js';
|
|
6
6
|
import 'stream';
|
|
7
7
|
import 'pino';
|
|
8
8
|
import '@opentelemetry/sdk-trace-base';
|
|
@@ -16,6 +16,7 @@ import 'node:events';
|
|
|
16
16
|
import '../vector/index.js';
|
|
17
17
|
import '../vector/filter/index.js';
|
|
18
18
|
import '../tts/index.js';
|
|
19
|
+
import 'node:http';
|
|
19
20
|
import 'events';
|
|
20
21
|
import '../deployer/index.js';
|
|
21
22
|
import '../bundler/index.js';
|
package/dist/storage/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { MastraStorage } from '../chunk-
|
|
1
|
+
export { MastraStorage } from '../chunk-TAFOICHR.js';
|
|
2
2
|
export { TABLE_EVALS, TABLE_MESSAGES, TABLE_SCHEMAS, TABLE_THREADS, TABLE_TRACES, TABLE_WORKFLOW_SNAPSHOT } from '../chunk-SEOWDGC2.js';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunk5DUFC7TV_cjs = require('../../chunk-5DUFC7TV.cjs');
|
|
4
4
|
var chunk6KB5CPBV_cjs = require('../../chunk-6KB5CPBV.cjs');
|
|
5
5
|
var path = require('path');
|
|
6
6
|
var client = require('@libsql/client');
|
|
@@ -29,7 +29,7 @@ export const mastra = new Mastra({
|
|
|
29
29
|
}
|
|
30
30
|
`);
|
|
31
31
|
}
|
|
32
|
-
var LibSQLStore = class extends
|
|
32
|
+
var LibSQLStore = class extends chunk5DUFC7TV_cjs.MastraStorage {
|
|
33
33
|
client;
|
|
34
34
|
constructor({ config }) {
|
|
35
35
|
super({ name: `LibSQLStore` });
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { Config } from '@libsql/client';
|
|
2
|
-
import { b as MastraStorage, T as TABLE_NAMES, S as StorageColumn, c as StorageThreadType, d as MessageType, e as StorageGetMessagesArg, E as EvalRow, W as WorkflowRuns, f as WorkflowRun } from '../../base-
|
|
2
|
+
import { b as MastraStorage, T as TABLE_NAMES, S as StorageColumn, c as StorageThreadType, d as MessageType, e as StorageGetMessagesArg, E as EvalRow, W as WorkflowRuns, f as WorkflowRun } from '../../base-DvwYl4To.cjs';
|
|
3
3
|
import 'ai';
|
|
4
|
-
import '../../base-
|
|
4
|
+
import '../../base-H7siSAfu.cjs';
|
|
5
5
|
import '@opentelemetry/api';
|
|
6
|
-
import '../../index-
|
|
6
|
+
import '../../index-QV27jkxQ.cjs';
|
|
7
7
|
import 'stream';
|
|
8
8
|
import 'pino';
|
|
9
9
|
import '@opentelemetry/sdk-trace-base';
|
|
@@ -17,6 +17,7 @@ import 'node:events';
|
|
|
17
17
|
import '../../vector/index.cjs';
|
|
18
18
|
import '../../vector/filter/index.cjs';
|
|
19
19
|
import '../../tts/index.cjs';
|
|
20
|
+
import 'node:http';
|
|
20
21
|
import 'events';
|
|
21
22
|
import '../../deployer/index.cjs';
|
|
22
23
|
import '../../bundler/index.cjs';
|