@zinn-dev/cli 0.41.0 → 0.43.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 (81) hide show
  1. package/README.md +11 -689
  2. package/index.js +2 -2
  3. package/package.json +4 -4
  4. package/skills/zinn/SKILL.md +1 -1
  5. package/src/capabilities-schema.d.ts +25 -26
  6. package/src/capabilities-schema.js +17 -82
  7. package/src/capabilities.d.ts +11 -3
  8. package/src/capabilities.js +12 -4
  9. package/src/column-hint.d.ts +3 -0
  10. package/src/column-hint.js +225 -0
  11. package/src/database.js +1 -4
  12. package/src/errors.d.ts +31 -3
  13. package/src/errors.js +77 -20
  14. package/src/input.d.ts +154 -43
  15. package/src/input.js +86 -13
  16. package/src/lib.d.ts +43 -6
  17. package/src/lib.js +134 -38
  18. package/src/list-continuation.d.ts +11 -0
  19. package/src/list-continuation.js +18 -0
  20. package/src/list-limit.d.ts +11 -0
  21. package/src/list-limit.js +17 -0
  22. package/src/presentation/activity-presentation.d.ts +9 -1
  23. package/src/presentation/activity-presentation.js +124 -28
  24. package/src/presentation/capabilities-presentation.d.ts +2 -0
  25. package/src/presentation/capabilities-presentation.js +3 -0
  26. package/src/presentation/column-presentation.d.ts +6 -0
  27. package/src/presentation/column-presentation.js +10 -0
  28. package/src/presentation/comment-presentation.d.ts +15 -0
  29. package/src/presentation/comment-presentation.js +29 -0
  30. package/src/presentation/description-presentation.d.ts +4 -0
  31. package/src/presentation/description-presentation.js +28 -5
  32. package/src/presentation/label-presentation.d.ts +8 -0
  33. package/src/presentation/label-presentation.js +28 -0
  34. package/src/presentation/project-presentation.d.ts +11 -0
  35. package/src/presentation/project-presentation.js +27 -0
  36. package/src/presentation/relation-presentation.d.ts +12 -0
  37. package/src/presentation/relation-presentation.js +87 -0
  38. package/src/presentation/row-layout.d.ts +1 -1
  39. package/src/presentation/row-layout.js +6 -5
  40. package/src/presentation/task-presentation.d.ts +3 -3
  41. package/src/presentation/task-presentation.js +29 -19
  42. package/src/presentation/text-width.d.ts +2 -0
  43. package/src/presentation/text-width.js +43 -0
  44. package/src/presentation/time.d.ts +3 -1
  45. package/src/presentation/time.js +5 -2
  46. package/src/project.d.ts +14 -5
  47. package/src/project.js +18 -6
  48. package/src/result-schemas.d.ts +279 -26
  49. package/src/result-schemas.js +72 -4
  50. package/src/results.d.ts +34 -17
  51. package/src/results.js +19 -0
  52. package/src/routes/activity-router.d.ts +79 -2
  53. package/src/routes/activity-router.js +209 -38
  54. package/src/routes/aliases.d.ts +2 -0
  55. package/src/routes/aliases.js +11 -0
  56. package/src/routes/capabilities-router.js +9 -3
  57. package/src/routes/comment-router.d.ts +41 -18
  58. package/src/routes/comment-router.js +65 -48
  59. package/src/routes/label-router.d.ts +57 -7
  60. package/src/routes/label-router.js +84 -39
  61. package/src/routes/project-router.d.ts +74 -12
  62. package/src/routes/project-router.js +131 -66
  63. package/src/routes/relation-router.d.ts +13 -9
  64. package/src/routes/relation-router.js +116 -116
  65. package/src/routes/restore-router.js +3 -6
  66. package/src/routes/router.d.ts +1 -1
  67. package/src/routes/router.js +88 -32
  68. package/src/routes/routes.d.ts +420 -50
  69. package/src/routes/routes.js +4 -0
  70. package/src/routes/task-router.d.ts +189 -30
  71. package/src/routes/task-router.js +254 -158
  72. package/src/routes/whoami-router.d.ts +21 -0
  73. package/src/routes/whoami-router.js +31 -0
  74. package/src/text-edit.d.ts +13 -9
  75. package/src/text-edit.js +23 -18
  76. package/src/text-input.d.ts +47 -0
  77. package/src/text-input.js +187 -0
  78. package/src/timestamp-input.d.ts +3 -0
  79. package/src/timestamp-input.js +31 -0
  80. package/src/types.d.ts +32 -9
  81. package/src/types.js +9 -1
@@ -25,6 +25,14 @@ export declare const routes: {
25
25
  readonly name: "text";
26
26
  };
27
27
  };
28
+ readonly "description-file": {
29
+ readonly type: "string";
30
+ readonly value: {
31
+ readonly kind: "path";
32
+ readonly name: "path";
33
+ readonly description: "A UTF-8 file, or \"-\" for stdin. Trailing line breaks are dropped; empty or blank input is an error.";
34
+ };
35
+ };
28
36
  };
