@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.
- package/README.md +11 -561
- package/index.js +24 -13
- package/package.json +8 -2
- package/skills/zinn/SKILL.md +63 -0
- package/src/actor.d.ts +2 -1
- package/src/actor.js +78 -11
- package/src/capabilities-schema.d.ts +162 -0
- package/src/capabilities-schema.js +59 -0
- package/src/capabilities.d.ts +29 -0
- package/src/capabilities.js +30 -0
- package/src/column-hint.d.ts +3 -0
- package/src/column-hint.js +225 -0
- package/src/database.d.ts +1 -1
- package/src/database.js +5 -8
- package/src/errors.d.ts +158 -0
- package/src/errors.js +226 -0
- package/src/input.d.ts +227 -0
- package/src/input.js +192 -0
- package/src/lib.d.ts +71 -8
- package/src/lib.js +275 -18
- package/src/presentation/activity-presentation.d.ts +9 -1
- package/src/presentation/activity-presentation.js +120 -23
- package/src/presentation/capabilities-presentation.d.ts +2 -0
- package/src/presentation/capabilities-presentation.js +3 -0
- package/src/presentation/column-presentation.d.ts +9 -5
- 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/info-presentation.d.ts +4 -0
- package/src/presentation/info-presentation.js +96 -0
- 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 +4 -12
- package/src/presentation/task-presentation.js +22 -18
- package/src/project.d.ts +18 -3
- package/src/project.js +37 -12
- package/src/result-schemas.d.ts +1194 -0
- package/src/result-schemas.js +279 -0
- package/src/results.d.ts +40 -0
- package/src/results.js +36 -0
- package/src/routes/activity-router.d.ts +104 -0
- package/src/routes/activity-router.js +155 -34
- package/src/routes/aliases.d.ts +2 -0
- package/src/routes/aliases.js +11 -0
- package/src/routes/backup-router.d.ts +17 -0
- package/src/routes/backup-router.js +15 -3
- package/src/routes/capabilities-router.d.ts +21 -0
- package/src/routes/capabilities-router.js +34 -0
- package/src/routes/comment-router.d.ts +210 -8
- package/src/routes/comment-router.js +189 -65
- package/src/routes/info-router.d.ts +21 -0
- package/src/routes/info-router.js +29 -0
- package/src/routes/label-router.d.ts +217 -2
- package/src/routes/label-router.js +189 -62
- package/src/routes/migrate-router.d.ts +17 -0
- package/src/routes/migrate-router.js +17 -5
- package/src/routes/project-router.d.ts +373 -2
- package/src/routes/project-router.js +322 -132
- package/src/routes/reindex-router.d.ts +17 -0
- package/src/routes/reindex-router.js +15 -3
- package/src/routes/relation-router.d.ts +110 -14
- package/src/routes/relation-router.js +122 -79
- package/src/routes/restore-router.d.ts +29 -0
- package/src/routes/restore-router.js +31 -14
- package/src/routes/router.d.ts +1 -1
- package/src/routes/router.js +80 -32
- package/src/routes/routes.d.ts +1781 -8
- package/src/routes/routes.js +9 -1
- package/src/routes/task-router.d.ts +946 -4
- package/src/routes/task-router.js +524 -260
- package/src/routes/whoami-router.d.ts +21 -0
- package/src/routes/whoami-router.js +31 -0
- package/src/text-edit.d.ts +28 -6
- package/src/text-edit.js +40 -23
- package/src/text-input.d.ts +47 -0
- package/src/text-input.js +187 -0
- package/src/types.d.ts +37 -0
- package/src/types.js +9 -1
|
@@ -1,38 +1,409 @@
|
|
|
1
1
|
export declare const projectRouter: {
|
|
2
2
|
create: {
|
|
3
|
-
|
|
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 name: {
|
|
14
|
+
readonly type: "string";
|
|
15
|
+
readonly value: {
|
|
16
|
+
readonly kind: "text";
|
|
17
|
+
readonly name: "text";
|
|
18
|
+
};
|
|
19
|
+
};
|
|
20
|
+
readonly description: {
|
|
21
|
+
readonly type: "string";
|
|
22
|
+
readonly value: {
|
|
23
|
+
readonly kind: "text";
|
|
24
|
+
readonly name: "text";
|
|
25
|
+
};
|
|
26
|
+
};
|
|
27
|
+
readonly "description-file": {
|
|
28
|
+
readonly type: "string";
|
|
29
|
+
readonly value: {
|
|
30
|
+
readonly kind: "path";
|
|
31
|
+
readonly name: "path";
|
|
32
|
+
readonly description: "A UTF-8 file, or \"-\" for stdin. Trailing line breaks are dropped; empty or blank input is an error.";
|
|
33
|
+
};
|
|
34
|
+
};
|
|
35
|
+
};
|
|
36
|
+
readonly forms: readonly [{
|
|
37
|
+
readonly id: "default";
|
|
38
|
+
readonly positionals: readonly [{
|
|
39
|
+
readonly name: "project-key";
|
|
40
|
+
readonly min: 1;
|
|
41
|
+
readonly max: 1;
|
|
42
|
+
readonly value: {
|
|
43
|
+
readonly kind: "project-key";
|
|
44
|
+
};
|
|
45
|
+
}];
|
|
46
|
+
}];
|
|
47
|
+
readonly constraints: readonly [{
|
|
48
|
+
readonly kind: "exclusive";
|
|
49
|
+
readonly members: readonly ["option:description" | "option:text", "option:description-file" | "option:text-file"];
|
|
50
|
+
}];
|
|
51
|
+
};
|
|
52
|
+
results: import("../results.js").CommandResult[];
|
|
53
|
+
run: (args: Array<string>) => Promise<void>;
|
|
4
54
|
help: string;
|
|
5
55
|
};
|
|
6
56
|
list: {
|
|
57
|
+
summary: string;
|
|
58
|
+
effects: {
|
|
59
|
+
domain: "read";
|
|
60
|
+
storage: "normal-open";
|
|
61
|
+
};
|
|
62
|
+
confirmation: {
|
|
63
|
+
kind: "none";
|
|
64
|
+
};
|
|
65
|
+
input: {
|
|
66
|
+
readonly options: {};
|
|
67
|
+
readonly forms: readonly [{
|
|
68
|
+
readonly id: "default";
|
|
69
|
+
readonly positionals: readonly [];
|
|
70
|
+
}];
|
|
71
|
+
readonly constraints: readonly [];
|
|
72
|
+
};
|
|
73
|
+
results: import("../results.js").CommandResult[];
|
|
7
74
|
run: (args: Array<string>) => void;
|
|
8
75
|
help: string;
|
|
9
76
|
};
|
|
10
77
|
view: {
|
|
78
|
+
summary: string;
|
|
79
|
+
effects: {
|
|
80
|
+
domain: "read";
|
|
81
|
+
storage: "normal-open";
|
|
82
|
+
};
|
|
83
|
+
confirmation: {
|
|
84
|
+
kind: "none";
|
|
85
|
+
};
|
|
86
|
+
input: {
|
|
87
|
+
readonly options: {};
|
|
88
|
+
readonly forms: readonly [{
|
|
89
|
+
readonly id: "default";
|
|
90
|
+
readonly positionals: readonly [{
|
|
91
|
+
readonly name: "project-key";
|
|
92
|
+
readonly min: 0;
|
|
93
|
+
readonly max: 1;
|
|
94
|
+
readonly value: {
|
|
95
|
+
readonly kind: "project-key";
|
|
96
|
+
};
|
|
97
|
+
}];
|
|
98
|
+
}];
|
|
99
|
+
readonly constraints: readonly [];
|
|
100
|
+
readonly notes: readonly ["Omit the project key to use defaultProject from settings; otherwise a project key is required."];
|
|
101
|
+
};
|
|
102
|
+
results: import("../results.js").CommandResult[];
|
|
11
103
|
run: (args: Array<string>) => void;
|
|
12
104
|
help: string;
|
|
13
105
|
};
|
|
14
106
|
edit: {
|
|
15
|
-
|
|
107
|
+
summary: string;
|
|
108
|
+
effects: {
|
|
109
|
+
domain: "update";
|
|
110
|
+
storage: "normal-open";
|
|
111
|
+
};
|
|
112
|
+
confirmation: {
|
|
113
|
+
kind: "none";
|
|
114
|
+
};
|
|
115
|
+
input: {
|
|
116
|
+
readonly options: {
|
|
117
|
+
readonly append: {
|
|
118
|
+
readonly type: "boolean";
|
|
119
|
+
};
|
|
120
|
+
readonly replacing: {
|
|
121
|
+
readonly type: "string";
|
|
122
|
+
readonly value: {
|
|
123
|
+
readonly kind: "text";
|
|
124
|
+
readonly name: "old";
|
|
125
|
+
};
|
|
126
|
+
};
|
|
127
|
+
readonly all: {
|
|
128
|
+
readonly type: "boolean";
|
|
129
|
+
};
|
|
130
|
+
readonly name: {
|
|
131
|
+
readonly type: "string";
|
|
132
|
+
readonly value: {
|
|
133
|
+
readonly kind: "text";
|
|
134
|
+
readonly name: "text";
|
|
135
|
+
};
|
|
136
|
+
};
|
|
137
|
+
readonly description: {
|
|
138
|
+
readonly type: "string";
|
|
139
|
+
readonly value: {
|
|
140
|
+
readonly kind: "text";
|
|
141
|
+
readonly name: "text";
|
|
142
|
+
};
|
|
143
|
+
};
|
|
144
|
+
readonly "description-file": {
|
|
145
|
+
readonly type: "string";
|
|
146
|
+
readonly value: {
|
|
147
|
+
readonly kind: "path";
|
|
148
|
+
readonly name: "path";
|
|
149
|
+
readonly description: "A UTF-8 file, or \"-\" for stdin. Trailing line breaks are dropped; empty or blank input is an error.";
|
|
150
|
+
};
|
|
151
|
+
};
|
|
152
|
+
};
|
|
153
|
+
readonly forms: readonly [{
|
|
154
|
+
readonly id: "default";
|
|
155
|
+
readonly positionals: readonly [{
|
|
156
|
+
readonly name: "project-key";
|
|
157
|
+
readonly min: 0;
|
|
158
|
+
readonly max: 1;
|
|
159
|
+
readonly value: {
|
|
160
|
+
readonly kind: "project-key";
|
|
161
|
+
};
|
|
162
|
+
}];
|
|
163
|
+
}];
|
|
164
|
+
readonly constraints: readonly [{
|
|
165
|
+
readonly kind: "exclusive";
|
|
166
|
+
readonly members: readonly ["option:description" | "option:text", "option:description-file" | "option:text-file"];
|
|
167
|
+
}, {
|
|
168
|
+
readonly kind: "exclusive";
|
|
169
|
+
readonly members: readonly ["option:append", "option:replacing"];
|
|
170
|
+
}, {
|
|
171
|
+
readonly kind: "requiresAny";
|
|
172
|
+
readonly input: "option:append";
|
|
173
|
+
readonly members: readonly ["option:description" | "option:text", "option:description-file" | "option:text-file"];
|
|
174
|
+
}, {
|
|
175
|
+
readonly kind: "requiresAny";
|
|
176
|
+
readonly input: "option:replacing";
|
|
177
|
+
readonly members: readonly ["option:description" | "option:text", "option:description-file" | "option:text-file"];
|
|
178
|
+
}, {
|
|
179
|
+
readonly kind: "requires";
|
|
180
|
+
readonly input: "option:all";
|
|
181
|
+
readonly requires: "option:replacing";
|
|
182
|
+
}, {
|
|
183
|
+
readonly kind: "atLeastOne";
|
|
184
|
+
readonly members: readonly ["option:name", "option:description", "option:description-file"];
|
|
185
|
+
}];
|
|
186
|
+
readonly notes: readonly ["Omit the project key to use defaultProject from settings; otherwise a project key is required.", string];
|
|
187
|
+
};
|
|
188
|
+
results: import("../results.js").CommandResult[];
|
|
189
|
+
run: (args: string[]) => Promise<void>;
|
|
16
190
|
help: string;
|
|
17
191
|
};
|
|
18
192
|
delete: {
|
|
193
|
+
summary: string;
|
|
194
|
+
effects: {
|
|
195
|
+
domain: "delete";
|
|
196
|
+
storage: "normal-open";
|
|
197
|
+
};
|
|
198
|
+
confirmation: {
|
|
199
|
+
kind: "project-delete";
|
|
200
|
+
description: string;
|
|
201
|
+
};
|
|
202
|
+
input: {
|
|
203
|
+
readonly options: {
|
|
204
|
+
readonly yes: {
|
|
205
|
+
readonly type: "boolean";
|
|
206
|
+
};
|
|
207
|
+
};
|
|
208
|
+
readonly forms: readonly [{
|
|
209
|
+
readonly id: "default";
|
|
210
|
+
readonly positionals: readonly [{
|
|
211
|
+
readonly name: "project-key";
|
|
212
|
+
readonly min: 0;
|
|
213
|
+
readonly max: 1;
|
|
214
|
+
readonly value: {
|
|
215
|
+
readonly kind: "project-key";
|
|
216
|
+
};
|
|
217
|
+
}];
|
|
218
|
+
}];
|
|
219
|
+
readonly constraints: readonly [];
|
|
220
|
+
readonly notes: readonly ["Omit the project key to use defaultProject from settings; otherwise a project key is required."];
|
|
221
|
+
};
|
|
222
|
+
results: import("../results.js").CommandResult[];
|
|
19
223
|
run: (args: Array<string>) => Promise<void>;
|
|
20
224
|
help: string;
|
|
21
225
|
};
|
|
22
226
|
column: {
|
|
23
227
|
create: {
|
|
228
|
+
summary: string;
|
|
229
|
+
effects: {
|
|
230
|
+
domain: "create";
|
|
231
|
+
storage: "normal-open";
|
|
232
|
+
};
|
|
233
|
+
confirmation: {
|
|
234
|
+
kind: "none";
|
|
235
|
+
};
|
|
236
|
+
input: {
|
|
237
|
+
readonly options: {};
|
|
238
|
+
readonly forms: readonly [{
|
|
239
|
+
readonly id: "default";
|
|
240
|
+
readonly positionals: readonly [{
|
|
241
|
+
readonly name: "project-key";
|
|
242
|
+
readonly min: 1;
|
|
243
|
+
readonly max: 1;
|
|
244
|
+
readonly value: {
|
|
245
|
+
readonly kind: "project-key";
|
|
246
|
+
};
|
|
247
|
+
}, {
|
|
248
|
+
readonly name: "column-name";
|
|
249
|
+
readonly min: 1;
|
|
250
|
+
readonly max: 1;
|
|
251
|
+
readonly value: {
|
|
252
|
+
readonly kind: "column-name";
|
|
253
|
+
};
|
|
254
|
+
}];
|
|
255
|
+
}];
|
|
256
|
+
readonly constraints: readonly [];
|
|
257
|
+
};
|
|
258
|
+
results: import("../results.js").CommandResult[];
|
|
24
259
|
run: (args: Array<string>) => void;
|
|
25
260
|
help: string;
|
|
26
261
|
};
|
|
27
262
|
list: {
|
|
263
|
+
summary: string;
|
|
264
|
+
effects: {
|
|
265
|
+
domain: "read";
|
|
266
|
+
storage: "normal-open";
|
|
267
|
+
};
|
|
268
|
+
confirmation: {
|
|
269
|
+
kind: "none";
|
|
270
|
+
};
|
|
271
|
+
input: {
|
|
272
|
+
readonly options: {};
|
|
273
|
+
readonly forms: readonly [{
|
|
274
|
+
readonly id: "default";
|
|
275
|
+
readonly positionals: readonly [{
|
|
276
|
+
readonly name: "project-key";
|
|
277
|
+
readonly min: 0;
|
|
278
|
+
readonly max: 1;
|
|
279
|
+
readonly value: {
|
|
280
|
+
readonly kind: "project-key";
|
|
281
|
+
};
|
|
282
|
+
}];
|
|
283
|
+
}];
|
|
284
|
+
readonly constraints: readonly [];
|
|
285
|
+
readonly notes: readonly ["Omit the project key to use defaultProject from settings; otherwise a project key is required."];
|
|
286
|
+
};
|
|
287
|
+
results: import("../results.js").CommandResult[];
|
|
28
288
|
run: (args: Array<string>) => void;
|
|
29
289
|
help: string;
|
|
30
290
|
};
|
|
31
291
|
edit: {
|
|
292
|
+
summary: string;
|
|
293
|
+
effects: {
|
|
294
|
+
domain: "update";
|
|
295
|
+
storage: "normal-open";
|
|
296
|
+
};
|
|
297
|
+
confirmation: {
|
|
298
|
+
kind: "none";
|
|
299
|
+
};
|
|
300
|
+
input: {
|
|
301
|
+
readonly options: {
|
|
302
|
+
readonly name: {
|
|
303
|
+
readonly type: "string";
|
|
304
|
+
readonly required: true;
|
|
305
|
+
readonly value: {
|
|
306
|
+
readonly kind: "text";
|
|
307
|
+
readonly name: "text";
|
|
308
|
+
};
|
|
309
|
+
};
|
|
310
|
+
};
|
|
311
|
+
readonly forms: readonly [{
|
|
312
|
+
readonly id: "default";
|
|
313
|
+
readonly positionals: readonly [{
|
|
314
|
+
readonly name: "project-key";
|
|
315
|
+
readonly min: 1;
|
|
316
|
+
readonly max: 1;
|
|
317
|
+
readonly value: {
|
|
318
|
+
readonly kind: "project-key";
|
|
319
|
+
};
|
|
320
|
+
}, {
|
|
321
|
+
readonly name: "column-name";
|
|
322
|
+
readonly min: 1;
|
|
323
|
+
readonly max: 1;
|
|
324
|
+
readonly value: {
|
|
325
|
+
readonly kind: "column-name";
|
|
326
|
+
};
|
|
327
|
+
}];
|
|
328
|
+
}];
|
|
329
|
+
readonly constraints: readonly [];
|
|
330
|
+
};
|
|
331
|
+
results: import("../results.js").CommandResult[];
|
|
32
332
|
run: (args: Array<string>) => void;
|
|
33
333
|
help: string;
|
|
34
334
|
};
|
|
35
335
|
order: {
|
|
336
|
+
summary: string;
|
|
337
|
+
effects: {
|
|
338
|
+
domain: "update";
|
|
339
|
+
storage: "normal-open";
|
|
340
|
+
};
|
|
341
|
+
confirmation: {
|
|
342
|
+
kind: "none";
|
|
343
|
+
};
|
|
344
|
+
input: {
|
|
345
|
+
readonly options: {};
|
|
346
|
+
readonly forms: readonly [{
|
|
347
|
+
readonly id: "absolute";
|
|
348
|
+
readonly positionals: readonly [{
|
|
349
|
+
readonly name: "project-key";
|
|
350
|
+
readonly min: 1;
|
|
351
|
+
readonly max: 1;
|
|
352
|
+
readonly value: {
|
|
353
|
+
readonly kind: "project-key";
|
|
354
|
+
};
|
|
355
|
+
}, {
|
|
356
|
+
readonly name: "column-name";
|
|
357
|
+
readonly min: 1;
|
|
358
|
+
readonly max: 1;
|
|
359
|
+
readonly value: {
|
|
360
|
+
readonly kind: "column-name";
|
|
361
|
+
};
|
|
362
|
+
}, {
|
|
363
|
+
readonly name: "direction";
|
|
364
|
+
readonly min: 1;
|
|
365
|
+
readonly max: 1;
|
|
366
|
+
readonly value: {
|
|
367
|
+
readonly kind: "enum";
|
|
368
|
+
readonly choices: ("first" | "previous" | "next" | "last")[];
|
|
369
|
+
};
|
|
370
|
+
}];
|
|
371
|
+
}, {
|
|
372
|
+
readonly id: "relative";
|
|
373
|
+
readonly positionals: readonly [{
|
|
374
|
+
readonly name: "project-key";
|
|
375
|
+
readonly min: 1;
|
|
376
|
+
readonly max: 1;
|
|
377
|
+
readonly value: {
|
|
378
|
+
readonly kind: "project-key";
|
|
379
|
+
};
|
|
380
|
+
}, {
|
|
381
|
+
readonly name: "column-name";
|
|
382
|
+
readonly min: 1;
|
|
383
|
+
readonly max: 1;
|
|
384
|
+
readonly value: {
|
|
385
|
+
readonly kind: "column-name";
|
|
386
|
+
};
|
|
387
|
+
}, {
|
|
388
|
+
readonly name: "direction";
|
|
389
|
+
readonly min: 1;
|
|
390
|
+
readonly max: 1;
|
|
391
|
+
readonly value: {
|
|
392
|
+
readonly kind: "enum";
|
|
393
|
+
readonly choices: ("before" | "after")[];
|
|
394
|
+
};
|
|
395
|
+
}, {
|
|
396
|
+
readonly name: "target-column-name";
|
|
397
|
+
readonly min: 1;
|
|
398
|
+
readonly max: 1;
|
|
399
|
+
readonly value: {
|
|
400
|
+
readonly kind: "column-name";
|
|
401
|
+
};
|
|
402
|
+
}];
|
|
403
|
+
}];
|
|
404
|
+
readonly constraints: readonly [];
|
|
405
|
+
};
|
|
406
|
+
results: import("../results.js").CommandResult[];
|
|
36
407
|
run: (args: Array<string>) => void;
|
|
37
408
|
help: string;
|
|
38
409
|
};
|