@mastra/core 0.10.8 → 0.10.9

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 (93) hide show
  1. package/dist/agent/index.cjs +4 -4
  2. package/dist/agent/index.d.cts +8 -8
  3. package/dist/agent/index.d.ts +8 -8
  4. package/dist/agent/index.js +2 -2
  5. package/dist/{base-DVVTzIQy.d.cts → base-B_y9sMg0.d.cts} +1 -1
  6. package/dist/{base-B_WEJuiR.d.cts → base-Bu9IeyHt.d.cts} +48 -15
  7. package/dist/{base-BbdvunNJ.d.ts → base-ClrXcCRx.d.ts} +1 -1
  8. package/dist/{base-DnSegjq5.d.ts → base-D6PagN3X.d.ts} +48 -15
  9. package/dist/base.d.cts +2 -2
  10. package/dist/base.d.ts +2 -2
  11. package/dist/bundler/index.d.cts +2 -2
  12. package/dist/bundler/index.d.ts +2 -2
  13. package/dist/{chunk-V73Z32LN.js → chunk-5S3K64EU.js} +1 -1
  14. package/dist/{chunk-2D7NOO7S.cjs → chunk-6Y4UL5Z6.cjs} +11 -0
  15. package/dist/{chunk-QZ3VZRUU.cjs → chunk-7H2GET5Z.cjs} +6 -2
  16. package/dist/{chunk-YXQF4U4L.js → chunk-7XQIPES3.js} +5 -1
  17. package/dist/{chunk-CHBIZNA3.cjs → chunk-CWXF3ZG4.cjs} +31 -9
  18. package/dist/{chunk-GKCO24Z4.cjs → chunk-CZGP56Y3.cjs} +2 -2
  19. package/dist/{chunk-WTTYHREJ.js → chunk-HM4AOWTY.js} +1 -1
  20. package/dist/{chunk-DO5R43AJ.js → chunk-JQOMTERC.js} +11 -1
  21. package/dist/{chunk-FBURVKXA.js → chunk-O7YOEBDC.js} +220 -41
  22. package/dist/{chunk-E4A4XDDG.cjs → chunk-SO4GUX3Q.cjs} +221 -42
  23. package/dist/{chunk-EYJXFYUH.cjs → chunk-SUF6QXSI.cjs} +70 -40
  24. package/dist/{chunk-QIQOR45O.js → chunk-VMIMBLH4.js} +31 -9
  25. package/dist/{chunk-U2LC4K7N.cjs → chunk-X73RHIY2.cjs} +2 -2
  26. package/dist/{chunk-WK3SHUOG.js → chunk-Y2FKASKG.js} +61 -31
  27. package/dist/deployer/index.d.cts +2 -2
  28. package/dist/deployer/index.d.ts +2 -2
  29. package/dist/eval/index.d.cts +6 -6
  30. package/dist/eval/index.d.ts +6 -6
  31. package/dist/index.cjs +22 -22
  32. package/dist/index.d.cts +5 -5
  33. package/dist/index.d.ts +5 -5
  34. package/dist/index.js +7 -7
  35. package/dist/integration/index.d.cts +10 -10
  36. package/dist/integration/index.d.ts +10 -10
  37. package/dist/llm/index.d.cts +6 -6
  38. package/dist/llm/index.d.ts +6 -6
  39. package/dist/logger/index.cjs +8 -4
  40. package/dist/logger/index.d.cts +2 -2
  41. package/dist/logger/index.d.ts +2 -2
  42. package/dist/logger/index.js +1 -1
  43. package/dist/{logger-CpL0z5v_.d.cts → logger-B8XXh6ya.d.cts} +2 -1
  44. package/dist/{logger-DtVDdb81.d.ts → logger-Bpa2oLL4.d.ts} +2 -1
  45. package/dist/mastra/index.cjs +2 -2
  46. package/dist/mastra/index.d.cts +4 -4
  47. package/dist/mastra/index.d.ts +4 -4
  48. package/dist/mastra/index.js +1 -1
  49. package/dist/mcp/index.d.cts +8 -8
  50. package/dist/mcp/index.d.ts +8 -8
  51. package/dist/memory/index.cjs +4 -4
  52. package/dist/memory/index.d.cts +6 -6
  53. package/dist/memory/index.d.ts +6 -6
  54. package/dist/memory/index.js +1 -1
  55. package/dist/network/index.cjs +2 -2
  56. package/dist/network/index.d.cts +6 -6
  57. package/dist/network/index.d.ts +6 -6
  58. package/dist/network/index.js +1 -1
  59. package/dist/network/vNext/index.cjs +37 -23
  60. package/dist/network/vNext/index.d.cts +8 -8
  61. package/dist/network/vNext/index.d.ts +8 -8
  62. package/dist/network/vNext/index.js +26 -12
  63. package/dist/relevance/index.cjs +4 -4
  64. package/dist/relevance/index.d.cts +8 -8
  65. package/dist/relevance/index.d.ts +8 -8
  66. package/dist/relevance/index.js +1 -1
  67. package/dist/server/index.d.cts +7 -7
  68. package/dist/server/index.d.ts +7 -7
  69. package/dist/storage/index.cjs +2 -2
  70. package/dist/storage/index.d.cts +7 -7
  71. package/dist/storage/index.d.ts +7 -7
  72. package/dist/storage/index.js +1 -1
  73. package/dist/telemetry/index.d.cts +6 -6
  74. package/dist/telemetry/index.d.ts +6 -6
  75. package/dist/tools/index.d.cts +9 -9
  76. package/dist/tools/index.d.ts +9 -9
  77. package/dist/tts/index.d.cts +2 -2
  78. package/dist/tts/index.d.ts +2 -2
  79. package/dist/utils.d.cts +3 -3
  80. package/dist/utils.d.ts +3 -3
  81. package/dist/vector/index.d.cts +2 -2
  82. package/dist/vector/index.d.ts +2 -2
  83. package/dist/voice/index.d.cts +6 -6
  84. package/dist/voice/index.d.ts +6 -6
  85. package/dist/workflows/index.cjs +10 -10
  86. package/dist/workflows/index.d.cts +34 -13
  87. package/dist/workflows/index.d.ts +34 -13
  88. package/dist/workflows/index.js +1 -1
  89. package/dist/workflows/legacy/index.cjs +22 -22
  90. package/dist/workflows/legacy/index.d.cts +11 -11
  91. package/dist/workflows/legacy/index.d.ts +11 -11
  92. package/dist/workflows/legacy/index.js +1 -1
  93. package/package.json +4 -4
