@zinn-dev/cli 0.41.0 → 0.42.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 (68) hide show
  1. package/README.md +11 -689
  2. package/index.js +2 -2
  3. package/package.json +3 -2
  4. package/skills/zinn/SKILL.md +1 -1
  5. package/src/capabilities-schema.d.ts +22 -23
  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.js +2 -0
  13. package/src/input.d.ts +154 -43
  14. package/src/input.js +86 -13
  15. package/src/lib.d.ts +30 -2
  16. package/src/lib.js +74 -13
  17. package/src/presentation/activity-presentation.d.ts +9 -1
  18. package/src/presentation/activity-presentation.js +108 -25
  19. package/src/presentation/capabilities-presentation.d.ts +2 -0
  20. package/src/presentation/capabilities-presentation.js +3 -0
  21. package/src/presentation/column-presentation.d.ts +6 -0
  22. package/src/presentation/column-presentation.js +10 -0
  23. package/src/presentation/comment-presentation.d.ts +15 -0
  24. package/src/presentation/comment-presentation.js +29 -0
  25. package/src/presentation/description-presentation.d.ts +17 -0
  26. package/src/presentation/description-presentation.js +26 -4
  27. package/src/presentation/label-presentation.d.ts +8 -0
  28. package/src/presentation/label-presentation.js +28 -0
  29. package/src/presentation/project-presentation.d.ts +7 -0
  30. package/src/presentation/project-presentation.js +19 -0
  31. package/src/presentation/relation-presentation.d.ts +7 -0
  32. package/src/presentation/relation-presentation.js +73 -0
  33. package/src/presentation/task-presentation.d.ts +3 -3
  34. package/src/presentation/task-presentation.js +22 -18
  35. package/src/project.d.ts +14 -5
  36. package/src/project.js +18 -6
  37. package/src/result-schemas.d.ts +230 -23
  38. package/src/result-schemas.js +62 -3
  39. package/src/results.d.ts +34 -17
  40. package/src/results.js +19 -0
  41. package/src/routes/activity-router.d.ts +34 -1
  42. package/src/routes/activity-router.js +104 -31
  43. package/src/routes/aliases.d.ts +2 -0
  44. package/src/routes/aliases.js +11 -0
  45. package/src/routes/capabilities-router.js +9 -3
  46. package/src/routes/comment-router.d.ts +41 -18
  47. package/src/routes/comment-router.js +65 -48
  48. package/src/routes/label-router.d.ts +57 -7
  49. package/src/routes/label-router.js +84 -39
  50. package/src/routes/project-router.d.ts +34 -12
  51. package/src/routes/project-router.js +59 -55
  52. package/src/routes/relation-router.d.ts +6 -6
  53. package/src/routes/relation-router.js +52 -69
  54. package/src/routes/restore-router.js +1 -1
  55. package/src/routes/router.d.ts +1 -1
  56. package/src/routes/router.js +38 -9
  57. package/src/routes/routes.d.ts +253 -45
  58. package/src/routes/routes.js +4 -0
  59. package/src/routes/task-router.d.ts +107 -26
  60. package/src/routes/task-router.js +151 -143
  61. package/src/routes/whoami-router.d.ts +21 -0
  62. package/src/routes/whoami-router.js +31 -0
  63. package/src/text-edit.d.ts +13 -9
  64. package/src/text-edit.js +23 -18
  65. package/src/text-input.d.ts +47 -0
  66. package/src/text-input.js +187 -0
  67. package/src/types.d.ts +32 -9
  68. 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;
@@ -415,6 +437,14 @@ export declare const routes: {
415
437
  readonly name: "text";
416
438
  };
417
439
  };
440
+ readonly "description-file": {
441
+ readonly type: "string";
442
+ readonly value: {
443
+ readonly kind: "path";
444
+ readonly name: "path";
445
+ readonly description: "A UTF-8 file, or \"-\" for stdin. Trailing line breaks are dropped; empty or blank input is an error.";
446
+ };
447
+ };
418
448
  readonly priority: {
419
449
  readonly type: "string";
420
450
  readonly value: {
@@ -482,11 +512,18 @@ export declare const routes: {
482
512
  };
483
513
  }];
