@mastra/core 0.10.2-alpha.7 → 0.10.2

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 (86) hide show
  1. package/dist/agent/index.cjs +4 -4
  2. package/dist/agent/index.d.cts +1 -1
  3. package/dist/agent/index.d.ts +1 -1
  4. package/dist/agent/index.js +2 -2
  5. package/dist/{base-BVo_KTj_.d.ts → base-BEjkhvZ_.d.ts} +1 -1
  6. package/dist/{base-CCeahyG8.d.cts → base-BJBoI-g2.d.cts} +1 -1
  7. package/dist/chunk-32C7JDIZ.js +1 -0
  8. package/dist/{chunk-GNJ7CAHY.js → chunk-4UWPFBC6.js} +1 -1
  9. package/dist/chunk-4Z3OU5RY.cjs +31 -0
  10. package/dist/{chunk-II7UBNGM.cjs → chunk-5G3XWKIU.cjs} +2 -2
  11. package/dist/{chunk-LKO4XMRH.js → chunk-7AWGDSGR.js} +2 -2
  12. package/dist/{chunk-6NJLWXMZ.js → chunk-B2RDYK2X.js} +1 -1
  13. package/dist/{chunk-YZB2YQ63.cjs → chunk-B7SQOKEC.cjs} +2 -2
  14. package/dist/chunk-C4LMN2IR.js +27 -0
  15. package/dist/{chunk-DXK4HYTL.js → chunk-FGBS7VRU.js} +1 -1
  16. package/dist/{chunk-MWU2UKZI.js → chunk-JAVP6ACT.js} +1 -1
  17. package/dist/{chunk-2AFAKGJ4.js → chunk-JBTXWDNO.js} +4 -3
  18. package/dist/{chunk-PBHXIWAK.cjs → chunk-KUJQVCEL.cjs} +3 -3
  19. package/dist/chunk-QFTBW7ZZ.cjs +2 -0
  20. package/dist/{chunk-SMPHOXU3.cjs → chunk-S4TS74VT.cjs} +4 -4
  21. package/dist/{chunk-P5XIIDTT.cjs → chunk-SKYO5NFQ.cjs} +4 -4
  22. package/dist/{chunk-IJWOVA22.cjs → chunk-TO5645ZP.cjs} +16 -15
  23. package/dist/{chunk-PNPMKRS2.cjs → chunk-VBSKHNCY.cjs} +5 -5
  24. package/dist/{chunk-24D3CMWO.js → chunk-WE5ABCZN.js} +2 -2
  25. package/dist/{chunk-TN3TNMXO.cjs → chunk-WWLMZIHW.cjs} +6 -31
  26. package/dist/{chunk-26WUL725.js → chunk-Y5BGCPNZ.js} +2 -24
  27. package/dist/error/index.cjs +75 -0
  28. package/dist/error/index.d.cts +80 -0
  29. package/dist/error/index.d.ts +80 -0
  30. package/dist/error/index.js +70 -0
  31. package/dist/eval/index.d.cts +1 -1
  32. package/dist/eval/index.d.ts +1 -1
  33. package/dist/index.cjs +48 -51
  34. package/dist/index.d.cts +3 -3
  35. package/dist/index.d.ts +3 -3
  36. package/dist/index.js +10 -9
  37. package/dist/integration/index.cjs +3 -3
  38. package/dist/integration/index.d.cts +1 -1
  39. package/dist/integration/index.d.ts +1 -1
  40. package/dist/integration/index.js +1 -1
  41. package/dist/llm/index.d.cts +1 -1
  42. package/dist/llm/index.d.ts +1 -1
  43. package/dist/mastra/index.d.cts +1 -1
  44. package/dist/mastra/index.d.ts +1 -1
  45. package/dist/mcp/index.d.cts +1 -1
  46. package/dist/mcp/index.d.ts +1 -1
  47. package/dist/memory/index.cjs +4 -4
  48. package/dist/memory/index.d.cts +1 -1
  49. package/dist/memory/index.d.ts +1 -1
  50. package/dist/memory/index.js +1 -1
  51. package/dist/network/index.cjs +4 -4
  52. package/dist/network/index.d.cts +1 -1
  53. package/dist/network/index.d.ts +1 -1
  54. package/dist/network/index.js +2 -2
  55. package/dist/relevance/index.cjs +4 -4
  56. package/dist/relevance/index.d.cts +1 -1
  57. package/dist/relevance/index.d.ts +1 -1
  58. package/dist/relevance/index.js +1 -1
  59. package/dist/server/index.d.cts +2 -2
  60. package/dist/server/index.d.ts +2 -2
  61. package/dist/storage/index.cjs +2 -2
  62. package/dist/storage/index.d.cts +2 -2
  63. package/dist/storage/index.d.ts +2 -2
  64. package/dist/storage/index.js +1 -1
  65. package/dist/telemetry/index.d.cts +1 -1
  66. package/dist/telemetry/index.d.ts +1 -1
  67. package/dist/tools/index.cjs +4 -4
  68. package/dist/tools/index.d.cts +18 -7
  69. package/dist/tools/index.d.ts +18 -7
  70. package/dist/tools/index.js +1 -1
  71. package/dist/utils.cjs +14 -18
  72. package/dist/utils.d.cts +4 -10
  73. package/dist/utils.d.ts +4 -10
  74. package/dist/utils.js +1 -1
  75. package/dist/voice/index.d.cts +1 -1
  76. package/dist/voice/index.d.ts +1 -1
  77. package/dist/workflows/index.cjs +9 -9
  78. package/dist/workflows/index.d.cts +2 -2
  79. package/dist/workflows/index.d.ts +2 -2
  80. package/dist/workflows/index.js +1 -1
  81. package/dist/workflows/legacy/index.cjs +22 -22
  82. package/dist/workflows/legacy/index.d.cts +2 -2
  83. package/dist/workflows/legacy/index.d.ts +2 -2
  84. package/dist/workflows/legacy/index.js +1 -1
  85. package/error.d.ts +1 -0
  86. package/package.json +2 -2