@@ -1,90 +1,90 @@
1
1
  'use strict';
2
2
 
3
- var chunkEYJXFYUH_cjs = require('../../chunk-EYJXFYUH.cjs');
3
+ var chunkSUF6QXSI_cjs = require('../../chunk-SUF6QXSI.cjs');
4
4
 
5
5
 
6
6
 
7
7
  Object.defineProperty(exports, "LegacyStep", {
8
8
  enumerable: true,
9
- get: function () { return chunkEYJXFYUH_cjs.LegacyStep; }
9
+ get: function () { return chunkSUF6QXSI_cjs.LegacyStep; }
10
10
  });
11
11
  Object.defineProperty(exports, "LegacyWorkflow", {
12
12
  enumerable: true,
13
- get: function () { return chunkEYJXFYUH_cjs.LegacyWorkflow; }
13
+ get: function () { return chunkSUF6QXSI_cjs.LegacyWorkflow; }
14
14
  });
15
15
  Object.defineProperty(exports, "WhenConditionReturnValue", {
16
16
  enumerable: true,
17
- get: function () { return chunkEYJXFYUH_cjs.WhenConditionReturnValue; }
17
+ get: function () { return chunkSUF6QXSI_cjs.WhenConditionReturnValue; }
18
18
  });
19
19
  Object.defineProperty(exports, "agentToStep", {
20
20
  enumerable: true,
21
- get: function () { return chunkEYJXFYUH_cjs.agentToStep; }
21
+ get: function () { return chunkSUF6QXSI_cjs.agentToStep; }
22
22
  });
