acpus 0.0.2 → 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 (47) hide show
  1. package/README.md +6 -103
  2. package/dist/catalog.d.ts +27 -0
  3. package/dist/catalog.d.ts.map +1 -0
  4. package/dist/catalog.js +189 -0
  5. package/dist/catalog.js.map +1 -0
  6. package/dist/follow.d.ts +23 -0
  7. package/dist/follow.d.ts.map +1 -0
  8. package/dist/follow.js +109 -0
  9. package/dist/follow.js.map +1 -0
  10. package/dist/index.d.ts +3 -0
  11. package/dist/index.d.ts.map +1 -0
  12. package/dist/index.js +414 -0
  13. package/dist/index.js.map +1 -0
  14. package/dist/io.d.ts +4 -0
  15. package/dist/io.d.ts.map +1 -0
  16. package/dist/io.js +38 -0
  17. package/dist/io.js.map +1 -0
  18. package/dist/observations.d.ts +26 -0
  19. package/dist/observations.d.ts.map +1 -0
  20. package/dist/observations.js +60 -0
  21. package/dist/observations.js.map +1 -0
  22. package/dist/output.d.ts +9 -0
  23. package/dist/output.d.ts.map +1 -0
  24. package/dist/output.js +51 -0
  25. package/dist/output.js.map +1 -0
  26. package/dist/runs-show.d.ts +5 -0
  27. package/dist/runs-show.d.ts.map +1 -0
  28. package/dist/runs-show.js +83 -0
  29. package/dist/runs-show.js.map +1 -0
  30. package/dist/supervisor-client.d.ts +9 -0
  31. package/dist/supervisor-client.d.ts.map +1 -0
  32. package/dist/supervisor-client.js +8 -0
  33. package/dist/supervisor-client.js.map +1 -0
  34. package/dist/supervisor.d.ts +18 -0
  35. package/dist/supervisor.d.ts.map +1 -0
  36. package/dist/supervisor.js +24 -0
  37. package/dist/supervisor.js.map +1 -0
  38. package/package.json +30 -44
  39. package/dist/cli.d.mts +0 -1
  40. package/dist/cli.mjs +0 -4017
  41. package/dist/index.d.mts +0 -2194
  42. package/dist/index.mjs +0 -243
  43. package/dist/monitor-app-CPlEcyHR.mjs +0 -369
  44. package/dist/monitor-rendering-LGr9Ebd_.mjs +0 -78
  45. package/dist/run-picker-app-utJ2f5CU.mjs +0 -104
  46. package/dist/run-workflow-DdIAC8Zu.mjs +0 -12922
  47. package/schemas/workflow-spec.schema.json +0 -2649