29
37
  readonly forms: readonly [{
30
38
  readonly id: "default";
@@ -37,10 +45,13 @@ export declare const routes: {
37
45
  };
38
46
  }];
39
47
  }];
40
- readonly constraints: readonly [];
48
+ readonly constraints: readonly [{
49
+ readonly kind: "exclusive";
50
+ readonly members: readonly ["option:description" | "option:text", "option:description-file" | "option:text-file"];
51
+ }];
41
52
  };
42
53
  results: import("../results.js").CommandResult[];
43
- run: (args: Array<string>) => void;
54
+ run: (args: Array<string>) => Promise<void>;
44
55
  help: string;
45
56
  };
46
57
  list: {
@@ -87,7 +98,7 @@ export declare const routes: {
87
98
  }];
88
99
  }];
89
100
  readonly constraints: readonly [];
90
- readonly notes: readonly ["An omitted project key uses defaultProject from settings. Without a configured default, a project key is required. A missing configured project is an error."];
101
+ readonly notes: readonly ["Omit the project key to use defaultProject from settings; otherwise a project key is required."];
91
102
  };
92
103
  results: import("../results.js").CommandResult[];
93
104
  run: (args: Array<string>) => void;
@@ -131,6 +142,14 @@ export declare const routes: {
131
142
  readonly name: "text";
132
143
  };
133
144
  };
145
+ readonly "description-file": {
146
+ readonly type: "string";
147
+ readonly value: {
148
+ readonly kind: "path";
149
+ readonly name: "path";
150
+ readonly description: "A UTF-8 file, or \"-\" for stdin. Trailing line breaks are dropped; empty or blank input is an error.";
151
+ };
152
+ };
134
153
  };
135
154
  readonly forms: readonly [{
136
155
  readonly id: "default";
@@ -144,28 +163,31 @@ export declare const routes: {
144
163
  }];
145
164
  }];
146
165
  readonly constraints: readonly [{
166
+ readonly kind: "exclusive";
167
+ readonly members: readonly ["option:description" | "option:text", "option:description-file" | "option:text-file"];
168
+ }, {
147
169
  readonly kind: "exclusive";
148
170
  readonly members: readonly ["option:append", "option:replacing"];
149
171
  }, {
150
- readonly kind: "requires";
172
+ readonly kind: "requiresAny";
151
173
  readonly input: "option:append";
152
- readonly requires: `option:${string}`;
174
+ readonly members: readonly ["option:description" | "option:text", "option:description-file" | "option:text-file"];
153
175
  }, {
154
- readonly kind: "requires";
176
+ readonly kind: "requiresAny";
155
177
  readonly input: "option:replacing";
156
- readonly requires: `option:${string}`;
178
+ readonly members: readonly ["option:description" | "option:text", "option:description-file" | "option:text-file"];
157
179
  }, {
158
180
  readonly kind: "requires";
159
181
  readonly input: "option:all";
160
182
  readonly requires: "option:replacing";
161
183
  }, {
162
184
  readonly kind: "atLeastOne";
163
- readonly members: readonly ["option:name", "option:description"];
185
+ readonly members: readonly ["option:name", "option:description", "option:description-file"];
164
186
  }];
165
- readonly notes: readonly ["An omitted project key uses defaultProject from settings. Without a configured default, a project key is required. A missing configured project is an error.", string];
187
+ readonly notes: readonly ["Omit the project key to use defaultProject from settings; otherwise a project key is required.", string];
166
188
  };
167
189
  results: import("../results.js").CommandResult[];
168
- run: (args: string[]) => void;
190
+ run: (args: string[]) => Promise<void>;
169
191
  help: string;
170
192
  };
171
193
  delete: {
@@ -196,7 +218,7 @@ export declare const routes: {
196
218
  }];
197
219
  }];
198
220
  readonly constraints: readonly [];
199
- readonly notes: readonly ["An omitted project key uses defaultProject from settings. Without a configured default, a project key is required. A missing configured project is an error."];
221
+ readonly notes: readonly ["Omit the project key to use defaultProject from settings; otherwise a project key is required."];
200
222
  };
201
223
  results: import("../results.js").CommandResult[];
202
224
  run: (args: Array<string>) => Promise<void>;
@@ -261,7 +283,7 @@ export declare const routes: {
261
283
  }];
262
284
  }];
263
285
  readonly constraints: readonly [];
264
- readonly notes: readonly ["An omitted project key uses defaultProject from settings. Without a configured default, a project key is required. A missing configured project is an error."];
286
+ readonly notes: readonly ["Omit the project key to use defaultProject from settings; otherwise a project key is required."];
265
287
  };
266
288
  results: import("../results.js").CommandResult[];
267
289
  run: (args: Array<string>) => void;
@@ -386,6 +408,46 @@ export declare const routes: {
386
408
  run: (args: Array<string>) => void;
387
409
  help: string;
388
410
  };