23
23
  Object.defineProperty(exports, "getActivePathsAndStatus", {
24
24
  enumerable: true,
25
- get: function () { return chunkEYJXFYUH_cjs.getActivePathsAndStatus; }
25
+ get: function () { return chunkSUF6QXSI_cjs.getActivePathsAndStatus; }
26
26
  });
27
27
  Object.defineProperty(exports, "getResultActivePaths", {
28
28
  enumerable: true,
29
- get: function () { return chunkEYJXFYUH_cjs.getResultActivePaths; }
29
+ get: function () { return chunkSUF6QXSI_cjs.getResultActivePaths; }
30
30
  });
31
31
  Object.defineProperty(exports, "getStepResult", {
32
32
  enumerable: true,
33
- get: function () { return chunkEYJXFYUH_cjs.getStepResult; }
33
+ get: function () { return chunkSUF6QXSI_cjs.getStepResult; }
34
34
  });
35
35
  Object.defineProperty(exports, "getSuspendedPaths", {
36
36
  enumerable: true,
37
- get: function () { return chunkEYJXFYUH_cjs.getSuspendedPaths; }
37
+ get: function () { return chunkSUF6QXSI_cjs.getSuspendedPaths; }
38
38
  });
39
39
  Object.defineProperty(exports, "isAgent", {
40
40
  enumerable: true,
41
- get: function () { return chunkEYJXFYUH_cjs.isAgent; }
41
+ get: function () { return chunkSUF6QXSI_cjs.isAgent; }
42
42
  });
43
43
  Object.defineProperty(exports, "isConditionalKey", {
44
44
  enumerable: true,
45
- get: function () { return chunkEYJXFYUH_cjs.isConditionalKey; }
45
+ get: function () { return chunkSUF6QXSI_cjs.isConditionalKey; }
46
46
  });
47
47
  Object.defineProperty(exports, "isErrorEvent", {
48
48
  enumerable: true,
49
- get: function () { return chunkEYJXFYUH_cjs.isErrorEvent; }
49
+ get: function () { return chunkSUF6QXSI_cjs.isErrorEvent; }
50
50
  });
51
51
  Object.defineProperty(exports, "isFinalState", {
52
52
  enumerable: true,
53
- get: function () { return chunkEYJXFYUH_cjs.isFinalState; }
53
+ get: function () { return chunkSUF6QXSI_cjs.isFinalState; }
54
54
  });
55
55
  Object.defineProperty(exports, "isLimboState", {
56
56
  enumerable: true,
57
- get: function () { return chunkEYJXFYUH_cjs.isLimboState; }
57
+ get: function () { return chunkSUF6QXSI_cjs.isLimboState; }
58
58
  });
59
59
  Object.defineProperty(exports, "isTransitionEvent", {
60
60
  enumerable: true,
61
- get: function () { return chunkEYJXFYUH_cjs.isTransitionEvent; }
61
+ get: function () { return chunkSUF6QXSI_cjs.isTransitionEvent; }
62
62
  });
63
63
  Object.defineProperty(exports, "isVariableReference", {
64
64
  enumerable: true,
65
- get: function () { return chunkEYJXFYUH_cjs.isVariableReference; }
65
+ get: function () { return chunkSUF6QXSI_cjs.isVariableReference; }
66
66
  });
67
67
  Object.defineProperty(exports, "isWorkflow", {
68
68
  enumerable: true,
69
- get: function () { return chunkEYJXFYUH_cjs.isWorkflow; }
69
+ get: function () { return chunkSUF6QXSI_cjs.isWorkflow; }
70
70
  });