484
514
  }];
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."];
515
+ readonly constraints: readonly [{
516
+ readonly kind: "exclusive";
517
+ readonly members: readonly ["option:description" | "option:text", "option:description-file" | "option:text-file"];
518
+ }];
519
+ readonly notes: readonly ["Omit the project key to use defaultProject from settings; otherwise a project key is required."];
487
520
  };
488
521
  results: import("../results.js").CommandResult[];
489
- run: (args: string[]) => void;
522
+ guessedFlags: {
523
+ "--status": (args: string[]) => string[];
524
+ "--body": (args: string[]) => string[];
525
+ };
526
+ run: (args: string[]) => Promise<void>;
490
527
  help: string;
491
528
  };
492
529
  list: {
@@ -543,7 +580,7 @@ export declare const routes: {
543
580
  readonly kind: "exclusive";
544
581
  readonly members: readonly ["positional:project-key", "option:all-projects"];
545
582
  }];
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."];
583
+ 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."];
547
584
  };
548
585
  results: import("../results.js").CommandResult[];
549
586
  run: (args: string[]) => void;
@@ -611,7 +648,7 @@ export declare const routes: {
611
648
  readonly kind: "exclusive";
612
649
  readonly members: readonly ["positional:project-key", "option:all-projects"];
613
650
  }];
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."];
651
+ 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
652
  };
616
653
  results: import("../results.js").CommandResult[];
617
654
  run: (args: string[]) => void;
@@ -713,6 +750,14 @@ export declare const routes: {
713
750
  readonly name: "text";
714
751
  };
715
752
  };
753
+ readonly "description-file": {
754
+ readonly type: "string";
755
+ readonly value: {
756
+ readonly kind: "path";
757
+ readonly name: "path";
758
+ readonly description: "A UTF-8 file, or \"-\" for stdin. Trailing line breaks are dropped; empty or blank input is an error.";
759
+ };
760
+ };
716
761
  };
717
762
  readonly forms: readonly [{
718
763
  readonly id: "default";
@@ -726,32 +771,36 @@ export declare const routes: {
726
771
  }];
727
772
  }];
728
773
  readonly constraints: readonly [{
774
+ readonly kind: "exclusive";
775
+ readonly members: readonly ["option:description" | "option:text", "option:description-file" | "option:text-file"];
776
+ }, {
729
777
  readonly kind: "exclusive";
730
778
  readonly members: readonly ["option:append", "option:replacing"];
731
779
  }, {
732
- readonly kind: "requires";
780
+ readonly kind: "requiresAny";
733
781
  readonly input: "option:append";
734
- readonly requires: `option:${string}`;
782
+ readonly members: readonly ["option:description" | "option:text", "option:description-file" | "option:text-file"];
735
783
  }, {
736
- readonly kind: "requires";
784
+ readonly kind: "requiresAny";
737
785
  readonly input: "option:replacing";
738
- readonly requires: `option:${string}`;
786
+ readonly members: readonly ["option:description" | "option:text", "option:description-file" | "option:text-file"];
739
787
  }, {
740
788
  readonly kind: "requires";
741
789
  readonly input: "option:all";
742
790
  readonly requires: "option:replacing";
743
791
  }, {
744
792
  readonly kind: "atLeastOne";
745
- readonly members: readonly ["option:title", "option:description", "option:priority", "option:add-label", "option:remove-label"];
793
+ readonly members: readonly ["option:title", "option:description", "option:description-file", "option:priority", "option:add-label", "option:remove-label"];
746
794
  }];
747
795
  readonly notes: readonly [string];
748
796
  };
749
797
  results: import("../results.js").CommandResult[];
750
- run: (args: string[]) => void;
798
+ run: (args: string[]) => Promise<void>;
751
799
  help: string;
752
800
  guessedFlags: {
753
801
  "--status": (args: string[]) => string[];
754
802
  "--column": (args: string[]) => string[];
803
+ "--body": (args: string[]) => string[];
755
804
  };
756
805
  };
