@pulsarinteractive/geniustasker 0.1.0-beta.11 → 0.1.0-beta.13

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 (40) hide show
  1. package/CHANGELOG.md +22 -0
  2. package/README.md +14 -1
  3. package/docs/ARCHITECTURE.md +15 -13
  4. package/docs/CHATGPT.md +6 -0
  5. package/docs/CLI.md +153 -5
  6. package/docs/INTEGRATIONS.md +25 -2
  7. package/docs/MEMORY.md +9 -0
  8. package/docs/WORKFLOWS.md +14 -0
  9. package/examples/codex.toml +1 -1
  10. package/examples/mcp.json +1 -1
  11. package/mcp.json +1 -1
  12. package/package.json +2 -2
  13. package/plugin.json +1 -1
  14. package/remote/tool-catalog.json +296 -1
  15. package/remote/workflows.json +53 -2
  16. package/skills/geniustasker/SKILL.md +15 -1
  17. package/skills/geniustasker/references/agent-runs.md +144 -0
  18. package/skills/geniustasker/references/host-events.md +116 -0
  19. package/skills/geniustasker/references/importance.md +90 -0
  20. package/skills/geniustasker/references/metric-goals.md +143 -0
  21. package/skills/geniustasker/references/metrics-observations.md +184 -0
  22. package/skills/geniustasker/references/metrics.md +136 -0
  23. package/skills/geniustasker/references/protocols.md +156 -0
  24. package/skills/geniustasker/references/updates.md +31 -0
  25. package/skills/geniustasker-graph/SKILL.md +10 -0
  26. package/skills/geniustasker-memory/SKILL.md +19 -6
  27. package/skills/geniustasker-memory/references/knowledge-workflows.md +42 -0
  28. package/skills/geniustasker-planning/SKILL.md +6 -1
  29. package/src/changes.mjs +3 -5
  30. package/src/cli.mjs +108 -14
  31. package/src/command-catalog.mjs +849 -562
  32. package/src/command-input-schemas.d.mts +8 -0
  33. package/src/command-input-schemas.mjs +1021 -0
  34. package/src/commands.mjs +78 -25
  35. package/src/mcp.mjs +48 -20
  36. package/src/protocols.mjs +122 -0
  37. package/src/resources.mjs +98 -0
  38. package/src/run-events.mjs +145 -0
  39. package/src/update-runtime.mjs +169 -0
  40. package/src/update.mjs +306 -0
