@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.
- package/dist/agent/index.cjs +3 -2140
- package/dist/agent/index.d.cts +1 -1
- package/dist/agent/index.d.ts +1 -1
- package/dist/agent/index.js +1 -1
- package/dist/{base-CMEKtEnE.d.cts → base-CIPKleAU.d.cts} +97 -60
- package/dist/{base-B78F6w8S.d.ts → base-C_Oq53qk.d.ts} +97 -60
- package/dist/base.cjs +5 -140
- package/dist/bundler/index.cjs +5 -160
- package/dist/chunk-2W2GYEYQ.cjs +25 -0
- package/dist/chunk-3ASEZT7U.cjs +1586 -0
- package/dist/chunk-43Y7WG5W.cjs +335 -0
- package/dist/{chunk-IM7CM3DU.js → chunk-4Y74D74B.js} +1 -1
- package/dist/chunk-ENT7U27Y.cjs +37 -0
- package/dist/chunk-F5UYWPV4.cjs +14 -0
- package/dist/chunk-FL3GQXQ2.cjs +218 -0
- package/dist/chunk-FRQFWZDN.cjs +2 -0
- package/dist/chunk-GXQRMKSN.cjs +367 -0
- package/dist/chunk-HJPMYDWO.cjs +37 -0
- package/dist/chunk-IIWRJFLQ.cjs +51 -0
- package/dist/chunk-KFQ7Z3PO.cjs +347 -0
- package/dist/{chunk-TWAIC2XA.js → chunk-KP5UAFLN.js} +1 -1
- package/dist/chunk-KPKFLQFR.cjs +12 -0
- package/dist/{chunk-NR5T72G7.js → chunk-MLFXOST6.js} +1 -1
- package/dist/{chunk-6V737PR2.js → chunk-OD7ZMKHY.js} +166 -58
- package/dist/chunk-OTFLHXHZ.cjs +65 -0
- package/dist/chunk-RWTSGWWL.cjs +81 -0
- package/dist/chunk-ST5RMVLG.cjs +87 -0
- package/dist/chunk-SYQ7NK2E.cjs +24 -0
- package/dist/chunk-UZNQG7QO.cjs +1868 -0
- package/dist/chunk-V5ORZPFW.cjs +38 -0
- package/dist/chunk-VA4P7QJT.cjs +443 -0
- package/dist/chunk-WB2HREXE.cjs +166 -0
- package/dist/chunk-WOMOGDGR.cjs +691 -0
- package/dist/chunk-XB2TJ7LX.cjs +408 -0
- package/dist/{chunk-4AQBRUR2.js → chunk-XF2FMJYK.js} +1 -1
- package/dist/chunk-XLSROQ26.cjs +91 -0
- package/dist/chunk-YK3XJ52U.cjs +192 -0
- package/dist/{chunk-EWB556GS.js → chunk-YPD6BQIM.js} +29 -1
- package/dist/deployer/index.cjs +5 -167
- package/dist/eval/index.cjs +9 -105
- package/dist/eval/index.d.cts +1 -1
- package/dist/eval/index.d.ts +1 -1
- package/dist/hooks/index.cjs +14 -83
- package/dist/index.cjs +253 -7516
- package/dist/index.d.cts +3 -3
- package/dist/index.d.ts +3 -3
- package/dist/index.js +7 -7
- package/dist/integration/index.cjs +9 -108
- package/dist/integration/index.d.cts +1 -1
- package/dist/integration/index.d.ts +1 -1
- package/dist/llm/index.d.cts +1 -1
- package/dist/llm/index.d.ts +1 -1
- package/dist/logger/index.cjs +33 -161
- package/dist/mastra/index.cjs +3 -1755
- package/dist/mastra/index.d.cts +1 -1
- package/dist/mastra/index.d.ts +1 -1
- package/dist/mastra/index.js +1 -1
- package/dist/memory/index.cjs +4 -2050
- package/dist/memory/index.d.cts +1 -1
- package/dist/memory/index.d.ts +1 -1
- package/dist/memory/index.js +1 -1
- package/dist/relevance/index.cjs +10 -2201
- package/dist/relevance/index.d.cts +19 -2
- package/dist/relevance/index.d.ts +19 -2
- package/dist/relevance/index.js +1 -1
- package/dist/storage/index.cjs +29 -367
- package/dist/storage/index.d.cts +1 -1
- package/dist/storage/index.d.ts +1 -1
- package/dist/storage/libsql/index.cjs +9 -798
- package/dist/storage/libsql/index.d.cts +1 -1
- package/dist/storage/libsql/index.d.ts +1 -1
- package/dist/telemetry/index.cjs +21 -408
- package/dist/telemetry/index.d.cts +1 -1
- package/dist/telemetry/index.d.ts +1 -1
- package/dist/tools/index.cjs +11 -22
- package/dist/tools/index.d.cts +3 -3
- package/dist/tools/index.d.ts +3 -3
- package/dist/tts/index.cjs +3 -328
- package/dist/utils.cjs +41 -350
- package/dist/utils.d.cts +3 -3
- package/dist/utils.d.ts +3 -3
- package/dist/utils.js +1 -1
- package/dist/vector/filter/index.cjs +7 -189
- package/dist/vector/index.cjs +5 -172
- package/dist/vector/libsql/index.cjs +9 -1047
- package/dist/voice/index.cjs +8 -306
- package/dist/workflows/index.cjs +65 -1936
- package/dist/workflows/index.d.cts +4 -3
- package/dist/workflows/index.d.ts +4 -3
- package/dist/workflows/index.js +1 -1
- package/package.json +27 -27
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export {
|
|
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 {
|
|
2
|
-
export {
|
|
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 };
|
package/dist/workflows/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { Step, WhenConditionReturnValue, Workflow, createStep, getActivePathsAndStatus, getResultActivePaths, getStepResult, getSuspendedPaths, isErrorEvent, isFinalState, isTransitionEvent, isVariableReference, mergeChildValue, recursivelyCheckForFinalState, updateStepInHierarchy } from '../chunk-
|
|
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
|
|
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-
|
|
103
|
-
"@opentelemetry/otlp-
|
|
104
|
-
"@opentelemetry/
|
|
105
|
-
"@opentelemetry/
|
|
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.
|
|
109
|
-
"@opentelemetry/semantic-conventions": "^1.
|
|
110
|
-
"ai": "^4.1.
|
|
111
|
-
"cohere-ai": "^7.
|
|
112
|
-
"date-fns": "^3.0
|
|
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.
|
|
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.
|
|
123
|
-
"zod": "^3.24.
|
|
122
|
+
"xstate": "^5.19.2",
|
|
123
|
+
"zod": "^3.24.2"
|
|
124
124
|
},
|
|
125
125
|
"devDependencies": {
|
|
126
|
-
"@ai-sdk/openai": "^1.1
|
|
127
|
-
"@babel/core": "^7.26.
|
|
128
|
-
"@microsoft/api-extractor": "^7.
|
|
129
|
-
"@size-limit/preset-small-lib": "^11.
|
|
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.
|
|
133
|
+
"@types/node": "^22.13.10",
|
|
134
134
|
"@types/pino": "^7.0.5",
|
|
135
|
-
"@types/qs": "^6.9.
|
|
136
|
-
"eslint": "^9.
|
|
137
|
-
"rollup": "^4.
|
|
138
|
-
"size-limit": "^11.
|
|
139
|
-
"tsup": "^8.
|
|
140
|
-
"typescript": "^5.
|
|
141
|
-
"vitest": "^3.0.
|
|
142
|
-
"@internal/lint": "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"
|