@zinn-dev/cli 0.45.0 → 0.47.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 (75) hide show
  1. package/README.md +1 -1
  2. package/package.json +3 -3
  3. package/skills/zinn/SKILL.md +2 -2
  4. package/src/actor.d.ts +1 -1
  5. package/src/actor.js +4 -1
  6. package/src/capabilities-schema.d.ts +78 -0
  7. package/src/capabilities-schema.js +44 -0
  8. package/src/capabilities.d.ts +2 -0
  9. package/src/capabilities.js +2 -0
  10. package/src/column-hint.js +2 -9
  11. package/src/errors.d.ts +5 -0
  12. package/src/errors.js +19 -5
  13. package/src/input.d.ts +30 -0
  14. package/src/input.js +18 -0
  15. package/src/lib.d.ts +75 -6
  16. package/src/lib.js +121 -33
  17. package/src/presentation/activity-presentation.d.ts +2 -1
  18. package/src/presentation/activity-presentation.js +23 -6
  19. package/src/presentation/color.d.ts +12 -0
  20. package/src/presentation/color.js +12 -0
  21. package/src/presentation/doctor-presentation.d.ts +7 -1
  22. package/src/presentation/doctor-presentation.js +6 -2
  23. package/src/presentation/project-presentation.d.ts +4 -1
  24. package/src/presentation/project-presentation.js +18 -0
  25. package/src/presentation/relation-presentation.js +8 -20
  26. package/src/presentation/section.d.ts +7 -4
  27. package/src/presentation/section.js +21 -7
  28. package/src/presentation/skill-status-presentation.d.ts +9 -0
  29. package/src/presentation/skill-status-presentation.js +43 -0
  30. package/src/presentation/task-blame-presentation.d.ts +3 -1
  31. package/src/presentation/task-blame-presentation.js +7 -5
  32. package/src/presentation/task-presentation.d.ts +28 -5
  33. package/src/presentation/task-presentation.js +120 -42
  34. package/src/result-schemas.d.ts +230 -14
  35. package/src/result-schemas.js +52 -0
  36. package/src/routes/activity-router.d.ts +5 -3
  37. package/src/routes/activity-router.js +44 -33
  38. package/src/routes/backup-router.d.ts +1 -0
  39. package/src/routes/backup-router.js +6 -12
  40. package/src/routes/capabilities-router.d.ts +1 -0
  41. package/src/routes/capabilities-router.js +3 -10
  42. package/src/routes/comment-router.d.ts +7 -6
  43. package/src/routes/comment-router.js +18 -66
  44. package/src/routes/doctor-router.d.ts +1 -0
  45. package/src/routes/doctor-router.js +35 -62
  46. package/src/routes/info-router.d.ts +1 -0
  47. package/src/routes/info-router.js +3 -10
  48. package/src/routes/label-router.d.ts +5 -0
  49. package/src/routes/label-router.js +11 -48
  50. package/src/routes/migrate-router.d.ts +1 -0
  51. package/src/routes/migrate-router.js +7 -16
  52. package/src/routes/project-router.d.ts +10 -0
  53. package/src/routes/project-router.js +42 -121
  54. package/src/routes/reindex-router.d.ts +1 -0
  55. package/src/routes/reindex-router.js +3 -10
  56. package/src/routes/relation-router.d.ts +13 -4
  57. package/src/routes/relation-router.js +15 -23
  58. package/src/routes/restore-router.d.ts +1 -0
  59. package/src/routes/restore-router.js +5 -15
  60. package/src/routes/router.js +33 -12
  61. package/src/routes/routes.d.ts +142 -32
  62. package/src/routes/skill-router.d.ts +53 -2
  63. package/src/routes/skill-router.js +103 -35
  64. package/src/routes/task-router.d.ts +61 -28
  65. package/src/routes/task-router.js +224 -263
  66. package/src/routes/whoami-router.d.ts +1 -0
  67. package/src/routes/whoami-router.js +3 -10
  68. package/src/skill-copies.d.ts +34 -0
  69. package/src/skill-copies.js +109 -0
  70. package/src/telemetry.d.ts +2 -2
  71. package/src/telemetry.js +11 -7
  72. package/src/types.d.ts +9 -1
  73. package/src/types.js +6 -0
  74. package/src/views.d.ts +117 -0
  75. package/src/views.js +54 -0
