@zinn-dev/cli 0.44.0 → 0.46.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 (82) hide show
  1. package/README.md +1 -1
  2. package/package.json +3 -3
  3. package/skills/zinn/SKILL.md +7 -9
  4. package/src/actor.d.ts +1 -1
  5. package/src/actor.js +4 -1
  6. package/src/capabilities-schema.d.ts +9 -1
  7. package/src/column-hint.js +1 -3
  8. package/src/database.d.ts +1 -2
  9. package/src/database.js +1 -6
  10. package/src/duration-input.d.ts +7 -0
  11. package/src/duration-input.js +31 -0
  12. package/src/errors.d.ts +26 -0
  13. package/src/errors.js +46 -8
  14. package/src/expected-values.d.ts +48 -0
  15. package/src/expected-values.js +60 -0
  16. package/src/follow.d.ts +9 -0
  17. package/src/follow.js +58 -0
  18. package/src/input.d.ts +0 -8
  19. package/src/input.js +36 -16
  20. package/src/lib.d.ts +7 -3
  21. package/src/lib.js +70 -28
  22. package/src/list-continuation.js +1 -4
  23. package/src/presentation/activity-presentation.d.ts +2 -0
  24. package/src/presentation/activity-presentation.js +60 -3
  25. package/src/presentation/column-presentation.d.ts +9 -4
  26. package/src/presentation/column-presentation.js +29 -12
  27. package/src/presentation/doctor-presentation.d.ts +10 -0
  28. package/src/presentation/doctor-presentation.js +28 -0
  29. package/src/presentation/relation-presentation.js +2 -1
  30. package/src/presentation/skill-status-presentation.d.ts +9 -0
  31. package/src/presentation/skill-status-presentation.js +43 -0
  32. package/src/presentation/task-blame-presentation.d.ts +2 -4
  33. package/src/presentation/task-blame-presentation.js +4 -2
  34. package/src/presentation/task-presentation.d.ts +18 -4
  35. package/src/presentation/task-presentation.js +94 -30
  36. package/src/result-schemas.d.ts +490 -58
  37. package/src/result-schemas.js +97 -2
  38. package/src/results.d.ts +6 -2
  39. package/src/results.js +9 -3
  40. package/src/routes/activity-router.d.ts +16 -5
  41. package/src/routes/activity-router.js +131 -70
  42. package/src/routes/aliases.js +1 -0
  43. package/src/routes/backup-router.d.ts +1 -0
  44. package/src/routes/backup-router.js +4 -3
  45. package/src/routes/capabilities-router.d.ts +1 -0
  46. package/src/routes/capabilities-router.js +1 -1
  47. package/src/routes/comment-router.d.ts +29 -6
  48. package/src/routes/comment-router.js +20 -10
  49. package/src/routes/doctor-router.d.ts +40 -0
  50. package/src/routes/doctor-router.js +83 -0
  51. package/src/routes/info-router.d.ts +1 -0
  52. package/src/routes/info-router.js +1 -1
  53. package/src/routes/label-router.d.ts +44 -6
  54. package/src/routes/label-router.js +27 -10
  55. package/src/routes/migrate-router.d.ts +1 -0
  56. package/src/routes/migrate-router.js +5 -7
  57. package/src/routes/project-router.d.ts +70 -11
  58. package/src/routes/project-router.js +130 -56
  59. package/src/routes/reindex-router.d.ts +1 -0
  60. package/src/routes/reindex-router.js +1 -1
  61. package/src/routes/relation-router.d.ts +3 -0
  62. package/src/routes/relation-router.js +9 -6
  63. package/src/routes/restore-router.d.ts +1 -0
  64. package/src/routes/restore-router.js +5 -6
  65. package/src/routes/router.js +5 -9
  66. package/src/routes/routes.d.ts +517 -35
  67. package/src/routes/routes.js +4 -0
  68. package/src/routes/skill-router.d.ts +76 -0
  69. package/src/routes/skill-router.js +179 -0
  70. package/src/routes/task-router.d.ts +264 -13
  71. package/src/routes/task-router.js +415 -93
  72. package/src/routes/whoami-router.d.ts +1 -0
  73. package/src/routes/whoami-router.js +1 -1
  74. package/src/skill-copies.d.ts +34 -0
  75. package/src/skill-copies.js +109 -0
  76. package/src/telemetry.d.ts +2 -2
  77. package/src/telemetry.js +8 -3
  78. package/src/text-edit.d.ts +2 -2
  79. package/src/text-input.d.ts +19 -1
  80. package/src/text-input.js +26 -5
  81. package/src/types.d.ts +4 -0
  82. package/src/types.js +6 -0
