@scalar/cli 2.8.0 → 2.10.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 +281 -65
- package/chunks/action-4GZI2M5B.js +62 -0
- package/chunks/action-4W5GUGEG.js +63 -0
- package/chunks/{action-FCAYFPVR.js → action-5LF4XYHX.js} +10 -7
- package/chunks/{action-XIUO64C7.js → action-5N3P43MD.js} +17 -12
- package/chunks/{action-Y7OUGD56.js → action-5RL4NWUZ.js} +17 -17
- package/chunks/{action-LXGXKXZZ.js → action-657A4K2D.js} +16 -16
- package/chunks/{action-EOAVVL52.js → action-7XOHYWYM.js} +11 -14
- package/chunks/{action-AQRPFQKI.js → action-CABLS46Q.js} +9 -7
- package/chunks/{action-F7A2K74G.js → action-CB55NWAU.js} +9 -13
- package/chunks/{action-5SK5NE7E.js → action-DKDRAIKV.js} +11 -14
- package/chunks/{action-7PEQXDWT.js → action-DTEO4YNX.js} +127 -20
- package/chunks/{action-UIKH4SZX.js → action-EAUTQ77U.js} +27 -23
- package/chunks/{action-YLF2G4G5.js → action-FBRY5JKU.js} +16 -16
- package/chunks/{action-VOFDW3U2.js → action-GFLRD7LO.js} +6 -5
- package/chunks/{action-GWXLHL2Z.js → action-GWYYTUTM.js} +4 -3
- package/chunks/{action-6BYGBXRC.js → action-HT42NUUX.js} +27 -22
- package/chunks/action-JEYDBB3P.js +147 -0
- package/chunks/{action-LLH4QPXM.js → action-KDUFU7TZ.js} +11 -13
- package/chunks/{action-W3C53GPH.js → action-LYCNT3KA.js} +29 -10
- package/chunks/{action-CA4QYPI6.js → action-OJ2NK25F.js} +4 -8
- package/chunks/{action-NVI5DWFP.js → action-PAM2EZ22.js} +4 -8
- package/chunks/action-PPTFYZWD.js +1552 -0
- package/chunks/{action-43YBNBDR.js → action-R4PGILN4.js} +28 -24
- package/chunks/{action-QQZLPI42.js → action-TOBU74JH.js} +23 -19
- package/chunks/action-U2L5DCFG.js +91 -0
- package/chunks/{action-H6OUJWWM.js → action-UUL6SWV4.js} +11 -14
- package/chunks/{action-354TUG4H.js → action-X7BA7PQQ.js} +10 -8
- package/chunks/{action-WFDNRA7D.js → action-XLE37MZL.js} +16 -16
- package/chunks/{action-Y6NXJQ4H.js → action-XOADBXSX.js} +16 -12
- package/chunks/{action-LEUD5P2U.js → action-YSVTZVKV.js} +36 -17
- package/chunks/{action-YRX6SN5F.js → action-ZFI77WA5.js} +8 -6
- package/chunks/{action-HT2DJ34Z.js → action-ZKA3RR3S.js} +15 -11
- package/chunks/{actions-OGIVBQC7.js → actions-3SAMH7A5.js} +41 -17
- package/chunks/{agent-ASPV3R5U.js → agent-2ESZI7NO.js} +7 -5
- package/chunks/{asyncapi-QNFKXHEI.js → asyncapi-4HGVM3PR.js} +14 -10
- package/chunks/{build.action-NM6CAE5F.js → build.action-VBGFGACM.js} +19 -17
- package/chunks/chunk-35Z7VTJT.js +453 -0
- package/chunks/chunk-36LXIJIZ.js +52 -0
- package/chunks/{chunk-KKRGBXCE.js → chunk-43WALAW3.js} +248 -103
- package/chunks/{chunk-C2KAWRIX.js → chunk-5ENKYZA4.js} +1 -1
- package/chunks/{chunk-GTV2BVXV.js → chunk-5SMP756H.js} +2 -2
- package/chunks/{chunk-5JLVQVKO.js → chunk-6M7TL2G2.js} +146 -148
- package/chunks/chunk-6PSYZO3U.js +24 -0
- package/chunks/{chunk-EXY3ZTV4.js → chunk-ATNTXKMS.js} +36 -274
- package/chunks/{chunk-PH3WFNXJ.js → chunk-BIMLCGKS.js} +1 -1
- package/chunks/{chunk-HGOD6THU.js → chunk-CWVYOXXM.js} +2 -19
- package/chunks/chunk-DFOZG7ZV.js +15 -0
- package/chunks/chunk-DHZW7Q7U.js +133 -0
- package/chunks/{chunk-R5LK6VPY.js → chunk-G4HRW2FZ.js} +13 -20
- package/chunks/{chunk-KCCFN4F7.js → chunk-GLWTVLKM.js} +29 -29
- package/chunks/{chunk-5UHLAJQD.js → chunk-GYRQPDTK.js} +24 -10
- package/chunks/chunk-H467HDVV.js +24 -0
- package/chunks/chunk-IPZP3VRA.js +327 -0
- package/chunks/{chunk-2OCWX42S.js → chunk-JXGF5EHC.js} +152 -18
- package/chunks/chunk-K2HIB5BA.js +92 -0
- package/chunks/{chunk-FDC2IESH.js → chunk-KHF2QXBG.js} +1352 -8327
- package/chunks/{chunk-IMG35UXX.js → chunk-KZNRQVMY.js} +1 -1
- package/chunks/{chunk-OJ2EWIJH.js → chunk-MC4EMNOR.js} +5 -1
- package/chunks/{chunk-YILQODZF.js → chunk-MMWSCTDB.js} +7 -4
- package/chunks/{chunk-6XWCMJDB.js → chunk-MNNGUUKJ.js} +12 -11
- package/chunks/chunk-NAC63XJF.js +10 -0
- package/chunks/{chunk-XXSQUBXS.js → chunk-UDBSV3CK.js} +107 -453
- package/chunks/{chunk-IKT5F47M.js → chunk-VVRUSQCY.js} +11 -11
- package/chunks/{chunk-BPGFSSUH.js → chunk-VYFGRLVQ.js} +1 -1
- package/chunks/{chunk-UXJ753NV.js → chunk-WB6PWTMU.js} +5 -13
- package/chunks/{chunk-5DEU2DVL.js → chunk-WDIWLXLV.js} +3 -15
- package/chunks/{chunk-6YPQGVF4.js → chunk-WIEXQUTD.js} +1 -1
- package/chunks/{chunk-W24BETFG.js → chunk-XAGJJNQW.js} +3 -3
- package/chunks/{chunk-22HYZ7LE.js → chunk-ZGNDXPLU.js} +3 -3
- package/chunks/{chunk-XEDGMZJD.js → chunk-ZGVZU6L2.js} +81 -25
- package/chunks/{chunk-L3UXDCBI.js → chunk-ZKJPLWRJ.js} +2 -2
- package/chunks/{chunk-MLSZVVTT.js → chunk-ZYBLQ5CT.js} +13 -7
- package/chunks/{create.action-FUQ2BVJA.js → create.action-DBNIS665.js} +19 -17
- package/chunks/{delete.action-BTDFH7WY.js → delete.action-GBOZC45K.js} +19 -17
- package/chunks/{delete.action-47E66R3I.js → delete.action-K7BLK7DK.js} +19 -17
- package/chunks/{get.action-XC7KC2JO.js → get.action-N3JOY3OU.js} +17 -12
- package/chunks/get.action-QHKMYZBK.js +91 -0
- package/chunks/{list.action-LXKEUYKO.js → list.action-6SSO3JVN.js} +45 -15
- package/chunks/{list.action-OFGLMRE7.js → list.action-TJCS6UEY.js} +39 -19
- package/chunks/{publish.action-OS27XOX4.js → publish.action-T24VHRMR.js} +27 -22
- package/chunks/query-WKATAJJ6.js +129 -0
- package/chunks/scripts-VIBLGKYG.js +102 -0
- package/chunks/{update.action-ZMS4CQ3T.js → update.action-OGYNBXRU.js} +23 -18
- package/chunks/{update.action-AEIBLCWD.js → update.action-VOE6PH5F.js} +23 -18
- package/docs.html +941 -209
- package/index.js +374 -182
- package/package.json +14 -13
- package/skills/scalar-cli/SKILL.md +7 -1
- package/template.md +148 -26
- package/chunks/action-JAHFRYWZ.js +0 -423
- package/chunks/action-KTYOCA2V.js +0 -229
- package/chunks/chunk-K74E42RV.js +0 -7311
- package/chunks/chunk-QVQ4PNVL.js +0 -610
|
@@ -17246,16 +17246,16 @@ var NANOID_ALPHABET = "useandom26T198340PX75pxJACKVERYMINDBUSHWOLFGQZbfghjklqvwy
|
|
|
17246
17246
|
var nanoid3 = (size) => {
|
|
17247
17247
|
return customAlphabet(NANOID_ALPHABET, 21)(size);
|
|
17248
17248
|
};
|
|
17249
|
-
var emailSchema = external_exports.email().overwrite((s) => s.toLowerCase()).meta({ id: "email" });
|
|
17250
|
-
var timestampSchema = external_exports.number().int().min(0).meta({ id: "timestamp" });
|
|
17251
|
-
var nanoidSchema = external_exports.string().min(5).meta({ id: "nanoid" });
|
|
17249
|
+
var emailSchema = external_exports.email().overwrite((s) => s.toLowerCase()).meta({ id: "email", examples: ["alex@example.com"] });
|
|
17250
|
+
var timestampSchema = external_exports.number().int().min(0).meta({ id: "timestamp", examples: [1735689600] });
|
|
17251
|
+
var nanoidSchema = external_exports.string().min(5).meta({ id: "nanoid", examples: ["UakgbKJ5m9gl0JDMbcJqL"] });
|
|
17252
17252
|
var brandedUid = () => nanoidSchema.brand();
|
|
17253
17253
|
var mintUid = () => nanoid3();
|
|
17254
17254
|
var entitySchema = external_exports.object({
|
|
17255
|
-
uid: nanoidSchema.default(nanoid3).meta({ default:
|
|
17256
|
-
createdAt: timestampSchema.default(unixTimestamp).meta({ default:
|
|
17257
|
-
updatedAt: timestampSchema.default(unixTimestamp).meta({ default:
|
|
17258
|
-
}).meta({ id: "entity"
|
|
17255
|
+
uid: nanoidSchema.default(nanoid3).meta({ default: void 0 }),
|
|
17256
|
+
createdAt: timestampSchema.default(unixTimestamp).meta({ default: void 0 }),
|
|
17257
|
+
updatedAt: timestampSchema.default(unixTimestamp).meta({ default: void 0 })
|
|
17258
|
+
}).meta({ id: "entity" });
|
|
17259
17259
|
function unixTimestamp(date5 = Date.now()) {
|
|
17260
17260
|
return Math.floor(new Date(date5).getTime() / 1e3);
|
|
17261
17261
|
}
|
|
@@ -17270,11 +17270,11 @@ var deployEnvironmentsSchema = external_exports.enum(Environments).optional().de
|
|
|
17270
17270
|
var regexSemverNumberedGroups = /^(0|[1-9]\d*)\.(0|[1-9]\d*)\.(0|[1-9]\d*)(?:-((?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*)(?:\.(?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*))*))?(?:\+([0-9a-zA-Z-]+(?:\.[0-9a-zA-Z-]+)*))?$/;
|
|
17271
17271
|
var semverSchema = external_exports.string().regex(regexSemverNumberedGroups, {
|
|
17272
17272
|
message: "Version must be a valid semver format (e.g. 0.1.0)"
|
|
17273
|
-
}).meta({ id: "semver" });
|
|
17273
|
+
}).meta({ id: "semver", examples: ["1.2.0"] });
|
|
17274
17274
|
var RESERVED_VERSION_NAMES = ["latest"];
|
|
17275
17275
|
var docVersionSchema = external_exports.string().min(1, { message: "Version must be a non-empty string" }).refine((v) => !RESERVED_VERSION_NAMES.includes(v.toLowerCase()), {
|
|
17276
17276
|
message: `Version cannot be a reserved name: ${["latest"].join(", ")}`
|
|
17277
|
-
}).meta({ id: "version" });
|
|
17277
|
+
}).meta({ id: "version", examples: ["1.2.0"] });
|
|
17278
17278
|
function compareVersionsDesc(a, b) {
|
|
17279
17279
|
const aValid = semver.valid(a);
|
|
17280
17280
|
const bValid = semver.valid(b);
|
|
@@ -17289,7 +17289,7 @@ function compareVersionsDesc(a, b) {
|
|
|
17289
17289
|
var regexSlug = /^[a-z](?:[a-z0-9-]*[a-z0-9])?$/;
|
|
17290
17290
|
var slugSchema = external_exports.string().min(1, "Slug is required").max(60, "Slug must be less than 60 characters").regex(regexSlug, {
|
|
17291
17291
|
message: "Slug can have lowercase letters, digits, or hyphens. It must start with a lowercase letter and end with a letter or number."
|
|
17292
|
-
}).meta({ id: "slug" });
|
|
17292
|
+
}).meta({ id: "slug", examples: ["acme-api"] });
|
|
17293
17293
|
var toAsciiSlugOrUndefined = (title) => {
|
|
17294
17294
|
const candidate = slugify2(title, { ascii: true }).replace(/\./g, "").replace(/-+/g, "-").replace(/^-+|-+$/g, "").slice(0, 60).replace(/-+$/, "").replace(/^[^a-z]+/, "");
|
|
17295
17295
|
return slugSchema.safeParse(candidate).success ? candidate : void 0;
|
|
@@ -17310,7 +17310,7 @@ var originSchema = external_exports.codec(external_exports.string(), external_ex
|
|
|
17310
17310
|
}),
|
|
17311
17311
|
encode: (arr) => arr.map((x) => typeof x === "string" ? x : x.source).join(", ")
|
|
17312
17312
|
}).meta({ id: "origin" });
|
|
17313
|
-
var namespaceSchema = external_exports.string().regex(/^[a-zA-Z0-9-_]+$/, 'Namespaces can only contain letters, numbers, "-", and "_".').toLowerCase().min(2, "Namespaces need to be at least 2 characters.").max(50, "Namespaces need to be less than 50 characters.").meta({ id: "namespace" });
|
|
17313
|
+
var namespaceSchema = external_exports.string().regex(/^[a-zA-Z0-9-_]+$/, 'Namespaces can only contain letters, numbers, "-", and "_".').toLowerCase().min(2, "Namespaces need to be at least 2 characters.").max(50, "Namespaces need to be less than 50 characters.").meta({ id: "namespace", examples: ["acme"] });
|
|
17314
17314
|
var objectSchema = external_exports.record(external_exports.union([external_exports.string(), external_exports.number(), external_exports.symbol()]), external_exports.any()).meta({ id: "object" });
|
|
17315
17315
|
var registryMetaSchema = external_exports.object({
|
|
17316
17316
|
namespace: external_exports.string(),
|
|
@@ -10,7 +10,7 @@ var DownloadIsolateCommand = () => {
|
|
|
10
10
|
const cmd = new Command("download-isolate");
|
|
11
11
|
cmd.description("Download the docs preview server");
|
|
12
12
|
cmd.action(async () => {
|
|
13
|
-
const { downloadIsolate } = await import("./action-
|
|
13
|
+
const { downloadIsolate } = await import("./action-GWYYTUTM.js");
|
|
14
14
|
await downloadIsolate();
|
|
15
15
|
});
|
|
16
16
|
return cmd;
|
|
@@ -1,17 +1,10 @@
|
|
|
1
1
|
import { createRequire as $$cR } from "node:module"; const require = $$cR(import.meta.url);
|
|
2
|
+
import {
|
|
3
|
+
version
|
|
4
|
+
} from "./chunk-DHZW7Q7U.js";
|
|
2
5
|
|
|
3
6
|
// src/config.ts
|
|
4
7
|
import { portNumbers } from "get-port";
|
|
5
|
-
|
|
6
|
-
// package.json
|
|
7
|
-
var name = "@scalar/cli";
|
|
8
|
-
var version = "2.8.0";
|
|
9
|
-
var bin = {
|
|
10
|
-
scalar: "./dist/index.js",
|
|
11
|
-
"scalar-cli": "./dist/index.js"
|
|
12
|
-
};
|
|
13
|
-
|
|
14
|
-
// src/config.ts
|
|
15
8
|
var config = {
|
|
16
9
|
projects: {
|
|
17
10
|
dashboard: process.env.DASHBOARD_URL ?? "https://dashboard.scalar.com",
|
|
@@ -22,6 +15,8 @@ var config = {
|
|
|
22
15
|
api: process.env.BASE_URL ?? "https://services.scalar.com"
|
|
23
16
|
},
|
|
24
17
|
auth: {
|
|
18
|
+
/** The auth server the CLI signs in with and trades personal tokens at */
|
|
19
|
+
origin: process.env.AUTH_URL ?? "https://auth.scalar.com",
|
|
25
20
|
callback: {
|
|
26
21
|
preferredPortRange: process.env.PREFERRED_PORT ? Number.parseInt(process.env.PREFERRED_PORT) : portNumbers(4799, 5100)
|
|
27
22
|
}
|
|
@@ -32,8 +27,5 @@ var config = {
|
|
|
32
27
|
};
|
|
33
28
|
|
|
34
29
|
export {
|
|
35
|
-
name,
|
|
36
|
-
version,
|
|
37
|
-
bin,
|
|
38
30
|
config
|
|
39
31
|
};
|
|
@@ -1,27 +1,15 @@
|
|
|
1
1
|
import { createRequire as $$cR } from "node:module"; const require = $$cR(import.meta.url);
|
|
2
2
|
import {
|
|
3
3
|
getAuthData
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-35Z7VTJT.js";
|
|
5
5
|
import {
|
|
6
6
|
config
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-WB6PWTMU.js";
|
|
8
8
|
import {
|
|
9
9
|
external_exports,
|
|
10
10
|
objectSchema,
|
|
11
11
|
schemaModel
|
|
12
|
-
} from "./chunk-
|
|
13
|
-
|
|
14
|
-
// ../../packages/mongobase-client/dist/auth/tokens.js
|
|
15
|
-
var tokenResponseSchema = external_exports.object({
|
|
16
|
-
accessToken: external_exports.string(),
|
|
17
|
-
refreshToken: external_exports.string()
|
|
18
|
-
});
|
|
19
|
-
|
|
20
|
-
// ../../packages/mongobase-client/dist/auth/utility.js
|
|
21
|
-
var ErrorCode;
|
|
22
|
-
(function(ErrorCode2) {
|
|
23
|
-
ErrorCode2["AuthFail"] = "auth-fail";
|
|
24
|
-
})(ErrorCode || (ErrorCode = {}));
|
|
12
|
+
} from "./chunk-VVRUSQCY.js";
|
|
25
13
|
|
|
26
14
|
// ../../packages/mongobase-client/dist/database/access.js
|
|
27
15
|
var primitiveSchema = external_exports.union([
|
|
@@ -2,16 +2,16 @@ import { createRequire as $$cR } from "node:module"; const require = $$cR(import
|
|
|
2
2
|
import {
|
|
3
3
|
findConfig,
|
|
4
4
|
parseConfig
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-UDBSV3CK.js";
|
|
6
6
|
import {
|
|
7
7
|
ConfigVersion
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-6M7TL2G2.js";
|
|
9
9
|
import {
|
|
10
10
|
output
|
|
11
11
|
} from "./chunk-T5HJUAWB.js";
|
|
12
12
|
import {
|
|
13
13
|
external_exports
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-VVRUSQCY.js";
|
|
15
15
|
|
|
16
16
|
// src/domains/project/check-config/parse-config.ts
|
|
17
17
|
import fs from "node:fs";
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { createRequire as $$cR } from "node:module"; const require = $$cR(import.meta.url);
|
|
2
2
|
import {
|
|
3
3
|
BaseCollections
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-JXGF5EHC.js";
|
|
5
5
|
import {
|
|
6
6
|
getDatabaseClient
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-WDIWLXLV.js";
|
|
8
8
|
import {
|
|
9
9
|
publishRecordSchema
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-6M7TL2G2.js";
|
|
11
11
|
|
|
12
12
|
// src/domains/project/deployments/get-deployments.ts
|
|
13
13
|
function orderDeployments(records) {
|
|
@@ -6,7 +6,7 @@ import {
|
|
|
6
6
|
nanoidSchema,
|
|
7
7
|
slugSchema,
|
|
8
8
|
zod_default
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-VVRUSQCY.js";
|
|
10
10
|
|
|
11
11
|
// ../../packages/entities/dist/agent/embed.js
|
|
12
12
|
var embedStatuses = ["pending", "success", "failed"];
|
|
@@ -100,20 +100,20 @@ var mcpDocsProjectTrackModes = [
|
|
|
100
100
|
];
|
|
101
101
|
var mcpServerToolModes = ["generic", "curated", "both"];
|
|
102
102
|
var mcpServerSchema = external_exports.object({
|
|
103
|
-
id: external_exports.string(),
|
|
103
|
+
id: external_exports.string().meta({ examples: ["42"] }),
|
|
104
104
|
teamUid: external_exports.string(),
|
|
105
|
-
name: external_exports.string(),
|
|
105
|
+
name: external_exports.string().meta({ examples: ["Acme API"] }),
|
|
106
106
|
slug: slugSchema,
|
|
107
|
-
uid: external_exports.string(),
|
|
107
|
+
uid: external_exports.string().meta({ examples: ["UakgbKJ5m9gl0JDMbcJqL"] }),
|
|
108
108
|
namespace: namespaceSchema,
|
|
109
109
|
// Missing key parses to false, so a dashboard bundle keeps parsing agent
|
|
110
110
|
// responses that predate this column, whichever side deploys first.
|
|
111
|
-
autoAddOperations: external_exports.boolean().default(false),
|
|
111
|
+
autoAddOperations: external_exports.boolean().default(false).meta({ examples: [true] }),
|
|
112
112
|
// A mirror of the domain on the server's record in core, which owns it.
|
|
113
113
|
// Missing key parses to null for the same reason as above.
|
|
114
|
-
domain: external_exports.string().nullable().default(null),
|
|
115
|
-
createdAt: external_exports.string(),
|
|
116
|
-
updatedAt: external_exports.string()
|
|
114
|
+
domain: external_exports.string().nullable().default(null).meta({ examples: ["docs.example.com"] }),
|
|
115
|
+
createdAt: external_exports.string().meta({ examples: ["2025-01-01T00:00:00.000Z"] }),
|
|
116
|
+
updatedAt: external_exports.string().meta({ examples: ["2025-01-01T00:00:00.000Z"] })
|
|
117
117
|
}).meta({ id: "mcp-server" });
|
|
118
118
|
var mcpServerVersionSchema = external_exports.object({
|
|
119
119
|
id: external_exports.string(),
|
|
@@ -184,7 +184,12 @@ var mcpServerDocsPublishSchema = external_exports.object({
|
|
|
184
184
|
}).meta({
|
|
185
185
|
id: "mcp-server-docs-publish"
|
|
186
186
|
});
|
|
187
|
-
var mcpAuthModes = [
|
|
187
|
+
var mcpAuthModes = [
|
|
188
|
+
"global",
|
|
189
|
+
"passthrough",
|
|
190
|
+
"identity",
|
|
191
|
+
"oauth"
|
|
192
|
+
];
|
|
188
193
|
var PASSTHROUGH_NAME_REGEX = /^[A-Za-z0-9!#$%&'*+\-.^_`|~]+$/;
|
|
189
194
|
var PASSTHROUGH_MAX_ENTRIES = 20;
|
|
190
195
|
var PASSTHROUGH_NAME_MAX_LENGTH = 128;
|
|
@@ -246,24 +251,77 @@ var passthroughAuthListSchema = external_exports.array(passthroughAuthEntrySchem
|
|
|
246
251
|
});
|
|
247
252
|
});
|
|
248
253
|
});
|
|
254
|
+
var OAUTH_SCOPES_MAX_ENTRIES = 50;
|
|
255
|
+
var OAUTH_SCOPE_MAX_LENGTH = 200;
|
|
256
|
+
var mcpOauthPassthroughSchema = external_exports.object({
|
|
257
|
+
/**
|
|
258
|
+
* The issuer MCP clients discover through RFC 8414 metadata and sign in
|
|
259
|
+
* with. Exactly what the protected resource metadata lists, so it is the
|
|
260
|
+
* issuer identifier and not the authorize endpoint.
|
|
261
|
+
*/
|
|
262
|
+
authorizationServer: external_exports.url({
|
|
263
|
+
protocol: /^https$/,
|
|
264
|
+
message: "Enter the https URL of the authorization server (its issuer)"
|
|
265
|
+
}),
|
|
266
|
+
/** Advertised as `scopes_supported`, so clients know what to request */
|
|
267
|
+
scopes: external_exports.array(external_exports.string().min(1).max(OAUTH_SCOPE_MAX_LENGTH).regex(/^[\x21\x23-\x5B\x5D-\x7E]+$/, "Invalid character in scope")).max(OAUTH_SCOPES_MAX_ENTRIES).default([])
|
|
268
|
+
});
|
|
249
269
|
var mcpVersionAuthSchema = external_exports.object({
|
|
250
270
|
mode: external_exports.enum(mcpAuthModes).default("global"),
|
|
251
|
-
passthrough: passthroughAuthListSchema.default([])
|
|
271
|
+
passthrough: passthroughAuthListSchema.default([]),
|
|
272
|
+
oauth: mcpOauthPassthroughSchema.optional()
|
|
273
|
+
}).superRefine((config, ctx) => {
|
|
274
|
+
if (config.mode === "oauth" && !config.oauth)
|
|
275
|
+
ctx.addIssue({
|
|
276
|
+
code: "custom",
|
|
277
|
+
message: "OAuth passthrough needs an authorization server",
|
|
278
|
+
path: ["oauth"]
|
|
279
|
+
});
|
|
280
|
+
});
|
|
281
|
+
var mcpAuthConfigSchema = external_exports.record(external_exports.string(), mcpVersionAuthSchema).superRefine((authConfig, ctx) => {
|
|
282
|
+
const hasIdentity = Object.values(authConfig).some((config) => config.mode === "identity");
|
|
283
|
+
const hasOauth = Object.values(authConfig).some((config) => config.mode === "oauth");
|
|
284
|
+
let issuer;
|
|
285
|
+
for (const [versionId, config] of Object.entries(authConfig)) {
|
|
286
|
+
if (hasOauth && config.mode === "passthrough") {
|
|
287
|
+
const index = config.passthrough.findIndex((entry) => entry.in === "header" && entry.name.toLowerCase() === "authorization");
|
|
288
|
+
if (index !== -1)
|
|
289
|
+
ctx.addIssue({
|
|
290
|
+
code: "custom",
|
|
291
|
+
message: "Authorization is used by OAuth passthrough on this installation, so it cannot also be forwarded",
|
|
292
|
+
path: [versionId, "passthrough", index, "name"]
|
|
293
|
+
});
|
|
294
|
+
}
|
|
295
|
+
if (config.mode !== "oauth" || !config.oauth)
|
|
296
|
+
continue;
|
|
297
|
+
if (hasIdentity)
|
|
298
|
+
ctx.addIssue({
|
|
299
|
+
code: "custom",
|
|
300
|
+
message: "OAuth passthrough cannot be combined with identity mode on one installation",
|
|
301
|
+
path: [versionId, "mode"]
|
|
302
|
+
});
|
|
303
|
+
issuer ??= config.oauth.authorizationServer;
|
|
304
|
+
if (config.oauth.authorizationServer !== issuer)
|
|
305
|
+
ctx.addIssue({
|
|
306
|
+
code: "custom",
|
|
307
|
+
message: "Every API using OAuth passthrough must use the same authorization server",
|
|
308
|
+
path: [versionId, "oauth", "authorizationServer"]
|
|
309
|
+
});
|
|
310
|
+
}
|
|
252
311
|
});
|
|
253
|
-
var mcpAuthConfigSchema = external_exports.record(external_exports.string(), mcpVersionAuthSchema);
|
|
254
312
|
var mcpInstallationSchema = external_exports.object({
|
|
255
|
-
id: external_exports.string(),
|
|
256
|
-
mcpServerId: external_exports.string(),
|
|
257
|
-
name: external_exports.string(),
|
|
313
|
+
id: external_exports.string().meta({ examples: ["42"] }),
|
|
314
|
+
mcpServerId: external_exports.string().meta({ examples: ["42"] }),
|
|
315
|
+
name: external_exports.string().meta({ examples: ["Acme API"] }),
|
|
258
316
|
slug: slugSchema,
|
|
259
317
|
documentAuth: external_exports.record(external_exports.string(), external_exports.unknown()),
|
|
260
|
-
isPrivate: external_exports.boolean(),
|
|
261
|
-
accessGroups: external_exports.array(external_exports.string()).default([]),
|
|
262
|
-
loginPortalUid: external_exports.string().nullable().default(null),
|
|
318
|
+
isPrivate: external_exports.boolean().meta({ examples: [false] }),
|
|
319
|
+
accessGroups: external_exports.array(external_exports.string()).default([]).meta({ examples: [["UakgbKJ5m9gl0JDMbcJqL"]] }),
|
|
320
|
+
loginPortalUid: external_exports.string().nullable().default(null).meta({ examples: ["LakgbKJ5m9gl0JDMbcJqL"] }),
|
|
263
321
|
authConfig: mcpAuthConfigSchema.default({}),
|
|
264
|
-
mcpVersion: external_exports.string().nullable().default(null),
|
|
265
|
-
piiRedactionEnabled: external_exports.boolean().default(false),
|
|
266
|
-
credentialRedactionEnabled: external_exports.boolean().default(false)
|
|
322
|
+
mcpVersion: external_exports.string().nullable().default(null).meta({ examples: ["1.2.0"] }),
|
|
323
|
+
piiRedactionEnabled: external_exports.boolean().default(false).meta({ examples: [true] }),
|
|
324
|
+
credentialRedactionEnabled: external_exports.boolean().default(false).meta({ examples: [true] })
|
|
267
325
|
}).meta({ id: "mcp-installation" });
|
|
268
326
|
|
|
269
327
|
// ../../packages/entities/dist/agent/monthly-usage.js
|
|
@@ -312,12 +370,11 @@ var keyDocumentSchema = zod_default.object({
|
|
|
312
370
|
documentId: zod_default.uuid()
|
|
313
371
|
}).meta({ id: "key-documents" });
|
|
314
372
|
|
|
315
|
-
// ../../node_modules/.pnpm/@scalar+helpers@0.
|
|
316
|
-
var
|
|
317
|
-
var httpMethods = Object.freeze(new Set(HTTP_METHODS));
|
|
373
|
+
// ../../node_modules/.pnpm/@scalar+helpers@0.16.1/node_modules/@scalar/helpers/dist/http/http-token.js
|
|
374
|
+
var HTTP_TOKEN = /^[!#$%&'*+.^_`|~0-9A-Za-z-]+$/;
|
|
318
375
|
|
|
319
376
|
// ../../packages/entities/dist/agent/operation.js
|
|
320
|
-
var methodSchema = zod_default.
|
|
377
|
+
var methodSchema = zod_default.string().regex(HTTP_TOKEN, "Invalid HTTP method").meta({ id: "method" });
|
|
321
378
|
var operationSchema = zod_default.object({
|
|
322
379
|
id: zod_default.uuid(),
|
|
323
380
|
path: zod_default.string(),
|
|
@@ -361,6 +418,5 @@ export {
|
|
|
361
418
|
mcpAuthConfigSchema,
|
|
362
419
|
mcpInstallationSchema,
|
|
363
420
|
monthlyUsageSchema,
|
|
364
|
-
HTTP_METHODS,
|
|
365
421
|
methodSchema
|
|
366
422
|
};
|
|
@@ -5,10 +5,10 @@ import {
|
|
|
5
5
|
import {
|
|
6
6
|
ISOLATE_DIR,
|
|
7
7
|
ISOLATE_EXTRACTION_DIR
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-VYFGRLVQ.js";
|
|
9
9
|
import {
|
|
10
10
|
config
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-WB6PWTMU.js";
|
|
12
12
|
import {
|
|
13
13
|
output
|
|
14
14
|
} from "./chunk-T5HJUAWB.js";
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import { createRequire as $$cR } from "node:module"; const require = $$cR(import.meta.url);
|
|
2
2
|
import {
|
|
3
|
+
emailAllowanceSchema,
|
|
3
4
|
teamImageSchema,
|
|
4
5
|
teamNameSchema
|
|
5
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-GYRQPDTK.js";
|
|
6
7
|
import {
|
|
7
8
|
brandedUid,
|
|
8
9
|
emailSchema,
|
|
@@ -11,7 +12,7 @@ import {
|
|
|
11
12
|
mintUid,
|
|
12
13
|
timestampSchema,
|
|
13
14
|
zod_default
|
|
14
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-VVRUSQCY.js";
|
|
15
16
|
|
|
16
17
|
// ../../packages/entities/dist/user/bitbucket.js
|
|
17
18
|
var userBitbucketSchema = entitySchema.extend({
|
|
@@ -70,19 +71,24 @@ var teamRefSchema = zod_default.object({
|
|
|
70
71
|
var userSchema = entitySchema.extend({
|
|
71
72
|
/** Own uid, branded so it cannot be confused with another entity's uid */
|
|
72
73
|
uid: brandedUid().default(mintUid).meta({
|
|
73
|
-
default:
|
|
74
|
+
default: void 0
|
|
74
75
|
}),
|
|
75
|
-
theme: zod_default.string().optional(),
|
|
76
|
+
theme: zod_default.string().optional().meta({ examples: ["default"] }),
|
|
76
77
|
/** Email or other unique token identifier for performant auth lookup */
|
|
77
78
|
userIndex: zod_default.string().overwrite((s) => s.toLowerCase()),
|
|
78
79
|
/** Federated auth provided must have a linked email */
|
|
79
80
|
email: emailSchema,
|
|
80
81
|
teams: teamRefSchema.array(),
|
|
81
|
-
activeTeamId: zod_default.string().brand().nullable(),
|
|
82
|
-
hasGithub: zod_default.boolean().optional().default(false),
|
|
82
|
+
activeTeamId: zod_default.string().brand().nullable().meta({ examples: ["GakgbKJ5m9gl0JDMbcJqL"] }),
|
|
83
|
+
hasGithub: zod_default.boolean().optional().default(false).meta({ examples: [true] }),
|
|
83
84
|
hasBitbucket: zod_default.boolean().optional().default(false),
|
|
84
85
|
/** Forgejo personal access token for git operations */
|
|
85
|
-
forgejoToken: zod_default.string().optional()
|
|
86
|
+
forgejoToken: zod_default.string().optional(),
|
|
87
|
+
/**
|
|
88
|
+
* Invite emails this user has sent from teams without a paid plan, in the
|
|
89
|
+
* current day and month.
|
|
90
|
+
*/
|
|
91
|
+
emailAllowance: emailAllowanceSchema.optional()
|
|
86
92
|
}).meta({ id: "user" });
|
|
87
93
|
|
|
88
94
|
export {
|
|
@@ -1,46 +1,48 @@
|
|
|
1
1
|
import { createRequire as $$cR } from "node:module"; const require = $$cR(import.meta.url);
|
|
2
2
|
import {
|
|
3
3
|
BaseCollections
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-JXGF5EHC.js";
|
|
5
5
|
import {
|
|
6
6
|
getDatabaseClient
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-WDIWLXLV.js";
|
|
8
8
|
import {
|
|
9
9
|
apiService
|
|
10
|
-
} from "./chunk-
|
|
11
|
-
import "./chunk-
|
|
12
|
-
import "./chunk-
|
|
10
|
+
} from "./chunk-ATNTXKMS.js";
|
|
11
|
+
import "./chunk-43WALAW3.js";
|
|
12
|
+
import "./chunk-ZYBLQ5CT.js";
|
|
13
|
+
import "./chunk-KHF2QXBG.js";
|
|
13
14
|
import {
|
|
14
15
|
SdkLanguage
|
|
15
|
-
} from "./chunk-
|
|
16
|
-
import "./chunk-
|
|
17
|
-
import "./chunk-
|
|
16
|
+
} from "./chunk-IPZP3VRA.js";
|
|
17
|
+
import "./chunk-5ENKYZA4.js";
|
|
18
|
+
import "./chunk-G4HRW2FZ.js";
|
|
19
|
+
import "./chunk-36LXIJIZ.js";
|
|
18
20
|
import {
|
|
19
21
|
getAuthData
|
|
20
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-35Z7VTJT.js";
|
|
21
23
|
import {
|
|
22
24
|
config
|
|
23
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-WB6PWTMU.js";
|
|
26
|
+
import "./chunk-DHZW7Q7U.js";
|
|
24
27
|
import {
|
|
25
28
|
teamSchema
|
|
26
|
-
} from "./chunk-
|
|
27
|
-
import "./chunk-
|
|
29
|
+
} from "./chunk-GYRQPDTK.js";
|
|
30
|
+
import "./chunk-6M7TL2G2.js";
|
|
28
31
|
import {
|
|
29
32
|
requireInteractive
|
|
30
33
|
} from "./chunk-EGOXR5FB.js";
|
|
31
|
-
import "./chunk-
|
|
32
|
-
import "./chunk-KCCFN4F7.js";
|
|
33
|
-
import "./chunk-6XWCMJDB.js";
|
|
34
|
+
import "./chunk-GLWTVLKM.js";
|
|
34
35
|
import "./chunk-4ORL4MST.js";
|
|
36
|
+
import "./chunk-MNNGUUKJ.js";
|
|
35
37
|
import {
|
|
36
38
|
output
|
|
37
39
|
} from "./chunk-T5HJUAWB.js";
|
|
38
|
-
import "./chunk-
|
|
40
|
+
import "./chunk-ZGVZU6L2.js";
|
|
39
41
|
import {
|
|
40
42
|
external_exports,
|
|
41
43
|
namespaceSchema,
|
|
42
44
|
slugSchema
|
|
43
|
-
} from "./chunk-
|
|
45
|
+
} from "./chunk-VVRUSQCY.js";
|
|
44
46
|
import "./chunk-3MZYUBJ6.js";
|
|
45
47
|
|
|
46
48
|
// src/domains/sdk/create.action.ts
|
|
@@ -1,44 +1,46 @@
|
|
|
1
1
|
import { createRequire as $$cR } from "node:module"; const require = $$cR(import.meta.url);
|
|
2
2
|
import {
|
|
3
3
|
BaseCollections
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-JXGF5EHC.js";
|
|
5
5
|
import {
|
|
6
6
|
getDatabaseClient
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-WDIWLXLV.js";
|
|
8
8
|
import {
|
|
9
9
|
apiService
|
|
10
|
-
} from "./chunk-
|
|
11
|
-
import "./chunk-
|
|
12
|
-
import "./chunk-
|
|
10
|
+
} from "./chunk-ATNTXKMS.js";
|
|
11
|
+
import "./chunk-43WALAW3.js";
|
|
12
|
+
import "./chunk-ZYBLQ5CT.js";
|
|
13
|
+
import "./chunk-KHF2QXBG.js";
|
|
13
14
|
import {
|
|
14
15
|
sdkSchema
|
|
15
|
-
} from "./chunk-
|
|
16
|
-
import "./chunk-
|
|
17
|
-
import "./chunk-
|
|
16
|
+
} from "./chunk-IPZP3VRA.js";
|
|
17
|
+
import "./chunk-5ENKYZA4.js";
|
|
18
|
+
import "./chunk-G4HRW2FZ.js";
|
|
19
|
+
import "./chunk-36LXIJIZ.js";
|
|
18
20
|
import {
|
|
19
21
|
getAuthData
|
|
20
|
-
} from "./chunk-
|
|
21
|
-
import "./chunk-
|
|
22
|
+
} from "./chunk-35Z7VTJT.js";
|
|
23
|
+
import "./chunk-WB6PWTMU.js";
|
|
24
|
+
import "./chunk-DHZW7Q7U.js";
|
|
22
25
|
import {
|
|
23
26
|
teamSchema
|
|
24
|
-
} from "./chunk-
|
|
25
|
-
import "./chunk-
|
|
27
|
+
} from "./chunk-GYRQPDTK.js";
|
|
28
|
+
import "./chunk-6M7TL2G2.js";
|
|
26
29
|
import {
|
|
27
30
|
requireInteractive
|
|
28
31
|
} from "./chunk-EGOXR5FB.js";
|
|
29
|
-
import "./chunk-
|
|
30
|
-
import "./chunk-KCCFN4F7.js";
|
|
31
|
-
import "./chunk-6XWCMJDB.js";
|
|
32
|
+
import "./chunk-GLWTVLKM.js";
|
|
32
33
|
import "./chunk-4ORL4MST.js";
|
|
34
|
+
import "./chunk-MNNGUUKJ.js";
|
|
33
35
|
import {
|
|
34
36
|
output
|
|
35
37
|
} from "./chunk-T5HJUAWB.js";
|
|
36
|
-
import "./chunk-
|
|
38
|
+
import "./chunk-ZGVZU6L2.js";
|
|
37
39
|
import {
|
|
38
40
|
external_exports,
|
|
39
41
|
namespaceSchema,
|
|
40
42
|
slugSchema
|
|
41
|
-
} from "./chunk-
|
|
43
|
+
} from "./chunk-VVRUSQCY.js";
|
|
42
44
|
import "./chunk-3MZYUBJ6.js";
|
|
43
45
|
|
|
44
46
|
// src/domains/sdk/delete.action.ts
|
|
@@ -1,42 +1,44 @@
|
|
|
1
1
|
import { createRequire as $$cR } from "node:module"; const require = $$cR(import.meta.url);
|
|
2
2
|
import {
|
|
3
3
|
BaseCollections
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-JXGF5EHC.js";
|
|
5
5
|
import {
|
|
6
6
|
getDatabaseClient
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-WDIWLXLV.js";
|
|
8
8
|
import {
|
|
9
9
|
apiService
|
|
10
|
-
} from "./chunk-
|
|
11
|
-
import "./chunk-
|
|
12
|
-
import "./chunk-
|
|
13
|
-
import "./chunk-
|
|
14
|
-
import "./chunk-
|
|
15
|
-
import "./chunk-
|
|
10
|
+
} from "./chunk-ATNTXKMS.js";
|
|
11
|
+
import "./chunk-43WALAW3.js";
|
|
12
|
+
import "./chunk-ZYBLQ5CT.js";
|
|
13
|
+
import "./chunk-KHF2QXBG.js";
|
|
14
|
+
import "./chunk-IPZP3VRA.js";
|
|
15
|
+
import "./chunk-5ENKYZA4.js";
|
|
16
|
+
import "./chunk-G4HRW2FZ.js";
|
|
17
|
+
import "./chunk-36LXIJIZ.js";
|
|
16
18
|
import {
|
|
17
19
|
getAuthData
|
|
18
|
-
} from "./chunk-
|
|
19
|
-
import "./chunk-
|
|
20
|
+
} from "./chunk-35Z7VTJT.js";
|
|
21
|
+
import "./chunk-WB6PWTMU.js";
|
|
22
|
+
import "./chunk-DHZW7Q7U.js";
|
|
20
23
|
import {
|
|
21
24
|
teamSchema
|
|
22
|
-
} from "./chunk-
|
|
23
|
-
import "./chunk-
|
|
25
|
+
} from "./chunk-GYRQPDTK.js";
|
|
26
|
+
import "./chunk-6M7TL2G2.js";
|
|
24
27
|
import {
|
|
25
28
|
requireInteractive
|
|
26
29
|
} from "./chunk-EGOXR5FB.js";
|
|
27
|
-
import "./chunk-
|
|
28
|
-
import "./chunk-KCCFN4F7.js";
|
|
29
|
-
import "./chunk-6XWCMJDB.js";
|
|
30
|
+
import "./chunk-GLWTVLKM.js";
|
|
30
31
|
import "./chunk-4ORL4MST.js";
|
|
32
|
+
import "./chunk-MNNGUUKJ.js";
|
|
31
33
|
import {
|
|
32
34
|
output
|
|
33
35
|
} from "./chunk-T5HJUAWB.js";
|
|
34
|
-
import "./chunk-
|
|
36
|
+
import "./chunk-ZGVZU6L2.js";
|
|
35
37
|
import {
|
|
36
38
|
external_exports,
|
|
37
39
|
namespaceSchema,
|
|
38
40
|
slugSchema
|
|
39
|
-
} from "./chunk-
|
|
41
|
+
} from "./chunk-VVRUSQCY.js";
|
|
40
42
|
import "./chunk-3MZYUBJ6.js";
|
|
41
43
|
|
|
42
44
|
// src/domains/schema/delete.action.ts
|
|
@@ -1,28 +1,33 @@
|
|
|
1
1
|
import { createRequire as $$cR } from "node:module"; const require = $$cR(import.meta.url);
|
|
2
2
|
import {
|
|
3
3
|
fetchFromRegistry
|
|
4
|
-
} from "./chunk-
|
|
5
|
-
import "./chunk-
|
|
4
|
+
} from "./chunk-BIMLCGKS.js";
|
|
5
|
+
import "./chunk-5SMP756H.js";
|
|
6
6
|
import {
|
|
7
7
|
registry
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-MMWSCTDB.js";
|
|
9
|
+
import {
|
|
10
|
+
DOCUMENT_FORMATS
|
|
11
|
+
} from "./chunk-NAC63XJF.js";
|
|
12
|
+
import "./chunk-36LXIJIZ.js";
|
|
9
13
|
import {
|
|
10
14
|
getAuthData
|
|
11
|
-
} from "./chunk-
|
|
12
|
-
import "./chunk-
|
|
13
|
-
import "./chunk-
|
|
14
|
-
import "./chunk-
|
|
15
|
-
import "./chunk-
|
|
16
|
-
import "./chunk-
|
|
15
|
+
} from "./chunk-35Z7VTJT.js";
|
|
16
|
+
import "./chunk-WB6PWTMU.js";
|
|
17
|
+
import "./chunk-DHZW7Q7U.js";
|
|
18
|
+
import "./chunk-GYRQPDTK.js";
|
|
19
|
+
import "./chunk-6M7TL2G2.js";
|
|
20
|
+
import "./chunk-GLWTVLKM.js";
|
|
17
21
|
import "./chunk-4ORL4MST.js";
|
|
22
|
+
import "./chunk-MNNGUUKJ.js";
|
|
18
23
|
import {
|
|
19
24
|
output
|
|
20
25
|
} from "./chunk-T5HJUAWB.js";
|
|
21
|
-
import "./chunk-
|
|
26
|
+
import "./chunk-ZGVZU6L2.js";
|
|
22
27
|
import {
|
|
23
28
|
docVersionSchema,
|
|
24
29
|
external_exports
|
|
25
|
-
} from "./chunk-
|
|
30
|
+
} from "./chunk-VVRUSQCY.js";
|
|
26
31
|
import "./chunk-3MZYUBJ6.js";
|
|
27
32
|
|
|
28
33
|
// src/domains/schema/get.action.ts
|
|
@@ -39,7 +44,7 @@ async function getAction(namespace, slug, args) {
|
|
|
39
44
|
}
|
|
40
45
|
const result = external_exports.object({
|
|
41
46
|
version: versionSchema,
|
|
42
|
-
format: external_exports.enum(
|
|
47
|
+
format: external_exports.enum(DOCUMENT_FORMATS),
|
|
43
48
|
output: external_exports.string().min(1).optional()
|
|
44
49
|
}).safeParse({
|
|
45
50
|
version: args.version ?? "latest",
|