@mastra/server 0.0.0-fix-bundle-cleanup-20250911062914 → 0.0.0-fix-cloud-peer-deps-20250923194656
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/CHANGELOG.md +211 -4
- package/README.md +0 -5
- package/dist/{chunk-GUI3CROV.cjs → chunk-2GDLSAVJ.cjs} +60 -22
- package/dist/chunk-2GDLSAVJ.cjs.map +1 -0
- package/dist/{chunk-3TETONBL.cjs → chunk-2WMATOMO.cjs} +93 -8
- package/dist/chunk-2WMATOMO.cjs.map +1 -0
- package/dist/{chunk-6LUKYSWE.cjs → chunk-57HWW2TY.cjs} +96 -119
- package/dist/chunk-57HWW2TY.cjs.map +1 -0
- package/dist/{chunk-R7NOGUZG.js → chunk-5KRXONRF.js} +43 -4
- package/dist/chunk-5KRXONRF.js.map +1 -0
- package/dist/{chunk-L265APUD.cjs → chunk-5N724Q2T.cjs} +43 -3
- package/dist/chunk-5N724Q2T.cjs.map +1 -0
- package/dist/{chunk-3THIIWWW.cjs → chunk-AVEPEUN4.cjs} +4 -3
- package/dist/chunk-AVEPEUN4.cjs.map +1 -0
- package/dist/{chunk-DMSCGAWM.js → chunk-BZT5VYDT.js} +92 -9
- package/dist/chunk-BZT5VYDT.js.map +1 -0
- package/dist/chunk-CNU4A2XU.js +129 -0
- package/dist/chunk-CNU4A2XU.js.map +1 -0
- package/dist/{chunk-B2V3PUB7.js → chunk-G662L2YZ.js} +93 -116
- package/dist/chunk-G662L2YZ.js.map +1 -0
- package/dist/chunk-GDWMF6SB.cjs +133 -0
- package/dist/chunk-GDWMF6SB.cjs.map +1 -0
- package/dist/{chunk-7QEJ5QG5.js → chunk-IYJW2OVQ.js} +60 -22
- package/dist/chunk-IYJW2OVQ.js.map +1 -0
- package/dist/{chunk-A75S4TDD.js → chunk-JRDEOHAJ.js} +19 -11
- package/dist/chunk-JRDEOHAJ.js.map +1 -0
- package/dist/{chunk-SYRRSBGL.js → chunk-KM7EJKXV.js} +8 -4
- package/dist/chunk-KM7EJKXV.js.map +1 -0
- package/dist/{chunk-J7BPKKOG.cjs → chunk-LJFAAEU7.cjs} +8 -4
- package/dist/chunk-LJFAAEU7.cjs.map +1 -0
- package/dist/{chunk-WZC6CIVD.cjs → chunk-NLWACBE7.cjs} +19 -11
- package/dist/chunk-NLWACBE7.cjs.map +1 -0
- package/dist/{chunk-2JEDATG5.cjs → chunk-PLNQ4XER.cjs} +191 -150
- package/dist/chunk-PLNQ4XER.cjs.map +1 -0
- package/dist/{chunk-5QUKZCEF.js → chunk-PUYSH3IL.js} +4 -3
- package/dist/chunk-PUYSH3IL.js.map +1 -0
- package/dist/{chunk-OTU37YZO.js → chunk-X7564COI.js} +172 -131
- package/dist/chunk-X7564COI.js.map +1 -0
- package/dist/index.cjs +4 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +3 -0
- package/dist/index.js.map +1 -1
- package/dist/server/handlers/a2a.cjs +7 -7
- package/dist/server/handlers/a2a.d.ts.map +1 -1
- package/dist/server/handlers/a2a.js +1 -1
- package/dist/server/handlers/agent-builder.cjs +16 -16
- package/dist/server/handlers/agent-builder.d.ts +5 -4
- package/dist/server/handlers/agent-builder.d.ts.map +1 -1
- package/dist/server/handlers/agent-builder.js +1 -1
- package/dist/server/handlers/agents.cjs +23 -15
- package/dist/server/handlers/agents.d.ts +46 -4
- package/dist/server/handlers/agents.d.ts.map +1 -1
- package/dist/server/handlers/agents.js +1 -1
- package/dist/server/handlers/observability.cjs +7 -3
- package/dist/server/handlers/observability.d.ts +18 -0
- package/dist/server/handlers/observability.d.ts.map +1 -1
- package/dist/server/handlers/observability.js +1 -1
- package/dist/server/handlers/scores.cjs +7 -7
- package/dist/server/handlers/scores.d.ts +208 -6
- package/dist/server/handlers/scores.d.ts.map +1 -1
- package/dist/server/handlers/scores.js +1 -1
- package/dist/server/handlers/tools.cjs +6 -6
- package/dist/server/handlers/tools.d.ts.map +1 -1
- package/dist/server/handlers/tools.js +1 -1
- package/dist/server/handlers/vNextNetwork.d.ts +73 -6
- package/dist/server/handlers/vNextNetwork.d.ts.map +1 -1
- package/dist/server/handlers/voice.cjs +5 -5
- package/dist/server/handlers/voice.d.ts +6 -4
- package/dist/server/handlers/voice.d.ts.map +1 -1
- package/dist/server/handlers/voice.js +1 -1
- package/dist/server/handlers/workflows.cjs +24 -16
- package/dist/server/handlers/workflows.d.ts +16 -7
- package/dist/server/handlers/workflows.d.ts.map +1 -1
- package/dist/server/handlers/workflows.js +1 -1
- package/dist/server/handlers.cjs +16 -21
- package/dist/server/handlers.d.ts +0 -1
- package/dist/server/handlers.d.ts.map +1 -1
- package/dist/server/handlers.js +8 -9
- package/dist/server/utils.d.ts +2 -0
- package/dist/server/utils.d.ts.map +1 -1
- package/package.json +8 -8
- package/dist/chunk-2JEDATG5.cjs.map +0 -1
- package/dist/chunk-3TETONBL.cjs.map +0 -1
- package/dist/chunk-3THIIWWW.cjs.map +0 -1
- package/dist/chunk-5QUKZCEF.js.map +0 -1
- package/dist/chunk-6LUKYSWE.cjs.map +0 -1
- package/dist/chunk-7QEJ5QG5.js.map +0 -1
- package/dist/chunk-A75S4TDD.js.map +0 -1
- package/dist/chunk-B2V3PUB7.js.map +0 -1
- package/dist/chunk-DMSCGAWM.js.map +0 -1
- package/dist/chunk-GUI3CROV.cjs.map +0 -1
- package/dist/chunk-IY34NOLA.cjs +0 -150
- package/dist/chunk-IY34NOLA.cjs.map +0 -1
- package/dist/chunk-J7BPKKOG.cjs.map +0 -1
- package/dist/chunk-L265APUD.cjs.map +0 -1
- package/dist/chunk-OTU37YZO.js.map +0 -1
- package/dist/chunk-R7NOGUZG.js.map +0 -1
- package/dist/chunk-SYRRSBGL.js.map +0 -1
- package/dist/chunk-U46VIX2V.js +0 -144
- package/dist/chunk-U46VIX2V.js.map +0 -1
- package/dist/chunk-WZC6CIVD.cjs.map +0 -1
- package/dist/server/handlers/network.cjs +0 -24
- package/dist/server/handlers/network.cjs.map +0 -1
- package/dist/server/handlers/network.d.ts +0 -50
- package/dist/server/handlers/network.d.ts.map +0 -1
- package/dist/server/handlers/network.js +0 -3
- package/dist/server/handlers/network.js.map +0 -1
|
@@ -7,7 +7,9 @@ export declare function getScorersHandler({ mastra, runtimeContext }: Context &
|
|
|
7
7
|
}): Promise<{
|
|
8
8
|
[k: string]: MastraScorerEntry & {
|
|
9
9
|
agentIds: string[];
|
|
10
|
+
agentNames: string[];
|
|
10
11
|
workflowIds: string[];
|
|
12
|
+
isRegistered: boolean;
|
|
11
13
|
};
|
|
12
14
|
}>;
|
|
13
15
|
export declare function getScorerHandler({ mastra, scorerId, runtimeContext, }: Context & {
|
|
@@ -15,31 +17,231 @@ export declare function getScorerHandler({ mastra, scorerId, runtimeContext, }:
|
|
|
15
17
|
runtimeContext: RuntimeContext;
|
|
16
18
|
}): Promise<(MastraScorerEntry & {
|
|
17
19
|
agentIds: string[];
|
|
20
|
+
agentNames: string[];
|
|
18
21
|
workflowIds: string[];
|
|
22
|
+
isRegistered: boolean;
|
|
19
23
|
}) | null>;
|
|
20
24
|
export declare function getScoresByRunIdHandler({ mastra, runId, pagination, }: Context & {
|
|
21
25
|
runId: string;
|
|
22
26
|
pagination: StoragePagination;
|
|
23
|
-
}): Promise<
|
|
27
|
+
}): Promise<{
|
|
24
28
|
pagination: import("@mastra/core").PaginationInfo;
|
|
25
|
-
scores:
|
|
29
|
+
scores: ({
|
|
30
|
+
traceId?: string;
|
|
31
|
+
spanId?: undefined;
|
|
32
|
+
runId: string;
|
|
33
|
+
input: Record<string, any>[];
|
|
34
|
+
output: Record<string, any>;
|
|
35
|
+
additionalContext?: Record<string, any>;
|
|
36
|
+
runtimeContext?: Record<string, any>;
|
|
37
|
+
tracingContext?: import("@mastra/core/ai-tracing").TracingContext;
|
|
38
|
+
extractStepResult?: any;
|
|
39
|
+
extractPrompt?: string;
|
|
40
|
+
score: number;
|
|
41
|
+
analyzeStepResult?: any;
|
|
42
|
+
analyzePrompt?: string;
|
|
43
|
+
reason?: string;
|
|
44
|
+
reasonPrompt?: string;
|
|
45
|
+
scorer: Record<string, any>;
|
|
46
|
+
metadata?: Record<string, any>;
|
|
47
|
+
source: import("@mastra/core/scores").ScoringSource;
|
|
48
|
+
entity: Record<string, any>;
|
|
49
|
+
entityType: import("@mastra/core/scores").ScoringEntityType;
|
|
50
|
+
structuredOutput?: boolean;
|
|
51
|
+
resourceId?: string;
|
|
52
|
+
threadId?: string;
|
|
53
|
+
id: string;
|
|
54
|
+
entityId: string;
|
|
55
|
+
scorerId: string;
|
|
56
|
+
createdAt: Date;
|
|
57
|
+
updatedAt: Date;
|
|
58
|
+
preprocessStepResult?: Record<string, any>;
|
|
59
|
+
preprocessPrompt?: string;
|
|
60
|
+
generateScorePrompt?: string;
|
|
61
|
+
generateReasonPrompt?: string;
|
|
62
|
+
} | {
|
|
63
|
+
traceId: string | undefined;
|
|
64
|
+
spanId: string | undefined;
|
|
65
|
+
runId: string;
|
|
66
|
+
input: Record<string, any>[];
|
|
67
|
+
output: Record<string, any>;
|
|
68
|
+
additionalContext?: Record<string, any>;
|
|
69
|
+
runtimeContext?: Record<string, any>;
|
|
70
|
+
tracingContext?: import("@mastra/core/ai-tracing").TracingContext;
|
|
71
|
+
extractStepResult?: any;
|
|
72
|
+
extractPrompt?: string;
|
|
73
|
+
score: number;
|
|
74
|
+
analyzeStepResult?: any;
|
|
75
|
+
analyzePrompt?: string;
|
|
76
|
+
reason?: string;
|
|
77
|
+
reasonPrompt?: string;
|
|
78
|
+
scorer: Record<string, any>;
|
|
79
|
+
metadata?: Record<string, any>;
|
|
80
|
+
source: import("@mastra/core/scores").ScoringSource;
|
|
81
|
+
entity: Record<string, any>;
|
|
82
|
+
entityType: import("@mastra/core/scores").ScoringEntityType;
|
|
83
|
+
structuredOutput?: boolean;
|
|
84
|
+
resourceId?: string;
|
|
85
|
+
threadId?: string;
|
|
86
|
+
id: string;
|
|
87
|
+
entityId: string;
|
|
88
|
+
scorerId: string;
|
|
89
|
+
createdAt: Date;
|
|
90
|
+
updatedAt: Date;
|
|
91
|
+
preprocessStepResult?: Record<string, any>;
|
|
92
|
+
preprocessPrompt?: string;
|
|
93
|
+
generateScorePrompt?: string;
|
|
94
|
+
generateReasonPrompt?: string;
|
|
95
|
+
})[];
|
|
26
96
|
}>;
|
|
27
97
|
export declare function getScoresByScorerIdHandler({ mastra, scorerId, pagination, entityId, entityType, }: Context & {
|
|
28
98
|
scorerId: string;
|
|
29
99
|
pagination: StoragePagination;
|
|
30
100
|
entityId?: string;
|
|
31
101
|
entityType?: string;
|
|
32
|
-
}): Promise<
|
|
102
|
+
}): Promise<{
|
|
33
103
|
pagination: import("@mastra/core").PaginationInfo;
|
|
34
|
-
scores:
|
|
104
|
+
scores: ({
|
|
105
|
+
traceId?: string;
|
|
106
|
+
spanId?: undefined;
|
|
107
|
+
runId: string;
|
|
108
|
+
input: Record<string, any>[];
|
|
109
|
+
output: Record<string, any>;
|
|
110
|
+
additionalContext?: Record<string, any>;
|
|
111
|
+
runtimeContext?: Record<string, any>;
|
|
112
|
+
tracingContext?: import("@mastra/core/ai-tracing").TracingContext;
|
|
113
|
+
extractStepResult?: any;
|
|
114
|
+
extractPrompt?: string;
|
|
115
|
+
score: number;
|
|
116
|
+
analyzeStepResult?: any;
|
|
117
|
+
analyzePrompt?: string;
|
|
118
|
+
reason?: string;
|
|
119
|
+
reasonPrompt?: string;
|
|
120
|
+
scorer: Record<string, any>;
|
|
121
|
+
metadata?: Record<string, any>;
|
|
122
|
+
source: import("@mastra/core/scores").ScoringSource;
|
|
123
|
+
entity: Record<string, any>;
|
|
124
|
+
entityType: import("@mastra/core/scores").ScoringEntityType;
|
|
125
|
+
structuredOutput?: boolean;
|
|
126
|
+
resourceId?: string;
|
|
127
|
+
threadId?: string;
|
|
128
|
+
id: string;
|
|
129
|
+
entityId: string;
|
|
130
|
+
scorerId: string;
|
|
131
|
+
createdAt: Date;
|
|
132
|
+
updatedAt: Date;
|
|
133
|
+
preprocessStepResult?: Record<string, any>;
|
|
134
|
+
preprocessPrompt?: string;
|
|
135
|
+
generateScorePrompt?: string;
|
|
136
|
+
generateReasonPrompt?: string;
|
|
137
|
+
} | {
|
|
138
|
+
traceId: string | undefined;
|
|
139
|
+
spanId: string | undefined;
|
|
140
|
+
runId: string;
|
|
141
|
+
input: Record<string, any>[];
|
|
142
|
+
output: Record<string, any>;
|
|
143
|
+
additionalContext?: Record<string, any>;
|
|
144
|
+
runtimeContext?: Record<string, any>;
|
|
145
|
+
tracingContext?: import("@mastra/core/ai-tracing").TracingContext;
|
|
146
|
+
extractStepResult?: any;
|
|
147
|
+
extractPrompt?: string;
|
|
148
|
+
score: number;
|
|
149
|
+
analyzeStepResult?: any;
|
|
150
|
+
analyzePrompt?: string;
|
|
151
|
+
reason?: string;
|
|
152
|
+
reasonPrompt?: string;
|
|
153
|
+
scorer: Record<string, any>;
|
|
154
|
+
metadata?: Record<string, any>;
|
|
155
|
+
source: import("@mastra/core/scores").ScoringSource;
|
|
156
|
+
entity: Record<string, any>;
|
|
157
|
+
entityType: import("@mastra/core/scores").ScoringEntityType;
|
|
158
|
+
structuredOutput?: boolean;
|
|
159
|
+
resourceId?: string;
|
|
160
|
+
threadId?: string;
|
|
161
|
+
id: string;
|
|
162
|
+
entityId: string;
|
|
163
|
+
scorerId: string;
|
|
164
|
+
createdAt: Date;
|
|
165
|
+
updatedAt: Date;
|
|
166
|
+
preprocessStepResult?: Record<string, any>;
|
|
167
|
+
preprocessPrompt?: string;
|
|
168
|
+
generateScorePrompt?: string;
|
|
169
|
+
generateReasonPrompt?: string;
|
|
170
|
+
})[];
|
|
35
171
|
}>;
|
|
36
172
|
export declare function getScoresByEntityIdHandler({ mastra, entityId, entityType, pagination, }: Context & {
|
|
37
173
|
entityId: string;
|
|
38
174
|
entityType: string;
|
|
39
175
|
pagination: StoragePagination;
|
|
40
|
-
}): Promise<
|
|
176
|
+
}): Promise<{
|
|
41
177
|
pagination: import("@mastra/core").PaginationInfo;
|
|
42
|
-
scores:
|
|
178
|
+
scores: ({
|
|
179
|
+
traceId?: string;
|
|
180
|
+
spanId?: undefined;
|
|
181
|
+
runId: string;
|
|
182
|
+
input: Record<string, any>[];
|
|
183
|
+
output: Record<string, any>;
|
|
184
|
+
additionalContext?: Record<string, any>;
|
|
185
|
+
runtimeContext?: Record<string, any>;
|
|
186
|
+
tracingContext?: import("@mastra/core/ai-tracing").TracingContext;
|
|
187
|
+
extractStepResult?: any;
|
|
188
|
+
extractPrompt?: string;
|
|
189
|
+
score: number;
|
|
190
|
+
analyzeStepResult?: any;
|
|
191
|
+
analyzePrompt?: string;
|
|
192
|
+
reason?: string;
|
|
193
|
+
reasonPrompt?: string;
|
|
194
|
+
scorer: Record<string, any>;
|
|
195
|
+
metadata?: Record<string, any>;
|
|
196
|
+
source: import("@mastra/core/scores").ScoringSource;
|
|
197
|
+
entity: Record<string, any>;
|
|
198
|
+
entityType: import("@mastra/core/scores").ScoringEntityType;
|
|
199
|
+
structuredOutput?: boolean;
|
|
200
|
+
resourceId?: string;
|
|
201
|
+
threadId?: string;
|
|
202
|
+
id: string;
|
|
203
|
+
entityId: string;
|
|
204
|
+
scorerId: string;
|
|
205
|
+
createdAt: Date;
|
|
206
|
+
updatedAt: Date;
|
|
207
|
+
preprocessStepResult?: Record<string, any>;
|
|
208
|
+
preprocessPrompt?: string;
|
|
209
|
+
generateScorePrompt?: string;
|
|
210
|
+
generateReasonPrompt?: string;
|
|
211
|
+
} | {
|
|
212
|
+
traceId: string | undefined;
|
|
213
|
+
spanId: string | undefined;
|
|
214
|
+
runId: string;
|
|
215
|
+
input: Record<string, any>[];
|
|
216
|
+
output: Record<string, any>;
|
|
217
|
+
additionalContext?: Record<string, any>;
|
|
218
|
+
runtimeContext?: Record<string, any>;
|
|
219
|
+
tracingContext?: import("@mastra/core/ai-tracing").TracingContext;
|
|
220
|
+
extractStepResult?: any;
|
|
221
|
+
extractPrompt?: string;
|
|
222
|
+
score: number;
|
|
223
|
+
analyzeStepResult?: any;
|
|
224
|
+
analyzePrompt?: string;
|
|
225
|
+
reason?: string;
|
|
226
|
+
reasonPrompt?: string;
|
|
227
|
+
scorer: Record<string, any>;
|
|
228
|
+
metadata?: Record<string, any>;
|
|
229
|
+
source: import("@mastra/core/scores").ScoringSource;
|
|
230
|
+
entity: Record<string, any>;
|
|
231
|
+
entityType: import("@mastra/core/scores").ScoringEntityType;
|
|
232
|
+
structuredOutput?: boolean;
|
|
233
|
+
resourceId?: string;
|
|
234
|
+
threadId?: string;
|
|
235
|
+
id: string;
|
|
236
|
+
entityId: string;
|
|
237
|
+
scorerId: string;
|
|
238
|
+
createdAt: Date;
|
|
239
|
+
updatedAt: Date;
|
|
240
|
+
preprocessStepResult?: Record<string, any>;
|
|
241
|
+
preprocessPrompt?: string;
|
|
242
|
+
generateScorePrompt?: string;
|
|
243
|
+
generateReasonPrompt?: string;
|
|
244
|
+
})[];
|
|
43
245
|
}>;
|
|
44
246
|
export declare function saveScoreHandler({ mastra, score }: Context & {
|
|
45
247
|
score: ScoreRowData;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"scores.d.ts","sourceRoot":"","sources":["../../../src/server/handlers/scores.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,8BAA8B,CAAC;AACnE,OAAO,KAAK,EAAE,iBAAiB,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AAC3E,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,sBAAsB,CAAC;AAC9D,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,UAAU,CAAC;
|
|
1
|
+
{"version":3,"file":"scores.d.ts","sourceRoot":"","sources":["../../../src/server/handlers/scores.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,8BAA8B,CAAC;AACnE,OAAO,KAAK,EAAE,iBAAiB,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AAC3E,OAAO,KAAK,EAAE,iBAAiB,E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,UAAU,EAAE,MAAM,CAAC;IAAC,UAAU,EAAE,iBAAiB,CAAA;CAAE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAyBnF;AAWD,wBAAsB,gBAAgB,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,EAAE,OAAO,GAAG;IAAE,KAAK,EAAE,YAAY,CAAA;CAAE;;GAO1F"}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export { getScorerHandler, getScorersHandler, getScoresByEntityIdHandler, getScoresByRunIdHandler, getScoresByScorerIdHandler, saveScoreHandler } from '../../chunk-
|
|
1
|
+
export { getScorerHandler, getScorersHandler, getScoresByEntityIdHandler, getScoresByRunIdHandler, getScoresByScorerIdHandler, saveScoreHandler } from '../../chunk-IYJW2OVQ.js';
|
|
2
2
|
//# sourceMappingURL=scores.js.map
|
|
3
3
|
//# sourceMappingURL=scores.js.map
|
|
@@ -1,28 +1,28 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkLJFAAEU7_cjs = require('../../chunk-LJFAAEU7.cjs');
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
Object.defineProperty(exports, "executeAgentToolHandler", {
|
|
8
8
|
enumerable: true,
|
|
9
|
-
get: function () { return
|
|
9
|
+
get: function () { return chunkLJFAAEU7_cjs.executeAgentToolHandler; }
|
|
10
10
|
});
|
|
11
11
|
Object.defineProperty(exports, "executeToolHandler", {
|
|
12
12
|
enumerable: true,
|
|
13
|
-
get: function () { return
|
|
13
|
+
get: function () { return chunkLJFAAEU7_cjs.executeToolHandler; }
|
|
14
14
|
});
|
|
15
15
|
Object.defineProperty(exports, "getAgentToolHandler", {
|
|
16
16
|
enumerable: true,
|
|
17
|
-
get: function () { return
|
|
17
|
+
get: function () { return chunkLJFAAEU7_cjs.getAgentToolHandler; }
|
|
18
18
|
});
|
|
19
19
|
Object.defineProperty(exports, "getToolByIdHandler", {
|
|
20
20
|
enumerable: true,
|
|
21
|
-
get: function () { return
|
|
21
|
+
get: function () { return chunkLJFAAEU7_cjs.getToolByIdHandler; }
|
|
22
22
|
});
|
|
23
23
|
Object.defineProperty(exports, "getToolsHandler", {
|
|
24
24
|
enumerable: true,
|
|
25
|
-
get: function () { return
|
|
25
|
+
get: function () { return chunkLJFAAEU7_cjs.getToolsHandler; }
|
|
26
26
|
});
|
|
27
27
|
//# sourceMappingURL=tools.cjs.map
|
|
28
28
|
//# sourceMappingURL=tools.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tools.d.ts","sourceRoot":"","sources":["../../../src/server/handlers/tools.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC;AACtD,OAAO,KAAK,EAAE,UAAU,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AAKjE,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,UAAU,CAAC;AAKxC,UAAU,YAAa,SAAQ,OAAO;IACpC,KAAK,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,UAAU,GAAG,UAAU,CAAC,CAAC;IAChD,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAGD,wBAAsB,eAAe,CAAC,EAAE,KAAK,EAAE,EAAE,IAAI,CAAC,YAAY,EAAE,OAAO,CAAC,gCAuB3E;AAED,wBAAsB,kBAAkB,CAAC,EAAE,KAAK,EAAE,MAAM,EAAE,EAAE,IAAI,CAAC,YAAY,EAAE,OAAO,GAAG,QAAQ,CAAC,gBAkBjG;AAED,wBAAgB,kBAAkB,CAAC,KAAK,EAAE,YAAY,CAAC,OAAO,CAAC,IAC/C,kDAMX,IAAI,CAAC,YAAY,EAAE,QAAQ,GAAG,QAAQ,GAAG,OAAO,CAAC,GAAG;IACrD,IAAI,CAAC,EAAE,OAAO,CAAC;I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,cAAc,GACf,EAAE,IAAI,CAAC,YAAY,EAAE,QAAQ,GAAG,QAAQ,CAAC,GAAG;IAC3C,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,IAAI,EAAE,GAAG,CAAC;IACV,cAAc,EAAE,cAAc,CAAC;CAChC,gBAsCA"}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export { executeAgentToolHandler, executeToolHandler, getAgentToolHandler, getToolByIdHandler, getToolsHandler } from '../../chunk-
|
|
1
|
+
export { executeAgentToolHandler, executeToolHandler, getAgentToolHandler, getToolByIdHandler, getToolsHandler } from '../../chunk-KM7EJKXV.js';
|
|
2
2
|
//# sourceMappingURL=tools.js.map
|
|
3
3
|
//# sourceMappingURL=tools.js.map
|
|
@@ -63,7 +63,7 @@ export declare function generateVNextNetworkHandler({ mastra, runtimeContext, ne
|
|
|
63
63
|
task: string;
|
|
64
64
|
result: string;
|
|
65
65
|
resourceId: string;
|
|
66
|
-
resourceType: "none" | "tool" | "
|
|
66
|
+
resourceType: "none" | "tool" | "agent" | "workflow";
|
|
67
67
|
}>;
|
|
68
68
|
export declare function streamGenerateVNextNetworkHandler({ mastra, networkId, body, runtimeContext, }: NetworkContext & {
|
|
69
69
|
runtimeContext: RuntimeContext;
|
|
@@ -75,6 +75,36 @@ export declare function streamGenerateVNextNetworkHandler({ mastra, networkId, b
|
|
|
75
75
|
}): Promise<{
|
|
76
76
|
stream: import("stream/web").ReadableStream<import("@mastra/core").StreamEvent>;
|
|
77
77
|
getWorkflowState: () => Promise<import("@mastra/core").WorkflowResult<import("zod").ZodObject<{
|
|
78
|
+
task: import("zod").ZodString;
|
|
79
|
+
resourceId: import("zod").ZodString;
|
|
80
|
+
resourceType: import("zod").ZodEnum<["agent", "workflow", "none", "tool"]>;
|
|
81
|
+
result: import("zod").ZodOptional<import("zod").ZodString>;
|
|
82
|
+
iteration: import("zod").ZodNumber;
|
|
83
|
+
threadId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
84
|
+
threadResourceId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
85
|
+
isOneOff: import("zod").ZodBoolean;
|
|
86
|
+
verboseIntrospection: import("zod").ZodBoolean;
|
|
87
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
88
|
+
resourceId: string;
|
|
89
|
+
iteration: number;
|
|
90
|
+
task: string;
|
|
91
|
+
resourceType: "none" | "tool" | "agent" | "workflow";
|
|
92
|
+
isOneOff: boolean;
|
|
93
|
+
verboseIntrospection: boolean;
|
|
94
|
+
threadId?: string | undefined;
|
|
95
|
+
result?: string | undefined;
|
|
96
|
+
threadResourceId?: string | undefined;
|
|
97
|
+
}, {
|
|
98
|
+
resourceId: string;
|
|
99
|
+
iteration: number;
|
|
100
|
+
task: string;
|
|
101
|
+
resourceType: "none" | "tool" | "agent" | "workflow";
|
|
102
|
+
isOneOff: boolean;
|
|
103
|
+
verboseIntrospection: boolean;
|
|
104
|
+
threadId?: string | undefined;
|
|
105
|
+
result?: string | undefined;
|
|
106
|
+
threadResourceId?: string | undefined;
|
|
107
|
+
}>, import("zod").ZodObject<{
|
|
78
108
|
task: import("zod").ZodString;
|
|
79
109
|
resourceId: import("zod").ZodString;
|
|
80
110
|
resourceType: import("zod").ZodEnum<["agent", "workflow", "none", "tool"]>;
|
|
@@ -92,7 +122,7 @@ export declare function streamGenerateVNextNetworkHandler({ mastra, networkId, b
|
|
|
92
122
|
prompt: string;
|
|
93
123
|
iteration: number;
|
|
94
124
|
task: string;
|
|
95
|
-
resourceType: "none" | "tool" | "
|
|
125
|
+
resourceType: "none" | "tool" | "agent" | "workflow";
|
|
96
126
|
isOneOff: boolean;
|
|
97
127
|
threadId?: string | undefined;
|
|
98
128
|
threadResourceId?: string | undefined;
|
|
@@ -104,7 +134,7 @@ export declare function streamGenerateVNextNetworkHandler({ mastra, networkId, b
|
|
|
104
134
|
prompt: string;
|
|
105
135
|
iteration: number;
|
|
106
136
|
task: string;
|
|
107
|
-
resourceType: "none" | "tool" | "
|
|
137
|
+
resourceType: "none" | "tool" | "agent" | "workflow";
|
|
108
138
|
isOneOff: boolean;
|
|
109
139
|
threadId?: string | undefined;
|
|
110
140
|
threadResourceId?: string | undefined;
|
|
@@ -125,13 +155,20 @@ export declare function loopVNextNetworkHandler({ mastra, networkId, body, runti
|
|
|
125
155
|
prompt: string;
|
|
126
156
|
iteration: number;
|
|
127
157
|
task: string;
|
|
128
|
-
resourceType: "none" | "tool" | "
|
|
158
|
+
resourceType: "none" | "tool" | "agent" | "workflow";
|
|
129
159
|
isOneOff: boolean;
|
|
130
160
|
threadId?: string | undefined;
|
|
131
161
|
threadResourceId?: string | undefined;
|
|
132
162
|
isComplete?: boolean | undefined;
|
|
133
163
|
completionReason?: string | undefined;
|
|
134
164
|
};
|
|
165
|
+
input: {
|
|
166
|
+
iteration: number;
|
|
167
|
+
task: string;
|
|
168
|
+
resourceType: "none" | "tool" | "agent" | "workflow";
|
|
169
|
+
threadId?: string | undefined;
|
|
170
|
+
threadResourceId?: string | undefined;
|
|
171
|
+
};
|
|
135
172
|
steps: {
|
|
136
173
|
[x: string]: import("@mastra/core").StepResult<unknown, unknown, unknown, unknown> | import("@mastra/core").StepResult<any, any, any, any>;
|
|
137
174
|
};
|
|
@@ -147,6 +184,36 @@ export declare function loopStreamVNextNetworkHandler({ mastra, networkId, body,
|
|
|
147
184
|
}): Promise<{
|
|
148
185
|
stream: import("stream/web").ReadableStream<import("@mastra/core").StreamEvent>;
|
|
149
186
|
getWorkflowState: () => Promise<import("@mastra/core").WorkflowResult<import("zod").ZodObject<{
|
|
187
|
+
iteration: import("zod").ZodNumber;
|
|
188
|
+
task: import("zod").ZodString;
|
|
189
|
+
resourceId: import("zod").ZodString;
|
|
190
|
+
resourceType: import("zod").ZodEnum<["agent", "workflow", "none", "tool"]>;
|
|
191
|
+
result: import("zod").ZodOptional<import("zod").ZodString>;
|
|
192
|
+
threadId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
193
|
+
threadResourceId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
194
|
+
isOneOff: import("zod").ZodBoolean;
|
|
195
|
+
verboseIntrospection: import("zod").ZodBoolean;
|
|
196
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
197
|
+
resourceId: string;
|
|
198
|
+
iteration: number;
|
|
199
|
+
task: string;
|
|
200
|
+
resourceType: "none" | "tool" | "agent" | "workflow";
|
|
201
|
+
isOneOff: boolean;
|
|
202
|
+
verboseIntrospection: boolean;
|
|
203
|
+
threadId?: string | undefined;
|
|
204
|
+
result?: string | undefined;
|
|
205
|
+
threadResourceId?: string | undefined;
|
|
206
|
+
}, {
|
|
207
|
+
resourceId: string;
|
|
208
|
+
iteration: number;
|
|
209
|
+
task: string;
|
|
210
|
+
resourceType: "none" | "tool" | "agent" | "workflow";
|
|
211
|
+
isOneOff: boolean;
|
|
212
|
+
verboseIntrospection: boolean;
|
|
213
|
+
threadId?: string | undefined;
|
|
214
|
+
result?: string | undefined;
|
|
215
|
+
threadResourceId?: string | undefined;
|
|
216
|
+
}>, import("zod").ZodObject<{
|
|
150
217
|
task: import("zod").ZodString;
|
|
151
218
|
resourceId: import("zod").ZodString;
|
|
152
219
|
resourceType: import("zod").ZodEnum<["agent", "workflow", "none", "tool"]>;
|
|
@@ -161,7 +228,7 @@ export declare function loopStreamVNextNetworkHandler({ mastra, networkId, body,
|
|
|
161
228
|
prompt: string;
|
|
162
229
|
iteration: number;
|
|
163
230
|
task: string;
|
|
164
|
-
resourceType: "none" | "tool" | "
|
|
231
|
+
resourceType: "none" | "tool" | "agent" | "workflow";
|
|
165
232
|
isComplete?: boolean | undefined;
|
|
166
233
|
completionReason?: string | undefined;
|
|
167
234
|
}, {
|
|
@@ -170,7 +237,7 @@ export declare function loopStreamVNextNetworkHandler({ mastra, networkId, body,
|
|
|
170
237
|
prompt: string;
|
|
171
238
|
iteration: number;
|
|
172
239
|
task: string;
|
|
173
|
-
resourceType: "none" | "tool" | "
|
|
240
|
+
resourceType: "none" | "tool" | "agent" | "workflow";
|
|
174
241
|
isComplete?: boolean | undefined;
|
|
175
242
|
completionReason?: string | undefined;
|
|
176
243
|
}>, import("@mastra/core").Step<string, any, any, any, any, import("@mastra/core").DefaultEngineType>[]>>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"vNextNetwork.d.ts","sourceRoot":"","sources":["../../../src/server/handlers/vNextNetwork.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,8BAA8B,CAAC;AAInE,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,UAAU,CAAC;AAIxC,UAAU,cAAe,SAAQ,OAAO;IACtC,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,cAAc,EAAE,cAAc,CAAC;CAChC;AAED,wBAAsB,uBAAuB,CAAC,EAC5C,MAAM,EACN,cAAc,GACf,EAAE,IAAI,CAAC,cAAc,EAAE,QAAQ,GAAG,gBAAgB,CAAC;;;;;;;;;;;;;;;;;;;;;;;KAwDnD;AAED,wBAAsB,0BAA0B,CAAC,EAC/C,MAAM,EACN,SAAS,EACT,cAAc,GACf,EAAE,IAAI,CAAC,cAAc,EAAE,QAAQ,GAAG,WAAW,GAAG,gBAAgB,CAAC;;;;;;;;;;;;;;;;;;;;;;;GAwDjE;AAED,wBAAsB,2BAA2B,CAAC,EAChD,MAAM,EACN,cAAc,EACd,SAAS,EACT,IAAI,GACL,EAAE,cAAc,GAAG;IAClB,cAAc,EAAE,cAAc,CAAC;IAC/B,IAAI,EAAE;QAAE,OAAO,EAAE,MAAM,CAAC;QAAC,QAAQ,CAAC,EAAE,MAAM,CAAC;QAAC,UAAU,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC;CACnE;;;;;GAiBA;AAED,wBAAsB,iCAAiC,CAAC,EACtD,MAAM,EACN,SAAS,EACT,IAAI,EACJ,cAAc,GACf,EAAE,cAAc,GAAG;IAClB,cAAc,EAAE,cAAc,CAAC;IAC/B,IAAI,EAAE;QAAE,OAAO,EAAE,MAAM,C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LWACBE7_cjs = require('../../chunk-NLWACBE7.cjs');
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
Object.defineProperty(exports, "generateSpeechHandler", {
|
|
8
8
|
enumerable: true,
|
|
9
|
-
get: function () { return
|
|
9
|
+
get: function () { return chunkNLWACBE7_cjs.generateSpeechHandler; }
|
|
10
10
|
});
|
|
11
11
|
Object.defineProperty(exports, "getListenerHandler", {
|
|
12
12
|
enumerable: true,
|
|
13
|
-
get: function () { return
|
|
13
|
+
get: function () { return chunkNLWACBE7_cjs.getListenerHandler; }
|
|
14
14
|
});
|
|
15
15
|
Object.defineProperty(exports, "getSpeakersHandler", {
|
|
16
16
|
enumerable: true,
|
|
17
|
-
get: function () { return
|
|
17
|
+
get: function () { return chunkNLWACBE7_cjs.getSpeakersHandler; }
|
|
18
18
|
});
|
|
19
19
|
Object.defineProperty(exports, "transcribeSpeechHandler", {
|
|
20
20
|
enumerable: true,
|
|
21
|
-
get: function () { return
|
|
21
|
+
get: function () { return chunkNLWACBE7_cjs.transcribeSpeechHandler; }
|
|
22
22
|
});
|
|
23
23
|
//# sourceMappingURL=voice.cjs.map
|
|
24
24
|
//# sourceMappingURL=voice.cjs.map
|
|
@@ -1,18 +1,20 @@
|
|
|
1
1
|
import type { Agent } from '@mastra/core/agent';
|
|
2
|
+
import type { RuntimeContext } from '@mastra/core/runtime-context';
|
|
2
3
|
import type { Context } from '../types.js';
|
|
3
4
|
interface VoiceContext extends Context {
|
|
4
5
|
agentId?: string;
|
|
6
|
+
runtimeContext?: RuntimeContext;
|
|
5
7
|
}
|
|
6
8
|
/**
|
|
7
9
|
* Get available speakers for an agent
|
|
8
10
|
*/
|
|
9
|
-
export declare function getSpeakersHandler({ mastra, agentId }: VoiceContext): Promise<{
|
|
11
|
+
export declare function getSpeakersHandler({ mastra, agentId, runtimeContext }: VoiceContext): Promise<{
|
|
10
12
|
voiceId: string;
|
|
11
13
|
}[]>;
|
|
12
14
|
/**
|
|
13
15
|
* Generate speech from text
|
|
14
16
|
*/
|
|
15
|
-
export declare function generateSpeechHandler({ mastra, agentId, body, }: VoiceContext & {
|
|
17
|
+
export declare function generateSpeechHandler({ mastra, agentId, body, runtimeContext, }: VoiceContext & {
|
|
16
18
|
body?: {
|
|
17
19
|
text?: string;
|
|
18
20
|
speakerId?: string;
|
|
@@ -21,7 +23,7 @@ export declare function generateSpeechHandler({ mastra, agentId, body, }: VoiceC
|
|
|
21
23
|
/**
|
|
22
24
|
* Transcribe speech to text
|
|
23
25
|
*/
|
|
24
|
-
export declare function transcribeSpeechHandler({ mastra, agentId, body, }: VoiceContext & {
|
|
26
|
+
export declare function transcribeSpeechHandler({ mastra, agentId, body, runtimeContext, }: VoiceContext & {
|
|
25
27
|
body?: {
|
|
26
28
|
audioData?: Buffer;
|
|
27
29
|
options?: Parameters<NonNullable<Agent['voice']>['listen']>[1];
|
|
@@ -32,7 +34,7 @@ export declare function transcribeSpeechHandler({ mastra, agentId, body, }: Voic
|
|
|
32
34
|
/**
|
|
33
35
|
* Get available listeners for an agent
|
|
34
36
|
*/
|
|
35
|
-
export declare function getListenerHandler({ mastra, agentId }: VoiceContext): Promise<{
|
|
37
|
+
export declare function getListenerHandler({ mastra, agentId, runtimeContext }: VoiceContext): Promise<{
|
|
36
38
|
enabled: boolean;
|
|
37
39
|
}>;
|
|
38
40
|
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"voice.d.ts","sourceRoot":"","sources":["../../../src/server/handlers/voice.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,oBAAoB,CAAC;AAEhD,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,UAAU,CAAC;AAKxC,UAAU,YAAa,SAAQ,OAAO;IACpC,OAAO,CAAC,EAAE,MAAM,CAAC;
|
|
1
|
+
{"version":3,"file":"voice.d.ts","sourceRoot":"","sources":["../../../src/server/handlers/voice.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,oBAAoB,CAAC;AAEhD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,8BAA8B,CAAC;AAEnE,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,UAAU,CAAC;AAKxC,UAAU,YAAa,SAAQ,OAAO;IACpC,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,cAAc,CAAC,EAAE,cAAc,CAAC;CACjC;AAED;;GAEG;AACH,wBAAsB,kBAAkB,CAAC,EAAE,MAAM,EAAE,OAAO,EAAE,cAAc,EAAE,EAAE,YAAY;;KAuBzF;AAED;;GAEG;AACH,wBAAsB,qBAAqB,CAAC,EAC1C,MAAM,EACN,OAAO,EACP,IAAI,EACJ,cAAc,GACf,EAAE,YAAY,GAAG;IAChB,IAAI,CAAC,EAAE;QACL,IAAI,CAAC,EAAE,MAAM,CAAC;QACd,SAAS,CAAC,EAAE,MAAM,CAAC;KACpB,CAAC;CACH,kCAwCA;AAED;;GAEG;AACH,wBAAsB,uBAAuB,CAAC,EAC5C,MAAM,EACN,OAAO,EACP,IAAI,EACJ,cAAc,GACf,EAAE,YAAY,GAAG;IAChB,IAAI,CAAC,EAAE;QACL,SAAS,CAAC,EAAE,MAAM,CAAC;QACnB,OAAO,CAAC,EAAE,UAAU,CAAC,WAAW,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;KAChE,CAAC;CACH;;GA+BA;AAED;;GAEG;AACH,wBAAsB,kBAAkB,CAAC,EAAE,MAAM,EAAE,OAAO,EAAE,cAAc,EAAE,EAAE,YAAY;;GAuBzF"}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export { generateSpeechHandler, getListenerHandler, getSpeakersHandler, transcribeSpeechHandler } from '../../chunk-
|
|
1
|
+
export { generateSpeechHandler, getListenerHandler, getSpeakersHandler, transcribeSpeechHandler } from '../../chunk-JRDEOHAJ.js';
|
|
2
2
|
//# sourceMappingURL=voice.js.map
|
|
3
3
|
//# sourceMappingURL=voice.js.map
|
|
@@ -1,68 +1,76 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunk57HWW2TY_cjs = require('../../chunk-57HWW2TY.cjs');
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
Object.defineProperty(exports, "cancelWorkflowRunHandler", {
|
|
8
8
|
enumerable: true,
|
|
9
|
-
get: function () { return
|
|
9
|
+
get: function () { return chunk57HWW2TY_cjs.cancelWorkflowRunHandler; }
|
|
10
10
|
});
|
|
11
11
|
Object.defineProperty(exports, "createWorkflowRunHandler", {
|
|
12
12
|
enumerable: true,
|
|
13
|
-
get: function () { return
|
|
13
|
+
get: function () { return chunk57HWW2TY_cjs.createWorkflowRunHandler; }
|
|
14
14
|
});
|
|
15
15
|
Object.defineProperty(exports, "getWorkflowByIdHandler", {
|
|
16
16
|
enumerable: true,
|
|
17
|
-
get: function () { return
|
|
17
|
+
get: function () { return chunk57HWW2TY_cjs.getWorkflowByIdHandler; }
|
|
18
18
|
});
|
|
19
19
|
Object.defineProperty(exports, "getWorkflowRunByIdHandler", {
|
|
20
20
|
enumerable: true,
|
|
21
|
-
get: function () { return
|
|
21
|
+
get: function () { return chunk57HWW2TY_cjs.getWorkflowRunByIdHandler; }
|
|
22
22
|
});
|
|
23
23
|
Object.defineProperty(exports, "getWorkflowRunExecutionResultHandler", {
|
|
24
24
|
enumerable: true,
|
|
25
|
-
get: function () { return
|
|
25
|
+
get: function () { return chunk57HWW2TY_cjs.getWorkflowRunExecutionResultHandler; }
|
|
26
26
|
});
|
|
27
27
|
Object.defineProperty(exports, "getWorkflowRunsHandler", {
|
|
28
28
|
enumerable: true,
|
|
29
|
-
get: function () { return
|
|
29
|
+
get: function () { return chunk57HWW2TY_cjs.getWorkflowRunsHandler; }
|
|
30
30
|
});
|
|
31
31
|
Object.defineProperty(exports, "getWorkflowsHandler", {
|
|
32
32
|
enumerable: true,
|
|
33
|
-
get: function () { return
|
|
33
|
+
get: function () { return chunk57HWW2TY_cjs.getWorkflowsHandler; }
|
|
34
|
+
});
|
|
35
|
+
Object.defineProperty(exports, "observeStreamWorkflowHandler", {
|
|
36
|
+
enumerable: true,
|
|
37
|
+
get: function () { return chunk57HWW2TY_cjs.observeStreamWorkflowHandler; }
|
|
34
38
|
});
|
|
35
39
|
Object.defineProperty(exports, "resumeAsyncWorkflowHandler", {
|
|
36
40
|
enumerable: true,
|
|
37
|
-
get: function () { return
|
|
41
|
+
get: function () { return chunk57HWW2TY_cjs.resumeAsyncWorkflowHandler; }
|
|
42
|
+
});
|
|
43
|
+
Object.defineProperty(exports, "resumeStreamWorkflowHandler", {
|
|
44
|
+
enumerable: true,
|
|
45
|
+
get: function () { return chunk57HWW2TY_cjs.resumeStreamWorkflowHandler; }
|
|
38
46
|
});
|
|
39
47
|
Object.defineProperty(exports, "resumeWorkflowHandler", {
|
|
40
48
|
enumerable: true,
|
|
41
|
-
get: function () { return
|
|
49
|
+
get: function () { return chunk57HWW2TY_cjs.resumeWorkflowHandler; }
|
|
42
50
|
});
|
|
43
51
|
Object.defineProperty(exports, "sendWorkflowRunEventHandler", {
|
|
44
52
|
enumerable: true,
|
|
45
|
-
get: function () { return
|
|
53
|
+
get: function () { return chunk57HWW2TY_cjs.sendWorkflowRunEventHandler; }
|
|
46
54
|
});
|
|
47
55
|
Object.defineProperty(exports, "startAsyncWorkflowHandler", {
|
|
48
56
|
enumerable: true,
|
|
49
|
-
get: function () { return
|
|
57
|
+
get: function () { return chunk57HWW2TY_cjs.startAsyncWorkflowHandler; }
|
|
50
58
|
});
|
|
51
59
|
Object.defineProperty(exports, "startWorkflowRunHandler", {
|
|
52
60
|
enumerable: true,
|
|
53
|
-
get: function () { return
|
|
61
|
+
get: function () { return chunk57HWW2TY_cjs.startWorkflowRunHandler; }
|
|
54
62
|
});
|
|
55
63
|
Object.defineProperty(exports, "streamVNextWorkflowHandler", {
|
|
56
64
|
enumerable: true,
|
|
57
|
-
get: function () { return
|
|
65
|
+
get: function () { return chunk57HWW2TY_cjs.streamVNextWorkflowHandler; }
|
|
58
66
|
});
|
|
59
67
|
Object.defineProperty(exports, "streamWorkflowHandler", {
|
|
60
68
|
enumerable: true,
|
|
61
|
-
get: function () { return
|
|
69
|
+
get: function () { return chunk57HWW2TY_cjs.streamWorkflowHandler; }
|
|
62
70
|
});
|
|
63
71
|
Object.defineProperty(exports, "watchWorkflowHandler", {
|
|
64
72
|
enumerable: true,
|
|
65
|
-
get: function () { return
|
|
73
|
+
get: function () { return chunk57HWW2TY_cjs.watchWorkflowHandler; }
|
|
66
74
|
});
|
|
67
75
|
//# sourceMappingURL=workflows.cjs.map
|
|
68
76
|
//# sourceMappingURL=workflows.cjs.map
|