@scalar/cli 2.11.0 → 2.12.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (82) hide show
  1. package/README.md +3 -0
  2. package/chunks/{action-RQCXSJPZ.js → action-4B3MNNEG.js} +18 -18
  3. package/chunks/{action-ZUZL7R3H.js → action-4G23NFVD.js} +10 -10
  4. package/chunks/{action-6M5PTDF6.js → action-5I763IT2.js} +16 -16
  5. package/chunks/{action-HUICEXJZ.js → action-6IHAGCNR.js} +14 -14
  6. package/chunks/{action-MJMLQFLT.js → action-6IZYBY5P.js} +21 -15
  7. package/chunks/{action-LR75GHBA.js → action-6KP6KOYC.js} +7 -7
  8. package/chunks/{action-NHU4CUKT.js → action-6UOTMYQ4.js} +2 -2
  9. package/chunks/{action-FMA5ECUA.js → action-7HXYZPOT.js} +5 -5
  10. package/chunks/{action-5I4XDPPG.js → action-A2GXYB2K.js} +10 -10
  11. package/chunks/{action-CQQCKSNS.js → action-AOKHLTZ6.js} +18 -12
  12. package/chunks/{action-7H3AWCHX.js → action-AQ7BSPBE.js} +9 -9
  13. package/chunks/{action-OTPXODUE.js → action-D3IVCY24.js} +5 -5
  14. package/chunks/{action-YN4TE7TG.js → action-D52JJ3NL.js} +14 -14
  15. package/chunks/{action-SOYSVG67.js → action-ENZGEP4Y.js} +5 -5
  16. package/chunks/{action-D5QWDNQ2.js → action-GZKDPO3N.js} +13 -13
  17. package/chunks/{action-EYPYQQVM.js → action-HA3CMV3P.js} +5 -5
  18. package/chunks/{action-NKTFNFU7.js → action-HJSRU322.js} +13 -13
  19. package/chunks/{action-DQDHBOLJ.js → action-IASJWF5P.js} +15 -15
  20. package/chunks/{action-LAAHRDSR.js → action-INB2R2NQ.js} +4 -4
  21. package/chunks/{action-IQM54ITT.js → action-JHPUNA7Z.js} +17 -17
  22. package/chunks/{action-GXDJLF2G.js → action-JT6C472I.js} +5 -5
  23. package/chunks/{action-KC3ZCNDR.js → action-KDT6H6ML.js} +5 -5
  24. package/chunks/{action-RPCDNGCI.js → action-KWFAMQN5.js} +19 -19
  25. package/chunks/{action-IH6G77C5.js → action-NY2MGVBS.js} +14 -14
  26. package/chunks/{action-NMW5WPD2.js → action-O757TFA2.js} +5 -5
  27. package/chunks/{action-J5TO3UJW.js → action-RDXVIAS3.js} +19 -19
  28. package/chunks/{action-73ELLN3T.js → action-S7SONQ5E.js} +2 -2
  29. package/chunks/{action-2VF6LODL.js → action-T2I4TFLU.js} +8 -8
  30. package/chunks/{action-L7TMS3Q3.js → action-TH3TYR2A.js} +21 -21
  31. package/chunks/{action-ZGNVWTHZ.js → action-UTFRCKGE.js} +5 -5
  32. package/chunks/{action-BRSLSOE5.js → action-VK5HZHSC.js} +9 -9
  33. package/chunks/{action-25QMCP5G.js → action-XPJFCCAT.js} +17 -17
  34. package/chunks/{action-ZKKRPLDK.js → action-YL3CEKE7.js} +14 -14
  35. package/chunks/{actions-S6K76HCW.js → actions-LNIEIP7C.js} +14 -14
  36. package/chunks/{agent-IRNEV4K5.js → agent-F2A4UROF.js} +5 -5
  37. package/chunks/{asyncapi-WQPIQMEZ.js → asyncapi-HASQNFWS.js} +9 -9
  38. package/chunks/{build.action-CLBVKFWD.js → build.action-XKJ4ET3G.js} +16 -16
  39. package/chunks/{chunk-U6VE6JOS.js → chunk-4BE7UCJO.js} +2 -2
  40. package/chunks/{chunk-BQYVSPAI.js → chunk-7M44FQHX.js} +126 -2
  41. package/chunks/{chunk-SOV4POMS.js → chunk-7TSQ7ZGU.js} +15 -12
  42. package/chunks/{chunk-ULRJZXMS.js → chunk-BHWUD65X.js} +1 -1
  43. package/chunks/{chunk-5L7V7RCH.js → chunk-CFI5GBAK.js} +1 -1
  44. package/chunks/{chunk-KOD2HX5I.js → chunk-D5YZ3FXG.js} +1 -1
  45. package/chunks/{chunk-US54KYOJ.js → chunk-DKZ3PS3X.js} +1 -1
  46. package/chunks/{chunk-3TFOA64C.js → chunk-E57QCEAV.js} +1 -1
  47. package/chunks/{chunk-HZN6IIPZ.js → chunk-EJSGWV2K.js} +2 -2
  48. package/chunks/{chunk-GYR5E6RB.js → chunk-GPQXLA43.js} +2 -2
  49. package/chunks/{chunk-GKCVATQJ.js → chunk-IZVRYC2N.js} +3 -3
  50. package/chunks/{chunk-SEURG74P.js → chunk-JLNHOA5Z.js} +3 -3
  51. package/chunks/{chunk-ALYM4ZB2.js → chunk-KWLAZV7P.js} +1 -1
  52. package/chunks/{chunk-N5CJ5MTY.js → chunk-LLZDQXYS.js} +1 -1
  53. package/chunks/{chunk-F3OPMYME.js → chunk-LWIAFTKX.js} +90 -14
  54. package/chunks/{chunk-FG5AOTDN.js → chunk-N645RGAB.js} +785 -407
  55. package/chunks/{chunk-3RIUDHLG.js → chunk-NTRWXCXD.js} +2 -2
  56. package/chunks/{chunk-QMLRYD76.js → chunk-PERC34BV.js} +1 -1
  57. package/chunks/{chunk-LOLVJNI5.js → chunk-PU5UIHAF.js} +2 -2
  58. package/chunks/{chunk-AVZFSWPD.js → chunk-Q26DFKTY.js} +1 -1
  59. package/chunks/{chunk-Y6XGC4K5.js → chunk-RYWXF3LO.js} +8 -1
  60. package/chunks/{chunk-4JKXZ5CF.js → chunk-SNOAL2C5.js} +1 -1
  61. package/chunks/{chunk-25XERWCE.js → chunk-U764PQUA.js} +3 -27
  62. package/chunks/{chunk-T34TL6KL.js → chunk-V3MYP5SQ.js} +27 -2
  63. package/chunks/{chunk-MN2AFJXM.js → chunk-VUNOOPEG.js} +1 -1
  64. package/chunks/{chunk-GMHIK5K2.js → chunk-WZJTV4ET.js} +1 -1
  65. package/chunks/{chunk-NWJ37GI2.js → chunk-XLZEIIPW.js} +28 -9
  66. package/chunks/{chunk-CSSTCHHF.js → chunk-YLZP3W37.js} +8 -3
  67. package/chunks/{chunk-DQD2753S.js → chunk-YMRRFDEQ.js} +2 -2
  68. package/chunks/{chunk-UFSFY7Z4.js → chunk-ZW62VYJW.js} +96 -2
  69. package/chunks/{create.action-ITEOQ644.js → create.action-XXOLILUS.js} +16 -16
  70. package/chunks/{delete.action-77MFPLUN.js → delete.action-R5KGPLDG.js} +16 -16
  71. package/chunks/{delete.action-C6VX4S5Q.js → delete.action-TQJOZRV7.js} +16 -16
  72. package/chunks/{get.action-LNBOWUVE.js → get.action-46OBVOQQ.js} +15 -15
  73. package/chunks/{get.action-3BP4FHZC.js → get.action-IQMOL4WM.js} +10 -10
  74. package/chunks/{list.action-KR5YIDR4.js → list.action-GXTKKVHY.js} +17 -17
  75. package/chunks/{list.action-6CRFQPJT.js → list.action-RIS7Q4OU.js} +15 -15
  76. package/chunks/{publish.action-YBORRPBM.js → publish.action-A4T4BT3F.js} +21 -21
  77. package/chunks/{update.action-QZI7M2MV.js → update.action-IZ5GULPY.js} +16 -16
  78. package/chunks/{update.action-O7TSXDGV.js → update.action-TK5L4PXB.js} +16 -16
  79. package/index.js +65 -64
  80. package/package.json +1 -1
  81. package/skills/scalar-cli/SKILL.md +1 -1
  82. package/template.md +3 -0