71
71
  Object.defineProperty(exports, "mergeChildValue", {
72
72
  enumerable: true,
73
- get: function () { return chunkEYJXFYUH_cjs.mergeChildValue; }
73
+ get: function () { return chunkSUF6QXSI_cjs.mergeChildValue; }
74
74
  });
75
75
  Object.defineProperty(exports, "recursivelyCheckForFinalState", {
76
76
  enumerable: true,
77
- get: function () { return chunkEYJXFYUH_cjs.recursivelyCheckForFinalState; }
77
+ get: function () { return chunkSUF6QXSI_cjs.recursivelyCheckForFinalState; }
78
78
  });
79
79
  Object.defineProperty(exports, "resolveVariables", {
80
80
  enumerable: true,
81
- get: function () { return chunkEYJXFYUH_cjs.resolveVariables; }
81
+ get: function () { return chunkSUF6QXSI_cjs.resolveVariables; }
82
82
  });
83
83
  Object.defineProperty(exports, "updateStepInHierarchy", {
84
84
  enumerable: true,
85
- get: function () { return chunkEYJXFYUH_cjs.updateStepInHierarchy; }
85
+ get: function () { return chunkSUF6QXSI_cjs.updateStepInHierarchy; }
86
86
  });
87
87
  Object.defineProperty(exports, "workflowToStep", {
88
88
  enumerable: true,
89
- get: function () { return chunkEYJXFYUH_cjs.workflowToStep; }
89
+ get: function () { return chunkSUF6QXSI_cjs.workflowToStep; }
90
90
  });
@@ -1,22 +1,22 @@
1
- import { Q as VariableReference, R as StepResult, d as LegacyStep, L as LegacyWorkflow, A as Agent, W as WorkflowContext, T as ToolsInput, M as Mastra, U as StepAction, X as LegacyWorkflowRunResult } from '../../base-B_WEJuiR.cjs';
2
- export { a2 as ActionContext, a1 as BaseCondition, ad as DependencyCheckOutput, ak as ExtractSchemaFromStep, an as ExtractSchemaType, al as ExtractStepResult, ap as LegacyWorkflowRunState, ai as LegacyWorkflowState, ao as PathsToStringProps, aa as ResolverFunctionInput, ab as ResolverFunctionOutput, a0 as RetryConfig, a5 as StepCondition, a6 as StepConfig, a4 as StepDef, S as StepExecutionContext, $ as StepGraph, aj as StepId, am as StepInputType, _ as StepNode, ae as StepResolverOutput, Z as StepVariableType, a7 as StepsRecord, ac as SubscriberFunctionOutput, a3 as WhenConditionReturnValue, ag as WorkflowActionParams, ah as WorkflowActions, af as WorkflowActors, a9 as WorkflowEvent, a8 as WorkflowLogMessage, Y as WorkflowOptions, aq as WorkflowResumeResult } from '../../base-B_WEJuiR.cjs';
1
+ import { Q as VariableReference, R as StepResult, d as LegacyStep, L as LegacyWorkflow, A as Agent, W as WorkflowContext, T as ToolsInput, M as Mastra, U as StepAction, X as LegacyWorkflowRunResult } from '../../base-Bu9IeyHt.cjs';
2
+ export { a2 as ActionContext, a1 as BaseCondition, ad as DependencyCheckOutput, ak as ExtractSchemaFromStep, an as ExtractSchemaType, al as ExtractStepResult, ap as LegacyWorkflowRunState, ai as LegacyWorkflowState, ao as PathsToStringProps, aa as ResolverFunctionInput, ab as ResolverFunctionOutput, a0 as RetryConfig, a5 as StepCondition, a6 as StepConfig, a4 as StepDef, S as StepExecutionContext, $ as StepGraph, aj as StepId, am as StepInputType, _ as StepNode, ae as StepResolverOutput, Z as StepVariableType, a7 as StepsRecord, ac as SubscriberFunctionOutput, a3 as WhenConditionReturnValue, ag as WorkflowActionParams, ah as WorkflowActions, af as WorkflowActors, a9 as WorkflowEvent, a8 as WorkflowLogMessage, Y as WorkflowOptions, aq as WorkflowResumeResult } from '../../base-Bu9IeyHt.cjs';
3
3
  import { z } from 'zod';
