@mastra/core 0.8.0-alpha.7 → 0.8.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 (51) hide show
  1. package/dist/agent/index.cjs +2 -2
  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-BkKZJMd4.d.ts → base-C7f5RDDD.d.ts} +5 -5
  6. package/dist/{base-2iKEEo-U.d.cts → base-nVWefprR.d.cts} +5 -5
  7. package/dist/{chunk-KHMCAV4W.js → chunk-A74FQNCI.js} +1 -1
  8. package/dist/{chunk-LK5H7SEM.cjs → chunk-ENOIN7PM.cjs} +84 -29
  9. package/dist/{chunk-S3VEAYDK.cjs → chunk-FUQKE5AK.cjs} +2 -2
  10. package/dist/{chunk-TFDALD5V.js → chunk-SGR6AJWC.js} +84 -30
  11. package/dist/eval/index.d.cts +1 -1
  12. package/dist/eval/index.d.ts +1 -1
  13. package/dist/index.cjs +31 -27
  14. package/dist/index.d.cts +3 -3
  15. package/dist/index.d.ts +3 -3
  16. package/dist/index.js +3 -3
  17. package/dist/integration/index.d.cts +1 -1
  18. package/dist/integration/index.d.ts +1 -1
  19. package/dist/llm/index.d.cts +1 -1
  20. package/dist/llm/index.d.ts +1 -1
  21. package/dist/mastra/index.d.cts +1 -1
  22. package/dist/mastra/index.d.ts +1 -1
  23. package/dist/memory/index.d.cts +1 -1
  24. package/dist/memory/index.d.ts +1 -1
  25. package/dist/network/index.cjs +2 -2
  26. package/dist/network/index.d.cts +1 -1
  27. package/dist/network/index.d.ts +1 -1
  28. package/dist/network/index.js +1 -1
  29. package/dist/relevance/index.cjs +4 -4
  30. package/dist/relevance/index.d.cts +1 -1
  31. package/dist/relevance/index.d.ts +1 -1
  32. package/dist/relevance/index.js +1 -1
  33. package/dist/server/index.d.cts +1 -1
  34. package/dist/server/index.d.ts +1 -1
  35. package/dist/storage/index.d.cts +1 -1
  36. package/dist/storage/index.d.ts +1 -1
  37. package/dist/storage/libsql/index.d.cts +1 -1
  38. package/dist/storage/libsql/index.d.ts +1 -1
  39. package/dist/telemetry/index.d.cts +1 -1
  40. package/dist/telemetry/index.d.ts +1 -1
  41. package/dist/tools/index.d.cts +1 -1
  42. package/dist/tools/index.d.ts +1 -1
  43. package/dist/utils.d.cts +1 -1
  44. package/dist/utils.d.ts +1 -1
  45. package/dist/voice/index.d.cts +2 -2
  46. package/dist/voice/index.d.ts +2 -2
  47. package/dist/workflows/index.cjs +26 -22
  48. package/dist/workflows/index.d.cts +4 -3
  49. package/dist/workflows/index.d.ts +4 -3
  50. package/dist/workflows/index.js +1 -1
  51. package/package.json +1 -1
@@ -1,5 +1,5 @@
1
1
  import '../base-BihKcqDY.cjs';
2
- import { aG as MastraLanguageModel } from '../base-2iKEEo-U.cjs';
2
+ import { aG as MastraLanguageModel } from '../base-nVWefprR.cjs';
3
3
  import '@opentelemetry/api';
4
4
  import '../index-CquI0inB.cjs';
5
5
  import 'stream';
@@ -1,5 +1,5 @@
1
1
  import '../base-DT2poiVK.js';
2
- import { aG as MastraLanguageModel } from '../base-BkKZJMd4.js';
2
+ import { aG as MastraLanguageModel } from '../base-C7f5RDDD.js';
3
3
  import '@opentelemetry/api';
4
4
  import '../index-CquI0inB.js';
