@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.
- package/dist/agent/index.cjs +2 -2
- 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-BkKZJMd4.d.ts → base-C7f5RDDD.d.ts} +5 -5
- package/dist/{base-2iKEEo-U.d.cts → base-nVWefprR.d.cts} +5 -5
- package/dist/{chunk-KHMCAV4W.js → chunk-A74FQNCI.js} +1 -1
- package/dist/{chunk-LK5H7SEM.cjs → chunk-ENOIN7PM.cjs} +84 -29
- package/dist/{chunk-S3VEAYDK.cjs → chunk-FUQKE5AK.cjs} +2 -2
- package/dist/{chunk-TFDALD5V.js → chunk-SGR6AJWC.js} +84 -30
- package/dist/eval/index.d.cts +1 -1
- package/dist/eval/index.d.ts +1 -1
- package/dist/index.cjs +31 -27
- package/dist/index.d.cts +3 -3
- package/dist/index.d.ts +3 -3
- package/dist/index.js +3 -3
- 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/mastra/index.d.cts +1 -1
- package/dist/mastra/index.d.ts +1 -1
- package/dist/memory/index.d.cts +1 -1
- package/dist/memory/index.d.ts +1 -1
- package/dist/network/index.cjs +2 -2
- package/dist/network/index.d.cts +1 -1
- package/dist/network/index.d.ts +1 -1
- package/dist/network/index.js +1 -1
- package/dist/relevance/index.cjs +4 -4
- package/dist/relevance/index.d.cts +1 -1
- package/dist/relevance/index.d.ts +1 -1
- package/dist/relevance/index.js +1 -1
- package/dist/server/index.d.cts +1 -1
- package/dist/server/index.d.ts +1 -1
- package/dist/storage/index.d.cts +1 -1
- package/dist/storage/index.d.ts +1 -1
- package/dist/storage/libsql/index.d.cts +1 -1
- package/dist/storage/libsql/index.d.ts +1 -1
- package/dist/telemetry/index.d.cts +1 -1
- package/dist/telemetry/index.d.ts +1 -1
- package/dist/tools/index.d.cts +1 -1
- package/dist/tools/index.d.ts +1 -1
- package/dist/utils.d.cts +1 -1
- package/dist/utils.d.ts +1 -1
- package/dist/voice/index.d.cts +2 -2
- package/dist/voice/index.d.ts +2 -2
- package/dist/workflows/index.cjs +26 -22
- 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 +1 -1
package/dist/relevance/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { CohereRelevanceScorer, MastraAgentRelevanceScorer, createSimilarityPrompt } from '../chunk-
|
|
1
|
+
export { CohereRelevanceScorer, MastraAgentRelevanceScorer, createSimilarityPrompt } from '../chunk-A74FQNCI.js';
|
package/dist/server/index.d.cts
CHANGED
|
@@ -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-
|
|
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';
|
package/dist/server/index.d.ts
CHANGED
|
@@ -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-
|
|
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';
|
package/dist/storage/index.d.cts
CHANGED
|
@@ -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-
|
|
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';
|
package/dist/storage/index.d.ts
CHANGED
|
@@ -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-
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
6
|
+
import { e as MastraStorage } from '../base-C7f5RDDD.js';
|
|
7
7
|
import 'stream';
|
|
8
8
|
import 'pino';
|
|
9
9
|
import 'ai';
|
package/dist/tools/index.d.cts
CHANGED
|
@@ -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-
|
|
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';
|
package/dist/tools/index.d.ts
CHANGED
|
@@ -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-
|
|
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-
|
|
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-
|
|
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';
|
package/dist/voice/index.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { b as MastraVoice } from '../base-
|
|
2
|
-
export { C as CompositeVoice, d as VoiceConfig, c as VoiceEventMap, V as VoiceEventType } from '../base-
|
|
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';
|
package/dist/voice/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { b as MastraVoice } from '../base-
|
|
2
|
-
export { C as CompositeVoice, d as VoiceConfig, c as VoiceEventMap, V as VoiceEventType } from '../base-
|
|
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';
|
package/dist/workflows/index.cjs
CHANGED
|
@@ -1,90 +1,94 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
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
|
|
9
|
+
get: function () { return chunkENOIN7PM_cjs.Step; }
|
|
10
10
|
});
|
|
11
11
|
Object.defineProperty(exports, "WhenConditionReturnValue", {
|
|
12
12
|
enumerable: true,
|
|
13
|
-
get: function () { return
|
|
13
|
+
get: function () { return chunkENOIN7PM_cjs.WhenConditionReturnValue; }
|
|
14
14
|
});
|
|
15
15
|
Object.defineProperty(exports, "Workflow", {
|
|
16
16
|
enumerable: true,
|
|
17
|
-
get: function () { return
|
|
17
|
+
get: function () { return chunkENOIN7PM_cjs.Workflow; }
|
|
18
18
|
});
|
|
19
19
|
Object.defineProperty(exports, "agentToStep", {
|
|
20
20
|
enumerable: true,
|
|
21
|
-
get: function () { return
|
|
21
|
+
get: function () { return chunkENOIN7PM_cjs.agentToStep; }
|
|
22
22
|
});
|
|
23
23
|
Object.defineProperty(exports, "createStep", {
|
|
24
24
|
enumerable: true,
|
|
25
|
-
get: function () { return
|
|
25
|
+
get: function () { return chunkENOIN7PM_cjs.createStep; }
|
|
26
26
|
});
|
|
27
27
|
Object.defineProperty(exports, "getActivePathsAndStatus", {
|
|
28
28
|
enumerable: true,
|
|
29
|
-
get: function () { return
|
|
29
|
+
get: function () { return chunkENOIN7PM_cjs.getActivePathsAndStatus; }
|
|
30
30
|
});
|
|
31
31
|
Object.defineProperty(exports, "getResultActivePaths", {
|
|
32
32
|
enumerable: true,
|
|
33
|
-
get: function () { return
|
|
33
|
+
get: function () { return chunkENOIN7PM_cjs.getResultActivePaths; }
|
|
34
34
|
});
|
|
35
35
|
Object.defineProperty(exports, "getStepResult", {
|
|
36
36
|
enumerable: true,
|
|
37
|
-
get: function () { return
|
|
37
|
+
get: function () { return chunkENOIN7PM_cjs.getStepResult; }
|
|
38
38
|
});
|
|
39
39
|
Object.defineProperty(exports, "getSuspendedPaths", {
|
|
40
40
|
enumerable: true,
|
|
41
|
-
get: function () { return
|
|
41
|
+
get: function () { return chunkENOIN7PM_cjs.getSuspendedPaths; }
|
|
42
42
|
});
|
|
43
43
|
Object.defineProperty(exports, "isAgent", {
|
|
44
44
|
enumerable: true,
|
|
45
|
-
get: function () { return
|
|
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
|
|
53
|
+
get: function () { return chunkENOIN7PM_cjs.isErrorEvent; }
|
|
50
54
|
});
|
|
51
55
|
Object.defineProperty(exports, "isFinalState", {
|
|
52
56
|
enumerable: true,
|
|
53
|
-
get: function () { return
|
|
57
|
+
get: function () { return chunkENOIN7PM_cjs.isFinalState; }
|
|
54
58
|
});
|
|
55
59
|
Object.defineProperty(exports, "isLimboState", {
|
|
56
60
|
enumerable: true,
|
|
57
|
-
get: function () { return
|
|
61
|
+
get: function () { return chunkENOIN7PM_cjs.isLimboState; }
|
|
58
62
|
});
|
|
59
63
|
Object.defineProperty(exports, "isTransitionEvent", {
|
|
60
64
|
enumerable: true,
|
|
61
|
-
get: function () { return
|
|
65
|
+
get: function () { return chunkENOIN7PM_cjs.isTransitionEvent; }
|
|
62
66
|
});
|
|
63
67
|
Object.defineProperty(exports, "isVariableReference", {
|
|
64
68
|
enumerable: true,
|
|
65
|
-
get: function () { return
|
|
69
|
+
get: function () { return chunkENOIN7PM_cjs.isVariableReference; }
|
|
66
70
|
});
|
|
67
71
|
Object.defineProperty(exports, "isWorkflow", {
|
|
68
72
|
enumerable: true,
|
|
69
|
-
get: function () { return
|
|
73
|
+
get: function () { return chunkENOIN7PM_cjs.isWorkflow; }
|
|
70
74
|
});
|
|
71
75
|
Object.defineProperty(exports, "mergeChildValue", {
|
|
72
76
|
enumerable: true,
|
|
73
|
-
get: function () { return
|
|
77
|
+
get: function () { return chunkENOIN7PM_cjs.mergeChildValue; }
|
|
74
78
|
});
|
|
75
79
|
Object.defineProperty(exports, "recursivelyCheckForFinalState", {
|
|
76
80
|
enumerable: true,
|
|
77
|
-
get: function () { return
|
|
81
|
+
get: function () { return chunkENOIN7PM_cjs.recursivelyCheckForFinalState; }
|
|
78
82
|
});
|
|
79
83
|
Object.defineProperty(exports, "resolveVariables", {
|
|
80
84
|
enumerable: true,
|
|
81
|
-
get: function () { return
|
|
85
|
+
get: function () { return chunkENOIN7PM_cjs.resolveVariables; }
|
|
82
86
|
});
|
|
83
87
|
Object.defineProperty(exports, "updateStepInHierarchy", {
|
|
84
88
|
enumerable: true,
|
|
85
|
-
get: function () { return
|
|
89
|
+
get: function () { return chunkENOIN7PM_cjs.updateStepInHierarchy; }
|
|
86
90
|
});
|
|
87
91
|
Object.defineProperty(exports, "workflowToStep", {
|
|
88
92
|
enumerable: true,
|
|
89
|
-
get: function () { return
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
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 };
|
package/dist/workflows/index.js
CHANGED
|
@@ -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-
|
|
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';
|