4
4
  import { M as Metric } from '../../types-Bo1uigWx.cjs';
5
- import { I as IMastraLogger } from '../../logger-CpL0z5v_.cjs';
6
- import '../../base-DVVTzIQy.cjs';
5
+ import { I as IMastraLogger } from '../../logger-B8XXh6ya.cjs';
6
+ import '../../base-B_y9sMg0.cjs';
7
7
  import 'ai';
8
8
  import 'json-schema';
9
- import '../../tts/index.cjs';
10
- import '@opentelemetry/api';
11
- import '../../error/index.cjs';
12
- import 'stream';
13
- import '@opentelemetry/sdk-trace-base';
14
- import '../../vector/index.cjs';
15
- import '../../vector/filter/index.cjs';
16
9
  import 'sift';
17
10
  import '../../runtime-context/index.cjs';
11
+ import '@opentelemetry/api';
18
12
  import 'xstate';
19
13
  import 'node:events';
14
+ import '../../vector/index.cjs';
15
+ import '../../vector/filter/index.cjs';
16
+ import '../../tts/index.cjs';
17
+ import '../../error/index.cjs';
18
+ import 'stream';
19
+ import '@opentelemetry/sdk-trace-base';
20
20
  import 'node:http';
21
21
  import 'hono';
22
22
  import 'stream/web';
@@ -1,22 +1,22 @@
1
- import { Q as VariableReference, R as StepResult, d as LegacyStep, L as LegacyWorkflow, A as Agent, W as WorkflowContext, T as ToolsInput, M as Mastra, U as StepAction, X as LegacyWorkflowRunResult } from '../../base-DnSegjq5.js';
2
- export { a2 as ActionContext, a1 as BaseCondition, ad as DependencyCheckOutput, ak as ExtractSchemaFromStep, an as ExtractSchemaType, al as ExtractStepResult, ap as LegacyWorkflowRunState, ai as LegacyWorkflowState, ao as PathsToStringProps, aa as ResolverFunctionInput, ab as ResolverFunctionOutput, a0 as RetryConfig, a5 as StepCondition, a6 as StepConfig, a4 as StepDef, S as StepExecutionContext, $ as StepGraph, aj as StepId, am as StepInputType, _ as StepNode, ae as StepResolverOutput, Z as StepVariableType, a7 as StepsRecord, ac as SubscriberFunctionOutput, a3 as WhenConditionReturnValue, ag as WorkflowActionParams, ah as WorkflowActions, af as WorkflowActors, a9 as WorkflowEvent, a8 as WorkflowLogMessage, Y as WorkflowOptions, aq as WorkflowResumeResult } from '../../base-DnSegjq5.js';
1
+ import { Q as VariableReference, R as StepResult, d as LegacyStep, L as LegacyWorkflow, A as Agent, W as WorkflowContext, T as ToolsInput, M as Mastra, U as StepAction, X as LegacyWorkflowRunResult } from '../../base-D6PagN3X.js';
2
+ export { a2 as ActionContext, a1 as BaseCondition, ad as DependencyCheckOutput, ak as ExtractSchemaFromStep, an as ExtractSchemaType, al as ExtractStepResult, ap as LegacyWorkflowRunState, ai as LegacyWorkflowState, ao as PathsToStringProps, aa as ResolverFunctionInput, ab as ResolverFunctionOutput, a0 as RetryConfig, a5 as StepCondition, a6 as StepConfig, a4 as StepDef, S as StepExecutionContext, $ as StepGraph, aj as StepId, am as StepInputType, _ as StepNode, ae as StepResolverOutput, Z as StepVariableType, a7 as StepsRecord, ac as SubscriberFunctionOutput, a3 as WhenConditionReturnValue, ag as WorkflowActionParams, ah as WorkflowActions, af as WorkflowActors, a9 as WorkflowEvent, a8 as WorkflowLogMessage, Y as WorkflowOptions, aq as WorkflowResumeResult } from '../../base-D6PagN3X.js';
3
3
  import { z } from 'zod';
