@zinn-dev/cli 0.40.0 → 0.41.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 (60) hide show
  1. package/README.md +166 -38
  2. package/index.js +24 -13
  3. package/package.json +7 -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 +163 -0
  8. package/src/capabilities-schema.js +124 -0
  9. package/src/capabilities.d.ts +21 -0
  10. package/src/capabilities.js +22 -0
  11. package/src/database.d.ts +1 -1
  12. package/src/database.js +4 -4
  13. package/src/errors.d.ts +158 -0
  14. package/src/errors.js +224 -0
  15. package/src/input.d.ts +116 -0
  16. package/src/input.js +119 -0
  17. package/src/lib.d.ts +42 -7
  18. package/src/lib.js +213 -17
  19. package/src/presentation/activity-presentation.js +16 -2
  20. package/src/presentation/column-presentation.d.ts +3 -5
  21. package/src/presentation/info-presentation.d.ts +4 -0
  22. package/src/presentation/info-presentation.js +96 -0
  23. package/src/presentation/task-presentation.d.ts +2 -10
  24. package/src/project.d.ts +6 -0
  25. package/src/project.js +23 -10
  26. package/src/result-schemas.d.ts +987 -0
  27. package/src/result-schemas.js +220 -0
  28. package/src/results.d.ts +23 -0
  29. package/src/results.js +17 -0
  30. package/src/routes/activity-router.d.ts +71 -0
  31. package/src/routes/activity-router.js +59 -11
  32. package/src/routes/backup-router.d.ts +17 -0
  33. package/src/routes/backup-router.js +15 -3
  34. package/src/routes/capabilities-router.d.ts +21 -0
  35. package/src/routes/capabilities-router.js +28 -0
  36. package/src/routes/comment-router.d.ts +183 -4
  37. package/src/routes/comment-router.js +136 -29
  38. package/src/routes/info-router.d.ts +21 -0
  39. package/src/routes/info-router.js +29 -0
  40. package/src/routes/label-router.d.ts +165 -0
  41. package/src/routes/label-router.js +111 -29
  42. package/src/routes/migrate-router.d.ts +17 -0
  43. package/src/routes/migrate-router.js +17 -5
  44. package/src/routes/project-router.d.ts +349 -0
  45. package/src/routes/project-router.js +278 -92
  46. package/src/routes/reindex-router.d.ts +17 -0
  47. package/src/routes/reindex-router.js +15 -3
  48. package/src/routes/relation-router.d.ts +108 -12
  49. package/src/routes/relation-router.js +74 -14
  50. package/src/routes/restore-router.d.ts +29 -0
  51. package/src/routes/restore-router.js +30 -13
  52. package/src/routes/router.d.ts +1 -1
  53. package/src/routes/router.js +44 -25
  54. package/src/routes/routes.d.ts +1565 -0
  55. package/src/routes/routes.js +5 -1
  56. package/src/routes/task-router.d.ts +861 -0
  57. package/src/routes/task-router.js +419 -163
  58. package/src/text-edit.d.ts +20 -2
  59. package/src/text-edit.js +22 -10
  60. package/src/types.d.ts +14 -0
@@ -1,24 +1,203 @@
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[];
1
+ import type { PresentedComment } from "../result-schemas.js";
2
+ export declare function presentComments(taskKey: string): {
3
+ key: string;
4
+ text: string;
5
+ created_at: number;
6
+ updated_at: number;
7
+ }[];
4
8
  export declare function formatComment(commentMatch: PresentedComment): string;
5
9
  export declare function formatComments(comments: Array<PresentedComment>): string;
