@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.
- package/README.md +11 -689
- package/index.js +2 -2
- package/package.json +3 -2
- package/skills/zinn/SKILL.md +1 -1
- package/src/capabilities-schema.d.ts +22 -23
- package/src/capabilities-schema.js +17 -82
- package/src/capabilities.d.ts +11 -3
- package/src/capabilities.js +12 -4
- package/src/column-hint.d.ts +3 -0
- package/src/column-hint.js +225 -0
- package/src/database.js +1 -4
- package/src/errors.js +2 -0
- package/src/input.d.ts +154 -43
- package/src/input.js +86 -13
- package/src/lib.d.ts +30 -2
- package/src/lib.js +74 -13
- package/src/presentation/activity-presentation.d.ts +9 -1
- package/src/presentation/activity-presentation.js +108 -25
- package/src/presentation/capabilities-presentation.d.ts +2 -0
- package/src/presentation/capabilities-presentation.js +3 -0
- package/src/presentation/column-presentation.d.ts +6 -0
- package/src/presentation/column-presentation.js +10 -0
- package/src/presentation/comment-presentation.d.ts +15 -0
- package/src/presentation/comment-presentation.js +29 -0
- package/src/presentation/description-presentation.d.ts +17 -0
- package/src/presentation/description-presentation.js +26 -4
- package/src/presentation/label-presentation.d.ts +8 -0
- package/src/presentation/label-presentation.js +28 -0
- package/src/presentation/project-presentation.d.ts +7 -0
- package/src/presentation/project-presentation.js +19 -0
- package/src/presentation/relation-presentation.d.ts +7 -0
- package/src/presentation/relation-presentation.js +73 -0
- package/src/presentation/task-presentation.d.ts +3 -3
- package/src/presentation/task-presentation.js +22 -18
- package/src/project.d.ts +14 -5
- package/src/project.js +18 -6
- package/src/result-schemas.d.ts +230 -23
- package/src/result-schemas.js +62 -3
- package/src/results.d.ts +34 -17
- package/src/results.js +19 -0
- package/src/routes/activity-router.d.ts +34 -1
- package/src/routes/activity-router.js +104 -31
- package/src/routes/aliases.d.ts +2 -0
- package/src/routes/aliases.js +11 -0
- package/src/routes/capabilities-router.js +9 -3
- package/src/routes/comment-router.d.ts +41 -18
- package/src/routes/comment-router.js +65 -48
- package/src/routes/label-router.d.ts +57 -7
- package/src/routes/label-router.js +84 -39
- package/src/routes/project-router.d.ts +34 -12
- package/src/routes/project-router.js +59 -55
- package/src/routes/relation-router.d.ts +6 -6
- package/src/routes/relation-router.js +52 -69
- package/src/routes/restore-router.js +1 -1
- package/src/routes/router.d.ts +1 -1
- package/src/routes/router.js +38 -9
- package/src/routes/routes.d.ts +253 -45
- package/src/routes/routes.js +4 -0
- package/src/routes/task-router.d.ts +107 -26
- package/src/routes/task-router.js +151 -143
- package/src/routes/whoami-router.d.ts +21 -0
- package/src/routes/whoami-router.js +31 -0
- package/src/text-edit.d.ts +13 -9
- package/src/text-edit.js +23 -18
- package/src/text-input.d.ts +47 -0
- package/src/text-input.js +187 -0
- package/src/types.d.ts +32 -9
- package/src/types.js +9 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { ParseArgsOptionsConfig } from "node:util";
|
|
2
2
|
declare function suggestTaskMove(args: Array<string>, options?: ParseArgsOptionsConfig): string[];
|
|
3
3
|
export declare const taskRouter: {
|
|
4
4
|
create: {
|
|
@@ -27,6 +27,14 @@ export declare const taskRouter: {
|
|
|
27
27
|
readonly name: "text";
|
|
28
28
|
};
|
|
29
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
|
+
};
|
|
30
38
|
readonly priority: {
|
|
31
39
|
readonly type: "string";
|
|
32
40
|
readonly value: {
|
|
@@ -94,11 +102,18 @@ export declare const taskRouter: {
|
|
|
94
102
|
};
|
|
95
103
|
}];
|
|
96
104
|
}];
|
|
97
|
-
readonly constraints: readonly [
|
|
98
|
-
|
|
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."];
|
|
99
110
|
};
|
|
100
111
|
results: import("../results.js").CommandResult[];
|
|
101
|
-
|
|
112
|
+
guessedFlags: {
|
|
113
|
+
"--status": (args: string[]) => string[];
|
|
114
|
+
"--body": (args: string[]) => string[];
|
|
115
|
+
};
|
|
116
|
+
run: (args: string[]) => Promise<void>;
|
|
102
117
|
help: string;
|
|
103
118
|
};
|
|
104
119
|
list: {
|
|
@@ -155,7 +170,7 @@ export declare const taskRouter: {
|
|
|
155
170
|
readonly kind: "exclusive";
|
|
156
171
|
readonly members: readonly ["positional:project-key", "option:all-projects"];
|
|
157
172
|
}];
|
|
158
|
-
readonly notes: readonly ["An omitted project key
|
|
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."];
|
|
159
174
|
};
|
|
160
175
|
results: import("../results.js").CommandResult[];
|
|
161
176
|
run: (args: string[]) => void;
|
|
@@ -223,7 +238,7 @@ export declare const taskRouter: {
|
|
|
223
238
|
readonly kind: "exclusive";
|
|
224
239
|
readonly members: readonly ["positional:project-key", "option:all-projects"];
|
|
225
240
|
}];
|
|
226
|
-
readonly notes: readonly ["An omitted project key
|
|
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."];
|
|
227
242
|
};
|
|
228
243
|
results: import("../results.js").CommandResult[];
|
|
229
244
|
run: (args: string[]) => void;
|
|
@@ -325,6 +340,14 @@ export declare const taskRouter: {
|
|
|
325
340
|
readonly name: "text";
|
|
326
341
|
};
|
|
327
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
|
+
};
|
|
328
351
|
};
|
|
329
352
|
readonly forms: readonly [{
|
|
330
353
|
readonly id: "default";
|
|
@@ -338,32 +361,36 @@ export declare const taskRouter: {
|
|
|
338
361
|
}];
|
|
339
362
|
}];
|
|
340
363
|
readonly constraints: readonly [{
|
|
364
|
+
readonly kind: "exclusive";
|
|
365
|
+
readonly members: readonly ["option:description" | "option:text", "option:description-file" | "option:text-file"];
|
|
366
|
+
}, {
|
|
341
367
|
readonly kind: "exclusive";
|
|
342
368
|
readonly members: readonly ["option:append", "option:replacing"];
|
|
343
369
|
}, {
|
|
344
|
-
readonly kind: "
|
|
370
|
+
readonly kind: "requiresAny";
|
|
345
371
|
readonly input: "option:append";
|
|
346
|
-
readonly
|
|
372
|
+
readonly members: readonly ["option:description" | "option:text", "option:description-file" | "option:text-file"];
|
|
347
373
|
}, {
|
|
348
|
-
readonly kind: "
|
|
374
|
+
readonly kind: "requiresAny";
|
|
349
375
|
readonly input: "option:replacing";
|
|
350
|
-
readonly
|
|
376
|
+
readonly members: readonly ["option:description" | "option:text", "option:description-file" | "option:text-file"];
|
|
351
377
|
}, {
|
|
352
378
|
readonly kind: "requires";
|
|
353
379
|
readonly input: "option:all";
|
|
354
380
|
readonly requires: "option:replacing";
|
|
355
381
|
}, {
|
|
356
382
|
readonly kind: "atLeastOne";
|
|
357
|
-
readonly members: readonly ["option:title", "option:description", "option:priority", "option:add-label", "option:remove-label"];
|
|
383
|
+
readonly members: readonly ["option:title", "option:description", "option:description-file", "option:priority", "option:add-label", "option:remove-label"];
|
|
358
384
|
}];
|
|
359
385
|
readonly notes: readonly [string];
|
|
360
386
|
};
|
|
361
387
|
results: import("../results.js").CommandResult[];
|
|
362
|
-
run: (args: string[]) => void
|
|
388
|
+
run: (args: string[]) => Promise<void>;
|
|
363
389
|
help: string;
|
|
364
390
|
guessedFlags: {
|
|
365
391
|
"--status": (args: string[]) => string[];
|
|
366
392
|
"--column": (args: string[]) => string[];
|
|
393
|
+
"--body": (args: string[]) => string[];
|
|
367
394
|
};
|
|
368
395
|
};
|
|
369
396
|
move: {
|
|
@@ -418,6 +445,24 @@ export declare const taskRouter: {
|
|
|
418
445
|
readonly options: {};
|
|
419
446
|
readonly forms: readonly [{
|
|
420
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";
|
|
421
466
|
readonly positionals: readonly [{
|
|
422
467
|
readonly name: "task-key";
|
|
423
468
|
readonly min: 1;
|
|
@@ -431,15 +476,15 @@ export declare const taskRouter: {
|
|
|
431
476
|
readonly max: 1;
|
|
432
477
|
readonly value: {
|
|
433
478
|
readonly kind: "enum";
|
|
434
|
-
readonly choices: readonly ["
|
|
479
|
+
readonly choices: readonly ["up", "down"];
|
|
435
480
|
};
|
|
436
481
|
}];
|
|
437
482
|
}, {
|
|
438
483
|
readonly id: "relative";
|
|
439
484
|
readonly positionals: readonly [{
|
|
485
|
+
readonly max: null;
|
|
440
486
|
readonly name: "task-key";
|
|
441
487
|
readonly min: 1;
|
|
442
|
-
readonly max: 1;
|
|
443
488
|
readonly value: {
|
|
444
489
|
readonly kind: "task-key";
|
|
445
490
|
};
|
|
@@ -541,9 +586,9 @@ export declare const taskRouter: {
|
|
|
541
586
|
readonly forms: readonly [{
|
|
542
587
|
readonly id: "default";
|
|
543
588
|
readonly positionals: readonly [{
|
|
589
|
+
readonly max: null;
|
|
544
590
|
readonly name: "task-key";
|
|
545
591
|
readonly min: 1;
|
|
546
|
-
readonly max: 1;
|
|
547
592
|
readonly value: {
|
|
548
593
|
readonly kind: "task-key";
|
|
549
594
|
};
|
|
@@ -572,7 +617,6 @@ export declare const taskRouter: {
|
|
|
572
617
|
readonly required: true;
|
|
573
618
|
readonly value: {
|
|
574
619
|
readonly kind: "enum";
|
|
575
|
-
readonly name: "type";
|
|
576
620
|
readonly choices: ("related" | "dependency" | "duplicate" | "subtask")[];
|
|
577
621
|
};
|
|
578
622
|
};
|
|
@@ -598,6 +642,9 @@ export declare const taskRouter: {
|
|
|
598
642
|
readonly constraints: readonly [];
|
|
599
643
|
};
|
|
600
644
|
results: import("../results.js").CommandResult[];
|
|
645
|
+
guessedFlags: {
|
|
646
|
+
[k: string]: (args: Array<string>) => string[] | undefined;
|
|
647
|
+
};
|
|
601
648
|
run: (args: string[]) => void;
|
|
602
649
|
help: string;
|
|
603
650
|
};
|
|
@@ -645,7 +692,6 @@ export declare const taskRouter: {
|
|
|
645
692
|
readonly required: true;
|
|
646
693
|
readonly value: {
|
|
647
694
|
readonly kind: "enum";
|
|
648
|
-
readonly name: "type";
|
|
649
695
|
readonly choices: ("related" | "dependency" | "duplicate" | "subtask")[];
|
|
650
696
|
};
|
|
651
697
|
};
|
|
@@ -671,6 +717,9 @@ export declare const taskRouter: {
|
|
|
671
717
|
readonly constraints: readonly [];
|
|
672
718
|
};
|
|
673
719
|
results: import("../results.js").CommandResult[];
|
|
720
|
+
guessedFlags: {
|
|
721
|
+
[k: string]: (args: Array<string>) => string[] | undefined;
|
|
722
|
+
};
|
|
674
723
|
run: (args: string[]) => void;
|
|
675
724
|
help: string;
|
|
676
725
|
};
|
|
@@ -689,12 +738,19 @@ export declare const taskRouter: {
|
|
|
689
738
|
readonly options: {
|
|
690
739
|
readonly text: {
|
|
691
740
|
readonly type: "string";
|
|
692
|
-
readonly required: true;
|
|
693
741
|
readonly value: {
|
|
694
742
|
readonly kind: "text";
|
|
695
743
|
readonly name: "text";
|
|
696
744
|
};
|
|
697
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
|
+
};
|
|
698
754
|
};
|
|
699
755
|
readonly forms: readonly [{
|
|
700
756
|
readonly id: "default";
|
|
@@ -707,10 +763,19 @@ export declare const taskRouter: {
|
|
|
707
763
|
};
|
|
708
764
|
}];
|
|
709
765
|
}];
|
|
710
|
-
readonly constraints: readonly [
|
|
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
|
+
}];
|
|
711
773
|
};
|
|
712
774
|
results: import("../results.js").CommandResult[];
|
|
713
|
-
|
|
775
|
+
guessedFlags: {
|
|
776
|
+
"--body": (args: string[]) => string[];
|
|
777
|
+
};
|
|
778
|
+
run: (args: string[]) => Promise<void>;
|
|
714
779
|
help: string;
|
|
715
780
|
};
|
|
716
781
|
list: {
|
|
@@ -795,12 +860,19 @@ export declare const taskRouter: {
|
|
|
795
860
|
};
|
|
796
861
|
readonly text: {
|
|
797
862
|
readonly type: "string";
|
|
798
|
-
readonly required: true;
|
|
799
863
|
readonly value: {
|
|
800
864
|
readonly kind: "text";
|
|
801
865
|
readonly name: "text";
|
|
802
866
|
};
|
|
803
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
|
+
};
|
|
804
876
|
};
|
|
805
877
|
readonly forms: readonly [{
|
|
806
878
|
readonly id: "default";
|
|
@@ -814,25 +886,34 @@ export declare const taskRouter: {
|
|
|
814
886
|
}];
|
|
815
887
|
}];
|
|
816
888
|
readonly constraints: readonly [{
|
|
889
|
+
readonly kind: "exclusive";
|
|
890
|
+
readonly members: readonly ["option:description" | "option:text", "option:description-file" | "option:text-file"];
|
|
891
|
+
}, {
|
|
817
892
|
readonly kind: "exclusive";
|
|
818
893
|
readonly members: readonly ["option:append", "option:replacing"];
|
|
819
894
|
}, {
|
|
820
|
-
readonly kind: "
|
|
895
|
+
readonly kind: "requiresAny";
|
|
821
896
|
readonly input: "option:append";
|
|
822
|
-
readonly
|
|
897
|
+
readonly members: readonly ["option:description" | "option:text", "option:description-file" | "option:text-file"];
|
|
823
898
|
}, {
|
|
824
|
-
readonly kind: "
|
|
899
|
+
readonly kind: "requiresAny";
|
|
825
900
|
readonly input: "option:replacing";
|
|
826
|
-
readonly
|
|
901
|
+
readonly members: readonly ["option:description" | "option:text", "option:description-file" | "option:text-file"];
|
|
827
902
|
}, {
|
|
828
903
|
readonly kind: "requires";
|
|
829
904
|
readonly input: "option:all";
|
|
830
905
|
readonly requires: "option:replacing";
|
|
906
|
+
}, {
|
|
907
|
+
readonly kind: "atLeastOne";
|
|
908
|
+
readonly members: readonly ["option:text", "option:text-file"];
|
|
831
909
|
}];
|
|
832
910
|
readonly notes: readonly [string];
|
|
833
911
|
};
|
|
834
912
|
results: import("../results.js").CommandResult[];
|
|
835
|
-
|
|
913
|
+
guessedFlags: {
|
|
914
|
+
"--body": (args: string[]) => string[];
|
|
915
|
+
};
|
|
916
|
+
run: (args: string[]) => Promise<void>;
|
|
836
917
|
help: string;
|
|
837
918
|
};
|
|
838
919
|
delete: {
|