@pulsarinteractive/geniustasker 0.1.0-beta.12 → 0.1.0-beta.14

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 (43) hide show
  1. package/CHANGELOG.md +20 -0
  2. package/README.md +12 -1
  3. package/docs/CHATGPT.md +6 -0
  4. package/docs/CLI.md +75 -5
  5. package/docs/FEEDBACK.md +96 -0
  6. package/docs/INTEGRATIONS.md +25 -2
  7. package/docs/PLANNING.md +95 -0
  8. package/docs/TASK_LOCKS.md +91 -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 +1 -1
  13. package/plugin.json +1 -1
  14. package/remote/tool-catalog.json +779 -1
  15. package/remote/workflows.json +56 -2
  16. package/skills/geniustasker/SKILL.md +29 -1
  17. package/skills/geniustasker/references/agent-runs.md +13 -0
  18. package/skills/geniustasker/references/incremental-reads.md +9 -0
  19. package/skills/geniustasker/references/metric-goals.md +143 -0
  20. package/skills/geniustasker/references/metrics-observations.md +184 -0
  21. package/skills/geniustasker/references/metrics.md +136 -0
  22. package/skills/geniustasker/references/protocols.md +18 -3
  23. package/skills/geniustasker-feedback/SKILL.md +44 -0
  24. package/skills/geniustasker-feedback/agents/openai.yaml +4 -0
  25. package/skills/geniustasker-memory/SKILL.md +4 -1
  26. package/skills/geniustasker-planning/SKILL.md +28 -0
  27. package/src/changes.mjs +7 -5
  28. package/src/cli.mjs +165 -16
  29. package/src/client.mjs +16 -0
  30. package/src/command-catalog.mjs +151 -1
  31. package/src/command-input-schemas.mjs +1254 -93
  32. package/src/commands.mjs +257 -22
  33. package/src/feedback-contract.mjs +629 -0
  34. package/src/feedback-image.mjs +123 -0
  35. package/src/feedback-media-transfer.mjs +61 -0
  36. package/src/feedback.mjs +152 -0
  37. package/src/intents.mjs +111 -0
  38. package/src/mcp.mjs +143 -20
  39. package/src/protocols.mjs +1 -0
  40. package/src/resources.mjs +114 -0
  41. package/src/task-availability-contract.mjs +121 -0
  42. package/src/task-availability.mjs +25 -0
  43. package/src/transport.mjs +10 -3
@@ -1,139 +1,840 @@
1
1
  // Generated public command data schemas. Do not edit by hand.