6
10
  export declare const commentRouter: {
7
11
  create: {
12
+ summary: string;
13
+ effects: {
14
+ domain: "create";
15
+ storage: "normal-open";
16
+ };
17
+ confirmation: {
18
+ kind: "none";
19
+ };
20
+ input: {
21
+ readonly options: {
22
+ readonly text: {
23
+ readonly type: "string";
24
+ readonly required: true;
25
+ readonly value: {
26
+ readonly kind: "text";
27
+ readonly name: "text";
28
+ };
29
+ };
30
+ };
31
+ readonly forms: readonly [{
32
+ readonly id: "default";
33
+ readonly positionals: readonly [{
34
+ readonly name: "task-key";
35
+ readonly min: 1;
36
+ readonly max: 1;
37
+ readonly value: {
38
+ readonly kind: "task-key";
39
+ };
40
+ }];
41
+ }];
42
+ readonly constraints: readonly [];
43
+ };
44
+ results: import("../results.js").CommandResult[];
8
45
  run: (args: string[]) => void;
9
46
  help: string;
10
47
  };
11
48
  list: {
49
+ summary: string;
50
+ effects: {
51
+ domain: "read";
52
+ storage: "normal-open";
53
+ };
54
+ confirmation: {
55
+ kind: "none";
56
+ };
57
+ input: {
58
+ readonly options: {};
59
+ readonly forms: readonly [{
60
+ readonly id: "default";
61
+ readonly positionals: readonly [{
62
+ readonly name: "task-key";
63
+ readonly min: 1;
64
+ readonly max: 1;
65
+ readonly value: {
66
+ readonly kind: "task-key";
67
+ };
68
+ }];
69
+ }];
70
+ readonly constraints: readonly [];
71
+ };
72
+ results: import("../results.js").CommandResult[];
73
+ run: (args: string[]) => void;
74
+ help: string;
75
+ };
76
+ view: {
77
+ summary: string;
78
+ effects: {
79
+ domain: "read";
80
+ storage: "normal-open";
81
+ };
82
+ confirmation: {
83
+ kind: "none";
84
+ };
85
+ input: {
86
+ readonly options: {};
87
+ readonly forms: readonly [{
88
+ readonly id: "default";
89
+ readonly positionals: readonly [{
90
+ readonly name: "comment-key";
91
+ readonly min: 1;
92
+ readonly max: 1;
93
+ readonly value: {
94
+ readonly kind: "comment-key";
95
+ };
96
+ }];
97
+ }];
98
+ readonly constraints: readonly [];
99
+ };
100
+ results: import("../results.js").CommandResult[];
12
101
  run: (args: string[]) => void;
13
102
  help: string;
14
103
  };
15
104
  edit: {
105
+ summary: string;
106
+ effects: {
107
+ domain: "update";
108
+ storage: "normal-open";
109
+ };
110
+ confirmation: {
111
+ kind: "none";
112
+ };
113
+ input: {
114
+ readonly options: {
115
+ readonly append: {
116
+ readonly type: "boolean";
117
+ };
118
+ readonly replacing: {
119
+ readonly type: "string";
120
+ readonly value: {
121
+ readonly kind: "text";
122
+ readonly name: "old";
123
+ };
124
+ };
125
+ readonly all: {
126
+ readonly type: "boolean";
127
+ };
128
+ readonly text: {
129
+ readonly type: "string";
130
+ readonly required: true;
131
+ readonly value: {
132
+ readonly kind: "text";
133
+ readonly name: "text";
134
+ };
135
+ };
136
+ };
137
+ readonly forms: readonly [{
138
+ readonly id: "default";
139
+ readonly positionals: readonly [{
140
+ readonly name: "comment-key";
141
+ readonly min: 1;
142
+ readonly max: 1;
143
+ readonly value: {
144
+ readonly kind: "comment-key";
145
+ };
146
+ }];
147
+ }];
148
+ readonly constraints: readonly [{
149
+ readonly kind: "exclusive";
150
+ readonly members: readonly ["option:append", "option:replacing"];
151
+ }, {
152
+ readonly kind: "requires";
153
+ readonly input: "option:append";
154
+ readonly requires: `option:${string}`;
155
+ }, {
156
+ readonly kind: "requires";
157
+ readonly input: "option:replacing";
158
+ readonly requires: `option:${string}`;
159
+ }, {
160
+ readonly kind: "requires";
161
+ readonly input: "option:all";
162
+ readonly requires: "option:replacing";
163
+ }];
164
+ readonly notes: readonly [string];
165
+ };
166
+ results: import("../results.js").CommandResult[];
16
167
  run: (args: string[]) => void;
17
168
  help: string;
18
169
  };
19
170
  delete: {
171
+ summary: string;
172
+ effects: {
173
+ domain: "delete";
174
+ storage: "normal-open";
175
+ };
176
+ confirmation: {
177
+ kind: "prompt";
178
+ description: string;
179
+ };
180
+ input: {
181
+ readonly options: {
182
+ readonly yes: {
183
+ readonly type: "boolean";
184
+ };
185
+ };
186
+ readonly forms: readonly [{
187
+ readonly id: "default";
188
+ readonly positionals: readonly [{
189
+ readonly name: "comment-key";
190
+ readonly min: 1;
191
+ readonly max: 1;
192
+ readonly value: {
193
+ readonly kind: "comment-key";
194
+ };
195
+ }];
196
+ }];
197
+ readonly constraints: readonly [];
198
+ };
199
+ results: import("../results.js").CommandResult[];
20
200
  run: (args: string[]) => Promise<void>;
21
201
  help: string;
22
202
  };
23
203
  };