package/dist/index.js CHANGED
@@ -1,20 +1,21 @@
1
1
  import { MastraTTS } from './chunk-ZPOETARN.js';
2
2
  import { MastraVector } from './chunk-PMAVDBJY.js';
3
- import { Workflow } from './chunk-24D3CMWO.js';
4
- export { DefaultExecutionEngine, ExecutionEngine, Run, cloneStep, cloneWorkflow, createStep, createWorkflow } from './chunk-24D3CMWO.js';
5
- export { CohereRelevanceScorer, MastraAgentRelevanceScorer, createSimilarityPrompt } from './chunk-6NJLWXMZ.js';
3
+ import { Workflow } from './chunk-WE5ABCZN.js';
4
+ export { DefaultExecutionEngine, ExecutionEngine, Run, cloneStep, cloneWorkflow, createStep, createWorkflow } from './chunk-WE5ABCZN.js';
5
+ import { MastraMemory } from './chunk-7AWGDSGR.js';
6
+ export { MemoryProcessor, memoryDefaultOptions } from './chunk-7AWGDSGR.js';
7
+ export { CohereRelevanceScorer, MastraAgentRelevanceScorer, createSimilarityPrompt } from './chunk-B2RDYK2X.js';
6
8
  import { MastraStorage } from './chunk-7MWWPVCE.js';
7
9
  export { Metric, evaluate } from './chunk-PK5QRKSG.js';
8
- import { Integration, OpenAPIToolset } from './chunk-GNJ7CAHY.js';
10
+ import { Integration, OpenAPIToolset } from './chunk-4UWPFBC6.js';
9
11
  export { createMockModel } from './chunk-HNEE7IF4.js';
10
12
  export { Mastra } from './chunk-TIPFGQCO.js';
11
- import { MastraMemory } from './chunk-LKO4XMRH.js';
12
- export { MemoryProcessor, memoryDefaultOptions } from './chunk-LKO4XMRH.js';
13
- import { Agent } from './chunk-2AFAKGJ4.js';
13
+ import { Agent } from './chunk-JBTXWDNO.js';
14
14
  export { AvailableHooks, executeHook, registerHook } from './chunk-BB4KXGBU.js';
15
15
  export { InstrumentClass, OTLPTraceExporter as OTLPStorageExporter, Telemetry, getBaggageValues, hasActiveTelemetry, withSpan } from './chunk-EWDGXKOQ.js';
16
- import { Tool } from './chunk-26WUL725.js';
17
- export { checkEvalStorageFields, createMastraProxy, createTool, deepMerge, delay, ensureToolProperties, isCoreMessage, isUiMessage, isVercelTool, isZodType, makeCoreTool, maskStreamTags, parseFieldKey, parseSqlIdentifier, resolveSerializedZodOutput } from './chunk-26WUL725.js';
16
+ export { checkEvalStorageFields, createMastraProxy, deepMerge, delay, ensureToolProperties, isCoreMessage, isUiMessage, isZodType, makeCoreTool, maskStreamTags, parseFieldKey, parseSqlIdentifier, resolveSerializedZodOutput } from './chunk-Y5BGCPNZ.js';
17
+ import { Tool } from './chunk-C4LMN2IR.js';
18
+ export { createTool } from './chunk-C4LMN2IR.js';
18
19
  import { MastraDeployer } from './chunk-XJCP3SLA.js';
19
20
  import { MastraBase } from './chunk-JOCKZ2US.js';
20
21
 
@@ -1,14 +1,14 @@
1
1
  'use strict';
2
2
 
3
- var chunkYZB2YQ63_cjs = require('../chunk-YZB2YQ63.cjs');
3
+ var chunkB7SQOKEC_cjs = require('../chunk-B7SQOKEC.cjs');
4
4
 
5
5
 
6
6
 
7
7
  Object.defineProperty(exports, "Integration", {
8
8
  enumerable: true,
9
- get: function () { return chunkYZB2YQ63_cjs.Integration; }
9
+ get: function () { return chunkB7SQOKEC_cjs.Integration; }
10
10
  });
11
11
  Object.defineProperty(exports, "OpenAPIToolset", {
12
12
  enumerable: true,
13
- get: function () { return chunkYZB2YQ63_cjs.OpenAPIToolset; }
13
+ get: function () { return chunkB7SQOKEC_cjs.OpenAPIToolset; }
14
14
  });
@@ -1,5 +1,5 @@
1
1
  import '../base-BY9WFI65.cjs';
2
- import { ai as Workflow, ac as ToolAction } from '../base-CCeahyG8.cjs';
2
+ import { e as Workflow, c as ToolAction } from '../base-BJBoI-g2.cjs';
3
3
  import '@opentelemetry/api';
4
4
  import '../logger-BF2Sn7JX.cjs';
5
5
  import 'stream';
@@ -1,5 +1,5 @@
1
1
  import '../base-C0yUw8BC.js';
2
- import { ai as Workflow, ac as ToolAction } from '../base-BVo_KTj_.js';
2
+ import { e as Workflow, c as ToolAction } from '../base-BEjkhvZ_.js';
3
3
  import '@opentelemetry/api';
4
4
  import '../logger-BF2Sn7JX.js';
5
5
  import 'stream';
@@ -1 +1 @@
1
- export { Integration, OpenAPIToolset } from '../chunk-GNJ7CAHY.js';
1
+ export { Integration, OpenAPIToolset } from '../chunk-4UWPFBC6.js';
@@ -1,7 +1,7 @@
1
1
  import 'ai';
2
2
  import 'json-schema';
3
3
  import 'zod';
