@mastra/core 0.9.4 → 0.9.5-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.
Files changed (95) hide show
  1. package/dist/agent/index.cjs +2 -2
  2. package/dist/agent/index.d.cts +5 -5
  3. package/dist/agent/index.d.ts +5 -5
  4. package/dist/agent/index.js +1 -1
  5. package/dist/{base-CAEcd6q2.d.cts → base-BV8SNIdm.d.cts} +301 -42
  6. package/dist/{base-BCfssGt6.d.ts → base-CI7Uz2GO.d.ts} +301 -42
  7. package/dist/{chunk-H4CEZSRM.js → chunk-6EPEYXAE.js} +1 -1
  8. package/dist/{chunk-XRGDVLM4.cjs → chunk-BATBI3D4.cjs} +5 -5
  9. package/dist/{chunk-WIKOYZ63.js → chunk-BZUIFK6C.js} +1 -1
  10. package/dist/{chunk-GXKODTLA.cjs → chunk-EYQLTWRJ.cjs} +55 -15
  11. package/dist/{chunk-EJITEVAB.cjs → chunk-F7HNPG53.cjs} +24 -1
  12. package/dist/{chunk-WE36CRQV.cjs → chunk-HKCSQI7G.cjs} +2 -2
  13. package/dist/{chunk-4WABQORE.js → chunk-JMJXBE7L.js} +139 -77
  14. package/dist/{chunk-5JUWUTPJ.cjs → chunk-LF5CE7LU.cjs} +2 -2
  15. package/dist/{chunk-S34QVMKE.js → chunk-MF5BUJO6.js} +21 -2
  16. package/dist/{chunk-WQKOM7XM.cjs → chunk-NQE264UM.cjs} +1 -1
  17. package/dist/{chunk-PEK4TY3P.js → chunk-PU2TNRKO.js} +1 -1
  18. package/dist/{chunk-SOLXHDNQ.js → chunk-RVKA5VUT.js} +51 -11
  19. package/dist/{chunk-FW5RS6WV.js → chunk-RWWUZTAK.js} +4 -4
  20. package/dist/{chunk-66GQROSI.cjs → chunk-S3Y7QBO7.cjs} +15 -15
  21. package/dist/{chunk-NZV4OA6P.js → chunk-SU4O2A72.js} +1 -1
  22. package/dist/{chunk-QHDPLMHB.cjs → chunk-UCZWRJRW.cjs} +8 -8
  23. package/dist/{chunk-QDAMIZY3.cjs → chunk-YNOTY72R.cjs} +140 -78
  24. package/dist/{chunk-CIEPFV6B.js → chunk-ZY2DW2VQ.js} +3 -3
  25. package/dist/eval/index.d.cts +4 -4
  26. package/dist/eval/index.d.ts +4 -4
  27. package/dist/index.cjs +87 -71
  28. package/dist/index.d.cts +4 -4
  29. package/dist/index.d.ts +4 -4
  30. package/dist/index.js +12 -12
  31. package/dist/integration/index.cjs +3 -3
  32. package/dist/integration/index.d.cts +4 -4
  33. package/dist/integration/index.d.ts +4 -4
  34. package/dist/integration/index.js +1 -1
  35. package/dist/llm/index.d.cts +6 -6
  36. package/dist/llm/index.d.ts +6 -6
  37. package/dist/mastra/index.cjs +2 -2
  38. package/dist/mastra/index.d.cts +3 -3
  39. package/dist/mastra/index.d.ts +3 -3
  40. package/dist/mastra/index.js +1 -1
  41. package/dist/mcp/index.cjs +71 -13
  42. package/dist/mcp/index.d.cts +5 -5
  43. package/dist/mcp/index.d.ts +5 -5
  44. package/dist/mcp/index.js +67 -13
  45. package/dist/memory/index.cjs +4 -4
  46. package/dist/memory/index.d.cts +4 -4
  47. package/dist/memory/index.d.ts +4 -4
  48. package/dist/memory/index.js +1 -1
  49. package/dist/network/index.cjs +5 -5
  50. package/dist/network/index.d.cts +4 -4
  51. package/dist/network/index.d.ts +4 -4
  52. package/dist/network/index.js +3 -3
  53. package/dist/relevance/index.cjs +4 -4
  54. package/dist/relevance/index.d.cts +4 -4
  55. package/dist/relevance/index.d.ts +4 -4
  56. package/dist/relevance/index.js +1 -1
  57. package/dist/server/index.d.cts +3 -3
  58. package/dist/server/index.d.ts +3 -3
  59. package/dist/storage/index.d.cts +4 -4
  60. package/dist/storage/index.d.ts +4 -4
  61. package/dist/storage/libsql/index.cjs +15 -8
  62. package/dist/storage/libsql/index.d.cts +4 -4
  63. package/dist/storage/libsql/index.d.ts +4 -4
  64. package/dist/storage/libsql/index.js +15 -8
  65. package/dist/telemetry/index.d.cts +4 -4
  66. package/dist/telemetry/index.d.ts +4 -4
  67. package/dist/tools/index.cjs +4 -4
  68. package/dist/tools/index.d.cts +4 -4
  69. package/dist/tools/index.d.ts +4 -4
  70. package/dist/tools/index.js +1 -1
  71. package/dist/utils.cjs +28 -12
  72. package/dist/utils.d.cts +46 -2
  73. package/dist/utils.d.ts +46 -2
  74. package/dist/utils.js +1 -1
  75. package/dist/vector/index.cjs +2 -2
  76. package/dist/vector/index.d.cts +31 -9
  77. package/dist/vector/index.d.ts +31 -9
  78. package/dist/vector/index.js +1 -1
  79. package/dist/vector/libsql/index.cjs +3 -3
  80. package/dist/vector/libsql/index.d.cts +13 -9
  81. package/dist/vector/libsql/index.d.ts +13 -9
  82. package/dist/vector/libsql/index.js +1 -1
  83. package/dist/voice/index.d.cts +4 -4
  84. package/dist/voice/index.d.ts +4 -4
  85. package/dist/workflows/index.cjs +22 -22
  86. package/dist/workflows/index.d.cts +7 -7
  87. package/dist/workflows/index.d.ts +7 -7
  88. package/dist/workflows/index.js +1 -1
  89. package/dist/workflows/vNext/index.cjs +8 -6
  90. package/dist/workflows/vNext/index.d.cts +5 -5
  91. package/dist/workflows/vNext/index.d.ts +5 -5
  92. package/dist/workflows/vNext/index.js +6 -4
  93. package/package.json +2 -1
  94. /package/dist/{chunk-CTKNWYK2.js → chunk-GH6EMQSO.js} +0 -0
  95. /package/dist/{chunk-RAQBTCIR.cjs → chunk-T6DN4C76.cjs} +0 -0