757
806
  move: {
@@ -806,6 +855,24 @@ export declare const routes: {
806
855
  readonly options: {};
807
856
  readonly forms: readonly [{
808
857
  readonly id: "absolute";
858
+ readonly positionals: readonly [{
859
+ readonly max: null;
860
+ readonly name: "task-key";
861
+ readonly min: 1;
862
+ readonly value: {
863
+ readonly kind: "task-key";
864
+ };
865
+ }, {
866
+ readonly name: "direction";
867
+ readonly min: 1;
868
+ readonly max: 1;
869
+ readonly value: {
870
+ readonly kind: "enum";
871
+ readonly choices: readonly ["top", "bottom"];
872
+ };
873
+ }];
874
+ }, {
875
+ readonly id: "step";
809
876
  readonly positionals: readonly [{
810
877
  readonly name: "task-key";
811
878
  readonly min: 1;
@@ -819,15 +886,15 @@ export declare const routes: {
819
886
  readonly max: 1;
820
887
  readonly value: {
821
888
  readonly kind: "enum";
822
- readonly choices: readonly ["top", "up", "down", "bottom"];
889
+ readonly choices: readonly ["up", "down"];
823
890
  };
824
891
  }];
825
892
  }, {
826
893
  readonly id: "relative";
827
894
  readonly positionals: readonly [{
895
+ readonly max: null;
828
896
  readonly name: "task-key";
829
897
  readonly min: 1;
830
- readonly max: 1;
831
898
  readonly value: {
832
899
  readonly kind: "task-key";
833
900
  };
@@ -929,9 +996,9 @@ export declare const routes: {
929
996
  readonly forms: readonly [{
930
997
  readonly id: "default";
931
998
  readonly positionals: readonly [{
999
+ readonly max: null;
932
1000
  readonly name: "task-key";
933
1001
  readonly min: 1;
934
- readonly max: 1;
935
1002
  readonly value: {
936
1003
  readonly kind: "task-key";
937
1004
  };
@@ -960,7 +1027,6 @@ export declare const routes: {
960
1027
  readonly required: true;
961
1028
  readonly value: {
962
1029
  readonly kind: "enum";
963
- readonly name: "type";
964
1030
  readonly choices: ("related" | "dependency" | "duplicate" | "subtask")[];
965
1031
  };
966
1032
  };
@@ -986,6 +1052,9 @@ export declare const routes: {
986
1052
  readonly constraints: readonly [];
987
1053
  };
988
1054
  results: import("../results.js").CommandResult[];
1055
+ guessedFlags: {
1056
+ [k: string]: (args: Array<string>) => string[] | undefined;
1057
+ };
989
1058
  run: (args: string[]) => void;
990
1059
  help: string;
991
1060
  };
@@ -1033,7 +1102,6 @@ export declare const routes: {
1033
1102
  readonly required: true;
1034
1103
  readonly value: {
1035
1104
  readonly kind: "enum";
1036
- readonly name: "type";
1037
1105
  readonly choices: ("related" | "dependency" | "duplicate" | "subtask")[];
1038
1106
  };
1039
1107
  };
@@ -1059,6 +1127,9 @@ export declare const routes: {
1059
1127
  readonly constraints: readonly [];
1060
1128
  };
1061
1129
  results: import("../results.js").CommandResult[];
1130
+ guessedFlags: {
1131
+ [k: string]: (args: Array<string>) => string[] | undefined;
1132
+ };
1062
1133
  run: (args: string[]) => void;
1063
1134
  help: string;
1064
1135
  };
@@ -1077,12 +1148,19 @@ export declare const routes: {
1077
1148
  readonly options: {
1078
1149
  readonly text: {
1079
1150
  readonly type: "string";
1080
- readonly required: true;
1081
1151
  readonly value: {
1082
1152
  readonly kind: "text";
1083
1153
  readonly name: "text";
1084
1154
  };
1085
1155
  };
1156
+ readonly "text-file": {
1157
+ readonly type: "string";
1158
+ readonly value: {
1159
+ readonly kind: "path";
1160
+ readonly name: "path";
1161
+ readonly description: "A UTF-8 file, or \"-\" for stdin. Trailing line breaks are dropped; empty or blank input is an error.";
1162
+ };
1163
+ };
1086
1164
  };
1087
1165
  readonly forms: readonly [{
1088
1166
  readonly id: "default";
@@ -1095,10 +1173,19 @@ export declare const routes: {
1095
1173
  };
1096
1174
  }];
1097
1175
  }];
1098
- readonly constraints: readonly [];
1176
+ readonly constraints: readonly [{
1177
+ readonly kind: "exclusive";
1178
+ readonly members: readonly ["option:description" | "option:text", "option:description-file" | "option:text-file"];
1179
+ }, {
1180
+ readonly kind: "atLeastOne";
1181
+ readonly members: readonly ["option:text", "option:text-file"];
1182
+ }];
1099
1183
  };
1100
1184
  results: import("../results.js").CommandResult[];
1101
- run: (args: string[]) => void;
1185
+ guessedFlags: {
1186
+ "--body": (args: string[]) => string[];
1187
+ };
1188
+ run: (args: string[]) => Promise<void>;
1102
1189
  help: string;
1103
1190
  };
1104
1191
  list: {
@@ -1183,12 +1270,19 @@ export declare const routes: {
1183
1270
  };
1184
1271
  readonly text: {
1185
1272
  readonly type: "string";
1186
- readonly required: true;
1187
1273
  readonly value: {
1188
1274
  readonly kind: "text";
1189
1275
  readonly name: "text";
1190
1276
  };
1191
1277
  };
1278
+ readonly "text-file": {
1279
+ readonly type: "string";
1280
+ readonly value: {
1281
+ readonly kind: "path";
1282
+ readonly name: "path";
1283
+ readonly description: "A UTF-8 file, or \"-\" for stdin. Trailing line breaks are dropped; empty or blank input is an error.";
1284
+ };
1285
+ };
1192
1286
  };
1193
1287
  readonly forms: readonly [{
1194
1288
  readonly id: "default";
@@ -1202,25 +1296,34 @@ export declare const routes: {
1202
1296
  }];
1203
1297
  }];
1204
1298
  readonly constraints: readonly [{
1299
+ readonly kind: "exclusive";
1300
+ readonly members: readonly ["option:description" | "option:text", "option:description-file" | "option:text-file"];
1301
+ }, {
1205
1302
  readonly kind: "exclusive";
1206
1303
  readonly members: readonly ["option:append", "option:replacing"];
1207
1304
  }, {
1208
- readonly kind: "requires";
1305
+ readonly kind: "requiresAny";
1209
1306
  readonly input: "option:append";
1210
- readonly requires: `option:${string}`;
1307
+ readonly members: readonly ["option:description" | "option:text", "option:description-file" | "option:text-file"];
1211
1308
  }, {
1212
- readonly kind: "requires";
1309
+ readonly kind: "requiresAny";
1213
1310
  readonly input: "option:replacing";
1214
- readonly requires: `option:${string}`;
1311
+ readonly members: readonly ["option:description" | "option:text", "option:description-file" | "option:text-file"];
1215
1312
  }, {
1216
1313
  readonly kind: "requires";
1217
1314
  readonly input: "option:all";
1218
1315
  readonly requires: "option:replacing";
1316
+ }, {
1317
+ readonly kind: "atLeastOne";
1318
+ readonly members: readonly ["option:text", "option:text-file"];
1219
1319
  }];
1220
1320
  readonly notes: readonly [string];
1221
1321
  };
1222
1322
  results: import("../results.js").CommandResult[];
1223
- run: (args: string[]) => void;
1323
+ guessedFlags: {
1324
+ "--body": (args: string[]) => string[];
1325
+ };
1326
+ run: (args: string[]) => Promise<void>;
1224
1327
  help: string;
1225
1328
  };
1226
1329
  delete: {
@@ -1349,6 +1452,14 @@ export declare const routes: {
1349
1452
  readonly name: "text";
1350
1453
  };
1351
1454
  };
1455
+ readonly "description-file": {
1456
+ readonly type: "string";
1457
+ readonly value: {
1458
+ readonly kind: "path";
1459
+ readonly name: "path";
1460
+ readonly description: "A UTF-8 file, or \"-\" for stdin. Trailing line breaks are dropped; empty or blank input is an error.";
1461
+ };
1462
+ };
1352
1463
  readonly color: {
1353
1464
  readonly type: "string";
1354
1465
  readonly value: {
@@ -1369,10 +1480,13 @@ export declare const routes: {
1369
1480
  };
1370
1481
  }];
1371
1482
  }];
1372
- readonly constraints: readonly [];
1483
+ readonly constraints: readonly [{
1484
+ readonly kind: "exclusive";
1485
+ readonly members: readonly ["option:description" | "option:text", "option:description-file" | "option:text-file"];
1486
+ }];
1373
1487
  };
1374
1488
  results: import("../results.js").CommandResult[];
1375
- run: (args: string[]) => void;
1489
+ run: (args: string[]) => Promise<void>;
1376
1490
  help: string;
1377
1491
  };
