@donotdev/cli 0.1.46 → 0.2.1

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 (48) hide show
  1. package/dependencies-matrix.json +189 -149
  2. package/dist/bin/commands/agent-setup.js +83 -19
  3. package/dist/bin/commands/build.js +207 -62
  4. package/dist/bin/commands/bump.js +108 -44
  5. package/dist/bin/commands/cacheout.js +83 -19
  6. package/dist/bin/commands/coach.js +83 -19
  7. package/dist/bin/commands/create-app.js +111 -43
  8. package/dist/bin/commands/create-project.js +111 -43
  9. package/dist/bin/commands/db.js +134098 -72027
  10. package/dist/bin/commands/deploy.js +524 -323
  11. package/dist/bin/commands/dev.js +87 -23
  12. package/dist/bin/commands/doctor.js +83 -19
  13. package/dist/bin/commands/emu.js +93 -29
  14. package/dist/bin/commands/format.js +83 -19
  15. package/dist/bin/commands/get-demo.js +87 -23
  16. package/dist/bin/commands/make-admin.js +7466 -8217
  17. package/dist/bin/commands/preview.js +87 -23
  18. package/dist/bin/commands/seed.js +134098 -72027
  19. package/dist/bin/commands/setup-cicd.js +107 -43
  20. package/dist/bin/commands/setup.js +110 -43
  21. package/dist/bin/commands/staging.js +524 -323
  22. package/dist/bin/commands/sync-secrets.js +88 -24
  23. package/dist/bin/commands/type-check.js +83 -19
  24. package/dist/bin/commands/wai.js +83 -19
  25. package/dist/bin/dndev.js +8 -3
  26. package/dist/index.js +534 -331
  27. package/package.json +3 -3
  28. package/templates/app-next/src/app/ClientLayout.tsx.example +11 -1
  29. package/templates/app-next/src/app/layout.tsx.example +19 -1
  30. package/templates/deploy-config/vercel.json.example +13 -13
  31. package/templates/functions-firebase/src/billing/handleStripeWebhook.ts.example +8 -18
  32. package/templates/functions-firebase/src/billing/index.ts.example +0 -1
  33. package/templates/functions-firebase/src/billing/refreshSubscriptionStatus.ts.example +4 -8
  34. package/templates/functions-firebase/src/index.ts.example +0 -1
  35. package/templates/functions-supabase/supabase/config.toml.example +4 -0
  36. package/templates/functions-supabase/supabase/functions/stripe-webhook/index.ts.example +12 -0
  37. package/templates/functions-supabase/supabase/migrations/20250101000005_webhook_events.sql +133 -0
  38. package/templates/functions-vercel/.env.example +9 -0
  39. package/templates/functions-vercel/src/api/billing/handleStripeWebhook.ts.example +12 -14
  40. package/templates/functions-vercel/src/api/billing/refreshSubscriptionStatus.ts.example +4 -14
  41. package/templates/overlay-supabase/src/config/providers.ts.example +2 -2
  42. package/templates/root-consumer/.claude/hooks/guard-write.sh.example +32 -0
  43. package/templates/root-consumer/.claude/hooks/record-lookup.sh.example +22 -0
  44. package/templates/root-consumer/.claude/rules/definition-of-done.md.example +7 -0
  45. package/templates/root-consumer/.claude/rules/framework.md.example +6 -0
  46. package/templates/root-consumer/.claude/settings.json.example +11 -1
  47. package/templates/functions-firebase/src/billing/processPaymentSuccess.ts.example +0 -14
  48. package/templates/functions-vercel/src/api/billing/processPaymentSuccess.ts.example +0 -20
package/dist/index.js CHANGED
@@ -10,11 +10,20 @@ var __require = /* @__PURE__ */ ((x) => typeof require !== "undefined" ? require
10
10
  if (typeof require !== "undefined") return require.apply(this, arguments);
11
11
  throw Error('Dynamic require of "' + x + '" is not supported');
12
12
  });