@@ -2,39 +2,97 @@
2
2
 
3
3
  var chunkEG74VBSP_cjs = require('../chunk-EG74VBSP.cjs');
4
4
  var chunkO44MSFMZ_cjs = require('../chunk-O44MSFMZ.cjs');
5
+ var crypto = require('crypto');
6
+ var slugify = require('@sindresorhus/slugify');
7
+
8
+ function _interopDefault (e) { return e && e.__esModule ? e : { default: e }; }
9
+
10
+ var slugify__default = /*#__PURE__*/_interopDefault(slugify);
5
11
 
6
- // src/mcp/index.ts
7
12
  var MCPServerBase = class extends chunkEG74VBSP_cjs.MastraBase {
8
- /**
9
- * Name of the MCP server
10
- */
13
+ /** Tracks if the server ID has been definitively set. */
14
+ idWasSet = false;
15
+ /** The display name of the MCP server. */
11
16
  name;
12
- /**
13
- * Version of the MCP server
14
- */
17
+ /** The semantic version of the MCP server. */
15
18
  version;
16
- /**
17
- * Tools registered with the MCP server
18
- */
19
+ /** Internal storage for the server's unique ID. */
20
+ _id;
21
+ /** A description of what the MCP server does. */
22
+ description;
23
+ /** Repository information for the server's source code. */
24
+ repository;
25
+ /** The release date of this server version (ISO 8601 string). */
26
+ releaseDate;
27
+ /** Indicates if this version is the latest available. */
28
+ isLatest;
29
+ /** The canonical packaging format (e.g., "npm", "docker"), if applicable. */
30
+ packageCanonical;
31
+ /** Information about installable packages for this server. */
32
+ packages;
33
+ /** Information about remote access points for this server. */
34
+ remotes;
35
+ /** The tools registered with and converted by this MCP server. */
19
36
  convertedTools;
37
+ /** Reference to the Mastra instance if this server is registered with one. */
20
38
  mastra;
21
39
  /**
22
- * Get a read-only view of the registered tools (for testing/introspection).
40
+ * Public getter for the server's unique ID.
41
+ * The ID is set at construction or by Mastra and is read-only afterwards.
42
+ */
43
+ get id() {
44
+ return this._id;
45
+ }
46
+ /**
47
+ * Gets a read-only view of the registered tools.
48
+ * @returns A readonly record of converted tools.
23
49
  */
24
50
  tools() {
25
51
  return this.convertedTools;
26
52
  }
53
+ /**
54
+ * Sets the server's unique ID. This method is typically called by Mastra when
55
+ * registering the server, using the key provided in the Mastra configuration.
56
+ * It ensures the ID is set only once.
57
+ * If an ID was already provided in the MCPServerConfig, this method will be a no-op.
58
+ * @param id The unique ID to assign to the server.
59
+ */
60
+ setId(id) {
61
+ if (this.idWasSet) {
62
+ return;
63
+ }
64
+ this._id = id;
65
+ this.idWasSet = true;
66
+ }
67
+ /**
68
+ * Internal method used by Mastra to register itself with the server.
69
+ * @param mastra The Mastra instance.
70
+ * @internal
71
+ */
27
72
  __registerMastra(mastra) {
28
73
  this.mastra = mastra;
29
74
  }
30
75
  /**
31
- * Constructor for the MCPServerBase
32
- * @param config Configuration options for the MCP server
76
+ * Constructor for the MCPServerBase.
77
+ * @param config Configuration options for the MCP server, including metadata.
33
78
  */
34
79
  constructor(config) {
35
80
  super({ component: chunkO44MSFMZ_cjs.RegisteredLogger.MCP_SERVER, name: config.name });
36
81
  this.name = config.name;
37
82
  this.version = config.version;
83
+ if (config.id) {
84
+ this._id = slugify__default.default(config.id);
85
+ this.idWasSet = true;
86
+ } else {
87
+ this._id = crypto.randomUUID();
88
+ }
89
+ this.description = config.description;
90
+ this.repository = config.repository;
91
+ this.releaseDate = config.releaseDate || (/* @__PURE__ */ new Date()).toISOString();
92
+ this.isLatest = config.isLatest === void 0 ? true : config.isLatest;
93
+ this.packageCanonical = config.packageCanonical;
94
+ this.packages = config.packages;
95
+ this.remotes = config.remotes;
38
96
  this.convertedTools = this.convertTools(config.tools);
39
97
  }
40
98
  };
