@scalar/cli 2.5.1 → 2.7.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 +113 -28
- package/chunks/{action-VTVFY2MP.js → action-4NGK5XMD.js} +38 -21
- package/chunks/{action-FDB7NEOK.js → action-5SK5NE7E.js} +10 -4
- package/chunks/{action-QE2ZQQX7.js → action-7PEQXDWT.js} +4 -4
- package/chunks/action-AQRPFQKI.js +231 -0
- package/chunks/{action-R7IMFHQ5.js → action-ATGZOWSH.js} +49 -26
- package/chunks/{action-XMNX5ZYT.js → action-BAQYJ6UE.js} +25 -21
- package/chunks/{action-M7RQKBSB.js → action-BOZNBCNZ.js} +89 -14
- package/chunks/{action-QPUSPD5M.js → action-BRSSC2SR.js} +7 -7
- package/chunks/{action-37EV4UHW.js → action-CA4QYPI6.js} +6 -6
- package/chunks/{action-JZLZ7ZAD.js → action-CPLH2CQ5.js} +17 -17
- package/chunks/{action-SQG3JAII.js → action-E4YSRFGT.js} +34 -20
- package/chunks/{action-CH24QGTE.js → action-EOAVVL52.js} +11 -5
- package/chunks/action-F2ZJNURT.js +72 -0
- package/chunks/{action-5IU77OII.js → action-F7A2K74G.js} +4 -4
- package/chunks/{action-SH4UUXPL.js → action-H6OUJWWM.js} +4 -4
- package/chunks/{action-SNLCIBQC.js → action-HJYZCPUN.js} +5 -5
- package/chunks/{action-LA6KVAXQ.js → action-JAHFRYWZ.js} +58 -9
- package/chunks/{action-UZQJNYK4.js → action-LPVITMWA.js} +3 -3
- package/chunks/{action-VC4DCVST.js → action-LVDU6YOI.js} +32 -23
- package/chunks/{action-4XI7XJR4.js → action-N7BA5I3E.js} +37 -12
- package/chunks/{action-NVSZT2ZD.js → action-NVI5DWFP.js} +6 -6
- package/chunks/{action-F3UX5E3M.js → action-OX2566BE.js} +32 -25
- package/chunks/{action-OGQSTRMX.js → action-QYGOPSTY.js} +13 -13
- package/chunks/{action-IUE4IOWO.js → action-RBOLLIGX.js} +82 -16
- package/chunks/{action-MSLBC2SO.js → action-SCOXTCPR.js} +15 -15
- package/chunks/{action-WFWYGY7O.js → action-SNPOOW6S.js} +20 -15
- package/chunks/{action-HGBBV353.js → action-SRBN7N3R.js} +10 -10
- package/chunks/{action-PAGJ5PWC.js → action-T5XMJXPO.js} +11 -7
- package/chunks/{action-G26LSVZ7.js → action-VOFDW3U2.js} +4 -4
- package/chunks/{action-FIXBOJEW.js → action-YRX6SN5F.js} +10 -4
- package/chunks/{agent-HCQRMHQ5.js → agent-ASPV3R5U.js} +4 -4
- package/chunks/{asyncapi-QM76O55R.js → asyncapi-H4FU6GPC.js} +10 -11
- package/chunks/{build.action-P7FCIMYU.js → build.action-6V6GXI3X.js} +35 -31
- package/chunks/{chunk-PT5TI77I.js → chunk-2DSVF5AD.js} +3 -3
- package/chunks/{chunk-X5T526CE.js → chunk-2PPRO2QB.js} +1 -1
- package/chunks/{chunk-Z2KMGFE6.js → chunk-4X47MN6Q.js} +2 -2
- package/chunks/{chunk-OQKDBLOZ.js → chunk-5JLVQVKO.js} +8 -0
- package/chunks/{chunk-VNYE4R7N.js → chunk-5UHLAJQD.js} +2 -1
- package/chunks/{chunk-Q7DOQHZN.js → chunk-6XWCMJDB.js} +1 -1
- package/chunks/{chunk-6ZMT63IV.js → chunk-6YPQGVF4.js} +1 -1
- package/chunks/{chunk-UGGNHILG.js → chunk-BDEPNGTO.js} +1 -1
- package/chunks/{chunk-HCPN3KNF.js → chunk-BIKOD3SG.js} +134 -1
- package/chunks/{chunk-P7H7GY5A.js → chunk-C2KAWRIX.js} +1 -1
- package/chunks/{chunk-M37TP6U2.js → chunk-CWCETP6H.js} +170 -5
- package/chunks/chunk-EGOXR5FB.js +15 -0
- package/chunks/{chunk-3L6DLIXJ.js → chunk-FDC2IESH.js} +3474 -1319
- package/chunks/{chunk-4ZDQXWBT.js → chunk-GPNB7ISG.js} +14 -1
- package/chunks/{chunk-24WAOKGG.js → chunk-HGOD6THU.js} +27 -18
- package/chunks/{chunk-4NHMAG6F.js → chunk-IMG35UXX.js} +1 -1
- package/chunks/{chunk-AO3F5XWR.js → chunk-ISXH6Q7I.js} +253 -9
- package/chunks/{chunk-CISTON3A.js → chunk-KCCFN4F7.js} +2 -2
- package/chunks/{chunk-F467BYYR.js → chunk-LG7IFACX.js} +38 -87
- package/chunks/{chunk-B2MHTD3R.js → chunk-MLSZVVTT.js} +1 -1
- package/chunks/{chunk-K4DTP5TV.js → chunk-OJ2EWIJH.js} +21 -2
- package/chunks/{chunk-LFU5ZUAP.js → chunk-QXQZVEDC.js} +105 -15
- package/chunks/{chunk-HPL3ZZ2P.js → chunk-R5LK6VPY.js} +72 -7
- package/chunks/{chunk-T7B6WNZC.js → chunk-TSURUX4A.js} +12 -3
- package/chunks/{chunk-7AGLC7WV.js → chunk-W24BETFG.js} +2 -2
- package/chunks/{chunk-GSGZHE26.js → chunk-XEDGMZJD.js} +19 -5
- package/chunks/{chunk-PBXZN65A.js → chunk-XXSQUBXS.js} +82 -6
- package/chunks/{chunk-XCSR4RIT.js → chunk-YILQODZF.js} +2 -2
- package/chunks/{chunk-COBPBRQF.js → chunk-ZJVYOZFB.js} +2 -2
- package/chunks/{create.action-HDD2WUON.js → create.action-P6DLCK4W.js} +27 -15
- package/chunks/{delete.action-VE66JFDS.js → delete.action-HJKRRHE2.js} +24 -15
- package/chunks/{delete.action-7GOZY7ID.js → delete.action-Z3GAA4ZN.js} +24 -15
- package/chunks/{get.action-2745EB4N.js → get.action-IT4EHAV4.js} +10 -10
- package/chunks/{list.action-4QDCZLSZ.js → list.action-2FU5UZNH.js} +15 -15
- package/chunks/{list.action-3VTXQJRA.js → list.action-WLIAO5UW.js} +13 -13
- package/chunks/{publish.action-ULQLZKWU.js → publish.action-T4J4DRXR.js} +48 -22
- package/chunks/{update.action-OROQSP2S.js → update.action-3OVS3HWC.js} +25 -16
- package/chunks/{update.action-6QEFP7NA.js → update.action-MY7QPSSU.js} +25 -16
- package/docs.html +294 -99
- package/index.js +436 -401
- package/package.json +15 -23
- package/skills/scalar-cli/SKILL.md +71 -0
- package/template.md +81 -3
- package/chunks/action-B3KKREWQ.js +0 -64
|
@@ -104,9 +104,14 @@ var mcpServerSchema = external_exports.object({
|
|
|
104
104
|
teamUid: external_exports.string(),
|
|
105
105
|
name: external_exports.string(),
|
|
106
106
|
slug: slugSchema,
|
|
107
|
+
uid: external_exports.string(),
|
|
108
|
+
namespace: namespaceSchema,
|
|
107
109
|
// Missing key parses to false, so a dashboard bundle keeps parsing agent
|
|
108
110
|
// responses that predate this column, whichever side deploys first.
|
|
109
111
|
autoAddOperations: external_exports.boolean().default(false),
|
|
112
|
+
// A mirror of the domain on the server's record in core, which owns it.
|
|
113
|
+
// Missing key parses to null for the same reason as above.
|
|
114
|
+
domain: external_exports.string().nullable().default(null),
|
|
110
115
|
createdAt: external_exports.string(),
|
|
111
116
|
updatedAt: external_exports.string()
|
|
112
117
|
}).meta({ id: "mcp-server" });
|
|
@@ -179,7 +184,7 @@ var mcpServerDocsPublishSchema = external_exports.object({
|
|
|
179
184
|
}).meta({
|
|
180
185
|
id: "mcp-server-docs-publish"
|
|
181
186
|
});
|
|
182
|
-
var mcpAuthModes = ["global", "passthrough"];
|
|
187
|
+
var mcpAuthModes = ["global", "passthrough", "identity"];
|
|
183
188
|
var PASSTHROUGH_NAME_REGEX = /^[A-Za-z0-9!#$%&'*+\-.^_`|~]+$/;
|
|
184
189
|
var PASSTHROUGH_MAX_ENTRIES = 20;
|
|
185
190
|
var PASSTHROUGH_NAME_MAX_LENGTH = 128;
|
|
@@ -209,6 +214,14 @@ var PASSTHROUGH_HEADER_DENYLIST = [
|
|
|
209
214
|
"x-forwarded-host",
|
|
210
215
|
"x-forwarded-proto"
|
|
211
216
|
];
|
|
217
|
+
var PASSTHROUGH_QUERY_DENYLIST = ["env"];
|
|
218
|
+
function deniedPassthroughReason(entry) {
|
|
219
|
+
if (entry.in === "header" && PASSTHROUGH_HEADER_DENYLIST.includes(entry.name.toLowerCase()))
|
|
220
|
+
return `The ${entry.name} header cannot be forwarded`;
|
|
221
|
+
if (entry.in === "query" && PASSTHROUGH_QUERY_DENYLIST.includes(entry.name))
|
|
222
|
+
return `The ${entry.name} query parameter picks the environment and cannot be forwarded`;
|
|
223
|
+
return void 0;
|
|
224
|
+
}
|
|
212
225
|
var passthroughAuthEntrySchema = external_exports.object({
|
|
213
226
|
in: external_exports.enum(["header", "query"]),
|
|
214
227
|
name: external_exports.string().min(1, "Name is required").max(PASSTHROUGH_NAME_MAX_LENGTH, "Name is too long").regex(PASSTHROUGH_NAME_REGEX, "Invalid character in name")
|
|
@@ -224,10 +237,11 @@ var passthroughAuthListSchema = external_exports.array(passthroughAuthEntrySchem
|
|
|
224
237
|
path: [index, "name"]
|
|
225
238
|
});
|
|
226
239
|
seen.add(key);
|
|
227
|
-
|
|
240
|
+
const denied = deniedPassthroughReason(entry);
|
|
241
|
+
if (denied)
|
|
228
242
|
ctx.addIssue({
|
|
229
243
|
code: "custom",
|
|
230
|
-
message:
|
|
244
|
+
message: denied,
|
|
231
245
|
path: [index, "name"]
|
|
232
246
|
});
|
|
233
247
|
});
|
|
@@ -298,8 +312,8 @@ var keyDocumentSchema = zod_default.object({
|
|
|
298
312
|
documentId: zod_default.uuid()
|
|
299
313
|
}).meta({ id: "key-documents" });
|
|
300
314
|
|
|
301
|
-
// ../../node_modules/.pnpm/@scalar+helpers@0.
|
|
302
|
-
var HTTP_METHODS = ["delete", "get", "head", "options", "patch", "post", "put", "trace"];
|
|
315
|
+
// ../../node_modules/.pnpm/@scalar+helpers@0.15.0/node_modules/@scalar/helpers/dist/http/http-methods.js
|
|
316
|
+
var HTTP_METHODS = ["delete", "get", "head", "options", "patch", "post", "put", "query", "trace"];
|
|
303
317
|
var httpMethods = Object.freeze(new Set(HTTP_METHODS));
|
|
304
318
|
|
|
305
319
|
// ../../packages/entities/dist/agent/operation.js
|
|
@@ -2,15 +2,17 @@ import { createRequire as $$cR } from "node:module"; const require = $$cR(import
|
|
|
2
2
|
import {
|
|
3
3
|
ConfigVersion,
|
|
4
4
|
SidebarType
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-5JLVQVKO.js";
|
|
6
6
|
import {
|
|
7
7
|
require_dist
|
|
8
8
|
} from "./chunk-K74E42RV.js";
|
|
9
9
|
import {
|
|
10
10
|
getLegacyWysiwygVersion
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-KCCFN4F7.js";
|
|
12
12
|
import {
|
|
13
|
+
emailSchema,
|
|
13
14
|
external_exports,
|
|
15
|
+
namespaceSchema,
|
|
14
16
|
nanoid,
|
|
15
17
|
nanoidSchema,
|
|
16
18
|
randomSlug,
|
|
@@ -62102,6 +62104,58 @@ var require_vue = __commonJS({
|
|
|
62102
62104
|
}
|
|
62103
62105
|
});
|
|
62104
62106
|
|
|
62107
|
+
// ../../packages/entities/dist/user-info/schema.js
|
|
62108
|
+
var userGroupSchema = external_exports.string().min(1).max(64).regex(/^[A-Za-z0-9][A-Za-z0-9_.:-]*$/, {
|
|
62109
|
+
message: "Group names may contain letters, digits, underscores, dots, colons, and hyphens, and must start with a letter or digit."
|
|
62110
|
+
}).meta({ id: "user-group" });
|
|
62111
|
+
var MAX_USER_INFO_GROUPS = 100;
|
|
62112
|
+
var MAX_USER_INFO_CONTENT_KEYS = 100;
|
|
62113
|
+
var playgroundInputValuesSchema = external_exports.record(external_exports.string().min(1).max(200), external_exports.string().max(4096));
|
|
62114
|
+
var apiPlaygroundInputsSchema = external_exports.object({
|
|
62115
|
+
header: playgroundInputValuesSchema.optional(),
|
|
62116
|
+
query: playgroundInputValuesSchema.optional(),
|
|
62117
|
+
cookie: playgroundInputValuesSchema.optional(),
|
|
62118
|
+
path: playgroundInputValuesSchema.optional(),
|
|
62119
|
+
server: playgroundInputValuesSchema.optional()
|
|
62120
|
+
}).meta({ id: "api-playground-inputs" });
|
|
62121
|
+
var userInfoSchema = external_exports.object({
|
|
62122
|
+
/**
|
|
62123
|
+
* Unix seconds after which the stored context is stale and the hook is
|
|
62124
|
+
* asked again. Absent means the hosting default TTL applies.
|
|
62125
|
+
*/
|
|
62126
|
+
expiresAt: external_exports.number().int().positive().optional(),
|
|
62127
|
+
/** Groups that gate navigation entries and content blocks. */
|
|
62128
|
+
groups: external_exports.array(userGroupSchema).max(MAX_USER_INFO_GROUPS).optional(),
|
|
62129
|
+
/**
|
|
62130
|
+
* Free-form values a page can render, such as a first name or plan.
|
|
62131
|
+
* Keys are capped in length and count; total size is bounded by the
|
|
62132
|
+
* response cap core applies when it reads the hook.
|
|
62133
|
+
*/
|
|
62134
|
+
content: external_exports.record(external_exports.string().min(1).max(64), external_exports.unknown()).refine((value) => Object.keys(value).length <= MAX_USER_INFO_CONTENT_KEYS, {
|
|
62135
|
+
message: `content may hold at most ${MAX_USER_INFO_CONTENT_KEYS} keys`
|
|
62136
|
+
}).optional(),
|
|
62137
|
+
/** Values that prefill the API playground. Visible to the browser. */
|
|
62138
|
+
apiPlaygroundInputs: apiPlaygroundInputsSchema.optional()
|
|
62139
|
+
}).meta({ id: "user-info" });
|
|
62140
|
+
var userInfoUserSchema = userInfoSchema.extend({
|
|
62141
|
+
email: emailSchema,
|
|
62142
|
+
groups: external_exports.array(userGroupSchema).max(MAX_USER_INFO_GROUPS).default([])
|
|
62143
|
+
}).meta({ id: "user-info-user" });
|
|
62144
|
+
var userInfoResponseSchema = external_exports.object({
|
|
62145
|
+
user: userInfoUserSchema.nullable()
|
|
62146
|
+
}).meta({ id: "user-info-response" });
|
|
62147
|
+
var USER_INFO_HOOK_EVENT = "user.info";
|
|
62148
|
+
var userInfoHookRequestSchema = external_exports.object({
|
|
62149
|
+
type: external_exports.literal(USER_INFO_HOOK_EVENT),
|
|
62150
|
+
/** The email hosting verified through a magic link, social login, or SSO. */
|
|
62151
|
+
email: emailSchema,
|
|
62152
|
+
/** The docs host the visitor signed in on. */
|
|
62153
|
+
host: external_exports.string(),
|
|
62154
|
+
project: external_exports.object({ uid: external_exports.string() }),
|
|
62155
|
+
/** Unix seconds when the request was signed. */
|
|
62156
|
+
timestamp: external_exports.number().int()
|
|
62157
|
+
}).meta({ id: "user-info-hook-request" });
|
|
62158
|
+
|
|
62105
62159
|
// ../../packages/scalar-config/dist/schema/utility.js
|
|
62106
62160
|
var jsonRef = external_exports.object({
|
|
62107
62161
|
$ref: external_exports.string().describe("Internal JSON pointed to the value. Recommended to keep shared options objects in the `components` field of the configuration file.")
|
|
@@ -62114,6 +62168,7 @@ var iconSchema = external_exports.union([
|
|
|
62114
62168
|
var titleSchema = external_exports.string().describe("Title to show use in any navigation links");
|
|
62115
62169
|
var pathSchema = external_exports.string().startsWith("/");
|
|
62116
62170
|
var linkSectionSchema = external_exports.string().min(1, "A section heading cannot be empty. Omit `section` instead.").describe("The column heading this link sits under inside its dropdown. A dropdown renders as a multi-column mega menu when any child names a section; consecutive children sharing a section become one column. Ignored for items outside a group.");
|
|
62171
|
+
var groupsSchema = userGroupSchema.array().max(MAX_USER_INFO_GROUPS).optional().describe("Groups a signed-in visitor must belong to (any of them) for this entry to show. Entries without groups are visible to everyone. Controls visibility only; the page stays reachable at its URL.");
|
|
62117
62172
|
|
|
62118
62173
|
// ../../packages/scalar-config/dist/schema/navigation/header.js
|
|
62119
62174
|
var HEADER_ALIGNS = ["start", "center", "end"];
|
|
@@ -62135,7 +62190,8 @@ var linkSchema = zod_default.object({
|
|
|
62135
62190
|
to: zod_default.union([
|
|
62136
62191
|
pathSchema.describe("A route path to another docs page, e.g. /about"),
|
|
62137
62192
|
zod_default.url().describe("An external link, e.g. https://www.example.com")
|
|
62138
|
-
])
|
|
62193
|
+
]),
|
|
62194
|
+
groups: groupsSchema
|
|
62139
62195
|
});
|
|
62140
62196
|
var headerSpacerSchema = zod_default.object({
|
|
62141
62197
|
type: zod_default.literal("spacer").describe("Deprecated: use the align option instead")
|
|
@@ -62171,7 +62227,8 @@ var linkNavigationEntrySchema = external_exports.object({
|
|
|
62171
62227
|
icon: iconSchema.optional(),
|
|
62172
62228
|
newTab: external_exports.boolean().optional(),
|
|
62173
62229
|
showInSidebar: external_exports.boolean().default(true),
|
|
62174
|
-
hidden: external_exports.boolean().default(false).describe("Hide the link from the sidebar. Behaves like showInSidebar: false; the option exists on links for consistency with the other entry types.")
|
|
62230
|
+
hidden: external_exports.boolean().default(false).describe("Hide the link from the sidebar. Behaves like showInSidebar: false; the option exists on links for consistency with the other entry types."),
|
|
62231
|
+
groups: groupsSchema
|
|
62175
62232
|
});
|
|
62176
62233
|
var internalLinkNavigationEntrySchema = linkNavigationEntrySchema.extend({
|
|
62177
62234
|
uid: nanoidSchema
|
|
@@ -62220,6 +62277,7 @@ var scopedApiConfigSchema = external_exports.object({
|
|
|
62220
62277
|
baseServerURL: external_exports.string().optional()
|
|
62221
62278
|
});
|
|
62222
62279
|
var openapiNavigationEntryBase = external_exports.object({
|
|
62280
|
+
groups: groupsSchema,
|
|
62223
62281
|
title: titleSchema.optional(),
|
|
62224
62282
|
description: external_exports.string().optional(),
|
|
62225
62283
|
/**
|
|
@@ -62330,6 +62388,7 @@ var headSchema = zod_default.object({
|
|
|
62330
62388
|
|
|
62331
62389
|
// ../../packages/scalar-config/dist/schema/navigation/pages.js
|
|
62332
62390
|
var pageFrontmatterSchema = external_exports.object({
|
|
62391
|
+
groups: groupsSchema,
|
|
62333
62392
|
/** Primary title of the page. Will be added as an H1 if no other title is provided. Will be used in page links elements to reference the page. */
|
|
62334
62393
|
title: external_exports.string().optional().describe("Primary title of the page. Will be added as an H1 if no other title is provided. Will be used in page links elements to reference the page."),
|
|
62335
62394
|
/** Optional description of the page. Will be shown in the page header. */
|
|
@@ -62409,7 +62468,8 @@ var baseGroupNavigationEntrySchema = external_exports.object({
|
|
|
62409
62468
|
*/
|
|
62410
62469
|
open: external_exports.boolean().optional().describe("Optional open state of the page in the sidebar."),
|
|
62411
62470
|
showInSidebar: external_exports.boolean().default(true),
|
|
62412
|
-
hidden: external_exports.boolean().default(false).describe("Hide the group and everything under it: removed from the sidebar, excluded from the sitemap, and rendered with a noindex robots meta. Pages stay reachable at their URLs. Unlike showInSidebar: false, which only removes the sidebar entry and leaves the pages indexable.")
|
|
62471
|
+
hidden: external_exports.boolean().default(false).describe("Hide the group and everything under it: removed from the sidebar, excluded from the sitemap, and rendered with a noindex robots meta. Pages stay reachable at their URLs. Unlike showInSidebar: false, which only removes the sidebar entry and leaves the pages indexable."),
|
|
62472
|
+
groups: groupsSchema
|
|
62413
62473
|
});
|
|
62414
62474
|
var childrenSchema = external_exports.record(external_exports.string(), external_exports.union([
|
|
62415
62475
|
external_exports.lazy(() => groupNavigationEntrySchema),
|
|
@@ -62610,6 +62670,12 @@ var siteConfigSchema = external_exports.object({
|
|
|
62610
62670
|
accessGroups: slugSchema.array().max(50).optional().describe("Slugs of access groups permitted to view the site when isPrivate is true."),
|
|
62611
62671
|
/** The login portal slug for the site. References a created login portal from dashboard.scalar.com */
|
|
62612
62672
|
loginPortal: slugSchema.optional(),
|
|
62673
|
+
/**
|
|
62674
|
+
* HTTPS endpoint Scalar asks about each signed-in visitor, signed with the
|
|
62675
|
+
* project's secret from the dashboard. Works on public and private sites;
|
|
62676
|
+
* on a public site it also enables the sign-in flow.
|
|
62677
|
+
*/
|
|
62678
|
+
userInfoHook: external_exports.url({ protocol: /^https$/ }).optional().describe("HTTPS endpoint that personalizes the site for signed-in visitors. Scalar POSTs a signed request for each visitor and applies the groups, values, and playground inputs it returns."),
|
|
62613
62679
|
/** Global layout options to hide/show select elements */
|
|
62614
62680
|
layout: external_exports.object({
|
|
62615
62681
|
toc: external_exports.boolean().optional(),
|
|
@@ -62637,6 +62703,15 @@ var siteConfigSchema = external_exports.object({
|
|
|
62637
62703
|
routing: routingSchema.optional(),
|
|
62638
62704
|
/** Head options for the site (meta, scripts, etc-) */
|
|
62639
62705
|
head: headSchema.optional(),
|
|
62706
|
+
/** Open Graph card generation. */
|
|
62707
|
+
og: external_exports.object({
|
|
62708
|
+
imageTemplate: external_exports.string().refine((value) => value.endsWith(".tsx") || value.endsWith(".jsx"), 'The OG image template must point to a ".tsx" or ".jsx" file.').refine((value) => !URL.canParse(value), "The OG image template must be a path inside the project, not a URL.").refine((value) => (
|
|
62709
|
+
// Every absolute form, including the Windows ones a POSIX build
|
|
62710
|
+
// host would otherwise read as an ordinary filename: a leading
|
|
62711
|
+
// separator of either kind, a drive letter, and a UNC share.
|
|
62712
|
+
!/^[/\\]/.test(value) && !/^[a-zA-Z]:/.test(value) && !value.split(/[\\/]/).some((segment) => segment === "..")
|
|
62713
|
+
), "The OG image template must be a relative path inside the project.").describe("Path to a Satori component rendered as the Open Graph card image for each page. Replaces the built-in card.")
|
|
62714
|
+
}).optional().describe("Customize the generated Open Graph card images."),
|
|
62640
62715
|
/** RSS feed configuration for changelog-style content */
|
|
62641
62716
|
rss: external_exports.union([rssFeedSchema, external_exports.array(rssFeedSchema)]).refine(hasUniqueFeedPaths, "Each RSS feed must have a unique path.").optional().describe("Generate an RSS feed at <path>/rss.xml from a changelog. Pass one feed, or a list of feeds to publish several from different paths."),
|
|
62642
62717
|
/** Color scheme toggle configuration */
|
|
@@ -62653,7 +62728,8 @@ var siteConfigSchema = external_exports.object({
|
|
|
62653
62728
|
suggestions: external_exports.array(external_exports.string()).optional().describe("Suggested questions shown as pills above the chat input when it is focused. Two or three short questions work best."),
|
|
62654
62729
|
mcp: external_exports.object({
|
|
62655
62730
|
url: external_exports.url({ protocol: /^https?$/ }).optional().describe("Absolute http(s) URL of a custom MCP server the docs install buttons point at. Overrides the site's own /mcp endpoint and the serverSlug/installationSlug binding. No auth header is sent, so protected servers must use client-side OAuth."),
|
|
62656
|
-
|
|
62731
|
+
namespace: namespaceSchema.optional().describe("Namespace the MCP server is published under. Only needed when the team uses more than one namespace, since a server slug is unique per namespace."),
|
|
62732
|
+
serverSlug: slugSchema.optional().describe("Slug of the MCP server (scoped to the namespace)."),
|
|
62657
62733
|
installationSlug: slugSchema.optional().describe("Slug of the MCP installation (scoped to the MCP server).")
|
|
62658
62734
|
}).optional().describe("Binds the docs project to an MCP: either a custom server URL, or an MCP server + installation referenced by slug (resolved on publish).")
|
|
62659
62735
|
}).optional().describe("Ask AI agent configuration"),
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { createRequire as $$cR } from "node:module"; const require = $$cR(import.meta.url);
|
|
2
2
|
import {
|
|
3
3
|
RegistryAsset
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-KCCFN4F7.js";
|
|
5
5
|
import {
|
|
6
6
|
contentShaSchema
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-6XWCMJDB.js";
|
|
8
8
|
import {
|
|
9
9
|
docVersionSchema,
|
|
10
10
|
external_exports,
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { createRequire as $$cR } from "node:module"; const require = $$cR(import.meta.url);
|
|
2
2
|
import {
|
|
3
3
|
config
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-GPNB7ISG.js";
|
|
5
5
|
import {
|
|
6
6
|
RegistryAsset
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-KCCFN4F7.js";
|
|
8
8
|
|
|
9
9
|
// src/domains/registry/helpers/links.ts
|
|
10
10
|
function registryUrl(path) {
|
|
@@ -1,38 +1,41 @@
|
|
|
1
1
|
import { createRequire as $$cR } from "node:module"; const require = $$cR(import.meta.url);
|
|
2
2
|
import {
|
|
3
3
|
apiService
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-ISXH6Q7I.js";
|
|
5
5
|
import {
|
|
6
6
|
BaseCollections
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-LG7IFACX.js";
|
|
8
8
|
import {
|
|
9
9
|
getDatabaseClient
|
|
10
|
-
} from "./chunk-
|
|
11
|
-
import "./chunk-
|
|
12
|
-
import "./chunk-
|
|
10
|
+
} from "./chunk-4X47MN6Q.js";
|
|
11
|
+
import "./chunk-BIKOD3SG.js";
|
|
12
|
+
import "./chunk-MLSZVVTT.js";
|
|
13
13
|
import {
|
|
14
14
|
SdkLanguage
|
|
15
|
-
} from "./chunk-
|
|
16
|
-
import "./chunk-
|
|
17
|
-
import "./chunk-
|
|
15
|
+
} from "./chunk-FDC2IESH.js";
|
|
16
|
+
import "./chunk-C2KAWRIX.js";
|
|
17
|
+
import "./chunk-R5LK6VPY.js";
|
|
18
18
|
import {
|
|
19
19
|
getAuthData
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-CWCETP6H.js";
|
|
21
21
|
import {
|
|
22
22
|
config
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-GPNB7ISG.js";
|
|
24
24
|
import {
|
|
25
25
|
teamSchema
|
|
26
|
-
} from "./chunk-
|
|
27
|
-
import "./chunk-
|
|
26
|
+
} from "./chunk-5UHLAJQD.js";
|
|
27
|
+
import "./chunk-5JLVQVKO.js";
|
|
28
|
+
import {
|
|
29
|
+
requireInteractive
|
|
30
|
+
} from "./chunk-EGOXR5FB.js";
|
|
28
31
|
import "./chunk-K74E42RV.js";
|
|
29
|
-
import "./chunk-
|
|
30
|
-
import "./chunk-
|
|
32
|
+
import "./chunk-KCCFN4F7.js";
|
|
33
|
+
import "./chunk-6XWCMJDB.js";
|
|
31
34
|
import "./chunk-4ORL4MST.js";
|
|
32
35
|
import {
|
|
33
36
|
output
|
|
34
37
|
} from "./chunk-T5HJUAWB.js";
|
|
35
|
-
import "./chunk-
|
|
38
|
+
import "./chunk-XEDGMZJD.js";
|
|
36
39
|
import {
|
|
37
40
|
external_exports,
|
|
38
41
|
namespaceSchema,
|
|
@@ -55,6 +58,9 @@ async function createAction(opts) {
|
|
|
55
58
|
auth.addEventListener((state) => Object.assign(auth, state));
|
|
56
59
|
const db = await getDatabaseClient();
|
|
57
60
|
const client = await apiService();
|
|
61
|
+
if (!data.language) {
|
|
62
|
+
requireInteractive("Please provide --language.");
|
|
63
|
+
}
|
|
58
64
|
const language = opts.language || await text({
|
|
59
65
|
message: "Please choose a language for your SDK",
|
|
60
66
|
placeholder: "typescript",
|
|
@@ -81,6 +87,12 @@ async function createAction(opts) {
|
|
|
81
87
|
const namespaceApisRes = await client.managedDocs.getApiDocs(namespace);
|
|
82
88
|
if (namespaceApisRes.error)
|
|
83
89
|
return output.error().title(namespaceApisRes.message).exit("error");
|
|
90
|
+
if (data.api && !namespaceApisRes.data.some((api) => api.slug === data.api)) {
|
|
91
|
+
return output.error().title("No API found").message("Please provide a valid API slug").exit("error");
|
|
92
|
+
}
|
|
93
|
+
if (!data.api) {
|
|
94
|
+
requireInteractive("Please provide --api.");
|
|
95
|
+
}
|
|
84
96
|
const apiUid = namespaceApisRes.data.find((api) => api.slug === data.api)?.uid || await select({
|
|
85
97
|
message: "Please select an API",
|
|
86
98
|
options: namespaceApisRes.data.map((api) => ({
|
|
@@ -1,36 +1,39 @@
|
|
|
1
1
|
import { createRequire as $$cR } from "node:module"; const require = $$cR(import.meta.url);
|
|
2
2
|
import {
|
|
3
3
|
apiService
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-ISXH6Q7I.js";
|
|
5
5
|
import {
|
|
6
6
|
BaseCollections
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-LG7IFACX.js";
|
|
8
8
|
import {
|
|
9
9
|
getDatabaseClient
|
|
10
|
-
} from "./chunk-
|
|
11
|
-
import "./chunk-
|
|
12
|
-
import "./chunk-
|
|
10
|
+
} from "./chunk-4X47MN6Q.js";
|
|
11
|
+
import "./chunk-BIKOD3SG.js";
|
|
12
|
+
import "./chunk-MLSZVVTT.js";
|
|
13
13
|
import {
|
|
14
14
|
sdkSchema
|
|
15
|
-
} from "./chunk-
|
|
16
|
-
import "./chunk-
|
|
17
|
-
import "./chunk-
|
|
15
|
+
} from "./chunk-FDC2IESH.js";
|
|
16
|
+
import "./chunk-C2KAWRIX.js";
|
|
17
|
+
import "./chunk-R5LK6VPY.js";
|
|
18
18
|
import {
|
|
19
19
|
getAuthData
|
|
20
|
-
} from "./chunk-
|
|
21
|
-
import "./chunk-
|
|
20
|
+
} from "./chunk-CWCETP6H.js";
|
|
21
|
+
import "./chunk-GPNB7ISG.js";
|
|
22
22
|
import {
|
|
23
23
|
teamSchema
|
|
24
|
-
} from "./chunk-
|
|
25
|
-
import "./chunk-
|
|
24
|
+
} from "./chunk-5UHLAJQD.js";
|
|
25
|
+
import "./chunk-5JLVQVKO.js";
|
|
26
|
+
import {
|
|
27
|
+
requireInteractive
|
|
28
|
+
} from "./chunk-EGOXR5FB.js";
|
|
26
29
|
import "./chunk-K74E42RV.js";
|
|
27
|
-
import "./chunk-
|
|
28
|
-
import "./chunk-
|
|
30
|
+
import "./chunk-KCCFN4F7.js";
|
|
31
|
+
import "./chunk-6XWCMJDB.js";
|
|
29
32
|
import "./chunk-4ORL4MST.js";
|
|
30
33
|
import {
|
|
31
34
|
output
|
|
32
35
|
} from "./chunk-T5HJUAWB.js";
|
|
33
|
-
import "./chunk-
|
|
36
|
+
import "./chunk-XEDGMZJD.js";
|
|
34
37
|
import {
|
|
35
38
|
external_exports,
|
|
36
39
|
namespaceSchema,
|
|
@@ -74,6 +77,12 @@ async function deleteAction(opts) {
|
|
|
74
77
|
schema: sdkSchema.array()
|
|
75
78
|
});
|
|
76
79
|
if (sdks.error) return output.error().title(sdks.message).exit("error");
|
|
80
|
+
if (data.slug && !sdks.data.some((sdk) => sdk.slug === data.slug)) {
|
|
81
|
+
return output.error().title("No SDK found").message("Please provide a valid SDK slug").exit("error");
|
|
82
|
+
}
|
|
83
|
+
if (!data.slug) {
|
|
84
|
+
requireInteractive("Please provide --slug.");
|
|
85
|
+
}
|
|
77
86
|
const sdkUid = sdks.data.find((sdk) => sdk.slug === data.slug)?.uid || await select({
|
|
78
87
|
message: "Please select an SDK to delete",
|
|
79
88
|
options: sdks.data.map((sdk) => ({
|
|
@@ -1,34 +1,37 @@
|
|
|
1
1
|
import { createRequire as $$cR } from "node:module"; const require = $$cR(import.meta.url);
|
|
2
2
|
import {
|
|
3
3
|
apiService
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-ISXH6Q7I.js";
|
|
5
5
|
import {
|
|
6
6
|
BaseCollections
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-LG7IFACX.js";
|
|
8
8
|
import {
|
|
9
9
|
getDatabaseClient
|
|
10
|
-
} from "./chunk-
|
|
11
|
-
import "./chunk-
|
|
12
|
-
import "./chunk-
|
|
13
|
-
import "./chunk-
|
|
14
|
-
import "./chunk-
|
|
15
|
-
import "./chunk-
|
|
10
|
+
} from "./chunk-4X47MN6Q.js";
|
|
11
|
+
import "./chunk-BIKOD3SG.js";
|
|
12
|
+
import "./chunk-MLSZVVTT.js";
|
|
13
|
+
import "./chunk-FDC2IESH.js";
|
|
14
|
+
import "./chunk-C2KAWRIX.js";
|
|
15
|
+
import "./chunk-R5LK6VPY.js";
|
|
16
16
|
import {
|
|
17
17
|
getAuthData
|
|
18
|
-
} from "./chunk-
|
|
19
|
-
import "./chunk-
|
|
18
|
+
} from "./chunk-CWCETP6H.js";
|
|
19
|
+
import "./chunk-GPNB7ISG.js";
|
|
20
20
|
import {
|
|
21
21
|
teamSchema
|
|
22
|
-
} from "./chunk-
|
|
23
|
-
import "./chunk-
|
|
22
|
+
} from "./chunk-5UHLAJQD.js";
|
|
23
|
+
import "./chunk-5JLVQVKO.js";
|
|
24
|
+
import {
|
|
25
|
+
requireInteractive
|
|
26
|
+
} from "./chunk-EGOXR5FB.js";
|
|
24
27
|
import "./chunk-K74E42RV.js";
|
|
25
|
-
import "./chunk-
|
|
26
|
-
import "./chunk-
|
|
28
|
+
import "./chunk-KCCFN4F7.js";
|
|
29
|
+
import "./chunk-6XWCMJDB.js";
|
|
27
30
|
import "./chunk-4ORL4MST.js";
|
|
28
31
|
import {
|
|
29
32
|
output
|
|
30
33
|
} from "./chunk-T5HJUAWB.js";
|
|
31
|
-
import "./chunk-
|
|
34
|
+
import "./chunk-XEDGMZJD.js";
|
|
32
35
|
import {
|
|
33
36
|
external_exports,
|
|
34
37
|
namespaceSchema,
|
|
@@ -66,6 +69,12 @@ async function deleteAction(opts) {
|
|
|
66
69
|
}
|
|
67
70
|
const schemas = await client.managedSchemas.getSchemas(namespace);
|
|
68
71
|
if (schemas.error) return output.error().title(schemas.message).exit("error");
|
|
72
|
+
if (data.slug && !schemas.data.some((schema) => schema.slug === data.slug)) {
|
|
73
|
+
return output.error().title("No schema found").message("Please provide a valid schema slug").exit("error");
|
|
74
|
+
}
|
|
75
|
+
if (!data.slug) {
|
|
76
|
+
requireInteractive("Please provide --slug.");
|
|
77
|
+
}
|
|
69
78
|
const schemaSlug = schemas.data.find((schema) => schema.slug === data.slug)?.slug || await select({
|
|
70
79
|
message: "Please select a schema to delete",
|
|
71
80
|
options: schemas.data.map((schema) => ({
|
|
@@ -1,24 +1,24 @@
|
|
|
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-BDEPNGTO.js";
|
|
5
|
+
import "./chunk-ZJVYOZFB.js";
|
|
6
6
|
import {
|
|
7
7
|
registry
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-YILQODZF.js";
|
|
9
9
|
import {
|
|
10
10
|
getAuthData
|
|
11
|
-
} from "./chunk-
|
|
12
|
-
import "./chunk-
|
|
13
|
-
import "./chunk-
|
|
14
|
-
import "./chunk-
|
|
15
|
-
import "./chunk-
|
|
16
|
-
import "./chunk-
|
|
11
|
+
} from "./chunk-CWCETP6H.js";
|
|
12
|
+
import "./chunk-GPNB7ISG.js";
|
|
13
|
+
import "./chunk-5UHLAJQD.js";
|
|
14
|
+
import "./chunk-5JLVQVKO.js";
|
|
15
|
+
import "./chunk-KCCFN4F7.js";
|
|
16
|
+
import "./chunk-6XWCMJDB.js";
|
|
17
17
|
import "./chunk-4ORL4MST.js";
|
|
18
18
|
import {
|
|
19
19
|
output
|
|
20
20
|
} from "./chunk-T5HJUAWB.js";
|
|
21
|
-
import "./chunk-
|
|
21
|
+
import "./chunk-XEDGMZJD.js";
|
|
22
22
|
import {
|
|
23
23
|
docVersionSchema,
|
|
24
24
|
external_exports
|
|
@@ -1,35 +1,35 @@
|
|
|
1
1
|
import { createRequire as $$cR } from "node:module"; const require = $$cR(import.meta.url);
|
|
2
2
|
import {
|
|
3
3
|
apiService
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-ISXH6Q7I.js";
|
|
5
5
|
import {
|
|
6
6
|
BaseCollections
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-LG7IFACX.js";
|
|
8
8
|
import {
|
|
9
9
|
getDatabaseClient
|
|
10
|
-
} from "./chunk-
|
|
11
|
-
import "./chunk-
|
|
12
|
-
import "./chunk-
|
|
13
|
-
import "./chunk-
|
|
14
|
-
import "./chunk-
|
|
15
|
-
import "./chunk-
|
|
10
|
+
} from "./chunk-4X47MN6Q.js";
|
|
11
|
+
import "./chunk-BIKOD3SG.js";
|
|
12
|
+
import "./chunk-MLSZVVTT.js";
|
|
13
|
+
import "./chunk-FDC2IESH.js";
|
|
14
|
+
import "./chunk-C2KAWRIX.js";
|
|
15
|
+
import "./chunk-R5LK6VPY.js";
|
|
16
16
|
import {
|
|
17
17
|
getAuthData
|
|
18
|
-
} from "./chunk-
|
|
19
|
-
import "./chunk-
|
|
18
|
+
} from "./chunk-CWCETP6H.js";
|
|
19
|
+
import "./chunk-GPNB7ISG.js";
|
|
20
20
|
import {
|
|
21
21
|
teamSchema
|
|
22
|
-
} from "./chunk-
|
|
23
|
-
import "./chunk-
|
|
22
|
+
} from "./chunk-5UHLAJQD.js";
|
|
23
|
+
import "./chunk-5JLVQVKO.js";
|
|
24
24
|
import "./chunk-K74E42RV.js";
|
|
25
|
-
import "./chunk-
|
|
26
|
-
import "./chunk-
|
|
25
|
+
import "./chunk-KCCFN4F7.js";
|
|
26
|
+
import "./chunk-6XWCMJDB.js";
|
|
27
27
|
import "./chunk-4ORL4MST.js";
|
|
28
28
|
import {
|
|
29
29
|
output,
|
|
30
30
|
printTable
|
|
31
31
|
} from "./chunk-T5HJUAWB.js";
|
|
32
|
-
import "./chunk-
|
|
32
|
+
import "./chunk-XEDGMZJD.js";
|
|
33
33
|
import {
|
|
34
34
|
compareVersionsDesc,
|
|
35
35
|
external_exports,
|
|
@@ -4,34 +4,34 @@ import {
|
|
|
4
4
|
} from "./chunk-AEFPCC4U.js";
|
|
5
5
|
import {
|
|
6
6
|
BaseCollections
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-LG7IFACX.js";
|
|
8
8
|
import {
|
|
9
9
|
getDatabaseClient
|
|
10
|
-
} from "./chunk-
|
|
11
|
-
import "./chunk-
|
|
12
|
-
import "./chunk-
|
|
10
|
+
} from "./chunk-4X47MN6Q.js";
|
|
11
|
+
import "./chunk-BIKOD3SG.js";
|
|
12
|
+
import "./chunk-MLSZVVTT.js";
|
|
13
13
|
import {
|
|
14
14
|
sdkBuildSchema,
|
|
15
15
|
sdkSchema
|
|
16
|
-
} from "./chunk-
|
|
17
|
-
import "./chunk-
|
|
16
|
+
} from "./chunk-FDC2IESH.js";
|
|
17
|
+
import "./chunk-C2KAWRIX.js";
|
|
18
18
|
import {
|
|
19
19
|
getAuthData
|
|
20
|
-
} from "./chunk-
|
|
21
|
-
import "./chunk-
|
|
20
|
+
} from "./chunk-CWCETP6H.js";
|
|
21
|
+
import "./chunk-GPNB7ISG.js";
|
|
22
22
|
import {
|
|
23
23
|
teamSchema
|
|
24
|
-
} from "./chunk-
|
|
25
|
-
import "./chunk-
|
|
24
|
+
} from "./chunk-5UHLAJQD.js";
|
|
25
|
+
import "./chunk-5JLVQVKO.js";
|
|
26
26
|
import "./chunk-K74E42RV.js";
|
|
27
|
-
import "./chunk-
|
|
28
|
-
import "./chunk-
|
|
27
|
+
import "./chunk-KCCFN4F7.js";
|
|
28
|
+
import "./chunk-6XWCMJDB.js";
|
|
29
29
|
import "./chunk-4ORL4MST.js";
|
|
30
30
|
import {
|
|
31
31
|
output,
|
|
32
32
|
printTable
|
|
33
33
|
} from "./chunk-T5HJUAWB.js";
|
|
34
|
-
import "./chunk-
|
|
34
|
+
import "./chunk-XEDGMZJD.js";
|
|
35
35
|
import {
|
|
36
36
|
external_exports,
|
|
37
37
|
namespaceSchema
|