@mastra/core 0.5.0-alpha.9 → 0.5.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 (91) hide show
  1. package/dist/agent/index.cjs +3 -2140
  2. package/dist/agent/index.d.cts +1 -1
  3. package/dist/agent/index.d.ts +1 -1
  4. package/dist/agent/index.js +1 -1
  5. package/dist/{base-CMEKtEnE.d.cts → base-CIPKleAU.d.cts} +97 -60
  6. package/dist/{base-B78F6w8S.d.ts → base-C_Oq53qk.d.ts} +97 -60
  7. package/dist/base.cjs +5 -140
  8. package/dist/bundler/index.cjs +5 -160
  9. package/dist/chunk-2W2GYEYQ.cjs +25 -0
  10. package/dist/chunk-3ASEZT7U.cjs +1586 -0
  11. package/dist/chunk-43Y7WG5W.cjs +335 -0
  12. package/dist/{chunk-IM7CM3DU.js → chunk-4Y74D74B.js} +1 -1
  13. package/dist/chunk-ENT7U27Y.cjs +37 -0
  14. package/dist/chunk-F5UYWPV4.cjs +14 -0
  15. package/dist/chunk-FL3GQXQ2.cjs +218 -0
  16. package/dist/chunk-FRQFWZDN.cjs +2 -0
  17. package/dist/chunk-GXQRMKSN.cjs +367 -0
  18. package/dist/chunk-HJPMYDWO.cjs +37 -0
  19. package/dist/chunk-IIWRJFLQ.cjs +51 -0
  20. package/dist/chunk-KFQ7Z3PO.cjs +347 -0
  21. package/dist/{chunk-TWAIC2XA.js → chunk-KP5UAFLN.js} +1 -1
  22. package/dist/chunk-KPKFLQFR.cjs +12 -0
  23. package/dist/{chunk-NR5T72G7.js → chunk-MLFXOST6.js} +1 -1
  24. package/dist/{chunk-6V737PR2.js → chunk-OD7ZMKHY.js} +166 -58
  25. package/dist/chunk-OTFLHXHZ.cjs +65 -0
  26. package/dist/chunk-RWTSGWWL.cjs +81 -0
  27. package/dist/chunk-ST5RMVLG.cjs +87 -0
  28. package/dist/chunk-SYQ7NK2E.cjs +24 -0
  29. package/dist/chunk-UZNQG7QO.cjs +1868 -0
  30. package/dist/chunk-V5ORZPFW.cjs +38 -0
  31. package/dist/chunk-VA4P7QJT.cjs +443 -0
  32. package/dist/chunk-WB2HREXE.cjs +166 -0
  33. package/dist/chunk-WOMOGDGR.cjs +691 -0
  34. package/dist/chunk-XB2TJ7LX.cjs +408 -0
  35. package/dist/{chunk-4AQBRUR2.js → chunk-XF2FMJYK.js} +1 -1
  36. package/dist/chunk-XLSROQ26.cjs +91 -0
  37. package/dist/chunk-YK3XJ52U.cjs +192 -0
  38. package/dist/{chunk-EWB556GS.js → chunk-YPD6BQIM.js} +29 -1
  39. package/dist/deployer/index.cjs +5 -167
  40. package/dist/eval/index.cjs +9 -105
  41. package/dist/eval/index.d.cts +1 -1
  42. package/dist/eval/index.d.ts +1 -1
  43. package/dist/hooks/index.cjs +14 -83
  44. package/dist/index.cjs +253 -7516
  45. package/dist/index.d.cts +3 -3
  46. package/dist/index.d.ts +3 -3
  47. package/dist/index.js +7 -7
  48. package/dist/integration/index.cjs +9 -108
  49. package/dist/integration/index.d.cts +1 -1
  50. package/dist/integration/index.d.ts +1 -1
  51. package/dist/llm/index.d.cts +1 -1
  52. package/dist/llm/index.d.ts +1 -1
  53. package/dist/logger/index.cjs +33 -161
  54. package/dist/mastra/index.cjs +3 -1755
  55. package/dist/mastra/index.d.cts +1 -1
  56. package/dist/mastra/index.d.ts +1 -1
  57. package/dist/mastra/index.js +1 -1
  58. package/dist/memory/index.cjs +4 -2050
  59. package/dist/memory/index.d.cts +1 -1
  60. package/dist/memory/index.d.ts +1 -1
  61. package/dist/memory/index.js +1 -1
  62. package/dist/relevance/index.cjs +10 -2201
  63. package/dist/relevance/index.d.cts +19 -2
  64. package/dist/relevance/index.d.ts +19 -2
  65. package/dist/relevance/index.js +1 -1
  66. package/dist/storage/index.cjs +29 -367
  67. package/dist/storage/index.d.cts +1 -1
  68. package/dist/storage/index.d.ts +1 -1
  69. package/dist/storage/libsql/index.cjs +9 -798
  70. package/dist/storage/libsql/index.d.cts +1 -1
  71. package/dist/storage/libsql/index.d.ts +1 -1
  72. package/dist/telemetry/index.cjs +21 -408
  73. package/dist/telemetry/index.d.cts +1 -1
  74. package/dist/telemetry/index.d.ts +1 -1
  75. package/dist/tools/index.cjs +11 -22
  76. package/dist/tools/index.d.cts +3 -3
  77. package/dist/tools/index.d.ts +3 -3
  78. package/dist/tts/index.cjs +3 -328
  79. package/dist/utils.cjs +41 -350
  80. package/dist/utils.d.cts +3 -3
  81. package/dist/utils.d.ts +3 -3
  82. package/dist/utils.js +1 -1
  83. package/dist/vector/filter/index.cjs +7 -189
  84. package/dist/vector/index.cjs +5 -172
  85. package/dist/vector/libsql/index.cjs +9 -1047
  86. package/dist/voice/index.cjs +8 -306
  87. package/dist/workflows/index.cjs +65 -1936
  88. package/dist/workflows/index.d.cts +4 -3
  89. package/dist/workflows/index.d.ts +4 -3
  90. package/dist/workflows/index.js +1 -1
  91. package/package.json +27 -27