24
- export {};
@@ -1,7 +1,9 @@
1
+ import { jsonResult } from "../results.js";
1
2
  import { parseArgs } from "node:util";
2
3
  import { comment } from "@zinn-dev/core";
3
- import { confirmAction, output, quit, validatePositionals, validateUniqueOptions, } from "../lib.js";
4
- import { resolveTextEdit, textEditHelp, textEditOptions, textEditUsage } from "../text-edit.js";
4
+ import { generateCommandUsage, taskKeyPositional } from "../input.js";
5
+ import { confirmationDescription, confirmAction, dashValueHelp, output, validatePositionals, requireStringOption, validateUniqueOptions, } from "../lib.js";
6
+ import { resolveTextEdit, textEditHelp, textEditOptions, textEditConstraints, } from "../text-edit.js";
5
7
  import { currentActor } from "../actor.js";
6
8
  import { formatRows } from "../presentation/row-layout.js";
7
9
  import { formatLocalTime } from "../presentation/time.js";
@@ -33,87 +35,192 @@ export function formatComments(comments) {
33
35
  function parseTextArgs(args) {
34
36
  const { values, positionals, tokens } = parseArgs({
35
37
  args,
36
- options: { text: { type: "string" } },
38
+ options: commentInputs.create.options,
37
39
  allowPositionals: true,
38
40
  strict: true,
39
41
  tokens: true,
40
42
  });
41
- validateUniqueOptions(tokens);
42
- validatePositionals(positionals, ["<task-key>"]);
43
- if (values.text === undefined) {
44
- quit("Comment text must be specified with --text");
45
- }
46
- return { key: positionals[0], text: values.text };
43
+ validateUniqueOptions(tokens, commentInputs.create.options);
44
+ validatePositionals(positionals, commentInputs.create.forms[0]);
45
+ const text = requireStringOption(commentInputs.create.options.text, values.text, "text", "Comment text must be specified with --text");
46
+ return { key: positionals[0], text };
47
47
  }
48
48
  function parseCommentEditArgs(args) {
49
49
  const { values, positionals, tokens } = parseArgs({
50
50
  args,
51
- options: { text: { type: "string" }, ...textEditOptions },
51
+ options: commentInputs.edit.options,
52
52
  allowPositionals: true,
53
53
  strict: true,
54
54
  tokens: true,
55
55
  });
56
- validateUniqueOptions(tokens);
57
- validatePositionals(positionals, ["<comment-key>"]);
56
+ validateUniqueOptions(tokens, commentInputs.edit.options);
57
+ validatePositionals(positionals, commentInputs.edit.forms[0]);
58
58
  const text = resolveTextEdit(values.text, values, "--text");
59
- if (text === undefined) {
60
- quit("Comment text must be specified with --text");
61
- }
62
- return { key: positionals[0], text };
59
+ requireStringOption(commentInputs.edit.options.text, values.text, "text", "Comment text must be specified with --text");
60
+ return { key: positionals[0], text: text };
63
61
  }
62
+ const commentInputs = {
63
+ create: {
64
+ options: { text: { type: "string", required: true, value: { kind: "text", name: "text" } } },
65
+ forms: [
66
+ {
67
+ id: "default",
68
+ positionals: [taskKeyPositional],
69
+ },
70
+ ],
71
+ constraints: [],
72
+ },
73
+ list: {
74
+ options: {},
75
+ forms: [
76
+ {
77
+ id: "default",
78
+ positionals: [taskKeyPositional],
79
+ },
80
+ ],
81
+ constraints: [],
82
+ },
83
+ view: {
84
+ options: {},
85
+ forms: [
86
+ {
87
+ id: "default",
88
+ positionals: [{ name: "comment-key", min: 1, max: 1, value: { kind: "comment-key" } }],
89
+ },
90
+ ],
91
+ constraints: [],
92
+ },
93
+ edit: {
94
+ options: {
95
+ text: { type: "string", required: true, value: { kind: "text", name: "text" } },
96
+ ...textEditOptions,
97
+ },
98
+ forms: [
99
+ {
100
+ id: "default",
101
+ positionals: [{ name: "comment-key", min: 1, max: 1, value: { kind: "comment-key" } }],
102
+ },
103
+ ],
104
+ constraints: [...textEditConstraints("--text")],
105
+ notes: [textEditHelp("--text")],
106
+ },
107
+ delete: {
108
+ options: { yes: { type: "boolean" } },
109
+ forms: [
110
+ {
111
+ id: "default",
112
+ positionals: [{ name: "comment-key", min: 1, max: 1, value: { kind: "comment-key" } }],
113
+ },
114
+ ],
115
+ constraints: [],
116
+ },
117
+ };
64
118
  export const commentRouter = {
65
119
  create: {
120
+ summary: "Add a comment to a task. Comment text cannot be blank.",
121
+ effects: { domain: "create", storage: "normal-open" },
122
+ confirmation: { kind: "none" },
123
+ input: commentInputs.create,
124
+ results: [jsonResult("Comment")],
66
125
  run: (args) => {
67
126
  const props = parseTextArgs(args);
68
127
  const created = comment.create({ taskKey: props.key, text: props.text }, currentActor());
69
128
  output(presentComment(created), formatComment);
70
129
  },
71
- help: `Usage: zinn task comment create <task-key> --text <text>
130
+ help: `${generateCommandUsage("task comment create", commentInputs.create)}
72
131
 
73
132
  Add a comment to a task. Comment text cannot be blank.
74
133
  Archived tasks can be commented on.
75
134
 
76
- Example: zinn task comment create MDR-1 --text "Ready for review"`,
135
+ ${dashValueHelp("--text")}
136
+
137
+ Example: zinn task comment create MDR-1 --text 'Ready for review'`,
77
138
  },
78
139
  list: {
140
+ summary: "List a task's comments by oldest first.",
141
+ effects: { domain: "read", storage: "normal-open" },
142
+ confirmation: { kind: "none" },
143
+ input: commentInputs.list,
144
+ results: [jsonResult("CommentList")],
79
145
  run: (args) => {
80
- const { positionals } = parseArgs({ args, allowPositionals: true, strict: true });
81
- validatePositionals(positionals, ["<task-key>"]);
146
+ const { positionals } = parseArgs({
147
+ options: commentInputs.list.options,
148
+ args,
149
+ allowPositionals: true,
150
+ strict: true,
151
+ });
152
+ validatePositionals(positionals, commentInputs.list.forms[0]);
82
153
  output(presentComments(positionals[0]), formatComments);
83
154
  },
84
- help: `Usage: zinn task comment list <task-key>
155
+ help: `${generateCommandUsage("task comment list", commentInputs.list)}
85
156
 
86
157
  List a task's comments by oldest first.
87
158
 
88
159
  Example: zinn task comment list MDR-1`,
160
+ },
161
+ view: {
162
+ summary: "Show a comment's current text in full, keeping its line breaks.",
163
+ effects: { domain: "read", storage: "normal-open" },
164
+ confirmation: { kind: "none" },
165
+ input: commentInputs.view,
166
+ results: [jsonResult("Comment")],
167
+ run: (args) => {
168
+ const { positionals } = parseArgs({
169
+ options: commentInputs.view.options,
170
+ args,
171
+ allowPositionals: true,
172
+ strict: true,
173
+ });
174
+ validatePositionals(positionals, commentInputs.view.forms[0]);
175
+ output(presentComment(comment.getByKey(positionals[0])), formatComment);
176
+ },
177
+ help: `${generateCommandUsage("task comment view", commentInputs.view)}
178
+
179
+ Show a comment's current text in full, keeping its line breaks.
180
+ Comments on archived tasks can be viewed.
181
+ With --json, return one object with key, text, created_at and updated_at.
182
+
183
+ Example: zinn task comment view 'MDR-1#1'`,
89
184
  },
90
185
  edit: {
186
+ summary: "Replace a comment's text. Comment text cannot be blank.",
187
+ effects: { domain: "update", storage: "normal-open" },
188
+ confirmation: { kind: "none" },
189
+ input: commentInputs.edit,
190
+ results: [jsonResult("Comment")],
91
191
  run: (args) => {
92
192
  const props = parseCommentEditArgs(args);
93
193
  const edited = comment.edit({ commentKey: props.key, text: props.text }, currentActor());
94
194
  output(presentComment(edited), formatComment);
95
195
  },
96
- help: `Usage: zinn task comment edit <comment-key> --text <text> ${textEditUsage}
196
+ help: `${generateCommandUsage("task comment edit", commentInputs.edit)}
97
197
 
98
198
  Replace a comment's text. Comment text cannot be blank.
99
199
 
100
200
  ${textEditHelp("--text")}
101
201
 
202
+ ${dashValueHelp("--text")}
203
+
102
204
  Examples:
103
- zinn task comment edit MDR-1#2 --text "Approved"
104
- zinn task comment edit MDR-1#2 --text "Also approved." --append`,
205
+ zinn task comment edit 'MDR-1#2' --text Approved
206
+ zinn task comment edit 'MDR-1#2' --text 'Also approved.' --append`,
105
207
  },
106
208
  delete: {
209
+ summary: "Permanently delete a comment after confirmation.",
210
+ effects: { domain: "delete", storage: "normal-open" },
211
+ confirmation: { kind: "prompt", description: confirmationDescription },
212
+ input: commentInputs.delete,
213
+ results: [jsonResult("Comment")],
107
214
  run: async (args) => {
108
215
  const { values, positionals, tokens } = parseArgs({
109
216
  args,
110
- options: { yes: { type: "boolean" } },
217
+ options: commentInputs.delete.options,
111
218
  allowPositionals: true,
112
219
  strict: true,
113
220
  tokens: true,
114
221
  });
115
- validateUniqueOptions(tokens);
116
- validatePositionals(positionals, ["<comment-key>"]);
222
+ validateUniqueOptions(tokens, commentInputs.delete.options);
223
+ validatePositionals(positionals, commentInputs.delete.forms[0]);
117
224
  const commentMatch = comment.getByKey(positionals[0]);
118
225
  const canDelete = await confirmAction(`Are you sure you want to delete ${commentMatch.key}?`, values.yes === true);
119
226
  const presented = presentComment(commentMatch);
@@ -124,11 +231,11 @@ Examples:
124
231
  comment.delete({ commentKey: commentMatch.key }, currentActor());
125
232
  output(presented, (entry) => `Deleted ${entry.key}`);
126
233
  },
127
- help: `Usage: zinn task comment delete <comment-key> [--yes]
234
+ help: `${generateCommandUsage("task comment delete", commentInputs.delete)}
128
235
 
129
236
  Permanently delete a comment after confirmation.
130
237
  Use --yes to skip the confirmation prompt, for example in scripts or with --json.
131
238
 
132
- Example: zinn task comment delete MDR-1#2`,
239
+ Example: zinn task comment delete 'MDR-1#2'`,
133
240
  },
134
241
  };
@@ -0,0 +1,21 @@
1
+ export declare const infoCommand: {
2
+ summary: string;
3
+ effects: {
4
+ domain: "none";
5
+ storage: "inspect";
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[]) => void;
20
+ help: string;
21
+ };
@@ -0,0 +1,29 @@
1
+ import { jsonResult } from "../results.js";
2
+ import { parseArgs } from "node:util";
3
+ import { info } from "@zinn-dev/core";
4
+ import { generateCommandUsage, noInput } from "../input.js";
5
+ import { output, validatePositionals } from "../lib.js";
6
+ import { formatInfo, presentInfo } from "../presentation/info-presentation.js";
7
+ export const infoCommand = {
8
+ summary: "Show the selected store, settings sources, database schema state and CLI, core and runtime versions.",
9
+ effects: { domain: "none", storage: "inspect" },
10
+ confirmation: { kind: "none" },
11
+ input: noInput,
12
+ results: [jsonResult("Info")],
13
+ run: (args) => {
14
+ const { positionals } = parseArgs({
15
+ options: noInput.options,
16
+ args,
17
+ strict: true,
18
+ allowPositionals: true,
19
+ });
20
+ validatePositionals(positionals, noInput.forms[0]);
21
+ output(presentInfo(info.get()), formatInfo);
22
+ },
23
+ help: `${generateCommandUsage("info", noInput)}
24
+
25
+ Show the selected store, settings sources, database schema state and CLI, core and runtime versions.
26
+
27
+ Reports unusable settings and database errors and exits successfully.
28
+ SQLite may perform its normal file housekeeping when this command is triggered.`,
29
+ };
@@ -1,17 +1,182 @@
1
1
  export declare const labelRouter: {
2
2
  create: {
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 description: {
14
+ readonly type: "string";
15
+ readonly value: {
16
+ readonly kind: "text";
17
+ readonly name: "text";
18
+ };
19
+ };
20
+ readonly color: {
21
+ readonly type: "string";
22
+ readonly value: {
23
+ readonly kind: "enum";
24
+ readonly name: "color";
25
+ readonly choices: ("red" | "green" | "yellow" | "blue" | "magenta" | "cyan" | "white" | "gray")[];
26
+ };
27
+ };
28
+ };
29
+ readonly forms: readonly [{
30
+ readonly id: "default";
31
+ readonly positionals: readonly [{
32
+ readonly name: "name";
33
+ readonly min: 1;
34
+ readonly max: 1;
35
+ readonly value: {
36
+ readonly kind: "name";
37
+ };
38
+ }];
39
+ }];
40
+ readonly constraints: readonly [];
41
+ };
42
+ results: import("../results.js").CommandResult[];
3
43
  run: (args: string[]) => void;
4
44
  help: string;
5
45
  };
6
46
  list: {
47
+ summary: string;
48
+ effects: {
49
+ domain: "read";
50
+ storage: "normal-open";
51
+ };
52
+ confirmation: {
53
+ kind: "none";
54
+ };
55
+ input: {
56
+ readonly options: {};
57
+ readonly forms: readonly [{
58
+ readonly id: "default";
59
+ readonly positionals: readonly [];
60
+ }];
61
+ readonly constraints: readonly [];
62
+ };
63
+ results: import("../results.js").CommandResult[];
7
64
  run: (args: string[]) => void;
8
65
  help: string;
9
66
  };
10
67
  edit: {
68
+ summary: string;
69
+ effects: {
70
+ domain: "update";
71
+ storage: "normal-open";
72
+ };
73
+ confirmation: {
74
+ kind: "none";
75
+ };
76
+ input: {
77
+ readonly options: {
78
+ readonly color: {
79
+ readonly type: "string";
80
+ readonly value: {
81
+ readonly kind: "enum";
82
+ readonly name: "color";
83
+ readonly choices: ("red" | "green" | "yellow" | "blue" | "magenta" | "cyan" | "white" | "gray")[];
84
+ };
85
+ };
86
+ readonly append: {
87
+ readonly type: "boolean";
88
+ };
89
+ readonly replacing: {
90
+ readonly type: "string";
91
+ readonly value: {
92
+ readonly kind: "text";
93
+ readonly name: "old";
94
+ };
95
+ };
96
+ readonly all: {
97
+ readonly type: "boolean";
98
+ };
99
+ readonly name: {
100
+ readonly type: "string";
101
+ readonly value: {
102
+ readonly kind: "text";
103
+ readonly name: "text";
104
+ };
105
+ };
106
+ readonly description: {
107
+ readonly type: "string";
108
+ readonly value: {
109
+ readonly kind: "text";
110
+ readonly name: "text";
111
+ };
112
+ };
113
+ };
114
+ readonly forms: readonly [{
115
+ readonly id: "default";
116
+ readonly positionals: readonly [{
117
+ readonly name: "name";
118
+ readonly min: 1;
119
+ readonly max: 1;
120
+ readonly value: {
121
+ readonly kind: "name";
122
+ };
123
+ }];
124
+ }];
125
+ readonly constraints: readonly [{
126
+ readonly kind: "exclusive";
127
+ readonly members: readonly ["option:append", "option:replacing"];
128
+ }, {
129
+ readonly kind: "requires";
130
+ readonly input: "option:append";
131
+ readonly requires: `option:${string}`;
132
+ }, {
133
+ readonly kind: "requires";
134
+ readonly input: "option:replacing";
135
+ readonly requires: `option:${string}`;
136
+ }, {
137
+ readonly kind: "requires";
138
+ readonly input: "option:all";
139
+ readonly requires: "option:replacing";
140
+ }, {
141
+ readonly kind: "atLeastOne";
142
+ readonly members: `option:${string}`[];
143
+ }];
144
+ readonly notes: readonly [string];
145
+ };
146
+ results: import("../results.js").CommandResult[];
11
147
  run: (args: string[]) => void;
12
148
  help: string;
13
149
  };
14
150
  delete: {
151
+ summary: string;
152
+ effects: {
153
+ domain: "delete";
154
+ storage: "normal-open";
155
+ };
156
+ confirmation: {
157
+ kind: "prompt";
158
+ description: string;
159
+ };
160
+ input: {
161
+ readonly options: {
162
+ readonly yes: {
163
+ readonly type: "boolean";
164
+ };
165
+ };
166
+ readonly forms: readonly [{
167
+ readonly id: "default";
168
+ readonly positionals: readonly [{
169
+ readonly name: "name";
170
+ readonly min: 1;
171
+ readonly max: 1;
172
+ readonly value: {
173
+ readonly kind: "name";
174
+ };
175
+ }];
176
+ }];
177
+ readonly constraints: readonly [];
178
+ };
179
+ results: import("../results.js").CommandResult[];
15
180
  run: (args: string[]) => Promise<void>;
16
181
  help: string;
17
182
  };