@projectarachne/core 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (37) hide show
  1. package/dist/execution/runWorkflow.d.ts +28 -0
  2. package/dist/execution/runWorkflow.d.ts.map +1 -0
  3. package/dist/execution/runWorkflow.js +350 -0
  4. package/dist/execution/runWorkflow.js.map +1 -0
  5. package/dist/executors/terminalExecutor.d.ts +82 -0
  6. package/dist/executors/terminalExecutor.d.ts.map +1 -0
  7. package/dist/executors/terminalExecutor.js +331 -0
  8. package/dist/executors/terminalExecutor.js.map +1 -0
  9. package/dist/index.d.ts +10 -0
  10. package/dist/index.d.ts.map +1 -0
  11. package/dist/index.js +10 -0
  12. package/dist/index.js.map +1 -0
  13. package/dist/schemas/index.d.ts +3 -0
  14. package/dist/schemas/index.d.ts.map +1 -0
  15. package/dist/schemas/index.js +3 -0
  16. package/dist/schemas/index.js.map +1 -0
  17. package/dist/schemas/workflow-yaml.d.ts +839 -0
  18. package/dist/schemas/workflow-yaml.d.ts.map +1 -0
  19. package/dist/schemas/workflow-yaml.js +60 -0
  20. package/dist/schemas/workflow-yaml.js.map +1 -0
  21. package/dist/schemas/workflow.d.ts +698 -0
  22. package/dist/schemas/workflow.d.ts.map +1 -0
  23. package/dist/schemas/workflow.js +85 -0
  24. package/dist/schemas/workflow.js.map +1 -0
  25. package/dist/storage/sqlite.d.ts +65 -0
  26. package/dist/storage/sqlite.d.ts.map +1 -0
  27. package/dist/storage/sqlite.js +177 -0
  28. package/dist/storage/sqlite.js.map +1 -0
  29. package/dist/yaml/index.d.ts +3 -0
  30. package/dist/yaml/index.d.ts.map +1 -0
  31. package/dist/yaml/index.js +2 -0
  32. package/dist/yaml/index.js.map +1 -0
  33. package/dist/yaml/parseWorkflowYaml.d.ts +6 -0
  34. package/dist/yaml/parseWorkflowYaml.d.ts.map +1 -0
  35. package/dist/yaml/parseWorkflowYaml.js +41 -0
  36. package/dist/yaml/parseWorkflowYaml.js.map +1 -0
  37. package/package.json +37 -0