411
+ delete: {
412
+ summary: string;
413
+ effects: {
414
+ domain: "delete";
415
+ storage: "normal-open";
416
+ };
417
+ confirmation: {
418
+ kind: "prompt";
419
+ description: string;
420
+ };
421
+ input: {
422
+ readonly options: {
423
+ readonly yes: {
424
+ readonly type: "boolean";
425
+ };
426
+ };
427
+ readonly forms: readonly [{
428
+ readonly id: "default";
429
+ readonly positionals: readonly [{
430
+ readonly name: "project-key";
431
+ readonly min: 1;
432
+ readonly max: 1;
433
+ readonly value: {
434
+ readonly kind: "project-key";
435
+ };
436
+ }, {
437
+ readonly name: "column-name";
438
+ readonly min: 1;
439
+ readonly max: 1;
440
+ readonly value: {
441
+ readonly kind: "column-name";
442
+ };
443
+ }];
444
+ }];
445
+ readonly constraints: readonly [];
446
+ };
447
+ results: import("../results.js").CommandResult[];
448
+ run: (args: string[]) => Promise<void>;
449
+ help: string;
450
+ };
389
451
  };
390
452
  };
391
453
  task: {
@@ -415,6 +477,14 @@ export declare const routes: {
415
477
  readonly name: "text";
416
478
  };
417
479
  };
480
+ readonly "description-file": {
481
+ readonly type: "string";
482
+ readonly value: {
483
+ readonly kind: "path";
484
+ readonly name: "path";
485
+ readonly description: "A UTF-8 file, or \"-\" for stdin. Trailing line breaks are dropped; empty or blank input is an error.";
486
+ };
487
+ };
418
488
  readonly priority: {
419
489
  readonly type: "string";
420
490
  readonly value: {
@@ -425,6 +495,14 @@ export declare const routes: {
425
495
  readonly description: "Omission leaves priority unassigned on creation and unchanged on edit. none clears priority; JSON uses null.";
426
496
  };
427
497
  };
498
+ readonly due: {
499
+ readonly type: "string";
500
+ readonly value: {
501
+ readonly kind: "timestamp";
502
+ readonly name: "timestamp";
503
+ readonly description: "Integer epoch milliseconds or YYYY-MM-DDTHH:mm:ss[.SSS] with Z or a numeric offset. Fractions have 1 to 3 digits. none clears the deadline, ignoring case. Omission leaves it unset on creation and unchanged on edit.";
504
+ };
505
+ };
428
506
  readonly label: {
429
507
  readonly type: "string";
430
508
  readonly multiple: true;
@@ -482,11 +560,18 @@ export declare const routes: {
482
560
  };
483
561
  }];
484
562
  }];
485
- readonly constraints: readonly [];
486
- readonly notes: readonly ["An omitted project key uses defaultProject from settings. Without a configured default, a project key is required. A missing configured project is an error."];
563
+ readonly constraints: readonly [{
564
+ readonly kind: "exclusive";
565
+ readonly members: readonly ["option:description" | "option:text", "option:description-file" | "option:text-file"];
566
+ }];
567
+ readonly notes: readonly ["Omit the project key to use defaultProject from settings; otherwise a project key is required."];
487
568
  };
488
569
  results: import("../results.js").CommandResult[];
489
- run: (args: string[]) => void;
570
+ guessedFlags: {
571
+ "--status": (args: string[]) => string[];
572
+ "--body": (args: string[]) => string[];
573
+ };
574
+ run: (args: string[]) => Promise<void>;
490
575
  help: string;
491
576
  };