@@ -1,4 +1,4 @@
1
- export { b8 as ConvertedTool, b6 as MCPServerBase, b7 as MCPServerConfig, bb as MCPServerHTTPOptions, ba as MCPServerHonoSSEOptions, b9 as MCPServerSSEOptions } from '../base-CAEcd6q2.cjs';
1
+ export { bg as ArgumentInfo, bk as CommandInfo, ba as ConvertedTool, bl as EnvironmentVariableInfo, b9 as MCPServerBase, bo as MCPServerConfig, bd as MCPServerHTTPOptions, bc as MCPServerHonoSSEOptions, bb as MCPServerSSEOptions, bi as NamedArgumentInfo, bm as PackageInfo, bh as PositionalArgumentInfo, bn as RemoteInfo, be as Repository, bq as ServerDetailInfo, bp as ServerInfo, bj as SubcommandInfo, bf as VersionDetail } from '../base-BV8SNIdm.cjs';
2
2
  import '../base-H7siSAfu.cjs';
3
3
  import 'ai';
4
4
  import '../types-BtMyV38I.cjs';
@@ -12,12 +12,12 @@ import '../runtime-context/index.cjs';
12
12
  import '@opentelemetry/api';
13
13
  import 'xstate';
14
14
  import 'node:events';
15
- import '../vector/index.cjs';
16
- import '../vector/filter/index.cjs';
17
- import '@opentelemetry/sdk-trace-base';
18
- import '../tts/index.cjs';
19
15
  import 'node:http';
20
16
  import 'hono';
17
+ import '../tts/index.cjs';
18
+ import '@opentelemetry/sdk-trace-base';
19
+ import '../vector/index.cjs';
20
+ import '../vector/filter/index.cjs';
21
21
  import 'events';
22
22
  import '../deployer/index.cjs';
23
23
  import '../bundler/index.cjs';
@@ -1,4 +1,4 @@
1
- export { b8 as ConvertedTool, b6 as MCPServerBase, b7 as MCPServerConfig, bb as MCPServerHTTPOptions, ba as MCPServerHonoSSEOptions, b9 as MCPServerSSEOptions } from '../base-BCfssGt6.js';
1
+ export { bg as ArgumentInfo, bk as CommandInfo, ba as ConvertedTool, bl as EnvironmentVariableInfo, b9 as MCPServerBase, bo as MCPServerConfig, bd as MCPServerHTTPOptions, bc as MCPServerHonoSSEOptions, bb as MCPServerSSEOptions, bi as NamedArgumentInfo, bm as PackageInfo, bh as PositionalArgumentInfo, bn as RemoteInfo, be as Repository, bq as ServerDetailInfo, bp as ServerInfo, bj as SubcommandInfo, bf as VersionDetail } from '../base-CI7Uz2GO.js';
2
2
  import '../base-4Z34GQL8.js';
