@mastra/core 0.2.0 → 0.2.1
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.d.ts +1 -1
- package/dist/agent/index.js +1 -15
- package/dist/{base-Bpb7Dmwe.d.ts → base-C7R9FwZ6.d.ts} +7 -7
- package/dist/base.js +0 -2
- package/dist/bundler/index.js +0 -3
- package/dist/{chunk-FGZVE4CM.js → chunk-4ZRHVG25.js} +2 -4
- package/dist/chunk-55GTEVHJ.js +1 -1
- package/dist/{chunk-U6J2FOU4.js → chunk-5HXXWLRX.js} +103 -101
- package/dist/{chunk-SB37QG7O.js → chunk-6TCTOQ3G.js} +38 -37
- package/dist/{chunk-OJ26F3J4.js → chunk-AN562ICT.js} +2 -0
- package/dist/chunk-AWEACB2T.js +1 -1
- package/dist/{chunk-MLWGYRJR.js → chunk-BB4KXGBU.js} +1 -5
- package/dist/chunk-C6A6W6XS.js +48 -20
- package/dist/{chunk-K4DFI76V.js → chunk-CUIUUULJ.js} +313 -204
- package/dist/{chunk-SDBM53G4.js → chunk-HT63PEVD.js} +10 -5
- package/dist/{chunk-VB7CO5ND.js → chunk-NUDAZEOG.js} +6 -2
- package/dist/{chunk-MEISIZMP.js → chunk-PNZK456O.js} +1 -1
- package/dist/chunk-SIFBBGY6.js +2 -2
- package/dist/{chunk-2JL6DQMZ.js → chunk-V4WSAQOP.js} +14 -14
- package/dist/{chunk-65VPTVVP.js → chunk-V5UMPUKC.js} +2 -2
- package/dist/{chunk-J3W3IHDO.js → chunk-VE4JJJSW.js} +43 -21
- package/dist/{chunk-3HBFW3Q7.js → chunk-ZINPRHAN.js} +0 -2
- package/dist/chunk-ZJOXJFJI.js +1 -2
- package/dist/deployer/index.d.ts +1 -1
- package/dist/deployer/index.js +0 -4
- package/dist/eval/index.d.ts +1 -1
- package/dist/eval/index.js +1 -3
- package/dist/filter/index.js +0 -1
- package/dist/hooks/index.js +1 -2
- package/dist/index.d.ts +5 -5
- package/dist/index.js +18 -22
- package/dist/integration/index.d.ts +2 -2
- package/dist/integration/index.js +1 -6
- package/dist/llm/index.d.ts +1 -1
- package/dist/llm/index.js +1 -1
- package/dist/logger/index.js +0 -1
- package/dist/mastra/index.d.ts +15 -14
- package/dist/mastra/index.js +1 -20
- package/dist/memory/index.d.ts +1 -1
- package/dist/memory/index.js +1 -11
- package/dist/relevance/index.js +1 -16
- package/dist/storage/index.d.ts +2 -2
- package/dist/storage/index.js +2 -7
- package/dist/telemetry/index.d.ts +1 -1
- package/dist/telemetry/index.js +1 -3
- package/dist/telemetry/otel-vendor.js +0 -1
- package/dist/tools/index.d.ts +2 -2
- package/dist/tools/index.js +1 -2
- package/dist/tts/index.js +1 -6
- package/dist/utils.js +0 -1
- package/dist/vector/index.d.ts +1 -1
- package/dist/vector/index.js +0 -3
- package/dist/vector/libsql/index.js +1 -6
- package/dist/{workflow-Cy8UTGCt.d.ts → workflow-7xHmmFH5.d.ts} +1 -1
- package/dist/workflows/index.d.ts +3 -3
- package/dist/workflows/index.js +1 -4
- package/package.json +10 -10
- package/dist/chunk-2SAHBQEF.js +0 -3
- /package/dist/{chunk-VDOJTUYY.js → chunk-ZDWFBE5L.js} +0 -0
package/dist/tools/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import { j as ToolExecutionContext, T as ToolAction, c as MastraPrimitives } from '../base-
|
|
3
|
-
export { Q as CoreTool } from '../base-
|
|
2
|
+
import { j as ToolExecutionContext, T as ToolAction, c as MastraPrimitives } from '../base-C7R9FwZ6.js';
|
|
3
|
+
export { Q as CoreTool } from '../base-C7R9FwZ6.js';
|
|
4
4
|
import 'ai';
|
|
5
5
|
import '../base-BbtPAA6f.js';
|
|
6
6
|
import '@opentelemetry/api';
|
package/dist/tools/index.js
CHANGED
|
@@ -1,2 +1 @@
|
|
|
1
|
-
export { Tool, createTool } from '../chunk-
|
|
2
|
-
import '../chunk-C6A6W6XS.js';
|
|
1
|
+
export { Tool, createTool } from '../chunk-ZINPRHAN.js';
|
package/dist/tts/index.js
CHANGED
package/dist/utils.js
CHANGED
package/dist/vector/index.d.ts
CHANGED
|
@@ -6,7 +6,7 @@ import 'pino';
|
|
|
6
6
|
import 'stream';
|
|
7
7
|
import '@opentelemetry/sdk-trace-base';
|
|
8
8
|
|
|
9
|
-
declare const defaultEmbedder: (modelId: string) => ai.EmbeddingModel<string
|
|
9
|
+
declare const defaultEmbedder: ((modelId: string) => ai.EmbeddingModel<string>) & ((modelId: "bge-small-en-v1.5" | "bge-base-en-v1.5") => ai.EmbeddingModel<string>);
|
|
10
10
|
|
|
11
11
|
interface QueryResult {
|
|
12
12
|
id: string;
|
package/dist/vector/index.js
CHANGED
|
@@ -1,6 +1 @@
|
|
|
1
|
-
export { DefaultVectorDB, DefaultVectorDB as LibSQLVector } from '../../chunk-
|
|
2
|
-
import '../../chunk-ZJOXJFJI.js';
|
|
3
|
-
import '../../chunk-AWEACB2T.js';
|
|
4
|
-
import '../../chunk-O2VP5JBC.js';
|
|
5
|
-
import '../../chunk-SIFBBGY6.js';
|
|
6
|
-
import '../../chunk-C6A6W6XS.js';
|
|
1
|
+
export { DefaultVectorDB, DefaultVectorDB as LibSQLVector } from '../../chunk-AN562ICT.js';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Snapshot } from 'xstate';
|
|
2
2
|
import { z } from 'zod';
|
|
3
|
-
import { S as StepExecutionContext, b as StepAction, R as RetryConfig, c as MastraPrimitives, W as WorkflowOptions, I as IAction, d as StepVariableType, e as StepConfig, f as StepResult, g as WorkflowRunState, h as StepGraph } from './base-
|
|
3
|
+
import { S as StepExecutionContext, b as StepAction, R as RetryConfig, c as MastraPrimitives, W as WorkflowOptions, I as IAction, d as StepVariableType, e as StepConfig, f as StepResult, g as WorkflowRunState, h as StepGraph } from './base-C7R9FwZ6.js';
|
|
4
4
|
import { M as MastraBase } from './base-BbtPAA6f.js';
|
|
5
5
|
|
|
6
6
|
declare class Step<TStepId extends string = any, TSchemaIn extends z.ZodSchema | undefined = undefined, TSchemaOut extends z.ZodSchema | undefined = undefined, TContext extends StepExecutionContext<TSchemaIn> = StepExecutionContext<TSchemaIn>> implements StepAction<TStepId, TSchemaIn, TSchemaOut, TContext> {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export { S as Step, W as Workflow, c as createStep } from '../workflow-
|
|
2
|
-
import { V as VariableReference, f as StepResult } from '../base-
|
|
3
|
-
export { Y as ActionContext, X as BaseCondition, a5 as DependencyCheckOutput, ab as ExtractSchemaFromStep, ae as ExtractSchemaType, ac as ExtractStepResult, af as PathsToStringProps, a2 as ResolverFunctionInput, a3 as ResolverFunctionOutput, R as RetryConfig, b as StepAction, _ as StepCondition, e as StepConfig, Z as StepDef, S as StepExecutionContext, h as StepGraph, aa as StepId, ad as StepInputType, U as StepNode, d as StepVariableType, a4 as SubscriberFunctionOutput, a7 as WorkflowActionParams, a8 as WorkflowActions, a6 as WorkflowActors, $ as WorkflowContext, a1 as WorkflowEvent, a0 as WorkflowLogMessage, W as WorkflowOptions, g as WorkflowRunState, a9 as WorkflowState } from '../base-
|
|
1
|
+
export { S as Step, W as Workflow, c as createStep } from '../workflow-7xHmmFH5.js';
|
|
2
|
+
import { V as VariableReference, f as StepResult } from '../base-C7R9FwZ6.js';
|
|
3
|
+
export { Y as ActionContext, X as BaseCondition, a5 as DependencyCheckOutput, ab as ExtractSchemaFromStep, ae as ExtractSchemaType, ac as ExtractStepResult, af as PathsToStringProps, a2 as ResolverFunctionInput, a3 as ResolverFunctionOutput, R as RetryConfig, b as StepAction, _ as StepCondition, e as StepConfig, Z as StepDef, S as StepExecutionContext, h as StepGraph, aa as StepId, ad as StepInputType, U as StepNode, d as StepVariableType, a4 as SubscriberFunctionOutput, a7 as WorkflowActionParams, a8 as WorkflowActions, a6 as WorkflowActors, $ as WorkflowContext, a1 as WorkflowEvent, a0 as WorkflowLogMessage, W as WorkflowOptions, g as WorkflowRunState, a9 as WorkflowState } from '../base-C7R9FwZ6.js';
|
|
4
4
|
import 'xstate';
|
|
5
5
|
import 'zod';
|
|
6
6
|
import '../base-BbtPAA6f.js';
|
package/dist/workflows/index.js
CHANGED
|
@@ -1,4 +1 @@
|
|
|
1
|
-
export { Step, Workflow, createStep, getStepResult, isErrorEvent, isTransitionEvent, isVariableReference } from '../chunk-
|
|
2
|
-
import '../chunk-AWEACB2T.js';
|
|
3
|
-
import '../chunk-O2VP5JBC.js';
|
|
4
|
-
import '../chunk-C6A6W6XS.js';
|
|
1
|
+
export { Step, Workflow, createStep, getStepResult, isErrorEvent, isTransitionEvent, isVariableReference } from '../chunk-6TCTOQ3G.js';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mastra/core",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.1",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/core.esm.js",
|
|
@@ -62,6 +62,7 @@
|
|
|
62
62
|
"@opentelemetry/sdk-trace-base": "^1.30.1",
|
|
63
63
|
"@opentelemetry/sdk-trace-node": "^1.28.0",
|
|
64
64
|
"@opentelemetry/semantic-conventions": "^1.28.0",
|
|
65
|
+
"ai": "^4.1.41",
|
|
65
66
|
"cohere-ai": "^7.15.4",
|
|
66
67
|
"date-fns": "^3.0.5",
|
|
67
68
|
"dotenv": "^16.4.7",
|
|
@@ -75,24 +76,23 @@
|
|
|
75
76
|
"xstate": "^5.19.0",
|
|
76
77
|
"zod": "^3.24.1"
|
|
77
78
|
},
|
|
78
|
-
"peerDependencies": {
|
|
79
|
-
"ai": "^4.0.0"
|
|
80
|
-
},
|
|
81
79
|
"devDependencies": {
|
|
82
|
-
"@ai-sdk/openai": "
|
|
80
|
+
"@ai-sdk/openai": "^1.1.12",
|
|
81
|
+
"@babel/core": "^7.26.7",
|
|
83
82
|
"@microsoft/api-extractor": "^7.49.2",
|
|
84
83
|
"@size-limit/preset-small-lib": "^11.1.4",
|
|
84
|
+
"@types/babel__core": "^7.20.5",
|
|
85
85
|
"@types/json-schema": "^7.0.15",
|
|
86
86
|
"@types/lodash-es": "^4.17.12",
|
|
87
87
|
"@types/node": "^22.13.1",
|
|
88
88
|
"@types/pino": "^7.0.5",
|
|
89
89
|
"@types/qs": "^6.9.15",
|
|
90
|
-
"
|
|
90
|
+
"eslint": "^9.20.1",
|
|
91
91
|
"size-limit": "^11.1.4",
|
|
92
|
-
"ts-node": "^10.9.2",
|
|
93
92
|
"tsup": "^8.3.6",
|
|
94
93
|
"typescript": "^5.7.3",
|
|
95
|
-
"vitest": "^3.0.4"
|
|
94
|
+
"vitest": "^3.0.4",
|
|
95
|
+
"@internal/lint": "0.0.0"
|
|
96
96
|
},
|
|
97
97
|
"engines": {
|
|
98
98
|
"node": ">=20"
|
|
@@ -128,8 +128,8 @@
|
|
|
128
128
|
"scripts": {
|
|
129
129
|
"check": "tsc --noEmit",
|
|
130
130
|
"analyze": "size-limit --why",
|
|
131
|
-
"
|
|
132
|
-
"build": "tsup
|
|
131
|
+
"lint": "eslint .",
|
|
132
|
+
"build": "tsup --config tsup.config.ts",
|
|
133
133
|
"build:watch": "pnpm build --watch",
|
|
134
134
|
"size": "size-limit",
|
|
135
135
|
"test": "vitest run"
|
package/dist/chunk-2SAHBQEF.js
DELETED
|
File without changes
|