492
577
  list: {
@@ -500,6 +585,23 @@ export declare const routes: {
500
585
  };
501
586
  input: {
502
587
  readonly options: {
588
+ readonly limit: {
589
+ readonly type: "string";
590
+ readonly value: {
591
+ readonly kind: "positive-integer";
592
+ readonly name: "n";
593
+ readonly pattern: string;
594
+ };
595
+ readonly description: "Return at most n results after all filters. Use an integer from 1 through 11871.";
596
+ };
597
+ readonly sort: {
598
+ readonly type: "string";
599
+ readonly value: {
600
+ readonly kind: "enum";
601
+ readonly name: "key";
602
+ readonly choices: ("activity" | "due")[];
603
+ };
604
+ };
503
605
  readonly archived: {
504
606
  readonly type: "boolean";
505
607
  };
@@ -524,6 +626,30 @@ export declare const routes: {
524
626
  readonly name: "name";
525
627
  };
526
628
  };
629
+ readonly "starting-after": {
630
+ readonly type: "string";
631
+ readonly value: {
632
+ readonly kind: "task-id";
633
+ readonly name: "id";
634
+ readonly description: "Task UUID or globally unambiguous left prefix with at least 8 hexadecimal digits. Canonical or compact, case-insensitive";
635
+ };
636
+ };
637
+ readonly "due-since": {
638
+ readonly type: "string";
639
+ readonly value: {
640
+ readonly kind: "timestamp";
641
+ readonly name: "timestamp";
642
+ readonly description: "Inclusive lower deadline bound. Integer epoch milliseconds or a timestamp with seconds and Z or a numeric offset. Fractions have 1 to 3 digits. Undated tasks do not match.";
643
+ };
644
+ };
645
+ readonly "due-until": {
646
+ readonly type: "string";
647
+ readonly value: {
648
+ readonly kind: "timestamp";
649
+ readonly name: "timestamp";
650
+ readonly description: "Inclusive upper deadline bound in the same formats as --due-since. Must be at or after --due-since. Undated tasks do not match.";
651
+ };
652
+ };
527
653
  };
528
654
  readonly forms: readonly [{
529
655
  readonly id: "default";
@@ -543,7 +669,7 @@ export declare const routes: {
543
669
  readonly kind: "exclusive";
544
670
  readonly members: readonly ["positional:project-key", "option:all-projects"];
545
671
  }];
546
- readonly notes: readonly ["An omitted project key defaults to all projects unless defaultProject is configured. --all-projects overrides the defaultProject and excludes a typed project. A missing configured project is an error."];
672
+ 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 --starting-after task must match every selection filter. Cursor resolution uses current task identities before list filtering."];
547
673
  };
548
674
  results: import("../results.js").CommandResult[];
549
675
  run: (args: string[]) => void;
@@ -574,8 +700,9 @@ export declare const routes: {
574
700
  readonly value: {
575
701
  readonly kind: "positive-integer";
576
702
  readonly name: "n";
577
- readonly pattern: "^[1-9]\\d{0,14}$";
703
+ readonly pattern: string;
578
704
  };
705
+ readonly description: "Return at most n results after all filters. Use an integer from 1 through 11871.";
579
706
  };
580
707
  readonly label: {
581
708
  readonly type: "string";
@@ -585,6 +712,22 @@ export declare const routes: {
585
712
  readonly name: "name";
586
713
  };
587
714
  };
715
+ readonly "due-since": {
716
+ readonly type: "string";
717
+ readonly value: {
718
+ readonly kind: "timestamp";
719
+ readonly name: "timestamp";
720
+ readonly description: "Inclusive lower deadline bound. Integer epoch milliseconds or a timestamp with seconds and Z or a numeric offset. Fractions have 1 to 3 digits. Undated tasks do not match.";
721
+ };
722
+ };
723
+ readonly "due-until": {
724
+ readonly type: "string";
725
+ readonly value: {
726
+ readonly kind: "timestamp";
727
+ readonly name: "timestamp";
728
+ readonly description: "Inclusive upper deadline bound in the same formats as --due-since. Must be at or after --due-since. Undated tasks do not match.";
729
+ };
730
+ };
588
731
  };
589
732
  readonly forms: readonly [{
590
733
  readonly id: "default";
@@ -611,7 +754,7 @@ export declare const routes: {
611
754
  readonly kind: "exclusive";
612
755
  readonly members: readonly ["positional:project-key", "option:all-projects"];
613
756
  }];
614
- readonly notes: readonly ["An omitted project key defaults to all projects unless defaultProject is configured. --all-projects overrides the defaultProject and excludes a typed project. A missing configured project is an error.", "A query that is a task key ignores defaultProject unless a project was typed. --all-projects still excludes a typed project."];
757
+ 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."];
615
758
  };
616
759
  results: import("../results.js").CommandResult[];
617
760
  run: (args: string[]) => void;
@@ -670,6 +813,14 @@ export declare const routes: {
670
813
  readonly description: "Omission leaves priority unassigned on creation and unchanged on edit. none clears priority; JSON uses null.";
671
814
  };
672
815
  };
816
+ readonly due: {
817
+ readonly type: "string";
818
+ readonly value: {
819
+ readonly kind: "timestamp";
820
+ readonly name: "timestamp";
821
+ readonly description: "Integer epoch milliseconds or YYYY-MM-DDTHH:mm:ss[.SSS] with Z or a numeric offset. Fractions have 1 to 3 digits. none clears the deadline, ignoring case. Omission leaves it unset on creation and unchanged on edit.";
822
+ };
823
+ };
673
824
  readonly "add-label": {
674
825
  readonly type: "string";
675
826
  readonly multiple: true;
@@ -713,6 +864,14 @@ export declare const routes: {
713
864
  readonly name: "text";
714
865
  };
715
866
  };
867
+ readonly "description-file": {
868
+ readonly type: "string";
869
+ readonly value: {
870
+ readonly kind: "path";
871
+ readonly name: "path";
872
+ readonly description: "A UTF-8 file, or \"-\" for stdin. Trailing line breaks are dropped; empty or blank input is an error.";
873
+ };
874
+ };
716
875
  };
717
876
  readonly forms: readonly [{
718
877
  readonly id: "default";
@@ -726,32 +885,36 @@ export declare const routes: {
726
885
  }];
727
886
  }];
