@nylorun/core 0.20.0-beta → 0.22.0-beta

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 (90) hide show
  1. package/CHANGELOG.md +98 -0
  2. package/README.md +2 -2
  3. package/dist/compatibility.d.ts +88 -13
  4. package/dist/compatibility.js +88 -13
  5. package/dist/contracts.d.ts +1328 -110
  6. package/dist/contracts.js +563 -163
  7. package/dist/define.d.ts +15 -13
  8. package/dist/define.js +11 -8
  9. package/dist/definition/approval.js +12 -14
  10. package/dist/definition/assemble.d.ts +6 -10
  11. package/dist/definition/assemble.js +48 -105
  12. package/dist/definition/bind-agent.d.ts +3 -4
  13. package/dist/definition/bind-agent.js +12 -30
  14. package/dist/definition/binding.d.ts +2 -2
  15. package/dist/definition/bound.d.ts +10 -10
  16. package/dist/definition/builder.d.ts +16 -20
  17. package/dist/definition/builder.js +29 -81
  18. package/dist/definition/code-tools.d.ts +3 -3
  19. package/dist/definition/code-tools.js +6 -21
  20. package/dist/definition/declaration.d.ts +4 -7
  21. package/dist/definition/declaration.js +29 -99
  22. package/dist/definition/{tools-capability.d.ts → deferred-tools.d.ts} +3 -13
  23. package/dist/definition/{tools-capability.js → deferred-tools.js} +2 -18
  24. package/dist/definition/delegate.d.ts +2 -4
  25. package/dist/definition/delegate.js +8 -10
  26. package/dist/definition/from.d.ts +7 -4
  27. package/dist/definition/from.js +72 -117
  28. package/dist/definition/helpers.d.ts +0 -7
  29. package/dist/definition/helpers.js +0 -5
  30. package/dist/definition/http-tool.d.ts +49 -5
  31. package/dist/definition/http-tool.js +167 -5
  32. package/dist/definition/implementations.d.ts +6 -8
  33. package/dist/definition/manifest.d.ts +11 -5
  34. package/dist/definition/manifest.js +26 -26
  35. package/dist/definition/mcp.d.ts +1 -52
  36. package/dist/definition/mcp.js +0 -52
  37. package/dist/definition/media-reference.d.ts +23 -0
  38. package/dist/definition/media-reference.js +26 -0
  39. package/dist/definition/removed.d.ts +3 -10
  40. package/dist/definition/removed.js +10 -17
  41. package/dist/definition/runtime-manifest.d.ts +30 -0
  42. package/dist/definition/runtime-manifest.js +132 -0
  43. package/dist/definition/sandbox-tools.d.ts +1 -1
  44. package/dist/definition/sandbox-tools.js +1 -1
  45. package/dist/definition/skill-tools.d.ts +13 -7
  46. package/dist/definition/skill-tools.js +23 -10
  47. package/dist/definition/trace.d.ts +18 -0
  48. package/dist/definition/trace.js +42 -0
  49. package/dist/definition/variant.d.ts +5 -4
  50. package/dist/definition/variant.js +18 -51
  51. package/dist/definition/workflow/runnable.js +1 -1
  52. package/dist/errors.d.ts +1 -1
  53. package/dist/harness-api/entries.d.ts +1 -0
  54. package/dist/harness-api/entries.js +1 -0
  55. package/dist/harness-api/gates.d.ts +1 -6
  56. package/dist/harness-api/gates.js +1 -3
  57. package/dist/harness-api/harness-api.schema.json +11 -92
  58. package/dist/harness-api/index.d.ts +2 -2
  59. package/dist/harness-api/index.js +2 -2
  60. package/dist/harness-api/mcp.d.ts +0 -4
  61. package/dist/harness-api/mcp.js +0 -2
  62. package/dist/harness-api/messages.d.ts +1 -3
  63. package/dist/harness-api/messages.js +1 -3
  64. package/dist/harness-api/schema.d.ts +5 -17
  65. package/dist/harness-api/schema.js +9 -6
  66. package/dist/index.d.ts +1 -1
  67. package/dist/manifest-schemas.d.ts +6 -0
  68. package/dist/manifest-schemas.js +46 -0
  69. package/dist/schemas/agent-manifest.schema.json +905 -0
  70. package/dist/schemas/environment-manifest.schema.json +349 -0
  71. package/dist/types/agent.d.ts +1 -1
  72. package/dist/types/manifest.d.ts +47 -24
  73. package/dist/types/model.d.ts +2 -2
  74. package/dist/types/observe.d.ts +5 -18
  75. package/dist/types/part.d.ts +25 -0
  76. package/dist/types/tool.d.ts +1 -1
  77. package/dist/types/transcript.d.ts +5 -0
  78. package/dist/utils/definition-files.d.ts +11 -6
  79. package/dist/utils/definition-files.js +19 -9
  80. package/dist/utils/runtime-tools.d.ts +19 -0
  81. package/dist/utils/runtime-tools.js +30 -0
  82. package/dist/utils/sandbox.d.ts +1 -1
  83. package/dist/utils/sandbox.js +1 -1
  84. package/package.json +9 -3
  85. package/dist/definition/capability.d.ts +0 -43
  86. package/dist/definition/capability.js +0 -82
  87. package/dist/definition/sandbox-capability.d.ts +0 -44
  88. package/dist/definition/sandbox-capability.js +0 -139
  89. package/dist/types/middleware.d.ts +0 -94
  90. /package/dist/types/{middleware.js → part.js} +0 -0