5
5
  import 'stream';
@@ -1 +1 @@
1
- export { CohereRelevanceScorer, MastraAgentRelevanceScorer, createSimilarityPrompt } from '../chunk-KHMCAV4W.js';
1
+ export { CohereRelevanceScorer, MastraAgentRelevanceScorer, createSimilarityPrompt } from '../chunk-A74FQNCI.js';
@@ -1,6 +1,6 @@
1
1
  import { Handler, MiddlewareHandler } from 'hono';
2
2
  import { DescribeRouteOptions } from 'hono-openapi';
3
- import { M as Methods, a as Mastra, A as ApiRoute } from '../base-2iKEEo-U.cjs';
3
+ import { M as Methods, a as Mastra, A as ApiRoute } from '../base-nVWefprR.cjs';
4
4
  import 'ai';
5
5
  import '../base-BihKcqDY.cjs';
6
6
  import '@opentelemetry/api';
@@ -1,6 +1,6 @@
1
1
  import { Handler, MiddlewareHandler } from 'hono';
2
2
  import { DescribeRouteOptions } from 'hono-openapi';
3
- import { M as Methods, a as Mastra, A as ApiRoute } from '../base-BkKZJMd4.js';
3
+ import { M as Methods, a as Mastra, A as ApiRoute } from '../base-C7f5RDDD.js';
4
4
  import 'ai';
5
5
  import '../base-DT2poiVK.js';
6
6
  import '@opentelemetry/api';
@@ -1,4 +1,4 @@
1
- export { E as EvalRow, e as MastraStorage, S as StorageColumn, h as StorageGetMessagesArg, aP as TABLE_EVALS, aQ as TABLE_MESSAGES, T as TABLE_NAMES, aT as TABLE_SCHEMAS, aR as TABLE_THREADS, aS as TABLE_TRACES, aO as TABLE_WORKFLOW_SNAPSHOT, r as WorkflowRow, s as WorkflowRuns } from '../base-2iKEEo-U.cjs';
1
+ export { E as EvalRow, e as MastraStorage, S as StorageColumn, h as StorageGetMessagesArg, aP as TABLE_EVALS, aQ as TABLE_MESSAGES, T as TABLE_NAMES, aT as TABLE_SCHEMAS, aR as TABLE_THREADS, aS as TABLE_TRACES, aO as TABLE_WORKFLOW_SNAPSHOT, r as WorkflowRow, s as WorkflowRuns } from '../base-nVWefprR.cjs';
2
2
  import 'ai';
3
3
  import '../base-BihKcqDY.cjs';
4
4
  import '@opentelemetry/api';
@@ -1,4 +1,4 @@
1
- export { E as EvalRow, e as MastraStorage, S as StorageColumn, h as StorageGetMessagesArg, aP as TABLE_EVALS, aQ as TABLE_MESSAGES, T as TABLE_NAMES, aT as TABLE_SCHEMAS, aR as TABLE_THREADS, aS as TABLE_TRACES, aO as TABLE_WORKFLOW_SNAPSHOT, r as WorkflowRow, s as WorkflowRuns } from '../base-BkKZJMd4.js';
1
+ export { E as EvalRow, e as MastraStorage, S as StorageColumn, h as StorageGetMessagesArg, aP as TABLE_EVALS, aQ as TABLE_MESSAGES, T as TABLE_NAMES, aT as TABLE_SCHEMAS, aR as TABLE_THREADS, aS as TABLE_TRACES, aO as TABLE_WORKFLOW_SNAPSHOT, r as WorkflowRow, s as WorkflowRuns } from '../base-C7f5RDDD.js';
2
2
  import 'ai';
3
3
  import '../base-DT2poiVK.js';
4
4
  import '@opentelemetry/api';
