ue-mcp 1.2.0 → 1.2.2
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/flow/guard.d.ts +26 -37
- package/dist/flow/guard.js +40 -25
- package/dist/flow/guard.js.map +1 -1
- package/dist/flow/guarded-bridge.d.ts +0 -10
- package/dist/flow/guarded-bridge.js +18 -23
- package/dist/flow/guarded-bridge.js.map +1 -1
- package/dist/flow/schema.d.ts +276 -16
- package/dist/flow/task-guards.d.ts +1 -1
- package/dist/flow/task-guards.js +44 -68
- package/dist/flow/task-guards.js.map +1 -1
- package/dist/tool-counts.json +2 -2
- package/package.json +7 -4
- package/plugin/ue_mcp_bridge/Source/UE_MCP_Bridge/Private/Handlers/AssetHandlers.cpp +10 -32
- package/plugin/ue_mcp_bridge/Source/UE_MCP_Bridge/Private/Handlers/AssetHandlers_BulkProperties.cpp +1 -21
- package/plugin/ue_mcp_bridge/Source/UE_MCP_Bridge/Private/Handlers/AssetHandlers_BulkUpsert.cpp +3 -18
- package/plugin/ue_mcp_bridge/Source/UE_MCP_Bridge/Private/Handlers/AssetHandlers_Mesh.cpp +1 -19
- package/plugin/ue_mcp_bridge/Source/UE_MCP_Bridge/Public/HandlerUtils.h +30 -0
package/dist/flow/schema.d.ts
CHANGED
|
@@ -106,7 +106,7 @@ export declare const PluginEntrySchema: z.ZodObject<{
|
|
|
106
106
|
export type PluginEntry = z.infer<typeof PluginEntrySchema>;
|
|
107
107
|
export declare const FlowConfigSchema: z.ZodObject<{
|
|
108
108
|
tasks: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
109
|
-
class_path: z.ZodString
|
|
109
|
+
class_path: z.ZodOptional<z.ZodString>;
|
|
110
110
|
description: z.ZodOptional<z.ZodString>;
|
|
111
111
|
group: z.ZodOptional<z.ZodString>;
|
|
112
112
|
options: z.ZodDefault<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
@@ -114,28 +114,30 @@ export declare const FlowConfigSchema: z.ZodObject<{
|
|
|
114
114
|
reversible: z.ZodOptional<z.ZodBoolean>;
|
|
115
115
|
}, "strip", z.ZodTypeAny, {
|
|
116
116
|
options: Record<string, unknown>;
|
|
117
|
-
class_path
|
|
117
|
+
class_path?: string | undefined;
|
|
118
118
|
description?: string | undefined;
|
|
119
119
|
group?: string | undefined;
|
|
120
120
|
idempotent?: boolean | undefined;
|
|
121
121
|
reversible?: boolean | undefined;
|
|
122
122
|
}, {
|
|
123
|
-
class_path: string;
|
|
124
123
|
options?: Record<string, unknown> | undefined;
|
|
124
|
+
class_path?: string | undefined;
|
|
125
125
|
description?: string | undefined;
|
|
126
126
|
group?: string | undefined;
|
|
127
127
|
idempotent?: boolean | undefined;
|
|
128
128
|
reversible?: boolean | undefined;
|
|
129
129
|
}>>>;
|
|
130
130
|
flows: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
131
|
-
description: z.ZodString
|
|
132
|
-
steps: z.ZodRecord<z.ZodString, z.ZodEffects<z.ZodObject<{
|
|
131
|
+
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
132
|
+
steps: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodEffects<z.ZodObject<{
|
|
133
133
|
task: z.ZodOptional<z.ZodString>;
|
|
134
134
|
flow: z.ZodOptional<z.ZodString>;
|
|
135
135
|
options: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
136
136
|
retries: z.ZodOptional<z.ZodNumber>;
|
|
137
137
|
retryDelay: z.ZodOptional<z.ZodNumber>;
|
|
138
138
|
retryOn: z.ZodOptional<z.ZodString>;
|
|
139
|
+
when: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodBoolean]>>;
|
|
140
|
+
ignore_failure: z.ZodOptional<z.ZodBoolean>;
|
|
139
141
|
}, "strip", z.ZodTypeAny, {
|
|
140
142
|
options?: Record<string, unknown> | undefined;
|
|
141
143
|
task?: string | undefined;
|
|
@@ -143,6 +145,8 @@ export declare const FlowConfigSchema: z.ZodObject<{
|
|
|
143
145
|
retries?: number | undefined;
|
|
144
146
|
retryDelay?: number | undefined;
|
|
145
147
|
retryOn?: string | undefined;
|
|
148
|
+
when?: string | boolean | undefined;
|
|
149
|
+
ignore_failure?: boolean | undefined;
|
|
146
150
|
}, {
|
|
147
151
|
options?: Record<string, unknown> | undefined;
|
|
148
152
|
task?: string | undefined;
|
|
@@ -150,6 +154,8 @@ export declare const FlowConfigSchema: z.ZodObject<{
|
|
|
150
154
|
retries?: number | undefined;
|
|
151
155
|
retryDelay?: number | undefined;
|
|
152
156
|
retryOn?: string | undefined;
|
|
157
|
+
when?: string | boolean | undefined;
|
|
158
|
+
ignore_failure?: boolean | undefined;
|
|
153
159
|
}>, {
|
|
154
160
|
options?: Record<string, unknown> | undefined;
|
|
155
161
|
task?: string | undefined;
|
|
@@ -157,6 +163,8 @@ export declare const FlowConfigSchema: z.ZodObject<{
|
|
|
157
163
|
retries?: number | undefined;
|
|
158
164
|
retryDelay?: number | undefined;
|
|
159
165
|
retryOn?: string | undefined;
|
|
166
|
+
when?: string | boolean | undefined;
|
|
167
|
+
ignore_failure?: boolean | undefined;
|
|
160
168
|
}, {
|
|
161
169
|
options?: Record<string, unknown> | undefined;
|
|
162
170
|
task?: string | undefined;
|
|
@@ -164,7 +172,9 @@ export declare const FlowConfigSchema: z.ZodObject<{
|
|
|
164
172
|
retries?: number | undefined;
|
|
165
173
|
retryDelay?: number | undefined;
|
|
166
174
|
retryOn?: string | undefined;
|
|
167
|
-
|
|
175
|
+
when?: string | boolean | undefined;
|
|
176
|
+
ignore_failure?: boolean | undefined;
|
|
177
|
+
}>>>;
|
|
168
178
|
on_start: z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodObject<{
|
|
169
179
|
task: z.ZodOptional<z.ZodString>;
|
|
170
180
|
flow: z.ZodOptional<z.ZodString>;
|
|
@@ -172,6 +182,8 @@ export declare const FlowConfigSchema: z.ZodObject<{
|
|
|
172
182
|
retries: z.ZodOptional<z.ZodNumber>;
|
|
173
183
|
retryDelay: z.ZodOptional<z.ZodNumber>;
|
|
174
184
|
retryOn: z.ZodOptional<z.ZodString>;
|
|
185
|
+
when: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodBoolean]>>;
|
|
186
|
+
ignore_failure: z.ZodOptional<z.ZodBoolean>;
|
|
175
187
|
}, "strip", z.ZodTypeAny, {
|
|
176
188
|
options?: Record<string, unknown> | undefined;
|
|
177
189
|
task?: string | undefined;
|
|
@@ -179,6 +191,8 @@ export declare const FlowConfigSchema: z.ZodObject<{
|
|
|
179
191
|
retries?: number | undefined;
|
|
180
192
|
retryDelay?: number | undefined;
|
|
181
193
|
retryOn?: string | undefined;
|
|
194
|
+
when?: string | boolean | undefined;
|
|
195
|
+
ignore_failure?: boolean | undefined;
|
|
182
196
|
}, {
|
|
183
197
|
options?: Record<string, unknown> | undefined;
|
|
184
198
|
task?: string | undefined;
|
|
@@ -186,6 +200,8 @@ export declare const FlowConfigSchema: z.ZodObject<{
|
|
|
186
200
|
retries?: number | undefined;
|
|
187
201
|
retryDelay?: number | undefined;
|
|
188
202
|
retryOn?: string | undefined;
|
|
203
|
+
when?: string | boolean | undefined;
|
|
204
|
+
ignore_failure?: boolean | undefined;
|
|
189
205
|
}>, {
|
|
190
206
|
options?: Record<string, unknown> | undefined;
|
|
191
207
|
task?: string | undefined;
|
|
@@ -193,6 +209,8 @@ export declare const FlowConfigSchema: z.ZodObject<{
|
|
|
193
209
|
retries?: number | undefined;
|
|
194
210
|
retryDelay?: number | undefined;
|
|
195
211
|
retryOn?: string | undefined;
|
|
212
|
+
when?: string | boolean | undefined;
|
|
213
|
+
ignore_failure?: boolean | undefined;
|
|
196
214
|
}, {
|
|
197
215
|
options?: Record<string, unknown> | undefined;
|
|
198
216
|
task?: string | undefined;
|
|
@@ -200,6 +218,8 @@ export declare const FlowConfigSchema: z.ZodObject<{
|
|
|
200
218
|
retries?: number | undefined;
|
|
201
219
|
retryDelay?: number | undefined;
|
|
202
220
|
retryOn?: string | undefined;
|
|
221
|
+
when?: string | boolean | undefined;
|
|
222
|
+
ignore_failure?: boolean | undefined;
|
|
203
223
|
}>, "many">>;
|
|
204
224
|
on_success: z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodObject<{
|
|
205
225
|
task: z.ZodOptional<z.ZodString>;
|
|
@@ -208,6 +228,8 @@ export declare const FlowConfigSchema: z.ZodObject<{
|
|
|
208
228
|
retries: z.ZodOptional<z.ZodNumber>;
|
|
209
229
|
retryDelay: z.ZodOptional<z.ZodNumber>;
|
|
210
230
|
retryOn: z.ZodOptional<z.ZodString>;
|
|
231
|
+
when: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodBoolean]>>;
|
|
232
|
+
ignore_failure: z.ZodOptional<z.ZodBoolean>;
|
|
211
233
|
}, "strip", z.ZodTypeAny, {
|
|
212
234
|
options?: Record<string, unknown> | undefined;
|
|
213
235
|
task?: string | undefined;
|
|
@@ -215,6 +237,8 @@ export declare const FlowConfigSchema: z.ZodObject<{
|
|
|
215
237
|
retries?: number | undefined;
|
|
216
238
|
retryDelay?: number | undefined;
|
|
217
239
|
retryOn?: string | undefined;
|
|
240
|
+
when?: string | boolean | undefined;
|
|
241
|
+
ignore_failure?: boolean | undefined;
|
|
218
242
|
}, {
|
|
219
243
|
options?: Record<string, unknown> | undefined;
|
|
220
244
|
task?: string | undefined;
|
|
@@ -222,6 +246,8 @@ export declare const FlowConfigSchema: z.ZodObject<{
|
|
|
222
246
|
retries?: number | undefined;
|
|
223
247
|
retryDelay?: number | undefined;
|
|
224
248
|
retryOn?: string | undefined;
|
|
249
|
+
when?: string | boolean | undefined;
|
|
250
|
+
ignore_failure?: boolean | undefined;
|
|
225
251
|
}>, {
|
|
226
252
|
options?: Record<string, unknown> | undefined;
|
|
227
253
|
task?: string | undefined;
|
|
@@ -229,6 +255,8 @@ export declare const FlowConfigSchema: z.ZodObject<{
|
|
|
229
255
|
retries?: number | undefined;
|
|
230
256
|
retryDelay?: number | undefined;
|
|
231
257
|
retryOn?: string | undefined;
|
|
258
|
+
when?: string | boolean | undefined;
|
|
259
|
+
ignore_failure?: boolean | undefined;
|
|
232
260
|
}, {
|
|
233
261
|
options?: Record<string, unknown> | undefined;
|
|
234
262
|
task?: string | undefined;
|
|
@@ -236,6 +264,8 @@ export declare const FlowConfigSchema: z.ZodObject<{
|
|
|
236
264
|
retries?: number | undefined;
|
|
237
265
|
retryDelay?: number | undefined;
|
|
238
266
|
retryOn?: string | undefined;
|
|
267
|
+
when?: string | boolean | undefined;
|
|
268
|
+
ignore_failure?: boolean | undefined;
|
|
239
269
|
}>, "many">>;
|
|
240
270
|
on_failure: z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodObject<{
|
|
241
271
|
task: z.ZodOptional<z.ZodString>;
|
|
@@ -244,6 +274,8 @@ export declare const FlowConfigSchema: z.ZodObject<{
|
|
|
244
274
|
retries: z.ZodOptional<z.ZodNumber>;
|
|
245
275
|
retryDelay: z.ZodOptional<z.ZodNumber>;
|
|
246
276
|
retryOn: z.ZodOptional<z.ZodString>;
|
|
277
|
+
when: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodBoolean]>>;
|
|
278
|
+
ignore_failure: z.ZodOptional<z.ZodBoolean>;
|
|
247
279
|
}, "strip", z.ZodTypeAny, {
|
|
248
280
|
options?: Record<string, unknown> | undefined;
|
|
249
281
|
task?: string | undefined;
|
|
@@ -251,6 +283,8 @@ export declare const FlowConfigSchema: z.ZodObject<{
|
|
|
251
283
|
retries?: number | undefined;
|
|
252
284
|
retryDelay?: number | undefined;
|
|
253
285
|
retryOn?: string | undefined;
|
|
286
|
+
when?: string | boolean | undefined;
|
|
287
|
+
ignore_failure?: boolean | undefined;
|
|
254
288
|
}, {
|
|
255
289
|
options?: Record<string, unknown> | undefined;
|
|
256
290
|
task?: string | undefined;
|
|
@@ -258,6 +292,8 @@ export declare const FlowConfigSchema: z.ZodObject<{
|
|
|
258
292
|
retries?: number | undefined;
|
|
259
293
|
retryDelay?: number | undefined;
|
|
260
294
|
retryOn?: string | undefined;
|
|
295
|
+
when?: string | boolean | undefined;
|
|
296
|
+
ignore_failure?: boolean | undefined;
|
|
261
297
|
}>, {
|
|
262
298
|
options?: Record<string, unknown> | undefined;
|
|
263
299
|
task?: string | undefined;
|
|
@@ -265,6 +301,8 @@ export declare const FlowConfigSchema: z.ZodObject<{
|
|
|
265
301
|
retries?: number | undefined;
|
|
266
302
|
retryDelay?: number | undefined;
|
|
267
303
|
retryOn?: string | undefined;
|
|
304
|
+
when?: string | boolean | undefined;
|
|
305
|
+
ignore_failure?: boolean | undefined;
|
|
268
306
|
}, {
|
|
269
307
|
options?: Record<string, unknown> | undefined;
|
|
270
308
|
task?: string | undefined;
|
|
@@ -272,6 +310,8 @@ export declare const FlowConfigSchema: z.ZodObject<{
|
|
|
272
310
|
retries?: number | undefined;
|
|
273
311
|
retryDelay?: number | undefined;
|
|
274
312
|
retryOn?: string | undefined;
|
|
313
|
+
when?: string | boolean | undefined;
|
|
314
|
+
ignore_failure?: boolean | undefined;
|
|
275
315
|
}>, "many">>;
|
|
276
316
|
finally: z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodObject<{
|
|
277
317
|
task: z.ZodOptional<z.ZodString>;
|
|
@@ -280,6 +320,8 @@ export declare const FlowConfigSchema: z.ZodObject<{
|
|
|
280
320
|
retries: z.ZodOptional<z.ZodNumber>;
|
|
281
321
|
retryDelay: z.ZodOptional<z.ZodNumber>;
|
|
282
322
|
retryOn: z.ZodOptional<z.ZodString>;
|
|
323
|
+
when: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodBoolean]>>;
|
|
324
|
+
ignore_failure: z.ZodOptional<z.ZodBoolean>;
|
|
283
325
|
}, "strip", z.ZodTypeAny, {
|
|
284
326
|
options?: Record<string, unknown> | undefined;
|
|
285
327
|
task?: string | undefined;
|
|
@@ -287,6 +329,8 @@ export declare const FlowConfigSchema: z.ZodObject<{
|
|
|
287
329
|
retries?: number | undefined;
|
|
288
330
|
retryDelay?: number | undefined;
|
|
289
331
|
retryOn?: string | undefined;
|
|
332
|
+
when?: string | boolean | undefined;
|
|
333
|
+
ignore_failure?: boolean | undefined;
|
|
290
334
|
}, {
|
|
291
335
|
options?: Record<string, unknown> | undefined;
|
|
292
336
|
task?: string | undefined;
|
|
@@ -294,6 +338,8 @@ export declare const FlowConfigSchema: z.ZodObject<{
|
|
|
294
338
|
retries?: number | undefined;
|
|
295
339
|
retryDelay?: number | undefined;
|
|
296
340
|
retryOn?: string | undefined;
|
|
341
|
+
when?: string | boolean | undefined;
|
|
342
|
+
ignore_failure?: boolean | undefined;
|
|
297
343
|
}>, {
|
|
298
344
|
options?: Record<string, unknown> | undefined;
|
|
299
345
|
task?: string | undefined;
|
|
@@ -301,6 +347,8 @@ export declare const FlowConfigSchema: z.ZodObject<{
|
|
|
301
347
|
retries?: number | undefined;
|
|
302
348
|
retryDelay?: number | undefined;
|
|
303
349
|
retryOn?: string | undefined;
|
|
350
|
+
when?: string | boolean | undefined;
|
|
351
|
+
ignore_failure?: boolean | undefined;
|
|
304
352
|
}, {
|
|
305
353
|
options?: Record<string, unknown> | undefined;
|
|
306
354
|
task?: string | undefined;
|
|
@@ -308,10 +356,11 @@ export declare const FlowConfigSchema: z.ZodObject<{
|
|
|
308
356
|
retries?: number | undefined;
|
|
309
357
|
retryDelay?: number | undefined;
|
|
310
358
|
retryOn?: string | undefined;
|
|
359
|
+
when?: string | boolean | undefined;
|
|
360
|
+
ignore_failure?: boolean | undefined;
|
|
311
361
|
}>, "many">>;
|
|
312
362
|
rollback_on_failure: z.ZodOptional<z.ZodBoolean>;
|
|
313
363
|
}, "strip", z.ZodTypeAny, {
|
|
314
|
-
description: string;
|
|
315
364
|
steps: Record<string, {
|
|
316
365
|
options?: Record<string, unknown> | undefined;
|
|
317
366
|
task?: string | undefined;
|
|
@@ -319,7 +368,10 @@ export declare const FlowConfigSchema: z.ZodObject<{
|
|
|
319
368
|
retries?: number | undefined;
|
|
320
369
|
retryDelay?: number | undefined;
|
|
321
370
|
retryOn?: string | undefined;
|
|
371
|
+
when?: string | boolean | undefined;
|
|
372
|
+
ignore_failure?: boolean | undefined;
|
|
322
373
|
}>;
|
|
374
|
+
description?: string | null | undefined;
|
|
323
375
|
on_start?: {
|
|
324
376
|
options?: Record<string, unknown> | undefined;
|
|
325
377
|
task?: string | undefined;
|
|
@@ -327,6 +379,8 @@ export declare const FlowConfigSchema: z.ZodObject<{
|
|
|
327
379
|
retries?: number | undefined;
|
|
328
380
|
retryDelay?: number | undefined;
|
|
329
381
|
retryOn?: string | undefined;
|
|
382
|
+
when?: string | boolean | undefined;
|
|
383
|
+
ignore_failure?: boolean | undefined;
|
|
330
384
|
}[] | undefined;
|
|
331
385
|
on_success?: {
|
|
332
386
|
options?: Record<string, unknown> | undefined;
|
|
@@ -335,6 +389,8 @@ export declare const FlowConfigSchema: z.ZodObject<{
|
|
|
335
389
|
retries?: number | undefined;
|
|
336
390
|
retryDelay?: number | undefined;
|
|
337
391
|
retryOn?: string | undefined;
|
|
392
|
+
when?: string | boolean | undefined;
|
|
393
|
+
ignore_failure?: boolean | undefined;
|
|
338
394
|
}[] | undefined;
|
|
339
395
|
on_failure?: {
|
|
340
396
|
options?: Record<string, unknown> | undefined;
|
|
@@ -343,6 +399,8 @@ export declare const FlowConfigSchema: z.ZodObject<{
|
|
|
343
399
|
retries?: number | undefined;
|
|
344
400
|
retryDelay?: number | undefined;
|
|
345
401
|
retryOn?: string | undefined;
|
|
402
|
+
when?: string | boolean | undefined;
|
|
403
|
+
ignore_failure?: boolean | undefined;
|
|
346
404
|
}[] | undefined;
|
|
347
405
|
finally?: {
|
|
348
406
|
options?: Record<string, unknown> | undefined;
|
|
@@ -351,18 +409,22 @@ export declare const FlowConfigSchema: z.ZodObject<{
|
|
|
351
409
|
retries?: number | undefined;
|
|
352
410
|
retryDelay?: number | undefined;
|
|
353
411
|
retryOn?: string | undefined;
|
|
412
|
+
when?: string | boolean | undefined;
|
|
413
|
+
ignore_failure?: boolean | undefined;
|
|
354
414
|
}[] | undefined;
|
|
355
415
|
rollback_on_failure?: boolean | undefined;
|
|
356
416
|
}, {
|
|
357
|
-
description
|
|
358
|
-
steps
|
|
417
|
+
description?: string | null | undefined;
|
|
418
|
+
steps?: Record<string, {
|
|
359
419
|
options?: Record<string, unknown> | undefined;
|
|
360
420
|
task?: string | undefined;
|
|
361
421
|
flow?: string | undefined;
|
|
362
422
|
retries?: number | undefined;
|
|
363
423
|
retryDelay?: number | undefined;
|
|
364
424
|
retryOn?: string | undefined;
|
|
365
|
-
|
|
425
|
+
when?: string | boolean | undefined;
|
|
426
|
+
ignore_failure?: boolean | undefined;
|
|
427
|
+
}> | undefined;
|
|
366
428
|
on_start?: {
|
|
367
429
|
options?: Record<string, unknown> | undefined;
|
|
368
430
|
task?: string | undefined;
|
|
@@ -370,6 +432,8 @@ export declare const FlowConfigSchema: z.ZodObject<{
|
|
|
370
432
|
retries?: number | undefined;
|
|
371
433
|
retryDelay?: number | undefined;
|
|
372
434
|
retryOn?: string | undefined;
|
|
435
|
+
when?: string | boolean | undefined;
|
|
436
|
+
ignore_failure?: boolean | undefined;
|
|
373
437
|
}[] | undefined;
|
|
374
438
|
on_success?: {
|
|
375
439
|
options?: Record<string, unknown> | undefined;
|
|
@@ -378,6 +442,8 @@ export declare const FlowConfigSchema: z.ZodObject<{
|
|
|
378
442
|
retries?: number | undefined;
|
|
379
443
|
retryDelay?: number | undefined;
|
|
380
444
|
retryOn?: string | undefined;
|
|
445
|
+
when?: string | boolean | undefined;
|
|
446
|
+
ignore_failure?: boolean | undefined;
|
|
381
447
|
}[] | undefined;
|
|
382
448
|
on_failure?: {
|
|
383
449
|
options?: Record<string, unknown> | undefined;
|
|
@@ -386,6 +452,8 @@ export declare const FlowConfigSchema: z.ZodObject<{
|
|
|
386
452
|
retries?: number | undefined;
|
|
387
453
|
retryDelay?: number | undefined;
|
|
388
454
|
retryOn?: string | undefined;
|
|
455
|
+
when?: string | boolean | undefined;
|
|
456
|
+
ignore_failure?: boolean | undefined;
|
|
389
457
|
}[] | undefined;
|
|
390
458
|
finally?: {
|
|
391
459
|
options?: Record<string, unknown> | undefined;
|
|
@@ -394,9 +462,129 @@ export declare const FlowConfigSchema: z.ZodObject<{
|
|
|
394
462
|
retries?: number | undefined;
|
|
395
463
|
retryDelay?: number | undefined;
|
|
396
464
|
retryOn?: string | undefined;
|
|
465
|
+
when?: string | boolean | undefined;
|
|
466
|
+
ignore_failure?: boolean | undefined;
|
|
397
467
|
}[] | undefined;
|
|
398
468
|
rollback_on_failure?: boolean | undefined;
|
|
399
469
|
}>>>;
|
|
470
|
+
agents: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
471
|
+
description: z.ZodOptional<z.ZodString>;
|
|
472
|
+
model: z.ZodOptional<z.ZodString>;
|
|
473
|
+
system: z.ZodOptional<z.ZodString>;
|
|
474
|
+
tools: z.ZodDefault<z.ZodArray<z.ZodEffects<z.ZodObject<{
|
|
475
|
+
name: z.ZodOptional<z.ZodString>;
|
|
476
|
+
task: z.ZodOptional<z.ZodString>;
|
|
477
|
+
flow: z.ZodOptional<z.ZodString>;
|
|
478
|
+
agent: z.ZodOptional<z.ZodString>;
|
|
479
|
+
description: z.ZodOptional<z.ZodString>;
|
|
480
|
+
parameters: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
481
|
+
}, "strip", z.ZodTypeAny, {
|
|
482
|
+
description?: string | undefined;
|
|
483
|
+
task?: string | undefined;
|
|
484
|
+
flow?: string | undefined;
|
|
485
|
+
name?: string | undefined;
|
|
486
|
+
agent?: string | undefined;
|
|
487
|
+
parameters?: Record<string, unknown> | undefined;
|
|
488
|
+
}, {
|
|
489
|
+
description?: string | undefined;
|
|
490
|
+
task?: string | undefined;
|
|
491
|
+
flow?: string | undefined;
|
|
492
|
+
name?: string | undefined;
|
|
493
|
+
agent?: string | undefined;
|
|
494
|
+
parameters?: Record<string, unknown> | undefined;
|
|
495
|
+
}>, {
|
|
496
|
+
description?: string | undefined;
|
|
497
|
+
task?: string | undefined;
|
|
498
|
+
flow?: string | undefined;
|
|
499
|
+
name?: string | undefined;
|
|
500
|
+
agent?: string | undefined;
|
|
501
|
+
parameters?: Record<string, unknown> | undefined;
|
|
502
|
+
}, {
|
|
503
|
+
description?: string | undefined;
|
|
504
|
+
task?: string | undefined;
|
|
505
|
+
flow?: string | undefined;
|
|
506
|
+
name?: string | undefined;
|
|
507
|
+
agent?: string | undefined;
|
|
508
|
+
parameters?: Record<string, unknown> | undefined;
|
|
509
|
+
}>, "many">>;
|
|
510
|
+
schema: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
511
|
+
budget: z.ZodOptional<z.ZodObject<{
|
|
512
|
+
maxIterations: z.ZodOptional<z.ZodNumber>;
|
|
513
|
+
tokenBudget: z.ZodOptional<z.ZodNumber>;
|
|
514
|
+
maxToolResultChars: z.ZodOptional<z.ZodNumber>;
|
|
515
|
+
maxAgentResultChars: z.ZodOptional<z.ZodNumber>;
|
|
516
|
+
maxConcurrency: z.ZodOptional<z.ZodNumber>;
|
|
517
|
+
maxAgentDepth: z.ZodOptional<z.ZodNumber>;
|
|
518
|
+
}, "strip", z.ZodTypeAny, {
|
|
519
|
+
maxIterations?: number | undefined;
|
|
520
|
+
tokenBudget?: number | undefined;
|
|
521
|
+
maxToolResultChars?: number | undefined;
|
|
522
|
+
maxAgentResultChars?: number | undefined;
|
|
523
|
+
maxConcurrency?: number | undefined;
|
|
524
|
+
maxAgentDepth?: number | undefined;
|
|
525
|
+
}, {
|
|
526
|
+
maxIterations?: number | undefined;
|
|
527
|
+
tokenBudget?: number | undefined;
|
|
528
|
+
maxToolResultChars?: number | undefined;
|
|
529
|
+
maxAgentResultChars?: number | undefined;
|
|
530
|
+
maxConcurrency?: number | undefined;
|
|
531
|
+
maxAgentDepth?: number | undefined;
|
|
532
|
+
}>>;
|
|
533
|
+
temperature: z.ZodOptional<z.ZodNumber>;
|
|
534
|
+
maxTokens: z.ZodOptional<z.ZodNumber>;
|
|
535
|
+
timeout: z.ZodOptional<z.ZodNumber>;
|
|
536
|
+
retries: z.ZodOptional<z.ZodNumber>;
|
|
537
|
+
}, "strip", z.ZodTypeAny, {
|
|
538
|
+
tools: {
|
|
539
|
+
description?: string | undefined;
|
|
540
|
+
task?: string | undefined;
|
|
541
|
+
flow?: string | undefined;
|
|
542
|
+
name?: string | undefined;
|
|
543
|
+
agent?: string | undefined;
|
|
544
|
+
parameters?: Record<string, unknown> | undefined;
|
|
545
|
+
}[];
|
|
546
|
+
description?: string | undefined;
|
|
547
|
+
retries?: number | undefined;
|
|
548
|
+
model?: string | undefined;
|
|
549
|
+
system?: string | undefined;
|
|
550
|
+
schema?: Record<string, unknown> | undefined;
|
|
551
|
+
budget?: {
|
|
552
|
+
maxIterations?: number | undefined;
|
|
553
|
+
tokenBudget?: number | undefined;
|
|
554
|
+
maxToolResultChars?: number | undefined;
|
|
555
|
+
maxAgentResultChars?: number | undefined;
|
|
556
|
+
maxConcurrency?: number | undefined;
|
|
557
|
+
maxAgentDepth?: number | undefined;
|
|
558
|
+
} | undefined;
|
|
559
|
+
temperature?: number | undefined;
|
|
560
|
+
maxTokens?: number | undefined;
|
|
561
|
+
timeout?: number | undefined;
|
|
562
|
+
}, {
|
|
563
|
+
description?: string | undefined;
|
|
564
|
+
retries?: number | undefined;
|
|
565
|
+
model?: string | undefined;
|
|
566
|
+
system?: string | undefined;
|
|
567
|
+
tools?: {
|
|
568
|
+
description?: string | undefined;
|
|
569
|
+
task?: string | undefined;
|
|
570
|
+
flow?: string | undefined;
|
|
571
|
+
name?: string | undefined;
|
|
572
|
+
agent?: string | undefined;
|
|
573
|
+
parameters?: Record<string, unknown> | undefined;
|
|
574
|
+
}[] | undefined;
|
|
575
|
+
schema?: Record<string, unknown> | undefined;
|
|
576
|
+
budget?: {
|
|
577
|
+
maxIterations?: number | undefined;
|
|
578
|
+
tokenBudget?: number | undefined;
|
|
579
|
+
maxToolResultChars?: number | undefined;
|
|
580
|
+
maxAgentResultChars?: number | undefined;
|
|
581
|
+
maxConcurrency?: number | undefined;
|
|
582
|
+
maxAgentDepth?: number | undefined;
|
|
583
|
+
} | undefined;
|
|
584
|
+
temperature?: number | undefined;
|
|
585
|
+
maxTokens?: number | undefined;
|
|
586
|
+
timeout?: number | undefined;
|
|
587
|
+
}>>>;
|
|
400
588
|
} & {
|
|
401
589
|
"ue-mcp": z.ZodOptional<z.ZodObject<{
|
|
402
590
|
version: z.ZodLiteral<1>;
|
|
@@ -489,14 +677,13 @@ export declare const FlowConfigSchema: z.ZodObject<{
|
|
|
489
677
|
}, "strip", z.ZodTypeAny, {
|
|
490
678
|
tasks: Record<string, {
|
|
491
679
|
options: Record<string, unknown>;
|
|
492
|
-
class_path
|
|
680
|
+
class_path?: string | undefined;
|
|
493
681
|
description?: string | undefined;
|
|
494
682
|
group?: string | undefined;
|
|
495
683
|
idempotent?: boolean | undefined;
|
|
496
684
|
reversible?: boolean | undefined;
|
|
497
685
|
}>;
|
|
498
686
|
flows: Record<string, {
|
|
499
|
-
description: string;
|
|
500
687
|
steps: Record<string, {
|
|
501
688
|
options?: Record<string, unknown> | undefined;
|
|
502
689
|
task?: string | undefined;
|
|
@@ -504,7 +691,10 @@ export declare const FlowConfigSchema: z.ZodObject<{
|
|
|
504
691
|
retries?: number | undefined;
|
|
505
692
|
retryDelay?: number | undefined;
|
|
506
693
|
retryOn?: string | undefined;
|
|
694
|
+
when?: string | boolean | undefined;
|
|
695
|
+
ignore_failure?: boolean | undefined;
|
|
507
696
|
}>;
|
|
697
|
+
description?: string | null | undefined;
|
|
508
698
|
on_start?: {
|
|
509
699
|
options?: Record<string, unknown> | undefined;
|
|
510
700
|
task?: string | undefined;
|
|
@@ -512,6 +702,8 @@ export declare const FlowConfigSchema: z.ZodObject<{
|
|
|
512
702
|
retries?: number | undefined;
|
|
513
703
|
retryDelay?: number | undefined;
|
|
514
704
|
retryOn?: string | undefined;
|
|
705
|
+
when?: string | boolean | undefined;
|
|
706
|
+
ignore_failure?: boolean | undefined;
|
|
515
707
|
}[] | undefined;
|
|
516
708
|
on_success?: {
|
|
517
709
|
options?: Record<string, unknown> | undefined;
|
|
@@ -520,6 +712,8 @@ export declare const FlowConfigSchema: z.ZodObject<{
|
|
|
520
712
|
retries?: number | undefined;
|
|
521
713
|
retryDelay?: number | undefined;
|
|
522
714
|
retryOn?: string | undefined;
|
|
715
|
+
when?: string | boolean | undefined;
|
|
716
|
+
ignore_failure?: boolean | undefined;
|
|
523
717
|
}[] | undefined;
|
|
524
718
|
on_failure?: {
|
|
525
719
|
options?: Record<string, unknown> | undefined;
|
|
@@ -528,6 +722,8 @@ export declare const FlowConfigSchema: z.ZodObject<{
|
|
|
528
722
|
retries?: number | undefined;
|
|
529
723
|
retryDelay?: number | undefined;
|
|
530
724
|
retryOn?: string | undefined;
|
|
725
|
+
when?: string | boolean | undefined;
|
|
726
|
+
ignore_failure?: boolean | undefined;
|
|
531
727
|
}[] | undefined;
|
|
532
728
|
finally?: {
|
|
533
729
|
options?: Record<string, unknown> | undefined;
|
|
@@ -536,6 +732,8 @@ export declare const FlowConfigSchema: z.ZodObject<{
|
|
|
536
732
|
retries?: number | undefined;
|
|
537
733
|
retryDelay?: number | undefined;
|
|
538
734
|
retryOn?: string | undefined;
|
|
735
|
+
when?: string | boolean | undefined;
|
|
736
|
+
ignore_failure?: boolean | undefined;
|
|
539
737
|
}[] | undefined;
|
|
540
738
|
rollback_on_failure?: boolean | undefined;
|
|
541
739
|
}>;
|
|
@@ -543,6 +741,32 @@ export declare const FlowConfigSchema: z.ZodObject<{
|
|
|
543
741
|
name: string;
|
|
544
742
|
version?: string | undefined;
|
|
545
743
|
}[];
|
|
744
|
+
agents: Record<string, {
|
|
745
|
+
tools: {
|
|
746
|
+
description?: string | undefined;
|
|
747
|
+
task?: string | undefined;
|
|
748
|
+
flow?: string | undefined;
|
|
749
|
+
name?: string | undefined;
|
|
750
|
+
agent?: string | undefined;
|
|
751
|
+
parameters?: Record<string, unknown> | undefined;
|
|
752
|
+
}[];
|
|
753
|
+
description?: string | undefined;
|
|
754
|
+
retries?: number | undefined;
|
|
755
|
+
model?: string | undefined;
|
|
756
|
+
system?: string | undefined;
|
|
757
|
+
schema?: Record<string, unknown> | undefined;
|
|
758
|
+
budget?: {
|
|
759
|
+
maxIterations?: number | undefined;
|
|
760
|
+
tokenBudget?: number | undefined;
|
|
761
|
+
maxToolResultChars?: number | undefined;
|
|
762
|
+
maxAgentResultChars?: number | undefined;
|
|
763
|
+
maxConcurrency?: number | undefined;
|
|
764
|
+
maxAgentDepth?: number | undefined;
|
|
765
|
+
} | undefined;
|
|
766
|
+
temperature?: number | undefined;
|
|
767
|
+
maxTokens?: number | undefined;
|
|
768
|
+
timeout?: number | undefined;
|
|
769
|
+
}>;
|
|
546
770
|
"ue-mcp"?: z.objectOutputType<{
|
|
547
771
|
version: z.ZodLiteral<1>;
|
|
548
772
|
contentRoots: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
@@ -595,23 +819,25 @@ export declare const FlowConfigSchema: z.ZodObject<{
|
|
|
595
819
|
engine?: string | undefined;
|
|
596
820
|
} | undefined;
|
|
597
821
|
tasks?: Record<string, {
|
|
598
|
-
class_path: string;
|
|
599
822
|
options?: Record<string, unknown> | undefined;
|
|
823
|
+
class_path?: string | undefined;
|
|
600
824
|
description?: string | undefined;
|
|
601
825
|
group?: string | undefined;
|
|
602
826
|
idempotent?: boolean | undefined;
|
|
603
827
|
reversible?: boolean | undefined;
|
|
604
828
|
}> | undefined;
|
|
605
829
|
flows?: Record<string, {
|
|
606
|
-
description
|
|
607
|
-
steps
|
|
830
|
+
description?: string | null | undefined;
|
|
831
|
+
steps?: Record<string, {
|
|
608
832
|
options?: Record<string, unknown> | undefined;
|
|
609
833
|
task?: string | undefined;
|
|
610
834
|
flow?: string | undefined;
|
|
611
835
|
retries?: number | undefined;
|
|
612
836
|
retryDelay?: number | undefined;
|
|
613
837
|
retryOn?: string | undefined;
|
|
614
|
-
|
|
838
|
+
when?: string | boolean | undefined;
|
|
839
|
+
ignore_failure?: boolean | undefined;
|
|
840
|
+
}> | undefined;
|
|
615
841
|
on_start?: {
|
|
616
842
|
options?: Record<string, unknown> | undefined;
|
|
617
843
|
task?: string | undefined;
|
|
@@ -619,6 +845,8 @@ export declare const FlowConfigSchema: z.ZodObject<{
|
|
|
619
845
|
retries?: number | undefined;
|
|
620
846
|
retryDelay?: number | undefined;
|
|
621
847
|
retryOn?: string | undefined;
|
|
848
|
+
when?: string | boolean | undefined;
|
|
849
|
+
ignore_failure?: boolean | undefined;
|
|
622
850
|
}[] | undefined;
|
|
623
851
|
on_success?: {
|
|
624
852
|
options?: Record<string, unknown> | undefined;
|
|
@@ -627,6 +855,8 @@ export declare const FlowConfigSchema: z.ZodObject<{
|
|
|
627
855
|
retries?: number | undefined;
|
|
628
856
|
retryDelay?: number | undefined;
|
|
629
857
|
retryOn?: string | undefined;
|
|
858
|
+
when?: string | boolean | undefined;
|
|
859
|
+
ignore_failure?: boolean | undefined;
|
|
630
860
|
}[] | undefined;
|
|
631
861
|
on_failure?: {
|
|
632
862
|
options?: Record<string, unknown> | undefined;
|
|
@@ -635,6 +865,8 @@ export declare const FlowConfigSchema: z.ZodObject<{
|
|
|
635
865
|
retries?: number | undefined;
|
|
636
866
|
retryDelay?: number | undefined;
|
|
637
867
|
retryOn?: string | undefined;
|
|
868
|
+
when?: string | boolean | undefined;
|
|
869
|
+
ignore_failure?: boolean | undefined;
|
|
638
870
|
}[] | undefined;
|
|
639
871
|
finally?: {
|
|
640
872
|
options?: Record<string, unknown> | undefined;
|
|
@@ -643,6 +875,8 @@ export declare const FlowConfigSchema: z.ZodObject<{
|
|
|
643
875
|
retries?: number | undefined;
|
|
644
876
|
retryDelay?: number | undefined;
|
|
645
877
|
retryOn?: string | undefined;
|
|
878
|
+
when?: string | boolean | undefined;
|
|
879
|
+
ignore_failure?: boolean | undefined;
|
|
646
880
|
}[] | undefined;
|
|
647
881
|
rollback_on_failure?: boolean | undefined;
|
|
648
882
|
}> | undefined;
|
|
@@ -656,5 +890,31 @@ export declare const FlowConfigSchema: z.ZodObject<{
|
|
|
656
890
|
snapshot_dir?: string | undefined;
|
|
657
891
|
max_age_hours?: number | undefined;
|
|
658
892
|
} | undefined;
|
|
893
|
+
agents?: Record<string, {
|
|
894
|
+
description?: string | undefined;
|
|
895
|
+
retries?: number | undefined;
|
|
896
|
+
model?: string | undefined;
|
|
897
|
+
system?: string | undefined;
|
|
898
|
+
tools?: {
|
|
899
|
+
description?: string | undefined;
|
|
900
|
+
task?: string | undefined;
|
|
901
|
+
flow?: string | undefined;
|
|
902
|
+
name?: string | undefined;
|
|
903
|
+
agent?: string | undefined;
|
|
904
|
+
parameters?: Record<string, unknown> | undefined;
|
|
905
|
+
}[] | undefined;
|
|
906
|
+
schema?: Record<string, unknown> | undefined;
|
|
907
|
+
budget?: {
|
|
908
|
+
maxIterations?: number | undefined;
|
|
909
|
+
tokenBudget?: number | undefined;
|
|
910
|
+
maxToolResultChars?: number | undefined;
|
|
911
|
+
maxAgentResultChars?: number | undefined;
|
|
912
|
+
maxConcurrency?: number | undefined;
|
|
913
|
+
maxAgentDepth?: number | undefined;
|
|
914
|
+
} | undefined;
|
|
915
|
+
temperature?: number | undefined;
|
|
916
|
+
maxTokens?: number | undefined;
|
|
917
|
+
timeout?: number | undefined;
|
|
918
|
+
}> | undefined;
|
|
659
919
|
}>;
|
|
660
920
|
export type FlowConfig = z.infer<typeof FlowConfigSchema>;
|
|
@@ -2,7 +2,7 @@ import type { TaskRegistry } from "@db-lyon/flowkit";
|
|
|
2
2
|
import type { IBridge } from "../bridge.js";
|
|
3
3
|
import type { ProjectContext } from "../project.js";
|
|
4
4
|
import type { ToolContext } from "../types.js";
|
|
5
|
-
import type
|
|
5
|
+
import { type BridgeGuard, type ResolveExistingFile } from "./guard.js";
|
|
6
6
|
/** Resolve a UE content path to an absolute file, or null if it does not exist. */
|
|
7
7
|
export declare function makeResolveExistingFile(project: ProjectContext): ResolveExistingFile;
|
|
8
8
|
/**
|