4
- export { as as BaseStructuredOutputType, an as CoreAssistantMessage, al as CoreMessage, am as CoreSystemMessage, ap as CoreToolMessage, ao as CoreUserMessage, aC as DefaultLLMStreamObjectOptions, aB as DefaultLLMStreamOptions, aA as DefaultLLMTextObjectOptions, az as DefaultLLMTextOptions, ar as EmbedManyResult, aq as EmbedResult, aw as GenerateReturn, aG as LLMInnerStreamOptions, aH as LLMStreamObjectOptions, aF as LLMStreamOptions, aE as LLMTextObjectOptions, aD as LLMTextOptions, ak as LanguageModel, ay as OutputType, ax as StreamReturn, av as StructuredOutput, au as StructuredOutputArrayItem, at as StructuredOutputType, aI as createMockModel } from '../base-CCeahyG8.cjs';
4
+ export { az as BaseStructuredOutputType, au as CoreAssistantMessage, as as CoreMessage, at as CoreSystemMessage, aw as CoreToolMessage, av as CoreUserMessage, aJ as DefaultLLMStreamObjectOptions, aI as DefaultLLMStreamOptions, aH as DefaultLLMTextObjectOptions, aG as DefaultLLMTextOptions, ay as EmbedManyResult, ax as EmbedResult, aD as GenerateReturn, aN as LLMInnerStreamOptions, aO as LLMStreamObjectOptions, aM as LLMStreamOptions, aL as LLMTextObjectOptions, aK as LLMTextOptions, ar as LanguageModel, aF as OutputType, aE as StreamReturn, aC as StructuredOutput, aB as StructuredOutputArrayItem, aA as StructuredOutputType, aP as createMockModel } from '../base-BJBoI-g2.cjs';
5
5
  import '../runtime-context/index.cjs';
6
6
  import '../base-BY9WFI65.cjs';
7
7
  import '@opentelemetry/api';
@@ -1,7 +1,7 @@
1
1
  import 'ai';
2
2
  import 'json-schema';
3
3
  import 'zod';
4
- export { as as BaseStructuredOutputType, an as CoreAssistantMessage, al as CoreMessage, am as CoreSystemMessage, ap as CoreToolMessage, ao as CoreUserMessage, aC as DefaultLLMStreamObjectOptions, aB as DefaultLLMStreamOptions, aA as DefaultLLMTextObjectOptions, az as DefaultLLMTextOptions, ar as EmbedManyResult, aq as EmbedResult, aw as GenerateReturn, aG as LLMInnerStreamOptions, aH as LLMStreamObjectOptions, aF as LLMStreamOptions, aE as LLMTextObjectOptions, aD as LLMTextOptions, ak as LanguageModel, ay as OutputType, ax as StreamReturn, av as StructuredOutput, au as StructuredOutputArrayItem, at as StructuredOutputType, aI as createMockModel } from '../base-BVo_KTj_.js';
4
+ export { az as BaseStructuredOutputType, au as CoreAssistantMessage, as as CoreMessage, at as CoreSystemMessage, aw as CoreToolMessage, av as CoreUserMessage, aJ as DefaultLLMStreamObjectOptions, aI as DefaultLLMStreamOptions, aH as DefaultLLMTextObjectOptions, aG as DefaultLLMTextOptions, ay as EmbedManyResult, ax as EmbedResult, aD as GenerateReturn, aN as LLMInnerStreamOptions, aO as LLMStreamObjectOptions, aM as LLMStreamOptions, aL as LLMTextObjectOptions, aK as LLMTextOptions, ar as LanguageModel, aF as OutputType, aE as StreamReturn, aC as StructuredOutput, aB as StructuredOutputArrayItem, aA as StructuredOutputType, aP as createMockModel } from '../base-BEjkhvZ_.js';
5
5
  import '../runtime-context/index.js';
6
6
  import '../base-C0yUw8BC.js';
7
7
  import '@opentelemetry/api';
@@ -1,4 +1,4 @@
1
- export { aJ as Config, a as Mastra } from '../base-CCeahyG8.cjs';
1
+ export { aQ as Config, M as Mastra } from '../base-BJBoI-g2.cjs';
2
2
  import '../deployer/index.cjs';
3
3
  import '../logger-BF2Sn7JX.cjs';
4
4
  import '../vector/index.cjs';
@@ -1,4 +1,4 @@
1
- export { aJ as Config, a as Mastra } from '../base-BVo_KTj_.js';
1
+ export { aQ as Config, M as Mastra } from '../base-BEjkhvZ_.js';
2
2
  import '../deployer/index.js';
3
3
  import '../logger-BF2Sn7JX.js';
4
4
  import '../vector/index.js';
@@ -1,4 +1,4 @@
1
- export { bB as ArgumentInfo, bF as CommandInfo, bv as ConvertedTool, bG as EnvironmentVariableInfo, bn as MCPServerBase, bJ as MCPServerConfig, by as MCPServerHTTPOptions, bx as MCPServerHonoSSEOptions, bw as MCPServerSSEOptions, bM as MCPToolType, bD as NamedArgumentInfo, bH as PackageInfo, bC as PositionalArgumentInfo, bI as RemoteInfo, bz as Repository, bL as ServerDetailInfo, bK as ServerInfo, bE as SubcommandInfo, bA as VersionDetail } from '../base-CCeahyG8.cjs';
1
+ export { bB as ArgumentInfo, bF as CommandInfo, bv as ConvertedTool, bG as EnvironmentVariableInfo, h as MCPServerBase, bJ as MCPServerConfig, by as MCPServerHTTPOptions, bx as MCPServerHonoSSEOptions, bw as MCPServerSSEOptions, bM as MCPToolType, bD as NamedArgumentInfo, bH as PackageInfo, bC as PositionalArgumentInfo, bI as RemoteInfo, bz as Repository, bL as ServerDetailInfo, bK as ServerInfo, bE as SubcommandInfo, bA as VersionDetail } from '../base-BJBoI-g2.cjs';
2
2
  import '../base-BY9WFI65.cjs';
3
3
  import 'ai';
4
4
  import 'zod';