@@ -1,4 +1,4 @@
1
- import { e as MastraStorage, T as TABLE_NAMES, S as StorageColumn, f as StorageThreadType, g as MessageType, h as StorageGetMessagesArg, E as EvalRow, W as WorkflowRunState } from '../../base-2iKEEo-U.cjs';
1
+ import { e as MastraStorage, T as TABLE_NAMES, S as StorageColumn, f as StorageThreadType, g as MessageType, h as StorageGetMessagesArg, E as EvalRow, W as WorkflowRunState } from '../../base-nVWefprR.cjs';
2
2
  import '../../base-BihKcqDY.cjs';
3
3
  import 'ai';
4
4
  import '../../types-BtMyV38I.cjs';
@@ -1,4 +1,4 @@
1
- import { e as MastraStorage, T as TABLE_NAMES, S as StorageColumn, f as StorageThreadType, g as MessageType, h as StorageGetMessagesArg, E as EvalRow, W as WorkflowRunState } from '../../base-BkKZJMd4.js';
1
+ import { e as MastraStorage, T as TABLE_NAMES, S as StorageColumn, f as StorageThreadType, g as MessageType, h as StorageGetMessagesArg, E as EvalRow, W as WorkflowRunState } from '../../base-C7f5RDDD.js';
2
2
  import '../../base-DT2poiVK.js';
3
3
  import 'ai';
4
4
  import '../../types-BtMyV38I.js';
@@ -3,7 +3,7 @@ import { SpanKind } from '@opentelemetry/api';
3
3
  import { ExportResult } from '@opentelemetry/core';
4
4
  import { SpanExporter, ReadableSpan } from '@opentelemetry/sdk-trace-base';
5
5
  import { L as Logger } from '../index-CquI0inB.cjs';
6
- import { e as MastraStorage } from '../base-2iKEEo-U.cjs';
6
+ import { e as MastraStorage } from '../base-nVWefprR.cjs';
7
7
  import 'stream';
8
8
  import 'pino';
9
9
  import 'ai';
@@ -3,7 +3,7 @@ import { SpanKind } from '@opentelemetry/api';
3
3
  import { ExportResult } from '@opentelemetry/core';
4
4
  import { SpanExporter, ReadableSpan } from '@opentelemetry/sdk-trace-base';
5
5
  import { L as Logger } from '../index-CquI0inB.js';
6
- import { e as MastraStorage } from '../base-BkKZJMd4.js';
6
+ import { e as MastraStorage } from '../base-C7f5RDDD.js';
7
7
  import 'stream';
8
8
  import 'pino';
9
9
  import 'ai';
@@ -1,4 +1,4 @@
1
- export { a5 as CoreTool, n as Tool, i as ToolAction, m as ToolExecutionContext, a4 as VercelTool, a3 as createTool } from '../base-2iKEEo-U.cjs';
1
+ export { a5 as CoreTool, n as Tool, i as ToolAction, m as ToolExecutionContext, a4 as VercelTool, a3 as createTool } from '../base-nVWefprR.cjs';
2
2
  export { isVercelTool } from '../utils.cjs';
3
3
  import 'ai';
4
4
  import '../base-BihKcqDY.cjs';
@@ -1,4 +1,4 @@
1
- export { a5 as CoreTool, n as Tool, i as ToolAction, m as ToolExecutionContext, a4 as VercelTool, a3 as createTool } from '../base-BkKZJMd4.js';
1
+ export { a5 as CoreTool, n as Tool, i as ToolAction, m as ToolExecutionContext, a4 as VercelTool, a3 as createTool } from '../base-C7f5RDDD.js';
2
2
  export { isVercelTool } from '../utils.js';
3
3
  import 'ai';
4
4
  import '../base-DT2poiVK.js';
