@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,70 +1,191 @@
1
+ import { jsonResult } from "../results.js";
1
2
  import { parseArgs } from "node:util";
2
- import { activity, activityLimitMessage, positiveIntegerPattern } from "@zinn-dev/core";
3
+ import { activity, activityLimitMessage, CoreError, positiveIntegerPattern } from "@zinn-dev/core";
4
+ import { generateCommandUsage, getOptionInputs, violatesConstraint } from "../input.js";
5
+ import { CliError } from "../errors.js";
3
6
  import { output, quit, validatePositionals, validateUniqueOptions } from "../lib.js";
4
7
  import { formatActivityList, presentActivities } from "../presentation/activity-presentation.js";
8
+ const activityInputs = {
9
+ list: {
10
+ options: {
11
+ project: { type: "string", value: { kind: "project-key", name: "project-key" } },
12
+ "project-id": {
13
+ type: "string",
14
+ value: {
15
+ kind: "project-id",
16
+ name: "project-id",
17
+ description: "Full project UUID; canonical or compact, case-insensitive",
18
+ },
19
+ },
20
+ task: { type: "string", value: { kind: "task-key", name: "task-key" } },
21
+ "task-id": {
22
+ type: "string",
23
+ value: {
24
+ kind: "task-id",
25
+ name: "task-id",
26
+ description: "Full task UUID; canonical or compact, case-insensitive",
27
+ },
28
+ },
29
+ "show-deleted": { type: "boolean" },
30
+ session: { type: "string", value: { kind: "text", name: "id" } },
31
+ thread: { type: "string", value: { kind: "text", name: "id" } },
32
+ limit: {
33
+ type: "string",
34
+ value: { kind: "positive-integer", name: "n", pattern: `^${positiveIntegerPattern}\\d?$` },
35
+ },
36
+ },
37
+ forms: [{ id: "default", positionals: [] }],
38
+ constraints: [
39
+ {
40
+ kind: "exclusive",
41
+ members: ["option:project", "option:project-id", "option:task", "option:task-id"],
42
+ },
43
+ {
44
+ kind: "requiresAny",
45
+ input: "option:show-deleted",
46
+ members: ["option:project", "option:task"],
47
+ },
48
+ ],
49
+ },
50
+ view: {
51
+ options: {},
52
+ forms: [
53
+ {
54
+ id: "default",
55
+ positionals: [{ name: "activity-id", min: 1, max: 1, value: { kind: "activity-id" } }],
56
+ },
57
+ ],
58
+ constraints: [],
59
+ },
60
+ };
5
61
  export const activityRouter = {
6
62
  list: {
63
+ summary: "List recorded activity across the database, newest first.",
64
+ effects: { domain: "read", storage: "normal-open" },
65
+ confirmation: { kind: "none" },
66
+ input: activityInputs.list,
67
+ results: [jsonResult("ActivityList")],
7
68
  run: (args) => {
8
69
  const { values, positionals, tokens } = parseArgs({
9
70
  args,
10
- options: { task: { type: "string" }, limit: { type: "string" } },
71
+ options: activityInputs.list.options,
11
72
  allowPositionals: true,
12
73
  strict: true,
13
74
  tokens: true,
14
75
  });
15
- validateUniqueOptions(tokens);
16
- validatePositionals(positionals, []);
76
+ validateUniqueOptions(tokens, activityInputs.list.options);
77
+ validatePositionals(positionals, activityInputs.list.forms[0]);
78
+ const [selectorConstraint, deletedHistoryConstraint] = activityInputs.list.constraints;
79
+ const optionInputs = getOptionInputs(values);
80
+ if (violatesConstraint(selectorConstraint, optionInputs)) {
81
+ const conflictingSelector = selectorConstraint.members.filter((member) => optionInputs[member] !== undefined)[1];
82
+ quit("Use one of --project, --project-id, --task or --task-id", undefined, {
83
+ argument: conflictingSelector.replace("option:", "--"),
84
+ });
85
+ }
86
+ if (violatesConstraint(deletedHistoryConstraint, optionInputs)) {
87
+ quit("--show-deleted requires --project or --task", undefined, {
88
+ argument: "--show-deleted",
89
+ });
90
+ }
17
91
  // Safe integers can have one more digit than readable task numbers.
18
- const limitPattern = new RegExp(`^${positiveIntegerPattern}\\d?$`);
92
+ const limitPattern = new RegExp(activityInputs.list.options.limit.value.pattern);
19
93
  if (values.limit !== undefined && !limitPattern.test(values.limit)) {
20
- quit(activityLimitMessage);
94
+ quit(activityLimitMessage, undefined, { argument: "--limit" });
95
+ }
96
+ let events;
97
+ try {
98
+ events = activity.getAll({
99
+ projectKey: values.project,
100
+ projectId: values["project-id"],
101
+ taskKey: values.task,
102
+ taskId: values["task-id"],
103
+ showDeleted: values["show-deleted"],
104
+ sessionId: values.session,
105
+ threadId: values.thread,
106
+ limit: values.limit === undefined ? undefined : Number(values.limit),
107
+ });
21
108
  }
22
- const events = activity.getAll({
109
+ catch (error) {
110
+ const isMissingCurrentSelection = (values.task !== undefined || values.project !== undefined) &&
111
+ values["show-deleted"] !== true &&
112
+ error instanceof CoreError &&
113
+ error.kind === "missing" &&
114
+ error.facts.entity === (values.project !== undefined ? "project" : "task");
115
+ if (isMissingCurrentSelection) {
116
+ const selector = error.facts.entity === "project" ? "--project" : "--task";
117
+ throw new CliError(error.message, "not_found", {
118
+ entity: error.facts.entity,
119
+ key: error.facts.key,
120
+ source: "explicit",
121
+ argument: selector,
122
+ }, `Use ${selector} ${values.project ?? values.task} --show-deleted to include deleted history.`);
123
+ }
124
+ throw error;
125
+ }
126
+ output(events, (items) => formatActivityList(presentActivities(items, {
127
+ projectKey: values.project,
128
+ projectId: values["project-id"],
129
+ showDeleted: values["show-deleted"],
23
130
  taskKey: values.task,
24
- limit: values.limit === undefined ? undefined : Number(values.limit),
25
- });
26
- output(events, (items) => formatActivityList(presentActivities(items, { taskKey: values.task })));
131
+ taskId: values["task-id"],
132
+ })));
27
133
  },
28
- help: `Usage: zinn activity list [--task <task-key>] [--limit <n>] [--json]
134
+ help: `${generateCommandUsage("activity list", activityInputs.list)}
29
135
 
30
136
  List recorded activity across the database, newest first.
31
- By default, all matching events are returned. --limit takes a positive safe integer.
32
- --task includes existing, archived and deleted task lifetimes for that key,
33
- including the recorded project deletion that removed a task.
34
- A key reused after project deletion includes every known lifetime.
35
- A valid key without recoverable history returns an empty list.
137
+ Returns all matching events unless --limit is supplied.
138
+
139
+ --task <key> Select an existing active or archived task.
140
+ --project <key> Select an existing project's activity, including deleted tasks.
141
+ --project-id <uuid> Select one project identity, including deleted projects.
142
+ Requires a full UUID.
143
+ --show-deleted Also include deleted identities sharing the selected key.
144
+ --task-id <uuid> Select one task identity, including deleted tasks.
145
+ Requires a full UUID.
146
+ --session <id> Match an exact session ID, including case.
147
+ --thread <id> Match an exact thread ID, including case.
148
+ --limit <n> Return at most n matching events.
149
+
150
+ Use one of --project, --project-id, --task or --task-id.
151
+ --show-deleted requires --project or --task.
152
+ All supplied filters must match.
36
153
 
37
- Text times are local dates/times with a UTC offset.
38
- Event IDs are the shortest globally unique left prefixes of at least eight hex digits.
39
- Use activity view for full recorded changes; full IDs are durable, short prefixes may become ambiguous.
40
- With --json, output is an array of full activity records, with parsed changes or null.
41
- Group JSON records by entity_type and entity_id to distinguish tasks sharing a readable key.
42
- id identifies the activity event.
43
- A project deletion event's entity_id is the project ID and removed task IDs are in changes.tasks.
154
+ Use activity view <activity-id> for complete recorded changes.
155
+ With --json, return an array of full activity records.
44
156
 
45
157
  Examples:
46
158
  zinn activity list --limit 10
47
- zinn activity list --task APP-2 --json`,
159
+ zinn activity list --project APP
160
+ zinn activity list --task APP-2
161
+ zinn activity list --task APP-2 --show-deleted`,
48
162
  },
49
163
  view: {
164
+ summary: "Show one recorded event with full activity/entity IDs, actor and complete changes.",
165
+ effects: { domain: "read", storage: "normal-open" },
166
+ confirmation: { kind: "none" },
167
+ input: activityInputs.view,
168
+ results: [jsonResult("Activity")],
50
169
  run: (args) => {
51
- const { positionals } = parseArgs({ args, allowPositionals: true, strict: true });
52
- validatePositionals(positionals, ["<activity-id>"]);
53
- output(activity.getById(positionals[0]), (event) => formatActivityList(presentActivities([event], { showsFullIds: true }), {
170
+ const { positionals } = parseArgs({
171
+ options: activityInputs.view.options,
172
+ args,
173
+ allowPositionals: true,
174
+ strict: true,
175
+ });
176
+ validatePositionals(positionals, activityInputs.view.forms[0]);
177
+ const viewed = activity.getById(positionals[0]);
178
+ output(viewed, (event) => formatActivityList(presentActivities([event], { showsFullIds: true }), {
54
179
  showsDetails: true,
55
180
  }));
56
181
  },
57
- help: `Usage: zinn activity view <activity-id> [--json]
182
+ help: `${generateCommandUsage("activity view", activityInputs.view)}
58
183
 
59
184
  Show one recorded event with full activity/entity IDs, actor and complete changes.
60
- Text and line breaks are preserved; unknown change fields remain available as raw JSON.
61
- Text times are local dates/times with a UTC offset.
185
+ Recorded text and line breaks are preserved.
62
186
 
63
187
  Accept a full UUID or unique left prefix with at least eight hexadecimal digits.
64
- Matching ignores case and accepts canonical hyphens or uninterrupted hexadecimal digits.
65
- An ambiguous prefix lists candidate IDs and requires more characters.
66
- With --json, output is one full activity record, with parsed changes or null.
67
- id identifies this event itself, while entity_type and entity_id identify its affected entity.
188
+ With --json, return one full activity record.
68
189
 
69
190
  Example: zinn activity view 019abcdf-1234-7`,
70
191
  },
@@ -0,0 +1,2 @@
1
+ export declare const commandAliases: Record<string, readonly string[]>;
2
+ export declare function getCommandAliases(command: string): Array<Array<string>>;
@@ -0,0 +1,11 @@
1
+ export const commandAliases = {
2
+ view: ["show"],
3
+ list: ["ls"],
4
+ delete: ["rm"],
5
+ create: ["new"],
6
+ };
7
+ export function getCommandAliases(command) {
8
+ const words = command.split(" ");
9
+ const name = words.pop();
10
+ return (commandAliases[name] ?? []).map((alias) => [...words, alias]);
11
+ }
@@ -1,4 +1,21 @@
1
1
  export declare const backupCommand: {
2
+ summary: string;
3
+ effects: {
4
+ domain: "none";
5
+ storage: "backup";
6
+ };
7
+ confirmation: {
8
+ kind: "none";
9
+ };
10
+ input: {
11
+ readonly options: {};
12
+ readonly forms: readonly [{
13
+ readonly id: "default";
14
+ readonly positionals: readonly [];
15
+ }];
16
+ readonly constraints: readonly [];
17
+ };
18
+ results: import("../results.js").CommandResult[];
2
19
  run: (args: string[]) => void;
3
20
  help: string;
4
21
  };
@@ -1,15 +1,27 @@
1
+ import { jsonResult } from "../results.js";
1
2
  import { parseArgs } from "node:util";
2
3
  import { backup } from "@zinn-dev/core";
4
+ import { generateCommandUsage, noInput } from "../input.js";
3
5
  import { output, validatePositionals } from "../lib.js";
4
6
  import packageJson from "../../package.json" with { type: "json" };
5
7
  export const backupCommand = {
8
+ summary: "Save a copy of the database to ~/.zinn/backups/, or to backups/ in ZINN_DIR when it is set.",
9
+ effects: { domain: "none", storage: "backup" },
10
+ confirmation: { kind: "none" },
11
+ input: noInput,
12
+ results: [jsonResult("Backup")],
6
13
  run: (args) => {
7
- const { positionals } = parseArgs({ args, strict: true, allowPositionals: true });
8
- validatePositionals(positionals, []);
14
+ const { positionals } = parseArgs({
15
+ options: noInput.options,
16
+ args,
17
+ strict: true,
18
+ allowPositionals: true,
19
+ });
20
+ validatePositionals(positionals, noInput.forms[0]);
9
21
  const created = backup.create({ client: "cli", version: packageJson.version });
10
22
  output(created, (b) => `Saved a backup to ${b.path}`);
11
23
  },
12
- help: `Usage: zinn backup
24
+ help: `${generateCommandUsage("backup", noInput)}
13
25
 
14
26
  Save a copy of the database to ~/.zinn/backups/, or to backups/ in ZINN_DIR when it is set.
15
27
 
@@ -0,0 +1,21 @@
1
+ export declare const capabilitiesCommand: {
2
+ summary: string;
3
+ effects: {
4
+ domain: "none";
5
+ storage: "none";
6
+ };
7
+ confirmation: {
8
+ kind: "none";
9
+ };
10
+ input: {
11
+ readonly options: {};
12
+ readonly forms: readonly [{
13
+ readonly id: "default";
14
+ readonly positionals: readonly [];
15
+ }];
16
+ readonly constraints: readonly [];
17
+ };
18
+ results: import("../results.js").CommandResult[];
19
+ run: (args: string[]) => Promise<void>;
20
+ help: string;
21
+ };
@@ -0,0 +1,34 @@
1
+ import { parseArgs } from "node:util";
2
+ import { generateCommandUsage, noInput } from "../input.js";
3
+ import { getOutputMode, output, validatePositionals } from "../lib.js";
4
+ import { formatCapabilities } from "../presentation/capabilities-presentation.js";
5
+ import { jsonResult } from "../results.js";
6
+ export const capabilitiesCommand = {
7
+ summary: "Describe the installed CLI commands, inputs, results and errors.",
8
+ effects: { domain: "none", storage: "none" },
9
+ confirmation: { kind: "none" },
10
+ input: noInput,
11
+ results: [jsonResult("Capabilities")],
12
+ run: async (args) => {
13
+ const { positionals } = parseArgs({
14
+ options: noInput.options,
15
+ args,
16
+ strict: true,
17
+ allowPositionals: true,
18
+ });
19
+ validatePositionals(positionals, noInput.forms[0]);
20
+ const { generateCapabilities, getCapabilitySummary } = await import("../capabilities.js");
21
+ if (getOutputMode() === "json") {
22
+ output(generateCapabilities(), () => formatCapabilities(getCapabilitySummary()));
23
+ }
24
+ else {
25
+ output(getCapabilitySummary(), formatCapabilities);
26
+ }
27
+ },
28
+ help: `${generateCommandUsage("capabilities", noInput)}
29
+
30
+ Describe the installed CLI commands, inputs, results and errors.
31
+
32
+ Experimental. Use --json for the full contract, including reusable JSON Schemas.
33
+ Discovery works without reading settings or opening storage.`,
34
+ };
@@ -1,24 +1,226 @@
1
- import type { CommentWithKey } from "@zinn-dev/core";
2
- type PresentedComment = Pick<CommentWithKey, "key" | "text" | "created_at" | "updated_at">;
3
- export declare function presentComments(taskKey: string): PresentedComment[];
4
- export declare function formatComment(commentMatch: PresentedComment): string;
5
- export declare function formatComments(comments: Array<PresentedComment>): string;
6
1
  export declare const commentRouter: {
7
2
  create: {
8
- run: (args: string[]) => void;
3
+ summary: string;
4
+ effects: {
5
+ domain: "create";
6
+ storage: "normal-open";
7
+ };
8
+ confirmation: {
9
+ kind: "none";
10
+ };
11
+ input: {
12
+ readonly options: {
13
+ readonly text: {
14
+ readonly type: "string";
15
+ readonly value: {
16
+ readonly kind: "text";
17
+ readonly name: "text";
18
+ };
19
+ };
20
+ readonly "text-file": {
21
+ readonly type: "string";
22
+ readonly value: {
23
+ readonly kind: "path";
24
+ readonly name: "path";
25
+ readonly description: "A UTF-8 file, or \"-\" for stdin. Trailing line breaks are dropped; empty or blank input is an error.";
26
+ };
27
+ };
28
+ };
29
+ readonly forms: readonly [{
30
+ readonly id: "default";
31
+ readonly positionals: readonly [{
32
+ readonly name: "task-key";
33
+ readonly min: 1;
34
+ readonly max: 1;
35
+ readonly value: {
36
+ readonly kind: "task-key";
37
+ };
38
+ }];
39
+ }];
40
+ readonly constraints: readonly [{
41
+ readonly kind: "exclusive";
42
+ readonly members: readonly ["option:description" | "option:text", "option:description-file" | "option:text-file"];
43
+ }, {
44
+ readonly kind: "atLeastOne";
45
+ readonly members: readonly ["option:text", "option:text-file"];
46
+ }];
47
+ };
48
+ results: import("../results.js").CommandResult[];
49
+ guessedFlags: {
50
+ "--body": (args: string[]) => string[];
51
+ };
52
+ run: (args: string[]) => Promise<void>;
9
53
  help: string;
10
54
  };
11
55
  list: {
56
+ summary: string;
57
+ effects: {
58
+ domain: "read";
59
+ storage: "normal-open";
60
+ };
61
+ confirmation: {
62
+ kind: "none";
63
+ };
64
+ input: {
65
+ readonly options: {};
66
+ readonly forms: readonly [{
67
+ readonly id: "default";
68
+ readonly positionals: readonly [{
69
+ readonly name: "task-key";
70
+ readonly min: 1;
71
+ readonly max: 1;
72
+ readonly value: {
73
+ readonly kind: "task-key";
74
+ };
75
+ }];
76
+ }];
77
+ readonly constraints: readonly [];
78
+ };
79
+ results: import("../results.js").CommandResult[];
12
80
  run: (args: string[]) => void;
13
81
  help: string;
14
82
  };
15
- edit: {
83
+ view: {
84
+ summary: string;
85
+ effects: {
86
+ domain: "read";
87
+ storage: "normal-open";
88
+ };
89
+ confirmation: {
90
+ kind: "none";
91
+ };
92
+ input: {
93
+ readonly options: {};
94
+ readonly forms: readonly [{
95
+ readonly id: "default";
96
+ readonly positionals: readonly [{
97
+ readonly name: "comment-key";
98
+ readonly min: 1;
99
+ readonly max: 1;
100
+ readonly value: {
101
+ readonly kind: "comment-key";
102
+ };
103
+ }];
104
+ }];
105
+ readonly constraints: readonly [];
106
+ };
107
+ results: import("../results.js").CommandResult[];
16
108
  run: (args: string[]) => void;
17
109
  help: string;
18
110
  };
111
+ edit: {
112
+ summary: string;
113
+ effects: {
114
+ domain: "update";
115
+ storage: "normal-open";
116
+ };
117
+ confirmation: {
118
+ kind: "none";
119
+ };
120
+ input: {
121
+ readonly options: {
122
+ readonly append: {
123
+ readonly type: "boolean";
124
+ };
125
+ readonly replacing: {
126
+ readonly type: "string";
127
+ readonly value: {
128
+ readonly kind: "text";
129
+ readonly name: "old";
130
+ };
131
+ };
132
+ readonly all: {
133
+ readonly type: "boolean";
134
+ };
135
+ readonly text: {
136
+ readonly type: "string";
137
+ readonly value: {
138
+ readonly kind: "text";
139
+ readonly name: "text";
140
+ };
141
+ };
142
+ readonly "text-file": {
143
+ readonly type: "string";
144
+ readonly value: {
145
+ readonly kind: "path";
146
+ readonly name: "path";
147
+ readonly description: "A UTF-8 file, or \"-\" for stdin. Trailing line breaks are dropped; empty or blank input is an error.";
148
+ };
149
+ };
150
+ };
151
+ readonly forms: readonly [{
152
+ readonly id: "default";
153
+ readonly positionals: readonly [{
154
+ readonly name: "comment-key";
155
+ readonly min: 1;
156
+ readonly max: 1;
157
+ readonly value: {
158
+ readonly kind: "comment-key";
159
+ };
160
+ }];
161
+ }];
162
+ readonly constraints: readonly [{
163
+ readonly kind: "exclusive";
164
+ readonly members: readonly ["option:description" | "option:text", "option:description-file" | "option:text-file"];
165
+ }, {
166
+ readonly kind: "exclusive";
167
+ readonly members: readonly ["option:append", "option:replacing"];
168
+ }, {
169
+ readonly kind: "requiresAny";
170
+ readonly input: "option:append";
171
+ readonly members: readonly ["option:description" | "option:text", "option:description-file" | "option:text-file"];
172
+ }, {
173
+ readonly kind: "requiresAny";
174
+ readonly input: "option:replacing";
175
+ readonly members: readonly ["option:description" | "option:text", "option:description-file" | "option:text-file"];
176
+ }, {
177
+ readonly kind: "requires";
178
+ readonly input: "option:all";
179
+ readonly requires: "option:replacing";
180
+ }, {
181
+ readonly kind: "atLeastOne";
182
+ readonly members: readonly ["option:text", "option:text-file"];
183
+ }];
184
+ readonly notes: readonly [string];
185
+ };
186
+ results: import("../results.js").CommandResult[];
187
+ guessedFlags: {
188
+ "--body": (args: string[]) => string[];
189
+ };
190
+ run: (args: string[]) => Promise<void>;
191
+ help: string;
192
+ };
19
193
  delete: {
194
+ summary: string;
195
+ effects: {
196
+ domain: "delete";
197
+ storage: "normal-open";
198
+ };
199
+ confirmation: {
200
+ kind: "prompt";
201
+ description: string;
202
+ };
203
+ input: {
204
+ readonly options: {
205
+ readonly yes: {
206
+ readonly type: "boolean";
207
+ };
208
+ };
209
+ readonly forms: readonly [{
210
+ readonly id: "default";
211
+ readonly positionals: readonly [{
212
+ readonly name: "comment-key";
213
+ readonly min: 1;
214
+ readonly max: 1;
215
+ readonly value: {
216
+ readonly kind: "comment-key";
217
+ };
218
+ }];
219
+ }];
220
+ readonly constraints: readonly [];
221
+ };
222
+ results: import("../results.js").CommandResult[];
20
223
  run: (args: string[]) => Promise<void>;
21
224
  help: string;
22
225
  };
23
226
  };
24
- export {};