@@ -0,0 +1,698 @@
1
+ import { z } from 'zod';
2
+ export declare const ChainConfigSchema: z.ZodObject<{
3
+ mode: z.ZodDefault<z.ZodEnum<["auto_append", "auto_replace", "manual"]>>;
4
+ nextPromptPath: z.ZodOptional<z.ZodString>;
5
+ }, "strip", z.ZodTypeAny, {
6
+ mode: "auto_append" | "auto_replace" | "manual";
7
+ nextPromptPath?: string | undefined;
8
+ }, {
9
+ mode?: "auto_append" | "auto_replace" | "manual" | undefined;
10
+ nextPromptPath?: string | undefined;
11
+ }>;
12
+ export declare const OutputConfigSchema: z.ZodObject<{
13
+ format: z.ZodDefault<z.ZodEnum<["text", "json"]>>;
14
+ schema: z.ZodOptional<z.ZodUnknown>;
15
+ }, "strip", z.ZodTypeAny, {
16
+ format: "text" | "json";
17
+ schema?: unknown;
18
+ }, {
19
+ format?: "text" | "json" | undefined;
20
+ schema?: unknown;
21
+ }>;
22
+ export declare const LoopConfigSchema: z.ZodObject<{
23
+ maxIterations: z.ZodDefault<z.ZodNumber>;
24
+ stopOnHalt: z.ZodDefault<z.ZodBoolean>;
25
+ }, "strip", z.ZodTypeAny, {
26
+ maxIterations: number;
27
+ stopOnHalt: boolean;
28
+ }, {
29
+ maxIterations?: number | undefined;
30
+ stopOnHalt?: boolean | undefined;
31
+ }>;
32
+ export declare const StepSchema: z.ZodObject<{
33
+ id: z.ZodString;
34
+ kind: z.ZodDefault<z.ZodEnum<["llm", "http"]>>;
35
+ conceptLabel: z.ZodNullable<z.ZodOptional<z.ZodString>>;
36
+ prompt: z.ZodDefault<z.ZodOptional<z.ZodString>>;
37
+ promptTemplate: z.ZodOptional<z.ZodString>;
38
+ agentId: z.ZodString;
39
+ model: z.ZodDefault<z.ZodOptional<z.ZodString>>;
40
+ chain: z.ZodOptional<z.ZodObject<{
41
+ mode: z.ZodDefault<z.ZodEnum<["auto_append", "auto_replace", "manual"]>>;
42
+ nextPromptPath: z.ZodOptional<z.ZodString>;
43
+ }, "strip", z.ZodTypeAny, {
44
+ mode: "auto_append" | "auto_replace" | "manual";
45
+ nextPromptPath?: string | undefined;
46
+ }, {
47
+ mode?: "auto_append" | "auto_replace" | "manual" | undefined;
48
+ nextPromptPath?: string | undefined;
49
+ }>>;
50
+ output: z.ZodOptional<z.ZodObject<{
51
+ format: z.ZodDefault<z.ZodEnum<["text", "json"]>>;
52
+ schema: z.ZodOptional<z.ZodUnknown>;
53
+ }, "strip", z.ZodTypeAny, {
54
+ format: "text" | "json";
55
+ schema?: unknown;
56
+ }, {
57
+ format?: "text" | "json" | undefined;
58
+ schema?: unknown;
59
+ }>>;
60
+ http: z.ZodOptional<z.ZodObject<{
61
+ url: z.ZodString;
62
+ method: z.ZodDefault<z.ZodOptional<z.ZodString>>;
63
+ allowMutations: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
64
+ headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
65
+ body: z.ZodOptional<z.ZodUnknown>;
66
+ timeoutMs: z.ZodOptional<z.ZodNumber>;
67
+ }, "strip", z.ZodTypeAny, {
68
+ url: string;
69
+ method: string;
70
+ allowMutations: boolean;
71
+ headers?: Record<string, string> | undefined;
72
+ body?: unknown;
73
+ timeoutMs?: number | undefined;
74
+ }, {
75
+ url: string;
76
+ method?: string | undefined;
77
+ allowMutations?: boolean | undefined;
78
+ headers?: Record<string, string> | undefined;
79
+ body?: unknown;
80
+ timeoutMs?: number | undefined;
81
+ }>>;
82
+ retry: z.ZodOptional<z.ZodObject<{
83
+ attempts: z.ZodDefault<z.ZodNumber>;
84
+ backoffMs: z.ZodDefault<z.ZodNumber>;
85
+ }, "strip", z.ZodTypeAny, {
86
+ attempts: number;
87
+ backoffMs: number;
88
+ }, {
89
+ attempts?: number | undefined;
90
+ backoffMs?: number | undefined;
91
+ }>>;
92
+ }, "strip", z.ZodTypeAny, {
93
+ prompt: string;
94
+ model: string;
95
+ id: string;
96
+ kind: "llm" | "http";
97
+ agentId: string;
98
+ output?: {
99
+ format: "text" | "json";
100
+ schema?: unknown;
101
+ } | undefined;
102
+ http?: {
103
+ url: string;
104
+ method: string;
105
+ allowMutations: boolean;
106
+ headers?: Record<string, string> | undefined;
107
+ body?: unknown;
108
+ timeoutMs?: number | undefined;
109
+ } | undefined;
110
+ conceptLabel?: string | null | undefined;
111
+ promptTemplate?: string | undefined;
112
+ chain?: {
113
+ mode: "auto_append" | "auto_replace" | "manual";
114
+ nextPromptPath?: string | undefined;
115
+ } | undefined;
116
+ retry?: {
117
+ attempts: number;
118
+ backoffMs: number;
119
+ } | undefined;
120
+ }, {
121
+ id: string;
122
+ agentId: string;
123
+ prompt?: string | undefined;
124
+ model?: string | undefined;
125
+ output?: {
126
+ format?: "text" | "json" | undefined;
127
+ schema?: unknown;
128
+ } | undefined;
129
+ http?: {
130
+ url: string;
131
+ method?: string | undefined;
132
+ allowMutations?: boolean | undefined;
133
+ headers?: Record<string, string> | undefined;
134
+ body?: unknown;
135
+ timeoutMs?: number | undefined;
136
+ } | undefined;
137
+ kind?: "llm" | "http" | undefined;
138
+ conceptLabel?: string | null | undefined;
139
+ promptTemplate?: string | undefined;
140
+ chain?: {
141
+ mode?: "auto_append" | "auto_replace" | "manual" | undefined;
142
+ nextPromptPath?: string | undefined;
143
+ } | undefined;
144
+ retry?: {
145
+ attempts?: number | undefined;
146
+ backoffMs?: number | undefined;
147
+ } | undefined;
148
+ }>;
149
+ export declare const EdgeSchema: z.ZodObject<{
150
+ from: z.ZodString;
151
+ to: z.ZodString;
152
+ }, "strip", z.ZodTypeAny, {
153
+ from: string;
154
+ to: string;
155
+ }, {
156
+ from: string;
157
+ to: string;
158
+ }>;
159
+ export declare const WorkflowRunSchema: z.ZodEffects<z.ZodObject<{
160
+ workflowId: z.ZodString;
161
+ steps: z.ZodOptional<z.ZodArray<z.ZodObject<{
162
+ id: z.ZodString;
163
+ kind: z.ZodDefault<z.ZodEnum<["llm", "http"]>>;
164
+ conceptLabel: z.ZodNullable<z.ZodOptional<z.ZodString>>;
165
+ prompt: z.ZodDefault<z.ZodOptional<z.ZodString>>;
166
+ promptTemplate: z.ZodOptional<z.ZodString>;
167
+ agentId: z.ZodString;
168
+ model: z.ZodDefault<z.ZodOptional<z.ZodString>>;
169
+ chain: z.ZodOptional<z.ZodObject<{
170
+ mode: z.ZodDefault<z.ZodEnum<["auto_append", "auto_replace", "manual"]>>;
171
+ nextPromptPath: z.ZodOptional<z.ZodString>;
172
+ }, "strip", z.ZodTypeAny, {
173
+ mode: "auto_append" | "auto_replace" | "manual";
174
+ nextPromptPath?: string | undefined;
175
+ }, {
176
+ mode?: "auto_append" | "auto_replace" | "manual" | undefined;
177
+ nextPromptPath?: string | undefined;
178
+ }>>;
179
+ output: z.ZodOptional<z.ZodObject<{
180
+ format: z.ZodDefault<z.ZodEnum<["text", "json"]>>;
181
+ schema: z.ZodOptional<z.ZodUnknown>;
182
+ }, "strip", z.ZodTypeAny, {
183
+ format: "text" | "json";
184
+ schema?: unknown;
185
+ }, {
186
+ format?: "text" | "json" | undefined;
187
+ schema?: unknown;
188
+ }>>;
189
+ http: z.ZodOptional<z.ZodObject<{
190
+ url: z.ZodString;
191
+ method: z.ZodDefault<z.ZodOptional<z.ZodString>>;
192
+ allowMutations: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
193
+ headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
194
+ body: z.ZodOptional<z.ZodUnknown>;
195
+ timeoutMs: z.ZodOptional<z.ZodNumber>;
196
+ }, "strip", z.ZodTypeAny, {
197
+ url: string;
198
+ method: string;
199
+ allowMutations: boolean;
200
+ headers?: Record<string, string> | undefined;
201
+ body?: unknown;
202
+ timeoutMs?: number | undefined;
203
+ }, {
204
+ url: string;
205
+ method?: string | undefined;
206
+ allowMutations?: boolean | undefined;
207
+ headers?: Record<string, string> | undefined;
208
+ body?: unknown;
209
+ timeoutMs?: number | undefined;
210
+ }>>;
211
+ retry: z.ZodOptional<z.ZodObject<{
212
+ attempts: z.ZodDefault<z.ZodNumber>;
213
+ backoffMs: z.ZodDefault<z.ZodNumber>;
214
+ }, "strip", z.ZodTypeAny, {
215
+ attempts: number;
216
+ backoffMs: number;
217
+ }, {
218
+ attempts?: number | undefined;
219
+ backoffMs?: number | undefined;
220
+ }>>;
221
+ }, "strip", z.ZodTypeAny, {
222
+ prompt: string;
223
+ model: string;
224
+ id: string;
225
+ kind: "llm" | "http";
226
+ agentId: string;
227
+ output?: {
228
+ format: "text" | "json";
229
+ schema?: unknown;
230
+ } | undefined;
231
+ http?: {
232
+ url: string;
233
+ method: string;
234
+ allowMutations: boolean;
235
+ headers?: Record<string, string> | undefined;
236
+ body?: unknown;
237
+ timeoutMs?: number | undefined;
238
+ } | undefined;
239
+ conceptLabel?: string | null | undefined;
240
+ promptTemplate?: string | undefined;
241
+ chain?: {
242
+ mode: "auto_append" | "auto_replace" | "manual";
243
+ nextPromptPath?: string | undefined;
244
+ } | undefined;
245
+ retry?: {
246
+ attempts: number;
247
+ backoffMs: number;
248
+ } | undefined;
249
+ }, {
250
+ id: string;
251
+ agentId: string;
252
+ prompt?: string | undefined;
253
+ model?: string | undefined;
254
+ output?: {
255
+ format?: "text" | "json" | undefined;
256
+ schema?: unknown;
257
+ } | undefined;
258
+ http?: {
259
+ url: string;
260
+ method?: string | undefined;
261
+ allowMutations?: boolean | undefined;
262
+ headers?: Record<string, string> | undefined;
263
+ body?: unknown;
264
+ timeoutMs?: number | undefined;
265
+ } | undefined;
266
+ kind?: "llm" | "http" | undefined;
267
+ conceptLabel?: string | null | undefined;
268
+ promptTemplate?: string | undefined;
269
+ chain?: {
270
+ mode?: "auto_append" | "auto_replace" | "manual" | undefined;
271
+ nextPromptPath?: string | undefined;
272
+ } | undefined;
273
+ retry?: {
274
+ attempts?: number | undefined;
275
+ backoffMs?: number | undefined;
276
+ } | undefined;
277
+ }>, "many">>;
278
+ nodes: z.ZodOptional<z.ZodArray<z.ZodObject<{
279
+ id: z.ZodString;
280
+ kind: z.ZodDefault<z.ZodEnum<["llm", "http"]>>;
281
+ conceptLabel: z.ZodNullable<z.ZodOptional<z.ZodString>>;
282
+ prompt: z.ZodDefault<z.ZodOptional<z.ZodString>>;
283
+ promptTemplate: z.ZodOptional<z.ZodString>;
284
+ agentId: z.ZodString;
285
+ model: z.ZodDefault<z.ZodOptional<z.ZodString>>;
286
+ chain: z.ZodOptional<z.ZodObject<{
287
+ mode: z.ZodDefault<z.ZodEnum<["auto_append", "auto_replace", "manual"]>>;
288
+ nextPromptPath: z.ZodOptional<z.ZodString>;
289
+ }, "strip", z.ZodTypeAny, {
290
+ mode: "auto_append" | "auto_replace" | "manual";
291
+ nextPromptPath?: string | undefined;
292
+ }, {
293
+ mode?: "auto_append" | "auto_replace" | "manual" | undefined;
294
+ nextPromptPath?: string | undefined;
295
+ }>>;
296
+ output: z.ZodOptional<z.ZodObject<{
297
+ format: z.ZodDefault<z.ZodEnum<["text", "json"]>>;
298
+ schema: z.ZodOptional<z.ZodUnknown>;
299
+ }, "strip", z.ZodTypeAny, {
300
+ format: "text" | "json";
301
+ schema?: unknown;
302
+ }, {
303
+ format?: "text" | "json" | undefined;
304
+ schema?: unknown;
305
+ }>>;
306
+ http: z.ZodOptional<z.ZodObject<{
307
+ url: z.ZodString;
308
+ method: z.ZodDefault<z.ZodOptional<z.ZodString>>;
309
+ allowMutations: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
310
+ headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
311
+ body: z.ZodOptional<z.ZodUnknown>;
312
+ timeoutMs: z.ZodOptional<z.ZodNumber>;
313
+ }, "strip", z.ZodTypeAny, {
314
+ url: string;
315
+ method: string;
316
+ allowMutations: boolean;
317
+ headers?: Record<string, string> | undefined;
318
+ body?: unknown;
319
+ timeoutMs?: number | undefined;
320
+ }, {
321
+ url: string;
322
+ method?: string | undefined;
323
+ allowMutations?: boolean | undefined;
324
+ headers?: Record<string, string> | undefined;
325
+ body?: unknown;
326
+ timeoutMs?: number | undefined;
327
+ }>>;
328
+ retry: z.ZodOptional<z.ZodObject<{
329
+ attempts: z.ZodDefault<z.ZodNumber>;
330
+ backoffMs: z.ZodDefault<z.ZodNumber>;
331
+ }, "strip", z.ZodTypeAny, {
332
+ attempts: number;
333
+ backoffMs: number;
334
+ }, {
335
+ attempts?: number | undefined;
336
+ backoffMs?: number | undefined;
337
+ }>>;
338
+ }, "strip", z.ZodTypeAny, {
339
+ prompt: string;
340
+ model: string;
341
+ id: string;
342
+ kind: "llm" | "http";
343
+ agentId: string;
344
+ output?: {
345
+ format: "text" | "json";
346
+ schema?: unknown;
347
+ } | undefined;
348
+ http?: {
349
+ url: string;
350
+ method: string;
351
+ allowMutations: boolean;
352
+ headers?: Record<string, string> | undefined;
353
+ body?: unknown;
354
+ timeoutMs?: number | undefined;
355
+ } | undefined;
356
+ conceptLabel?: string | null | undefined;
357
+ promptTemplate?: string | undefined;
358
+ chain?: {
359
+ mode: "auto_append" | "auto_replace" | "manual";
360
+ nextPromptPath?: string | undefined;
361
+ } | undefined;
362
+ retry?: {
363
+ attempts: number;
364
+ backoffMs: number;
365
+ } | undefined;
366
+ }, {
367
+ id: string;
368
+ agentId: string;
369
+ prompt?: string | undefined;
370
+ model?: string | undefined;
371
+ output?: {
372
+ format?: "text" | "json" | undefined;
373
+ schema?: unknown;
374
+ } | undefined;
375
+ http?: {
376
+ url: string;
377
+ method?: string | undefined;
378
+ allowMutations?: boolean | undefined;
379
+ headers?: Record<string, string> | undefined;
380
+ body?: unknown;
381
+ timeoutMs?: number | undefined;
382
+ } | undefined;
383
+ kind?: "llm" | "http" | undefined;
384
+ conceptLabel?: string | null | undefined;
385
+ promptTemplate?: string | undefined;
386
+ chain?: {
387
+ mode?: "auto_append" | "auto_replace" | "manual" | undefined;
388
+ nextPromptPath?: string | undefined;
389
+ } | undefined;
390
+ retry?: {
391
+ attempts?: number | undefined;
392
+ backoffMs?: number | undefined;
393
+ } | undefined;
394
+ }>, "many">>;
395
+ edges: z.ZodOptional<z.ZodArray<z.ZodObject<{
396
+ from: z.ZodString;
397
+ to: z.ZodString;
398
+ }, "strip", z.ZodTypeAny, {
399
+ from: string;
400
+ to: string;
401
+ }, {
402
+ from: string;
403
+ to: string;
404
+ }>, "many">>;
405
+ loop: z.ZodOptional<z.ZodObject<{
406
+ maxIterations: z.ZodDefault<z.ZodNumber>;
407
+ stopOnHalt: z.ZodDefault<z.ZodBoolean>;
408
+ }, "strip", z.ZodTypeAny, {
409
+ maxIterations: number;
410
+ stopOnHalt: boolean;
411
+ }, {
412
+ maxIterations?: number | undefined;
413
+ stopOnHalt?: boolean | undefined;
414
+ }>>;
415
+ resumeFromStep: z.ZodOptional<z.ZodUnion<[z.ZodNumber, z.ZodString]>>;
416
+ resumeFromNodeId: z.ZodOptional<z.ZodString>;
417
+ }, "strip", z.ZodTypeAny, {
418
+ workflowId: string;
419
+ steps?: {
420
+ prompt: string;
421
+ model: string;
422
+ id: string;
423
+ kind: "llm" | "http";
424
+ agentId: string;
425
+ output?: {
426
+ format: "text" | "json";
427
+ schema?: unknown;
428
+ } | undefined;
429
+ http?: {
430
+ url: string;
431
+ method: string;
432
+ allowMutations: boolean;
433
+ headers?: Record<string, string> | undefined;
434
+ body?: unknown;
435
+ timeoutMs?: number | undefined;
436
+ } | undefined;
437
+ conceptLabel?: string | null | undefined;
438
+ promptTemplate?: string | undefined;
439
+ chain?: {
440
+ mode: "auto_append" | "auto_replace" | "manual";
441
+ nextPromptPath?: string | undefined;
442
+ } | undefined;
443
+ retry?: {
444
+ attempts: number;
445
+ backoffMs: number;
446
+ } | undefined;
447
+ }[] | undefined;
448
+ nodes?: {
449
+ prompt: string;
450
+ model: string;
451
+ id: string;
452
+ kind: "llm" | "http";
453
+ agentId: string;
454
+ output?: {
455
+ format: "text" | "json";
456
+ schema?: unknown;
457
+ } | undefined;
458
+ http?: {
459
+ url: string;
460
+ method: string;
461
+ allowMutations: boolean;
462
+ headers?: Record<string, string> | undefined;
463
+ body?: unknown;
464
+ timeoutMs?: number | undefined;
465
+ } | undefined;
466
+ conceptLabel?: string | null | undefined;
467
+ promptTemplate?: string | undefined;
468
+ chain?: {
469
+ mode: "auto_append" | "auto_replace" | "manual";
470
+ nextPromptPath?: string | undefined;
471
+ } | undefined;
472
+ retry?: {
473
+ attempts: number;
474
+ backoffMs: number;
475
+ } | undefined;
476
+ }[] | undefined;
477
+ edges?: {
478
+ from: string;
479
+ to: string;
480
+ }[] | undefined;
481
+ loop?: {
482
+ maxIterations: number;
483
+ stopOnHalt: boolean;
484
+ } | undefined;
485
+ resumeFromStep?: string | number | undefined;
486
+ resumeFromNodeId?: string | undefined;
487
+ }, {
488
+ workflowId: string;
489
+ steps?: {
490
+ id: string;
491
+ agentId: string;
492
+ prompt?: string | undefined;
493
+ model?: string | undefined;
494
+ output?: {
495
+ format?: "text" | "json" | undefined;
496
+ schema?: unknown;
497
+ } | undefined;
498
+ http?: {
499
+ url: string;
500
+ method?: string | undefined;
501
+ allowMutations?: boolean | undefined;
502
+ headers?: Record<string, string> | undefined;
503
+ body?: unknown;
504
+ timeoutMs?: number | undefined;
505
+ } | undefined;
506
+ kind?: "llm" | "http" | undefined;
507
+ conceptLabel?: string | null | undefined;
508
+ promptTemplate?: string | undefined;
509
+ chain?: {
510
+ mode?: "auto_append" | "auto_replace" | "manual" | undefined;
511
+ nextPromptPath?: string | undefined;
512
+ } | undefined;
513
+ retry?: {
514
+ attempts?: number | undefined;
515
+ backoffMs?: number | undefined;
516
+ } | undefined;
517
+ }[] | undefined;
518
+ nodes?: {
519
+ id: string;
520
+ agentId: string;
521
+ prompt?: string | undefined;
522
+ model?: string | undefined;
523
+ output?: {
524
+ format?: "text" | "json" | undefined;
525
+ schema?: unknown;
526
+ } | undefined;
527
+ http?: {
528
+ url: string;
529
+ method?: string | undefined;
530
+ allowMutations?: boolean | undefined;
531
+ headers?: Record<string, string> | undefined;
532
+ body?: unknown;
533
+ timeoutMs?: number | undefined;
534
+ } | undefined;
535
+ kind?: "llm" | "http" | undefined;
536
+ conceptLabel?: string | null | undefined;
537
+ promptTemplate?: string | undefined;
538
+ chain?: {
539
+ mode?: "auto_append" | "auto_replace" | "manual" | undefined;
540
+ nextPromptPath?: string | undefined;
541
+ } | undefined;
542
+ retry?: {
543
+ attempts?: number | undefined;
544
+ backoffMs?: number | undefined;
545
+ } | undefined;
546
+ }[] | undefined;
547
+ edges?: {
548
+ from: string;
549
+ to: string;
550
+ }[] | undefined;
551
+ loop?: {
552
+ maxIterations?: number | undefined;
553
+ stopOnHalt?: boolean | undefined;
554
+ } | undefined;
555
+ resumeFromStep?: string | number | undefined;
556
+ resumeFromNodeId?: string | undefined;
557
+ }>, {
558
+ workflowId: string;
559
+ steps?: {
560
+ prompt: string;
561
+ model: string;
562
+ id: string;
563
+ kind: "llm" | "http";
564
+ agentId: string;
565
+ output?: {
566
+ format: "text" | "json";
567
+ schema?: unknown;
568
+ } | undefined;
569
+ http?: {
570
+ url: string;
571
+ method: string;
572
+ allowMutations: boolean;
573
+ headers?: Record<string, string> | undefined;
574
+ body?: unknown;
575
+ timeoutMs?: number | undefined;
576
+ } | undefined;
577
+ conceptLabel?: string | null | undefined;
578
+ promptTemplate?: string | undefined;
579
+ chain?: {
580
+ mode: "auto_append" | "auto_replace" | "manual";
581
+ nextPromptPath?: string | undefined;
582
+ } | undefined;
583
+ retry?: {
584
+ attempts: number;
585
+ backoffMs: number;
586
+ } | undefined;
587
+ }[] | undefined;
588
+ nodes?: {
589
+ prompt: string;
590
+ model: string;
591
+ id: string;
592
+ kind: "llm" | "http";
593
+ agentId: string;
594
+ output?: {
595
+ format: "text" | "json";
596
+ schema?: unknown;
597
+ } | undefined;
598
+ http?: {
599
+ url: string;
600
+ method: string;
601
+ allowMutations: boolean;
602
+ headers?: Record<string, string> | undefined;
603
+ body?: unknown;
604
+ timeoutMs?: number | undefined;
605
+ } | undefined;
606
+ conceptLabel?: string | null | undefined;
607
+ promptTemplate?: string | undefined;
608
+ chain?: {
609
+ mode: "auto_append" | "auto_replace" | "manual";
610
+ nextPromptPath?: string | undefined;
611
+ } | undefined;
612
+ retry?: {
613
+ attempts: number;
614
+ backoffMs: number;
615
+ } | undefined;
616
+ }[] | undefined;
617
+ edges?: {
618
+ from: string;
619
+ to: string;
620
+ }[] | undefined;
621
+ loop?: {
622
+ maxIterations: number;
623
+ stopOnHalt: boolean;
624
+ } | undefined;
625
+ resumeFromStep?: string | number | undefined;
626
+ resumeFromNodeId?: string | undefined;
627
+ }, {
628
+ workflowId: string;
629
+ steps?: {
630
+ id: string;
631
+ agentId: string;
632
+ prompt?: string | undefined;
633
+ model?: string | undefined;
634
+ output?: {
635
+ format?: "text" | "json" | undefined;
636
+ schema?: unknown;
637
+ } | undefined;
638
+ http?: {
639
+ url: string;
640
+ method?: string | undefined;
641
+ allowMutations?: boolean | undefined;
642
+ headers?: Record<string, string> | undefined;
643
+ body?: unknown;
644
+ timeoutMs?: number | undefined;
645
+ } | undefined;
646
+ kind?: "llm" | "http" | undefined;
647
+ conceptLabel?: string | null | undefined;
648
+ promptTemplate?: string | undefined;
649
+ chain?: {
650
+ mode?: "auto_append" | "auto_replace" | "manual" | undefined;
651
+ nextPromptPath?: string | undefined;
652
+ } | undefined;
653
+ retry?: {
654
+ attempts?: number | undefined;
655
+ backoffMs?: number | undefined;
656
+ } | undefined;
657
+ }[] | undefined;
658
+ nodes?: {
659
+ id: string;
660
+ agentId: string;
661
+ prompt?: string | undefined;
662
+ model?: string | undefined;
663
+ output?: {
664
+ format?: "text" | "json" | undefined;
665
+ schema?: unknown;
666
+ } | undefined;
667
+ http?: {
668
+ url: string;
669
+ method?: string | undefined;
670
+ allowMutations?: boolean | undefined;
671
+ headers?: Record<string, string> | undefined;
672
+ body?: unknown;
673
+ timeoutMs?: number | undefined;
674
+ } | undefined;
675
+ kind?: "llm" | "http" | undefined;
676
+ conceptLabel?: string | null | undefined;
677
+ promptTemplate?: string | undefined;
678
+ chain?: {
679
+ mode?: "auto_append" | "auto_replace" | "manual" | undefined;
680
+ nextPromptPath?: string | undefined;
681
+ } | undefined;
682
+ retry?: {
683
+ attempts?: number | undefined;
684
+ backoffMs?: number | undefined;
685
+ } | undefined;
686
+ }[] | undefined;
687
+ edges?: {
688
+ from: string;
689
+ to: string;
690
+ }[] | undefined;
691
+ loop?: {
692
+ maxIterations?: number | undefined;
693
+ stopOnHalt?: boolean | undefined;
694
+ } | undefined;
695
+ resumeFromStep?: string | number | undefined;
696
+ resumeFromNodeId?: string | undefined;
697
+ }>;
698
+ //# sourceMappingURL=workflow.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"workflow.d.ts","sourceRoot":"","sources":["../../src/schemas/workflow.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAOxB,eAAO,MAAM,iBAAiB;;;;;;;;;EAK5B,CAAC;AAKH,eAAO,MAAM,kBAAkB;;;;;;;;;EAG7B,CAAC;AAKH,eAAO,MAAM,gBAAgB;;;;;;;;;EAG3B,CAAC;AAGH,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA4CrB,CAAC;AAGH,eAAO,MAAM,UAAU;;;;;;;;;EAGrB,CAAC;AAGH,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAiB3B,CAAC"}