@@ -1,5 +1,5 @@
1
- import { a1 as VariableReference, a8 as StepResult } from '../base-CMEKtEnE.cjs';
2
- export { a3 as ActionContext, a2 as BaseCondition, af as DependencyCheckOutput, al as ExtractSchemaFromStep, ao as ExtractSchemaType, am as ExtractStepResult, ap as PathsToStringProps, ac as ResolverFunctionInput, ad as ResolverFunctionOutput, a0 as RetryConfig, k as Step, Y as StepAction, a6 as StepCondition, a7 as StepConfig, a5 as StepDef, X as StepExecutionContext, $ as StepGraph, ak as StepId, an as StepInputType, _ as StepNode, Z as StepVariableType, ae as SubscriberFunctionOutput, a4 as WhenConditionReturnValue, W as Workflow, ah as WorkflowActionParams, ai as WorkflowActions, ag as WorkflowActors, a9 as WorkflowContext, ab as WorkflowEvent, aa as WorkflowLogMessage, l as WorkflowOptions, ar as WorkflowResumeResult, aq as WorkflowRunState, aj as WorkflowState, as as createStep } from '../base-CMEKtEnE.cjs';
1
+ import { a2 as VariableReference, a9 as StepResult } from '../base-CIPKleAU.cjs';
2
+ export { a4 as ActionContext, a3 as BaseCondition, ah as DependencyCheckOutput, ao as ExtractSchemaFromStep, ar as ExtractSchemaType, ap as ExtractStepResult, as as PathsToStringProps, ae as ResolverFunctionInput, af as ResolverFunctionOutput, a1 as RetryConfig, S as Step, Z as StepAction, a7 as StepCondition, a8 as StepConfig, a6 as StepDef, d as StepExecutionContext, a0 as StepGraph, an as StepId, aq as StepInputType, $ as StepNode, ai as StepResolverOutput, _ as StepVariableType, aa as StepsRecord, ag as SubscriberFunctionOutput, a5 as WhenConditionReturnValue, W as Workflow, ak as WorkflowActionParams, al as WorkflowActions, aj as WorkflowActors, e as WorkflowContext, ad as WorkflowEvent, ac as WorkflowLogMessage, n as WorkflowOptions, au as WorkflowResumeResult, ab as WorkflowRunResult, at as WorkflowRunState, am as WorkflowState, av as createStep } from '../base-CIPKleAU.cjs';
3
3
  import 'ai';
4
4
  import '../base-DboIg_Cd.cjs';
5
5
  import '@opentelemetry/api';
@@ -34,6 +34,7 @@ declare function getSuspendedPaths({ value, path, suspendedPaths, }: {
34
34
  suspendedPaths: Set<string>;
35
35
  }): void;
36
36
  declare function isFinalState(status: string): boolean;