13
- var __esm = (fn, res) => function __init() {
14
- return fn && (res = (0, fn[__getOwnPropNames(fn)[0]])(fn = 0)), res;
13
+ var __esm = (fn, res, err) => function __init() {
14
+ if (err) throw err[0];
15
+ try {
16
+ return fn && (res = (0, fn[__getOwnPropNames(fn)[0]])(fn = 0)), res;
17
+ } catch (e) {
18
+ throw err = [e], e;
19
+ }
15
20
  };
16
21
  var __commonJS = (cb, mod) => function __require2() {
17
- return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
22
+ try {
23
+ return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
24
+ } catch (e) {
25
+ throw mod = 0, e;
26
+ }
18
27
  };
19
28
  var __export = (target, all) => {
20
29
  for (var name in all)
@@ -457,7 +466,7 @@ var require_src = __commonJS({
457
466
  }
458
467
  });
459
468
 
460
- // node_modules/.bun/@clack+core@1.5.0/node_modules/@clack/core/dist/index.mjs
469
+ // node_modules/.bun/@clack+core@1.5.1/node_modules/@clack/core/dist/index.mjs
461
470
  import { styleText } from "node:util";
462
471
  import { stdout, stdin } from "node:process";
463
472
  import * as l from "node:readline";
@@ -556,7 +565,7 @@ function runValidation(e, a2) {
556
565
  }
557
566
  var import_sisteransi, a$1, t, settings, R, CANCEL_SYMBOL, getColumns, getRows, y, r, a, n$1, n2;
558
567
  var init_dist3 = __esm({
559
- "node_modules/.bun/@clack+core@1.5.0/node_modules/@clack/core/dist/index.mjs"() {
568
+ "node_modules/.bun/@clack+core@1.5.1/node_modules/@clack/core/dist/index.mjs"() {
560
569
  init_utils2();
561
570
  init_main();
562
571
  import_sisteransi = __toESM(require_src(), 1);
@@ -906,7 +915,7 @@ var init_dist3 = __esm({
906
915
  }
907
916
  });
908
917
 
909
- // node_modules/.bun/@clack+prompts@1.8.0/node_modules/@clack/prompts/dist/index.mjs
918
+ // node_modules/.bun/@clack+prompts@1.8.1/node_modules/@clack/prompts/dist/index.mjs
910
919
  import { styleText as styleText2, stripVTControlCharacters } from "node:util";
911
920
  import process$1 from "node:process";
912
921
  import { existsSync, lstatSync, readdirSync } from "node:fs";
@@ -923,7 +932,7 @@ function formatInstructionFooter(o, e) {
923
932
  }
924
933
  var import_sisteransi2, unicode, isCI, unicodeOr, S_STEP_ACTIVE, S_STEP_CANCEL, S_STEP_ERROR, S_STEP_SUBMIT, S_BAR_START, S_BAR, S_BAR_END, S_BAR_START_RIGHT, S_BAR_END_RIGHT, S_RADIO_ACTIVE, S_RADIO_INACTIVE, S_CHECKBOX_ACTIVE, S_CHECKBOX_SELECTED, S_CHECKBOX_INACTIVE, S_PASSWORD_MASK, S_BAR_H, S_CORNER_TOP_RIGHT, S_CONNECT_LEFT, S_CORNER_BOTTOM_RIGHT, S_CORNER_BOTTOM_LEFT, S_CORNER_TOP_LEFT, S_INFO, S_SUCCESS, S_WARN, S_ERROR, symbol, symbolBar, I, limitOptions, confirm, MULTISELECT_INSTRUCTIONS, m, multiselect, log, cancel, intro, outro, W$1, C, note, W, spinner, u2, SELECT_INSTRUCTIONS, c, select, i, text;
925
934
  var init_dist4 = __esm({
926
- "node_modules/.bun/@clack+prompts@1.8.0/node_modules/@clack/prompts/dist/index.mjs"() {
935
+ "node_modules/.bun/@clack+prompts@1.8.1/node_modules/@clack/prompts/dist/index.mjs"() {
927
936
  init_utils2();
928
937
  init_dist3();
929
938
  init_dist3();
@@ -1052,39 +1061,39 @@ var init_dist4 = __esm({
1052
1061
  x.push(n3);
1053
1062
  return c2 && x.push(M), x;
1054
1063
  };
1055
- confirm = (i2) => {
1056
- const a2 = i2.active ?? "Yes", s = i2.inactive ?? "No";
1064
+ confirm = (e) => {
1065
+ const a2 = e.active ?? "Yes", o = e.inactive ?? "No";
1057
1066
  return new r({
1058
1067
  active: a2,
1059
- inactive: s,
1060
- signal: i2.signal,
1061
- input: i2.input,
1062
- output: i2.output,
1063
- initialValue: i2.initialValue ?? true,
1068
+ inactive: o,
1069
+ signal: e.signal,
1070
+ input: e.input,
1071
+ output: e.output,
1072
+ initialValue: e.initialValue ?? true,
1064
1073
  render() {
1065
- const e = i2.withGuide ?? settings.withGuide, u3 = `${symbol(this.state)} `, l2 = e ? `${styleText2("gray", S_BAR)} ` : "", f = wrapTextWithPrefix(
1066
- i2.output,
1067
- i2.message,
1074
+ const i2 = e.withGuide ?? settings.withGuide, u3 = `${symbol(this.state)} `, l2 = i2 ? `${styleText2("gray", S_BAR)} ` : "", f = wrapTextWithPrefix(
1075
+ e.output,
1076
+ e.message,
1068
1077
  l2,
1069
1078
  u3
1070
- ), o = `${e ? `${styleText2("gray", S_BAR)}
1079
+ ), s = `${i2 ? `${styleText2("gray", S_BAR)}
1071
1080
  ` : ""}${f}
1072
- `, c2 = this.value ? a2 : s;
1081
+ `, c2 = this.value ? a2 : o;
1073
1082
  switch (this.state) {
1074
1083
  case "submit": {
1075
- const r2 = e ? `${styleText2("gray", S_BAR)} ` : "";
1076
- return `${o}${r2}${styleText2("dim", c2)}`;
1084
+ const r2 = i2 ? `${styleText2("gray", S_BAR)} ` : "";
1085
+ return `${s}${r2}${styleText2("dim", c2)}`;
1077
1086
  }
1078
1087
  case "cancel": {
1079
- const r2 = e ? `${styleText2("gray", S_BAR)} ` : "";
1080
- return `${o}${r2}${styleText2(["strikethrough", "dim"], c2)}${e ? `
1088
+ const r2 = i2 ? `${styleText2("gray", S_BAR)} ` : "";
1089
+ return `${s}${r2}${styleText2(["strikethrough", "dim"], c2)}${i2 ? `
1081
1090
  ${styleText2("gray", S_BAR)}` : ""}`;
1082
1091
  }
1083
1092
  default: {
1084
- const r2 = e ? `${styleText2("cyan", S_BAR)} ` : "", g = e ? styleText2("cyan", S_BAR_END) : "";
1085
- return `${o}${r2}${this.value ? `${styleText2("green", S_RADIO_ACTIVE)} ${a2}` : `${styleText2("dim", S_RADIO_INACTIVE)} ${styleText2("dim", a2)}`}${i2.vertical ? e ? `
1093
+ const r2 = i2 ? `${styleText2("cyan", S_BAR)} ` : "", g = i2 ? styleText2("cyan", S_BAR_END) : "";
1094
+ return `${s}${r2}${this.value ? `${styleText2("green", S_RADIO_ACTIVE)} ${a2}` : `${styleText2("dim", S_RADIO_INACTIVE)} ${styleText2("dim", a2)}`}${e.vertical ? i2 ? `
1086
1095
  ${styleText2("cyan", S_BAR)} ` : `
1087
- ` : ` ${styleText2("dim", "/")} `}${this.value ? `${styleText2("dim", S_RADIO_INACTIVE)} ${styleText2("dim", s)}` : `${styleText2("green", S_RADIO_ACTIVE)} ${s}`}
1096
+ ` : ` ${styleText2("dim", "/")} `}${this.value ? `${styleText2("dim", S_RADIO_INACTIVE)} ${styleText2("dim", o)}` : `${styleText2("green", S_RADIO_ACTIVE)} ${o}`}
1088
1097
  ${g}
1089
1098
  `;
1090
1099
  }
@@ -1104,7 +1113,7 @@ ${g}
1104
1113
  const u3 = (t2, a2) => {
1105
1114
  const r2 = t2.label ?? String(t2.value);
1106
1115
  return a2 === "disabled" ? `${styleText2("gray", S_CHECKBOX_INACTIVE)} ${m(r2, (o) => styleText2(["strikethrough", "gray"], o))}${t2.hint ? ` ${styleText2("dim", `(${t2.hint ?? "disabled"})`)}` : ""}` : a2 === "active" ? `${styleText2("cyan", S_CHECKBOX_ACTIVE)} ${r2}${t2.hint ? ` ${styleText2("dim", `(${t2.hint})`)}` : ""}` : a2 === "selected" ? `${styleText2("green", S_CHECKBOX_SELECTED)} ${m(r2, (o) => styleText2("dim", o))}${t2.hint ? ` ${styleText2("dim", `(${t2.hint})`)}` : ""}` : a2 === "cancelled" ? `${m(r2, (o) => styleText2(["strikethrough", "dim"], o))}` : a2 === "active-selected" ? `${styleText2("green", S_CHECKBOX_SELECTED)} ${r2}${t2.hint ? ` ${styleText2("dim", `(${t2.hint})`)}` : ""}` : a2 === "submitted" ? `${m(r2, (o) => styleText2("dim", o))}` : `${styleText2("dim", S_CHECKBOX_INACTIVE)} ${m(r2, (o) => styleText2("dim", o))}`;
1107
- }, d = i2.required ?? true, v = i2.showInstructions ?? true;
1116
+ }, d = i2.required ?? true, x = i2.showInstructions ?? true;
1108
1117
  return new a({
1109
1118
  options: i2.options,
1110
1119
  signal: i2.signal,
@@ -1135,7 +1144,7 @@ ${styleText2(
1135
1144
  `${symbol(this.state)} `
1136
1145
  ), r2 = `${t2 ? `${styleText2("gray", S_BAR)}
1137
1146
  ` : ""}${a2}
1138
- `, o = this.value ?? [], p = (n3, l2) => {
1147
+ `, o = this.value ?? [], g = (n3, l2) => {
1139
1148
  if (n3.disabled)
1140
1149
  return u3(n3, "disabled");
1141
1150
  const s = o.includes(n3.value);
@@ -1165,7 +1174,7 @@ ${styleText2("gray", S_BAR)}` : ""}`;
1165
1174
  case "error": {
1166
1175
  const n3 = t2 ? `${styleText2("yellow", S_BAR)} ` : "", l2 = this.error.split(`
1167
1176
  `).map(
1168
- ($, C2) => C2 === 0 ? `${t2 ? `${styleText2("yellow", S_BAR_END)} ` : ""}${styleText2("yellow", $)}` : ` ${$}`
1177
+ ($, v) => v === 0 ? `${t2 ? `${styleText2("yellow", S_BAR_END)} ` : ""}${styleText2("yellow", $)}` : ` ${$}`
1169
1178
  ).join(`
1170
1179
  `), s = r2.split(`
1171
1180
  `).length, h2 = l2.split(`
@@ -1177,7 +1186,7 @@ ${styleText2("gray", S_BAR)}` : ""}`;
1177
1186
  maxItems: i2.maxItems,
1178
1187
  columnPadding: n3.length,
1179
1188
  rowPadding: s + h2,
1180
- style: p
1189
+ style: g
1181
1190
  }).join(`
1182
1191
  ${n3}`)}
1183
1192
  ${l2}
@@ -1185,7 +1194,7 @@ ${l2}
1185
1194
  }
1186
1195
  default: {
1187
1196
  const n3 = t2 ? `${styleText2("cyan", S_BAR)} ` : "", l2 = r2.split(`
1188
- `).length, s = v ? formatInstructionFooter(MULTISELECT_INSTRUCTIONS, t2) : t2 ? [styleText2("cyan", S_BAR_END)] : [], h2 = s.join(`
1197
+ `).length, s = x ? formatInstructionFooter(MULTISELECT_INSTRUCTIONS, t2) : t2 ? [styleText2("cyan", S_BAR_END)] : [], h2 = s.join(`
1189
1198
  `), $ = s.length + 1;
1190
1199
  return `${r2}${n3}${limitOptions({
1191
1200
  output: i2.output,
@@ -1194,7 +1203,7 @@ ${l2}
1194
1203
  maxItems: i2.maxItems,
1195
1204
  columnPadding: n3.length,
1196
1205
  rowPadding: l2 + $,
1197
- style: p
1206
+ style: g
1198
1207
  }).join(`
1199
1208
  ${n3}`)}
1200
1209
  ${h2}
@@ -1443,19 +1452,19 @@ ${styleText2("gray", S_BAR)}` : ""}`;
1443
1452
  }
1444
1453
  default: {
1445
1454
  const r2 = n3 ? `${styleText2("cyan", S_BAR)} ` : "", a2 = u3.split(`
1446
- `).length, p = d ? formatInstructionFooter(SELECT_INSTRUCTIONS, n3) : n3 ? [styleText2("cyan", S_BAR_END)] : [], b = p.join(`
1447
- `), f = p.length + 1;
1455
+ `).length, p = d ? formatInstructionFooter(SELECT_INSTRUCTIONS, n3) : n3 ? [styleText2("cyan", S_BAR_END)] : [], f = p.join(`
1456
+ `), b = p.length + 1;
1448
1457
  return `${u3}${r2}${limitOptions({
1449
1458
  output: t2.output,
1450
1459
  cursor: this.cursor,
1451
1460
  options: this.options,
1452
1461
  maxItems: t2.maxItems,
1453
1462
  columnPadding: r2.length,
1454
- rowPadding: a2 + f,
1463
+ rowPadding: a2 + b,
1455
1464
  style: (g, x) => o(g, g.disabled ? "disabled" : x ? "active" : "inactive")
1456
1465
  }).join(`
1457
1466
  ${r2}`)}
1458
- ${b}
1467
+ ${f}
1459
1468
  `;
1460
1469
  }
1461
1470
  }
@@ -5321,15 +5330,15 @@ var require_pattern = __commonJS({
5321
5330
  exports.removeDuplicateSlashes = removeDuplicateSlashes;
5322
5331
  function partitionAbsoluteAndRelative(patterns) {
5323
5332
  const absolute = [];
5324
- const relative3 = [];
5333
+ const relative4 = [];
5325
5334
  for (const pattern of patterns) {
5326
5335
  if (isAbsolute2(pattern)) {
5327
5336
  absolute.push(pattern);
5328
5337
  } else {
5329
- relative3.push(pattern);
5338
+ relative4.push(pattern);
5330
5339
  }
5331
5340
  }
5332
- return [absolute, relative3];
5341
+ return [absolute, relative4];
5333
5342
  }
5334
5343
  exports.partitionAbsoluteAndRelative = partitionAbsoluteAndRelative;
5335
5344
  function isAbsolute2(pattern) {
@@ -6205,9 +6214,9 @@ var require_reusify = __commonJS({
6205
6214
  }
6206
6215
  });
6207
6216
 
6208
- // node_modules/.bun/fastq@1.20.1/node_modules/fastq/queue.js
6217
+ // node_modules/.bun/fastq@1.20.3/node_modules/fastq/queue.js
6209
6218
  var require_queue = __commonJS({
6210
- "node_modules/.bun/fastq@1.20.1/node_modules/fastq/queue.js"(exports, module) {
6219
+ "node_modules/.bun/fastq@1.20.3/node_modules/fastq/queue.js"(exports, module) {
6211
6220
  "use strict";
6212
6221
  init_utils2();
6213
6222
  var reusify = require_reusify();
@@ -6387,11 +6396,12 @@ var require_queue = __commonJS({
6387
6396
  current.value = null;
6388
6397
  current.callback = noop;
6389
6398
  current.errorHandler = null;
6399
+ current.next = null;
6390
6400
  if (errorHandler2) {
6391
6401
  errorHandler2(new Error("abort"), val);
6392
6402
  }
6393
6403
  callback.call(context2, new Error("abort"));
6394
- current.release(current);
6404
+ cache.release(current);
6395
6405
  current = next;
6396
6406
  }
6397
6407
  self.drain = noop;
@@ -7857,7 +7867,7 @@ import {
7857
7867
  sep,
7858
7868
  extname
7859
7869
  } from "node:path";
7860
- import "node:url";
7870
+ import { fileURLToPath } from "node:url";
7861
7871
  function safeExecuteAsync(fn, message) {
7862
7872
  return fn().catch((error2) => {
7863
7873
  throw new Error(
@@ -7914,6 +7924,7 @@ var init_PathResolver = __esm({
7914
7924
  options;
7915
7925
  _repoRoot;
7916
7926
  _appRoot = null;
7927
+ _writtenPaths = null;
7917
7928
  /**
7918
7929
  * Get or create singleton instance
7919
7930
  * @param options - Configuration options
@@ -8232,16 +8243,17 @@ var init_PathResolver = __esm({
8232
8243
  }
8233
8244
  const detectedFormat = this._detectFormat(filePath, format);
8234
8245
  let writeContent;
8235
- if (Buffer.isBuffer(content)) {
8246
+ if (Buffer2.isBuffer(content)) {
8236
8247
  writeContent = content;
8237
8248
  } else if (detectedFormat === "json" && typeof content === "object") {
8238
- writeContent = JSON.stringify(content, null, 2);
8249
+ writeContent = `${JSON.stringify(content, null, 2)}
8250
+ `;
8239
8251
  } else {
8240
8252
  writeContent = String(content);
8241
8253
  }
8242
8254
  try {
8243
8255
  return await safeExecuteAsync(async () => {
8244
- if (Buffer.isBuffer(writeContent)) {
8256
+ if (Buffer2.isBuffer(writeContent)) {
8245
8257
  await fs.promises.writeFile(normalizedPath, writeContent);
8246
8258
  } else {
8247
8259
  await fs.promises.writeFile(normalizedPath, writeContent, "utf8");
@@ -8293,19 +8305,21 @@ var init_PathResolver = __esm({
8293
8305
  }
8294
8306
  const detectedFormat = this._detectFormat(filePath, format);
8295
8307
  let writeContent;
8296
- if (Buffer.isBuffer(content)) {
8308
+ if (Buffer2.isBuffer(content)) {
8297
8309
  writeContent = content;
8298
8310
  } else if (detectedFormat === "json" && typeof content === "object") {
8299
- writeContent = JSON.stringify(content, null, 2);
8311
+ writeContent = `${JSON.stringify(content, null, 2)}
8312
+ `;
8300
8313
  } else {
8301
8314
  writeContent = String(content);
8302
8315
  }
8303
8316
  try {
8304
- if (Buffer.isBuffer(writeContent)) {
8317
+ if (Buffer2.isBuffer(writeContent)) {
8305
8318
  fs.writeFileSync(normalizedPath, writeContent);
8306
8319
  } else {
8307
8320
  fs.writeFileSync(normalizedPath, writeContent, "utf8");
8308
8321
  }
8322
+ this._writtenPaths?.add(normalizedPath);
8309
8323
  if (verbose) {
8310
8324
  log3.info(
8311
8325
  `${fileExists ? "Updated" : "Created"} file: ${normalizedPath}`
@@ -8390,6 +8404,7 @@ var init_PathResolver = __esm({
8390
8404
  }
8391
8405
  try {
8392
8406
  fs.copyFileSync(srcPath, normalizedDestPath);
8407
+ this._writtenPaths?.add(normalizedDestPath);
8393
8408
  if (verbose) {
8394
8409
  log3.info(
8395
8410
  `${fileExists ? "Updated" : "Created"} file: ${normalizedDestPath}`
@@ -8457,6 +8472,24 @@ var init_PathResolver = __esm({
8457
8472
  return null;
8458
8473
  }
8459
8474
  }
8475
+ /**
8476
+ * Resolve the real path of a file, following symlinks
8477
+ * @param filePath - Path to resolve
8478
+ * @returns Resolved real path
8479
+ */
8480
+ realpathSync(filePath) {
8481
+ return fs.realpathSync(filePath);
8482
+ }
8483
+ /**
8484
+ * Watch a directory for changes
8485
+ * @param dirPath - Directory to watch
8486
+ * @param options - fs.watch options
8487
+ * @param callback - Callback for change events
8488
+ * @returns FSWatcher instance
8489
+ */
8490
+ watch(dirPath, options, callback) {
8491
+ return fs.watch(dirPath, options, callback);
8492
+ }
8460
8493
  /**
8461
8494
  * Get file stats synchronously (follows symlinks)
8462
8495
  * Returns null if file doesn't exist (graceful degradation)
@@ -8536,6 +8569,28 @@ var init_PathResolver = __esm({
8536
8569
  * Get app root (where vite.config.ts is, Vite's config.root)
8537
8570
  * Falls back to repoRoot if not set
8538
8571
  */
8572
+ /**
8573
+ * Start recording every path written by writeSync/copySync.
8574
+ * Lets a generator know exactly which files the current run produced,
8575
+ * without comparing file timestamps to a clock.
8576
+ */
8577
+ startWriteRecording() {
8578
+ this._writtenPaths = /* @__PURE__ */ new Set();
8579
+ }
8580
+ /**
8581
+ * Stop recording and return the normalized paths written since
8582
+ * startWriteRecording().
8583
+ */
8584
+ stopWriteRecording() {
8585
+ if (!this._writtenPaths) {
8586
+ throw new Error(
8587
+ "stopWriteRecording() called without startWriteRecording()"
8588
+ );
8589
+ }
8590
+ const written = this._writtenPaths;
8591
+ this._writtenPaths = null;
8592
+ return written;
8593
+ }
8539
8594
  getAppRoot() {
8540
8595
  if (!this._appRoot) {
8541
8596
  return this._repoRoot;
@@ -8793,6 +8848,15 @@ var init_PathResolver = __esm({
8793
8848
  const cjsPath = this.getEmptyCjsModulePath();
8794
8849
  return cjsPath.replace(/\.cjs$/, ".js");
8795
8850
  }
8851
+ /**
8852
+ * Get absolute path to empty flag component module.
8853
+ * Returns `export default () => null;` — used by flag filtering plugins
8854
+ * to replace unused flag files at build time.
8855
+ */
8856
+ getEmptyFlagModulePath() {
8857
+ const __dirname2 = dirname2(fileURLToPath(import.meta.url));
8858
+ return this.normalizePath(resolve(__dirname2, "emptyFlag.js"));
8859
+ }
8796
8860
  /**
8797
8861
  * Get absolute path to empty CJS module for esbuild pre-bundling.
8798
8862
  * CJS because esbuild statically analyzes ESM exports — CJS has dynamic
@@ -9061,7 +9125,7 @@ async function isBinaryFile(filePath) {
9061
9125
  try {
9062
9126
  let fileHandle = null;
9063
9127
  try {
9064
- const buffer = Buffer.alloc(4096);
9128
+ const buffer = Buffer2.alloc(4096);
9065
9129
  const fs3 = await import("node:fs");
9066
9130
  fileHandle = await fs3.promises.open(filePath, "r");
9067
9131
  const { bytesRead } = await fileHandle.read(buffer, 0, 4096, 0);
@@ -9239,8 +9303,8 @@ var init_pathResolver = __esm({
9239
9303
  if (normalizedTarget === normalizedRoot) {
9240
9304
  return true;
9241
9305
  }
9242
- const relative3 = getRelativePathBetween(normalizedRoot, normalizedTarget);
9243
- return Boolean(relative3) && !relative3.startsWith("../") && !relative3.startsWith("/") && !relative3.includes("..");
9306
+ const relative4 = getRelativePathBetween(normalizedRoot, normalizedTarget);
9307
+ return Boolean(relative4) && !relative4.startsWith("../") && !relative4.startsWith("/") && !relative4.includes("..");
9244
9308
  };
9245
9309
  }
9246
9310
  });
@@ -9371,7 +9435,7 @@ var init_typed_file_operations = __esm({
9371
9435
  });
9372
9436
 
9373
9437
  // packages/tooling/src/bundler/utils.ts
9374
- import { Buffer } from "node:buffer";
9438
+ import { Buffer as Buffer2 } from "node:buffer";
9375
9439
  import { copyFileSync as copyFileSync2, readFileSync as readFileSync2, writeFileSync as writeFileSync2, mkdirSync as mkdirSync2 } from "node:fs";
9376
9440
  import { createRequire as createRequire3 } from "node:module";
9377
9441
  import { dirname as dirname4, resolve as resolve3 } from "node:path";
@@ -9388,7 +9452,7 @@ var init_utils2 = __esm({
9388
9452
  globalThis.require = require2;
9389
9453
  globalThis.__filename = __filename;
9390
9454
  globalThis.__dirname = __dirname;
9391
- globalThis.Buffer = Buffer;
9455
+ globalThis.Buffer = Buffer2;
9392
9456
  globalThis.process = process;
9393
9457
  if (typeof global === "undefined") {
9394
9458
  globalThis.global = globalThis;
@@ -9744,9 +9808,9 @@ var init_error_handling = __esm({
9744
9808
  }
9745
9809
  });
9746
9810
 
9747
- // node_modules/.bun/esbuild@0.27.7/node_modules/esbuild/lib/main.js
9811
+ // node_modules/.bun/esbuild@0.28.2/node_modules/esbuild/lib/main.js
9748
9812
  var require_main = __commonJS({
9749
- "node_modules/.bun/esbuild@0.27.7/node_modules/esbuild/lib/main.js"(exports, module) {
9813
+ "node_modules/.bun/esbuild@0.28.2/node_modules/esbuild/lib/main.js"(exports, module) {
9750
9814
  "use strict";
9751
9815
  init_utils2();
9752
9816
  var __defProp2 = Object.defineProperty;
@@ -9923,11 +9987,11 @@ var require_main = __commonJS({
9923
9987
  encodeUTF8 = (text2) => encoder.encode(text2);
9924
9988
  decodeUTF8 = (bytes) => decoder.decode(bytes);
9925
9989
  encodeInvariant = 'new TextEncoder().encode("")';
9926
- } else if (typeof Buffer !== "undefined") {
9927
- encodeUTF8 = (text2) => Buffer.from(text2);
9990
+ } else if (typeof Buffer2 !== "undefined") {
9991
+ encodeUTF8 = (text2) => Buffer2.from(text2);
9928
9992
  decodeUTF8 = (bytes) => {
9929
9993
  let { buffer, byteOffset, byteLength } = bytes;
9930
- return Buffer.from(buffer, byteOffset, byteLength).toString();
9994
+ return Buffer2.from(buffer, byteOffset, byteLength).toString();
9931
9995
  };
9932
9996
  encodeInvariant = 'Buffer.from("")';
9933
9997
  } else {
@@ -10304,10 +10368,12 @@ is not a problem with esbuild. You need to fix your environment instead.
10304
10368
  let color = getFlag(options, keys, "color", mustBeBoolean);
10305
10369
  let logLevel = getFlag(options, keys, "logLevel", mustBeString);
10306
10370
  let logLimit = getFlag(options, keys, "logLimit", mustBeInteger);
10371
+ let logStyle = getFlag(options, keys, "logStyle", mustBeString);
10307
10372
  if (color !== void 0) flags.push(`--color=${color}`);
10308
10373
  else if (isTTY2) flags.push(`--color=true`);
10309
10374
  flags.push(`--log-level=${logLevel || logLevelDefault}`);
10310
10375
  flags.push(`--log-limit=${logLimit || 0}`);
10376
+ if (logStyle) flags.push(`--log-style=${logStyle}`);
10311
10377
  }
10312
10378
  function validateStringValue(value, what, key) {
10313
10379
  if (typeof value !== "string") {
@@ -10656,8 +10722,8 @@ is not a problem with esbuild. You need to fix your environment instead.
10656
10722
  if (isFirstPacket) {
10657
10723
  isFirstPacket = false;
10658
10724
  let binaryVersion = String.fromCharCode(...bytes);
10659
- if (binaryVersion !== "0.27.7") {
10660
- throw new Error(`Cannot start service: Host version "${"0.27.7"}" does not match binary version ${quote(binaryVersion)}`);
10725
+ if (binaryVersion !== "0.28.2") {
10726
+ throw new Error(`Cannot start service: Host version "${"0.28.2"}" does not match binary version ${quote(binaryVersion)}`);
10661
10727
  }
10662
10728
  return;
10663
10729
  }
@@ -10796,6 +10862,7 @@ is not a problem with esbuild. You need to fix your environment instead.
10796
10862
  let kind = getFlag(options, keys, "kind", mustBeString);
10797
10863
  let color = getFlag(options, keys, "color", mustBeBoolean);
10798
10864
  let terminalWidth = getFlag(options, keys, "terminalWidth", mustBeInteger);
10865
+ let logStyle = getFlag(options, keys, "logStyle", mustBeString);
10799
10866
  checkForInvalidFlags(options, keys, `in ${callName}() call`);
10800
10867
  if (kind === void 0) throw new Error(`Missing "kind" in ${callName}() call`);
10801
10868
  if (kind !== "error" && kind !== "warning") throw new Error(`Expected "kind" to be "error" or "warning" in ${callName}() call`);
@@ -10806,6 +10873,7 @@ is not a problem with esbuild. You need to fix your environment instead.
10806
10873
  };
10807
10874
  if (color !== void 0) request.color = color;
10808
10875
  if (terminalWidth !== void 0) request.terminalWidth = terminalWidth;
10876
+ if (logStyle !== void 0) request.logStyle = logStyle;
10809
10877
  sendRequest(refs, request, (error2, response) => {
10810
10878
  if (error2) return callback(new Error(error2), null);
10811
10879
  callback(null, response.messages);
@@ -11789,7 +11857,7 @@ for your current platform.`);
11789
11857
  "node_modules",
11790
11858
  ".cache",
11791
11859
  "esbuild",
11792
- `pnpapi-${pkg.replace("/", "-")}-${"0.27.7"}-${path.basename(subpath)}`
11860
+ `pnpapi-${pkg.replace("/", "-")}-${"0.28.2"}-${path.basename(subpath)}`
11793
11861
  );
11794
11862
  if (!fs3.existsSync(binTargetPath)) {
11795
11863
  fs3.mkdirSync(path.dirname(binTargetPath), { recursive: true });
@@ -11822,7 +11890,7 @@ for your current platform.`);
11822
11890
  }
11823
11891
  }
11824
11892
  var _a;
11825
- var isInternalWorkerThread = ((_a = worker_threads == null ? void 0 : worker_threads.workerData) == null ? void 0 : _a.esbuildVersion) === "0.27.7";
11893
+ var isInternalWorkerThread = ((_a = worker_threads == null ? void 0 : worker_threads.workerData) == null ? void 0 : _a.esbuildVersion) === "0.28.2";
11826
11894
  var esbuildCommandAndArgs = () => {
11827
11895
  if ((!ESBUILD_BINARY_PATH || false) && (path2.basename(__filename) !== "main.js" || path2.basename(__dirname) !== "lib")) {
11828
11896
  throw new Error(
@@ -11889,7 +11957,7 @@ More information: The file containing the code for esbuild's JavaScript API (${_
11889
11957
  }
11890
11958
  }
11891
11959
  };
11892
- var version = "0.27.7";
11960
+ var version = "0.28.2";
11893
11961
  var build2 = (options) => ensureServiceIsRunning().build(options);
11894
11962
  var context = (buildOptions) => ensureServiceIsRunning().context(buildOptions);
11895
11963
  var transform = (input, options) => ensureServiceIsRunning().transform(input, options);
@@ -11992,7 +12060,7 @@ More information: The file containing the code for esbuild's JavaScript API (${_
11992
12060
  var ensureServiceIsRunning = () => {
11993
12061
  if (longLivedService) return longLivedService;
11994
12062
  let [command, args] = esbuildCommandAndArgs();
11995
- let child = child_process.spawn(command, args.concat(`--service=${"0.27.7"}`, "--ping"), {
12063
+ let child = child_process.spawn(command, args.concat(`--service=${"0.28.2"}`, "--ping"), {
11996
12064
  windowsHide: true,
11997
12065
  stdio: ["pipe", "pipe", "inherit"],
11998
12066
  cwd: defaultWD
@@ -12096,7 +12164,7 @@ More information: The file containing the code for esbuild's JavaScript API (${_
12096
12164
  esbuild: node_exports
12097
12165
  });
12098
12166
  callback(service);
12099
- let stdout2 = child_process.execFileSync(command, args.concat(`--service=${"0.27.7"}`), {
12167
+ let stdout2 = child_process.execFileSync(command, args.concat(`--service=${"0.28.2"}`), {
12100
12168
  cwd: defaultWD,
12101
12169
  windowsHide: true,
12102
12170
  input: stdin2,
@@ -12116,7 +12184,7 @@ More information: The file containing the code for esbuild's JavaScript API (${_
12116
12184
  var startWorkerThreadService = (worker_threads2) => {
12117
12185
  let { port1: mainPort, port2: workerPort } = new worker_threads2.MessageChannel();
12118
12186
  let worker = new worker_threads2.Worker(__filename, {
12119
- workerData: { workerPort, defaultWD, esbuildVersion: "0.27.7" },
12187
+ workerData: { workerPort, defaultWD, esbuildVersion: "0.28.2" },
12120
12188
  transferList: [workerPort],
12121
12189
  // From node's documentation: https://nodejs.org/api/worker_threads.html
12122
12190
  //
@@ -12252,7 +12320,7 @@ __export(bundle_edge_function_exports, {
12252
12320
  bundleEdgeFunction: () => bundleEdgeFunction
12253
12321
  });
12254
12322
  import fs2 from "node:fs";
12255
- import { resolve as resolve4, dirname as dirname5, join as join4 } from "node:path";
12323
+ import { resolve as resolve4, dirname as dirname5, join as join4, relative as relative3, sep as sep2 } from "node:path";
12256
12324
  function detectWorkspace() {
12257
12325
  let currentDir = process.cwd();
12258
12326
  const maxDepth = 10;
@@ -12334,25 +12402,19 @@ function createDenoEdgePlugin(workspace, denoImports, functionsDir) {
12334
12402
  setup(build2) {
12335
12403
  build2.onResolve({ filter: /^@donotdev\/functions\/.+/ }, (args) => {
12336
12404
  const subpath = args.path.replace("@donotdev/functions/", "");
12337
- if (workspace.type === "dndev") {
12338
- return {
12339
- path: resolve4(
12340
- workspace.root,
12341
- "packages",
12342
- "functions",
12343
- "src",
12344
- subpath,
12345
- "index.ts"
12346
- )
12347
- };
12405
+ const packageDir = workspace.type === "dndev" ? resolve4(workspace.root, "packages", "functions") : resolveFrameworkPackage("@donotdev/functions", functionsDir);
12406
+ if (!packageDir) {
12407
+ throw new Error(
12408
+ `@donotdev/functions not found from ${functionsDir}. Install it in the app.`
12409
+ );
12348
12410
  }
12349
- const resolved = resolvePackageExport(
12350
- "@donotdev/functions",
12351
- `./${subpath}`,
12352
- functionsDir
12353
- );
12354
- if (resolved) return { path: resolved };
12355
- return null;
12411
+ const entry = resolve4(packageDir, "src", subpath, "index.ts");
12412
+ if (!fs2.existsSync(entry)) {
12413
+ throw new Error(
12414
+ `${args.path} has no source entry at ${entry}. Check the import path.`
12415
+ );
12416
+ }
12417
+ return { path: entry };
12356
12418
  });
12357
12419
  build2.onResolve({ filter: /^@donotdev\/core$/ }, (args) => {
12358
12420
  if (workspace.type === "dndev") {
@@ -12471,6 +12533,7 @@ function createDenoEdgePlugin(workspace, denoImports, functionsDir) {
12471
12533
  build2.onResolve({ filter: /.*/ }, (args) => {
12472
12534
  if (args.kind === "entry-point") return null;
12473
12535
  if (args.path.startsWith(".") || args.path.startsWith("/")) return null;
12536
+ if (args.path.startsWith("node:")) return { path: args.path, external: true };
12474
12537
  if (args.path.startsWith("@donotdev/")) return null;
12475
12538
  const packageRoot = args.path.startsWith("@") ? args.path.split("/").slice(0, 2).join("/") : args.path.split("/")[0];
12476
12539
  if (packageRoot && ALWAYS_BUNDLE.has(packageRoot)) return null;
@@ -12485,6 +12548,72 @@ function createDenoEdgePlugin(workspace, denoImports, functionsDir) {
12485
12548
  }
12486
12549
  };
12487
12550
  }
12551
+ function importChain(metafile, entry, target) {
12552
+ const previous = /* @__PURE__ */ new Map([[entry, null]]);
12553
+ const queue = [entry];
12554
+ while (queue.length > 0) {
12555
+ const current = queue.shift();
12556
+ if (current === target) break;
12557
+ for (const imported of metafile.inputs[current]?.imports ?? []) {
12558
+ if (previous.has(imported.path)) continue;
12559
+ previous.set(imported.path, current);
12560
+ queue.push(imported.path);
12561
+ }
12562
+ }
12563
+ if (!previous.has(target)) return [target];
12564
+ const chain = [];
12565
+ for (let at = target; at !== null; at = previous.get(at) ?? null) {
12566
+ chain.unshift(at);
12567
+ }
12568
+ return chain;
12569
+ }
12570
+ function assertEdgeBoundary(metafile, entryPointPath, workspace, functionsDir) {
12571
+ const isFrameworkModule = (input) => {
12572
+ const absolute = resolve4(process.cwd(), input);
12573
+ if (absolute.startsWith(resolve4(functionsDir) + sep2)) return false;
12574
+ return absolute.includes(`${sep2}node_modules${sep2}@donotdev${sep2}`) || workspace.type === "dndev" && absolute.startsWith(resolve4(workspace.root, "packages") + sep2);
12575
+ };
12576
+ const entry = relative3(process.cwd(), entryPointPath).split(sep2).join("/");
12577
+ if (!metafile.inputs[entry]) {
12578
+ throw new Error(`Edge bundle metafile has no input for ${entryPointPath}`);
12579
+ }
12580
+ const output = Object.values(metafile.outputs)[0];
12581
+ if (!output) throw new Error("Edge bundle metafile has no output");
12582
+ const bundled = Object.entries(output.inputs).filter(([, info2]) => info2.bytesInOutput > 0).map(([input]) => input);
12583
+ const externals = output.imports.filter((imported) => imported.external).map((imported) => imported.path);
12584
+ const firstHit = /* @__PURE__ */ new Map();
12585
+ for (const { label, pattern, frameworkOnly } of EDGE_FORBIDDEN) {
12586
+ const input = bundled.find((path) => pattern.test(path));
12587
+ if (input) {
12588
+ firstHit.set(label, { module: input, importer: input });
12589
+ continue;
12590
+ }
12591
+ const hit = externals.filter((path) => pattern.test(path)).flatMap((external) => {
12592
+ const importers = bundled.filter(
12593
+ (path) => metafile.inputs[path]?.imports.some(
12594
+ (imported) => imported.external && imported.path === external
12595
+ )
12596
+ );
12597
+ return (importers.length > 0 ? importers : [entry]).map((importer) => ({
12598
+ module: external,
12599
+ importer
12600
+ }));
12601
+ }).find(({ importer }) => !frameworkOnly || isFrameworkModule(importer));
12602
+ if (hit) firstHit.set(label, hit);
12603
+ }
12604
+ if (firstHit.size > 0) {
12605
+ const violations = [...firstHit].map(([label, { module, importer }]) => {
12606
+ const chain = importChain(metafile, entry, importer);
12607
+ if (module !== importer) chain.push(module);
12608
+ return `${label}:
12609
+ ${chain.join("\n \u2192 ")}`;
12610
+ });
12611
+ throw new Error(
12612
+ `Edge function ${entryPointPath} would load modules that do not belong in a Supabase Edge Function:
12613
+ ` + violations.map((v) => ` - ${v}`).join("\n") + "\nThe chain shows which import pulls each one in. Import Supabase or provider-neutral modules instead (@donotdev/functions/supabase, @donotdev/core/server); never Firebase, client code or React. If the chain goes through @donotdev/functions, update it to the same version as your CLI."
12614
+ );
12615
+ }
12616
+ }
12488
12617
  async function bundleEdgeFunction(options) {
12489
12618
  const { entryPointPath, functionsDir } = options;
12490
12619
  const workspace = detectWorkspace();
@@ -12541,7 +12670,8 @@ async function bundleEdgeFunction(options) {
12541
12670
  plugins: [createDenoEdgePlugin(workspace, denoImports, functionsDir)],
12542
12671
  mainFields: ["module", "main"],
12543
12672
  conditions: ["import", "module"],
12544
- logLevel: "warning"
12673
+ logLevel: "warning",
12674
+ metafile: true
12545
12675
  };
12546
12676
  const result = await (0, import_esbuild.build)(config);
12547
12677
  if (result.errors.length > 0) {
@@ -12549,6 +12679,7 @@ async function bundleEdgeFunction(options) {
12549
12679
  throw new Error(`Edge function bundling failed:
12550
12680
  ${errorMessages}`);
12551
12681
  }
12682
+ assertEdgeBoundary(result.metafile, entryPointPath, workspace, functionsDir);
12552
12683
  if (result.warnings.length > 0) {
12553
12684
  for (const warning of result.warnings) {
12554
12685
  log2.debug(`[bundle-edge] Warning: ${warning.text}`);
@@ -12584,7 +12715,7 @@ async function buildSupabaseEdgeFunctions(functionsDir) {
12584
12715
  });
12585
12716
  const outputPath = join4(buildDir, `${functionName}.js`);
12586
12717
  fs2.writeFileSync(outputPath, bundled, "utf8");
12587
- const size = Buffer.byteLength(bundled, "utf8");
12718
+ const size = Buffer2.byteLength(bundled, "utf8");
12588
12719
  results.push({ name: functionName, outputPath, size });
12589
12720
  log2.info(` ${functionName} \u2192 ${(size / 1024).toFixed(1)} KB`);
12590
12721
  } catch (error2) {
@@ -12602,7 +12733,7 @@ ${errors.length} function(s) failed to bundle`);
12602
12733
  All ${results.length} function(s) built to ${buildDir}`);
12603
12734
  return { success: true, functions: results, errors: [] };
12604
12735
  }
12605
- var import_esbuild, ALWAYS_BUNDLE;
12736
+ var import_esbuild, ALWAYS_BUNDLE, EDGE_FORBIDDEN;
12606
12737
  var init_bundle_edge_function = __esm({
12607
12738
  "packages/tooling/src/utils/bundle-edge-function.ts"() {
12608
12739
  "use strict";
@@ -12611,12 +12742,25 @@ var init_bundle_edge_function = __esm({
12611
12742
  init_cli_output();
12612
12743
  init_pathResolver();
12613
12744
  ALWAYS_BUNDLE = /* @__PURE__ */ new Set(["valibot"]);
12745
+ EDGE_FORBIDDEN = [
12746
+ { label: "firebase-admin", pattern: /(^|[/:])firebase-admin(\/|$)/ },
12747
+ { label: "firebase-functions", pattern: /(^|[/:])firebase-functions(\/|$)/ },
12748
+ {
12749
+ label: "@donotdev/firebase",
12750
+ pattern: /(^|[/:])@donotdev\/firebase(\/|$)|(^|\/)providers\/firebase\//
12751
+ },
12752
+ {
12753
+ label: "client code (@donotdev/utils client)",
12754
+ pattern: /core\/utils\/src\/client\//
12755
+ },
12756
+ { label: "react", pattern: /(^|[/:])react(\/|$)/, frameworkOnly: true }
12757
+ ];
12614
12758
  }
12615
12759
  });
12616
12760
 
12617
- // node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/nodes/identity.js
12761
+ // node_modules/.bun/yaml@2.9.1/node_modules/yaml/dist/nodes/identity.js
12618
12762
  var require_identity = __commonJS({
12619
- "node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/nodes/identity.js"(exports) {
12763
+ "node_modules/.bun/yaml@2.9.1/node_modules/yaml/dist/nodes/identity.js"(exports) {
12620
12764
  "use strict";
12621
12765
  init_utils2();
12622
12766
  var ALIAS = /* @__PURE__ */ Symbol.for("yaml.alias");
@@ -12672,9 +12816,9 @@ var require_identity = __commonJS({
12672
12816
  }
12673
12817
  });
12674
12818
 
12675
- // node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/visit.js
12819
+ // node_modules/.bun/yaml@2.9.1/node_modules/yaml/dist/visit.js
12676
12820
  var require_visit = __commonJS({
12677
- "node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/visit.js"(exports) {
12821
+ "node_modules/.bun/yaml@2.9.1/node_modules/yaml/dist/visit.js"(exports) {
12678
12822
  "use strict";
12679
12823
  init_utils2();
12680
12824
  var identity = require_identity();
@@ -12831,9 +12975,9 @@ var require_visit = __commonJS({
12831
12975
  }
12832
12976
  });
12833
12977
 
12834
- // node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/doc/directives.js
12978
+ // node_modules/.bun/yaml@2.9.1/node_modules/yaml/dist/doc/directives.js
12835
12979
  var require_directives = __commonJS({
12836
- "node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/doc/directives.js"(exports) {
12980
+ "node_modules/.bun/yaml@2.9.1/node_modules/yaml/dist/doc/directives.js"(exports) {
12837
12981
  "use strict";
12838
12982
  init_utils2();
12839
12983
  var identity = require_identity();
@@ -13003,9 +13147,9 @@ var require_directives = __commonJS({
13003
13147
  }
13004
13148
  });
13005
13149
 
13006
- // node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/doc/anchors.js
13150
+ // node_modules/.bun/yaml@2.9.1/node_modules/yaml/dist/doc/anchors.js
13007
13151
  var require_anchors = __commonJS({
13008
- "node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/doc/anchors.js"(exports) {
13152
+ "node_modules/.bun/yaml@2.9.1/node_modules/yaml/dist/doc/anchors.js"(exports) {
13009
13153
  "use strict";
13010
13154
  init_utils2();
13011
13155
  var identity = require_identity();
@@ -13074,9 +13218,9 @@ var require_anchors = __commonJS({
13074
13218
  }
13075
13219
  });
13076
13220
 
13077
- // node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/doc/applyReviver.js
13221
+ // node_modules/.bun/yaml@2.9.1/node_modules/yaml/dist/doc/applyReviver.js
13078
13222
  var require_applyReviver = __commonJS({
13079
- "node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/doc/applyReviver.js"(exports) {
13223
+ "node_modules/.bun/yaml@2.9.1/node_modules/yaml/dist/doc/applyReviver.js"(exports) {
13080
13224
  "use strict";
13081
13225
  init_utils2();
13082
13226
  function applyReviver(reviver, obj, key, val) {
@@ -13125,9 +13269,9 @@ var require_applyReviver = __commonJS({
13125
13269
  }
13126
13270
  });
13127
13271
 
13128
- // node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/nodes/toJS.js
13272
+ // node_modules/.bun/yaml@2.9.1/node_modules/yaml/dist/nodes/toJS.js
13129
13273
  var require_toJS = __commonJS({
13130
- "node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/nodes/toJS.js"(exports) {
13274
+ "node_modules/.bun/yaml@2.9.1/node_modules/yaml/dist/nodes/toJS.js"(exports) {
13131
13275
  "use strict";
13132
13276
  init_utils2();
13133
13277
  var identity = require_identity();
@@ -13156,9 +13300,9 @@ var require_toJS = __commonJS({
13156
13300
  }
13157
13301
  });
13158
13302
 
13159
- // node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/nodes/Node.js
13303
+ // node_modules/.bun/yaml@2.9.1/node_modules/yaml/dist/nodes/Node.js
13160
13304
  var require_Node = __commonJS({
13161
- "node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/nodes/Node.js"(exports) {
13305
+ "node_modules/.bun/yaml@2.9.1/node_modules/yaml/dist/nodes/Node.js"(exports) {
13162
13306
  "use strict";
13163
13307
  init_utils2();
13164
13308
  var applyReviver = require_applyReviver();
@@ -13198,9 +13342,9 @@ var require_Node = __commonJS({
13198
13342
  }
13199
13343
  });
13200
13344
 
13201
- // node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/nodes/Alias.js
13345
+ // node_modules/.bun/yaml@2.9.1/node_modules/yaml/dist/nodes/Alias.js
13202
13346
  var require_Alias = __commonJS({
13203
- "node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/nodes/Alias.js"(exports) {
13347
+ "node_modules/.bun/yaml@2.9.1/node_modules/yaml/dist/nodes/Alias.js"(exports) {
13204
13348
  "use strict";
13205
13349
  init_utils2();
13206
13350
  var anchors = require_anchors();
@@ -13246,36 +13390,38 @@ var require_Alias = __commonJS({
13246
13390
  if (node.anchor === this.source)
13247
13391
  found = node;
13248
13392
  }
13393
+ if (found && ctx) {
13394
+ const { anchors: anchors2, doc: doc2, maxAliasCount } = ctx;
13395
+ let data = anchors2.get(found);
13396
+ if (!data) {
13397
+ toJS.toJS(found, null, ctx);
13398
+ data = anchors2.get(found);
13399
+ }
13400
+ if (data?.res === void 0) {
13401
+ const msg = "This should not happen: Alias anchor was not resolved?";
13402
+ throw new ReferenceError(msg);
13403
+ }
13404
+ if (maxAliasCount >= 0) {
13405
+ data.count += 1;
13406
+ if (data.aliasCount === 0)
13407
+ data.aliasCount = getAliasCount(doc2, found, anchors2);
13408
+ if (data.count * data.aliasCount > maxAliasCount) {
13409
+ const msg = "Excessive alias count indicates a resource exhaustion attack";
13410
+ throw new ReferenceError(msg);
13411
+ }
13412
+ }
13413
+ }
13249
13414
  return found;
13250
13415
  }
13251
13416
  toJSON(_arg, ctx) {
13252
13417
  if (!ctx)
13253
13418
  return { source: this.source };
13254
- const { anchors: anchors2, doc, maxAliasCount } = ctx;
13255
- const source = this.resolve(doc, ctx);
13419
+ const source = this.resolve(ctx.doc, ctx);
13256
13420
  if (!source) {
13257
13421
  const msg = `Unresolved alias (the anchor must be set before the alias): ${this.source}`;
13258
13422
  throw new ReferenceError(msg);
13259
13423
  }
13260
- let data = anchors2.get(source);
13261
- if (!data) {
13262
- toJS.toJS(source, null, ctx);
13263
- data = anchors2.get(source);
13264
- }
13265
- if (data?.res === void 0) {
13266
- const msg = "This should not happen: Alias anchor was not resolved?";
13267
- throw new ReferenceError(msg);
13268
- }
13269
- if (maxAliasCount >= 0) {
13270
- data.count += 1;
13271
- if (data.aliasCount === 0)
13272
- data.aliasCount = getAliasCount(doc, source, anchors2);
13273
- if (data.count * data.aliasCount > maxAliasCount) {
13274
- const msg = "Excessive alias count indicates a resource exhaustion attack";
13275
- throw new ReferenceError(msg);
13276
- }
13277
- }
13278
- return data.res;
13424
+ return ctx.anchors.get(source).res;
13279
13425
  }
13280
13426
  toString(ctx, _onComment, _onChompKeep) {
13281
13427
  const src = `*${this.source}`;
@@ -13315,9 +13461,9 @@ var require_Alias = __commonJS({
13315
13461
  }
13316
13462
  });
13317
13463
 
13318
- // node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/nodes/Scalar.js
13464
+ // node_modules/.bun/yaml@2.9.1/node_modules/yaml/dist/nodes/Scalar.js
13319
13465
  var require_Scalar = __commonJS({
13320
- "node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/nodes/Scalar.js"(exports) {
13466
+ "node_modules/.bun/yaml@2.9.1/node_modules/yaml/dist/nodes/Scalar.js"(exports) {
13321
13467
  "use strict";
13322
13468
  init_utils2();
13323
13469
  var identity = require_identity();
@@ -13346,9 +13492,9 @@ var require_Scalar = __commonJS({
13346
13492
  }
13347
13493
  });
13348
13494
 
13349
- // node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/doc/createNode.js
13495
+ // node_modules/.bun/yaml@2.9.1/node_modules/yaml/dist/doc/createNode.js
13350
13496
  var require_createNode = __commonJS({
13351
- "node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/doc/createNode.js"(exports) {
13497
+ "node_modules/.bun/yaml@2.9.1/node_modules/yaml/dist/doc/createNode.js"(exports) {
13352
13498
  "use strict";
13353
13499
  init_utils2();
13354
13500
  var Alias = require_Alias();
@@ -13422,9 +13568,9 @@ var require_createNode = __commonJS({
13422
13568
  }
13423
13569
  });
13424
13570
 
13425
- // node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/nodes/Collection.js
13571
+ // node_modules/.bun/yaml@2.9.1/node_modules/yaml/dist/nodes/Collection.js
13426
13572
  var require_Collection = __commonJS({
13427
- "node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/nodes/Collection.js"(exports) {
13573
+ "node_modules/.bun/yaml@2.9.1/node_modules/yaml/dist/nodes/Collection.js"(exports) {
13428
13574
  "use strict";
13429
13575
  init_utils2();
13430
13576
  var createNode = require_createNode();
@@ -13566,9 +13712,9 @@ var require_Collection = __commonJS({
13566
13712
  }
13567
13713
  });
13568
13714
 
13569
- // node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/stringify/stringifyComment.js
13715
+ // node_modules/.bun/yaml@2.9.1/node_modules/yaml/dist/stringify/stringifyComment.js
13570
13716
  var require_stringifyComment = __commonJS({
13571
- "node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/stringify/stringifyComment.js"(exports) {
13717
+ "node_modules/.bun/yaml@2.9.1/node_modules/yaml/dist/stringify/stringifyComment.js"(exports) {
13572
13718
  "use strict";
13573
13719
  init_utils2();
13574
13720
  var stringifyComment = (str) => str.replace(/^(?!$)(?: $)?/gm, "#");
@@ -13584,9 +13730,9 @@ var require_stringifyComment = __commonJS({
13584
13730
  }
13585
13731
  });
13586
13732
 
13587
- // node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/stringify/foldFlowLines.js
13733
+ // node_modules/.bun/yaml@2.9.1/node_modules/yaml/dist/stringify/foldFlowLines.js
13588
13734
  var require_foldFlowLines = __commonJS({
13589
- "node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/stringify/foldFlowLines.js"(exports) {
13735
+ "node_modules/.bun/yaml@2.9.1/node_modules/yaml/dist/stringify/foldFlowLines.js"(exports) {
13590
13736
  "use strict";
13591
13737
  init_utils2();
13592
13738
  var FOLD_FLOW = "flow";
@@ -13721,9 +13867,9 @@ ${indent}${text2.slice(fold + 1, end2)}`;
13721
13867
  }
13722
13868
  });
13723
13869
 
13724
- // node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/stringify/stringifyString.js
13870
+ // node_modules/.bun/yaml@2.9.1/node_modules/yaml/dist/stringify/stringifyString.js
13725
13871
  var require_stringifyString = __commonJS({
13726
- "node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/stringify/stringifyString.js"(exports) {
13872
+ "node_modules/.bun/yaml@2.9.1/node_modules/yaml/dist/stringify/stringifyString.js"(exports) {
13727
13873
  "use strict";
13728
13874
  init_utils2();
13729
13875
  var Scalar = require_Scalar();
@@ -14005,9 +14151,9 @@ ${indent}`);
14005
14151
  }
14006
14152
  });
14007
14153
 
14008
- // node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/stringify/stringify.js
14154
+ // node_modules/.bun/yaml@2.9.1/node_modules/yaml/dist/stringify/stringify.js
14009
14155
  var require_stringify2 = __commonJS({
14010
- "node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/stringify/stringify.js"(exports) {
14156
+ "node_modules/.bun/yaml@2.9.1/node_modules/yaml/dist/stringify/stringify.js"(exports) {
14011
14157
  "use strict";
14012
14158
  init_utils2();
14013
14159
  var anchors = require_anchors();
@@ -14130,9 +14276,9 @@ ${ctx.indent}${str}`;
14130
14276
  }
14131
14277
  });
14132
14278
 
14133
- // node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/stringify/stringifyPair.js
14279
+ // node_modules/.bun/yaml@2.9.1/node_modules/yaml/dist/stringify/stringifyPair.js
14134
14280
  var require_stringifyPair = __commonJS({
14135
- "node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/stringify/stringifyPair.js"(exports) {
14281
+ "node_modules/.bun/yaml@2.9.1/node_modules/yaml/dist/stringify/stringifyPair.js"(exports) {
14136
14282
  "use strict";
14137
14283
  init_utils2();
14138
14284
  var identity = require_identity();
@@ -14264,9 +14410,9 @@ ${ctx.indent}`;
14264
14410
  }
14265
14411
  });
14266
14412
 
14267
- // node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/log.js
14413
+ // node_modules/.bun/yaml@2.9.1/node_modules/yaml/dist/log.js
14268
14414
  var require_log = __commonJS({
14269
- "node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/log.js"(exports) {
14415
+ "node_modules/.bun/yaml@2.9.1/node_modules/yaml/dist/log.js"(exports) {
14270
14416
  "use strict";
14271
14417
  init_utils2();
14272
14418
  var node_process = __require("process");
@@ -14287,9 +14433,9 @@ var require_log = __commonJS({
14287
14433
  }
14288
14434
  });
14289
14435
 
14290
- // node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/schema/yaml-1.1/merge.js
14436
+ // node_modules/.bun/yaml@2.9.1/node_modules/yaml/dist/schema/yaml-1.1/merge.js
14291
14437
  var require_merge = __commonJS({
14292
- "node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/schema/yaml-1.1/merge.js"(exports) {
14438
+ "node_modules/.bun/yaml@2.9.1/node_modules/yaml/dist/schema/yaml-1.1/merge.js"(exports) {
14293
14439
  "use strict";
14294
14440
  init_utils2();
14295
14441
  var identity = require_identity();
@@ -14348,9 +14494,9 @@ var require_merge = __commonJS({
14348
14494
  }
14349
14495
  });
14350
14496
 
14351
- // node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/nodes/addPairToJSMap.js
14497
+ // node_modules/.bun/yaml@2.9.1/node_modules/yaml/dist/nodes/addPairToJSMap.js
14352
14498
  var require_addPairToJSMap = __commonJS({
14353
- "node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/nodes/addPairToJSMap.js"(exports) {
14499
+ "node_modules/.bun/yaml@2.9.1/node_modules/yaml/dist/nodes/addPairToJSMap.js"(exports) {
14354
14500
  "use strict";
14355
14501
  init_utils2();
14356
14502
  var log4 = require_log();
@@ -14413,9 +14559,9 @@ var require_addPairToJSMap = __commonJS({
14413
14559
  }
14414
14560
  });
14415
14561
 
14416
- // node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/nodes/Pair.js
14562
+ // node_modules/.bun/yaml@2.9.1/node_modules/yaml/dist/nodes/Pair.js
14417
14563
  var require_Pair = __commonJS({
14418
- "node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/nodes/Pair.js"(exports) {
14564
+ "node_modules/.bun/yaml@2.9.1/node_modules/yaml/dist/nodes/Pair.js"(exports) {
14419
14565
  "use strict";
14420
14566
  init_utils2();
14421
14567
  var createNode = require_createNode();
@@ -14454,9 +14600,9 @@ var require_Pair = __commonJS({
14454
14600
  }
14455
14601
  });
14456
14602
 
14457
- // node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/stringify/stringifyCollection.js
14603
+ // node_modules/.bun/yaml@2.9.1/node_modules/yaml/dist/stringify/stringifyCollection.js
14458
14604
  var require_stringifyCollection = __commonJS({
14459
- "node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/stringify/stringifyCollection.js"(exports) {
14605
+ "node_modules/.bun/yaml@2.9.1/node_modules/yaml/dist/stringify/stringifyCollection.js"(exports) {
14460
14606
  "use strict";
14461
14607
  init_utils2();
14462
14608
  var identity = require_identity();
@@ -14606,9 +14752,9 @@ ${indent}${end}`;
14606
14752
  }
14607
14753
  });
14608
14754
 
14609
- // node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/nodes/YAMLMap.js
14755
+ // node_modules/.bun/yaml@2.9.1/node_modules/yaml/dist/nodes/YAMLMap.js
14610
14756
  var require_YAMLMap = __commonJS({
14611
- "node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/nodes/YAMLMap.js"(exports) {
14757
+ "node_modules/.bun/yaml@2.9.1/node_modules/yaml/dist/nodes/YAMLMap.js"(exports) {
14612
14758
  "use strict";
14613
14759
  init_utils2();
14614
14760
  var stringifyCollection = require_stringifyCollection();
@@ -14751,9 +14897,9 @@ var require_YAMLMap = __commonJS({
14751
14897
  }
14752
14898
  });
14753
14899
 
14754
- // node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/schema/common/map.js
14900
+ // node_modules/.bun/yaml@2.9.1/node_modules/yaml/dist/schema/common/map.js
14755
14901
  var require_map = __commonJS({
14756
- "node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/schema/common/map.js"(exports) {
14902
+ "node_modules/.bun/yaml@2.9.1/node_modules/yaml/dist/schema/common/map.js"(exports) {
14757
14903
  "use strict";
14758
14904
  init_utils2();
14759
14905
  var identity = require_identity();
@@ -14774,9 +14920,9 @@ var require_map = __commonJS({
14774
14920
  }
14775
14921
  });
14776
14922
 
14777
- // node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/nodes/YAMLSeq.js
14923
+ // node_modules/.bun/yaml@2.9.1/node_modules/yaml/dist/nodes/YAMLSeq.js
14778
14924
  var require_YAMLSeq = __commonJS({
14779
- "node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/nodes/YAMLSeq.js"(exports) {
14925
+ "node_modules/.bun/yaml@2.9.1/node_modules/yaml/dist/nodes/YAMLSeq.js"(exports) {
14780
14926
  "use strict";
14781
14927
  init_utils2();
14782
14928
  var createNode = require_createNode();
@@ -14891,9 +15037,9 @@ var require_YAMLSeq = __commonJS({
14891
15037
  }
14892
15038
  });
14893
15039
 
14894
- // node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/schema/common/seq.js
15040
+ // node_modules/.bun/yaml@2.9.1/node_modules/yaml/dist/schema/common/seq.js
14895
15041
  var require_seq = __commonJS({
14896
- "node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/schema/common/seq.js"(exports) {
15042
+ "node_modules/.bun/yaml@2.9.1/node_modules/yaml/dist/schema/common/seq.js"(exports) {
14897
15043
  "use strict";
14898
15044
  init_utils2();
14899
15045
  var identity = require_identity();
@@ -14914,9 +15060,9 @@ var require_seq = __commonJS({
14914
15060
  }
14915
15061
  });
14916
15062
 
14917
- // node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/schema/common/string.js
15063
+ // node_modules/.bun/yaml@2.9.1/node_modules/yaml/dist/schema/common/string.js
14918
15064
  var require_string2 = __commonJS({
14919
- "node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/schema/common/string.js"(exports) {
15065
+ "node_modules/.bun/yaml@2.9.1/node_modules/yaml/dist/schema/common/string.js"(exports) {
14920
15066
  "use strict";
14921
15067
  init_utils2();
14922
15068
  var stringifyString = require_stringifyString();
@@ -14934,9 +15080,9 @@ var require_string2 = __commonJS({
14934
15080
  }
14935
15081
  });
14936
15082
 
14937
- // node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/schema/common/null.js
15083
+ // node_modules/.bun/yaml@2.9.1/node_modules/yaml/dist/schema/common/null.js
14938
15084
  var require_null = __commonJS({
14939
- "node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/schema/common/null.js"(exports) {
15085
+ "node_modules/.bun/yaml@2.9.1/node_modules/yaml/dist/schema/common/null.js"(exports) {
14940
15086
  "use strict";
14941
15087
  init_utils2();
14942
15088
  var Scalar = require_Scalar();
@@ -14953,9 +15099,9 @@ var require_null = __commonJS({
14953
15099
  }
14954
15100
  });
14955
15101
 
14956
- // node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/schema/core/bool.js
15102
+ // node_modules/.bun/yaml@2.9.1/node_modules/yaml/dist/schema/core/bool.js
14957
15103
  var require_bool = __commonJS({
14958
- "node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/schema/core/bool.js"(exports) {
15104
+ "node_modules/.bun/yaml@2.9.1/node_modules/yaml/dist/schema/core/bool.js"(exports) {
14959
15105
  "use strict";
14960
15106
  init_utils2();
14961
15107
  var Scalar = require_Scalar();
@@ -14978,9 +15124,9 @@ var require_bool = __commonJS({
14978
15124
  }
14979
15125
  });
14980
15126
 
14981
- // node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/stringify/stringifyNumber.js
15127
+ // node_modules/.bun/yaml@2.9.1/node_modules/yaml/dist/stringify/stringifyNumber.js
14982
15128
  var require_stringifyNumber = __commonJS({
14983
- "node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/stringify/stringifyNumber.js"(exports) {
15129
+ "node_modules/.bun/yaml@2.9.1/node_modules/yaml/dist/stringify/stringifyNumber.js"(exports) {
14984
15130
  "use strict";
14985
15131
  init_utils2();
14986
15132
  function stringifyNumber({ format, minFractionDigits, tag, value }) {
@@ -15006,9 +15152,9 @@ var require_stringifyNumber = __commonJS({
15006
15152
  }
15007
15153
  });
15008
15154
 
15009
- // node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/schema/core/float.js
15155
+ // node_modules/.bun/yaml@2.9.1/node_modules/yaml/dist/schema/core/float.js
15010
15156
  var require_float = __commonJS({
15011
- "node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/schema/core/float.js"(exports) {
15157
+ "node_modules/.bun/yaml@2.9.1/node_modules/yaml/dist/schema/core/float.js"(exports) {
15012
15158
  "use strict";
15013
15159
  init_utils2();
15014
15160
  var Scalar = require_Scalar();
@@ -15053,9 +15199,9 @@ var require_float = __commonJS({
15053
15199
  }
15054
15200
  });
15055
15201
 
15056
- // node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/schema/core/int.js
15202
+ // node_modules/.bun/yaml@2.9.1/node_modules/yaml/dist/schema/core/int.js
15057
15203
  var require_int = __commonJS({
15058
- "node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/schema/core/int.js"(exports) {
15204
+ "node_modules/.bun/yaml@2.9.1/node_modules/yaml/dist/schema/core/int.js"(exports) {
15059
15205
  "use strict";
15060
15206
  init_utils2();
15061
15207
  var stringifyNumber = require_stringifyNumber();
@@ -15099,9 +15245,9 @@ var require_int = __commonJS({
15099
15245
  }
15100
15246
  });
15101
15247
 
15102
- // node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/schema/core/schema.js
15248
+ // node_modules/.bun/yaml@2.9.1/node_modules/yaml/dist/schema/core/schema.js
15103
15249
  var require_schema = __commonJS({
15104
- "node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/schema/core/schema.js"(exports) {
15250
+ "node_modules/.bun/yaml@2.9.1/node_modules/yaml/dist/schema/core/schema.js"(exports) {
15105
15251
  "use strict";
15106
15252
  init_utils2();
15107
15253
  var map = require_map();
@@ -15128,9 +15274,9 @@ var require_schema = __commonJS({
15128
15274
  }
15129
15275
  });
15130
15276
 
15131
- // node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/schema/json/schema.js
15277
+ // node_modules/.bun/yaml@2.9.1/node_modules/yaml/dist/schema/json/schema.js
15132
15278
  var require_schema2 = __commonJS({
15133
- "node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/schema/json/schema.js"(exports) {
15279
+ "node_modules/.bun/yaml@2.9.1/node_modules/yaml/dist/schema/json/schema.js"(exports) {
15134
15280
  "use strict";
15135
15281
  init_utils2();
15136
15282
  var Scalar = require_Scalar();
@@ -15196,9 +15342,9 @@ var require_schema2 = __commonJS({
15196
15342
  }
15197
15343
  });
15198
15344
 
15199
- // node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/schema/yaml-1.1/binary.js
15345
+ // node_modules/.bun/yaml@2.9.1/node_modules/yaml/dist/schema/yaml-1.1/binary.js
15200
15346
  var require_binary = __commonJS({
15201
- "node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/schema/yaml-1.1/binary.js"(exports) {
15347
+ "node_modules/.bun/yaml@2.9.1/node_modules/yaml/dist/schema/yaml-1.1/binary.js"(exports) {
15202
15348
  "use strict";
15203
15349
  init_utils2();
15204
15350
  var node_buffer = __require("buffer");
@@ -15263,9 +15409,9 @@ var require_binary = __commonJS({
15263
15409
  }
15264
15410
  });
15265
15411
 
15266
- // node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/schema/yaml-1.1/pairs.js
15412
+ // node_modules/.bun/yaml@2.9.1/node_modules/yaml/dist/schema/yaml-1.1/pairs.js
15267
15413
  var require_pairs = __commonJS({
15268
- "node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/schema/yaml-1.1/pairs.js"(exports) {
15414
+ "node_modules/.bun/yaml@2.9.1/node_modules/yaml/dist/schema/yaml-1.1/pairs.js"(exports) {
15269
15415
  "use strict";
15270
15416
  init_utils2();
15271
15417
  var identity = require_identity();
@@ -15342,9 +15488,9 @@ ${cn.comment}` : item.comment;
15342
15488
  }
15343
15489
  });
15344
15490
 
15345
- // node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/schema/yaml-1.1/omap.js
15491
+ // node_modules/.bun/yaml@2.9.1/node_modules/yaml/dist/schema/yaml-1.1/omap.js
15346
15492
  var require_omap = __commonJS({
15347
- "node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/schema/yaml-1.1/omap.js"(exports) {
15493
+ "node_modules/.bun/yaml@2.9.1/node_modules/yaml/dist/schema/yaml-1.1/omap.js"(exports) {
15348
15494
  "use strict";
15349
15495
  init_utils2();
15350
15496
  var identity = require_identity();
@@ -15421,9 +15567,9 @@ var require_omap = __commonJS({
15421
15567
  }
15422
15568
  });
15423
15569
 
15424
- // node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/schema/yaml-1.1/bool.js
15570
+ // node_modules/.bun/yaml@2.9.1/node_modules/yaml/dist/schema/yaml-1.1/bool.js
15425
15571
  var require_bool2 = __commonJS({
15426
- "node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/schema/yaml-1.1/bool.js"(exports) {
15572
+ "node_modules/.bun/yaml@2.9.1/node_modules/yaml/dist/schema/yaml-1.1/bool.js"(exports) {
15427
15573
  "use strict";
15428
15574
  init_utils2();
15429
15575
  var Scalar = require_Scalar();
@@ -15454,9 +15600,9 @@ var require_bool2 = __commonJS({
15454
15600
  }
15455
15601
  });
15456
15602
 
15457
- // node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/schema/yaml-1.1/float.js
15603
+ // node_modules/.bun/yaml@2.9.1/node_modules/yaml/dist/schema/yaml-1.1/float.js
15458
15604
  var require_float2 = __commonJS({
15459
- "node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/schema/yaml-1.1/float.js"(exports) {
15605
+ "node_modules/.bun/yaml@2.9.1/node_modules/yaml/dist/schema/yaml-1.1/float.js"(exports) {
15460
15606
  "use strict";
15461
15607
  init_utils2();
15462
15608
  var Scalar = require_Scalar();
@@ -15504,9 +15650,9 @@ var require_float2 = __commonJS({
15504
15650
  }
15505
15651
  });
15506
15652
 
15507
- // node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/schema/yaml-1.1/int.js
15653
+ // node_modules/.bun/yaml@2.9.1/node_modules/yaml/dist/schema/yaml-1.1/int.js
15508
15654
  var require_int2 = __commonJS({
15509
- "node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/schema/yaml-1.1/int.js"(exports) {
15655
+ "node_modules/.bun/yaml@2.9.1/node_modules/yaml/dist/schema/yaml-1.1/int.js"(exports) {
15510
15656
  "use strict";
15511
15657
  init_utils2();
15512
15658
  var stringifyNumber = require_stringifyNumber();
@@ -15584,9 +15730,9 @@ var require_int2 = __commonJS({
15584
15730
  }
15585
15731
  });
15586
15732
 
15587
- // node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/schema/yaml-1.1/set.js
15733
+ // node_modules/.bun/yaml@2.9.1/node_modules/yaml/dist/schema/yaml-1.1/set.js
15588
15734
  var require_set = __commonJS({
15589
- "node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/schema/yaml-1.1/set.js"(exports) {
15735
+ "node_modules/.bun/yaml@2.9.1/node_modules/yaml/dist/schema/yaml-1.1/set.js"(exports) {
15590
15736
  "use strict";
15591
15737
  init_utils2();
15592
15738
  var identity = require_identity();
@@ -15674,9 +15820,9 @@ var require_set = __commonJS({
15674
15820
  }
15675
15821
  });
15676
15822
 
15677
- // node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/schema/yaml-1.1/timestamp.js
15823
+ // node_modules/.bun/yaml@2.9.1/node_modules/yaml/dist/schema/yaml-1.1/timestamp.js
15678
15824
  var require_timestamp = __commonJS({
15679
- "node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/schema/yaml-1.1/timestamp.js"(exports) {
15825
+ "node_modules/.bun/yaml@2.9.1/node_modules/yaml/dist/schema/yaml-1.1/timestamp.js"(exports) {
15680
15826
  "use strict";
15681
15827
  init_utils2();
15682
15828
  var stringifyNumber = require_stringifyNumber();
@@ -15763,9 +15909,9 @@ var require_timestamp = __commonJS({
15763
15909
  }
15764
15910
  });
15765
15911
 
15766
- // node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/schema/yaml-1.1/schema.js
15912
+ // node_modules/.bun/yaml@2.9.1/node_modules/yaml/dist/schema/yaml-1.1/schema.js
15767
15913
  var require_schema3 = __commonJS({
15768
- "node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/schema/yaml-1.1/schema.js"(exports) {
15914
+ "node_modules/.bun/yaml@2.9.1/node_modules/yaml/dist/schema/yaml-1.1/schema.js"(exports) {
15769
15915
  "use strict";
15770
15916
  init_utils2();
15771
15917
  var map = require_map();
@@ -15808,9 +15954,9 @@ var require_schema3 = __commonJS({
15808
15954
  }
15809
15955
  });
15810
15956
 
15811
- // node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/schema/tags.js
15957
+ // node_modules/.bun/yaml@2.9.1/node_modules/yaml/dist/schema/tags.js
15812
15958
  var require_tags = __commonJS({
15813
- "node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/schema/tags.js"(exports) {
15959
+ "node_modules/.bun/yaml@2.9.1/node_modules/yaml/dist/schema/tags.js"(exports) {
15814
15960
  "use strict";
15815
15961
  init_utils2();
15816
15962
  var map = require_map();
@@ -15903,9 +16049,9 @@ var require_tags = __commonJS({
15903
16049
  }
15904
16050
  });
15905
16051
 
15906
- // node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/schema/Schema.js
16052
+ // node_modules/.bun/yaml@2.9.1/node_modules/yaml/dist/schema/Schema.js
15907
16053
  var require_Schema = __commonJS({
15908
- "node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/schema/Schema.js"(exports) {
16054
+ "node_modules/.bun/yaml@2.9.1/node_modules/yaml/dist/schema/Schema.js"(exports) {
15909
16055
  "use strict";
15910
16056
  init_utils2();
15911
16057
  var identity = require_identity();
@@ -15936,9 +16082,9 @@ var require_Schema = __commonJS({
15936
16082
  }
15937
16083
  });
15938
16084
 
15939
- // node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/stringify/stringifyDocument.js
16085
+ // node_modules/.bun/yaml@2.9.1/node_modules/yaml/dist/stringify/stringifyDocument.js
15940
16086
  var require_stringifyDocument = __commonJS({
15941
- "node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/stringify/stringifyDocument.js"(exports) {
16087
+ "node_modules/.bun/yaml@2.9.1/node_modules/yaml/dist/stringify/stringifyDocument.js"(exports) {
15942
16088
  "use strict";
15943
16089
  init_utils2();
15944
16090
  var identity = require_identity();
@@ -16017,9 +16163,9 @@ var require_stringifyDocument = __commonJS({
16017
16163
  }
16018
16164
  });
16019
16165
 
16020
- // node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/doc/Document.js
16166
+ // node_modules/.bun/yaml@2.9.1/node_modules/yaml/dist/doc/Document.js
16021
16167
  var require_Document = __commonJS({
16022
- "node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/doc/Document.js"(exports) {
16168
+ "node_modules/.bun/yaml@2.9.1/node_modules/yaml/dist/doc/Document.js"(exports) {
16023
16169
  "use strict";
16024
16170
  init_utils2();
16025
16171
  var Alias = require_Alias();
@@ -16327,9 +16473,9 @@ var require_Document = __commonJS({
16327
16473
  }
16328
16474
  });
16329
16475
 
16330
- // node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/errors.js
16476
+ // node_modules/.bun/yaml@2.9.1/node_modules/yaml/dist/errors.js
16331
16477
  var require_errors = __commonJS({
16332
- "node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/errors.js"(exports) {
16478
+ "node_modules/.bun/yaml@2.9.1/node_modules/yaml/dist/errors.js"(exports) {
16333
16479
  "use strict";
16334
16480
  init_utils2();
16335
16481
  var YAMLError = class extends Error {
@@ -16393,9 +16539,9 @@ ${pointer}
16393
16539
  }
16394
16540
  });
16395
16541
 
16396
- // node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/compose/resolve-props.js
16542
+ // node_modules/.bun/yaml@2.9.1/node_modules/yaml/dist/compose/resolve-props.js
16397
16543
  var require_resolve_props = __commonJS({
16398
- "node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/compose/resolve-props.js"(exports) {
16544
+ "node_modules/.bun/yaml@2.9.1/node_modules/yaml/dist/compose/resolve-props.js"(exports) {
16399
16545
  "use strict";
16400
16546
  init_utils2();
16401
16547
  function resolveProps(tokens, { flow, indicator, next, offset, onError, parentIndent, startOnNewline }) {
@@ -16528,9 +16674,9 @@ var require_resolve_props = __commonJS({
16528
16674
  }
16529
16675
  });
16530
16676
 
16531
- // node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/compose/util-contains-newline.js
16677
+ // node_modules/.bun/yaml@2.9.1/node_modules/yaml/dist/compose/util-contains-newline.js
16532
16678
  var require_util_contains_newline = __commonJS({
16533
- "node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/compose/util-contains-newline.js"(exports) {
16679
+ "node_modules/.bun/yaml@2.9.1/node_modules/yaml/dist/compose/util-contains-newline.js"(exports) {
16534
16680
  "use strict";
16535
16681
  init_utils2();
16536
16682
  function containsNewline(key) {
@@ -16571,9 +16717,9 @@ var require_util_contains_newline = __commonJS({
16571
16717
  }
16572
16718
  });
16573
16719
 
16574
- // node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/compose/util-flow-indent-check.js
16720
+ // node_modules/.bun/yaml@2.9.1/node_modules/yaml/dist/compose/util-flow-indent-check.js
16575
16721
  var require_util_flow_indent_check = __commonJS({
16576
- "node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/compose/util-flow-indent-check.js"(exports) {
16722
+ "node_modules/.bun/yaml@2.9.1/node_modules/yaml/dist/compose/util-flow-indent-check.js"(exports) {
16577
16723
  "use strict";
16578
16724
  init_utils2();
16579
16725
  var utilContainsNewline = require_util_contains_newline();
@@ -16590,9 +16736,9 @@ var require_util_flow_indent_check = __commonJS({
16590
16736
  }
16591
16737
  });
16592
16738
 
16593
- // node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/compose/util-map-includes.js
16739
+ // node_modules/.bun/yaml@2.9.1/node_modules/yaml/dist/compose/util-map-includes.js
16594
16740
  var require_util_map_includes = __commonJS({
16595
- "node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/compose/util-map-includes.js"(exports) {
16741
+ "node_modules/.bun/yaml@2.9.1/node_modules/yaml/dist/compose/util-map-includes.js"(exports) {
16596
16742
  "use strict";
16597
16743
  init_utils2();
16598
16744
  var identity = require_identity();
@@ -16607,9 +16753,9 @@ var require_util_map_includes = __commonJS({
16607
16753
  }
16608
16754
  });
16609
16755
 
16610
- // node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/compose/resolve-block-map.js
16756
+ // node_modules/.bun/yaml@2.9.1/node_modules/yaml/dist/compose/resolve-block-map.js
16611
16757
  var require_resolve_block_map = __commonJS({
16612
- "node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/compose/resolve-block-map.js"(exports) {
16758
+ "node_modules/.bun/yaml@2.9.1/node_modules/yaml/dist/compose/resolve-block-map.js"(exports) {
16613
16759
  "use strict";
16614
16760
  init_utils2();
16615
16761
  var Pair = require_Pair();
@@ -16627,10 +16773,10 @@ var require_resolve_block_map = __commonJS({
16627
16773
  let offset = bm.offset;
16628
16774
  let commentEnd = null;
16629
16775
  for (const collItem of bm.items) {
16630
- const { start, key, sep: sep2, value } = collItem;
16776
+ const { start, key, sep: sep3, value } = collItem;
16631
16777
  const keyProps = resolveProps.resolveProps(start, {
16632
16778
  indicator: "explicit-key-ind",
16633
- next: key ?? sep2?.[0],
16779
+ next: key ?? sep3?.[0],
16634
16780
  offset,
16635
16781
  onError,
16636
16782
  parentIndent: bm.indent,
@@ -16644,7 +16790,7 @@ var require_resolve_block_map = __commonJS({
16644
16790
  else if ("indent" in key && key.indent !== bm.indent)
16645
16791
  onError(offset, "BAD_INDENT", startColMsg);
16646
16792
  }
16647
- if (!keyProps.anchor && !keyProps.tag && !sep2) {
16793
+ if (!keyProps.anchor && !keyProps.tag && !sep3) {
16648
16794
  commentEnd = keyProps.end;
16649
16795
  if (keyProps.comment) {
16650
16796
  if (map.comment)
@@ -16668,7 +16814,7 @@ var require_resolve_block_map = __commonJS({
16668
16814
  ctx.atKey = false;
16669
16815
  if (utilMapIncludes.mapIncludes(ctx, map.items, keyNode))
16670
16816
  onError(keyStart, "DUPLICATE_KEY", "Map keys must be unique");
16671
- const valueProps = resolveProps.resolveProps(sep2 ?? [], {
16817
+ const valueProps = resolveProps.resolveProps(sep3 ?? [], {
16672
16818
  indicator: "map-value-ind",
16673
16819
  next: value,
16674
16820
  offset: keyNode.range[2],
@@ -16684,7 +16830,7 @@ var require_resolve_block_map = __commonJS({
16684
16830
  if (ctx.options.strict && keyProps.start < valueProps.found.offset - 1024)
16685
16831
  onError(keyNode.range, "KEY_OVER_1024_CHARS", "The : indicator must be at most 1024 chars after the start of an implicit block mapping key");
16686
16832
  }
16687
- const valueNode = value ? composeNode(ctx, value, valueProps, onError) : composeEmptyNode(ctx, offset, sep2, null, valueProps, onError);
16833
+ const valueNode = value ? composeNode(ctx, value, valueProps, onError) : composeEmptyNode(ctx, offset, sep3, null, valueProps, onError);
16688
16834
  if (ctx.schema.compat)
16689
16835
  utilFlowIndentCheck.flowIndentCheck(bm.indent, value, onError);
16690
16836
  offset = valueNode.range[2];
@@ -16716,9 +16862,9 @@ var require_resolve_block_map = __commonJS({
16716
16862
  }
16717
16863
  });
16718
16864
 
16719
- // node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/compose/resolve-block-seq.js
16865
+ // node_modules/.bun/yaml@2.9.1/node_modules/yaml/dist/compose/resolve-block-seq.js
16720
16866
  var require_resolve_block_seq = __commonJS({
16721
- "node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/compose/resolve-block-seq.js"(exports) {
16867
+ "node_modules/.bun/yaml@2.9.1/node_modules/yaml/dist/compose/resolve-block-seq.js"(exports) {
16722
16868
  "use strict";
16723
16869
  init_utils2();
16724
16870
  var YAMLSeq = require_YAMLSeq();
@@ -16768,16 +16914,16 @@ var require_resolve_block_seq = __commonJS({
16768
16914
  }
16769
16915
  });
16770
16916
 
16771
- // node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/compose/resolve-end.js
16917
+ // node_modules/.bun/yaml@2.9.1/node_modules/yaml/dist/compose/resolve-end.js
16772
16918
  var require_resolve_end = __commonJS({
16773
- "node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/compose/resolve-end.js"(exports) {
16919
+ "node_modules/.bun/yaml@2.9.1/node_modules/yaml/dist/compose/resolve-end.js"(exports) {
16774
16920
  "use strict";
16775
16921
  init_utils2();
16776
16922
  function resolveEnd(end, offset, reqSpace, onError) {
16777
16923
  let comment = "";
16778
16924
  if (end) {
16779
16925
  let hasSpace = false;
16780
- let sep2 = "";
16926
+ let sep3 = "";
16781
16927
  for (const token of end) {
16782
16928
  const { source, type } = token;
16783
16929
  switch (type) {
@@ -16791,13 +16937,13 @@ var require_resolve_end = __commonJS({
16791
16937
  if (!comment)
16792
16938
  comment = cb;
16793
16939
  else
16794
- comment += sep2 + cb;
16795
- sep2 = "";
16940
+ comment += sep3 + cb;
16941
+ sep3 = "";
16796
16942
  break;
16797
16943
  }
16798
16944
  case "newline":
16799
16945
  if (comment)
16800
- sep2 += source;
16946
+ sep3 += source;
16801
16947
  hasSpace = true;
16802
16948
  break;
16803
16949
  default:
@@ -16812,9 +16958,9 @@ var require_resolve_end = __commonJS({
16812
16958
  }
16813
16959
  });
16814
16960
 
16815
- // node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/compose/resolve-flow-collection.js
16961
+ // node_modules/.bun/yaml@2.9.1/node_modules/yaml/dist/compose/resolve-flow-collection.js
16816
16962
  var require_resolve_flow_collection = __commonJS({
16817
- "node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/compose/resolve-flow-collection.js"(exports) {
16963
+ "node_modules/.bun/yaml@2.9.1/node_modules/yaml/dist/compose/resolve-flow-collection.js"(exports) {
16818
16964
  "use strict";
16819
16965
  init_utils2();
16820
16966
  var identity = require_identity();
@@ -16841,18 +16987,18 @@ var require_resolve_flow_collection = __commonJS({
16841
16987
  let offset = fc.offset + fc.start.source.length;
16842
16988
  for (let i2 = 0; i2 < fc.items.length; ++i2) {
16843
16989
  const collItem = fc.items[i2];
16844
- const { start, key, sep: sep2, value } = collItem;
16990
+ const { start, key, sep: sep3, value } = collItem;
16845
16991
  const props = resolveProps.resolveProps(start, {
16846
16992
  flow: fcName,
16847
16993
  indicator: "explicit-key-ind",
16848
- next: key ?? sep2?.[0],
16994
+ next: key ?? sep3?.[0],
16849
16995
  offset,
16850
16996
  onError,
16851
16997
  parentIndent: fc.indent,
16852
16998
  startOnNewline: false
16853
16999
  });
16854
17000
  if (!props.found) {
16855
- if (!props.anchor && !props.tag && !sep2 && !value) {
17001
+ if (!props.anchor && !props.tag && !sep3 && !value) {
16856
17002
  if (i2 === 0 && props.comma)
16857
17003
  onError(props.comma, "UNEXPECTED_TOKEN", `Unexpected , in ${fcName}`);
16858
17004
  else if (i2 < fc.items.length - 1)
@@ -16906,8 +17052,8 @@ var require_resolve_flow_collection = __commonJS({
16906
17052
  }
16907
17053
  }
16908
17054
  }
16909
- if (!isMap && !sep2 && !props.found) {
16910
- const valueNode = value ? composeNode(ctx, value, props, onError) : composeEmptyNode(ctx, props.end, sep2, null, props, onError);
17055
+ if (!isMap && !sep3 && !props.found) {
17056
+ const valueNode = value ? composeNode(ctx, value, props, onError) : composeEmptyNode(ctx, props.end, sep3, null, props, onError);
16911
17057
  coll.items.push(valueNode);
16912
17058
  offset = valueNode.range[2];
16913
17059
  if (isBlock(value))
@@ -16919,7 +17065,7 @@ var require_resolve_flow_collection = __commonJS({
16919
17065
  if (isBlock(key))
16920
17066
  onError(keyNode.range, "BLOCK_IN_FLOW", blockMsg);
16921
17067
  ctx.atKey = false;
16922
- const valueProps = resolveProps.resolveProps(sep2 ?? [], {
17068
+ const valueProps = resolveProps.resolveProps(sep3 ?? [], {
16923
17069
  flow: fcName,
16924
17070
  indicator: "map-value-ind",
16925
17071
  next: value,
@@ -16930,8 +17076,8 @@ var require_resolve_flow_collection = __commonJS({
16930
17076
  });
16931
17077
  if (valueProps.found) {
16932
17078
  if (!isMap && !props.found && ctx.options.strict) {
16933
- if (sep2)
16934
- for (const st of sep2) {
17079
+ if (sep3)
17080
+ for (const st of sep3) {
16935
17081
  if (st === valueProps.found)
16936
17082
  break;
16937
17083
  if (st.type === "newline") {
@@ -16948,7 +17094,7 @@ var require_resolve_flow_collection = __commonJS({
16948
17094
  else
16949
17095
  onError(valueProps.start, "MISSING_CHAR", `Missing , or : between ${fcName} items`);
16950
17096
  }
16951
- const valueNode = value ? composeNode(ctx, value, valueProps, onError) : valueProps.found ? composeEmptyNode(ctx, valueProps.end, sep2, null, valueProps, onError) : null;
17097
+ const valueNode = value ? composeNode(ctx, value, valueProps, onError) : valueProps.found ? composeEmptyNode(ctx, valueProps.end, sep3, null, valueProps, onError) : null;
16952
17098
  if (valueNode) {
16953
17099
  if (isBlock(value))
16954
17100
  onError(valueNode.range, "BLOCK_IN_FLOW", blockMsg);
@@ -17007,9 +17153,9 @@ var require_resolve_flow_collection = __commonJS({
17007
17153
  }
17008
17154
  });
17009
17155
 
17010
- // node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/compose/compose-collection.js
17156
+ // node_modules/.bun/yaml@2.9.1/node_modules/yaml/dist/compose/compose-collection.js
17011
17157
  var require_compose_collection = __commonJS({
17012
- "node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/compose/compose-collection.js"(exports) {
17158
+ "node_modules/.bun/yaml@2.9.1/node_modules/yaml/dist/compose/compose-collection.js"(exports) {
17013
17159
  "use strict";
17014
17160
  init_utils2();
17015
17161
  var identity = require_identity();
@@ -17073,9 +17219,9 @@ var require_compose_collection = __commonJS({
17073
17219
  }
17074
17220
  });
17075
17221
 
17076
- // node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/compose/resolve-block-scalar.js
17222
+ // node_modules/.bun/yaml@2.9.1/node_modules/yaml/dist/compose/resolve-block-scalar.js
17077
17223
  var require_resolve_block_scalar = __commonJS({
17078
- "node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/compose/resolve-block-scalar.js"(exports) {
17224
+ "node_modules/.bun/yaml@2.9.1/node_modules/yaml/dist/compose/resolve-block-scalar.js"(exports) {
17079
17225
  "use strict";
17080
17226
  init_utils2();
17081
17227
  var Scalar = require_Scalar();
@@ -17130,7 +17276,7 @@ var require_resolve_block_scalar = __commonJS({
17130
17276
  chompStart = i2 + 1;
17131
17277
  }
17132
17278
  let value = "";
17133
- let sep2 = "";
17279
+ let sep3 = "";
17134
17280
  let prevMoreIndented = false;
17135
17281
  for (let i2 = 0; i2 < contentStart; ++i2)
17136
17282
  value += lines[i2][0].slice(trimIndent) + "\n";
@@ -17147,24 +17293,24 @@ var require_resolve_block_scalar = __commonJS({
17147
17293
  indent = "";
17148
17294
  }
17149
17295
  if (type === Scalar.Scalar.BLOCK_LITERAL) {
17150
- value += sep2 + indent.slice(trimIndent) + content;
17151
- sep2 = "\n";
17296
+ value += sep3 + indent.slice(trimIndent) + content;
17297
+ sep3 = "\n";
17152
17298
  } else if (indent.length > trimIndent || content[0] === " ") {
17153
- if (sep2 === " ")
17154
- sep2 = "\n";
17155
- else if (!prevMoreIndented && sep2 === "\n")
17156
- sep2 = "\n\n";
17157
- value += sep2 + indent.slice(trimIndent) + content;
17158
- sep2 = "\n";
17299
+ if (sep3 === " ")
17300
+ sep3 = "\n";
17301
+ else if (!prevMoreIndented && sep3 === "\n")
17302
+ sep3 = "\n\n";
17303
+ value += sep3 + indent.slice(trimIndent) + content;
17304
+ sep3 = "\n";
17159
17305
  prevMoreIndented = true;
17160
17306
  } else if (content === "") {
17161
- if (sep2 === "\n")
17307
+ if (sep3 === "\n")
17162
17308
  value += "\n";
17163
17309
  else
17164
- sep2 = "\n";
17310
+ sep3 = "\n";
17165
17311
  } else {
17166
- value += sep2 + content;
17167
- sep2 = " ";
17312
+ value += sep3 + content;
17313
+ sep3 = " ";
17168
17314
  prevMoreIndented = false;
17169
17315
  }
17170
17316
  }
@@ -17257,9 +17403,9 @@ var require_resolve_block_scalar = __commonJS({
17257
17403
  }
17258
17404
  });
17259
17405
 
17260
- // node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/compose/resolve-flow-scalar.js
17406
+ // node_modules/.bun/yaml@2.9.1/node_modules/yaml/dist/compose/resolve-flow-scalar.js
17261
17407
  var require_resolve_flow_scalar = __commonJS({
17262
- "node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/compose/resolve-flow-scalar.js"(exports) {
17408
+ "node_modules/.bun/yaml@2.9.1/node_modules/yaml/dist/compose/resolve-flow-scalar.js"(exports) {
17263
17409
  "use strict";
17264
17410
  init_utils2();
17265
17411
  var Scalar = require_Scalar();
@@ -17327,45 +17473,46 @@ var require_resolve_flow_scalar = __commonJS({
17327
17473
  }
17328
17474
  if (badChar)
17329
17475
  onError(0, "BAD_SCALAR_START", `Plain value cannot start with ${badChar}`);
17330
- return foldLines(source);
17476
+ return unfoldLines(source);
17331
17477
  }
17332
17478
  function singleQuotedValue(source, onError) {
17333
17479
  if (source[source.length - 1] !== "'" || source.length === 1)
17334
17480
  onError(source.length, "MISSING_CHAR", "Missing closing 'quote");
17335
- return foldLines(source.slice(1, -1)).replace(/''/g, "'");
17481
+ return unfoldLines(source.slice(1, -1)).replace(/''/g, "'");
17336
17482
  }
17337
- function foldLines(source) {
17338
- let first, line;
17483
+ function unfoldLines(source) {
17484
+ const line = /(.*?)\r?\n/sy;
17485
+ let match = line.exec(source);
17486
+ if (!match)
17487
+ return source;
17488
+ let trimEnd, trimBoth;
17339
17489
  try {
17340
- first = new RegExp("(.*?)(?<![ ])[ ]*\r?\n", "sy");
17341
- line = new RegExp("[ ]*(.*?)(?:(?<![ ])[ ]*)?\r?\n", "sy");
17490
+ trimEnd = new RegExp("(?<![ ])[ ]+$");
17491
+ trimBoth = new RegExp("^[ ]+|(?<![ ])[ ]+$", "g");
17342
17492
  } catch {
17343
- first = /(.*?)[ \t]*\r?\n/sy;
17344
- line = /[ \t]*(.*?)[ \t]*\r?\n/sy;
17493
+ trimEnd = /[ \t]+$/;
17494
+ trimBoth = /^[ \t]+|[ \t]+$/g;
17345
17495
  }
17346
- let match = first.exec(source);
17347
- if (!match)
17348
- return source;
17349
- let res = match[1];
17350
- let sep2 = " ";
17351
- let pos = first.lastIndex;
17352
- line.lastIndex = pos;
17496
+ let res = match[1].replace(trimEnd, "");
17497
+ let sep3 = " ";
17498
+ let pos = line.lastIndex;
17353
17499
  while (match = line.exec(source)) {
17354
- if (match[1] === "") {
17355
- if (sep2 === "\n")
17356
- res += sep2;
17500
+ const lm = match[1].replace(trimBoth, "");
17501
+ if (lm === "") {
17502
+ if (sep3 === "\n")
17503
+ res += sep3;
17357
17504
  else
17358
- sep2 = "\n";
17505
+ sep3 = "\n";
17359
17506
  } else {
17360
- res += sep2 + match[1];
17361
- sep2 = " ";
17507
+ res += sep3 + lm;
17508
+ sep3 = " ";
17362
17509
  }
17363
17510
  pos = line.lastIndex;
17364
17511
  }
17365
17512
  const last = /[ \t]*(.*)/sy;
17366
17513
  last.lastIndex = pos;
17367
17514
  match = last.exec(source);
17368
- return res + sep2 + (match?.[1] ?? "");
17515
+ return res + sep3 + (match?.[1] ?? "");
17369
17516
  }
17370
17517
  function doubleQuotedValue(source, onError) {
17371
17518
  let res = "";
@@ -17478,9 +17625,9 @@ var require_resolve_flow_scalar = __commonJS({
17478
17625
  }
17479
17626
  });
17480
17627
 
17481
- // node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/compose/compose-scalar.js
17628
+ // node_modules/.bun/yaml@2.9.1/node_modules/yaml/dist/compose/compose-scalar.js
17482
17629
  var require_compose_scalar = __commonJS({
17483
- "node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/compose/compose-scalar.js"(exports) {
17630
+ "node_modules/.bun/yaml@2.9.1/node_modules/yaml/dist/compose/compose-scalar.js"(exports) {
17484
17631
  "use strict";
17485
17632
  init_utils2();
17486
17633
  var identity = require_identity();
@@ -17560,9 +17707,9 @@ var require_compose_scalar = __commonJS({
17560
17707
  }
17561
17708
  });
17562
17709
 
17563
- // node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/compose/util-empty-scalar-position.js
17710
+ // node_modules/.bun/yaml@2.9.1/node_modules/yaml/dist/compose/util-empty-scalar-position.js
17564
17711
  var require_util_empty_scalar_position = __commonJS({
17565
- "node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/compose/util-empty-scalar-position.js"(exports) {
17712
+ "node_modules/.bun/yaml@2.9.1/node_modules/yaml/dist/compose/util-empty-scalar-position.js"(exports) {
17566
17713
  "use strict";
17567
17714
  init_utils2();
17568
17715
  function emptyScalarPosition(offset, before, pos) {
@@ -17591,9 +17738,9 @@ var require_util_empty_scalar_position = __commonJS({
17591
17738
  }
17592
17739
  });
17593
17740
 
17594
- // node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/compose/compose-node.js
17741
+ // node_modules/.bun/yaml@2.9.1/node_modules/yaml/dist/compose/compose-node.js
17595
17742
  var require_compose_node = __commonJS({
17596
- "node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/compose/compose-node.js"(exports) {
17743
+ "node_modules/.bun/yaml@2.9.1/node_modules/yaml/dist/compose/compose-node.js"(exports) {
17597
17744
  "use strict";
17598
17745
  init_utils2();
17599
17746
  var Alias = require_Alias();
@@ -17698,9 +17845,9 @@ var require_compose_node = __commonJS({
17698
17845
  }
17699
17846
  });
17700
17847
 
17701
- // node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/compose/compose-doc.js
17848
+ // node_modules/.bun/yaml@2.9.1/node_modules/yaml/dist/compose/compose-doc.js
17702
17849
  var require_compose_doc = __commonJS({
17703
- "node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/compose/compose-doc.js"(exports) {
17850
+ "node_modules/.bun/yaml@2.9.1/node_modules/yaml/dist/compose/compose-doc.js"(exports) {
17704
17851
  "use strict";
17705
17852
  init_utils2();
17706
17853
  var Document = require_Document();
@@ -17742,9 +17889,9 @@ var require_compose_doc = __commonJS({
17742
17889
  }
17743
17890
  });
17744
17891
 
17745
- // node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/compose/composer.js
17892
+ // node_modules/.bun/yaml@2.9.1/node_modules/yaml/dist/compose/composer.js
17746
17893
  var require_composer = __commonJS({
17747
- "node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/compose/composer.js"(exports) {
17894
+ "node_modules/.bun/yaml@2.9.1/node_modules/yaml/dist/compose/composer.js"(exports) {
17748
17895
  "use strict";
17749
17896
  init_utils2();
17750
17897
  var node_process = __require("process");
@@ -17951,9 +18098,9 @@ ${end.comment}` : end.comment;
17951
18098
  }
17952
18099
  });
17953
18100
 
17954
- // node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/parse/cst-scalar.js
18101
+ // node_modules/.bun/yaml@2.9.1/node_modules/yaml/dist/parse/cst-scalar.js
17955
18102
  var require_cst_scalar = __commonJS({
17956
- "node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/parse/cst-scalar.js"(exports) {
18103
+ "node_modules/.bun/yaml@2.9.1/node_modules/yaml/dist/parse/cst-scalar.js"(exports) {
17957
18104
  "use strict";
17958
18105
  init_utils2();
17959
18106
  var resolveBlockScalar = require_resolve_block_scalar();
@@ -18137,9 +18284,9 @@ var require_cst_scalar = __commonJS({
18137
18284
  }
18138
18285
  });
18139
18286
 
18140
- // node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/parse/cst-stringify.js
18287
+ // node_modules/.bun/yaml@2.9.1/node_modules/yaml/dist/parse/cst-stringify.js
18141
18288
  var require_cst_stringify = __commonJS({
18142
- "node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/parse/cst-stringify.js"(exports) {
18289
+ "node_modules/.bun/yaml@2.9.1/node_modules/yaml/dist/parse/cst-stringify.js"(exports) {
18143
18290
  "use strict";
18144
18291
  init_utils2();
18145
18292
  var stringify2 = (cst) => "type" in cst ? stringifyToken(cst) : stringifyItem(cst);
@@ -18182,14 +18329,14 @@ var require_cst_stringify = __commonJS({
18182
18329
  }
18183
18330
  }
18184
18331
  }
18185
- function stringifyItem({ start, key, sep: sep2, value }) {
18332
+ function stringifyItem({ start, key, sep: sep3, value }) {
18186
18333
  let res = "";
18187
18334
  for (const st of start)
18188
18335
  res += st.source;
18189
18336
  if (key)
18190
18337
  res += stringifyToken(key);
18191
- if (sep2)
18192
- for (const st of sep2)
18338
+ if (sep3)
18339
+ for (const st of sep3)
18193
18340
  res += st.source;
18194
18341
  if (value)
18195
18342
  res += stringifyToken(value);
@@ -18199,9 +18346,9 @@ var require_cst_stringify = __commonJS({
18199
18346
  }
18200
18347
  });
18201
18348
 
18202
- // node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/parse/cst-visit.js
18349
+ // node_modules/.bun/yaml@2.9.1/node_modules/yaml/dist/parse/cst-visit.js
18203
18350
  var require_cst_visit = __commonJS({
18204
- "node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/parse/cst-visit.js"(exports) {
18351
+ "node_modules/.bun/yaml@2.9.1/node_modules/yaml/dist/parse/cst-visit.js"(exports) {
18205
18352
  "use strict";
18206
18353
  init_utils2();
18207
18354
  var BREAK = /* @__PURE__ */ Symbol("break visit");
@@ -18262,9 +18409,9 @@ var require_cst_visit = __commonJS({
18262
18409
  }
18263
18410
  });
18264
18411
 
18265
- // node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/parse/cst.js
18412
+ // node_modules/.bun/yaml@2.9.1/node_modules/yaml/dist/parse/cst.js
18266
18413
  var require_cst = __commonJS({
18267
- "node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/parse/cst.js"(exports) {
18414
+ "node_modules/.bun/yaml@2.9.1/node_modules/yaml/dist/parse/cst.js"(exports) {
18268
18415
  "use strict";
18269
18416
  init_utils2();
18270
18417
  var cstScalar = require_cst_scalar();
@@ -18365,9 +18512,9 @@ var require_cst = __commonJS({
18365
18512
  }
18366
18513
  });
18367
18514
 
18368
- // node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/parse/lexer.js
18515
+ // node_modules/.bun/yaml@2.9.1/node_modules/yaml/dist/parse/lexer.js
18369
18516
  var require_lexer = __commonJS({
18370
- "node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/parse/lexer.js"(exports) {
18517
+ "node_modules/.bun/yaml@2.9.1/node_modules/yaml/dist/parse/lexer.js"(exports) {
18371
18518
  "use strict";
18372
18519
  init_utils2();
18373
18520
  var cst = require_cst();
@@ -18955,9 +19102,9 @@ var require_lexer = __commonJS({
18955
19102
  }
18956
19103
  });
18957
19104
 
18958
- // node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/parse/line-counter.js
19105
+ // node_modules/.bun/yaml@2.9.1/node_modules/yaml/dist/parse/line-counter.js
18959
19106
  var require_line_counter = __commonJS({
18960
- "node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/parse/line-counter.js"(exports) {
19107
+ "node_modules/.bun/yaml@2.9.1/node_modules/yaml/dist/parse/line-counter.js"(exports) {
18961
19108
  "use strict";
18962
19109
  init_utils2();
18963
19110
  var LineCounter = class {
@@ -18987,9 +19134,9 @@ var require_line_counter = __commonJS({
18987
19134
  }
18988
19135
  });
18989
19136
 
18990
- // node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/parse/parser.js
19137
+ // node_modules/.bun/yaml@2.9.1/node_modules/yaml/dist/parse/parser.js
18991
19138
  var require_parser = __commonJS({
18992
- "node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/parse/parser.js"(exports) {
19139
+ "node_modules/.bun/yaml@2.9.1/node_modules/yaml/dist/parse/parser.js"(exports) {
18993
19140
  "use strict";
18994
19141
  init_utils2();
18995
19142
  var node_process = __require("process");
@@ -19361,18 +19508,18 @@ var require_parser = __commonJS({
19361
19508
  if (this.type === "map-value-ind") {
19362
19509
  const prev = getPrevProps(this.peek(2));
19363
19510
  const start = getFirstKeyStartProps(prev);
19364
- let sep2;
19511
+ let sep3;
19365
19512
  if (scalar.end) {
19366
- sep2 = scalar.end;
19367
- sep2.push(this.sourceToken);
19513
+ sep3 = scalar.end;
19514
+ sep3.push(this.sourceToken);
19368
19515
  delete scalar.end;
19369
19516
  } else
19370
- sep2 = [this.sourceToken];
19517
+ sep3 = [this.sourceToken];
19371
19518
  const map = {
19372
19519
  type: "block-map",
19373
19520
  offset: scalar.offset,
19374
19521
  indent: scalar.indent,
19375
- items: [{ start, key: scalar, sep: sep2 }]
19522
+ items: [{ start, key: scalar, sep: sep3 }]
19376
19523
  };
19377
19524
  this.onKeyLine = true;
19378
19525
  this.stack[this.stack.length - 1] = map;
@@ -19525,15 +19672,15 @@ var require_parser = __commonJS({
19525
19672
  } else if (isFlowToken(it.key) && !includesToken(it.sep, "newline")) {
19526
19673
  const start2 = getFirstKeyStartProps(it.start);
19527
19674
  const key = it.key;
19528
- const sep2 = it.sep;
19529
- sep2.push(this.sourceToken);
19675
+ const sep3 = it.sep;
19676
+ sep3.push(this.sourceToken);
19530
19677
  delete it.key;
19531
19678
  delete it.sep;
19532
19679
  this.stack.push({
19533
19680
  type: "block-map",
19534
19681
  offset: this.offset,
19535
19682
  indent: this.indent,
19536
- items: [{ start: start2, key, sep: sep2 }]
19683
+ items: [{ start: start2, key, sep: sep3 }]
19537
19684
  });
19538
19685
  } else if (start.length > 0) {
19539
19686
  it.sep = it.sep.concat(start, this.sourceToken);
@@ -19727,13 +19874,13 @@ var require_parser = __commonJS({
19727
19874
  const prev = getPrevProps(parent);
19728
19875
  const start = getFirstKeyStartProps(prev);
19729
19876
  fixFlowSeqItems(fc);
19730
- const sep2 = fc.end.splice(1, fc.end.length);
19731
- sep2.push(this.sourceToken);
19877
+ const sep3 = fc.end.splice(1, fc.end.length);
19878
+ sep3.push(this.sourceToken);
19732
19879
  const map = {
19733
19880
  type: "block-map",
19734
19881
  offset: fc.offset,
19735
19882
  indent: fc.indent,
19736
- items: [{ start, key: fc, sep: sep2 }]
19883
+ items: [{ start, key: fc, sep: sep3 }]
19737
19884
  };
19738
19885
  this.onKeyLine = true;
19739
19886
  this.stack[this.stack.length - 1] = map;
@@ -19862,9 +20009,9 @@ var require_parser = __commonJS({
19862
20009
  }
19863
20010
  });
19864
20011
 
19865
- // node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/public-api.js
20012
+ // node_modules/.bun/yaml@2.9.1/node_modules/yaml/dist/public-api.js
19866
20013
  var require_public_api = __commonJS({
19867
- "node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/public-api.js"(exports) {
20014
+ "node_modules/.bun/yaml@2.9.1/node_modules/yaml/dist/public-api.js"(exports) {
19868
20015
  "use strict";
19869
20016
  init_utils2();
19870
20017
  var composer = require_composer();
@@ -19960,9 +20107,9 @@ var require_public_api = __commonJS({
19960
20107
  }
19961
20108
  });
19962
20109
 
19963
- // node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/index.js
20110
+ // node_modules/.bun/yaml@2.9.1/node_modules/yaml/dist/index.js
19964
20111
  var require_dist = __commonJS({
19965
- "node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/index.js"(exports) {
20112
+ "node_modules/.bun/yaml@2.9.1/node_modules/yaml/dist/index.js"(exports) {
19966
20113
  "use strict";
19967
20114
  init_utils2();
19968
20115
  var composer = require_composer();
@@ -20692,7 +20839,7 @@ function uploadServiceAccountToGitHub(appDir, repo, dryRun = false, staging = fa
20692
20839
  const contentRaw = readSync(filePath, { format: "text" });
20693
20840
  const content = typeof contentRaw === "string" ? contentRaw : null;
20694
20841
  if (!content) return;
20695
- const encoded = Buffer.from(content).toString("base64");
20842
+ const encoded = Buffer2.from(content).toString("base64");
20696
20843
  setGitHubSecret(secretName, encoded, repo, dryRun);
20697
20844
  }
20698
20845
  async function main5(options = {}) {
@@ -23992,6 +24139,7 @@ async function deployRules(appDir, serviceAccountPath, projectId, config, option
23992
24139
  init_utils2();
23993
24140
  import { execFileSync as execFileSync4 } from "node:child_process";
23994
24141
  import { createHash } from "node:crypto";
24142
+ import { readlinkSync } from "node:fs";
23995
24143
  init_vercel_api();
23996
24144
  init_vercel_token();
23997
24145
  init_cli_output();
@@ -24001,6 +24149,7 @@ init_secrets_resolver();
24001
24149
  var UPLOAD_BATCH_SIZE = 10;
24002
24150
  var POLL_INTERVAL_MS = 3e3;
24003
24151
  var POLL_MAX_ATTEMPTS = 100;
24152
+ var SYMLINK_MODE = 41471;
24004
24153
  function apiHeaders(token, extra) {
24005
24154
  return { Authorization: `Bearer ${token}`, ...extra };
24006
24155
  }
@@ -24016,10 +24165,14 @@ async function collectDistFiles(distDir) {
24016
24165
  });
24017
24166
  for (const entry of entries) {
24018
24167
  const fullPath = joinPath(dir, entry.name);
24019
- if (entry.isDirectory()) {
24168
+ const isDir = entry.isDirectory() || entry.isSymbolicLink() && statSync2(fullPath)?.isDirectory() === true;
24169
+ if (isDir) {
24020
24170
  await walk(fullPath);
24021
24171
  } else {
24022
24172
  const content = await read(fullPath, { format: "buffer" });
24173
+ if (!content) {
24174
+ throw new Error(`Cannot read ${fullPath} for upload`);
24175
+ }
24023
24176
  const sha = createHash("sha1").update(content).digest("hex");
24024
24177
  files.push({
24025
24178
  relativePath: getRelativePathBetween(distDir, fullPath),
@@ -24033,7 +24186,7 @@ async function collectDistFiles(distDir) {
24033
24186
  await walk(distDir);
24034
24187
  return files;
24035
24188
  }
24036
- async function collectVercelOutputFiles(appDir) {
24189
+ async function collectVercelOutputFiles(appDir, repoRoot) {
24037
24190
  const outputRoot = joinPath(appDir, ".vercel/output");
24038
24191
  if (!pathExists(outputRoot)) return [];
24039
24192
  const files = [];
@@ -24043,10 +24196,14 @@ async function collectVercelOutputFiles(appDir) {
24043
24196
  });
24044
24197
  for (const entry of entries) {
24045
24198
  const fullPath = joinPath(dir, entry.name);
24046
- if (entry.isDirectory()) {
24199
+ const isDir = entry.isDirectory() || entry.isSymbolicLink() && statSync2(fullPath)?.isDirectory() === true;
24200
+ if (isDir) {
24047
24201
  await walk(fullPath);
24048
24202
  } else {
24049
24203
  const content = await read(fullPath, { format: "buffer" });
24204
+ if (!content) {
24205
+ throw new Error(`Cannot read ${fullPath} for upload`);
24206
+ }
24050
24207
  const sha = createHash("sha1").update(content).digest("hex");
24051
24208
  files.push({
24052
24209
  relativePath: getRelativePathBetween(appDir, fullPath),
@@ -24058,7 +24215,39 @@ async function collectVercelOutputFiles(appDir) {
24058
24215
  }
24059
24216
  }
24060
24217
  await walk(outputRoot);
24061
- return files;
24218
+ const mapped = [];
24219
+ for (const file of files) {
24220
+ if (!file.relativePath.endsWith(".func/.vc-config.json")) continue;
24221
+ const config = JSON.parse(file.content.toString("utf8"));
24222
+ const funcDir = file.relativePath.slice(0, -"/.vc-config.json".length);
24223
+ for (const [target, source] of Object.entries(config.filePathMap ?? {})) {
24224
+ const sourcePath = joinPath(repoRoot, source);
24225
+ if (lstatSync3(sourcePath)?.isSymbolicLink()) {
24226
+ const linkTarget = Buffer2.from(readlinkSync(sourcePath), "utf8");
24227
+ mapped.push({
24228
+ relativePath: `${funcDir}/${target}`,
24229
+ content: linkTarget,
24230
+ sha: createHash("sha1").update(linkTarget).digest("hex"),
24231
+ size: linkTarget.byteLength,
24232
+ mode: SYMLINK_MODE
24233
+ });
24234
+ continue;
24235
+ }
24236
+ const content = await read(sourcePath, { format: "buffer" });
24237
+ if (!content) {
24238
+ throw new Error(
24239
+ `filePathMap of ${funcDir}: cannot read ${sourcePath} (resolved from the repository root)`
24240
+ );
24241
+ }
24242
+ mapped.push({
24243
+ relativePath: `${funcDir}/${target}`,
24244
+ content,
24245
+ sha: createHash("sha1").update(content).digest("hex"),
24246
+ size: content.byteLength
24247
+ });
24248
+ }
24249
+ }
24250
+ return [...files, ...mapped];
24062
24251
  }
24063
24252
  function runVercelBuild(appDir, projectRoot) {
24064
24253
  const result = resolveVercelCredentials(appDir, projectRoot);
@@ -24188,7 +24377,7 @@ function buildOutputConfig(appDir, mode = "spa") {
24188
24377
  }
24189
24378
  const config = { version: 3, routes };
24190
24379
  const json = JSON.stringify(config, null, 2);
24191
- const content = Buffer.from(json);
24380
+ const content = Buffer2.from(json);
24192
24381
  const sha = createHash("sha1").update(content).digest("hex");
24193
24382
  log2.debug(`Build Output config.json: ${routes.length} routes`);
24194
24383
  return {
@@ -24207,7 +24396,8 @@ async function createDeployment(files, token, orgId, projectId, projectName) {
24207
24396
  files: files.map((f) => ({
24208
24397
  file: f.relativePath,
24209
24398
  sha: f.sha,
24210
- size: f.size
24399
+ size: f.size,
24400
+ ...f.mode !== void 0 ? { mode: f.mode } : {}
24211
24401
  })),
24212
24402
  projectSettings: {
24213
24403
  buildCommand: "",
@@ -24282,7 +24472,7 @@ async function waitForReady(deploymentId, token, orgId) {
24282
24472
  }
24283
24473
  throw new Error("Deployment timed out (5+ minutes)");
24284
24474
  }
24285
- async function deployVercelFrontend(appDir, config, framework = "unknown") {
24475
+ async function deployVercelFrontend(appDir, repoRoot, config, framework = "unknown") {
24286
24476
  const result = resolveVercelCredentials(appDir);
24287
24477
  if ("missing" in result) {
24288
24478
  const missing = result.missing ?? [];
@@ -24320,7 +24510,7 @@ async function deployVercelFrontend(appDir, config, framework = "unknown") {
24320
24510
  );
24321
24511
  }
24322
24512
  log2.info("Collecting .vercel/output files...");
24323
- const outputFiles = await collectVercelOutputFiles(appDir);
24513
+ const outputFiles = await collectVercelOutputFiles(appDir, repoRoot);
24324
24514
  if (outputFiles.length === 0) {
24325
24515
  throw new Error(
24326
24516
  ".vercel/output is empty \u2014 vercel build may have failed."
@@ -24751,11 +24941,20 @@ async function main6(options = {}) {
24751
24941
  ...serviceAccountPath ? [`Service Account: ${serviceAccountPath}`] : []
24752
24942
  ].join("\n");
24753
24943
  note(configNote, "Deployment Configuration");
24944
+ if (options.dryRun) {
24945
+ outro("Dry run: build checked, nothing uploaded or deployed.");
24946
+ return;
24947
+ }
24754
24948
  if (shouldDeployFirebaseFrontend && serviceAccountPath && config.project) {
24755
24949
  await deployFrontend(appDir, serviceAccountPath, config.project, config);
24756
24950
  }
24757
24951
  if (shouldDeployVercelFrontend) {
24758
- await deployVercelFrontend(appDir, config, appProviderInfo.framework);
24952
+ await deployVercelFrontend(
24953
+ appDir,
24954
+ projectRoot,
24955
+ config,
24956
+ appProviderInfo.framework
24957
+ );
24759
24958
  }
24760
24959
  if (shouldDeployFirebaseFunctions && serviceAccountPath && config.project) {
24761
24960
  const functionsEnvPath = joinPath(appDir, "functions", ".env");
@@ -25183,6 +25382,8 @@ async function createApp(appName, appConfig, workspaceRoot, templatesRoot) {
25183
25382
  appName,
25184
25383
  appShortName: appName.toUpperCase().replace(/-/g, " "),
25185
25384
  includeFunctions: Boolean(row.functionsTemplate),
25385
+ // vercel.json functions/rewrites/env only fit Vercel API functions, not Supabase or Firebase ones.
25386
+ includeVercelFunctions: row.functionsTemplate === "functions-vercel",
25186
25387
  needsCRUD: Boolean(appConfig.needsCRUD),
25187
25388
  setupGithubActions: false,
25188
25389
  appNames: [appName],
@@ -25277,6 +25478,8 @@ async function createApp(appName, appConfig, workspaceRoot, templatesRoot) {
25277
25478
  appName,
25278
25479
  template: isReservedTemplate ? "vite" : appTemplate,
25279
25480
  includeFunctions: Boolean(row.functionsTemplate),
25481
+ // vercel.json functions/rewrites/env only fit Vercel API functions, not Supabase or Firebase ones.
25482
+ includeVercelFunctions: row.functionsTemplate === "functions-vercel",
25280
25483
  platform: isReservedTemplate ? void 0 : backendPlatform
25281
25484
  });
25282
25485
  const packageJsonPath = joinPath(appDir, "package.json");