@@ -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-N5CJ5MTY.js";
4
+ } from "./chunk-LLZDQXYS.js";
5
5
  import {
6
6
  roleSchema
7
- } from "./chunk-BQYVSPAI.js";
7
+ } from "./chunk-7M44FQHX.js";
8
8
  import {
9
9
  output
10
10
  } from "./chunk-T5HJUAWB.js";
@@ -1,7 +1,7 @@
1
1
  import { createRequire as $$cR } from "node:module"; const require = $$cR(import.meta.url);
2
2
  import {
3
3
  detectManagedDocType
4
- } from "./chunk-MN2AFJXM.js";
4
+ } from "./chunk-VUNOOPEG.js";
5
5
 
6
6
  // src/domains/document/helpers/safe-normalize.ts
7
7
  import { normalize } from "@scalar/json-magic/helpers/normalize";
@@ -5,10 +5,10 @@ import {
5
5
  import {
6
6
  ISOLATE_DIR,
7
7
  ISOLATE_EXTRACTION_DIR
8
- } from "./chunk-KOD2HX5I.js";
8
+ } from "./chunk-D5YZ3FXG.js";
9
9
  import {
10
10
  config
11
- } from "./chunk-N5CJ5MTY.js";
11
+ } from "./chunk-LLZDQXYS.js";
12
12
  import {
13
13
  output
14
14
  } from "./chunk-T5HJUAWB.js";