2
2
  export default {
3
- "protocol.apply": {
3
+ "intent.change": {
4
4
  "type": "object",
5
5
  "required": [
6
- "count",
7
- "digest",
8
- "from"
6
+ "decision",
7
+ "expectedIntentRevision",
8
+ "id",
9
+ "replaces",
10
+ "selection",
11
+ "sourceVersion"
9
12
  ],
10
13
  "properties": {
11
- "digest": {
12
- "type": "string",
13
- "maxLength": 64,
14
- "pattern": "^[a-f0-9]{64}$"
14
+ "decision": {
15
+ "oneOf": [
16
+ {
17
+ "type": "string",
18
+ "enum": [
19
+ "set"
20
+ ]
21
+ },
22
+ {
23
+ "type": "string",
24
+ "enum": [
25
+ "cancel"
26
+ ]
27
+ }
28
+ ]
15
29
  },
16
- "from": {
17
- "type": "integer",
18
- "minimum": 0,
19
- "maximum": 199
30
+ "id": {
31
+ "type": "string"
20
32
  },
21
- "count": {
22
- "type": "integer",
23
- "minimum": 1,
24
- "maximum": 20
33
+ "expectedIntentRevision": {
34
+ "anyOf": [
35
+ {
36
+ "type": "string",
37
+ "maxLength": 64
38
+ },
39
+ {
40
+ "type": "null"
41
+ }
42
+ ]
43
+ },
44
+ "selection": {
45
+ "anyOf": [
46
+ {
47
+ "type": "object",
48
+ "required": [
49
+ "endsAt",
50
+ "kind",
51
+ "objective",
52
+ "startsAt",
53
+ "taskIds"
54
+ ],
55
+ "properties": {
56
+ "endsAt": {
57
+ "type": "string"
58
+ },
59
+ "kind": {
60
+ "oneOf": [
61
+ {
62
+ "type": "string",
63
+ "enum": [
64
+ "focus"
65
+ ]
66
+ },
67
+ {
68
+ "type": "string",
69
+ "enum": [
70
+ "defer"
71
+ ]
72
+ }
73
+ ]
74
+ },
75
+ "objective": {
76
+ "oneOf": [
77
+ {
78
+ "type": "string",
79
+ "enum": [
80
+ "finish"
81
+ ]
82
+ },
83
+ {
84
+ "type": "string",
85
+ "enum": [
86
+ "unblock"
87
+ ]
88
+ },
89
+ {
90
+ "type": "string",
91
+ "enum": [
92
+ "consistency"
93
+ ]
94
+ },
95
+ {
96
+ "type": "string",
97
+ "enum": [
98
+ "pause"
99
+ ]
100
+ }
101
+ ]
102
+ },
103
+ "startsAt": {
104
+ "anyOf": [
105
+ {
106
+ "type": "string"
107
+ },
108
+ {
109
+ "type": "null"
110
+ }
111
+ ]
112
+ },
113
+ "taskIds": {
114
+ "type": "array",
115
+ "minItems": 1,
116
+ "maxItems": 20,
117
+ "uniqueItems": true,
118
+ "items": {
119
+ "type": "string"
120
+ }
121
+ }
122
+ },
123
+ "additionalProperties": false
124
+ },
125
+ {
126
+ "type": "null"
127
+ }
128
+ ]
129
+ },
130
+ "sourceVersion": {
131
+ "anyOf": [
132
+ {
133
+ "type": "string",
134
+ "maxLength": 64,
135
+ "pattern": "^[a-f0-9]{64}$"
136
+ },
137
+ {
138
+ "type": "null"
139
+ }
140
+ ]
141
+ },
142
+ "replaces": {
143
+ "type": "array",
144
+ "maxItems": 16,
145
+ "uniqueItems": true,
146
+ "items": {
147
+ "type": "string"
148
+ }
25
149
  }
26
150
  },
27
151
  "additionalProperties": false
28
152
  },
29
- "protocol.cancel": {
153
+ "metric.correct": {
30
154
  "type": "object",
31
- "required": [],
32
- "properties": {},
155
+ "required": [
156
+ "measurement",
157
+ "observedAt",
158
+ "reason"
159
+ ],
160
+ "properties": {
161
+ "observedAt": {
162
+ "type": "string"
163
+ },
164
+ "measurement": {
165
+ "type": "object",
166
+ "required": [
167
+ "denominator",
168
+ "numerator",
169
+ "value"
170
+ ],
171
+ "properties": {
172
+ "denominator": {
173
+ "anyOf": [
174
+ {
175
+ "type": "number",
176
+ "minimum": 0,
177
+ "maximum": 1000000000
178
+ },
179
+ {
180
+ "type": "null"
181
+ }
182
+ ]
183
+ },
184
+ "numerator": {
185
+ "anyOf": [
186
+ {
187
+ "type": "number",
188
+ "minimum": 0,
189
+ "maximum": 1000000000
190
+ },
191
+ {
192
+ "type": "null"
193
+ }
194
+ ]
195
+ },
196
+ "value": {
197
+ "anyOf": [
198
+ {
199
+ "type": "number",
200
+ "minimum": -1000000000,
201
+ "maximum": 1000000000
202
+ },
203
+ {
204
+ "type": "null"
205
+ }
206
+ ]
207
+ }
208
+ },
209
+ "additionalProperties": false
210
+ },
211
+ "reason": {
212
+ "type": "string",
213
+ "minLength": 1,
214
+ "maxLength": 500
215
+ }
216
+ },
33
217
  "additionalProperties": false
34
218
  },
35
- "protocol.publish": {
219
+ "metric.create": {
36
220
  "type": "object",
37
221
  "required": [
38
- "definition",
39
- "previousVersionId"
222
+ "configuration"
40
223
  ],
41
224
  "properties": {
42
- "definition": {
225
+ "configuration": {
43
226
  "type": "object",
44
227
  "required": [
228
+ "aggregation",
229
+ "archived",
45
230
  "description",
46
- "formatVersion",
47
- "name",
48
- "steps",
49
- "variables"
231
+ "freshnessSeconds",
232
+ "key",
233
+ "kind",
234
+ "paused",
235
+ "precision",
236
+ "ratioScale",
237
+ "title",
238
+ "unit",
239
+ "writers"
50
240
  ],
51
241
  "properties": {
242
+ "aggregation": {
243
+ "type": "string",
244
+ "enum": [
245
+ "Latest",
246
+ "Sum",
247
+ "Mean",
248
+ "Ratio"
249
+ ]
250
+ },
251
+ "archived": {
252
+ "type": "boolean"
253
+ },
52
254
  "description": {
53
255
  "type": "string",
54
- "maxLength": 1000
256
+ "maxLength": 1200
55
257
  },
56
- "formatVersion": {
258
+ "freshnessSeconds": {
259
+ "anyOf": [
260
+ {
261
+ "type": "integer",
262
+ "minimum": 60,
263
+ "maximum": 31536000
264
+ },
265
+ {
266
+ "type": "null"
267
+ }
268
+ ]
269
+ },
270
+ "key": {
271
+ "type": "string",
272
+ "maxLength": 48,
273
+ "pattern": "^[a-z][a-z0-9_-]{0,47}$"
274
+ },
275
+ "kind": {
276
+ "type": "string",
277
+ "enum": [
278
+ "Gauge",
279
+ "Counter",
280
+ "Ratio"
281
+ ]
282
+ },
283
+ "paused": {
284
+ "type": "boolean"
285
+ },
286
+ "precision": {
287
+ "type": "integer",
288
+ "minimum": 0,
289
+ "maximum": 6
290
+ },
291
+ "ratioScale": {
57
292
  "type": "integer",
58
293
  "minimum": 1,
59
- "maximum": 1
294
+ "maximum": 100
60
295
  },
61
- "name": {
296
+ "title": {
62
297
  "type": "string",
63
298
  "minLength": 1,
64
299
  "maxLength": 160
65
300
  },
66
- "steps": {
301
+ "unit": {
302
+ "type": "string",
303
+ "minLength": 1,
304
+ "maxLength": 24
305
+ },
306
+ "writers": {
67
307
  "type": "array",
68
- "minItems": 1,
69
- "maxItems": 200,
308
+ "maxItems": 64,
309
+ "uniqueItems": true,
70
310
  "items": {
71
- "type": "object",
72
- "required": [
73
- "acceptance",
74
- "delivery",
75
- "dependencies",
76
- "description",
77
- "dueAfterDays",
78
- "importance",
79
- "importanceReason",
80
- "key",
81
- "kind",
82
- "ownerVariable",
83
- "parent",
84
- "title"
85
- ],
86
- "properties": {
87
- "acceptance": {
88
- "type": "array",
89
- "minItems": 1,
90
- "maxItems": 10,
91
- "items": {
311
+ "type": "string"
312
+ }
313
+ }
314
+ },
315
+ "additionalProperties": false
316
+ }
317
+ },
318
+ "additionalProperties": false
319
+ },
320
+ "metric.goal.create": {
321
+ "type": "object",
322
+ "required": [
323
+ "configuration"
324
+ ],
325
+ "properties": {
326
+ "configuration": {
327
+ "type": "object",
328
+ "required": [
329
+ "archived",
330
+ "coachSignal",
331
+ "comparison",
332
+ "completion",
333
+ "description",
334
+ "metricId",
335
+ "notifyCompleted",
336
+ "paused",
337
+ "target",
338
+ "title",
339
+ "window"
340
+ ],
341
+ "properties": {
342
+ "archived": {
343
+ "type": "boolean"
344
+ },
345
+ "coachSignal": {
346
+ "type": "boolean"
347
+ },
348
+ "comparison": {
349
+ "type": "string",
350
+ "enum": [
351
+ "AtLeast",
352
+ "AtMost"
353
+ ]
354
+ },
355
+ "completion": {
356
+ "type": "string",
357
+ "enum": [
358
+ "OnReach",
359
+ "AtEnd"
360
+ ]
361
+ },
362
+ "description": {
363
+ "type": "string",
364
+ "maxLength": 1200
365
+ },
366
+ "metricId": {
367
+ "type": "string"
368
+ },
369
+ "notifyCompleted": {
370
+ "type": "boolean"
371
+ },
372
+ "paused": {
373
+ "type": "boolean"
374
+ },
375
+ "target": {
376
+ "type": "string",
377
+ "maxLength": 32,
378
+ "pattern": "^-?[0-9]{1,24}(\\.[0-9]{1,6})?$"
379
+ },
380
+ "title": {
381
+ "type": "string",
382
+ "minLength": 1,
383
+ "maxLength": 160
384
+ },
385
+ "window": {
386
+ "anyOf": [
387
+ {
388
+ "type": "object",
389
+ "required": [
390
+ "end",
391
+ "start"
392
+ ],
393
+ "properties": {
394
+ "end": {
395
+ "type": "string"
396
+ },
397
+ "start": {
92
398
  "type": "string"
93
399
  }
94
400
  },
95
- "delivery": {
96
- "type": "object",
97
- "required": [
98
- "animation",
99
- "push",
100
- "recap"
101
- ],
102
- "properties": {
103
- "animation": {
104
- "type": "string",
105
- "enum": [
106
- "inherit",
107
- "silent",
108
- "request"
109
- ]
110
- },
111
- "push": {
112
- "type": "string",
113
- "enum": [
114
- "inherit",
115
- "silent",
116
- "request"
117
- ]
118
- },
119
- "recap": {
120
- "type": "boolean"
121
- }
401
+ "additionalProperties": false
402
+ },
403
+ {
404
+ "type": "null"
405
+ }
406
+ ]
407
+ }
408
+ },
409
+ "additionalProperties": false
410
+ }
411
+ },
412
+ "additionalProperties": false
413
+ },
414
+ "metric.goal.update": {
415
+ "type": "object",
416
+ "required": [
417
+ "configuration"
418
+ ],
419
+ "properties": {
420
+ "configuration": {
421
+ "type": "object",
422
+ "required": [
423
+ "archived",
424
+ "coachSignal",
425
+ "comparison",
426
+ "completion",
427
+ "description",
428
+ "metricId",
429
+ "notifyCompleted",
430
+ "paused",
431
+ "target",
432
+ "title",
433
+ "window"
434
+ ],
435
+ "properties": {
436
+ "archived": {
437
+ "type": "boolean"
438
+ },
439
+ "coachSignal": {
440
+ "type": "boolean"
441
+ },
442
+ "comparison": {
443
+ "type": "string",
444
+ "enum": [
445
+ "AtLeast",
446
+ "AtMost"
447
+ ]
448
+ },
449
+ "completion": {
450
+ "type": "string",
451
+ "enum": [
452
+ "OnReach",
453
+ "AtEnd"
454
+ ]
455
+ },
456
+ "description": {
457
+ "type": "string",
458
+ "maxLength": 1200
459
+ },
460
+ "metricId": {
461
+ "type": "string"
462
+ },
463
+ "notifyCompleted": {
464
+ "type": "boolean"
465
+ },
466
+ "paused": {
467
+ "type": "boolean"
468
+ },
469
+ "target": {
470
+ "type": "string",
471
+ "maxLength": 32,
472
+ "pattern": "^-?[0-9]{1,24}(\\.[0-9]{1,6})?$"
473
+ },
474
+ "title": {
475
+ "type": "string",
476
+ "minLength": 1,
477
+ "maxLength": 160
478
+ },
479
+ "window": {
480
+ "anyOf": [
481
+ {
482
+ "type": "object",
483
+ "required": [
484
+ "end",
485
+ "start"
486
+ ],
487
+ "properties": {
488
+ "end": {
489
+ "type": "string"
122
490
  },
123
- "additionalProperties": false
124
- },
125
- "dependencies": {
126
- "type": "array",
127
- "maxItems": 20,
128
- "uniqueItems": true,
129
- "items": {
491
+ "start": {
130
492
  "type": "string"
131
493
  }
132
494
  },
133
- "description": {
134
- "type": "string",
135
- "maxLength": 600
136
- },
495
+ "additionalProperties": false
496
+ },
497
+ {
498
+ "type": "null"
499
+ }
500
+ ]
501
+ }
502
+ },
503
+ "additionalProperties": false
504
+ }
505
+ },
506
+ "additionalProperties": false
507
+ },
508
+ "metric.record": {
509
+ "type": "object",
510
+ "required": [
511
+ "measurement",
512
+ "measurementVersion",
513
+ "metricId",
514
+ "observedAt",
515
+ "sourceKey",
516
+ "sourceLabel"
517
+ ],
518
+ "properties": {
519
+ "metricId": {
520
+ "type": "string"
521
+ },
522
+ "measurementVersion": {
523
+ "type": "integer",
524
+ "minimum": 1
525
+ },
526
+ "sourceKey": {
527
+ "type": "string",
528
+ "minLength": 1,
529
+ "maxLength": 160
530
+ },
531
+ "sourceLabel": {
532
+ "type": "string",
533
+ "minLength": 1,
534
+ "maxLength": 120
535
+ },
536
+ "observedAt": {
537
+ "type": "string"
538
+ },
539
+ "measurement": {
540
+ "type": "object",
541
+ "required": [
542
+ "denominator",
543
+ "numerator",
544
+ "value"
545
+ ],
546
+ "properties": {
547
+ "denominator": {
548
+ "anyOf": [
549
+ {
550
+ "type": "number",
551
+ "minimum": 0,
552
+ "maximum": 1000000000
553
+ },
554
+ {
555
+ "type": "null"
556
+ }
557
+ ]
558
+ },
559
+ "numerator": {
560
+ "anyOf": [
561
+ {
562
+ "type": "number",
563
+ "minimum": 0,
564
+ "maximum": 1000000000
565
+ },
566
+ {
567
+ "type": "null"
568
+ }
569
+ ]
570
+ },
571
+ "value": {
572
+ "anyOf": [
573
+ {
574
+ "type": "number",
575
+ "minimum": -1000000000,
576
+ "maximum": 1000000000
577
+ },
578
+ {
579
+ "type": "null"
580
+ }
581
+ ]
582
+ }
583
+ },
584
+ "additionalProperties": false
585
+ }
586
+ },
587
+ "additionalProperties": false
588
+ },
589
+ "metric.update": {
590
+ "type": "object",
591
+ "required": [
592
+ "configuration"
593
+ ],
594
+ "properties": {
595
+ "configuration": {
596
+ "type": "object",
597
+ "required": [
598
+ "aggregation",
599
+ "archived",
600
+ "description",
601
+ "freshnessSeconds",
602
+ "key",
603
+ "kind",
604
+ "paused",
605
+ "precision",
606
+ "ratioScale",
607
+ "title",
608
+ "unit",
609
+ "writers"
610
+ ],
611
+ "properties": {
612
+ "aggregation": {
613
+ "type": "string",
614
+ "enum": [
615
+ "Latest",
616
+ "Sum",
617
+ "Mean",
618
+ "Ratio"
619
+ ]
620
+ },
621
+ "archived": {
622
+ "type": "boolean"
623
+ },
624
+ "description": {
625
+ "type": "string",
626
+ "maxLength": 1200
627
+ },
628
+ "freshnessSeconds": {
629
+ "anyOf": [
630
+ {
631
+ "type": "integer",
632
+ "minimum": 60,
633
+ "maximum": 31536000
634
+ },
635
+ {
636
+ "type": "null"
637
+ }
638
+ ]
639
+ },
640
+ "key": {
641
+ "type": "string",
642
+ "maxLength": 48,
643
+ "pattern": "^[a-z][a-z0-9_-]{0,47}$"
644
+ },
645
+ "kind": {
646
+ "type": "string",
647
+ "enum": [
648
+ "Gauge",
649
+ "Counter",
650
+ "Ratio"
651
+ ]
652
+ },
653
+ "paused": {
654
+ "type": "boolean"
655
+ },
656
+ "precision": {
657
+ "type": "integer",
658
+ "minimum": 0,
659
+ "maximum": 6
660
+ },
661
+ "ratioScale": {
662
+ "type": "integer",
663
+ "minimum": 1,
664
+ "maximum": 100
665
+ },
666
+ "title": {
667
+ "type": "string",
668
+ "minLength": 1,
669
+ "maxLength": 160
670
+ },
671
+ "unit": {
672
+ "type": "string",
673
+ "minLength": 1,
674
+ "maxLength": 24
675
+ },
676
+ "writers": {
677
+ "type": "array",
678
+ "maxItems": 64,
679
+ "uniqueItems": true,
680
+ "items": {
681
+ "type": "string"
682
+ }
683
+ }
684
+ },
685
+ "additionalProperties": false
686
+ }
687
+ },
688
+ "additionalProperties": false
689
+ },
690
+ "metric.void": {
691
+ "type": "object",
692
+ "required": [
693
+ "reason"
694
+ ],
695
+ "properties": {
696
+ "reason": {
697
+ "type": "string",
698
+ "minLength": 1,
699
+ "maxLength": 500
700
+ }
701
+ },
702
+ "additionalProperties": false
703
+ },
704
+ "protocol.apply": {
705
+ "type": "object",
706
+ "required": [
707
+ "count",
708
+ "digest",
709
+ "from"
710
+ ],
711
+ "properties": {
712
+ "digest": {
713
+ "type": "string",
714
+ "maxLength": 64,
715
+ "pattern": "^[a-f0-9]{64}$"
716
+ },
717
+ "from": {
718
+ "type": "integer",
719
+ "minimum": 0,
720
+ "maximum": 199
721
+ },
722
+ "count": {
723
+ "type": "integer",
724
+ "minimum": 1,
725
+ "maximum": 20
726
+ }
727
+ },
728
+ "additionalProperties": false
729
+ },
730
+ "protocol.cancel": {
731
+ "type": "object",
732
+ "required": [],
733
+ "properties": {},
734
+ "additionalProperties": false
735
+ },
736
+ "protocol.publish": {
737
+ "type": "object",
738
+ "required": [
739
+ "definition",
740
+ "previousVersionId"
741
+ ],
742
+ "properties": {
743
+ "definition": {
744
+ "type": "object",
745
+ "required": [
746
+ "description",
747
+ "formatVersion",
748
+ "name",
749
+ "steps",
750
+ "variables"
751
+ ],
752
+ "properties": {
753
+ "description": {
754
+ "type": "string",
755
+ "maxLength": 1000
756
+ },
757
+ "formatVersion": {
758
+ "type": "integer",
759
+ "minimum": 1,
760
+ "maximum": 1
761
+ },
762
+ "name": {
763
+ "type": "string",
764
+ "minLength": 1,
765
+ "maxLength": 160
766
+ },
767
+ "steps": {
768
+ "type": "array",
769
+ "minItems": 1,
770
+ "maxItems": 200,
771
+ "items": {
772
+ "type": "object",
773
+ "required": [
774
+ "acceptance",
775
+ "delivery",
776
+ "dependencies",
777
+ "description",
778
+ "dueAfterDays",
779
+ "importance",
780
+ "importanceReason",
781
+ "key",
782
+ "kind",
783
+ "ownerVariable",
784
+ "parent",
785
+ "title"
786
+ ],
787
+ "properties": {
788
+ "acceptance": {
789
+ "type": "array",
790
+ "minItems": 1,
791
+ "maxItems": 10,
792
+ "items": {
793
+ "type": "string"
794
+ }
795
+ },
796
+ "delivery": {
797
+ "type": "object",
798
+ "required": [
799
+ "animation",
800
+ "push",
801
+ "recap"
802
+ ],
803
+ "properties": {
804
+ "animation": {
805
+ "type": "string",
806
+ "enum": [
807
+ "inherit",
808
+ "silent",
809
+ "request"
810
+ ]
811
+ },
812
+ "push": {
813
+ "type": "string",
814
+ "enum": [
815
+ "inherit",
816
+ "silent",
817
+ "request"
818
+ ]
819
+ },
820
+ "recap": {
821
+ "type": "boolean"
822
+ }
823
+ },
824
+ "additionalProperties": false
825
+ },
826
+ "dependencies": {
827
+ "type": "array",
828
+ "maxItems": 20,
829
+ "uniqueItems": true,
830
+ "items": {
831
+ "type": "string"
832
+ }
833
+ },
834
+ "description": {
835
+ "type": "string",
836
+ "maxLength": 600
837
+ },
137
838
  "dueAfterDays": {
138
839
  "anyOf": [
139
840
  {
@@ -146,6 +847,18 @@ export default {
146
847
  }
147
848
  ]
148
849
  },
850
+ "estimateDays": {
851
+ "anyOf": [
852
+ {
853
+ "type": "number",
854
+ "minimum": 0.1,
855
+ "maximum": 60
856
+ },
857
+ {
858
+ "type": "null"
859
+ }
860
+ ]
861
+ },
149
862
  "importance": {
150
863
  "type": "string",
151
864
  "enum": [
@@ -448,6 +1161,26 @@ export default {
448
1161
  },
449
1162
  "additionalProperties": false
450
1163
  },
1164
+ "run.lock": {
1165
+ "type": "object",
1166
+ "required": [
1167
+ "reason",
1168
+ "taskRevision"
1169
+ ],
1170
+ "properties": {
1171
+ "taskRevision": {
1172
+ "type": "string",
1173
+ "minLength": 1,
1174
+ "maxLength": 40
1175
+ },
1176
+ "reason": {
1177
+ "type": "string",
1178
+ "minLength": 1,
1179
+ "maxLength": 500
1180
+ }
1181
+ },
1182
+ "additionalProperties": false
1183
+ },
451
1184
  "run.patch": {
452
1185
  "type": "object",
453
1186
  "required": [
@@ -466,5 +1199,433 @@ export default {
466
1199
  }
467
1200
  },
468
1201
  "additionalProperties": false
1202
+ },
1203
+ "run.unlock": {
1204
+ "type": "object",
1205
+ "required": [
1206
+ "taskRevision"
1207
+ ],
1208
+ "properties": {
1209
+ "taskRevision": {
1210
+ "type": "string",
1211
+ "minLength": 1,
1212
+ "maxLength": 40
1213
+ }
1214
+ },
1215
+ "additionalProperties": false
1216
+ },
1217
+ "task.create": {
1218
+ "type": "object",
1219
+ "required": [
1220
+ "title"
1221
+ ],
1222
+ "properties": {
1223
+ "title": {
1224
+ "type": "string",
1225
+ "description": "Task title, 3 through 200 characters after server trimming. Required on creation.",
1226
+ "minLength": 3,
1227
+ "maxLength": 200
1228
+ },
1229
+ "description": {
1230
+ "anyOf": [
1231
+ {
1232
+ "type": "string",
1233
+ "description": "Optional short description, at most 600 characters. Omission preserves existing content on update; null clears it.",
1234
+ "maxLength": 600
1235
+ },
1236
+ {
1237
+ "type": "null"
1238
+ }
1239
+ ]
1240
+ },
1241
+ "importance": {
1242
+ "anyOf": [
1243
+ {
1244
+ "type": "string",
1245
+ "enum": [
1246
+ "Minor",
1247
+ "Normal",
1248
+ "Important",
1249
+ "Critical"
1250
+ ],
1251
+ "description": "Impact, independent of urgency or task type. New tasks default to Normal. Important/Critical require a useful importanceReason. An agent cannot replace a human-owned classification; null follows the existing Normal fallback."
1252
+ },
1253
+ {
1254
+ "type": "null"
1255
+ }
1256
+ ]
1257
+ },
1258
+ "importanceReason": {
1259
+ "anyOf": [
1260
+ {
1261
+ "type": "string",
1262
+ "description": "Explanation of impact, trimmed by the server, at most 400 characters. Important/Critical require a nonempty reason. Omission preserves the saved explanation; null or empty clears it subject to current importance rules.",
1263
+ "maxLength": 400
1264
+ },
1265
+ {
1266
+ "type": "null"
1267
+ }
1268
+ ]
1269
+ },
1270
+ "type": {
1271
+ "anyOf": [
1272
+ {
1273
+ "type": "string",
1274
+ "enum": [
1275
+ "Task",
1276
+ "Critical",
1277
+ "NewFeature",
1278
+ "Question"
1279
+ ],
1280
+ "description": "Task classification. New tasks default to Task. Critical here is a task type, not an importance estimate; null retains existing schema compatibility."
1281
+ },
1282
+ {
1283
+ "type": "null"
1284
+ }
1285
+ ]
1286
+ },
1287
+ "owner": {
1288
+ "anyOf": [
1289
+ {
1290
+ "type": "string",
1291
+ "description": "Existing approved project member user ID, or null for unassigned. The server may assign the creator when their task-edit rights are limited to owned tasks. Omission preserves the owner on update."
1292
+ },
1293
+ {
1294
+ "type": "null"
1295
+ }
1296
+ ]
1297
+ },
1298
+ "status": {
1299
+ "anyOf": [
1300
+ {
1301
+ "type": "string",
1302
+ "enum": [
1303
+ "New",
1304
+ "InProgress",
1305
+ "Done"
1306
+ ],
1307
+ "description": "Actual canonical progress: New means to do, InProgress means work has started, Done requires verified intended completion. New tasks default to New. Domain dependency, hierarchy and permission rules still apply. Null is accepted by the existing task schema but does not establish a known progress state. No Locked value belongs to this field."
1308
+ },
1309
+ {
1310
+ "type": "null"
1311
+ }
1312
+ ]
1313
+ },
1314
+ "enableDueDate": {
1315
+ "type": "boolean",
1316
+ "description": "Enable the separately supplied deadline. New tasks default to false; an effort estimate does not select or enable a deadline."
1317
+ },
1318
+ "dueDate": {
1319
+ "anyOf": [
1320
+ {
1321
+ "type": "string",
1322
+ "description": "Deadline as an ISO date-time, from 2000-01-01 inclusive to 2100-01-01 exclusive, or null to clear it. Supply an explicit timezone. Omission preserves the existing date."
1323
+ },
1324
+ {
1325
+ "type": "null"
1326
+ }
1327
+ ]
1328
+ },
1329
+ "estimateDays": {
1330
+ "anyOf": [
1331
+ {
1332
+ "type": "number",
1333
+ "description": "Approximate effort in working days: 0.1 is one tenth and 1 is one working day. Finite 0.1 through 60, or null for unknown. Not elapsed time, a deadline, or AI runtime. Omission preserves the current estimate; preserve human estimates unless revising them is authorized.",
1334
+ "minimum": 0.1,
1335
+ "maximum": 60
1336
+ },
1337
+ {
1338
+ "type": "null"
1339
+ }
1340
+ ]
1341
+ },
1342
+ "quantity": {
1343
+ "anyOf": [
1344
+ {
1345
+ "type": "number",
1346
+ "description": "Optional nonnegative task quantity, independent of working-day effort. Omission preserves the current quantity; null clears it.",
1347
+ "minimum": 0
1348
+ },
1349
+ {
1350
+ "type": "null"
1351
+ }
1352
+ ]
1353
+ },
1354
+ "quantityUnit": {
1355
+ "anyOf": [
1356
+ {
1357
+ "type": "string",
1358
+ "description": "Optional quantity unit, trimmed by the server, at most 20 characters. Omission preserves it; null clears it.",
1359
+ "maxLength": 20
1360
+ },
1361
+ {
1362
+ "type": "null"
1363
+ }
1364
+ ]
1365
+ },
1366
+ "autoArchive": {
1367
+ "type": "boolean",
1368
+ "description": "Whether completed tasks may be archived by the existing schedule. New tasks default to false. This does not complete or immediately archive a task."
1369
+ },
1370
+ "autoArchiveDays": {
1371
+ "type": "integer",
1372
+ "description": "Day component of the existing automatic archive delay, integer 0 through 31. New tasks default to 14.",
1373
+ "minimum": 0,
1374
+ "maximum": 31
1375
+ },
1376
+ "autoArchiveHours": {
1377
+ "type": "integer",
1378
+ "description": "Hour component of the existing automatic archive delay, integer 0 through 24. New tasks default to 0.",
1379
+ "minimum": 0,
1380
+ "maximum": 24
1381
+ },
1382
+ "dependencies": {
1383
+ "anyOf": [
1384
+ {
1385
+ "type": "array",
1386
+ "description": "Prerequisite task IDs from this project, at most 1000. Omission preserves the list; null or [] clears it. The server validates live references, self-links and cycles and removes duplicate IDs. Do not remove dependencies to bypass blocked work.",
1387
+ "maxItems": 1000,
1388
+ "items": {
1389
+ "type": "string"
1390
+ }
1391
+ },
1392
+ {
1393
+ "type": "null"
1394
+ }
1395
+ ]
1396
+ },
1397
+ "tags": {
1398
+ "anyOf": [
1399
+ {
1400
+ "type": "array",
1401
+ "description": "Existing project tag IDs, at most 50. Omission preserves the list; null or [] clears it. The server validates same-project references and removes duplicate IDs.",
1402
+ "maxItems": 50,
1403
+ "items": {
1404
+ "type": "string"
1405
+ }
1406
+ },
1407
+ {
1408
+ "type": "null"
1409
+ }
1410
+ ]
1411
+ }
1412
+ },
1413
+ "additionalProperties": false
1414
+ },
1415
+ "task.lock": {
1416
+ "type": "object",
1417
+ "required": [
1418
+ "reason"
1419
+ ],
1420
+ "properties": {
1421
+ "reason": {
1422
+ "type": "string",
1423
+ "minLength": 1,
1424
+ "maxLength": 500
1425
+ }
1426
+ },
1427
+ "additionalProperties": false
1428
+ },
1429
+ "task.unlock": {
1430
+ "type": "object",
1431
+ "properties": {},
1432
+ "additionalProperties": false,
1433
+ "required": []
1434
+ },
1435
+ "task.update": {
1436
+ "type": "object",
1437
+ "properties": {
1438
+ "title": {
1439
+ "type": "string",
1440
+ "description": "Replacement task title, 3 through 200 characters after server trimming. Omission preserves the saved title; null is not a valid title.",
1441
+ "minLength": 3,
1442
+ "maxLength": 200
1443
+ },
1444
+ "description": {
1445
+ "anyOf": [
1446
+ {
1447
+ "type": "string",
1448
+ "description": "Optional short description, at most 600 characters. Omission preserves existing content on update; null clears it.",
1449
+ "maxLength": 600
1450
+ },
1451
+ {
1452
+ "type": "null"
1453
+ }
1454
+ ]
1455
+ },
1456
+ "importance": {
1457
+ "anyOf": [
1458
+ {
1459
+ "type": "string",
1460
+ "enum": [
1461
+ "Minor",
1462
+ "Normal",
1463
+ "Important",
1464
+ "Critical"
1465
+ ],
1466
+ "description": "Impact, independent of urgency or task type. New tasks default to Normal. Important/Critical require a useful importanceReason. An agent cannot replace a human-owned classification; null follows the existing Normal fallback."
1467
+ },
1468
+ {
1469
+ "type": "null"
1470
+ }
1471
+ ]
1472
+ },
1473
+ "importanceReason": {
1474
+ "anyOf": [
1475
+ {
1476
+ "type": "string",
1477
+ "description": "Explanation of impact, trimmed by the server, at most 400 characters. Important/Critical require a nonempty reason. Omission preserves the saved explanation; null or empty clears it subject to current importance rules.",
1478
+ "maxLength": 400
1479
+ },
1480
+ {
1481
+ "type": "null"
1482
+ }
1483
+ ]
1484
+ },
1485
+ "type": {
1486
+ "anyOf": [
1487
+ {
1488
+ "type": "string",
1489
+ "enum": [
1490
+ "Task",
1491
+ "Critical",
1492
+ "NewFeature",
1493
+ "Question"
1494
+ ],
1495
+ "description": "Task classification. New tasks default to Task. Critical here is a task type, not an importance estimate; null retains existing schema compatibility."
1496
+ },
1497
+ {
1498
+ "type": "null"
1499
+ }
1500
+ ]
1501
+ },
1502
+ "owner": {
1503
+ "anyOf": [
1504
+ {
1505
+ "type": "string",
1506
+ "description": "Existing approved project member user ID, or null for unassigned. The server may assign the creator when their task-edit rights are limited to owned tasks. Omission preserves the owner on update."
1507
+ },
1508
+ {
1509
+ "type": "null"
1510
+ }
1511
+ ]
1512
+ },
1513
+ "status": {
1514
+ "anyOf": [
1515
+ {
1516
+ "type": "string",
1517
+ "enum": [
1518
+ "New",
1519
+ "InProgress",
1520
+ "Done"
1521
+ ],
1522
+ "description": "Actual canonical progress: New means to do, InProgress means work has started, Done requires verified intended completion. New tasks default to New. Domain dependency, hierarchy and permission rules still apply. Null is accepted by the existing task schema but does not establish a known progress state. No Locked value belongs to this field."
1523
+ },
1524
+ {
1525
+ "type": "null"
1526
+ }
1527
+ ]
1528
+ },
1529
+ "enableDueDate": {
1530
+ "type": "boolean",
1531
+ "description": "Enable the separately supplied deadline. New tasks default to false; an effort estimate does not select or enable a deadline."
1532
+ },
1533
+ "dueDate": {
1534
+ "anyOf": [
1535
+ {
1536
+ "type": "string",
1537
+ "description": "Deadline as an ISO date-time, from 2000-01-01 inclusive to 2100-01-01 exclusive, or null to clear it. Supply an explicit timezone. Omission preserves the existing date."
1538
+ },
1539
+ {
1540
+ "type": "null"
1541
+ }
1542
+ ]
1543
+ },
1544
+ "estimateDays": {
1545
+ "anyOf": [
1546
+ {
1547
+ "type": "number",
1548
+ "description": "Approximate effort in working days: 0.1 is one tenth and 1 is one working day. Finite 0.1 through 60, or null for unknown. Not elapsed time, a deadline, or AI runtime. Omission preserves the current estimate; preserve human estimates unless revising them is authorized.",
1549
+ "minimum": 0.1,
1550
+ "maximum": 60
1551
+ },
1552
+ {
1553
+ "type": "null"
1554
+ }
1555
+ ]
1556
+ },
1557
+ "quantity": {
1558
+ "anyOf": [
1559
+ {
1560
+ "type": "number",
1561
+ "description": "Optional nonnegative task quantity, independent of working-day effort. Omission preserves the current quantity; null clears it.",
1562
+ "minimum": 0
1563
+ },
1564
+ {
1565
+ "type": "null"
1566
+ }
1567
+ ]
1568
+ },
1569
+ "quantityUnit": {
1570
+ "anyOf": [
1571
+ {
1572
+ "type": "string",
1573
+ "description": "Optional quantity unit, trimmed by the server, at most 20 characters. Omission preserves it; null clears it.",
1574
+ "maxLength": 20
1575
+ },
1576
+ {
1577
+ "type": "null"
1578
+ }
1579
+ ]
1580
+ },
1581
+ "autoArchive": {
1582
+ "type": "boolean",
1583
+ "description": "Whether completed tasks may be archived by the existing schedule. New tasks default to false. This does not complete or immediately archive a task."
1584
+ },
1585
+ "autoArchiveDays": {
1586
+ "type": "integer",
1587
+ "description": "Day component of the existing automatic archive delay, integer 0 through 31. New tasks default to 14.",
1588
+ "minimum": 0,
1589
+ "maximum": 31
1590
+ },
1591
+ "autoArchiveHours": {
1592
+ "type": "integer",
1593
+ "description": "Hour component of the existing automatic archive delay, integer 0 through 24. New tasks default to 0.",
1594
+ "minimum": 0,
1595
+ "maximum": 24
1596
+ },
1597
+ "dependencies": {
1598
+ "anyOf": [
1599
+ {
1600
+ "type": "array",
1601
+ "description": "Prerequisite task IDs from this project, at most 1000. Omission preserves the list; null or [] clears it. The server validates live references, self-links and cycles and removes duplicate IDs. Do not remove dependencies to bypass blocked work.",
1602
+ "maxItems": 1000,
1603
+ "items": {
1604
+ "type": "string"
1605
+ }
1606
+ },
1607
+ {
1608
+ "type": "null"
1609
+ }
1610
+ ]
1611
+ },
1612
+ "tags": {
1613
+ "anyOf": [
1614
+ {
1615
+ "type": "array",
1616
+ "description": "Existing project tag IDs, at most 50. Omission preserves the list; null or [] clears it. The server validates same-project references and removes duplicate IDs.",
1617
+ "maxItems": 50,
1618
+ "items": {
1619
+ "type": "string"
1620
+ }
1621
+ },
1622
+ {
1623
+ "type": "null"
1624
+ }
1625
+ ]
1626
+ }
1627
+ },
1628
+ "additionalProperties": false,
1629
+ "required": []
469
1630
  }
470
1631
  };