@@ -1,4 +1,4 @@
1
- export { bB as ArgumentInfo, bF as CommandInfo, bv as ConvertedTool, bG as EnvironmentVariableInfo, bn as MCPServerBase, bJ as MCPServerConfig, by as MCPServerHTTPOptions, bx as MCPServerHonoSSEOptions, bw as MCPServerSSEOptions, bM as MCPToolType, bD as NamedArgumentInfo, bH as PackageInfo, bC as PositionalArgumentInfo, bI as RemoteInfo, bz as Repository, bL as ServerDetailInfo, bK as ServerInfo, bE as SubcommandInfo, bA as VersionDetail } from '../base-BVo_KTj_.js';
1
+ export { bB as ArgumentInfo, bF as CommandInfo, bv as ConvertedTool, bG as EnvironmentVariableInfo, h as MCPServerBase, bJ as MCPServerConfig, by as MCPServerHTTPOptions, bx as MCPServerHonoSSEOptions, bw as MCPServerSSEOptions, bM as MCPToolType, bD as NamedArgumentInfo, bH as PackageInfo, bC as PositionalArgumentInfo, bI as RemoteInfo, bz as Repository, bL as ServerDetailInfo, bK as ServerInfo, bE as SubcommandInfo, bA as VersionDetail } from '../base-BEjkhvZ_.js';
2
2
  import '../base-C0yUw8BC.js';
3
3
  import 'ai';
4
4
  import 'zod';
@@ -1,18 +1,18 @@
1
1
  'use strict';
2
2
 
3
- var chunkSMPHOXU3_cjs = require('../chunk-SMPHOXU3.cjs');
3
+ var chunkS4TS74VT_cjs = require('../chunk-S4TS74VT.cjs');
4
4
 
5
5
 
6
6
 
7
7
  Object.defineProperty(exports, "MastraMemory", {
8
8
  enumerable: true,
9
- get: function () { return chunkSMPHOXU3_cjs.MastraMemory; }
9
+ get: function () { return chunkS4TS74VT_cjs.MastraMemory; }
10
10
  });
11
11
  Object.defineProperty(exports, "MemoryProcessor", {
12
12
  enumerable: true,
13
- get: function () { return chunkSMPHOXU3_cjs.MemoryProcessor; }
13
+ get: function () { return chunkS4TS74VT_cjs.MemoryProcessor; }
14
14
  });
15
15
  Object.defineProperty(exports, "memoryDefaultOptions", {
16
16
  enumerable: true,
17
- get: function () { return chunkSMPHOXU3_cjs.memoryDefaultOptions; }
17
+ get: function () { return chunkS4TS74VT_cjs.memoryDefaultOptions; }
18
18
  });
@@ -1,4 +1,4 @@
1
- export { ae as MastraMemory, i as MastraMessageV1, g as MastraMessageV2, aM as MemoryConfig, aP as MemoryProcessor, aO as MemoryProcessorOpts, aL as MessageResponse, aK as MessageType, aN as SharedMemoryConfig, f as StorageThreadType, aQ as memoryDefaultOptions } from '../base-CCeahyG8.cjs';
1
+ export { b as MastraMemory, u as MastraMessageV1, s as MastraMessageV2, aT as MemoryConfig, aW as MemoryProcessor, aV as MemoryProcessorOpts, aS as MessageResponse, aR as MessageType, aU as SharedMemoryConfig, r as StorageThreadType, aX as memoryDefaultOptions } from '../base-BJBoI-g2.cjs';
2
2
  export { Message as AiMessageType } from 'ai';
3
3
  import '../base-BY9WFI65.cjs';
4
4
  import '@opentelemetry/api';
@@ -1,4 +1,4 @@
1
- export { ae as MastraMemory, i as MastraMessageV1, g as MastraMessageV2, aM as MemoryConfig, aP as MemoryProcessor, aO as MemoryProcessorOpts, aL as MessageResponse, aK as MessageType, aN as SharedMemoryConfig, f as StorageThreadType, aQ as memoryDefaultOptions } from '../base-BVo_KTj_.js';
1
+ export { b as MastraMemory, u as MastraMessageV1, s as MastraMessageV2, aT as MemoryConfig, aW as MemoryProcessor, aV as MemoryProcessorOpts, aS as MessageResponse, aR as MessageType, aU as SharedMemoryConfig, r as StorageThreadType, aX as memoryDefaultOptions } from '../base-BEjkhvZ_.js';
2
2
  export { Message as AiMessageType } from 'ai';
3
3
  import '../base-C0yUw8BC.js';
4
4
  import '@opentelemetry/api';
@@ -1 +1 @@
1
- export { MastraMemory, MemoryProcessor, memoryDefaultOptions } from '../chunk-LKO4XMRH.js';
1
+ export { MastraMemory, MemoryProcessor, memoryDefaultOptions } from '../chunk-7AWGDSGR.js';
@@ -1,7 +1,7 @@
1
1
  'use strict';
2
2
 
3
- var chunkIJWOVA22_cjs = require('../chunk-IJWOVA22.cjs');
4
- var chunkTN3TNMXO_cjs = require('../chunk-TN3TNMXO.cjs');
3
+ var chunkTO5645ZP_cjs = require('../chunk-TO5645ZP.cjs');
4
+ var chunk4Z3OU5RY_cjs = require('../chunk-4Z3OU5RY.cjs');
5
5
  var chunkVHZPWE5L_cjs = require('../chunk-VHZPWE5L.cjs');
6
6
  var chunkRFAN7FAT_cjs = require('../chunk-RFAN7FAT.cjs');
7
7
  var zod = require('zod');
@@ -17,7 +17,7 @@ var AgentNetwork = class extends chunkVHZPWE5L_cjs.MastraBase {
17
17
  this.#instructions = config.instructions;
18
18
  this.#agents = config.agents;
19
19
  this.#model = config.model;
20
- this.#routingAgent = new chunkIJWOVA22_cjs.Agent({
20
+ this.#routingAgent = new chunkTO5645ZP_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 chunkVHZPWE5L_cjs.MastraBase {
29
29
  }
