@vltpkg/cli-sdk 1.0.0-rc.23 → 1.0.0-rc.24

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 (103) hide show
  1. package/dist/commands/bugs.d.ts +17 -0
  2. package/dist/commands/bugs.js +163 -0
  3. package/dist/commands/build.d.ts +24 -0
  4. package/dist/commands/build.js +101 -0
  5. package/dist/commands/cache.d.ts +64 -0
  6. package/dist/commands/cache.js +256 -0
  7. package/dist/commands/ci.d.ts +10 -0
  8. package/dist/commands/ci.js +40 -0
  9. package/dist/commands/config.d.ts +5 -0
  10. package/dist/commands/config.js +429 -0
  11. package/dist/commands/create.d.ts +8 -0
  12. package/dist/commands/create.js +102 -0
  13. package/dist/commands/docs.d.ts +17 -0
  14. package/dist/commands/docs.js +153 -0
  15. package/dist/commands/exec-cache.d.ts +48 -0
  16. package/dist/commands/exec-cache.js +145 -0
  17. package/dist/commands/exec-local.d.ts +5 -0
  18. package/dist/commands/exec-local.js +46 -0
  19. package/dist/commands/exec.d.ts +8 -0
  20. package/dist/commands/exec.js +161 -0
  21. package/dist/commands/help.d.ts +3 -0
  22. package/dist/commands/help.js +43 -0
  23. package/dist/commands/init.d.ts +7 -0
  24. package/dist/commands/init.js +116 -0
  25. package/dist/commands/install/reporter.d.ts +10 -0
  26. package/dist/commands/install/reporter.js +93 -0
  27. package/dist/commands/install.d.ts +27 -0
  28. package/dist/commands/install.js +80 -0
  29. package/dist/commands/list.d.ts +17 -0
  30. package/dist/commands/list.js +197 -0
  31. package/dist/commands/login.d.ts +3 -0
  32. package/dist/commands/login.js +22 -0
  33. package/dist/commands/logout.d.ts +3 -0
  34. package/dist/commands/logout.js +22 -0
  35. package/dist/commands/pack.d.ts +31 -0
  36. package/dist/commands/pack.js +205 -0
  37. package/dist/commands/ping.d.ts +17 -0
  38. package/dist/commands/ping.js +114 -0
  39. package/dist/commands/pkg.d.ts +6 -0
  40. package/dist/commands/pkg.js +232 -0
  41. package/dist/commands/publish.d.ts +21 -0
  42. package/dist/commands/publish.js +282 -0
  43. package/dist/commands/query.d.ts +18 -0
  44. package/dist/commands/query.js +216 -0
  45. package/dist/commands/repo.d.ts +17 -0
  46. package/dist/commands/repo.js +157 -0
  47. package/dist/commands/run-exec.d.ts +5 -0
  48. package/dist/commands/run-exec.js +40 -0
  49. package/dist/commands/run.d.ts +5 -0
  50. package/dist/commands/run.js +62 -0
  51. package/dist/commands/token.d.ts +3 -0
  52. package/dist/commands/token.js +39 -0
  53. package/dist/commands/uninstall.d.ts +15 -0
  54. package/dist/commands/uninstall.js +39 -0
  55. package/dist/commands/update.d.ts +13 -0
  56. package/dist/commands/update.js +46 -0
  57. package/dist/commands/version.d.ts +25 -0
  58. package/dist/commands/version.js +252 -0
  59. package/dist/commands/view.d.ts +22 -0
  60. package/dist/commands/view.js +334 -0
  61. package/dist/commands/whoami.d.ts +12 -0
  62. package/dist/commands/whoami.js +28 -0
  63. package/dist/config/definition.d.ts +407 -0
  64. package/dist/config/definition.js +684 -0
  65. package/dist/config/index.d.ts +218 -0
  66. package/dist/config/index.js +488 -0
  67. package/dist/config/merge.d.ts +3 -0
  68. package/dist/config/merge.js +27 -0
  69. package/dist/config/usage.d.ts +18 -0
  70. package/dist/config/usage.js +39 -0
  71. package/dist/custom-help.d.ts +8 -0
  72. package/dist/custom-help.js +419 -0
  73. package/dist/exec-command.d.ts +52 -0
  74. package/dist/exec-command.js +313 -0
  75. package/dist/index.d.ts +3 -0
  76. package/dist/index.js +72 -0
  77. package/dist/load-command.d.ts +15 -0
  78. package/dist/load-command.js +20 -0
  79. package/dist/mermaid-image-view.d.ts +18 -0
  80. package/dist/mermaid-image-view.js +36 -0
  81. package/dist/output.d.ts +20 -0
  82. package/dist/output.js +125 -0
  83. package/dist/pack-tarball.d.ts +23 -0
  84. package/dist/pack-tarball.js +256 -0
  85. package/dist/parse-add-remove-args.d.ts +28 -0
  86. package/dist/parse-add-remove-args.js +103 -0
  87. package/dist/print-err.d.ts +13 -0
  88. package/dist/print-err.js +193 -0
  89. package/dist/query-diff-files.d.ts +17 -0
  90. package/dist/query-diff-files.js +63 -0
  91. package/dist/query-host-contexts.d.ts +15 -0
  92. package/dist/query-host-contexts.js +136 -0
  93. package/dist/read-password.d.ts +7 -0
  94. package/dist/read-password.js +32 -0
  95. package/dist/read-project-folders.d.ts +17 -0
  96. package/dist/read-project-folders.js +100 -0
  97. package/dist/reload-config.d.ts +2 -0
  98. package/dist/reload-config.js +11 -0
  99. package/dist/render-mermaid.d.ts +22 -0
  100. package/dist/render-mermaid.js +68 -0
  101. package/dist/view.d.ts +29 -0
  102. package/dist/view.js +30 -0
  103. package/package.json +25 -25