4
4
  import { M as Metric } from '../../types-Bo1uigWx.js';
5
- import { I as IMastraLogger } from '../../logger-DtVDdb81.js';
6
- import '../../base-BbdvunNJ.js';
5
+ import { I as IMastraLogger } from '../../logger-Bpa2oLL4.js';
6
+ import '../../base-ClrXcCRx.js';
7
7
  import 'ai';
8
8
  import 'json-schema';
9
- import '../../tts/index.js';
10
- import '@opentelemetry/api';
11
- import '../../error/index.js';
12
- import 'stream';
13
- import '@opentelemetry/sdk-trace-base';
14
- import '../../vector/index.js';
15
- import '../../vector/filter/index.js';
16
9
  import 'sift';
17
10
  import '../../runtime-context/index.js';
11
+ import '@opentelemetry/api';
18
12
  import 'xstate';
19
13
  import 'node:events';
14
+ import '../../vector/index.js';
15
+ import '../../vector/filter/index.js';
16
+ import '../../tts/index.js';
17
+ import '../../error/index.js';
18
+ import 'stream';
19
+ import '@opentelemetry/sdk-trace-base';
20
20
  import 'node:http';
21
21
  import 'hono';
22
22
  import 'stream/web';
@@ -1 +1 @@
1
- export { LegacyStep, LegacyWorkflow, WhenConditionReturnValue, agentToStep, getActivePathsAndStatus, getResultActivePaths, getStepResult, getSuspendedPaths, isAgent, isConditionalKey, isErrorEvent, isFinalState, isLimboState, isTransitionEvent, isVariableReference, isWorkflow, mergeChildValue, recursivelyCheckForFinalState, resolveVariables, updateStepInHierarchy, workflowToStep } from '../../chunk-WK3SHUOG.js';
1
+ export { LegacyStep, LegacyWorkflow, WhenConditionReturnValue, agentToStep, getActivePathsAndStatus, getResultActivePaths, getStepResult, getSuspendedPaths, isAgent, isConditionalKey, isErrorEvent, isFinalState, isLimboState, isTransitionEvent, isVariableReference, isWorkflow, mergeChildValue, recursivelyCheckForFinalState, resolveVariables, updateStepInHierarchy, workflowToStep } from '../../chunk-Y2FKASKG.js';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mastra/core",
3
- "version": "0.10.8",
3
+ "version": "0.10.9",
4
4
  "license": "Elastic-2.0",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -125,7 +125,7 @@
125
125
  "cohere-ai": "^7.17.1",
126
126
  "date-fns": "^3.6.0",
127
127
  "dotenv": "^16.5.0",
128
- "hono": "^4.7.11",
128
+ "hono": "^4.8.3",
129
129
  "hono-openapi": "^0.4.8",
130
130
  "json-schema": "^0.4.0",
131
131
  "json-schema-to-zod": "^2.6.1",
@@ -159,9 +159,9 @@
159
159
  "size-limit": "^11.2.0",
160
160
  "tsup": "^8.5.0",
161
161
  "typescript": "^5.8.3",
162
- "vitest": "^3.2.3",
162
+ "vitest": "^3.2.4",
163
163
  "zod": "^3.25.67",
164
- "@internal/lint": "0.0.15"
164
+ "@internal/lint": "0.0.16"
165
165
  },
166
166
  "engines": {
167
167
  "node": ">=20"