@zinn-dev/cli 0.40.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 (84) hide show
  1. package/README.md +11 -561
  2. package/index.js +24 -13
  3. package/package.json +8 -2
  4. package/skills/zinn/SKILL.md +63 -0
  5. package/src/actor.d.ts +2 -1
  6. package/src/actor.js +78 -11
  7. package/src/capabilities-schema.d.ts +162 -0
  8. package/src/capabilities-schema.js +59 -0
  9. package/src/capabilities.d.ts +29 -0
  10. package/src/capabilities.js +30 -0
  11. package/src/column-hint.d.ts +3 -0
  12. package/src/column-hint.js +225 -0
  13. package/src/database.d.ts +1 -1
  14. package/src/database.js +5 -8
  15. package/src/errors.d.ts +158 -0
  16. package/src/errors.js +226 -0
  17. package/src/input.d.ts +227 -0
  18. package/src/input.js +192 -0
  19. package/src/lib.d.ts +71 -8
  20. package/src/lib.js +275 -18
  21. package/src/presentation/activity-presentation.d.ts +9 -1
  22. package/src/presentation/activity-presentation.js +120 -23
  23. package/src/presentation/capabilities-presentation.d.ts +2 -0
  24. package/src/presentation/capabilities-presentation.js +3 -0
  25. package/src/presentation/column-presentation.d.ts +9 -5
  26. package/src/presentation/column-presentation.js +10 -0
  27. package/src/presentation/comment-presentation.d.ts +15 -0
  28. package/src/presentation/comment-presentation.js +29 -0
  29. package/src/presentation/description-presentation.d.ts +17 -0
  30. package/src/presentation/description-presentation.js +26 -4
  31. package/src/presentation/info-presentation.d.ts +4 -0
  32. package/src/presentation/info-presentation.js +96 -0
  33. package/src/presentation/label-presentation.d.ts +8 -0
  34. package/src/presentation/label-presentation.js +28 -0
  35. package/src/presentation/project-presentation.d.ts +7 -0
  36. package/src/presentation/project-presentation.js +19 -0
  37. package/src/presentation/relation-presentation.d.ts +7 -0
  38. package/src/presentation/relation-presentation.js +73 -0
  39. package/src/presentation/task-presentation.d.ts +4 -12
  40. package/src/presentation/task-presentation.js +22 -18
  41. package/src/project.d.ts +18 -3
  42. package/src/project.js +37 -12
  43. package/src/result-schemas.d.ts +1194 -0
  44. package/src/result-schemas.js +279 -0
  45. package/src/results.d.ts +40 -0
  46. package/src/results.js +36 -0
  47. package/src/routes/activity-router.d.ts +104 -0
  48. package/src/routes/activity-router.js +155 -34
  49. package/src/routes/aliases.d.ts +2 -0
  50. package/src/routes/aliases.js +11 -0
  51. package/src/routes/backup-router.d.ts +17 -0
  52. package/src/routes/backup-router.js +15 -3
  53. package/src/routes/capabilities-router.d.ts +21 -0
  54. package/src/routes/capabilities-router.js +34 -0
  55. package/src/routes/comment-router.d.ts +210 -8
  56. package/src/routes/comment-router.js +189 -65
  57. package/src/routes/info-router.d.ts +21 -0
  58. package/src/routes/info-router.js +29 -0
  59. package/src/routes/label-router.d.ts +217 -2
  60. package/src/routes/label-router.js +189 -62
  61. package/src/routes/migrate-router.d.ts +17 -0
  62. package/src/routes/migrate-router.js +17 -5
  63. package/src/routes/project-router.d.ts +373 -2
  64. package/src/routes/project-router.js +322 -132
  65. package/src/routes/reindex-router.d.ts +17 -0
  66. package/src/routes/reindex-router.js +15 -3
  67. package/src/routes/relation-router.d.ts +110 -14
  68. package/src/routes/relation-router.js +122 -79
  69. package/src/routes/restore-router.d.ts +29 -0
  70. package/src/routes/restore-router.js +31 -14
  71. package/src/routes/router.d.ts +1 -1
  72. package/src/routes/router.js +80 -32
  73. package/src/routes/routes.d.ts +1781 -8
  74. package/src/routes/routes.js +9 -1
  75. package/src/routes/task-router.d.ts +946 -4
  76. package/src/routes/task-router.js +524 -260
  77. package/src/routes/whoami-router.d.ts +21 -0
  78. package/src/routes/whoami-router.js +31 -0
  79. package/src/text-edit.d.ts +28 -6
  80. package/src/text-edit.js +40 -23
  81. package/src/text-input.d.ts +47 -0
  82. package/src/text-input.js +187 -0
  83. package/src/types.d.ts +37 -0
  84. package/src/types.js +9 -1