package/dist/utils.d.cts CHANGED
@@ -1,4 +1,4 @@
1
- import { a4 as VercelTool, i as ToolAction, aH as ToolsInput, a as Mastra, aI as MastraPrimitives, l as MastraMemory, a5 as CoreTool, j as Agent, p as Workflow, o as Step, a6 as StepExecutionContext, am as WorkflowContext, aJ as AgentNetwork } from './base-2iKEEo-U.cjs';
1
+ import { a4 as VercelTool, i as ToolAction, aH as ToolsInput, a as Mastra, aI as MastraPrimitives, l as MastraMemory, a5 as CoreTool, j as Agent, p as Workflow, o as Step, a6 as StepExecutionContext, am as WorkflowContext, aJ as AgentNetwork } from './base-nVWefprR.cjs';
2
2
  import { CoreMessage, Message } from 'ai';
3
3
  import { MastraTTS } from './tts/index.cjs';
4
4
  import { MastraVector } from './vector/index.cjs';
package/dist/utils.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { a4 as VercelTool, i as ToolAction, aH as ToolsInput, a as Mastra, aI as MastraPrimitives, l as MastraMemory, a5 as CoreTool, j as Agent, p as Workflow, o as Step, a6 as StepExecutionContext, am as WorkflowContext, aJ as AgentNetwork } from './base-BkKZJMd4.js';
1
+ import { a4 as VercelTool, i as ToolAction, aH as ToolsInput, a as Mastra, aI as MastraPrimitives, l as MastraMemory, a5 as CoreTool, j as Agent, p as Workflow, o as Step, a6 as StepExecutionContext, am as WorkflowContext, aJ as AgentNetwork } from './base-C7f5RDDD.js';
2
2
  import { CoreMessage, Message } from 'ai';
3
3
  import { MastraTTS } from './tts/index.js';
4
4
  import { MastraVector } from './vector/index.js';
@@ -1,5 +1,5 @@
1
- import { b as MastraVoice } from '../base-2iKEEo-U.cjs';
2
- export { C as CompositeVoice, d as VoiceConfig, c as VoiceEventMap, V as VoiceEventType } from '../base-2iKEEo-U.cjs';
1
+ import { b as MastraVoice } from '../base-nVWefprR.cjs';
2
+ export { C as CompositeVoice, d as VoiceConfig, c as VoiceEventMap, V as VoiceEventType } from '../base-nVWefprR.cjs';
3
3
  import '../base-BihKcqDY.cjs';
4
4
  import 'ai';
5
5
  import '../types-BtMyV38I.cjs';
@@ -1,5 +1,5 @@
1
- import { b as MastraVoice } from '../base-BkKZJMd4.js';
2
- export { C as CompositeVoice, d as VoiceConfig, c as VoiceEventMap, V as VoiceEventType } from '../base-BkKZJMd4.js';
1
+ import { b as MastraVoice } from '../base-C7f5RDDD.js';
2
+ export { C as CompositeVoice, d as VoiceConfig, c as VoiceEventMap, V as VoiceEventType } from '../base-C7f5RDDD.js';
3
3
  import '../base-DT2poiVK.js';
4
4
  import 'ai';
5
5
  import '../types-BtMyV38I.js';
@@ -1,90 +1,94 @@
1
1
  'use strict';
2
2
 
3
- var chunkLK5H7SEM_cjs = require('../chunk-LK5H7SEM.cjs');
3
+ var chunkENOIN7PM_cjs = require('../chunk-ENOIN7PM.cjs');
4
4
 
5
5
 
6
6
 
7
7
  Object.defineProperty(exports, "Step", {
8
8
  enumerable: true,
9
- get: function () { return chunkLK5H7SEM_cjs.Step; }
9
+ get: function () { return chunkENOIN7PM_cjs.Step; }
10
10
  });
11
11
  Object.defineProperty(exports, "WhenConditionReturnValue", {
12
12
  enumerable: true,
13
- get: function () { return chunkLK5H7SEM_cjs.WhenConditionReturnValue; }
13
+ get: function () { return chunkENOIN7PM_cjs.WhenConditionReturnValue; }
14
14
  });
