@mastra/core 0.9.4 → 0.10.0-alpha.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/README.md +3 -2
- package/dist/agent/index.cjs +2 -2
- package/dist/agent/index.d.cts +13 -14
- package/dist/agent/index.d.ts +13 -14
- package/dist/agent/index.js +1 -1
- package/dist/{base-BCfssGt6.d.ts → base-DttB7sJD.d.ts} +1187 -886
- package/dist/{base-CAEcd6q2.d.cts → base-aJ3etsh5.d.cts} +1187 -886
- package/dist/{base-H7siSAfu.d.cts → base-aPYtPBT2.d.cts} +3 -3
- package/dist/{base-4Z34GQL8.d.ts → base-tc5kgDTD.d.ts} +3 -3
- package/dist/base.cjs +2 -2
- package/dist/base.d.cts +2 -3
- package/dist/base.d.ts +2 -3
- package/dist/base.js +1 -1
- package/dist/bundler/index.cjs +2 -2
- package/dist/bundler/index.d.cts +2 -3
- package/dist/bundler/index.d.ts +2 -3
- package/dist/bundler/index.js +1 -1
- package/dist/{chunk-W4BSLENO.js → chunk-2NTUAUGH.js} +1 -1
- package/dist/{chunk-S34QVMKE.js → chunk-2PW6UJMW.js} +77 -10
- package/dist/{chunk-WE36CRQV.cjs → chunk-2U7ZZUFO.cjs} +2 -2
- package/dist/{workflows/vNext/index.js → chunk-3SQ3G2EJ.js} +19 -16
- package/dist/chunk-5HULBQ2W.cjs +38 -0
- package/dist/{chunk-XRGDVLM4.cjs → chunk-5JRD3NDP.cjs} +15 -15
- package/dist/{chunk-GXKODTLA.cjs → chunk-5W2G7S44.cjs} +83 -68
- package/dist/chunk-75Z4BZEE.js +36 -0
- package/dist/{chunk-66GQROSI.cjs → chunk-AOGUTJUO.cjs} +58 -51
- package/dist/{chunk-WIKOYZ63.js → chunk-BPTSLJHA.js} +9 -9
- package/dist/{chunk-JBJ7KXN5.js → chunk-C3ICEF6E.js} +1 -1
- package/dist/{chunk-E4FAXBUV.cjs → chunk-CWSFP2HS.cjs} +2 -2
- package/dist/{chunk-FW5RS6WV.js → chunk-E7CLY6SK.js} +42 -35
- package/dist/{chunk-235X76GC.js → chunk-FI7R232B.js} +2 -2
- package/dist/chunk-GQ2XQ4UN.js +321 -0
- package/dist/{chunk-H4CEZSRM.js → chunk-J7GDGV6F.js} +1 -1
- package/dist/{chunk-NLBJOFNG.js → chunk-JW5TMK2L.js} +1 -1
- package/dist/{chunk-NOPY74PV.js → chunk-KJQFFEEQ.js} +1 -1
- package/dist/{chunk-V2Q2FEVO.cjs → chunk-KSPHQSZX.cjs} +2 -2
- package/dist/{chunk-NZV4OA6P.js → chunk-LHRZV5VG.js} +2 -23
- package/dist/chunk-NMDM4IZN.cjs +78 -0
- package/dist/chunk-OBEALYTK.js +74 -0
- package/dist/{chunk-PEK4TY3P.js → chunk-OCT2762Q.js} +1 -1
- package/dist/{chunk-5DUFC7TV.cjs → chunk-P7BGXOQV.cjs} +2 -2
- package/dist/{chunk-WQKOM7XM.cjs → chunk-PIZM25KI.cjs} +3 -24
- package/dist/{chunk-S7J63JOG.cjs → chunk-RVS6OUJN.cjs} +2 -2
- package/dist/{chunk-5JUWUTPJ.cjs → chunk-SKG2NIZW.cjs} +2 -2
- package/dist/chunk-SWW4EBUZ.cjs +96 -0
- package/dist/{chunk-RGE4UF6A.cjs → chunk-TMPFLJLG.cjs} +2 -2
- package/dist/{workflows/vNext/index.cjs → chunk-TTKQ37ZZ.cjs} +24 -21
- package/dist/{chunk-EJITEVAB.cjs → chunk-U3L3NEOM.cjs} +81 -10
- package/dist/chunk-VHLL4AZK.js +90 -0
- package/dist/{chunk-EG74VBSP.cjs → chunk-YEULQPUY.cjs} +6 -6
- package/dist/{chunk-SOLXHDNQ.js → chunk-ZB3LEHL2.js} +81 -66
- package/dist/{chunk-TAFOICHR.js → chunk-ZKN6HYYQ.js} +1 -1
- package/dist/chunk-ZZDAC5KD.cjs +325 -0
- package/dist/deployer/index.cjs +2 -2
- package/dist/deployer/index.d.cts +2 -3
- package/dist/deployer/index.d.ts +2 -3
- package/dist/deployer/index.js +1 -1
- package/dist/eval/index.d.cts +13 -14
- package/dist/eval/index.d.ts +13 -14
- package/dist/hooks/index.d.cts +1 -1
- package/dist/hooks/index.d.ts +1 -1
- package/dist/index.cjs +88 -159
- package/dist/index.d.cts +17 -25
- package/dist/index.d.ts +17 -25
- package/dist/index.js +18 -25
- package/dist/integration/index.cjs +3 -3
- package/dist/integration/index.d.cts +12 -13
- package/dist/integration/index.d.ts +12 -13
- package/dist/integration/index.js +1 -1
- package/dist/llm/index.d.cts +13 -14
- package/dist/llm/index.d.ts +13 -14
- package/dist/logger/index.cjs +18 -17
- package/dist/logger/index.d.cts +42 -2
- package/dist/logger/index.d.ts +42 -2
- package/dist/logger/index.js +2 -1
- package/dist/{index-QV27jkxQ.d.ts → logger-EhZkzZOr.d.cts} +38 -52
- package/dist/{index-QV27jkxQ.d.cts → logger-EhZkzZOr.d.ts} +38 -52
- package/dist/mastra/index.cjs +2 -2
- package/dist/mastra/index.d.cts +11 -12
- package/dist/mastra/index.d.ts +11 -12
- package/dist/mastra/index.js +1 -1
- package/dist/mcp/index.cjs +75 -17
- package/dist/mcp/index.d.cts +14 -15
- package/dist/mcp/index.d.ts +14 -15
- package/dist/mcp/index.js +69 -15
- package/dist/memory/index.cjs +4 -4
- package/dist/memory/index.d.cts +12 -13
- package/dist/memory/index.d.ts +12 -13
- package/dist/memory/index.js +1 -1
- package/dist/network/index.cjs +8 -8
- package/dist/network/index.d.cts +12 -13
- package/dist/network/index.d.ts +12 -13
- package/dist/network/index.js +5 -5
- package/dist/relevance/index.cjs +4 -4
- package/dist/relevance/index.d.cts +15 -16
- package/dist/relevance/index.d.ts +15 -16
- package/dist/relevance/index.js +1 -1
- package/dist/server/index.cjs +4 -0
- package/dist/server/index.d.cts +13 -12
- package/dist/server/index.d.ts +13 -12
- package/dist/server/index.js +4 -1
- package/dist/storage/index.cjs +184 -3
- package/dist/storage/index.d.cts +83 -13
- package/dist/storage/index.d.ts +83 -13
- package/dist/storage/index.js +186 -1
- package/dist/telemetry/index.d.cts +14 -15
- package/dist/telemetry/index.d.ts +14 -15
- package/dist/telemetry/otel-vendor.cjs +2 -2
- package/dist/telemetry/otel-vendor.d.cts +1 -1
- package/dist/telemetry/otel-vendor.d.ts +1 -1
- package/dist/telemetry/otel-vendor.js +1 -1
- package/dist/tools/index.cjs +4 -4
- package/dist/tools/index.d.cts +12 -13
- package/dist/tools/index.d.ts +12 -13
- package/dist/tools/index.js +1 -1
- package/dist/tts/index.cjs +2 -2
- package/dist/tts/index.d.cts +2 -3
- package/dist/tts/index.d.ts +2 -3
- package/dist/tts/index.js +1 -1
- package/dist/{types-BtMyV38I.d.ts → types-Bo1uigWx.d.cts} +1 -1
- package/dist/{types-BtMyV38I.d.cts → types-Bo1uigWx.d.ts} +1 -1
- package/dist/utils.cjs +28 -12
- package/dist/utils.d.cts +59 -16
- package/dist/utils.d.ts +59 -16
- package/dist/utils.js +1 -1
- package/dist/vector/filter/index.cjs +189 -7
- package/dist/vector/filter/index.js +190 -1
- package/dist/vector/index.cjs +2 -2
- package/dist/vector/index.d.cts +28 -20
- package/dist/vector/index.d.ts +28 -20
- package/dist/vector/index.js +1 -1
- package/dist/voice/index.cjs +4 -4
- package/dist/voice/index.d.cts +12 -13
- package/dist/voice/index.d.ts +12 -13
- package/dist/voice/index.js +1 -1
- package/dist/workflows/index.cjs +17 -69
- package/dist/workflows/index.d.cts +197 -77
- package/dist/workflows/index.d.ts +197 -77
- package/dist/workflows/index.js +1 -1
- package/dist/workflows/legacy/index.cjs +90 -0
- package/dist/workflows/legacy/index.d.cts +87 -0
- package/dist/workflows/legacy/index.d.ts +87 -0
- package/dist/workflows/legacy/index.js +1 -0
- package/package.json +19 -40
- package/workflows/legacy.d.ts +1 -0
- package/dist/chunk-4WABQORE.js +0 -781
- package/dist/chunk-CIEPFV6B.js +0 -658
- package/dist/chunk-CMPPXW4U.js +0 -154
- package/dist/chunk-CTKNWYK2.js +0 -131
- package/dist/chunk-LGERQTJM.js +0 -190
- package/dist/chunk-O44MSFMZ.cjs +0 -168
- package/dist/chunk-QDAMIZY3.cjs +0 -783
- package/dist/chunk-QHDPLMHB.cjs +0 -667
- package/dist/chunk-RAQBTCIR.cjs +0 -134
- package/dist/chunk-YK3XJ52U.cjs +0 -192
- package/dist/storage/libsql/index.cjs +0 -581
- package/dist/storage/libsql/index.d.cts +0 -104
- package/dist/storage/libsql/index.d.ts +0 -104
- package/dist/storage/libsql/index.js +0 -578
- package/dist/vector/libsql/index.cjs +0 -14
- package/dist/vector/libsql/index.d.cts +0 -82
- package/dist/vector/libsql/index.d.ts +0 -82
- package/dist/vector/libsql/index.js +0 -1
- package/dist/workflows/vNext/index.d.cts +0 -209
- package/dist/workflows/vNext/index.d.ts +0 -209
- package/storage/libsql.d.ts +0 -1
- package/vector/libsql.d.ts +0 -1
- package/workflows/vNext.d.ts +0 -1
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
import { V as VariableReference, o as StepResult, p as LegacyStep, q as LegacyWorkflow, r as Agent, s as WorkflowContext, t as ToolsInput, a as Mastra, u as StepAction, v as LegacyWorkflowRunResult } from '../../base-aJ3etsh5.cjs';
|
|
2
|
+
export { F as ActionContext, D as BaseCondition, X as DependencyCheckOutput, a2 as ExtractSchemaFromStep, a5 as ExtractSchemaType, a3 as ExtractStepResult, a7 as LegacyWorkflowRunState, a0 as LegacyWorkflowState, a6 as PathsToStringProps, P as ResolverFunctionInput, Q as ResolverFunctionOutput, R as RetryConfig, I as StepCondition, J as StepConfig, H as StepDef, x as StepExecutionContext, B as StepGraph, a1 as StepId, a4 as StepInputType, z as StepNode, Y as StepResolverOutput, y as StepVariableType, K as StepsRecord, U as SubscriberFunctionOutput, G as WhenConditionReturnValue, _ as WorkflowActionParams, $ as WorkflowActions, Z as WorkflowActors, O as WorkflowEvent, N as WorkflowLogMessage, w as WorkflowOptions, a8 as WorkflowResumeResult } from '../../base-aJ3etsh5.cjs';
|
|
3
|
+
import { z } from 'zod';
|
|
4
|
+
import { M as Metric } from '../../types-Bo1uigWx.cjs';
|
|
5
|
+
import { I as IMastraLogger } from '../../logger-EhZkzZOr.cjs';
|
|
6
|
+
import '../../base-aPYtPBT2.cjs';
|
|
7
|
+
import 'ai';
|
|
8
|
+
import 'sift';
|
|
9
|
+
import 'json-schema';
|
|
10
|
+
import '../../deployer/index.cjs';
|
|
11
|
+
import '../../bundler/index.cjs';
|
|
12
|
+
import 'node:http';
|
|
13
|
+
import 'hono';
|
|
14
|
+
import '../../runtime-context/index.cjs';
|
|
15
|
+
import '../../vector/index.cjs';
|
|
16
|
+
import '../../vector/filter/index.cjs';
|
|
17
|
+
import 'hono/cors';
|
|
18
|
+
import 'hono-openapi';
|
|
19
|
+
import '../../tts/index.cjs';
|
|
20
|
+
import '@opentelemetry/api';
|
|
21
|
+
import 'xstate';
|
|
22
|
+
import 'node:events';
|
|
23
|
+
import 'events';
|
|
24
|
+
import 'ai/test';
|
|
25
|
+
import 'stream';
|
|
26
|
+
import '@opentelemetry/sdk-trace-base';
|
|
27
|
+
|
|
28
|
+
declare function isErrorEvent(stateEvent: any): stateEvent is {
|
|
29
|
+
type: `xstate.error.actor.${string}`;
|
|
30
|
+
error: Error;
|
|
31
|
+
};
|
|
32
|
+
declare function isTransitionEvent(stateEvent: any): stateEvent is {
|
|
33
|
+
type: `xstate.done.actor.${string}`;
|
|
34
|
+
output?: unknown;
|
|
35
|
+
};
|
|
36
|
+
declare function isVariableReference(value: any): value is VariableReference<any, any>;
|
|
37
|
+
declare function getStepResult(result?: StepResult<any>): any;
|
|
38
|
+
declare function getSuspendedPaths({ value, path, suspendedPaths, }: {
|
|
39
|
+
value: string | Record<string, string>;
|
|
40
|
+
path: string;
|
|
41
|
+
suspendedPaths: Set<string>;
|
|
42
|
+
}): void;
|
|
43
|
+
declare function isFinalState(status: string): boolean;
|
|
44
|
+
declare function isLimboState(status: string): boolean;
|
|
45
|
+
declare function recursivelyCheckForFinalState({ value, suspendedPaths, path, }: {
|
|
46
|
+
value: string | Record<string, string>;
|
|
47
|
+
suspendedPaths: Set<string>;
|
|
48
|
+
path: string;
|
|
49
|
+
}): boolean;
|
|
50
|
+
declare function getActivePathsAndStatus(value: Record<string, any>): Array<{
|
|
51
|
+
stepPath: string[];
|
|
52
|
+
stepId: string;
|
|
53
|
+
status: string;
|
|
54
|
+
}>;
|
|
55
|
+
declare function mergeChildValue(startStepId: string, parent: Record<string, any>, child: Record<string, any>): Record<string, any>;
|
|
56
|
+
declare const updateStepInHierarchy: (value: Record<string, any>, targetStepId: string) => Record<string, any>;
|
|
57
|
+
declare function getResultActivePaths(state: {
|
|
58
|
+
value: Record<string, string>;
|
|
59
|
+
context: {
|
|
60
|
+
steps: Record<string, any>;
|
|
61
|
+
};
|
|
62
|
+
}): Map<string, {
|
|
63
|
+
status: string;
|
|
64
|
+
suspendPayload?: any;
|
|
65
|
+
stepPath: string[];
|
|
66
|
+
}>;
|
|
67
|
+
declare function isWorkflow(step: LegacyStep<any, any, any, any> | LegacyWorkflow<any, any, any, any> | Agent<any, any, any>): step is LegacyWorkflow<any, any, any, any>;
|
|
68
|
+
declare function isAgent(step: LegacyStep<any, any, any, any> | Agent<any, any, any> | LegacyWorkflow<any, any, any, any>): step is Agent<any, any, any>;
|
|
69
|
+
declare function resolveVariables({ runId, logger, variables, context, }: {
|
|
70
|
+
runId: string;
|
|
71
|
+
logger: IMastraLogger;
|
|
72
|
+
variables: Record<string, VariableReference<any, any>>;
|
|
73
|
+
context: WorkflowContext;
|
|
74
|
+
}): Record<string, any>;
|
|
75
|
+
declare function agentToStep<TAgentId extends string = string, TTools extends ToolsInput = ToolsInput, TMetrics extends Record<string, Metric> = Record<string, Metric>>(agent: Agent<TAgentId, TTools, TMetrics>, { mastra }?: {
|
|
76
|
+
mastra?: Mastra;
|
|
77
|
+
}): StepAction<TAgentId, z.ZodObject<{
|
|
78
|
+
prompt: z.ZodString;
|
|
79
|
+
}>, z.ZodObject<{
|
|
80
|
+
text: z.ZodString;
|
|
81
|
+
}>, any>;
|
|
82
|
+
declare function workflowToStep<TSteps extends LegacyStep<any, any, any, any>[], TStepId extends string = any, TTriggerSchema extends z.ZodObject<any> = any, TResultSchema extends z.ZodObject<any> = any>(workflow: LegacyWorkflow<TSteps, TStepId, TTriggerSchema, TResultSchema>, { mastra }: {
|
|
83
|
+
mastra?: Mastra;
|
|
84
|
+
}): StepAction<TStepId, TTriggerSchema, z.ZodType<LegacyWorkflowRunResult<TTriggerSchema, TSteps, TResultSchema>>, any>;
|
|
85
|
+
declare function isConditionalKey(key: string): boolean;
|
|
86
|
+
|
|
87
|
+
export { LegacyStep, LegacyWorkflow, LegacyWorkflowRunResult, StepAction, StepResult, VariableReference, WorkflowContext, agentToStep, getActivePathsAndStatus, getResultActivePaths, getStepResult, getSuspendedPaths, isAgent, isConditionalKey, isErrorEvent, isFinalState, isLimboState, isTransitionEvent, isVariableReference, isWorkflow, mergeChildValue, recursivelyCheckForFinalState, resolveVariables, updateStepInHierarchy, workflowToStep };
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
import { V as VariableReference, o as StepResult, p as LegacyStep, q as LegacyWorkflow, r as Agent, s as WorkflowContext, t as ToolsInput, a as Mastra, u as StepAction, v as LegacyWorkflowRunResult } from '../../base-DttB7sJD.js';
|
|
2
|
+
export { F as ActionContext, D as BaseCondition, X as DependencyCheckOutput, a2 as ExtractSchemaFromStep, a5 as ExtractSchemaType, a3 as ExtractStepResult, a7 as LegacyWorkflowRunState, a0 as LegacyWorkflowState, a6 as PathsToStringProps, P as ResolverFunctionInput, Q as ResolverFunctionOutput, R as RetryConfig, I as StepCondition, J as StepConfig, H as StepDef, x as StepExecutionContext, B as StepGraph, a1 as StepId, a4 as StepInputType, z as StepNode, Y as StepResolverOutput, y as StepVariableType, K as StepsRecord, U as SubscriberFunctionOutput, G as WhenConditionReturnValue, _ as WorkflowActionParams, $ as WorkflowActions, Z as WorkflowActors, O as WorkflowEvent, N as WorkflowLogMessage, w as WorkflowOptions, a8 as WorkflowResumeResult } from '../../base-DttB7sJD.js';
|
|
3
|
+
import { z } from 'zod';
|
|
4
|
+
import { M as Metric } from '../../types-Bo1uigWx.js';
|
|
5
|
+
import { I as IMastraLogger } from '../../logger-EhZkzZOr.js';
|
|
6
|
+
import '../../base-tc5kgDTD.js';
|
|
7
|
+
import 'ai';
|
|
8
|
+
import 'sift';
|
|
9
|
+
import 'json-schema';
|
|
10
|
+
import '../../deployer/index.js';
|
|
11
|
+
import '../../bundler/index.js';
|
|
12
|
+
import 'node:http';
|
|
13
|
+
import 'hono';
|
|
14
|
+
import '../../runtime-context/index.js';
|
|
15
|
+
import '../../vector/index.js';
|
|
16
|
+
import '../../vector/filter/index.js';
|
|
17
|
+
import 'hono/cors';
|
|
18
|
+
import 'hono-openapi';
|
|
19
|
+
import '../../tts/index.js';
|
|
20
|
+
import '@opentelemetry/api';
|
|
21
|
+
import 'xstate';
|
|
22
|
+
import 'node:events';
|
|
23
|
+
import 'events';
|
|
24
|
+
import 'ai/test';
|
|
25
|
+
import 'stream';
|
|
26
|
+
import '@opentelemetry/sdk-trace-base';
|
|
27
|
+
|
|
28
|
+
declare function isErrorEvent(stateEvent: any): stateEvent is {
|
|
29
|
+
type: `xstate.error.actor.${string}`;
|
|
30
|
+
error: Error;
|
|
31
|
+
};
|
|
32
|
+
declare function isTransitionEvent(stateEvent: any): stateEvent is {
|
|
33
|
+
type: `xstate.done.actor.${string}`;
|
|
34
|
+
output?: unknown;
|
|
35
|
+
};
|
|
36
|
+
declare function isVariableReference(value: any): value is VariableReference<any, any>;
|
|
37
|
+
declare function getStepResult(result?: StepResult<any>): any;
|
|
38
|
+
declare function getSuspendedPaths({ value, path, suspendedPaths, }: {
|
|
39
|
+
value: string | Record<string, string>;
|
|
40
|
+
path: string;
|
|
41
|
+
suspendedPaths: Set<string>;
|
|
42
|
+
}): void;
|
|
43
|
+
declare function isFinalState(status: string): boolean;
|
|
44
|
+
declare function isLimboState(status: string): boolean;
|
|
45
|
+
declare function recursivelyCheckForFinalState({ value, suspendedPaths, path, }: {
|
|
46
|
+
value: string | Record<string, string>;
|
|
47
|
+
suspendedPaths: Set<string>;
|
|
48
|
+
path: string;
|
|
49
|
+
}): boolean;
|
|
50
|
+
declare function getActivePathsAndStatus(value: Record<string, any>): Array<{
|
|
51
|
+
stepPath: string[];
|
|
52
|
+
stepId: string;
|
|
53
|
+
status: string;
|
|
54
|
+
}>;
|
|
55
|
+
declare function mergeChildValue(startStepId: string, parent: Record<string, any>, child: Record<string, any>): Record<string, any>;
|
|
56
|
+
declare const updateStepInHierarchy: (value: Record<string, any>, targetStepId: string) => Record<string, any>;
|
|
57
|
+
declare function getResultActivePaths(state: {
|
|
58
|
+
value: Record<string, string>;
|
|
59
|
+
context: {
|
|
60
|
+
steps: Record<string, any>;
|
|
61
|
+
};
|
|
62
|
+
}): Map<string, {
|
|
63
|
+
status: string;
|
|
64
|
+
suspendPayload?: any;
|
|
65
|
+
stepPath: string[];
|
|
66
|
+
}>;
|
|
67
|
+
declare function isWorkflow(step: LegacyStep<any, any, any, any> | LegacyWorkflow<any, any, any, any> | Agent<any, any, any>): step is LegacyWorkflow<any, any, any, any>;
|
|
68
|
+
declare function isAgent(step: LegacyStep<any, any, any, any> | Agent<any, any, any> | LegacyWorkflow<any, any, any, any>): step is Agent<any, any, any>;
|
|
69
|
+
declare function resolveVariables({ runId, logger, variables, context, }: {
|
|
70
|
+
runId: string;
|
|
71
|
+
logger: IMastraLogger;
|
|
72
|
+
variables: Record<string, VariableReference<any, any>>;
|
|
73
|
+
context: WorkflowContext;
|
|
74
|
+
}): Record<string, any>;
|
|
75
|
+
declare function agentToStep<TAgentId extends string = string, TTools extends ToolsInput = ToolsInput, TMetrics extends Record<string, Metric> = Record<string, Metric>>(agent: Agent<TAgentId, TTools, TMetrics>, { mastra }?: {
|
|
76
|
+
mastra?: Mastra;
|
|
77
|
+
}): StepAction<TAgentId, z.ZodObject<{
|
|
78
|
+
prompt: z.ZodString;
|
|
79
|
+
}>, z.ZodObject<{
|
|
80
|
+
text: z.ZodString;
|
|
81
|
+
}>, any>;
|
|
82
|
+
declare function workflowToStep<TSteps extends LegacyStep<any, any, any, any>[], TStepId extends string = any, TTriggerSchema extends z.ZodObject<any> = any, TResultSchema extends z.ZodObject<any> = any>(workflow: LegacyWorkflow<TSteps, TStepId, TTriggerSchema, TResultSchema>, { mastra }: {
|
|
83
|
+
mastra?: Mastra;
|
|
84
|
+
}): StepAction<TStepId, TTriggerSchema, z.ZodType<LegacyWorkflowRunResult<TTriggerSchema, TSteps, TResultSchema>>, any>;
|
|
85
|
+
declare function isConditionalKey(key: string): boolean;
|
|
86
|
+
|
|
87
|
+
export { LegacyStep, LegacyWorkflow, LegacyWorkflowRunResult, StepAction, StepResult, VariableReference, WorkflowContext, agentToStep, getActivePathsAndStatus, getResultActivePaths, getStepResult, getSuspendedPaths, isAgent, isConditionalKey, isErrorEvent, isFinalState, isLimboState, isTransitionEvent, isVariableReference, isWorkflow, mergeChildValue, recursivelyCheckForFinalState, resolveVariables, updateStepInHierarchy, workflowToStep };
|
|
@@ -0,0 +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-E7CLY6SK.js';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mastra/core",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.10.0-alpha.1",
|
|
4
4
|
"license": "Elastic-2.0",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -30,34 +30,14 @@
|
|
|
30
30
|
"default": "./dist/*/index.cjs"
|
|
31
31
|
}
|
|
32
32
|
},
|
|
33
|
-
"./workflows/
|
|
33
|
+
"./workflows/legacy": {
|
|
34
34
|
"import": {
|
|
35
|
-
"types": "./dist/workflows/
|
|
36
|
-
"default": "./dist/workflows/
|
|
35
|
+
"types": "./dist/workflows/legacy/index.d.ts",
|
|
36
|
+
"default": "./dist/workflows/legacy/index.js"
|
|
37
37
|
},
|
|
38
38
|
"require": {
|
|
39
|
-
"types": "./dist/workflows/
|
|
40
|
-
"default": "./dist/workflows/
|
|
41
|
-
}
|
|
42
|
-
},
|
|
43
|
-
"./storage/libsql": {
|
|
44
|
-
"import": {
|
|
45
|
-
"types": "./dist/storage/libsql/index.d.ts",
|
|
46
|
-
"default": "./dist/storage/libsql/index.js"
|
|
47
|
-
},
|
|
48
|
-
"require": {
|
|
49
|
-
"types": "./dist/storage/libsql/index.d.cts",
|
|
50
|
-
"default": "./dist/storage/libsql/index.cjs"
|
|
51
|
-
}
|
|
52
|
-
},
|
|
53
|
-
"./vector/libsql": {
|
|
54
|
-
"import": {
|
|
55
|
-
"types": "./dist/vector/libsql/index.d.ts",
|
|
56
|
-
"default": "./dist/vector/libsql/index.js"
|
|
57
|
-
},
|
|
58
|
-
"require": {
|
|
59
|
-
"types": "./dist/vector/libsql/index.d.cts",
|
|
60
|
-
"default": "./dist/vector/libsql/index.cjs"
|
|
39
|
+
"types": "./dist/workflows/legacy/index.d.cts",
|
|
40
|
+
"default": "./dist/workflows/legacy/index.cjs"
|
|
61
41
|
}
|
|
62
42
|
},
|
|
63
43
|
"./vector/filter": {
|
|
@@ -104,25 +84,24 @@
|
|
|
104
84
|
},
|
|
105
85
|
"sideEffects": false,
|
|
106
86
|
"dependencies": {
|
|
107
|
-
"@libsql/client": "^0.14.0",
|
|
108
87
|
"@opentelemetry/api": "^1.9.0",
|
|
109
|
-
"@opentelemetry/auto-instrumentations-node": "^0.
|
|
110
|
-
"@opentelemetry/core": "^
|
|
111
|
-
"@opentelemetry/exporter-trace-otlp-grpc": "^0.
|
|
112
|
-
"@opentelemetry/exporter-trace-otlp-http": "^0.
|
|
113
|
-
"@opentelemetry/otlp-exporter-base": "^0.
|
|
114
|
-
"@opentelemetry/otlp-transformer": "^0.
|
|
115
|
-
"@opentelemetry/resources": "^
|
|
116
|
-
"@opentelemetry/sdk-metrics": "^
|
|
117
|
-
"@opentelemetry/sdk-node": "^0.
|
|
118
|
-
"@opentelemetry/sdk-trace-base": "^
|
|
119
|
-
"@opentelemetry/sdk-trace-node": "^
|
|
120
|
-
"@opentelemetry/semantic-conventions": "^1.
|
|
88
|
+
"@opentelemetry/auto-instrumentations-node": "^0.59.0",
|
|
89
|
+
"@opentelemetry/core": "^2.0.1",
|
|
90
|
+
"@opentelemetry/exporter-trace-otlp-grpc": "^0.201.0",
|
|
91
|
+
"@opentelemetry/exporter-trace-otlp-http": "^0.201.0",
|
|
92
|
+
"@opentelemetry/otlp-exporter-base": "^0.201.0",
|
|
93
|
+
"@opentelemetry/otlp-transformer": "^0.201.0",
|
|
94
|
+
"@opentelemetry/resources": "^2.0.1",
|
|
95
|
+
"@opentelemetry/sdk-metrics": "^2.0.1",
|
|
96
|
+
"@opentelemetry/sdk-node": "^0.201.0",
|
|
97
|
+
"@opentelemetry/sdk-trace-base": "^2.0.1",
|
|
98
|
+
"@opentelemetry/sdk-trace-node": "^2.0.1",
|
|
99
|
+
"@opentelemetry/semantic-conventions": "^1.33.0",
|
|
100
|
+
"@sindresorhus/slugify": "^2.2.1",
|
|
121
101
|
"ai": "^4.2.2",
|
|
122
102
|
"cohere-ai": "^7.16.0",
|
|
123
103
|
"date-fns": "^3.6.0",
|
|
124
104
|
"dotenv": "^16.4.7",
|
|
125
|
-
"fastembed": "^1.14.4",
|
|
126
105
|
"hono": "^4.5.1",
|
|
127
106
|
"hono-openapi": "^0.4.6",
|
|
128
107
|
"json-schema": "^0.4.0",
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './../dist/workflows/legacy';
|