@@ -1,84 +1,1026 @@
1
+ import type { ParseArgsOptionsConfig } from "node:util";
2
+ declare function suggestTaskMove(args: Array<string>, options?: ParseArgsOptionsConfig): string[];
1
3
  export declare const taskRouter: {
2
4
  create: {
3
- run: (args: string[]) => void;
5
+ summary: string;
6
+ effects: {
7
+ domain: "create";
8
+ storage: "normal-open";
9
+ };
10
+ confirmation: {
11
+ kind: "none";
12
+ };
13
+ input: {
14
+ readonly options: {
15
+ readonly title: {
16
+ readonly type: "string";
17
+ readonly required: true;
18
+ readonly value: {
19
+ readonly kind: "text";
20
+ readonly name: "text";
21
+ };
22
+ };
23
+ readonly description: {
24
+ readonly type: "string";
25
+ readonly value: {
26
+ readonly kind: "text";
27
+ readonly name: "text";
28
+ };
29
+ };
30
+ readonly "description-file": {
31
+ readonly type: "string";
32
+ readonly value: {
33
+ readonly kind: "path";
34
+ readonly name: "path";
35
+ readonly description: "A UTF-8 file, or \"-\" for stdin. Trailing line breaks are dropped; empty or blank input is an error.";
36
+ };
37
+ };
38
+ readonly priority: {
39
+ readonly type: "string";
40
+ readonly value: {
41
+ readonly kind: "enum";
42
+ readonly name: "priority";
43
+ readonly choices: readonly [...("low" | "medium" | "high" | "urgent")[], "none"];
44
+ readonly caseInsensitive: true;
45
+ readonly description: "Omission leaves priority unassigned on creation and unchanged on edit. none clears priority; JSON uses null.";
46
+ };
47
+ };
48
+ readonly label: {
49
+ readonly type: "string";
50
+ readonly multiple: true;
51
+ readonly value: {
52
+ readonly kind: "label-name";
53
+ readonly name: "name";
54
+ };
55
+ };
56
+ readonly column: {
57
+ readonly type: "string";
58
+ readonly value: {
59
+ readonly kind: "column-name";
60
+ readonly name: "name";
61
+ };
62
+ };
63
+ readonly parent: {
64
+ readonly type: "string";
65
+ readonly value: {
66
+ readonly kind: "task-key";
67
+ readonly name: "task-key";
68
+ };
69
+ };
70
+ readonly "depends-on": {
71
+ readonly type: "string";
72
+ readonly multiple: true;
73
+ readonly value: {
74
+ readonly kind: "task-key";
75
+ readonly name: "task-key";
76
+ };
77
+ };
78
+ readonly "duplicate-of": {
79
+ readonly type: "string";
80
+ readonly value: {
81
+ readonly kind: "task-key";
82
+ readonly name: "task-key";
83
+ };
84
+ };
85
+ readonly related: {
86
+ readonly type: "string";
87
+ readonly multiple: true;
88
+ readonly value: {
89
+ readonly kind: "task-key";
90
+ readonly name: "task-key";
91
+ };
92
+ };
93
+ };
94
+ readonly forms: readonly [{
95
+ readonly id: "default";
96
+ readonly positionals: readonly [{
97
+ readonly name: "project-key";
98
+ readonly min: 0;
99
+ readonly max: 1;
100
+ readonly value: {
101
+ readonly kind: "project-key";
102
+ };
103
+ }];
104
+ }];
105
+ readonly constraints: readonly [{
106
+ readonly kind: "exclusive";
107
+ readonly members: readonly ["option:description" | "option:text", "option:description-file" | "option:text-file"];
108
+ }];
109
+ readonly notes: readonly ["Omit the project key to use defaultProject from settings; otherwise a project key is required."];
110
+ };
111
+ results: import("../results.js").CommandResult[];
112
+ guessedFlags: {
113
+ "--status": (args: string[]) => string[];
114
+ "--body": (args: string[]) => string[];
115
+ };
116
+ run: (args: string[]) => Promise<void>;
4
117
  help: string;
5
118
  };
6
119
  list: {
120
+ summary: string;
121
+ effects: {
122
+ domain: "read";
123
+ storage: "normal-open";
124
+ };
125
+ confirmation: {
126
+ kind: "none";
127
+ };
128
+ input: {
129
+ readonly options: {
130
+ readonly archived: {
131
+ readonly type: "boolean";
132
+ };
133
+ readonly all: {
134
+ readonly type: "boolean";
135
+ };
136
+ readonly "all-projects": {
137
+ readonly type: "boolean";
138
+ };
139
+ readonly label: {
140
+ readonly type: "string";
141
+ readonly multiple: true;
142
+ readonly value: {
143
+ readonly kind: "label-name";
144
+ readonly name: "name";
145
+ };
146
+ };
147
+ readonly column: {
148
+ readonly type: "string";
149
+ readonly value: {
150
+ readonly kind: "column-name";
151
+ readonly name: "name";
152
+ };
153
+ };
154
+ };
155
+ readonly forms: readonly [{
156
+ readonly id: "default";
157
+ readonly positionals: readonly [{
158
+ readonly name: "project-key";
159
+ readonly min: 0;
160
+ readonly max: 1;
161
+ readonly value: {
162
+ readonly kind: "project-key";
163
+ };
164
+ }];
165
+ }];
166
+ readonly constraints: readonly [{
167
+ readonly kind: "exclusive";
168
+ readonly members: readonly ["option:archived", "option:all"];
169
+ }, {
170
+ readonly kind: "exclusive";
171
+ readonly members: readonly ["positional:project-key", "option:all-projects"];
172
+ }];
173
+ 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."];
174
+ };
175
+ results: import("../results.js").CommandResult[];
7
176
  run: (args: string[]) => void;
8
177
  help: string;
9
178
  };
10
179
  search: {
180
+ summary: string;
181
+ effects: {
182
+ domain: "read";
183
+ storage: "normal-open";
184
+ };
185
+ confirmation: {
186
+ kind: "none";
187
+ };
188
+ input: {
189
+ readonly options: {
190
+ readonly archived: {
191
+ readonly type: "boolean";
192
+ };
193
+ readonly all: {
194
+ readonly type: "boolean";
195
+ };
196
+ readonly "all-projects": {
197
+ readonly type: "boolean";
198
+ };
199
+ readonly limit: {
200
+ readonly type: "string";
201
+ readonly value: {
202
+ readonly kind: "positive-integer";
203
+ readonly name: "n";
204
+ readonly pattern: "^[1-9]\\d{0,14}$";
205
+ };
206
+ };
207
+ readonly label: {
208
+ readonly type: "string";
209
+ readonly multiple: true;
210
+ readonly value: {
211
+ readonly kind: "label-name";
212
+ readonly name: "name";
213
+ };
214
+ };
215
+ };
216
+ readonly forms: readonly [{
217
+ readonly id: "default";
218
+ readonly positionals: readonly [{
219
+ readonly name: "query";
220
+ readonly min: 1;
221
+ readonly max: 1;
222
+ readonly value: {
223
+ readonly kind: "text";
224
+ };
225
+ }, {
226
+ readonly name: "project-key";
227
+ readonly min: 0;
228
+ readonly max: 1;
229
+ readonly value: {
230
+ readonly kind: "project-key";
231
+ };
232
+ }];
233
+ }];
234
+ readonly constraints: readonly [{
235
+ readonly kind: "exclusive";
236
+ readonly members: readonly ["option:archived", "option:all"];
237
+ }, {
238
+ readonly kind: "exclusive";
239
+ readonly members: readonly ["positional:project-key", "option:all-projects"];
240
+ }];
241
+ 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."];
242
+ };
243
+ results: import("../results.js").CommandResult[];
11
244
  run: (args: string[]) => void;
12
245
  help: string;
13
246
  };
14
247
  view: {
248
+ summary: string;
249
+ effects: {
250
+ domain: "read";
251
+ storage: "normal-open";
252
+ };
253
+ confirmation: {
254
+ kind: "none";
255
+ };
256
+ input: {
257
+ readonly options: {
258
+ readonly history: {
259
+ readonly type: "boolean";
260
+ };
261
+ };
262
+ readonly forms: readonly [{
263
+ readonly id: "default";
264
+ readonly positionals: readonly [{
265
+ readonly name: "task-key";
266
+ readonly min: 1;
267
+ readonly max: 1;
268
+ readonly value: {
269
+ readonly kind: "task-key";
270
+ };
271
+ }];
272
+ }];
273
+ readonly constraints: readonly [];
274
+ };
275
+ results: import("../results.js").CommandResult[];
15
276
  run: (args: string[]) => void;
16
277
  help: string;
17
278
  };
18
279
  edit: {
19
- run: (args: string[]) => void;
280
+ summary: string;
281
+ effects: {
282
+ domain: "update";
283
+ storage: "normal-open";
284
+ };
285
+ confirmation: {
286
+ kind: "none";
287
+ };
288
+ input: {
289
+ readonly options: {
290
+ readonly priority: {
291
+ readonly type: "string";
292
+ readonly value: {
293
+ readonly kind: "enum";
294
+ readonly name: "priority";
295
+ readonly choices: readonly [...("low" | "medium" | "high" | "urgent")[], "none"];
296
+ readonly caseInsensitive: true;
297
+ readonly description: "Omission leaves priority unassigned on creation and unchanged on edit. none clears priority; JSON uses null.";
298
+ };
299
+ };
300
+ readonly "add-label": {
301
+ readonly type: "string";
302
+ readonly multiple: true;
303
+ readonly value: {
304
+ readonly kind: "label-name";
305
+ readonly name: "name";
306
+ };
307
+ };
308
+ readonly "remove-label": {
309
+ readonly type: "string";
310
+ readonly multiple: true;
311
+ readonly value: {
312
+ readonly kind: "label-name";
313
+ readonly name: "name";
314
+ };
315
+ };
316
+ readonly append: {
317
+ readonly type: "boolean";
318
+ };
319
+ readonly replacing: {
320
+ readonly type: "string";
321
+ readonly value: {
322
+ readonly kind: "text";
323
+ readonly name: "old";
324
+ };
325
+ };
326
+ readonly all: {
327
+ readonly type: "boolean";
328
+ };
329
+ readonly title: {
330
+ readonly type: "string";
331
+ readonly value: {
332
+ readonly kind: "text";
333
+ readonly name: "text";
334
+ };
335
+ };
336
+ readonly description: {
337
+ readonly type: "string";
338
+ readonly value: {
339
+ readonly kind: "text";
340
+ readonly name: "text";
341
+ };
342
+ };
343
+ readonly "description-file": {
344
+ readonly type: "string";
345
+ readonly value: {
346
+ readonly kind: "path";
347
+ readonly name: "path";
348
+ readonly description: "A UTF-8 file, or \"-\" for stdin. Trailing line breaks are dropped; empty or blank input is an error.";
349
+ };
350
+ };
351
+ };
352
+ readonly forms: readonly [{
353
+ readonly id: "default";
354
+ readonly positionals: readonly [{
355
+ readonly name: "task-key";
356
+ readonly min: 1;
357
+ readonly max: 1;
358
+ readonly value: {
359
+ readonly kind: "task-key";
360
+ };
361
+ }];
362
+ }];
363
+ readonly constraints: readonly [{
364
+ readonly kind: "exclusive";
365
+ readonly members: readonly ["option:description" | "option:text", "option:description-file" | "option:text-file"];
366
+ }, {
367
+ readonly kind: "exclusive";
368
+ readonly members: readonly ["option:append", "option:replacing"];
369
+ }, {
370
+ readonly kind: "requiresAny";
371
+ readonly input: "option:append";
372
+ readonly members: readonly ["option:description" | "option:text", "option:description-file" | "option:text-file"];
373
+ }, {
374
+ readonly kind: "requiresAny";
375
+ readonly input: "option:replacing";
376
+ readonly members: readonly ["option:description" | "option:text", "option:description-file" | "option:text-file"];
377
+ }, {
378
+ readonly kind: "requires";
379
+ readonly input: "option:all";
380
+ readonly requires: "option:replacing";
381
+ }, {
382
+ readonly kind: "atLeastOne";
383
+ readonly members: readonly ["option:title", "option:description", "option:description-file", "option:priority", "option:add-label", "option:remove-label"];
384
+ }];
385
+ readonly notes: readonly [string];
386
+ };
387
+ results: import("../results.js").CommandResult[];
388
+ run: (args: string[]) => Promise<void>;
20
389
  help: string;
390
+ guessedFlags: {
391
+ "--status": (args: string[]) => string[];
392
+ "--column": (args: string[]) => string[];
393
+ "--body": (args: string[]) => string[];
394
+ };
21
395
  };
22
396
  move: {
397
+ summary: string;
398
+ effects: {
399
+ domain: "update";
400
+ storage: "normal-open";
401
+ };
402
+ confirmation: {
403
+ kind: "none";
404
+ };
405
+ input: {
406
+ readonly options: {};
407
+ readonly forms: readonly [{
408
+ readonly id: "default";
409
+ readonly positionals: readonly [{
410
+ readonly max: null;
411
+ readonly name: "task-key";
412
+ readonly min: 1;
413
+ readonly value: {
414
+ readonly kind: "task-key";
415
+ };
416
+ }, {
417
+ readonly name: "target-column";
418
+ readonly min: 1;
419
+ readonly max: 1;
420
+ readonly value: {
421
+ readonly kind: "column-name";
422
+ };
423
+ }];
424
+ }];
425
+ readonly constraints: readonly [];
426
+ };
427
+ results: import("../results.js").CommandResult[];
23
428
  run: (args: string[]) => void;
24
429
  help: string;
430
+ guessedFlags: {
431
+ "--status": typeof suggestTaskMove;
432
+ "--column": typeof suggestTaskMove;
433
+ };
25
434
  };
26
435
  order: {
436
+ summary: string;
437
+ effects: {
438
+ domain: "update";
439
+ storage: "normal-open";
440
+ };
441
+ confirmation: {
442
+ kind: "none";
443
+ };
444
+ input: {
445
+ readonly options: {};
446
+ readonly forms: readonly [{
447
+ readonly id: "absolute";
448
+ readonly positionals: readonly [{
449
+ readonly max: null;
450
+ readonly name: "task-key";
451
+ readonly min: 1;
452
+ readonly value: {
453
+ readonly kind: "task-key";
454
+ };
455
+ }, {
456
+ readonly name: "direction";
457
+ readonly min: 1;
458
+ readonly max: 1;
459
+ readonly value: {
460
+ readonly kind: "enum";
461
+ readonly choices: readonly ["top", "bottom"];
462
+ };
463
+ }];
464
+ }, {
465
+ readonly id: "step";
466
+ readonly positionals: readonly [{
467
+ readonly name: "task-key";
468
+ readonly min: 1;
469
+ readonly max: 1;
470
+ readonly value: {
471
+ readonly kind: "task-key";
472
+ };
473
+ }, {
474
+ readonly name: "direction";
475
+ readonly min: 1;
476
+ readonly max: 1;
477
+ readonly value: {
478
+ readonly kind: "enum";
479
+ readonly choices: readonly ["up", "down"];
480
+ };
481
+ }];
482
+ }, {
483
+ readonly id: "relative";
484
+ readonly positionals: readonly [{
485
+ readonly max: null;
486
+ readonly name: "task-key";
487
+ readonly min: 1;
488
+ readonly value: {
489
+ readonly kind: "task-key";
490
+ };
491
+ }, {
492
+ readonly name: "direction";
493
+ readonly min: 1;
494
+ readonly max: 1;
495
+ readonly value: {
496
+ readonly kind: "enum";
497
+ readonly choices: readonly ["before", "after"];
498
+ };
499
+ }, {
500
+ readonly name: "target-task-key";
501
+ readonly min: 1;
502
+ readonly max: 1;
503
+ readonly value: {
504
+ readonly kind: "task-key";
505
+ };
506
+ }];
507
+ }];
508
+ readonly constraints: readonly [];
509
+ };
510
+ results: import("../results.js").CommandResult[];
27
511
  run: (args: string[]) => void;
28
512
  help: string;
29
513
  };
30
514
  archive: {
515
+ summary: string;
516
+ effects: {
517
+ domain: "update";
518
+ storage: "normal-open";
519
+ };
520
+ confirmation: {
521
+ kind: "none";
522
+ };
523
+ input: {
524
+ readonly options: {};
525
+ readonly forms: readonly [{
526
+ readonly id: "default";
527
+ readonly positionals: readonly [{
528
+ readonly max: null;
529
+ readonly name: "task-key";
530
+ readonly min: 1;
531
+ readonly value: {
532
+ readonly kind: "task-key";
533
+ };
534
+ }];
535
+ }];
536
+ readonly constraints: readonly [];
537
+ };
538
+ results: import("../results.js").CommandResult[];
31
539
  run: (args: Array<string>) => void;
32
540
  help: string;
33
541
  };
34
542
  unarchive: {
543
+ summary: string;
544
+ effects: {
545
+ domain: "update";
546
+ storage: "normal-open";
547
+ };
548
+ confirmation: {
549
+ kind: "none";
550
+ };
551
+ input: {
552
+ readonly options: {};
553
+ readonly forms: readonly [{
554
+ readonly id: "default";
555
+ readonly positionals: readonly [{
556
+ readonly max: null;
557
+ readonly name: "task-key";
558
+ readonly min: 1;
559
+ readonly value: {
560
+ readonly kind: "task-key";
561
+ };
562
+ }];
563
+ }];
564
+ readonly constraints: readonly [];
565
+ };
566
+ results: import("../results.js").CommandResult[];
35
567
  run: (args: Array<string>) => void;
36
568
  help: string;
37
569
  };
38
570
  delete: {
571
+ summary: string;
572
+ effects: {
573
+ domain: "delete";
574
+ storage: "normal-open";
575
+ };
576
+ confirmation: {
577
+ kind: "prompt";
578
+ description: string;
579
+ };
580
+ input: {
581
+ readonly options: {
582
+ readonly yes: {
583
+ readonly type: "boolean";
584
+ };
585
+ };
586
+ readonly forms: readonly [{
587
+ readonly id: "default";
588
+ readonly positionals: readonly [{
589
+ readonly max: null;
590
+ readonly name: "task-key";
591
+ readonly min: 1;
592
+ readonly value: {
593
+ readonly kind: "task-key";
594
+ };
595
+ }];
596
+ }];
597
+ readonly constraints: readonly [];
598
+ };
599
+ results: import("../results.js").CommandResult[];
39
600
  run: (args: Array<string>) => Promise<void>;
40
601
  help: string;
41
602
  };
42
603
  relation: {
43
604
  create: {
605
+ summary: string;
606
+ effects: {
607
+ domain: "create";
608
+ storage: "normal-open";
609
+ };
610
+ confirmation: {
611
+ kind: "none";
612
+ };
613
+ input: {
614
+ readonly options: {
615
+ readonly type: {
616
+ readonly type: "string";
617
+ readonly required: true;
618
+ readonly value: {
619
+ readonly kind: "enum";
620
+ readonly choices: ("related" | "dependency" | "duplicate" | "subtask")[];
621
+ };
622
+ };
623
+ };
624
+ readonly forms: readonly [{
625
+ readonly id: "default";
626
+ readonly positionals: readonly [{
627
+ readonly name: "source-task-key";
628
+ readonly min: 1;
629
+ readonly max: 1;
630
+ readonly value: {
631
+ readonly kind: "task-key";
632
+ };
633
+ }, {
634
+ readonly name: "target-task-key";
635
+ readonly min: 1;
636
+ readonly max: 1;
637
+ readonly value: {
638
+ readonly kind: "task-key";
639
+ };
640
+ }];
641
+ }];
642
+ readonly constraints: readonly [];
643
+ };
644
+ results: import("../results.js").CommandResult[];
645
+ guessedFlags: {
646
+ [k: string]: (args: Array<string>) => string[] | undefined;
647
+ };
44
648
  run: (args: string[]) => void;
45
649
  help: string;
46
650
  };
47
651
  list: {
652
+ summary: string;
653
+ effects: {
654
+ domain: "read";
655
+ storage: "normal-open";
656
+ };
657
+ confirmation: {
658
+ kind: "none";
659
+ };
660
+ input: {
661
+ readonly options: {};
662
+ readonly forms: readonly [{
663
+ readonly id: "default";
664
+ readonly positionals: readonly [{
665
+ readonly name: "task-key";
666
+ readonly min: 1;
667
+ readonly max: 1;
668
+ readonly value: {
669
+ readonly kind: "task-key";
670
+ };
671
+ }];
672
+ }];
673
+ readonly constraints: readonly [];
674
+ };
675
+ results: import("../results.js").CommandResult[];
48
676
  run: (args: string[]) => void;
49
677
  help: string;
50
678
  };
51
679
  delete: {
680
+ summary: string;
681
+ effects: {
682
+ domain: "delete";
683
+ storage: "normal-open";
684
+ };
685
+ confirmation: {
686
+ kind: "none";
687
+ };
688
+ input: {
689
+ readonly options: {
690
+ readonly type: {
691
+ readonly type: "string";
692
+ readonly required: true;
693
+ readonly value: {
694
+ readonly kind: "enum";
695
+ readonly choices: ("related" | "dependency" | "duplicate" | "subtask")[];
696
+ };
697
+ };
698
+ };
699
+ readonly forms: readonly [{
700
+ readonly id: "default";
701
+ readonly positionals: readonly [{
702
+ readonly name: "source-task-key";
703
+ readonly min: 1;
704
+ readonly max: 1;
705
+ readonly value: {
706
+ readonly kind: "task-key";
707
+ };
708
+ }, {
709
+ readonly name: "target-task-key";
710
+ readonly min: 1;
711
+ readonly max: 1;
712
+ readonly value: {
713
+ readonly kind: "task-key";
714
+ };
715
+ }];
716
+ }];
717
+ readonly constraints: readonly [];
718
+ };
719
+ results: import("../results.js").CommandResult[];
720
+ guessedFlags: {
721
+ [k: string]: (args: Array<string>) => string[] | undefined;
722
+ };
52
723
  run: (args: string[]) => void;
53
724
  help: string;
54
725
  };
55
726
  };
56
727
  comment: {
57
728
  create: {
58
- run: (args: string[]) => void;
729
+ summary: string;
730
+ effects: {
731
+ domain: "create";
732
+ storage: "normal-open";
733
+ };
734
+ confirmation: {
735
+ kind: "none";
736
+ };
737
+ input: {
738
+ readonly options: {
739
+ readonly text: {
740
+ readonly type: "string";
741
+ readonly value: {
742
+ readonly kind: "text";
743
+ readonly name: "text";
744
+ };
745
+ };
746
+ readonly "text-file": {
747
+ readonly type: "string";
748
+ readonly value: {
749
+ readonly kind: "path";
750
+ readonly name: "path";
751
+ readonly description: "A UTF-8 file, or \"-\" for stdin. Trailing line breaks are dropped; empty or blank input is an error.";
752
+ };
753
+ };
754
+ };
755
+ readonly forms: readonly [{
756
+ readonly id: "default";
757
+ readonly positionals: readonly [{
758
+ readonly name: "task-key";
759
+ readonly min: 1;
760
+ readonly max: 1;
761
+ readonly value: {
762
+ readonly kind: "task-key";
763
+ };
764
+ }];
765
+ }];
766
+ readonly constraints: readonly [{
767
+ readonly kind: "exclusive";
768
+ readonly members: readonly ["option:description" | "option:text", "option:description-file" | "option:text-file"];
769
+ }, {
770
+ readonly kind: "atLeastOne";
771
+ readonly members: readonly ["option:text", "option:text-file"];
772
+ }];
773
+ };
774
+ results: import("../results.js").CommandResult[];
775
+ guessedFlags: {
776
+ "--body": (args: string[]) => string[];
777
+ };
778
+ run: (args: string[]) => Promise<void>;
59
779
  help: string;
60
780
  };
61
781
  list: {
782
+ summary: string;
783
+ effects: {
784
+ domain: "read";
785
+ storage: "normal-open";
786
+ };
787
+ confirmation: {
788
+ kind: "none";
789
+ };
790
+ input: {
791
+ readonly options: {};
792
+ readonly forms: readonly [{
793
+ readonly id: "default";
794
+ readonly positionals: readonly [{
795
+ readonly name: "task-key";
796
+ readonly min: 1;
797
+ readonly max: 1;
798
+ readonly value: {
799
+ readonly kind: "task-key";
800
+ };
801
+ }];
802
+ }];
803
+ readonly constraints: readonly [];
804
+ };
805
+ results: import("../results.js").CommandResult[];
62
806
  run: (args: string[]) => void;
63
807
  help: string;
64
808
  };
65
- edit: {
809
+ view: {
810
+ summary: string;
811
+ effects: {
812
+ domain: "read";
813
+ storage: "normal-open";
814
+ };
815
+ confirmation: {
816
+ kind: "none";
817
+ };
818
+ input: {
819
+ readonly options: {};
820
+ readonly forms: readonly [{
821
+ readonly id: "default";
822
+ readonly positionals: readonly [{
823
+ readonly name: "comment-key";
824
+ readonly min: 1;
825
+ readonly max: 1;
826
+ readonly value: {
827
+ readonly kind: "comment-key";
828
+ };
829
+ }];
830
+ }];
831
+ readonly constraints: readonly [];
832
+ };
833
+ results: import("../results.js").CommandResult[];
66
834
  run: (args: string[]) => void;
67
835
  help: string;
68
836
  };
837
+ edit: {
838
+ summary: string;
839
+ effects: {
840
+ domain: "update";
841
+ storage: "normal-open";
842
+ };
843
+ confirmation: {
844
+ kind: "none";
845
+ };
846
+ input: {
847
+ readonly options: {
848
+ readonly append: {
849
+ readonly type: "boolean";
850
+ };
851
+ readonly replacing: {
852
+ readonly type: "string";
853
+ readonly value: {
854
+ readonly kind: "text";
855
+ readonly name: "old";
856
+ };
857
+ };
858
+ readonly all: {
859
+ readonly type: "boolean";
860
+ };
861
+ readonly text: {
862
+ readonly type: "string";
863
+ readonly value: {
864
+ readonly kind: "text";
865
+ readonly name: "text";
866
+ };
867
+ };
868
+ readonly "text-file": {
869
+ readonly type: "string";
870
+ readonly value: {
871
+ readonly kind: "path";
872
+ readonly name: "path";
873
+ readonly description: "A UTF-8 file, or \"-\" for stdin. Trailing line breaks are dropped; empty or blank input is an error.";
874
+ };
875
+ };
876
+ };
877
+ readonly forms: readonly [{
878
+ readonly id: "default";
879
+ readonly positionals: readonly [{
880
+ readonly name: "comment-key";
881
+ readonly min: 1;
882
+ readonly max: 1;
883
+ readonly value: {
884
+ readonly kind: "comment-key";
885
+ };
886
+ }];
887
+ }];
888
+ readonly constraints: readonly [{
889
+ readonly kind: "exclusive";
890
+ readonly members: readonly ["option:description" | "option:text", "option:description-file" | "option:text-file"];
891
+ }, {
892
+ readonly kind: "exclusive";
893
+ readonly members: readonly ["option:append", "option:replacing"];
894
+ }, {
895
+ readonly kind: "requiresAny";
896
+ readonly input: "option:append";
897
+ readonly members: readonly ["option:description" | "option:text", "option:description-file" | "option:text-file"];
898
+ }, {
899
+ readonly kind: "requiresAny";
900
+ readonly input: "option:replacing";
901
+ readonly members: readonly ["option:description" | "option:text", "option:description-file" | "option:text-file"];
902
+ }, {
903
+ readonly kind: "requires";
904
+ readonly input: "option:all";
905
+ readonly requires: "option:replacing";
906
+ }, {
907
+ readonly kind: "atLeastOne";
908
+ readonly members: readonly ["option:text", "option:text-file"];
909
+ }];
910
+ readonly notes: readonly [string];
911
+ };
912
+ results: import("../results.js").CommandResult[];
913
+ guessedFlags: {
914
+ "--body": (args: string[]) => string[];
915
+ };
916
+ run: (args: string[]) => Promise<void>;
917
+ help: string;
918
+ };
69
919
  delete: {
920
+ summary: string;
921
+ effects: {
922
+ domain: "delete";
923
+ storage: "normal-open";
924
+ };
925
+ confirmation: {
926
+ kind: "prompt";
927
+ description: string;
928
+ };
929
+ input: {
930
+ readonly options: {
931
+ readonly yes: {
932
+ readonly type: "boolean";
933
+ };
934
+ };
935
+ readonly forms: readonly [{
936
+ readonly id: "default";
937
+ readonly positionals: readonly [{
938
+ readonly name: "comment-key";
939
+ readonly min: 1;
940
+ readonly max: 1;
941
+ readonly value: {
942
+ readonly kind: "comment-key";
943
+ };
944
+ }];
945
+ }];
946
+ readonly constraints: readonly [];
947
+ };
948
+ results: import("../results.js").CommandResult[];
70
949
  run: (args: string[]) => Promise<void>;
71
950
  help: string;
72
951
  };
73
952
  };
74
953
  label: {
75
954
  add: {
955
+ summary: string;
956
+ effects: {
957
+ domain: "update";
958
+ storage: "normal-open";
959
+ };
960
+ confirmation: {
961
+ kind: "none";
962
+ };
963
+ input: {
964
+ readonly options: {};
965
+ readonly forms: readonly [{
966
+ readonly id: "default";
967
+ readonly positionals: readonly [{
968
+ readonly name: "task-key";
969
+ readonly min: 1;
970
+ readonly max: 1;
971
+ readonly value: {
972
+ readonly kind: "task-key";
973
+ };
974
+ }, {
975
+ readonly name: "label-name";
976
+ readonly min: 1;
977
+ readonly max: null;
978
+ readonly value: {
979
+ readonly kind: "label-name";
980
+ };
981
+ }];
982
+ }];
983
+ readonly constraints: readonly [];
984
+ };
985
+ results: import("../results.js").CommandResult[];
76
986
  run: (args: string[]) => void;
77
987
  help: string;
78
988
  };
79
989
  remove: {
990
+ summary: string;
991
+ effects: {
992
+ domain: "update";
993
+ storage: "normal-open";
994
+ };
995
+ confirmation: {
996
+ kind: "none";
997
+ };
998
+ input: {
999
+ readonly options: {};
1000
+ readonly forms: readonly [{
1001
+ readonly id: "default";
1002
+ readonly positionals: readonly [{
1003
+ readonly name: "task-key";
1004
+ readonly min: 1;
1005
+ readonly max: 1;
1006
+ readonly value: {
1007
+ readonly kind: "task-key";
1008
+ };
1009
+ }, {
1010
+ readonly name: "label-name";
1011
+ readonly min: 1;
1012
+ readonly max: null;
1013
+ readonly value: {
1014
+ readonly kind: "label-name";
1015
+ };
1016
+ }];
1017
+ }];
1018
+ readonly constraints: readonly [];
1019
+ };
1020
+ results: import("../results.js").CommandResult[];
80
1021
  run: (args: string[]) => void;
81
1022
  help: string;
82
1023
  };
83
1024
  };
84
1025
  };
1026
+ export {};