15
15
  Object.defineProperty(exports, "Workflow", {
16
16
  enumerable: true,
17
- get: function () { return chunkLK5H7SEM_cjs.Workflow; }
17
+ get: function () { return chunkENOIN7PM_cjs.Workflow; }
18
18
  });
19
19
  Object.defineProperty(exports, "agentToStep", {
20
20
  enumerable: true,
21
- get: function () { return chunkLK5H7SEM_cjs.agentToStep; }
21
+ get: function () { return chunkENOIN7PM_cjs.agentToStep; }
22
22
  });
23
23
  Object.defineProperty(exports, "createStep", {
24
24
  enumerable: true,
25
- get: function () { return chunkLK5H7SEM_cjs.createStep; }
25
+ get: function () { return chunkENOIN7PM_cjs.createStep; }
26
26
  });
27
27
  Object.defineProperty(exports, "getActivePathsAndStatus", {
28
28
  enumerable: true,
29
- get: function () { return chunkLK5H7SEM_cjs.getActivePathsAndStatus; }
29
+ get: function () { return chunkENOIN7PM_cjs.getActivePathsAndStatus; }
30
30
  });
31
31
  Object.defineProperty(exports, "getResultActivePaths", {
32
32
  enumerable: true,
33
- get: function () { return chunkLK5H7SEM_cjs.getResultActivePaths; }
33
+ get: function () { return chunkENOIN7PM_cjs.getResultActivePaths; }
34
34
  });
35
35
  Object.defineProperty(exports, "getStepResult", {
36
36
  enumerable: true,
37
- get: function () { return chunkLK5H7SEM_cjs.getStepResult; }
37
+ get: function () { return chunkENOIN7PM_cjs.getStepResult; }
38
38
  });
39
39
  Object.defineProperty(exports, "getSuspendedPaths", {
40
40
  enumerable: true,
41
- get: function () { return chunkLK5H7SEM_cjs.getSuspendedPaths; }
41
+ get: function () { return chunkENOIN7PM_cjs.getSuspendedPaths; }
42
42
  });
43
43
  Object.defineProperty(exports, "isAgent", {
44
44
  enumerable: true,
45
- get: function () { return chunkLK5H7SEM_cjs.isAgent; }
45
+ get: function () { return chunkENOIN7PM_cjs.isAgent; }
46
+ });
47
+ Object.defineProperty(exports, "isConditionalKey", {
48
+ enumerable: true,
49
+ get: function () { return chunkENOIN7PM_cjs.isConditionalKey; }
46
50
  });
47
51
  Object.defineProperty(exports, "isErrorEvent", {
48
52
  enumerable: true,
49
- get: function () { return chunkLK5H7SEM_cjs.isErrorEvent; }
53
+ get: function () { return chunkENOIN7PM_cjs.isErrorEvent; }
50
54
  });
51
55
  Object.defineProperty(exports, "isFinalState", {
52
56
  enumerable: true,
53
- get: function () { return chunkLK5H7SEM_cjs.isFinalState; }
57
+ get: function () { return chunkENOIN7PM_cjs.isFinalState; }
54
58
  });
55
59
  Object.defineProperty(exports, "isLimboState", {
56
60
  enumerable: true,
57
- get: function () { return chunkLK5H7SEM_cjs.isLimboState; }
61
+ get: function () { return chunkENOIN7PM_cjs.isLimboState; }
58
62
  });
59
63
  Object.defineProperty(exports, "isTransitionEvent", {
60
64
  enumerable: true,
61
- get: function () { return chunkLK5H7SEM_cjs.isTransitionEvent; }
65
+ get: function () { return chunkENOIN7PM_cjs.isTransitionEvent; }
62
66
  });
63
67
  Object.defineProperty(exports, "isVariableReference", {
64
68
  enumerable: true,
65
- get: function () { return chunkLK5H7SEM_cjs.isVariableReference; }
69
+ get: function () { return chunkENOIN7PM_cjs.isVariableReference; }
66
70
  });