@@ -1,2649 +0,0 @@
1
- {
2
- "$schema": "https://json-schema.org/draft/2020-12/schema",
3
- "type": "object",
4
- "properties": {
5
- "schemaVersion": {
6
- "type": "string",
7
- "const": "acpus.workflow/v1"
8
- },
9
- "name": {
10
- "type": "string",
11
- "minLength": 1
12
- },
13
- "description": {
14
- "default": "",
15
- "type": "string"
16
- },
17
- "root": {
18
- "type": "string",
19
- "pattern": "^[A-Za-z_][A-Za-z0-9_-]*$"
20
- },
21
- "input": {
22
- "type": "object",
23
- "properties": {
24
- "schema": {
25
- "type": "string",
26
- "minLength": 1
27
- },
28
- "default": {
29
- "type": "object",
30
- "propertyNames": {
31
- "type": "string"
32
- },
33
- "additionalProperties": {}
34
- },
35
- "description": {
36
- "type": "string"
37
- }
38
- },
39
- "required": [
40
- "schema"
41
- ],
42
- "additionalProperties": false
43
- },
44
- "limits": {
45
- "default": {},
46
- "type": "object",
47
- "properties": {
48
- "stageTimeoutMinutes": {
49
- "anyOf": [
50
- {
51
- "type": "integer",
52
- "exclusiveMinimum": 0,
53
- "maximum": 9007199254740991
54
- },
55
- {
56
- "type": "object",
57
- "properties": {
58
- "source": {
59
- "type": "string",
60
- "minLength": 1
61
- },
62
- "default": {
63
- "type": "integer",
64
- "exclusiveMinimum": 0,
65
- "maximum": 9007199254740991
66
- }
67
- },
68
- "required": [
69
- "source"
70
- ],
71
- "additionalProperties": false
72
- }
73
- ]
74
- }
75
- },
76
- "additionalProperties": false
77
- },
78
- "stages": {
79
- "minItems": 1,
80
- "type": "array",
81
- "items": {
82
- "oneOf": [
83
- {
84
- "oneOf": [
85
- {
86
- "type": "object",
87
- "properties": {
88
- "id": {
89
- "type": "string",
90
- "pattern": "^[A-Za-z_][A-Za-z0-9_-]*$"
91
- },
92
- "dependsOn": {
93
- "type": "array",
94
- "items": {
95
- "type": "string",
96
- "pattern": "^[A-Za-z_][A-Za-z0-9_-]*$"
97
- }
98
- },
99
- "variables": {
100
- "type": "array",
101
- "items": {
102
- "type": "object",
103
- "properties": {
104
- "name": {
105
- "type": "string",
106
- "pattern": "^[A-Za-z_][A-Za-z0-9_]*$"
107
- },
108
- "source": {
109
- "type": "string",
110
- "minLength": 1
111
- },
112
- "transform": {
113
- "type": "array",
114
- "items": {
115
- "type": "object",
116
- "properties": {
117
- "fn": {
118
- "type": "string",
119
- "enum": [
120
- "compact",
121
- "tail",
122
- "json",
123
- "quoteBlock",
124
- "pathList",
125
- "filterSeverity",
126
- "severitySummary",
127
- "join",
128
- "default"
129
- ]
130
- },
131
- "args": {
132
- "type": "object",
133
- "propertyNames": {
134
- "type": "string"
135
- },
136
- "additionalProperties": {}
137
- }
138
- },
139
- "required": [
140
- "fn"
141
- ],
142
- "additionalProperties": false
143
- }
144
- }
145
- },
146
- "required": [
147
- "name",
148
- "source"
149
- ],
150
- "additionalProperties": false
151
- }
152
- },
153
- "limits": {
154
- "type": "object",
155
- "properties": {
156
- "stageTimeoutMinutes": {
157
- "anyOf": [
158
- {
159
- "type": "integer",
160
- "exclusiveMinimum": 0,
161
- "maximum": 9007199254740991
162
- },
163
- {
164
- "type": "object",
165
- "properties": {
166
- "source": {
167
- "type": "string",
168
- "minLength": 1
169
- },
170
- "default": {
171
- "type": "integer",
172
- "exclusiveMinimum": 0,
173
- "maximum": 9007199254740991
174
- }
175
- },
176
- "required": [
177
- "source"
178
- ],
179
- "additionalProperties": false
180
- }
181
- ]
182
- }
183
- },
184
- "additionalProperties": false
185
- },
186
- "kind": {
187
- "type": "string",
188
- "const": "task"
189
- },
190
- "mode": {
191
- "type": "string",
192
- "const": "agent"
193
- },
194
- "actor": {
195
- "type": "object",
196
- "properties": {
197
- "agent": {
198
- "type": "string",
199
- "minLength": 1
200
- },
201
- "mode": {
202
- "type": "string",
203
- "enum": [
204
- "denyAll",
205
- "readOnly",
206
- "edit"
207
- ]
208
- },
209
- "label": {
210
- "type": "string",
211
- "minLength": 1
212
- }
213
- },
214
- "required": [
215
- "agent",
216
- "mode"
217
- ],
218
- "additionalProperties": false
219
- },
220
- "prompt": {
221
- "type": "string",
222
- "minLength": 1
223
- },
224
- "output": {
225
- "type": "object",
226
- "properties": {
227
- "schema": {
228
- "type": "string",
229
- "minLength": 1
230
- }
231
- },
232
- "required": [
233
- "schema"
234
- ],
235
- "additionalProperties": false
236
- }
237
- },
238
- "required": [
239
- "id",
240
- "kind",
241
- "mode",
242
- "actor",
243
- "prompt"
244
- ],
245
- "additionalProperties": false
246
- },
247
- {
248
- "type": "object",
249
- "properties": {
250
- "id": {
251
- "type": "string",
252
- "pattern": "^[A-Za-z_][A-Za-z0-9_-]*$"
253
- },
254
- "dependsOn": {
255
- "type": "array",
256
- "items": {
257
- "type": "string",
258
- "pattern": "^[A-Za-z_][A-Za-z0-9_-]*$"
259
- }
260
- },
261
- "variables": {
262
- "type": "array",
263
- "items": {
264
- "type": "object",
265
- "properties": {
266
- "name": {
267
- "type": "string",
268
- "pattern": "^[A-Za-z_][A-Za-z0-9_]*$"
269
- },
270
- "source": {
271
- "type": "string",
272
- "minLength": 1
273
- },
274
- "transform": {
275
- "type": "array",
276
- "items": {
277
- "type": "object",
278
- "properties": {
279
- "fn": {
280
- "type": "string",
281
- "enum": [
282
- "compact",
283
- "tail",
284
- "json",
285
- "quoteBlock",
286
- "pathList",
287
- "filterSeverity",
288
- "severitySummary",
289
- "join",
290
- "default"
291
- ]
292
- },
293
- "args": {
294
- "type": "object",
295
- "propertyNames": {
296
- "type": "string"
297
- },
298
- "additionalProperties": {}
299
- }
300
- },
301
- "required": [
302
- "fn"
303
- ],
304
- "additionalProperties": false
305
- }
306
- }
307
- },
308
- "required": [
309
- "name",
310
- "source"
311
- ],
312
- "additionalProperties": false
313
- }
314
- },
315
- "limits": {
316
- "type": "object",
317
- "properties": {
318
- "stageTimeoutMinutes": {
319
- "anyOf": [
320
- {
321
- "type": "integer",
322
- "exclusiveMinimum": 0,
323
- "maximum": 9007199254740991
324
- },
325
- {
326
- "type": "object",
327
- "properties": {
328
- "source": {
329
- "type": "string",
330
- "minLength": 1
331
- },
332
- "default": {
333
- "type": "integer",
334
- "exclusiveMinimum": 0,
335
- "maximum": 9007199254740991
336
- }
337
- },
338
- "required": [
339
- "source"
340
- ],
341
- "additionalProperties": false
342
- }
343
- ]
344
- }
345
- },
346
- "additionalProperties": false
347
- },
348
- "kind": {
349
- "type": "string",
350
- "const": "task"
351
- },
352
- "mode": {
353
- "type": "string",
354
- "const": "program"
355
- },
356
- "operation": {
357
- "type": "string",
358
- "const": "command"
359
- },
360
- "command": {
361
- "type": "string",
362
- "minLength": 1
363
- },
364
- "args": {
365
- "default": [],
366
- "type": "array",
367
- "items": {
368
- "type": "string"
369
- }
370
- },
371
- "cwd": {
372
- "type": "string"
373
- },
374
- "timeoutSeconds": {
375
- "default": 60,
376
- "type": "integer",
377
- "exclusiveMinimum": 0,
378
- "maximum": 300
379
- },
380
- "allowMutation": {
381
- "default": false,
382
- "type": "boolean"
383
- }
384
- },
385
- "required": [
386
- "id",
387
- "kind",
388
- "mode",
389
- "operation",
390
- "command"
391
- ],
392
- "additionalProperties": false
393
- }
394
- ]
395
- },
396
- {
397
- "type": "object",
398
- "properties": {
399
- "id": {
400
- "type": "string",
401
- "pattern": "^[A-Za-z_][A-Za-z0-9_-]*$"
402
- },
403
- "dependsOn": {
404
- "type": "array",
405
- "items": {
406
- "type": "string",
407
- "pattern": "^[A-Za-z_][A-Za-z0-9_-]*$"
408
- }
409
- },
410
- "variables": {
411
- "type": "array",
412
- "items": {
413
- "type": "object",
414
- "properties": {
415
- "name": {
416
- "type": "string",
417
- "pattern": "^[A-Za-z_][A-Za-z0-9_]*$"
418
- },
419
- "source": {
420
- "type": "string",
421
- "minLength": 1
422
- },
423
- "transform": {
424
- "type": "array",
425
- "items": {
426
- "type": "object",
427
- "properties": {
428
- "fn": {
429
- "type": "string",
430
- "enum": [
431
- "compact",
432
- "tail",
433
- "json",
434
- "quoteBlock",
435
- "pathList",
436
- "filterSeverity",
437
- "severitySummary",
438
- "join",
439
- "default"
440
- ]
441
- },
442
- "args": {
443
- "type": "object",
444
- "propertyNames": {
445
- "type": "string"
446
- },
447
- "additionalProperties": {}
448
- }
449
- },
450
- "required": [
451
- "fn"
452
- ],
453
- "additionalProperties": false
454
- }
455
- }
456
- },
457
- "required": [
458
- "name",
459
- "source"
460
- ],
461
- "additionalProperties": false
462
- }
463
- },
464
- "limits": {
465
- "type": "object",
466
- "properties": {
467
- "maxConcurrency": {
468
- "anyOf": [
469
- {
470
- "type": "integer",
471
- "exclusiveMinimum": 0,
472
- "maximum": 9007199254740991
473
- },
474
- {
475
- "type": "object",
476
- "properties": {
477
- "source": {
478
- "type": "string",
479
- "minLength": 1
480
- },
481
- "default": {
482
- "type": "integer",
483
- "exclusiveMinimum": 0,
484
- "maximum": 9007199254740991
485
- }
486
- },
487
- "required": [
488
- "source"
489
- ],
490
- "additionalProperties": false
491
- }
492
- ]
493
- },
494
- "maxFanoutItems": {
495
- "anyOf": [
496
- {
497
- "type": "integer",
498
- "exclusiveMinimum": 0,
499
- "maximum": 9007199254740991
500
- },
501
- {
502
- "type": "object",
503
- "properties": {
504
- "source": {
505
- "type": "string",
506
- "minLength": 1
507
- },
508
- "default": {
509
- "type": "integer",
510
- "exclusiveMinimum": 0,
511
- "maximum": 9007199254740991
512
- }
513
- },
514
- "required": [
515
- "source"
516
- ],
517
- "additionalProperties": false
518
- }
519
- ]
520
- },
521
- "stageTimeoutMinutes": {
522
- "anyOf": [
523
- {
524
- "type": "integer",
525
- "exclusiveMinimum": 0,
526
- "maximum": 9007199254740991
527
- },
528
- {
529
- "type": "object",
530
- "properties": {
531
- "source": {
532
- "type": "string",
533
- "minLength": 1
534
- },
535
- "default": {
536
- "type": "integer",
537
- "exclusiveMinimum": 0,
538
- "maximum": 9007199254740991
539
- }
540
- },
541
- "required": [
542
- "source"
543
- ],
544
- "additionalProperties": false
545
- }
546
- ]
547
- }
548
- },
549
- "additionalProperties": false
550
- },
551
- "kind": {
552
- "type": "string",
553
- "const": "fanout"
554
- },
555
- "items": {
556
- "type": "object",
557
- "properties": {
558
- "source": {
559
- "type": "string",
560
- "minLength": 1
561
- }
562
- },
563
- "required": [
564
- "source"
565
- ],
566
- "additionalProperties": false
567
- },
568
- "prompt": {
569
- "type": "string",
570
- "minLength": 1
571
- },
572
- "lanes": {
573
- "minItems": 1,
574
- "type": "array",
575
- "items": {
576
- "type": "object",
577
- "properties": {
578
- "id": {
579
- "type": "string",
580
- "pattern": "^[A-Za-z_][A-Za-z0-9_-]*$"
581
- },
582
- "actor": {
583
- "type": "object",
584
- "properties": {
585
- "agent": {
586
- "type": "string",
587
- "minLength": 1
588
- },
589
- "mode": {
590
- "type": "string",
591
- "enum": [
592
- "denyAll",
593
- "readOnly",
594
- "edit"
595
- ]
596
- },
597
- "label": {
598
- "type": "string",
599
- "minLength": 1
600
- }
601
- },
602
- "required": [
603
- "agent",
604
- "mode"
605
- ],
606
- "additionalProperties": false
607
- },
608
- "prompt": {
609
- "type": "string",
610
- "minLength": 1
611
- },
612
- "when": {
613
- "$ref": "#/$defs/__schema0"
614
- },
615
- "output": {
616
- "type": "object",
617
- "properties": {
618
- "schema": {
619
- "type": "string",
620
- "minLength": 1
621
- }
622
- },
623
- "required": [
624
- "schema"
625
- ],
626
- "additionalProperties": false
627
- }
628
- },
629
- "required": [
630
- "id",
631
- "actor"
632
- ],
633
- "additionalProperties": false
634
- }
635
- },
636
- "fanin": {
637
- "oneOf": [
638
- {
639
- "type": "object",
640
- "properties": {
641
- "mode": {
642
- "type": "string",
643
- "const": "agent"
644
- },
645
- "actor": {
646
- "type": "object",
647
- "properties": {
648
- "agent": {
649
- "type": "string",
650
- "minLength": 1
651
- },
652
- "mode": {
653
- "type": "string",
654
- "enum": [
655
- "denyAll",
656
- "readOnly",
657
- "edit"
658
- ]
659
- },
660
- "label": {
661
- "type": "string",
662
- "minLength": 1
663
- }
664
- },
665
- "required": [
666
- "agent",
667
- "mode"
668
- ],
669
- "additionalProperties": false
670
- },
671
- "prompt": {
672
- "type": "string",
673
- "minLength": 1
674
- },
675
- "output": {
676
- "type": "object",
677
- "properties": {
678
- "schema": {
679
- "type": "string",
680
- "minLength": 1
681
- }
682
- },
683
- "required": [
684
- "schema"
685
- ],
686
- "additionalProperties": false
687
- }
688
- },
689
- "required": [
690
- "mode",
691
- "actor",
692
- "prompt"
693
- ],
694
- "additionalProperties": false
695
- },
696
- {
697
- "type": "object",
698
- "properties": {
699
- "mode": {
700
- "type": "string",
701
- "const": "program"
702
- },
703
- "operation": {
704
- "type": "string",
705
- "const": "mergeArrays"
706
- }
707
- },
708
- "required": [
709
- "mode",
710
- "operation"
711
- ],
712
- "additionalProperties": false
713
- }
714
- ]
715
- },
716
- "fanoutPolicy": {
717
- "type": "object",
718
- "properties": {
719
- "allowPartial": {
720
- "default": false,
721
- "type": "boolean"
722
- },
723
- "minCompletedRatio": {
724
- "type": "number",
725
- "minimum": 0,
726
- "maximum": 1
727
- },
728
- "maxBlockedItems": {
729
- "type": "integer",
730
- "minimum": 0,
731
- "maximum": 9007199254740991
732
- }
733
- },
734
- "additionalProperties": false
735
- }
736
- },
737
- "required": [
738
- "id",
739
- "kind",
740
- "items",
741
- "lanes",
742
- "fanin"
743
- ],
744
- "additionalProperties": false
745
- },
746
- {
747
- "type": "object",
748
- "properties": {
749
- "id": {
750
- "type": "string",
751
- "pattern": "^[A-Za-z_][A-Za-z0-9_-]*$"
752
- },
753
- "dependsOn": {
754
- "type": "array",
755
- "items": {
756
- "type": "string",
757
- "pattern": "^[A-Za-z_][A-Za-z0-9_-]*$"
758
- }
759
- },
760
- "variables": {
761
- "type": "array",
762
- "items": {
763
- "type": "object",
764
- "properties": {
765
- "name": {
766
- "type": "string",
767
- "pattern": "^[A-Za-z_][A-Za-z0-9_]*$"
768
- },
769
- "source": {
770
- "type": "string",
771
- "minLength": 1
772
- },
773
- "transform": {
774
- "type": "array",
775
- "items": {
776
- "type": "object",
777
- "properties": {
778
- "fn": {
779
- "type": "string",
780
- "enum": [
781
- "compact",
782
- "tail",
783
- "json",
784
- "quoteBlock",
785
- "pathList",
786
- "filterSeverity",
787
- "severitySummary",
788
- "join",
789
- "default"
790
- ]
791
- },
792
- "args": {
793
- "type": "object",
794
- "propertyNames": {
795
- "type": "string"
796
- },
797
- "additionalProperties": {}
798
- }
799
- },
800
- "required": [
801
- "fn"
802
- ],
803
- "additionalProperties": false
804
- }
805
- }
806
- },
807
- "required": [
808
- "name",
809
- "source"
810
- ],
811
- "additionalProperties": false
812
- }
813
- },
814
- "limits": {
815
- "type": "object",
816
- "properties": {
817
- "stageTimeoutMinutes": {
818
- "anyOf": [
819
- {
820
- "type": "integer",
821
- "exclusiveMinimum": 0,
822
- "maximum": 9007199254740991
823
- },
824
- {
825
- "type": "object",
826
- "properties": {
827
- "source": {
828
- "type": "string",
829
- "minLength": 1
830
- },
831
- "default": {
832
- "type": "integer",
833
- "exclusiveMinimum": 0,
834
- "maximum": 9007199254740991
835
- }
836
- },
837
- "required": [
838
- "source"
839
- ],
840
- "additionalProperties": false
841
- }
842
- ]
843
- }
844
- },
845
- "additionalProperties": false
846
- },
847
- "kind": {
848
- "type": "string",
849
- "const": "loop"
850
- },
851
- "maxRounds": {
852
- "type": "integer",
853
- "exclusiveMinimum": 0,
854
- "maximum": 9007199254740991
855
- },
856
- "body": {
857
- "type": "object",
858
- "properties": {
859
- "root": {
860
- "type": "string",
861
- "pattern": "^[A-Za-z_][A-Za-z0-9_-]*$"
862
- },
863
- "output": {
864
- "type": "string",
865
- "pattern": "^[A-Za-z_][A-Za-z0-9_-]*$"
866
- },
867
- "stages": {
868
- "minItems": 1,
869
- "type": "array",
870
- "items": {
871
- "oneOf": [
872
- {
873
- "oneOf": [
874
- {
875
- "type": "object",
876
- "properties": {
877
- "id": {
878
- "type": "string",
879
- "pattern": "^[A-Za-z_][A-Za-z0-9_-]*$"
880
- },
881
- "dependsOn": {
882
- "type": "array",
883
- "items": {
884
- "type": "string",
885
- "pattern": "^[A-Za-z_][A-Za-z0-9_-]*$"
886
- }
887
- },
888
- "variables": {
889
- "type": "array",
890
- "items": {
891
- "type": "object",
892
- "properties": {
893
- "name": {
894
- "type": "string",
895
- "pattern": "^[A-Za-z_][A-Za-z0-9_]*$"
896
- },
897
- "source": {
898
- "type": "string",
899
- "minLength": 1
900
- },
901
- "transform": {
902
- "type": "array",
903
- "items": {
904
- "type": "object",
905
- "properties": {
906
- "fn": {
907
- "type": "string",
908
- "enum": [
909
- "compact",
910
- "tail",
911
- "json",
912
- "quoteBlock",
913
- "pathList",
914
- "filterSeverity",
915
- "severitySummary",
916
- "join",
917
- "default"
918
- ]
919
- },
920
- "args": {
921
- "type": "object",
922
- "propertyNames": {
923
- "type": "string"
924
- },
925
- "additionalProperties": {}
926
- }
927
- },
928
- "required": [
929
- "fn"
930
- ],
931
- "additionalProperties": false
932
- }
933
- }
934
- },
935
- "required": [
936
- "name",
937
- "source"
938
- ],
939
- "additionalProperties": false
940
- }
941
- },
942
- "limits": {
943
- "type": "object",
944
- "properties": {
945
- "stageTimeoutMinutes": {
946
- "anyOf": [
947
- {
948
- "type": "integer",
949
- "exclusiveMinimum": 0,
950
- "maximum": 9007199254740991
951
- },
952
- {
953
- "type": "object",
954
- "properties": {
955
- "source": {
956
- "type": "string",
957
- "minLength": 1
958
- },
959
- "default": {
960
- "type": "integer",
961
- "exclusiveMinimum": 0,
962
- "maximum": 9007199254740991
963
- }
964
- },
965
- "required": [
966
- "source"
967
- ],
968
- "additionalProperties": false
969
- }
970
- ]
971
- }
972
- },
973
- "additionalProperties": false
974
- },
975
- "kind": {
976
- "type": "string",
977
- "const": "task"
978
- },
979
- "mode": {
980
- "type": "string",
981
- "const": "agent"
982
- },
983
- "actor": {
984
- "type": "object",
985
- "properties": {
986
- "agent": {
987
- "type": "string",
988
- "minLength": 1
989
- },
990
- "mode": {
991
- "type": "string",
992
- "enum": [
993
- "denyAll",
994
- "readOnly",
995
- "edit"
996
- ]
997
- },
998
- "label": {
999
- "type": "string",
1000
- "minLength": 1
1001
- }
1002
- },
1003
- "required": [
1004
- "agent",
1005
- "mode"
1006
- ],
1007
- "additionalProperties": false
1008
- },
1009
- "prompt": {
1010
- "type": "string",
1011
- "minLength": 1
1012
- },
1013
- "output": {
1014
- "type": "object",
1015
- "properties": {
1016
- "schema": {
1017
- "type": "string",
1018
- "minLength": 1
1019
- }
1020
- },
1021
- "required": [
1022
- "schema"
1023
- ],
1024
- "additionalProperties": false
1025
- }
1026
- },
1027
- "required": [
1028
- "id",
1029
- "kind",
1030
- "mode",
1031
- "actor",
1032
- "prompt"
1033
- ],
1034
- "additionalProperties": false
1035
- },
1036
- {
1037
- "type": "object",
1038
- "properties": {
1039
- "id": {
1040
- "type": "string",
1041
- "pattern": "^[A-Za-z_][A-Za-z0-9_-]*$"
1042
- },
1043
- "dependsOn": {
1044
- "type": "array",
1045
- "items": {
1046
- "type": "string",
1047
- "pattern": "^[A-Za-z_][A-Za-z0-9_-]*$"
1048
- }
1049
- },
1050
- "variables": {
1051
- "type": "array",
1052
- "items": {
1053
- "type": "object",
1054
- "properties": {
1055
- "name": {
1056
- "type": "string",
1057
- "pattern": "^[A-Za-z_][A-Za-z0-9_]*$"
1058
- },
1059
- "source": {
1060
- "type": "string",
1061
- "minLength": 1
1062
- },
1063
- "transform": {
1064
- "type": "array",
1065
- "items": {
1066
- "type": "object",
1067
- "properties": {
1068
- "fn": {
1069
- "type": "string",
1070
- "enum": [
1071
- "compact",
1072
- "tail",
1073
- "json",
1074
- "quoteBlock",
1075
- "pathList",
1076
- "filterSeverity",
1077
- "severitySummary",
1078
- "join",
1079
- "default"
1080
- ]
1081
- },
1082
- "args": {
1083
- "type": "object",
1084
- "propertyNames": {
1085
- "type": "string"
1086
- },
1087
- "additionalProperties": {}
1088
- }
1089
- },
1090
- "required": [
1091
- "fn"
1092
- ],
1093
- "additionalProperties": false
1094
- }
1095
- }
1096
- },
1097
- "required": [
1098
- "name",
1099
- "source"
1100
- ],
1101
- "additionalProperties": false
1102
- }
1103
- },
1104
- "limits": {
1105
- "type": "object",
1106
- "properties": {
1107
- "stageTimeoutMinutes": {
1108
- "anyOf": [
1109
- {
1110
- "type": "integer",
1111
- "exclusiveMinimum": 0,
1112
- "maximum": 9007199254740991
1113
- },
1114
- {
1115
- "type": "object",
1116
- "properties": {
1117
- "source": {
1118
- "type": "string",
1119
- "minLength": 1
1120
- },
1121
- "default": {
1122
- "type": "integer",
1123
- "exclusiveMinimum": 0,
1124
- "maximum": 9007199254740991
1125
- }
1126
- },
1127
- "required": [
1128
- "source"
1129
- ],
1130
- "additionalProperties": false
1131
- }
1132
- ]
1133
- }
1134
- },
1135
- "additionalProperties": false
1136
- },
1137
- "kind": {
1138
- "type": "string",
1139
- "const": "task"
1140
- },
1141
- "mode": {
1142
- "type": "string",
1143
- "const": "program"
1144
- },
1145
- "operation": {
1146
- "type": "string",
1147
- "const": "command"
1148
- },
1149
- "command": {
1150
- "type": "string",
1151
- "minLength": 1
1152
- },
1153
- "args": {
1154
- "default": [],
1155
- "type": "array",
1156
- "items": {
1157
- "type": "string"
1158
- }
1159
- },
1160
- "cwd": {
1161
- "type": "string"
1162
- },
1163
- "timeoutSeconds": {
1164
- "default": 60,
1165
- "type": "integer",
1166
- "exclusiveMinimum": 0,
1167
- "maximum": 300
1168
- },
1169
- "allowMutation": {
1170
- "default": false,
1171
- "type": "boolean"
1172
- }
1173
- },
1174
- "required": [
1175
- "id",
1176
- "kind",
1177
- "mode",
1178
- "operation",
1179
- "command"
1180
- ],
1181
- "additionalProperties": false
1182
- }
1183
- ]
1184
- },
1185
- {
1186
- "type": "object",
1187
- "properties": {
1188
- "id": {
1189
- "type": "string",
1190
- "pattern": "^[A-Za-z_][A-Za-z0-9_-]*$"
1191
- },
1192
- "dependsOn": {
1193
- "type": "array",
1194
- "items": {
1195
- "type": "string",
1196
- "pattern": "^[A-Za-z_][A-Za-z0-9_-]*$"
1197
- }
1198
- },
1199
- "variables": {
1200
- "type": "array",
1201
- "items": {
1202
- "type": "object",
1203
- "properties": {
1204
- "name": {
1205
- "type": "string",
1206
- "pattern": "^[A-Za-z_][A-Za-z0-9_]*$"
1207
- },
1208
- "source": {
1209
- "type": "string",
1210
- "minLength": 1
1211
- },
1212
- "transform": {
1213
- "type": "array",
1214
- "items": {
1215
- "type": "object",
1216
- "properties": {
1217
- "fn": {
1218
- "type": "string",
1219
- "enum": [
1220
- "compact",
1221
- "tail",
1222
- "json",
1223
- "quoteBlock",
1224
- "pathList",
1225
- "filterSeverity",
1226
- "severitySummary",
1227
- "join",
1228
- "default"
1229
- ]
1230
- },
1231
- "args": {
1232
- "type": "object",
1233
- "propertyNames": {
1234
- "type": "string"
1235
- },
1236
- "additionalProperties": {}
1237
- }
1238
- },
1239
- "required": [
1240
- "fn"
1241
- ],
1242
- "additionalProperties": false
1243
- }
1244
- }
1245
- },
1246
- "required": [
1247
- "name",
1248
- "source"
1249
- ],
1250
- "additionalProperties": false
1251
- }
1252
- },
1253
- "limits": {
1254
- "type": "object",
1255
- "properties": {
1256
- "maxConcurrency": {
1257
- "anyOf": [
1258
- {
1259
- "type": "integer",
1260
- "exclusiveMinimum": 0,
1261
- "maximum": 9007199254740991
1262
- },
1263
- {
1264
- "type": "object",
1265
- "properties": {
1266
- "source": {
1267
- "type": "string",
1268
- "minLength": 1
1269
- },
1270
- "default": {
1271
- "type": "integer",
1272
- "exclusiveMinimum": 0,
1273
- "maximum": 9007199254740991
1274
- }
1275
- },
1276
- "required": [
1277
- "source"
1278
- ],
1279
- "additionalProperties": false
1280
- }
1281
- ]
1282
- },
1283
- "maxFanoutItems": {
1284
- "anyOf": [
1285
- {
1286
- "type": "integer",
1287
- "exclusiveMinimum": 0,
1288
- "maximum": 9007199254740991
1289
- },
1290
- {
1291
- "type": "object",
1292
- "properties": {
1293
- "source": {
1294
- "type": "string",
1295
- "minLength": 1
1296
- },
1297
- "default": {
1298
- "type": "integer",
1299
- "exclusiveMinimum": 0,
1300
- "maximum": 9007199254740991
1301
- }
1302
- },
1303
- "required": [
1304
- "source"
1305
- ],
1306
- "additionalProperties": false
1307
- }
1308
- ]
1309
- },
1310
- "stageTimeoutMinutes": {
1311
- "anyOf": [
1312
- {
1313
- "type": "integer",
1314
- "exclusiveMinimum": 0,
1315
- "maximum": 9007199254740991
1316
- },
1317
- {
1318
- "type": "object",
1319
- "properties": {
1320
- "source": {
1321
- "type": "string",
1322
- "minLength": 1
1323
- },
1324
- "default": {
1325
- "type": "integer",
1326
- "exclusiveMinimum": 0,
1327
- "maximum": 9007199254740991
1328
- }
1329
- },
1330
- "required": [
1331
- "source"
1332
- ],
1333
- "additionalProperties": false
1334
- }
1335
- ]
1336
- }
1337
- },
1338
- "additionalProperties": false
1339
- },
1340
- "kind": {
1341
- "type": "string",
1342
- "const": "fanout"
1343
- },
1344
- "items": {
1345
- "type": "object",
1346
- "properties": {
1347
- "source": {
1348
- "type": "string",
1349
- "minLength": 1
1350
- }
1351
- },
1352
- "required": [
1353
- "source"
1354
- ],
1355
- "additionalProperties": false
1356
- },
1357
- "prompt": {
1358
- "type": "string",
1359
- "minLength": 1
1360
- },
1361
- "lanes": {
1362
- "minItems": 1,
1363
- "type": "array",
1364
- "items": {
1365
- "type": "object",
1366
- "properties": {
1367
- "id": {
1368
- "type": "string",
1369
- "pattern": "^[A-Za-z_][A-Za-z0-9_-]*$"
1370
- },
1371
- "actor": {
1372
- "type": "object",
1373
- "properties": {
1374
- "agent": {
1375
- "type": "string",
1376
- "minLength": 1
1377
- },
1378
- "mode": {
1379
- "type": "string",
1380
- "enum": [
1381
- "denyAll",
1382
- "readOnly",
1383
- "edit"
1384
- ]
1385
- },
1386
- "label": {
1387
- "type": "string",
1388
- "minLength": 1
1389
- }
1390
- },
1391
- "required": [
1392
- "agent",
1393
- "mode"
1394
- ],
1395
- "additionalProperties": false
1396
- },
1397
- "prompt": {
1398
- "type": "string",
1399
- "minLength": 1
1400
- },
1401
- "when": {
1402
- "$ref": "#/$defs/__schema0"
1403
- },
1404
- "output": {
1405
- "type": "object",
1406
- "properties": {
1407
- "schema": {
1408
- "type": "string",
1409
- "minLength": 1
1410
- }
1411
- },
1412
- "required": [
1413
- "schema"
1414
- ],
1415
- "additionalProperties": false
1416
- }
1417
- },
1418
- "required": [
1419
- "id",
1420
- "actor"
1421
- ],
1422
- "additionalProperties": false
1423
- }
1424
- },
1425
- "fanin": {
1426
- "oneOf": [
1427
- {
1428
- "type": "object",
1429
- "properties": {
1430
- "mode": {
1431
- "type": "string",
1432
- "const": "agent"
1433
- },
1434
- "actor": {
1435
- "type": "object",
1436
- "properties": {
1437
- "agent": {
1438
- "type": "string",
1439
- "minLength": 1
1440
- },
1441
- "mode": {
1442
- "type": "string",
1443
- "enum": [
1444
- "denyAll",
1445
- "readOnly",
1446
- "edit"
1447
- ]
1448
- },
1449
- "label": {
1450
- "type": "string",
1451
- "minLength": 1
1452
- }
1453
- },
1454
- "required": [
1455
- "agent",
1456
- "mode"
1457
- ],
1458
- "additionalProperties": false
1459
- },
1460
- "prompt": {
1461
- "type": "string",
1462
- "minLength": 1
1463
- },
1464
- "output": {
1465
- "type": "object",
1466
- "properties": {
1467
- "schema": {
1468
- "type": "string",
1469
- "minLength": 1
1470
- }
1471
- },
1472
- "required": [
1473
- "schema"
1474
- ],
1475
- "additionalProperties": false
1476
- }
1477
- },
1478
- "required": [
1479
- "mode",
1480
- "actor",
1481
- "prompt"
1482
- ],
1483
- "additionalProperties": false
1484
- },
1485
- {
1486
- "type": "object",
1487
- "properties": {
1488
- "mode": {
1489
- "type": "string",
1490
- "const": "program"
1491
- },
1492
- "operation": {
1493
- "type": "string",
1494
- "const": "mergeArrays"
1495
- }
1496
- },
1497
- "required": [
1498
- "mode",
1499
- "operation"
1500
- ],
1501
- "additionalProperties": false
1502
- }
1503
- ]
1504
- },
1505
- "fanoutPolicy": {
1506
- "type": "object",
1507
- "properties": {
1508
- "allowPartial": {
1509
- "default": false,
1510
- "type": "boolean"
1511
- },
1512
- "minCompletedRatio": {
1513
- "type": "number",
1514
- "minimum": 0,
1515
- "maximum": 1
1516
- },
1517
- "maxBlockedItems": {
1518
- "type": "integer",
1519
- "minimum": 0,
1520
- "maximum": 9007199254740991
1521
- }
1522
- },
1523
- "additionalProperties": false
1524
- }
1525
- },
1526
- "required": [
1527
- "id",
1528
- "kind",
1529
- "items",
1530
- "lanes",
1531
- "fanin"
1532
- ],
1533
- "additionalProperties": false
1534
- },
1535
- {
1536
- "oneOf": [
1537
- {
1538
- "type": "object",
1539
- "properties": {
1540
- "id": {
1541
- "type": "string",
1542
- "pattern": "^[A-Za-z_][A-Za-z0-9_-]*$"
1543
- },
1544
- "dependsOn": {
1545
- "type": "array",
1546
- "items": {
1547
- "type": "string",
1548
- "pattern": "^[A-Za-z_][A-Za-z0-9_-]*$"
1549
- }
1550
- },
1551
- "variables": {
1552
- "type": "array",
1553
- "items": {
1554
- "type": "object",
1555
- "properties": {
1556
- "name": {
1557
- "type": "string",
1558
- "pattern": "^[A-Za-z_][A-Za-z0-9_]*$"
1559
- },
1560
- "source": {
1561
- "type": "string",
1562
- "minLength": 1
1563
- },
1564
- "transform": {
1565
- "type": "array",
1566
- "items": {
1567
- "type": "object",
1568
- "properties": {
1569
- "fn": {
1570
- "type": "string",
1571
- "enum": [
1572
- "compact",
1573
- "tail",
1574
- "json",
1575
- "quoteBlock",
1576
- "pathList",
1577
- "filterSeverity",
1578
- "severitySummary",
1579
- "join",
1580
- "default"
1581
- ]
1582
- },
1583
- "args": {
1584
- "type": "object",
1585
- "propertyNames": {
1586
- "type": "string"
1587
- },
1588
- "additionalProperties": {}
1589
- }
1590
- },
1591
- "required": [
1592
- "fn"
1593
- ],
1594
- "additionalProperties": false
1595
- }
1596
- }
1597
- },
1598
- "required": [
1599
- "name",
1600
- "source"
1601
- ],
1602
- "additionalProperties": false
1603
- }
1604
- },
1605
- "limits": {
1606
- "type": "object",
1607
- "properties": {
1608
- "stageTimeoutMinutes": {
1609
- "anyOf": [
1610
- {
1611
- "type": "integer",
1612
- "exclusiveMinimum": 0,
1613
- "maximum": 9007199254740991
1614
- },
1615
- {
1616
- "type": "object",
1617
- "properties": {
1618
- "source": {
1619
- "type": "string",
1620
- "minLength": 1
1621
- },
1622
- "default": {
1623
- "type": "integer",
1624
- "exclusiveMinimum": 0,
1625
- "maximum": 9007199254740991
1626
- }
1627
- },
1628
- "required": [
1629
- "source"
1630
- ],
1631
- "additionalProperties": false
1632
- }
1633
- ]
1634
- }
1635
- },
1636
- "additionalProperties": false
1637
- },
1638
- "kind": {
1639
- "type": "string",
1640
- "const": "route"
1641
- },
1642
- "mode": {
1643
- "type": "string",
1644
- "const": "program"
1645
- },
1646
- "rules": {
1647
- "minItems": 1,
1648
- "type": "array",
1649
- "items": {
1650
- "type": "object",
1651
- "properties": {
1652
- "when": {
1653
- "$ref": "#/$defs/__schema0"
1654
- },
1655
- "to": {
1656
- "type": "string",
1657
- "pattern": "^[A-Za-z_][A-Za-z0-9_-]*$"
1658
- }
1659
- },
1660
- "required": [
1661
- "when",
1662
- "to"
1663
- ],
1664
- "additionalProperties": false
1665
- }
1666
- },
1667
- "routes": {
1668
- "minItems": 1,
1669
- "type": "array",
1670
- "items": {
1671
- "type": "string",
1672
- "pattern": "^[A-Za-z_][A-Za-z0-9_-]*$"
1673
- }
1674
- }
1675
- },
1676
- "required": [
1677
- "id",
1678
- "kind",
1679
- "mode",
1680
- "rules",
1681
- "routes"
1682
- ],
1683
- "additionalProperties": false
1684
- },
1685
- {
1686
- "type": "object",
1687
- "properties": {
1688
- "id": {
1689
- "type": "string",
1690
- "pattern": "^[A-Za-z_][A-Za-z0-9_-]*$"
1691
- },
1692
- "dependsOn": {
1693
- "type": "array",
1694
- "items": {
1695
- "type": "string",
1696
- "pattern": "^[A-Za-z_][A-Za-z0-9_-]*$"
1697
- }
1698
- },
1699
- "variables": {
1700
- "type": "array",
1701
- "items": {
1702
- "type": "object",
1703
- "properties": {
1704
- "name": {
1705
- "type": "string",
1706
- "pattern": "^[A-Za-z_][A-Za-z0-9_]*$"
1707
- },
1708
- "source": {
1709
- "type": "string",
1710
- "minLength": 1
1711
- },
1712
- "transform": {
1713
- "type": "array",
1714
- "items": {
1715
- "type": "object",
1716
- "properties": {
1717
- "fn": {
1718
- "type": "string",
1719
- "enum": [
1720
- "compact",
1721
- "tail",
1722
- "json",
1723
- "quoteBlock",
1724
- "pathList",
1725
- "filterSeverity",
1726
- "severitySummary",
1727
- "join",
1728
- "default"
1729
- ]
1730
- },
1731
- "args": {
1732
- "type": "object",
1733
- "propertyNames": {
1734
- "type": "string"
1735
- },
1736
- "additionalProperties": {}
1737
- }
1738
- },
1739
- "required": [
1740
- "fn"
1741
- ],
1742
- "additionalProperties": false
1743
- }
1744
- }
1745
- },
1746
- "required": [
1747
- "name",
1748
- "source"
1749
- ],
1750
- "additionalProperties": false
1751
- }
1752
- },
1753
- "limits": {
1754
- "type": "object",
1755
- "properties": {
1756
- "stageTimeoutMinutes": {
1757
- "anyOf": [
1758
- {
1759
- "type": "integer",
1760
- "exclusiveMinimum": 0,
1761
- "maximum": 9007199254740991
1762
- },
1763
- {
1764
- "type": "object",
1765
- "properties": {
1766
- "source": {
1767
- "type": "string",
1768
- "minLength": 1
1769
- },
1770
- "default": {
1771
- "type": "integer",
1772
- "exclusiveMinimum": 0,
1773
- "maximum": 9007199254740991
1774
- }
1775
- },
1776
- "required": [
1777
- "source"
1778
- ],
1779
- "additionalProperties": false
1780
- }
1781
- ]
1782
- }
1783
- },
1784
- "additionalProperties": false
1785
- },
1786
- "kind": {
1787
- "type": "string",
1788
- "const": "route"
1789
- },
1790
- "mode": {
1791
- "type": "string",
1792
- "const": "agent"
1793
- },
1794
- "rules": {
1795
- "minItems": 1,
1796
- "type": "array",
1797
- "items": {
1798
- "type": "object",
1799
- "properties": {
1800
- "when": {
1801
- "$ref": "#/$defs/__schema0"
1802
- },
1803
- "to": {
1804
- "type": "string",
1805
- "pattern": "^[A-Za-z_][A-Za-z0-9_-]*$"
1806
- }
1807
- },
1808
- "required": [
1809
- "when",
1810
- "to"
1811
- ],
1812
- "additionalProperties": false
1813
- }
1814
- },
1815
- "routes": {
1816
- "minItems": 1,
1817
- "type": "array",
1818
- "items": {
1819
- "type": "string",
1820
- "pattern": "^[A-Za-z_][A-Za-z0-9_-]*$"
1821
- }
1822
- },
1823
- "actor": {
1824
- "type": "object",
1825
- "properties": {
1826
- "agent": {
1827
- "type": "string",
1828
- "minLength": 1
1829
- },
1830
- "mode": {
1831
- "type": "string",
1832
- "enum": [
1833
- "denyAll",
1834
- "readOnly",
1835
- "edit"
1836
- ]
1837
- },
1838
- "label": {
1839
- "type": "string",
1840
- "minLength": 1
1841
- }
1842
- },
1843
- "required": [
1844
- "agent",
1845
- "mode"
1846
- ],
1847
- "additionalProperties": false
1848
- },
1849
- "prompt": {
1850
- "type": "string",
1851
- "minLength": 1
1852
- }
1853
- },
1854
- "required": [
1855
- "id",
1856
- "kind",
1857
- "mode",
1858
- "rules",
1859
- "routes",
1860
- "actor",
1861
- "prompt"
1862
- ],
1863
- "additionalProperties": false
1864
- }
1865
- ]
1866
- }
1867
- ]
1868
- }
1869
- }
1870
- },
1871
- "required": [
1872
- "root",
1873
- "output",
1874
- "stages"
1875
- ],
1876
- "additionalProperties": false
1877
- },
1878
- "continueWhen": {
1879
- "$ref": "#/$defs/__schema0"
1880
- },
1881
- "onExhausted": {
1882
- "type": "string",
1883
- "const": "blocked"
1884
- }
1885
- },
1886
- "required": [
1887
- "id",
1888
- "kind",
1889
- "maxRounds",
1890
- "body",
1891
- "continueWhen",
1892
- "onExhausted"
1893
- ],
1894
- "additionalProperties": false
1895
- },
1896
- {
1897
- "oneOf": [
1898
- {
1899
- "type": "object",
1900
- "properties": {
1901
- "id": {
1902
- "type": "string",
1903
- "pattern": "^[A-Za-z_][A-Za-z0-9_-]*$"
1904
- },
1905
- "dependsOn": {
1906
- "type": "array",
1907
- "items": {
1908
- "type": "string",
1909
- "pattern": "^[A-Za-z_][A-Za-z0-9_-]*$"
1910
- }
1911
- },
1912
- "variables": {
1913
- "type": "array",
1914
- "items": {
1915
- "type": "object",
1916
- "properties": {
1917
- "name": {
1918
- "type": "string",
1919
- "pattern": "^[A-Za-z_][A-Za-z0-9_]*$"
1920
- },
1921
- "source": {
1922
- "type": "string",
1923
- "minLength": 1
1924
- },
1925
- "transform": {
1926
- "type": "array",
1927
- "items": {
1928
- "type": "object",
1929
- "properties": {
1930
- "fn": {
1931
- "type": "string",
1932
- "enum": [
1933
- "compact",
1934
- "tail",
1935
- "json",
1936
- "quoteBlock",
1937
- "pathList",
1938
- "filterSeverity",
1939
- "severitySummary",
1940
- "join",
1941
- "default"
1942
- ]
1943
- },
1944
- "args": {
1945
- "type": "object",
1946
- "propertyNames": {
1947
- "type": "string"
1948
- },
1949
- "additionalProperties": {}
1950
- }
1951
- },
1952
- "required": [
1953
- "fn"
1954
- ],
1955
- "additionalProperties": false
1956
- }
1957
- }
1958
- },
1959
- "required": [
1960
- "name",
1961
- "source"
1962
- ],
1963
- "additionalProperties": false
1964
- }
1965
- },
1966
- "limits": {
1967
- "type": "object",
1968
- "properties": {
1969
- "stageTimeoutMinutes": {
1970
- "anyOf": [
1971
- {
1972
- "type": "integer",
1973
- "exclusiveMinimum": 0,
1974
- "maximum": 9007199254740991
1975
- },
1976
- {
1977
- "type": "object",
1978
- "properties": {
1979
- "source": {
1980
- "type": "string",
1981
- "minLength": 1
1982
- },
1983
- "default": {
1984
- "type": "integer",
1985
- "exclusiveMinimum": 0,
1986
- "maximum": 9007199254740991
1987
- }
1988
- },
1989
- "required": [
1990
- "source"
1991
- ],
1992
- "additionalProperties": false
1993
- }
1994
- ]
1995
- }
1996
- },
1997
- "additionalProperties": false
1998
- },
1999
- "kind": {
2000
- "type": "string",
2001
- "const": "route"
2002
- },
2003
- "mode": {
2004
- "type": "string",
2005
- "const": "program"
2006
- },
2007
- "rules": {
2008
- "minItems": 1,
2009
- "type": "array",
2010
- "items": {
2011
- "type": "object",
2012
- "properties": {
2013
- "when": {
2014
- "$ref": "#/$defs/__schema0"
2015
- },
2016
- "to": {
2017
- "type": "string",
2018
- "pattern": "^[A-Za-z_][A-Za-z0-9_-]*$"
2019
- }
2020
- },
2021
- "required": [
2022
- "when",
2023
- "to"
2024
- ],
2025
- "additionalProperties": false
2026
- }
2027
- },
2028
- "routes": {
2029
- "minItems": 1,
2030
- "type": "array",
2031
- "items": {
2032
- "type": "string",
2033
- "pattern": "^[A-Za-z_][A-Za-z0-9_-]*$"
2034
- }
2035
- }
2036
- },
2037
- "required": [
2038
- "id",
2039
- "kind",
2040
- "mode",
2041
- "rules",
2042
- "routes"
2043
- ],
2044
- "additionalProperties": false
2045
- },
2046
- {
2047
- "type": "object",
2048
- "properties": {
2049
- "id": {
2050
- "type": "string",
2051
- "pattern": "^[A-Za-z_][A-Za-z0-9_-]*$"
2052
- },
2053
- "dependsOn": {
2054
- "type": "array",
2055
- "items": {
2056
- "type": "string",
2057
- "pattern": "^[A-Za-z_][A-Za-z0-9_-]*$"
2058
- }
2059
- },
2060
- "variables": {
2061
- "type": "array",
2062
- "items": {
2063
- "type": "object",
2064
- "properties": {
2065
- "name": {
2066
- "type": "string",
2067
- "pattern": "^[A-Za-z_][A-Za-z0-9_]*$"
2068
- },
2069
- "source": {
2070
- "type": "string",
2071
- "minLength": 1
2072
- },
2073
- "transform": {
2074
- "type": "array",
2075
- "items": {
2076
- "type": "object",
2077
- "properties": {
2078
- "fn": {
2079
- "type": "string",
2080
- "enum": [
2081
- "compact",
2082
- "tail",
2083
- "json",
2084
- "quoteBlock",
2085
- "pathList",
2086
- "filterSeverity",
2087
- "severitySummary",
2088
- "join",
2089
- "default"
2090
- ]
2091
- },
2092
- "args": {
2093
- "type": "object",
2094
- "propertyNames": {
2095
- "type": "string"
2096
- },
2097
- "additionalProperties": {}
2098
- }
2099
- },
2100
- "required": [
2101
- "fn"
2102
- ],
2103
- "additionalProperties": false
2104
- }
2105
- }
2106
- },
2107
- "required": [
2108
- "name",
2109
- "source"
2110
- ],
2111
- "additionalProperties": false
2112
- }
2113
- },
2114
- "limits": {
2115
- "type": "object",
2116
- "properties": {
2117
- "stageTimeoutMinutes": {
2118
- "anyOf": [
2119
- {
2120
- "type": "integer",
2121
- "exclusiveMinimum": 0,
2122
- "maximum": 9007199254740991
2123
- },
2124
- {
2125
- "type": "object",
2126
- "properties": {
2127
- "source": {
2128
- "type": "string",
2129
- "minLength": 1
2130
- },
2131
- "default": {
2132
- "type": "integer",
2133
- "exclusiveMinimum": 0,
2134
- "maximum": 9007199254740991
2135
- }
2136
- },
2137
- "required": [
2138
- "source"
2139
- ],
2140
- "additionalProperties": false
2141
- }
2142
- ]
2143
- }
2144
- },
2145
- "additionalProperties": false
2146
- },
2147
- "kind": {
2148
- "type": "string",
2149
- "const": "route"
2150
- },
2151
- "mode": {
2152
- "type": "string",
2153
- "const": "agent"
2154
- },
2155
- "rules": {
2156
- "minItems": 1,
2157
- "type": "array",
2158
- "items": {
2159
- "type": "object",
2160
- "properties": {
2161
- "when": {
2162
- "$ref": "#/$defs/__schema0"
2163
- },
2164
- "to": {
2165
- "type": "string",
2166
- "pattern": "^[A-Za-z_][A-Za-z0-9_-]*$"
2167
- }
2168
- },
2169
- "required": [
2170
- "when",
2171
- "to"
2172
- ],
2173
- "additionalProperties": false
2174
- }
2175
- },
2176
- "routes": {
2177
- "minItems": 1,
2178
- "type": "array",
2179
- "items": {
2180
- "type": "string",
2181
- "pattern": "^[A-Za-z_][A-Za-z0-9_-]*$"
2182
- }
2183
- },
2184
- "actor": {
2185
- "type": "object",
2186
- "properties": {
2187
- "agent": {
2188
- "type": "string",
2189
- "minLength": 1
2190
- },
2191
- "mode": {
2192
- "type": "string",
2193
- "enum": [
2194
- "denyAll",
2195
- "readOnly",
2196
- "edit"
2197
- ]
2198
- },
2199
- "label": {
2200
- "type": "string",
2201
- "minLength": 1
2202
- }
2203
- },
2204
- "required": [
2205
- "agent",
2206
- "mode"
2207
- ],
2208
- "additionalProperties": false
2209
- },
2210
- "prompt": {
2211
- "type": "string",
2212
- "minLength": 1
2213
- }
2214
- },
2215
- "required": [
2216
- "id",
2217
- "kind",
2218
- "mode",
2219
- "rules",
2220
- "routes",
2221
- "actor",
2222
- "prompt"
2223
- ],
2224
- "additionalProperties": false
2225
- }
2226
- ]
2227
- },
2228
- {
2229
- "oneOf": [
2230
- {
2231
- "type": "object",
2232
- "properties": {
2233
- "id": {
2234
- "type": "string",
2235
- "pattern": "^[A-Za-z_][A-Za-z0-9_-]*$"
2236
- },
2237
- "dependsOn": {
2238
- "type": "array",
2239
- "items": {
2240
- "type": "string",
2241
- "pattern": "^[A-Za-z_][A-Za-z0-9_-]*$"
2242
- }
2243
- },
2244
- "variables": {
2245
- "type": "array",
2246
- "items": {
2247
- "type": "object",
2248
- "properties": {
2249
- "name": {
2250
- "type": "string",
2251
- "pattern": "^[A-Za-z_][A-Za-z0-9_]*$"
2252
- },
2253
- "source": {
2254
- "type": "string",
2255
- "minLength": 1
2256
- },
2257
- "transform": {
2258
- "type": "array",
2259
- "items": {
2260
- "type": "object",
2261
- "properties": {
2262
- "fn": {
2263
- "type": "string",
2264
- "enum": [
2265
- "compact",
2266
- "tail",
2267
- "json",
2268
- "quoteBlock",
2269
- "pathList",
2270
- "filterSeverity",
2271
- "severitySummary",
2272
- "join",
2273
- "default"
2274
- ]
2275
- },
2276
- "args": {
2277
- "type": "object",
2278
- "propertyNames": {
2279
- "type": "string"
2280
- },
2281
- "additionalProperties": {}
2282
- }
2283
- },
2284
- "required": [
2285
- "fn"
2286
- ],
2287
- "additionalProperties": false
2288
- }
2289
- }
2290
- },
2291
- "required": [
2292
- "name",
2293
- "source"
2294
- ],
2295
- "additionalProperties": false
2296
- }
2297
- },
2298
- "limits": {
2299
- "type": "object",
2300
- "properties": {
2301
- "stageTimeoutMinutes": {
2302
- "anyOf": [
2303
- {
2304
- "type": "integer",
2305
- "exclusiveMinimum": 0,
2306
- "maximum": 9007199254740991
2307
- },
2308
- {
2309
- "type": "object",
2310
- "properties": {
2311
- "source": {
2312
- "type": "string",
2313
- "minLength": 1
2314
- },
2315
- "default": {
2316
- "type": "integer",
2317
- "exclusiveMinimum": 0,
2318
- "maximum": 9007199254740991
2319
- }
2320
- },
2321
- "required": [
2322
- "source"
2323
- ],
2324
- "additionalProperties": false
2325
- }
2326
- ]
2327
- }
2328
- },
2329
- "additionalProperties": false
2330
- },
2331
- "kind": {
2332
- "type": "string",
2333
- "const": "gate"
2334
- },
2335
- "mode": {
2336
- "type": "string",
2337
- "const": "agent"
2338
- },
2339
- "condition": {
2340
- "$ref": "#/$defs/__schema0"
2341
- },
2342
- "actor": {
2343
- "type": "object",
2344
- "properties": {
2345
- "agent": {
2346
- "type": "string",
2347
- "minLength": 1
2348
- },
2349
- "mode": {
2350
- "type": "string",
2351
- "enum": [
2352
- "denyAll",
2353
- "readOnly",
2354
- "edit"
2355
- ]
2356
- },
2357
- "label": {
2358
- "type": "string",
2359
- "minLength": 1
2360
- }
2361
- },
2362
- "required": [
2363
- "agent",
2364
- "mode"
2365
- ],
2366
- "additionalProperties": false
2367
- },
2368
- "prompt": {
2369
- "type": "string",
2370
- "minLength": 1
2371
- },
2372
- "output": {
2373
- "type": "object",
2374
- "properties": {
2375
- "schema": {
2376
- "type": "string",
2377
- "minLength": 1
2378
- }
2379
- },
2380
- "required": [
2381
- "schema"
2382
- ],
2383
- "additionalProperties": false
2384
- }
2385
- },
2386
- "required": [
2387
- "id",
2388
- "kind",
2389
- "mode",
2390
- "actor",
2391
- "prompt"
2392
- ],
2393
- "additionalProperties": false
2394
- },
2395
- {
2396
- "type": "object",
2397
- "properties": {
2398
- "id": {
2399
- "type": "string",
2400
- "pattern": "^[A-Za-z_][A-Za-z0-9_-]*$"
2401
- },
2402
- "dependsOn": {
2403
- "type": "array",
2404
- "items": {
2405
- "type": "string",
2406
- "pattern": "^[A-Za-z_][A-Za-z0-9_-]*$"
2407
- }
2408
- },
2409
- "variables": {
2410
- "type": "array",
2411
- "items": {
2412
- "type": "object",
2413
- "properties": {
2414
- "name": {
2415
- "type": "string",
2416
- "pattern": "^[A-Za-z_][A-Za-z0-9_]*$"
2417
- },
2418
- "source": {
2419
- "type": "string",
2420
- "minLength": 1
2421
- },
2422
- "transform": {
2423
- "type": "array",
2424
- "items": {
2425
- "type": "object",
2426
- "properties": {
2427
- "fn": {
2428
- "type": "string",
2429
- "enum": [
2430
- "compact",
2431
- "tail",
2432
- "json",
2433
- "quoteBlock",
2434
- "pathList",
2435
- "filterSeverity",
2436
- "severitySummary",
2437
- "join",
2438
- "default"
2439
- ]
2440
- },
2441
- "args": {
2442
- "type": "object",
2443
- "propertyNames": {
2444
- "type": "string"
2445
- },
2446
- "additionalProperties": {}
2447
- }
2448
- },
2449
- "required": [
2450
- "fn"
2451
- ],
2452
- "additionalProperties": false
2453
- }
2454
- }
2455
- },
2456
- "required": [
2457
- "name",
2458
- "source"
2459
- ],
2460
- "additionalProperties": false
2461
- }
2462
- },
2463
- "limits": {
2464
- "type": "object",
2465
- "properties": {
2466
- "stageTimeoutMinutes": {
2467
- "anyOf": [
2468
- {
2469
- "type": "integer",
2470
- "exclusiveMinimum": 0,
2471
- "maximum": 9007199254740991
2472
- },
2473
- {
2474
- "type": "object",
2475
- "properties": {
2476
- "source": {
2477
- "type": "string",
2478
- "minLength": 1
2479
- },
2480
- "default": {
2481
- "type": "integer",
2482
- "exclusiveMinimum": 0,
2483
- "maximum": 9007199254740991
2484
- }
2485
- },
2486
- "required": [
2487
- "source"
2488
- ],
2489
- "additionalProperties": false
2490
- }
2491
- ]
2492
- }
2493
- },
2494
- "additionalProperties": false
2495
- },
2496
- "kind": {
2497
- "type": "string",
2498
- "const": "gate"
2499
- },
2500
- "mode": {
2501
- "default": "program",
2502
- "type": "string",
2503
- "const": "program"
2504
- },
2505
- "condition": {
2506
- "$ref": "#/$defs/__schema0"
2507
- }
2508
- },
2509
- "required": [
2510
- "id",
2511
- "kind"
2512
- ],
2513
- "additionalProperties": false
2514
- }
2515
- ]
2516
- }
2517
- ]
2518
- }
2519
- }
2520
- },
2521
- "required": [
2522
- "schemaVersion",
2523
- "name",
2524
- "root",
2525
- "stages"
2526
- ],
2527
- "additionalProperties": false,
2528
- "$defs": {
2529
- "__schema0": {
2530
- "anyOf": [
2531
- {
2532
- "type": "object",
2533
- "properties": {
2534
- "source": {
2535
- "type": "string",
2536
- "minLength": 1
2537
- },
2538
- "op": {
2539
- "type": "string",
2540
- "const": "in"
2541
- },
2542
- "value": {
2543
- "type": "array",
2544
- "items": {}
2545
- }
2546
- },
2547
- "required": [
2548
- "source",
2549
- "op",
2550
- "value"
2551
- ],
2552
- "additionalProperties": false
2553
- },
2554
- {
2555
- "type": "object",
2556
- "properties": {
2557
- "source": {
2558
- "type": "string",
2559
- "minLength": 1
2560
- },
2561
- "op": {
2562
- "type": "string",
2563
- "enum": [
2564
- "eq",
2565
- "neq",
2566
- "gt",
2567
- "gte",
2568
- "lt",
2569
- "lte"
2570
- ]
2571
- },
2572
- "value": {}
2573
- },
2574
- "required": [
2575
- "source",
2576
- "op"
2577
- ],
2578
- "additionalProperties": false
2579
- },
2580
- {
2581
- "type": "object",
2582
- "properties": {
2583
- "source": {
2584
- "type": "string",
2585
- "minLength": 1
2586
- },
2587
- "op": {
2588
- "type": "string",
2589
- "enum": [
2590
- "exists",
2591
- "empty"
2592
- ]
2593
- },
2594
- "value": {}
2595
- },
2596
- "required": [
2597
- "source",
2598
- "op"
2599
- ],
2600
- "additionalProperties": false
2601
- },
2602
- {
2603
- "type": "object",
2604
- "properties": {
2605
- "all": {
2606
- "minItems": 1,
2607
- "type": "array",
2608
- "items": {
2609
- "$ref": "#/$defs/__schema0"
2610
- }
2611
- }
2612
- },
2613
- "required": [
2614
- "all"
2615
- ],
2616
- "additionalProperties": false
2617
- },
2618
- {
2619
- "type": "object",
2620
- "properties": {
2621
- "any": {
2622
- "minItems": 1,
2623
- "type": "array",
2624
- "items": {
2625
- "$ref": "#/$defs/__schema0"
2626
- }
2627
- }
2628
- },
2629
- "required": [
2630
- "any"
2631
- ],
2632
- "additionalProperties": false
2633
- },
2634
- {
2635
- "type": "object",
2636
- "properties": {
2637
- "not": {
2638
- "$ref": "#/$defs/__schema0"
2639
- }
2640
- },
2641
- "required": [
2642
- "not"
2643
- ],
2644
- "additionalProperties": false
2645
- }
2646
- ]
2647
- }
2648
- }
2649
- }