@scalar/cli 2.15.0 → 2.18.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 +121 -25
- package/chunks/{action-3W4IC7QL.js → action-2WVJ2WEW.js} +26 -27
- package/chunks/{action-HOCCP353.js → action-4BDZ2CXP.js} +12 -13
- package/chunks/{action-3QQSKGM3.js → action-5AXDB5VN.js} +21 -23
- package/chunks/{action-LD5B5QQ4.js → action-6I3TJLRO.js} +34 -33
- package/chunks/{action-T7SD3ETN.js → action-6WZN63LT.js} +299 -75
- package/chunks/{action-IUAYC2SC.js → action-7GZGVTYI.js} +1071 -775
- package/chunks/{action-2BGAMGXU.js → action-7ZCJAWI2.js} +9 -9
- package/chunks/{action-6HFH7DAW.js → action-A6YOY24G.js} +14 -10
- package/chunks/{action-IU2AVNOW.js → action-AGGHY4N2.js} +26 -26
- package/chunks/{action-B2WWTOF6.js → action-BVZOA2G5.js} +15 -16
- package/chunks/{action-2UZWKMSJ.js → action-BYDJ4R4F.js} +18 -19
- package/chunks/{action-HDT7EO7W.js → action-CBAL5CYB.js} +19 -21
- package/chunks/action-COFGCCYS.js +89 -0
- package/chunks/action-CYU5Q5LT.js +254 -0
- package/chunks/{action-MJHLG7AE.js → action-DTQH6CKR.js} +33 -33
- package/chunks/{action-P2RPH5R2.js → action-ED5WLLIE.js} +11 -12
- package/chunks/action-F4CQ4DW3.js +654 -0
- package/chunks/{action-SRFBOLDL.js → action-GQDQU2WE.js} +1 -1
- package/chunks/{action-PDSSIW2A.js → action-GVW5PSPT.js} +26 -28
- package/chunks/{action-WOLNPEUQ.js → action-H5VRLFCY.js} +16 -12
- package/chunks/{action-G2WBTXOK.js → action-IWEAWDT3.js} +19 -19
- package/chunks/{action-NZJ4Z64U.js → action-JN6JVQUV.js} +16 -18
- package/chunks/{action-PNSWHIHC.js → action-KVM76ZKQ.js} +20 -20
- package/chunks/{action-JNH4DCZX.js → action-LLMFEBHH.js} +3 -4
- package/chunks/{action-QJMRAFOF.js → action-PEG7AUA6.js} +20 -19
- package/chunks/{action-2HPMP473.js → action-QC72LLYE.js} +13 -11
- package/chunks/{action-ZTLOQZTT.js → action-QP6MRSQW.js} +16 -15
- package/chunks/{action-4HXB3YQR.js → action-R53K22GE.js} +230 -52
- package/chunks/{action-U2RJ3ZAU.js → action-SJPWL723.js} +6 -5
- package/chunks/{action-57SV3ZBM.js → action-T3R4SDAI.js} +9 -9
- package/chunks/{action-777R7LOG.js → action-TT7ZJNST.js} +25 -25
- package/chunks/{action-TY4BZEMN.js → action-UPVVJE26.js} +18 -19
- package/chunks/{action-MBAAYXKK.js → action-V35W4MRK.js} +18 -19
- package/chunks/{action-TR2T2UYB.js → action-W4KGRBRV.js} +9 -9
- package/chunks/{action-ENDUKGWS.js → action-ZIVYJCC2.js} +16 -18
- package/chunks/{action-7LK4RUDP.js → action-ZU5X2KQX.js} +52 -49
- package/chunks/{actions-D5OHPBWC.js → actions-CERT7BL4.js} +25 -26
- package/chunks/{actions-RI42JY6H.js → actions-RCIS37Y6.js} +22 -24
- package/chunks/{agent-NA3QFKJX.js → agent-CT3RRYPJ.js} +7 -7
- package/chunks/{asyncapi-YBTWMTW6.js → asyncapi-DVBS23QW.js} +17 -18
- package/chunks/{build.action-4YDNDBXC.js → build.action-7MKMMV6V.js} +38 -32
- package/chunks/{chunk-MGGMCT77.js → chunk-36UI2W7I.js} +1 -1
- package/chunks/chunk-4BMOCIYO.js +536 -0
- package/chunks/{chunk-ADQ6B6QI.js → chunk-5DRLDTTU.js} +1 -1
- package/chunks/{chunk-G5WWW7VD.js → chunk-5EO2CVAR.js} +6 -6
- package/chunks/{chunk-Q26DFKTY.js → chunk-5GZAGHKL.js} +1 -1
- package/chunks/{chunk-DWJMPHLY.js → chunk-7LUXRNKV.js} +27 -2
- package/chunks/{chunk-BY4NGQ5D.js → chunk-A2MPF6GE.js} +7 -3
- package/chunks/{chunk-5D3T63G4.js → chunk-BIQFYZP6.js} +1 -1
- package/chunks/chunk-CNJ4TLU7.js +83 -0
- package/chunks/{chunk-UM3WZUGF.js → chunk-CWCRBWA6.js} +7 -3
- package/chunks/{chunk-Z6HOHGUJ.js → chunk-CYIGEQOJ.js} +2 -2
- package/chunks/{chunk-4S3DGMMZ.js → chunk-DUIMDHQQ.js} +1 -1
- package/chunks/{chunk-W7P6VTCG.js → chunk-DVA4NCCY.js} +6 -4
- package/chunks/chunk-DWWY3LPC.js +85 -0
- package/chunks/{chunk-USVU6AC2.js → chunk-F6E7FJEC.js} +18 -12
- package/chunks/{chunk-E24BNP6E.js → chunk-FDW4LC45.js} +1 -1
- package/chunks/{chunk-TW2UASEW.js → chunk-FMPJSW6A.js} +4 -4
- package/chunks/{chunk-IPWJEGPD.js → chunk-GCVB22TG.js} +2 -2
- package/chunks/{chunk-6BQHLHBE.js → chunk-GXKNYM54.js} +3 -3
- package/chunks/chunk-I25ZCHBJ.js +22 -0
- package/chunks/{chunk-I57ID5K7.js → chunk-JBMHCTZD.js} +8 -1
- package/chunks/{chunk-KOLEQNLG.js → chunk-JEOQ7LSA.js} +1 -1
- package/chunks/{chunk-QMERQSPM.js → chunk-KI2AVDKM.js} +8 -6
- package/chunks/{chunk-2KSOARE4.js → chunk-KSY2GH53.js} +3 -3
- package/chunks/{chunk-SHRUJFQI.js → chunk-KWQVA66H.js} +105 -18
- package/chunks/{chunk-DLYMDGFW.js → chunk-LPWRG2MS.js} +4 -4
- package/chunks/{chunk-Y6GKZ2FM.js → chunk-LVUMNGVA.js} +1 -1
- package/chunks/{chunk-PIDLENYN.js → chunk-M34HMQMV.js} +42 -83
- package/chunks/{chunk-7FS7BAUX.js → chunk-MRZ5A7LB.js} +133 -19
- package/chunks/chunk-O3I3LTTJ.js +24 -0
- package/chunks/{chunk-VBHPHAGS.js → chunk-O4DJIA6Y.js} +2 -18
- package/chunks/chunk-OKLL5422.js +263 -0
- package/chunks/{chunk-HIDIW2FN.js → chunk-OQE3WKI3.js} +1 -1
- package/chunks/{chunk-ERZ3HYB5.js → chunk-PMDHYIB4.js} +9 -21
- package/chunks/{chunk-IDGT5RAQ.js → chunk-RELSIFIL.js} +2 -2
- package/chunks/{chunk-BOCMOHQA.js → chunk-RGJPENX7.js} +1 -1
- package/chunks/{chunk-7FGJIUDN.js → chunk-RHAQ4XBA.js} +3 -3
- package/chunks/chunk-RQ7QBRJT.js +93 -0
- package/chunks/chunk-S3LY7RKP.js +54 -0
- package/chunks/{chunk-T76K7QNX.js → chunk-S5OGPH2P.js} +3 -3
- package/chunks/{chunk-ANP5XF26.js → chunk-U36HEOGO.js} +12625 -1369
- package/chunks/{chunk-IPUJEBMI.js → chunk-UWRJCJVG.js} +1 -1
- package/chunks/chunk-V7DBDXSJ.js +24 -0
- package/chunks/{chunk-RRYUCZYO.js → chunk-WGTZEX4Y.js} +7 -3
- package/chunks/{chunk-7PNOYE6B.js → chunk-Y3CXAIAG.js} +30 -3
- package/chunks/{chunk-GOKHFNB2.js → chunk-Z7EH7CJC.js} +3 -3
- package/chunks/{chunk-42MIV6WF.js → chunk-ZMJW5UWU.js} +6 -5
- package/chunks/chunk-ZQDAPKWX.js +111 -0
- package/chunks/{create.action-52K3XAYN.js → create.action-VA2ISPIM.js} +27 -29
- package/chunks/{delete.action-47LPLTOX.js → delete.action-AIWMDGXV.js} +26 -28
- package/chunks/{delete.action-3NMOQPIR.js → delete.action-GEN6OD7A.js} +26 -28
- package/chunks/{diff.action-5TLC2EHT.js → diff.action-LBK656RN.js} +32 -27
- package/chunks/{get.action-BCMLG7C7.js → get.action-5SWRNQ3D.js} +20 -19
- package/chunks/{get.action-TOZ474GO.js → get.action-UPPPGGI4.js} +29 -23
- package/chunks/{list.action-6ZWEENT6.js → list.action-YJZBC25S.js} +26 -28
- package/chunks/{list.action-CMAA5KTY.js → list.action-YOWWC4I4.js} +54 -25
- package/chunks/{publish.action-U3VIU5LZ.js → publish.action-QMVDHDJZ.js} +52 -49
- package/chunks/{update.action-UQHZYVTP.js → update.action-GFDZIGEP.js} +27 -29
- package/chunks/{update.action-QZOP25ME.js → update.action-SNGKPS7A.js} +26 -28
- package/index.js +688 -212
- package/package.json +11 -11
- package/skills/scalar-cli/SKILL.md +4 -3
- package/template.md +120 -24
- package/chunks/action-3KP3WVPZ.js +0 -112
- package/chunks/action-APBLB3IU.js +0 -235
- package/chunks/chunk-BLY2CF4S.js +0 -58
- package/chunks/chunk-BMQFEKHA.js +0 -3534
- package/chunks/chunk-EOTD7HAV.js +0 -318
- package/chunks/chunk-QXOUDBFK.js +0 -92
- package/chunks/chunk-TR5U7G7T.js +0 -32
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
import { createRequire as $$cR } from "node:module"; const require = $$cR(import.meta.url);
|
|
2
|
+
import {
|
|
3
|
+
err,
|
|
4
|
+
ok
|
|
5
|
+
} from "./chunk-DUIMDHQQ.js";
|
|
6
|
+
|
|
7
|
+
// src/helpers/write-file-atomic.ts
|
|
8
|
+
import { randomUUID } from "node:crypto";
|
|
9
|
+
import { constants } from "node:fs";
|
|
10
|
+
import fs from "node:fs/promises";
|
|
11
|
+
import path from "node:path";
|
|
12
|
+
async function resolveTarget(fileName) {
|
|
13
|
+
return fs.realpath(fileName).catch(async (error) => {
|
|
14
|
+
if (error.code !== "ENOENT") throw error;
|
|
15
|
+
const existing = await fs.lstat(fileName).catch((error2) => {
|
|
16
|
+
if (error2.code === "ENOENT") return void 0;
|
|
17
|
+
throw error2;
|
|
18
|
+
});
|
|
19
|
+
if (!existing?.isSymbolicLink()) return fileName;
|
|
20
|
+
const link = await fs.readlink(fileName);
|
|
21
|
+
return resolveTarget(path.resolve(path.dirname(fileName), link));
|
|
22
|
+
});
|
|
23
|
+
}
|
|
24
|
+
async function writeFileAtomic(fileName, serialized, { createParents = false } = {}) {
|
|
25
|
+
try {
|
|
26
|
+
const original = await fs.stat(fileName).catch((error) => {
|
|
27
|
+
if (error.code === "ENOENT") return void 0;
|
|
28
|
+
throw error;
|
|
29
|
+
});
|
|
30
|
+
if (original && !original.isFile() && !original.isDirectory()) {
|
|
31
|
+
await fs.writeFile(fileName, serialized, "utf8");
|
|
32
|
+
return ok(void 0);
|
|
33
|
+
}
|
|
34
|
+
const target = await resolveTarget(fileName);
|
|
35
|
+
const existing = await fs.stat(target).catch((error) => {
|
|
36
|
+
if (error.code === "ENOENT") return void 0;
|
|
37
|
+
throw error;
|
|
38
|
+
});
|
|
39
|
+
if (existing) await fs.access(target, constants.W_OK);
|
|
40
|
+
if (createParents)
|
|
41
|
+
await fs.mkdir(path.dirname(fileName), { recursive: true });
|
|
42
|
+
const temporary = path.join(
|
|
43
|
+
path.dirname(target),
|
|
44
|
+
`.scalar-write-${randomUUID()}.tmp`
|
|
45
|
+
);
|
|
46
|
+
const handle = await fs.open(temporary, "wx", existing?.mode);
|
|
47
|
+
try {
|
|
48
|
+
try {
|
|
49
|
+
await handle.writeFile(serialized, "utf8");
|
|
50
|
+
if (existing) {
|
|
51
|
+
const temporaryStat = await handle.stat();
|
|
52
|
+
if (temporaryStat.uid !== existing.uid || temporaryStat.gid !== existing.gid) {
|
|
53
|
+
const ownershipPreserved = await handle.chown(existing.uid, existing.gid).then(() => true).catch((error) => {
|
|
54
|
+
if (error.code === "EPERM") return false;
|
|
55
|
+
throw error;
|
|
56
|
+
});
|
|
57
|
+
if (!ownershipPreserved) {
|
|
58
|
+
await fs.writeFile(target, serialized, {
|
|
59
|
+
encoding: "utf8",
|
|
60
|
+
flush: true
|
|
61
|
+
});
|
|
62
|
+
return ok(void 0);
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
await handle.chmod(existing.mode);
|
|
66
|
+
}
|
|
67
|
+
await handle.sync();
|
|
68
|
+
} finally {
|
|
69
|
+
await handle.close();
|
|
70
|
+
}
|
|
71
|
+
await fs.rename(temporary, target);
|
|
72
|
+
} finally {
|
|
73
|
+
await fs.rm(temporary, { force: true }).catch(() => void 0);
|
|
74
|
+
}
|
|
75
|
+
return ok(void 0);
|
|
76
|
+
} catch (error) {
|
|
77
|
+
return err(error instanceof Error ? error.message : String(error));
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
export {
|
|
82
|
+
writeFileAtomic
|
|
83
|
+
};
|
|
@@ -1,14 +1,18 @@
|
|
|
1
1
|
import { createRequire as $$cR } from "node:module"; const require = $$cR(import.meta.url);
|
|
2
2
|
import {
|
|
3
3
|
safeNormalize
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-A2MPF6GE.js";
|
|
5
5
|
import {
|
|
6
6
|
detectManagedDocType
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-KSY2GH53.js";
|
|
8
8
|
|
|
9
9
|
// src/domains/document/helpers/document-type.ts
|
|
10
10
|
var isAsyncApiDocument = (document) => detectManagedDocType(document) === "asyncapi";
|
|
11
|
-
var isAsyncApiContent = (content) =>
|
|
11
|
+
var isAsyncApiContent = (content) => {
|
|
12
|
+
if (!content.includes("asyncapi")) return false;
|
|
13
|
+
const result = safeNormalize(content);
|
|
14
|
+
return result.ok && isAsyncApiDocument(result.data);
|
|
15
|
+
};
|
|
12
16
|
|
|
13
17
|
export {
|
|
14
18
|
isAsyncApiDocument,
|
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
emailAllowanceSchema,
|
|
4
4
|
teamImageSchema,
|
|
5
5
|
teamNameSchema
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-GXKNYM54.js";
|
|
7
7
|
import {
|
|
8
8
|
brandedUid,
|
|
9
9
|
emailSchema,
|
|
@@ -12,7 +12,7 @@ import {
|
|
|
12
12
|
mintUid,
|
|
13
13
|
timestampSchema,
|
|
14
14
|
zod_default
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-JBMHCTZD.js";
|
|
16
16
|
|
|
17
17
|
// ../../packages/entities/dist/user/bitbucket.js
|
|
18
18
|
var userBitbucketSchema = entitySchema.extend({
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { createRequire as $$cR } from "node:module"; const require = $$cR(import.meta.url);
|
|
2
2
|
|
|
3
|
-
// ../../node_modules/.pnpm/@scalar+helpers@0.
|
|
3
|
+
// ../../node_modules/.pnpm/@scalar+helpers@0.18.0/node_modules/@scalar/helpers/dist/types/result.js
|
|
4
4
|
var ok = (data) => ({ ok: true, data });
|
|
5
5
|
var err = (error, message) => ({
|
|
6
6
|
ok: false,
|
|
@@ -5,17 +5,17 @@ import {
|
|
|
5
5
|
mcpEnvironmentPolicies,
|
|
6
6
|
mcpServerChannelSchema,
|
|
7
7
|
secretNameSchema
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-Y3CXAIAG.js";
|
|
9
9
|
import {
|
|
10
10
|
environmentSlugSchema
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-5GZAGHKL.js";
|
|
12
12
|
import {
|
|
13
13
|
brandedUid,
|
|
14
14
|
entitySchema,
|
|
15
15
|
external_exports,
|
|
16
16
|
mintUid,
|
|
17
17
|
nanoidSchema
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-JBMHCTZD.js";
|
|
19
19
|
|
|
20
20
|
// ../../packages/entities/dist/publish/publish.js
|
|
21
21
|
var headingRecordSchema = external_exports.object({
|
|
@@ -107,7 +107,9 @@ var siteDeploySchema = entitySchema.extend({
|
|
|
107
107
|
*/
|
|
108
108
|
rootName: external_exports.string().optional(),
|
|
109
109
|
subpaths: subpathSchema.array().default([]),
|
|
110
|
-
cloudflare: cloudflareHostnameStateSchema.optional().nullable()
|
|
110
|
+
cloudflare: cloudflareHostnameStateSchema.optional().nullable(),
|
|
111
|
+
/** When core last asked the hostname sync to re-read `cloudflare` (Unix ms). */
|
|
112
|
+
domainRefreshRequestedAt: external_exports.number().nullable().optional()
|
|
111
113
|
}).meta({ id: "site-deploy" });
|
|
112
114
|
var searchConfigRootSchema = external_exports.object({
|
|
113
115
|
projectUid: external_exports.string(),
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
import { createRequire as $$cR } from "node:module"; const require = $$cR(import.meta.url);
|
|
2
|
+
|
|
3
|
+
// src/domains/document/helpers/reference-context.ts
|
|
4
|
+
var childReferenceContext = (context, key, swagger, mode = "validate") => {
|
|
5
|
+
if (context === "messages") return "message";
|
|
6
|
+
if (context === "message" && key === "traits") return "messages";
|
|
7
|
+
if (context === "object" && key === "messageTraits") return "messages";
|
|
8
|
+
if (context === "message" && key === "examples") return "data";
|
|
9
|
+
if (context === "message" && ["payload", "headers"].includes(key))
|
|
10
|
+
return "schema";
|
|
11
|
+
if (key === "message" && context === "object") return "message";
|
|
12
|
+
if (key === "messages" && context === "object") return "messages";
|
|
13
|
+
if (context === "data") return "data";
|
|
14
|
+
if (context === "path-items") return "path-item";
|
|
15
|
+
if (context === "callbacks") return "callback";
|
|
16
|
+
if (context === "callback")
|
|
17
|
+
return key.startsWith("x-") ? mode === "bundle" ? "object" : "data" : "path-item";
|
|
18
|
+
if (context === "schemas") return "schema";
|
|
19
|
+
if (context === "objects") return "object";
|
|
20
|
+
if (context === "responses") return "response";
|
|
21
|
+
if (context === "links") return "link";
|
|
22
|
+
if (mode === "bundle" && key.startsWith("x-")) return "object";
|
|
23
|
+
if (context === "schema") {
|
|
24
|
+
if ([
|
|
25
|
+
"properties",
|
|
26
|
+
"patternProperties",
|
|
27
|
+
"dependentSchemas",
|
|
28
|
+
"dependencies",
|
|
29
|
+
"$defs",
|
|
30
|
+
"definitions"
|
|
31
|
+
].includes(key))
|
|
32
|
+
return "schemas";
|
|
33
|
+
if ([
|
|
34
|
+
"items",
|
|
35
|
+
"additionalItems",
|
|
36
|
+
"additionalProperties",
|
|
37
|
+
"unevaluatedProperties",
|
|
38
|
+
"unevaluatedItems",
|
|
39
|
+
"contains",
|
|
40
|
+
"contentSchema",
|
|
41
|
+
"propertyNames",
|
|
42
|
+
"not",
|
|
43
|
+
"if",
|
|
44
|
+
"then",
|
|
45
|
+
"else",
|
|
46
|
+
"allOf",
|
|
47
|
+
"anyOf",
|
|
48
|
+
"oneOf",
|
|
49
|
+
"prefixItems"
|
|
50
|
+
].includes(key))
|
|
51
|
+
return "schema";
|
|
52
|
+
if (["example", "examples", "default", "enum", "const", "value"].includes(key))
|
|
53
|
+
return "data";
|
|
54
|
+
return mode === "bundle" ? "schema" : "data";
|
|
55
|
+
}
|
|
56
|
+
if (context === "link" && ["parameters", "requestBody"].includes(key))
|
|
57
|
+
return "data";
|
|
58
|
+
if (context === "response" && swagger && key === "examples") return "data";
|
|
59
|
+
if (["paths", "webhooks", "pathItems"].includes(key)) return "path-items";
|
|
60
|
+
if (key === "callbacks") return "callbacks";
|
|
61
|
+
if (key === "responses") return "responses";
|
|
62
|
+
if (key === "links") return "links";
|
|
63
|
+
if (key.startsWith("x-")) return "data";
|
|
64
|
+
if (["example", "default", "enum", "const", "value"].includes(key))
|
|
65
|
+
return "data";
|
|
66
|
+
if (key === "examples") return "objects";
|
|
67
|
+
if (["schemas", "definitions", "$defs"].includes(key)) return "schemas";
|
|
68
|
+
if (key === "schema") return "schema";
|
|
69
|
+
if ([
|
|
70
|
+
"content",
|
|
71
|
+
"parameters",
|
|
72
|
+
"headers",
|
|
73
|
+
"requestBodies",
|
|
74
|
+
"securitySchemes",
|
|
75
|
+
"channels",
|
|
76
|
+
"messages",
|
|
77
|
+
"operations"
|
|
78
|
+
].includes(key))
|
|
79
|
+
return "objects";
|
|
80
|
+
return "object";
|
|
81
|
+
};
|
|
82
|
+
|
|
83
|
+
export {
|
|
84
|
+
childReferenceContext
|
|
85
|
+
};
|
|
@@ -3,13 +3,7 @@ import {
|
|
|
3
3
|
mcpEnvironmentSchema,
|
|
4
4
|
mcpGroupSecretMappingSchema,
|
|
5
5
|
mcpGroupSecretsSchema
|
|
6
|
-
} from "./chunk-
|
|
7
|
-
import {
|
|
8
|
-
billingPlanSchema
|
|
9
|
-
} from "./chunk-6BQHLHBE.js";
|
|
10
|
-
import {
|
|
11
|
-
sharedProjectSchema
|
|
12
|
-
} from "./chunk-BOCMOHQA.js";
|
|
6
|
+
} from "./chunk-DVA4NCCY.js";
|
|
13
7
|
import {
|
|
14
8
|
SCALAR_AGENT_KEY_HEADER,
|
|
15
9
|
agentDocsProjectSchema,
|
|
@@ -27,17 +21,24 @@ import {
|
|
|
27
21
|
mcpServerHistorySchema,
|
|
28
22
|
mcpServerSchema,
|
|
29
23
|
mcpServerVersionSchema,
|
|
24
|
+
mcpToolAnnotationsSchema,
|
|
30
25
|
monthlyUsageSchema
|
|
31
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-Y3CXAIAG.js";
|
|
27
|
+
import {
|
|
28
|
+
billingPlanSchema
|
|
29
|
+
} from "./chunk-GXKNYM54.js";
|
|
30
|
+
import {
|
|
31
|
+
sharedProjectSchema
|
|
32
|
+
} from "./chunk-RGJPENX7.js";
|
|
32
33
|
import {
|
|
33
34
|
environmentSlugSchema
|
|
34
|
-
} from "./chunk-
|
|
35
|
+
} from "./chunk-5GZAGHKL.js";
|
|
35
36
|
import {
|
|
36
37
|
external_exports,
|
|
37
38
|
namespaceSchema,
|
|
38
39
|
nanoidSchema,
|
|
39
40
|
slugSchema
|
|
40
|
-
} from "./chunk-
|
|
41
|
+
} from "./chunk-JBMHCTZD.js";
|
|
41
42
|
|
|
42
43
|
// ../../packages/entities/dist/api/agent/shared.js
|
|
43
44
|
var agentApiErrorSchema = external_exports.object({
|
|
@@ -415,7 +416,11 @@ var docsRoutes = {
|
|
|
415
416
|
// Optional so a docs bundle that sends no context keeps working unchanged.
|
|
416
417
|
context: docsChatContextSchema.optional()
|
|
417
418
|
}),
|
|
418
|
-
responses: {
|
|
419
|
+
responses: {
|
|
420
|
+
400: agentApiErrorSchema,
|
|
421
|
+
403: agentApiErrorSchema,
|
|
422
|
+
502: agentApiErrorSchema
|
|
423
|
+
},
|
|
419
424
|
responseMediaType: "text/event-stream",
|
|
420
425
|
summary: "Chat with the docs agent"
|
|
421
426
|
}
|
|
@@ -1581,7 +1586,8 @@ var mcpDocumentExposeSchema = external_exports.union([
|
|
|
1581
1586
|
description: external_exports.string().optional(),
|
|
1582
1587
|
deprecated: external_exports.boolean().optional(),
|
|
1583
1588
|
deprecationMessage: external_exports.string().optional(),
|
|
1584
|
-
toolMode: external_exports.string().optional()
|
|
1589
|
+
toolMode: external_exports.string().optional(),
|
|
1590
|
+
annotations: mcpToolAnnotationsSchema.optional()
|
|
1585
1591
|
})
|
|
1586
1592
|
]);
|
|
1587
1593
|
var mcpDocumentOperationSchema = external_exports.object({
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { createRequire as $$cR } from "node:module"; const require = $$cR(import.meta.url);
|
|
2
|
-
import {
|
|
3
|
-
config
|
|
4
|
-
} from "./chunk-TR5U7G7T.js";
|
|
5
2
|
import {
|
|
6
3
|
RegistryAsset
|
|
7
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-KSY2GH53.js";
|
|
5
|
+
import {
|
|
6
|
+
config
|
|
7
|
+
} from "./chunk-7LUXRNKV.js";
|
|
8
8
|
|
|
9
9
|
// src/domains/registry/helpers/links.ts
|
|
10
10
|
function registryUrl(path) {
|
|
@@ -5,10 +5,10 @@ import {
|
|
|
5
5
|
import {
|
|
6
6
|
ISOLATE_DIR,
|
|
7
7
|
ISOLATE_EXTRACTION_DIR
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-LVUMNGVA.js";
|
|
9
9
|
import {
|
|
10
10
|
config
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-7LUXRNKV.js";
|
|
12
12
|
import {
|
|
13
13
|
output
|
|
14
14
|
} from "./chunk-T5HJUAWB.js";
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { createRequire as $$cR } from "node:module"; const require = $$cR(import.meta.url);
|
|
2
2
|
import {
|
|
3
3
|
customProjectIconSchema
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-RGJPENX7.js";
|
|
5
5
|
import {
|
|
6
6
|
MAX_TEAM_ENVIRONMENTS,
|
|
7
7
|
defaultTeamEnvironments,
|
|
8
8
|
teamEnvironmentSchema
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-5GZAGHKL.js";
|
|
10
10
|
import {
|
|
11
11
|
brandedUid,
|
|
12
12
|
emailSchema,
|
|
@@ -20,7 +20,7 @@ import {
|
|
|
20
20
|
timestampSchema,
|
|
21
21
|
unixTimestamp,
|
|
22
22
|
zod_default
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-JBMHCTZD.js";
|
|
24
24
|
|
|
25
25
|
// ../../packages/entities/dist/team/access.js
|
|
26
26
|
var ExternalAccessMethod;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { createRequire as $$cR } from "node:module"; const require = $$cR(import.meta.url);
|
|
2
|
+
|
|
3
|
+
// ../../packages/urls/dist/publish/full.js
|
|
4
|
+
function getPublishUrl(domain, subpath) {
|
|
5
|
+
const url = `https://${domain}${subpath ?? ""}`;
|
|
6
|
+
return new URL(url).toString();
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
// ../../packages/urls/dist/publish/previews.js
|
|
10
|
+
function getPublishPreviewUrl(publishUid, domain, subpath = "") {
|
|
11
|
+
const url = `https://${getPublishPreviewDomain(publishUid, domain)}${subpath ?? ""}`;
|
|
12
|
+
new URL(url);
|
|
13
|
+
return url;
|
|
14
|
+
}
|
|
15
|
+
function getPublishPreviewDomain(publishUid, domain) {
|
|
16
|
+
return `${publishUid}--${domain}`;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
export {
|
|
20
|
+
getPublishUrl,
|
|
21
|
+
getPublishPreviewUrl
|
|
22
|
+
};
|
|
@@ -17329,7 +17329,13 @@ var registryMetaSchema = external_exports.object({
|
|
|
17329
17329
|
slug: external_exports.string()
|
|
17330
17330
|
}).meta({ id: "registry-meta" });
|
|
17331
17331
|
|
|
17332
|
+
// ../../packages/entities/dist/utility/zod.js
|
|
17333
|
+
function nullAsDefault(schema) {
|
|
17334
|
+
return zod_default.pipe(zod_default.transform((value) => value ?? void 0).optional(), schema);
|
|
17335
|
+
}
|
|
17336
|
+
|
|
17332
17337
|
export {
|
|
17338
|
+
prettifyError,
|
|
17333
17339
|
external_exports,
|
|
17334
17340
|
zod_default,
|
|
17335
17341
|
randomSlug,
|
|
@@ -17353,5 +17359,6 @@ export {
|
|
|
17353
17359
|
scalarSet,
|
|
17354
17360
|
namespaceSchema,
|
|
17355
17361
|
objectSchema,
|
|
17356
|
-
registryMetaSchema
|
|
17362
|
+
registryMetaSchema,
|
|
17363
|
+
nullAsDefault
|
|
17357
17364
|
};
|
|
@@ -1,17 +1,19 @@
|
|
|
1
1
|
import { createRequire as $$cR } from "node:module"; const require = $$cR(import.meta.url);
|
|
2
2
|
import {
|
|
3
|
-
findConfig
|
|
4
|
-
|
|
5
|
-
} from "./chunk-PIDLENYN.js";
|
|
3
|
+
findConfig
|
|
4
|
+
} from "./chunk-S3LY7RKP.js";
|
|
6
5
|
import {
|
|
7
|
-
|
|
8
|
-
} from "./chunk-
|
|
6
|
+
parseConfig
|
|
7
|
+
} from "./chunk-M34HMQMV.js";
|
|
9
8
|
import {
|
|
10
9
|
output
|
|
11
10
|
} from "./chunk-T5HJUAWB.js";
|
|
11
|
+
import {
|
|
12
|
+
ConfigVersion
|
|
13
|
+
} from "./chunk-RGJPENX7.js";
|
|
12
14
|
import {
|
|
13
15
|
external_exports
|
|
14
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-JBMHCTZD.js";
|
|
15
17
|
|
|
16
18
|
// src/domains/project/check-config/parse-config.ts
|
|
17
19
|
import fs from "node:fs";
|
|
@@ -2,14 +2,14 @@ import { createRequire as $$cR } from "node:module"; const require = $$cR(import
|
|
|
2
2
|
import {
|
|
3
3
|
baseRegistrySchema,
|
|
4
4
|
docVersionToolSchema
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-Y3CXAIAG.js";
|
|
6
6
|
import {
|
|
7
7
|
brandedUid,
|
|
8
8
|
docVersionSchema,
|
|
9
9
|
external_exports,
|
|
10
10
|
mintUid,
|
|
11
11
|
nanoidSchema
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-JBMHCTZD.js";
|
|
13
13
|
|
|
14
14
|
// ../../packages/entities/dist/rule/default-data.js
|
|
15
15
|
var scalarRuleset = `extends: spectral:oas
|
|
@@ -136,7 +136,7 @@ var managedDocSchema = baseRegistrySchema.extend({
|
|
|
136
136
|
verified: external_exports.boolean().default(false)
|
|
137
137
|
}).meta({ id: "managed-doc" });
|
|
138
138
|
|
|
139
|
-
// ../../node_modules/.pnpm/@scalar+helpers@0.
|
|
139
|
+
// ../../node_modules/.pnpm/@scalar+helpers@0.18.0/node_modules/@scalar/helpers/dist/http/http-methods.js
|
|
140
140
|
var HTTP_METHODS = ["delete", "get", "head", "options", "patch", "post", "put", "query", "trace"];
|
|
141
141
|
var httpMethods = Object.freeze(new Set(HTTP_METHODS));
|
|
142
142
|
|