3
3
  import 'ai';
4
4
  import '../types-BtMyV38I.js';
@@ -12,12 +12,12 @@ import '../runtime-context/index.js';
12
12
  import '@opentelemetry/api';
13
13
  import 'xstate';
14
14
  import 'node:events';
15
- import '../vector/index.js';
16
- import '../vector/filter/index.js';
17
- import '@opentelemetry/sdk-trace-base';
18
- import '../tts/index.js';
19
15
  import 'node:http';
20
16
  import 'hono';
17
+ import '../tts/index.js';
18
+ import '@opentelemetry/sdk-trace-base';
19
+ import '../vector/index.js';
20
+ import '../vector/filter/index.js';
21
21
  import 'events';
22
22
  import '../deployer/index.js';
23
23
  import '../bundler/index.js';
package/dist/mcp/index.js CHANGED
@@ -1,38 +1,92 @@
1
1
  import { MastraBase } from '../chunk-235X76GC.js';
2
2
  import { RegisteredLogger } from '../chunk-CMPPXW4U.js';
3
+ import { randomUUID } from 'node:crypto';
4
+ import slugify from '@sindresorhus/slugify';
3
5
 
4
- // src/mcp/index.ts
5
6
  var MCPServerBase = class extends MastraBase {
6
- /**
7
- * Name of the MCP server
8
- */
7
+ /** Tracks if the server ID has been definitively set. */
8
+ idWasSet = false;
9
+ /** The display name of the MCP server. */
9
10
  name;
10
- /**
11
- * Version of the MCP server
12
- */
11
+ /** The semantic version of the MCP server. */
13
12
  version;
14
- /**
15
- * Tools registered with the MCP server
16
- */
13
+ /** Internal storage for the server's unique ID. */
14
+ _id;
15
+ /** A description of what the MCP server does. */
16
+ description;
17
+ /** Repository information for the server's source code. */
18
+ repository;
19
+ /** The release date of this server version (ISO 8601 string). */
20
+ releaseDate;
21
+ /** Indicates if this version is the latest available. */
22
+ isLatest;
23
+ /** The canonical packaging format (e.g., "npm", "docker"), if applicable. */
24
+ packageCanonical;
25
+ /** Information about installable packages for this server. */
26
+ packages;
27
+ /** Information about remote access points for this server. */
28
+ remotes;
29
+ /** The tools registered with and converted by this MCP server. */
17
30
  convertedTools;
31
+ /** Reference to the Mastra instance if this server is registered with one. */
18
32
  mastra;
19
33
  /**
20
- * Get a read-only view of the registered tools (for testing/introspection).
34
+ * Public getter for the server's unique ID.
35
+ * The ID is set at construction or by Mastra and is read-only afterwards.
36
+ */
37
+ get id() {
38
+ return this._id;
39
+ }
40
+ /**
41
+ * Gets a read-only view of the registered tools.
42
+ * @returns A readonly record of converted tools.
21
43
  */
22
44
  tools() {
23
45
  return this.convertedTools;
24
46
  }
47
+ /**
48
+ * Sets the server's unique ID. This method is typically called by Mastra when
49
+ * registering the server, using the key provided in the Mastra configuration.
50
+ * It ensures the ID is set only once.
51
+ * If an ID was already provided in the MCPServerConfig, this method will be a no-op.
52
+ * @param id The unique ID to assign to the server.
53
+ */
54
+ setId(id) {
55
+ if (this.idWasSet) {
56
+ return;
57
+ }
58
+ this._id = id;
59
+ this.idWasSet = true;
60
+ }
61
+ /**
62
+ * Internal method used by Mastra to register itself with the server.
63
+ * @param mastra The Mastra instance.
64
+ * @internal
65
+ */
25
66
  __registerMastra(mastra) {
26
67
  this.mastra = mastra;
27
68
  }
28
69
  /**
29
- * Constructor for the MCPServerBase
30
- * @param config Configuration options for the MCP server
70
+ * Constructor for the MCPServerBase.
71
+ * @param config Configuration options for the MCP server, including metadata.
31
72
  */
32
73
  constructor(config) {
33
74
  super({ component: RegisteredLogger.MCP_SERVER, name: config.name });
34
75
  this.name = config.name;
35
76
  this.version = config.version;
77
+ if (config.id) {
78
+ this._id = slugify(config.id);
79
+ this.idWasSet = true;
80
+ } else {
81
+ this._id = randomUUID();
82
+ }
83
+ this.description = config.description;
84
+ this.repository = config.repository;
85
+ this.releaseDate = config.releaseDate || (/* @__PURE__ */ new Date()).toISOString();
86
+ this.isLatest = config.isLatest === void 0 ? true : config.isLatest;
87
+ this.packageCanonical = config.packageCanonical;
88
+ this.packages = config.packages;
89
+ this.remotes = config.remotes;
36
90
  this.convertedTools = this.convertTools(config.tools);
37
91
  }
38
92
  };