37
+ declare function isLimboState(status: string): boolean;
37
38
  declare function recursivelyCheckForFinalState({ value, suspendedPaths, path, }: {
38
39
  value: string | Record<string, string>;
39
40
  suspendedPaths: Set<string>;
@@ -56,4 +57,4 @@ declare function getResultActivePaths(state: {
56
57
  suspendPayload?: any;
57
58
  }>;
58
59
 
59
- export { StepResult, VariableReference, getActivePathsAndStatus, getResultActivePaths, getStepResult, getSuspendedPaths, isErrorEvent, isFinalState, isTransitionEvent, isVariableReference, mergeChildValue, recursivelyCheckForFinalState, updateStepInHierarchy };
60
+ export { StepResult, VariableReference, getActivePathsAndStatus, getResultActivePaths, getStepResult, getSuspendedPaths, isErrorEvent, isFinalState, isLimboState, isTransitionEvent, isVariableReference, mergeChildValue, recursivelyCheckForFinalState, updateStepInHierarchy };
@@ -1,5 +1,5 @@
1
- import { a1 as VariableReference, a8 as StepResult } from '../base-B78F6w8S.js';
2
- export { a3 as ActionContext, a2 as BaseCondition, af as DependencyCheckOutput, al as ExtractSchemaFromStep, ao as ExtractSchemaType, am as ExtractStepResult, ap as PathsToStringProps, ac as ResolverFunctionInput, ad as ResolverFunctionOutput, a0 as RetryConfig, k as Step, Y as StepAction, a6 as StepCondition, a7 as StepConfig, a5 as StepDef, X as StepExecutionContext, $ as StepGraph, ak as StepId, an as StepInputType, _ as StepNode, Z as StepVariableType, ae as SubscriberFunctionOutput, a4 as WhenConditionReturnValue, W as Workflow, ah as WorkflowActionParams, ai as WorkflowActions, ag as WorkflowActors, a9 as WorkflowContext, ab as WorkflowEvent, aa as WorkflowLogMessage, l as WorkflowOptions, ar as WorkflowResumeResult, aq as WorkflowRunState, aj as WorkflowState, as as createStep } from '../base-B78F6w8S.js';
1
+ import { a2 as VariableReference, a9 as StepResult } from '../base-C_Oq53qk.js';
2
+ export { a4 as ActionContext, a3 as BaseCondition, ah as DependencyCheckOutput, ao as ExtractSchemaFromStep, ar as ExtractSchemaType, ap as ExtractStepResult, as as PathsToStringProps, ae as ResolverFunctionInput, af as ResolverFunctionOutput, a1 as RetryConfig, S as Step, Z as StepAction, a7 as StepCondition, a8 as StepConfig, a6 as StepDef, d as StepExecutionContext, a0 as StepGraph, an as StepId, aq as StepInputType, $ as StepNode, ai as StepResolverOutput, _ as StepVariableType, aa as StepsRecord, ag as SubscriberFunctionOutput, a5 as WhenConditionReturnValue, W as Workflow, ak as WorkflowActionParams, al as WorkflowActions, aj as WorkflowActors, e as WorkflowContext, ad as WorkflowEvent, ac as WorkflowLogMessage, n as WorkflowOptions, au as WorkflowResumeResult, ab as WorkflowRunResult, at as WorkflowRunState, am as WorkflowState, av as createStep } from '../base-C_Oq53qk.js';
3
3
  import 'ai';
4
4
  import '../base-BZViaFTt.js';
5
5
  import '@opentelemetry/api';
@@ -34,6 +34,7 @@ declare function getSuspendedPaths({ value, path, suspendedPaths, }: {
34
34
  suspendedPaths: Set<string>;
35
35
  }): void;
36
36
  declare function isFinalState(status: string): boolean;
37
+ declare function isLimboState(status: string): boolean;
37
38
  declare function recursivelyCheckForFinalState({ value, suspendedPaths, path, }: {
38
39
  value: string | Record<string, string>;
39
40
  suspendedPaths: Set<string>;
@@ -56,4 +57,4 @@ declare function getResultActivePaths(state: {
56
57
  suspendPayload?: any;
57
58
  }>;
58
59
 
59
- export { StepResult, VariableReference, getActivePathsAndStatus, getResultActivePaths, getStepResult, getSuspendedPaths, isErrorEvent, isFinalState, isTransitionEvent, isVariableReference, mergeChildValue, recursivelyCheckForFinalState, updateStepInHierarchy };
60
+ export { StepResult, VariableReference, getActivePathsAndStatus, getResultActivePaths, getStepResult, getSuspendedPaths, isErrorEvent, isFinalState, isLimboState, isTransitionEvent, isVariableReference, mergeChildValue, recursivelyCheckForFinalState, updateStepInHierarchy };
@@ -1 +1 @@
1
- export { Step, WhenConditionReturnValue, Workflow, createStep, getActivePathsAndStatus, getResultActivePaths, getStepResult, getSuspendedPaths, isErrorEvent, isFinalState, isTransitionEvent, isVariableReference, mergeChildValue, recursivelyCheckForFinalState, updateStepInHierarchy } from '../chunk-6V737PR2.js';
1
+ export { Step, WhenConditionReturnValue, Workflow, createStep, getActivePathsAndStatus, getResultActivePaths, getStepResult, getSuspendedPaths, isErrorEvent, isFinalState, isLimboState, isTransitionEvent, isVariableReference, mergeChildValue, recursivelyCheckForFinalState, updateStepInHierarchy } from '../chunk-OD7ZMKHY.js';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mastra/core",
3
- "version": "0.5.0-alpha.9",
3
+ "version": "0.5.0",
4
4
  "license": "ISC",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -97,49 +97,49 @@
97
97
  "@opentelemetry/api": "^1.9.0",
98
98
  "@opentelemetry/auto-instrumentations-node": "^0.53.0",
99
99
  "@opentelemetry/core": "^1.30.1",
100
- "@opentelemetry/exporter-trace-otlp-http": "^0.55.0",
101
100
  "@opentelemetry/exporter-trace-otlp-grpc": "^0.55.0",
102
- "@opentelemetry/otlp-exporter-base": "^0.57.1",
103
- "@opentelemetry/otlp-transformer": "^0.57.1",
104
- "@opentelemetry/resources": "^1.28.0",
105
- "@opentelemetry/sdk-metrics": "^1.28.0",
101
+ "@opentelemetry/exporter-trace-otlp-http": "^0.55.0",
102
+ "@opentelemetry/otlp-exporter-base": "^0.57.2",
103
+ "@opentelemetry/otlp-transformer": "^0.57.2",
104
+ "@opentelemetry/resources": "^1.30.1",
105
+ "@opentelemetry/sdk-metrics": "^1.30.1",
106
106
  "@opentelemetry/sdk-node": "^0.55.0",
107
107
  "@opentelemetry/sdk-trace-base": "^1.30.1",
108
- "@opentelemetry/sdk-trace-node": "^1.28.0",
109
- "@opentelemetry/semantic-conventions": "^1.28.0",
110
- "ai": "^4.1.53",
111
- "cohere-ai": "^7.15.4",
112
- "date-fns": "^3.0.5",
108
+ "@opentelemetry/sdk-trace-node": "^1.30.1",
109
+ "@opentelemetry/semantic-conventions": "^1.30.0",
110
+ "ai": "^4.1.54",
111
+ "cohere-ai": "^7.16.0",
112
+ "date-fns": "^3.6.0",
113
113
  "dotenv": "^16.4.7",
114
114
  "fastembed": "^1.14.1",
115
115
  "json-schema": "^0.4.0",
116
- "json-schema-to-zod": "^2.5.0",
116
+ "json-schema-to-zod": "^2.6.0",
117
117
  "node_modules-path": "^2.0.8",
118
118
  "pino": "^9.6.0",
119
119
  "pino-pretty": "^13.0.0",
120
120
  "radash": "^12.1.0",
121
121
  "sift": "^17.1.3",
122
- "xstate": "^5.19.0",
123
- "zod": "^3.24.1"
122
+ "xstate": "^5.19.2",
123
+ "zod": "^3.24.2"
124
124
  },
125
125
  "devDependencies": {
126
- "@ai-sdk/openai": "^1.1.12",
127
- "@babel/core": "^7.26.7",
128
- "@microsoft/api-extractor": "^7.49.2",
129
- "@size-limit/preset-small-lib": "^11.1.4",
126
+ "@ai-sdk/openai": "^1.2.1",
127
+ "@babel/core": "^7.26.9",
128
+ "@microsoft/api-extractor": "^7.52.1",
129
+ "@size-limit/preset-small-lib": "^11.2.0",
130
130
  "@types/babel__core": "^7.20.5",
131
131
  "@types/json-schema": "^7.0.15",
132
132
  "@types/lodash-es": "^4.17.12",
133
- "@types/node": "^22.13.1",
133
+ "@types/node": "^22.13.10",
134
134
  "@types/pino": "^7.0.5",
135
- "@types/qs": "^6.9.15",
136
- "eslint": "^9.20.1",
137
- "rollup": "^4.30.1",
138
- "size-limit": "^11.1.4",
139
- "tsup": "^8.3.6",
140
- "typescript": "^5.7.3",
141
- "vitest": "^3.0.4",
142
- "@internal/lint": "0.0.0"
135
+ "@types/qs": "^6.9.18",
136
+ "eslint": "^9.22.0",
137
+ "rollup": "^4.35.0",
138
+ "size-limit": "^11.2.0",
139
+ "tsup": "^8.4.0",
140
+ "typescript": "^5.8.2",
141
+ "vitest": "^3.0.8",
142
+ "@internal/lint": "0.0.1"
143
143
  },
144
144
  "engines": {
145
145
  "node": ">=20"