@scalar/cli 2.17.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.
Files changed (94) hide show
  1. package/README.md +77 -3
  2. package/chunks/{action-Y4L4OPPH.js → action-2WVJ2WEW.js} +15 -16
  3. package/chunks/{action-UOUS2G2B.js → action-4BDZ2CXP.js} +6 -7
  4. package/chunks/{action-52ZSECW2.js → action-5AXDB5VN.js} +14 -15
  5. package/chunks/{action-7PVWQJ7V.js → action-6I3TJLRO.js} +28 -26
  6. package/chunks/{action-MPBZUWQ2.js → action-6WZN63LT.js} +20 -19
  7. package/chunks/{action-5NYKJDBG.js → action-7GZGVTYI.js} +1067 -766
  8. package/chunks/{action-2Y6UTXAG.js → action-7ZCJAWI2.js} +5 -5
  9. package/chunks/{action-UWVZ6V7B.js → action-A6YOY24G.js} +5 -5
  10. package/chunks/{action-KJJ35X2T.js → action-AGGHY4N2.js} +21 -20
  11. package/chunks/{action-MKZYWAXH.js → action-BVZOA2G5.js} +9 -10
  12. package/chunks/{action-5TQHROY5.js → action-BYDJ4R4F.js} +14 -15
  13. package/chunks/{action-VJDK7ROI.js → action-CBAL5CYB.js} +16 -17
  14. package/chunks/action-COFGCCYS.js +89 -0
  15. package/chunks/action-CYU5Q5LT.js +254 -0
  16. package/chunks/{action-XMANK72Z.js → action-DTQH6CKR.js} +24 -23
  17. package/chunks/{action-AFZE62DU.js → action-ED5WLLIE.js} +6 -7
  18. package/chunks/action-F4CQ4DW3.js +654 -0
  19. package/chunks/{action-TA6VOPQ5.js → action-GVW5PSPT.js} +17 -18
  20. package/chunks/{action-TTDV5NIP.js → action-H5VRLFCY.js} +5 -5
  21. package/chunks/{action-2SZMLOYJ.js → action-IWEAWDT3.js} +9 -10
  22. package/chunks/{action-3EATJRIK.js → action-JN6JVQUV.js} +14 -15
  23. package/chunks/{action-WPUITVPF.js → action-KVM76ZKQ.js} +11 -11
  24. package/chunks/{action-PS4F4QWI.js → action-LLMFEBHH.js} +3 -4
  25. package/chunks/{action-WUMW2GH6.js → action-PEG7AUA6.js} +14 -13
  26. package/chunks/{action-UVWH2KZY.js → action-QC72LLYE.js} +7 -5
  27. package/chunks/{action-P5MGMJG3.js → action-QP6MRSQW.js} +15 -14
  28. package/chunks/{action-W47MFJSP.js → action-R53K22GE.js} +219 -45
  29. package/chunks/{action-RWITXLMW.js → action-SJPWL723.js} +5 -4
  30. package/chunks/{action-SBD4TFRS.js → action-T3R4SDAI.js} +5 -5
  31. package/chunks/{action-GOKWY3AQ.js → action-TT7ZJNST.js} +20 -19
  32. package/chunks/{action-LALZGEVR.js → action-UPVVJE26.js} +14 -15
  33. package/chunks/{action-RM4RZFZV.js → action-V35W4MRK.js} +10 -11
  34. package/chunks/{action-J3C4LAT5.js → action-W4KGRBRV.js} +5 -5
  35. package/chunks/{action-VWQNDXZT.js → action-ZIVYJCC2.js} +14 -15
  36. package/chunks/{action-LI6DZLDZ.js → action-ZU5X2KQX.js} +22 -21
  37. package/chunks/{actions-GWMW7V2B.js → actions-CERT7BL4.js} +16 -16
  38. package/chunks/{actions-4X5RTQCM.js → actions-RCIS37Y6.js} +14 -15
  39. package/chunks/{agent-LB5ZCVUN.js → agent-CT3RRYPJ.js} +7 -7
  40. package/chunks/{asyncapi-J6VAMIMO.js → asyncapi-DVBS23QW.js} +9 -10
  41. package/chunks/{build.action-YP46CGLS.js → build.action-7MKMMV6V.js} +16 -17
  42. package/chunks/{chunk-B3CMXTHQ.js → chunk-36UI2W7I.js} +1 -1
  43. package/chunks/{chunk-4TSZVWGM.js → chunk-4BMOCIYO.js} +19 -4
  44. package/chunks/{chunk-SKXMYIA2.js → chunk-5EO2CVAR.js} +4 -4
  45. package/chunks/{chunk-4YQNT5UH.js → chunk-5GZAGHKL.js} +1 -1
  46. package/chunks/{chunk-3BZ3VY6H.js → chunk-7LUXRNKV.js} +27 -2
  47. package/chunks/{chunk-KDEKIOIP.js → chunk-CWCRBWA6.js} +1 -1
  48. package/chunks/{chunk-YFUHTGGP.js → chunk-CYIGEQOJ.js} +2 -2
  49. package/chunks/{chunk-I4FQOD5L.js → chunk-DVA4NCCY.js} +3 -3
  50. package/chunks/{chunk-63AB5A5B.js → chunk-F6E7FJEC.js} +6 -6
  51. package/chunks/{chunk-2KMYC3ZI.js → chunk-FMPJSW6A.js} +2 -2
  52. package/chunks/{chunk-IZ3UMB7D.js → chunk-GCVB22TG.js} +2 -2
  53. package/chunks/{chunk-36AMOACU.js → chunk-GXKNYM54.js} +3 -3
  54. package/chunks/chunk-I25ZCHBJ.js +22 -0
  55. package/chunks/{chunk-KYCM5SL3.js → chunk-JBMHCTZD.js} +1 -0
  56. package/chunks/{chunk-57EMU765.js → chunk-JEOQ7LSA.js} +1 -1
  57. package/chunks/{chunk-DXEHHE6H.js → chunk-KI2AVDKM.js} +6 -4
  58. package/chunks/{chunk-QDT27U6O.js → chunk-KSY2GH53.js} +2 -2
  59. package/chunks/{chunk-LS6XOFVD.js → chunk-KWQVA66H.js} +11 -23
  60. package/chunks/{chunk-KJT4VYUO.js → chunk-LPWRG2MS.js} +1 -1
  61. package/chunks/{chunk-NKCM2UH5.js → chunk-LVUMNGVA.js} +1 -1
  62. package/chunks/{chunk-H6LOSAC7.js → chunk-M34HMQMV.js} +39 -83
  63. package/chunks/{chunk-XGKFAPON.js → chunk-MRZ5A7LB.js} +4 -4
  64. package/chunks/chunk-O3I3LTTJ.js +24 -0
  65. package/chunks/{chunk-XQPB4OGW.js → chunk-O4DJIA6Y.js} +2 -19
  66. package/chunks/{action-B3IDMFFO.js → chunk-OKLL5422.js} +5 -243
  67. package/chunks/{chunk-RVZZQKVE.js → chunk-PMDHYIB4.js} +4 -22
  68. package/chunks/{chunk-BIYCLKLZ.js → chunk-RELSIFIL.js} +1 -1
  69. package/chunks/{chunk-QLKBXVUV.js → chunk-RGJPENX7.js} +1 -1
  70. package/chunks/{chunk-3KK72EMO.js → chunk-RHAQ4XBA.js} +3 -3
  71. package/chunks/{action-S7DB6MBK.js → chunk-RQ7QBRJT.js} +1 -82
  72. package/chunks/chunk-S3LY7RKP.js +54 -0
  73. package/chunks/{chunk-X2NZINNR.js → chunk-S5OGPH2P.js} +3 -3
  74. package/chunks/{chunk-VNMVAJ6X.js → chunk-U36HEOGO.js} +17 -21
  75. package/chunks/{chunk-CAD672DX.js → chunk-Y3CXAIAG.js} +1 -1
  76. package/chunks/{chunk-HNWIIDGX.js → chunk-Z7EH7CJC.js} +3 -3
  77. package/chunks/{chunk-SVDXXGEO.js → chunk-ZMJW5UWU.js} +3 -3
  78. package/chunks/{chunk-UI5PWDNE.js → chunk-ZQDAPKWX.js} +9 -16
  79. package/chunks/{create.action-PRZKNQHM.js → create.action-VA2ISPIM.js} +16 -17
  80. package/chunks/{delete.action-G7OAQBR5.js → delete.action-AIWMDGXV.js} +16 -17
  81. package/chunks/{delete.action-2BLCOX6Y.js → delete.action-GEN6OD7A.js} +16 -17
  82. package/chunks/{diff.action-KDOJQVJ5.js → diff.action-LBK656RN.js} +15 -14
  83. package/chunks/{get.action-IKO22SCB.js → get.action-5SWRNQ3D.js} +15 -14
  84. package/chunks/{get.action-HSYV5TFY.js → get.action-UPPPGGI4.js} +17 -18
  85. package/chunks/{list.action-KYIFUM3C.js → list.action-YJZBC25S.js} +17 -18
  86. package/chunks/{list.action-IVJS7UFI.js → list.action-YOWWC4I4.js} +19 -20
  87. package/chunks/{publish.action-2QIOUMVY.js → publish.action-QMVDHDJZ.js} +22 -21
  88. package/chunks/{update.action-XZD6T5UR.js → update.action-GFDZIGEP.js} +17 -18
  89. package/chunks/{update.action-7QATFOGP.js → update.action-SNGKPS7A.js} +16 -17
  90. package/index.js +194 -154
  91. package/package.json +11 -11
  92. package/skills/scalar-cli/SKILL.md +3 -2
  93. package/template.md +76 -2
  94. package/chunks/chunk-YTJ67DWS.js +0 -32
