@scalar/cli 1.8.6 → 1.8.8

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 (4) hide show
  1. package/README.md +16 -0
  2. package/docs.html +96 -63
  3. package/index.js +583 -457
  4. package/package.json +17 -16
package/index.js CHANGED
@@ -37,9 +37,9 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
37
37
  mod
38
38
  ));
39
39
 
40
- // ../../node_modules/.pnpm/yaml@2.6.1/node_modules/yaml/dist/nodes/identity.js
40
+ // ../../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/nodes/identity.js
41
41
  var require_identity = __commonJS({
42
- "../../node_modules/.pnpm/yaml@2.6.1/node_modules/yaml/dist/nodes/identity.js"(exports2) {
42
+ "../../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/nodes/identity.js"(exports2) {
43
43
  "use strict";
44
44
  var ALIAS = Symbol.for("yaml.alias");
45
45
  var DOC = Symbol.for("yaml.document");
@@ -94,9 +94,9 @@ var require_identity = __commonJS({
94
94
  }
95
95
  });
96
96
 
97
- // ../../node_modules/.pnpm/yaml@2.6.1/node_modules/yaml/dist/visit.js
97
+ // ../../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/visit.js
98
98
  var require_visit = __commonJS({
99
- "../../node_modules/.pnpm/yaml@2.6.1/node_modules/yaml/dist/visit.js"(exports2) {
99
+ "../../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/visit.js"(exports2) {
100
100
  "use strict";
101
101
  var identity = require_identity();
102
102
  var BREAK = Symbol("break visit");
@@ -252,9 +252,9 @@ var require_visit = __commonJS({
252
252
  }
253
253
  });
254
254
 
255
- // ../../node_modules/.pnpm/yaml@2.6.1/node_modules/yaml/dist/doc/directives.js
255
+ // ../../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/doc/directives.js
256
256
  var require_directives = __commonJS({
257
- "../../node_modules/.pnpm/yaml@2.6.1/node_modules/yaml/dist/doc/directives.js"(exports2) {
257
+ "../../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/doc/directives.js"(exports2) {
258
258
  "use strict";
259
259
  var identity = require_identity();
260
260
  var visit = require_visit();
@@ -423,9 +423,9 @@ var require_directives = __commonJS({
423
423
  }
424
424
  });
425
425
 
426
- // ../../node_modules/.pnpm/yaml@2.6.1/node_modules/yaml/dist/doc/anchors.js
426
+ // ../../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/doc/anchors.js
427
427
  var require_anchors = __commonJS({
428
- "../../node_modules/.pnpm/yaml@2.6.1/node_modules/yaml/dist/doc/anchors.js"(exports2) {
428
+ "../../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/doc/anchors.js"(exports2) {
429
429
  "use strict";
430
430
  var identity = require_identity();
431
431
  var visit = require_visit();
@@ -461,8 +461,7 @@ var require_anchors = __commonJS({
461
461
  return {
462
462
  onAnchor: (source) => {
463
463
  aliasObjects.push(source);
464
- if (!prevAnchors)
465
- prevAnchors = anchorNames(doc);
464
+ prevAnchors ?? (prevAnchors = anchorNames(doc));
466
465
  const anchor = findNewAnchor(prefix, prevAnchors);
467
466
  prevAnchors.add(anchor);
468
467
  return anchor;
@@ -494,9 +493,9 @@ var require_anchors = __commonJS({
494
493
  }
495
494
  });
496
495
 
497
- // ../../node_modules/.pnpm/yaml@2.6.1/node_modules/yaml/dist/doc/applyReviver.js
496
+ // ../../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/doc/applyReviver.js
498
497
  var require_applyReviver = __commonJS({
499
- "../../node_modules/.pnpm/yaml@2.6.1/node_modules/yaml/dist/doc/applyReviver.js"(exports2) {
498
+ "../../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/doc/applyReviver.js"(exports2) {
500
499
  "use strict";
501
500
  function applyReviver(reviver, obj, key, val) {
502
501
  if (val && typeof val === "object") {
@@ -544,9 +543,9 @@ var require_applyReviver = __commonJS({
544
543
  }
545
544
  });
546
545
 
547
- // ../../node_modules/.pnpm/yaml@2.6.1/node_modules/yaml/dist/nodes/toJS.js
546
+ // ../../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/nodes/toJS.js
548
547
  var require_toJS = __commonJS({
549
- "../../node_modules/.pnpm/yaml@2.6.1/node_modules/yaml/dist/nodes/toJS.js"(exports2) {
548
+ "../../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/nodes/toJS.js"(exports2) {
550
549
  "use strict";
551
550
  var identity = require_identity();
552
551
  function toJS(value, arg, ctx) {
@@ -574,9 +573,9 @@ var require_toJS = __commonJS({
574
573
  }
575
574
  });
576
575
 
577
- // ../../node_modules/.pnpm/yaml@2.6.1/node_modules/yaml/dist/nodes/Node.js
576
+ // ../../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/nodes/Node.js
578
577
  var require_Node = __commonJS({
579
- "../../node_modules/.pnpm/yaml@2.6.1/node_modules/yaml/dist/nodes/Node.js"(exports2) {
578
+ "../../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/nodes/Node.js"(exports2) {
580
579
  "use strict";
581
580
  var applyReviver = require_applyReviver();
582
581
  var identity = require_identity();
@@ -615,9 +614,9 @@ var require_Node = __commonJS({
615
614
  }
616
615
  });
617
616
 
618
- // ../../node_modules/.pnpm/yaml@2.6.1/node_modules/yaml/dist/nodes/Alias.js
617
+ // ../../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/nodes/Alias.js
619
618
  var require_Alias = __commonJS({
620
- "../../node_modules/.pnpm/yaml@2.6.1/node_modules/yaml/dist/nodes/Alias.js"(exports2) {
619
+ "../../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/nodes/Alias.js"(exports2) {
621
620
  "use strict";
622
621
  var anchors = require_anchors();
623
622
  var visit = require_visit();
@@ -638,23 +637,35 @@ var require_Alias = __commonJS({
638
637
  * Resolve the value of this alias within `doc`, finding the last
639
638
  * instance of the `source` anchor before this node.
640
639
  */
641
- resolve(doc) {
640
+ resolve(doc, ctx) {
641
+ let nodes;
642
+ if (ctx?.aliasResolveCache) {
643
+ nodes = ctx.aliasResolveCache;
644
+ } else {
645
+ nodes = [];
646
+ visit.visit(doc, {
647
+ Node: (_key, node) => {
648
+ if (identity.isAlias(node) || identity.hasAnchor(node))
649
+ nodes.push(node);
650
+ }
651
+ });
652
+ if (ctx)
653
+ ctx.aliasResolveCache = nodes;
654
+ }
642
655
  let found = void 0;
643
- visit.visit(doc, {
644
- Node: (_key, node) => {
645
- if (node === this)
646
- return visit.visit.BREAK;
647
- if (node.anchor === this.source)
648
- found = node;
649
- }
650
- });
656
+ for (const node of nodes) {
657
+ if (node === this)
658
+ break;
659
+ if (node.anchor === this.source)
660
+ found = node;
661
+ }
651
662
  return found;
652
663
  }
653
664
  toJSON(_arg, ctx) {
654
665
  if (!ctx)
655
666
  return { source: this.source };
656
667
  const { anchors: anchors2, doc, maxAliasCount } = ctx;
657
- const source = this.resolve(doc);
668
+ const source = this.resolve(doc, ctx);
658
669
  if (!source) {
659
670
  const msg = `Unresolved alias (the anchor must be set before the alias): ${this.source}`;
660
671
  throw new ReferenceError(msg);
@@ -664,7 +675,7 @@ var require_Alias = __commonJS({
664
675
  toJS.toJS(source, null, ctx);
665
676
  data = anchors2.get(source);
666
677
  }
667
- if (!data || data.res === void 0) {
678
+ if (data?.res === void 0) {
668
679
  const msg = "This should not happen: Alias anchor was not resolved?";
669
680
  throw new ReferenceError(msg);
670
681
  }
@@ -717,9 +728,9 @@ var require_Alias = __commonJS({
717
728
  }
718
729
  });
719
730
 
720
- // ../../node_modules/.pnpm/yaml@2.6.1/node_modules/yaml/dist/nodes/Scalar.js
731
+ // ../../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/nodes/Scalar.js
721
732
  var require_Scalar = __commonJS({
722
- "../../node_modules/.pnpm/yaml@2.6.1/node_modules/yaml/dist/nodes/Scalar.js"(exports2) {
733
+ "../../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/nodes/Scalar.js"(exports2) {
723
734
  "use strict";
724
735
  var identity = require_identity();
725
736
  var Node = require_Node();
@@ -747,9 +758,9 @@ var require_Scalar = __commonJS({
747
758
  }
748
759
  });
749
760
 
750
- // ../../node_modules/.pnpm/yaml@2.6.1/node_modules/yaml/dist/doc/createNode.js
761
+ // ../../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/doc/createNode.js
751
762
  var require_createNode = __commonJS({
752
- "../../node_modules/.pnpm/yaml@2.6.1/node_modules/yaml/dist/doc/createNode.js"(exports2) {
763
+ "../../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/doc/createNode.js"(exports2) {
753
764
  "use strict";
754
765
  var Alias = require_Alias();
755
766
  var identity = require_identity();
@@ -783,8 +794,7 @@ var require_createNode = __commonJS({
783
794
  if (aliasDuplicateObjects && value && typeof value === "object") {
784
795
  ref = sourceObjects.get(value);
785
796
  if (ref) {
786
- if (!ref.anchor)
787
- ref.anchor = onAnchor(value);
797
+ ref.anchor ?? (ref.anchor = onAnchor(value));
788
798
  return new Alias.Alias(ref.anchor);
789
799
  } else {
790
800
  ref = { anchor: null, node: null };
@@ -823,9 +833,9 @@ var require_createNode = __commonJS({
823
833
  }
824
834
  });
825
835
 
826
- // ../../node_modules/.pnpm/yaml@2.6.1/node_modules/yaml/dist/nodes/Collection.js
836
+ // ../../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/nodes/Collection.js
827
837
  var require_Collection = __commonJS({
828
- "../../node_modules/.pnpm/yaml@2.6.1/node_modules/yaml/dist/nodes/Collection.js"(exports2) {
838
+ "../../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/nodes/Collection.js"(exports2) {
829
839
  "use strict";
830
840
  var createNode = require_createNode();
831
841
  var identity = require_identity();
@@ -966,9 +976,9 @@ var require_Collection = __commonJS({
966
976
  }
967
977
  });
968
978
 
969
- // ../../node_modules/.pnpm/yaml@2.6.1/node_modules/yaml/dist/stringify/stringifyComment.js
979
+ // ../../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/stringify/stringifyComment.js
970
980
  var require_stringifyComment = __commonJS({
971
- "../../node_modules/.pnpm/yaml@2.6.1/node_modules/yaml/dist/stringify/stringifyComment.js"(exports2) {
981
+ "../../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/stringify/stringifyComment.js"(exports2) {
972
982
  "use strict";
973
983
  var stringifyComment = (str2) => str2.replace(/^(?!$)(?: $)?/gm, "#");
974
984
  function indentComment(comment, indent) {
@@ -983,9 +993,9 @@ var require_stringifyComment = __commonJS({
983
993
  }
984
994
  });
985
995
 
986
- // ../../node_modules/.pnpm/yaml@2.6.1/node_modules/yaml/dist/stringify/foldFlowLines.js
996
+ // ../../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/stringify/foldFlowLines.js
987
997
  var require_foldFlowLines = __commonJS({
988
- "../../node_modules/.pnpm/yaml@2.6.1/node_modules/yaml/dist/stringify/foldFlowLines.js"(exports2) {
998
+ "../../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/stringify/foldFlowLines.js"(exports2) {
989
999
  "use strict";
990
1000
  var FOLD_FLOW = "flow";
991
1001
  var FOLD_BLOCK = "block";
@@ -1119,9 +1129,9 @@ ${indent}${text11.slice(fold + 1, end2)}`;
1119
1129
  }
1120
1130
  });
1121
1131
 
1122
- // ../../node_modules/.pnpm/yaml@2.6.1/node_modules/yaml/dist/stringify/stringifyString.js
1132
+ // ../../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/stringify/stringifyString.js
1123
1133
  var require_stringifyString = __commonJS({
1124
- "../../node_modules/.pnpm/yaml@2.6.1/node_modules/yaml/dist/stringify/stringifyString.js"(exports2) {
1134
+ "../../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/stringify/stringifyString.js"(exports2) {
1125
1135
  "use strict";
1126
1136
  var Scalar = require_Scalar();
1127
1137
  var foldFlowLines = require_foldFlowLines();
@@ -1262,7 +1272,7 @@ ${indent}`) + "'";
1262
1272
  }
1263
1273
  function blockString({ comment, type, value }, ctx, onComment, onChompKeep) {
1264
1274
  const { blockQuote, commentString, lineWidth } = ctx.options;
1265
- if (!blockQuote || /\n[\t ]+$/.test(value) || /^\s*$/.test(value)) {
1275
+ if (!blockQuote || /\n[\t ]+$/.test(value)) {
1266
1276
  return quotedString(value, ctx);
1267
1277
  }
1268
1278
  const indent = ctx.indent || (ctx.forceBlockIndent || containsDocumentMarker(value) ? " " : "");
@@ -1341,7 +1351,7 @@ ${indent}${start}${value}${end}`;
1341
1351
  if (implicitKey && value.includes("\n") || inFlow && /[[\]{},]/.test(value)) {
1342
1352
  return quotedString(value, ctx);
1343
1353
  }
1344
- if (!value || /^[\n\t ,[\]{}#&*!|>'"%@`]|^[?-]$|^[?-][ \t]|[\n:][ \t]|[ \t]\n|[\n\t ]#|[\n\t :]$/.test(value)) {
1354
+ if (/^[\n\t ,[\]{}#&*!|>'"%@`]|^[?-]$|^[?-][ \t]|[\n:][ \t]|[ \t]\n|[\n\t ]#|[\n\t :]$/.test(value)) {
1345
1355
  return implicitKey || inFlow || !value.includes("\n") ? quotedString(value, ctx) : blockString(item, ctx, onComment, onChompKeep);
1346
1356
  }
1347
1357
  if (!implicitKey && !inFlow && type !== Scalar.Scalar.PLAIN && value.includes("\n")) {
@@ -1402,9 +1412,9 @@ ${indent}`);
1402
1412
  }
1403
1413
  });
1404
1414
 
1405
- // ../../node_modules/.pnpm/yaml@2.6.1/node_modules/yaml/dist/stringify/stringify.js
1415
+ // ../../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/stringify/stringify.js
1406
1416
  var require_stringify = __commonJS({
1407
- "../../node_modules/.pnpm/yaml@2.6.1/node_modules/yaml/dist/stringify/stringify.js"(exports2) {
1417
+ "../../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/stringify/stringify.js"(exports2) {
1408
1418
  "use strict";
1409
1419
  var anchors = require_anchors();
1410
1420
  var identity = require_identity();
@@ -1427,6 +1437,7 @@ var require_stringify = __commonJS({
1427
1437
  nullStr: "null",
1428
1438
  simpleKeys: false,
1429
1439
  singleQuote: null,
1440
+ trailingComma: false,
1430
1441
  trueStr: "true",
1431
1442
  verifyAliasOrder: true
1432
1443
  }, doc.schema.toStringOptions, options2);
@@ -1473,7 +1484,7 @@ var require_stringify = __commonJS({
1473
1484
  tagObj = tags.find((t) => t.nodeClass && obj instanceof t.nodeClass);
1474
1485
  }
1475
1486
  if (!tagObj) {
1476
- const name2 = obj?.constructor?.name ?? typeof obj;
1487
+ const name2 = obj?.constructor?.name ?? (obj === null ? "null" : typeof obj);
1477
1488
  throw new Error(`Tag not resolved for ${name2} value`);
1478
1489
  }
1479
1490
  return tagObj;
@@ -1487,7 +1498,7 @@ var require_stringify = __commonJS({
1487
1498
  anchors$1.add(anchor);
1488
1499
  props.push(`&${anchor}`);
1489
1500
  }
1490
- const tag = node.tag ? node.tag : tagObj.default ? null : tagObj.tag;
1501
+ const tag = node.tag ?? (tagObj.default ? null : tagObj.tag);
1491
1502
  if (tag)
1492
1503
  props.push(doc.directives.tagString(tag));
1493
1504
  return props.join(" ");
@@ -1510,8 +1521,7 @@ var require_stringify = __commonJS({
1510
1521
  }
1511
1522
  let tagObj = void 0;
1512
1523
  const node = identity.isNode(item) ? item : ctx.doc.createNode(item, { onTagObj: (o) => tagObj = o });
1513
- if (!tagObj)
1514
- tagObj = getTagObject(ctx.doc.schema.tags, node);
1524
+ tagObj ?? (tagObj = getTagObject(ctx.doc.schema.tags, node));
1515
1525
  const props = stringifyProps(node, tagObj, ctx);
1516
1526
  if (props.length > 0)
1517
1527
  ctx.indentAtStart = (ctx.indentAtStart ?? 0) + props.length + 1;
@@ -1526,9 +1536,9 @@ ${ctx.indent}${str2}`;
1526
1536
  }
1527
1537
  });
1528
1538
 
1529
- // ../../node_modules/.pnpm/yaml@2.6.1/node_modules/yaml/dist/stringify/stringifyPair.js
1539
+ // ../../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/stringify/stringifyPair.js
1530
1540
  var require_stringifyPair = __commonJS({
1531
- "../../node_modules/.pnpm/yaml@2.6.1/node_modules/yaml/dist/stringify/stringifyPair.js"(exports2) {
1541
+ "../../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/stringify/stringifyPair.js"(exports2) {
1532
1542
  "use strict";
1533
1543
  var identity = require_identity();
1534
1544
  var Scalar = require_Scalar();
@@ -1616,7 +1626,7 @@ ${indent}:`;
1616
1626
  ${stringifyComment.indentComment(cs, ctx.indent)}`;
1617
1627
  }
1618
1628
  if (valueStr === "" && !ctx.inFlow) {
1619
- if (ws === "\n")
1629
+ if (ws === "\n" && valueComment)
1620
1630
  ws = "\n\n";
1621
1631
  } else {
1622
1632
  ws += `
@@ -1659,18 +1669,19 @@ ${ctx.indent}`;
1659
1669
  }
1660
1670
  });
1661
1671
 
1662
- // ../../node_modules/.pnpm/yaml@2.6.1/node_modules/yaml/dist/log.js
1672
+ // ../../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/log.js
1663
1673
  var require_log = __commonJS({
1664
- "../../node_modules/.pnpm/yaml@2.6.1/node_modules/yaml/dist/log.js"(exports2) {
1674
+ "../../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/log.js"(exports2) {
1665
1675
  "use strict";
1676
+ var node_process = __require("process");
1666
1677
  function debug(logLevel, ...messages) {
1667
1678
  if (logLevel === "debug")
1668
1679
  console.log(...messages);
1669
1680
  }
1670
1681
  function warn2(logLevel, warning) {
1671
1682
  if (logLevel === "debug" || logLevel === "warn") {
1672
- if (typeof process !== "undefined" && process.emitWarning)
1673
- process.emitWarning(warning);
1683
+ if (typeof node_process.emitWarning === "function")
1684
+ node_process.emitWarning(warning);
1674
1685
  else
1675
1686
  console.warn(warning);
1676
1687
  }
@@ -1680,9 +1691,9 @@ var require_log = __commonJS({
1680
1691
  }
1681
1692
  });
1682
1693
 
1683
- // ../../node_modules/.pnpm/yaml@2.6.1/node_modules/yaml/dist/schema/yaml-1.1/merge.js
1694
+ // ../../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/schema/yaml-1.1/merge.js
1684
1695
  var require_merge = __commonJS({
1685
- "../../node_modules/.pnpm/yaml@2.6.1/node_modules/yaml/dist/schema/yaml-1.1/merge.js"(exports2) {
1696
+ "../../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/schema/yaml-1.1/merge.js"(exports2) {
1686
1697
  "use strict";
1687
1698
  var identity = require_identity();
1688
1699
  var Scalar = require_Scalar();
@@ -1737,9 +1748,9 @@ var require_merge = __commonJS({
1737
1748
  }
1738
1749
  });
1739
1750
 
1740
- // ../../node_modules/.pnpm/yaml@2.6.1/node_modules/yaml/dist/nodes/addPairToJSMap.js
1751
+ // ../../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/nodes/addPairToJSMap.js
1741
1752
  var require_addPairToJSMap = __commonJS({
1742
- "../../node_modules/.pnpm/yaml@2.6.1/node_modules/yaml/dist/nodes/addPairToJSMap.js"(exports2) {
1753
+ "../../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/nodes/addPairToJSMap.js"(exports2) {
1743
1754
  "use strict";
1744
1755
  var log = require_log();
1745
1756
  var merge3 = require_merge();
@@ -1801,9 +1812,9 @@ var require_addPairToJSMap = __commonJS({
1801
1812
  }
1802
1813
  });
1803
1814
 
1804
- // ../../node_modules/.pnpm/yaml@2.6.1/node_modules/yaml/dist/nodes/Pair.js
1815
+ // ../../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/nodes/Pair.js
1805
1816
  var require_Pair = __commonJS({
1806
- "../../node_modules/.pnpm/yaml@2.6.1/node_modules/yaml/dist/nodes/Pair.js"(exports2) {
1817
+ "../../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/nodes/Pair.js"(exports2) {
1807
1818
  "use strict";
1808
1819
  var createNode = require_createNode();
1809
1820
  var stringifyPair = require_stringifyPair();
@@ -1841,9 +1852,9 @@ var require_Pair = __commonJS({
1841
1852
  }
1842
1853
  });
1843
1854
 
1844
- // ../../node_modules/.pnpm/yaml@2.6.1/node_modules/yaml/dist/stringify/stringifyCollection.js
1855
+ // ../../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/stringify/stringifyCollection.js
1845
1856
  var require_stringifyCollection = __commonJS({
1846
- "../../node_modules/.pnpm/yaml@2.6.1/node_modules/yaml/dist/stringify/stringifyCollection.js"(exports2) {
1857
+ "../../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/stringify/stringifyCollection.js"(exports2) {
1847
1858
  "use strict";
1848
1859
  var identity = require_identity();
1849
1860
  var stringify = require_stringify();
@@ -1944,12 +1955,19 @@ ${indent}${line}` : "\n";
1944
1955
  if (comment)
1945
1956
  reqNewline = true;
1946
1957
  let str2 = stringify.stringify(item, itemCtx, () => comment = null);
1947
- if (i < items.length - 1)
1958
+ reqNewline || (reqNewline = lines.length > linesAtValue || str2.includes("\n"));
1959
+ if (i < items.length - 1) {
1948
1960
  str2 += ",";
1961
+ } else if (ctx.options.trailingComma) {
1962
+ if (ctx.options.lineWidth > 0) {
1963
+ reqNewline || (reqNewline = lines.reduce((sum, line) => sum + line.length + 2, 2) + (str2.length + 2) > ctx.options.lineWidth);
1964
+ }
1965
+ if (reqNewline) {
1966
+ str2 += ",";
1967
+ }
1968
+ }
1949
1969
  if (comment)
1950
1970
  str2 += stringifyComment.lineComment(str2, itemIndent, commentString(comment));
1951
- if (!reqNewline && (lines.length > linesAtValue || str2.includes("\n")))
1952
- reqNewline = true;
1953
1971
  lines.push(str2);
1954
1972
  linesAtValue = lines.length;
1955
1973
  }
@@ -1985,9 +2003,9 @@ ${indent}${end}`;
1985
2003
  }
1986
2004
  });
1987
2005
 
1988
- // ../../node_modules/.pnpm/yaml@2.6.1/node_modules/yaml/dist/nodes/YAMLMap.js
2006
+ // ../../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/nodes/YAMLMap.js
1989
2007
  var require_YAMLMap = __commonJS({
1990
- "../../node_modules/.pnpm/yaml@2.6.1/node_modules/yaml/dist/nodes/YAMLMap.js"(exports2) {
2008
+ "../../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/nodes/YAMLMap.js"(exports2) {
1991
2009
  "use strict";
1992
2010
  var stringifyCollection = require_stringifyCollection();
1993
2011
  var addPairToJSMap = require_addPairToJSMap();
@@ -2129,9 +2147,9 @@ var require_YAMLMap = __commonJS({
2129
2147
  }
2130
2148
  });
2131
2149
 
2132
- // ../../node_modules/.pnpm/yaml@2.6.1/node_modules/yaml/dist/schema/common/map.js
2150
+ // ../../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/schema/common/map.js
2133
2151
  var require_map = __commonJS({
2134
- "../../node_modules/.pnpm/yaml@2.6.1/node_modules/yaml/dist/schema/common/map.js"(exports2) {
2152
+ "../../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/schema/common/map.js"(exports2) {
2135
2153
  "use strict";
2136
2154
  var identity = require_identity();
2137
2155
  var YAMLMap = require_YAMLMap();
@@ -2151,9 +2169,9 @@ var require_map = __commonJS({
2151
2169
  }
2152
2170
  });
2153
2171
 
2154
- // ../../node_modules/.pnpm/yaml@2.6.1/node_modules/yaml/dist/nodes/YAMLSeq.js
2172
+ // ../../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/nodes/YAMLSeq.js
2155
2173
  var require_YAMLSeq = __commonJS({
2156
- "../../node_modules/.pnpm/yaml@2.6.1/node_modules/yaml/dist/nodes/YAMLSeq.js"(exports2) {
2174
+ "../../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/nodes/YAMLSeq.js"(exports2) {
2157
2175
  "use strict";
2158
2176
  var createNode = require_createNode();
2159
2177
  var stringifyCollection = require_stringifyCollection();
@@ -2267,9 +2285,9 @@ var require_YAMLSeq = __commonJS({
2267
2285
  }
2268
2286
  });
2269
2287
 
2270
- // ../../node_modules/.pnpm/yaml@2.6.1/node_modules/yaml/dist/schema/common/seq.js
2288
+ // ../../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/schema/common/seq.js
2271
2289
  var require_seq = __commonJS({
2272
- "../../node_modules/.pnpm/yaml@2.6.1/node_modules/yaml/dist/schema/common/seq.js"(exports2) {
2290
+ "../../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/schema/common/seq.js"(exports2) {
2273
2291
  "use strict";
2274
2292
  var identity = require_identity();
2275
2293
  var YAMLSeq = require_YAMLSeq();
@@ -2289,9 +2307,9 @@ var require_seq = __commonJS({
2289
2307
  }
2290
2308
  });
2291
2309
 
2292
- // ../../node_modules/.pnpm/yaml@2.6.1/node_modules/yaml/dist/schema/common/string.js
2310
+ // ../../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/schema/common/string.js
2293
2311
  var require_string = __commonJS({
2294
- "../../node_modules/.pnpm/yaml@2.6.1/node_modules/yaml/dist/schema/common/string.js"(exports2) {
2312
+ "../../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/schema/common/string.js"(exports2) {
2295
2313
  "use strict";
2296
2314
  var stringifyString = require_stringifyString();
2297
2315
  var string4 = {
@@ -2308,9 +2326,9 @@ var require_string = __commonJS({
2308
2326
  }
2309
2327
  });
2310
2328
 
2311
- // ../../node_modules/.pnpm/yaml@2.6.1/node_modules/yaml/dist/schema/common/null.js
2329
+ // ../../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/schema/common/null.js
2312
2330
  var require_null = __commonJS({
2313
- "../../node_modules/.pnpm/yaml@2.6.1/node_modules/yaml/dist/schema/common/null.js"(exports2) {
2331
+ "../../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/schema/common/null.js"(exports2) {
2314
2332
  "use strict";
2315
2333
  var Scalar = require_Scalar();
2316
2334
  var nullTag = {
@@ -2326,9 +2344,9 @@ var require_null = __commonJS({
2326
2344
  }
2327
2345
  });
2328
2346
 
2329
- // ../../node_modules/.pnpm/yaml@2.6.1/node_modules/yaml/dist/schema/core/bool.js
2347
+ // ../../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/schema/core/bool.js
2330
2348
  var require_bool = __commonJS({
2331
- "../../node_modules/.pnpm/yaml@2.6.1/node_modules/yaml/dist/schema/core/bool.js"(exports2) {
2349
+ "../../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/schema/core/bool.js"(exports2) {
2332
2350
  "use strict";
2333
2351
  var Scalar = require_Scalar();
2334
2352
  var boolTag = {
@@ -2350,9 +2368,9 @@ var require_bool = __commonJS({
2350
2368
  }
2351
2369
  });
2352
2370
 
2353
- // ../../node_modules/.pnpm/yaml@2.6.1/node_modules/yaml/dist/stringify/stringifyNumber.js
2371
+ // ../../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/stringify/stringifyNumber.js
2354
2372
  var require_stringifyNumber = __commonJS({
2355
- "../../node_modules/.pnpm/yaml@2.6.1/node_modules/yaml/dist/stringify/stringifyNumber.js"(exports2) {
2373
+ "../../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/stringify/stringifyNumber.js"(exports2) {
2356
2374
  "use strict";
2357
2375
  function stringifyNumber({ format, minFractionDigits, tag, value }) {
2358
2376
  if (typeof value === "bigint")
@@ -2360,7 +2378,7 @@ var require_stringifyNumber = __commonJS({
2360
2378
  const num = typeof value === "number" ? value : Number(value);
2361
2379
  if (!isFinite(num))
2362
2380
  return isNaN(num) ? ".nan" : num < 0 ? "-.inf" : ".inf";
2363
- let n3 = JSON.stringify(value);
2381
+ let n3 = Object.is(value, -0) ? "-0" : JSON.stringify(value);
2364
2382
  if (!format && minFractionDigits && (!tag || tag === "tag:yaml.org,2002:float") && /^\d/.test(n3)) {
2365
2383
  let i = n3.indexOf(".");
2366
2384
  if (i < 0) {
@@ -2377,9 +2395,9 @@ var require_stringifyNumber = __commonJS({
2377
2395
  }
2378
2396
  });
2379
2397
 
2380
- // ../../node_modules/.pnpm/yaml@2.6.1/node_modules/yaml/dist/schema/core/float.js
2398
+ // ../../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/schema/core/float.js
2381
2399
  var require_float = __commonJS({
2382
- "../../node_modules/.pnpm/yaml@2.6.1/node_modules/yaml/dist/schema/core/float.js"(exports2) {
2400
+ "../../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/schema/core/float.js"(exports2) {
2383
2401
  "use strict";
2384
2402
  var Scalar = require_Scalar();
2385
2403
  var stringifyNumber = require_stringifyNumber();
@@ -2423,9 +2441,9 @@ var require_float = __commonJS({
2423
2441
  }
2424
2442
  });
2425
2443
 
2426
- // ../../node_modules/.pnpm/yaml@2.6.1/node_modules/yaml/dist/schema/core/int.js
2444
+ // ../../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/schema/core/int.js
2427
2445
  var require_int = __commonJS({
2428
- "../../node_modules/.pnpm/yaml@2.6.1/node_modules/yaml/dist/schema/core/int.js"(exports2) {
2446
+ "../../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/schema/core/int.js"(exports2) {
2429
2447
  "use strict";
2430
2448
  var stringifyNumber = require_stringifyNumber();
2431
2449
  var intIdentify = (value) => typeof value === "bigint" || Number.isInteger(value);
@@ -2468,9 +2486,9 @@ var require_int = __commonJS({
2468
2486
  }
2469
2487
  });
2470
2488
 
2471
- // ../../node_modules/.pnpm/yaml@2.6.1/node_modules/yaml/dist/schema/core/schema.js
2489
+ // ../../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/schema/core/schema.js
2472
2490
  var require_schema = __commonJS({
2473
- "../../node_modules/.pnpm/yaml@2.6.1/node_modules/yaml/dist/schema/core/schema.js"(exports2) {
2491
+ "../../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/schema/core/schema.js"(exports2) {
2474
2492
  "use strict";
2475
2493
  var map2 = require_map();
2476
2494
  var _null4 = require_null();
@@ -2496,9 +2514,9 @@ var require_schema = __commonJS({
2496
2514
  }
2497
2515
  });
2498
2516
 
2499
- // ../../node_modules/.pnpm/yaml@2.6.1/node_modules/yaml/dist/schema/json/schema.js
2517
+ // ../../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/schema/json/schema.js
2500
2518
  var require_schema2 = __commonJS({
2501
- "../../node_modules/.pnpm/yaml@2.6.1/node_modules/yaml/dist/schema/json/schema.js"(exports2) {
2519
+ "../../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/schema/json/schema.js"(exports2) {
2502
2520
  "use strict";
2503
2521
  var Scalar = require_Scalar();
2504
2522
  var map2 = require_map();
@@ -2563,10 +2581,11 @@ var require_schema2 = __commonJS({
2563
2581
  }
2564
2582
  });
2565
2583
 
2566
- // ../../node_modules/.pnpm/yaml@2.6.1/node_modules/yaml/dist/schema/yaml-1.1/binary.js
2584
+ // ../../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/schema/yaml-1.1/binary.js
2567
2585
  var require_binary = __commonJS({
2568
- "../../node_modules/.pnpm/yaml@2.6.1/node_modules/yaml/dist/schema/yaml-1.1/binary.js"(exports2) {
2586
+ "../../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/schema/yaml-1.1/binary.js"(exports2) {
2569
2587
  "use strict";
2588
+ var node_buffer = __require("buffer");
2570
2589
  var Scalar = require_Scalar();
2571
2590
  var stringifyString = require_stringifyString();
2572
2591
  var binary = {
@@ -2583,8 +2602,8 @@ var require_binary = __commonJS({
2583
2602
  * document.querySelector('#photo').src = URL.createObjectURL(blob)
2584
2603
  */
2585
2604
  resolve(src, onError) {
2586
- if (typeof Buffer === "function") {
2587
- return Buffer.from(src, "base64");
2605
+ if (typeof node_buffer.Buffer === "function") {
2606
+ return node_buffer.Buffer.from(src, "base64");
2588
2607
  } else if (typeof atob === "function") {
2589
2608
  const str2 = atob(src.replace(/[\n\r]/g, ""));
2590
2609
  const buffer = new Uint8Array(str2.length);
@@ -2597,10 +2616,12 @@ var require_binary = __commonJS({
2597
2616
  }
2598
2617
  },
2599
2618
  stringify({ comment, type, value }, ctx, onComment, onChompKeep) {
2619
+ if (!value)
2620
+ return "";
2600
2621
  const buf = value;
2601
2622
  let str2;
2602
- if (typeof Buffer === "function") {
2603
- str2 = buf instanceof Buffer ? buf.toString("base64") : Buffer.from(buf.buffer).toString("base64");
2623
+ if (typeof node_buffer.Buffer === "function") {
2624
+ str2 = buf instanceof node_buffer.Buffer ? buf.toString("base64") : node_buffer.Buffer.from(buf.buffer).toString("base64");
2604
2625
  } else if (typeof btoa === "function") {
2605
2626
  let s = "";
2606
2627
  for (let i = 0; i < buf.length; ++i)
@@ -2609,8 +2630,7 @@ var require_binary = __commonJS({
2609
2630
  } else {
2610
2631
  throw new Error("This environment does not support writing binary tags; either Buffer or btoa is required");
2611
2632
  }
2612
- if (!type)
2613
- type = Scalar.Scalar.BLOCK_LITERAL;
2633
+ type ?? (type = Scalar.Scalar.BLOCK_LITERAL);
2614
2634
  if (type !== Scalar.Scalar.QUOTE_DOUBLE) {
2615
2635
  const lineWidth = Math.max(ctx.options.lineWidth - ctx.indent.length, ctx.options.minContentWidth);
2616
2636
  const n3 = Math.ceil(str2.length / lineWidth);
@@ -2627,9 +2647,9 @@ var require_binary = __commonJS({
2627
2647
  }
2628
2648
  });
2629
2649
 
2630
- // ../../node_modules/.pnpm/yaml@2.6.1/node_modules/yaml/dist/schema/yaml-1.1/pairs.js
2650
+ // ../../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/schema/yaml-1.1/pairs.js
2631
2651
  var require_pairs = __commonJS({
2632
- "../../node_modules/.pnpm/yaml@2.6.1/node_modules/yaml/dist/schema/yaml-1.1/pairs.js"(exports2) {
2652
+ "../../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/schema/yaml-1.1/pairs.js"(exports2) {
2633
2653
  "use strict";
2634
2654
  var identity = require_identity();
2635
2655
  var Pair = require_Pair();
@@ -2705,9 +2725,9 @@ ${cn.comment}` : item.comment;
2705
2725
  }
2706
2726
  });
2707
2727
 
2708
- // ../../node_modules/.pnpm/yaml@2.6.1/node_modules/yaml/dist/schema/yaml-1.1/omap.js
2728
+ // ../../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/schema/yaml-1.1/omap.js
2709
2729
  var require_omap = __commonJS({
2710
- "../../node_modules/.pnpm/yaml@2.6.1/node_modules/yaml/dist/schema/yaml-1.1/omap.js"(exports2) {
2730
+ "../../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/schema/yaml-1.1/omap.js"(exports2) {
2711
2731
  "use strict";
2712
2732
  var identity = require_identity();
2713
2733
  var toJS = require_toJS();
@@ -2783,9 +2803,9 @@ var require_omap = __commonJS({
2783
2803
  }
2784
2804
  });
2785
2805
 
2786
- // ../../node_modules/.pnpm/yaml@2.6.1/node_modules/yaml/dist/schema/yaml-1.1/bool.js
2806
+ // ../../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/schema/yaml-1.1/bool.js
2787
2807
  var require_bool2 = __commonJS({
2788
- "../../node_modules/.pnpm/yaml@2.6.1/node_modules/yaml/dist/schema/yaml-1.1/bool.js"(exports2) {
2808
+ "../../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/schema/yaml-1.1/bool.js"(exports2) {
2789
2809
  "use strict";
2790
2810
  var Scalar = require_Scalar();
2791
2811
  function boolStringify({ value, source }, ctx) {
@@ -2815,9 +2835,9 @@ var require_bool2 = __commonJS({
2815
2835
  }
2816
2836
  });
2817
2837
 
2818
- // ../../node_modules/.pnpm/yaml@2.6.1/node_modules/yaml/dist/schema/yaml-1.1/float.js
2838
+ // ../../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/schema/yaml-1.1/float.js
2819
2839
  var require_float2 = __commonJS({
2820
- "../../node_modules/.pnpm/yaml@2.6.1/node_modules/yaml/dist/schema/yaml-1.1/float.js"(exports2) {
2840
+ "../../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/schema/yaml-1.1/float.js"(exports2) {
2821
2841
  "use strict";
2822
2842
  var Scalar = require_Scalar();
2823
2843
  var stringifyNumber = require_stringifyNumber();
@@ -2864,9 +2884,9 @@ var require_float2 = __commonJS({
2864
2884
  }
2865
2885
  });
2866
2886
 
2867
- // ../../node_modules/.pnpm/yaml@2.6.1/node_modules/yaml/dist/schema/yaml-1.1/int.js
2887
+ // ../../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/schema/yaml-1.1/int.js
2868
2888
  var require_int2 = __commonJS({
2869
- "../../node_modules/.pnpm/yaml@2.6.1/node_modules/yaml/dist/schema/yaml-1.1/int.js"(exports2) {
2889
+ "../../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/schema/yaml-1.1/int.js"(exports2) {
2870
2890
  "use strict";
2871
2891
  var stringifyNumber = require_stringifyNumber();
2872
2892
  var intIdentify = (value) => typeof value === "bigint" || Number.isInteger(value);
@@ -2943,9 +2963,9 @@ var require_int2 = __commonJS({
2943
2963
  }
2944
2964
  });
2945
2965
 
2946
- // ../../node_modules/.pnpm/yaml@2.6.1/node_modules/yaml/dist/schema/yaml-1.1/set.js
2966
+ // ../../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/schema/yaml-1.1/set.js
2947
2967
  var require_set = __commonJS({
2948
- "../../node_modules/.pnpm/yaml@2.6.1/node_modules/yaml/dist/schema/yaml-1.1/set.js"(exports2) {
2968
+ "../../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/schema/yaml-1.1/set.js"(exports2) {
2949
2969
  "use strict";
2950
2970
  var identity = require_identity();
2951
2971
  var Pair = require_Pair();
@@ -3032,9 +3052,9 @@ var require_set = __commonJS({
3032
3052
  }
3033
3053
  });
3034
3054
 
3035
- // ../../node_modules/.pnpm/yaml@2.6.1/node_modules/yaml/dist/schema/yaml-1.1/timestamp.js
3055
+ // ../../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/schema/yaml-1.1/timestamp.js
3036
3056
  var require_timestamp = __commonJS({
3037
- "../../node_modules/.pnpm/yaml@2.6.1/node_modules/yaml/dist/schema/yaml-1.1/timestamp.js"(exports2) {
3057
+ "../../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/schema/yaml-1.1/timestamp.js"(exports2) {
3038
3058
  "use strict";
3039
3059
  var stringifyNumber = require_stringifyNumber();
3040
3060
  function parseSexagesimal(str2, asBigInt) {
@@ -3112,7 +3132,7 @@ var require_timestamp = __commonJS({
3112
3132
  }
3113
3133
  return new Date(date5);
3114
3134
  },
3115
- stringify: ({ value }) => value.toISOString().replace(/(T00:00:00)?\.000Z$/, "")
3135
+ stringify: ({ value }) => value?.toISOString().replace(/(T00:00:00)?\.000Z$/, "") ?? ""
3116
3136
  };
3117
3137
  exports2.floatTime = floatTime;
3118
3138
  exports2.intTime = intTime;
@@ -3120,9 +3140,9 @@ var require_timestamp = __commonJS({
3120
3140
  }
3121
3141
  });
3122
3142
 
3123
- // ../../node_modules/.pnpm/yaml@2.6.1/node_modules/yaml/dist/schema/yaml-1.1/schema.js
3143
+ // ../../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/schema/yaml-1.1/schema.js
3124
3144
  var require_schema3 = __commonJS({
3125
- "../../node_modules/.pnpm/yaml@2.6.1/node_modules/yaml/dist/schema/yaml-1.1/schema.js"(exports2) {
3145
+ "../../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/schema/yaml-1.1/schema.js"(exports2) {
3126
3146
  "use strict";
3127
3147
  var map2 = require_map();
3128
3148
  var _null4 = require_null();
@@ -3164,9 +3184,9 @@ var require_schema3 = __commonJS({
3164
3184
  }
3165
3185
  });
3166
3186
 
3167
- // ../../node_modules/.pnpm/yaml@2.6.1/node_modules/yaml/dist/schema/tags.js
3187
+ // ../../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/schema/tags.js
3168
3188
  var require_tags = __commonJS({
3169
- "../../node_modules/.pnpm/yaml@2.6.1/node_modules/yaml/dist/schema/tags.js"(exports2) {
3189
+ "../../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/schema/tags.js"(exports2) {
3170
3190
  "use strict";
3171
3191
  var map2 = require_map();
3172
3192
  var _null4 = require_null();
@@ -3258,9 +3278,9 @@ var require_tags = __commonJS({
3258
3278
  }
3259
3279
  });
3260
3280
 
3261
- // ../../node_modules/.pnpm/yaml@2.6.1/node_modules/yaml/dist/schema/Schema.js
3281
+ // ../../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/schema/Schema.js
3262
3282
  var require_Schema = __commonJS({
3263
- "../../node_modules/.pnpm/yaml@2.6.1/node_modules/yaml/dist/schema/Schema.js"(exports2) {
3283
+ "../../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/schema/Schema.js"(exports2) {
3264
3284
  "use strict";
3265
3285
  var identity = require_identity();
3266
3286
  var map2 = require_map();
@@ -3290,9 +3310,9 @@ var require_Schema = __commonJS({
3290
3310
  }
3291
3311
  });
3292
3312
 
3293
- // ../../node_modules/.pnpm/yaml@2.6.1/node_modules/yaml/dist/stringify/stringifyDocument.js
3313
+ // ../../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/stringify/stringifyDocument.js
3294
3314
  var require_stringifyDocument = __commonJS({
3295
- "../../node_modules/.pnpm/yaml@2.6.1/node_modules/yaml/dist/stringify/stringifyDocument.js"(exports2) {
3315
+ "../../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/stringify/stringifyDocument.js"(exports2) {
3296
3316
  "use strict";
3297
3317
  var identity = require_identity();
3298
3318
  var stringify = require_stringify();
@@ -3370,9 +3390,9 @@ var require_stringifyDocument = __commonJS({
3370
3390
  }
3371
3391
  });
3372
3392
 
3373
- // ../../node_modules/.pnpm/yaml@2.6.1/node_modules/yaml/dist/doc/Document.js
3393
+ // ../../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/doc/Document.js
3374
3394
  var require_Document = __commonJS({
3375
- "../../node_modules/.pnpm/yaml@2.6.1/node_modules/yaml/dist/doc/Document.js"(exports2) {
3395
+ "../../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/doc/Document.js"(exports2) {
3376
3396
  "use strict";
3377
3397
  var Alias = require_Alias();
3378
3398
  var Collection = require_Collection();
@@ -3679,9 +3699,9 @@ var require_Document = __commonJS({
3679
3699
  }
3680
3700
  });
3681
3701
 
3682
- // ../../node_modules/.pnpm/yaml@2.6.1/node_modules/yaml/dist/errors.js
3702
+ // ../../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/errors.js
3683
3703
  var require_errors = __commonJS({
3684
- "../../node_modules/.pnpm/yaml@2.6.1/node_modules/yaml/dist/errors.js"(exports2) {
3704
+ "../../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/errors.js"(exports2) {
3685
3705
  "use strict";
3686
3706
  var YAMLError = class extends Error {
3687
3707
  constructor(name2, pos, code, message) {
@@ -3726,7 +3746,7 @@ var require_errors = __commonJS({
3726
3746
  if (/[^ ]/.test(lineStr)) {
3727
3747
  let count = 1;
3728
3748
  const end = error48.linePos[1];
3729
- if (end && end.line === line && end.col > col) {
3749
+ if (end?.line === line && end.col > col) {
3730
3750
  count = Math.max(1, Math.min(end.col - col, 80 - ci));
3731
3751
  }
3732
3752
  const pointer = " ".repeat(ci) + "^".repeat(count);
@@ -3744,9 +3764,9 @@ ${pointer}
3744
3764
  }
3745
3765
  });
3746
3766
 
3747
- // ../../node_modules/.pnpm/yaml@2.6.1/node_modules/yaml/dist/compose/resolve-props.js
3767
+ // ../../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/compose/resolve-props.js
3748
3768
  var require_resolve_props = __commonJS({
3749
- "../../node_modules/.pnpm/yaml@2.6.1/node_modules/yaml/dist/compose/resolve-props.js"(exports2) {
3769
+ "../../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/compose/resolve-props.js"(exports2) {
3750
3770
  "use strict";
3751
3771
  function resolveProps(tokens, { flow, indicator, next, offset, onError, parentIndent, startOnNewline }) {
3752
3772
  let spaceBefore = false;
@@ -3798,7 +3818,7 @@ var require_resolve_props = __commonJS({
3798
3818
  if (atNewline) {
3799
3819
  if (comment)
3800
3820
  comment += token.source;
3801
- else
3821
+ else if (!found || indicator !== "seq-item-ind")
3802
3822
  spaceBefore = true;
3803
3823
  } else
3804
3824
  commentSep += token.source;
@@ -3814,8 +3834,7 @@ var require_resolve_props = __commonJS({
3814
3834
  if (token.source.endsWith(":"))
3815
3835
  onError(token.offset + token.source.length - 1, "BAD_ALIAS", "Anchor ending in : is ambiguous", true);
3816
3836
  anchor = token;
3817
- if (start === null)
3818
- start = token.offset;
3837
+ start ?? (start = token.offset);
3819
3838
  atNewline = false;
3820
3839
  hasSpace = false;
3821
3840
  reqSpace = true;
@@ -3824,8 +3843,7 @@ var require_resolve_props = __commonJS({
3824
3843
  if (tag)
3825
3844
  onError(token, "MULTIPLE_TAGS", "A node can have at most one tag");
3826
3845
  tag = token;
3827
- if (start === null)
3828
- start = token.offset;
3846
+ start ?? (start = token.offset);
3829
3847
  atNewline = false;
3830
3848
  hasSpace = false;
3831
3849
  reqSpace = true;
@@ -3880,9 +3898,9 @@ var require_resolve_props = __commonJS({
3880
3898
  }
3881
3899
  });
3882
3900
 
3883
- // ../../node_modules/.pnpm/yaml@2.6.1/node_modules/yaml/dist/compose/util-contains-newline.js
3901
+ // ../../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/compose/util-contains-newline.js
3884
3902
  var require_util_contains_newline = __commonJS({
3885
- "../../node_modules/.pnpm/yaml@2.6.1/node_modules/yaml/dist/compose/util-contains-newline.js"(exports2) {
3903
+ "../../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/compose/util-contains-newline.js"(exports2) {
3886
3904
  "use strict";
3887
3905
  function containsNewline(key) {
3888
3906
  if (!key)
@@ -3922,9 +3940,9 @@ var require_util_contains_newline = __commonJS({
3922
3940
  }
3923
3941
  });
3924
3942
 
3925
- // ../../node_modules/.pnpm/yaml@2.6.1/node_modules/yaml/dist/compose/util-flow-indent-check.js
3943
+ // ../../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/compose/util-flow-indent-check.js
3926
3944
  var require_util_flow_indent_check = __commonJS({
3927
- "../../node_modules/.pnpm/yaml@2.6.1/node_modules/yaml/dist/compose/util-flow-indent-check.js"(exports2) {
3945
+ "../../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/compose/util-flow-indent-check.js"(exports2) {
3928
3946
  "use strict";
3929
3947
  var utilContainsNewline = require_util_contains_newline();
3930
3948
  function flowIndentCheck(indent, fc, onError) {
@@ -3940,9 +3958,9 @@ var require_util_flow_indent_check = __commonJS({
3940
3958
  }
3941
3959
  });
3942
3960
 
3943
- // ../../node_modules/.pnpm/yaml@2.6.1/node_modules/yaml/dist/compose/util-map-includes.js
3961
+ // ../../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/compose/util-map-includes.js
3944
3962
  var require_util_map_includes = __commonJS({
3945
- "../../node_modules/.pnpm/yaml@2.6.1/node_modules/yaml/dist/compose/util-map-includes.js"(exports2) {
3963
+ "../../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/compose/util-map-includes.js"(exports2) {
3946
3964
  "use strict";
3947
3965
  var identity = require_identity();
3948
3966
  function mapIncludes(ctx, items, search) {
@@ -3956,9 +3974,9 @@ var require_util_map_includes = __commonJS({
3956
3974
  }
3957
3975
  });
3958
3976
 
3959
- // ../../node_modules/.pnpm/yaml@2.6.1/node_modules/yaml/dist/compose/resolve-block-map.js
3977
+ // ../../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/compose/resolve-block-map.js
3960
3978
  var require_resolve_block_map = __commonJS({
3961
- "../../node_modules/.pnpm/yaml@2.6.1/node_modules/yaml/dist/compose/resolve-block-map.js"(exports2) {
3979
+ "../../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/compose/resolve-block-map.js"(exports2) {
3962
3980
  "use strict";
3963
3981
  var Pair = require_Pair();
3964
3982
  var YAMLMap = require_YAMLMap();
@@ -4064,9 +4082,9 @@ var require_resolve_block_map = __commonJS({
4064
4082
  }
4065
4083
  });
4066
4084
 
4067
- // ../../node_modules/.pnpm/yaml@2.6.1/node_modules/yaml/dist/compose/resolve-block-seq.js
4085
+ // ../../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/compose/resolve-block-seq.js
4068
4086
  var require_resolve_block_seq = __commonJS({
4069
- "../../node_modules/.pnpm/yaml@2.6.1/node_modules/yaml/dist/compose/resolve-block-seq.js"(exports2) {
4087
+ "../../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/compose/resolve-block-seq.js"(exports2) {
4070
4088
  "use strict";
4071
4089
  var YAMLSeq = require_YAMLSeq();
4072
4090
  var resolveProps = require_resolve_props();
@@ -4091,7 +4109,7 @@ var require_resolve_block_seq = __commonJS({
4091
4109
  });
4092
4110
  if (!props.found) {
4093
4111
  if (props.anchor || props.tag || value) {
4094
- if (value && value.type === "block-seq")
4112
+ if (value?.type === "block-seq")
4095
4113
  onError(props.end, "BAD_INDENT", "All sequence items must start at the same column");
4096
4114
  else
4097
4115
  onError(offset, "MISSING_CHAR", "Sequence item without - indicator");
@@ -4115,9 +4133,9 @@ var require_resolve_block_seq = __commonJS({
4115
4133
  }
4116
4134
  });
4117
4135
 
4118
- // ../../node_modules/.pnpm/yaml@2.6.1/node_modules/yaml/dist/compose/resolve-end.js
4136
+ // ../../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/compose/resolve-end.js
4119
4137
  var require_resolve_end = __commonJS({
4120
- "../../node_modules/.pnpm/yaml@2.6.1/node_modules/yaml/dist/compose/resolve-end.js"(exports2) {
4138
+ "../../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/compose/resolve-end.js"(exports2) {
4121
4139
  "use strict";
4122
4140
  function resolveEnd(end, offset, reqSpace, onError) {
4123
4141
  let comment = "";
@@ -4158,9 +4176,9 @@ var require_resolve_end = __commonJS({
4158
4176
  }
4159
4177
  });
4160
4178
 
4161
- // ../../node_modules/.pnpm/yaml@2.6.1/node_modules/yaml/dist/compose/resolve-flow-collection.js
4179
+ // ../../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/compose/resolve-flow-collection.js
4162
4180
  var require_resolve_flow_collection = __commonJS({
4163
- "../../node_modules/.pnpm/yaml@2.6.1/node_modules/yaml/dist/compose/resolve-flow-collection.js"(exports2) {
4181
+ "../../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/compose/resolve-flow-collection.js"(exports2) {
4164
4182
  "use strict";
4165
4183
  var identity = require_identity();
4166
4184
  var Pair = require_Pair();
@@ -4288,7 +4306,7 @@ var require_resolve_flow_collection = __commonJS({
4288
4306
  onError(valueProps.found, "KEY_OVER_1024_CHARS", "The : indicator must be at most 1024 chars after the start of an implicit flow sequence key");
4289
4307
  }
4290
4308
  } else if (value) {
4291
- if ("source" in value && value.source && value.source[0] === ":")
4309
+ if ("source" in value && value.source?.[0] === ":")
4292
4310
  onError(value, "MISSING_CHAR", `Missing space after : in ${fcName}`);
4293
4311
  else
4294
4312
  onError(valueProps.start, "MISSING_CHAR", `Missing , or : between ${fcName} items`);
@@ -4325,7 +4343,7 @@ var require_resolve_flow_collection = __commonJS({
4325
4343
  const expectedEnd = isMap ? "}" : "]";
4326
4344
  const [ce, ...ee] = fc.end;
4327
4345
  let cePos = offset;
4328
- if (ce && ce.source === expectedEnd)
4346
+ if (ce?.source === expectedEnd)
4329
4347
  cePos = ce.offset + ce.source.length;
4330
4348
  else {
4331
4349
  const name2 = fcName[0].toUpperCase() + fcName.substring(1);
@@ -4352,9 +4370,9 @@ var require_resolve_flow_collection = __commonJS({
4352
4370
  }
4353
4371
  });
4354
4372
 
4355
- // ../../node_modules/.pnpm/yaml@2.6.1/node_modules/yaml/dist/compose/compose-collection.js
4373
+ // ../../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/compose/compose-collection.js
4356
4374
  var require_compose_collection = __commonJS({
4357
- "../../node_modules/.pnpm/yaml@2.6.1/node_modules/yaml/dist/compose/compose-collection.js"(exports2) {
4375
+ "../../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/compose/compose-collection.js"(exports2) {
4358
4376
  "use strict";
4359
4377
  var identity = require_identity();
4360
4378
  var Scalar = require_Scalar();
@@ -4392,12 +4410,12 @@ var require_compose_collection = __commonJS({
4392
4410
  let tag = ctx.schema.tags.find((t) => t.tag === tagName && t.collection === expType);
4393
4411
  if (!tag) {
4394
4412
  const kt = ctx.schema.knownTags[tagName];
4395
- if (kt && kt.collection === expType) {
4413
+ if (kt?.collection === expType) {
4396
4414
  ctx.schema.tags.push(Object.assign({}, kt, { default: false }));
4397
4415
  tag = kt;
4398
4416
  } else {
4399
- if (kt?.collection) {
4400
- onError(tagToken, "BAD_COLLECTION_TYPE", `${kt.tag} used for ${expType} collection, but expects ${kt.collection}`, true);
4417
+ if (kt) {
4418
+ onError(tagToken, "BAD_COLLECTION_TYPE", `${kt.tag} used for ${expType} collection, but expects ${kt.collection ?? "scalar"}`, true);
4401
4419
  } else {
4402
4420
  onError(tagToken, "TAG_RESOLVE_FAILED", `Unresolved tag: ${tagName}`, true);
4403
4421
  }
@@ -4417,9 +4435,9 @@ var require_compose_collection = __commonJS({
4417
4435
  }
4418
4436
  });
4419
4437
 
4420
- // ../../node_modules/.pnpm/yaml@2.6.1/node_modules/yaml/dist/compose/resolve-block-scalar.js
4438
+ // ../../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/compose/resolve-block-scalar.js
4421
4439
  var require_resolve_block_scalar = __commonJS({
4422
- "../../node_modules/.pnpm/yaml@2.6.1/node_modules/yaml/dist/compose/resolve-block-scalar.js"(exports2) {
4440
+ "../../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/compose/resolve-block-scalar.js"(exports2) {
4423
4441
  "use strict";
4424
4442
  var Scalar = require_Scalar();
4425
4443
  function resolveBlockScalar(ctx, scalar, onError) {
@@ -4600,9 +4618,9 @@ var require_resolve_block_scalar = __commonJS({
4600
4618
  }
4601
4619
  });
4602
4620
 
4603
- // ../../node_modules/.pnpm/yaml@2.6.1/node_modules/yaml/dist/compose/resolve-flow-scalar.js
4621
+ // ../../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/compose/resolve-flow-scalar.js
4604
4622
  var require_resolve_flow_scalar = __commonJS({
4605
- "../../node_modules/.pnpm/yaml@2.6.1/node_modules/yaml/dist/compose/resolve-flow-scalar.js"(exports2) {
4623
+ "../../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/compose/resolve-flow-scalar.js"(exports2) {
4606
4624
  "use strict";
4607
4625
  var Scalar = require_Scalar();
4608
4626
  var resolveEnd = require_resolve_end();
@@ -4819,9 +4837,9 @@ var require_resolve_flow_scalar = __commonJS({
4819
4837
  }
4820
4838
  });
4821
4839
 
4822
- // ../../node_modules/.pnpm/yaml@2.6.1/node_modules/yaml/dist/compose/compose-scalar.js
4840
+ // ../../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/compose/compose-scalar.js
4823
4841
  var require_compose_scalar = __commonJS({
4824
- "../../node_modules/.pnpm/yaml@2.6.1/node_modules/yaml/dist/compose/compose-scalar.js"(exports2) {
4842
+ "../../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/compose/compose-scalar.js"(exports2) {
4825
4843
  "use strict";
4826
4844
  var identity = require_identity();
4827
4845
  var Scalar = require_Scalar();
@@ -4900,14 +4918,13 @@ var require_compose_scalar = __commonJS({
4900
4918
  }
4901
4919
  });
4902
4920
 
4903
- // ../../node_modules/.pnpm/yaml@2.6.1/node_modules/yaml/dist/compose/util-empty-scalar-position.js
4921
+ // ../../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/compose/util-empty-scalar-position.js
4904
4922
  var require_util_empty_scalar_position = __commonJS({
4905
- "../../node_modules/.pnpm/yaml@2.6.1/node_modules/yaml/dist/compose/util-empty-scalar-position.js"(exports2) {
4923
+ "../../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/compose/util-empty-scalar-position.js"(exports2) {
4906
4924
  "use strict";
4907
4925
  function emptyScalarPosition(offset, before, pos) {
4908
4926
  if (before) {
4909
- if (pos === null)
4910
- pos = before.length;
4927
+ pos ?? (pos = before.length);
4911
4928
  for (let i = pos - 1; i >= 0; --i) {
4912
4929
  let st = before[i];
4913
4930
  switch (st.type) {
@@ -4931,9 +4948,9 @@ var require_util_empty_scalar_position = __commonJS({
4931
4948
  }
4932
4949
  });
4933
4950
 
4934
- // ../../node_modules/.pnpm/yaml@2.6.1/node_modules/yaml/dist/compose/compose-node.js
4951
+ // ../../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/compose/compose-node.js
4935
4952
  var require_compose_node = __commonJS({
4936
- "../../node_modules/.pnpm/yaml@2.6.1/node_modules/yaml/dist/compose/compose-node.js"(exports2) {
4953
+ "../../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/compose/compose-node.js"(exports2) {
4937
4954
  "use strict";
4938
4955
  var Alias = require_Alias();
4939
4956
  var identity = require_identity();
@@ -4964,17 +4981,22 @@ var require_compose_node = __commonJS({
4964
4981
  case "block-map":
4965
4982
  case "block-seq":
4966
4983
  case "flow-collection":
4967
- node = composeCollection.composeCollection(CN, ctx, token, props, onError);
4968
- if (anchor)
4969
- node.anchor = anchor.source.substring(1);
4984
+ try {
4985
+ node = composeCollection.composeCollection(CN, ctx, token, props, onError);
4986
+ if (anchor)
4987
+ node.anchor = anchor.source.substring(1);
4988
+ } catch (error48) {
4989
+ const message = error48 instanceof Error ? error48.message : String(error48);
4990
+ onError(token, "RESOURCE_EXHAUSTION", message);
4991
+ }
4970
4992
  break;
4971
4993
  default: {
4972
4994
  const message = token.type === "error" ? token.message : `Unsupported token (type: ${token.type})`;
4973
4995
  onError(token, "UNEXPECTED_TOKEN", message);
4974
- node = composeEmptyNode(ctx, token.offset, void 0, null, props, onError);
4975
4996
  isSrcToken = false;
4976
4997
  }
4977
4998
  }
4999
+ node ?? (node = composeEmptyNode(ctx, token.offset, void 0, null, props, onError));
4978
5000
  if (anchor && node.anchor === "")
4979
5001
  onError(anchor, "BAD_ALIAS", "Anchor cannot be an empty string");
4980
5002
  if (atKey && ctx.options.stringKeys && (!identity.isScalar(node) || typeof node.value !== "string" || node.tag && node.tag !== "tag:yaml.org,2002:str")) {
@@ -5032,9 +5054,9 @@ var require_compose_node = __commonJS({
5032
5054
  }
5033
5055
  });
5034
5056
 
5035
- // ../../node_modules/.pnpm/yaml@2.6.1/node_modules/yaml/dist/compose/compose-doc.js
5057
+ // ../../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/compose/compose-doc.js
5036
5058
  var require_compose_doc = __commonJS({
5037
- "../../node_modules/.pnpm/yaml@2.6.1/node_modules/yaml/dist/compose/compose-doc.js"(exports2) {
5059
+ "../../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/compose/compose-doc.js"(exports2) {
5038
5060
  "use strict";
5039
5061
  var Document2 = require_Document();
5040
5062
  var composeNode = require_compose_node();
@@ -5075,10 +5097,11 @@ var require_compose_doc = __commonJS({
5075
5097
  }
5076
5098
  });
5077
5099
 
5078
- // ../../node_modules/.pnpm/yaml@2.6.1/node_modules/yaml/dist/compose/composer.js
5100
+ // ../../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/compose/composer.js
5079
5101
  var require_composer = __commonJS({
5080
- "../../node_modules/.pnpm/yaml@2.6.1/node_modules/yaml/dist/compose/composer.js"(exports2) {
5102
+ "../../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/compose/composer.js"(exports2) {
5081
5103
  "use strict";
5104
+ var node_process = __require("process");
5082
5105
  var directives = require_directives();
5083
5106
  var Document2 = require_Document();
5084
5107
  var errors = require_errors();
@@ -5194,7 +5217,7 @@ ${cb}` : comment;
5194
5217
  }
5195
5218
  /** Advance the composer by one CST token. */
5196
5219
  *next(token) {
5197
- if (process.env.LOG_STREAM)
5220
+ if (node_process.env.LOG_STREAM)
5198
5221
  console.dir(token, { depth: null });
5199
5222
  switch (token.type) {
5200
5223
  case "directive":
@@ -5280,9 +5303,9 @@ ${end.comment}` : end.comment;
5280
5303
  }
5281
5304
  });
5282
5305
 
5283
- // ../../node_modules/.pnpm/yaml@2.6.1/node_modules/yaml/dist/parse/cst-scalar.js
5306
+ // ../../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/parse/cst-scalar.js
5284
5307
  var require_cst_scalar = __commonJS({
5285
- "../../node_modules/.pnpm/yaml@2.6.1/node_modules/yaml/dist/parse/cst-scalar.js"(exports2) {
5308
+ "../../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/parse/cst-scalar.js"(exports2) {
5286
5309
  "use strict";
5287
5310
  var resolveBlockScalar = require_resolve_block_scalar();
5288
5311
  var resolveFlowScalar = require_resolve_flow_scalar();
@@ -5465,9 +5488,9 @@ var require_cst_scalar = __commonJS({
5465
5488
  }
5466
5489
  });
5467
5490
 
5468
- // ../../node_modules/.pnpm/yaml@2.6.1/node_modules/yaml/dist/parse/cst-stringify.js
5491
+ // ../../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/parse/cst-stringify.js
5469
5492
  var require_cst_stringify = __commonJS({
5470
- "../../node_modules/.pnpm/yaml@2.6.1/node_modules/yaml/dist/parse/cst-stringify.js"(exports2) {
5493
+ "../../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/parse/cst-stringify.js"(exports2) {
5471
5494
  "use strict";
5472
5495
  var stringify = (cst) => "type" in cst ? stringifyToken(cst) : stringifyItem(cst);
5473
5496
  function stringifyToken(token) {
@@ -5526,9 +5549,9 @@ var require_cst_stringify = __commonJS({
5526
5549
  }
5527
5550
  });
5528
5551
 
5529
- // ../../node_modules/.pnpm/yaml@2.6.1/node_modules/yaml/dist/parse/cst-visit.js
5552
+ // ../../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/parse/cst-visit.js
5530
5553
  var require_cst_visit = __commonJS({
5531
- "../../node_modules/.pnpm/yaml@2.6.1/node_modules/yaml/dist/parse/cst-visit.js"(exports2) {
5554
+ "../../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/parse/cst-visit.js"(exports2) {
5532
5555
  "use strict";
5533
5556
  var BREAK = Symbol("break visit");
5534
5557
  var SKIP = Symbol("skip children");
@@ -5588,9 +5611,9 @@ var require_cst_visit = __commonJS({
5588
5611
  }
5589
5612
  });
5590
5613
 
5591
- // ../../node_modules/.pnpm/yaml@2.6.1/node_modules/yaml/dist/parse/cst.js
5614
+ // ../../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/parse/cst.js
5592
5615
  var require_cst = __commonJS({
5593
- "../../node_modules/.pnpm/yaml@2.6.1/node_modules/yaml/dist/parse/cst.js"(exports2) {
5616
+ "../../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/parse/cst.js"(exports2) {
5594
5617
  "use strict";
5595
5618
  var cstScalar = require_cst_scalar();
5596
5619
  var cstStringify = require_cst_stringify();
@@ -5690,9 +5713,9 @@ var require_cst = __commonJS({
5690
5713
  }
5691
5714
  });
5692
5715
 
5693
- // ../../node_modules/.pnpm/yaml@2.6.1/node_modules/yaml/dist/parse/lexer.js
5716
+ // ../../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/parse/lexer.js
5694
5717
  var require_lexer = __commonJS({
5695
- "../../node_modules/.pnpm/yaml@2.6.1/node_modules/yaml/dist/parse/lexer.js"(exports2) {
5718
+ "../../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/parse/lexer.js"(exports2) {
5696
5719
  "use strict";
5697
5720
  var cst = require_cst();
5698
5721
  function isEmpty(ch) {
@@ -6269,9 +6292,9 @@ var require_lexer = __commonJS({
6269
6292
  }
6270
6293
  });
6271
6294
 
6272
- // ../../node_modules/.pnpm/yaml@2.6.1/node_modules/yaml/dist/parse/line-counter.js
6295
+ // ../../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/parse/line-counter.js
6273
6296
  var require_line_counter = __commonJS({
6274
- "../../node_modules/.pnpm/yaml@2.6.1/node_modules/yaml/dist/parse/line-counter.js"(exports2) {
6297
+ "../../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/parse/line-counter.js"(exports2) {
6275
6298
  "use strict";
6276
6299
  var LineCounter = class {
6277
6300
  constructor() {
@@ -6300,10 +6323,11 @@ var require_line_counter = __commonJS({
6300
6323
  }
6301
6324
  });
6302
6325
 
6303
- // ../../node_modules/.pnpm/yaml@2.6.1/node_modules/yaml/dist/parse/parser.js
6326
+ // ../../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/parse/parser.js
6304
6327
  var require_parser = __commonJS({
6305
- "../../node_modules/.pnpm/yaml@2.6.1/node_modules/yaml/dist/parse/parser.js"(exports2) {
6328
+ "../../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/parse/parser.js"(exports2) {
6306
6329
  "use strict";
6330
+ var node_process = __require("process");
6307
6331
  var cst = require_cst();
6308
6332
  var lexer = require_lexer();
6309
6333
  function includesToken(list, type) {
@@ -6427,7 +6451,7 @@ var require_parser = __commonJS({
6427
6451
  */
6428
6452
  *next(source) {
6429
6453
  this.source = source;
6430
- if (process.env.LOG_TOKENS)
6454
+ if (node_process.env.LOG_TOKENS)
6431
6455
  console.log("|", cst.prettyToken(source));
6432
6456
  if (this.atScalar) {
6433
6457
  this.atScalar = false;
@@ -6489,7 +6513,7 @@ var require_parser = __commonJS({
6489
6513
  }
6490
6514
  *step() {
6491
6515
  const top = this.peek(1);
6492
- if (this.type === "doc-end" && (!top || top.type !== "doc-end")) {
6516
+ if (this.type === "doc-end" && top?.type !== "doc-end") {
6493
6517
  while (this.stack.length > 0)
6494
6518
  yield* this.pop();
6495
6519
  this.stack.push({
@@ -6866,14 +6890,14 @@ var require_parser = __commonJS({
6866
6890
  case "scalar":
6867
6891
  case "single-quoted-scalar":
6868
6892
  case "double-quoted-scalar": {
6869
- const fs19 = this.flowScalar(this.type);
6893
+ const fs20 = this.flowScalar(this.type);
6870
6894
  if (atNextItem || it.value) {
6871
- map2.items.push({ start, key: fs19, sep: [] });
6895
+ map2.items.push({ start, key: fs20, sep: [] });
6872
6896
  this.onKeyLine = true;
6873
6897
  } else if (it.sep) {
6874
- this.stack.push(fs19);
6898
+ this.stack.push(fs20);
6875
6899
  } else {
6876
- Object.assign(it, { key: fs19, sep: [] });
6900
+ Object.assign(it, { key: fs20, sep: [] });
6877
6901
  this.onKeyLine = true;
6878
6902
  }
6879
6903
  return;
@@ -6881,7 +6905,17 @@ var require_parser = __commonJS({
6881
6905
  default: {
6882
6906
  const bv = this.startBlockValue(map2);
6883
6907
  if (bv) {
6884
- if (atMapIndent && bv.type !== "block-seq") {
6908
+ if (bv.type === "block-seq") {
6909
+ if (!it.explicitKey && it.sep && !includesToken(it.sep, "newline")) {
6910
+ yield* this.pop({
6911
+ type: "error",
6912
+ offset: this.offset,
6913
+ message: "Unexpected block-seq-ind on same line with key",
6914
+ source: this.source
6915
+ });
6916
+ return;
6917
+ }
6918
+ } else if (atMapIndent) {
6885
6919
  map2.items.push({ start });
6886
6920
  }
6887
6921
  this.stack.push(bv);
@@ -6957,7 +6991,7 @@ var require_parser = __commonJS({
6957
6991
  do {
6958
6992
  yield* this.pop();
6959
6993
  top = this.peek(1);
6960
- } while (top && top.type === "flow-collection");
6994
+ } while (top?.type === "flow-collection");
6961
6995
  } else if (fc.end.length === 0) {
6962
6996
  switch (this.type) {
6963
6997
  case "comma":
@@ -6991,13 +7025,13 @@ var require_parser = __commonJS({
6991
7025
  case "scalar":
6992
7026
  case "single-quoted-scalar":
6993
7027
  case "double-quoted-scalar": {
6994
- const fs19 = this.flowScalar(this.type);
7028
+ const fs20 = this.flowScalar(this.type);
6995
7029
  if (!it || it.value)
6996
- fc.items.push({ start: [], key: fs19, sep: [] });
7030
+ fc.items.push({ start: [], key: fs20, sep: [] });
6997
7031
  else if (it.sep)
6998
- this.stack.push(fs19);
7032
+ this.stack.push(fs20);
6999
7033
  else
7000
- Object.assign(it, { key: fs19, sep: [] });
7034
+ Object.assign(it, { key: fs20, sep: [] });
7001
7035
  return;
7002
7036
  }
7003
7037
  case "flow-map-end":
@@ -7156,9 +7190,9 @@ var require_parser = __commonJS({
7156
7190
  }
7157
7191
  });
7158
7192
 
7159
- // ../../node_modules/.pnpm/yaml@2.6.1/node_modules/yaml/dist/public-api.js
7193
+ // ../../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/public-api.js
7160
7194
  var require_public_api = __commonJS({
7161
- "../../node_modules/.pnpm/yaml@2.6.1/node_modules/yaml/dist/public-api.js"(exports2) {
7195
+ "../../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/public-api.js"(exports2) {
7162
7196
  "use strict";
7163
7197
  var composer = require_composer();
7164
7198
  var Document2 = require_Document();
@@ -7253,9 +7287,9 @@ var require_public_api = __commonJS({
7253
7287
  }
7254
7288
  });
7255
7289
 
7256
- // ../../node_modules/.pnpm/yaml@2.6.1/node_modules/yaml/dist/index.js
7290
+ // ../../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/index.js
7257
7291
  var require_dist = __commonJS({
7258
- "../../node_modules/.pnpm/yaml@2.6.1/node_modules/yaml/dist/index.js"(exports2) {
7292
+ "../../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/index.js"(exports2) {
7259
7293
  "use strict";
7260
7294
  var composer = require_composer();
7261
7295
  var Document2 = require_Document();
@@ -8686,9 +8720,9 @@ var require_section_matter = __commonJS({
8686
8720
  }
8687
8721
  });
8688
8722
 
8689
- // ../../node_modules/.pnpm/js-yaml@3.14.1/node_modules/js-yaml/lib/js-yaml/common.js
8723
+ // ../../node_modules/.pnpm/js-yaml@3.14.2/node_modules/js-yaml/lib/js-yaml/common.js
8690
8724
  var require_common = __commonJS({
8691
- "../../node_modules/.pnpm/js-yaml@3.14.1/node_modules/js-yaml/lib/js-yaml/common.js"(exports2, module2) {
8725
+ "../../node_modules/.pnpm/js-yaml@3.14.2/node_modules/js-yaml/lib/js-yaml/common.js"(exports2, module2) {
8692
8726
  "use strict";
8693
8727
  function isNothing(subject) {
8694
8728
  return typeof subject === "undefined" || subject === null;
@@ -8731,9 +8765,9 @@ var require_common = __commonJS({
8731
8765
  }
8732
8766
  });
8733
8767
 
8734
- // ../../node_modules/.pnpm/js-yaml@3.14.1/node_modules/js-yaml/lib/js-yaml/exception.js
8768
+ // ../../node_modules/.pnpm/js-yaml@3.14.2/node_modules/js-yaml/lib/js-yaml/exception.js
8735
8769
  var require_exception = __commonJS({
8736
- "../../node_modules/.pnpm/js-yaml@3.14.1/node_modules/js-yaml/lib/js-yaml/exception.js"(exports2, module2) {
8770
+ "../../node_modules/.pnpm/js-yaml@3.14.2/node_modules/js-yaml/lib/js-yaml/exception.js"(exports2, module2) {
8737
8771
  "use strict";
8738
8772
  function YAMLException(reason, mark) {
8739
8773
  Error.call(this);
@@ -8761,9 +8795,9 @@ var require_exception = __commonJS({
8761
8795
  }
8762
8796
  });
8763
8797
 
8764
- // ../../node_modules/.pnpm/js-yaml@3.14.1/node_modules/js-yaml/lib/js-yaml/mark.js
8798
+ // ../../node_modules/.pnpm/js-yaml@3.14.2/node_modules/js-yaml/lib/js-yaml/mark.js
8765
8799
  var require_mark = __commonJS({
8766
- "../../node_modules/.pnpm/js-yaml@3.14.1/node_modules/js-yaml/lib/js-yaml/mark.js"(exports2, module2) {
8800
+ "../../node_modules/.pnpm/js-yaml@3.14.2/node_modules/js-yaml/lib/js-yaml/mark.js"(exports2, module2) {
8767
8801
  "use strict";
8768
8802
  var common = require_common();
8769
8803
  function Mark(name2, buffer, position, line, column) {
@@ -8819,9 +8853,9 @@ var require_mark = __commonJS({
8819
8853
  }
8820
8854
  });
8821
8855
 
8822
- // ../../node_modules/.pnpm/js-yaml@3.14.1/node_modules/js-yaml/lib/js-yaml/type.js
8856
+ // ../../node_modules/.pnpm/js-yaml@3.14.2/node_modules/js-yaml/lib/js-yaml/type.js
8823
8857
  var require_type = __commonJS({
8824
- "../../node_modules/.pnpm/js-yaml@3.14.1/node_modules/js-yaml/lib/js-yaml/type.js"(exports2, module2) {
8858
+ "../../node_modules/.pnpm/js-yaml@3.14.2/node_modules/js-yaml/lib/js-yaml/type.js"(exports2, module2) {
8825
8859
  "use strict";
8826
8860
  var YAMLException = require_exception();
8827
8861
  var TYPE_CONSTRUCTOR_OPTIONS = [
@@ -8878,9 +8912,9 @@ var require_type = __commonJS({
8878
8912
  }
8879
8913
  });
8880
8914
 
8881
- // ../../node_modules/.pnpm/js-yaml@3.14.1/node_modules/js-yaml/lib/js-yaml/schema.js
8915
+ // ../../node_modules/.pnpm/js-yaml@3.14.2/node_modules/js-yaml/lib/js-yaml/schema.js
8882
8916
  var require_schema4 = __commonJS({
8883
- "../../node_modules/.pnpm/js-yaml@3.14.1/node_modules/js-yaml/lib/js-yaml/schema.js"(exports2, module2) {
8917
+ "../../node_modules/.pnpm/js-yaml@3.14.2/node_modules/js-yaml/lib/js-yaml/schema.js"(exports2, module2) {
8884
8918
  "use strict";
8885
8919
  var common = require_common();
8886
8920
  var YAMLException = require_exception();
@@ -8966,9 +9000,9 @@ var require_schema4 = __commonJS({
8966
9000
  }
8967
9001
  });
8968
9002
 
8969
- // ../../node_modules/.pnpm/js-yaml@3.14.1/node_modules/js-yaml/lib/js-yaml/type/str.js
9003
+ // ../../node_modules/.pnpm/js-yaml@3.14.2/node_modules/js-yaml/lib/js-yaml/type/str.js
8970
9004
  var require_str = __commonJS({
8971
- "../../node_modules/.pnpm/js-yaml@3.14.1/node_modules/js-yaml/lib/js-yaml/type/str.js"(exports2, module2) {
9005
+ "../../node_modules/.pnpm/js-yaml@3.14.2/node_modules/js-yaml/lib/js-yaml/type/str.js"(exports2, module2) {
8972
9006
  "use strict";
8973
9007
  var Type = require_type();
8974
9008
  module2.exports = new Type("tag:yaml.org,2002:str", {
@@ -8980,9 +9014,9 @@ var require_str = __commonJS({
8980
9014
  }
8981
9015
  });
8982
9016
 
8983
- // ../../node_modules/.pnpm/js-yaml@3.14.1/node_modules/js-yaml/lib/js-yaml/type/seq.js
9017
+ // ../../node_modules/.pnpm/js-yaml@3.14.2/node_modules/js-yaml/lib/js-yaml/type/seq.js
8984
9018
  var require_seq2 = __commonJS({
8985
- "../../node_modules/.pnpm/js-yaml@3.14.1/node_modules/js-yaml/lib/js-yaml/type/seq.js"(exports2, module2) {
9019
+ "../../node_modules/.pnpm/js-yaml@3.14.2/node_modules/js-yaml/lib/js-yaml/type/seq.js"(exports2, module2) {
8986
9020
  "use strict";
8987
9021
  var Type = require_type();
8988
9022
  module2.exports = new Type("tag:yaml.org,2002:seq", {
@@ -8994,9 +9028,9 @@ var require_seq2 = __commonJS({
8994
9028
  }
8995
9029
  });
8996
9030
 
8997
- // ../../node_modules/.pnpm/js-yaml@3.14.1/node_modules/js-yaml/lib/js-yaml/type/map.js
9031
+ // ../../node_modules/.pnpm/js-yaml@3.14.2/node_modules/js-yaml/lib/js-yaml/type/map.js
8998
9032
  var require_map2 = __commonJS({
8999
- "../../node_modules/.pnpm/js-yaml@3.14.1/node_modules/js-yaml/lib/js-yaml/type/map.js"(exports2, module2) {
9033
+ "../../node_modules/.pnpm/js-yaml@3.14.2/node_modules/js-yaml/lib/js-yaml/type/map.js"(exports2, module2) {
9000
9034
  "use strict";
9001
9035
  var Type = require_type();
9002
9036
  module2.exports = new Type("tag:yaml.org,2002:map", {
@@ -9008,9 +9042,9 @@ var require_map2 = __commonJS({
9008
9042
  }
9009
9043
  });
9010
9044
 
9011
- // ../../node_modules/.pnpm/js-yaml@3.14.1/node_modules/js-yaml/lib/js-yaml/schema/failsafe.js
9045
+ // ../../node_modules/.pnpm/js-yaml@3.14.2/node_modules/js-yaml/lib/js-yaml/schema/failsafe.js
9012
9046
  var require_failsafe = __commonJS({
9013
- "../../node_modules/.pnpm/js-yaml@3.14.1/node_modules/js-yaml/lib/js-yaml/schema/failsafe.js"(exports2, module2) {
9047
+ "../../node_modules/.pnpm/js-yaml@3.14.2/node_modules/js-yaml/lib/js-yaml/schema/failsafe.js"(exports2, module2) {
9014
9048
  "use strict";
9015
9049
  var Schema = require_schema4();
9016
9050
  module2.exports = new Schema({
@@ -9023,9 +9057,9 @@ var require_failsafe = __commonJS({
9023
9057
  }
9024
9058
  });
9025
9059
 
9026
- // ../../node_modules/.pnpm/js-yaml@3.14.1/node_modules/js-yaml/lib/js-yaml/type/null.js
9060
+ // ../../node_modules/.pnpm/js-yaml@3.14.2/node_modules/js-yaml/lib/js-yaml/type/null.js
9027
9061
  var require_null2 = __commonJS({
9028
- "../../node_modules/.pnpm/js-yaml@3.14.1/node_modules/js-yaml/lib/js-yaml/type/null.js"(exports2, module2) {
9062
+ "../../node_modules/.pnpm/js-yaml@3.14.2/node_modules/js-yaml/lib/js-yaml/type/null.js"(exports2, module2) {
9029
9063
  "use strict";
9030
9064
  var Type = require_type();
9031
9065
  function resolveYamlNull(data) {
@@ -9063,9 +9097,9 @@ var require_null2 = __commonJS({
9063
9097
  }
9064
9098
  });
9065
9099
 
9066
- // ../../node_modules/.pnpm/js-yaml@3.14.1/node_modules/js-yaml/lib/js-yaml/type/bool.js
9100
+ // ../../node_modules/.pnpm/js-yaml@3.14.2/node_modules/js-yaml/lib/js-yaml/type/bool.js
9067
9101
  var require_bool3 = __commonJS({
9068
- "../../node_modules/.pnpm/js-yaml@3.14.1/node_modules/js-yaml/lib/js-yaml/type/bool.js"(exports2, module2) {
9102
+ "../../node_modules/.pnpm/js-yaml@3.14.2/node_modules/js-yaml/lib/js-yaml/type/bool.js"(exports2, module2) {
9069
9103
  "use strict";
9070
9104
  var Type = require_type();
9071
9105
  function resolveYamlBoolean(data) {
@@ -9100,9 +9134,9 @@ var require_bool3 = __commonJS({
9100
9134
  }
9101
9135
  });
9102
9136
 
9103
- // ../../node_modules/.pnpm/js-yaml@3.14.1/node_modules/js-yaml/lib/js-yaml/type/int.js
9137
+ // ../../node_modules/.pnpm/js-yaml@3.14.2/node_modules/js-yaml/lib/js-yaml/type/int.js
9104
9138
  var require_int3 = __commonJS({
9105
- "../../node_modules/.pnpm/js-yaml@3.14.1/node_modules/js-yaml/lib/js-yaml/type/int.js"(exports2, module2) {
9139
+ "../../node_modules/.pnpm/js-yaml@3.14.2/node_modules/js-yaml/lib/js-yaml/type/int.js"(exports2, module2) {
9106
9140
  "use strict";
9107
9141
  var common = require_common();
9108
9142
  var Type = require_type();
@@ -9233,9 +9267,9 @@ var require_int3 = __commonJS({
9233
9267
  }
9234
9268
  });
9235
9269
 
9236
- // ../../node_modules/.pnpm/js-yaml@3.14.1/node_modules/js-yaml/lib/js-yaml/type/float.js
9270
+ // ../../node_modules/.pnpm/js-yaml@3.14.2/node_modules/js-yaml/lib/js-yaml/type/float.js
9237
9271
  var require_float3 = __commonJS({
9238
- "../../node_modules/.pnpm/js-yaml@3.14.1/node_modules/js-yaml/lib/js-yaml/type/float.js"(exports2, module2) {
9272
+ "../../node_modules/.pnpm/js-yaml@3.14.2/node_modules/js-yaml/lib/js-yaml/type/float.js"(exports2, module2) {
9239
9273
  "use strict";
9240
9274
  var common = require_common();
9241
9275
  var Type = require_type();
@@ -9328,9 +9362,9 @@ var require_float3 = __commonJS({
9328
9362
  }
9329
9363
  });
9330
9364
 
9331
- // ../../node_modules/.pnpm/js-yaml@3.14.1/node_modules/js-yaml/lib/js-yaml/schema/json.js
9365
+ // ../../node_modules/.pnpm/js-yaml@3.14.2/node_modules/js-yaml/lib/js-yaml/schema/json.js
9332
9366
  var require_json = __commonJS({
9333
- "../../node_modules/.pnpm/js-yaml@3.14.1/node_modules/js-yaml/lib/js-yaml/schema/json.js"(exports2, module2) {
9367
+ "../../node_modules/.pnpm/js-yaml@3.14.2/node_modules/js-yaml/lib/js-yaml/schema/json.js"(exports2, module2) {
9334
9368
  "use strict";
9335
9369
  var Schema = require_schema4();
9336
9370
  module2.exports = new Schema({
@@ -9347,9 +9381,9 @@ var require_json = __commonJS({
9347
9381
  }
9348
9382
  });
9349
9383
 
9350
- // ../../node_modules/.pnpm/js-yaml@3.14.1/node_modules/js-yaml/lib/js-yaml/schema/core.js
9384
+ // ../../node_modules/.pnpm/js-yaml@3.14.2/node_modules/js-yaml/lib/js-yaml/schema/core.js
9351
9385
  var require_core = __commonJS({
9352
- "../../node_modules/.pnpm/js-yaml@3.14.1/node_modules/js-yaml/lib/js-yaml/schema/core.js"(exports2, module2) {
9386
+ "../../node_modules/.pnpm/js-yaml@3.14.2/node_modules/js-yaml/lib/js-yaml/schema/core.js"(exports2, module2) {
9353
9387
  "use strict";
9354
9388
  var Schema = require_schema4();
9355
9389
  module2.exports = new Schema({
@@ -9360,9 +9394,9 @@ var require_core = __commonJS({
9360
9394
  }
9361
9395
  });
9362
9396
 
9363
- // ../../node_modules/.pnpm/js-yaml@3.14.1/node_modules/js-yaml/lib/js-yaml/type/timestamp.js
9397
+ // ../../node_modules/.pnpm/js-yaml@3.14.2/node_modules/js-yaml/lib/js-yaml/type/timestamp.js
9364
9398
  var require_timestamp2 = __commonJS({
9365
- "../../node_modules/.pnpm/js-yaml@3.14.1/node_modules/js-yaml/lib/js-yaml/type/timestamp.js"(exports2, module2) {
9399
+ "../../node_modules/.pnpm/js-yaml@3.14.2/node_modules/js-yaml/lib/js-yaml/type/timestamp.js"(exports2, module2) {
9366
9400
  "use strict";
9367
9401
  var Type = require_type();
9368
9402
  var YAML_DATE_REGEXP = new RegExp(
@@ -9421,9 +9455,9 @@ var require_timestamp2 = __commonJS({
9421
9455
  }
9422
9456
  });
9423
9457
 
9424
- // ../../node_modules/.pnpm/js-yaml@3.14.1/node_modules/js-yaml/lib/js-yaml/type/merge.js
9458
+ // ../../node_modules/.pnpm/js-yaml@3.14.2/node_modules/js-yaml/lib/js-yaml/type/merge.js
9425
9459
  var require_merge2 = __commonJS({
9426
- "../../node_modules/.pnpm/js-yaml@3.14.1/node_modules/js-yaml/lib/js-yaml/type/merge.js"(exports2, module2) {
9460
+ "../../node_modules/.pnpm/js-yaml@3.14.2/node_modules/js-yaml/lib/js-yaml/type/merge.js"(exports2, module2) {
9427
9461
  "use strict";
9428
9462
  var Type = require_type();
9429
9463
  function resolveYamlMerge(data) {
@@ -9436,9 +9470,9 @@ var require_merge2 = __commonJS({
9436
9470
  }
9437
9471
  });
9438
9472
 
9439
- // ../../node_modules/.pnpm/js-yaml@3.14.1/node_modules/js-yaml/lib/js-yaml/type/binary.js
9473
+ // ../../node_modules/.pnpm/js-yaml@3.14.2/node_modules/js-yaml/lib/js-yaml/type/binary.js
9440
9474
  var require_binary2 = __commonJS({
9441
- "../../node_modules/.pnpm/js-yaml@3.14.1/node_modules/js-yaml/lib/js-yaml/type/binary.js"(exports2, module2) {
9475
+ "../../node_modules/.pnpm/js-yaml@3.14.2/node_modules/js-yaml/lib/js-yaml/type/binary.js"(exports2, module2) {
9442
9476
  "use strict";
9443
9477
  var NodeBuffer;
9444
9478
  try {
@@ -9529,9 +9563,9 @@ var require_binary2 = __commonJS({
9529
9563
  }
9530
9564
  });
9531
9565
 
9532
- // ../../node_modules/.pnpm/js-yaml@3.14.1/node_modules/js-yaml/lib/js-yaml/type/omap.js
9566
+ // ../../node_modules/.pnpm/js-yaml@3.14.2/node_modules/js-yaml/lib/js-yaml/type/omap.js
9533
9567
  var require_omap2 = __commonJS({
9534
- "../../node_modules/.pnpm/js-yaml@3.14.1/node_modules/js-yaml/lib/js-yaml/type/omap.js"(exports2, module2) {
9568
+ "../../node_modules/.pnpm/js-yaml@3.14.2/node_modules/js-yaml/lib/js-yaml/type/omap.js"(exports2, module2) {
9535
9569
  "use strict";
9536
9570
  var Type = require_type();
9537
9571
  var _hasOwnProperty = Object.prototype.hasOwnProperty;
@@ -9566,9 +9600,9 @@ var require_omap2 = __commonJS({
9566
9600
  }
9567
9601
  });
9568
9602
 
9569
- // ../../node_modules/.pnpm/js-yaml@3.14.1/node_modules/js-yaml/lib/js-yaml/type/pairs.js
9603
+ // ../../node_modules/.pnpm/js-yaml@3.14.2/node_modules/js-yaml/lib/js-yaml/type/pairs.js
9570
9604
  var require_pairs2 = __commonJS({
9571
- "../../node_modules/.pnpm/js-yaml@3.14.1/node_modules/js-yaml/lib/js-yaml/type/pairs.js"(exports2, module2) {
9605
+ "../../node_modules/.pnpm/js-yaml@3.14.2/node_modules/js-yaml/lib/js-yaml/type/pairs.js"(exports2, module2) {
9572
9606
  "use strict";
9573
9607
  var Type = require_type();
9574
9608
  var _toString = Object.prototype.toString;
@@ -9604,9 +9638,9 @@ var require_pairs2 = __commonJS({
9604
9638
  }
9605
9639
  });
9606
9640
 
9607
- // ../../node_modules/.pnpm/js-yaml@3.14.1/node_modules/js-yaml/lib/js-yaml/type/set.js
9641
+ // ../../node_modules/.pnpm/js-yaml@3.14.2/node_modules/js-yaml/lib/js-yaml/type/set.js
9608
9642
  var require_set2 = __commonJS({
9609
- "../../node_modules/.pnpm/js-yaml@3.14.1/node_modules/js-yaml/lib/js-yaml/type/set.js"(exports2, module2) {
9643
+ "../../node_modules/.pnpm/js-yaml@3.14.2/node_modules/js-yaml/lib/js-yaml/type/set.js"(exports2, module2) {
9610
9644
  "use strict";
9611
9645
  var Type = require_type();
9612
9646
  var _hasOwnProperty = Object.prototype.hasOwnProperty;
@@ -9631,9 +9665,9 @@ var require_set2 = __commonJS({
9631
9665
  }
9632
9666
  });
9633
9667
 
9634
- // ../../node_modules/.pnpm/js-yaml@3.14.1/node_modules/js-yaml/lib/js-yaml/schema/default_safe.js
9668
+ // ../../node_modules/.pnpm/js-yaml@3.14.2/node_modules/js-yaml/lib/js-yaml/schema/default_safe.js
9635
9669
  var require_default_safe = __commonJS({
9636
- "../../node_modules/.pnpm/js-yaml@3.14.1/node_modules/js-yaml/lib/js-yaml/schema/default_safe.js"(exports2, module2) {
9670
+ "../../node_modules/.pnpm/js-yaml@3.14.2/node_modules/js-yaml/lib/js-yaml/schema/default_safe.js"(exports2, module2) {
9637
9671
  "use strict";
9638
9672
  var Schema = require_schema4();
9639
9673
  module2.exports = new Schema({
@@ -9654,9 +9688,9 @@ var require_default_safe = __commonJS({
9654
9688
  }
9655
9689
  });
9656
9690
 
9657
- // ../../node_modules/.pnpm/js-yaml@3.14.1/node_modules/js-yaml/lib/js-yaml/type/js/undefined.js
9691
+ // ../../node_modules/.pnpm/js-yaml@3.14.2/node_modules/js-yaml/lib/js-yaml/type/js/undefined.js
9658
9692
  var require_undefined = __commonJS({
9659
- "../../node_modules/.pnpm/js-yaml@3.14.1/node_modules/js-yaml/lib/js-yaml/type/js/undefined.js"(exports2, module2) {
9693
+ "../../node_modules/.pnpm/js-yaml@3.14.2/node_modules/js-yaml/lib/js-yaml/type/js/undefined.js"(exports2, module2) {
9660
9694
  "use strict";
9661
9695
  var Type = require_type();
9662
9696
  function resolveJavascriptUndefined() {
@@ -9681,9 +9715,9 @@ var require_undefined = __commonJS({
9681
9715
  }
9682
9716
  });
9683
9717
 
9684
- // ../../node_modules/.pnpm/js-yaml@3.14.1/node_modules/js-yaml/lib/js-yaml/type/js/regexp.js
9718
+ // ../../node_modules/.pnpm/js-yaml@3.14.2/node_modules/js-yaml/lib/js-yaml/type/js/regexp.js
9685
9719
  var require_regexp = __commonJS({
9686
- "../../node_modules/.pnpm/js-yaml@3.14.1/node_modules/js-yaml/lib/js-yaml/type/js/regexp.js"(exports2, module2) {
9720
+ "../../node_modules/.pnpm/js-yaml@3.14.2/node_modules/js-yaml/lib/js-yaml/type/js/regexp.js"(exports2, module2) {
9687
9721
  "use strict";
9688
9722
  var Type = require_type();
9689
9723
  function resolveJavascriptRegExp(data) {
@@ -9725,9 +9759,9 @@ var require_regexp = __commonJS({
9725
9759
  }
9726
9760
  });
9727
9761
 
9728
- // ../../node_modules/.pnpm/js-yaml@3.14.1/node_modules/js-yaml/lib/js-yaml/type/js/function.js
9762
+ // ../../node_modules/.pnpm/js-yaml@3.14.2/node_modules/js-yaml/lib/js-yaml/type/js/function.js
9729
9763
  var require_function = __commonJS({
9730
- "../../node_modules/.pnpm/js-yaml@3.14.1/node_modules/js-yaml/lib/js-yaml/type/js/function.js"(exports2, module2) {
9764
+ "../../node_modules/.pnpm/js-yaml@3.14.2/node_modules/js-yaml/lib/js-yaml/type/js/function.js"(exports2, module2) {
9731
9765
  "use strict";
9732
9766
  var esprima;
9733
9767
  try {
@@ -9780,9 +9814,9 @@ var require_function = __commonJS({
9780
9814
  }
9781
9815
  });
9782
9816
 
9783
- // ../../node_modules/.pnpm/js-yaml@3.14.1/node_modules/js-yaml/lib/js-yaml/schema/default_full.js
9817
+ // ../../node_modules/.pnpm/js-yaml@3.14.2/node_modules/js-yaml/lib/js-yaml/schema/default_full.js
9784
9818
  var require_default_full = __commonJS({
9785
- "../../node_modules/.pnpm/js-yaml@3.14.1/node_modules/js-yaml/lib/js-yaml/schema/default_full.js"(exports2, module2) {
9819
+ "../../node_modules/.pnpm/js-yaml@3.14.2/node_modules/js-yaml/lib/js-yaml/schema/default_full.js"(exports2, module2) {
9786
9820
  "use strict";
9787
9821
  var Schema = require_schema4();
9788
9822
  module2.exports = Schema.DEFAULT = new Schema({
@@ -9798,9 +9832,9 @@ var require_default_full = __commonJS({
9798
9832
  }
9799
9833
  });
9800
9834
 
9801
- // ../../node_modules/.pnpm/js-yaml@3.14.1/node_modules/js-yaml/lib/js-yaml/loader.js
9835
+ // ../../node_modules/.pnpm/js-yaml@3.14.2/node_modules/js-yaml/lib/js-yaml/loader.js
9802
9836
  var require_loader = __commonJS({
9803
- "../../node_modules/.pnpm/js-yaml@3.14.1/node_modules/js-yaml/lib/js-yaml/loader.js"(exports2, module2) {
9837
+ "../../node_modules/.pnpm/js-yaml@3.14.2/node_modules/js-yaml/lib/js-yaml/loader.js"(exports2, module2) {
9804
9838
  "use strict";
9805
9839
  var common = require_common();
9806
9840
  var YAMLException = require_exception();
@@ -9876,6 +9910,18 @@ var require_loader = __commonJS({
9876
9910
  (c - 65536 & 1023) + 56320
9877
9911
  );
9878
9912
  }
9913
+ function setProperty(object2, key, value) {
9914
+ if (key === "__proto__") {
9915
+ Object.defineProperty(object2, key, {
9916
+ configurable: true,
9917
+ enumerable: true,
9918
+ writable: true,
9919
+ value
9920
+ });
9921
+ } else {
9922
+ object2[key] = value;
9923
+ }
9924
+ }
9879
9925
  var simpleEscapeCheck = new Array(256);
9880
9926
  var simpleEscapeMap = new Array(256);
9881
9927
  for (i = 0; i < 256; i++) {
@@ -9983,7 +10029,7 @@ var require_loader = __commonJS({
9983
10029
  for (index = 0, quantity = sourceKeys.length; index < quantity; index += 1) {
9984
10030
  key = sourceKeys[index];
9985
10031
  if (!_hasOwnProperty.call(destination, key)) {
9986
- destination[key] = source[key];
10032
+ setProperty(destination, key, source[key]);
9987
10033
  overridableKeys[key] = true;
9988
10034
  }
9989
10035
  }
@@ -10022,7 +10068,7 @@ var require_loader = __commonJS({
10022
10068
  state.position = startPos || state.position;
10023
10069
  throwError(state, "duplicated mapping key");
10024
10070
  }
10025
- _result[keyNode] = valueNode;
10071
+ setProperty(_result, keyNode, valueNode);
10026
10072
  delete overridableKeys[keyNode];
10027
10073
  }
10028
10074
  return _result;
@@ -10905,9 +10951,9 @@ var require_loader = __commonJS({
10905
10951
  }
10906
10952
  });
10907
10953
 
10908
- // ../../node_modules/.pnpm/js-yaml@3.14.1/node_modules/js-yaml/lib/js-yaml/dumper.js
10954
+ // ../../node_modules/.pnpm/js-yaml@3.14.2/node_modules/js-yaml/lib/js-yaml/dumper.js
10909
10955
  var require_dumper = __commonJS({
10910
- "../../node_modules/.pnpm/js-yaml@3.14.1/node_modules/js-yaml/lib/js-yaml/dumper.js"(exports2, module2) {
10956
+ "../../node_modules/.pnpm/js-yaml@3.14.2/node_modules/js-yaml/lib/js-yaml/dumper.js"(exports2, module2) {
10911
10957
  "use strict";
10912
10958
  var common = require_common();
10913
10959
  var YAMLException = require_exception();
@@ -11453,9 +11499,9 @@ var require_dumper = __commonJS({
11453
11499
  }
11454
11500
  });
11455
11501
 
11456
- // ../../node_modules/.pnpm/js-yaml@3.14.1/node_modules/js-yaml/lib/js-yaml.js
11502
+ // ../../node_modules/.pnpm/js-yaml@3.14.2/node_modules/js-yaml/lib/js-yaml.js
11457
11503
  var require_js_yaml = __commonJS({
11458
- "../../node_modules/.pnpm/js-yaml@3.14.1/node_modules/js-yaml/lib/js-yaml.js"(exports2, module2) {
11504
+ "../../node_modules/.pnpm/js-yaml@3.14.2/node_modules/js-yaml/lib/js-yaml.js"(exports2, module2) {
11459
11505
  "use strict";
11460
11506
  var loader = require_loader();
11461
11507
  var dumper = require_dumper();
@@ -11488,9 +11534,9 @@ var require_js_yaml = __commonJS({
11488
11534
  }
11489
11535
  });
11490
11536
 
11491
- // ../../node_modules/.pnpm/js-yaml@3.14.1/node_modules/js-yaml/index.js
11537
+ // ../../node_modules/.pnpm/js-yaml@3.14.2/node_modules/js-yaml/index.js
11492
11538
  var require_js_yaml2 = __commonJS({
11493
- "../../node_modules/.pnpm/js-yaml@3.14.1/node_modules/js-yaml/index.js"(exports2, module2) {
11539
+ "../../node_modules/.pnpm/js-yaml@3.14.2/node_modules/js-yaml/index.js"(exports2, module2) {
11494
11540
  "use strict";
11495
11541
  var yaml5 = require_js_yaml();
11496
11542
  module2.exports = yaml5;
@@ -11776,7 +11822,7 @@ var require_parse2 = __commonJS({
11776
11822
  var require_gray_matter = __commonJS({
11777
11823
  "../../node_modules/.pnpm/gray-matter@4.0.3/node_modules/gray-matter/index.js"(exports2, module2) {
11778
11824
  "use strict";
11779
- var fs19 = __require("fs");
11825
+ var fs20 = __require("fs");
11780
11826
  var sections = require_section_matter();
11781
11827
  var defaults = require_defaults();
11782
11828
  var stringify = require_stringify3();
@@ -11860,7 +11906,7 @@ var require_gray_matter = __commonJS({
11860
11906
  return stringify(file2, data, options2);
11861
11907
  };
11862
11908
  matter2.read = function(filepath, options2) {
11863
- const str2 = fs19.readFileSync(filepath, "utf8");
11909
+ const str2 = fs20.readFileSync(filepath, "utf8");
11864
11910
  const file2 = matter2(str2, options2);
11865
11911
  file2.path = filepath;
11866
11912
  return file2;
@@ -69052,11 +69098,11 @@ Visit https://nodejs.org to download the latest version.`
69052
69098
  }
69053
69099
 
69054
69100
  // src/program.ts
69055
- import { Command as Command47 } from "commander";
69101
+ import { Command as Command48 } from "commander";
69056
69102
 
69057
69103
  // package.json
69058
69104
  var name = "@scalar/cli";
69059
- var version = "1.8.6";
69105
+ var version = "1.8.8";
69060
69106
  var bin = {
69061
69107
  scalar: "./dist/index.js",
69062
69108
  "scalar-cli": "./dist/index.js"
@@ -86807,7 +86853,7 @@ var monthlyUsageSchema = zod_default.object({
86807
86853
  messages: zod_default.number()
86808
86854
  }).meta({ id: "monthly-usage" });
86809
86855
 
86810
- // ../../node_modules/.pnpm/@scalar+helpers@0.4.3/node_modules/@scalar/helpers/dist/http/http-methods.js
86856
+ // ../../node_modules/.pnpm/@scalar+helpers@0.5.1/node_modules/@scalar/helpers/dist/http/http-methods.js
86811
86857
  var HTTP_METHODS = ["delete", "get", "head", "options", "patch", "post", "put", "trace"];
86812
86858
  var httpMethods = Object.freeze(new Set(HTTP_METHODS));
86813
86859
 
@@ -88126,6 +88172,7 @@ var FeatureFlag;
88126
88172
  FeatureFlag2["Workspaces"] = "workspaces";
88127
88173
  FeatureFlag2["Export"] = "export";
88128
88174
  FeatureFlag2["DocsMCP"] = "docsMcp";
88175
+ FeatureFlag2["DisableApiSSR"] = "disableApiSSR";
88129
88176
  })(FeatureFlag || (FeatureFlag = {}));
88130
88177
  var featureSchema = external_exports.boolean().optional().meta({ id: "feature" });
88131
88178
  var featureFlagSchema = external_exports.object({
@@ -88138,7 +88185,8 @@ var featureFlagSchema = external_exports.object({
88138
88185
  [FeatureFlag.Workspaces]: featureSchema,
88139
88186
  [FeatureFlag.MCP]: featureSchema,
88140
88187
  [FeatureFlag.Export]: featureSchema,
88141
- [FeatureFlag.DocsMCP]: featureSchema
88188
+ [FeatureFlag.DocsMCP]: featureSchema,
88189
+ [FeatureFlag.DisableApiSSR]: featureSchema
88142
88190
  }).meta({ id: "feature-flag" });
88143
88191
 
88144
88192
  // ../../packages/entities/dist/team/schema.js
@@ -90640,7 +90688,7 @@ var config2 = {
90640
90688
  }
90641
90689
  },
90642
90690
  cdnUrl: process.env.CDN_URL ?? "https://cdn.scalar.com",
90643
- ssgDocsIsolateVersion: process.env.SSG_DOCS_ISOLATE_VERSION ?? "1.3.5"
90691
+ ssgDocsIsolateVersion: process.env.SSG_DOCS_ISOLATE_VERSION ?? "1.3.7"
90644
90692
  };
90645
90693
 
90646
90694
  // src/domains/auth/login/helpers/personal-token-generate-access.ts
@@ -92423,7 +92471,7 @@ authCommands.forEach((command) => authDomain.addCommand(command()));
92423
92471
  var auth_default = authDomain;
92424
92472
 
92425
92473
  // src/domains/document/index.ts
92426
- import { Command as Command28 } from "commander";
92474
+ import { Command as Command29 } from "commander";
92427
92475
 
92428
92476
  // src/domains/document/join/index.ts
92429
92477
  var import_yaml3 = __toESM(require_dist(), 1);
@@ -92848,14 +92896,65 @@ function MockCommand() {
92848
92896
  return cmd2;
92849
92897
  }
92850
92898
 
92851
- // src/domains/document/serve/index.ts
92852
- import { serve as serve2 } from "@hono/node-server";
92899
+ // src/domains/document/postman/index.ts
92900
+ var import_yaml4 = __toESM(require_dist(), 1);
92901
+ import fs9 from "node:fs";
92853
92902
  import as19 from "ansis";
92854
92903
  import { Command as Command23 } from "commander";
92904
+ import { convert } from "@scalar/postman-to-openapi";
92905
+ function ConvertCommand() {
92906
+ const cmd2 = new Command23("convert");
92907
+ cmd2.description("Convert a Postman collection to an OpenAPI document");
92908
+ cmd2.argument("[file|url]", "Postman collection file path or URL to convert");
92909
+ cmd2.option("-o, --output <file>", "Output file (defaults to stdout)");
92910
+ cmd2.option(
92911
+ "--merge-operations",
92912
+ "Merge operations with shared path+method combinations"
92913
+ );
92914
+ cmd2.action(
92915
+ async (inputArgument, {
92916
+ output: outputPath,
92917
+ mergeOperations
92918
+ }) => {
92919
+ const startTime = performance.now();
92920
+ if (!inputArgument) {
92921
+ return output.error().title("Invalid argument").message("Please provide a Postman collection file path or URL").exit("error");
92922
+ }
92923
+ const collection = await getFileOrUrl(inputArgument);
92924
+ let specification;
92925
+ try {
92926
+ specification = convert(collection, {
92927
+ mergeOperation: !!mergeOperations
92928
+ });
92929
+ } catch {
92930
+ return output.error().title("Failed to convert Postman collection").message("The provided input is not a valid Postman collection").exit("error");
92931
+ }
92932
+ const openApiDocument = outputPath ? isYamlFileName(outputPath) ? import_yaml4.default.stringify(specification) : JSON.stringify(specification, null, 2) : JSON.stringify(specification, null, 2);
92933
+ if (outputPath) {
92934
+ fs9.writeFileSync(outputPath, openApiDocument, "utf8");
92935
+ const endTime = performance.now();
92936
+ output.info().line(
92937
+ `${as19.green("OpenAPI document generated")} ${as19.grey(
92938
+ `in ${as19.white(`${as19.bold(`${Math.round(endTime - startTime)}`)} ms`)}`
92939
+ )}`
92940
+ ).line(`Written to ${as19.cyan(outputPath)}`).print();
92941
+ return;
92942
+ }
92943
+ process.stdout.write(`${openApiDocument}
92944
+ `);
92945
+ }
92946
+ );
92947
+ return cmd2;
92948
+ }
92949
+
92950
+ // src/domains/document/serve/index.ts
92951
+ import { serve as serve2 } from "@hono/node-server";
92952
+ import as20 from "ansis";
92953
+ import { Command as Command24 } from "commander";
92855
92954
  import { Hono } from "hono";
92856
92955
  import { stream } from "hono/streaming";
92857
92956
  function ServeCommand() {
92858
- const cmd2 = new Command23("serve");
92957
+ const cmd2 = new Command24("serve");
92859
92958
  cmd2.description("Serve an API Reference from an OpenAPI file");
92860
92959
  cmd2.argument("[file|url]", "OpenAPI file or URL to show the reference for");
92861
92960
  cmd2.option("-w, --watch", "watch the file for changes");
@@ -92898,7 +92997,7 @@ function ServeCommand() {
92898
92997
  const newResult = await loadOpenApiFile(inputArgument);
92899
92998
  const specificationHasChanged = newResult?.specification && JSON.stringify(specification) !== JSON.stringify(newResult.specification);
92900
92999
  if (specificationHasChanged) {
92901
- output.info().title(as19.grey("OpenAPI file modified")).print();
93000
+ output.info().title(as20.grey("OpenAPI file modified")).print();
92902
93001
  printSpecificationBanner({
92903
93002
  version: newResult.version,
92904
93003
  schema: newResult.schema
@@ -92923,9 +93022,9 @@ function ServeCommand() {
92923
93022
  },
92924
93023
  (info) => {
92925
93024
  output.info().line(
92926
- `${as19.green.bold("\u279C API Reference Server")} ${as19.white(
93025
+ `${as20.green.bold("\u279C API Reference Server")} ${as20.white(
92927
93026
  "listening on"
92928
- )} ${as19.cyan(`http://localhost:${info.port}`)}`
93027
+ )} ${as20.cyan(`http://localhost:${info.port}`)}`
92929
93028
  ).print();
92930
93029
  }
92931
93030
  );
@@ -92973,10 +93072,10 @@ var getHtmlDocument = (specification, watch = false) => {
92973
93072
  };
92974
93073
 
92975
93074
  // src/domains/document/share/index.ts
92976
- import as20 from "ansis";
92977
- import { Command as Command24 } from "commander";
93075
+ import as21 from "ansis";
93076
+ import { Command as Command25 } from "commander";
92978
93077
  function ShareCommand() {
92979
- const cmd2 = new Command24("share");
93078
+ const cmd2 = new Command25("share");
92980
93079
  cmd2.description("Share an OpenAPI file");
92981
93080
  cmd2.argument("[file]", "file to share");
92982
93081
  cmd2.option(
@@ -93002,29 +93101,29 @@ function ShareCommand() {
93002
93101
  })
93003
93102
  }).then((response) => response.json()).then((data) => {
93004
93103
  const { id, token: newToken } = data;
93005
- output.info().line(as20.green.bold("Your OpenAPI file is public.")).line().table(
93104
+ output.info().line(as21.green.bold("Your OpenAPI file is public.")).line().table(
93006
93105
  [
93007
93106
  [
93008
- `${as20.green("\u279C")} ${as20.white.bold("API Reference:")}`,
93009
- as20.cyan(`https://sandbox.scalar.com/p/${id}`)
93107
+ `${as21.green("\u279C")} ${as21.white.bold("API Reference:")}`,
93108
+ as21.cyan(`https://sandbox.scalar.com/p/${id}`)
93010
93109
  ],
93011
93110
  [
93012
- `${as20.grey("\u279C")} ${as20.grey.bold("Editor:")}`,
93013
- as20.cyan(`https://sandbox.scalar.com/e/${id}`)
93111
+ `${as21.grey("\u279C")} ${as21.grey.bold("Editor:")}`,
93112
+ as21.cyan(`https://sandbox.scalar.com/e/${id}`)
93014
93113
  ],
93015
93114
  [],
93016
93115
  [
93017
- `${as20.grey("\u279C")} ${as20.grey.bold("OpenAPI JSON:")}`,
93018
- as20.cyan(`https://sandbox.scalar.com/files/${id}/openapi.json`)
93116
+ `${as21.grey("\u279C")} ${as21.grey.bold("OpenAPI JSON:")}`,
93117
+ as21.cyan(`https://sandbox.scalar.com/files/${id}/openapi.json`)
93019
93118
  ],
93020
93119
  [
93021
- `${as20.grey("\u279C")} ${as20.grey.bold("OpenAPI YAML:")}`,
93022
- as20.cyan(`https://sandbox.scalar.com/files/${id}/openapi.yaml`)
93120
+ `${as21.grey("\u279C")} ${as21.grey.bold("OpenAPI YAML:")}`,
93121
+ as21.cyan(`https://sandbox.scalar.com/files/${id}/openapi.yaml`)
93023
93122
  ]
93024
93123
  ],
93025
93124
  { padding: 1 }
93026
93125
  ).line().line("Use the token to update the existing sandbox:").line().line(
93027
- `${as20.grey("$")} ${as20.white.bold("scalar document share --token=")}${as20.cyan.bold(`${newToken}`)} `
93126
+ `${as21.grey("$")} ${as21.white.bold("scalar document share --token=")}${as21.cyan.bold(`${newToken}`)} `
93028
93127
  ).line().print();
93029
93128
  }).catch((error48) => {
93030
93129
  output.error().title("Failed to share the file.").message(`Details: ${error48}`).exit("error");
@@ -93034,14 +93133,14 @@ function ShareCommand() {
93034
93133
  }
93035
93134
 
93036
93135
  // src/domains/document/upgrade/index.ts
93037
- var import_yaml4 = __toESM(require_dist(), 1);
93038
- import fs9 from "node:fs/promises";
93136
+ var import_yaml5 = __toESM(require_dist(), 1);
93137
+ import fs10 from "node:fs/promises";
93039
93138
  import { confirm as confirm2 } from "@clack/prompts";
93040
- import as21 from "ansis";
93041
- import { Command as Command25 } from "commander";
93139
+ import as22 from "ansis";
93140
+ import { Command as Command26 } from "commander";
93042
93141
  import { normalize as normalize5, upgrade } from "@scalar/openapi-parser";
93043
93142
  function UpgradeCommand() {
93044
- const cmd2 = new Command25("upgrade");
93143
+ const cmd2 = new Command26("upgrade");
93045
93144
  cmd2.description("Upgrade OpenAPI document to version 3.1");
93046
93145
  cmd2.argument("[file|url]", "File or URL to validate");
93047
93146
  cmd2.option("-o, --output <file>", "Path to save the upgraded output file");
@@ -93070,26 +93169,26 @@ function UpgradeCommand() {
93070
93169
  () => upgrade(document2)
93071
93170
  );
93072
93171
  const isYaml = isYamlFileName(outputFileName);
93073
- await fs9.writeFile(
93172
+ await fs10.writeFile(
93074
93173
  outputFileName,
93075
- isYaml ? import_yaml4.default.stringify(result.specification) : JSON.stringify(result.specification, null, 2)
93174
+ isYaml ? import_yaml5.default.stringify(result.specification) : JSON.stringify(result.specification, null, 2)
93076
93175
  );
93077
93176
  output.info().message(
93078
- `${as21.green(`\u2728 OpenAPI Schema upgraded to version ${result.version}`)} in ${as21.white(`${as21.bold(`${executionTimeMs.toFixed(2)}`)} ms`)}`
93177
+ `${as22.green(`\u2728 OpenAPI Schema upgraded to version ${result.version}`)} in ${as22.white(`${as22.bold(`${executionTimeMs.toFixed(2)}`)} ms`)}`
93079
93178
  ).print();
93080
93179
  });
93081
93180
  return cmd2;
93082
93181
  }
93083
93182
 
93084
93183
  // src/domains/document/validate/index.ts
93085
- import as22 from "ansis";
93086
- import { Command as Command26 } from "commander";
93184
+ import as23 from "ansis";
93185
+ import { Command as Command27 } from "commander";
93087
93186
  import prettyjson from "prettyjson";
93088
93187
  import { bundle as bundle3 } from "@scalar/json-magic/bundle";
93089
93188
  import { fetchUrls as fetchUrls3, readFiles as readFiles3 } from "@scalar/json-magic/bundle/plugins/node";
93090
93189
  import { validate as validate2 } from "@scalar/openapi-parser";
93091
93190
  function ValidateCommand() {
93092
- const cmd2 = new Command26("validate");
93191
+ const cmd2 = new Command27("validate");
93093
93192
  cmd2.description("Validate an OpenAPI file");
93094
93193
  cmd2.argument("[file|url]", "File or URL to validate");
93095
93194
  cmd2.action(async (inputArgument) => {
@@ -93106,24 +93205,24 @@ function ValidateCommand() {
93106
93205
  if (result.valid && result.version) {
93107
93206
  const endTime = performance.now();
93108
93207
  output.info().line(
93109
- as22.green(
93110
- `Matches the OpenAPI specification${as22.white(` (OpenAPI ${as22.bold(result.version)})`)}
93208
+ as23.green(
93209
+ `Matches the OpenAPI specification${as23.white(` (OpenAPI ${as23.bold(result.version)})`)}
93111
93210
  `
93112
93211
  )
93113
93212
  ).line(
93114
- `${as22.green("File validated")} ${as22.grey(
93115
- `in ${as22.white(`${as22.bold(`${Math.round(endTime - startTime)}`)} ms`)}
93213
+ `${as23.green("File validated")} ${as23.grey(
93214
+ `in ${as23.white(`${as23.bold(`${Math.round(endTime - startTime)}`)} ms`)}
93116
93215
  `
93117
93216
  )}`
93118
93217
  ).print();
93119
93218
  } else {
93120
93219
  output.error().message(prettyjson.render(result.errors)).message(
93121
- as22.red(
93220
+ as23.red(
93122
93221
  `File does not match the OpenAPI ${result.version ? `${result.version} ` : ""}specification.`
93123
93222
  )
93124
93223
  ).message(
93125
- as22.red(
93126
- `${as22.bold(
93224
+ as23.red(
93225
+ `${as23.bold(
93127
93226
  `${result.errors?.length} error${result.errors && result.errors.length > 1 ? "s" : ""}`
93128
93227
  )} found.`
93129
93228
  )
@@ -93135,11 +93234,11 @@ function ValidateCommand() {
93135
93234
 
93136
93235
  // src/domains/document/void/index.ts
93137
93236
  import { serve as serve3 } from "@hono/node-server";
93138
- import as23 from "ansis";
93139
- import { Command as Command27 } from "commander";
93237
+ import as24 from "ansis";
93238
+ import { Command as Command28 } from "commander";
93140
93239
  import { createVoidServer } from "@scalar/void-server";
93141
93240
  function VoidCommand() {
93142
- const cmd2 = new Command27("void");
93241
+ const cmd2 = new Command28("void");
93143
93242
  cmd2.description("Boot a server to mirror HTTP requests");
93144
93243
  cmd2.option("-o, --once", "run the server only once and exit after that");
93145
93244
  cmd2.option("-p, --port <port>", "set the HTTP port for the mock server");
@@ -93171,9 +93270,9 @@ var bootServer2 = async ({
93171
93270
  },
93172
93271
  (info) => {
93173
93272
  output.info().line(
93174
- `${as23.green.bold("\u279C Void Server")} ${as23.white(
93273
+ `${as24.green.bold("\u279C Void Server")} ${as24.white(
93175
93274
  "listening on"
93176
- )} ${as23.cyan(`http://localhost:${info.port}`)}
93275
+ )} ${as24.cyan(`http://localhost:${info.port}`)}
93177
93276
  `
93178
93277
  ).print();
93179
93278
  }
@@ -93186,6 +93285,7 @@ var documentCommands = [
93186
93285
  SplitCommand,
93187
93286
  JoinCommand,
93188
93287
  FormatCommand,
93288
+ ConvertCommand,
93189
93289
  MarkdownCommand,
93190
93290
  MockCommand,
93191
93291
  ServeCommand,
@@ -93195,27 +93295,27 @@ var documentCommands = [
93195
93295
  LintCommand,
93196
93296
  UpgradeCommand
93197
93297
  ];
93198
- var documentDomain = new Command28("document");
93298
+ var documentDomain = new Command29("document");
93199
93299
  documentDomain.description("Manage local openapi file");
93200
93300
  documentCommands.forEach((command) => documentDomain.addCommand(command()));
93201
93301
  var document_default = documentDomain;
93202
93302
 
93203
93303
  // src/domains/project/index.ts
93204
- import { Command as Command35 } from "commander";
93304
+ import { Command as Command36 } from "commander";
93205
93305
 
93206
93306
  // src/domains/project/preview/index.ts
93207
93307
  import { text as text4 } from "@clack/prompts";
93208
- import as26 from "ansis";
93209
- import { Command as Command30 } from "commander";
93308
+ import as27 from "ansis";
93309
+ import { Command as Command31 } from "commander";
93210
93310
 
93211
93311
  // src/domains/project/check-config/index.ts
93212
- import fs11 from "node:fs";
93213
- import as24 from "ansis";
93214
- import { Command as Command29 } from "commander";
93312
+ import fs12 from "node:fs";
93313
+ import as25 from "ansis";
93314
+ import { Command as Command30 } from "commander";
93215
93315
 
93216
93316
  // ../../packages/helpers/dist/parse/parse.js
93217
93317
  var import_json5 = __toESM(require_lib(), 1);
93218
- var import_yaml5 = __toESM(require_dist(), 1);
93318
+ var import_yaml6 = __toESM(require_dist(), 1);
93219
93319
  function findDocType(val) {
93220
93320
  const withoutWhiteSpace = val.trim();
93221
93321
  if (
@@ -93230,7 +93330,7 @@ function findDocType(val) {
93230
93330
  function parseAnything(val, schema) {
93231
93331
  const docType = findDocType(val);
93232
93332
  try {
93233
- const obj = docType === "yaml" ? import_yaml5.default.parse(val) : import_json5.default.parse(val);
93333
+ const obj = docType === "yaml" ? import_yaml6.default.parse(val) : import_json5.default.parse(val);
93234
93334
  const result = schema.safeParse(obj);
93235
93335
  if (result.success) {
93236
93336
  return {
@@ -93512,7 +93612,7 @@ function resolveHeader({ references, guides, header }) {
93512
93612
  }
93513
93613
 
93514
93614
  // ../../packages/scalar-config/dist/legacy/resolvers/resolve-reference.js
93515
- var import_yaml6 = __toESM(require_dist(), 1);
93615
+ var import_yaml7 = __toESM(require_dist(), 1);
93516
93616
 
93517
93617
  // ../../packages/scalar-config/dist/schema/head.js
93518
93618
  var tagPositionSchema = zod_default.enum(["head", "bodyClose", "bodyOpen"]).default("head");
@@ -93569,7 +93669,7 @@ var internalLinkNavigationEntrySchema = linkNavigationEntrySchema.extend({
93569
93669
  uid: nanoidSchema
93570
93670
  });
93571
93671
 
93572
- // ../../node_modules/.pnpm/@scalar+types@0.8.0/node_modules/@scalar/types/dist/api-reference/api-client-plugin.js
93672
+ // ../../node_modules/.pnpm/@scalar+types@0.9.1/node_modules/@scalar/types/dist/api-reference/api-client-plugin.js
93573
93673
  var sectionViewSchema = external_exports.object({
93574
93674
  title: external_exports.string().optional(),
93575
93675
  // Since this is meant to be a Vue component, we'll use unknown
@@ -93601,7 +93701,7 @@ var apiClientPluginSchema = external_exports.function({
93601
93701
  })
93602
93702
  });
93603
93703
 
93604
- // ../../node_modules/.pnpm/@scalar+types@0.8.0/node_modules/@scalar/types/dist/api-reference/base-configuration.js
93704
+ // ../../node_modules/.pnpm/@scalar+types@0.9.1/node_modules/@scalar/types/dist/api-reference/base-configuration.js
93605
93705
  var externalUrlsSchema = zod_default.object({
93606
93706
  dashboardUrl: zod_default.string().prefault("https://dashboard.scalar.com"),
93607
93707
  registryUrl: zod_default.string().prefault("https://registry.scalar.com"),
@@ -93751,13 +93851,13 @@ var baseConfigurationSchema = zod_default.object({
93751
93851
  persistAuth: zod_default.boolean().optional().default(false).catch(false),
93752
93852
  /** Plugins for the API client */
93753
93853
  plugins: zod_default.array(apiClientPluginSchema).optional(),
93754
- /** Enables / disables telemetry*/
93854
+ /** Enables / disables telemetry */
93755
93855
  telemetry: zod_default.boolean().optional().default(true),
93756
93856
  /** A bunch of external URLs to Scalar's services. */
93757
93857
  externalUrls: externalUrlsSchema.prefault({})
93758
93858
  });
93759
93859
 
93760
- // ../../node_modules/.pnpm/@scalar+types@0.8.0/node_modules/@scalar/types/dist/api-reference/source-configuration.js
93860
+ // ../../node_modules/.pnpm/@scalar+types@0.9.1/node_modules/@scalar/types/dist/api-reference/source-configuration.js
93761
93861
  var sourceConfigurationSchema = zod_default.object({
93762
93862
  default: zod_default.boolean().default(false).optional().catch(false),
93763
93863
  /**
@@ -93854,10 +93954,10 @@ var sourceConfigurationSchema = zod_default.object({
93854
93954
  }).optional()
93855
93955
  });
93856
93956
 
93857
- // ../../node_modules/.pnpm/@scalar+types@0.8.0/node_modules/@scalar/types/dist/api-reference/api-client-configuration.js
93957
+ // ../../node_modules/.pnpm/@scalar+types@0.9.1/node_modules/@scalar/types/dist/api-reference/api-client-configuration.js
93858
93958
  var apiClientConfigurationSchema = baseConfigurationSchema.extend(sourceConfigurationSchema.shape);
93859
93959
 
93860
- // ../../node_modules/.pnpm/@scalar+types@0.8.0/node_modules/@scalar/types/dist/api-reference/api-reference-plugin.js
93960
+ // ../../node_modules/.pnpm/@scalar+types@0.9.1/node_modules/@scalar/types/dist/api-reference/api-reference-plugin.js
93861
93961
  var openApiExtensionSchema = external_exports.object({
93862
93962
  /**
93863
93963
  * Name of specification extension property. Has to start with `x-`.
@@ -93897,6 +93997,18 @@ var viewsSchema2 = external_exports.object({
93897
93997
  */
93898
93998
  "content.end": external_exports.array(viewComponentSchema).optional()
93899
93999
  });
94000
+ var lifecycleHooksSchema = external_exports.object({
94001
+ /** Called when the API Reference is initialized */
94002
+ onInit: external_exports.function({
94003
+ input: [external_exports.object({ config: baseConfigurationSchema.partial() })]
94004
+ }).optional(),
94005
+ /** Called when the API Reference configuration changes */
94006
+ onConfigChange: external_exports.function({
94007
+ input: [external_exports.object({ config: baseConfigurationSchema.partial() })]
94008
+ }).optional(),
94009
+ /** Called when the API Reference is destroyed */
94010
+ onDestroy: external_exports.function({ input: [] }).optional()
94011
+ });
93900
94012
  var apiReferencePluginSchema = external_exports.function({
93901
94013
  input: [],
93902
94014
  output: external_exports.object({
@@ -93905,11 +94017,20 @@ var apiReferencePluginSchema = external_exports.function({
93905
94017
  /**
93906
94018
  * Components to render at specific views in the API Reference
93907
94019
  */
93908
- views: viewsSchema2.optional()
94020
+ views: viewsSchema2.optional(),
94021
+ /**
94022
+ * Lifecycle hooks for the plugin
94023
+ */
94024
+ hooks: lifecycleHooksSchema.optional(),
94025
+ /**
94026
+ * Client plugins to pass to the embedded API client.
94027
+ * Use this to extend the API client from an API reference plugin.
94028
+ */
94029
+ apiClientPlugins: external_exports.array(external_exports.any()).optional()
93909
94030
  })
93910
94031
  });
93911
94032
 
93912
- // ../../node_modules/.pnpm/@scalar+types@0.8.0/node_modules/@scalar/types/dist/api-reference/api-reference-configuration.js
94033
+ // ../../node_modules/.pnpm/@scalar+types@0.9.1/node_modules/@scalar/types/dist/api-reference/api-reference-configuration.js
93913
94034
  var fetchLikeSchema = external_exports.custom();
93914
94035
  var apiReferenceConfigurationSchema = baseConfigurationSchema.extend({
93915
94036
  /**
@@ -94263,7 +94384,7 @@ var apiReferenceConfigurationWithSourceSchema = apiReferenceConfigurationSchema.
94263
94384
  return configuration;
94264
94385
  });
94265
94386
 
94266
- // ../../node_modules/.pnpm/@scalar+types@0.8.0/node_modules/@scalar/types/dist/api-reference/html-rendering-configuration.js
94387
+ // ../../node_modules/.pnpm/@scalar+types@0.9.1/node_modules/@scalar/types/dist/api-reference/html-rendering-configuration.js
94267
94388
  var htmlRenderingConfigurationSchema = external_exports.object({
94268
94389
  /**
94269
94390
  * The URL to the Scalar API Reference JS CDN.
@@ -94281,7 +94402,7 @@ var htmlRenderingConfigurationSchema = external_exports.object({
94281
94402
  pageTitle: external_exports.string().optional().default("Scalar API Reference")
94282
94403
  });
94283
94404
 
94284
- // ../../node_modules/.pnpm/@scalar+types@0.8.0/node_modules/@scalar/types/dist/legacy/reference-config.js
94405
+ // ../../node_modules/.pnpm/@scalar+types@0.9.1/node_modules/@scalar/types/dist/legacy/reference-config.js
94285
94406
  var XScalarStability;
94286
94407
  (function(XScalarStability2) {
94287
94408
  XScalarStability2["Deprecated"] = "deprecated";
@@ -94663,7 +94784,12 @@ var siteConfigSchema = external_exports.object({
94663
94784
  colorScheme: external_exports.object({
94664
94785
  default: external_exports.enum(["light", "dark", "system"]).optional().describe("Default color scheme on page load."),
94665
94786
  showToggle: external_exports.boolean().optional().describe("Show color scheme toggle switch.")
94666
- }).optional().describe("Customize light/dark mode color scheme and toggle preferences.")
94787
+ }).optional().describe("Customize light/dark mode color scheme and toggle preferences."),
94788
+ /** Ask AI agent configuration */
94789
+ agent: external_exports.object({
94790
+ buttonText: external_exports.string().optional().describe('Label shown on the Ask AI button. Defaults to "Ask AI".'),
94791
+ sidebarPosition: external_exports.enum(["below-search", "default"]).optional().describe('Placement of the Ask AI button in the sidebar. "default" renders it next to the search bar; "below-search" renders it on its own row beneath the search bar.')
94792
+ }).optional().describe("Ask AI agent configuration")
94667
94793
  }).default({});
94668
94794
 
94669
94795
  // ../../packages/scalar-config/dist/schema/schema.js
@@ -95418,7 +95544,7 @@ var wysiwygProjectToV2 = n.safeFn(({ project, invalidRefs, theme }) => {
95418
95544
  }, (originalError) => createError("FAILED_TO_CONVERT_WYSIWYG_TO_V2", originalError));
95419
95545
 
95420
95546
  // src/domains/project/helpers.ts
95421
- import fs10 from "node:fs";
95547
+ import fs11 from "node:fs";
95422
95548
  import path5 from "node:path";
95423
95549
  var DEFAULT_MARKDOWN_FILE_NAME = "docs-quickstart.md";
95424
95550
  var DEFAULT_OPENAPI_FILE_NAME = "docs-openapi.json";
@@ -95430,7 +95556,7 @@ function findConfig(searchPath) {
95430
95556
  return searchInDirectory(process.cwd());
95431
95557
  }
95432
95558
  const searchPathResolved = path5.resolve(searchPath);
95433
- const stat = fs10.statSync(searchPathResolved, { throwIfNoEntry: false });
95559
+ const stat = fs11.statSync(searchPathResolved, { throwIfNoEntry: false });
95434
95560
  if (!stat) {
95435
95561
  return null;
95436
95562
  }
@@ -95447,7 +95573,7 @@ function getCurrentFolderName() {
95447
95573
  }
95448
95574
  function searchInDirectory(directory) {
95449
95575
  try {
95450
- const entries = fs10.readdirSync(directory);
95576
+ const entries = fs11.readdirSync(directory);
95451
95577
  for (const entry of entries) {
95452
95578
  if (entry === CONFIG_FILE_NAME || entry.startsWith(`${CONFIG_FILE_NAME}.`)) {
95453
95579
  return path5.join(directory, entry);
@@ -95473,7 +95599,7 @@ function readAndParseConfig(configPath) {
95473
95599
  }
95474
95600
  };
95475
95601
  }
95476
- const fileContent = fs11.readFileSync(file2, "utf-8");
95602
+ const fileContent = fs12.readFileSync(file2, "utf-8");
95477
95603
  const parseConfigResult = parseConfig(fileContent);
95478
95604
  if (!parseConfigResult.success) {
95479
95605
  return {
@@ -95493,17 +95619,17 @@ function readAndParseConfig(configPath) {
95493
95619
  };
95494
95620
  }
95495
95621
  function CheckConfigCommand() {
95496
- const cmd2 = new Command29("check-config");
95622
+ const cmd2 = new Command30("check-config");
95497
95623
  cmd2.description("Check a Scalar Configuration file");
95498
95624
  cmd2.argument("[file]", "File to check");
95499
95625
  cmd2.action(async (inputArgument) => {
95500
95626
  const result = readAndParseConfig(inputArgument);
95501
95627
  if (result.success) {
95502
95628
  output.info().line(
95503
- `${as24.green("[SUCCESS]")} ${as24.green("The Scalar Configuration is valid:")} ${as24.green(result.filePath)}`
95629
+ `${as25.green("[SUCCESS]")} ${as25.green("The Scalar Configuration is valid:")} ${as25.green(result.filePath)}`
95504
95630
  ).line(
95505
- `${as24.green("Scalar Configuration validated")} ${as24.grey(
95506
- `in ${as24.white.bold(`${result.validationTime} ms`)}`
95631
+ `${as25.green("Scalar Configuration validated")} ${as25.grey(
95632
+ `in ${as25.white.bold(`${result.validationTime} ms`)}`
95507
95633
  )}
95508
95634
  `
95509
95635
  ).print();
@@ -95520,7 +95646,7 @@ function CheckConfigCommand() {
95520
95646
  if (error48.issues) {
95521
95647
  output.error().table(
95522
95648
  error48.issues.map((issue2) => [
95523
- as24.yellow(`${issue2.path.join("/").trim() || "root"}:`),
95649
+ as25.yellow(`${issue2.path.join("/").trim() || "root"}:`),
95524
95650
  issue2.message
95525
95651
  ]),
95526
95652
  { padding: 2 }
@@ -95535,7 +95661,7 @@ function CheckConfigCommand() {
95535
95661
 
95536
95662
  // src/domains/project/preview/v2.ts
95537
95663
  import { execFile, spawn } from "node:child_process";
95538
- import fs12 from "node:fs/promises";
95664
+ import fs13 from "node:fs/promises";
95539
95665
  import os2 from "node:os";
95540
95666
  import path6 from "node:path";
95541
95667
  import { Readable } from "node:stream";
@@ -95544,14 +95670,14 @@ import tar from "tar-fs";
95544
95670
 
95545
95671
  // src/helpers/run-command.ts
95546
95672
  import { exec as exec2 } from "node:child_process";
95547
- import as25 from "ansis";
95673
+ import as26 from "ansis";
95548
95674
  async function runCommand(command, cwd2) {
95549
95675
  return new Promise((resolve, reject) => {
95550
95676
  const comm = exec2(command, { cwd: cwd2 });
95551
95677
  comm.stdout?.pipe(process.stdout);
95552
95678
  comm.stderr?.pipe(process.stderr);
95553
95679
  comm.on("error", (err) => {
95554
- as25.redBright(err.message);
95680
+ as26.redBright(err.message);
95555
95681
  reject(err);
95556
95682
  });
95557
95683
  comm.on("close", (code) => code === 0 ? resolve(true) : reject(code));
@@ -95563,7 +95689,7 @@ var ISOLATE_EXTRACTION_DIR = path6.join(os2.homedir(), ".scalar");
95563
95689
  var ISOLATE_DIR = path6.join(ISOLATE_EXTRACTION_DIR, "isolate");
95564
95690
  async function getExistingIsolateVersion() {
95565
95691
  try {
95566
- const packageJsonString = await fs12.readFile(
95692
+ const packageJsonString = await fs13.readFile(
95567
95693
  path6.join(ISOLATE_DIR, "package.json"),
95568
95694
  "utf8"
95569
95695
  );
@@ -95618,7 +95744,7 @@ Remove-Item $tempFile
95618
95744
  async function downloadIsolate() {
95619
95745
  const existingIsolateVersion = await getExistingIsolateVersion();
95620
95746
  if (config2.ssgDocsIsolateVersion === existingIsolateVersion) return;
95621
- await fs12.rm(ISOLATE_EXTRACTION_DIR, { force: true, recursive: true });
95747
+ await fs13.rm(ISOLATE_EXTRACTION_DIR, { force: true, recursive: true });
95622
95748
  const logger = output.info({ animate: true }).loader("Downloading docs isolate. This may take a minute...");
95623
95749
  const ISOLATE_URL = `${config2.cdnUrl}/isolates/${config2.ssgDocsIsolateVersion}-isolate.tar.gz`;
95624
95750
  if (process.platform === "win32") {
@@ -95683,7 +95809,7 @@ async function previewV2Project({
95683
95809
 
95684
95810
  // src/domains/project/preview/index.ts
95685
95811
  var PreviewCommand = () => {
95686
- const cmd2 = new Command30("preview");
95812
+ const cmd2 = new Command31("preview");
95687
95813
  cmd2.description("Preview scalar guides");
95688
95814
  cmd2.argument(
95689
95815
  "[config]",
@@ -95741,7 +95867,7 @@ var PreviewCommand = () => {
95741
95867
  if (error48.issues) {
95742
95868
  output.error().table(
95743
95869
  error48.issues.map((issue2) => [
95744
- as26.yellow(`${issue2.path.join("/").trim() || "root"}:`),
95870
+ as27.yellow(`${issue2.path.join("/").trim() || "root"}:`),
95745
95871
  issue2.message
95746
95872
  ]),
95747
95873
  { padding: 2 }
@@ -95752,7 +95878,7 @@ var PreviewCommand = () => {
95752
95878
  }
95753
95879
  if (parseConfigResult.success) {
95754
95880
  output.info().line(
95755
- `${as26.green("[SUCCESS]")} ${as26.green("Configuration is valid:")} ${as26.green(parseConfigResult.filePath)}`
95881
+ `${as27.green("[SUCCESS]")} ${as27.green("Configuration is valid:")} ${as27.green(parseConfigResult.filePath)}`
95756
95882
  ).print();
95757
95883
  }
95758
95884
  const { config: config3 } = parseConfigResult;
@@ -95775,10 +95901,10 @@ var PreviewCommand = () => {
95775
95901
 
95776
95902
  // src/domains/project/create/index.ts
95777
95903
  import { text as text5 } from "@clack/prompts";
95778
- import as27 from "ansis";
95779
- import { Command as Command31 } from "commander";
95904
+ import as28 from "ansis";
95905
+ import { Command as Command32 } from "commander";
95780
95906
  var CreateCommand = () => {
95781
- const cmd2 = new Command31("create");
95907
+ const cmd2 = new Command32("create");
95782
95908
  cmd2.description(
95783
95909
  "Create a new project that is not linked to a github project."
95784
95910
  );
@@ -95815,19 +95941,19 @@ var CreateCommand = () => {
95815
95941
  }
95816
95942
  logger.update("loader", 0, { content: "Project created successfully!" });
95817
95943
  logger.message(
95818
- `Project uid: ${as27.cyan(response.data.uid)}
95819
- Project slug: ${as27.cyan(response.data.slug)}`
95944
+ `Project uid: ${as28.cyan(response.data.uid)}
95945
+ Project slug: ${as28.cyan(response.data.slug)}`
95820
95946
  ).exit("success");
95821
95947
  });
95822
95948
  return cmd2;
95823
95949
  };
95824
95950
 
95825
95951
  // src/domains/project/init/index.ts
95826
- import fs13 from "node:fs/promises";
95952
+ import fs14 from "node:fs/promises";
95827
95953
  import path7 from "node:path";
95828
95954
  import { cancel, confirm as confirm3, isCancel, text as text6 } from "@clack/prompts";
95829
- import as28 from "ansis";
95830
- import { Command as Command32 } from "commander";
95955
+ import as29 from "ansis";
95956
+ import { Command as Command33 } from "commander";
95831
95957
 
95832
95958
  // ../../node_modules/.pnpm/@scalar+galaxy@0.6.2/node_modules/@scalar/galaxy/dist/3.1.json
95833
95959
  var __default = {
@@ -97788,14 +97914,14 @@ We're here to help:
97788
97914
  // src/domains/project/init/index.ts
97789
97915
  async function fileExists2(path12) {
97790
97916
  try {
97791
- await fs13.access(path12, fs13.constants.F_OK);
97917
+ await fs14.access(path12, fs14.constants.F_OK);
97792
97918
  return true;
97793
97919
  } catch {
97794
97920
  return false;
97795
97921
  }
97796
97922
  }
97797
97923
  var InitCommand = () => {
97798
- const cmd2 = new Command32("init");
97924
+ const cmd2 = new Command33("init");
97799
97925
  cmd2.description("Create a new Scalar Docs project.");
97800
97926
  cmd2.option("-s, --subdomain [url]", "subdomain to publish on");
97801
97927
  cmd2.option("--force", "override existing configuration");
@@ -97804,14 +97930,14 @@ var InitCommand = () => {
97804
97930
  let validInput;
97805
97931
  const nextSteps = () => {
97806
97932
  output.info().line("What to do next:").line(
97807
- ` ${as28.cyan("scalar project preview")} to preview your project locally`
97933
+ ` ${as29.cyan("scalar project preview")} to preview your project locally`
97808
97934
  ).line(
97809
- ` ${as28.cyan("scalar project check-config")} to validate your scalar.config.json file`
97935
+ ` ${as29.cyan("scalar project check-config")} to validate your scalar.config.json file`
97810
97936
  ).line(
97811
- ` ${as28.cyan("scalar project publish --slug")} ${as28.gray("[dashboard-project-slug]")} to publish your project`
97937
+ ` ${as29.cyan("scalar project publish --slug")} ${as29.gray("[dashboard-project-slug]")} to publish your project`
97812
97938
  ).line(
97813
- as28.white(
97814
- `Run ${as28.magenta("scalar --help")} to see all available commands.`
97939
+ as29.white(
97940
+ `Run ${as29.magenta("scalar --help")} to see all available commands.`
97815
97941
  )
97816
97942
  ).print();
97817
97943
  };
@@ -97822,10 +97948,10 @@ var InitCommand = () => {
97822
97948
  };
97823
97949
  if (await fileExists2(configFile)) {
97824
97950
  output.info().line(
97825
- `${as28.green("\u26A0")} Found existing configuration: ${as28.green.bold(`${configFile}`)}`
97951
+ `${as29.green("\u26A0")} Found existing configuration: ${as29.green.bold(`${configFile}`)}`
97826
97952
  ).print();
97827
97953
  if (force) {
97828
- output.info().line(`${as28.green("\u2714")} Overwriting existing file\u2026`).print();
97954
+ output.info().line(`${as29.green("\u2714")} Overwriting existing file\u2026`).print();
97829
97955
  }
97830
97956
  const shouldOverwriteExisting = force ?? await confirm3({
97831
97957
  message: "Do you want to override the file?",
@@ -97880,23 +98006,23 @@ var InitCommand = () => {
97880
98006
  const slug = slugify3(title);
97881
98007
  configuration.info = { title, description: `Documentation for ${title}` };
97882
98008
  subdomain = slug;
97883
- output.info().line(`${as28.green("\u2714")} Subdomain: ${as28.green(subdomain)}`).print();
98009
+ output.info().line(`${as29.green("\u2714")} Subdomain: ${as29.green(subdomain)}`).print();
97884
98010
  }
97885
98011
  configuration.siteConfig.subdomain = subdomain.trim();
97886
98012
  const content = JSON.stringify(configuration, null, 2);
97887
- await fs13.writeFile(configFile, content);
97888
- await fs13.writeFile(
98013
+ await fs14.writeFile(configFile, content);
98014
+ await fs14.writeFile(
97889
98015
  path7.join(currentDir, DEFAULT_MARKDOWN_FILE_NAME),
97890
98016
  quickstartMarkdown
97891
98017
  );
97892
- await fs13.writeFile(
98018
+ await fs14.writeFile(
97893
98019
  path7.join(currentDir, DEFAULT_OPENAPI_FILE_NAME),
97894
98020
  JSON.stringify(__default, null, 2)
97895
98021
  );
97896
- output.info().line(`${as28.green("\u2714")} Configuration stored.
97897
- `).line(`${as28.green.bold(`${configFile}`)}
98022
+ output.info().line(`${as29.green("\u2714")} Configuration stored.
98023
+ `).line(`${as29.green.bold(`${configFile}`)}
97898
98024
  `).line(
97899
- `${as28.grey(
98025
+ `${as29.grey(
97900
98026
  content.split("\n").map((line) => ` ${line}`).join("\n")
97901
98027
  )}`
97902
98028
  ).print();
@@ -97906,12 +98032,12 @@ var InitCommand = () => {
97906
98032
  };
97907
98033
 
97908
98034
  // src/domains/project/publish/index.ts
97909
- import fs15 from "node:fs";
98035
+ import fs16 from "node:fs";
97910
98036
  import { dirname } from "node:path";
97911
- import { Command as Command33 } from "commander";
98037
+ import { Command as Command34 } from "commander";
97912
98038
 
97913
98039
  // src/domains/project/publish/publish.ts
97914
- import fs14 from "node:fs";
98040
+ import fs15 from "node:fs";
97915
98041
  import path8 from "node:path";
97916
98042
  import { Readable as Readable2 } from "node:stream";
97917
98043
  import ignore from "ignore";
@@ -97922,7 +98048,7 @@ function isErrnoException(error48) {
97922
98048
  }
97923
98049
  async function readGitIgnore(configDir) {
97924
98050
  try {
97925
- const gitignore = await fs14.promises.readFile(
98051
+ const gitignore = await fs15.promises.readFile(
97926
98052
  path8.resolve(configDir, ".gitignore"),
97927
98053
  "utf8"
97928
98054
  );
@@ -98014,7 +98140,7 @@ var sleep = (ms) => {
98014
98140
 
98015
98141
  // src/domains/project/publish/index.ts
98016
98142
  var PublishCommand = () => {
98017
- const cmd2 = new Command33("publish");
98143
+ const cmd2 = new Command34("publish");
98018
98144
  cmd2.description(
98019
98145
  "Publish new build for a github sync project that is not linked."
98020
98146
  );
@@ -98068,10 +98194,10 @@ var PublishCommand = () => {
98068
98194
  });
98069
98195
  }
98070
98196
  const configPath = configPathOption ?? findConfig();
98071
- if (!configPath || !fs15.existsSync(configPath)) {
98197
+ if (!configPath || !fs16.existsSync(configPath)) {
98072
98198
  return output.error().title("Invalid configuration file").message("Could not find the Scalar Configuration file:").message(configPath ?? "").exit("error");
98073
98199
  }
98074
- const rawConfig = fs15.readFileSync(configPath, "utf-8");
98200
+ const rawConfig = fs16.readFileSync(configPath, "utf-8");
98075
98201
  const configParseResult = parseConfig(rawConfig);
98076
98202
  if (!configParseResult.success) {
98077
98203
  return output.error().title("Invalid configuration file").line(
@@ -98151,11 +98277,11 @@ async function getDeployStatus({
98151
98277
  }
98152
98278
 
98153
98279
  // src/domains/project/upgrade/index.ts
98154
- import fs16 from "node:fs/promises";
98280
+ import fs17 from "node:fs/promises";
98155
98281
  import path9 from "node:path";
98156
98282
  import { text as text7 } from "@clack/prompts";
98157
- import as29 from "ansis";
98158
- import { Command as Command34 } from "commander";
98283
+ import as30 from "ansis";
98284
+ import { Command as Command35 } from "commander";
98159
98285
  import { n as n2 } from "neverpanic";
98160
98286
 
98161
98287
  // src/errors.ts
@@ -98184,7 +98310,7 @@ function displayError(error48, fallback = "Unknown error occurred. Please contac
98184
98310
 
98185
98311
  // src/domains/project/upgrade/index.ts
98186
98312
  var UpgradeCommand2 = () => {
98187
- const cmd2 = new Command34("upgrade");
98313
+ const cmd2 = new Command35("upgrade");
98188
98314
  cmd2.description("Upgrade scalar project");
98189
98315
  cmd2.argument(
98190
98316
  "[config]",
@@ -98210,7 +98336,7 @@ var UpgradeCommand2 = () => {
98210
98336
  if (error48.issues) {
98211
98337
  output.error().table(
98212
98338
  error48.issues.map((issue2) => [
98213
- as29.yellow(`${issue2.path.join("/").trim() || "root"}:`),
98339
+ as30.yellow(`${issue2.path.join("/").trim() || "root"}:`),
98214
98340
  issue2.message
98215
98341
  ]),
98216
98342
  { padding: 2 }
@@ -98221,7 +98347,7 @@ var UpgradeCommand2 = () => {
98221
98347
  }
98222
98348
  if (parseConfigResult.success) {
98223
98349
  output.info().line(
98224
- `${as29.green("[SUCCESS]")} ${as29.green("Configuration is valid:")} ${as29.green(parseConfigResult.filePath)}`
98350
+ `${as30.green("[SUCCESS]")} ${as30.green("Configuration is valid:")} ${as30.green(parseConfigResult.filePath)}`
98225
98351
  ).print();
98226
98352
  }
98227
98353
  const { config: config3 } = parseConfigResult;
@@ -98240,7 +98366,7 @@ var UpgradeCommand2 = () => {
98240
98366
  const { upgradedConfig, legacyTheme, legacyFooter, legacyScript } = upgradedConfigResult.data;
98241
98367
  if (legacyTheme) {
98242
98368
  const writeUpgradedThemeResult = await n2.fromUnsafe(
98243
- () => fs16.writeFile(
98369
+ () => fs17.writeFile(
98244
98370
  path9.resolve(
98245
98371
  path9.dirname(parseConfigResult.filePath),
98246
98372
  config3.root ?? "./",
@@ -98256,7 +98382,7 @@ var UpgradeCommand2 = () => {
98256
98382
  }
98257
98383
  if (legacyFooter) {
98258
98384
  const writeUpgradedFooterResult = await n2.fromUnsafe(
98259
- () => fs16.writeFile(
98385
+ () => fs17.writeFile(
98260
98386
  path9.resolve(
98261
98387
  path9.dirname(parseConfigResult.filePath),
98262
98388
  config3.root ?? "./",
@@ -98272,7 +98398,7 @@ var UpgradeCommand2 = () => {
98272
98398
  }
98273
98399
  if (legacyScript) {
98274
98400
  const writeUpgradedScriptResult = await n2.fromUnsafe(
98275
- () => fs16.writeFile(
98401
+ () => fs17.writeFile(
98276
98402
  path9.resolve(
98277
98403
  path9.dirname(parseConfigResult.filePath),
98278
98404
  config3.root ?? "./",
@@ -98287,7 +98413,7 @@ var UpgradeCommand2 = () => {
98287
98413
  }
98288
98414
  }
98289
98415
  const writeUpgradedConfigResult = await n2.fromUnsafe(
98290
- () => fs16.writeFile(
98416
+ () => fs17.writeFile(
98291
98417
  parseConfigResult.filePath,
98292
98418
  JSON.stringify(upgradedConfig, null, 2)
98293
98419
  ),
@@ -98310,21 +98436,21 @@ var projectCommands = [
98310
98436
  PublishCommand,
98311
98437
  UpgradeCommand2
98312
98438
  ];
98313
- var projectDomain = new Command35("project");
98439
+ var projectDomain = new Command36("project");
98314
98440
  projectDomain.description("Manage scalar project");
98315
98441
  projectCommands.forEach((command) => projectDomain.addCommand(command()));
98316
98442
  var project_default = projectDomain;
98317
98443
 
98318
98444
  // src/domains/readme/index.ts
98319
- import { Command as Command37 } from "commander";
98445
+ import { Command as Command38 } from "commander";
98320
98446
 
98321
98447
  // src/domains/readme/generate.ts
98322
98448
  import { text as text8 } from "@clack/prompts";
98323
- import as30 from "ansis";
98324
- import { Command as Command36 } from "commander";
98449
+ import as31 from "ansis";
98450
+ import { Command as Command37 } from "commander";
98325
98451
 
98326
98452
  // src/helpers/documentation/index.ts
98327
- import fs17 from "node:fs/promises";
98453
+ import fs18 from "node:fs/promises";
98328
98454
  import path10 from "node:path";
98329
98455
  var generateDocs = (command, depth = 0) => {
98330
98456
  const documentation = [];
@@ -98353,13 +98479,13 @@ ${docs.content}${codeBlock}`);
98353
98479
  };
98354
98480
  var generateDocumentationFile = async (outputPath) => {
98355
98481
  const commandDocumentation = generateCommandDocumentation(getProgram());
98356
- const template = await fs17.readFile(
98482
+ const template = await fs18.readFile(
98357
98483
  path10.join(import.meta.dirname, "template.md"),
98358
98484
  {
98359
98485
  encoding: "utf-8"
98360
98486
  }
98361
98487
  );
98362
- await fs17.writeFile(
98488
+ await fs18.writeFile(
98363
98489
  outputPath,
98364
98490
  template.replace("<COMMANDS>", commandDocumentation)
98365
98491
  );
@@ -98367,7 +98493,7 @@ var generateDocumentationFile = async (outputPath) => {
98367
98493
 
98368
98494
  // src/domains/readme/generate.ts
98369
98495
  function GenerateReadmeCommand() {
98370
- const cmd2 = new Command36("generate");
98496
+ const cmd2 = new Command37("generate");
98371
98497
  cmd2.description("Self generate documentation for the cli");
98372
98498
  cmd2.option(
98373
98499
  "-o, --output [file]",
@@ -98392,20 +98518,20 @@ function GenerateReadmeCommand() {
98392
98518
  const { executionTimeMs } = await measureTime(
98393
98519
  () => generateDocumentationFile(outputPath)
98394
98520
  );
98395
- output.info().line().title(as30.green("Documentation Generated Successfully! \u{1F389}")).line().message(`\u2728 Documentation has been generated at: ${as30.blue(outputPath)}`).line(
98396
- `\u23F1\uFE0F Generation completed in ${as30.yellow(executionTimeMs.toFixed(2))}ms`
98521
+ output.info().line().title(as31.green("Documentation Generated Successfully! \u{1F389}")).line().message(`\u2728 Documentation has been generated at: ${as31.blue(outputPath)}`).line(
98522
+ `\u23F1\uFE0F Generation completed in ${as31.yellow(executionTimeMs.toFixed(2))}ms`
98397
98523
  ).line("").exit("success");
98398
98524
  });
98399
98525
  return cmd2;
98400
98526
  }
98401
98527
 
98402
98528
  // src/domains/readme/serve.ts
98403
- import fs18 from "node:fs/promises";
98529
+ import fs19 from "node:fs/promises";
98404
98530
  import path11 from "node:path";
98405
- import as31 from "ansis";
98531
+ import as32 from "ansis";
98406
98532
  var fileExists3 = async (filePath) => {
98407
98533
  try {
98408
- await fs18.access(filePath);
98534
+ await fs19.access(filePath);
98409
98535
  return true;
98410
98536
  } catch {
98411
98537
  return false;
@@ -98424,24 +98550,24 @@ function ServeReadmeCommand(cmd2) {
98424
98550
  openBrowser(docsUrl);
98425
98551
  output.info().message(
98426
98552
  "Documentation is being opened in your default browser. If it does not open automatically, please visit the following URL:"
98427
- ).line(as31.blue(docsUrl)).line().exit("success");
98553
+ ).line(as32.blue(docsUrl)).line().exit("success");
98428
98554
  });
98429
98555
  return cmd2;
98430
98556
  }
98431
98557
 
98432
98558
  // src/domains/readme/index.ts
98433
- var readmeDomain = new Command37("readme");
98559
+ var readmeDomain = new Command38("readme");
98434
98560
  readmeDomain.addCommand(GenerateReadmeCommand());
98435
98561
  ServeReadmeCommand(readmeDomain);
98436
98562
  var readme_default = readmeDomain;
98437
98563
 
98438
98564
  // src/domains/registry/index.ts
98439
- import { Command as Command42 } from "commander";
98565
+ import { Command as Command43 } from "commander";
98440
98566
 
98441
98567
  // src/domains/registry/publish/index.ts
98442
98568
  import { text as text9 } from "@clack/prompts";
98443
- import as32 from "ansis";
98444
- import { Command as Command38 } from "commander";
98569
+ import as33 from "ansis";
98570
+ import { Command as Command39 } from "commander";
98445
98571
  import { bundle as bundle4 } from "@scalar/json-magic/bundle";
98446
98572
  import { fetchUrls as fetchUrls4, readFiles as readFiles4 } from "@scalar/json-magic/bundle/plugins/node";
98447
98573
  import { parseJsonOrYaml as parseJsonOrYaml2 } from "@scalar/oas-utils/helpers";
@@ -98454,7 +98580,7 @@ function apiDashboardUrl(uid) {
98454
98580
 
98455
98581
  // src/domains/registry/publish/index.ts
98456
98582
  var PublishCommand2 = () => {
98457
- const cmd2 = new Command38("publish");
98583
+ const cmd2 = new Command39("publish");
98458
98584
  cmd2.description("Publish an OpenAPI document to the Scalar registry");
98459
98585
  cmd2.argument("[file]", "OpenAPI file to upload");
98460
98586
  cmd2.option(
@@ -98593,15 +98719,15 @@ var PublishCommand2 = () => {
98593
98719
  const dashboardUrl = apiDashboardUrl(
98594
98720
  matchingApi?.uid ?? publishRes.data.uid
98595
98721
  );
98596
- output.info().line(`${as32.green("\u279C")} ${as32.white.bold("View in dashboard:")}`).line(as32.cyan(dashboardUrl)).line().line(`${as32.green("\u279C")} ${as32.white.bold("Registry Preview:")}`).line(as32.cyan(registryUrl(api.url({ version: version3 })))).line().line(`${as32.green("\u279C")} ${as32.white.bold("Registry YAML:")}`).line(as32.cyan(registryUrl(api.url({ version: version3, format: "yaml" })))).line().line(`${as32.green("\u279C")} ${as32.white.bold("Registry JSON:")}`).line(as32.cyan(registryUrl(api.url({ version: version3, format: "json" })))).print();
98722
+ output.info().line(`${as33.green("\u279C")} ${as33.white.bold("View in dashboard:")}`).line(as33.cyan(dashboardUrl)).line().line(`${as33.green("\u279C")} ${as33.white.bold("Registry Preview:")}`).line(as33.cyan(registryUrl(api.url({ version: version3 })))).line().line(`${as33.green("\u279C")} ${as33.white.bold("Registry YAML:")}`).line(as33.cyan(registryUrl(api.url({ version: version3, format: "yaml" })))).line().line(`${as33.green("\u279C")} ${as33.white.bold("Registry JSON:")}`).line(as33.cyan(registryUrl(api.url({ version: version3, format: "json" })))).print();
98597
98723
  });
98598
98724
  return cmd2;
98599
98725
  };
98600
98726
 
98601
98727
  // src/domains/registry/delete/index.ts
98602
- import { Command as Command39 } from "commander";
98728
+ import { Command as Command40 } from "commander";
98603
98729
  var DeleteCommand = () => {
98604
- const cmd2 = new Command39("delete");
98730
+ const cmd2 = new Command40("delete");
98605
98731
  cmd2.description("Delete a document from scalar registry");
98606
98732
  cmd2.argument("[namespace]", "Team namespace");
98607
98733
  cmd2.argument("[slug]", "Managed doc slug");
@@ -98618,10 +98744,10 @@ var DeleteCommand = () => {
98618
98744
  };
98619
98745
 
98620
98746
  // src/domains/registry/list/index.ts
98621
- import as33 from "ansis";
98622
- import { Command as Command40 } from "commander";
98747
+ import as34 from "ansis";
98748
+ import { Command as Command41 } from "commander";
98623
98749
  var ListCommand = () => {
98624
- const cmd2 = new Command40("list");
98750
+ const cmd2 = new Command41("list");
98625
98751
  cmd2.description("List all registry APIs for a team namespace");
98626
98752
  cmd2.option("--namespace <namespace>", "Team namespace");
98627
98753
  cmd2.action(async (args) => {
@@ -98657,17 +98783,17 @@ var ListCommand = () => {
98657
98783
  output.info().table(
98658
98784
  [
98659
98785
  [
98660
- as33.underline.bold("Slug"),
98661
- as33.underline.bold("Title"),
98662
- as33.underline.bold("Version"),
98663
- as33.underline.bold("Privacy")
98786
+ as34.underline.bold("Slug"),
98787
+ as34.underline.bold("Title"),
98788
+ as34.underline.bold("Version"),
98789
+ as34.underline.bold("Privacy")
98664
98790
  ],
98665
98791
  ...listApisRes.data.map((api) => {
98666
98792
  return [
98667
- as33.blue(api.slug),
98668
- as33.blue(api.title),
98669
- as33.blue(api.version),
98670
- api.isPrivate ? as33.green("Private") : as33.yellow("Public")
98793
+ as34.blue(api.slug),
98794
+ as34.blue(api.title),
98795
+ as34.blue(api.version),
98796
+ api.isPrivate ? as34.green("Private") : as34.yellow("Public")
98671
98797
  ];
98672
98798
  })
98673
98799
  ],
@@ -98679,10 +98805,10 @@ var ListCommand = () => {
98679
98805
 
98680
98806
  // src/domains/registry/update/index.ts
98681
98807
  import { text as text10 } from "@clack/prompts";
98682
- import as34 from "ansis";
98683
- import { Command as Command41 } from "commander";
98808
+ import as35 from "ansis";
98809
+ import { Command as Command42 } from "commander";
98684
98810
  var UpdateCommand = () => {
98685
- const cmd2 = new Command41("update");
98811
+ const cmd2 = new Command42("update");
98686
98812
  cmd2.description("Update document metadata on scalar registry");
98687
98813
  cmd2.argument("[namespace]", "namespace of document you want to update");
98688
98814
  cmd2.argument("[slug]", "slug of document you want to update");
@@ -98701,12 +98827,12 @@ var UpdateCommand = () => {
98701
98827
  const shouldPrompt = ![title, description].some((it) => it !== void 0);
98702
98828
  if (!titleValue && shouldPrompt) {
98703
98829
  titleValue = await text10({
98704
- message: `What is the new title of your document? ${as34.grey("(Optional)")}`
98830
+ message: `What is the new title of your document? ${as35.grey("(Optional)")}`
98705
98831
  });
98706
98832
  }
98707
98833
  if (!descriptionValue && shouldPrompt) {
98708
98834
  descriptionValue = await text10({
98709
- message: `What is the new description of your document? ${as34.grey("(Optional)")}`
98835
+ message: `What is the new description of your document? ${as35.grey("(Optional)")}`
98710
98836
  });
98711
98837
  }
98712
98838
  if (!titleValue && !descriptionValue) {
@@ -98735,17 +98861,17 @@ var registryCommands = [
98735
98861
  DeleteCommand,
98736
98862
  ListCommand
98737
98863
  ];
98738
- var registryDomain = new Command42("registry");
98864
+ var registryDomain = new Command43("registry");
98739
98865
  registryDomain.description("Manage your scalar registry");
98740
98866
  registryCommands.forEach((command) => registryDomain.addCommand(command()));
98741
98867
  var registry_default = registryDomain;
98742
98868
 
98743
98869
  // src/domains/team/index.ts
98744
- import { Command as Command45 } from "commander";
98870
+ import { Command as Command46 } from "commander";
98745
98871
 
98746
98872
  // src/domains/team/list/index.ts
98747
- import as35 from "ansis";
98748
- import { Command as Command43 } from "commander";
98873
+ import as36 from "ansis";
98874
+ import { Command as Command44 } from "commander";
98749
98875
 
98750
98876
  // src/domains/team/helpers.ts
98751
98877
  var getUserTeams = async (client, email3) => {
@@ -98760,7 +98886,7 @@ var getUserTeams = async (client, email3) => {
98760
98886
 
98761
98887
  // src/domains/team/list/index.ts
98762
98888
  var ListCommand2 = () => {
98763
- const cmd2 = new Command43("list");
98889
+ const cmd2 = new Command44("list");
98764
98890
  cmd2.description("List all teams current user is part of");
98765
98891
  cmd2.action(async () => {
98766
98892
  const auth = await getAuthData();
@@ -98773,7 +98899,7 @@ var ListCommand2 = () => {
98773
98899
  output.info().table(
98774
98900
  teams.data.map((it) => {
98775
98901
  const isCurrentTeam = it.teamUid === auth.teamUid;
98776
- const color = isCurrentTeam ? as35.green : as35.blue;
98902
+ const color = isCurrentTeam ? as36.green : as36.blue;
98777
98903
  const teamName = isCurrentTeam ? `${it.teamName} (default)` : it.teamName;
98778
98904
  return [isCurrentTeam ? color("\u279C") : " ", color(teamName)];
98779
98905
  }),
@@ -98785,10 +98911,10 @@ var ListCommand2 = () => {
98785
98911
 
98786
98912
  // src/domains/team/set/index.ts
98787
98913
  import { select as select7 } from "@clack/prompts";
98788
- import as36 from "ansis";
98789
- import { Command as Command44 } from "commander";
98914
+ import as37 from "ansis";
98915
+ import { Command as Command45 } from "commander";
98790
98916
  var SetCommand = () => {
98791
- const cmd2 = new Command44("set");
98917
+ const cmd2 = new Command45("set");
98792
98918
  cmd2.description("Set current active team for the user");
98793
98919
  cmd2.option("--team <team>", "Team uid");
98794
98920
  cmd2.action(async ({ team }) => {
@@ -98820,7 +98946,7 @@ var SetCommand = () => {
98820
98946
  }
98821
98947
  await refreshToken(auth.refreshToken, teamValue);
98822
98948
  output.info().message(
98823
- `Operation ${as36.green("successful")}. Selected team: ${as36.cyan(selectedTeam.teamName)}`
98949
+ `Operation ${as37.green("successful")}. Selected team: ${as37.cyan(selectedTeam.teamName)}`
98824
98950
  ).print();
98825
98951
  });
98826
98952
  return cmd2;
@@ -98828,18 +98954,18 @@ var SetCommand = () => {
98828
98954
 
98829
98955
  // src/domains/team/index.ts
98830
98956
  var teamCommands = [ListCommand2, SetCommand];
98831
- var teamDomain = new Command45("team");
98957
+ var teamDomain = new Command46("team");
98832
98958
  teamDomain.description("Manage user teams");
98833
98959
  teamCommands.forEach((command) => teamDomain.addCommand(command()));
98834
98960
  var team_default = teamDomain;
98835
98961
 
98836
98962
  // src/domains/upgrade/index.ts
98837
98963
  import { execSync } from "node:child_process";
98838
- import as38 from "ansis";
98839
- import { Command as Command46 } from "commander";
98964
+ import as39 from "ansis";
98965
+ import { Command as Command47 } from "commander";
98840
98966
 
98841
98967
  // src/helpers/upgrade.ts
98842
- import as37 from "ansis";
98968
+ import as38 from "ansis";
98843
98969
  import semver3 from "semver";
98844
98970
  var packageJsonSchema = external_exports.object({
98845
98971
  version: external_exports.string()
@@ -98867,7 +98993,7 @@ async function getUpgradeInformation() {
98867
98993
  }
98868
98994
  async function checkUpgrade() {
98869
98995
  const emitOutput = () => output.info().message(
98870
- `New version available! Run ${as37.cyan("`scalar upgrade`")} to install the latest version`
98996
+ `New version available! Run ${as38.cyan("`scalar upgrade`")} to install the latest version`
98871
98997
  ).print();
98872
98998
  const now = performance.now();
98873
98999
  const delay = 1 * 60 * 60 * 1e3;
@@ -98892,7 +99018,7 @@ async function checkUpgrade() {
98892
99018
  }
98893
99019
 
98894
99020
  // src/domains/upgrade/index.ts
98895
- var cmd = new Command46("upgrade");
99021
+ var cmd = new Command47("upgrade");
98896
99022
  cmd.description("Upgrade current version of your cli");
98897
99023
  cmd.action(async () => {
98898
99024
  const upgradeStatus = await getUpgradeInformation();
@@ -98909,7 +99035,7 @@ cmd.action(async () => {
98909
99035
  });
98910
99036
  output.info().message("Successfully upgraded to the latest version").print();
98911
99037
  } catch {
98912
- output.error().title("Upgrade failed").message("Failed to upgrade the CLI. Please try running:").message(as38.cyan(`npm install -g ${upgradeStatus.name}@latest`)).exit("error");
99038
+ output.error().title("Upgrade failed").message("Failed to upgrade the CLI. Please try running:").message(as39.cyan(`npm install -g ${upgradeStatus.name}@latest`)).exit("error");
98913
99039
  }
98914
99040
  });
98915
99041
  var upgrade_default = cmd;
@@ -98930,7 +99056,7 @@ var domains_default = domains;
98930
99056
 
98931
99057
  // src/program.ts
98932
99058
  var getProgram = () => {
98933
- const program2 = new Command47();
99059
+ const program2 = new Command48();
98934
99060
  program2.enablePositionalOptions().name(Object.keys(bin)[0]).description("CLI to work with your OpenAPI files").version(version, "-v, --version");
98935
99061
  program2.showHelpAfterError();
98936
99062
  domains_default.forEach((domain2) => program2.addCommand(domain2));