@@ -6,6 +6,7 @@ export declare const taskRouter: {
6
6
  effects: {
7
7
  domain: "create";
8
8
  storage: "normal-open";
9
+ external: never[];
9
10
  };
10
11
  confirmation: {
11
12
  kind: "none";
@@ -112,7 +113,7 @@ export declare const taskRouter: {
112
113
  }];
113
114
  readonly constraints: readonly [{
114
115
  readonly kind: "exclusive";
115
- readonly members: readonly ["option:description" | "option:text", "option:description-file" | "option:text-file"];
116
+ readonly members: readonly ["option:description" | "option:text" | "option:expect-description" | "option:expect-text", "option:description-file" | "option:text-file" | "option:expect-description-file" | "option:expect-text-file"];
116
117
  }];
117
118
  readonly notes: readonly ["Omit the project key to use defaultProject from settings; otherwise a project key is required."];
118
119
  };
@@ -129,6 +130,7 @@ export declare const taskRouter: {
129
130
  effects: {
130
131
  domain: "read";
131
132
  storage: "normal-open";
133
+ external: never[];
132
134
  };
133
135
  confirmation: {
134
136
  kind: "none";
@@ -152,6 +154,14 @@ export declare const taskRouter: {
152
154
  readonly choices: ("activity" | "due")[];
153
155
  };
154
156
  };
157
+ readonly state: {
158
+ readonly type: "string";
159
+ readonly value: {
160
+ readonly kind: "enum";
161
+ readonly name: "state";
162
+ readonly choices: ("all" | "open" | "closed")[];
163
+ };
164
+ };
155
165
  readonly archived: {
156
166
  readonly type: "boolean";
157
167
  };
@@ -230,6 +240,7 @@ export declare const taskRouter: {
230
240
  effects: {
231
241
  domain: "read";
232
242
  storage: "normal-open";
243
+ external: never[];
233
244
  };
234
245
  confirmation: {
235
246
  kind: "none";
@@ -269,6 +280,10 @@ export declare const taskRouter: {
269
280
  readonly name: "name";
270
281
  };
271
282
  };
283
+ readonly "with-matches": {
284
+ readonly type: "boolean";
285
+ readonly description: "Include match excerpts in JSON results";
286
+ };
272
287
  readonly "due-since": {
273
288
  readonly type: "string";
274
289
  readonly value: {
@@ -310,6 +325,10 @@ export declare const taskRouter: {
310
325
  }, {
311
326
  readonly kind: "exclusive";
312
327
  readonly members: readonly ["positional:project-key", "option:all-projects"];
328
+ }, {
329
+ readonly kind: "requires";
330
+ readonly input: "option:with-matches";
331
+ readonly requires: "option:json";
313
332
  }];
314
333
  readonly notes: readonly ["An omitted project key uses defaultProject, or all projects if unset. --all-projects overrides the default and cannot be combined with a project key.", "A query that is a task key ignores defaultProject unless a project was typed. --all-projects still excludes a typed project."];
315
334
  };
@@ -317,11 +336,56 @@ export declare const taskRouter: {
317
336
  run: (args: string[]) => void;
318
337
  help: string;
319
338
  };
339
+ next: {
340
+ summary: string;
341
+ effects: {
342
+ domain: "read";
343
+ storage: "normal-open";
344
+ external: never[];
345
+ };
346
+ confirmation: {
347
+ kind: "none";
348
+ };
349
+ input: {
350
+ readonly options: {
351
+ readonly "all-projects": {
352
+ readonly type: "boolean";
353
+ };
354
+ readonly column: {
355
+ readonly type: "string";
356
+ readonly value: {
357
+ readonly kind: "column-name";
358
+ readonly name: "name";
359
+ };
360
+ };
361
+ };
362
+ readonly forms: readonly [{
363
+ readonly id: "default";
364
+ readonly positionals: readonly [{
365
+ readonly name: "project-key";
366
+ readonly min: 0;
367
+ readonly max: 1;
368
+ readonly value: {
369
+ readonly kind: "project-key";
370
+ };
371
+ }];
372
+ }];
373
+ readonly constraints: readonly [{
374
+ readonly kind: "exclusive";
375
+ readonly members: readonly ["positional:project-key", "option:all-projects"];
376
+ }];
377
+ readonly notes: readonly ["An omitted project key uses defaultProject, or all projects if unset. --all-projects overrides the default and cannot be combined with a project key."];
378
+ };
379
+ results: import("../results.js").CommandResult[];
380
+ run: (args: string[]) => void;
381
+ help: string;
382
+ };
320
383
  view: {
321
384
  summary: string;
322
385
  effects: {
323
386
  domain: "read";
324
387
  storage: "normal-open";
388
+ external: never[];
325
389
  };
326
390
  confirmation: {
327
391
  kind: "none";
@@ -354,6 +418,7 @@ export declare const taskRouter: {
354
418
  effects: {
355
419
  domain: "read";
356
420
  storage: "normal-open";
421
+ external: never[];
357
422
  };
358
423
  confirmation: {
359
424
  kind: "none";
@@ -382,12 +447,53 @@ export declare const taskRouter: {
382
447
  effects: {
383
448
  domain: "update";
384
449
  storage: "normal-open";
450
+ external: never[];
385
451
  };
386
452
  confirmation: {
387
453
  kind: "none";
388
454
  };
389
455
  input: {
390
456
  readonly options: {
457
+ readonly "expect-description": {
458
+ readonly type: "string";
459
+ readonly value: {
460
+ readonly kind: "text";
461
+ readonly name: "text";
462
+ };
463
+ };
464
+ readonly "expect-title": {
465
+ readonly type: "string";
466
+ readonly value: {
467
+ readonly kind: "text";
468
+ readonly name: "text";
469
+ };
470
+ };
471
+ readonly "expect-priority": {
472
+ readonly type: "string";
473
+ readonly value: {
474
+ readonly description: "none expects no priority.";
475
+ readonly kind: "enum";
476
+ readonly name: "priority";
477
+ readonly choices: readonly [...("low" | "medium" | "high" | "urgent")[], "none"];
478
+ readonly caseInsensitive: true;
479
+ };
480
+ };
481
+ readonly "expect-due": {
482
+ readonly type: "string";
483
+ readonly value: {
484
+ readonly description: "Same formats as --due. none expects no deadline, ignoring case.";
485
+ readonly kind: "timestamp";
486
+ readonly name: "timestamp";
487
+ };
488
+ };
489
+ readonly "expect-description-file": {
490
+ readonly type: "string";
491
+ readonly value: {
492
+ readonly kind: "path";
493
+ readonly name: "path";
494
+ readonly description: "A UTF-8 file, or \"-\" for stdin. Trailing line breaks are dropped; empty or blank input is an error.";
495
+ };
496
+ };
391
497
  readonly priority: {
392
498
  readonly type: "string";
393
499
  readonly value: {
@@ -471,18 +577,18 @@ export declare const taskRouter: {
471
577
  }];
472
578
  readonly constraints: readonly [{
473
579
  readonly kind: "exclusive";
474
- readonly members: readonly ["option:description" | "option:text", "option:description-file" | "option:text-file"];
580
+ readonly members: readonly ["option:description" | "option:text" | "option:expect-description" | "option:expect-text", "option:description-file" | "option:text-file" | "option:expect-description-file" | "option:expect-text-file"];
475
581
  }, {
476
582
  readonly kind: "exclusive";
477
583
  readonly members: readonly ["option:append", "option:replacing"];
478
584
  }, {
479
585
  readonly kind: "requiresAny";
480
586
  readonly input: "option:append";
481
- readonly members: readonly ["option:description" | "option:text", "option:description-file" | "option:text-file"];
587
+ readonly members: readonly ["option:description" | "option:text" | "option:expect-description" | "option:expect-text", "option:description-file" | "option:text-file" | "option:expect-description-file" | "option:expect-text-file"];
482
588
  }, {
483
589
  readonly kind: "requiresAny";
484
590
  readonly input: "option:replacing";
485
- readonly members: readonly ["option:description" | "option:text", "option:description-file" | "option:text-file"];
591
+ readonly members: readonly ["option:description" | "option:text" | "option:expect-description" | "option:expect-text", "option:description-file" | "option:text-file" | "option:expect-description-file" | "option:expect-text-file"];
486
592
  }, {
487
593
  readonly kind: "requires";
488
594
  readonly input: "option:all";
@@ -490,8 +596,11 @@ export declare const taskRouter: {
490
596
  }, {
491
597
  readonly kind: "atLeastOne";
492
598
  readonly members: readonly ["option:title", "option:description", "option:description-file", "option:priority", "option:due", "option:add-label", "option:remove-label"];
493
- }];
494
- readonly notes: readonly [string];
599
+ }, ...{
600
+ readonly kind: "exclusive";
601
+ readonly members: readonly ["option:description" | "option:text" | "option:expect-description" | "option:expect-text", "option:description-file" | "option:text-file" | "option:expect-description-file" | "option:expect-text-file"];
602
+ }[]];
603
+ readonly notes: readonly [string, string];
495
604
  };
496
605
  results: import("../results.js").CommandResult[];
497
606
  run: (args: string[]) => Promise<void>;
@@ -507,12 +616,21 @@ export declare const taskRouter: {
507
616
  effects: {
508
617
  domain: "update";
509
618
  storage: "normal-open";
619
+ external: never[];
510
620
  };
511
621
  confirmation: {
512
622
  kind: "none";
513
623
  };
514
624
  input: {
515
- readonly options: {};
625
+ readonly options: {
626
+ readonly from: {
627
+ readonly type: "string";
628
+ readonly value: {
629
+ readonly kind: "column-name";
630
+ readonly name: "column";
631
+ };
632
+ };
633
+ };
516
634
  readonly forms: readonly [{
517
635
  readonly id: "default";
518
636
  readonly positionals: readonly [{
@@ -546,6 +664,7 @@ export declare const taskRouter: {
546
664
  effects: {
547
665
  domain: "update";
548
666
  storage: "normal-open";
667
+ external: never[];
549
668
  };
550
669
  confirmation: {
551
670
  kind: "none";
@@ -625,6 +744,7 @@ export declare const taskRouter: {
625
744
  effects: {
626
745
  domain: "update";
627
746
  storage: "normal-open";
747
+ external: never[];
628
748
  };
629
749
  confirmation: {
630
750
  kind: "none";
@@ -653,6 +773,7 @@ export declare const taskRouter: {
653
773
  effects: {
654
774
  domain: "update";
655
775
  storage: "normal-open";
776
+ external: never[];
656
777
  };
657
778
  confirmation: {
658
779
  kind: "none";
@@ -676,11 +797,113 @@ export declare const taskRouter: {
676
797
  run: (args: Array<string>) => void;
677
798
  help: string;
678
799
  };
800
+ claim: {
801
+ summary: string;
802
+ effects: {
803
+ domain: "update";
804
+ storage: "normal-open";
805
+ external: never[];
806
+ };
807
+ confirmation: {
808
+ kind: "none";
809
+ };
810
+ input: {
811
+ readonly options: {
812
+ readonly lease: {
813
+ readonly type: "string";
814
+ readonly required: true;
815
+ readonly value: {
816
+ readonly kind: "duration";
817
+ readonly name: "duration";
818
+ readonly pattern: "^\\d+[mh]$";
819
+ readonly description: `Whole minutes or hours, such as 30m or 2h, from ${string} through ${string}.`;
820
+ };
821
+ };
822
+ readonly force: {
823
+ readonly type: "boolean";
824
+ };
825
+ };
826
+ readonly forms: readonly [{
827
+ readonly id: "default";
828
+ readonly positionals: readonly [{
829
+ readonly name: "task-key";
830
+ readonly min: 1;
831
+ readonly max: 1;
832
+ readonly value: {
833
+ readonly kind: "task-key";
834
+ };
835
+ }];
836
+ }];
837
+ readonly constraints: readonly [];
838
+ };
839
+ results: import("../results.js").CommandResult[];
840
+ run: (args: string[]) => void;
841
+ help: string;
842
+ };
843
+ heartbeat: {
844
+ summary: string;
845
+ effects: {
846
+ domain: "update";
847
+ storage: "normal-open";
848
+ external: never[];
849
+ };
850
+ confirmation: {
851
+ kind: "none";
852
+ };
853
+ input: {
854
+ readonly options: {};
855
+ readonly forms: readonly [{
856
+ readonly id: "default";
857
+ readonly positionals: readonly [{
858
+ readonly name: "task-key";
859
+ readonly min: 1;
860
+ readonly max: 1;
861
+ readonly value: {
862
+ readonly kind: "task-key";
863
+ };
864
+ }];
865
+ }];
866
+ readonly constraints: readonly [];
867
+ };
868
+ results: import("../results.js").CommandResult[];
869
+ run: (args: string[]) => void;
870
+ help: string;
871
+ };
872
+ release: {
873
+ summary: string;
874
+ effects: {
875
+ domain: "update";
876
+ storage: "normal-open";
877
+ external: never[];
878
+ };
879
+ confirmation: {
880
+ kind: "none";
881
+ };
882
+ input: {
883
+ readonly options: {};
884
+ readonly forms: readonly [{
885
+ readonly id: "default";
886
+ readonly positionals: readonly [{
887
+ readonly name: "task-key";
888
+ readonly min: 1;
889
+ readonly max: 1;
890
+ readonly value: {
891
+ readonly kind: "task-key";
892
+ };
893
+ }];
894
+ }];
895
+ readonly constraints: readonly [];
896
+ };
897
+ results: import("../results.js").CommandResult[];
898
+ run: (args: string[]) => void;
899
+ help: string;
900
+ };
679
901
  delete: {
680
902
  summary: string;
681
903
  effects: {
682
904
  domain: "delete";
683
905
  storage: "normal-open";
906
+ external: never[];
684
907
  };
685
908
  confirmation: {
686
909
  kind: "prompt";
@@ -715,6 +938,7 @@ export declare const taskRouter: {
715
938
  effects: {
716
939
  domain: "replace";
717
940
  storage: "normal-open";
941
+ external: never[];
718
942
  };
719
943
  confirmation: {
720
944
  kind: "prompt";
@@ -766,6 +990,7 @@ export declare const taskRouter: {
766
990
  effects: {
767
991
  domain: "read";
768
992
  storage: "normal-open";
993
+ external: never[];
769
994
  };
770
995
  confirmation: {
771
996
  kind: "none";
@@ -794,6 +1019,7 @@ export declare const taskRouter: {
794
1019
  effects: {
795
1020
  domain: "delete";
796
1021
  storage: "normal-open";
1022
+ external: never[];
797
1023
  };
798
1024
  confirmation: {
799
1025
  kind: "none";
@@ -843,6 +1069,7 @@ export declare const taskRouter: {
843
1069
  effects: {
844
1070
  domain: "create";
845
1071
  storage: "normal-open";
1072
+ external: never[];
846
1073
  };
847
1074
  confirmation: {
848
1075
  kind: "none";
@@ -878,7 +1105,7 @@ export declare const taskRouter: {
878
1105
  }];
879
1106
  readonly constraints: readonly [{
880
1107
  readonly kind: "exclusive";
881
- readonly members: readonly ["option:description" | "option:text", "option:description-file" | "option:text-file"];
1108
+ readonly members: readonly ["option:description" | "option:text" | "option:expect-description" | "option:expect-text", "option:description-file" | "option:text-file" | "option:expect-description-file" | "option:expect-text-file"];
882
1109
  }, {
883
1110
  readonly kind: "atLeastOne";
884
1111
  readonly members: readonly ["option:text", "option:text-file"];
@@ -896,6 +1123,7 @@ export declare const taskRouter: {
896
1123
  effects: {
897
1124
  domain: "read";
898
1125
  storage: "normal-open";
1126
+ external: never[];
899
1127
  };
900
1128
  confirmation: {
901
1129
  kind: "none";
@@ -924,6 +1152,7 @@ export declare const taskRouter: {
924
1152
  effects: {
925
1153
  domain: "read";
926
1154
  storage: "normal-open";
1155
+ external: never[];
927
1156
  };
928
1157
  confirmation: {
929
1158
  kind: "none";
@@ -952,12 +1181,28 @@ export declare const taskRouter: {
952
1181
  effects: {
953
1182
  domain: "update";
954
1183
  storage: "normal-open";
1184
+ external: never[];
955
1185
  };
956
1186
  confirmation: {
957
1187
  kind: "none";
958
1188
  };
959
1189
  input: {
960
1190
  readonly options: {
1191
+ readonly "expect-text": {
1192
+ readonly type: "string";
1193
+ readonly value: {
1194
+ readonly kind: "text";
1195
+ readonly name: "text";
1196
+ };
1197
+ };
1198
+ readonly "expect-text-file": {
1199
+ readonly type: "string";
1200
+ readonly value: {
1201
+ readonly kind: "path";
1202
+ readonly name: "path";
1203
+ readonly description: "A UTF-8 file, or \"-\" for stdin. Trailing line breaks are dropped; empty or blank input is an error.";
1204
+ };
1205
+ };
961
1206
  readonly append: {
962
1207
  readonly type: "boolean";
963
1208
  };
@@ -1000,18 +1245,18 @@ export declare const taskRouter: {
1000
1245
  }];
1001
1246
  readonly constraints: readonly [{
1002
1247
  readonly kind: "exclusive";
1003
- readonly members: readonly ["option:description" | "option:text", "option:description-file" | "option:text-file"];
1248
+ readonly members: readonly ["option:description" | "option:text" | "option:expect-description" | "option:expect-text", "option:description-file" | "option:text-file" | "option:expect-description-file" | "option:expect-text-file"];
1004
1249
  }, {
1005
1250
  readonly kind: "exclusive";
1006
1251
  readonly members: readonly ["option:append", "option:replacing"];
1007
1252
  }, {
1008
1253
  readonly kind: "requiresAny";
1009
1254
  readonly input: "option:append";
1010
- readonly members: readonly ["option:description" | "option:text", "option:description-file" | "option:text-file"];
1255
+ readonly members: readonly ["option:description" | "option:text" | "option:expect-description" | "option:expect-text", "option:description-file" | "option:text-file" | "option:expect-description-file" | "option:expect-text-file"];
1011
1256
  }, {
1012
1257
  readonly kind: "requiresAny";
1013
1258
  readonly input: "option:replacing";
1014
- readonly members: readonly ["option:description" | "option:text", "option:description-file" | "option:text-file"];
1259
+ readonly members: readonly ["option:description" | "option:text" | "option:expect-description" | "option:expect-text", "option:description-file" | "option:text-file" | "option:expect-description-file" | "option:expect-text-file"];
1015
1260
  }, {
1016
1261
  readonly kind: "requires";
1017
1262
  readonly input: "option:all";
@@ -1019,8 +1264,11 @@ export declare const taskRouter: {
1019
1264
  }, {
1020
1265
  readonly kind: "atLeastOne";
1021
1266
  readonly members: readonly ["option:text", "option:text-file"];
1022
- }];
1023
- readonly notes: readonly [string];
1267
+ }, ...{
1268
+ readonly kind: "exclusive";
1269
+ readonly members: readonly ["option:description" | "option:text" | "option:expect-description" | "option:expect-text", "option:description-file" | "option:text-file" | "option:expect-description-file" | "option:expect-text-file"];
1270
+ }[]];
1271
+ readonly notes: readonly [string, string];
1024
1272
  };
1025
1273
  results: import("../results.js").CommandResult[];
1026
1274
  guessedFlags: {
@@ -1034,6 +1282,7 @@ export declare const taskRouter: {
1034
1282
  effects: {
1035
1283
  domain: "delete";
1036
1284
  storage: "normal-open";
1285
+ external: never[];
1037
1286
  };
1038
1287
  confirmation: {
1039
1288
  kind: "prompt";
@@ -1069,6 +1318,7 @@ export declare const taskRouter: {
1069
1318
  effects: {
1070
1319
  domain: "update";
1071
1320
  storage: "normal-open";
1321
+ external: never[];
1072
1322
  };
1073
1323
  confirmation: {
1074
1324
  kind: "none";
@@ -1104,6 +1354,7 @@ export declare const taskRouter: {
1104
1354
  effects: {
1105
1355
  domain: "update";
1106
1356
  storage: "normal-open";
1357
+ external: never[];
1107
1358
  };
1108
1359
  confirmation: {
1109
1360
  kind: "none";