@@ -1,17 +1,19 @@
1
1
  import { createRequire as $$cR } from "node:module"; const require = $$cR(import.meta.url);
2
2
  import {
3
- findConfig,
3
+ findConfig
4
+ } from "./chunk-S3LY7RKP.js";
5
+ import {
4
6
  parseConfig
5
- } from "./chunk-H6LOSAC7.js";
7
+ } from "./chunk-M34HMQMV.js";
6
8
  import {
7
9
  output
8
10
  } from "./chunk-T5HJUAWB.js";
9
11
  import {
10
12
  ConfigVersion
11
- } from "./chunk-QLKBXVUV.js";
13
+ } from "./chunk-RGJPENX7.js";
12
14
  import {
13
15
  external_exports
14
- } from "./chunk-KYCM5SL3.js";
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-CAD672DX.js";
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-KYCM5SL3.js";
12
+ } from "./chunk-JBMHCTZD.js";
13
13
 
14
14
  // ../../packages/entities/dist/rule/default-data.js
15
15
  var scalarRuleset = `extends: spectral:oas
@@ -6,38 +6,38 @@ import {
6
6
  managedSchema,
7
7
  sdkVersionRecordSchema,
8
8
  workspaceSchema
9
- } from "./chunk-XGKFAPON.js";
9
+ } from "./chunk-MRZ5A7LB.js";
10
10
  import {
11
11
  userSchema
12
- } from "./chunk-YFUHTGGP.js";
12
+ } from "./chunk-CYIGEQOJ.js";
13
13
  import {
14
14
  SdkLanguage,
15
15
  sdkBuildStatusSchema,
16
16
  sdkSchema
17
- } from "./chunk-4TSZVWGM.js";
17
+ } from "./chunk-4BMOCIYO.js";
18
18
  import {
19
19
  FEEDBACK_PATH_MAX_LENGTH,
20
20
  helpfulReasons,
21
21
  siteDeploySchema,
22
22
  unhelpfulReasons
23
- } from "./chunk-I4FQOD5L.js";
23
+ } from "./chunk-DVA4NCCY.js";
24
24
  import {
25
25
  managedDocSchema,
26
26
  ruleSchema
27
- } from "./chunk-QDT27U6O.js";
27
+ } from "./chunk-KSY2GH53.js";
28
28
  import {
29
29
  docInstanceOriginSchema,
30
30
  docInstanceSchema,
31
31
  docVersionRecordSchema
32
- } from "./chunk-CAD672DX.js";
32
+ } from "./chunk-Y3CXAIAG.js";
33
33
  import {
34
34
  teamSchema
35
- } from "./chunk-36AMOACU.js";
35
+ } from "./chunk-GXKNYM54.js";
36
36
  import {
37
37
  activeDeploymentSchema,
38
38
  publishRecordSchema,
39
39
  themeSchema
40
- } from "./chunk-QLKBXVUV.js";
40
+ } from "./chunk-RGJPENX7.js";
41
41
  import {
42
42
  brandedUid,
43
43
  emailSchema,
@@ -49,7 +49,7 @@ import {
49
49
  timestampSchema,
50
50
  unixTimestamp,
51
51
  zod_default
52
- } from "./chunk-KYCM5SL3.js";
52
+ } from "./chunk-JBMHCTZD.js";
53
53
 
54
54
  // ../../packages/entities/dist/admins/index.js
55
55
  var scalarAdminSchema = entitySchema.extend({
@@ -375,24 +375,14 @@ var edgeCacheDocInstanceSchema = docInstanceSchema.pick({
375
375
  };
376
376
  });
377
377
  var edgeCacheRuleSchema = ruleSchema.pick(registryRequiredFields).extend(entityExtension).transform(generateRegistryPath);
378
- var edgeCacheSdkServedLanguageSchema = external_exports.object({
379
- language: external_exports.enum(SdkLanguage),
380
- packageName: external_exports.string().nullable(),
381
- publishes: external_exports.boolean(),
382
- productionRepo: external_exports.string().nullable()
383
- });
384
378
  var edgeCacheSdkSchema = sdkSchema.pick({
385
379
  ...registryRequiredFields,
386
380
  targets: true,
387
381
  current: true,
388
382
  currentVersion: true,
389
383
  latestVersion: true,
390
- versionPointersAt: true,
391
- config: true
392
- }).extend({
393
- ...entityExtension,
394
- served: edgeCacheSdkServedLanguageSchema.array().min(1).nullable()
395
- }).transform(({ config: _config, ...sdk }) => generateRegistryPath(sdk));
384
+ versionPointersAt: true
385
+ }).extend(entityExtension).transform(generateRegistryPath);
396
386
  function sdkUidFromVersionPath(path) {
397
387
  return path.split("/").at(3) ?? "";
398
388
  }
@@ -687,8 +677,6 @@ var edgeCacheCollections = {
687
677
  currentVersion: 1,
688
678
  latestVersion: 1,
689
679
  versionPointersAt: 1,
690
- config: 1,
691
- served: 1,
692
680
  _path: 1,
693
681
  _registryPath: 1
694
682
  }
@@ -4,7 +4,7 @@ import {
4
4
  } from "./chunk-FDW4LC45.js";
5
5
  import {
6
6
  registryUrl
7
- } from "./chunk-2KMYC3ZI.js";
7
+ } from "./chunk-FMPJSW6A.js";
8
8
 
9
9
  // src/domains/registry/helpers/fetch.ts
10
10
  async function fetchFromRegistry(path, accessToken) {
@@ -10,7 +10,7 @@ var DownloadIsolateCommand = () => {
10
10
  const cmd = new Command("download-isolate");
11
11
  cmd.description("Download the docs preview server");
12
12
  cmd.action(async () => {
13
- const { downloadIsolate } = await import("./action-PS4F4QWI.js");
13
+ const { downloadIsolate } = await import("./action-LLMFEBHH.js");
14
14
  await downloadIsolate();
15
15
  });
16
16
  return cmd;
@@ -1,7 +1,7 @@
1
1
  import { createRequire as $$cR } from "node:module"; const require = $$cR(import.meta.url);
2
2
  import {
3
3
  ConfigVersion
4
- } from "./chunk-QLKBXVUV.js";
4
+ } from "./chunk-RGJPENX7.js";
5
5
  import {
6
6
  deduplicateSlugInSet,
7
7
  emailSchema,
@@ -13,7 +13,7 @@ import {
13
13
  slugSchema,
14
14
  slugify,
15
15
  zod_default
16
- } from "./chunk-KYCM5SL3.js";
16
+ } from "./chunk-JBMHCTZD.js";
17
17
  import {
18
18
  __commonJS,
19
19
  __reExport,
@@ -3397,7 +3397,7 @@ var require_parse = __commonJS({
3397
3397
  var require_gray_matter = __commonJS({
3398
3398
  "../../node_modules/.pnpm/gray-matter@4.0.3/node_modules/gray-matter/index.js"(exports2, module2) {
3399
3399
  "use strict";
3400
- var fs2 = __require("fs");
3400
+ var fs = __require("fs");
3401
3401
  var sections = require_section_matter();
3402
3402
  var defaults = require_defaults();
3403
3403
  var stringify = require_stringify();
@@ -3481,7 +3481,7 @@ var require_gray_matter = __commonJS({
3481
3481
  return stringify(file, data, options2);
3482
3482
  };
3483
3483
  matter2.read = function(filepath, options2) {
3484
- const str2 = fs2.readFileSync(filepath, "utf8");
3484
+ const str2 = fs.readFileSync(filepath, "utf8");
3485
3485
  const file = matter2(str2, options2);
3486
3486
  file.path = filepath;
3487
3487
  return file;
@@ -3764,8 +3764,8 @@ var require_utils2 = __commonJS({
3764
3764
  }
3765
3765
  return output;
3766
3766
  };
3767
- exports2.basename = (path2, { windows } = {}) => {
3768
- const segs = path2.split(windows ? /[\\/]/ : "/");
3767
+ exports2.basename = (path, { windows } = {}) => {
3768
+ const segs = path.split(windows ? /[\\/]/ : "/");
3769
3769
  const last = segs[segs.length - 1];
3770
3770
  if (last === "") {
3771
3771
  return segs[segs.length - 2];
@@ -23374,27 +23374,27 @@ var require_util2 = __commonJS({
23374
23374
  };
23375
23375
  }
23376
23376
  var normalize2 = lruMemoize(function normalize3(aPath) {
23377
- var path2 = aPath;
23377
+ var path = aPath;
23378
23378
  var url = urlParse(aPath);
23379
23379
  if (url) {
23380
23380
  if (!url.path) {
23381
23381
  return aPath;
23382
23382
  }
23383
- path2 = url.path;
23383
+ path = url.path;
23384
23384
  }
23385
- var isAbsolute = exports2.isAbsolute(path2);
23385
+ var isAbsolute = exports2.isAbsolute(path);
23386
23386
  var parts = [];
23387
23387
  var start = 0;
23388
23388
  var i = 0;
23389
23389
  while (true) {
23390
23390
  start = i;
23391
- i = path2.indexOf("/", start);
23391
+ i = path.indexOf("/", start);
23392
23392
  if (i === -1) {
23393
- parts.push(path2.slice(start));
23393
+ parts.push(path.slice(start));
23394
23394
  break;
23395
23395
  } else {
23396
- parts.push(path2.slice(start, i));
23397
- while (i < path2.length && path2[i] === "/") {
23396
+ parts.push(path.slice(start, i));
23397
+ while (i < path.length && path[i] === "/") {
23398
23398
  i++;
23399
23399
  }
23400
23400
  }
@@ -23415,15 +23415,15 @@ var require_util2 = __commonJS({
23415
23415
  }
23416
23416
  }
23417
23417
  }
23418
- path2 = parts.join("/");
23419
- if (path2 === "") {
23420
- path2 = isAbsolute ? "/" : ".";
23418
+ path = parts.join("/");
23419
+ if (path === "") {
23420
+ path = isAbsolute ? "/" : ".";
23421
23421
  }
23422
23422
  if (url) {
23423
- url.path = path2;
23423
+ url.path = path;
23424
23424
  return urlGenerate(url);
23425
23425
  }
23426
- return path2;
23426
+ return path;
23427
23427
  });
23428
23428
  exports2.normalize = normalize2;
23429
23429
  function join2(aRoot, aPath) {
@@ -27096,14 +27096,14 @@ For props declared with defineModel(), assign the returned ref to a variable and
27096
27096
  var whitespaceRE = /\s+[.[]\s*|\s*[.[]\s+/g;
27097
27097
  var getExpSource = (exp) => exp.type === 4 ? exp.content : exp.loc.source;
27098
27098
  var isMemberExpressionBrowser = (exp) => {
27099
- const path2 = getExpSource(exp).trim().replace(whitespaceRE, (s) => s.trim());
27099
+ const path = getExpSource(exp).trim().replace(whitespaceRE, (s) => s.trim());
27100
27100
  let state = 0;
27101
27101
  let stateStack = [];
27102
27102
  let currentOpenBracketCount = 0;
27103
27103
  let currentOpenParensCount = 0;
27104
27104
  let currentStringType = null;
27105
- for (let i = 0; i < path2.length; i++) {
27106
- const char = path2.charAt(i);
27105
+ for (let i = 0; i < path.length; i++) {
27106
+ const char = path.charAt(i);
27107
27107
  switch (state) {
27108
27108
  case 0:
27109
27109
  if (char === "[") {
@@ -27139,7 +27139,7 @@ For props declared with defineModel(), assign the returned ref to a variable and
27139
27139
  } else if (char === `(`) {
27140
27140
  currentOpenParensCount++;
27141
27141
  } else if (char === `)`) {
27142
- if (i === path2.length - 1) {
27142
+ if (i === path.length - 1) {
27143
27143
  return false;
27144
27144
  }
27145
27145
  if (!--currentOpenParensCount) {
@@ -33906,14 +33906,14 @@ For props declared with defineModel(), assign the returned ref to a variable and
33906
33906
  var whitespaceRE = /\s+[.[]\s*|\s*[.[]\s+/g;
33907
33907
  var getExpSource = (exp) => exp.type === 4 ? exp.content : exp.loc.source;
33908
33908
  var isMemberExpressionBrowser = (exp) => {
33909
- const path2 = getExpSource(exp).trim().replace(whitespaceRE, (s) => s.trim());
33909
+ const path = getExpSource(exp).trim().replace(whitespaceRE, (s) => s.trim());
33910
33910
  let state = 0;
33911
33911
  let stateStack = [];
33912
33912
  let currentOpenBracketCount = 0;
33913
33913
  let currentOpenParensCount = 0;
33914
33914
  let currentStringType = null;
33915
- for (let i = 0; i < path2.length; i++) {
33916
- const char = path2.charAt(i);
33915
+ for (let i = 0; i < path.length; i++) {
33916
+ const char = path.charAt(i);
33917
33917
  switch (state) {
33918
33918
  case 0:
33919
33919
  if (char === "[") {
@@ -33949,7 +33949,7 @@ For props declared with defineModel(), assign the returned ref to a variable and
33949
33949
  } else if (char === `(`) {
33950
33950
  currentOpenParensCount++;
33951
33951
  } else if (char === `)`) {
33952
- if (i === path2.length - 1) {
33952
+ if (i === path.length - 1) {
33953
33953
  return false;
33954
33954
  }
33955
33955
  if (!--currentOpenParensCount) {
@@ -44933,8 +44933,8 @@ var require_runtime_core_cjs_prod = __commonJS({
44933
44933
  reset();
44934
44934
  return res;
44935
44935
  }
44936
- function createPathGetter(ctx, path2) {
44937
- const segments = path2.split(".");
44936
+ function createPathGetter(ctx, path) {
44937
+ const segments = path.split(".");
44938
44938
  return () => {
44939
44939
  let cur = ctx;
44940
44940
  for (let i = 0; i < segments.length && cur; i++) {
@@ -52466,8 +52466,8 @@ var require_runtime_core_cjs = __commonJS({
52466
52466
  reset();
52467
52467
  return res;
52468
52468
  }
52469
- function createPathGetter(ctx, path2) {
52470
- const segments = path2.split(".");
52469
+ function createPathGetter(ctx, path) {
52470
+ const segments = path.split(".");
52471
52471
  return () => {
52472
52472
  let cur = ctx;
52473
52473
  for (let i = 0; i < segments.length && cur; i++) {
@@ -64660,7 +64660,7 @@ async function expandFolderGuides(config, folderGetter) {
64660
64660
  var SKIPPED_DIRECTORIES = /* @__PURE__ */ new Set([".git", "node_modules"]);
64661
64661
  function folderGuideFilter(guide, root) {
64662
64662
  const matchesGlobs = globFilterFactory(guide);
64663
- return (path2) => isValidPageFile(path2) && matchesGlobs(join(root, path2));
64663
+ return (path) => isValidPageFile(path) && matchesGlobs(join(root, path));
64664
64664
  }
64665
64665
  async function listFolder({ folderPath, folderGetter, isIncluded }) {
64666
64666
  const items = [];
@@ -65545,11 +65545,11 @@ function resolveHeader({ references, guides, header }) {
65545
65545
 
65546
65546
  // ../../packages/scalar-config/dist/transformers/helpers.js
65547
65547
  import { parse as parse2 } from "node:path";
65548
- function createUrlSlug({ name, path: path2 }) {
65548
+ function createUrlSlug({ name, path }) {
65549
65549
  if (name)
65550
65550
  return `/${slugify(name)}`;
65551
- if (path2)
65552
- return `/${slugify(parse2(path2).name)}`;
65551
+ if (path)
65552
+ return `/${slugify(parse2(path).name)}`;
65553
65553
  return `/${slugify(randomSlug({ words: 2 }))}`;
65554
65554
  }
65555
65555
 
@@ -65724,8 +65724,8 @@ var legacyTo2_0_0 = (config, { isPathTaken = () => false } = {}) => {
65724
65724
  });
65725
65725
  }
65726
65726
  }
65727
- const cssStyles = config.siteConfig.cssFiles?.map((path2) => ({
65728
- path: path2
65727
+ const cssStyles = config.siteConfig.cssFiles?.map((path) => ({
65728
+ path
65729
65729
  })) ?? [];
65730
65730
  const legacyThemePath = freePath("theme.css");
65731
65731
  const legacyFooterCssPath = freePath("footer.css");
@@ -66213,58 +66213,14 @@ var DEFAULT_ASSETS_DIR = "assets";
66213
66213
  var vue_exports = {};
66214
66214
  __reExport(vue_exports, __toESM(require_vue(), 1));
66215
66215
 
66216
- // src/domains/project/helpers.ts
66217
- import fs from "node:fs";
66218
- import path from "node:path";
66219
- var DEFAULT_MARKDOWN_FILE_NAME = "docs-quickstart.md";
66220
- var DEFAULT_OPENAPI_FILE_NAME = "docs-openapi.json";
66221
- var DEFAULT_CONFIG_EXTENSION = ".json";
66222
- var CONFIG_FILE_DEFAULT = CONFIG_FILE_NAME + DEFAULT_CONFIG_EXTENSION;
66223
- function findConfig(searchPath) {
66224
- if (!searchPath) {
66225
- return searchInDirectory(process.cwd());
66226
- }
66227
- const searchPathResolved = path.resolve(searchPath);
66228
- const stat = fs.statSync(searchPathResolved, { throwIfNoEntry: false });
66229
- if (!stat) {
66230
- return null;
66231
- }
66232
- if (stat.isDirectory()) {
66233
- return searchInDirectory(searchPathResolved);
66234
- }
66235
- if (stat.isFile()) {
66236
- return searchPathResolved;
66237
- }
66238
- return null;
66239
- }
66240
- function getCurrentFolderName() {
66241
- return path.basename(process.cwd());
66242
- }
66243
- function searchInDirectory(directory) {
66244
- try {
66245
- const entries = fs.readdirSync(directory);
66246
- for (const entry of entries) {
66247
- if (isConfigFileName(entry)) {
66248
- return path.join(directory, entry);
66249
- }
66250
- }
66251
- return null;
66252
- } catch (_) {
66253
- return null;
66254
- }
66255
- }
66256
-
66257
66216
  export {
66217
+ CONFIG_FILE_NAME,
66218
+ isConfigFileName,
66258
66219
  expandFolderGuides,
66259
66220
  scalarConfigSchema,
66260
66221
  parseConfig,
66261
66222
  DEFAULT_ASSETS_DIR,
66262
- legacyTo2_0_0,
66263
- DEFAULT_MARKDOWN_FILE_NAME,
66264
- DEFAULT_OPENAPI_FILE_NAME,
66265
- CONFIG_FILE_DEFAULT,
66266
- findConfig,
66267
- getCurrentFolderName
66223
+ legacyTo2_0_0
66268
66224
  };
66269
66225
  /*! Bundled license information:
66270
66226
 
@@ -2,15 +2,15 @@ import { createRequire as $$cR } from "node:module"; const require = $$cR(import
2
2
  import {
3
3
  SDK_PRODUCTION_ENVIRONMENT,
4
4
  sdkLanguagePointersSchema
5
- } from "./chunk-4TSZVWGM.js";
5
+ } from "./chunk-4BMOCIYO.js";
6
6
  import {
7
7
  cloudflareHostnameStateSchema
8
- } from "./chunk-I4FQOD5L.js";
8
+ } from "./chunk-DVA4NCCY.js";
9
9
  import {
10
10
  RegistryResourceTypes,
11
11
  baseRegistrySchema,
12
12
  contentShaSchema
13
- } from "./chunk-CAD672DX.js";
13
+ } from "./chunk-Y3CXAIAG.js";
14
14
  import {
15
15
  brandedUid,
16
16
  docVersionSchema,
@@ -27,7 +27,7 @@ import {
27
27
  slugSchema,
28
28
  timestampSchema,
29
29
  unixTimestamp
30
- } from "./chunk-KYCM5SL3.js";
30
+ } from "./chunk-JBMHCTZD.js";
31
31
 
32
32
  // ../../packages/entities/dist/access-group/schema.js
33
33
  var emailDomainRegex = /^([A-Za-z0-9]+(-[A-Za-z0-9]+)*\.)+[A-Za-z]{2,}$/i;
@@ -0,0 +1,24 @@
1
+ import { createRequire as $$cR } from "node:module"; const require = $$cR(import.meta.url);
2
+ import {
3
+ MCP_BUILD_PATTERN
4
+ } from "./chunk-O4DJIA6Y.js";
5
+
6
+ // ../../packages/urls/dist/mcp/address.js
7
+ var DEFAULT_ENVIRONMENT = "production";
8
+ var BUILD_SEGMENT = new RegExp(`^${MCP_BUILD_PATTERN}$`);
9
+ function buildSuffix(build) {
10
+ return build ? `+${build}` : "";
11
+ }
12
+ function withEnvironmentSuffix(version, environment) {
13
+ return environment === DEFAULT_ENVIRONMENT ? version : `${version}-${environment}`;
14
+ }
15
+ function buildMcpAddressUrl({ baseUrl, namespace, slug, environment = DEFAULT_ENVIRONMENT, version, build }) {
16
+ const base = `${baseUrl.replace(/\/+$/, "")}/@${namespace}/${slug}`;
17
+ if (version && version !== "latest")
18
+ return `${base}@${withEnvironmentSuffix(version, environment)}${buildSuffix(build)}`;
19
+ return environment === DEFAULT_ENVIRONMENT ? base : `${base}?env=${encodeURIComponent(environment)}`;
20
+ }
21
+
22
+ export {
23
+ buildMcpAddressUrl
24
+ };
@@ -1,7 +1,7 @@
1
1
  import { createRequire as $$cR } from "node:module"; const require = $$cR(import.meta.url);
2
2
  import {
3
3
  MCP_DOWNLOAD_PATH_PREFIX
4
- } from "./chunk-CAD672DX.js";
4
+ } from "./chunk-Y3CXAIAG.js";
5
5
 
6
6
  // ../../packages/entities/dist/agent/mcp-edge-routes.js
7
7
  var MCP_BUILD_PATTERN = "[0-9a-f]{7,64}";
@@ -93,23 +93,6 @@ var UNSUPPORTED_MEDIA_TYPE_BODY = JSON.stringify({
93
93
  id: null
94
94
  });
95
95
 
96
- // ../../packages/urls/dist/mcp/address.js
97
- var DEFAULT_ENVIRONMENT = "production";
98
- var BUILD_SEGMENT = new RegExp(`^${MCP_BUILD_PATTERN}$`);
99
- function buildSuffix(build) {
100
- return build ? `+${build}` : "";
101
- }
102
- function withEnvironmentSuffix(version, environment) {
103
- return environment === DEFAULT_ENVIRONMENT ? version : `${version}-${environment}`;
104
- }
105
- function buildMcpAddressUrl({ baseUrl, namespace, slug, environment = DEFAULT_ENVIRONMENT, version, build }) {
106
- const base = `${baseUrl.replace(/\/+$/, "")}/@${namespace}/${slug}`;
107
- if (version && version !== "latest")
108
- return `${base}@${withEnvironmentSuffix(version, environment)}${buildSuffix(build)}`;
109
- return environment === DEFAULT_ENVIRONMENT ? base : `${base}?env=${encodeURIComponent(environment)}`;
110
- }
111
-
112
96
  export {
113
- MCP_BUILD_PATTERN,
114
- buildMcpAddressUrl
97
+ MCP_BUILD_PATTERN
115
98
  };