@scalar/cli 2.11.0 → 2.12.1
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 +3 -0
- package/chunks/{action-RQCXSJPZ.js → action-4B3MNNEG.js} +18 -18
- package/chunks/{action-ZUZL7R3H.js → action-4G23NFVD.js} +10 -10
- package/chunks/{action-6M5PTDF6.js → action-5I763IT2.js} +16 -16
- package/chunks/{action-HUICEXJZ.js → action-6IHAGCNR.js} +14 -14
- package/chunks/{action-MJMLQFLT.js → action-6IZYBY5P.js} +21 -15
- package/chunks/{action-LR75GHBA.js → action-6KP6KOYC.js} +7 -7
- package/chunks/{action-NHU4CUKT.js → action-6UOTMYQ4.js} +2 -2
- package/chunks/{action-FMA5ECUA.js → action-7HXYZPOT.js} +5 -5
- package/chunks/{action-5I4XDPPG.js → action-A2GXYB2K.js} +10 -10
- package/chunks/{action-CQQCKSNS.js → action-AOKHLTZ6.js} +18 -12
- package/chunks/{action-7H3AWCHX.js → action-AQ7BSPBE.js} +9 -9
- package/chunks/{action-OTPXODUE.js → action-D3IVCY24.js} +5 -5
- package/chunks/{action-YN4TE7TG.js → action-D52JJ3NL.js} +14 -14
- package/chunks/{action-SOYSVG67.js → action-ENZGEP4Y.js} +5 -5
- package/chunks/{action-D5QWDNQ2.js → action-GZKDPO3N.js} +13 -13
- package/chunks/{action-EYPYQQVM.js → action-HA3CMV3P.js} +5 -5
- package/chunks/{action-NKTFNFU7.js → action-HJSRU322.js} +13 -13
- package/chunks/{action-DQDHBOLJ.js → action-IASJWF5P.js} +15 -15
- package/chunks/{action-LAAHRDSR.js → action-INB2R2NQ.js} +4 -4
- package/chunks/{action-IQM54ITT.js → action-JHPUNA7Z.js} +17 -17
- package/chunks/{action-GXDJLF2G.js → action-JT6C472I.js} +5 -5
- package/chunks/{action-KC3ZCNDR.js → action-KDT6H6ML.js} +5 -5
- package/chunks/{action-RPCDNGCI.js → action-KWFAMQN5.js} +19 -19
- package/chunks/{action-IH6G77C5.js → action-NY2MGVBS.js} +14 -14
- package/chunks/{action-NMW5WPD2.js → action-O757TFA2.js} +5 -5
- package/chunks/{action-J5TO3UJW.js → action-RDXVIAS3.js} +19 -19
- package/chunks/{action-73ELLN3T.js → action-S7SONQ5E.js} +2 -2
- package/chunks/{action-2VF6LODL.js → action-T2I4TFLU.js} +8 -8
- package/chunks/{action-L7TMS3Q3.js → action-TH3TYR2A.js} +21 -21
- package/chunks/{action-ZGNVWTHZ.js → action-UTFRCKGE.js} +5 -5
- package/chunks/{action-BRSLSOE5.js → action-VK5HZHSC.js} +9 -9
- package/chunks/{action-25QMCP5G.js → action-XPJFCCAT.js} +17 -17
- package/chunks/{action-ZKKRPLDK.js → action-YL3CEKE7.js} +14 -14
- package/chunks/{actions-S6K76HCW.js → actions-LNIEIP7C.js} +14 -14
- package/chunks/{agent-IRNEV4K5.js → agent-F2A4UROF.js} +5 -5
- package/chunks/{asyncapi-WQPIQMEZ.js → asyncapi-HASQNFWS.js} +9 -9
- package/chunks/{build.action-CLBVKFWD.js → build.action-XKJ4ET3G.js} +16 -16
- package/chunks/{chunk-U6VE6JOS.js → chunk-4BE7UCJO.js} +2 -2
- package/chunks/{chunk-BQYVSPAI.js → chunk-7M44FQHX.js} +126 -2
- package/chunks/{chunk-SOV4POMS.js → chunk-7TSQ7ZGU.js} +15 -12
- package/chunks/{chunk-ULRJZXMS.js → chunk-BHWUD65X.js} +1 -1
- package/chunks/{chunk-5L7V7RCH.js → chunk-CFI5GBAK.js} +1 -1
- package/chunks/{chunk-KOD2HX5I.js → chunk-D5YZ3FXG.js} +1 -1
- package/chunks/{chunk-US54KYOJ.js → chunk-DKZ3PS3X.js} +1 -1
- package/chunks/{chunk-3TFOA64C.js → chunk-E57QCEAV.js} +1 -1
- package/chunks/{chunk-HZN6IIPZ.js → chunk-EJSGWV2K.js} +2 -2
- package/chunks/{chunk-GYR5E6RB.js → chunk-GPQXLA43.js} +2 -2
- package/chunks/{chunk-GKCVATQJ.js → chunk-IZVRYC2N.js} +3 -3
- package/chunks/{chunk-SEURG74P.js → chunk-JLNHOA5Z.js} +3 -3
- package/chunks/{chunk-ALYM4ZB2.js → chunk-KWLAZV7P.js} +1 -1
- package/chunks/{chunk-N5CJ5MTY.js → chunk-LLZDQXYS.js} +1 -1
- package/chunks/{chunk-F3OPMYME.js → chunk-LWIAFTKX.js} +90 -14
- package/chunks/{chunk-FG5AOTDN.js → chunk-N645RGAB.js} +785 -407
- package/chunks/{chunk-3RIUDHLG.js → chunk-NTRWXCXD.js} +2 -2
- package/chunks/{chunk-QMLRYD76.js → chunk-PERC34BV.js} +1 -1
- package/chunks/{chunk-LOLVJNI5.js → chunk-PU5UIHAF.js} +2 -2
- package/chunks/{chunk-AVZFSWPD.js → chunk-Q26DFKTY.js} +1 -1
- package/chunks/{chunk-Y6XGC4K5.js → chunk-RYWXF3LO.js} +8 -1
- package/chunks/{chunk-4JKXZ5CF.js → chunk-SNOAL2C5.js} +1 -1
- package/chunks/{chunk-25XERWCE.js → chunk-U764PQUA.js} +3 -27
- package/chunks/{chunk-T34TL6KL.js → chunk-V3MYP5SQ.js} +27 -2
- package/chunks/{chunk-MN2AFJXM.js → chunk-VUNOOPEG.js} +1 -1
- package/chunks/{chunk-GMHIK5K2.js → chunk-WZJTV4ET.js} +1 -1
- package/chunks/{chunk-NWJ37GI2.js → chunk-XLZEIIPW.js} +28 -9
- package/chunks/{chunk-CSSTCHHF.js → chunk-YLZP3W37.js} +8 -3
- package/chunks/{chunk-DQD2753S.js → chunk-YMRRFDEQ.js} +2 -2
- package/chunks/{chunk-UFSFY7Z4.js → chunk-ZW62VYJW.js} +96 -2
- package/chunks/{create.action-ITEOQ644.js → create.action-XXOLILUS.js} +16 -16
- package/chunks/{delete.action-77MFPLUN.js → delete.action-R5KGPLDG.js} +16 -16
- package/chunks/{delete.action-C6VX4S5Q.js → delete.action-TQJOZRV7.js} +16 -16
- package/chunks/{get.action-LNBOWUVE.js → get.action-46OBVOQQ.js} +15 -15
- package/chunks/{get.action-3BP4FHZC.js → get.action-IQMOL4WM.js} +10 -10
- package/chunks/{list.action-KR5YIDR4.js → list.action-GXTKKVHY.js} +17 -17
- package/chunks/{list.action-6CRFQPJT.js → list.action-RIS7Q4OU.js} +15 -15
- package/chunks/{publish.action-YBORRPBM.js → publish.action-A4T4BT3F.js} +21 -21
- package/chunks/{update.action-QZI7M2MV.js → update.action-IZ5GULPY.js} +16 -16
- package/chunks/{update.action-O7TSXDGV.js → update.action-TK5L4PXB.js} +16 -16
- package/index.js +65 -64
- package/package.json +1 -1
- package/skills/scalar-cli/SKILL.md +1 -1
- package/template.md +3 -0
package/index.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import { createRequire as $$cR } from "node:module"; const require = $$cR(import.meta.url);
|
|
3
3
|
import {
|
|
4
4
|
DownloadIsolateCommand
|
|
5
|
-
} from "./chunks/chunk-
|
|
5
|
+
} from "./chunks/chunk-D5YZ3FXG.js";
|
|
6
6
|
import {
|
|
7
7
|
buildCliContext,
|
|
8
8
|
runnableCommands
|
|
@@ -17,7 +17,7 @@ import {
|
|
|
17
17
|
BundleCommand,
|
|
18
18
|
parseFetchLimit,
|
|
19
19
|
parsePort
|
|
20
|
-
} from "./chunks/chunk-
|
|
20
|
+
} from "./chunks/chunk-EJSGWV2K.js";
|
|
21
21
|
import {
|
|
22
22
|
completeFiles
|
|
23
23
|
} from "./chunks/chunk-DFOZG7ZV.js";
|
|
@@ -27,7 +27,7 @@ import {
|
|
|
27
27
|
} from "./chunks/chunk-NAC63XJF.js";
|
|
28
28
|
import {
|
|
29
29
|
SdkLanguage
|
|
30
|
-
} from "./chunks/chunk-
|
|
30
|
+
} from "./chunks/chunk-RYWXF3LO.js";
|
|
31
31
|
import {
|
|
32
32
|
checkNodeVersion
|
|
33
33
|
} from "./chunks/chunk-VUXPDHTQ.js";
|
|
@@ -35,14 +35,14 @@ import {
|
|
|
35
35
|
getMetadata,
|
|
36
36
|
logout,
|
|
37
37
|
setMetadata
|
|
38
|
-
} from "./chunks/chunk-
|
|
39
|
-
import "./chunks/chunk-
|
|
38
|
+
} from "./chunks/chunk-NTRWXCXD.js";
|
|
39
|
+
import "./chunks/chunk-LLZDQXYS.js";
|
|
40
40
|
import {
|
|
41
41
|
bin,
|
|
42
42
|
name,
|
|
43
43
|
version
|
|
44
|
-
} from "./chunks/chunk-
|
|
45
|
-
import "./chunks/chunk-
|
|
44
|
+
} from "./chunks/chunk-DKZ3PS3X.js";
|
|
45
|
+
import "./chunks/chunk-7M44FQHX.js";
|
|
46
46
|
import "./chunks/chunk-VRZSDUZK.js";
|
|
47
47
|
import {
|
|
48
48
|
requireInteractive
|
|
@@ -50,8 +50,8 @@ import {
|
|
|
50
50
|
import {
|
|
51
51
|
output
|
|
52
52
|
} from "./chunks/chunk-T5HJUAWB.js";
|
|
53
|
-
import "./chunks/chunk-
|
|
54
|
-
import "./chunks/chunk-
|
|
53
|
+
import "./chunks/chunk-U764PQUA.js";
|
|
54
|
+
import "./chunks/chunk-Q26DFKTY.js";
|
|
55
55
|
import {
|
|
56
56
|
external_exports
|
|
57
57
|
} from "./chunks/chunk-I57ID5K7.js";
|
|
@@ -74,7 +74,7 @@ var DeleteSchemaCommand = () => {
|
|
|
74
74
|
cmd3.option("-s, --slug <slug>", "Schema slug");
|
|
75
75
|
cmd3.option("-n, --namespace <namespace>", "Team namespace");
|
|
76
76
|
cmd3.action(async (...args) => {
|
|
77
|
-
const { deleteAction } = await import("./chunks/delete.action-
|
|
77
|
+
const { deleteAction } = await import("./chunks/delete.action-R5KGPLDG.js");
|
|
78
78
|
return deleteAction(...args);
|
|
79
79
|
});
|
|
80
80
|
return cmd3;
|
|
@@ -94,7 +94,7 @@ var GetSchemaCommand = () => {
|
|
|
94
94
|
cmd3.option("-o, --output <file>", "Output file (defaults to stdout)");
|
|
95
95
|
completeFiles(cmd3, [], ["--output"]);
|
|
96
96
|
cmd3.action(async (...args) => {
|
|
97
|
-
const { getAction } = await import("./chunks/get.action-
|
|
97
|
+
const { getAction } = await import("./chunks/get.action-IQMOL4WM.js");
|
|
98
98
|
return getAction(...args);
|
|
99
99
|
});
|
|
100
100
|
return cmd3;
|
|
@@ -108,7 +108,7 @@ var ListSchemaCommand = () => {
|
|
|
108
108
|
cmd3.option("--namespace <namespace>", "Team namespace");
|
|
109
109
|
cmd3.option("--json", "Output schema metadata as JSON");
|
|
110
110
|
cmd3.action(async (...args) => {
|
|
111
|
-
const { listAction } = await import("./chunks/list.action-
|
|
111
|
+
const { listAction } = await import("./chunks/list.action-GXTKKVHY.js");
|
|
112
112
|
return listAction(...args);
|
|
113
113
|
});
|
|
114
114
|
return cmd3;
|
|
@@ -142,7 +142,7 @@ var PublishSchemaCommand = () => {
|
|
|
142
142
|
);
|
|
143
143
|
completeFiles(cmd3, ["file"], []);
|
|
144
144
|
cmd3.action(async (...args) => {
|
|
145
|
-
const { publishAction } = await import("./chunks/publish.action-
|
|
145
|
+
const { publishAction } = await import("./chunks/publish.action-A4T4BT3F.js");
|
|
146
146
|
return publishAction(...args);
|
|
147
147
|
});
|
|
148
148
|
return cmd3;
|
|
@@ -164,7 +164,7 @@ var UpdateSchemaCommand = () => {
|
|
|
164
164
|
).choices([...PRIVACY_VALUES])
|
|
165
165
|
);
|
|
166
166
|
cmd3.action(async (...args) => {
|
|
167
|
-
const { updateAction } = await import("./chunks/update.action-
|
|
167
|
+
const { updateAction } = await import("./chunks/update.action-TK5L4PXB.js");
|
|
168
168
|
return updateAction(...args);
|
|
169
169
|
});
|
|
170
170
|
return cmd3;
|
|
@@ -194,7 +194,7 @@ var BuildSdkCommand = () => {
|
|
|
194
194
|
cmd3.option("-s, --slug <slug>", "SDK slug");
|
|
195
195
|
cmd3.option("-n, --namespace <namespace>", "Team namespace");
|
|
196
196
|
cmd3.action(async (...args) => {
|
|
197
|
-
const { buildAction } = await import("./chunks/build.action-
|
|
197
|
+
const { buildAction } = await import("./chunks/build.action-XKJ4ET3G.js");
|
|
198
198
|
return buildAction(...args);
|
|
199
199
|
});
|
|
200
200
|
return cmd3;
|
|
@@ -213,7 +213,7 @@ var CreateSdkCommand = () => {
|
|
|
213
213
|
)
|
|
214
214
|
);
|
|
215
215
|
cmd3.action(async (...args) => {
|
|
216
|
-
const { createAction } = await import("./chunks/create.action-
|
|
216
|
+
const { createAction } = await import("./chunks/create.action-XXOLILUS.js");
|
|
217
217
|
return createAction(...args);
|
|
218
218
|
});
|
|
219
219
|
return cmd3;
|
|
@@ -227,7 +227,7 @@ var DeleteSdkCommand = () => {
|
|
|
227
227
|
cmd3.option("-s, --slug <slug>", "SDK slug");
|
|
228
228
|
cmd3.option("-n, --namespace <namespace>", "Team namespace");
|
|
229
229
|
cmd3.action(async (...args) => {
|
|
230
|
-
const { deleteAction } = await import("./chunks/delete.action-
|
|
230
|
+
const { deleteAction } = await import("./chunks/delete.action-TQJOZRV7.js");
|
|
231
231
|
return deleteAction(...args);
|
|
232
232
|
});
|
|
233
233
|
return cmd3;
|
|
@@ -248,7 +248,7 @@ var UpdateSdkCommand = () => {
|
|
|
248
248
|
).choices([...PRIVACY_VALUES])
|
|
249
249
|
);
|
|
250
250
|
cmd3.action(async (...args) => {
|
|
251
|
-
const { updateAction } = await import("./chunks/update.action-
|
|
251
|
+
const { updateAction } = await import("./chunks/update.action-IZ5GULPY.js");
|
|
252
252
|
return updateAction(...args);
|
|
253
253
|
});
|
|
254
254
|
return cmd3;
|
|
@@ -265,7 +265,7 @@ var GetSdkCommand = () => {
|
|
|
265
265
|
cmd3.option("-n, --namespace <namespace>", "Team namespace");
|
|
266
266
|
cmd3.option("--json", "Output structured SDK metadata as JSON");
|
|
267
267
|
cmd3.action(async (...args) => {
|
|
268
|
-
const { getAction } = await import("./chunks/get.action-
|
|
268
|
+
const { getAction } = await import("./chunks/get.action-46OBVOQQ.js");
|
|
269
269
|
return getAction(...args);
|
|
270
270
|
});
|
|
271
271
|
return cmd3;
|
|
@@ -279,7 +279,7 @@ var ListSdkCommand = () => {
|
|
|
279
279
|
cmd3.option("--json", "Output structured SDK metadata as JSON");
|
|
280
280
|
cmd3.option("--namespace <namespace>", "Team namespace");
|
|
281
281
|
cmd3.action(async (...args) => {
|
|
282
|
-
const { listAction } = await import("./chunks/list.action-
|
|
282
|
+
const { listAction } = await import("./chunks/list.action-RIS7Q4OU.js");
|
|
283
283
|
return listAction(...args);
|
|
284
284
|
});
|
|
285
285
|
return cmd3;
|
|
@@ -308,41 +308,41 @@ function createAccessGroupCommand() {
|
|
|
308
308
|
"Manage access groups and allowed email domains for the current team"
|
|
309
309
|
);
|
|
310
310
|
command.command("list").description("List access groups for the current team").option("--json", "Print the result as JSON").action(async (options) => {
|
|
311
|
-
const { runAction } = await import("./chunks/actions-
|
|
311
|
+
const { runAction } = await import("./chunks/actions-LNIEIP7C.js");
|
|
312
312
|
await runAction({ operation: "list", ...options });
|
|
313
313
|
});
|
|
314
314
|
command.command("create").description("Create an access group (Pro or above)").argument("<slug>", "New access group slug").option("--name <name>", "Display name").option("--domain <domains...>", "Allowed email domains").option("--json", "Print the result as JSON").action(
|
|
315
315
|
async (slug, options) => {
|
|
316
|
-
const { runAction } = await import("./chunks/actions-
|
|
316
|
+
const { runAction } = await import("./chunks/actions-LNIEIP7C.js");
|
|
317
317
|
await runAction({ operation: "create", slug, ...options });
|
|
318
318
|
}
|
|
319
319
|
);
|
|
320
320
|
command.command("get").description("Get an access group and its allowlists").argument("<slug>", "Access group slug").option("--json", "Print the result as JSON").action(async (slug, options) => {
|
|
321
|
-
const { runAction } = await import("./chunks/actions-
|
|
321
|
+
const { runAction } = await import("./chunks/actions-LNIEIP7C.js");
|
|
322
322
|
await runAction({ operation: "get", slug, ...options });
|
|
323
323
|
});
|
|
324
324
|
command.command("update").description("Update access group metadata").argument("<slug>", "Current access group slug").option("--name <name>", "New display name").option("--new-slug <slug>", "New access group slug").option("--json", "Print the result as JSON").action(
|
|
325
325
|
async (slug, options) => {
|
|
326
|
-
const { runAction } = await import("./chunks/actions-
|
|
326
|
+
const { runAction } = await import("./chunks/actions-LNIEIP7C.js");
|
|
327
327
|
await runAction({ operation: "update", slug, ...options });
|
|
328
328
|
}
|
|
329
329
|
);
|
|
330
330
|
command.command("delete").description("Delete an access group and remove its project assignments").argument("<slug>", "Access group slug").option("-y, --yes", "Confirm deletion without prompting").option("--json", "Print the result as JSON (requires --yes)").action(
|
|
331
331
|
async (slug, options) => {
|
|
332
|
-
const { runAction } = await import("./chunks/actions-
|
|
332
|
+
const { runAction } = await import("./chunks/actions-LNIEIP7C.js");
|
|
333
333
|
await runAction({ operation: "delete", slug, ...options });
|
|
334
334
|
}
|
|
335
335
|
);
|
|
336
336
|
const domain = command.command("domain").description("Manage allowed email domains");
|
|
337
337
|
domain.command("add").description("Add an exact email domain to an access group").argument("<slug>", "Access group slug").argument("<domain>", "Email domain, such as example.com").option("--json", "Print the result as JSON").action(
|
|
338
338
|
async (slug, domain2, options) => {
|
|
339
|
-
const { runAction } = await import("./chunks/actions-
|
|
339
|
+
const { runAction } = await import("./chunks/actions-LNIEIP7C.js");
|
|
340
340
|
await runAction({ operation: "add-domain", slug, domain: domain2, ...options });
|
|
341
341
|
}
|
|
342
342
|
);
|
|
343
343
|
domain.command("remove").description("Remove an exact email domain from an access group").argument("<slug>", "Access group slug").argument("<domain>", "Email domain, such as example.com").option("--json", "Print the result as JSON").action(
|
|
344
344
|
async (slug, domain2, options) => {
|
|
345
|
-
const { runAction } = await import("./chunks/actions-
|
|
345
|
+
const { runAction } = await import("./chunks/actions-LNIEIP7C.js");
|
|
346
346
|
await runAction({
|
|
347
347
|
operation: "remove-domain",
|
|
348
348
|
slug,
|
|
@@ -377,7 +377,7 @@ var LoginCommand = () => {
|
|
|
377
377
|
).hideHelp()
|
|
378
378
|
);
|
|
379
379
|
cmd3.action(async (...args) => {
|
|
380
|
-
const { loginAction } = await import("./chunks/action-
|
|
380
|
+
const { loginAction } = await import("./chunks/action-ENZGEP4Y.js");
|
|
381
381
|
return loginAction(...args);
|
|
382
382
|
});
|
|
383
383
|
return cmd3;
|
|
@@ -402,7 +402,7 @@ var WhoAmICommand = () => {
|
|
|
402
402
|
cmd3.description("Show the logged-in user and current team");
|
|
403
403
|
cmd3.option("--json", "Output authentication details as JSON");
|
|
404
404
|
cmd3.action(async (options) => {
|
|
405
|
-
const { whoamiAction } = await import("./chunks/action-
|
|
405
|
+
const { whoamiAction } = await import("./chunks/action-GZKDPO3N.js");
|
|
406
406
|
return whoamiAction(options);
|
|
407
407
|
});
|
|
408
408
|
return cmd3;
|
|
@@ -481,7 +481,7 @@ function JoinCommand() {
|
|
|
481
481
|
);
|
|
482
482
|
completeFiles(cmd3, ["files"], ["--output"]);
|
|
483
483
|
cmd3.action(async (...args) => {
|
|
484
|
-
const { joinAction } = await import("./chunks/action-
|
|
484
|
+
const { joinAction } = await import("./chunks/action-JT6C472I.js");
|
|
485
485
|
return joinAction(...args);
|
|
486
486
|
});
|
|
487
487
|
return cmd3;
|
|
@@ -505,7 +505,7 @@ function SplitCommand() {
|
|
|
505
505
|
);
|
|
506
506
|
completeFiles(cmd3, ["file|url"], ["--output"]);
|
|
507
507
|
cmd3.action(async (...args) => {
|
|
508
|
-
const { splitAction } = await import("./chunks/action-
|
|
508
|
+
const { splitAction } = await import("./chunks/action-7HXYZPOT.js");
|
|
509
509
|
return splitAction(...args);
|
|
510
510
|
});
|
|
511
511
|
return cmd3;
|
|
@@ -523,7 +523,7 @@ function FormatCommand() {
|
|
|
523
523
|
);
|
|
524
524
|
completeFiles(cmd3, ["file|url"], ["--output"]);
|
|
525
525
|
cmd3.action(async (...args) => {
|
|
526
|
-
const { formatAction } = await import("./chunks/action-
|
|
526
|
+
const { formatAction } = await import("./chunks/action-KDT6H6ML.js");
|
|
527
527
|
return formatAction(...args);
|
|
528
528
|
});
|
|
529
529
|
return cmd3;
|
|
@@ -576,7 +576,7 @@ function LintCommand() {
|
|
|
576
576
|
);
|
|
577
577
|
completeFiles(cmd3, ["file|url"], ["--rule", "--output", "--ignore-file"]);
|
|
578
578
|
cmd3.action(async (...args) => {
|
|
579
|
-
const { lintAction } = await import("./chunks/action-
|
|
579
|
+
const { lintAction } = await import("./chunks/action-6IZYBY5P.js");
|
|
580
580
|
return lintAction(...args);
|
|
581
581
|
});
|
|
582
582
|
return cmd3;
|
|
@@ -591,7 +591,7 @@ function MarkdownCommand() {
|
|
|
591
591
|
cmd3.option("-o, --output <file>", "Output file (defaults to stdout)");
|
|
592
592
|
completeFiles(cmd3, ["file|url"], ["--output"]);
|
|
593
593
|
cmd3.action(async (...args) => {
|
|
594
|
-
const { markdownAction } = await import("./chunks/action-
|
|
594
|
+
const { markdownAction } = await import("./chunks/action-D3IVCY24.js");
|
|
595
595
|
return markdownAction(...args);
|
|
596
596
|
});
|
|
597
597
|
return cmd3;
|
|
@@ -610,7 +610,7 @@ function MockCommand() {
|
|
|
610
610
|
cmd3.option("-p, --port <port>", "HTTP port for the Mock Server", parsePort);
|
|
611
611
|
completeFiles(cmd3, ["file|url"], []);
|
|
612
612
|
cmd3.action(async (...args) => {
|
|
613
|
-
const { mockAction } = await import("./chunks/action-
|
|
613
|
+
const { mockAction } = await import("./chunks/action-4G23NFVD.js");
|
|
614
614
|
return mockAction(...args);
|
|
615
615
|
});
|
|
616
616
|
return cmd3;
|
|
@@ -629,7 +629,7 @@ function ConvertCommand() {
|
|
|
629
629
|
);
|
|
630
630
|
completeFiles(cmd3, ["file|url"], ["--output"]);
|
|
631
631
|
cmd3.action(async (...args) => {
|
|
632
|
-
const { convertAction } = await import("./chunks/action-
|
|
632
|
+
const { convertAction } = await import("./chunks/action-O757TFA2.js");
|
|
633
633
|
return convertAction(...args);
|
|
634
634
|
});
|
|
635
635
|
return cmd3;
|
|
@@ -656,7 +656,7 @@ function ServeCommand() {
|
|
|
656
656
|
);
|
|
657
657
|
completeFiles(cmd3, ["file|url"], ["--config"]);
|
|
658
658
|
cmd3.action(async (...args) => {
|
|
659
|
-
const { serveAction } = await import("./chunks/action-
|
|
659
|
+
const { serveAction } = await import("./chunks/action-AQ7BSPBE.js");
|
|
660
660
|
return serveAction(...args);
|
|
661
661
|
});
|
|
662
662
|
return cmd3;
|
|
@@ -676,7 +676,7 @@ function ShareCommand() {
|
|
|
676
676
|
);
|
|
677
677
|
completeFiles(cmd3, ["file"], []);
|
|
678
678
|
cmd3.action(async (...args) => {
|
|
679
|
-
const { shareAction } = await import("./chunks/action-
|
|
679
|
+
const { shareAction } = await import("./chunks/action-6KP6KOYC.js");
|
|
680
680
|
return shareAction(...args);
|
|
681
681
|
});
|
|
682
682
|
return cmd3;
|
|
@@ -696,7 +696,7 @@ function UpgradeCommand() {
|
|
|
696
696
|
);
|
|
697
697
|
completeFiles(cmd3, ["file|url"], ["--output"]);
|
|
698
698
|
cmd3.action(async (...args) => {
|
|
699
|
-
const { upgradeAction } = await import("./chunks/action-
|
|
699
|
+
const { upgradeAction } = await import("./chunks/action-HA3CMV3P.js");
|
|
700
700
|
return upgradeAction(...args);
|
|
701
701
|
});
|
|
702
702
|
return cmd3;
|
|
@@ -710,7 +710,7 @@ function ValidateCommand() {
|
|
|
710
710
|
cmd3.argument("[file|url]", "File or URL to validate");
|
|
711
711
|
completeFiles(cmd3, ["file|url"], []);
|
|
712
712
|
cmd3.action(async (...args) => {
|
|
713
|
-
const { validateAction } = await import("./chunks/action-
|
|
713
|
+
const { validateAction } = await import("./chunks/action-UTFRCKGE.js");
|
|
714
714
|
return validateAction(...args);
|
|
715
715
|
});
|
|
716
716
|
return cmd3;
|
|
@@ -779,7 +779,7 @@ var PreviewCommand = () => {
|
|
|
779
779
|
cmd3.option("-N, --no-open", "Do not open the browser automatically", true);
|
|
780
780
|
completeFiles(cmd3, ["config"], []);
|
|
781
781
|
cmd3.action(async (...args) => {
|
|
782
|
-
const { previewAction } = await import("./chunks/action-
|
|
782
|
+
const { previewAction } = await import("./chunks/action-VK5HZHSC.js");
|
|
783
783
|
return previewAction(...args);
|
|
784
784
|
});
|
|
785
785
|
return cmd3;
|
|
@@ -796,7 +796,7 @@ function CheckConfigCommand() {
|
|
|
796
796
|
);
|
|
797
797
|
completeFiles(cmd3, ["file"], []);
|
|
798
798
|
cmd3.action(async (...args) => {
|
|
799
|
-
const { checkConfigAction } = await import("./chunks/action-
|
|
799
|
+
const { checkConfigAction } = await import("./chunks/action-S7SONQ5E.js");
|
|
800
800
|
return checkConfigAction(...args);
|
|
801
801
|
});
|
|
802
802
|
return cmd3;
|
|
@@ -810,7 +810,7 @@ var CreateCommand = () => {
|
|
|
810
810
|
cmd3.option("-n, --name <name>", "Project name");
|
|
811
811
|
cmd3.option("-s, --slug <slug>", "Project slug");
|
|
812
812
|
cmd3.action(async (...args) => {
|
|
813
|
-
const { createAction } = await import("./chunks/action-
|
|
813
|
+
const { createAction } = await import("./chunks/action-D52JJ3NL.js");
|
|
814
814
|
return createAction(...args);
|
|
815
815
|
});
|
|
816
816
|
return cmd3;
|
|
@@ -826,7 +826,7 @@ var ListCommand = () => {
|
|
|
826
826
|
cmd3.description("List production deployments for a project");
|
|
827
827
|
cmd3.option("-s, --slug [slug]", "Project slug from scalar project list");
|
|
828
828
|
cmd3.action(async (...args) => {
|
|
829
|
-
const { listAction } = await import("./chunks/action-
|
|
829
|
+
const { listAction } = await import("./chunks/action-4B3MNNEG.js");
|
|
830
830
|
return listAction(...args);
|
|
831
831
|
});
|
|
832
832
|
return cmd3;
|
|
@@ -846,7 +846,7 @@ function GetCommand() {
|
|
|
846
846
|
const command = new Command39("get").description("Show project details for the current team").argument("<slug>", "Project slug from scalar project list").option("--json", "Print project details as JSON");
|
|
847
847
|
command.action(
|
|
848
848
|
async (slug, options) => {
|
|
849
|
-
const { getAction } = await import("./chunks/action-
|
|
849
|
+
const { getAction } = await import("./chunks/action-YL3CEKE7.js");
|
|
850
850
|
await getAction(slug, options);
|
|
851
851
|
}
|
|
852
852
|
);
|
|
@@ -864,7 +864,7 @@ var InitCommand = () => {
|
|
|
864
864
|
);
|
|
865
865
|
cmd3.option("--force", "Overwrite existing configuration");
|
|
866
866
|
cmd3.action(async (...args) => {
|
|
867
|
-
const { initAction } = await import("./chunks/action-
|
|
867
|
+
const { initAction } = await import("./chunks/action-IASJWF5P.js");
|
|
868
868
|
return initAction(...args);
|
|
869
869
|
});
|
|
870
870
|
return cmd3;
|
|
@@ -875,7 +875,7 @@ import { Command as Command41 } from "commander";
|
|
|
875
875
|
function ListCommand2() {
|
|
876
876
|
const command = new Command41("list").description("List projects and their slugs for the current team").option("--json", "Print project details as JSON");
|
|
877
877
|
command.action(async (options) => {
|
|
878
|
-
const { listAction } = await import("./chunks/action-
|
|
878
|
+
const { listAction } = await import("./chunks/action-JHPUNA7Z.js");
|
|
879
879
|
await listAction(options);
|
|
880
880
|
});
|
|
881
881
|
return command;
|
|
@@ -901,7 +901,7 @@ var PublishCommand = () => {
|
|
|
901
901
|
);
|
|
902
902
|
completeFiles(cmd3, [], ["--config"]);
|
|
903
903
|
cmd3.action(async (...args) => {
|
|
904
|
-
const { publishAction } = await import("./chunks/action-
|
|
904
|
+
const { publishAction } = await import("./chunks/action-KWFAMQN5.js");
|
|
905
905
|
return publishAction(...args);
|
|
906
906
|
});
|
|
907
907
|
return cmd3;
|
|
@@ -921,7 +921,7 @@ var RollbackCommand = () => {
|
|
|
921
921
|
);
|
|
922
922
|
cmd3.option("-y, --yes", "Skip the confirmation prompt");
|
|
923
923
|
cmd3.action(async (...args) => {
|
|
924
|
-
const { rollbackAction } = await import("./chunks/action-
|
|
924
|
+
const { rollbackAction } = await import("./chunks/action-RDXVIAS3.js");
|
|
925
925
|
return rollbackAction(...args);
|
|
926
926
|
});
|
|
927
927
|
return cmd3;
|
|
@@ -938,7 +938,7 @@ var UpgradeCommand2 = () => {
|
|
|
938
938
|
);
|
|
939
939
|
completeFiles(cmd3, ["config"], []);
|
|
940
940
|
cmd3.action(async (...args) => {
|
|
941
|
-
const { upgradeAction } = await import("./chunks/action-
|
|
941
|
+
const { upgradeAction } = await import("./chunks/action-6UOTMYQ4.js");
|
|
942
942
|
return upgradeAction(...args);
|
|
943
943
|
});
|
|
944
944
|
return cmd3;
|
|
@@ -1096,7 +1096,7 @@ var PublishCommand2 = () => {
|
|
|
1096
1096
|
);
|
|
1097
1097
|
completeFiles(cmd3, ["file"], []);
|
|
1098
1098
|
cmd3.action(async (...args) => {
|
|
1099
|
-
const { publishAction } = await import("./chunks/action-
|
|
1099
|
+
const { publishAction } = await import("./chunks/action-TH3TYR2A.js");
|
|
1100
1100
|
return publishAction(...args);
|
|
1101
1101
|
});
|
|
1102
1102
|
return cmd3;
|
|
@@ -1110,7 +1110,7 @@ var DeleteCommand = () => {
|
|
|
1110
1110
|
cmd3.argument("[namespace]", "Team namespace");
|
|
1111
1111
|
cmd3.argument("[slug]", "API description slug");
|
|
1112
1112
|
cmd3.action(async (...args) => {
|
|
1113
|
-
const { deleteAction } = await import("./chunks/action-
|
|
1113
|
+
const { deleteAction } = await import("./chunks/action-NY2MGVBS.js");
|
|
1114
1114
|
return deleteAction(...args);
|
|
1115
1115
|
});
|
|
1116
1116
|
return cmd3;
|
|
@@ -1135,7 +1135,7 @@ var GetCommand2 = () => {
|
|
|
1135
1135
|
cmd3.option("-o, --output <file>", "Output file (defaults to stdout)");
|
|
1136
1136
|
completeFiles(cmd3, [], ["--output"]);
|
|
1137
1137
|
cmd3.action(async (...args) => {
|
|
1138
|
-
const { getAction } = await import("./chunks/action-
|
|
1138
|
+
const { getAction } = await import("./chunks/action-A2GXYB2K.js");
|
|
1139
1139
|
return getAction(...args);
|
|
1140
1140
|
});
|
|
1141
1141
|
return cmd3;
|
|
@@ -1149,7 +1149,7 @@ var ListCommand3 = () => {
|
|
|
1149
1149
|
cmd3.option("--namespace <namespace>", "Team namespace");
|
|
1150
1150
|
cmd3.option("--json", "Output Scalar Registry API metadata as JSON");
|
|
1151
1151
|
cmd3.action(async (...args) => {
|
|
1152
|
-
const { listAction } = await import("./chunks/action-
|
|
1152
|
+
const { listAction } = await import("./chunks/action-XPJFCCAT.js");
|
|
1153
1153
|
return listAction(...args);
|
|
1154
1154
|
});
|
|
1155
1155
|
return cmd3;
|
|
@@ -1165,7 +1165,7 @@ var UpdateCommand = () => {
|
|
|
1165
1165
|
cmd3.option("--title <title>", "API description title");
|
|
1166
1166
|
cmd3.option("--description <description>", "API description summary");
|
|
1167
1167
|
cmd3.action(async (...args) => {
|
|
1168
|
-
const { updateAction } = await import("./chunks/action-
|
|
1168
|
+
const { updateAction } = await import("./chunks/action-6IHAGCNR.js");
|
|
1169
1169
|
return updateAction(...args);
|
|
1170
1170
|
});
|
|
1171
1171
|
return cmd3;
|
|
@@ -1194,7 +1194,7 @@ var GetCommand3 = () => {
|
|
|
1194
1194
|
cmd3.description("Show the current team and its namespaces");
|
|
1195
1195
|
cmd3.option("--json", "Output the current team as JSON");
|
|
1196
1196
|
cmd3.action(async (...args) => {
|
|
1197
|
-
const { getAction } = await import("./chunks/action-
|
|
1197
|
+
const { getAction } = await import("./chunks/action-HJSRU322.js");
|
|
1198
1198
|
return getAction(...args);
|
|
1199
1199
|
});
|
|
1200
1200
|
return cmd3;
|
|
@@ -1207,7 +1207,7 @@ var ListCommand4 = () => {
|
|
|
1207
1207
|
cmd3.description("List your Scalar teams");
|
|
1208
1208
|
cmd3.option("--json", "Output teams as JSON");
|
|
1209
1209
|
cmd3.action(async (...args) => {
|
|
1210
|
-
const { listAction } = await import("./chunks/action-
|
|
1210
|
+
const { listAction } = await import("./chunks/action-5I763IT2.js");
|
|
1211
1211
|
return listAction(...args);
|
|
1212
1212
|
});
|
|
1213
1213
|
return cmd3;
|
|
@@ -1220,7 +1220,7 @@ var SetCommand = () => {
|
|
|
1220
1220
|
cmd3.description("Select the current team");
|
|
1221
1221
|
cmd3.option("--team <team>", "Team ID");
|
|
1222
1222
|
cmd3.action(async (...args) => {
|
|
1223
|
-
const { setAction } = await import("./chunks/action-
|
|
1223
|
+
const { setAction } = await import("./chunks/action-T2I4TFLU.js");
|
|
1224
1224
|
return setAction(...args);
|
|
1225
1225
|
});
|
|
1226
1226
|
return cmd3;
|
|
@@ -1387,10 +1387,11 @@ var program = getProgram();
|
|
|
1387
1387
|
if (process.argv.length === 2) {
|
|
1388
1388
|
program.help();
|
|
1389
1389
|
}
|
|
1390
|
-
|
|
1391
|
-
|
|
1392
|
-
|
|
1393
|
-
|
|
1394
|
-
|
|
1395
|
-
}
|
|
1390
|
+
program.hook("preAction", (_program, command) => {
|
|
1391
|
+
if (process.argv[2] !== "upgrade" && process.argv[2] !== "context" && process.argv[2] !== "completion" && process.argv[2] !== "__complete" && !process.argv.includes("--json") && process.env.SCALAR_CLI_DISTRIBUTION !== "portable") {
|
|
1392
|
+
const usesDocumentStdout = command.parent?.name() === "document" && (command.name() === "lint" || command.name() === "bundle" && command.opts().output === "-");
|
|
1393
|
+
checkUpgrade(usesDocumentStdout ? "stderr" : "stdout").catch(() => {
|
|
1394
|
+
});
|
|
1395
|
+
}
|
|
1396
|
+
});
|
|
1396
1397
|
program.parse();
|
package/package.json
CHANGED
|
@@ -5,7 +5,7 @@ description: "Operate the Scalar CLI (`scalar`, or `npx @scalar/cli`) to validat
|
|
|
5
5
|
|
|
6
6
|
# Scalar CLI
|
|
7
7
|
|
|
8
|
-
Validate, lint, bundle, mock, and preview OpenAPI and AsyncAPI descriptions, and publish them to Scalar (`@scalar/cli` 2.
|
|
8
|
+
Validate, lint, bundle, mock, and preview OpenAPI and AsyncAPI descriptions, and publish them to Scalar (`@scalar/cli` 2.12.1).
|
|
9
9
|
|
|
10
10
|
## Operating notes
|
|
11
11
|
|
package/template.md
CHANGED
|
@@ -33,10 +33,13 @@ scalar document lint openapi.yaml --rule .spectral.yaml
|
|
|
33
33
|
```bash
|
|
34
34
|
scalar document bundle openapi.yaml --output openapi.bundled.yaml
|
|
35
35
|
scalar document bundle openapi.yaml --output openapi.bundled.yaml --treeShake
|
|
36
|
+
scalar document bundle openapi.yaml --output - > openapi.bundled.yaml
|
|
36
37
|
```
|
|
37
38
|
|
|
38
39
|
Pulls every external `$ref` into a single file. `--treeShake` drops components nothing uses. The input can be a URL.
|
|
39
40
|
|
|
41
|
+
Use `--output -` (or `-o -`) to write YAML to stdout for piping. Timings, diagnostics, and upgrade notices go to stderr. Without `--output`, local input requires an interactive overwrite confirmation; URL and non-interactive input require an explicit output destination.
|
|
42
|
+
|
|
40
43
|
### Preview the API reference
|
|
41
44
|
|
|
42
45
|
```bash
|