728
887
  readonly constraints: readonly [{
888
+ readonly kind: "exclusive";
889
+ readonly members: readonly ["option:description" | "option:text", "option:description-file" | "option:text-file"];
890
+ }, {
729
891
  readonly kind: "exclusive";
730
892
  readonly members: readonly ["option:append", "option:replacing"];
731
893
  }, {
732
- readonly kind: "requires";
894
+ readonly kind: "requiresAny";
733
895
  readonly input: "option:append";
734
- readonly requires: `option:${string}`;
896
+ readonly members: readonly ["option:description" | "option:text", "option:description-file" | "option:text-file"];
735
897
  }, {
736
- readonly kind: "requires";
898
+ readonly kind: "requiresAny";
737
899
  readonly input: "option:replacing";
738
- readonly requires: `option:${string}`;
900
+ readonly members: readonly ["option:description" | "option:text", "option:description-file" | "option:text-file"];
739
901
  }, {
740
902
  readonly kind: "requires";
741
903
  readonly input: "option:all";
742
904
  readonly requires: "option:replacing";
743
905
  }, {
744
906
  readonly kind: "atLeastOne";
745
- readonly members: readonly ["option:title", "option:description", "option:priority", "option:add-label", "option:remove-label"];
907
+ readonly members: readonly ["option:title", "option:description", "option:description-file", "option:priority", "option:due", "option:add-label", "option:remove-label"];
746
908
  }];
747
909
  readonly notes: readonly [string];
748
910
  };
749
911
  results: import("../results.js").CommandResult[];
750
- run: (args: string[]) => void;
912
+ run: (args: string[]) => Promise<void>;
751
913
  help: string;
752
914
  guessedFlags: {
753
915
  "--status": (args: string[]) => string[];
754
916
  "--column": (args: string[]) => string[];
917
+ "--body": (args: string[]) => string[];
755
918
  };
756
919
  };