67
71
  Object.defineProperty(exports, "isWorkflow", {
68
72
  enumerable: true,
69
- get: function () { return chunkLK5H7SEM_cjs.isWorkflow; }
73
+ get: function () { return chunkENOIN7PM_cjs.isWorkflow; }
70
74
  });
71
75
  Object.defineProperty(exports, "mergeChildValue", {
72
76
  enumerable: true,
73
- get: function () { return chunkLK5H7SEM_cjs.mergeChildValue; }
77
+ get: function () { return chunkENOIN7PM_cjs.mergeChildValue; }
74
78
  });
75
79
  Object.defineProperty(exports, "recursivelyCheckForFinalState", {
76
80
  enumerable: true,
77
- get: function () { return chunkLK5H7SEM_cjs.recursivelyCheckForFinalState; }
81
+ get: function () { return chunkENOIN7PM_cjs.recursivelyCheckForFinalState; }
78
82
  });
79
83
  Object.defineProperty(exports, "resolveVariables", {
80
84
  enumerable: true,
81
- get: function () { return chunkLK5H7SEM_cjs.resolveVariables; }
85
+ get: function () { return chunkENOIN7PM_cjs.resolveVariables; }
82
86
  });
83
87
  Object.defineProperty(exports, "updateStepInHierarchy", {
84
88
  enumerable: true,
85
- get: function () { return chunkLK5H7SEM_cjs.updateStepInHierarchy; }
89
+ get: function () { return chunkENOIN7PM_cjs.updateStepInHierarchy; }
86
90
  });
87
91
  Object.defineProperty(exports, "workflowToStep", {
88
92
  enumerable: true,
89
- get: function () { return chunkLK5H7SEM_cjs.workflowToStep; }
93
+ get: function () { return chunkENOIN7PM_cjs.workflowToStep; }
90
94
  });
@@ -1,5 +1,5 @@
1
- import { ac as VariableReference, aj as StepResult, o as Step, p as Workflow, j as Agent, am as WorkflowContext, aH as ToolsInput, a as Mastra, a7 as StepAction, al as WorkflowRunResult } from '../base-2iKEEo-U.cjs';
2
- export { ae as ActionContext, ad as BaseCondition, as as DependencyCheckOutput, az as ExtractSchemaFromStep, aC as ExtractSchemaType, aA as ExtractStepResult, aD as PathsToStringProps, ap as ResolverFunctionInput, aq as ResolverFunctionOutput, ab as RetryConfig, ah as StepCondition, ai as StepConfig, ag as StepDef, a6 as StepExecutionContext, aa as StepGraph, ay as StepId, aB as StepInputType, a9 as StepNode, at as StepResolverOutput, a8 as StepVariableType, ak as StepsRecord, ar as SubscriberFunctionOutput, af as WhenConditionReturnValue, av as WorkflowActionParams, aw as WorkflowActions, au as WorkflowActors, ao as WorkflowEvent, an as WorkflowLogMessage, q as WorkflowOptions, aE as WorkflowResumeResult, W as WorkflowRunState, ax as WorkflowState, aF as createStep } from '../base-2iKEEo-U.cjs';
1
+ import { ac as VariableReference, aj as StepResult, o as Step, p as Workflow, j as Agent, am as WorkflowContext, aH as ToolsInput, a as Mastra, a7 as StepAction, al as WorkflowRunResult } from '../base-nVWefprR.cjs';
2
+ export { ae as ActionContext, ad as BaseCondition, as as DependencyCheckOutput, az as ExtractSchemaFromStep, aC as ExtractSchemaType, aA as ExtractStepResult, aD as PathsToStringProps, ap as ResolverFunctionInput, aq as ResolverFunctionOutput, ab as RetryConfig, ah as StepCondition, ai as StepConfig, ag as StepDef, a6 as StepExecutionContext, aa as StepGraph, ay as StepId, aB as StepInputType, a9 as StepNode, at as StepResolverOutput, a8 as StepVariableType, ak as StepsRecord, ar as SubscriberFunctionOutput, af as WhenConditionReturnValue, av as WorkflowActionParams, aw as WorkflowActions, au as WorkflowActors, ao as WorkflowEvent, an as WorkflowLogMessage, q as WorkflowOptions, aE as WorkflowResumeResult, W as WorkflowRunState, ax as WorkflowState, aF as createStep } from '../base-nVWefprR.cjs';
3
3
  import { z } from 'zod';