@@ -7,7 +7,7 @@ import {
7
7
  var DEFAULT_ENVIRONMENT = "production";
8
8
  var RESERVED_ENVIRONMENT_SLUGS = ["latest", "all"];
9
9
  var ENVIRONMENT_SLUG_PATTERN = /^[a-z][a-z0-9-]{0,62}[a-z0-9]$/;
10
- var MAX_TEAM_ENVIRONMENTS = 20;
10
+ var MAX_TEAM_ENVIRONMENTS = 100;
11
11
  var environmentSlugSchema = external_exports.string().regex(ENVIRONMENT_SLUG_PATTERN, {
12
12
  message: "Environment slugs are 2 to 64 lowercase letters, digits or hyphens, starting with a letter and ending with a letter or digit."
13
13
  }).refine((slug) => !RESERVED_ENVIRONMENT_SLUGS.includes(slug), {
@@ -1,7 +1,7 @@
1
1
  import { createRequire as $$cR } from "node:module"; const require = $$cR(import.meta.url);
2
2
  import {
3
3
  baseRegistrySchema
4
- } from "./chunk-25XERWCE.js";
4
+ } from "./chunk-U764PQUA.js";
5
5
  import {
6
6
  brandedUid,
7
7
  docVersionSchema,
@@ -193,6 +193,13 @@ var sdkSchema = baseRegistrySchema.extend({
193
193
  * is the latest published version's `languages`.
194
194
  */
195
195
  targets: sdkTargetSchema.array().min(1),
196
+ /**
197
+ * Bills this SDK's targets in the standard band whatever its endpoint
198
+ * count. Set on the SDKs a team already had when it moved to 2026 pricing,
199
+ * which keep that price; it does not expire and only an admin clears it.
200
+ * Unset bills by size.
201
+ */
202
+ billingBandPin: external_exports.literal("standard").nullish(),
196
203
  /**
197
204
  * @deprecated Config now lives per-version (`sdkVersionSchema.config`). Kept
198
205
  * optional for the migration/legacy path; new code reads the version config.
@@ -1,7 +1,7 @@
1
1
  import { createRequire as $$cR } from "node:module"; const require = $$cR(import.meta.url);
2
2
  import {
3
3
  safeNormalize
4
- } from "./chunk-QMLRYD76.js";
4
+ } from "./chunk-PERC34BV.js";
5
5
  import {
6
6
  isUrl
7
7
  } from "./chunk-4ORL4MST.js";
@@ -45,25 +45,6 @@ var secretMetadataSchema = external_exports.object({
45
45
  message: "A var shows its value and a secret never does",
46
46
  path: ["value"]
47
47
  });
48
- var holdsItsKind = (record) => record.kind === "var" ? record.value != null && record.ciphertext == null && record.iv == null : record.value == null && record.ciphertext != null && record.iv != null;
49
- var secretRecordSchema = entitySchema.extend({
50
- teamUid: external_exports.string().min(1),
51
- environment: secretEnvironmentSchema,
52
- name: secretNameSchema,
53
- kind: secretKindSchema.default("secret"),
54
- /** A var's value, in plaintext */
55
- value: external_exports.string().nullish(),
56
- /** A secret's value: base64 of the AES-256-GCM output with its tag appended */
57
- ciphertext: external_exports.string().nullish(),
58
- /** A secret's IV, base64 */
59
- iv: external_exports.string().nullish(),
60
- /** The first eight hex characters of a sha256 over the plaintext */
61
- fingerprint: external_exports.string(),
62
- /** Unix seconds */
63
- rotatedAt: timestampSchema.nullish()
64
- }).refine(holdsItsKind, {
65
- message: "A var stores only its plaintext and a secret only its sealed value"
66
- });
67
48
  var storedNameShape = {
68
49
  environment: secretEnvironmentSchema,
69
50
  name: secretNameSchema
@@ -206,6 +187,8 @@ var mcpServerSchema = external_exports.object({
206
187
  // Missing keys parse to what a row gets before the channel backfill.
207
188
  channelMode: external_exports.enum(mcpChannelModes).default("multi").meta({ examples: ["single"] }),
208
189
  channels: mcpServerChannelSchema.array().default([]),
190
+ // A missing key parses to null, as for `domain`, whichever side deploys first.
191
+ docsProjectId: external_exports.string().nullable().default(null),
209
192
  createdAt: external_exports.string().meta({ examples: ["2025-01-01T00:00:00.000Z"] }),
210
193
  updatedAt: external_exports.string().meta({ examples: ["2025-01-01T00:00:00.000Z"] })
211
194
  }).meta({ id: "mcp-server" });
@@ -430,7 +413,6 @@ var mcpInstallationSchema = external_exports.object({
430
413
  isPrivate: external_exports.boolean().meta({ examples: [false] }),
431
414
  accessGroups: external_exports.array(external_exports.string()).default([]).meta({ examples: [["UakgbKJ5m9gl0JDMbcJqL"]] }),
432
415
  loginPortalUid: external_exports.string().nullable().default(null).meta({ examples: ["LakgbKJ5m9gl0JDMbcJqL"] }),
433
- authConfig: mcpAuthConfigSchema.default({}),
434
416
  mcpVersion: external_exports.string().nullable().default(null).meta({ examples: ["1.2.0"] }),
435
417
  piiRedactionEnabled: external_exports.boolean().default(false).meta({ examples: [true] }),
436
418
  credentialRedactionEnabled: external_exports.boolean().default(false).meta({ examples: [true] }),
@@ -440,12 +422,7 @@ var mcpInstallationSchema = external_exports.object({
440
422
  }).meta({ id: "mcp-installation" });
441
423
  var createdMcpServerSchema = external_exports.object({
442
424
  server: mcpServerSchema,
443
- installation: mcpInstallationSchema.extend({
444
- documentAuth: external_exports.object({}).optional()
445
- })
446
- });
447
- var emptyDocumentAuthSchema = external_exports.record(external_exports.string(), external_exports.unknown()).refine((documentAuth) => Object.keys(documentAuth).length === 0, {
448
- message: "not accepted: credentials are managed in the environment's configuration and on the team's Environments page"
425
+ installation: mcpInstallationSchema
449
426
  });
450
427
 
451
428
  // ../../packages/entities/dist/registry/instance.js
@@ -1050,7 +1027,6 @@ export {
1050
1027
  mcpServerDocsPageToolSchema,
1051
1028
  mcpInstallationSchema,
1052
1029
  createdMcpServerSchema,
1053
- emptyDocumentAuthSchema,
1054
1030
  mcpServerHistorySchema,
1055
1031
  monthlyUsageSchema,
1056
1032
  docVersionToolSchema,
@@ -4,10 +4,10 @@ import {
4
4
  mcpChannelModes,
5
5
  mcpEnvironmentPolicies,
6
6
  mcpServerChannelSchema
7
- } from "./chunk-25XERWCE.js";
7
+ } from "./chunk-U764PQUA.js";
8
8
  import {
9
9
  environmentSlugSchema
10
- } from "./chunk-AVZFSWPD.js";
10
+ } from "./chunk-Q26DFKTY.js";
11
11
  import {
12
12
  brandedUid,
13
13
  entitySchema,
@@ -39,6 +39,22 @@ var typesenseConfigSchema = external_exports.object({
39
39
  collectionName: external_exports.string()
40
40
  }).meta({ id: "typesense-config" });
41
41
 
42
+ // ../../packages/entities/dist/deploys/constants.js
43
+ var helpfulReasons = [
44
+ "solved-problem",
45
+ "easy-to-follow",
46
+ "good-examples"
47
+ ];
48
+ var unhelpfulReasons = [
49
+ "inaccurate",
50
+ "unclear",
51
+ "missing-information",
52
+ "broken-example",
53
+ "other"
54
+ ];
55
+ var FEEDBACK_PATH_MAX_LENGTH = 2048;
56
+ var FEEDBACK_BODY_LIMIT = FEEDBACK_PATH_MAX_LENGTH + 512;
57
+
42
58
  // ../../packages/entities/dist/deploys/deploy.js
43
59
  var subpathSchema = external_exports.object({
44
60
  subpath: external_exports.string(),
@@ -169,6 +185,12 @@ var mcpEnvironmentSchema = external_exports.object({
169
185
  channels: external_exports.record(external_exports.string(), mcpChannelConfigSchema).optional(),
170
186
  /** Who may sign in on a Scalar-fronted environment. */
171
187
  accessGroups: external_exports.string().array().optional(),
188
+ /**
189
+ * Per access group uid, key to the name of the team secret
190
+ * `{{ group.KEY }}` sends for a reader that group admits; `""` is none.
191
+ * Null is none at all, so the environment stops taking production's.
192
+ */
193
+ groupSecrets: external_exports.record(external_exports.string(), external_exports.record(external_exports.string(), external_exports.string())).nullish(),
172
194
  loginPortalUid: external_exports.string().nullable().optional(),
173
195
  piiRedaction: external_exports.boolean().optional(),
174
196
  credentialRedaction: external_exports.boolean().optional(),
@@ -216,6 +238,9 @@ var mcpServerRecordSchema = baseRegistrySchema.extend({
216
238
  }).meta({ id: "mcp-server-record" });
217
239
 
218
240
  export {
241
+ helpfulReasons,
242
+ unhelpfulReasons,
243
+ FEEDBACK_PATH_MAX_LENGTH,
219
244
  cloudflareHostnameStateSchema,
220
245
  siteDeploySchema,
221
246
  mcpEnvironmentSchema
@@ -2,7 +2,7 @@ import { createRequire as $$cR } from "node:module"; const require = $$cR(import
2
2
  import {
3
3
  baseRegistrySchema,
4
4
  docVersionToolSchema
5
- } from "./chunk-25XERWCE.js";
5
+ } from "./chunk-U764PQUA.js";
6
6
  import {
7
7
  brandedUid,
8
8
  docVersionSchema,
@@ -1,7 +1,7 @@
1
1
  import { createRequire as $$cR } from "node:module"; const require = $$cR(import.meta.url);
2
2
  import {
3
3
  registryUrl
4
- } from "./chunk-GYR5E6RB.js";
4
+ } from "./chunk-GPQXLA43.js";
5
5
 
6
6
  // src/domains/registry/helpers/fetch.ts
7
7
  async function fetchFromRegistry(path, accessToken) {
@@ -5,19 +5,22 @@ import {
5
5
  loginPortalSchema,
6
6
  managedSchema,
7
7
  workspaceSchema
8
- } from "./chunk-SEURG74P.js";
8
+ } from "./chunk-JLNHOA5Z.js";
9
9
  import {
10
10
  userSchema
11
- } from "./chunk-3TFOA64C.js";
11
+ } from "./chunk-E57QCEAV.js";
12
12
  import {
13
13
  sdkSchema
14
- } from "./chunk-Y6XGC4K5.js";
14
+ } from "./chunk-RYWXF3LO.js";
15
15
  import {
16
- siteDeploySchema
17
- } from "./chunk-T34TL6KL.js";
16
+ FEEDBACK_PATH_MAX_LENGTH,
17
+ helpfulReasons,
18
+ siteDeploySchema,
19
+ unhelpfulReasons
20
+ } from "./chunk-V3MYP5SQ.js";
18
21
  import {
19
22
  teamSchema
20
- } from "./chunk-BQYVSPAI.js";
23
+ } from "./chunk-7M44FQHX.js";
21
24
  import {
22
25
  activeDeploymentSchema,
23
26
  publishRecordSchema,
@@ -26,12 +29,12 @@ import {
26
29
  import {
27
30
  managedDocSchema,
28
31
  ruleSchema
29
- } from "./chunk-MN2AFJXM.js";
32
+ } from "./chunk-VUNOOPEG.js";
30
33
  import {
31
34
  docInstanceOriginSchema,
32
35
  docInstanceSchema,
33
36
  docVersionRecordSchema
34
- } from "./chunk-25XERWCE.js";
37
+ } from "./chunk-U764PQUA.js";
35
38
  import {
36
39
  brandedUid,
37
40
  emailSchema,
@@ -77,6 +80,23 @@ var aiInventorySchema = external_exports.object({
77
80
  }).nullable()
78
81
  });
79
82
 
83
+ // ../../packages/entities/dist/deploys/feedback.js
84
+ var helpfulReasonSchema = external_exports.enum(helpfulReasons);
85
+ var unhelpfulReasonSchema = external_exports.enum(unhelpfulReasons);
86
+ var feedbackReasonSchema = external_exports.union([
87
+ helpfulReasonSchema,
88
+ unhelpfulReasonSchema
89
+ ]);
90
+ var feedbackRequestSchema = external_exports.object({
91
+ path: external_exports.string().min(1).max(FEEDBACK_PATH_MAX_LENGTH).startsWith("/"),
92
+ helpful: external_exports.boolean(),
93
+ reasons: external_exports.array(feedbackReasonSchema).max(unhelpfulReasons.length)
94
+ }).refine(({ helpful, reasons }) => reasons.every((reason) => helpful ? helpfulReasonSchema.safeParse(reason).success : unhelpfulReasonSchema.safeParse(reason).success), { message: "Reasons must match the vote", path: ["reasons"] }).transform(({ path, helpful, reasons }) => ({
95
+ path,
96
+ helpful,
97
+ reasons: [...new Set(reasons)]
98
+ }));
99
+
80
100
  // ../../packages/entities/dist/deploys/mcp-server-card.js
81
101
  var mcpDefinitionSchema = external_exports.object({
82
102
  server: external_exports.object({ name: external_exports.string().min(1), version: external_exports.string().min(1) }),
@@ -166,7 +186,6 @@ var BaseCollections = {
166
186
  AuthSessions: "auth-sessions",
167
187
  AuthCounters: "auth-counters",
168
188
  AuthRevocations: "auth-revocations",
169
- Secrets: "secrets",
170
189
  SecretMetadata: (teamUid) => `team/${teamUid}/secrets`,
171
190
  SecretValues: (teamUid) => `team/${teamUid}/secret-values`,
172
191
  Vars: (teamUid) => `team/${teamUid}/vars`,
@@ -64004,6 +64004,7 @@ var titleSchema = external_exports.string().describe("Title to show use in any n
64004
64004
  var pathSchema = external_exports.string().startsWith("/");
64005
64005
  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.");
64006
64006
  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.");
64007
+ var colorSchemeTogglePositionSchema = external_exports.union([external_exports.enum(["sidebar", "header", "tabs"]), external_exports.literal(false)]).describe('Where the light/dark toggle renders: "sidebar" (default), "header", or "tabs". Falls back to the next surface the page has (sidebar, header, tabs) when the chosen one is missing. Set false to hide it.');
64007
64008
 
64008
64009
  // ../../packages/scalar-config/dist/schema/navigation/header.js
64009
64010
  var HEADER_ALIGNS = ["start", "center", "end"];
@@ -64242,11 +64243,13 @@ var pageFrontmatterSchema = external_exports.object({
64242
64243
  pageActions: external_exports.boolean().optional(),
64243
64244
  pageNav: external_exports.boolean().optional().describe("Show previous and next page links on this page."),
64244
64245
  lastUpdated: external_exports.boolean().optional().describe("Show the date this page last changed, above the previous and next links."),
64246
+ feedback: external_exports.boolean().optional().describe("Ask readers whether this page was helpful."),
64245
64247
  fullWidth: external_exports.boolean().optional().describe("Expand the page content to the full page width instead of the default centered column."),
64246
64248
  search: external_exports.object({
64247
64249
  position: external_exports.enum(["header", "sidebar"]).optional().describe("The position of the search bar in this page"),
64248
64250
  enabled: external_exports.boolean().optional().describe("Enable or disable search for this page")
64249
- }).optional().describe("Search bar configuration")
64251
+ }).optional().describe("Search bar configuration"),
64252
+ colorSchemeToggle: colorSchemeTogglePositionSchema.optional()
64250
64253
  }).optional().describe("Optional layout options for the page. This will override the global layout options."),
64251
64254
  /** Optional head options (meta, scripts, etc-). */
64252
64255
  head: headSchema.optional(),
@@ -64539,6 +64542,7 @@ var siteConfigSchema = external_exports.object({
64539
64542
  pageActions: external_exports.boolean().optional(),
64540
64543
  pageNav: external_exports.boolean().optional().describe("Show previous and next page links at the bottom of each page. Defaults to true."),
64541
64544
  lastUpdated: external_exports.boolean().optional().describe("Show the date each page last changed, above the previous and next links. Defaults to false."),
64545
+ feedback: external_exports.boolean().optional().describe("Ask readers whether a page was helpful. Off unless set, and the votes are only recorded while the project has analytics enabled."),
64542
64546
  search: external_exports.object({
64543
64547
  position: external_exports.enum(["header", "sidebar"]).optional().describe("The global position of the search bar"),
64544
64548
  enabled: external_exports.boolean().optional().describe("Enable or disable search globally")
@@ -64546,7 +64550,8 @@ var siteConfigSchema = external_exports.object({
64546
64550
  sidebar: external_exports.object({
64547
64551
  enabled: external_exports.boolean().optional().describe("Show or hide the sidebar globally"),
64548
64552
  navPosition: external_exports.enum(["top", "bottom"]).optional().describe("Top level sidebar nav item positioning")
64549
- }).optional()
64553
+ }).optional(),
64554
+ colorSchemeToggle: colorSchemeTogglePositionSchema.optional()
64550
64555
  }).optional().describe("Global layout options to hide/show select elements"),
64551
64556
  /** Slug for a platform defined theme, or a relative path to a local .css file (must end with .css). */
64552
64557
  theme: external_exports.string().optional().describe("Slug for a platform-defined theme, or a relative path to a local .css file (must end with .css)."),
@@ -64576,7 +64581,7 @@ var siteConfigSchema = external_exports.object({
64576
64581
  /** Color scheme toggle configuration */
64577
64582
  colorScheme: external_exports.object({
64578
64583
  default: external_exports.enum(["light", "dark", "system"]).optional().describe("Default color scheme on page load."),
64579
- showToggle: external_exports.boolean().optional().describe("Show color scheme toggle switch.")
64584
+ showToggle: external_exports.boolean().optional().describe("Deprecated, use layout.colorSchemeToggle. Show color scheme toggle switch.")
64580
64585
  }).optional().describe("Customize light/dark mode color scheme and toggle preferences."),
64581
64586
  /** Ask AI agent configuration */
64582
64587
  agent: external_exports.object({
@@ -1,10 +1,10 @@
1
1
  import { createRequire as $$cR } from "node:module"; const require = $$cR(import.meta.url);
2
2
  import {
3
3
  BaseCollections
4
- } from "./chunk-NWJ37GI2.js";
4
+ } from "./chunk-XLZEIIPW.js";
5
5
  import {
6
6
  getDatabaseClient
7
- } from "./chunk-U6VE6JOS.js";
7
+ } from "./chunk-4BE7UCJO.js";
8
8
  import {
9
9
  publishRecordSchema
10
10
  } from "./chunk-VRZSDUZK.js";
@@ -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-MN2AFJXM.js";
4
+ } from "./chunk-VUNOOPEG.js";
5
5
  import {
6
6
  contentShaSchema
7
- } from "./chunk-25XERWCE.js";
7
+ } from "./chunk-U764PQUA.js";
8
8
  import {
9
9
  docVersionSchema,
10
10
  external_exports,
@@ -206,6 +206,100 @@ function registry(teamNamespace) {
206
206
  var artifactUidSchema = nanoidSchema.regex(/^[a-zA-Z0-9_-]+$/, "Artifact uids must be a single path segment");
207
207
  var artifactLanguageSchema = external_exports.string().regex(/^[a-z0-9]+$/, "Artifact languages must be a single path segment");
208
208
 
209
+ // ../../packages/entities/dist/agent/mcp-edge-routes.js
210
+ var MCP_BUILD_PATTERN = "[0-9a-f]{7,64}";
211
+ var VERSION_WORDS = [
212
+ "dev",
213
+ "development",
214
+ "test",
215
+ "staging",
216
+ "production",
217
+ "beta",
218
+ "alpha",
219
+ "current",
220
+ "active"
221
+ ];
222
+ var VERSION_LABEL = `(?:(?:(?:[a-z][a-z0-9]*-)*(?:[vV]?[0-9]+(?:[.][0-9]+){0,4}(?:-[0-9A-Za-z.-]+)?|[0-9a-f]{7,40})|${VERSION_WORDS.join("|")})(?:[+]${MCP_BUILD_PATTERN})?|latest)`;
223
+ var ORIGIN_VERSION_LABEL = `[^/@+]+(?:[+]${MCP_BUILD_PATTERN})?`;
224
+ var READ = ["GET", "HEAD"];
225
+ var DASHBOARD_POST = [
226
+ "POST",
227
+ "OPTIONS"
228
+ ];
229
+ var MCP_AUTH_SERVER_ROUTES = [
230
+ { path: "/_scalar/oauth/authorize", methods: READ },
231
+ { path: "/_scalar/oauth/continue", methods: [...READ, "POST"] },
232
+ { path: "/_scalar/oauth/consent", methods: ["POST"] },
233
+ { path: "/_scalar/oauth/register", methods: ["POST", "OPTIONS"] },
234
+ { path: "/_scalar/oauth/token", methods: ["POST", "OPTIONS"] },
235
+ { path: "/_scalar/oauth/revoke", methods: ["POST", "OPTIONS"] },
236
+ { path: "/_scalar/oauth/signout", methods: READ },
237
+ { path: "/_scalar/oauth/email/start", methods: ["POST"] },
238
+ { path: "/_scalar/oauth/email/link", methods: [...READ, "POST"] },
239
+ { path: "/_scalar/oauth/platform/password", methods: DASHBOARD_POST },
240
+ { path: "/_scalar/oauth/platform/password/proof", methods: DASHBOARD_POST },
241
+ {
242
+ path: "/_scalar/oauth/platform/password/reset/start",
243
+ methods: DASHBOARD_POST
244
+ },
245
+ {
246
+ path: "/_scalar/oauth/platform/password/reset/complete",
247
+ methods: DASHBOARD_POST
248
+ },
249
+ {
250
+ path: "/_scalar/oauth/platform/password/change",
251
+ methods: DASHBOARD_POST
252
+ },
253
+ { path: "/_scalar/oauth/platform/proof", methods: ["POST"] },
254
+ { path: "/_scalar/oauth/idp/:provider/start", methods: READ },
255
+ { path: "/_scalar/oauth/idp/:provider/begin", methods: READ },
256
+ { path: "/_scalar/oauth/idp/callback", methods: READ },
257
+ { path: "/_scalar/oauth/idp/return", methods: READ },
258
+ {
259
+ path: "/_scalar/oauth/idp/github/verify-email",
260
+ methods: [...READ, "POST"]
261
+ },
262
+ { path: "/_scalar/oauth/saml/start", methods: READ },
263
+ { path: "/_scalar/oauth/saml/begin", methods: READ },
264
+ { path: "/_scalar/oauth/saml/acs", methods: ["POST"] }
265
+ ];
266
+ var PROBE_PATTERN = [
267
+ "[.](?:php|aspx?|jsp|action|cgi)(?:/|$)",
268
+ "^/[.]git(?:/|$)",
269
+ "^/[.]env(?:[./]|$)",
270
+ "^/wp-(?:admin|login|content|includes|config|cron)(?:[./]|$)",
271
+ "^/(?:actuator|heapdump|jmx-console|phpmyadmin)(?:/|$)",
272
+ "^/nuclei[.]svg$",
273
+ "^/oast[.]me(?:/|$)",
274
+ "[{][{]"
275
+ ].join("|");
276
+ var literal = (value) => `"${value.replaceAll("\\", "\\\\").replaceAll('"', '\\"')}"`;
277
+ var anyHeaderContains = (name, needle) => `any(http.request.headers[${literal(name)}][*] contains ${literal(needle)})`;
278
+ var PREFLIGHT = [
279
+ `any(http.request.headers["origin"][*] ne "")`,
280
+ `any(http.request.headers["access-control-request-method"][*] ne "")`
281
+ ].join(" and ");
282
+ var NOT_ACCEPTABLE_BODY = JSON.stringify({
283
+ jsonrpc: "2.0",
284
+ error: {
285
+ code: -32e3,
286
+ message: "Not Acceptable: Client must accept both application/json and text/event-stream"
287
+ },
288
+ id: null
289
+ });
290
+ var UNSUPPORTED_MEDIA_TYPE_BODY = JSON.stringify({
291
+ jsonrpc: "2.0",
292
+ error: {
293
+ code: -32e3,
294
+ message: "Unsupported Media Type: Content-Type must be application/json"
295
+ },
296
+ id: null
297
+ });
298
+ var MCP_ON_OTHER_HOSTS = `ends_with(http.request.uri.path, "/mcp") or ${anyHeaderContains("accept", "text/event-stream")}`;
299
+
300
+ // ../../packages/urls/dist/mcp/address.js
301
+ var BUILD_SEGMENT = new RegExp(`^${MCP_BUILD_PATTERN}$`);
302
+
209
303
  export {
210
304
  getPublishUrl,
211
305
  getPublishPreviewUrl,
@@ -1,45 +1,45 @@
1
1
  import { createRequire as $$cR } from "node:module"; const require = $$cR(import.meta.url);
2
2
  import {
3
3
  BaseCollections
4
- } from "./chunk-NWJ37GI2.js";
4
+ } from "./chunk-XLZEIIPW.js";
5
5
  import {
6
6
  getDatabaseClient
7
- } from "./chunk-U6VE6JOS.js";
7
+ } from "./chunk-4BE7UCJO.js";
8
8
  import {
9
9
  apiService
10
- } from "./chunk-F3OPMYME.js";
11
- import "./chunk-FG5AOTDN.js";
12
- import "./chunk-SEURG74P.js";
13
- import "./chunk-3TFOA64C.js";
10
+ } from "./chunk-LWIAFTKX.js";
11
+ import "./chunk-N645RGAB.js";
12
+ import "./chunk-JLNHOA5Z.js";
13
+ import "./chunk-E57QCEAV.js";
14
14
  import "./chunk-5ENKYZA4.js";
15
15
  import {
16
16
  SdkLanguage
17
- } from "./chunk-Y6XGC4K5.js";
18
- import "./chunk-SOV4POMS.js";
19
- import "./chunk-T34TL6KL.js";
17
+ } from "./chunk-RYWXF3LO.js";
18
+ import "./chunk-7TSQ7ZGU.js";
19
+ import "./chunk-V3MYP5SQ.js";
20
20
  import "./chunk-V6LUKXBV.js";
21
21
  import "./chunk-VUXPDHTQ.js";
22
22
  import {
23
23
  getAuthData
24
- } from "./chunk-3RIUDHLG.js";
24
+ } from "./chunk-NTRWXCXD.js";
25
25
  import {
26
26
  config
27
- } from "./chunk-N5CJ5MTY.js";
28
- import "./chunk-US54KYOJ.js";
27
+ } from "./chunk-LLZDQXYS.js";
28
+ import "./chunk-DKZ3PS3X.js";
29
29
  import {
30
30
  teamSchema
31
- } from "./chunk-BQYVSPAI.js";
31
+ } from "./chunk-7M44FQHX.js";
32
32
  import "./chunk-VRZSDUZK.js";
33
33
  import {
34
34
  requireInteractive
35
35
  } from "./chunk-EGOXR5FB.js";
36
36
  import "./chunk-4ORL4MST.js";
37
- import "./chunk-MN2AFJXM.js";
37
+ import "./chunk-VUNOOPEG.js";
38
38
  import {
39
39
  output
40
40
  } from "./chunk-T5HJUAWB.js";
41
- import "./chunk-25XERWCE.js";
42
- import "./chunk-AVZFSWPD.js";
41
+ import "./chunk-U764PQUA.js";
42
+ import "./chunk-Q26DFKTY.js";
43
43
  import {
44
44
  external_exports,
45
45
  namespaceSchema,
@@ -1,41 +1,41 @@
1
1
  import { createRequire as $$cR } from "node:module"; const require = $$cR(import.meta.url);
2
2
  import {
3
3
  BaseCollections
4
- } from "./chunk-NWJ37GI2.js";
4
+ } from "./chunk-XLZEIIPW.js";
5
5
  import {
6
6
  getDatabaseClient
7
- } from "./chunk-U6VE6JOS.js";
7
+ } from "./chunk-4BE7UCJO.js";
8
8
  import {
9
9
  apiService
10
- } from "./chunk-F3OPMYME.js";
11
- import "./chunk-FG5AOTDN.js";
12
- import "./chunk-SEURG74P.js";
13
- import "./chunk-3TFOA64C.js";
10
+ } from "./chunk-LWIAFTKX.js";
11
+ import "./chunk-N645RGAB.js";
12
+ import "./chunk-JLNHOA5Z.js";
13
+ import "./chunk-E57QCEAV.js";
14
14
  import "./chunk-5ENKYZA4.js";
15
- import "./chunk-Y6XGC4K5.js";
16
- import "./chunk-SOV4POMS.js";
17
- import "./chunk-T34TL6KL.js";
15
+ import "./chunk-RYWXF3LO.js";
16
+ import "./chunk-7TSQ7ZGU.js";
17
+ import "./chunk-V3MYP5SQ.js";
18
18
  import "./chunk-V6LUKXBV.js";
19
19
  import "./chunk-VUXPDHTQ.js";
20
20
  import {
21
21
  getAuthData
22
- } from "./chunk-3RIUDHLG.js";
23
- import "./chunk-N5CJ5MTY.js";
24
- import "./chunk-US54KYOJ.js";
22
+ } from "./chunk-NTRWXCXD.js";
23
+ import "./chunk-LLZDQXYS.js";
24
+ import "./chunk-DKZ3PS3X.js";
25
25
  import {
26
26
  teamSchema
27
- } from "./chunk-BQYVSPAI.js";
27
+ } from "./chunk-7M44FQHX.js";
28
28
  import "./chunk-VRZSDUZK.js";
29
29
  import {
30
30
  requireInteractive
31
31
  } from "./chunk-EGOXR5FB.js";
32
32
  import "./chunk-4ORL4MST.js";
33
- import "./chunk-MN2AFJXM.js";
33
+ import "./chunk-VUNOOPEG.js";
34
34
  import {
35
35
  output
36
36
  } from "./chunk-T5HJUAWB.js";
37
- import "./chunk-25XERWCE.js";
38
- import "./chunk-AVZFSWPD.js";
37
+ import "./chunk-U764PQUA.js";
38
+ import "./chunk-Q26DFKTY.js";
39
39
  import {
40
40
  external_exports,
41
41
  namespaceSchema,
@@ -1,43 +1,43 @@
1
1
  import { createRequire as $$cR } from "node:module"; const require = $$cR(import.meta.url);
2
2
  import {
3
3
  BaseCollections
4
- } from "./chunk-NWJ37GI2.js";
4
+ } from "./chunk-XLZEIIPW.js";
5
5
  import {
6
6
  getDatabaseClient
7
- } from "./chunk-U6VE6JOS.js";
7
+ } from "./chunk-4BE7UCJO.js";
8
8
  import {
9
9
  apiService
10
- } from "./chunk-F3OPMYME.js";
11
- import "./chunk-FG5AOTDN.js";
12
- import "./chunk-SEURG74P.js";
13
- import "./chunk-3TFOA64C.js";
10
+ } from "./chunk-LWIAFTKX.js";
11
+ import "./chunk-N645RGAB.js";
12
+ import "./chunk-JLNHOA5Z.js";
13
+ import "./chunk-E57QCEAV.js";
14
14
  import "./chunk-5ENKYZA4.js";
