get-tbd 0.1.27 → 0.1.28

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/tbd CHANGED
@@ -6959,7 +6959,7 @@ const noopLogger = {
6959
6959
  };
6960
6960
 
6961
6961
  //#endregion
6962
- //#region ../../node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/nodes/identity.js
6962
+ //#region ../../node_modules/.pnpm/yaml@2.8.4/node_modules/yaml/dist/nodes/identity.js
6963
6963
  var require_identity = /* @__PURE__ */ __commonJSMin(((exports) => {
6964
6964
  const ALIAS = Symbol.for("yaml.alias");
6965
6965
  const DOC = Symbol.for("yaml.document");
@@ -7010,7 +7010,7 @@ var require_identity = /* @__PURE__ */ __commonJSMin(((exports) => {
7010
7010
  }));
7011
7011
 
7012
7012
  //#endregion
7013
- //#region ../../node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/visit.js
7013
+ //#region ../../node_modules/.pnpm/yaml@2.8.4/node_modules/yaml/dist/visit.js
7014
7014
  var require_visit = /* @__PURE__ */ __commonJSMin(((exports) => {
7015
7015
  var identity = require_identity();
7016
7016
  const BREAK = Symbol("break visit");
@@ -7201,7 +7201,7 @@ var require_visit = /* @__PURE__ */ __commonJSMin(((exports) => {
7201
7201
  }));
7202
7202
 
7203
7203
  //#endregion
7204
- //#region ../../node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/doc/directives.js
7204
+ //#region ../../node_modules/.pnpm/yaml@2.8.4/node_modules/yaml/dist/doc/directives.js
7205
7205
  var require_directives = /* @__PURE__ */ __commonJSMin(((exports) => {
7206
7206
  var identity = require_identity();
7207
7207
  var visit = require_visit();
@@ -7367,7 +7367,7 @@ var require_directives = /* @__PURE__ */ __commonJSMin(((exports) => {
7367
7367
  }));
7368
7368
 
7369
7369
  //#endregion
7370
- //#region ../../node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/doc/anchors.js
7370
+ //#region ../../node_modules/.pnpm/yaml@2.8.4/node_modules/yaml/dist/doc/anchors.js
7371
7371
  var require_anchors = /* @__PURE__ */ __commonJSMin(((exports) => {
7372
7372
  var identity = require_identity();
7373
7373
  var visit = require_visit();
@@ -7430,7 +7430,7 @@ var require_anchors = /* @__PURE__ */ __commonJSMin(((exports) => {
7430
7430
  }));
7431
7431
 
7432
7432
  //#endregion
7433
- //#region ../../node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/doc/applyReviver.js
7433
+ //#region ../../node_modules/.pnpm/yaml@2.8.4/node_modules/yaml/dist/doc/applyReviver.js
7434
7434
  var require_applyReviver = /* @__PURE__ */ __commonJSMin(((exports) => {
7435
7435
  /**
7436
7436
  * Applies the JSON.parse reviver algorithm as defined in the ECMA-262 spec,
@@ -7471,7 +7471,7 @@ var require_applyReviver = /* @__PURE__ */ __commonJSMin(((exports) => {
7471
7471
  }));
7472
7472
 
7473
7473
  //#endregion
7474
- //#region ../../node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/nodes/toJS.js
7474
+ //#region ../../node_modules/.pnpm/yaml@2.8.4/node_modules/yaml/dist/nodes/toJS.js
7475
7475
  var require_toJS = /* @__PURE__ */ __commonJSMin(((exports) => {
7476
7476
  var identity = require_identity();
7477
7477
  /**
@@ -7509,7 +7509,7 @@ var require_toJS = /* @__PURE__ */ __commonJSMin(((exports) => {
7509
7509
  }));
7510
7510
 
7511
7511
  //#endregion
7512
- //#region ../../node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/nodes/Node.js
7512
+ //#region ../../node_modules/.pnpm/yaml@2.8.4/node_modules/yaml/dist/nodes/Node.js
7513
7513
  var require_Node = /* @__PURE__ */ __commonJSMin(((exports) => {
7514
7514
  var applyReviver = require_applyReviver();
7515
7515
  var identity = require_identity();
@@ -7544,7 +7544,7 @@ var require_Node = /* @__PURE__ */ __commonJSMin(((exports) => {
7544
7544
  }));
7545
7545
 
7546
7546
  //#endregion
7547
- //#region ../../node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/nodes/Alias.js
7547
+ //#region ../../node_modules/.pnpm/yaml@2.8.4/node_modules/yaml/dist/nodes/Alias.js
7548
7548
  var require_Alias = /* @__PURE__ */ __commonJSMin(((exports) => {
7549
7549
  var anchors = require_anchors();
7550
7550
  var visit = require_visit();
@@ -7564,6 +7564,7 @@ var require_Alias = /* @__PURE__ */ __commonJSMin(((exports) => {
7564
7564
  * instance of the `source` anchor before this node.
7565
7565
  */
7566
7566
  resolve(doc, ctx) {
7567
+ if (ctx?.maxAliasCount === 0) throw new ReferenceError("Alias resolution is disabled");
7567
7568
  let nodes;
7568
7569
  if (ctx?.aliasResolveCache) nodes = ctx.aliasResolveCache;
7569
7570
  else {
@@ -7638,7 +7639,7 @@ var require_Alias = /* @__PURE__ */ __commonJSMin(((exports) => {
7638
7639
  }));
7639
7640
 
7640
7641
  //#endregion
7641
- //#region ../../node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/nodes/Scalar.js
7642
+ //#region ../../node_modules/.pnpm/yaml@2.8.4/node_modules/yaml/dist/nodes/Scalar.js
7642
7643
  var require_Scalar = /* @__PURE__ */ __commonJSMin(((exports) => {
7643
7644
  var identity = require_identity();
7644
7645
  var Node = require_Node();
@@ -7666,7 +7667,7 @@ var require_Scalar = /* @__PURE__ */ __commonJSMin(((exports) => {
7666
7667
  }));
7667
7668
 
7668
7669
  //#endregion
7669
- //#region ../../node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/doc/createNode.js
7670
+ //#region ../../node_modules/.pnpm/yaml@2.8.4/node_modules/yaml/dist/doc/createNode.js
7670
7671
  var require_createNode = /* @__PURE__ */ __commonJSMin(((exports) => {
7671
7672
  var Alias = require_Alias();
7672
7673
  var identity = require_identity();
@@ -7730,7 +7731,7 @@ var require_createNode = /* @__PURE__ */ __commonJSMin(((exports) => {
7730
7731
  }));
7731
7732
 
7732
7733
  //#endregion
7733
- //#region ../../node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/nodes/Collection.js
7734
+ //#region ../../node_modules/.pnpm/yaml@2.8.4/node_modules/yaml/dist/nodes/Collection.js
7734
7735
  var require_Collection = /* @__PURE__ */ __commonJSMin(((exports) => {
7735
7736
  var createNode = require_createNode();
7736
7737
  var identity = require_identity();
@@ -7852,7 +7853,7 @@ var require_Collection = /* @__PURE__ */ __commonJSMin(((exports) => {
7852
7853
  }));
7853
7854
 
7854
7855
  //#endregion
7855
- //#region ../../node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/stringify/stringifyComment.js
7856
+ //#region ../../node_modules/.pnpm/yaml@2.8.4/node_modules/yaml/dist/stringify/stringifyComment.js
7856
7857
  var require_stringifyComment = /* @__PURE__ */ __commonJSMin(((exports) => {
7857
7858
  /**
7858
7859
  * Stringifies a comment.
@@ -7873,7 +7874,7 @@ var require_stringifyComment = /* @__PURE__ */ __commonJSMin(((exports) => {
7873
7874
  }));
7874
7875
 
7875
7876
  //#endregion
7876
- //#region ../../node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/stringify/foldFlowLines.js
7877
+ //#region ../../node_modules/.pnpm/yaml@2.8.4/node_modules/yaml/dist/stringify/foldFlowLines.js
7877
7878
  var require_foldFlowLines = /* @__PURE__ */ __commonJSMin(((exports) => {
7878
7879
  const FOLD_FLOW = "flow";
7879
7880
  const FOLD_BLOCK = "block";
@@ -7990,7 +7991,7 @@ var require_foldFlowLines = /* @__PURE__ */ __commonJSMin(((exports) => {
7990
7991
  }));
7991
7992
 
7992
7993
  //#endregion
7993
- //#region ../../node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/stringify/stringifyString.js
7994
+ //#region ../../node_modules/.pnpm/yaml@2.8.4/node_modules/yaml/dist/stringify/stringifyString.js
7994
7995
  var require_stringifyString = /* @__PURE__ */ __commonJSMin(((exports) => {
7995
7996
  var Scalar = require_Scalar();
7996
7997
  var foldFlowLines = require_foldFlowLines();
@@ -8215,7 +8216,7 @@ var require_stringifyString = /* @__PURE__ */ __commonJSMin(((exports) => {
8215
8216
  }));
8216
8217
 
8217
8218
  //#endregion
8218
- //#region ../../node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/stringify/stringify.js
8219
+ //#region ../../node_modules/.pnpm/yaml@2.8.4/node_modules/yaml/dist/stringify/stringify.js
8219
8220
  var require_stringify = /* @__PURE__ */ __commonJSMin(((exports) => {
8220
8221
  var anchors = require_anchors();
8221
8222
  var identity = require_identity();
@@ -8238,6 +8239,7 @@ var require_stringify = /* @__PURE__ */ __commonJSMin(((exports) => {
8238
8239
  nullStr: "null",
8239
8240
  simpleKeys: false,
8240
8241
  singleQuote: null,
8242
+ trailingComma: false,
8241
8243
  trueStr: "true",
8242
8244
  verifyAliasOrder: true
8243
8245
  }, doc.schema.toStringOptions, options);
@@ -8323,7 +8325,7 @@ var require_stringify = /* @__PURE__ */ __commonJSMin(((exports) => {
8323
8325
  }));
8324
8326
 
8325
8327
  //#endregion
8326
- //#region ../../node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/stringify/stringifyPair.js
8328
+ //#region ../../node_modules/.pnpm/yaml@2.8.4/node_modules/yaml/dist/stringify/stringifyPair.js
8327
8329
  var require_stringifyPair = /* @__PURE__ */ __commonJSMin(((exports) => {
8328
8330
  var identity = require_identity();
8329
8331
  var Scalar = require_Scalar();
@@ -8421,7 +8423,7 @@ var require_stringifyPair = /* @__PURE__ */ __commonJSMin(((exports) => {
8421
8423
  }));
8422
8424
 
8423
8425
  //#endregion
8424
- //#region ../../node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/log.js
8426
+ //#region ../../node_modules/.pnpm/yaml@2.8.4/node_modules/yaml/dist/log.js
8425
8427
  var require_log = /* @__PURE__ */ __commonJSMin(((exports) => {
8426
8428
  var node_process$2 = __require("process");
8427
8429
  function debug(logLevel, ...messages) {
@@ -8436,7 +8438,7 @@ var require_log = /* @__PURE__ */ __commonJSMin(((exports) => {
8436
8438
  }));
8437
8439
 
8438
8440
  //#endregion
8439
- //#region ../../node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/schema/yaml-1.1/merge.js
8441
+ //#region ../../node_modules/.pnpm/yaml@2.8.4/node_modules/yaml/dist/schema/yaml-1.1/merge.js
8440
8442
  var require_merge = /* @__PURE__ */ __commonJSMin(((exports) => {
8441
8443
  var identity = require_identity();
8442
8444
  var Scalar = require_Scalar();
@@ -8451,13 +8453,13 @@ var require_merge = /* @__PURE__ */ __commonJSMin(((exports) => {
8451
8453
  };
8452
8454
  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);
8453
8455
  function addMergeToJSMap(ctx, map, value) {
8454
- value = ctx && identity.isAlias(value) ? value.resolve(ctx.doc) : value;
8455
- if (identity.isSeq(value)) for (const it of value.items) mergeValue(ctx, map, it);
8456
- else if (Array.isArray(value)) for (const it of value) mergeValue(ctx, map, it);
8457
- else mergeValue(ctx, map, value);
8456
+ const source = resolveAliasValue(ctx, value);
8457
+ if (identity.isSeq(source)) for (const it of source.items) mergeValue(ctx, map, it);
8458
+ else if (Array.isArray(source)) for (const it of source) mergeValue(ctx, map, it);
8459
+ else mergeValue(ctx, map, source);
8458
8460
  }
8459
8461
  function mergeValue(ctx, map, value) {
8460
- const source = ctx && identity.isAlias(value) ? value.resolve(ctx.doc) : value;
8462
+ const source = resolveAliasValue(ctx, value);
8461
8463
  if (!identity.isMap(source)) throw new Error("Merge sources must be maps or map aliases");
8462
8464
  const srcMap = source.toJSON(null, ctx, Map);
8463
8465
  for (const [key, value] of srcMap) if (map instanceof Map) {
@@ -8471,13 +8473,16 @@ var require_merge = /* @__PURE__ */ __commonJSMin(((exports) => {
8471
8473
  });
8472
8474
  return map;
8473
8475
  }
8476
+ function resolveAliasValue(ctx, value) {
8477
+ return ctx && identity.isAlias(value) ? value.resolve(ctx.doc, ctx) : value;
8478
+ }
8474
8479
  exports.addMergeToJSMap = addMergeToJSMap;
8475
8480
  exports.isMergeKey = isMergeKey;
8476
8481
  exports.merge = merge;
8477
8482
  }));
8478
8483
 
8479
8484
  //#endregion
8480
- //#region ../../node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/nodes/addPairToJSMap.js
8485
+ //#region ../../node_modules/.pnpm/yaml@2.8.4/node_modules/yaml/dist/nodes/addPairToJSMap.js
8481
8486
  var require_addPairToJSMap = /* @__PURE__ */ __commonJSMin(((exports) => {
8482
8487
  var log = require_log();
8483
8488
  var merge = require_merge();
@@ -8529,7 +8534,7 @@ var require_addPairToJSMap = /* @__PURE__ */ __commonJSMin(((exports) => {
8529
8534
  }));
8530
8535
 
8531
8536
  //#endregion
8532
- //#region ../../node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/nodes/Pair.js
8537
+ //#region ../../node_modules/.pnpm/yaml@2.8.4/node_modules/yaml/dist/nodes/Pair.js
8533
8538
  var require_Pair = /* @__PURE__ */ __commonJSMin(((exports) => {
8534
8539
  var createNode = require_createNode();
8535
8540
  var stringifyPair = require_stringifyPair();
@@ -8563,7 +8568,7 @@ var require_Pair = /* @__PURE__ */ __commonJSMin(((exports) => {
8563
8568
  }));
8564
8569
 
8565
8570
  //#endregion
8566
- //#region ../../node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/stringify/stringifyCollection.js
8571
+ //#region ../../node_modules/.pnpm/yaml@2.8.4/node_modules/yaml/dist/stringify/stringifyCollection.js
8567
8572
  var require_stringifyCollection = /* @__PURE__ */ __commonJSMin(((exports) => {
8568
8573
  var identity = require_identity();
8569
8574
  var stringify = require_stringify();
@@ -8647,9 +8652,13 @@ var require_stringifyCollection = /* @__PURE__ */ __commonJSMin(((exports) => {
8647
8652
  }
8648
8653
  if (comment) reqNewline = true;
8649
8654
  let str = stringify.stringify(item, itemCtx, () => comment = null);
8655
+ reqNewline || (reqNewline = lines.length > linesAtValue || str.includes("\n"));
8650
8656
  if (i < items.length - 1) str += ",";
8657
+ else if (ctx.options.trailingComma) {
8658
+ if (ctx.options.lineWidth > 0) reqNewline || (reqNewline = lines.reduce((sum, line) => sum + line.length + 2, 2) + (str.length + 2) > ctx.options.lineWidth);
8659
+ if (reqNewline) str += ",";
8660
+ }
8651
8661
  if (comment) str += stringifyComment.lineComment(str, itemIndent, commentString(comment));
8652
- if (!reqNewline && (lines.length > linesAtValue || str.includes("\n"))) reqNewline = true;
8653
8662
  lines.push(str);
8654
8663
  linesAtValue = lines.length;
8655
8664
  }
@@ -8678,7 +8687,7 @@ var require_stringifyCollection = /* @__PURE__ */ __commonJSMin(((exports) => {
8678
8687
  }));
8679
8688
 
8680
8689
  //#endregion
8681
- //#region ../../node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/nodes/YAMLMap.js
8690
+ //#region ../../node_modules/.pnpm/yaml@2.8.4/node_modules/yaml/dist/nodes/YAMLMap.js
8682
8691
  var require_YAMLMap = /* @__PURE__ */ __commonJSMin(((exports) => {
8683
8692
  var stringifyCollection = require_stringifyCollection();
8684
8693
  var addPairToJSMap = require_addPairToJSMap();
@@ -8788,7 +8797,7 @@ var require_YAMLMap = /* @__PURE__ */ __commonJSMin(((exports) => {
8788
8797
  }));
8789
8798
 
8790
8799
  //#endregion
8791
- //#region ../../node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/schema/common/map.js
8800
+ //#region ../../node_modules/.pnpm/yaml@2.8.4/node_modules/yaml/dist/schema/common/map.js
8792
8801
  var require_map = /* @__PURE__ */ __commonJSMin(((exports) => {
8793
8802
  var identity = require_identity();
8794
8803
  var YAMLMap = require_YAMLMap();
@@ -8807,7 +8816,7 @@ var require_map = /* @__PURE__ */ __commonJSMin(((exports) => {
8807
8816
  }));
8808
8817
 
8809
8818
  //#endregion
8810
- //#region ../../node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/nodes/YAMLSeq.js
8819
+ //#region ../../node_modules/.pnpm/yaml@2.8.4/node_modules/yaml/dist/nodes/YAMLSeq.js
8811
8820
  var require_YAMLSeq = /* @__PURE__ */ __commonJSMin(((exports) => {
8812
8821
  var createNode = require_createNode();
8813
8822
  var stringifyCollection = require_stringifyCollection();
@@ -8914,7 +8923,7 @@ var require_YAMLSeq = /* @__PURE__ */ __commonJSMin(((exports) => {
8914
8923
  }));
8915
8924
 
8916
8925
  //#endregion
8917
- //#region ../../node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/schema/common/seq.js
8926
+ //#region ../../node_modules/.pnpm/yaml@2.8.4/node_modules/yaml/dist/schema/common/seq.js
8918
8927
  var require_seq = /* @__PURE__ */ __commonJSMin(((exports) => {
8919
8928
  var identity = require_identity();
8920
8929
  var YAMLSeq = require_YAMLSeq();
@@ -8933,7 +8942,7 @@ var require_seq = /* @__PURE__ */ __commonJSMin(((exports) => {
8933
8942
  }));
8934
8943
 
8935
8944
  //#endregion
8936
- //#region ../../node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/schema/common/string.js
8945
+ //#region ../../node_modules/.pnpm/yaml@2.8.4/node_modules/yaml/dist/schema/common/string.js
8937
8946
  var require_string = /* @__PURE__ */ __commonJSMin(((exports) => {
8938
8947
  var stringifyString = require_stringifyString();
8939
8948
  const string = {
@@ -8950,7 +8959,7 @@ var require_string = /* @__PURE__ */ __commonJSMin(((exports) => {
8950
8959
  }));
8951
8960
 
8952
8961
  //#endregion
8953
- //#region ../../node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/schema/common/null.js
8962
+ //#region ../../node_modules/.pnpm/yaml@2.8.4/node_modules/yaml/dist/schema/common/null.js
8954
8963
  var require_null = /* @__PURE__ */ __commonJSMin(((exports) => {
8955
8964
  var Scalar = require_Scalar();
8956
8965
  const nullTag = {
@@ -8966,7 +8975,7 @@ var require_null = /* @__PURE__ */ __commonJSMin(((exports) => {
8966
8975
  }));
8967
8976
 
8968
8977
  //#endregion
8969
- //#region ../../node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/schema/core/bool.js
8978
+ //#region ../../node_modules/.pnpm/yaml@2.8.4/node_modules/yaml/dist/schema/core/bool.js
8970
8979
  var require_bool$1 = /* @__PURE__ */ __commonJSMin(((exports) => {
8971
8980
  var Scalar = require_Scalar();
8972
8981
  const boolTag = {
@@ -8986,14 +8995,14 @@ var require_bool$1 = /* @__PURE__ */ __commonJSMin(((exports) => {
8986
8995
  }));
8987
8996
 
8988
8997
  //#endregion
8989
- //#region ../../node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/stringify/stringifyNumber.js
8998
+ //#region ../../node_modules/.pnpm/yaml@2.8.4/node_modules/yaml/dist/stringify/stringifyNumber.js
8990
8999
  var require_stringifyNumber = /* @__PURE__ */ __commonJSMin(((exports) => {
8991
9000
  function stringifyNumber({ format, minFractionDigits, tag, value }) {
8992
9001
  if (typeof value === "bigint") return String(value);
8993
9002
  const num = typeof value === "number" ? value : Number(value);
8994
9003
  if (!isFinite(num)) return isNaN(num) ? ".nan" : num < 0 ? "-.inf" : ".inf";
8995
9004
  let n = Object.is(value, -0) ? "-0" : JSON.stringify(value);
8996
- if (!format && minFractionDigits && (!tag || tag === "tag:yaml.org,2002:float") && /^\d/.test(n)) {
9005
+ if (!format && minFractionDigits && (!tag || tag === "tag:yaml.org,2002:float") && /^-?\d/.test(n) && !n.includes("e")) {
8997
9006
  let i = n.indexOf(".");
8998
9007
  if (i < 0) {
8999
9008
  i = n.length;
@@ -9008,7 +9017,7 @@ var require_stringifyNumber = /* @__PURE__ */ __commonJSMin(((exports) => {
9008
9017
  }));
9009
9018
 
9010
9019
  //#endregion
9011
- //#region ../../node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/schema/core/float.js
9020
+ //#region ../../node_modules/.pnpm/yaml@2.8.4/node_modules/yaml/dist/schema/core/float.js
9012
9021
  var require_float$1 = /* @__PURE__ */ __commonJSMin(((exports) => {
9013
9022
  var Scalar = require_Scalar();
9014
9023
  var stringifyNumber = require_stringifyNumber();
@@ -9051,7 +9060,7 @@ var require_float$1 = /* @__PURE__ */ __commonJSMin(((exports) => {
9051
9060
  }));
9052
9061
 
9053
9062
  //#endregion
9054
- //#region ../../node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/schema/core/int.js
9063
+ //#region ../../node_modules/.pnpm/yaml@2.8.4/node_modules/yaml/dist/schema/core/int.js
9055
9064
  var require_int$1 = /* @__PURE__ */ __commonJSMin(((exports) => {
9056
9065
  var stringifyNumber = require_stringifyNumber();
9057
9066
  const intIdentify = (value) => typeof value === "bigint" || Number.isInteger(value);
@@ -9093,7 +9102,7 @@ var require_int$1 = /* @__PURE__ */ __commonJSMin(((exports) => {
9093
9102
  }));
9094
9103
 
9095
9104
  //#endregion
9096
- //#region ../../node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/schema/core/schema.js
9105
+ //#region ../../node_modules/.pnpm/yaml@2.8.4/node_modules/yaml/dist/schema/core/schema.js
9097
9106
  var require_schema$2 = /* @__PURE__ */ __commonJSMin(((exports) => {
9098
9107
  var map = require_map();
9099
9108
  var _null = require_null();
@@ -9119,7 +9128,7 @@ var require_schema$2 = /* @__PURE__ */ __commonJSMin(((exports) => {
9119
9128
  }));
9120
9129
 
9121
9130
  //#endregion
9122
- //#region ../../node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/schema/json/schema.js
9131
+ //#region ../../node_modules/.pnpm/yaml@2.8.4/node_modules/yaml/dist/schema/json/schema.js
9123
9132
  var require_schema$1 = /* @__PURE__ */ __commonJSMin(((exports) => {
9124
9133
  var Scalar = require_Scalar();
9125
9134
  var map = require_map();
@@ -9183,7 +9192,7 @@ var require_schema$1 = /* @__PURE__ */ __commonJSMin(((exports) => {
9183
9192
  }));
9184
9193
 
9185
9194
  //#endregion
9186
- //#region ../../node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/schema/yaml-1.1/binary.js
9195
+ //#region ../../node_modules/.pnpm/yaml@2.8.4/node_modules/yaml/dist/schema/yaml-1.1/binary.js
9187
9196
  var require_binary = /* @__PURE__ */ __commonJSMin(((exports) => {
9188
9197
  var node_buffer = __require("buffer");
9189
9198
  var Scalar = require_Scalar();
@@ -9233,7 +9242,7 @@ var require_binary = /* @__PURE__ */ __commonJSMin(((exports) => {
9233
9242
  }));
9234
9243
 
9235
9244
  //#endregion
9236
- //#region ../../node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/schema/yaml-1.1/pairs.js
9245
+ //#region ../../node_modules/.pnpm/yaml@2.8.4/node_modules/yaml/dist/schema/yaml-1.1/pairs.js
9237
9246
  var require_pairs = /* @__PURE__ */ __commonJSMin(((exports) => {
9238
9247
  var identity = require_identity();
9239
9248
  var Pair = require_Pair();
@@ -9294,7 +9303,7 @@ var require_pairs = /* @__PURE__ */ __commonJSMin(((exports) => {
9294
9303
  }));
9295
9304
 
9296
9305
  //#endregion
9297
- //#region ../../node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/schema/yaml-1.1/omap.js
9306
+ //#region ../../node_modules/.pnpm/yaml@2.8.4/node_modules/yaml/dist/schema/yaml-1.1/omap.js
9298
9307
  var require_omap = /* @__PURE__ */ __commonJSMin(((exports) => {
9299
9308
  var identity = require_identity();
9300
9309
  var toJS = require_toJS();
@@ -9358,7 +9367,7 @@ var require_omap = /* @__PURE__ */ __commonJSMin(((exports) => {
9358
9367
  }));
9359
9368
 
9360
9369
  //#endregion
9361
- //#region ../../node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/schema/yaml-1.1/bool.js
9370
+ //#region ../../node_modules/.pnpm/yaml@2.8.4/node_modules/yaml/dist/schema/yaml-1.1/bool.js
9362
9371
  var require_bool = /* @__PURE__ */ __commonJSMin(((exports) => {
9363
9372
  var Scalar = require_Scalar();
9364
9373
  function boolStringify({ value, source }, ctx) {
@@ -9386,7 +9395,7 @@ var require_bool = /* @__PURE__ */ __commonJSMin(((exports) => {
9386
9395
  }));
9387
9396
 
9388
9397
  //#endregion
9389
- //#region ../../node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/schema/yaml-1.1/float.js
9398
+ //#region ../../node_modules/.pnpm/yaml@2.8.4/node_modules/yaml/dist/schema/yaml-1.1/float.js
9390
9399
  var require_float = /* @__PURE__ */ __commonJSMin(((exports) => {
9391
9400
  var Scalar = require_Scalar();
9392
9401
  var stringifyNumber = require_stringifyNumber();
@@ -9432,7 +9441,7 @@ var require_float = /* @__PURE__ */ __commonJSMin(((exports) => {
9432
9441
  }));
9433
9442
 
9434
9443
  //#endregion
9435
- //#region ../../node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/schema/yaml-1.1/int.js
9444
+ //#region ../../node_modules/.pnpm/yaml@2.8.4/node_modules/yaml/dist/schema/yaml-1.1/int.js
9436
9445
  var require_int = /* @__PURE__ */ __commonJSMin(((exports) => {
9437
9446
  var stringifyNumber = require_stringifyNumber();
9438
9447
  const intIdentify = (value) => typeof value === "bigint" || Number.isInteger(value);
@@ -9508,7 +9517,7 @@ var require_int = /* @__PURE__ */ __commonJSMin(((exports) => {
9508
9517
  }));
9509
9518
 
9510
9519
  //#endregion
9511
- //#region ../../node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/schema/yaml-1.1/set.js
9520
+ //#region ../../node_modules/.pnpm/yaml@2.8.4/node_modules/yaml/dist/schema/yaml-1.1/set.js
9512
9521
  var require_set = /* @__PURE__ */ __commonJSMin(((exports) => {
9513
9522
  var identity = require_identity();
9514
9523
  var Pair = require_Pair();
@@ -9577,7 +9586,7 @@ var require_set = /* @__PURE__ */ __commonJSMin(((exports) => {
9577
9586
  }));
9578
9587
 
9579
9588
  //#endregion
9580
- //#region ../../node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/schema/yaml-1.1/timestamp.js
9589
+ //#region ../../node_modules/.pnpm/yaml@2.8.4/node_modules/yaml/dist/schema/yaml-1.1/timestamp.js
9581
9590
  var require_timestamp = /* @__PURE__ */ __commonJSMin(((exports) => {
9582
9591
  var stringifyNumber = require_stringifyNumber();
9583
9592
  /** Internal types handle bigint as number, because TS can't figure it out. */
@@ -9661,7 +9670,7 @@ var require_timestamp = /* @__PURE__ */ __commonJSMin(((exports) => {
9661
9670
  }));
9662
9671
 
9663
9672
  //#endregion
9664
- //#region ../../node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/schema/yaml-1.1/schema.js
9673
+ //#region ../../node_modules/.pnpm/yaml@2.8.4/node_modules/yaml/dist/schema/yaml-1.1/schema.js
9665
9674
  var require_schema = /* @__PURE__ */ __commonJSMin(((exports) => {
9666
9675
  var map = require_map();
9667
9676
  var _null = require_null();
@@ -9703,7 +9712,7 @@ var require_schema = /* @__PURE__ */ __commonJSMin(((exports) => {
9703
9712
  }));
9704
9713
 
9705
9714
  //#endregion
9706
- //#region ../../node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/schema/tags.js
9715
+ //#region ../../node_modules/.pnpm/yaml@2.8.4/node_modules/yaml/dist/schema/tags.js
9707
9716
  var require_tags = /* @__PURE__ */ __commonJSMin(((exports) => {
9708
9717
  var map = require_map();
9709
9718
  var _null = require_null();
@@ -9788,7 +9797,7 @@ var require_tags = /* @__PURE__ */ __commonJSMin(((exports) => {
9788
9797
  }));
9789
9798
 
9790
9799
  //#endregion
9791
- //#region ../../node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/schema/Schema.js
9800
+ //#region ../../node_modules/.pnpm/yaml@2.8.4/node_modules/yaml/dist/schema/Schema.js
9792
9801
  var require_Schema = /* @__PURE__ */ __commonJSMin(((exports) => {
9793
9802
  var identity = require_identity();
9794
9803
  var map = require_map();
@@ -9818,7 +9827,7 @@ var require_Schema = /* @__PURE__ */ __commonJSMin(((exports) => {
9818
9827
  }));
9819
9828
 
9820
9829
  //#endregion
9821
- //#region ../../node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/stringify/stringifyDocument.js
9830
+ //#region ../../node_modules/.pnpm/yaml@2.8.4/node_modules/yaml/dist/stringify/stringifyDocument.js
9822
9831
  var require_stringifyDocument = /* @__PURE__ */ __commonJSMin(((exports) => {
9823
9832
  var identity = require_identity();
9824
9833
  var stringify = require_stringify();
@@ -9880,7 +9889,7 @@ var require_stringifyDocument = /* @__PURE__ */ __commonJSMin(((exports) => {
9880
9889
  }));
9881
9890
 
9882
9891
  //#endregion
9883
- //#region ../../node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/doc/Document.js
9892
+ //#region ../../node_modules/.pnpm/yaml@2.8.4/node_modules/yaml/dist/doc/Document.js
9884
9893
  var require_Document = /* @__PURE__ */ __commonJSMin(((exports) => {
9885
9894
  var Alias = require_Alias();
9886
9895
  var Collection = require_Collection();
@@ -10162,7 +10171,7 @@ var require_Document = /* @__PURE__ */ __commonJSMin(((exports) => {
10162
10171
  }));
10163
10172
 
10164
10173
  //#endregion
10165
- //#region ../../node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/errors.js
10174
+ //#region ../../node_modules/.pnpm/yaml@2.8.4/node_modules/yaml/dist/errors.js
10166
10175
  var require_errors = /* @__PURE__ */ __commonJSMin(((exports) => {
10167
10176
  var YAMLError = class extends Error {
10168
10177
  constructor(name, pos, code, message) {
@@ -10216,7 +10225,7 @@ var require_errors = /* @__PURE__ */ __commonJSMin(((exports) => {
10216
10225
  }));
10217
10226
 
10218
10227
  //#endregion
10219
- //#region ../../node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/compose/resolve-props.js
10228
+ //#region ../../node_modules/.pnpm/yaml@2.8.4/node_modules/yaml/dist/compose/resolve-props.js
10220
10229
  var require_resolve_props = /* @__PURE__ */ __commonJSMin(((exports) => {
10221
10230
  function resolveProps(tokens, { flow, indicator, next, offset, onError, parentIndent, startOnNewline }) {
10222
10231
  let spaceBefore = false;
@@ -10324,7 +10333,7 @@ var require_resolve_props = /* @__PURE__ */ __commonJSMin(((exports) => {
10324
10333
  }));
10325
10334
 
10326
10335
  //#endregion
10327
- //#region ../../node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/compose/util-contains-newline.js
10336
+ //#region ../../node_modules/.pnpm/yaml@2.8.4/node_modules/yaml/dist/compose/util-contains-newline.js
10328
10337
  var require_util_contains_newline = /* @__PURE__ */ __commonJSMin(((exports) => {
10329
10338
  function containsNewline(key) {
10330
10339
  if (!key) return null;
@@ -10354,7 +10363,7 @@ var require_util_contains_newline = /* @__PURE__ */ __commonJSMin(((exports) =>
10354
10363
  }));
10355
10364
 
10356
10365
  //#endregion
10357
- //#region ../../node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/compose/util-flow-indent-check.js
10366
+ //#region ../../node_modules/.pnpm/yaml@2.8.4/node_modules/yaml/dist/compose/util-flow-indent-check.js
10358
10367
  var require_util_flow_indent_check = /* @__PURE__ */ __commonJSMin(((exports) => {
10359
10368
  var utilContainsNewline = require_util_contains_newline();
10360
10369
  function flowIndentCheck(indent, fc, onError) {
@@ -10367,7 +10376,7 @@ var require_util_flow_indent_check = /* @__PURE__ */ __commonJSMin(((exports) =>
10367
10376
  }));
10368
10377
 
10369
10378
  //#endregion
10370
- //#region ../../node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/compose/util-map-includes.js
10379
+ //#region ../../node_modules/.pnpm/yaml@2.8.4/node_modules/yaml/dist/compose/util-map-includes.js
10371
10380
  var require_util_map_includes = /* @__PURE__ */ __commonJSMin(((exports) => {
10372
10381
  var identity = require_identity();
10373
10382
  function mapIncludes(ctx, items, search) {
@@ -10380,7 +10389,7 @@ var require_util_map_includes = /* @__PURE__ */ __commonJSMin(((exports) => {
10380
10389
  }));
10381
10390
 
10382
10391
  //#endregion
10383
- //#region ../../node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/compose/resolve-block-map.js
10392
+ //#region ../../node_modules/.pnpm/yaml@2.8.4/node_modules/yaml/dist/compose/resolve-block-map.js
10384
10393
  var require_resolve_block_map = /* @__PURE__ */ __commonJSMin(((exports) => {
10385
10394
  var Pair = require_Pair();
10386
10395
  var YAMLMap = require_YAMLMap();
@@ -10465,7 +10474,7 @@ var require_resolve_block_map = /* @__PURE__ */ __commonJSMin(((exports) => {
10465
10474
  }));
10466
10475
 
10467
10476
  //#endregion
10468
- //#region ../../node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/compose/resolve-block-seq.js
10477
+ //#region ../../node_modules/.pnpm/yaml@2.8.4/node_modules/yaml/dist/compose/resolve-block-seq.js
10469
10478
  var require_resolve_block_seq = /* @__PURE__ */ __commonJSMin(((exports) => {
10470
10479
  var YAMLSeq = require_YAMLSeq();
10471
10480
  var resolveProps = require_resolve_props();
@@ -10508,7 +10517,7 @@ var require_resolve_block_seq = /* @__PURE__ */ __commonJSMin(((exports) => {
10508
10517
  }));
10509
10518
 
10510
10519
  //#endregion
10511
- //#region ../../node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/compose/resolve-end.js
10520
+ //#region ../../node_modules/.pnpm/yaml@2.8.4/node_modules/yaml/dist/compose/resolve-end.js
10512
10521
  var require_resolve_end = /* @__PURE__ */ __commonJSMin(((exports) => {
10513
10522
  function resolveEnd(end, offset, reqSpace, onError) {
10514
10523
  let comment = "";
@@ -10547,7 +10556,7 @@ var require_resolve_end = /* @__PURE__ */ __commonJSMin(((exports) => {
10547
10556
  }));
10548
10557
 
10549
10558
  //#endregion
10550
- //#region ../../node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/compose/resolve-flow-collection.js
10559
+ //#region ../../node_modules/.pnpm/yaml@2.8.4/node_modules/yaml/dist/compose/resolve-flow-collection.js
10551
10560
  var require_resolve_flow_collection = /* @__PURE__ */ __commonJSMin(((exports) => {
10552
10561
  var identity = require_identity();
10553
10562
  var Pair = require_Pair();
@@ -10703,7 +10712,7 @@ var require_resolve_flow_collection = /* @__PURE__ */ __commonJSMin(((exports) =
10703
10712
  }));
10704
10713
 
10705
10714
  //#endregion
10706
- //#region ../../node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/compose/compose-collection.js
10715
+ //#region ../../node_modules/.pnpm/yaml@2.8.4/node_modules/yaml/dist/compose/compose-collection.js
10707
10716
  var require_compose_collection = /* @__PURE__ */ __commonJSMin(((exports) => {
10708
10717
  var identity = require_identity();
10709
10718
  var Scalar = require_Scalar();
@@ -10756,7 +10765,7 @@ var require_compose_collection = /* @__PURE__ */ __commonJSMin(((exports) => {
10756
10765
  }));
10757
10766
 
10758
10767
  //#endregion
10759
- //#region ../../node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/compose/resolve-block-scalar.js
10768
+ //#region ../../node_modules/.pnpm/yaml@2.8.4/node_modules/yaml/dist/compose/resolve-block-scalar.js
10760
10769
  var require_resolve_block_scalar = /* @__PURE__ */ __commonJSMin(((exports) => {
10761
10770
  var Scalar = require_Scalar();
10762
10771
  function resolveBlockScalar(ctx, scalar, onError) {
@@ -10932,7 +10941,7 @@ var require_resolve_block_scalar = /* @__PURE__ */ __commonJSMin(((exports) => {
10932
10941
  }));
10933
10942
 
10934
10943
  //#endregion
10935
- //#region ../../node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/compose/resolve-flow-scalar.js
10944
+ //#region ../../node_modules/.pnpm/yaml@2.8.4/node_modules/yaml/dist/compose/resolve-flow-scalar.js
10936
10945
  var require_resolve_flow_scalar = /* @__PURE__ */ __commonJSMin(((exports) => {
10937
10946
  var Scalar = require_Scalar();
10938
10947
  var resolveEnd = require_resolve_end();
@@ -11064,11 +11073,7 @@ var require_resolve_flow_scalar = /* @__PURE__ */ __commonJSMin(((exports) => {
11064
11073
  next = source[++i + 1];
11065
11074
  while (next === " " || next === " ") next = source[++i + 1];
11066
11075
  } else if (next === "x" || next === "u" || next === "U") {
11067
- const length = {
11068
- x: 2,
11069
- u: 4,
11070
- U: 8
11071
- }[next];
11076
+ const length = next === "x" ? 2 : next === "u" ? 4 : 8;
11072
11077
  res += parseCharCode(source, i + 1, length, onError);
11073
11078
  i += length;
11074
11079
  } else {
@@ -11128,18 +11133,19 @@ var require_resolve_flow_scalar = /* @__PURE__ */ __commonJSMin(((exports) => {
11128
11133
  function parseCharCode(source, offset, length, onError) {
11129
11134
  const cc = source.substr(offset, length);
11130
11135
  const code = cc.length === length && /^[0-9a-fA-F]+$/.test(cc) ? parseInt(cc, 16) : NaN;
11131
- if (isNaN(code)) {
11136
+ try {
11137
+ return String.fromCodePoint(code);
11138
+ } catch {
11132
11139
  const raw = source.substr(offset - 2, length + 2);
11133
11140
  onError(offset - 2, "BAD_DQ_ESCAPE", `Invalid escape sequence ${raw}`);
11134
11141
  return raw;
11135
11142
  }
11136
- return String.fromCodePoint(code);
11137
11143
  }
11138
11144
  exports.resolveFlowScalar = resolveFlowScalar;
11139
11145
  }));
11140
11146
 
11141
11147
  //#endregion
11142
- //#region ../../node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/compose/compose-scalar.js
11148
+ //#region ../../node_modules/.pnpm/yaml@2.8.4/node_modules/yaml/dist/compose/compose-scalar.js
11143
11149
  var require_compose_scalar = /* @__PURE__ */ __commonJSMin(((exports) => {
11144
11150
  var identity = require_identity();
11145
11151
  var Scalar = require_Scalar();
@@ -11199,7 +11205,7 @@ var require_compose_scalar = /* @__PURE__ */ __commonJSMin(((exports) => {
11199
11205
  }));
11200
11206
 
11201
11207
  //#endregion
11202
- //#region ../../node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/compose/util-empty-scalar-position.js
11208
+ //#region ../../node_modules/.pnpm/yaml@2.8.4/node_modules/yaml/dist/compose/util-empty-scalar-position.js
11203
11209
  var require_util_empty_scalar_position = /* @__PURE__ */ __commonJSMin(((exports) => {
11204
11210
  function emptyScalarPosition(offset, before, pos) {
11205
11211
  if (before) {
@@ -11227,7 +11233,7 @@ var require_util_empty_scalar_position = /* @__PURE__ */ __commonJSMin(((exports
11227
11233
  }));
11228
11234
 
11229
11235
  //#endregion
11230
- //#region ../../node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/compose/compose-node.js
11236
+ //#region ../../node_modules/.pnpm/yaml@2.8.4/node_modules/yaml/dist/compose/compose-node.js
11231
11237
  var require_compose_node = /* @__PURE__ */ __commonJSMin(((exports) => {
11232
11238
  var Alias = require_Alias();
11233
11239
  var identity = require_identity();
@@ -11259,14 +11265,18 @@ var require_compose_node = /* @__PURE__ */ __commonJSMin(((exports) => {
11259
11265
  case "block-map":
11260
11266
  case "block-seq":
11261
11267
  case "flow-collection":
11262
- node = composeCollection.composeCollection(CN, ctx, token, props, onError);
11263
- if (anchor) node.anchor = anchor.source.substring(1);
11268
+ try {
11269
+ node = composeCollection.composeCollection(CN, ctx, token, props, onError);
11270
+ if (anchor) node.anchor = anchor.source.substring(1);
11271
+ } catch (error) {
11272
+ onError(token, "RESOURCE_EXHAUSTION", error instanceof Error ? error.message : String(error));
11273
+ }
11264
11274
  break;
11265
11275
  default:
11266
11276
  onError(token, "UNEXPECTED_TOKEN", token.type === "error" ? token.message : `Unsupported token (type: ${token.type})`);
11267
- node = composeEmptyNode(ctx, token.offset, void 0, null, props, onError);
11268
11277
  isSrcToken = false;
11269
11278
  }
11279
+ node ?? (node = composeEmptyNode(ctx, token.offset, void 0, null, props, onError));
11270
11280
  if (anchor && node.anchor === "") onError(anchor, "BAD_ALIAS", "Anchor cannot be an empty string");
11271
11281
  if (atKey && ctx.options.stringKeys && (!identity.isScalar(node) || typeof node.value !== "string" || node.tag && node.tag !== "tag:yaml.org,2002:str")) onError(tag ?? token, "NON_STRING_KEY", "With stringKeys, all keys must be strings");
11272
11282
  if (spaceBefore) node.spaceBefore = true;
@@ -11313,7 +11323,7 @@ var require_compose_node = /* @__PURE__ */ __commonJSMin(((exports) => {
11313
11323
  }));
11314
11324
 
11315
11325
  //#endregion
11316
- //#region ../../node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/compose/compose-doc.js
11326
+ //#region ../../node_modules/.pnpm/yaml@2.8.4/node_modules/yaml/dist/compose/compose-doc.js
11317
11327
  var require_compose_doc = /* @__PURE__ */ __commonJSMin(((exports) => {
11318
11328
  var Document = require_Document();
11319
11329
  var composeNode = require_compose_node();
@@ -11356,7 +11366,7 @@ var require_compose_doc = /* @__PURE__ */ __commonJSMin(((exports) => {
11356
11366
  }));
11357
11367
 
11358
11368
  //#endregion
11359
- //#region ../../node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/compose/composer.js
11369
+ //#region ../../node_modules/.pnpm/yaml@2.8.4/node_modules/yaml/dist/compose/composer.js
11360
11370
  var require_composer = /* @__PURE__ */ __commonJSMin(((exports) => {
11361
11371
  var node_process$1 = __require("process");
11362
11372
  var directives = require_directives();
@@ -11555,7 +11565,7 @@ var require_composer = /* @__PURE__ */ __commonJSMin(((exports) => {
11555
11565
  }));
11556
11566
 
11557
11567
  //#endregion
11558
- //#region ../../node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/parse/cst-scalar.js
11568
+ //#region ../../node_modules/.pnpm/yaml@2.8.4/node_modules/yaml/dist/parse/cst-scalar.js
11559
11569
  var require_cst_scalar = /* @__PURE__ */ __commonJSMin(((exports) => {
11560
11570
  var resolveBlockScalar = require_resolve_block_scalar();
11561
11571
  var resolveFlowScalar = require_resolve_flow_scalar();
@@ -11823,7 +11833,7 @@ var require_cst_scalar = /* @__PURE__ */ __commonJSMin(((exports) => {
11823
11833
  }));
11824
11834
 
11825
11835
  //#endregion
11826
- //#region ../../node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/parse/cst-stringify.js
11836
+ //#region ../../node_modules/.pnpm/yaml@2.8.4/node_modules/yaml/dist/parse/cst-stringify.js
11827
11837
  var require_cst_stringify = /* @__PURE__ */ __commonJSMin(((exports) => {
11828
11838
  /**
11829
11839
  * Stringify a CST document, token, or collection item
@@ -11875,7 +11885,7 @@ var require_cst_stringify = /* @__PURE__ */ __commonJSMin(((exports) => {
11875
11885
  }));
11876
11886
 
11877
11887
  //#endregion
11878
- //#region ../../node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/parse/cst-visit.js
11888
+ //#region ../../node_modules/.pnpm/yaml@2.8.4/node_modules/yaml/dist/parse/cst-visit.js
11879
11889
  var require_cst_visit = /* @__PURE__ */ __commonJSMin(((exports) => {
11880
11890
  const BREAK = Symbol("break visit");
11881
11891
  const SKIP = Symbol("skip children");
@@ -11967,7 +11977,7 @@ var require_cst_visit = /* @__PURE__ */ __commonJSMin(((exports) => {
11967
11977
  }));
11968
11978
 
11969
11979
  //#endregion
11970
- //#region ../../node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/parse/cst.js
11980
+ //#region ../../node_modules/.pnpm/yaml@2.8.4/node_modules/yaml/dist/parse/cst.js
11971
11981
  var require_cst = /* @__PURE__ */ __commonJSMin(((exports) => {
11972
11982
  var cstScalar = require_cst_scalar();
11973
11983
  var cstStringify = require_cst_stringify();
@@ -12047,7 +12057,7 @@ var require_cst = /* @__PURE__ */ __commonJSMin(((exports) => {
12047
12057
  }));
12048
12058
 
12049
12059
  //#endregion
12050
- //#region ../../node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/parse/lexer.js
12060
+ //#region ../../node_modules/.pnpm/yaml@2.8.4/node_modules/yaml/dist/parse/lexer.js
12051
12061
  var require_lexer = /* @__PURE__ */ __commonJSMin(((exports) => {
12052
12062
  var cst = require_cst();
12053
12063
  function isEmpty(ch) {
@@ -12567,7 +12577,7 @@ var require_lexer = /* @__PURE__ */ __commonJSMin(((exports) => {
12567
12577
  }));
12568
12578
 
12569
12579
  //#endregion
12570
- //#region ../../node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/parse/line-counter.js
12580
+ //#region ../../node_modules/.pnpm/yaml@2.8.4/node_modules/yaml/dist/parse/line-counter.js
12571
12581
  var require_line_counter = /* @__PURE__ */ __commonJSMin(((exports) => {
12572
12582
  /**
12573
12583
  * Tracks newlines during parsing in order to provide an efficient API for
@@ -12615,7 +12625,7 @@ var require_line_counter = /* @__PURE__ */ __commonJSMin(((exports) => {
12615
12625
  }));
12616
12626
 
12617
12627
  //#endregion
12618
- //#region ../../node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/parse/parser.js
12628
+ //#region ../../node_modules/.pnpm/yaml@2.8.4/node_modules/yaml/dist/parse/parser.js
12619
12629
  var require_parser$1 = /* @__PURE__ */ __commonJSMin(((exports) => {
12620
12630
  var node_process = __require("process");
12621
12631
  var cst = require_cst();
@@ -13472,7 +13482,7 @@ var require_parser$1 = /* @__PURE__ */ __commonJSMin(((exports) => {
13472
13482
  }));
13473
13483
 
13474
13484
  //#endregion
13475
- //#region ../../node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/public-api.js
13485
+ //#region ../../node_modules/.pnpm/yaml@2.8.4/node_modules/yaml/dist/public-api.js
13476
13486
  var require_public_api = /* @__PURE__ */ __commonJSMin(((exports) => {
13477
13487
  var composer = require_composer();
13478
13488
  var Document = require_Document();
@@ -13560,7 +13570,7 @@ var require_public_api = /* @__PURE__ */ __commonJSMin(((exports) => {
13560
13570
  }));
13561
13571
 
13562
13572
  //#endregion
13563
- //#region ../../node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/index.js
13573
+ //#region ../../node_modules/.pnpm/yaml@2.8.4/node_modules/yaml/dist/index.js
13564
13574
  var require_dist$2 = /* @__PURE__ */ __commonJSMin(((exports) => {
13565
13575
  var composer = require_composer();
13566
13576
  var Document = require_Document();
@@ -14057,7 +14067,7 @@ function serializeIssue(issue) {
14057
14067
  * Package version, derived from git at build time.
14058
14068
  * Format: X.Y.Z for releases, X.Y.Z-dev.N.hash for dev builds.
14059
14069
  */
14060
- const VERSION$1 = "0.1.27";
14070
+ const VERSION$1 = "0.1.28";
14061
14071
 
14062
14072
  //#endregion
14063
14073
  //#region src/cli/lib/version.ts
@@ -101301,6 +101311,30 @@ const listCommand = new Command("list").description("List issues").option("--sta
101301
101311
  await new ListHandler(command).run(options);
101302
101312
  });
101303
101313
 
101314
+ //#endregion
101315
+ //#region src/cli/lib/dependency-format.ts
101316
+ /**
101317
+ * Compute display-ready dependency directions for an issue.
101318
+ */
101319
+ function getDependencyDirections(issue, allIssues, displayId) {
101320
+ const blocks = issue.dependencies.filter((dep) => dep.type === "blocks").map((dep) => displayId(dep.target));
101321
+ const blockedBy = [];
101322
+ for (const other of allIssues) for (const dep of other.dependencies) if (dep.type === "blocks" && dep.target === issue.id) blockedBy.push(displayId(other.id));
101323
+ return {
101324
+ blocks,
101325
+ blockedBy
101326
+ };
101327
+ }
101328
+ /**
101329
+ * Render dependency directions as YAML comments for round-trippable show output.
101330
+ */
101331
+ function formatDependencyDirectionComments(directions) {
101332
+ const lines = [];
101333
+ if (directions.blocks.length > 0) lines.push(`# Blocks: ${directions.blocks.join(", ")}`);
101334
+ if (directions.blockedBy.length > 0) lines.push(`# Blocked by: ${directions.blockedBy.join(", ")}`);
101335
+ return lines;
101336
+ }
101337
+
101304
101338
  //#endregion
101305
101339
  //#region src/cli/commands/show.ts
101306
101340
  /**
@@ -101313,14 +101347,18 @@ const listCommand = new Command("list").description("List issues").option("--sta
101313
101347
  *
101314
101348
  * @param issue - The issue to render
101315
101349
  * @param colors - Color functions
101316
- * @param maxLines - If set, truncate output to this many lines with an omission notice
101350
+ * @param dependencyDirections - Optional human-facing dependency direction comments
101317
101351
  * @returns Array of formatted lines
101318
101352
  */
101319
- function renderIssueLines(issue, colors) {
101353
+ function renderIssueLines(issue, colors, dependencyDirections) {
101320
101354
  const serialized = serializeIssue(issue);
101321
101355
  const output = [];
101356
+ const dependencyDirectionComments = dependencyDirections ? formatDependencyDirectionComments(dependencyDirections) : [];
101322
101357
  for (const line of serialized.split("\n")) if (line === "---") output.push(colors.dim(line));
101323
- else if (line.startsWith("id:")) output.push(`${colors.dim("id:")} ${colors.id(line.slice(4))}`);
101358
+ else if (line.startsWith("dependencies:")) {
101359
+ for (const comment of dependencyDirectionComments) output.push(colors.dim(comment));
101360
+ output.push(line);
101361
+ } else if (line.startsWith("id:")) output.push(`${colors.dim("id:")} ${colors.id(line.slice(4))}`);
101324
101362
  else if (line.startsWith("status:")) {
101325
101363
  const status = line.slice(8).trim();
101326
101364
  const statusColor = getStatusColor(status, colors);
@@ -101363,6 +101401,10 @@ var ShowHandler = class extends BaseCommand {
101363
101401
  } catch {}
101364
101402
  const maxLines = options.maxLines ? parseInt(options.maxLines, 10) : void 0;
101365
101403
  const displayId = ctx.displayId(issue.id);
101404
+ const allIssues = ctx.cli.json ? void 0 : await listIssues(ctx.dataSyncDir);
101405
+ const displayDependencyId = (dependencyId) => ctx.displayId(dependencyId);
101406
+ const dependencyDirections = allIssues ? getDependencyDirections(issue, allIssues, displayDependencyId) : void 0;
101407
+ const parentDependencyDirections = allIssues && parentIssue ? getDependencyDirections(parentIssue, allIssues, displayDependencyId) : void 0;
101366
101408
  const displayIssue = {
101367
101409
  ...issue,
101368
101410
  displayId,
@@ -101373,11 +101415,11 @@ var ShowHandler = class extends BaseCommand {
101373
101415
  };
101374
101416
  this.output.data(displayIssue, () => {
101375
101417
  const colors = this.output.getColors();
101376
- printWithTruncation(renderIssueLines(issue, colors), colors, maxLines);
101418
+ printWithTruncation(renderIssueLines(issue, colors, dependencyDirections), colors, maxLines);
101377
101419
  if (parentIssue) {
101378
101420
  console.log("");
101379
101421
  console.log(colors.dim("The parent of this bead is:"));
101380
- printWithTruncation(renderIssueLines(parentIssue, colors), colors, PARENT_CONTEXT_MAX_LINES);
101422
+ printWithTruncation(renderIssueLines(parentIssue, colors, parentDependencyDirections), colors, PARENT_CONTEXT_MAX_LINES);
101381
101423
  }
101382
101424
  if (options.showOrder) {
101383
101425
  console.log("");
@@ -102218,13 +102260,7 @@ var DependsListHandler = class extends BaseCommand {
102218
102260
  }
102219
102261
  const showDebug = this.ctx.debug;
102220
102262
  const prefix = (await readConfig(tbdRoot)).display.id_prefix;
102221
- const blocks = issue.dependencies.filter((dep) => dep.type === "blocks").map((dep) => showDebug ? formatDebugId(dep.target, mapping, prefix) : formatDisplayId(dep.target, mapping, prefix));
102222
- const blockedBy = [];
102223
- for (const other of allIssues) for (const dep of other.dependencies) if (dep.type === "blocks" && dep.target === internalId) blockedBy.push(showDebug ? formatDebugId(other.id, mapping, prefix) : formatDisplayId(other.id, mapping, prefix));
102224
- const deps = {
102225
- blocks,
102226
- blockedBy
102227
- };
102263
+ const deps = getDependencyDirections(issue, allIssues, (dependencyId) => showDebug ? formatDebugId(dependencyId, mapping, prefix) : formatDisplayId(dependencyId, mapping, prefix));
102228
102264
  this.output.data(deps, () => {
102229
102265
  const colors = this.output.getColors();
102230
102266
  if (deps.blocks.length > 0) console.log(`${colors.bold("Blocks:")} ${deps.blocks.join(", ")}`);
@@ -105086,11 +105122,11 @@ var DoctorHandler = class extends BaseCommand {
105086
105122
  };
105087
105123
  }
105088
105124
  async checkTempFiles(fix) {
105089
- const issuesPath = join(CONFIG_DIR, "issues");
105090
105125
  const issuesDir = join(this.dataSyncDir, "issues");
105126
+ const issuesPath = join(DATA_SYNC_DIR, "issues");
105091
105127
  let tempFiles = [];
105092
105128
  try {
105093
- tempFiles = (await readdir(issuesDir)).filter((f) => f.endsWith(".tmp"));
105129
+ tempFiles = (await readdir(issuesDir)).filter((f) => f.endsWith(".tmp") || /\.tmp-\d+$/.test(f));
105094
105130
  } catch {
105095
105131
  return {
105096
105132
  name: "Temp files",