@@ -0,0 +1,1021 @@
1
+ // Generated public command data schemas. Do not edit by hand.
2
+ export default {
3
+ "metric.correct": {
4
+ "type": "object",
5
+ "required": [
6
+ "measurement",
7
+ "observedAt",
8
+ "reason"
9
+ ],
10
+ "properties": {
11
+ "observedAt": {
12
+ "type": "string"
13
+ },
14
+ "measurement": {
15
+ "type": "object",
16
+ "required": [
17
+ "denominator",
18
+ "numerator",
19
+ "value"
20
+ ],
21
+ "properties": {
22
+ "denominator": {
23
+ "anyOf": [
24
+ {
25
+ "type": "number",
26
+ "minimum": 0,
27
+ "maximum": 1000000000
28
+ },
29
+ {
30
+ "type": "null"
31
+ }
32
+ ]
33
+ },
34
+ "numerator": {
35
+ "anyOf": [
36
+ {
37
+ "type": "number",
38
+ "minimum": 0,
39
+ "maximum": 1000000000
40
+ },
41
+ {
42
+ "type": "null"
43
+ }
44
+ ]
45
+ },
46
+ "value": {
47
+ "anyOf": [
48
+ {
49
+ "type": "number",
50
+ "minimum": -1000000000,
51
+ "maximum": 1000000000
52
+ },
53
+ {
54
+ "type": "null"
55
+ }
56
+ ]
57
+ }
58
+ },
59
+ "additionalProperties": false
60
+ },
61
+ "reason": {
62
+ "type": "string",
63
+ "minLength": 1,
64
+ "maxLength": 500
65
+ }
66
+ },
67
+ "additionalProperties": false
68
+ },
69
+ "metric.create": {
70
+ "type": "object",
71
+ "required": [
72
+ "configuration"
73
+ ],
74
+ "properties": {
75
+ "configuration": {
76
+ "type": "object",
77
+ "required": [
78
+ "aggregation",
79
+ "archived",
80
+ "description",
81
+ "freshnessSeconds",
82
+ "key",
83
+ "kind",
84
+ "paused",
85
+ "precision",
86
+ "ratioScale",
87
+ "title",
88
+ "unit",
89
+ "writers"
90
+ ],
91
+ "properties": {
92
+ "aggregation": {
93
+ "type": "string",
94
+ "enum": [
95
+ "Latest",
96
+ "Sum",
97
+ "Mean",
98
+ "Ratio"
99
+ ]
100
+ },
101
+ "archived": {
102
+ "type": "boolean"
103
+ },
104
+ "description": {
105
+ "type": "string",
106
+ "maxLength": 1200
107
+ },
108
+ "freshnessSeconds": {
109
+ "anyOf": [
110
+ {
111
+ "type": "integer",
112
+ "minimum": 60,
113
+ "maximum": 31536000
114
+ },
115
+ {
116
+ "type": "null"
117
+ }
118
+ ]
119
+ },
120
+ "key": {
121
+ "type": "string",
122
+ "maxLength": 48,
123
+ "pattern": "^[a-z][a-z0-9_-]{0,47}$"
124
+ },
125
+ "kind": {
126
+ "type": "string",
127
+ "enum": [
128
+ "Gauge",
129
+ "Counter",
130
+ "Ratio"
131
+ ]
132
+ },
133
+ "paused": {
134
+ "type": "boolean"
135
+ },
136
+ "precision": {
137
+ "type": "integer",
138
+ "minimum": 0,
139
+ "maximum": 6
140
+ },
141
+ "ratioScale": {
142
+ "type": "integer",
143
+ "minimum": 1,
144
+ "maximum": 100
145
+ },
146
+ "title": {
147
+ "type": "string",
148
+ "minLength": 1,
149
+ "maxLength": 160
150
+ },
151
+ "unit": {
152
+ "type": "string",
153
+ "minLength": 1,
154
+ "maxLength": 24
155
+ },
156
+ "writers": {
157
+ "type": "array",
158
+ "maxItems": 64,
159
+ "uniqueItems": true,
160
+ "items": {
161
+ "type": "string"
162
+ }
163
+ }
164
+ },
165
+ "additionalProperties": false
166
+ }
167
+ },
168
+ "additionalProperties": false
169
+ },
170
+ "metric.goal.create": {
171
+ "type": "object",
172
+ "required": [
173
+ "configuration"
174
+ ],
175
+ "properties": {
176
+ "configuration": {
177
+ "type": "object",
178
+ "required": [
179
+ "archived",
180
+ "coachSignal",
181
+ "comparison",
182
+ "completion",
183
+ "description",
184
+ "metricId",
185
+ "notifyCompleted",
186
+ "paused",
187
+ "target",
188
+ "title",
189
+ "window"
190
+ ],
191
+ "properties": {
192
+ "archived": {
193
+ "type": "boolean"
194
+ },
195
+ "coachSignal": {
196
+ "type": "boolean"
197
+ },
198
+ "comparison": {
199
+ "type": "string",
200
+ "enum": [
201
+ "AtLeast",
202
+ "AtMost"
203
+ ]
204
+ },
205
+ "completion": {
206
+ "type": "string",
207
+ "enum": [
208
+ "OnReach",
209
+ "AtEnd"
210
+ ]
211
+ },
212
+ "description": {
213
+ "type": "string",
214
+ "maxLength": 1200
215
+ },
216
+ "metricId": {
217
+ "type": "string"
218
+ },
219
+ "notifyCompleted": {
220
+ "type": "boolean"
221
+ },
222
+ "paused": {
223
+ "type": "boolean"
224
+ },
225
+ "target": {
226
+ "type": "string",
227
+ "maxLength": 32,
228
+ "pattern": "^-?[0-9]{1,24}(\\.[0-9]{1,6})?$"
229
+ },
230
+ "title": {
231
+ "type": "string",
232
+ "minLength": 1,
233
+ "maxLength": 160
234
+ },
235
+ "window": {
236
+ "anyOf": [
237
+ {
238
+ "type": "object",
239
+ "required": [
240
+ "end",
241
+ "start"
242
+ ],
243
+ "properties": {
244
+ "end": {
245
+ "type": "string"
246
+ },
247
+ "start": {
248
+ "type": "string"
249
+ }
250
+ },
251
+ "additionalProperties": false
252
+ },
253
+ {
254
+ "type": "null"
255
+ }
256
+ ]
257
+ }
258
+ },
259
+ "additionalProperties": false
260
+ }
261
+ },
262
+ "additionalProperties": false
263
+ },
264
+ "metric.goal.update": {
265
+ "type": "object",
266
+ "required": [
267
+ "configuration"
268
+ ],
269
+ "properties": {
270
+ "configuration": {
271
+ "type": "object",
272
+ "required": [
273
+ "archived",
274
+ "coachSignal",
275
+ "comparison",
276
+ "completion",
277
+ "description",
278
+ "metricId",
279
+ "notifyCompleted",
280
+ "paused",
281
+ "target",
282
+ "title",
283
+ "window"
284
+ ],
285
+ "properties": {
286
+ "archived": {
287
+ "type": "boolean"
288
+ },
289
+ "coachSignal": {
290
+ "type": "boolean"
291
+ },
292
+ "comparison": {
293
+ "type": "string",
294
+ "enum": [
295
+ "AtLeast",
296
+ "AtMost"
297
+ ]
298
+ },
299
+ "completion": {
300
+ "type": "string",
301
+ "enum": [
302
+ "OnReach",
303
+ "AtEnd"
304
+ ]
305
+ },
306
+ "description": {
307
+ "type": "string",
308
+ "maxLength": 1200
309
+ },
310
+ "metricId": {
311
+ "type": "string"
312
+ },
313
+ "notifyCompleted": {
314
+ "type": "boolean"
315
+ },
316
+ "paused": {
317
+ "type": "boolean"
318
+ },
319
+ "target": {
320
+ "type": "string",
321
+ "maxLength": 32,
322
+ "pattern": "^-?[0-9]{1,24}(\\.[0-9]{1,6})?$"
323
+ },
324
+ "title": {
325
+ "type": "string",
326
+ "minLength": 1,
327
+ "maxLength": 160
328
+ },
329
+ "window": {
330
+ "anyOf": [
331
+ {
332
+ "type": "object",
333
+ "required": [
334
+ "end",
335
+ "start"
336
+ ],
337
+ "properties": {
338
+ "end": {
339
+ "type": "string"
340
+ },
341
+ "start": {
342
+ "type": "string"
343
+ }
344
+ },
345
+ "additionalProperties": false
346
+ },
347
+ {
348
+ "type": "null"
349
+ }
350
+ ]
351
+ }
352
+ },
353
+ "additionalProperties": false
354
+ }
355
+ },
356
+ "additionalProperties": false
357
+ },
358
+ "metric.record": {
359
+ "type": "object",
360
+ "required": [
361
+ "measurement",
362
+ "measurementVersion",
363
+ "metricId",
364
+ "observedAt",
365
+ "sourceKey",
366
+ "sourceLabel"
367
+ ],
368
+ "properties": {
369
+ "metricId": {
370
+ "type": "string"
371
+ },
372
+ "measurementVersion": {
373
+ "type": "integer",
374
+ "minimum": 1
375
+ },
376
+ "sourceKey": {
377
+ "type": "string",
378
+ "minLength": 1,
379
+ "maxLength": 160
380
+ },
381
+ "sourceLabel": {
382
+ "type": "string",
383
+ "minLength": 1,
384
+ "maxLength": 120
385
+ },
386
+ "observedAt": {
387
+ "type": "string"
388
+ },
389
+ "measurement": {
390
+ "type": "object",
391
+ "required": [
392
+ "denominator",
393
+ "numerator",
394
+ "value"
395
+ ],
396
+ "properties": {
397
+ "denominator": {
398
+ "anyOf": [
399
+ {
400
+ "type": "number",
401
+ "minimum": 0,
402
+ "maximum": 1000000000
403
+ },
404
+ {
405
+ "type": "null"
406
+ }
407
+ ]
408
+ },
409
+ "numerator": {
410
+ "anyOf": [
411
+ {
412
+ "type": "number",
413
+ "minimum": 0,
414
+ "maximum": 1000000000
415
+ },
416
+ {
417
+ "type": "null"
418
+ }
419
+ ]
420
+ },
421
+ "value": {
422
+ "anyOf": [
423
+ {
424
+ "type": "number",
425
+ "minimum": -1000000000,
426
+ "maximum": 1000000000
427
+ },
428
+ {
429
+ "type": "null"
430
+ }
431
+ ]
432
+ }
433
+ },
434
+ "additionalProperties": false
435
+ }
436
+ },
437
+ "additionalProperties": false
438
+ },
439
+ "metric.update": {
440
+ "type": "object",
441
+ "required": [
442
+ "configuration"
443
+ ],
444
+ "properties": {
445
+ "configuration": {
446
+ "type": "object",
447
+ "required": [
448
+ "aggregation",
449
+ "archived",
450
+ "description",
451
+ "freshnessSeconds",
452
+ "key",
453
+ "kind",
454
+ "paused",
455
+ "precision",
456
+ "ratioScale",
457
+ "title",
458
+ "unit",
459
+ "writers"
460
+ ],
461
+ "properties": {
462
+ "aggregation": {
463
+ "type": "string",
464
+ "enum": [
465
+ "Latest",
466
+ "Sum",
467
+ "Mean",
468
+ "Ratio"
469
+ ]
470
+ },
471
+ "archived": {
472
+ "type": "boolean"
473
+ },
474
+ "description": {
475
+ "type": "string",
476
+ "maxLength": 1200
477
+ },
478
+ "freshnessSeconds": {
479
+ "anyOf": [
480
+ {
481
+ "type": "integer",
482
+ "minimum": 60,
483
+ "maximum": 31536000
484
+ },
485
+ {
486
+ "type": "null"
487
+ }
488
+ ]
489
+ },
490
+ "key": {
491
+ "type": "string",
492
+ "maxLength": 48,
493
+ "pattern": "^[a-z][a-z0-9_-]{0,47}$"
494
+ },
495
+ "kind": {
496
+ "type": "string",
497
+ "enum": [
498
+ "Gauge",
499
+ "Counter",
500
+ "Ratio"
501
+ ]
502
+ },
503
+ "paused": {
504
+ "type": "boolean"
505
+ },
506
+ "precision": {
507
+ "type": "integer",
508
+ "minimum": 0,
509
+ "maximum": 6
510
+ },
511
+ "ratioScale": {
512
+ "type": "integer",
513
+ "minimum": 1,
514
+ "maximum": 100
515
+ },
516
+ "title": {
517
+ "type": "string",
518
+ "minLength": 1,
519
+ "maxLength": 160
520
+ },
521
+ "unit": {
522
+ "type": "string",
523
+ "minLength": 1,
524
+ "maxLength": 24
525
+ },
526
+ "writers": {
527
+ "type": "array",
528
+ "maxItems": 64,
529
+ "uniqueItems": true,
530
+ "items": {
531
+ "type": "string"
532
+ }
533
+ }
534
+ },
535
+ "additionalProperties": false
536
+ }
537
+ },
538
+ "additionalProperties": false
539
+ },
540
+ "metric.void": {
541
+ "type": "object",
542
+ "required": [
543
+ "reason"
544
+ ],
545
+ "properties": {
546
+ "reason": {
547
+ "type": "string",
548
+ "minLength": 1,
549
+ "maxLength": 500
550
+ }
551
+ },
552
+ "additionalProperties": false
553
+ },
554
+ "protocol.apply": {
555
+ "type": "object",
556
+ "required": [
557
+ "count",
558
+ "digest",
559
+ "from"
560
+ ],
561
+ "properties": {
562
+ "digest": {
563
+ "type": "string",
564
+ "maxLength": 64,
565
+ "pattern": "^[a-f0-9]{64}$"
566
+ },
567
+ "from": {
568
+ "type": "integer",
569
+ "minimum": 0,
570
+ "maximum": 199
571
+ },
572
+ "count": {
573
+ "type": "integer",
574
+ "minimum": 1,
575
+ "maximum": 20
576
+ }
577
+ },
578
+ "additionalProperties": false
579
+ },
580
+ "protocol.cancel": {
581
+ "type": "object",
582
+ "required": [],
583
+ "properties": {},
584
+ "additionalProperties": false
585
+ },
586
+ "protocol.publish": {
587
+ "type": "object",
588
+ "required": [
589
+ "definition",
590
+ "previousVersionId"
591
+ ],
592
+ "properties": {
593
+ "definition": {
594
+ "type": "object",
595
+ "required": [
596
+ "description",
597
+ "formatVersion",
598
+ "name",
599
+ "steps",
600
+ "variables"
601
+ ],
602
+ "properties": {
603
+ "description": {
604
+ "type": "string",
605
+ "maxLength": 1000
606
+ },
607
+ "formatVersion": {
608
+ "type": "integer",
609
+ "minimum": 1,
610
+ "maximum": 1
611
+ },
612
+ "name": {
613
+ "type": "string",
614
+ "minLength": 1,
615
+ "maxLength": 160
616
+ },
617
+ "steps": {
618
+ "type": "array",
619
+ "minItems": 1,
620
+ "maxItems": 200,
621
+ "items": {
622
+ "type": "object",
623
+ "required": [
624
+ "acceptance",
625
+ "delivery",
626
+ "dependencies",
627
+ "description",
628
+ "dueAfterDays",
629
+ "importance",
630
+ "importanceReason",
631
+ "key",
632
+ "kind",
633
+ "ownerVariable",
634
+ "parent",
635
+ "title"
636
+ ],
637
+ "properties": {
638
+ "acceptance": {
639
+ "type": "array",
640
+ "minItems": 1,
641
+ "maxItems": 10,
642
+ "items": {
643
+ "type": "string"
644
+ }
645
+ },
646
+ "delivery": {
647
+ "type": "object",
648
+ "required": [
649
+ "animation",
650
+ "push",
651
+ "recap"
652
+ ],
653
+ "properties": {
654
+ "animation": {
655
+ "type": "string",
656
+ "enum": [
657
+ "inherit",
658
+ "silent",
659
+ "request"
660
+ ]
661
+ },
662
+ "push": {
663
+ "type": "string",
664
+ "enum": [
665
+ "inherit",
666
+ "silent",
667
+ "request"
668
+ ]
669
+ },
670
+ "recap": {
671
+ "type": "boolean"
672
+ }
673
+ },
674
+ "additionalProperties": false
675
+ },
676
+ "dependencies": {
677
+ "type": "array",
678
+ "maxItems": 20,
679
+ "uniqueItems": true,
680
+ "items": {
681
+ "type": "string"
682
+ }
683
+ },
684
+ "description": {
685
+ "type": "string",
686
+ "maxLength": 600
687
+ },
688
+ "dueAfterDays": {
689
+ "anyOf": [
690
+ {
691
+ "type": "integer",
692
+ "minimum": 0,
693
+ "maximum": 3650
694
+ },
695
+ {
696
+ "type": "null"
697
+ }
698
+ ]
699
+ },
700
+ "importance": {
701
+ "type": "string",
702
+ "enum": [
703
+ "Minor",
704
+ "Normal",
705
+ "Important",
706
+ "Critical"
707
+ ]
708
+ },
709
+ "importanceReason": {
710
+ "type": "string",
711
+ "maxLength": 400
712
+ },
713
+ "key": {
714
+ "type": "string",
715
+ "maxLength": 48,
716
+ "pattern": "^[a-z][a-z0-9_-]{0,47}$"
717
+ },
718
+ "kind": {
719
+ "type": "string",
720
+ "enum": [
721
+ "Ticket",
722
+ "Epic",
723
+ "Subtask"
724
+ ]
725
+ },
726
+ "ownerVariable": {
727
+ "anyOf": [
728
+ {
729
+ "type": "string",
730
+ "maxLength": 48
731
+ },
732
+ {
733
+ "type": "null"
734
+ }
735
+ ]
736
+ },
737
+ "parent": {
738
+ "anyOf": [
739
+ {
740
+ "type": "string",
741
+ "maxLength": 48
742
+ },
743
+ {
744
+ "type": "null"
745
+ }
746
+ ]
747
+ },
748
+ "title": {
749
+ "type": "string",
750
+ "minLength": 3,
751
+ "maxLength": 200
752
+ }
753
+ },
754
+ "additionalProperties": false
755
+ }
756
+ },
757
+ "variables": {
758
+ "type": "array",
759
+ "maxItems": 24,
760
+ "items": {
761
+ "type": "object",
762
+ "required": [
763
+ "key",
764
+ "kind",
765
+ "label",
766
+ "required"
767
+ ],
768
+ "properties": {
769
+ "defaultValue": {},
770
+ "key": {
771
+ "type": "string",
772
+ "maxLength": 48,
773
+ "pattern": "^[a-z][a-z0-9_-]{0,47}$"
774
+ },
775
+ "kind": {
776
+ "type": "string",
777
+ "enum": [
778
+ "text",
779
+ "number",
780
+ "boolean",
781
+ "user",
782
+ "date"
783
+ ]
784
+ },
785
+ "label": {
786
+ "type": "string",
787
+ "minLength": 1,
788
+ "maxLength": 120
789
+ },
790
+ "required": {
791
+ "type": "boolean"
792
+ }
793
+ },
794
+ "additionalProperties": false
795
+ }
796
+ }
797
+ },
798
+ "additionalProperties": false
799
+ },
800
+ "previousVersionId": {
801
+ "anyOf": [
802
+ {
803
+ "type": "string",
804
+ "maxLength": 36
805
+ },
806
+ {
807
+ "type": "null"
808
+ }
809
+ ]
810
+ }
811
+ },
812
+ "additionalProperties": false
813
+ },
814
+ "protocol.start": {
815
+ "type": "object",
816
+ "required": [
817
+ "bindings",
818
+ "protocolVersionId"
819
+ ],
820
+ "properties": {
821
+ "protocolVersionId": {
822
+ "type": "string",
823
+ "maxLength": 36
824
+ },
825
+ "bindings": {
826
+ "type": "object",
827
+ "required": [
828
+ "anchor",
829
+ "epoch",
830
+ "instanceId",
831
+ "scope",
832
+ "values"
833
+ ],
834
+ "properties": {
835
+ "anchor": {
836
+ "type": "string"
837
+ },
838
+ "epoch": {
839
+ "type": "string",
840
+ "minLength": 1,
841
+ "maxLength": 128
842
+ },
843
+ "instanceId": {
844
+ "type": "string",
845
+ "maxLength": 36,
846
+ "pattern": "^[a-f0-9]{8}-[a-f0-9]{4}-[1-8][a-f0-9]{3}-[89ab][a-f0-9]{3}-[a-f0-9]{12}$"
847
+ },
848
+ "scope": {
849
+ "type": "string",
850
+ "maxLength": 128,
851
+ "pattern": "^project:[A-Za-z0-9_-]+$"
852
+ },
853
+ "values": {
854
+ "type": "object",
855
+ "maxProperties": 24,
856
+ "additionalProperties": {}
857
+ }
858
+ },
859
+ "additionalProperties": false
860
+ }
861
+ },
862
+ "additionalProperties": false
863
+ },
864
+ "run.checkpoint": {
865
+ "type": "object",
866
+ "required": [
867
+ "state",
868
+ "summary"
869
+ ],
870
+ "properties": {
871
+ "state": {
872
+ "type": "string",
873
+ "enum": [
874
+ "Working",
875
+ "Waiting",
876
+ "NeedsReview"
877
+ ]
878
+ },
879
+ "summary": {
880
+ "type": "string",
881
+ "minLength": 1,
882
+ "maxLength": 2000
883
+ },
884
+ "nextSteps": {
885
+ "type": "string",
886
+ "maxLength": 4000
887
+ },
888
+ "evidence": {
889
+ "type": "array",
890
+ "maxItems": 8,
891
+ "items": {
892
+ "type": "object",
893
+ "required": [
894
+ "label",
895
+ "url"
896
+ ],
897
+ "properties": {
898
+ "label": {
899
+ "type": "string",
900
+ "minLength": 1,
901
+ "maxLength": 120
902
+ },
903
+ "url": {
904
+ "type": "string",
905
+ "minLength": 1,
906
+ "maxLength": 2048
907
+ }
908
+ },
909
+ "additionalProperties": false
910
+ }
911
+ },
912
+ "leaseSeconds": {
913
+ "type": "integer",
914
+ "minimum": 60,
915
+ "maximum": 900
916
+ }
917
+ },
918
+ "additionalProperties": false
919
+ },
920
+ "run.claim": {
921
+ "type": "object",
922
+ "required": [
923
+ "summary",
924
+ "task",
925
+ "taskRevision"
926
+ ],
927
+ "properties": {
928
+ "task": {
929
+ "type": "string",
930
+ "minLength": 1,
931
+ "maxLength": 128
932
+ },
933
+ "taskRevision": {
934
+ "type": "string",
935
+ "minLength": 1,
936
+ "maxLength": 40
937
+ },
938
+ "summary": {
939
+ "type": "string",
940
+ "minLength": 1,
941
+ "maxLength": 2000
942
+ },
943
+ "leaseSeconds": {
944
+ "type": "integer",
945
+ "minimum": 60,
946
+ "maximum": 900
947
+ }
948
+ },
949
+ "additionalProperties": false
950
+ },
951
+ "run.finish": {
952
+ "type": "object",
953
+ "required": [
954
+ "state",
955
+ "summary"
956
+ ],
957
+ "properties": {
958
+ "state": {
959
+ "type": "string",
960
+ "enum": [
961
+ "Completed",
962
+ "Failed",
963
+ "Cancelled"
964
+ ]
965
+ },
966
+ "summary": {
967
+ "type": "string",
968
+ "minLength": 1,
969
+ "maxLength": 2000
970
+ },
971
+ "nextSteps": {
972
+ "type": "string",
973
+ "maxLength": 4000
974
+ },
975
+ "evidence": {
976
+ "type": "array",
977
+ "maxItems": 8,
978
+ "items": {
979
+ "type": "object",
980
+ "required": [
981
+ "label",
982
+ "url"
983
+ ],
984
+ "properties": {
985
+ "label": {
986
+ "type": "string",
987
+ "minLength": 1,
988
+ "maxLength": 120
989
+ },
990
+ "url": {
991
+ "type": "string",
992
+ "minLength": 1,
993
+ "maxLength": 2048
994
+ }
995
+ },
996
+ "additionalProperties": false
997
+ }
998
+ }
999
+ },
1000
+ "additionalProperties": false
1001
+ },
1002
+ "run.patch": {
1003
+ "type": "object",
1004
+ "required": [
1005
+ "patch",
1006
+ "taskRevision"
1007
+ ],
1008
+ "properties": {
1009
+ "taskRevision": {
1010
+ "type": "string",
1011
+ "minLength": 1,
1012
+ "maxLength": 40
1013
+ },
1014
+ "patch": {
1015
+ "type": "object",
1016
+ "additionalProperties": {}
1017
+ }
1018
+ },
1019
+ "additionalProperties": false
1020
+ }
1021
+ };