@agent-facets/adapter-claude-code 0.4.4 → 0.4.6

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 (2) hide show
  1. package/dist/index.mjs +155 -122
  2. package/package.json +1 -1
package/dist/index.mjs CHANGED
@@ -6,23 +6,7 @@ import { mkdir, readFile, rm, writeFile } from "node:fs/promises";
6
6
  var __commonJSMin = (cb, mod) => () => (mod || (cb((mod = { exports: {} }).exports, mod), cb = null), mod.exports);
7
7
  var __require = /* @__PURE__ */ createRequire(import.meta.url);
8
8
  //#endregion
9
- //#region ../../common/src/text.ts
10
- /**
11
- * Small text-normalization helpers used across packages that parse
12
- * user-authored files. Lives in `common` so core front-matter parsing and
13
- * the adapter SDK's asset-fs helpers can share one definition — Windows
14
- * line endings or a stray BOM shouldn't cause divergent behavior across
15
- * readers.
16
- */
17
- /**
18
- * Strip a leading UTF-8 BOM and convert any `\r\n` / `\r` line endings to
19
- * `\n`. Idempotent. Returns the string unchanged if already normalized.
20
- */
21
- function normalizeLineEndings(raw) {
22
- return raw.replace(/^\uFEFF/, "").replace(/\r\n/g, "\n").replace(/\r/g, "\n");
23
- }
24
- //#endregion
25
- //#region ../../../node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/nodes/identity.js
9
+ //#region ../../../node_modules/.bun/yaml@2.8.4/node_modules/yaml/dist/nodes/identity.js
26
10
  var require_identity = /* @__PURE__ */ __commonJSMin(((exports) => {
27
11
  const ALIAS = Symbol.for("yaml.alias");
28
12
  const DOC = Symbol.for("yaml.document");
@@ -72,7 +56,7 @@ var require_identity = /* @__PURE__ */ __commonJSMin(((exports) => {
72
56
  exports.isSeq = isSeq;
73
57
  }));
74
58
  //#endregion
75
- //#region ../../../node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/visit.js
59
+ //#region ../../../node_modules/.bun/yaml@2.8.4/node_modules/yaml/dist/visit.js
76
60
  var require_visit = /* @__PURE__ */ __commonJSMin(((exports) => {
77
61
  var identity = require_identity();
78
62
  const BREAK = Symbol("break visit");
@@ -262,7 +246,7 @@ var require_visit = /* @__PURE__ */ __commonJSMin(((exports) => {
262
246
  exports.visitAsync = visitAsync;
263
247
  }));
264
248
  //#endregion
265
- //#region ../../../node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/doc/directives.js
249
+ //#region ../../../node_modules/.bun/yaml@2.8.4/node_modules/yaml/dist/doc/directives.js
266
250
  var require_directives = /* @__PURE__ */ __commonJSMin(((exports) => {
267
251
  var identity = require_identity();
268
252
  var visit = require_visit();
@@ -427,7 +411,7 @@ var require_directives = /* @__PURE__ */ __commonJSMin(((exports) => {
427
411
  exports.Directives = Directives;
428
412
  }));
429
413
  //#endregion
430
- //#region ../../../node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/doc/anchors.js
414
+ //#region ../../../node_modules/.bun/yaml@2.8.4/node_modules/yaml/dist/doc/anchors.js
431
415
  var require_anchors = /* @__PURE__ */ __commonJSMin(((exports) => {
432
416
  var identity = require_identity();
433
417
  var visit = require_visit();
@@ -494,7 +478,7 @@ var require_anchors = /* @__PURE__ */ __commonJSMin(((exports) => {
494
478
  exports.findNewAnchor = findNewAnchor;
495
479
  }));
496
480
  //#endregion
497
- //#region ../../../node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/doc/applyReviver.js
481
+ //#region ../../../node_modules/.bun/yaml@2.8.4/node_modules/yaml/dist/doc/applyReviver.js
498
482
  var require_applyReviver = /* @__PURE__ */ __commonJSMin(((exports) => {
499
483
  /**
500
484
  * Applies the JSON.parse reviver algorithm as defined in the ECMA-262 spec,
@@ -534,7 +518,7 @@ var require_applyReviver = /* @__PURE__ */ __commonJSMin(((exports) => {
534
518
  exports.applyReviver = applyReviver;
535
519
  }));
536
520
  //#endregion
537
- //#region ../../../node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/nodes/toJS.js
521
+ //#region ../../../node_modules/.bun/yaml@2.8.4/node_modules/yaml/dist/nodes/toJS.js
538
522
  var require_toJS = /* @__PURE__ */ __commonJSMin(((exports) => {
539
523
  var identity = require_identity();
540
524
  /**
@@ -571,7 +555,7 @@ var require_toJS = /* @__PURE__ */ __commonJSMin(((exports) => {
571
555
  exports.toJS = toJS;
572
556
  }));
573
557
  //#endregion
574
- //#region ../../../node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/nodes/Node.js
558
+ //#region ../../../node_modules/.bun/yaml@2.8.4/node_modules/yaml/dist/nodes/Node.js
575
559
  var require_Node = /* @__PURE__ */ __commonJSMin(((exports) => {
576
560
  var applyReviver = require_applyReviver();
577
561
  var identity = require_identity();
@@ -605,7 +589,7 @@ var require_Node = /* @__PURE__ */ __commonJSMin(((exports) => {
605
589
  exports.NodeBase = NodeBase;
606
590
  }));
607
591
  //#endregion
608
- //#region ../../../node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/nodes/Alias.js
592
+ //#region ../../../node_modules/.bun/yaml@2.8.4/node_modules/yaml/dist/nodes/Alias.js
609
593
  var require_Alias = /* @__PURE__ */ __commonJSMin(((exports) => {
610
594
  var anchors = require_anchors();
611
595
  var visit = require_visit();
@@ -625,6 +609,7 @@ var require_Alias = /* @__PURE__ */ __commonJSMin(((exports) => {
625
609
  * instance of the `source` anchor before this node.
626
610
  */
627
611
  resolve(doc, ctx) {
612
+ if (ctx?.maxAliasCount === 0) throw new ReferenceError("Alias resolution is disabled");
628
613
  let nodes;
629
614
  if (ctx?.aliasResolveCache) nodes = ctx.aliasResolveCache;
630
615
  else {
@@ -698,7 +683,7 @@ var require_Alias = /* @__PURE__ */ __commonJSMin(((exports) => {
698
683
  exports.Alias = Alias;
699
684
  }));
700
685
  //#endregion
701
- //#region ../../../node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/nodes/Scalar.js
686
+ //#region ../../../node_modules/.bun/yaml@2.8.4/node_modules/yaml/dist/nodes/Scalar.js
702
687
  var require_Scalar = /* @__PURE__ */ __commonJSMin(((exports) => {
703
688
  var identity = require_identity();
704
689
  var Node = require_Node();
@@ -725,7 +710,7 @@ var require_Scalar = /* @__PURE__ */ __commonJSMin(((exports) => {
725
710
  exports.isScalarValue = isScalarValue;
726
711
  }));
727
712
  //#endregion
728
- //#region ../../../node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/doc/createNode.js
713
+ //#region ../../../node_modules/.bun/yaml@2.8.4/node_modules/yaml/dist/doc/createNode.js
729
714
  var require_createNode = /* @__PURE__ */ __commonJSMin(((exports) => {
730
715
  var Alias = require_Alias();
731
716
  var identity = require_identity();
@@ -788,7 +773,7 @@ var require_createNode = /* @__PURE__ */ __commonJSMin(((exports) => {
788
773
  exports.createNode = createNode;
789
774
  }));
790
775
  //#endregion
791
- //#region ../../../node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/nodes/Collection.js
776
+ //#region ../../../node_modules/.bun/yaml@2.8.4/node_modules/yaml/dist/nodes/Collection.js
792
777
  var require_Collection = /* @__PURE__ */ __commonJSMin(((exports) => {
793
778
  var createNode = require_createNode();
794
779
  var identity = require_identity();
@@ -909,7 +894,7 @@ var require_Collection = /* @__PURE__ */ __commonJSMin(((exports) => {
909
894
  exports.isEmptyPath = isEmptyPath;
910
895
  }));
911
896
  //#endregion
912
- //#region ../../../node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/stringify/stringifyComment.js
897
+ //#region ../../../node_modules/.bun/yaml@2.8.4/node_modules/yaml/dist/stringify/stringifyComment.js
913
898
  var require_stringifyComment = /* @__PURE__ */ __commonJSMin(((exports) => {
914
899
  /**
915
900
  * Stringifies a comment.
@@ -929,7 +914,7 @@ var require_stringifyComment = /* @__PURE__ */ __commonJSMin(((exports) => {
929
914
  exports.stringifyComment = stringifyComment;
930
915
  }));
931
916
  //#endregion
932
- //#region ../../../node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/stringify/foldFlowLines.js
917
+ //#region ../../../node_modules/.bun/yaml@2.8.4/node_modules/yaml/dist/stringify/foldFlowLines.js
933
918
  var require_foldFlowLines = /* @__PURE__ */ __commonJSMin(((exports) => {
934
919
  const FOLD_FLOW = "flow";
935
920
  const FOLD_BLOCK = "block";
@@ -1045,7 +1030,7 @@ var require_foldFlowLines = /* @__PURE__ */ __commonJSMin(((exports) => {
1045
1030
  exports.foldFlowLines = foldFlowLines;
1046
1031
  }));
1047
1032
  //#endregion
1048
- //#region ../../../node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/stringify/stringifyString.js
1033
+ //#region ../../../node_modules/.bun/yaml@2.8.4/node_modules/yaml/dist/stringify/stringifyString.js
1049
1034
  var require_stringifyString = /* @__PURE__ */ __commonJSMin(((exports) => {
1050
1035
  var Scalar = require_Scalar();
1051
1036
  var foldFlowLines = require_foldFlowLines();
@@ -1269,7 +1254,7 @@ var require_stringifyString = /* @__PURE__ */ __commonJSMin(((exports) => {
1269
1254
  exports.stringifyString = stringifyString;
1270
1255
  }));
1271
1256
  //#endregion
1272
- //#region ../../../node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/stringify/stringify.js
1257
+ //#region ../../../node_modules/.bun/yaml@2.8.4/node_modules/yaml/dist/stringify/stringify.js
1273
1258
  var require_stringify = /* @__PURE__ */ __commonJSMin(((exports) => {
1274
1259
  var anchors = require_anchors();
1275
1260
  var identity = require_identity();
@@ -1377,7 +1362,7 @@ var require_stringify = /* @__PURE__ */ __commonJSMin(((exports) => {
1377
1362
  exports.stringify = stringify;
1378
1363
  }));
1379
1364
  //#endregion
1380
- //#region ../../../node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/stringify/stringifyPair.js
1365
+ //#region ../../../node_modules/.bun/yaml@2.8.4/node_modules/yaml/dist/stringify/stringifyPair.js
1381
1366
  var require_stringifyPair = /* @__PURE__ */ __commonJSMin(((exports) => {
1382
1367
  var identity = require_identity();
1383
1368
  var Scalar = require_Scalar();
@@ -1474,7 +1459,7 @@ var require_stringifyPair = /* @__PURE__ */ __commonJSMin(((exports) => {
1474
1459
  exports.stringifyPair = stringifyPair;
1475
1460
  }));
1476
1461
  //#endregion
1477
- //#region ../../../node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/log.js
1462
+ //#region ../../../node_modules/.bun/yaml@2.8.4/node_modules/yaml/dist/log.js
1478
1463
  var require_log = /* @__PURE__ */ __commonJSMin(((exports) => {
1479
1464
  var node_process$2 = __require("process");
1480
1465
  function debug(logLevel, ...messages) {
@@ -1488,7 +1473,7 @@ var require_log = /* @__PURE__ */ __commonJSMin(((exports) => {
1488
1473
  exports.warn = warn;
1489
1474
  }));
1490
1475
  //#endregion
1491
- //#region ../../../node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/schema/yaml-1.1/merge.js
1476
+ //#region ../../../node_modules/.bun/yaml@2.8.4/node_modules/yaml/dist/schema/yaml-1.1/merge.js
1492
1477
  var require_merge = /* @__PURE__ */ __commonJSMin(((exports) => {
1493
1478
  var identity = require_identity();
1494
1479
  var Scalar = require_Scalar();
@@ -1503,13 +1488,13 @@ var require_merge = /* @__PURE__ */ __commonJSMin(((exports) => {
1503
1488
  };
1504
1489
  const isMergeKey = (ctx, key) => (merge.identify(key) || identity.isScalar(key) && (!key.type || key.type === Scalar.Scalar.PLAIN) && merge.identify(key.value)) && ctx?.doc.schema.tags.some((tag) => tag.tag === merge.tag && tag.default);
1505
1490
  function addMergeToJSMap(ctx, map, value) {
1506
- value = ctx && identity.isAlias(value) ? value.resolve(ctx.doc) : value;
1507
- if (identity.isSeq(value)) for (const it of value.items) mergeValue(ctx, map, it);
1508
- else if (Array.isArray(value)) for (const it of value) mergeValue(ctx, map, it);
1509
- else mergeValue(ctx, map, value);
1491
+ const source = resolveAliasValue(ctx, value);
1492
+ if (identity.isSeq(source)) for (const it of source.items) mergeValue(ctx, map, it);
1493
+ else if (Array.isArray(source)) for (const it of source) mergeValue(ctx, map, it);
1494
+ else mergeValue(ctx, map, source);
1510
1495
  }
1511
1496
  function mergeValue(ctx, map, value) {
1512
- const source = ctx && identity.isAlias(value) ? value.resolve(ctx.doc) : value;
1497
+ const source = resolveAliasValue(ctx, value);
1513
1498
  if (!identity.isMap(source)) throw new Error("Merge sources must be maps or map aliases");
1514
1499
  const srcMap = source.toJSON(null, ctx, Map);
1515
1500
  for (const [key, value] of srcMap) if (map instanceof Map) {
@@ -1523,12 +1508,15 @@ var require_merge = /* @__PURE__ */ __commonJSMin(((exports) => {
1523
1508
  });
1524
1509
  return map;
1525
1510
  }
1511
+ function resolveAliasValue(ctx, value) {
1512
+ return ctx && identity.isAlias(value) ? value.resolve(ctx.doc, ctx) : value;
1513
+ }
1526
1514
  exports.addMergeToJSMap = addMergeToJSMap;
1527
1515
  exports.isMergeKey = isMergeKey;
1528
1516
  exports.merge = merge;
1529
1517
  }));
1530
1518
  //#endregion
1531
- //#region ../../../node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/nodes/addPairToJSMap.js
1519
+ //#region ../../../node_modules/.bun/yaml@2.8.4/node_modules/yaml/dist/nodes/addPairToJSMap.js
1532
1520
  var require_addPairToJSMap = /* @__PURE__ */ __commonJSMin(((exports) => {
1533
1521
  var log = require_log();
1534
1522
  var merge = require_merge();
@@ -1579,7 +1567,7 @@ var require_addPairToJSMap = /* @__PURE__ */ __commonJSMin(((exports) => {
1579
1567
  exports.addPairToJSMap = addPairToJSMap;
1580
1568
  }));
1581
1569
  //#endregion
1582
- //#region ../../../node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/nodes/Pair.js
1570
+ //#region ../../../node_modules/.bun/yaml@2.8.4/node_modules/yaml/dist/nodes/Pair.js
1583
1571
  var require_Pair = /* @__PURE__ */ __commonJSMin(((exports) => {
1584
1572
  var createNode = require_createNode();
1585
1573
  var stringifyPair = require_stringifyPair();
@@ -1612,7 +1600,7 @@ var require_Pair = /* @__PURE__ */ __commonJSMin(((exports) => {
1612
1600
  exports.createPair = createPair;
1613
1601
  }));
1614
1602
  //#endregion
1615
- //#region ../../../node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/stringify/stringifyCollection.js
1603
+ //#region ../../../node_modules/.bun/yaml@2.8.4/node_modules/yaml/dist/stringify/stringifyCollection.js
1616
1604
  var require_stringifyCollection = /* @__PURE__ */ __commonJSMin(((exports) => {
1617
1605
  var identity = require_identity();
1618
1606
  var stringify = require_stringify();
@@ -1730,7 +1718,7 @@ var require_stringifyCollection = /* @__PURE__ */ __commonJSMin(((exports) => {
1730
1718
  exports.stringifyCollection = stringifyCollection;
1731
1719
  }));
1732
1720
  //#endregion
1733
- //#region ../../../node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/nodes/YAMLMap.js
1721
+ //#region ../../../node_modules/.bun/yaml@2.8.4/node_modules/yaml/dist/nodes/YAMLMap.js
1734
1722
  var require_YAMLMap = /* @__PURE__ */ __commonJSMin(((exports) => {
1735
1723
  var stringifyCollection = require_stringifyCollection();
1736
1724
  var addPairToJSMap = require_addPairToJSMap();
@@ -1839,7 +1827,7 @@ var require_YAMLMap = /* @__PURE__ */ __commonJSMin(((exports) => {
1839
1827
  exports.findPair = findPair;
1840
1828
  }));
1841
1829
  //#endregion
1842
- //#region ../../../node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/schema/common/map.js
1830
+ //#region ../../../node_modules/.bun/yaml@2.8.4/node_modules/yaml/dist/schema/common/map.js
1843
1831
  var require_map = /* @__PURE__ */ __commonJSMin(((exports) => {
1844
1832
  var identity = require_identity();
1845
1833
  var YAMLMap = require_YAMLMap();
@@ -1856,7 +1844,7 @@ var require_map = /* @__PURE__ */ __commonJSMin(((exports) => {
1856
1844
  };
1857
1845
  }));
1858
1846
  //#endregion
1859
- //#region ../../../node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/nodes/YAMLSeq.js
1847
+ //#region ../../../node_modules/.bun/yaml@2.8.4/node_modules/yaml/dist/nodes/YAMLSeq.js
1860
1848
  var require_YAMLSeq = /* @__PURE__ */ __commonJSMin(((exports) => {
1861
1849
  var createNode = require_createNode();
1862
1850
  var stringifyCollection = require_stringifyCollection();
@@ -1962,7 +1950,7 @@ var require_YAMLSeq = /* @__PURE__ */ __commonJSMin(((exports) => {
1962
1950
  exports.YAMLSeq = YAMLSeq;
1963
1951
  }));
1964
1952
  //#endregion
1965
- //#region ../../../node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/schema/common/seq.js
1953
+ //#region ../../../node_modules/.bun/yaml@2.8.4/node_modules/yaml/dist/schema/common/seq.js
1966
1954
  var require_seq = /* @__PURE__ */ __commonJSMin(((exports) => {
1967
1955
  var identity = require_identity();
1968
1956
  var YAMLSeq = require_YAMLSeq();
@@ -1979,7 +1967,7 @@ var require_seq = /* @__PURE__ */ __commonJSMin(((exports) => {
1979
1967
  };
1980
1968
  }));
1981
1969
  //#endregion
1982
- //#region ../../../node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/schema/common/string.js
1970
+ //#region ../../../node_modules/.bun/yaml@2.8.4/node_modules/yaml/dist/schema/common/string.js
1983
1971
  var require_string = /* @__PURE__ */ __commonJSMin(((exports) => {
1984
1972
  var stringifyString = require_stringifyString();
1985
1973
  exports.string = {
@@ -1994,7 +1982,7 @@ var require_string = /* @__PURE__ */ __commonJSMin(((exports) => {
1994
1982
  };
1995
1983
  }));
1996
1984
  //#endregion
1997
- //#region ../../../node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/schema/common/null.js
1985
+ //#region ../../../node_modules/.bun/yaml@2.8.4/node_modules/yaml/dist/schema/common/null.js
1998
1986
  var require_null = /* @__PURE__ */ __commonJSMin(((exports) => {
1999
1987
  var Scalar = require_Scalar();
2000
1988
  const nullTag = {
@@ -2009,7 +1997,7 @@ var require_null = /* @__PURE__ */ __commonJSMin(((exports) => {
2009
1997
  exports.nullTag = nullTag;
2010
1998
  }));
2011
1999
  //#endregion
2012
- //#region ../../../node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/schema/core/bool.js
2000
+ //#region ../../../node_modules/.bun/yaml@2.8.4/node_modules/yaml/dist/schema/core/bool.js
2013
2001
  var require_bool$1 = /* @__PURE__ */ __commonJSMin(((exports) => {
2014
2002
  var Scalar = require_Scalar();
2015
2003
  const boolTag = {
@@ -2028,14 +2016,14 @@ var require_bool$1 = /* @__PURE__ */ __commonJSMin(((exports) => {
2028
2016
  exports.boolTag = boolTag;
2029
2017
  }));
2030
2018
  //#endregion
2031
- //#region ../../../node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/stringify/stringifyNumber.js
2019
+ //#region ../../../node_modules/.bun/yaml@2.8.4/node_modules/yaml/dist/stringify/stringifyNumber.js
2032
2020
  var require_stringifyNumber = /* @__PURE__ */ __commonJSMin(((exports) => {
2033
2021
  function stringifyNumber({ format, minFractionDigits, tag, value }) {
2034
2022
  if (typeof value === "bigint") return String(value);
2035
2023
  const num = typeof value === "number" ? value : Number(value);
2036
2024
  if (!isFinite(num)) return isNaN(num) ? ".nan" : num < 0 ? "-.inf" : ".inf";
2037
2025
  let n = Object.is(value, -0) ? "-0" : JSON.stringify(value);
2038
- if (!format && minFractionDigits && (!tag || tag === "tag:yaml.org,2002:float") && /^\d/.test(n)) {
2026
+ if (!format && minFractionDigits && (!tag || tag === "tag:yaml.org,2002:float") && /^-?\d/.test(n) && !n.includes("e")) {
2039
2027
  let i = n.indexOf(".");
2040
2028
  if (i < 0) {
2041
2029
  i = n.length;
@@ -2049,7 +2037,7 @@ var require_stringifyNumber = /* @__PURE__ */ __commonJSMin(((exports) => {
2049
2037
  exports.stringifyNumber = stringifyNumber;
2050
2038
  }));
2051
2039
  //#endregion
2052
- //#region ../../../node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/schema/core/float.js
2040
+ //#region ../../../node_modules/.bun/yaml@2.8.4/node_modules/yaml/dist/schema/core/float.js
2053
2041
  var require_float$1 = /* @__PURE__ */ __commonJSMin(((exports) => {
2054
2042
  var Scalar = require_Scalar();
2055
2043
  var stringifyNumber = require_stringifyNumber();
@@ -2090,7 +2078,7 @@ var require_float$1 = /* @__PURE__ */ __commonJSMin(((exports) => {
2090
2078
  exports.floatNaN = floatNaN;
2091
2079
  }));
2092
2080
  //#endregion
2093
- //#region ../../../node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/schema/core/int.js
2081
+ //#region ../../../node_modules/.bun/yaml@2.8.4/node_modules/yaml/dist/schema/core/int.js
2094
2082
  var require_int$1 = /* @__PURE__ */ __commonJSMin(((exports) => {
2095
2083
  var stringifyNumber = require_stringifyNumber();
2096
2084
  const intIdentify = (value) => typeof value === "bigint" || Number.isInteger(value);
@@ -2131,7 +2119,7 @@ var require_int$1 = /* @__PURE__ */ __commonJSMin(((exports) => {
2131
2119
  exports.intOct = intOct;
2132
2120
  }));
2133
2121
  //#endregion
2134
- //#region ../../../node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/schema/core/schema.js
2122
+ //#region ../../../node_modules/.bun/yaml@2.8.4/node_modules/yaml/dist/schema/core/schema.js
2135
2123
  var require_schema$2 = /* @__PURE__ */ __commonJSMin(((exports) => {
2136
2124
  var map = require_map();
2137
2125
  var _null = require_null();
@@ -2155,7 +2143,7 @@ var require_schema$2 = /* @__PURE__ */ __commonJSMin(((exports) => {
2155
2143
  ];
2156
2144
  }));
2157
2145
  //#endregion
2158
- //#region ../../../node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/schema/json/schema.js
2146
+ //#region ../../../node_modules/.bun/yaml@2.8.4/node_modules/yaml/dist/schema/json/schema.js
2159
2147
  var require_schema$1 = /* @__PURE__ */ __commonJSMin(((exports) => {
2160
2148
  var Scalar = require_Scalar();
2161
2149
  var map = require_map();
@@ -2217,7 +2205,7 @@ var require_schema$1 = /* @__PURE__ */ __commonJSMin(((exports) => {
2217
2205
  });
2218
2206
  }));
2219
2207
  //#endregion
2220
- //#region ../../../node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/schema/yaml-1.1/binary.js
2208
+ //#region ../../../node_modules/.bun/yaml@2.8.4/node_modules/yaml/dist/schema/yaml-1.1/binary.js
2221
2209
  var require_binary = /* @__PURE__ */ __commonJSMin(((exports) => {
2222
2210
  var node_buffer = __require("buffer");
2223
2211
  var Scalar = require_Scalar();
@@ -2273,7 +2261,7 @@ var require_binary = /* @__PURE__ */ __commonJSMin(((exports) => {
2273
2261
  };
2274
2262
  }));
2275
2263
  //#endregion
2276
- //#region ../../../node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/schema/yaml-1.1/pairs.js
2264
+ //#region ../../../node_modules/.bun/yaml@2.8.4/node_modules/yaml/dist/schema/yaml-1.1/pairs.js
2277
2265
  var require_pairs = /* @__PURE__ */ __commonJSMin(((exports) => {
2278
2266
  var identity = require_identity();
2279
2267
  var Pair = require_Pair();
@@ -2333,7 +2321,7 @@ var require_pairs = /* @__PURE__ */ __commonJSMin(((exports) => {
2333
2321
  exports.resolvePairs = resolvePairs;
2334
2322
  }));
2335
2323
  //#endregion
2336
- //#region ../../../node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/schema/yaml-1.1/omap.js
2324
+ //#region ../../../node_modules/.bun/yaml@2.8.4/node_modules/yaml/dist/schema/yaml-1.1/omap.js
2337
2325
  var require_omap = /* @__PURE__ */ __commonJSMin(((exports) => {
2338
2326
  var identity = require_identity();
2339
2327
  var toJS = require_toJS();
@@ -2396,7 +2384,7 @@ var require_omap = /* @__PURE__ */ __commonJSMin(((exports) => {
2396
2384
  exports.omap = omap;
2397
2385
  }));
2398
2386
  //#endregion
2399
- //#region ../../../node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/schema/yaml-1.1/bool.js
2387
+ //#region ../../../node_modules/.bun/yaml@2.8.4/node_modules/yaml/dist/schema/yaml-1.1/bool.js
2400
2388
  var require_bool = /* @__PURE__ */ __commonJSMin(((exports) => {
2401
2389
  var Scalar = require_Scalar();
2402
2390
  function boolStringify({ value, source }, ctx) {
@@ -2423,7 +2411,7 @@ var require_bool = /* @__PURE__ */ __commonJSMin(((exports) => {
2423
2411
  exports.trueTag = trueTag;
2424
2412
  }));
2425
2413
  //#endregion
2426
- //#region ../../../node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/schema/yaml-1.1/float.js
2414
+ //#region ../../../node_modules/.bun/yaml@2.8.4/node_modules/yaml/dist/schema/yaml-1.1/float.js
2427
2415
  var require_float = /* @__PURE__ */ __commonJSMin(((exports) => {
2428
2416
  var Scalar = require_Scalar();
2429
2417
  var stringifyNumber = require_stringifyNumber();
@@ -2467,7 +2455,7 @@ var require_float = /* @__PURE__ */ __commonJSMin(((exports) => {
2467
2455
  exports.floatNaN = floatNaN;
2468
2456
  }));
2469
2457
  //#endregion
2470
- //#region ../../../node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/schema/yaml-1.1/int.js
2458
+ //#region ../../../node_modules/.bun/yaml@2.8.4/node_modules/yaml/dist/schema/yaml-1.1/int.js
2471
2459
  var require_int = /* @__PURE__ */ __commonJSMin(((exports) => {
2472
2460
  var stringifyNumber = require_stringifyNumber();
2473
2461
  const intIdentify = (value) => typeof value === "bigint" || Number.isInteger(value);
@@ -2542,7 +2530,7 @@ var require_int = /* @__PURE__ */ __commonJSMin(((exports) => {
2542
2530
  exports.intOct = intOct;
2543
2531
  }));
2544
2532
  //#endregion
2545
- //#region ../../../node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/schema/yaml-1.1/set.js
2533
+ //#region ../../../node_modules/.bun/yaml@2.8.4/node_modules/yaml/dist/schema/yaml-1.1/set.js
2546
2534
  var require_set = /* @__PURE__ */ __commonJSMin(((exports) => {
2547
2535
  var identity = require_identity();
2548
2536
  var Pair = require_Pair();
@@ -2610,7 +2598,7 @@ var require_set = /* @__PURE__ */ __commonJSMin(((exports) => {
2610
2598
  exports.set = set;
2611
2599
  }));
2612
2600
  //#endregion
2613
- //#region ../../../node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/schema/yaml-1.1/timestamp.js
2601
+ //#region ../../../node_modules/.bun/yaml@2.8.4/node_modules/yaml/dist/schema/yaml-1.1/timestamp.js
2614
2602
  var require_timestamp = /* @__PURE__ */ __commonJSMin(((exports) => {
2615
2603
  var stringifyNumber = require_stringifyNumber();
2616
2604
  /** Internal types handle bigint as number, because TS can't figure it out. */
@@ -2693,7 +2681,7 @@ var require_timestamp = /* @__PURE__ */ __commonJSMin(((exports) => {
2693
2681
  exports.timestamp = timestamp;
2694
2682
  }));
2695
2683
  //#endregion
2696
- //#region ../../../node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/schema/yaml-1.1/schema.js
2684
+ //#region ../../../node_modules/.bun/yaml@2.8.4/node_modules/yaml/dist/schema/yaml-1.1/schema.js
2697
2685
  var require_schema = /* @__PURE__ */ __commonJSMin(((exports) => {
2698
2686
  var map = require_map();
2699
2687
  var _null = require_null();
@@ -2733,7 +2721,7 @@ var require_schema = /* @__PURE__ */ __commonJSMin(((exports) => {
2733
2721
  ];
2734
2722
  }));
2735
2723
  //#endregion
2736
- //#region ../../../node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/schema/tags.js
2724
+ //#region ../../../node_modules/.bun/yaml@2.8.4/node_modules/yaml/dist/schema/tags.js
2737
2725
  var require_tags = /* @__PURE__ */ __commonJSMin(((exports) => {
2738
2726
  var map = require_map();
2739
2727
  var _null = require_null();
@@ -2817,7 +2805,7 @@ var require_tags = /* @__PURE__ */ __commonJSMin(((exports) => {
2817
2805
  exports.getTags = getTags;
2818
2806
  }));
2819
2807
  //#endregion
2820
- //#region ../../../node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/schema/Schema.js
2808
+ //#region ../../../node_modules/.bun/yaml@2.8.4/node_modules/yaml/dist/schema/Schema.js
2821
2809
  var require_Schema = /* @__PURE__ */ __commonJSMin(((exports) => {
2822
2810
  var identity = require_identity();
2823
2811
  var map = require_map();
@@ -2845,7 +2833,7 @@ var require_Schema = /* @__PURE__ */ __commonJSMin(((exports) => {
2845
2833
  };
2846
2834
  }));
2847
2835
  //#endregion
2848
- //#region ../../../node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/stringify/stringifyDocument.js
2836
+ //#region ../../../node_modules/.bun/yaml@2.8.4/node_modules/yaml/dist/stringify/stringifyDocument.js
2849
2837
  var require_stringifyDocument = /* @__PURE__ */ __commonJSMin(((exports) => {
2850
2838
  var identity = require_identity();
2851
2839
  var stringify = require_stringify();
@@ -2906,7 +2894,7 @@ var require_stringifyDocument = /* @__PURE__ */ __commonJSMin(((exports) => {
2906
2894
  exports.stringifyDocument = stringifyDocument;
2907
2895
  }));
2908
2896
  //#endregion
2909
- //#region ../../../node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/doc/Document.js
2897
+ //#region ../../../node_modules/.bun/yaml@2.8.4/node_modules/yaml/dist/doc/Document.js
2910
2898
  var require_Document = /* @__PURE__ */ __commonJSMin(((exports) => {
2911
2899
  var Alias = require_Alias();
2912
2900
  var Collection = require_Collection();
@@ -3187,7 +3175,7 @@ var require_Document = /* @__PURE__ */ __commonJSMin(((exports) => {
3187
3175
  exports.Document = Document;
3188
3176
  }));
3189
3177
  //#endregion
3190
- //#region ../../../node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/errors.js
3178
+ //#region ../../../node_modules/.bun/yaml@2.8.4/node_modules/yaml/dist/errors.js
3191
3179
  var require_errors = /* @__PURE__ */ __commonJSMin(((exports) => {
3192
3180
  var YAMLError = class extends Error {
3193
3181
  constructor(name, pos, code, message) {
@@ -3240,7 +3228,7 @@ var require_errors = /* @__PURE__ */ __commonJSMin(((exports) => {
3240
3228
  exports.prettifyError = prettifyError;
3241
3229
  }));
3242
3230
  //#endregion
3243
- //#region ../../../node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/compose/resolve-props.js
3231
+ //#region ../../../node_modules/.bun/yaml@2.8.4/node_modules/yaml/dist/compose/resolve-props.js
3244
3232
  var require_resolve_props = /* @__PURE__ */ __commonJSMin(((exports) => {
3245
3233
  function resolveProps(tokens, { flow, indicator, next, offset, onError, parentIndent, startOnNewline }) {
3246
3234
  let spaceBefore = false;
@@ -3347,7 +3335,7 @@ var require_resolve_props = /* @__PURE__ */ __commonJSMin(((exports) => {
3347
3335
  exports.resolveProps = resolveProps;
3348
3336
  }));
3349
3337
  //#endregion
3350
- //#region ../../../node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/compose/util-contains-newline.js
3338
+ //#region ../../../node_modules/.bun/yaml@2.8.4/node_modules/yaml/dist/compose/util-contains-newline.js
3351
3339
  var require_util_contains_newline = /* @__PURE__ */ __commonJSMin(((exports) => {
3352
3340
  function containsNewline(key) {
3353
3341
  if (!key) return null;
@@ -3376,7 +3364,7 @@ var require_util_contains_newline = /* @__PURE__ */ __commonJSMin(((exports) =>
3376
3364
  exports.containsNewline = containsNewline;
3377
3365
  }));
3378
3366
  //#endregion
3379
- //#region ../../../node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/compose/util-flow-indent-check.js
3367
+ //#region ../../../node_modules/.bun/yaml@2.8.4/node_modules/yaml/dist/compose/util-flow-indent-check.js
3380
3368
  var require_util_flow_indent_check = /* @__PURE__ */ __commonJSMin(((exports) => {
3381
3369
  var utilContainsNewline = require_util_contains_newline();
3382
3370
  function flowIndentCheck(indent, fc, onError) {
@@ -3388,7 +3376,7 @@ var require_util_flow_indent_check = /* @__PURE__ */ __commonJSMin(((exports) =>
3388
3376
  exports.flowIndentCheck = flowIndentCheck;
3389
3377
  }));
3390
3378
  //#endregion
3391
- //#region ../../../node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/compose/util-map-includes.js
3379
+ //#region ../../../node_modules/.bun/yaml@2.8.4/node_modules/yaml/dist/compose/util-map-includes.js
3392
3380
  var require_util_map_includes = /* @__PURE__ */ __commonJSMin(((exports) => {
3393
3381
  var identity = require_identity();
3394
3382
  function mapIncludes(ctx, items, search) {
@@ -3400,7 +3388,7 @@ var require_util_map_includes = /* @__PURE__ */ __commonJSMin(((exports) => {
3400
3388
  exports.mapIncludes = mapIncludes;
3401
3389
  }));
3402
3390
  //#endregion
3403
- //#region ../../../node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/compose/resolve-block-map.js
3391
+ //#region ../../../node_modules/.bun/yaml@2.8.4/node_modules/yaml/dist/compose/resolve-block-map.js
3404
3392
  var require_resolve_block_map = /* @__PURE__ */ __commonJSMin(((exports) => {
3405
3393
  var Pair = require_Pair();
3406
3394
  var YAMLMap = require_YAMLMap();
@@ -3484,7 +3472,7 @@ var require_resolve_block_map = /* @__PURE__ */ __commonJSMin(((exports) => {
3484
3472
  exports.resolveBlockMap = resolveBlockMap;
3485
3473
  }));
3486
3474
  //#endregion
3487
- //#region ../../../node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/compose/resolve-block-seq.js
3475
+ //#region ../../../node_modules/.bun/yaml@2.8.4/node_modules/yaml/dist/compose/resolve-block-seq.js
3488
3476
  var require_resolve_block_seq = /* @__PURE__ */ __commonJSMin(((exports) => {
3489
3477
  var YAMLSeq = require_YAMLSeq();
3490
3478
  var resolveProps = require_resolve_props();
@@ -3526,7 +3514,7 @@ var require_resolve_block_seq = /* @__PURE__ */ __commonJSMin(((exports) => {
3526
3514
  exports.resolveBlockSeq = resolveBlockSeq;
3527
3515
  }));
3528
3516
  //#endregion
3529
- //#region ../../../node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/compose/resolve-end.js
3517
+ //#region ../../../node_modules/.bun/yaml@2.8.4/node_modules/yaml/dist/compose/resolve-end.js
3530
3518
  var require_resolve_end = /* @__PURE__ */ __commonJSMin(((exports) => {
3531
3519
  function resolveEnd(end, offset, reqSpace, onError) {
3532
3520
  let comment = "";
@@ -3564,7 +3552,7 @@ var require_resolve_end = /* @__PURE__ */ __commonJSMin(((exports) => {
3564
3552
  exports.resolveEnd = resolveEnd;
3565
3553
  }));
3566
3554
  //#endregion
3567
- //#region ../../../node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/compose/resolve-flow-collection.js
3555
+ //#region ../../../node_modules/.bun/yaml@2.8.4/node_modules/yaml/dist/compose/resolve-flow-collection.js
3568
3556
  var require_resolve_flow_collection = /* @__PURE__ */ __commonJSMin(((exports) => {
3569
3557
  var identity = require_identity();
3570
3558
  var Pair = require_Pair();
@@ -3719,7 +3707,7 @@ var require_resolve_flow_collection = /* @__PURE__ */ __commonJSMin(((exports) =
3719
3707
  exports.resolveFlowCollection = resolveFlowCollection;
3720
3708
  }));
3721
3709
  //#endregion
3722
- //#region ../../../node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/compose/compose-collection.js
3710
+ //#region ../../../node_modules/.bun/yaml@2.8.4/node_modules/yaml/dist/compose/compose-collection.js
3723
3711
  var require_compose_collection = /* @__PURE__ */ __commonJSMin(((exports) => {
3724
3712
  var identity = require_identity();
3725
3713
  var Scalar = require_Scalar();
@@ -3771,7 +3759,7 @@ var require_compose_collection = /* @__PURE__ */ __commonJSMin(((exports) => {
3771
3759
  exports.composeCollection = composeCollection;
3772
3760
  }));
3773
3761
  //#endregion
3774
- //#region ../../../node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/compose/resolve-block-scalar.js
3762
+ //#region ../../../node_modules/.bun/yaml@2.8.4/node_modules/yaml/dist/compose/resolve-block-scalar.js
3775
3763
  var require_resolve_block_scalar = /* @__PURE__ */ __commonJSMin(((exports) => {
3776
3764
  var Scalar = require_Scalar();
3777
3765
  function resolveBlockScalar(ctx, scalar, onError) {
@@ -3947,7 +3935,7 @@ var require_resolve_block_scalar = /* @__PURE__ */ __commonJSMin(((exports) => {
3947
3935
  exports.resolveBlockScalar = resolveBlockScalar;
3948
3936
  }));
3949
3937
  //#endregion
3950
- //#region ../../../node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/compose/resolve-flow-scalar.js
3938
+ //#region ../../../node_modules/.bun/yaml@2.8.4/node_modules/yaml/dist/compose/resolve-flow-scalar.js
3951
3939
  var require_resolve_flow_scalar = /* @__PURE__ */ __commonJSMin(((exports) => {
3952
3940
  var Scalar = require_Scalar();
3953
3941
  var resolveEnd = require_resolve_end();
@@ -4081,11 +4069,7 @@ var require_resolve_flow_scalar = /* @__PURE__ */ __commonJSMin(((exports) => {
4081
4069
  next = source[++i + 1];
4082
4070
  while (next === " " || next === " ") next = source[++i + 1];
4083
4071
  } else if (next === "x" || next === "u" || next === "U") {
4084
- const length = {
4085
- x: 2,
4086
- u: 4,
4087
- U: 8
4088
- }[next];
4072
+ const length = next === "x" ? 2 : next === "u" ? 4 : 8;
4089
4073
  res += parseCharCode(source, i + 1, length, onError);
4090
4074
  i += length;
4091
4075
  } else {
@@ -4145,17 +4129,18 @@ var require_resolve_flow_scalar = /* @__PURE__ */ __commonJSMin(((exports) => {
4145
4129
  function parseCharCode(source, offset, length, onError) {
4146
4130
  const cc = source.substr(offset, length);
4147
4131
  const code = cc.length === length && /^[0-9a-fA-F]+$/.test(cc) ? parseInt(cc, 16) : NaN;
4148
- if (isNaN(code)) {
4132
+ try {
4133
+ return String.fromCodePoint(code);
4134
+ } catch {
4149
4135
  const raw = source.substr(offset - 2, length + 2);
4150
4136
  onError(offset - 2, "BAD_DQ_ESCAPE", `Invalid escape sequence ${raw}`);
4151
4137
  return raw;
4152
4138
  }
4153
- return String.fromCodePoint(code);
4154
4139
  }
4155
4140
  exports.resolveFlowScalar = resolveFlowScalar;
4156
4141
  }));
4157
4142
  //#endregion
4158
- //#region ../../../node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/compose/compose-scalar.js
4143
+ //#region ../../../node_modules/.bun/yaml@2.8.4/node_modules/yaml/dist/compose/compose-scalar.js
4159
4144
  var require_compose_scalar = /* @__PURE__ */ __commonJSMin(((exports) => {
4160
4145
  var identity = require_identity();
4161
4146
  var Scalar = require_Scalar();
@@ -4214,7 +4199,7 @@ var require_compose_scalar = /* @__PURE__ */ __commonJSMin(((exports) => {
4214
4199
  exports.composeScalar = composeScalar;
4215
4200
  }));
4216
4201
  //#endregion
4217
- //#region ../../../node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/compose/util-empty-scalar-position.js
4202
+ //#region ../../../node_modules/.bun/yaml@2.8.4/node_modules/yaml/dist/compose/util-empty-scalar-position.js
4218
4203
  var require_util_empty_scalar_position = /* @__PURE__ */ __commonJSMin(((exports) => {
4219
4204
  function emptyScalarPosition(offset, before, pos) {
4220
4205
  if (before) {
@@ -4241,7 +4226,7 @@ var require_util_empty_scalar_position = /* @__PURE__ */ __commonJSMin(((exports
4241
4226
  exports.emptyScalarPosition = emptyScalarPosition;
4242
4227
  }));
4243
4228
  //#endregion
4244
- //#region ../../../node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/compose/compose-node.js
4229
+ //#region ../../../node_modules/.bun/yaml@2.8.4/node_modules/yaml/dist/compose/compose-node.js
4245
4230
  var require_compose_node = /* @__PURE__ */ __commonJSMin(((exports) => {
4246
4231
  var Alias = require_Alias();
4247
4232
  var identity = require_identity();
@@ -4330,7 +4315,7 @@ var require_compose_node = /* @__PURE__ */ __commonJSMin(((exports) => {
4330
4315
  exports.composeNode = composeNode;
4331
4316
  }));
4332
4317
  //#endregion
4333
- //#region ../../../node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/compose/compose-doc.js
4318
+ //#region ../../../node_modules/.bun/yaml@2.8.4/node_modules/yaml/dist/compose/compose-doc.js
4334
4319
  var require_compose_doc = /* @__PURE__ */ __commonJSMin(((exports) => {
4335
4320
  var Document = require_Document();
4336
4321
  var composeNode = require_compose_node();
@@ -4372,7 +4357,7 @@ var require_compose_doc = /* @__PURE__ */ __commonJSMin(((exports) => {
4372
4357
  exports.composeDoc = composeDoc;
4373
4358
  }));
4374
4359
  //#endregion
4375
- //#region ../../../node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/compose/composer.js
4360
+ //#region ../../../node_modules/.bun/yaml@2.8.4/node_modules/yaml/dist/compose/composer.js
4376
4361
  var require_composer = /* @__PURE__ */ __commonJSMin(((exports) => {
4377
4362
  var node_process$1 = __require("process");
4378
4363
  var directives = require_directives();
@@ -4570,7 +4555,7 @@ var require_composer = /* @__PURE__ */ __commonJSMin(((exports) => {
4570
4555
  exports.Composer = Composer;
4571
4556
  }));
4572
4557
  //#endregion
4573
- //#region ../../../node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/parse/cst-scalar.js
4558
+ //#region ../../../node_modules/.bun/yaml@2.8.4/node_modules/yaml/dist/parse/cst-scalar.js
4574
4559
  var require_cst_scalar = /* @__PURE__ */ __commonJSMin(((exports) => {
4575
4560
  var resolveBlockScalar = require_resolve_block_scalar();
4576
4561
  var resolveFlowScalar = require_resolve_flow_scalar();
@@ -4837,7 +4822,7 @@ var require_cst_scalar = /* @__PURE__ */ __commonJSMin(((exports) => {
4837
4822
  exports.setScalarValue = setScalarValue;
4838
4823
  }));
4839
4824
  //#endregion
4840
- //#region ../../../node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/parse/cst-stringify.js
4825
+ //#region ../../../node_modules/.bun/yaml@2.8.4/node_modules/yaml/dist/parse/cst-stringify.js
4841
4826
  var require_cst_stringify = /* @__PURE__ */ __commonJSMin(((exports) => {
4842
4827
  /**
4843
4828
  * Stringify a CST document, token, or collection item
@@ -4888,7 +4873,7 @@ var require_cst_stringify = /* @__PURE__ */ __commonJSMin(((exports) => {
4888
4873
  exports.stringify = stringify;
4889
4874
  }));
4890
4875
  //#endregion
4891
- //#region ../../../node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/parse/cst-visit.js
4876
+ //#region ../../../node_modules/.bun/yaml@2.8.4/node_modules/yaml/dist/parse/cst-visit.js
4892
4877
  var require_cst_visit = /* @__PURE__ */ __commonJSMin(((exports) => {
4893
4878
  const BREAK = Symbol("break visit");
4894
4879
  const SKIP = Symbol("skip children");
@@ -4979,7 +4964,7 @@ var require_cst_visit = /* @__PURE__ */ __commonJSMin(((exports) => {
4979
4964
  exports.visit = visit;
4980
4965
  }));
4981
4966
  //#endregion
4982
- //#region ../../../node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/parse/cst.js
4967
+ //#region ../../../node_modules/.bun/yaml@2.8.4/node_modules/yaml/dist/parse/cst.js
4983
4968
  var require_cst = /* @__PURE__ */ __commonJSMin(((exports) => {
4984
4969
  var cstScalar = require_cst_scalar();
4985
4970
  var cstStringify = require_cst_stringify();
@@ -5058,7 +5043,7 @@ var require_cst = /* @__PURE__ */ __commonJSMin(((exports) => {
5058
5043
  exports.tokenType = tokenType;
5059
5044
  }));
5060
5045
  //#endregion
5061
- //#region ../../../node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/parse/lexer.js
5046
+ //#region ../../../node_modules/.bun/yaml@2.8.4/node_modules/yaml/dist/parse/lexer.js
5062
5047
  var require_lexer = /* @__PURE__ */ __commonJSMin(((exports) => {
5063
5048
  var cst = require_cst();
5064
5049
  function isEmpty(ch) {
@@ -5577,7 +5562,7 @@ var require_lexer = /* @__PURE__ */ __commonJSMin(((exports) => {
5577
5562
  exports.Lexer = Lexer;
5578
5563
  }));
5579
5564
  //#endregion
5580
- //#region ../../../node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/parse/line-counter.js
5565
+ //#region ../../../node_modules/.bun/yaml@2.8.4/node_modules/yaml/dist/parse/line-counter.js
5581
5566
  var require_line_counter = /* @__PURE__ */ __commonJSMin(((exports) => {
5582
5567
  /**
5583
5568
  * Tracks newlines during parsing in order to provide an efficient API for
@@ -5624,7 +5609,7 @@ var require_line_counter = /* @__PURE__ */ __commonJSMin(((exports) => {
5624
5609
  exports.LineCounter = LineCounter;
5625
5610
  }));
5626
5611
  //#endregion
5627
- //#region ../../../node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/parse/parser.js
5612
+ //#region ../../../node_modules/.bun/yaml@2.8.4/node_modules/yaml/dist/parse/parser.js
5628
5613
  var require_parser = /* @__PURE__ */ __commonJSMin(((exports) => {
5629
5614
  var node_process = __require("process");
5630
5615
  var cst = require_cst();
@@ -6483,7 +6468,7 @@ var require_parser = /* @__PURE__ */ __commonJSMin(((exports) => {
6483
6468
  exports.Parser = Parser;
6484
6469
  }));
6485
6470
  //#endregion
6486
- //#region ../../../node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/public-api.js
6471
+ //#region ../../../node_modules/.bun/yaml@2.8.4/node_modules/yaml/dist/public-api.js
6487
6472
  var require_public_api = /* @__PURE__ */ __commonJSMin(((exports) => {
6488
6473
  var composer = require_composer();
6489
6474
  var Document = require_Document();
@@ -6570,7 +6555,7 @@ var require_public_api = /* @__PURE__ */ __commonJSMin(((exports) => {
6570
6555
  exports.stringify = stringify;
6571
6556
  }));
6572
6557
  //#endregion
6573
- //#region ../../adapter/src/asset-fs.ts
6558
+ //#region ../../common/src/text.ts
6574
6559
  var import_dist = (/* @__PURE__ */ __commonJSMin(((exports) => {
6575
6560
  var composer = require_composer();
6576
6561
  var Document = require_Document();
@@ -6618,6 +6603,69 @@ var import_dist = (/* @__PURE__ */ __commonJSMin(((exports) => {
6618
6603
  exports.visitAsync = visit.visitAsync;
6619
6604
  })))();
6620
6605
  /**
6606
+ * Small text-normalization helpers used across packages that parse
6607
+ * user-authored files. Lives in `common` so core front-matter parsing and
6608
+ * the adapter SDK's asset-fs helpers can share one definition — Windows
6609
+ * line endings or a stray BOM shouldn't cause divergent behavior across
6610
+ * readers.
6611
+ */
6612
+ /**
6613
+ * Strip a leading UTF-8 BOM and convert any `\r\n` / `\r` line endings to
6614
+ * `\n`. Idempotent. Returns the string unchanged if already normalized.
6615
+ */
6616
+ function normalizeLineEndings(raw) {
6617
+ return raw.replace(/^\uFEFF/, "").replace(/\r\n/g, "\n").replace(/\r/g, "\n");
6618
+ }
6619
+ //#endregion
6620
+ //#region ../../common/src/front-matter.ts
6621
+ /**
6622
+ * Split a string into a body without front matter and the parsed YAML
6623
+ * front-matter metadata, when present.
6624
+ *
6625
+ * Used by:
6626
+ * - the adapter SDK's `splitAssetContent` (and via it, every adapter's
6627
+ * read path) to recover the body + metadata from on-disk asset files.
6628
+ * - core's materialize skip-if-identical compare to normalize the
6629
+ * candidate write content the same way the read path would, so the
6630
+ * body comparison is symmetric.
6631
+ *
6632
+ * Lives in `common` because both the adapter SDK and `core` need
6633
+ * identical splitting semantics. A core-side implementation that
6634
+ * imported `splitAssetContent` from the adapter SDK directly would
6635
+ * pull `yaml` and friends into `core`'s runtime graph, which collides
6636
+ * with `Bun.build` when the CLI's adapter integration tests bundle the
6637
+ * same source files in the same process. Putting the primitive here
6638
+ * means both packages get the same code without a cross-package value
6639
+ * import.
6640
+ *
6641
+ * Returns `{ content: <normalized raw> }` when no front matter is
6642
+ * detected or the YAML is malformed.
6643
+ *
6644
+ * Known limitation: the regex below is non-greedy, so a body that
6645
+ * legitimately contains a literal `---` terminator line will be split
6646
+ * at the first match. Skills and commands rarely contain frontmatter-
6647
+ * shaped content inside their bodies, so in practice this is benign;
6648
+ * a parser swap (e.g., `gray-matter`) is the right fix when needed.
6649
+ */
6650
+ const FRONT_MATTER_RE = /^---\n([\s\S]*?)\n---\n?([\s\S]*)$/;
6651
+ function splitFrontMatter(raw) {
6652
+ const normalized = normalizeLineEndings(raw);
6653
+ const match = normalized.match(FRONT_MATTER_RE);
6654
+ if (!match) return { content: normalized };
6655
+ try {
6656
+ const parsed = (0, import_dist.parse)(match[1] ?? "");
6657
+ if (parsed && typeof parsed === "object" && !Array.isArray(parsed)) return {
6658
+ content: match[2] ?? "",
6659
+ metadata: parsed
6660
+ };
6661
+ return { content: normalized };
6662
+ } catch {
6663
+ return { content: normalized };
6664
+ }
6665
+ }
6666
+ //#endregion
6667
+ //#region ../../adapter/src/asset-fs.ts
6668
+ /**
6621
6669
  * Write `body` to `path.file`, prepending YAML front-matter assembled from
6622
6670
  * `metadata` when non-empty. Creates parent directories. Overwrites
6623
6671
  * unconditionally (idempotent by contract — see Adjustment B).
@@ -6650,7 +6698,6 @@ async function deleteAssetFile(path) {
6650
6698
  await rm(path.file, { force: true });
6651
6699
  await rm(`${path.file}.meta.json`, { force: true });
6652
6700
  }
6653
- const FRONT_MATTER_RE = /^---\n([\s\S]*?)\n---\n?([\s\S]*)$/;
6654
6701
  /**
6655
6702
  * Assemble a full file string from optional front-matter metadata + body.
6656
6703
  * When `body` already contains a front-matter block, the two are merged
@@ -6682,28 +6729,14 @@ function assembleAssetContent(body, metadata) {
6682
6729
  * the raw string as `content` when no front-matter is detected. Malformed
6683
6730
  * YAML falls back to "no front-matter."
6684
6731
  *
6685
- * Known limitation (tracked as a post-alpha TODO see plan F10): the regex
6686
- * below is non-greedy, so if a body legitimately contains a literal line of
6687
- * exactly `---` followed by content and another `---` line, the first
6688
- * terminator wins and the body will be split in the wrong place. Skills and
6689
- * commands rarely include frontmatter-shaped content inside their bodies,
6690
- * so in practice this is benign — but replacing the regex with `gray-matter`
6691
- * or an equivalent well-tested parser is the right fix.
6732
+ * Thin re-export over `@agent-facets/common`'s `splitFrontMatter` so the
6733
+ * adapter SDK and `core` share one canonical implementation. Kept as a
6734
+ * named export here because adapter authors may import it directly when
6735
+ * they customize their read path; `common` is bundled into the published
6736
+ * adapter SDK so this stays a leaf import for consumers.
6692
6737
  */
6693
6738
  function splitAssetContent(raw) {
6694
- const normalized = normalizeLineEndings(raw);
6695
- const match = normalized.match(FRONT_MATTER_RE);
6696
- if (!match) return { content: normalized };
6697
- try {
6698
- const parsed = (0, import_dist.parse)(match[1] ?? "");
6699
- if (parsed && typeof parsed === "object" && !Array.isArray(parsed)) return {
6700
- content: match[2] ?? "",
6701
- metadata: parsed
6702
- };
6703
- return { content: normalized };
6704
- } catch {
6705
- return { content: normalized };
6706
- }
6739
+ return splitFrontMatter(raw);
6707
6740
  }
6708
6741
  //#endregion
6709
6742
  //#region ../../adapter/src/define-adapter.ts
package/package.json CHANGED
@@ -5,7 +5,7 @@
5
5
  "url": "https://github.com/agent-facets/facets",
6
6
  "directory": "packages/adapters/claude-code"
7
7
  },
8
- "version": "0.4.4",
8
+ "version": "0.4.6",
9
9
  "type": "module",
10
10
  "files": [
11
11
  "dist"