@@ -0,0 +1,407 @@
1
+ export declare const defaultView: string;
2
+ export declare const defaultEditor: () => string;
3
+ /**
4
+ * Command aliases mapped to their canonical names
5
+ */
6
+ export declare const commands: {
7
+ readonly i: "install";
8
+ readonly add: "install";
9
+ readonly rm: "uninstall";
10
+ readonly u: "update";
11
+ readonly p: "pkg";
12
+ readonly pub: "publish";
13
+ readonly q: "query";
14
+ readonly b: "build";
15
+ readonly r: "run";
16
+ readonly 'run-script': "run";
17
+ readonly rx: "run-exec";
18
+ readonly x: "exec";
19
+ readonly xl: "exec-local";
20
+ readonly h: "help";
21
+ readonly '?': "help";
22
+ readonly info: "view";
23
+ readonly ls: "list";
24
+ readonly show: "view";
25
+ readonly xc: "exec-cache";
26
+ readonly bugs: "bugs";
27
+ readonly build: "build";
28
+ readonly cache: "cache";
29
+ readonly ci: "ci";
30
+ readonly config: "config";
31
+ readonly create: "create";
32
+ readonly docs: "docs";
33
+ readonly exec: "exec";
34
+ readonly 'exec-local': "exec-local";
35
+ readonly help: "help";
36
+ readonly init: "init";
37
+ readonly install: "install";
38
+ readonly login: "login";
39
+ readonly logout: "logout";
40
+ readonly list: "list";
41
+ readonly pack: "pack";
42
+ readonly ping: "ping";
43
+ readonly pkg: "pkg";
44
+ readonly publish: "publish";
45
+ readonly query: "query";
46
+ readonly repo: "repo";
47
+ readonly 'run-exec': "run-exec";
48
+ readonly run: "run";
49
+ readonly token: "token";
50
+ readonly uninstall: "uninstall";
51
+ readonly update: "update";
52
+ readonly 'exec-cache': "exec-cache";
53
+ readonly version: "version";
54
+ readonly view: "view";
55
+ readonly whoami: "whoami";
56
+ };
57
+ /**
58
+ * Canonical command names mapped to an array of its aliases
59
+ */
60
+ export declare const commandAliases: Map<string, string[]>;
61
+ export type Commands = typeof commands;
62
+ export declare const getCommand: (s?: string) => Commands[keyof Commands] | undefined;
63
+ /**
64
+ * Fields that are parsed as a set of key=value pairs
65
+ */
66
+ export declare const recordFields: readonly ["git-hosts", "registries", "git-host-archives", "scope-registries", "jsr-registries"];
67
+ export type RecordField = (typeof recordFields)[number];
68
+ export declare const isRecordField: (s: string) => s is RecordField;
69
+ export declare const definition: import("jackspeak").Jack<{
70
+ color: {
71
+ short: string;
72
+ description: string;
73
+ };
74
+ 'no-color': {
75
+ short: string;
76
+ description: string;
77
+ };
78
+ } & {
79
+ color: import("jackspeak").ConfigOption<"boolean", false, undefined>;
80
+ 'no-color': import("jackspeak").ConfigOption<"boolean", false, undefined>;
81
+ } & {
82
+ registry: {
83
+ hint: string;
84
+ default: string;
85
+ description: string;
86
+ };
87
+ } & {
88
+ registry: import("jackspeak").ConfigOption<"string", false, readonly string[] | undefined>;
89
+ } & {
90
+ registries: {
91
+ hint: string;
92
+ description: string;
93
+ };
94
+ 'scope-registries': {
95
+ hint: string;
96
+ description: string;
97
+ };
98
+ 'jsr-registries': {
99
+ hint: string;
100
+ description: string;
101
+ };
102
+ 'git-hosts': {
103
+ hint: string;
104
+ short: string;
105
+ description: string;
106
+ };
107
+ 'git-host-archives': {
108
+ hint: string;
109
+ short: string;
110
+ description: string;
111
+ };
112
+ } & {
113
+ registries: import("jackspeak").ConfigOption<"string", true, readonly string[] | undefined>;
114
+ 'scope-registries': import("jackspeak").ConfigOption<"string", true, readonly string[] | undefined>;
115
+ 'jsr-registries': import("jackspeak").ConfigOption<"string", true, readonly string[] | undefined>;
116
+ 'git-hosts': import("jackspeak").ConfigOption<"string", true, readonly string[] | undefined>;
117
+ 'git-host-archives': import("jackspeak").ConfigOption<"string", true, readonly string[] | undefined>;
118
+ } & {
119
+ cache: {
120
+ hint: string;
121
+ description: string;
122
+ default: string;
123
+ };
124
+ tag: {
125
+ description: string;
126
+ default: string;
127
+ };
128
+ before: {
129
+ hint: string;
130
+ description: string;
131
+ };
132
+ os: {
133
+ description: string;
134
+ default: NodeJS.Platform;
135
+ };
136
+ arch: {
137
+ description: string;
138
+ default: NodeJS.Architecture;
139
+ };
140
+ libc: {
141
+ description: string;
142
+ };
143
+ 'node-version': {
144
+ hint: string;
145
+ description: string;
146
+ default: string;
147
+ };
148
+ } & {
149
+ cache: import("jackspeak").ConfigOption<"string", false, readonly string[] | undefined>;
150
+ tag: import("jackspeak").ConfigOption<"string", false, readonly string[] | undefined>;
151
+ before: import("jackspeak").ConfigOption<"string", false, readonly string[] | undefined>;
152
+ os: import("jackspeak").ConfigOption<"string", false, readonly string[] | undefined>;
153
+ arch: import("jackspeak").ConfigOption<"string", false, readonly string[] | undefined>;
154
+ libc: import("jackspeak").ConfigOption<"string", false, readonly string[] | undefined>;
155
+ 'node-version': import("jackspeak").ConfigOption<"string", false, readonly string[] | undefined>;
156
+ } & {
157
+ 'git-shallow': {
158
+ description: string;
159
+ };
160
+ } & {
161
+ 'git-shallow': import("jackspeak").ConfigOption<"boolean", false, undefined>;
162
+ } & {
163
+ 'fetch-retries': {
164
+ hint: string;
165
+ description: string;
166
+ default: number;
167
+ };
168
+ 'fetch-retry-factor': {
169
+ hint: string;
170
+ description: string;
171
+ default: number;
172
+ };
173
+ 'fetch-retry-mintimeout': {
174
+ hint: string;
175
+ description: string;
176
+ default: number;
177
+ };
178
+ 'fetch-retry-maxtimeout': {
179
+ hint: string;
180
+ description: string;
181
+ default: number;
182
+ };
183
+ 'stale-while-revalidate-factor': {
184
+ hint: string;
185
+ default: number;
186
+ description: string;
187
+ };
188
+ } & {
189
+ 'fetch-retries': import("jackspeak").ConfigOption<"number", false, readonly number[] | undefined>;
190
+ 'fetch-retry-factor': import("jackspeak").ConfigOption<"number", false, readonly number[] | undefined>;
191
+ 'fetch-retry-mintimeout': import("jackspeak").ConfigOption<"number", false, readonly number[] | undefined>;
192
+ 'fetch-retry-maxtimeout': import("jackspeak").ConfigOption<"number", false, readonly number[] | undefined>;
193
+ 'stale-while-revalidate-factor': import("jackspeak").ConfigOption<"number", false, readonly number[] | undefined>;
194
+ } & {
195
+ identity: {
196
+ short: string;
197
+ validate: (v: unknown) => boolean;
198
+ hint: string;
199
+ default: string;
200
+ description: string;
201
+ };
202
+ } & {
203
+ identity: import("jackspeak").ConfigOption<"string", false, readonly string[] | undefined>;
204
+ } & {
205
+ workspace: {
206
+ hint: string;
207
+ short: string;
208
+ description: string;
209
+ };
210
+ 'workspace-group': {
211
+ description: string;
212
+ };
213
+ } & {
214
+ workspace: import("jackspeak").ConfigOption<"string", true, readonly string[] | undefined>;
215
+ 'workspace-group': import("jackspeak").ConfigOption<"string", true, readonly string[] | undefined>;
216
+ } & {
217
+ scope: {
218
+ short: string;
219
+ hint: string;
220
+ description: string;
221
+ };
222
+ target: {
223
+ short: string;
224
+ hint: string;
225
+ description: string;
226
+ };
227
+ } & {
228
+ scope: import("jackspeak").ConfigOption<"string", false, readonly string[] | undefined>;
229
+ target: import("jackspeak").ConfigOption<"string", false, readonly string[] | undefined>;
230
+ } & {
231
+ 'if-present': {
232
+ description: string;
233
+ };
234
+ } & {
235
+ 'if-present': import("jackspeak").ConfigOption<"boolean", false, undefined>;
236
+ } & {
237
+ recursive: {
238
+ short: string;
239
+ description: string;
240
+ };
241
+ bail: {
242
+ short: string;
243
+ description: string;
244
+ default: true;
245
+ };
246
+ 'no-bail': {
247
+ short: string;
248
+ description: string;
249
+ };
250
+ } & {
251
+ recursive: import("jackspeak").ConfigOption<"boolean", false, undefined>;
252
+ bail: import("jackspeak").ConfigOption<"boolean", false, undefined>;
253
+ 'no-bail': import("jackspeak").ConfigOption<"boolean", false, undefined>;
254
+ } & {
255
+ config: {
256
+ hint: string;
257
+ description: string;
258
+ validOptions: readonly ["all", "user", "project"];
259
+ default: string;
260
+ };
261
+ editor: {
262
+ hint: string;
263
+ description: string;
264
+ default: string;
265
+ };
266
+ 'script-shell': {
267
+ hint: string;
268
+ description: string;
269
+ };
270
+ 'fallback-command': {
271
+ hint: string;
272
+ description: string;
273
+ default: string;
274
+ validOptions: string[];
275
+ };
276
+ } & {
277
+ config: import("jackspeak").ConfigOption<"string", false, readonly string[] | undefined>;
278
+ editor: import("jackspeak").ConfigOption<"string", false, readonly string[] | undefined>;
279
+ 'script-shell': import("jackspeak").ConfigOption<"string", false, readonly string[] | undefined>;
280
+ 'fallback-command': import("jackspeak").ConfigOption<"string", false, readonly string[] | undefined>;
281
+ } & {
282
+ package: {
283
+ hint: string;
284
+ description: string;
285
+ };
286
+ } & {
287
+ package: import("jackspeak").ConfigOption<"string", false, readonly string[] | undefined>;
288
+ } & {
289
+ call: {
290
+ hint: string;
291
+ description: string;
292
+ };
293
+ } & {
294
+ call: import("jackspeak").ConfigOption<"string", false, readonly string[] | undefined>;
295
+ } & {
296
+ view: {
297
+ hint: string;
298
+ default: string;
299
+ description: string;
300
+ validOptions: readonly ["human", "json", "mermaid", "svg", "png", "count", "inspect", "silent"];
301
+ };
302
+ } & {
303
+ view: import("jackspeak").ConfigOption<"string", false, readonly string[] | undefined>;
304
+ } & {
305
+ 'dashboard-root': {
306
+ hint: string;
307
+ description: string;
308
+ };
309
+ } & {
310
+ 'dashboard-root': import("jackspeak").ConfigOption<"string", true, readonly string[] | undefined>;
311
+ } & {
312
+ 'save-dev': {
313
+ short: string;
314
+ description: string;
315
+ };
316
+ 'save-optional': {
317
+ short: string;
318
+ description: string;
319
+ };
320
+ 'save-peer': {
321
+ description: string;
322
+ };
323
+ 'save-prod': {
324
+ short: string;
325
+ description: string;
326
+ };
327
+ } & {
328
+ 'save-dev': import("jackspeak").ConfigOption<"boolean", false, undefined>;
329
+ 'save-optional': import("jackspeak").ConfigOption<"boolean", false, undefined>;
330
+ 'save-peer': import("jackspeak").ConfigOption<"boolean", false, undefined>;
331
+ 'save-prod': import("jackspeak").ConfigOption<"boolean", false, undefined>;
332
+ } & {
333
+ 'expect-results': {
334
+ hint: string;
335
+ validate: (v: unknown) => boolean;
336
+ description: string;
337
+ };
338
+ } & {
339
+ 'expect-results': import("jackspeak").ConfigOption<"string", false, readonly string[] | undefined>;
340
+ } & {
341
+ 'dry-run': {
342
+ description: string;
343
+ };
344
+ 'expect-lockfile': {
345
+ description: string;
346
+ };
347
+ 'frozen-lockfile': {
348
+ description: string;
349
+ };
350
+ 'lockfile-only': {
351
+ description: string;
352
+ };
353
+ } & {
354
+ 'dry-run': import("jackspeak").ConfigOption<"boolean", false, undefined>;
355
+ 'expect-lockfile': import("jackspeak").ConfigOption<"boolean", false, undefined>;
356
+ 'frozen-lockfile': import("jackspeak").ConfigOption<"boolean", false, undefined>;
357
+ 'lockfile-only': import("jackspeak").ConfigOption<"boolean", false, undefined>;
358
+ } & {
359
+ 'allow-scripts': {
360
+ hint: string;
361
+ description: string;
362
+ };
363
+ } & {
364
+ 'allow-scripts': import("jackspeak").ConfigOption<"string", false, readonly string[] | undefined>;
365
+ } & {
366
+ access: {
367
+ description: string;
368
+ validOptions: readonly ["public", "restricted"];
369
+ };
370
+ } & {
371
+ access: import("jackspeak").ConfigOption<"string", false, readonly string[] | undefined>;
372
+ } & {
373
+ otp: {
374
+ description: string;
375
+ };
376
+ 'publish-directory': {
377
+ hint: string;
378
+ description: string;
379
+ };
380
+ } & {
381
+ otp: import("jackspeak").ConfigOption<"string", false, readonly string[] | undefined>;
382
+ 'publish-directory': import("jackspeak").ConfigOption<"string", false, readonly string[] | undefined>;
383
+ } & {
384
+ yes: {
385
+ short: string;
386
+ description: string;
387
+ };
388
+ version: {
389
+ short: string;
390
+ description: string;
391
+ };
392
+ help: {
393
+ short: string;
394
+ description: string;
395
+ };
396
+ all: {
397
+ short: string;
398
+ description: string;
399
+ };
400
+ } & {
401
+ yes: import("jackspeak").ConfigOption<"boolean", false, undefined>;
402
+ version: import("jackspeak").ConfigOption<"boolean", false, undefined>;
403
+ help: import("jackspeak").ConfigOption<"boolean", false, undefined>;
404
+ all: import("jackspeak").ConfigOption<"boolean", false, undefined>;
405
+ }>;
406
+ export declare const getSortedCliOptions: () => string[];
407
+ export declare const getSortedKeys: () => string[];