4
4
  import { a as Metric } from '../types-BtMyV38I.cjs';
5
5
  import { L as Logger } from '../index-CquI0inB.cjs';
@@ -78,5 +78,6 @@ declare function agentToStep<TAgentId extends string = string, TTools extends To
78
78
  declare function workflowToStep<TSteps extends Step<any, any, any, any>[], TStepId extends string = any, TTriggerSchema extends z.ZodObject<any> = any, TResultSchema extends z.ZodObject<any> = any>(workflow: Workflow<TSteps, TStepId, TTriggerSchema, TResultSchema>, { mastra }: {
79
79
  mastra?: Mastra;
80
80
  }): StepAction<TStepId, TTriggerSchema, z.ZodType<WorkflowRunResult<TTriggerSchema, TSteps, TResultSchema>>, any>;
81
+ declare function isConditionalKey(key: string): boolean;
81
82
 
82
- export { Step, StepAction, StepResult, VariableReference, Workflow, WorkflowContext, WorkflowRunResult, agentToStep, getActivePathsAndStatus, getResultActivePaths, getStepResult, getSuspendedPaths, isAgent, isErrorEvent, isFinalState, isLimboState, isTransitionEvent, isVariableReference, isWorkflow, mergeChildValue, recursivelyCheckForFinalState, resolveVariables, updateStepInHierarchy, workflowToStep };
83
+ export { Step, StepAction, StepResult, VariableReference, Workflow, WorkflowContext, WorkflowRunResult, agentToStep, getActivePathsAndStatus, getResultActivePaths, getStepResult, getSuspendedPaths, isAgent, isConditionalKey, isErrorEvent, isFinalState, isLimboState, isTransitionEvent, isVariableReference, isWorkflow, mergeChildValue, recursivelyCheckForFinalState, resolveVariables, updateStepInHierarchy, workflowToStep };
@@ -1,5 +1,5 @@
1
- import { ac as VariableReference, aj as StepResult, o as Step, p as Workflow, j as Agent, am as WorkflowContext, aH as ToolsInput, a as Mastra, a7 as StepAction, al as WorkflowRunResult } from '../base-BkKZJMd4.js';
2
- export { ae as ActionContext, ad as BaseCondition, as as DependencyCheckOutput, az as ExtractSchemaFromStep, aC as ExtractSchemaType, aA as ExtractStepResult, aD as PathsToStringProps, ap as ResolverFunctionInput, aq as ResolverFunctionOutput, ab as RetryConfig, ah as StepCondition, ai as StepConfig, ag as StepDef, a6 as StepExecutionContext, aa as StepGraph, ay as StepId, aB as StepInputType, a9 as StepNode, at as StepResolverOutput, a8 as StepVariableType, ak as StepsRecord, ar as SubscriberFunctionOutput, af as WhenConditionReturnValue, av as WorkflowActionParams, aw as WorkflowActions, au as WorkflowActors, ao as WorkflowEvent, an as WorkflowLogMessage, q as WorkflowOptions, aE as WorkflowResumeResult, W as WorkflowRunState, ax as WorkflowState, aF as createStep } from '../base-BkKZJMd4.js';
1
+ import { ac as VariableReference, aj as StepResult, o as Step, p as Workflow, j as Agent, am as WorkflowContext, aH as ToolsInput, a as Mastra, a7 as StepAction, al as WorkflowRunResult } from '../base-C7f5RDDD.js';
2
+ export { ae as ActionContext, ad as BaseCondition, as as DependencyCheckOutput, az as ExtractSchemaFromStep, aC as ExtractSchemaType, aA as ExtractStepResult, aD as PathsToStringProps, ap as ResolverFunctionInput, aq as ResolverFunctionOutput, ab as RetryConfig, ah as StepCondition, ai as StepConfig, ag as StepDef, a6 as StepExecutionContext, aa as StepGraph, ay as StepId, aB as StepInputType, a9 as StepNode, at as StepResolverOutput, a8 as StepVariableType, ak as StepsRecord, ar as SubscriberFunctionOutput, af as WhenConditionReturnValue, av as WorkflowActionParams, aw as WorkflowActions, au as WorkflowActors, ao as WorkflowEvent, an as WorkflowLogMessage, q as WorkflowOptions, aE as WorkflowResumeResult, W as WorkflowRunState, ax as WorkflowState, aF as createStep } from '../base-C7f5RDDD.js';
3
3
  import { z } from 'zod';