1378
1492
  list: {
@@ -1396,6 +1510,34 @@ export declare const routes: {
1396
1510
  run: (args: string[]) => void;
1397
1511
  help: string;
1398
1512
  };
1513
+ view: {
1514
+ summary: string;
1515
+ effects: {
1516
+ domain: "read";
1517
+ storage: "normal-open";
1518
+ };
1519
+ confirmation: {
1520
+ kind: "none";
1521
+ };
1522
+ input: {
1523
+ readonly options: {};
1524
+ readonly forms: readonly [{
1525
+ readonly id: "default";
1526
+ readonly positionals: readonly [{
1527
+ readonly name: "name";
1528
+ readonly min: 1;
1529
+ readonly max: 1;
1530
+ readonly value: {
1531
+ readonly kind: "label-name";
1532
+ };
1533
+ }];
1534
+ }];
1535
+ readonly constraints: readonly [];
1536
+ };
1537
+ results: import("../results.js").CommandResult[];
1538
+ run: (args: string[]) => void;
1539
+ help: string;
1540
+ };
1399
1541
  edit: {
1400
1542
  summary: string;
1401
1543
  effects: {
@@ -1442,6 +1584,14 @@ export declare const routes: {
1442
1584
  readonly name: "text";
1443
1585
  };
1444
1586
  };
1587
+ readonly "description-file": {
1588
+ readonly type: "string";
1589
+ readonly value: {
1590
+ readonly kind: "path";
1591
+ readonly name: "path";
1592
+ readonly description: "A UTF-8 file, or \"-\" for stdin. Trailing line breaks are dropped; empty or blank input is an error.";
1593
+ };
1594
+ };
1445
1595
  };
1446
1596
  readonly forms: readonly [{
1447
1597
  readonly id: "default";
@@ -1455,16 +1605,19 @@ export declare const routes: {
1455
1605
  }];
1456
1606
  }];