757
920
  move: {
@@ -806,6 +969,24 @@ export declare const routes: {
806
969
  readonly options: {};
807
970
  readonly forms: readonly [{
808
971
  readonly id: "absolute";
972
+ readonly positionals: readonly [{
973
+ readonly max: null;
974
+ readonly name: "task-key";
975
+ readonly min: 1;
976
+ readonly value: {
977
+ readonly kind: "task-key";
978
+ };
979
+ }, {
980
+ readonly name: "direction";
981
+ readonly min: 1;
982
+ readonly max: 1;
983
+ readonly value: {
984
+ readonly kind: "enum";
985
+ readonly choices: readonly ["top", "bottom"];
986
+ };
987
+ }];
988
+ }, {
989
+ readonly id: "step";
809
990
  readonly positionals: readonly [{
810
991
  readonly name: "task-key";
811
992
  readonly min: 1;
@@ -819,15 +1000,15 @@ export declare const routes: {
819
1000
  readonly max: 1;
820
1001
  readonly value: {
821
1002
  readonly kind: "enum";
822
- readonly choices: readonly ["top", "up", "down", "bottom"];
1003
+ readonly choices: readonly ["up", "down"];
823
1004
  };
824
1005
  }];
825
1006
  }, {
826
1007
  readonly id: "relative";
827
1008
  readonly positionals: readonly [{
1009
+ readonly max: null;
828
1010
  readonly name: "task-key";
829
1011
  readonly min: 1;
830
- readonly max: 1;
831
1012
  readonly value: {
832
1013
  readonly kind: "task-key";
833
1014
  };
@@ -929,9 +1110,9 @@ export declare const routes: {
929
1110
  readonly forms: readonly [{
930
1111
  readonly id: "default";
931
1112
  readonly positionals: readonly [{
1113
+ readonly max: null;
932
1114
  readonly name: "task-key";
933
1115
  readonly min: 1;
934
- readonly max: 1;
935
1116
  readonly value: {
936
1117
  readonly kind: "task-key";
937
1118
  };
@@ -947,20 +1128,23 @@ export declare const routes: {
947
1128
  create: {
948
1129
  summary: string;
949
1130
  effects: {
950
- domain: "create";
1131
+ domain: "replace";
951
1132
  storage: "normal-open";
952
1133
  };
953
1134
  confirmation: {
954
- kind: "none";
1135
+ kind: "prompt";
1136
+ description: string;
955
1137
  };
956
1138
  input: {
957
1139
  readonly options: {
1140
+ readonly yes: {
1141
+ readonly type: "boolean";
1142
+ };
958
1143
  readonly type: {
959
1144
  readonly type: "string";
960
1145
  readonly required: true;
961
1146
  readonly value: {
962
1147
  readonly kind: "enum";
963
- readonly name: "type";
964
1148
  readonly choices: ("related" | "dependency" | "duplicate" | "subtask")[];
965
1149
  };
966
1150
  };
@@ -986,7 +1170,10 @@ export declare const routes: {
986
1170
  readonly constraints: readonly [];
987
1171
  };
988
1172
  results: import("../results.js").CommandResult[];
989
- run: (args: string[]) => void;
1173
+ guessedFlags: {
1174
+ [k: string]: (args: Array<string>) => string[] | undefined;
1175
+ };
1176
+ run: (args: string[]) => Promise<void>;
990
1177
  help: string;
991
1178
  };
992
1179
  list: {
@@ -1033,7 +1220,6 @@ export declare const routes: {
1033
1220
  readonly required: true;
1034
1221
  readonly value: {
1035
1222
  readonly kind: "enum";
1036
- readonly name: "type";
1037
1223
  readonly choices: ("related" | "dependency" | "duplicate" | "subtask")[];
1038
1224
  };
1039
1225
  };
@@ -1059,6 +1245,9 @@ export declare const routes: {
1059
1245
  readonly constraints: readonly [];
1060
1246
  };
1061
1247
  results: import("../results.js").CommandResult[];
1248
+ guessedFlags: {
1249
+ [k: string]: (args: Array<string>) => string[] | undefined;
1250
+ };
1062
1251
  run: (args: string[]) => void;
1063
1252
  help: string;
1064
1253
  };
@@ -1077,12 +1266,19 @@ export declare const routes: {
1077
1266
  readonly options: {
1078
1267
  readonly text: {
1079
1268
  readonly type: "string";
1080
- readonly required: true;
1081
1269
  readonly value: {
1082
1270
  readonly kind: "text";
1083
1271
  readonly name: "text";
1084
1272
  };
1085
1273
  };
1274
+ readonly "text-file": {
1275
+ readonly type: "string";
1276
+ readonly value: {
1277
+ readonly kind: "path";
1278
+ readonly name: "path";
1279
+ readonly description: "A UTF-8 file, or \"-\" for stdin. Trailing line breaks are dropped; empty or blank input is an error.";
1280
+ };
1281
+ };
1086
1282
  };
1087
1283
  readonly forms: readonly [{
1088
1284
  readonly id: "default";
@@ -1095,10 +1291,19 @@ export declare const routes: {
1095
1291
  };
1096
1292
  }];
1097
1293
  }];
1098
- readonly constraints: readonly [];
1294
+ readonly constraints: readonly [{
1295
+ readonly kind: "exclusive";
1296
+ readonly members: readonly ["option:description" | "option:text", "option:description-file" | "option:text-file"];
1297
+ }, {
1298
+ readonly kind: "atLeastOne";
1299
+ readonly members: readonly ["option:text", "option:text-file"];
1300
+ }];
1099
1301
  };
1100
1302
  results: import("../results.js").CommandResult[];
1101
- run: (args: string[]) => void;
1303
+ guessedFlags: {
1304
+ "--body": (args: string[]) => string[];
1305
+ };
1306
+ run: (args: string[]) => Promise<void>;
1102
1307
  help: string;
1103
1308
  };
1104
1309
  list: {
@@ -1183,12 +1388,19 @@ export declare const routes: {
1183
1388
  };
1184
1389
  readonly text: {
1185
1390
  readonly type: "string";
1186
- readonly required: true;
1187
1391
  readonly value: {
1188
1392
  readonly kind: "text";
1189
1393
  readonly name: "text";
1190
1394
  };
1191
1395
  };
1396
+ readonly "text-file": {
1397
+ readonly type: "string";
1398
+ readonly value: {
1399
+ readonly kind: "path";
1400
+ readonly name: "path";
1401
+ readonly description: "A UTF-8 file, or \"-\" for stdin. Trailing line breaks are dropped; empty or blank input is an error.";
1402
+ };
1403
+ };
1192
1404
  };
1193
1405
  readonly forms: readonly [{
1194
1406
  readonly id: "default";
@@ -1202,25 +1414,34 @@ export declare const routes: {
1202
1414
  }];
1203
1415
  }];
1204
1416
  readonly constraints: readonly [{
1417
+ readonly kind: "exclusive";
1418
+ readonly members: readonly ["option:description" | "option:text", "option:description-file" | "option:text-file"];
1419
+ }, {
1205
1420
  readonly kind: "exclusive";
1206
1421
  readonly members: readonly ["option:append", "option:replacing"];
1207
1422
  }, {
1208
- readonly kind: "requires";
1423
+ readonly kind: "requiresAny";
1209
1424
  readonly input: "option:append";
1210
- readonly requires: `option:${string}`;
1425
+ readonly members: readonly ["option:description" | "option:text", "option:description-file" | "option:text-file"];
1211
1426
  }, {
1212
- readonly kind: "requires";
1427
+ readonly kind: "requiresAny";
1213
1428
  readonly input: "option:replacing";
1214
- readonly requires: `option:${string}`;
1429
+ readonly members: readonly ["option:description" | "option:text", "option:description-file" | "option:text-file"];
1215
1430
  }, {
1216
1431
  readonly kind: "requires";
1217
1432
  readonly input: "option:all";
1218
1433
  readonly requires: "option:replacing";
1434
+ }, {
1435
+ readonly kind: "atLeastOne";
1436
+ readonly members: readonly ["option:text", "option:text-file"];
1219
1437
  }];
1220
1438
  readonly notes: readonly [string];
1221
1439
  };
1222
1440
  results: import("../results.js").CommandResult[];
1223
- run: (args: string[]) => void;
1441
+ guessedFlags: {
1442
+ "--body": (args: string[]) => string[];
1443
+ };
1444
+ run: (args: string[]) => Promise<void>;
1224
1445
  help: string;
1225
1446
  };
1226
1447
  delete: {
@@ -1349,6 +1570,14 @@ export declare const routes: {
1349
1570
  readonly name: "text";
1350
1571
  };
1351
1572
  };
1573
+ readonly "description-file": {
1574
+ readonly type: "string";
1575
+ readonly value: {
1576
+ readonly kind: "path";
1577
+ readonly name: "path";
1578
+ readonly description: "A UTF-8 file, or \"-\" for stdin. Trailing line breaks are dropped; empty or blank input is an error.";
1579
+ };
1580
+ };
1352
1581
  readonly color: {
1353
1582
  readonly type: "string";
1354
1583
  readonly value: {
@@ -1369,10 +1598,13 @@ export declare const routes: {
1369
1598
  };
1370
1599
  }];
1371
1600
  }];
1372
- readonly constraints: readonly [];
1601
+ readonly constraints: readonly [{
1602
+ readonly kind: "exclusive";
1603
+ readonly members: readonly ["option:description" | "option:text", "option:description-file" | "option:text-file"];
1604
+ }];
1373
1605
  };
1374
1606
  results: import("../results.js").CommandResult[];
1375
- run: (args: string[]) => void;
1607
+ run: (args: string[]) => Promise<void>;
1376
1608
  help: string;
1377
1609
  };
1378
1610
  list: {
@@ -1396,6 +1628,34 @@ export declare const routes: {
1396
1628
  run: (args: string[]) => void;
1397
1629
  help: string;
1398
1630
  };
1631
+ view: {
1632
+ summary: string;
1633
+ effects: {
1634
+ domain: "read";
1635
+ storage: "normal-open";
1636
+ };
1637
+ confirmation: {
1638
+ kind: "none";
1639
+ };
1640
+ input: {
1641
+ readonly options: {};
1642
+ readonly forms: readonly [{
1643
+ readonly id: "default";
1644
+ readonly positionals: readonly [{
1645
+ readonly name: "name";
1646
+ readonly min: 1;
1647
+ readonly max: 1;
1648
+ readonly value: {
1649
+ readonly kind: "label-name";
1650
+ };
1651
+ }];
1652
+ }];
1653
+ readonly constraints: readonly [];
1654
+ };
1655
+ results: import("../results.js").CommandResult[];
1656
+ run: (args: string[]) => void;
1657
+ help: string;
1658
+ };
1399
1659
  edit: {
1400
1660
  summary: string;
1401
1661
  effects: {
@@ -1442,6 +1702,14 @@ export declare const routes: {
1442
1702
  readonly name: "text";
1443
1703
  };
1444
1704
  };
1705
+ readonly "description-file": {
1706
+ readonly type: "string";
1707
+ readonly value: {
1708
+ readonly kind: "path";
1709
+ readonly name: "path";
1710
+ readonly description: "A UTF-8 file, or \"-\" for stdin. Trailing line breaks are dropped; empty or blank input is an error.";
1711
+ };
1712
+ };
1445
1713
  };
1446
1714
  readonly forms: readonly [{
1447
1715
  readonly id: "default";
@@ -1455,16 +1723,19 @@ export declare const routes: {
1455
1723
  }];
1456
1724
  }];
1457
1725
  readonly constraints: readonly [{
1726
+ readonly kind: "exclusive";
1727
+ readonly members: readonly ["option:description" | "option:text", "option:description-file" | "option:text-file"];
1728
+ }, {
1458
1729
  readonly kind: "exclusive";
1459
1730
  readonly members: readonly ["option:append", "option:replacing"];
1460
1731
  }, {
1461
- readonly kind: "requires";
1732
+ readonly kind: "requiresAny";
1462
1733
  readonly input: "option:append";
1463
- readonly requires: `option:${string}`;
1734
+ readonly members: readonly ["option:description" | "option:text", "option:description-file" | "option:text-file"];
1464
1735
  }, {
1465
- readonly kind: "requires";
1736
+ readonly kind: "requiresAny";
1466
1737
  readonly input: "option:replacing";
1467
- readonly requires: `option:${string}`;
1738
+ readonly members: readonly ["option:description" | "option:text", "option:description-file" | "option:text-file"];
1468
1739
  }, {
1469
1740
  readonly kind: "requires";
1470
1741
  readonly input: "option:all";
@@ -1476,7 +1747,7 @@ export declare const routes: {
1476
1747
  readonly notes: readonly [string];
1477
1748
  };
1478
1749
  results: import("../results.js").CommandResult[];
1479
- run: (args: string[]) => void;
1750
+ run: (args: string[]) => Promise<void>;
1480
1751
  help: string;
1481
1752
  };
1482
1753
  delete: {
@@ -1525,6 +1796,21 @@ export declare const routes: {
1525
1796
  };
1526
1797
  input: {
1527
1798
  readonly options: {
1799
+ readonly project: {
1800
+ readonly type: "string";
1801
+ readonly value: {
1802
+ readonly kind: "project-key";
1803
+ readonly name: "project-key";
1804
+ };
1805
+ };
1806
+ readonly "project-id": {
1807
+ readonly type: "string";
1808
+ readonly value: {
1809
+ readonly kind: "project-id";
1810
+ readonly name: "project-id";
1811
+ readonly description: "Full project UUID; canonical or compact, case-insensitive";
1812
+ };
1813
+ };
1528
1814
  readonly task: {
1529
1815
  readonly type: "string";
1530
1816
  readonly value: {
@@ -1532,6 +1818,17 @@ export declare const routes: {
1532
1818
  readonly name: "task-key";
1533
1819
  };
1534
1820
  };
1821
+ readonly "task-id": {
1822
+ readonly type: "string";
1823
+ readonly value: {
1824
+ readonly kind: "task-id";
1825
+ readonly name: "task-id";
1826
+ readonly description: "Full task UUID; canonical or compact, case-insensitive";
1827
+ };
1828
+ };
1829
+ readonly "show-deleted": {
1830
+ readonly type: "boolean";
1831
+ };
1535
1832
  readonly session: {
1536
1833
  readonly type: "string";
1537
1834
  readonly value: {
@@ -1546,12 +1843,55 @@ export declare const routes: {
1546
1843
  readonly name: "id";
1547
1844
  };
1548
1845
  };
1846
+ readonly since: {
1847
+ readonly type: "string";
1848
+ readonly value: {
1849
+ readonly kind: "timestamp";
1850
+ readonly name: "time";
1851
+ readonly description: "Inclusive lower bound. Integer epoch milliseconds or YYYY-MM-DDTHH:mm:ss with Z or a numeric offset. Optional fractional seconds have 1 to 3 digits.";
1852
+ };
1853
+ };
1854
+ readonly until: {
1855
+ readonly type: "string";
1856
+ readonly value: {
1857
+ readonly kind: "timestamp";
1858
+ readonly name: "time";
1859
+ readonly description: "Inclusive upper bound in the same formats as --since. Must be at or after --since.";
1860
+ };
1861
+ };
1862
+ readonly action: {
1863
+ readonly type: "string";
1864
+ readonly multiple: true;
1865
+ readonly value: {
1866
+ readonly kind: "activity-action";
1867
+ readonly name: "action";
1868
+ readonly choices: ("create" | "delete" | "archive" | "edit" | "move" | "order" | "unarchive" | "relation_create" | "relation_delete" | "comment_create" | "comment_edit" | "comment_delete")[];
1869
+ };
1870
+ };
1871
+ readonly changed: {
1872
+ readonly type: "string";
1873
+ readonly multiple: true;
1874
+ readonly value: {
1875
+ readonly kind: "activity-change";
1876
+ readonly name: "field[=value]";
1877
+ readonly pattern: `^((${string})|(${string})=.+)$`;
1878
+ readonly description: `Fields: ${string}. Omit the value to match any change. Values apply to column, priority and added labels, ignoring case. priority=none matches an unassigned priority.`;
1879
+ };
1880
+ };
1549
1881
  readonly limit: {
1550
1882
  readonly type: "string";
1551
1883
  readonly value: {
1552
1884
  readonly kind: "positive-integer";
1553
1885
  readonly name: "n";
1554
- readonly pattern: "^[1-9]\\d{0,14}\\d?$";
1886
+ readonly pattern: string;
1887
+ };
1888
+ readonly description: "Return at most n results after all filters. Use an integer from 1 through 11871.";
1889
+ };
1890
+ readonly "starting-after": {
1891
+ readonly type: "string";
1892
+ readonly value: {
1893
+ readonly kind: "activity-id";
1894
+ readonly name: "id";
1555
1895
  };
1556
1896
  };
1557
1897
  };
@@ -1559,7 +1899,15 @@ export declare const routes: {
1559
1899
  readonly id: "default";
1560
1900
  readonly positionals: readonly [];
1561
1901
  }];
1562
- readonly constraints: readonly [];
1902
+ readonly constraints: readonly [{
1903
+ readonly kind: "exclusive";
1904
+ readonly members: readonly ["option:project", "option:project-id", "option:task", "option:task-id"];
1905
+ }, {
1906
+ readonly kind: "requiresAny";
1907
+ readonly input: "option:show-deleted";
1908
+ readonly members: readonly ["option:project", "option:task"];
1909
+ }];
1910
+ readonly notes: readonly ["Repeated --action flags match any listed action. Repeated --changed filters for one field match any of them. Different fields must match the same event. All other filters must also match, before --limit applies."];
1563
1911
  };
1564
1912
  results: import("../results.js").CommandResult[];
1565
1913
  run: (args: string[]) => void;
@@ -1711,6 +2059,27 @@ export declare const routes: {
1711
2059
  run: (args: string[]) => void;
1712
2060
  help: string;
1713
2061
  };
2062
+ whoami: {
2063
+ summary: string;
2064
+ effects: {
2065
+ domain: "none";
2066
+ storage: "none";
2067
+ };
2068
+ confirmation: {
2069
+ kind: "none";
2070
+ };
2071
+ input: {
2072
+ readonly options: {};
2073
+ readonly forms: readonly [{
2074
+ readonly id: "default";
2075
+ readonly positionals: readonly [];
2076
+ }];
2077
+ readonly constraints: readonly [];
2078
+ };
2079
+ results: import("../results.js").CommandResult[];
2080
+ run: (args: string[]) => void;
2081
+ help: string;
2082
+ };
1714
2083
  capabilities: {
1715
2084
  summary: string;
1716
2085
  effects: {
@@ -1733,3 +2102,4 @@ export declare const routes: {
1733
2102
  help: string;
1734
2103
  };
1735
2104
  };
2105
+ export declare const parsedRoutes: import("../types.js").ParsedRoute[];