4
4
  import { a as Metric } from '../types-BtMyV38I.js';
5
5
  import { L as Logger } from '../index-CquI0inB.js';
@@ -78,5 +78,6 @@ declare function agentToStep<TAgentId extends string = string, TTools extends To
78
78
  declare function workflowToStep<TSteps extends Step<any, any, any, any>[], TStepId extends string = any, TTriggerSchema extends z.ZodObject<any> = any, TResultSchema extends z.ZodObject<any> = any>(workflow: Workflow<TSteps, TStepId, TTriggerSchema, TResultSchema>, { mastra }: {
79
79
  mastra?: Mastra;
80
80
  }): StepAction<TStepId, TTriggerSchema, z.ZodType<WorkflowRunResult<TTriggerSchema, TSteps, TResultSchema>>, any>;
81
+ declare function isConditionalKey(key: string): boolean;
81
82
 
82
- export { Step, StepAction, StepResult, VariableReference, Workflow, WorkflowContext, WorkflowRunResult, agentToStep, getActivePathsAndStatus, getResultActivePaths, getStepResult, getSuspendedPaths, isAgent, isErrorEvent, isFinalState, isLimboState, isTransitionEvent, isVariableReference, isWorkflow, mergeChildValue, recursivelyCheckForFinalState, resolveVariables, updateStepInHierarchy, workflowToStep };
83
+ export { Step, StepAction, StepResult, VariableReference, Workflow, WorkflowContext, WorkflowRunResult, agentToStep, getActivePathsAndStatus, getResultActivePaths, getStepResult, getSuspendedPaths, isAgent, isConditionalKey, isErrorEvent, isFinalState, isLimboState, isTransitionEvent, isVariableReference, isWorkflow, mergeChildValue, recursivelyCheckForFinalState, resolveVariables, updateStepInHierarchy, workflowToStep };
@@ -1 +1 @@
1
- export { Step, WhenConditionReturnValue, Workflow, agentToStep, createStep, getActivePathsAndStatus, getResultActivePaths, getStepResult, getSuspendedPaths, isAgent, isErrorEvent, isFinalState, isLimboState, isTransitionEvent, isVariableReference, isWorkflow, mergeChildValue, recursivelyCheckForFinalState, resolveVariables, updateStepInHierarchy, workflowToStep } from '../chunk-TFDALD5V.js';
1
+ export { Step, WhenConditionReturnValue, Workflow, agentToStep, createStep, getActivePathsAndStatus, getResultActivePaths, getStepResult, getSuspendedPaths, isAgent, isConditionalKey, isErrorEvent, isFinalState, isLimboState, isTransitionEvent, isVariableReference, isWorkflow, mergeChildValue, recursivelyCheckForFinalState, resolveVariables, updateStepInHierarchy, workflowToStep } from '../chunk-SGR6AJWC.js';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mastra/core",
3
- "version": "0.8.0-alpha.7",
3
+ "version": "0.8.0",
4
4
  "license": "ISC",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",