@whittlelabs/sifter 0.30.3 → 0.30.5

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 (3) hide show
  1. package/bin.js +271 -207
  2. package/bin.js.map +3 -3
  3. package/package.json +1 -1
package/bin.js CHANGED
@@ -10097,7 +10097,7 @@ var require_claude_code = __commonJS({
10097
10097
  const { response, readPaths, toolInputs } = await this.runClaude(prompt, spec, runCwd, childEnv, signal, hintedModel, reporter, void 0, dispatch.job.id);
10098
10098
  if (workspace) {
10099
10099
  const reads = [...readPaths];
10100
- for (const rel of creditOverlayReads(toolInputs, workspace.overlay?.writtenPaths ?? [])) {
10100
+ for (const rel of creditOverlayReads(toolInputs, workspace.overlay?.writtenPaths ?? [], runCwd)) {
10101
10101
  reads.push(path_1.default.join(runCwd, rel));
10102
10102
  }
10103
10103
  response.outputs.push({
@@ -10425,7 +10425,7 @@ var require_claude_code = __commonJS({
10425
10425
  return { finalText, readPaths, usage, resultMeta, structuredOutput, sessionId, toolInputs };
10426
10426
  }
10427
10427
  var MAX_REPORTED_READS = 2e3;
10428
- function relativeWorkspaceReads(readPaths, cwd) {
10428
+ function workspaceRoots(cwd) {
10429
10429
  const root = path_1.default.resolve(cwd);
10430
10430
  const roots = [root];
10431
10431
  try {
@@ -10434,6 +10434,11 @@ var require_claude_code = __commonJS({
10434
10434
  roots.push(real);
10435
10435
  } catch {
10436
10436
  }
10437
+ return roots;
10438
+ }
10439
+ function relativeWorkspaceReads(readPaths, cwd) {
10440
+ const roots = workspaceRoots(cwd);
10441
+ const root = roots[0];
10437
10442
  const out = /* @__PURE__ */ new Set();
10438
10443
  for (const p of readPaths) {
10439
10444
  const resolved = path_1.default.resolve(root, p);
@@ -10493,9 +10498,10 @@ var require_claude_code = __commonJS({
10493
10498
  }
10494
10499
  return new RegExp(`${re}$`);
10495
10500
  }
10496
- function creditOverlayReads(toolInputs, writtenPaths) {
10501
+ function creditOverlayReads(toolInputs, writtenPaths, runCwd) {
10497
10502
  if (writtenPaths.length === 0 || toolInputs.length === 0)
10498
10503
  return [];
10504
+ const roots = runCwd ? workspaceRoots(runCwd) : [];
10499
10505
  const dirs = /* @__PURE__ */ new Set();
10500
10506
  for (const rel of writtenPaths) {
10501
10507
  const parts = rel.split("/");
@@ -10503,27 +10509,29 @@ var require_claude_code = __commonJS({
10503
10509
  dirs.add(`${parts.slice(0, i).join("/")}/`);
10504
10510
  }
10505
10511
  const dirAlt = [...dirs].map(escapeRegExp).join("|");
10506
- const wordRe = dirs.size > 0 ? new RegExp(`(?:${dirAlt})[^\\s"'\`;|&<>(),\\\\]*`, "g") : null;
10512
+ const wordRe = dirs.size > 0 ? new RegExp(`(?:${dirAlt})[^\\s"'\`;|&<>()\\\\]*`, "g") : null;
10507
10513
  const findRe = dirs.size > 0 ? new RegExp(`\\bfind\\s+(?:\\./)?(${[...dirs].map((d) => escapeRegExp(d.slice(0, -1))).join("|")})/?(?=\\s|$)`, "g") : null;
10508
- const readerRe = /(?:^|[\s"])(?:-exec|-execdir|xargs)\b[^;|&]*\b(?:cat|head|tail|sed|awk|less|more|bat)\b/;
10514
+ const readerRe = new RegExp(`(?:^|[\\s"])(?:-exec|-execdir|xargs)\\b[^;|&]*\\b${READERS}\\b`);
10515
+ const plainReaderRe = new RegExp(`(?:^|[\\s"'\`;|&(])${READERS}\\b`);
10509
10516
  const credited = /* @__PURE__ */ new Set();
10510
- for (const input of toolInputs) {
10517
+ for (const raw of toolInputs) {
10518
+ const input = roots.reduce((s, r) => s.split(`${r}/`).join(""), raw);
10511
10519
  for (const rel of writtenPaths) {
10512
10520
  if (input.includes(rel))
10513
10521
  credited.add(rel);
10514
10522
  }
10515
- if (!wordRe)
10516
- continue;
10517
- for (const match of input.matchAll(wordRe)) {
10518
- const word = match[0];
10519
- if (!GLOB_CHARS.test(word))
10520
- continue;
10521
- const re = globToRegExp(word);
10522
- if (!re)
10523
- continue;
10524
- for (const rel of writtenPaths) {
10525
- if (re.test(rel))
10526
- credited.add(rel);
10523
+ if (wordRe) {
10524
+ for (const match of input.matchAll(wordRe)) {
10525
+ const word = match[0];
10526
+ if (!GLOB_CHARS.test(word))
10527
+ continue;
10528
+ const re = globToRegExp(word);
10529
+ if (!re)
10530
+ continue;
10531
+ for (const rel of writtenPaths) {
10532
+ if (re.test(rel))
10533
+ credited.add(rel);
10534
+ }
10527
10535
  }
10528
10536
  }
10529
10537
  if (findRe && readerRe.test(input)) {
@@ -10535,9 +10543,27 @@ var require_claude_code = __commonJS({
10535
10543
  }
10536
10544
  }
10537
10545
  }
10546
+ if (!plainReaderRe.test(input))
10547
+ continue;
10548
+ for (const match of input.matchAll(CD_RE)) {
10549
+ const target = match[1].replace(/^\.\//, "").replace(/\/+$/, "");
10550
+ const base = target.length > 0 ? `${target}/` : "";
10551
+ for (const rel of writtenPaths) {
10552
+ if (!rel.startsWith(base))
10553
+ continue;
10554
+ if (namesBareWord(input, rel.slice(base.length)))
10555
+ credited.add(rel);
10556
+ }
10557
+ }
10538
10558
  }
10539
10559
  return [...credited].sort();
10540
10560
  }
10561
+ var READERS = "(?:cat|head|tail|sed|awk|less|more|bat)";
10562
+ var CD_RE = /(?:^|[\s"'`;|&(])cd\s+(?:--\s+)?["']?([^\s"'`;|&<>()\\]+)/g;
10563
+ function namesBareWord(input, word) {
10564
+ const edge = String.raw`[\s"'\`;|&<>(),\\]`;
10565
+ return new RegExp(`(?:^|${edge})${escapeRegExp(word)}(?=$|${edge})`).test(input);
10566
+ }
10541
10567
  async function keepTranscript(dir, name, stdout) {
10542
10568
  try {
10543
10569
  await fs_1.promises.mkdir(dir, { recursive: true });
@@ -12797,9 +12823,9 @@ var require_dist3 = __commonJS({
12797
12823
  }
12798
12824
  });
12799
12825
 
12800
- // ../../node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/nodes/identity.js
12826
+ // ../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/nodes/identity.js
12801
12827
  var require_identity = __commonJS({
12802
- "../../node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/nodes/identity.js"(exports2) {
12828
+ "../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/nodes/identity.js"(exports2) {
12803
12829
  "use strict";
12804
12830
  var ALIAS = Symbol.for("yaml.alias");
12805
12831
  var DOC = Symbol.for("yaml.document");
@@ -12854,9 +12880,9 @@ var require_identity = __commonJS({
12854
12880
  }
12855
12881
  });
12856
12882
 
12857
- // ../../node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/visit.js
12883
+ // ../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/visit.js
12858
12884
  var require_visit = __commonJS({
12859
- "../../node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/visit.js"(exports2) {
12885
+ "../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/visit.js"(exports2) {
12860
12886
  "use strict";
12861
12887
  var identity = require_identity();
12862
12888
  var BREAK = Symbol("break visit");
@@ -13012,9 +13038,9 @@ var require_visit = __commonJS({
13012
13038
  }
13013
13039
  });
13014
13040
 
13015
- // ../../node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/doc/directives.js
13041
+ // ../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/doc/directives.js
13016
13042
  var require_directives = __commonJS({
13017
- "../../node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/doc/directives.js"(exports2) {
13043
+ "../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/doc/directives.js"(exports2) {
13018
13044
  "use strict";
13019
13045
  var identity = require_identity();
13020
13046
  var visit = require_visit();
@@ -13183,9 +13209,9 @@ var require_directives = __commonJS({
13183
13209
  }
13184
13210
  });
13185
13211
 
13186
- // ../../node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/doc/anchors.js
13212
+ // ../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/doc/anchors.js
13187
13213
  var require_anchors = __commonJS({
13188
- "../../node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/doc/anchors.js"(exports2) {
13214
+ "../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/doc/anchors.js"(exports2) {
13189
13215
  "use strict";
13190
13216
  var identity = require_identity();
13191
13217
  var visit = require_visit();
@@ -13253,9 +13279,9 @@ var require_anchors = __commonJS({
13253
13279
  }
13254
13280
  });
13255
13281
 
13256
- // ../../node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/doc/applyReviver.js
13282
+ // ../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/doc/applyReviver.js
13257
13283
  var require_applyReviver = __commonJS({
13258
- "../../node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/doc/applyReviver.js"(exports2) {
13284
+ "../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/doc/applyReviver.js"(exports2) {
13259
13285
  "use strict";
13260
13286
  function applyReviver(reviver, obj, key, val) {
13261
13287
  if (val && typeof val === "object") {
@@ -13303,9 +13329,9 @@ var require_applyReviver = __commonJS({
13303
13329
  }
13304
13330
  });
13305
13331
 
13306
- // ../../node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/nodes/toJS.js
13332
+ // ../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/nodes/toJS.js
13307
13333
  var require_toJS = __commonJS({
13308
- "../../node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/nodes/toJS.js"(exports2) {
13334
+ "../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/nodes/toJS.js"(exports2) {
13309
13335
  "use strict";
13310
13336
  var identity = require_identity();
13311
13337
  function toJS(value, arg, ctx) {
@@ -13333,9 +13359,9 @@ var require_toJS = __commonJS({
13333
13359
  }
13334
13360
  });
13335
13361
 
13336
- // ../../node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/nodes/Node.js
13362
+ // ../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/nodes/Node.js
13337
13363
  var require_Node = __commonJS({
13338
- "../../node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/nodes/Node.js"(exports2) {
13364
+ "../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/nodes/Node.js"(exports2) {
13339
13365
  "use strict";
13340
13366
  var applyReviver = require_applyReviver();
13341
13367
  var identity = require_identity();
@@ -13374,9 +13400,9 @@ var require_Node = __commonJS({
13374
13400
  }
13375
13401
  });
13376
13402
 
13377
- // ../../node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/nodes/Alias.js
13403
+ // ../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/nodes/Alias.js
13378
13404
  var require_Alias = __commonJS({
13379
- "../../node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/nodes/Alias.js"(exports2) {
13405
+ "../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/nodes/Alias.js"(exports2) {
13380
13406
  "use strict";
13381
13407
  var anchors = require_anchors();
13382
13408
  var visit = require_visit();
@@ -13398,6 +13424,8 @@ var require_Alias = __commonJS({
13398
13424
  * instance of the `source` anchor before this node.
13399
13425
  */
13400
13426
  resolve(doc, ctx) {
13427
+ if (ctx?.maxAliasCount === 0)
13428
+ throw new ReferenceError("Alias resolution is disabled");
13401
13429
  let nodes;
13402
13430
  if (ctx?.aliasResolveCache) {
13403
13431
  nodes = ctx.aliasResolveCache;
@@ -13488,9 +13516,9 @@ var require_Alias = __commonJS({
13488
13516
  }
13489
13517
  });
13490
13518
 
13491
- // ../../node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/nodes/Scalar.js
13519
+ // ../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/nodes/Scalar.js
13492
13520
  var require_Scalar = __commonJS({
13493
- "../../node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/nodes/Scalar.js"(exports2) {
13521
+ "../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/nodes/Scalar.js"(exports2) {
13494
13522
  "use strict";
13495
13523
  var identity = require_identity();
13496
13524
  var Node = require_Node();
@@ -13518,9 +13546,9 @@ var require_Scalar = __commonJS({
13518
13546
  }
13519
13547
  });
13520
13548
 
13521
- // ../../node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/doc/createNode.js
13549
+ // ../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/doc/createNode.js
13522
13550
  var require_createNode = __commonJS({
13523
- "../../node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/doc/createNode.js"(exports2) {
13551
+ "../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/doc/createNode.js"(exports2) {
13524
13552
  "use strict";
13525
13553
  var Alias = require_Alias();
13526
13554
  var identity = require_identity();
@@ -13593,9 +13621,9 @@ var require_createNode = __commonJS({
13593
13621
  }
13594
13622
  });
13595
13623
 
13596
- // ../../node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/nodes/Collection.js
13624
+ // ../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/nodes/Collection.js
13597
13625
  var require_Collection = __commonJS({
13598
- "../../node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/nodes/Collection.js"(exports2) {
13626
+ "../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/nodes/Collection.js"(exports2) {
13599
13627
  "use strict";
13600
13628
  var createNode = require_createNode();
13601
13629
  var identity = require_identity();
@@ -13736,9 +13764,9 @@ var require_Collection = __commonJS({
13736
13764
  }
13737
13765
  });
13738
13766
 
13739
- // ../../node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/stringify/stringifyComment.js
13767
+ // ../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/stringify/stringifyComment.js
13740
13768
  var require_stringifyComment = __commonJS({
13741
- "../../node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/stringify/stringifyComment.js"(exports2) {
13769
+ "../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/stringify/stringifyComment.js"(exports2) {
13742
13770
  "use strict";
13743
13771
  var stringifyComment = (str) => str.replace(/^(?!$)(?: $)?/gm, "#");
13744
13772
  function indentComment(comment, indent) {
@@ -13753,9 +13781,9 @@ var require_stringifyComment = __commonJS({
13753
13781
  }
13754
13782
  });
13755
13783
 
13756
- // ../../node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/stringify/foldFlowLines.js
13784
+ // ../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/stringify/foldFlowLines.js
13757
13785
  var require_foldFlowLines = __commonJS({
13758
- "../../node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/stringify/foldFlowLines.js"(exports2) {
13786
+ "../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/stringify/foldFlowLines.js"(exports2) {
13759
13787
  "use strict";
13760
13788
  var FOLD_FLOW = "flow";
13761
13789
  var FOLD_BLOCK = "block";
@@ -13889,9 +13917,9 @@ ${indent}${text.slice(fold + 1, end2)}`;
13889
13917
  }
13890
13918
  });
13891
13919
 
13892
- // ../../node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/stringify/stringifyString.js
13920
+ // ../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/stringify/stringifyString.js
13893
13921
  var require_stringifyString = __commonJS({
13894
- "../../node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/stringify/stringifyString.js"(exports2) {
13922
+ "../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/stringify/stringifyString.js"(exports2) {
13895
13923
  "use strict";
13896
13924
  var Scalar = require_Scalar();
13897
13925
  var foldFlowLines = require_foldFlowLines();
@@ -14172,9 +14200,9 @@ ${indent}`);
14172
14200
  }
14173
14201
  });
14174
14202
 
14175
- // ../../node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/stringify/stringify.js
14203
+ // ../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/stringify/stringify.js
14176
14204
  var require_stringify = __commonJS({
14177
- "../../node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/stringify/stringify.js"(exports2) {
14205
+ "../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/stringify/stringify.js"(exports2) {
14178
14206
  "use strict";
14179
14207
  var anchors = require_anchors();
14180
14208
  var identity = require_identity();
@@ -14197,6 +14225,7 @@ var require_stringify = __commonJS({
14197
14225
  nullStr: "null",
14198
14226
  simpleKeys: false,
14199
14227
  singleQuote: null,
14228
+ trailingComma: false,
14200
14229
  trueStr: "true",
14201
14230
  verifyAliasOrder: true
14202
14231
  }, doc.schema.toStringOptions, options);
@@ -14295,9 +14324,9 @@ ${ctx.indent}${str}`;
14295
14324
  }
14296
14325
  });
14297
14326
 
14298
- // ../../node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/stringify/stringifyPair.js
14327
+ // ../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/stringify/stringifyPair.js
14299
14328
  var require_stringifyPair = __commonJS({
14300
- "../../node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/stringify/stringifyPair.js"(exports2) {
14329
+ "../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/stringify/stringifyPair.js"(exports2) {
14301
14330
  "use strict";
14302
14331
  var identity = require_identity();
14303
14332
  var Scalar = require_Scalar();
@@ -14428,9 +14457,9 @@ ${ctx.indent}`;
14428
14457
  }
14429
14458
  });
14430
14459
 
14431
- // ../../node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/log.js
14460
+ // ../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/log.js
14432
14461
  var require_log = __commonJS({
14433
- "../../node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/log.js"(exports2) {
14462
+ "../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/log.js"(exports2) {
14434
14463
  "use strict";
14435
14464
  var node_process = require("process");
14436
14465
  function debug(logLevel, ...messages) {
@@ -14450,9 +14479,9 @@ var require_log = __commonJS({
14450
14479
  }
14451
14480
  });
14452
14481
 
14453
- // ../../node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/schema/yaml-1.1/merge.js
14482
+ // ../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/schema/yaml-1.1/merge.js
14454
14483
  var require_merge = __commonJS({
14455
- "../../node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/schema/yaml-1.1/merge.js"(exports2) {
14484
+ "../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/schema/yaml-1.1/merge.js"(exports2) {
14456
14485
  "use strict";
14457
14486
  var identity = require_identity();
14458
14487
  var Scalar = require_Scalar();
@@ -14469,18 +14498,18 @@ var require_merge = __commonJS({
14469
14498
  };
14470
14499
  var 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);
14471
14500
  function addMergeToJSMap(ctx, map, value) {
14472
- value = ctx && identity.isAlias(value) ? value.resolve(ctx.doc) : value;
14473
- if (identity.isSeq(value))
14474
- for (const it of value.items)
14501
+ const source = resolveAliasValue(ctx, value);
14502
+ if (identity.isSeq(source))
14503
+ for (const it of source.items)
14475
14504
  mergeValue(ctx, map, it);
14476
- else if (Array.isArray(value))
14477
- for (const it of value)
14505
+ else if (Array.isArray(source))
14506
+ for (const it of source)
14478
14507
  mergeValue(ctx, map, it);
14479
14508
  else
14480
- mergeValue(ctx, map, value);
14509
+ mergeValue(ctx, map, source);
14481
14510
  }
14482
14511
  function mergeValue(ctx, map, value) {
14483
- const source = ctx && identity.isAlias(value) ? value.resolve(ctx.doc) : value;
14512
+ const source = resolveAliasValue(ctx, value);
14484
14513
  if (!identity.isMap(source))
14485
14514
  throw new Error("Merge sources must be maps or map aliases");
14486
14515
  const srcMap = source.toJSON(null, ctx, Map);
@@ -14501,15 +14530,18 @@ var require_merge = __commonJS({
14501
14530
  }
14502
14531
  return map;
14503
14532
  }
14533
+ function resolveAliasValue(ctx, value) {
14534
+ return ctx && identity.isAlias(value) ? value.resolve(ctx.doc, ctx) : value;
14535
+ }
14504
14536
  exports2.addMergeToJSMap = addMergeToJSMap;
14505
14537
  exports2.isMergeKey = isMergeKey;
14506
14538
  exports2.merge = merge;
14507
14539
  }
14508
14540
  });
14509
14541
 
14510
- // ../../node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/nodes/addPairToJSMap.js
14542
+ // ../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/nodes/addPairToJSMap.js
14511
14543
  var require_addPairToJSMap = __commonJS({
14512
- "../../node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/nodes/addPairToJSMap.js"(exports2) {
14544
+ "../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/nodes/addPairToJSMap.js"(exports2) {
14513
14545
  "use strict";
14514
14546
  var log = require_log();
14515
14547
  var merge = require_merge();
@@ -14571,9 +14603,9 @@ var require_addPairToJSMap = __commonJS({
14571
14603
  }
14572
14604
  });
14573
14605
 
14574
- // ../../node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/nodes/Pair.js
14606
+ // ../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/nodes/Pair.js
14575
14607
  var require_Pair = __commonJS({
14576
- "../../node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/nodes/Pair.js"(exports2) {
14608
+ "../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/nodes/Pair.js"(exports2) {
14577
14609
  "use strict";
14578
14610
  var createNode = require_createNode();
14579
14611
  var stringifyPair = require_stringifyPair();
@@ -14611,9 +14643,9 @@ var require_Pair = __commonJS({
14611
14643
  }
14612
14644
  });
14613
14645
 
14614
- // ../../node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/stringify/stringifyCollection.js
14646
+ // ../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/stringify/stringifyCollection.js
14615
14647
  var require_stringifyCollection = __commonJS({
14616
- "../../node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/stringify/stringifyCollection.js"(exports2) {
14648
+ "../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/stringify/stringifyCollection.js"(exports2) {
14617
14649
  "use strict";
14618
14650
  var identity = require_identity();
14619
14651
  var stringify = require_stringify();
@@ -14714,12 +14746,19 @@ ${indent}${line}` : "\n";
14714
14746
  if (comment)
14715
14747
  reqNewline = true;
14716
14748
  let str = stringify.stringify(item, itemCtx, () => comment = null);
14717
- if (i < items.length - 1)
14749
+ reqNewline || (reqNewline = lines.length > linesAtValue || str.includes("\n"));
14750
+ if (i < items.length - 1) {
14718
14751
  str += ",";
14752
+ } else if (ctx.options.trailingComma) {
14753
+ if (ctx.options.lineWidth > 0) {
14754
+ reqNewline || (reqNewline = lines.reduce((sum, line) => sum + line.length + 2, 2) + (str.length + 2) > ctx.options.lineWidth);
14755
+ }
14756
+ if (reqNewline) {
14757
+ str += ",";
14758
+ }
14759
+ }
14719
14760
  if (comment)
14720
14761
  str += stringifyComment.lineComment(str, itemIndent, commentString(comment));
14721
- if (!reqNewline && (lines.length > linesAtValue || str.includes("\n")))
14722
- reqNewline = true;
14723
14762
  lines.push(str);
14724
14763
  linesAtValue = lines.length;
14725
14764
  }
@@ -14755,9 +14794,9 @@ ${indent}${end}`;
14755
14794
  }
14756
14795
  });
14757
14796
 
14758
- // ../../node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/nodes/YAMLMap.js
14797
+ // ../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/nodes/YAMLMap.js
14759
14798
  var require_YAMLMap = __commonJS({
14760
- "../../node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/nodes/YAMLMap.js"(exports2) {
14799
+ "../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/nodes/YAMLMap.js"(exports2) {
14761
14800
  "use strict";
14762
14801
  var stringifyCollection = require_stringifyCollection();
14763
14802
  var addPairToJSMap = require_addPairToJSMap();
@@ -14899,9 +14938,9 @@ var require_YAMLMap = __commonJS({
14899
14938
  }
14900
14939
  });
14901
14940
 
14902
- // ../../node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/schema/common/map.js
14941
+ // ../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/schema/common/map.js
14903
14942
  var require_map2 = __commonJS({
14904
- "../../node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/schema/common/map.js"(exports2) {
14943
+ "../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/schema/common/map.js"(exports2) {
14905
14944
  "use strict";
14906
14945
  var identity = require_identity();
14907
14946
  var YAMLMap = require_YAMLMap();
@@ -14921,9 +14960,9 @@ var require_map2 = __commonJS({
14921
14960
  }
14922
14961
  });
14923
14962
 
14924
- // ../../node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/nodes/YAMLSeq.js
14963
+ // ../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/nodes/YAMLSeq.js
14925
14964
  var require_YAMLSeq = __commonJS({
14926
- "../../node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/nodes/YAMLSeq.js"(exports2) {
14965
+ "../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/nodes/YAMLSeq.js"(exports2) {
14927
14966
  "use strict";
14928
14967
  var createNode = require_createNode();
14929
14968
  var stringifyCollection = require_stringifyCollection();
@@ -15037,9 +15076,9 @@ var require_YAMLSeq = __commonJS({
15037
15076
  }
15038
15077
  });
15039
15078
 
15040
- // ../../node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/schema/common/seq.js
15079
+ // ../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/schema/common/seq.js
15041
15080
  var require_seq = __commonJS({
15042
- "../../node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/schema/common/seq.js"(exports2) {
15081
+ "../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/schema/common/seq.js"(exports2) {
15043
15082
  "use strict";
15044
15083
  var identity = require_identity();
15045
15084
  var YAMLSeq = require_YAMLSeq();
@@ -15059,9 +15098,9 @@ var require_seq = __commonJS({
15059
15098
  }
15060
15099
  });
15061
15100
 
15062
- // ../../node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/schema/common/string.js
15101
+ // ../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/schema/common/string.js
15063
15102
  var require_string2 = __commonJS({
15064
- "../../node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/schema/common/string.js"(exports2) {
15103
+ "../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/schema/common/string.js"(exports2) {
15065
15104
  "use strict";
15066
15105
  var stringifyString = require_stringifyString();
15067
15106
  var string = {
@@ -15078,9 +15117,9 @@ var require_string2 = __commonJS({
15078
15117
  }
15079
15118
  });
15080
15119
 
15081
- // ../../node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/schema/common/null.js
15120
+ // ../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/schema/common/null.js
15082
15121
  var require_null2 = __commonJS({
15083
- "../../node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/schema/common/null.js"(exports2) {
15122
+ "../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/schema/common/null.js"(exports2) {
15084
15123
  "use strict";
15085
15124
  var Scalar = require_Scalar();
15086
15125
  var nullTag = {
@@ -15096,9 +15135,9 @@ var require_null2 = __commonJS({
15096
15135
  }
15097
15136
  });
15098
15137
 
15099
- // ../../node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/schema/core/bool.js
15138
+ // ../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/schema/core/bool.js
15100
15139
  var require_bool = __commonJS({
15101
- "../../node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/schema/core/bool.js"(exports2) {
15140
+ "../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/schema/core/bool.js"(exports2) {
15102
15141
  "use strict";
15103
15142
  var Scalar = require_Scalar();
15104
15143
  var boolTag = {
@@ -15120,9 +15159,9 @@ var require_bool = __commonJS({
15120
15159
  }
15121
15160
  });
15122
15161
 
15123
- // ../../node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/stringify/stringifyNumber.js
15162
+ // ../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/stringify/stringifyNumber.js
15124
15163
  var require_stringifyNumber = __commonJS({
15125
- "../../node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/stringify/stringifyNumber.js"(exports2) {
15164
+ "../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/stringify/stringifyNumber.js"(exports2) {
15126
15165
  "use strict";
15127
15166
  function stringifyNumber({ format, minFractionDigits, tag, value }) {
15128
15167
  if (typeof value === "bigint")
@@ -15131,7 +15170,7 @@ var require_stringifyNumber = __commonJS({
15131
15170
  if (!isFinite(num))
15132
15171
  return isNaN(num) ? ".nan" : num < 0 ? "-.inf" : ".inf";
15133
15172
  let n = Object.is(value, -0) ? "-0" : JSON.stringify(value);
15134
- if (!format && minFractionDigits && (!tag || tag === "tag:yaml.org,2002:float") && /^\d/.test(n)) {
15173
+ if (!format && minFractionDigits && (!tag || tag === "tag:yaml.org,2002:float") && /^-?\d/.test(n) && !n.includes("e")) {
15135
15174
  let i = n.indexOf(".");
15136
15175
  if (i < 0) {
15137
15176
  i = n.length;
@@ -15147,9 +15186,9 @@ var require_stringifyNumber = __commonJS({
15147
15186
  }
15148
15187
  });
15149
15188
 
15150
- // ../../node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/schema/core/float.js
15189
+ // ../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/schema/core/float.js
15151
15190
  var require_float = __commonJS({
15152
- "../../node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/schema/core/float.js"(exports2) {
15191
+ "../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/schema/core/float.js"(exports2) {
15153
15192
  "use strict";
15154
15193
  var Scalar = require_Scalar();
15155
15194
  var stringifyNumber = require_stringifyNumber();
@@ -15193,9 +15232,9 @@ var require_float = __commonJS({
15193
15232
  }
15194
15233
  });
15195
15234
 
15196
- // ../../node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/schema/core/int.js
15235
+ // ../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/schema/core/int.js
15197
15236
  var require_int = __commonJS({
15198
- "../../node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/schema/core/int.js"(exports2) {
15237
+ "../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/schema/core/int.js"(exports2) {
15199
15238
  "use strict";
15200
15239
  var stringifyNumber = require_stringifyNumber();
15201
15240
  var intIdentify = (value) => typeof value === "bigint" || Number.isInteger(value);
@@ -15238,9 +15277,9 @@ var require_int = __commonJS({
15238
15277
  }
15239
15278
  });
15240
15279
 
15241
- // ../../node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/schema/core/schema.js
15280
+ // ../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/schema/core/schema.js
15242
15281
  var require_schema = __commonJS({
15243
- "../../node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/schema/core/schema.js"(exports2) {
15282
+ "../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/schema/core/schema.js"(exports2) {
15244
15283
  "use strict";
15245
15284
  var map = require_map2();
15246
15285
  var _null = require_null2();
@@ -15266,9 +15305,9 @@ var require_schema = __commonJS({
15266
15305
  }
15267
15306
  });
15268
15307
 
15269
- // ../../node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/schema/json/schema.js
15308
+ // ../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/schema/json/schema.js
15270
15309
  var require_schema2 = __commonJS({
15271
- "../../node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/schema/json/schema.js"(exports2) {
15310
+ "../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/schema/json/schema.js"(exports2) {
15272
15311
  "use strict";
15273
15312
  var Scalar = require_Scalar();
15274
15313
  var map = require_map2();
@@ -15333,9 +15372,9 @@ var require_schema2 = __commonJS({
15333
15372
  }
15334
15373
  });
15335
15374
 
15336
- // ../../node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/schema/yaml-1.1/binary.js
15375
+ // ../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/schema/yaml-1.1/binary.js
15337
15376
  var require_binary = __commonJS({
15338
- "../../node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/schema/yaml-1.1/binary.js"(exports2) {
15377
+ "../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/schema/yaml-1.1/binary.js"(exports2) {
15339
15378
  "use strict";
15340
15379
  var node_buffer = require("buffer");
15341
15380
  var Scalar = require_Scalar();
@@ -15399,9 +15438,9 @@ var require_binary = __commonJS({
15399
15438
  }
15400
15439
  });
15401
15440
 
15402
- // ../../node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/schema/yaml-1.1/pairs.js
15441
+ // ../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/schema/yaml-1.1/pairs.js
15403
15442
  var require_pairs = __commonJS({
15404
- "../../node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/schema/yaml-1.1/pairs.js"(exports2) {
15443
+ "../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/schema/yaml-1.1/pairs.js"(exports2) {
15405
15444
  "use strict";
15406
15445
  var identity = require_identity();
15407
15446
  var Pair = require_Pair();
@@ -15477,9 +15516,9 @@ ${cn.comment}` : item.comment;
15477
15516
  }
15478
15517
  });
15479
15518
 
15480
- // ../../node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/schema/yaml-1.1/omap.js
15519
+ // ../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/schema/yaml-1.1/omap.js
15481
15520
  var require_omap = __commonJS({
15482
- "../../node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/schema/yaml-1.1/omap.js"(exports2) {
15521
+ "../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/schema/yaml-1.1/omap.js"(exports2) {
15483
15522
  "use strict";
15484
15523
  var identity = require_identity();
15485
15524
  var toJS = require_toJS();
@@ -15555,9 +15594,9 @@ var require_omap = __commonJS({
15555
15594
  }
15556
15595
  });
15557
15596
 
15558
- // ../../node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/schema/yaml-1.1/bool.js
15597
+ // ../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/schema/yaml-1.1/bool.js
15559
15598
  var require_bool2 = __commonJS({
15560
- "../../node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/schema/yaml-1.1/bool.js"(exports2) {
15599
+ "../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/schema/yaml-1.1/bool.js"(exports2) {
15561
15600
  "use strict";
15562
15601
  var Scalar = require_Scalar();
15563
15602
  function boolStringify({ value, source }, ctx) {
@@ -15587,9 +15626,9 @@ var require_bool2 = __commonJS({
15587
15626
  }
15588
15627
  });
15589
15628
 
15590
- // ../../node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/schema/yaml-1.1/float.js
15629
+ // ../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/schema/yaml-1.1/float.js
15591
15630
  var require_float2 = __commonJS({
15592
- "../../node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/schema/yaml-1.1/float.js"(exports2) {
15631
+ "../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/schema/yaml-1.1/float.js"(exports2) {
15593
15632
  "use strict";
15594
15633
  var Scalar = require_Scalar();
15595
15634
  var stringifyNumber = require_stringifyNumber();
@@ -15636,9 +15675,9 @@ var require_float2 = __commonJS({
15636
15675
  }
15637
15676
  });
15638
15677
 
15639
- // ../../node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/schema/yaml-1.1/int.js
15678
+ // ../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/schema/yaml-1.1/int.js
15640
15679
  var require_int2 = __commonJS({
15641
- "../../node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/schema/yaml-1.1/int.js"(exports2) {
15680
+ "../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/schema/yaml-1.1/int.js"(exports2) {
15642
15681
  "use strict";
15643
15682
  var stringifyNumber = require_stringifyNumber();
15644
15683
  var intIdentify = (value) => typeof value === "bigint" || Number.isInteger(value);
@@ -15715,9 +15754,9 @@ var require_int2 = __commonJS({
15715
15754
  }
15716
15755
  });
15717
15756
 
15718
- // ../../node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/schema/yaml-1.1/set.js
15757
+ // ../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/schema/yaml-1.1/set.js
15719
15758
  var require_set2 = __commonJS({
15720
- "../../node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/schema/yaml-1.1/set.js"(exports2) {
15759
+ "../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/schema/yaml-1.1/set.js"(exports2) {
15721
15760
  "use strict";
15722
15761
  var identity = require_identity();
15723
15762
  var Pair = require_Pair();
@@ -15804,9 +15843,9 @@ var require_set2 = __commonJS({
15804
15843
  }
15805
15844
  });
15806
15845
 
15807
- // ../../node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/schema/yaml-1.1/timestamp.js
15846
+ // ../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/schema/yaml-1.1/timestamp.js
15808
15847
  var require_timestamp = __commonJS({
15809
- "../../node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/schema/yaml-1.1/timestamp.js"(exports2) {
15848
+ "../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/schema/yaml-1.1/timestamp.js"(exports2) {
15810
15849
  "use strict";
15811
15850
  var stringifyNumber = require_stringifyNumber();
15812
15851
  function parseSexagesimal(str, asBigInt) {
@@ -15892,9 +15931,9 @@ var require_timestamp = __commonJS({
15892
15931
  }
15893
15932
  });
15894
15933
 
15895
- // ../../node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/schema/yaml-1.1/schema.js
15934
+ // ../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/schema/yaml-1.1/schema.js
15896
15935
  var require_schema3 = __commonJS({
15897
- "../../node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/schema/yaml-1.1/schema.js"(exports2) {
15936
+ "../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/schema/yaml-1.1/schema.js"(exports2) {
15898
15937
  "use strict";
15899
15938
  var map = require_map2();
15900
15939
  var _null = require_null2();
@@ -15936,9 +15975,9 @@ var require_schema3 = __commonJS({
15936
15975
  }
15937
15976
  });
15938
15977
 
15939
- // ../../node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/schema/tags.js
15978
+ // ../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/schema/tags.js
15940
15979
  var require_tags = __commonJS({
15941
- "../../node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/schema/tags.js"(exports2) {
15980
+ "../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/schema/tags.js"(exports2) {
15942
15981
  "use strict";
15943
15982
  var map = require_map2();
15944
15983
  var _null = require_null2();
@@ -16030,9 +16069,9 @@ var require_tags = __commonJS({
16030
16069
  }
16031
16070
  });
16032
16071
 
16033
- // ../../node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/schema/Schema.js
16072
+ // ../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/schema/Schema.js
16034
16073
  var require_Schema = __commonJS({
16035
- "../../node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/schema/Schema.js"(exports2) {
16074
+ "../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/schema/Schema.js"(exports2) {
16036
16075
  "use strict";
16037
16076
  var identity = require_identity();
16038
16077
  var map = require_map2();
@@ -16062,9 +16101,9 @@ var require_Schema = __commonJS({
16062
16101
  }
16063
16102
  });
16064
16103
 
16065
- // ../../node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/stringify/stringifyDocument.js
16104
+ // ../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/stringify/stringifyDocument.js
16066
16105
  var require_stringifyDocument = __commonJS({
16067
- "../../node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/stringify/stringifyDocument.js"(exports2) {
16106
+ "../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/stringify/stringifyDocument.js"(exports2) {
16068
16107
  "use strict";
16069
16108
  var identity = require_identity();
16070
16109
  var stringify = require_stringify();
@@ -16142,9 +16181,9 @@ var require_stringifyDocument = __commonJS({
16142
16181
  }
16143
16182
  });
16144
16183
 
16145
- // ../../node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/doc/Document.js
16184
+ // ../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/doc/Document.js
16146
16185
  var require_Document = __commonJS({
16147
- "../../node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/doc/Document.js"(exports2) {
16186
+ "../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/doc/Document.js"(exports2) {
16148
16187
  "use strict";
16149
16188
  var Alias = require_Alias();
16150
16189
  var Collection = require_Collection();
@@ -16451,9 +16490,9 @@ var require_Document = __commonJS({
16451
16490
  }
16452
16491
  });
16453
16492
 
16454
- // ../../node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/errors.js
16493
+ // ../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/errors.js
16455
16494
  var require_errors3 = __commonJS({
16456
- "../../node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/errors.js"(exports2) {
16495
+ "../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/errors.js"(exports2) {
16457
16496
  "use strict";
16458
16497
  var YAMLError = class extends Error {
16459
16498
  constructor(name, pos, code, message) {
@@ -16516,9 +16555,9 @@ ${pointer}
16516
16555
  }
16517
16556
  });
16518
16557
 
16519
- // ../../node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/compose/resolve-props.js
16558
+ // ../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/compose/resolve-props.js
16520
16559
  var require_resolve_props = __commonJS({
16521
- "../../node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/compose/resolve-props.js"(exports2) {
16560
+ "../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/compose/resolve-props.js"(exports2) {
16522
16561
  "use strict";
16523
16562
  function resolveProps(tokens, { flow, indicator, next, offset, onError, parentIndent, startOnNewline }) {
16524
16563
  let spaceBefore = false;
@@ -16650,9 +16689,9 @@ var require_resolve_props = __commonJS({
16650
16689
  }
16651
16690
  });
16652
16691
 
16653
- // ../../node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/compose/util-contains-newline.js
16692
+ // ../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/compose/util-contains-newline.js
16654
16693
  var require_util_contains_newline = __commonJS({
16655
- "../../node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/compose/util-contains-newline.js"(exports2) {
16694
+ "../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/compose/util-contains-newline.js"(exports2) {
16656
16695
  "use strict";
16657
16696
  function containsNewline(key) {
16658
16697
  if (!key)
@@ -16692,9 +16731,9 @@ var require_util_contains_newline = __commonJS({
16692
16731
  }
16693
16732
  });
16694
16733
 
16695
- // ../../node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/compose/util-flow-indent-check.js
16734
+ // ../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/compose/util-flow-indent-check.js
16696
16735
  var require_util_flow_indent_check = __commonJS({
16697
- "../../node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/compose/util-flow-indent-check.js"(exports2) {
16736
+ "../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/compose/util-flow-indent-check.js"(exports2) {
16698
16737
  "use strict";
16699
16738
  var utilContainsNewline = require_util_contains_newline();
16700
16739
  function flowIndentCheck(indent, fc, onError) {
@@ -16710,9 +16749,9 @@ var require_util_flow_indent_check = __commonJS({
16710
16749
  }
16711
16750
  });
16712
16751
 
16713
- // ../../node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/compose/util-map-includes.js
16752
+ // ../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/compose/util-map-includes.js
16714
16753
  var require_util_map_includes = __commonJS({
16715
- "../../node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/compose/util-map-includes.js"(exports2) {
16754
+ "../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/compose/util-map-includes.js"(exports2) {
16716
16755
  "use strict";
16717
16756
  var identity = require_identity();
16718
16757
  function mapIncludes(ctx, items, search) {
@@ -16726,9 +16765,9 @@ var require_util_map_includes = __commonJS({
16726
16765
  }
16727
16766
  });
16728
16767
 
16729
- // ../../node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/compose/resolve-block-map.js
16768
+ // ../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/compose/resolve-block-map.js
16730
16769
  var require_resolve_block_map = __commonJS({
16731
- "../../node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/compose/resolve-block-map.js"(exports2) {
16770
+ "../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/compose/resolve-block-map.js"(exports2) {
16732
16771
  "use strict";
16733
16772
  var Pair = require_Pair();
16734
16773
  var YAMLMap = require_YAMLMap();
@@ -16834,9 +16873,9 @@ var require_resolve_block_map = __commonJS({
16834
16873
  }
16835
16874
  });
16836
16875
 
16837
- // ../../node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/compose/resolve-block-seq.js
16876
+ // ../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/compose/resolve-block-seq.js
16838
16877
  var require_resolve_block_seq = __commonJS({
16839
- "../../node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/compose/resolve-block-seq.js"(exports2) {
16878
+ "../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/compose/resolve-block-seq.js"(exports2) {
16840
16879
  "use strict";
16841
16880
  var YAMLSeq = require_YAMLSeq();
16842
16881
  var resolveProps = require_resolve_props();
@@ -16885,9 +16924,9 @@ var require_resolve_block_seq = __commonJS({
16885
16924
  }
16886
16925
  });
16887
16926
 
16888
- // ../../node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/compose/resolve-end.js
16927
+ // ../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/compose/resolve-end.js
16889
16928
  var require_resolve_end = __commonJS({
16890
- "../../node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/compose/resolve-end.js"(exports2) {
16929
+ "../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/compose/resolve-end.js"(exports2) {
16891
16930
  "use strict";
16892
16931
  function resolveEnd(end, offset, reqSpace, onError) {
16893
16932
  let comment = "";
@@ -16928,9 +16967,9 @@ var require_resolve_end = __commonJS({
16928
16967
  }
16929
16968
  });
16930
16969
 
16931
- // ../../node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/compose/resolve-flow-collection.js
16970
+ // ../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/compose/resolve-flow-collection.js
16932
16971
  var require_resolve_flow_collection = __commonJS({
16933
- "../../node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/compose/resolve-flow-collection.js"(exports2) {
16972
+ "../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/compose/resolve-flow-collection.js"(exports2) {
16934
16973
  "use strict";
16935
16974
  var identity = require_identity();
16936
16975
  var Pair = require_Pair();
@@ -17122,9 +17161,9 @@ var require_resolve_flow_collection = __commonJS({
17122
17161
  }
17123
17162
  });
17124
17163
 
17125
- // ../../node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/compose/compose-collection.js
17164
+ // ../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/compose/compose-collection.js
17126
17165
  var require_compose_collection = __commonJS({
17127
- "../../node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/compose/compose-collection.js"(exports2) {
17166
+ "../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/compose/compose-collection.js"(exports2) {
17128
17167
  "use strict";
17129
17168
  var identity = require_identity();
17130
17169
  var Scalar = require_Scalar();
@@ -17187,9 +17226,9 @@ var require_compose_collection = __commonJS({
17187
17226
  }
17188
17227
  });
17189
17228
 
17190
- // ../../node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/compose/resolve-block-scalar.js
17229
+ // ../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/compose/resolve-block-scalar.js
17191
17230
  var require_resolve_block_scalar = __commonJS({
17192
- "../../node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/compose/resolve-block-scalar.js"(exports2) {
17231
+ "../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/compose/resolve-block-scalar.js"(exports2) {
17193
17232
  "use strict";
17194
17233
  var Scalar = require_Scalar();
17195
17234
  function resolveBlockScalar(ctx, scalar, onError) {
@@ -17370,9 +17409,9 @@ var require_resolve_block_scalar = __commonJS({
17370
17409
  }
17371
17410
  });
17372
17411
 
17373
- // ../../node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/compose/resolve-flow-scalar.js
17412
+ // ../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/compose/resolve-flow-scalar.js
17374
17413
  var require_resolve_flow_scalar = __commonJS({
17375
- "../../node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/compose/resolve-flow-scalar.js"(exports2) {
17414
+ "../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/compose/resolve-flow-scalar.js"(exports2) {
17376
17415
  "use strict";
17377
17416
  var Scalar = require_Scalar();
17378
17417
  var resolveEnd = require_resolve_end();
@@ -17503,7 +17542,7 @@ var require_resolve_flow_scalar = __commonJS({
17503
17542
  while (next === " " || next === " ")
17504
17543
  next = source[++i + 1];
17505
17544
  } else if (next === "x" || next === "u" || next === "U") {
17506
- const length = { x: 2, u: 4, U: 8 }[next];
17545
+ const length = next === "x" ? 2 : next === "u" ? 4 : 8;
17507
17546
  res += parseCharCode(source, i + 1, length, onError);
17508
17547
  i += length;
17509
17548
  } else {
@@ -17578,20 +17617,21 @@ var require_resolve_flow_scalar = __commonJS({
17578
17617
  const cc = source.substr(offset, length);
17579
17618
  const ok = cc.length === length && /^[0-9a-fA-F]+$/.test(cc);
17580
17619
  const code = ok ? parseInt(cc, 16) : NaN;
17581
- if (isNaN(code)) {
17620
+ try {
17621
+ return String.fromCodePoint(code);
17622
+ } catch {
17582
17623
  const raw = source.substr(offset - 2, length + 2);
17583
17624
  onError(offset - 2, "BAD_DQ_ESCAPE", `Invalid escape sequence ${raw}`);
17584
17625
  return raw;
17585
17626
  }
17586
- return String.fromCodePoint(code);
17587
17627
  }
17588
17628
  exports2.resolveFlowScalar = resolveFlowScalar;
17589
17629
  }
17590
17630
  });
17591
17631
 
17592
- // ../../node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/compose/compose-scalar.js
17632
+ // ../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/compose/compose-scalar.js
17593
17633
  var require_compose_scalar = __commonJS({
17594
- "../../node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/compose/compose-scalar.js"(exports2) {
17634
+ "../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/compose/compose-scalar.js"(exports2) {
17595
17635
  "use strict";
17596
17636
  var identity = require_identity();
17597
17637
  var Scalar = require_Scalar();
@@ -17670,9 +17710,9 @@ var require_compose_scalar = __commonJS({
17670
17710
  }
17671
17711
  });
17672
17712
 
17673
- // ../../node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/compose/util-empty-scalar-position.js
17713
+ // ../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/compose/util-empty-scalar-position.js
17674
17714
  var require_util_empty_scalar_position = __commonJS({
17675
- "../../node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/compose/util-empty-scalar-position.js"(exports2) {
17715
+ "../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/compose/util-empty-scalar-position.js"(exports2) {
17676
17716
  "use strict";
17677
17717
  function emptyScalarPosition(offset, before, pos) {
17678
17718
  if (before) {
@@ -17700,9 +17740,9 @@ var require_util_empty_scalar_position = __commonJS({
17700
17740
  }
17701
17741
  });
17702
17742
 
17703
- // ../../node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/compose/compose-node.js
17743
+ // ../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/compose/compose-node.js
17704
17744
  var require_compose_node = __commonJS({
17705
- "../../node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/compose/compose-node.js"(exports2) {
17745
+ "../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/compose/compose-node.js"(exports2) {
17706
17746
  "use strict";
17707
17747
  var Alias = require_Alias();
17708
17748
  var identity = require_identity();
@@ -17733,17 +17773,22 @@ var require_compose_node = __commonJS({
17733
17773
  case "block-map":
17734
17774
  case "block-seq":
17735
17775
  case "flow-collection":
17736
- node = composeCollection.composeCollection(CN, ctx, token, props, onError);
17737
- if (anchor)
17738
- node.anchor = anchor.source.substring(1);
17776
+ try {
17777
+ node = composeCollection.composeCollection(CN, ctx, token, props, onError);
17778
+ if (anchor)
17779
+ node.anchor = anchor.source.substring(1);
17780
+ } catch (error) {
17781
+ const message = error instanceof Error ? error.message : String(error);
17782
+ onError(token, "RESOURCE_EXHAUSTION", message);
17783
+ }
17739
17784
  break;
17740
17785
  default: {
17741
17786
  const message = token.type === "error" ? token.message : `Unsupported token (type: ${token.type})`;
17742
17787
  onError(token, "UNEXPECTED_TOKEN", message);
17743
- node = composeEmptyNode(ctx, token.offset, void 0, null, props, onError);
17744
17788
  isSrcToken = false;
17745
17789
  }
17746
17790
  }
17791
+ node ?? (node = composeEmptyNode(ctx, token.offset, void 0, null, props, onError));
17747
17792
  if (anchor && node.anchor === "")
17748
17793
  onError(anchor, "BAD_ALIAS", "Anchor cannot be an empty string");
17749
17794
  if (atKey && ctx.options.stringKeys && (!identity.isScalar(node) || typeof node.value !== "string" || node.tag && node.tag !== "tag:yaml.org,2002:str")) {
@@ -17801,9 +17846,9 @@ var require_compose_node = __commonJS({
17801
17846
  }
17802
17847
  });
17803
17848
 
17804
- // ../../node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/compose/compose-doc.js
17849
+ // ../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/compose/compose-doc.js
17805
17850
  var require_compose_doc = __commonJS({
17806
- "../../node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/compose/compose-doc.js"(exports2) {
17851
+ "../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/compose/compose-doc.js"(exports2) {
17807
17852
  "use strict";
17808
17853
  var Document = require_Document();
17809
17854
  var composeNode = require_compose_node();
@@ -17844,9 +17889,9 @@ var require_compose_doc = __commonJS({
17844
17889
  }
17845
17890
  });
17846
17891
 
17847
- // ../../node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/compose/composer.js
17892
+ // ../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/compose/composer.js
17848
17893
  var require_composer = __commonJS({
17849
- "../../node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/compose/composer.js"(exports2) {
17894
+ "../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/compose/composer.js"(exports2) {
17850
17895
  "use strict";
17851
17896
  var node_process = require("process");
17852
17897
  var directives = require_directives();
@@ -17928,8 +17973,10 @@ ${cb}` : comment;
17928
17973
  }
17929
17974
  }
17930
17975
  if (afterDoc) {
17931
- Array.prototype.push.apply(doc.errors, this.errors);
17932
- Array.prototype.push.apply(doc.warnings, this.warnings);
17976
+ for (let i = 0; i < this.errors.length; ++i)
17977
+ doc.errors.push(this.errors[i]);
17978
+ for (let i = 0; i < this.warnings.length; ++i)
17979
+ doc.warnings.push(this.warnings[i]);
17933
17980
  } else {
17934
17981
  doc.errors = this.errors;
17935
17982
  doc.warnings = this.warnings;
@@ -18050,9 +18097,9 @@ ${end.comment}` : end.comment;
18050
18097
  }
18051
18098
  });
18052
18099
 
18053
- // ../../node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/parse/cst-scalar.js
18100
+ // ../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/parse/cst-scalar.js
18054
18101
  var require_cst_scalar = __commonJS({
18055
- "../../node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/parse/cst-scalar.js"(exports2) {
18102
+ "../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/parse/cst-scalar.js"(exports2) {
18056
18103
  "use strict";
18057
18104
  var resolveBlockScalar = require_resolve_block_scalar();
18058
18105
  var resolveFlowScalar = require_resolve_flow_scalar();
@@ -18235,9 +18282,9 @@ var require_cst_scalar = __commonJS({
18235
18282
  }
18236
18283
  });
18237
18284
 
18238
- // ../../node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/parse/cst-stringify.js
18285
+ // ../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/parse/cst-stringify.js
18239
18286
  var require_cst_stringify = __commonJS({
18240
- "../../node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/parse/cst-stringify.js"(exports2) {
18287
+ "../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/parse/cst-stringify.js"(exports2) {
18241
18288
  "use strict";
18242
18289
  var stringify = (cst) => "type" in cst ? stringifyToken(cst) : stringifyItem(cst);
18243
18290
  function stringifyToken(token) {
@@ -18296,9 +18343,9 @@ var require_cst_stringify = __commonJS({
18296
18343
  }
18297
18344
  });
18298
18345
 
18299
- // ../../node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/parse/cst-visit.js
18346
+ // ../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/parse/cst-visit.js
18300
18347
  var require_cst_visit = __commonJS({
18301
- "../../node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/parse/cst-visit.js"(exports2) {
18348
+ "../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/parse/cst-visit.js"(exports2) {
18302
18349
  "use strict";
18303
18350
  var BREAK = Symbol("break visit");
18304
18351
  var SKIP = Symbol("skip children");
@@ -18358,9 +18405,9 @@ var require_cst_visit = __commonJS({
18358
18405
  }
18359
18406
  });
18360
18407
 
18361
- // ../../node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/parse/cst.js
18408
+ // ../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/parse/cst.js
18362
18409
  var require_cst = __commonJS({
18363
- "../../node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/parse/cst.js"(exports2) {
18410
+ "../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/parse/cst.js"(exports2) {
18364
18411
  "use strict";
18365
18412
  var cstScalar = require_cst_scalar();
18366
18413
  var cstStringify = require_cst_stringify();
@@ -18460,9 +18507,9 @@ var require_cst = __commonJS({
18460
18507
  }
18461
18508
  });
18462
18509
 
18463
- // ../../node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/parse/lexer.js
18510
+ // ../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/parse/lexer.js
18464
18511
  var require_lexer = __commonJS({
18465
- "../../node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/parse/lexer.js"(exports2) {
18512
+ "../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/parse/lexer.js"(exports2) {
18466
18513
  "use strict";
18467
18514
  var cst = require_cst();
18468
18515
  function isEmpty(ch) {
@@ -18662,7 +18709,7 @@ var require_lexer = __commonJS({
18662
18709
  const n = (yield* this.pushCount(1)) + (yield* this.pushSpaces(true));
18663
18710
  this.indentNext = this.indentValue + 1;
18664
18711
  this.indentValue += n;
18665
- return yield* this.parseBlockStart();
18712
+ return "block-start";
18666
18713
  }
18667
18714
  return "doc";
18668
18715
  }
@@ -18961,28 +19008,38 @@ var require_lexer = __commonJS({
18961
19008
  return 0;
18962
19009
  }
18963
19010
  *pushIndicators() {
18964
- switch (this.charAt(0)) {
18965
- case "!":
18966
- return (yield* this.pushTag()) + (yield* this.pushSpaces(true)) + (yield* this.pushIndicators());
18967
- case "&":
18968
- return (yield* this.pushUntil(isNotAnchorChar)) + (yield* this.pushSpaces(true)) + (yield* this.pushIndicators());
18969
- case "-":
18970
- // this is an error
18971
- case "?":
18972
- // this is an error outside flow collections
18973
- case ":": {
18974
- const inFlow = this.flowLevel > 0;
18975
- const ch1 = this.charAt(1);
18976
- if (isEmpty(ch1) || inFlow && flowIndicatorChars.has(ch1)) {
18977
- if (!inFlow)
18978
- this.indentNext = this.indentValue + 1;
18979
- else if (this.flowKey)
18980
- this.flowKey = false;
18981
- return (yield* this.pushCount(1)) + (yield* this.pushSpaces(true)) + (yield* this.pushIndicators());
19011
+ let n = 0;
19012
+ loop: while (true) {
19013
+ switch (this.charAt(0)) {
19014
+ case "!":
19015
+ n += yield* this.pushTag();
19016
+ n += yield* this.pushSpaces(true);
19017
+ continue loop;
19018
+ case "&":
19019
+ n += yield* this.pushUntil(isNotAnchorChar);
19020
+ n += yield* this.pushSpaces(true);
19021
+ continue loop;
19022
+ case "-":
19023
+ // this is an error
19024
+ case "?":
19025
+ // this is an error outside flow collections
19026
+ case ":": {
19027
+ const inFlow = this.flowLevel > 0;
19028
+ const ch1 = this.charAt(1);
19029
+ if (isEmpty(ch1) || inFlow && flowIndicatorChars.has(ch1)) {
19030
+ if (!inFlow)
19031
+ this.indentNext = this.indentValue + 1;
19032
+ else if (this.flowKey)
19033
+ this.flowKey = false;
19034
+ n += yield* this.pushCount(1);
19035
+ n += yield* this.pushSpaces(true);
19036
+ continue loop;
19037
+ }
18982
19038
  }
18983
19039
  }
19040
+ break loop;
18984
19041
  }
18985
- return 0;
19042
+ return n;
18986
19043
  }
18987
19044
  *pushTag() {
18988
19045
  if (this.charAt(1) === "<") {
@@ -19039,9 +19096,9 @@ var require_lexer = __commonJS({
19039
19096
  }
19040
19097
  });
19041
19098
 
19042
- // ../../node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/parse/line-counter.js
19099
+ // ../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/parse/line-counter.js
19043
19100
  var require_line_counter = __commonJS({
19044
- "../../node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/parse/line-counter.js"(exports2) {
19101
+ "../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/parse/line-counter.js"(exports2) {
19045
19102
  "use strict";
19046
19103
  var LineCounter = class {
19047
19104
  constructor() {
@@ -19070,9 +19127,9 @@ var require_line_counter = __commonJS({
19070
19127
  }
19071
19128
  });
19072
19129
 
19073
- // ../../node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/parse/parser.js
19130
+ // ../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/parse/parser.js
19074
19131
  var require_parser = __commonJS({
19075
- "../../node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/parse/parser.js"(exports2) {
19132
+ "../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/parse/parser.js"(exports2) {
19076
19133
  "use strict";
19077
19134
  var node_process = require("process");
19078
19135
  var cst = require_cst();
@@ -19141,6 +19198,13 @@ var require_parser = __commonJS({
19141
19198
  }
19142
19199
  return prev.splice(i, prev.length);
19143
19200
  }
19201
+ function arrayPushArray(target, source) {
19202
+ if (source.length < 1e5)
19203
+ Array.prototype.push.apply(target, source);
19204
+ else
19205
+ for (let i = 0; i < source.length; ++i)
19206
+ target.push(source[i]);
19207
+ }
19144
19208
  function fixFlowSeqItems(fc) {
19145
19209
  if (fc.start.type === "flow-seq-start") {
19146
19210
  for (const it of fc.items) {
@@ -19150,11 +19214,11 @@ var require_parser = __commonJS({
19150
19214
  delete it.key;
19151
19215
  if (isFlowToken(it.value)) {
19152
19216
  if (it.value.end)
19153
- Array.prototype.push.apply(it.value.end, it.sep);
19217
+ arrayPushArray(it.value.end, it.sep);
19154
19218
  else
19155
19219
  it.value.end = it.sep;
19156
19220
  } else
19157
- Array.prototype.push.apply(it.start, it.sep);
19221
+ arrayPushArray(it.start, it.sep);
19158
19222
  delete it.sep;
19159
19223
  }
19160
19224
  }
@@ -19509,7 +19573,7 @@ var require_parser = __commonJS({
19509
19573
  const prev = map.items[map.items.length - 2];
19510
19574
  const end = prev?.value?.end;
19511
19575
  if (Array.isArray(end)) {
19512
- Array.prototype.push.apply(end, it.start);
19576
+ arrayPushArray(end, it.start);
19513
19577
  end.push(this.sourceToken);
19514
19578
  map.items.pop();
19515
19579
  return;
@@ -19697,7 +19761,7 @@ var require_parser = __commonJS({
19697
19761
  const prev = seq.items[seq.items.length - 2];
19698
19762
  const end = prev?.value?.end;
19699
19763
  if (Array.isArray(end)) {
19700
- Array.prototype.push.apply(end, it.start);
19764
+ arrayPushArray(end, it.start);
19701
19765
  end.push(this.sourceToken);
19702
19766
  seq.items.pop();
19703
19767
  return;
@@ -19937,9 +20001,9 @@ var require_parser = __commonJS({
19937
20001
  }
19938
20002
  });
19939
20003
 
19940
- // ../../node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/public-api.js
20004
+ // ../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/public-api.js
19941
20005
  var require_public_api = __commonJS({
19942
- "../../node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/public-api.js"(exports2) {
20006
+ "../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/public-api.js"(exports2) {
19943
20007
  "use strict";
19944
20008
  var composer = require_composer();
19945
20009
  var Document = require_Document();
@@ -20034,9 +20098,9 @@ var require_public_api = __commonJS({
20034
20098
  }
20035
20099
  });
20036
20100
 
20037
- // ../../node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/index.js
20101
+ // ../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/index.js
20038
20102
  var require_dist4 = __commonJS({
20039
- "../../node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/index.js"(exports2) {
20103
+ "../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/index.js"(exports2) {
20040
20104
  "use strict";
20041
20105
  var composer = require_composer();
20042
20106
  var Document = require_Document();
@@ -25539,7 +25603,7 @@ var import_path = require("path");
25539
25603
  var import_promises = require("fs/promises");
25540
25604
  var import_yaml = __toESM(require_dist4());
25541
25605
  var import_shuttle = __toESM(require_dist5());
25542
- var buildVersion = true ? "0.30.3" : pkg.version;
25606
+ var buildVersion = true ? "0.30.5" : pkg.version;
25543
25607
  var sifterBrand = {
25544
25608
  product: {
25545
25609
  id: "sifter",