@@ -1,18 +1,18 @@
1
1
  'use strict';
2
2
 
3
- var chunkQHDPLMHB_cjs = require('../chunk-QHDPLMHB.cjs');
3
+ var chunkUCZWRJRW_cjs = require('../chunk-UCZWRJRW.cjs');
4
4
 
5
5
 
6
6
 
7
7
  Object.defineProperty(exports, "MastraMemory", {
8
8
  enumerable: true,
9
- get: function () { return chunkQHDPLMHB_cjs.MastraMemory; }
9
+ get: function () { return chunkUCZWRJRW_cjs.MastraMemory; }
10
10
  });
11
11
  Object.defineProperty(exports, "MemoryProcessor", {
12
12
  enumerable: true,
13
- get: function () { return chunkQHDPLMHB_cjs.MemoryProcessor; }
13
+ get: function () { return chunkUCZWRJRW_cjs.MemoryProcessor; }
14
14
  });
15
15
  Object.defineProperty(exports, "memoryDefaultOptions", {
16
16
  enumerable: true,
17
- get: function () { return chunkQHDPLMHB_cjs.memoryDefaultOptions; }
17
+ get: function () { return chunkUCZWRJRW_cjs.memoryDefaultOptions; }
18
18
  });
@@ -1,4 +1,4 @@
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-CAEcd6q2.cjs';
1
+ export { I as MastraMemory, ao as MemoryConfig, ar as MemoryProcessor, aq as MemoryProcessorOpts, an as MessageResponse, d as MessageType, ap as SharedMemoryConfig, c as StorageThreadType, as as memoryDefaultOptions } from '../base-BV8SNIdm.cjs';
2
2
  export { Message as AiMessageType } from 'ai';
3
3
  import '../base-H7siSAfu.cjs';
4
4
  import '@opentelemetry/api';
@@ -13,11 +13,11 @@ import 'json-schema';
13
13
  import '../runtime-context/index.cjs';
14
14
  import 'xstate';
15
15
  import 'node:events';
16
- import '../vector/index.cjs';
17
- import '../vector/filter/index.cjs';
18
- import '../tts/index.cjs';
19
16
  import 'node:http';
20
17
  import 'hono';
18
+ import '../tts/index.cjs';
19
+ import '../vector/index.cjs';
20
+ import '../vector/filter/index.cjs';
21
21
  import 'events';
22
22
  import '../deployer/index.cjs';
23
23
  import '../bundler/index.cjs';
@@ -1,4 +1,4 @@
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-BCfssGt6.js';
1
+ export { I as MastraMemory, ao as MemoryConfig, ar as MemoryProcessor, aq as MemoryProcessorOpts, an as MessageResponse, d as MessageType, ap as SharedMemoryConfig, c as StorageThreadType, as as memoryDefaultOptions } from '../base-CI7Uz2GO.js';
2
2
  export { Message as AiMessageType } from 'ai';
3
3
  import '../base-4Z34GQL8.js';
4
4
  import '@opentelemetry/api';
@@ -13,11 +13,11 @@ import 'json-schema';
13
13
  import '../runtime-context/index.js';
14
14
  import 'xstate';
15
15
  import 'node:events';
16
- import '../vector/index.js';
17
- import '../vector/filter/index.js';
18
- import '../tts/index.js';
19
16
  import 'node:http';
20
17
  import 'hono';
18
+ import '../tts/index.js';
19
+ import '../vector/index.js';
20
+ import '../vector/filter/index.js';
21
21
  import 'events';
22
22
  import '../deployer/index.js';
23
23
  import '../bundler/index.js';
@@ -1 +1 @@
1
- export { MastraMemory, MemoryProcessor, memoryDefaultOptions } from '../chunk-CIEPFV6B.js';
1
+ export { MastraMemory, MemoryProcessor, memoryDefaultOptions } from '../chunk-ZY2DW2VQ.js';
@@ -1,7 +1,7 @@
1
1
  'use strict';
2
2
 