1457
1607
  readonly constraints: readonly [{
1608
+ readonly kind: "exclusive";
1609
+ readonly members: readonly ["option:description" | "option:text", "option:description-file" | "option:text-file"];
1610
+ }, {
1458
1611
  readonly kind: "exclusive";
1459
1612
  readonly members: readonly ["option:append", "option:replacing"];
1460
1613
  }, {
1461
- readonly kind: "requires";
1614
+ readonly kind: "requiresAny";
1462
1615
  readonly input: "option:append";
1463
- readonly requires: `option:${string}`;
1616
+ readonly members: readonly ["option:description" | "option:text", "option:description-file" | "option:text-file"];
1464
1617
  }, {
1465
- readonly kind: "requires";
1618
+ readonly kind: "requiresAny";
1466
1619
  readonly input: "option:replacing";
1467
- readonly requires: `option:${string}`;
1620
+ readonly members: readonly ["option:description" | "option:text", "option:description-file" | "option:text-file"];
1468
1621
  }, {
1469
1622
  readonly kind: "requires";
1470
1623
  readonly input: "option:all";
@@ -1476,7 +1629,7 @@ export declare const routes: {
1476
1629
  readonly notes: readonly [string];
1477
1630
  };
1478
1631
  results: import("../results.js").CommandResult[];
1479
- run: (args: string[]) => void;
1632
+ run: (args: string[]) => Promise<void>;
1480
1633
  help: string;
1481
1634
  };
1482
1635
  delete: {
@@ -1525,6 +1678,21 @@ export declare const routes: {
1525
1678
  };
1526
1679
  input: {
1527
1680
  readonly options: {
1681
+ readonly project: {
1682
+ readonly type: "string";
1683
+ readonly value: {
1684
+ readonly kind: "project-key";
1685
+ readonly name: "project-key";
1686
+ };
1687
+ };
1688
+ readonly "project-id": {
1689
+ readonly type: "string";
1690
+ readonly value: {
1691
+ readonly kind: "project-id";
1692
+ readonly name: "project-id";
1693
+ readonly description: "Full project UUID; canonical or compact, case-insensitive";
1694
+ };
1695
+ };
1528
1696
  readonly task: {
1529
1697
  readonly type: "string";
1530
1698
  readonly value: {
@@ -1532,6 +1700,17 @@ export declare const routes: {
1532
1700
  readonly name: "task-key";
1533
1701
  };
1534
1702
  };
1703
+ readonly "task-id": {
1704
+ readonly type: "string";
1705
+ readonly value: {
1706
+ readonly kind: "task-id";
1707
+ readonly name: "task-id";
1708
+ readonly description: "Full task UUID; canonical or compact, case-insensitive";
1709
+ };
1710
+ };
1711
+ readonly "show-deleted": {
1712
+ readonly type: "boolean";
1713
+ };
1535
1714
  readonly session: {
1536
1715
  readonly type: "string";
1537
1716
  readonly value: {
@@ -1559,7 +1738,14 @@ export declare const routes: {
1559
1738
  readonly id: "default";
1560
1739
  readonly positionals: readonly [];
1561
1740
  }];
1562
- readonly constraints: readonly [];
1741
+ readonly constraints: readonly [{
1742
+ readonly kind: "exclusive";
1743
+ readonly members: readonly ["option:project", "option:project-id", "option:task", "option:task-id"];
1744
+ }, {
1745
+ readonly kind: "requiresAny";
1746
+ readonly input: "option:show-deleted";
1747
+ readonly members: readonly ["option:project", "option:task"];
1748
+ }];
1563
1749
  };
1564
1750
  results: import("../results.js").CommandResult[];
1565
1751
  run: (args: string[]) => void;
@@ -1711,6 +1897,27 @@ export declare const routes: {
1711
1897
  run: (args: string[]) => void;
1712
1898
  help: string;
1713
1899
  };
1900
+ whoami: {
1901
+ summary: string;
1902
+ effects: {
1903
+ domain: "none";
1904
+ storage: "none";
1905
+ };
1906
+ confirmation: {
1907
+ kind: "none";
1908
+ };
1909
+ input: {
1910
+ readonly options: {};
1911
+ readonly forms: readonly [{
1912
+ readonly id: "default";
1913
+ readonly positionals: readonly [];
1914
+ }];
1915
+ readonly constraints: readonly [];
1916
+ };
1917
+ results: import("../results.js").CommandResult[];
1918
+ run: (args: string[]) => void;
1919
+ help: string;
1920
+ };
1714
1921
  capabilities: {
1715
1922
  summary: string;
1716
1923
  effects: {
@@ -1733,3 +1940,4 @@ export declare const routes: {
1733
1940
  help: string;
1734
1941
  };
1735
1942
  };
1943
+ export declare const parsedRoutes: import("../types.js").ParsedRoute[];
@@ -7,7 +7,9 @@ import { restoreCommand } from "./restore-router.js";
7
7
  import { migrateCommand } from "./migrate-router.js";
8
8
  import { reindexCommand } from "./reindex-router.js";
9
9
  import { infoCommand } from "./info-router.js";
10
+ import { whoamiCommand } from "./whoami-router.js";
10
11
  import { capabilitiesCommand } from "./capabilities-router.js";
12
+ import { parseRoutes } from "./router.js";
11
13
  // TODO: lazy load?
12
14
  export const routes = {
13
15
  project: projectRouter,
@@ -19,5 +21,7 @@ export const routes = {
19
21
  migrate: migrateCommand,
20
22
  reindex: reindexCommand,
21
23
  info: infoCommand,
24
+ whoami: whoamiCommand,
22
25
  capabilities: capabilitiesCommand,
23
26
  };
27
+ export const parsedRoutes = parseRoutes(routes);