30
30
  getTools() {
31
31
  return {
32
- transmit: chunkTN3TNMXO_cjs.createTool({
32
+ transmit: chunk4Z3OU5RY_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 { bm as AgentNetwork, bu as AgentNetworkConfig } from '../base-CCeahyG8.cjs';
1
+ export { g as AgentNetwork, bu as AgentNetworkConfig } from '../base-BJBoI-g2.cjs';
2
2
  import 'ai';
3
3
  import '../base-BY9WFI65.cjs';
4
4
  import '@opentelemetry/api';
@@ -1,4 +1,4 @@
1
- export { bm as AgentNetwork, bu as AgentNetworkConfig } from '../base-BVo_KTj_.js';
1
+ export { g as AgentNetwork, bu as AgentNetworkConfig } from '../base-BEjkhvZ_.js';
2
2
  import 'ai';
3
3
  import '../base-C0yUw8BC.js';
4
4
  import '@opentelemetry/api';
@@ -1,5 +1,5 @@
1
- import { Agent } from '../chunk-2AFAKGJ4.js';
2
- import { createTool } from '../chunk-26WUL725.js';
1
+ import { Agent } from '../chunk-JBTXWDNO.js';
2
+ import { createTool } from '../chunk-C4LMN2IR.js';
3
3
  import { MastraBase } from '../chunk-JOCKZ2US.js';
4
4
  import { RegisteredLogger } from '../chunk-XXVGT7SJ.js';
5
5
  import { z } from 'zod';
@@ -1,18 +1,18 @@
1
1
  'use strict';
2
2
 
3
- var chunkII7UBNGM_cjs = require('../chunk-II7UBNGM.cjs');
3
+ var chunk5G3XWKIU_cjs = require('../chunk-5G3XWKIU.cjs');
4
4
 
5
5
 
6
6
 
7
7
  Object.defineProperty(exports, "CohereRelevanceScorer", {
8
8
  enumerable: true,
9
- get: function () { return chunkII7UBNGM_cjs.CohereRelevanceScorer; }
9
+ get: function () { return chunk5G3XWKIU_cjs.CohereRelevanceScorer; }
10
10
  });
11
11
  Object.defineProperty(exports, "MastraAgentRelevanceScorer", {
12
12
  enumerable: true,
13
- get: function () { return chunkII7UBNGM_cjs.MastraAgentRelevanceScorer; }
13
+ get: function () { return chunk5G3XWKIU_cjs.MastraAgentRelevanceScorer; }
14
14
  });
15
15
  Object.defineProperty(exports, "createSimilarityPrompt", {
16
16
  enumerable: true,
17
- get: function () { return chunkII7UBNGM_cjs.createSimilarityPrompt; }
17
+ get: function () { return chunk5G3XWKIU_cjs.createSimilarityPrompt; }
18
18
  });
@@ -1,4 +1,4 @@
1
- import { bk as MastraLanguageModel } from '../base-CCeahyG8.cjs';
1
+ import { bn as MastraLanguageModel } from '../base-BJBoI-g2.cjs';
2
2
  import '../base-BY9WFI65.cjs';
3
3
  import 'ai';
4
4
  import 'zod';
@@ -1,4 +1,4 @@
1
- import { bk as MastraLanguageModel } from '../base-BVo_KTj_.js';
1
+ import { bn as MastraLanguageModel } from '../base-BEjkhvZ_.js';
2
2
  import '../base-C0yUw8BC.js';
3
3
  import 'ai';
4
4
  import 'zod';
@@ -1 +1 @@
1
- export { CohereRelevanceScorer, MastraAgentRelevanceScorer, createSimilarityPrompt } from '../chunk-6NJLWXMZ.js';
1
+ export { CohereRelevanceScorer, MastraAgentRelevanceScorer, createSimilarityPrompt } from '../chunk-B2RDYK2X.js';
@@ -1,7 +1,7 @@
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, b as MastraAuthConfig } from '../base-CCeahyG8.cjs';
4
- export { C as ContextWithMastra, c as MastraAuthProvider, d as MastraAuthProviderOptions } from '../base-CCeahyG8.cjs';
3
+ import { i as Methods, M as Mastra, j as ApiRoute, k as MastraAuthConfig } from '../base-BJBoI-g2.cjs';
4
+ export { l as ContextWithMastra, m as MastraAuthProvider, n as MastraAuthProviderOptions } from '../base-BJBoI-g2.cjs';
5
5
  import 'ai';
6
6
  import '../base-BY9WFI65.cjs';
7
7
  import '@opentelemetry/api';
@@ -1,7 +1,7 @@
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, b as MastraAuthConfig } from '../base-BVo_KTj_.js';
4
- export { C as ContextWithMastra, c as MastraAuthProvider, d as MastraAuthProviderOptions } from '../base-BVo_KTj_.js';
3
+ import { i as Methods, M as Mastra, j as ApiRoute, k as MastraAuthConfig } from '../base-BEjkhvZ_.js';
4
+ export { l as ContextWithMastra, m as MastraAuthProvider, n as MastraAuthProviderOptions } from '../base-BEjkhvZ_.js';
5
5
  import 'ai';
6
6
  import '../base-C0yUw8BC.js';
7
7
  import '@opentelemetry/api';
@@ -1,8 +1,8 @@
1
1
  'use strict';
2
2
 
3
3
  var chunkX6VHQCYN_cjs = require('../chunk-X6VHQCYN.cjs');
4
+ var chunkKUJQVCEL_cjs = require('../chunk-KUJQVCEL.cjs');
4
5
  var chunkTICDQWVJ_cjs = require('../chunk-TICDQWVJ.cjs');
5
- var chunkPBHXIWAK_cjs = require('../chunk-PBHXIWAK.cjs');
6
6
 
7
7
  // src/storage/mock.ts
8
8
  var MockStore = class extends chunkX6VHQCYN_cjs.MastraStorage {
@@ -92,7 +92,7 @@ var MockStore = class extends chunkX6VHQCYN_cjs.MastraStorage {
92
92
  const key = message.id;
93
93
  this.data.mastra_messages[key] = message;
94
94
  }
95
- const list = new chunkPBHXIWAK_cjs.MessageList().add(messages, "memory");
95
+ const list = new chunkKUJQVCEL_cjs.MessageList().add(messages, "memory");
96
96
  if (format === `v2`) return list.get.all.v2();
97
97
  return list.get.all.v1();
98
98
  }
@@ -1,5 +1,5 @@
1
- import { e as MastraStorage, T as TABLE_NAMES, S as StorageColumn, f as StorageThreadType, g as MastraMessageV2, h as StorageGetMessagesArg, i as MastraMessageV1, E as EvalRow, W as WorkflowRuns, j as WorkflowRun } from '../base-CCeahyG8.cjs';
2
- export { k as LegacyWorkflowRun, L as LegacyWorkflowRuns, m as TABLE_EVALS, n as TABLE_MESSAGES, q as TABLE_SCHEMAS, o as TABLE_THREADS, p as TABLE_TRACES, l as TABLE_WORKFLOW_SNAPSHOT } from '../base-CCeahyG8.cjs';
1
+ import { o as MastraStorage, p as TABLE_NAMES, q as StorageColumn, r as StorageThreadType, s as MastraMessageV2, t as StorageGetMessagesArg, u as MastraMessageV1, E as EvalRow, v as WorkflowRuns, w as WorkflowRun } from '../base-BJBoI-g2.cjs';
2
+ export { y as LegacyWorkflowRun, x as LegacyWorkflowRuns, B as TABLE_EVALS, D as TABLE_MESSAGES, H as TABLE_SCHEMAS, F as TABLE_THREADS, G as TABLE_TRACES, z as TABLE_WORKFLOW_SNAPSHOT } from '../base-BJBoI-g2.cjs';
3
3
  import '../base-BY9WFI65.cjs';
4
4
  import 'ai';
5
5
  import 'zod';
@@ -1,5 +1,5 @@
1
- import { e as MastraStorage, T as TABLE_NAMES, S as StorageColumn, f as StorageThreadType, g as MastraMessageV2, h as StorageGetMessagesArg, i as MastraMessageV1, E as EvalRow, W as WorkflowRuns, j as WorkflowRun } from '../base-BVo_KTj_.js';
2
- export { k as LegacyWorkflowRun, L as LegacyWorkflowRuns, m as TABLE_EVALS, n as TABLE_MESSAGES, q as TABLE_SCHEMAS, o as TABLE_THREADS, p as TABLE_TRACES, l as TABLE_WORKFLOW_SNAPSHOT } from '../base-BVo_KTj_.js';
1
+ import { o as MastraStorage, p as TABLE_NAMES, q as StorageColumn, r as StorageThreadType, s as MastraMessageV2, t as StorageGetMessagesArg, u as MastraMessageV1, E as EvalRow, v as WorkflowRuns, w as WorkflowRun } from '../base-BEjkhvZ_.js';
2
+ export { y as LegacyWorkflowRun, x as LegacyWorkflowRuns, B as TABLE_EVALS, D as TABLE_MESSAGES, H as TABLE_SCHEMAS, F as TABLE_THREADS, G as TABLE_TRACES, z as TABLE_WORKFLOW_SNAPSHOT } from '../base-BEjkhvZ_.js';
3
3
  import '../base-C0yUw8BC.js';
4
4
  import 'ai';
5
5
  import 'zod';
@@ -1,7 +1,7 @@
1
1
  import { MastraStorage } from '../chunk-7MWWPVCE.js';
2
2
  export { MastraStorage } from '../chunk-7MWWPVCE.js';
3
+ import { MessageList } from '../chunk-JAVP6ACT.js';
3
4
  export { TABLE_EVALS, TABLE_MESSAGES, TABLE_SCHEMAS, TABLE_THREADS, TABLE_TRACES, TABLE_WORKFLOW_SNAPSHOT } from '../chunk-EWDGXKOQ.js';
4
- import { MessageList } from '../chunk-MWU2UKZI.js';
5
5
 
6
6
  // src/storage/mock.ts
7
7
  var MockStore = class extends MastraStorage {
@@ -3,7 +3,7 @@ import { SpanKind, Context } from '@opentelemetry/api';
3
3
  import { ExportResult } from '@opentelemetry/core';
4
4
  import { SpanExporter, ReadableSpan } from '@opentelemetry/sdk-trace-base';
5
5
  import { I as IMastraLogger } from '../logger-BF2Sn7JX.cjs';
6
- import { e as MastraStorage } from '../base-CCeahyG8.cjs';
6
+ import { o as MastraStorage } from '../base-BJBoI-g2.cjs';
7
7
  import 'stream';
8
8
  import 'ai';
9
9
  import 'zod';
@@ -3,7 +3,7 @@ import { SpanKind, Context } from '@opentelemetry/api';
3
3
  import { ExportResult } from '@opentelemetry/core';
4
4
  import { SpanExporter, ReadableSpan } from '@opentelemetry/sdk-trace-base';
5
5
  import { I as IMastraLogger } from '../logger-BF2Sn7JX.js';
6
- import { e as MastraStorage } from '../base-BVo_KTj_.js';
6
+ import { o as MastraStorage } from '../base-BEjkhvZ_.js';
7
7
  import 'stream';
8
8
  import 'ai';
9
9
  import 'zod';
@@ -1,18 +1,18 @@
1
1
  'use strict';
2
2
 
3
- var chunkTN3TNMXO_cjs = require('../chunk-TN3TNMXO.cjs');
3
+ var chunk4Z3OU5RY_cjs = require('../chunk-4Z3OU5RY.cjs');
4
4
 
5
5
 
6
6
 
7
7
  Object.defineProperty(exports, "Tool", {
8
8
  enumerable: true,
9
- get: function () { return chunkTN3TNMXO_cjs.Tool; }
9
+ get: function () { return chunk4Z3OU5RY_cjs.Tool; }
10
10
  });
11
11
  Object.defineProperty(exports, "createTool", {
12
12
  enumerable: true,
13
- get: function () { return chunkTN3TNMXO_cjs.createTool; }
13
+ get: function () { return chunk4Z3OU5RY_cjs.createTool; }
14
14
  });
15
15
  Object.defineProperty(exports, "isVercelTool", {
16
16
  enumerable: true,
17
- get: function () { return chunkTN3TNMXO_cjs.isVercelTool; }
17
+ get: function () { return chunk4Z3OU5RY_cjs.isVercelTool; }
18
18
  });
@@ -1,14 +1,14 @@
1
- export { aT as CoreTool, aU as InternalCoreTool, ag as Tool, ac as ToolAction, af as ToolExecutionContext, aS as VercelTool, aR as createTool } from '../base-CCeahyG8.cjs';
2
- export { isVercelTool } from '../utils.cjs';
3
- import 'ai';
1
+ import { V as VercelTool, c as ToolAction } from '../base-BJBoI-g2.cjs';
2
+ export { C as CoreTool, an as InternalCoreTool, al as Tool, ao as ToolExecutionContext, am as createTool } from '../base-BJBoI-g2.cjs';
4
3
  import '../base-BY9WFI65.cjs';
5
- import '@opentelemetry/api';
6
- import '../logger-BF2Sn7JX.cjs';
7
- import 'stream';
8
- import '@opentelemetry/sdk-trace-base';
4
+ import 'ai';
9
5
  import 'zod';
10
6
  import 'json-schema';
7
+ import '../logger-BF2Sn7JX.cjs';
8
+ import 'stream';
11
9
  import '../tts/index.cjs';
10
+ import '@opentelemetry/api';
11
+ import '@opentelemetry/sdk-trace-base';
12
12
  import '../vector/index.cjs';
13
13
  import '../vector/filter/index.cjs';
14
14
  import '../types-Bo1uigWx.cjs';
@@ -25,3 +25,14 @@ import '../deployer/index.cjs';
25
25
  import '../bundler/index.cjs';
26
26
  import 'hono/cors';
27
27
  import 'hono-openapi';
28
+
29
+ type ToolToConvert = VercelTool | ToolAction<any, any, any>;
30
+
31
+ /**
32
+ * Checks if a tool is a Vercel Tool
33
+ * @param tool - The tool to check
34
+ * @returns True if the tool is a Vercel Tool, false otherwise
35
+ */
36
+ declare function isVercelTool(tool?: ToolToConvert): tool is VercelTool;
37
+
38
+ export { ToolAction, VercelTool, isVercelTool };
@@ -1,14 +1,14 @@
1
- export { aT as CoreTool, aU as InternalCoreTool, ag as Tool, ac as ToolAction, af as ToolExecutionContext, aS as VercelTool, aR as createTool } from '../base-BVo_KTj_.js';
2
- export { isVercelTool } from '../utils.js';
3
- import 'ai';
1
+ import { V as VercelTool, c as ToolAction } from '../base-BEjkhvZ_.js';
2
+ export { C as CoreTool, an as InternalCoreTool, al as Tool, ao as ToolExecutionContext, am as createTool } from '../base-BEjkhvZ_.js';
4
3
  import '../base-C0yUw8BC.js';
5
- import '@opentelemetry/api';
6
- import '../logger-BF2Sn7JX.js';
7
- import 'stream';
8
- import '@opentelemetry/sdk-trace-base';
4
+ import 'ai';
9
5
  import 'zod';
10
6
  import 'json-schema';
7
+ import '../logger-BF2Sn7JX.js';
8
+ import 'stream';
11
9
  import '../tts/index.js';
10
+ import '@opentelemetry/api';
11
+ import '@opentelemetry/sdk-trace-base';
12
12
  import '../vector/index.js';
13
13
  import '../vector/filter/index.js';
14
14
  import '../types-Bo1uigWx.js';
@@ -25,3 +25,14 @@ import '../deployer/index.js';
25
25
  import '../bundler/index.js';
26
26
  import 'hono/cors';
27
27
  import 'hono-openapi';
28
+
29
+ type ToolToConvert = VercelTool | ToolAction<any, any, any>;
30
+
31
+ /**
32
+ * Checks if a tool is a Vercel Tool
33
+ * @param tool - The tool to check
34
+ * @returns True if the tool is a Vercel Tool, false otherwise
35
+ */
36
+ declare function isVercelTool(tool?: ToolToConvert): tool is VercelTool;
37
+
38
+ export { ToolAction, VercelTool, isVercelTool };
@@ -1 +1 @@
1
- export { Tool, createTool, isVercelTool } from '../chunk-26WUL725.js';
1
+ export { Tool, createTool, isVercelTool } from '../chunk-C4LMN2IR.js';
package/dist/utils.cjs CHANGED
@@ -1,62 +1,58 @@
1
1
  'use strict';
2
2
 
3
- var chunkTN3TNMXO_cjs = require('./chunk-TN3TNMXO.cjs');
3
+ var chunkWWLMZIHW_cjs = require('./chunk-WWLMZIHW.cjs');
4
4
 
5
5
 
6
6
 
7
7
  Object.defineProperty(exports, "checkEvalStorageFields", {
8
8
  enumerable: true,
9
- get: function () { return chunkTN3TNMXO_cjs.checkEvalStorageFields; }
9
+ get: function () { return chunkWWLMZIHW_cjs.checkEvalStorageFields; }
10
10
  });
11
11
  Object.defineProperty(exports, "createMastraProxy", {
12
12
  enumerable: true,
13
- get: function () { return chunkTN3TNMXO_cjs.createMastraProxy; }
13
+ get: function () { return chunkWWLMZIHW_cjs.createMastraProxy; }
14
14
  });
15
15
  Object.defineProperty(exports, "deepMerge", {
16
16
  enumerable: true,
17
- get: function () { return chunkTN3TNMXO_cjs.deepMerge; }
17
+ get: function () { return chunkWWLMZIHW_cjs.deepMerge; }
18
18
  });
19
19
  Object.defineProperty(exports, "delay", {
20
20
  enumerable: true,
21
- get: function () { return chunkTN3TNMXO_cjs.delay; }
21
+ get: function () { return chunkWWLMZIHW_cjs.delay; }
22
22
  });
23
23
  Object.defineProperty(exports, "ensureToolProperties", {
24
24
  enumerable: true,
25
- get: function () { return chunkTN3TNMXO_cjs.ensureToolProperties; }
25
+ get: function () { return chunkWWLMZIHW_cjs.ensureToolProperties; }
26
26
  });
27
27
  Object.defineProperty(exports, "isCoreMessage", {
28
28
  enumerable: true,
29
- get: function () { return chunkTN3TNMXO_cjs.isCoreMessage; }
29
+ get: function () { return chunkWWLMZIHW_cjs.isCoreMessage; }
30
30
  });
31
31
  Object.defineProperty(exports, "isUiMessage", {
32
32
  enumerable: true,
33
- get: function () { return chunkTN3TNMXO_cjs.isUiMessage; }
34
- });
35
- Object.defineProperty(exports, "isVercelTool", {
36
- enumerable: true,
37
- get: function () { return chunkTN3TNMXO_cjs.isVercelTool; }
33
+ get: function () { return chunkWWLMZIHW_cjs.isUiMessage; }
38
34
  });
39
35
  Object.defineProperty(exports, "isZodType", {
40
36
  enumerable: true,
41
- get: function () { return chunkTN3TNMXO_cjs.isZodType; }
37
+ get: function () { return chunkWWLMZIHW_cjs.isZodType; }
42
38
  });
43
39
  Object.defineProperty(exports, "makeCoreTool", {
44
40
  enumerable: true,
45
- get: function () { return chunkTN3TNMXO_cjs.makeCoreTool; }
41
+ get: function () { return chunkWWLMZIHW_cjs.makeCoreTool; }
46
42
  });
47
43
  Object.defineProperty(exports, "maskStreamTags", {
48
44
  enumerable: true,
49
- get: function () { return chunkTN3TNMXO_cjs.maskStreamTags; }
45
+ get: function () { return chunkWWLMZIHW_cjs.maskStreamTags; }
50
46
  });
51
47
  Object.defineProperty(exports, "parseFieldKey", {
52
48
  enumerable: true,
53
- get: function () { return chunkTN3TNMXO_cjs.parseFieldKey; }
49
+ get: function () { return chunkWWLMZIHW_cjs.parseFieldKey; }
54
50
  });
55
51
  Object.defineProperty(exports, "parseSqlIdentifier", {
56
52
  enumerable: true,
57
- get: function () { return chunkTN3TNMXO_cjs.parseSqlIdentifier; }
53
+ get: function () { return chunkWWLMZIHW_cjs.parseSqlIdentifier; }
58
54
  });
59
55
  Object.defineProperty(exports, "resolveSerializedZodOutput", {
60
56
  enumerable: true,
61
- get: function () { return chunkTN3TNMXO_cjs.resolveSerializedZodOutput; }
57
+ get: function () { return chunkWWLMZIHW_cjs.resolveSerializedZodOutput; }
62
58
  });
package/dist/utils.d.cts CHANGED
@@ -1,4 +1,4 @@
1
- import { aS as VercelTool, ac as ToolAction, a as Mastra, bl as MastraPrimitives, ae as MastraMemory, w as ToolsInput, aT as CoreTool, u as Agent, t as LegacyWorkflow, s as LegacyStep, B as StepExecutionContext, v as WorkflowContext, ai as Workflow, ah as Step, bm as AgentNetwork, bn as MCPServerBase } from './base-CCeahyG8.cjs';
1
+ import { M as Mastra, a as MastraPrimitives, b as MastraMemory, T as ToolsInput, V as VercelTool, c as ToolAction, C as CoreTool, A as Agent, L as LegacyWorkflow, d as LegacyStep, S as StepExecutionContext, W as WorkflowContext, e as Workflow, f as Step, g as AgentNetwork, h as MCPServerBase } from './base-BJBoI-g2.cjs';
2
2
  import { LanguageModelV1, CoreMessage, Message } from 'ai';
3
3
  import { MastraTTS } from './tts/index.cjs';
4
4
  import { MastraVector } from './vector/index.cjs';
@@ -19,11 +19,11 @@ import './workflows/constants.cjs';
19
19
  import 'ai/test';
20
20
  import './deployer/index.cjs';
21
21
  import './bundler/index.cjs';
22
- import 'stream';
23
- import '@opentelemetry/sdk-trace-base';
24
22
  import 'hono/cors';
25
23
  import 'hono-openapi';
26
24
  import './vector/filter/index.cjs';
25
+ import 'stream';
26
+ import '@opentelemetry/sdk-trace-base';
27
27
 
28
28
  declare const delay: (ms: number) => Promise<unknown>;
29
29
  /**
@@ -53,12 +53,6 @@ declare function maskStreamTags(stream: AsyncIterable<string>, tag: string, opti
53
53
  * @returns resolved zod object
54
54
  */
55
55
  declare function resolveSerializedZodOutput(schema: string): z.ZodType;
56
- /**
57
- * Checks if a tool is a Vercel Tool
58
- * @param tool - The tool to check
59
- * @returns True if the tool is a Vercel Tool, false otherwise
60
- */
61
- declare function isVercelTool(tool?: ToolToConvert): tool is VercelTool;
62
56
  interface ToolOptions {
63
57
  name: string;
64
58
  runId?: string;
@@ -149,4 +143,4 @@ declare function parseSqlIdentifier(name: string, kind?: string): SqlIdentifier;
149
143
  */
150
144
  declare function parseFieldKey(key: string): FieldKey;
151
145
 
152
- export { type TagMaskOptions, type ToolOptions, checkEvalStorageFields, createMastraProxy, deepMerge, delay, ensureToolProperties, isCoreMessage, isUiMessage, isVercelTool, isZodType, makeCoreTool, maskStreamTags, parseFieldKey, parseSqlIdentifier, resolveSerializedZodOutput };
146
+ export { type TagMaskOptions, type ToolOptions, checkEvalStorageFields, createMastraProxy, deepMerge, delay, ensureToolProperties, isCoreMessage, isUiMessage, isZodType, makeCoreTool, maskStreamTags, parseFieldKey, parseSqlIdentifier, resolveSerializedZodOutput };