@@ -1,11 +1,36 @@
1
- /** The workflow skill folder that ships with the CLI */
2
- export declare const bundledSkillDirectory: string;
3
1
  export declare const skillRouter: {
4
2
  install: {
5
3
  summary: string;
6
4
  effects: {
7
5
  domain: "none";
8
6
  storage: "none";
7
+ external: ("files" | "network")[];
8
+ };
9
+ confirmation: {
10
+ kind: "none";
11
+ };
12
+ input: {
13
+ readonly options: {
14
+ readonly project: {
15
+ readonly type: "boolean";
16
+ };
17
+ };
18
+ readonly forms: readonly [{
19
+ readonly id: "default";
20
+ readonly positionals: readonly [];
21
+ }];
22
+ readonly constraints: readonly [];
23
+ };
24
+ results: import("../results.js").CommandResult[];
25
+ run: (args: string[]) => Promise<void>;
26
+ help: string;
27
+ };
28
+ status: {
29
+ summary: string;
30
+ effects: {
31
+ domain: "none";
32
+ storage: "none";
33
+ external: never[];
9
34
  };
10
35
  confirmation: {
11
36
  kind: "none";
@@ -19,6 +44,32 @@ export declare const skillRouter: {
19
44
  readonly constraints: readonly [];
20
45
  };
21
46
  results: import("../results.js").CommandResult[];
47
+ run: (args: string[]) => void;
48
+ help: string;
49
+ };
50
+ uninstall: {
51
+ summary: string;
52
+ effects: {
53
+ domain: "none";
54
+ storage: "none";
55
+ external: ("files" | "network")[];
56
+ };
57
+ confirmation: {
58
+ kind: "none";
59
+ };
60
+ input: {
61
+ readonly options: {
62
+ readonly project: {
63
+ readonly type: "boolean";
64
+ };
65
+ };
66
+ readonly forms: readonly [{
67
+ readonly id: "default";
68
+ readonly positionals: readonly [];
69
+ }];
70
+ readonly constraints: readonly [];
71
+ };
72
+ results: import("../results.js").CommandResult[];
22
73
  run: (args: string[]) => Promise<void>;
23
74
  help: string;
24
75
  };
@@ -1,12 +1,11 @@
1
1
  import { spawn } from "node:child_process";
2
- import { fileURLToPath } from "node:url";
3
- import { parseArgs } from "node:util";
2
+ import { homedir } from "node:os";
4
3
  import { CliError } from "../errors.js";
5
4
  import { generateCommandUsage, noInput } from "../input.js";
6
- import { diagnostic, getOutputMode, output, validatePositionals } from "../lib.js";
5
+ import { diagnostic, getOutputMode, output, parseCommandArgs, } from "../lib.js";
7
6
  import { jsonResult } from "../results.js";
8
- /** The workflow skill folder that ships with the CLI */
9
- export const bundledSkillDirectory = fileURLToPath(new URL("../../skills/zinn", import.meta.url));
7
+ import { formatSkillStatus, presentSkillStatus, } from "../presentation/skill-status-presentation.js";
8
+ import { bundledSkillDirectory, findSkillCopies, SKILL_NAME } from "../skill-copies.js";
10
9
  /** On Windows npx is `npx.cmd`, which Node only starts through a shell */
11
10
  const needsShell = process.platform === "win32";
12
11
  /** Starts npx with one argument per array item, or on Windows as one command line for the shell */
@@ -19,17 +18,35 @@ function startNpx(args, stdio) {
19
18
  }
20
19
  return spawn("npx", args, { stdio });
21
20
  }
21
+ const skillScopeInput = {
22
+ options: { project: { type: "boolean" } },
23
+ forms: [{ id: "default", positionals: [] }],
24
+ constraints: [],
25
+ };
26
+ const skillInputs = {
27
+ install: skillScopeInput,
28
+ uninstall: skillScopeInput,
29
+ };
30
+ /** Parses the shared skill command arguments and says whether the command targets the current folder */
31
+ function parseSkillScope(args) {
32
+ const { values } = parseCommandArgs(args, skillScopeInput);
33
+ return values.project === true;
34
+ }
22
35
  /**
23
- * Runs the skills CLI and resolves with its exit code
24
- * If a signal ends it, it's `null`
36
+ * Runs the skills CLI with the given subcommand and arguments in the current working directory
37
+ * Resolves with its exit code, or `null` if a signal ends it
25
38
  */
26
- function runSkillsCli(skillDirectory) {
39
+ function runSkillsCli(skillsArgs, isProject, zinnCommand) {
27
40
  const isJson = getOutputMode() === "json";
28
- // JSON output keeps stdout for the result and stderr for one error document,
29
- // so the skills CLI's output is captured and reported as notices.
30
- const child = startNpx(["--yes", "skills", "add", skillDirectory, "-g", "-y"], ["inherit", isJson ? "pipe" : "inherit", isJson ? "pipe" : "inherit"]);
41
+ /**
42
+ * JSON output keeps stdout for the result and stderr for one error document,
43
+ * so the skills CLI's output is captured and reported as notices.
44
+ * Without `-g` the skills CLI works in the current folder.
45
+ */
46
+ const scopeArgs = isProject ? [] : ["-g"];
47
+ const child = startNpx(["--yes", "skills", ...skillsArgs, ...scopeArgs, "-y"], ["inherit", isJson ? "pipe" : "inherit", isJson ? "pipe" : "inherit"]);
31
48
  const captured = [];
32
- // Decoding per stream keeps a character whose bytes arrive in two chunks intact.
49
+ // Decoding per stream keeps a character intact when its bytes arrive across two chunks
33
50
  for (const stream of [child.stdout, child.stderr]) {
34
51
  stream?.setEncoding("utf8");
35
52
  stream?.on("data", (text) => captured.push(text));
@@ -37,7 +54,7 @@ function runSkillsCli(skillDirectory) {
37
54
  return new Promise((resolve, reject) => {
38
55
  child.once("error", (error) => {
39
56
  if (error.code === "ENOENT") {
40
- const message = "npx was not found. zinn skill install needs npx, which comes with npm.";
57
+ const message = `npx was not found. ${zinnCommand} needs npx, which comes with npm.`;
41
58
  reject(new CliError(message, "not_found", undefined, undefined, undefined, error));
42
59
  }
43
60
  else {
@@ -56,41 +73,92 @@ function runSkillsCli(skillDirectory) {
56
73
  });
57
74
  });
58
75
  }
76
+ /**
77
+ * Throws when the skills CLI failed, so Zinn exits with its exit code
78
+ * `details` adds what the error document names besides the exit code
79
+ */
80
+ function throwOnSkillsCliFailure(exitCode, details) {
81
+ if (exitCode === 0) {
82
+ return;
83
+ }
84
+ const endedBySignal = exitCode === null;
85
+ const failure = new CliError(endedBySignal ? "The skills CLI was stopped." : `The skills CLI exited with code ${exitCode}.`, "internal", { ...details, ...(endedBySignal ? {} : { exitCode }) });
86
+ if (!endedBySignal) {
87
+ failure.exitCode = exitCode;
88
+ }
89
+ throw failure;
90
+ }
59
91
  export const skillRouter = {
60
92
  install: {
61
93
  summary: "Install the agent skill bundled with this CLI using the skills CLI.",
62
- effects: { domain: "none", storage: "none" },
94
+ effects: { domain: "none", storage: "none", external: ["files", "network"] },
63
95
  confirmation: { kind: "none" },
64
- input: noInput,
96
+ input: skillInputs.install,
65
97
  results: [jsonResult("SkillInstall")],
66
98
  run: async (args) => {
67
- const { positionals } = parseArgs({
68
- options: noInput.options,
69
- args,
70
- strict: true,
71
- allowPositionals: true,
72
- });
73
- validatePositionals(positionals, noInput.forms[0]);
74
- const exitCode = await runSkillsCli(bundledSkillDirectory);
75
- if (exitCode !== 0) {
76
- const endedBySignal = exitCode === null;
77
- const failure = new CliError(endedBySignal
78
- ? "The skills CLI was stopped."
79
- : `The skills CLI exited with code ${exitCode}.`, "internal", { path: bundledSkillDirectory, ...(endedBySignal ? {} : { exitCode }) });
80
- if (!endedBySignal) {
81
- failure.exitCode = exitCode;
82
- }
83
- throw failure;
84
- }
99
+ const isProject = parseSkillScope(args);
100
+ const exitCode = await runSkillsCli(["add", bundledSkillDirectory], isProject, "zinn skill install");
101
+ throwOnSkillsCliFailure(exitCode, { path: bundledSkillDirectory });
85
102
  const installed = { source: bundledSkillDirectory };
86
103
  output(installed, () => "");
87
104
  },
88
- help: `${generateCommandUsage("skill install", noInput)}
105
+ help: `${generateCommandUsage("skill install", skillInputs.install)}
89
106
 
90
107
  Install the agent skill bundled with this CLI using the skills CLI (https://github.com/vercel-labs/skills).
91
108
 
92
109
  Runs npx --yes skills add <skill folder> -g -y, where the skill folder is the one inside this CLI's package, and passes the skills CLI's output and exit code through.
93
- Rerun it after upgrading Zinn, or run npx skills update -g, which reads the same folder.
110
+ Use --project to install into the current folder instead. It runs the same command without -g there, and the skills CLI records the copy in that folder's skills-lock.json.
111
+ Rerun it after upgrading Zinn, or run npx skills update -g, which reads the same folder. Each project with its own copy needs zinn skill install --project rerun there after an upgrade.
112
+ With --json, the skills CLI's output is reported as notices: on stderr after the result, or in error.diagnostics when it fails.`,
113
+ },
114
+ status: {
115
+ summary: "List the Zinn agent skill copies and whether each matches the skill this CLI installs.",
116
+ effects: { domain: "none", storage: "none", external: [] },
117
+ confirmation: { kind: "none" },
118
+ input: noInput,
119
+ results: [jsonResult("SkillStatus")],
120
+ run: (args) => {
121
+ parseCommandArgs(args, noInput);
122
+ const workingFolder = process.cwd();
123
+ const status = presentSkillStatus(findSkillCopies(homedir(), workingFolder), bundledSkillDirectory, workingFolder);
124
+ output(status, formatSkillStatus);
125
+ },
126
+ help: `${generateCommandUsage("skill status", noInput)}
127
+
128
+ List the Zinn skill copies agents may load and whether each matches the skill this CLI installs.
129
+
130
+ Checks ~/.agents/skills/zinn, ~/.claude/skills/zinn and the same two folders in the current folder, as zinn doctor does. Paths that reach one file through links count as one copy. Each copy that differs names the command that updates it.
131
+ Reads local files only and changes nothing.
132
+ Exits 0 when a copy differs. zinn doctor exits 1 then. With --json, matches says whether each copy matches.`,
133
+ },
134
+ uninstall: {
135
+ summary: "Remove the Zinn agent skill using the skills CLI.",
136
+ effects: { domain: "none", storage: "none", external: ["files", "network"] },
137
+ confirmation: { kind: "none" },
138
+ input: skillInputs.uninstall,
139
+ results: [jsonResult("SkillUninstall")],
140
+ run: async (args) => {
141
+ const isProject = parseSkillScope(args);
142
+ const copiesBefore = findSkillCopies(homedir(), process.cwd()).copies;
143
+ const exitCode = await runSkillsCli(["remove", SKILL_NAME], isProject, "zinn skill uninstall");
144
+ throwOnSkillsCliFailure(exitCode, {});
145
+ const realPathsAfter = new Set(findSkillCopies(homedir(), process.cwd()).copies.map((copy) => copy.realPath));
146
+ const result = {
147
+ removed: copiesBefore
148
+ .filter((copy) => !realPathsAfter.has(copy.realPath))
149
+ .map(({ path, scope }) => ({ path, scope })),
150
+ };
151
+ output(result, () => "");
152
+ },
153
+ help: `${generateCommandUsage("skill uninstall", skillInputs.uninstall)}
154
+
155
+ Remove the Zinn agent skill using the skills CLI (https://github.com/vercel-labs/skills).
156
+
157
+ Runs npx --yes skills remove zinn -g -y and passes the skills CLI's output and exit code through. It removes the global copy and its agent links.
158
+ Use --project to remove the copy in the current folder instead. It runs the same command without -g there.
159
+ The skill is removed by its name, zinn, so a copy installed from another source, such as the GitHub repository, is removed too.
160
+ zinn skill install puts the skill back.
161
+ With --json, the result lists the removed copies among ~/.agents/skills/zinn, ~/.claude/skills/zinn and the same two folders in the current folder, though the skills CLI may also remove copies in other agent folders.
94
162
  With --json, the skills CLI's output is reported as notices: on stderr after the result, or in error.diagnostics when it fails.`,
95
163
  },
96
164
  };
@@ -1,11 +1,13 @@
1
1
  import type { ParseArgsOptionsConfig } from "node:util";
2
- declare function suggestTaskMove(args: Array<string>, options?: ParseArgsOptionsConfig): string[];
2
+ import type { FlagCorrection } from "../types.js";
3
+ declare function suggestTaskMove(args: Array<string>, options?: ParseArgsOptionsConfig): FlagCorrection;
3
4
  export declare const taskRouter: {
4
5
  create: {
5
6
  summary: string;
6
7
  effects: {
7
8
  domain: "create";
8
9
  storage: "normal-open";
10
+ external: never[];
9
11
  };
10
12
  confirmation: {
11
13
  kind: "none";
@@ -26,6 +28,7 @@ export declare const taskRouter: {
26
28
  readonly kind: "text";
27
29
  readonly name: "text";
28
30
  };
31
+ readonly aliases: readonly ["body"];
29
32
  };
30
33
  readonly "description-file": {
31
34
  readonly type: "string";
@@ -40,7 +43,7 @@ export declare const taskRouter: {
40
43
  readonly value: {
41
44
  readonly kind: "enum";
42
45
  readonly name: "priority";
43
- readonly choices: readonly [...("low" | "medium" | "high" | "urgent")[], "none"];
46
+ readonly choices: readonly [...("urgent" | "high" | "medium" | "low")[], "none"];
44
47
  readonly caseInsensitive: true;
45
48
  readonly description: "Omission leaves priority unassigned on creation and unchanged on edit. none clears priority; JSON uses null.";
46
49
  };
@@ -117,10 +120,6 @@ export declare const taskRouter: {
117
120
  readonly notes: readonly ["Omit the project key to use defaultProject from settings; otherwise a project key is required."];
118
121
  };
119
122
  results: import("../results.js").CommandResult[];
120
- guessedFlags: {
121
- "--status": (args: string[]) => string[];
122
- "--body": (args: string[]) => string[];
123
- };
124
123
  run: (args: string[]) => Promise<void>;
125
124
  help: string;
126
125
  };
@@ -129,6 +128,7 @@ export declare const taskRouter: {
129
128
  effects: {
130
129
  domain: "read";
131
130
  storage: "normal-open";
131
+ external: never[];
132
132
  };
133
133
  confirmation: {
134
134
  kind: "none";
@@ -238,6 +238,7 @@ export declare const taskRouter: {
238
238
  effects: {
239
239
  domain: "read";
240
240
  storage: "normal-open";
241
+ external: never[];
241
242
  };
242
243
  confirmation: {
243
244
  kind: "none";
@@ -277,6 +278,10 @@ export declare const taskRouter: {
277
278
  readonly name: "name";
278
279
  };
279
280
  };
281
+ readonly "with-matches": {
282
+ readonly type: "boolean";
283
+ readonly description: "Include match excerpts in JSON results";
284
+ };
280
285
  readonly "due-since": {
281
286
  readonly type: "string";
282
287
  readonly value: {
@@ -318,6 +323,10 @@ export declare const taskRouter: {
318
323
  }, {
319
324
  readonly kind: "exclusive";
320
325
  readonly members: readonly ["positional:project-key", "option:all-projects"];
326
+ }, {
327
+ readonly kind: "requires";
328
+ readonly input: "option:with-matches";
329
+ readonly requires: "option:json";
321
330
  }];
322
331
  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."];
323
332
  };
@@ -330,6 +339,7 @@ export declare const taskRouter: {
330
339
  effects: {
331
340
  domain: "read";
332
341
  storage: "normal-open";
342
+ external: never[];
333
343
  };
334
344
  confirmation: {
335
345
  kind: "none";
@@ -373,6 +383,7 @@ export declare const taskRouter: {
373
383
  effects: {
374
384
  domain: "read";
375
385
  storage: "normal-open";
386
+ external: never[];
376
387
  };
377
388
  confirmation: {
378
389
  kind: "none";
@@ -405,6 +416,7 @@ export declare const taskRouter: {
405
416
  effects: {
406
417
  domain: "read";
407
418
  storage: "normal-open";
419
+ external: never[];
408
420
  };
409
421
  confirmation: {
410
422
  kind: "none";
@@ -433,6 +445,7 @@ export declare const taskRouter: {
433
445
  effects: {
434
446
  domain: "update";
435
447
  storage: "normal-open";
448
+ external: never[];
436
449
  };
437
450
  confirmation: {
438
451
  kind: "none";
@@ -446,23 +459,23 @@ export declare const taskRouter: {
446
459
  readonly name: "text";
447
460
  };
448
461
  };
449
- readonly "expect-title": {
450
- readonly type: "string";
451
- readonly value: {
452
- readonly kind: "text";
453
- readonly name: "text";
454
- };
455
- };
456
462
  readonly "expect-priority": {
457
463
  readonly type: "string";
458
464
  readonly value: {
459
465
  readonly description: "none expects no priority.";
460
466
  readonly kind: "enum";
461
467
  readonly name: "priority";
462
- readonly choices: readonly [...("low" | "medium" | "high" | "urgent")[], "none"];
468
+ readonly choices: readonly [...("urgent" | "high" | "medium" | "low")[], "none"];
463
469
  readonly caseInsensitive: true;
464
470
  };
465
471
  };
472
+ readonly "expect-title": {
473
+ readonly type: "string";
474
+ readonly value: {
475
+ readonly kind: "text";
476
+ readonly name: "text";
477
+ };
478
+ };
466
479
  readonly "expect-due": {
467
480
  readonly type: "string";
468
481
  readonly value: {
@@ -484,7 +497,7 @@ export declare const taskRouter: {
484
497
  readonly value: {
485
498
  readonly kind: "enum";
486
499
  readonly name: "priority";
487
- readonly choices: readonly [...("low" | "medium" | "high" | "urgent")[], "none"];
500
+ readonly choices: readonly [...("urgent" | "high" | "medium" | "low")[], "none"];
488
501
  readonly caseInsensitive: true;
489
502
  readonly description: "Omission leaves priority unassigned on creation and unchanged on edit. none clears priority; JSON uses null.";
490
503
  };
@@ -539,6 +552,7 @@ export declare const taskRouter: {
539
552
  readonly kind: "text";
540
553
  readonly name: "text";
541
554
  };
555
+ readonly aliases: readonly ["body"];
542
556
  };
543
557
  readonly "description-file": {
544
558
  readonly type: "string";
@@ -591,9 +605,8 @@ export declare const taskRouter: {
591
605
  run: (args: string[]) => Promise<void>;
592
606
  help: string;
593
607
  guessedFlags: {
594
- "--status": (args: string[]) => string[];
595
- "--column": (args: string[]) => string[];
596
- "--body": (args: string[]) => string[];
608
+ "--status": (args: string[]) => FlagCorrection;
609
+ "--column": (args: string[]) => FlagCorrection;
597
610
  };
598
611
  };
599
612
  move: {
@@ -601,6 +614,7 @@ export declare const taskRouter: {
601
614
  effects: {
602
615
  domain: "update";
603
616
  storage: "normal-open";
617
+ external: never[];
604
618
  };
605
619
  confirmation: {
606
620
  kind: "none";
@@ -648,6 +662,7 @@ export declare const taskRouter: {
648
662
  effects: {
649
663
  domain: "update";
650
664
  storage: "normal-open";
665
+ external: never[];
651
666
  };
652
667
  confirmation: {
653
668
  kind: "none";
@@ -727,6 +742,7 @@ export declare const taskRouter: {
727
742
  effects: {
728
743
  domain: "update";
729
744
  storage: "normal-open";
745
+ external: never[];
730
746
  };
731
747
  confirmation: {
732
748
  kind: "none";
@@ -755,6 +771,7 @@ export declare const taskRouter: {
755
771
  effects: {
756
772
  domain: "update";
757
773
  storage: "normal-open";
774
+ external: never[];
758
775
  };
759
776
  confirmation: {
760
777
  kind: "none";
@@ -783,6 +800,7 @@ export declare const taskRouter: {
783
800
  effects: {
784
801
  domain: "update";
785
802
  storage: "normal-open";
803
+ external: never[];
786
804
  };
787
805
  confirmation: {
788
806
  kind: "none";
@@ -825,6 +843,7 @@ export declare const taskRouter: {
825
843
  effects: {
826
844
  domain: "update";
827
845
  storage: "normal-open";
846
+ external: never[];
828
847
  };
829
848
  confirmation: {
830
849
  kind: "none";
@@ -853,6 +872,7 @@ export declare const taskRouter: {
853
872
  effects: {
854
873
  domain: "update";
855
874
  storage: "normal-open";
875
+ external: never[];
856
876
  };
857
877
  confirmation: {
858
878
  kind: "none";
@@ -881,6 +901,7 @@ export declare const taskRouter: {
881
901
  effects: {
882
902
  domain: "delete";
883
903
  storage: "normal-open";
904
+ external: never[];
884
905
  };
885
906
  confirmation: {
886
907
  kind: "prompt";
@@ -915,6 +936,7 @@ export declare const taskRouter: {
915
936
  effects: {
916
937
  domain: "replace";
917
938
  storage: "normal-open";
939
+ external: never[];
918
940
  };
919
941
  confirmation: {
920
942
  kind: "prompt";
@@ -930,7 +952,7 @@ export declare const taskRouter: {
930
952
  readonly required: true;
931
953
  readonly value: {
932
954
  readonly kind: "enum";
933
- readonly choices: ("related" | "dependency" | "duplicate" | "subtask")[];
955
+ readonly choices: ("dependency" | "subtask" | "duplicate" | "related")[];
934
956
  };
935
957
  };
936
958
  };
@@ -956,7 +978,10 @@ export declare const taskRouter: {
956
978
  };
957
979
  results: import("../results.js").CommandResult[];
958
980
  guessedFlags: {
959
- [k: string]: (args: Array<string>) => string[] | undefined;
981
+ [k: string]: (args: Array<string>) => {
982
+ args: string[];
983
+ guidance: string;
984
+ } | undefined;
960
985
  };
961
986
  run: (args: string[]) => Promise<void>;
962
987
  help: string;
@@ -966,6 +991,7 @@ export declare const taskRouter: {
966
991
  effects: {
967
992
  domain: "read";
968
993
  storage: "normal-open";
994
+ external: never[];
969
995
  };
970
996
  confirmation: {
971
997
  kind: "none";
@@ -994,6 +1020,7 @@ export declare const taskRouter: {
994
1020
  effects: {
995
1021
  domain: "delete";
996
1022
  storage: "normal-open";
1023
+ external: never[];
997
1024
  };
998
1025
  confirmation: {
999
1026
  kind: "none";
@@ -1005,7 +1032,7 @@ export declare const taskRouter: {
1005
1032
  readonly required: true;
1006
1033
  readonly value: {
1007
1034
  readonly kind: "enum";
1008
- readonly choices: ("related" | "dependency" | "duplicate" | "subtask")[];
1035
+ readonly choices: ("dependency" | "subtask" | "duplicate" | "related")[];
1009
1036
  };
1010
1037
  };
1011
1038
  };
@@ -1031,7 +1058,10 @@ export declare const taskRouter: {
1031
1058
  };
1032
1059
  results: import("../results.js").CommandResult[];
1033
1060
  guessedFlags: {
1034
- [k: string]: (args: Array<string>) => string[] | undefined;
1061
+ [k: string]: (args: Array<string>) => {
1062
+ args: string[];
1063
+ guidance: string;
1064
+ } | undefined;
1035
1065
  };
1036
1066
  run: (args: string[]) => void;
1037
1067
  help: string;
@@ -1043,6 +1073,7 @@ export declare const taskRouter: {
1043
1073
  effects: {
1044
1074
  domain: "create";
1045
1075
  storage: "normal-open";
1076
+ external: never[];
1046
1077
  };
1047
1078
  confirmation: {
1048
1079
  kind: "none";
@@ -1055,6 +1086,7 @@ export declare const taskRouter: {
1055
1086
  readonly kind: "text";
1056
1087
  readonly name: "text";
1057
1088
  };
1089
+ readonly aliases: readonly ["body"];
1058
1090
  };
1059
1091
  readonly "text-file": {
1060
1092
  readonly type: "string";
@@ -1085,9 +1117,6 @@ export declare const taskRouter: {
1085
1117
  }];
1086
1118
  };
1087
1119
  results: import("../results.js").CommandResult[];
1088
- guessedFlags: {
1089
- "--body": (args: string[]) => string[];
1090
- };
1091
1120
  run: (args: string[]) => Promise<void>;
1092
1121
  help: string;
1093
1122
  };
@@ -1096,6 +1125,7 @@ export declare const taskRouter: {
1096
1125
  effects: {
1097
1126
  domain: "read";
1098
1127
  storage: "normal-open";
1128
+ external: never[];
1099
1129
  };
1100
1130
  confirmation: {
1101
1131
  kind: "none";
@@ -1124,6 +1154,7 @@ export declare const taskRouter: {
1124
1154
  effects: {
1125
1155
  domain: "read";
1126
1156
  storage: "normal-open";
1157
+ external: never[];
1127
1158
  };
1128
1159
  confirmation: {
1129
1160
  kind: "none";
@@ -1152,6 +1183,7 @@ export declare const taskRouter: {
1152
1183
  effects: {
1153
1184
  domain: "update";
1154
1185
  storage: "normal-open";
1186
+ external: never[];
1155
1187
  };
1156
1188
  confirmation: {
1157
1189
  kind: "none";
@@ -1192,6 +1224,7 @@ export declare const taskRouter: {
1192
1224
  readonly kind: "text";
1193
1225
  readonly name: "text";
1194
1226
  };
1227
+ readonly aliases: readonly ["body"];
1195
1228
  };
1196
1229
  readonly "text-file": {
1197
1230
  readonly type: "string";
@@ -1241,9 +1274,6 @@ export declare const taskRouter: {
1241
1274
  readonly notes: readonly [string, string];
1242
1275
  };
1243
1276
  results: import("../results.js").CommandResult[];
1244
- guessedFlags: {
1245
- "--body": (args: string[]) => string[];
1246
- };
1247
1277
  run: (args: string[]) => Promise<void>;
1248
1278
  help: string;
1249
1279
  };
@@ -1252,6 +1282,7 @@ export declare const taskRouter: {
1252
1282
  effects: {
1253
1283
  domain: "delete";
1254
1284
  storage: "normal-open";
1285
+ external: never[];
1255
1286
  };
1256
1287
  confirmation: {
1257
1288
  kind: "prompt";
@@ -1287,6 +1318,7 @@ export declare const taskRouter: {
1287
1318
  effects: {
1288
1319
  domain: "update";
1289
1320
  storage: "normal-open";
1321
+ external: never[];
1290
1322
  };
1291
1323
  confirmation: {
1292
1324
  kind: "none";
@@ -1322,6 +1354,7 @@ export declare const taskRouter: {
1322
1354
  effects: {
1323
1355
  domain: "update";
1324
1356
  storage: "normal-open";
1357
+ external: never[];
1325
1358
  };
1326
1359
  confirmation: {
1327
1360
  kind: "none";