@@ -0,0 +1,905 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$id": "https://docs.nylorun.com/schemas/agent-manifest/v7.json",
4
+ "title": "Nylorun agent manifest 7",
5
+ "type": "object",
6
+ "properties": {
7
+ "$schema": {
8
+ "type": "string",
9
+ "description": "This document's JSON Schema, for editors; clients drop it before saving"
10
+ },
11
+ "manifestSchemaVersion": {
12
+ "type": "number",
13
+ "const": 7
14
+ },
15
+ "id": {
16
+ "type": "string",
17
+ "minLength": 1
18
+ },
19
+ "name": {
20
+ "type": "string",
21
+ "minLength": 1
22
+ },
23
+ "description": {
24
+ "type": "string"
25
+ },
26
+ "metadata": {
27
+ "type": "object",
28
+ "propertyNames": {
29
+ "type": "string"
30
+ },
31
+ "additionalProperties": {}
32
+ },
33
+ "outputSchema": {
34
+ "type": "object",
35
+ "propertyNames": {
36
+ "type": "string"
37
+ },
38
+ "additionalProperties": {}
39
+ },
40
+ "instructions": {
41
+ "type": "array",
42
+ "items": {
43
+ "type": "string"
44
+ }
45
+ },
46
+ "tools": {
47
+ "type": "array",
48
+ "items": {
49
+ "type": "object",
50
+ "properties": {
51
+ "name": {
52
+ "type": "string",
53
+ "pattern": "^[A-Za-z0-9_-]{1,64}$"
54
+ },
55
+ "description": {
56
+ "type": "string"
57
+ },
58
+ "inputSchema": {
59
+ "type": "object",
60
+ "propertyNames": {
61
+ "type": "string"
62
+ },
63
+ "additionalProperties": {}
64
+ },
65
+ "outputSchema": {
66
+ "type": "object",
67
+ "propertyNames": {
68
+ "type": "string"
69
+ },
70
+ "additionalProperties": {}
71
+ },
72
+ "agent": {
73
+ "$ref": "#/$defs/ToolAgentManifest"
74
+ },
75
+ "http": {
76
+ "type": "object",
77
+ "properties": {
78
+ "url": {
79
+ "type": "string"
80
+ },
81
+ "method": {
82
+ "type": "string",
83
+ "enum": [
84
+ "GET",
85
+ "POST",
86
+ "PUT",
87
+ "PATCH",
88
+ "DELETE"
89
+ ]
90
+ },
91
+ "credential": {
92
+ "type": "string",
93
+ "minLength": 1
94
+ },
95
+ "timeoutMs": {
96
+ "type": "integer",
97
+ "exclusiveMinimum": 0,
98
+ "maximum": 300000
99
+ }
100
+ },
101
+ "required": [
102
+ "url"
103
+ ],
104
+ "additionalProperties": false
105
+ },
106
+ "approval": {
107
+ "type": "string",
108
+ "enum": [
109
+ "never",
110
+ "always"
111
+ ]
112
+ },
113
+ "fn": {
114
+ "description": "Reserved for a later kind of tool; refused for now."
115
+ },
116
+ "command": {
117
+ "description": "Reserved for a later kind of tool; refused for now."
118
+ }
119
+ },
120
+ "required": [
121
+ "name",
122
+ "inputSchema"
123
+ ],
124
+ "additionalProperties": false
125
+ }
126
+ },
127
+ "skills": {
128
+ "type": "object",
129
+ "propertyNames": {
130
+ "type": "string"
131
+ },
132
+ "additionalProperties": {
133
+ "type": "object",
134
+ "properties": {
135
+ "name": {
136
+ "type": "string",
137
+ "minLength": 1
138
+ },
139
+ "description": {
140
+ "type": "string",
141
+ "minLength": 1
142
+ },
143
+ "files": {
144
+ "type": "object",
145
+ "propertyNames": {
146
+ "type": "string"
147
+ },
148
+ "additionalProperties": {
149
+ "type": "string"
150
+ }
151
+ },
152
+ "plugin": {
153
+ "$ref": "#/$defs/PluginLabel"
154
+ }
155
+ },
156
+ "required": [
157
+ "name",
158
+ "description",
159
+ "files"
160
+ ],
161
+ "additionalProperties": false
162
+ }
163
+ },
164
+ "mcpServers": {
165
+ "type": "object",
166
+ "propertyNames": {
167
+ "type": "string"
168
+ },
169
+ "additionalProperties": {
170
+ "oneOf": [
171
+ {
172
+ "type": "object",
173
+ "properties": {
174
+ "name": {
175
+ "type": "string",
176
+ "pattern": "^[A-Za-z0-9_-]{1,64}$"
177
+ },
178
+ "type": {
179
+ "type": "string",
180
+ "const": "streamable-http"
181
+ },
182
+ "url": {
183
+ "type": "string",
184
+ "minLength": 1
185
+ },
186
+ "headers": {
187
+ "type": "object",
188
+ "propertyNames": {
189
+ "type": "string"
190
+ },
191
+ "additionalProperties": {
192
+ "type": "string"
193
+ }
194
+ },
195
+ "approval": {
196
+ "type": "string",
197
+ "enum": [
198
+ "never",
199
+ "always"
200
+ ]
201
+ },
202
+ "deferred": {
203
+ "type": "boolean"
204
+ },
205
+ "tools": {
206
+ "type": "object",
207
+ "propertyNames": {
208
+ "type": "string",
209
+ "minLength": 1
210
+ },
211
+ "additionalProperties": {
212
+ "$ref": "#/$defs/McpToolSettings"
213
+ }
214
+ },
215
+ "plugin": {
216
+ "$ref": "#/$defs/PluginLabel"
217
+ }
218
+ },
219
+ "required": [
220
+ "name",
221
+ "type",
222
+ "url"
223
+ ],
224
+ "additionalProperties": false
225
+ },
226
+ {
227
+ "type": "object",
228
+ "properties": {
229
+ "name": {
230
+ "type": "string",
231
+ "pattern": "^[A-Za-z0-9_-]{1,64}$"
232
+ },
233
+ "type": {
234
+ "type": "string",
235
+ "const": "sse"
236
+ },
237
+ "url": {
238
+ "type": "string",
239
+ "minLength": 1
240
+ },
241
+ "headers": {
242
+ "type": "object",
243
+ "propertyNames": {
244
+ "type": "string"
245
+ },
246
+ "additionalProperties": {
247
+ "type": "string"
248
+ }
249
+ },
250
+ "approval": {
251
+ "type": "string",
252
+ "enum": [
253
+ "never",
254
+ "always"
255
+ ]
256
+ },
257
+ "deferred": {
258
+ "type": "boolean"
259
+ },
260
+ "tools": {
261
+ "type": "object",
262
+ "propertyNames": {
263
+ "type": "string",
264
+ "minLength": 1
265
+ },
266
+ "additionalProperties": {
267
+ "$ref": "#/$defs/McpToolSettings"
268
+ }
269
+ },
270
+ "plugin": {
271
+ "$ref": "#/$defs/PluginLabel"
272
+ }
273
+ },
274
+ "required": [
275
+ "name",
276
+ "type",
277
+ "url"
278
+ ],
279
+ "additionalProperties": false
280
+ }
281
+ ]
282
+ }
283
+ },
284
+ "requires": {
285
+ "type": "object",
286
+ "properties": {
287
+ "sandbox": {
288
+ "type": "string",
289
+ "enum": [
290
+ "none",
291
+ "any",
292
+ "pod"
293
+ ]
294
+ },
295
+ "secrets": {
296
+ "maxItems": 64,
297
+ "type": "array",
298
+ "items": {
299
+ "type": "string",
300
+ "pattern": "^[A-Za-z_][A-Za-z0-9_]{0,127}$"
301
+ }
302
+ }
303
+ },
304
+ "additionalProperties": false
305
+ },
306
+ "runtime": {
307
+ "type": "object",
308
+ "properties": {
309
+ "sandbox": {
310
+ "type": "object",
311
+ "properties": {
312
+ "image": {
313
+ "type": "string",
314
+ "minLength": 1
315
+ },
316
+ "network": {
317
+ "type": "object",
318
+ "properties": {
319
+ "preset": {
320
+ "type": "string",
321
+ "enum": [
322
+ "none",
323
+ "dev",
324
+ "open"
325
+ ]
326
+ },
327
+ "allow": {
328
+ "type": "array",
329
+ "items": {
330
+ "type": "string"
331
+ }
332
+ }
333
+ },
334
+ "additionalProperties": false
335
+ },
336
+ "resources": {
337
+ "type": "object",
338
+ "properties": {
339
+ "cpus": {
340
+ "type": "integer",
341
+ "minimum": 1,
342
+ "maximum": 64
343
+ },
344
+ "memory": {
345
+ "type": "string"
346
+ }
347
+ },
348
+ "additionalProperties": false
349
+ },
350
+ "idle": {
351
+ "type": "string"
352
+ }
353
+ },
354
+ "additionalProperties": false
355
+ },
356
+ "tools": {
357
+ "type": "array",
358
+ "items": {
359
+ "type": "object",
360
+ "properties": {
361
+ "name": {
362
+ "type": "string",
363
+ "pattern": "^[A-Za-z0-9_-]{1,64}$"
364
+ },
365
+ "description": {
366
+ "type": "string"
367
+ },
368
+ "inputSchema": {
369
+ "type": "object",
370
+ "propertyNames": {
371
+ "type": "string"
372
+ },
373
+ "additionalProperties": {}
374
+ },
375
+ "outputSchema": {
376
+ "type": "object",
377
+ "propertyNames": {
378
+ "type": "string"
379
+ },
380
+ "additionalProperties": {}
381
+ },
382
+ "agent": {
383
+ "$ref": "#/$defs/ToolAgentManifest"
384
+ },
385
+ "http": {
386
+ "type": "object",
387
+ "properties": {
388
+ "url": {
389
+ "type": "string"
390
+ },
391
+ "method": {
392
+ "type": "string",
393
+ "enum": [
394
+ "GET",
395
+ "POST",
396
+ "PUT",
397
+ "PATCH",
398
+ "DELETE"
399
+ ]
400
+ },
401
+ "credential": {
402
+ "type": "string",
403
+ "minLength": 1
404
+ },
405
+ "timeoutMs": {
406
+ "type": "integer",
407
+ "exclusiveMinimum": 0,
408
+ "maximum": 300000
409
+ }
410
+ },
411
+ "required": [
412
+ "url"
413
+ ],
414
+ "additionalProperties": false
415
+ },
416
+ "approval": {
417
+ "type": "string",
418
+ "enum": [
419
+ "never",
420
+ "always"
421
+ ]
422
+ },
423
+ "fn": {
424
+ "description": "Reserved for a later kind of tool; refused for now."
425
+ },
426
+ "command": {
427
+ "description": "Reserved for a later kind of tool; refused for now."
428
+ }
429
+ },
430
+ "required": [
431
+ "name",
432
+ "inputSchema"
433
+ ],
434
+ "additionalProperties": false
435
+ }
436
+ },
437
+ "instructions": {
438
+ "type": "array",
439
+ "items": {
440
+ "type": "string"
441
+ }
442
+ }
443
+ },
444
+ "additionalProperties": false
445
+ },
446
+ "functions": {
447
+ "description": "Reserved: Functions are not available yet"
448
+ }
449
+ },
450
+ "required": [
451
+ "manifestSchemaVersion",
452
+ "id"
453
+ ],
454
+ "additionalProperties": false,
455
+ "$defs": {
456
+ "ToolAgentManifest": {
457
+ "anyOf": [
458
+ {
459
+ "$ref": "#/$defs/WorkflowManifest"
460
+ },
461
+ {
462
+ "$ref": "#"
463
+ }
464
+ ]
465
+ },
466
+ "WorkflowManifest": {
467
+ "type": "object",
468
+ "properties": {
469
+ "kind": {
470
+ "type": "string",
471
+ "const": "workflow"
472
+ },
473
+ "workflowSchemaVersion": {
474
+ "type": "number",
475
+ "const": 3
476
+ },
477
+ "id": {
478
+ "type": "string",
479
+ "minLength": 1
480
+ },
481
+ "name": {
482
+ "type": "string",
483
+ "minLength": 1
484
+ },
485
+ "description": {
486
+ "type": "string"
487
+ },
488
+ "metadata": {
489
+ "type": "object",
490
+ "propertyNames": {
491
+ "type": "string"
492
+ },
493
+ "additionalProperties": {}
494
+ },
495
+ "inputSchema": {
496
+ "type": "object",
497
+ "propertyNames": {
498
+ "type": "string"
499
+ },
500
+ "additionalProperties": {}
501
+ },
502
+ "outputSchema": {
503
+ "type": "object",
504
+ "propertyNames": {
505
+ "type": "string"
506
+ },
507
+ "additionalProperties": {}
508
+ },
509
+ "sandbox": {
510
+ "type": "object",
511
+ "properties": {
512
+ "image": {
513
+ "type": "string",
514
+ "minLength": 1
515
+ },
516
+ "network": {
517
+ "type": "object",
518
+ "properties": {
519
+ "preset": {
520
+ "type": "string",
521
+ "enum": [
522
+ "none",
523
+ "dev",
524
+ "open"
525
+ ]
526
+ },
527
+ "allow": {
528
+ "type": "array",
529
+ "items": {
530
+ "type": "string"
531
+ }
532
+ }
533
+ },
534
+ "additionalProperties": false
535
+ },
536
+ "resources": {
537
+ "type": "object",
538
+ "properties": {
539
+ "cpus": {
540
+ "type": "integer",
541
+ "minimum": 1,
542
+ "maximum": 64
543
+ },
544
+ "memory": {
545
+ "type": "string"
546
+ }
547
+ },
548
+ "additionalProperties": false
549
+ },
550
+ "idle": {
551
+ "type": "string"
552
+ }
553
+ },
554
+ "additionalProperties": false
555
+ },
556
+ "root": {
557
+ "$ref": "#/$defs/WorkflowNode"
558
+ },
559
+ "agents": {
560
+ "type": "object",
561
+ "propertyNames": {
562
+ "type": "string",
563
+ "minLength": 1
564
+ },
565
+ "additionalProperties": {
566
+ "anyOf": [
567
+ {
568
+ "$ref": "#/$defs/WorkflowManifest"
569
+ },
570
+ {
571
+ "$ref": "#"
572
+ }
573
+ ]
574
+ }
575
+ }
576
+ },
577
+ "required": [
578
+ "kind",
579
+ "workflowSchemaVersion",
580
+ "id",
581
+ "root",
582
+ "agents"
583
+ ],
584
+ "additionalProperties": false
585
+ },
586
+ "WorkflowNode": {
587
+ "anyOf": [
588
+ {
589
+ "type": "object",
590
+ "properties": {
591
+ "agent": {
592
+ "type": "string",
593
+ "minLength": 1
594
+ },
595
+ "id": {
596
+ "type": "string",
597
+ "minLength": 1
598
+ }
599
+ },
600
+ "required": [
601
+ "agent"
602
+ ],
603
+ "additionalProperties": false
604
+ },
605
+ {
606
+ "type": "object",
607
+ "properties": {
608
+ "tool": {
609
+ "type": "object",
610
+ "properties": {
611
+ "name": {
612
+ "type": "string",
613
+ "minLength": 1
614
+ },
615
+ "description": {
616
+ "type": "string"
617
+ },
618
+ "inputSchema": {
619
+ "type": "object",
620
+ "propertyNames": {
621
+ "type": "string"
622
+ },
623
+ "additionalProperties": {}
624
+ },
625
+ "outputSchema": {
626
+ "type": "object",
627
+ "propertyNames": {
628
+ "type": "string"
629
+ },
630
+ "additionalProperties": {}
631
+ },
632
+ "http": {
633
+ "type": "object",
634
+ "properties": {
635
+ "url": {
636
+ "type": "string"
637
+ },
638
+ "method": {
639
+ "type": "string",
640
+ "enum": [
641
+ "GET",
642
+ "POST",
643
+ "PUT",
644
+ "PATCH",
645
+ "DELETE"
646
+ ]
647
+ },
648
+ "credential": {
649
+ "type": "string",
650
+ "minLength": 1
651
+ },
652
+ "timeoutMs": {
653
+ "type": "integer",
654
+ "exclusiveMinimum": 0,
655
+ "maximum": 300000
656
+ }
657
+ },
658
+ "required": [
659
+ "url"
660
+ ],
661
+ "additionalProperties": false
662
+ }
663
+ },
664
+ "required": [
665
+ "name"
666
+ ],
667
+ "additionalProperties": false
668
+ },
669
+ "id": {
670
+ "type": "string",
671
+ "minLength": 1
672
+ }
673
+ },
674
+ "required": [
675
+ "tool"
676
+ ],
677
+ "additionalProperties": false
678
+ },
679
+ {
680
+ "type": "object",
681
+ "properties": {
682
+ "chain": {
683
+ "minItems": 1,
684
+ "type": "array",
685
+ "items": {
686
+ "$ref": "#/$defs/WorkflowNode"
687
+ }
688
+ },
689
+ "id": {
690
+ "type": "string",
691
+ "minLength": 1
692
+ }
693
+ },
694
+ "required": [
695
+ "chain"
696
+ ],
697
+ "additionalProperties": false
698
+ },
699
+ {
700
+ "type": "object",
701
+ "properties": {
702
+ "switch": {
703
+ "type": "object",
704
+ "properties": {
705
+ "cases": {
706
+ "type": "object",
707
+ "propertyNames": {
708
+ "type": "string"
709
+ },
710
+ "additionalProperties": {
711
+ "$ref": "#/$defs/WorkflowNode"
712
+ }
713
+ },
714
+ "default": {
715
+ "$ref": "#/$defs/WorkflowNode"
716
+ }
717
+ },
718
+ "required": [
719
+ "cases"
720
+ ],
721
+ "additionalProperties": false
722
+ },
723
+ "id": {
724
+ "type": "string",
725
+ "minLength": 1
726
+ }
727
+ },
728
+ "required": [
729
+ "switch"
730
+ ],
731
+ "additionalProperties": false
732
+ },
733
+ {
734
+ "type": "object",
735
+ "properties": {
736
+ "parallel": {
737
+ "type": "object",
738
+ "propertyNames": {
739
+ "type": "string"
740
+ },
741
+ "additionalProperties": {
742
+ "$ref": "#/$defs/WorkflowNode"
743
+ }
744
+ },
745
+ "id": {
746
+ "type": "string",
747
+ "minLength": 1
748
+ }
749
+ },
750
+ "required": [
751
+ "parallel"
752
+ ],
753
+ "additionalProperties": false
754
+ },
755
+ {
756
+ "type": "object",
757
+ "properties": {
758
+ "map": {
759
+ "type": "object",
760
+ "properties": {
761
+ "each": {
762
+ "$ref": "#/$defs/WorkflowNode"
763
+ }
764
+ },
765
+ "required": [
766
+ "each"
767
+ ],
768
+ "additionalProperties": false
769
+ },
770
+ "id": {
771
+ "type": "string",
772
+ "minLength": 1
773
+ }
774
+ },
775
+ "required": [
776
+ "map"
777
+ ],
778
+ "additionalProperties": false
779
+ },
780
+ {
781
+ "type": "object",
782
+ "properties": {
783
+ "loop": {
784
+ "type": "object",
785
+ "properties": {
786
+ "run": {
787
+ "$ref": "#/$defs/WorkflowNode"
788
+ },
789
+ "verify": {
790
+ "$ref": "#/$defs/WorkflowLoopVerify"
791
+ },
792
+ "max": {
793
+ "type": "integer",
794
+ "exclusiveMinimum": 0,
795
+ "maximum": 9007199254740991
796
+ }
797
+ },
798
+ "required": [
799
+ "run",
800
+ "verify",
801
+ "max"
802
+ ],
803
+ "additionalProperties": false
804
+ },
805
+ "id": {
806
+ "type": "string",
807
+ "minLength": 1
808
+ }
809
+ },
810
+ "required": [
811
+ "loop"
812
+ ],
813
+ "additionalProperties": false
814
+ }
815
+ ]
816
+ },
817
+ "WorkflowLoopVerify": {
818
+ "type": "object",
819
+ "properties": {
820
+ "agent": {
821
+ "type": "string",
822
+ "minLength": 1
823
+ },
824
+ "http": {
825
+ "type": "object",
826
+ "properties": {
827
+ "url": {
828
+ "type": "string"
829
+ },
830
+ "method": {
831
+ "type": "string",
832
+ "enum": [
833
+ "GET",
834
+ "POST",
835
+ "PUT",
836
+ "PATCH",
837
+ "DELETE"
838
+ ]
839
+ },
840
+ "credential": {
841
+ "type": "string",
842
+ "minLength": 1
843
+ },
844
+ "timeoutMs": {
845
+ "type": "integer",
846
+ "exclusiveMinimum": 0,
847
+ "maximum": 300000
848
+ }
849
+ },
850
+ "required": [
851
+ "url"
852
+ ],
853
+ "additionalProperties": false
854
+ },
855
+ "fn": {
856
+ "description": "Reserved for a later kind of verifier; refused for now."
857
+ },
858
+ "command": {
859
+ "description": "Reserved for a later kind of verifier; refused for now."
860
+ },
861
+ "id": {
862
+ "type": "string",
863
+ "minLength": 1
864
+ }
865
+ },
866
+ "additionalProperties": false
867
+ },
868
+ "PluginLabel": {
869
+ "type": "object",
870
+ "properties": {
871
+ "name": {
872
+ "type": "string",
873
+ "minLength": 1
874
+ },
875
+ "version": {
876
+ "type": "string",
877
+ "minLength": 1
878
+ }
879
+ },
880
+ "required": [
881
+ "name"
882
+ ],
883
+ "additionalProperties": false
884
+ },
885
+ "McpToolSettings": {
886
+ "type": "object",
887
+ "properties": {
888
+ "enabled": {
889
+ "type": "boolean"
890
+ },
891
+ "approval": {
892
+ "type": "string",
893
+ "enum": [
894
+ "never",
895
+ "always"
896
+ ]
897
+ },
898
+ "deferred": {
899
+ "type": "boolean"
900
+ }
901
+ },
902
+ "additionalProperties": false
903
+ }
904
+ }
905
+ }