15
15
  import {
16
16
  sdkSchema
17
- } from "./chunk-Y6XGC4K5.js";
18
- import "./chunk-SOV4POMS.js";
19
- import "./chunk-T34TL6KL.js";
17
+ } from "./chunk-RYWXF3LO.js";
18
+ import "./chunk-7TSQ7ZGU.js";
19
+ import "./chunk-V3MYP5SQ.js";
20
20
  import "./chunk-V6LUKXBV.js";
21
21
  import "./chunk-VUXPDHTQ.js";
22
22
  import {
23
23
  getAuthData
24
- } from "./chunk-3RIUDHLG.js";
25
- import "./chunk-N5CJ5MTY.js";
26
- import "./chunk-US54KYOJ.js";
24
+ } from "./chunk-NTRWXCXD.js";
25
+ import "./chunk-LLZDQXYS.js";
26
+ import "./chunk-DKZ3PS3X.js";
27
27
  import {
28
28
  teamSchema
29
- } from "./chunk-BQYVSPAI.js";
29
+ } from "./chunk-7M44FQHX.js";
30
30
  import "./chunk-VRZSDUZK.js";
31
31
  import {
32
32
  requireInteractive
33
33
  } from "./chunk-EGOXR5FB.js";
34
34
  import "./chunk-4ORL4MST.js";
35
- import "./chunk-MN2AFJXM.js";
35
+ import "./chunk-VUNOOPEG.js";
36
36
  import {
37
37
  output
38
38
  } from "./chunk-T5HJUAWB.js";
39
- import "./chunk-25XERWCE.js";
40
- import "./chunk-AVZFSWPD.js";
39
+ import "./chunk-U764PQUA.js";
40
+ import "./chunk-Q26DFKTY.js";
41
41
  import {
42
42
  external_exports,
43
43
  namespaceSchema,