3
- var chunk66GQROSI_cjs = require('../chunk-66GQROSI.cjs');
4
- var chunkEJITEVAB_cjs = require('../chunk-EJITEVAB.cjs');
3
+ var chunkS3Y7QBO7_cjs = require('../chunk-S3Y7QBO7.cjs');
4
+ var chunkF7HNPG53_cjs = require('../chunk-F7HNPG53.cjs');
5
5
  var chunkEG74VBSP_cjs = require('../chunk-EG74VBSP.cjs');
6
6
  var chunkO44MSFMZ_cjs = require('../chunk-O44MSFMZ.cjs');
7
7
  var zod = require('zod');
@@ -13,11 +13,11 @@ var AgentNetwork = class extends chunkEG74VBSP_cjs.MastraBase {
13
13
  #routingAgent;
14
14
  #agentHistory = {};
15
15
  constructor(config) {
16
- super({ component: chunkO44MSFMZ_cjs.RegisteredLogger.NETWORK, name: "AgentNetwork" });
16
+ super({ component: chunkO44MSFMZ_cjs.RegisteredLogger.NETWORK, name: config.name || "AgentNetwork" });
17
17
  this.#instructions = config.instructions;
18
18
  this.#agents = config.agents;
19
19
  this.#model = config.model;
20
- this.#routingAgent = new chunk66GQROSI_cjs.Agent({
20
+ this.#routingAgent = new chunkS3Y7QBO7_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 chunkEG74VBSP_cjs.MastraBase {
29
29
  }
30
30
  getTools() {
31
31
  return {
32
- transmit: chunkEJITEVAB_cjs.createTool({
32
+ transmit: chunkF7HNPG53_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({
@@ -1,4 +1,4 @@
1
- export { b5 as AgentNetwork, bc as AgentNetworkConfig } from '../base-CAEcd6q2.cjs';
1
+ export { b8 as AgentNetwork, br as AgentNetworkConfig } from '../base-BV8SNIdm.cjs';
2
2
  import 'ai';
3
3
  import '../base-H7siSAfu.cjs';
4
4
  import '@opentelemetry/api';
@@ -13,11 +13,11 @@ import 'json-schema';
13
13
  import '../runtime-context/index.cjs';
14
14
  import 'xstate';
15
15
  import 'node:events';
16
- import '../vector/index.cjs';
17
- import '../vector/filter/index.cjs';
18
- import '../tts/index.cjs';
19
16
  import 'node:http';
20
17
  import 'hono';
18
+ import '../tts/index.cjs';
19
+ import '../vector/index.cjs';
20
+ import '../vector/filter/index.cjs';
21
21
  import 'events';
22
22
  import '../deployer/index.cjs';
23
23
  import '../bundler/index.cjs';
@@ -1,4 +1,4 @@
1
- export { b5 as AgentNetwork, bc as AgentNetworkConfig } from '../base-BCfssGt6.js';
1
+ export { b8 as AgentNetwork, br as AgentNetworkConfig } from '../base-CI7Uz2GO.js';
2
2
  import 'ai';
3
3
  import '../base-4Z34GQL8.js';
4
4
  import '@opentelemetry/api';
@@ -13,11 +13,11 @@ import 'json-schema';
13
13
  import '../runtime-context/index.js';
14
14
  import 'xstate';
15
15
  import 'node:events';
16
- import '../vector/index.js';
17
- import '../vector/filter/index.js';
18
- import '../tts/index.js';
19
16
  import 'node:http';
20
17
  import 'hono';
18
+ import '../tts/index.js';
19
+ import '../vector/index.js';
20
+ import '../vector/filter/index.js';
21
21
  import 'events';
22
22
  import '../deployer/index.js';
23
23
  import '../bundler/index.js';
@@ -1,5 +1,5 @@
1
- import { Agent } from '../chunk-FW5RS6WV.js';
2
- import { createTool } from '../chunk-S34QVMKE.js';
1
+ import { Agent } from '../chunk-RWWUZTAK.js';
2
+ import { createTool } from '../chunk-MF5BUJO6.js';
3
3
  import { MastraBase } from '../chunk-235X76GC.js';
4
4
  import { RegisteredLogger } from '../chunk-CMPPXW4U.js';
5
5
  import { z } from 'zod';
@@ -11,7 +11,7 @@ var AgentNetwork = class extends MastraBase {
11
11
  #routingAgent;
12
12
  #agentHistory = {};
13
13
  constructor(config) {
14
- super({ component: RegisteredLogger.NETWORK, name: "AgentNetwork" });
14
+ super({ component: RegisteredLogger.NETWORK, name: config.name || "AgentNetwork" });
15
15
  this.#instructions = config.instructions;
16
16
  this.#agents = config.agents;
17
17
  this.#model = config.model;
@@ -1,18 +1,18 @@
1
1
  'use strict';
2
2
 
3
- var chunkWE36CRQV_cjs = require('../chunk-WE36CRQV.cjs');
3
+ var chunkHKCSQI7G_cjs = require('../chunk-HKCSQI7G.cjs');
4
4
 
5
5
 
6
6
 
7
7
  Object.defineProperty(exports, "CohereRelevanceScorer", {
8
8
  enumerable: true,
9
- get: function () { return chunkWE36CRQV_cjs.CohereRelevanceScorer; }
9
+ get: function () { return chunkHKCSQI7G_cjs.CohereRelevanceScorer; }
10
10
  });
11
11
  Object.defineProperty(exports, "MastraAgentRelevanceScorer", {
12
12
  enumerable: true,
13
- get: function () { return chunkWE36CRQV_cjs.MastraAgentRelevanceScorer; }
13
+ get: function () { return chunkHKCSQI7G_cjs.MastraAgentRelevanceScorer; }
14
14
  });
15
15
  Object.defineProperty(exports, "createSimilarityPrompt", {
16
16
  enumerable: true,
17
- get: function () { return chunkWE36CRQV_cjs.createSimilarityPrompt; }
17
+ get: function () { return chunkHKCSQI7G_cjs.createSimilarityPrompt; }
18
18
  });
@@ -1,5 +1,5 @@
1
1
  import '../base-H7siSAfu.cjs';
2
- import { b2 as MastraLanguageModel } from '../base-CAEcd6q2.cjs';
2
+ import { b5 as MastraLanguageModel } from '../base-BV8SNIdm.cjs';
3
3
  import '@opentelemetry/api';
4
4
  import '../index-QV27jkxQ.cjs';
5
5
  import 'stream';
@@ -13,11 +13,11 @@ import 'json-schema';
13
13
  import '../runtime-context/index.cjs';
14
14
  import 'xstate';
15
15
  import 'node:events';
16
- import '../vector/index.cjs';
17
- import '../vector/filter/index.cjs';
18
- import '../tts/index.cjs';
19
16
  import 'node:http';
20
17
  import 'hono';
18
+ import '../tts/index.cjs';
19
+ import '../vector/index.cjs';
20
+ import '../vector/filter/index.cjs';
21
21
  import 'events';
22
22
  import '../deployer/index.cjs';
23
23
  import '../bundler/index.cjs';
@@ -1,5 +1,5 @@
1
1
  import '../base-4Z34GQL8.js';
2
- import { b2 as MastraLanguageModel } from '../base-BCfssGt6.js';
2
+ import { b5 as MastraLanguageModel } from '../base-CI7Uz2GO.js';
3
3
  import '@opentelemetry/api';
4
4
  import '../index-QV27jkxQ.js';
5
5
  import 'stream';
@@ -13,11 +13,11 @@ import 'json-schema';
13
13
  import '../runtime-context/index.js';
14
14
  import 'xstate';
15
15
  import 'node:events';
16
- import '../vector/index.js';
17
- import '../vector/filter/index.js';
18
- import '../tts/index.js';
19
16
  import 'node:http';
20
17
  import 'hono';
18
+ import '../tts/index.js';
19
+ import '../vector/index.js';
20
+ import '../vector/filter/index.js';
21
21
  import 'events';
22
22
  import '../deployer/index.js';
23
23
  import '../bundler/index.js';
@@ -1 +1 @@
1
- export { CohereRelevanceScorer, MastraAgentRelevanceScorer, createSimilarityPrompt } from '../chunk-H4CEZSRM.js';
1
+ export { CohereRelevanceScorer, MastraAgentRelevanceScorer, createSimilarityPrompt } from '../chunk-6EPEYXAE.js';
@@ -1,6 +1,6 @@
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-CAEcd6q2.cjs';
3
+ import { M as Methods, a as Mastra, A as ApiRoute } from '../base-BV8SNIdm.cjs';
4
4
  import 'ai';
5
5
  import '../base-H7siSAfu.cjs';
6
6
  import '@opentelemetry/api';
@@ -15,10 +15,10 @@ import 'json-schema';
15
15
  import '../runtime-context/index.cjs';
16
16
  import 'xstate';
17
17
  import 'node:events';
18
+ import 'node:http';
19
+ import '../tts/index.cjs';
18
20
  import '../vector/index.cjs';
19
21
  import '../vector/filter/index.cjs';
20
- import '../tts/index.cjs';
21
- import 'node:http';
22
22
  import 'events';
23
23
  import '../deployer/index.cjs';
24
24
  import '../bundler/index.cjs';
@@ -1,6 +1,6 @@
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-BCfssGt6.js';
3
+ import { M as Methods, a as Mastra, A as ApiRoute } from '../base-CI7Uz2GO.js';
4
4
  import 'ai';
5
5
  import '../base-4Z34GQL8.js';
6
6
  import '@opentelemetry/api';
@@ -15,10 +15,10 @@ import 'json-schema';
15
15
  import '../runtime-context/index.js';
16
16
  import 'xstate';
17
17
  import 'node:events';
18
+ import 'node:http';
19
+ import '../tts/index.js';
18
20
  import '../vector/index.js';
19
21
  import '../vector/filter/index.js';
20
- import '../tts/index.js';
21
- import 'node:http';
22
22
  import 'events';
23
23
  import '../deployer/index.js';
24
24
  import '../bundler/index.js';
@@ -1,4 +1,4 @@
1
- export { E as EvalRow, b as MastraStorage, S as StorageColumn, e as StorageGetMessagesArg, bo as TABLE_EVALS, bp as TABLE_MESSAGES, T as TABLE_NAMES, bs as TABLE_SCHEMAS, bq as TABLE_THREADS, br as TABLE_TRACES, bn as TABLE_WORKFLOW_SNAPSHOT, f as WorkflowRun, W as WorkflowRuns } from '../base-CAEcd6q2.cjs';
1
+ export { E as EvalRow, b as MastraStorage, S as StorageColumn, e as StorageGetMessagesArg, bD as TABLE_EVALS, bE as TABLE_MESSAGES, T as TABLE_NAMES, bH as TABLE_SCHEMAS, bF as TABLE_THREADS, bG as TABLE_TRACES, bC as TABLE_WORKFLOW_SNAPSHOT, X as VNextWorkflowRun, U as VNextWorkflowRuns, f as WorkflowRun, W as WorkflowRuns } from '../base-BV8SNIdm.cjs';
2
2
  import 'ai';
3
3
  import '../base-H7siSAfu.cjs';
4
4
  import '@opentelemetry/api';
@@ -13,11 +13,11 @@ import 'json-schema';
13
13
  import '../runtime-context/index.cjs';
14
14
  import 'xstate';
15
15
  import 'node:events';
16
- import '../vector/index.cjs';
17
- import '../vector/filter/index.cjs';
18
- import '../tts/index.cjs';
19
16
  import 'node:http';
20
17
  import 'hono';
18
+ import '../tts/index.cjs';
19
+ import '../vector/index.cjs';
20
+ import '../vector/filter/index.cjs';
21
21
  import 'events';
22
22
  import '../deployer/index.cjs';
23
23
  import '../bundler/index.cjs';
@@ -1,4 +1,4 @@
1
- export { E as EvalRow, b as MastraStorage, S as StorageColumn, e as StorageGetMessagesArg, bo as TABLE_EVALS, bp as TABLE_MESSAGES, T as TABLE_NAMES, bs as TABLE_SCHEMAS, bq as TABLE_THREADS, br as TABLE_TRACES, bn as TABLE_WORKFLOW_SNAPSHOT, f as WorkflowRun, W as WorkflowRuns } from '../base-BCfssGt6.js';
1
+ export { E as EvalRow, b as MastraStorage, S as StorageColumn, e as StorageGetMessagesArg, bD as TABLE_EVALS, bE as TABLE_MESSAGES, T as TABLE_NAMES, bH as TABLE_SCHEMAS, bF as TABLE_THREADS, bG as TABLE_TRACES, bC as TABLE_WORKFLOW_SNAPSHOT, X as VNextWorkflowRun, U as VNextWorkflowRuns, f as WorkflowRun, W as WorkflowRuns } from '../base-CI7Uz2GO.js';
2
2
  import 'ai';
3
3
  import '../base-4Z34GQL8.js';
4
4
  import '@opentelemetry/api';
@@ -13,11 +13,11 @@ import 'json-schema';
13
13
  import '../runtime-context/index.js';
14
14
  import 'xstate';
15
15
  import 'node:events';
16
- import '../vector/index.js';
17
- import '../vector/filter/index.js';
18
- import '../tts/index.js';
19
16
  import 'node:http';
20
17
  import 'hono';
18
+ import '../tts/index.js';
19
+ import '../vector/index.js';
20
+ import '../vector/filter/index.js';
21
21
  import 'events';
22
22
  import '../deployer/index.js';
23
23
  import '../bundler/index.js';