@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
@@ -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, 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);
@@ -856,7 +865,7 @@ var init_dist3 = __esm({
856
865
  }
857
866
  });
858
867
 
859
- // node_modules/.bun/@clack+prompts@1.8.0/node_modules/@clack/prompts/dist/index.mjs
868
+ // node_modules/.bun/@clack+prompts@1.8.1/node_modules/@clack/prompts/dist/index.mjs
860
869
  import { styleText as styleText2, stripVTControlCharacters } from "node:util";
861
870
  import process$1 from "node:process";
862
871
  import { existsSync, lstatSync, readdirSync } from "node:fs";
@@ -873,7 +882,7 @@ function formatInstructionFooter(o, e) {
873
882
  }
874
883
  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, log, cancel, intro, outro, W$1, C, note, W, spinner, u2, SELECT_INSTRUCTIONS, c, select, i, text;
875
884
  var init_dist4 = __esm({
876
- "node_modules/.bun/@clack+prompts@1.8.0/node_modules/@clack/prompts/dist/index.mjs"() {
885
+ "node_modules/.bun/@clack+prompts@1.8.1/node_modules/@clack/prompts/dist/index.mjs"() {
877
886
  init_utils2();
878
887
  init_dist3();
879
888
  init_dist3();
@@ -1002,39 +1011,39 @@ var init_dist4 = __esm({
1002
1011
  x.push(n3);
1003
1012
  return c2 && x.push(M), x;
1004
1013
  };
1005
- confirm = (i2) => {
1006
- const a2 = i2.active ?? "Yes", s = i2.inactive ?? "No";
1014
+ confirm = (e) => {
1015
+ const a2 = e.active ?? "Yes", o = e.inactive ?? "No";
1007
1016
  return new r({
1008
1017
  active: a2,
1009
- inactive: s,
1010
- signal: i2.signal,
1011
- input: i2.input,
1012
- output: i2.output,
1013
- initialValue: i2.initialValue ?? true,
1018
+ inactive: o,
1019
+ signal: e.signal,
1020
+ input: e.input,
1021
+ output: e.output,
1022
+ initialValue: e.initialValue ?? true,
1014
1023
  render() {
1015
- const e = i2.withGuide ?? settings.withGuide, u3 = `${symbol(this.state)} `, l2 = e ? `${styleText2("gray", S_BAR)} ` : "", f = wrapTextWithPrefix(
1016
- i2.output,
1017
- i2.message,
1024
+ const i2 = e.withGuide ?? settings.withGuide, u3 = `${symbol(this.state)} `, l2 = i2 ? `${styleText2("gray", S_BAR)} ` : "", f = wrapTextWithPrefix(
1025
+ e.output,
1026
+ e.message,
1018
1027
  l2,
1019
1028
  u3
1020
- ), o = `${e ? `${styleText2("gray", S_BAR)}
1029
+ ), s = `${i2 ? `${styleText2("gray", S_BAR)}
1021
1030
  ` : ""}${f}
1022
- `, c2 = this.value ? a2 : s;
1031
+ `, c2 = this.value ? a2 : o;
1023
1032
  switch (this.state) {
1024
1033
  case "submit": {
1025
- const r2 = e ? `${styleText2("gray", S_BAR)} ` : "";
1026
- return `${o}${r2}${styleText2("dim", c2)}`;
1034
+ const r2 = i2 ? `${styleText2("gray", S_BAR)} ` : "";
1035
+ return `${s}${r2}${styleText2("dim", c2)}`;
1027
1036
  }
1028
1037
  case "cancel": {
1029
- const r2 = e ? `${styleText2("gray", S_BAR)} ` : "";
1030
- return `${o}${r2}${styleText2(["strikethrough", "dim"], c2)}${e ? `
1038
+ const r2 = i2 ? `${styleText2("gray", S_BAR)} ` : "";
1039
+ return `${s}${r2}${styleText2(["strikethrough", "dim"], c2)}${i2 ? `
1031
1040
  ${styleText2("gray", S_BAR)}` : ""}`;
1032
1041
  }
1033
1042
  default: {
1034
- const r2 = e ? `${styleText2("cyan", S_BAR)} ` : "", g = e ? styleText2("cyan", S_BAR_END) : "";
1035
- return `${o}${r2}${this.value ? `${styleText2("green", S_RADIO_ACTIVE)} ${a2}` : `${styleText2("dim", S_RADIO_INACTIVE)} ${styleText2("dim", a2)}`}${i2.vertical ? e ? `
1043
+ const r2 = i2 ? `${styleText2("cyan", S_BAR)} ` : "", g = i2 ? styleText2("cyan", S_BAR_END) : "";
1044
+ return `${s}${r2}${this.value ? `${styleText2("green", S_RADIO_ACTIVE)} ${a2}` : `${styleText2("dim", S_RADIO_INACTIVE)} ${styleText2("dim", a2)}`}${e.vertical ? i2 ? `
1036
1045
  ${styleText2("cyan", S_BAR)} ` : `
1037
- ` : ` ${styleText2("dim", "/")} `}${this.value ? `${styleText2("dim", S_RADIO_INACTIVE)} ${styleText2("dim", s)}` : `${styleText2("green", S_RADIO_ACTIVE)} ${s}`}
1046
+ ` : ` ${styleText2("dim", "/")} `}${this.value ? `${styleText2("dim", S_RADIO_INACTIVE)} ${styleText2("dim", o)}` : `${styleText2("green", S_RADIO_ACTIVE)} ${o}`}
1038
1047
  ${g}
1039
1048
  `;
1040
1049
  }
@@ -1286,19 +1295,19 @@ ${styleText2("gray", S_BAR)}` : ""}`;
1286
1295
  }
1287
1296
  default: {
1288
1297
  const r2 = n3 ? `${styleText2("cyan", S_BAR)} ` : "", a2 = u3.split(`
1289
- `).length, p = d ? formatInstructionFooter(SELECT_INSTRUCTIONS, n3) : n3 ? [styleText2("cyan", S_BAR_END)] : [], b = p.join(`
1290
- `), f = p.length + 1;
1298
+ `).length, p = d ? formatInstructionFooter(SELECT_INSTRUCTIONS, n3) : n3 ? [styleText2("cyan", S_BAR_END)] : [], f = p.join(`
1299
+ `), b = p.length + 1;
1291
1300
  return `${u3}${r2}${limitOptions({
1292
1301
  output: t2.output,
1293
1302
  cursor: this.cursor,
1294
1303
  options: this.options,
1295
1304
  maxItems: t2.maxItems,
1296
1305
  columnPadding: r2.length,
1297
- rowPadding: a2 + f,
1306
+ rowPadding: a2 + b,
1298
1307
  style: (g, x) => o(g, g.disabled ? "disabled" : x ? "active" : "inactive")
1299
1308
  }).join(`
1300
1309
  ${r2}`)}
1301
- ${b}
1310
+ ${f}
1302
1311
  `;
1303
1312
  }
1304
1313
  }
@@ -5097,15 +5106,15 @@ var require_pattern = __commonJS({
5097
5106
  exports.removeDuplicateSlashes = removeDuplicateSlashes;
5098
5107
  function partitionAbsoluteAndRelative(patterns) {
5099
5108
  const absolute = [];
5100
- const relative3 = [];
5109
+ const relative4 = [];
5101
5110
  for (const pattern of patterns) {
5102
5111
  if (isAbsolute(pattern)) {
5103
5112
  absolute.push(pattern);
5104
5113
  } else {
5105
- relative3.push(pattern);
5114
+ relative4.push(pattern);
5106
5115
  }
5107
5116
  }
5108
- return [absolute, relative3];
5117
+ return [absolute, relative4];
5109
5118
  }
5110
5119
  exports.partitionAbsoluteAndRelative = partitionAbsoluteAndRelative;
5111
5120
  function isAbsolute(pattern) {
@@ -5981,9 +5990,9 @@ var require_reusify = __commonJS({
5981
5990
  }
5982
5991
  });
5983
5992
 
5984
- // node_modules/.bun/fastq@1.20.1/node_modules/fastq/queue.js
5993
+ // node_modules/.bun/fastq@1.20.3/node_modules/fastq/queue.js
5985
5994
  var require_queue = __commonJS({
5986
- "node_modules/.bun/fastq@1.20.1/node_modules/fastq/queue.js"(exports, module) {
5995
+ "node_modules/.bun/fastq@1.20.3/node_modules/fastq/queue.js"(exports, module) {
5987
5996
  "use strict";
5988
5997
  init_utils2();
5989
5998
  var reusify = require_reusify();
@@ -6163,11 +6172,12 @@ var require_queue = __commonJS({
6163
6172
  current.value = null;
6164
6173
  current.callback = noop;
6165
6174
  current.errorHandler = null;
6175
+ current.next = null;
6166
6176
  if (errorHandler2) {
6167
6177
  errorHandler2(new Error("abort"), val);
6168
6178
  }
6169
6179
  callback.call(context2, new Error("abort"));
6170
- current.release(current);
6180
+ cache.release(current);
6171
6181
  current = next;
6172
6182
  }
6173
6183
  self.drain = noop;
@@ -7633,7 +7643,7 @@ import {
7633
7643
  sep,
7634
7644
  extname
7635
7645
  } from "node:path";
7636
- import "node:url";
7646
+ import { fileURLToPath } from "node:url";
7637
7647
  function safeExecuteAsync(fn, message) {
7638
7648
  return fn().catch((error2) => {
7639
7649
  throw new Error(
@@ -7690,6 +7700,7 @@ var init_PathResolver = __esm({
7690
7700
  options;
7691
7701
  _repoRoot;
7692
7702
  _appRoot = null;
7703
+ _writtenPaths = null;
7693
7704
  /**
7694
7705
  * Get or create singleton instance
7695
7706
  * @param options - Configuration options
@@ -8008,16 +8019,17 @@ var init_PathResolver = __esm({
8008
8019
  }
8009
8020
  const detectedFormat = this._detectFormat(filePath, format);
8010
8021
  let writeContent;
8011
- if (Buffer.isBuffer(content)) {
8022
+ if (Buffer2.isBuffer(content)) {
8012
8023
  writeContent = content;
8013
8024
  } else if (detectedFormat === "json" && typeof content === "object") {
8014
- writeContent = JSON.stringify(content, null, 2);
8025
+ writeContent = `${JSON.stringify(content, null, 2)}
8026
+ `;
8015
8027
  } else {
8016
8028
  writeContent = String(content);
8017
8029
  }
8018
8030
  try {
8019
8031
  return await safeExecuteAsync(async () => {
8020
- if (Buffer.isBuffer(writeContent)) {
8032
+ if (Buffer2.isBuffer(writeContent)) {
8021
8033
  await fs.promises.writeFile(normalizedPath, writeContent);
8022
8034
  } else {
8023
8035
  await fs.promises.writeFile(normalizedPath, writeContent, "utf8");
@@ -8069,19 +8081,21 @@ var init_PathResolver = __esm({
8069
8081
  }
8070
8082
  const detectedFormat = this._detectFormat(filePath, format);
8071
8083
  let writeContent;
8072
- if (Buffer.isBuffer(content)) {
8084
+ if (Buffer2.isBuffer(content)) {
8073
8085
  writeContent = content;
8074
8086
  } else if (detectedFormat === "json" && typeof content === "object") {
8075
- writeContent = JSON.stringify(content, null, 2);
8087
+ writeContent = `${JSON.stringify(content, null, 2)}
8088
+ `;
8076
8089
  } else {
8077
8090
  writeContent = String(content);
8078
8091
  }
8079
8092
  try {
8080
- if (Buffer.isBuffer(writeContent)) {
8093
+ if (Buffer2.isBuffer(writeContent)) {
8081
8094
  fs.writeFileSync(normalizedPath, writeContent);
8082
8095
  } else {
8083
8096
  fs.writeFileSync(normalizedPath, writeContent, "utf8");
8084
8097
  }
8098
+ this._writtenPaths?.add(normalizedPath);
8085
8099
  if (verbose) {
8086
8100
  log3.info(
8087
8101
  `${fileExists ? "Updated" : "Created"} file: ${normalizedPath}`
@@ -8166,6 +8180,7 @@ var init_PathResolver = __esm({
8166
8180
  }
8167
8181
  try {
8168
8182
  fs.copyFileSync(srcPath, normalizedDestPath);
8183
+ this._writtenPaths?.add(normalizedDestPath);
8169
8184
  if (verbose) {
8170
8185
  log3.info(
8171
8186
  `${fileExists ? "Updated" : "Created"} file: ${normalizedDestPath}`
@@ -8233,6 +8248,24 @@ var init_PathResolver = __esm({
8233
8248
  return null;
8234
8249
  }
8235
8250
  }
8251
+ /**
8252
+ * Resolve the real path of a file, following symlinks
8253
+ * @param filePath - Path to resolve
8254
+ * @returns Resolved real path
8255
+ */
8256
+ realpathSync(filePath) {
8257
+ return fs.realpathSync(filePath);
8258
+ }
8259
+ /**
8260
+ * Watch a directory for changes
8261
+ * @param dirPath - Directory to watch
8262
+ * @param options - fs.watch options
8263
+ * @param callback - Callback for change events
8264
+ * @returns FSWatcher instance
8265
+ */
8266
+ watch(dirPath, options, callback) {
8267
+ return fs.watch(dirPath, options, callback);
8268
+ }
8236
8269
  /**
8237
8270
  * Get file stats synchronously (follows symlinks)
8238
8271
  * Returns null if file doesn't exist (graceful degradation)
@@ -8312,6 +8345,28 @@ var init_PathResolver = __esm({
8312
8345
  * Get app root (where vite.config.ts is, Vite's config.root)
8313
8346
  * Falls back to repoRoot if not set
8314
8347
  */
8348
+ /**
8349
+ * Start recording every path written by writeSync/copySync.
8350
+ * Lets a generator know exactly which files the current run produced,
8351
+ * without comparing file timestamps to a clock.
8352
+ */
8353
+ startWriteRecording() {
8354
+ this._writtenPaths = /* @__PURE__ */ new Set();
8355
+ }
8356
+ /**
8357
+ * Stop recording and return the normalized paths written since
8358
+ * startWriteRecording().
8359
+ */
8360
+ stopWriteRecording() {
8361
+ if (!this._writtenPaths) {
8362
+ throw new Error(
8363
+ "stopWriteRecording() called without startWriteRecording()"
8364
+ );
8365
+ }
8366
+ const written = this._writtenPaths;
8367
+ this._writtenPaths = null;
8368
+ return written;
8369
+ }
8315
8370
  getAppRoot() {
8316
8371
  if (!this._appRoot) {
8317
8372
  return this._repoRoot;
@@ -8569,6 +8624,15 @@ var init_PathResolver = __esm({
8569
8624
  const cjsPath = this.getEmptyCjsModulePath();
8570
8625
  return cjsPath.replace(/\.cjs$/, ".js");
8571
8626
  }
8627
+ /**
8628
+ * Get absolute path to empty flag component module.
8629
+ * Returns `export default () => null;` — used by flag filtering plugins
8630
+ * to replace unused flag files at build time.
8631
+ */
8632
+ getEmptyFlagModulePath() {
8633
+ const __dirname2 = dirname2(fileURLToPath(import.meta.url));
8634
+ return this.normalizePath(resolve(__dirname2, "emptyFlag.js"));
8635
+ }
8572
8636
  /**
8573
8637
  * Get absolute path to empty CJS module for esbuild pre-bundling.
8574
8638
  * CJS because esbuild statically analyzes ESM exports — CJS has dynamic
@@ -8645,7 +8709,7 @@ import { fileURLToPath as fileURLToPath2 } from "node:url";
8645
8709
  function readdirSync3(dirPath, options) {
8646
8710
  return pathResolverInstance.readdirSync(dirPath, options);
8647
8711
  }
8648
- var pathResolverInstance, getRepoRoot, resolvePackage, normalizePath, pathExists, read, readSync, writeSync, removeSync, statSync2, ensureDirSync, readdir, getRelativePathBetween, getDirname, joinPath;
8712
+ var pathResolverInstance, getRepoRoot, resolvePackage, resolveFrameworkPackage, normalizePath, pathExists, read, readSync, writeSync, removeSync, statSync2, lstatSync3, ensureDirSync, readdir, getRelativePathBetween, getDirname, joinPath;
8649
8713
  var init_pathResolver = __esm({
8650
8714
  "packages/tooling/src/utils/pathResolver.ts"() {
8651
8715
  "use strict";
@@ -8654,6 +8718,7 @@ var init_pathResolver = __esm({
8654
8718
  pathResolverInstance = PathResolver.getInstance({ debug: false });
8655
8719
  getRepoRoot = () => pathResolverInstance.getRepoRoot();
8656
8720
  resolvePackage = (spec, from) => pathResolverInstance.resolvePackage(spec, from || null);
8721
+ resolveFrameworkPackage = (name, from) => pathResolverInstance.resolveFrameworkPackage(name, from || null);
8657
8722
  normalizePath = (...pathSegments) => {
8658
8723
  return pathResolverInstance.normalizePath(join3(...pathSegments));
8659
8724
  };
@@ -8663,6 +8728,7 @@ var init_pathResolver = __esm({
8663
8728
  writeSync = (filePath, content, options) => pathResolverInstance.writeSync(filePath, content, options);
8664
8729
  removeSync = (path) => pathResolverInstance.removeSync(path);
8665
8730
  statSync2 = (filePath) => pathResolverInstance.statSync(filePath);
8731
+ lstatSync3 = (filePath) => pathResolverInstance.lstatSync(filePath);
8666
8732
  ensureDirSync = (dirPath) => pathResolverInstance.ensureDirSync(dirPath);
8667
8733
  readdir = async (dirPath, options) => pathResolverInstance.readdir(dirPath, options);
8668
8734
  getRelativePathBetween = (from, to) => {
@@ -8771,7 +8837,7 @@ var init_typed_file_operations = __esm({
8771
8837
  });
8772
8838
 
8773
8839
  // packages/tooling/src/bundler/utils.ts
8774
- import { Buffer } from "node:buffer";
8840
+ import { Buffer as Buffer2 } from "node:buffer";
8775
8841
  import { copyFileSync as copyFileSync2, readFileSync as readFileSync2, writeFileSync as writeFileSync2, mkdirSync as mkdirSync2 } from "node:fs";
8776
8842
  import { createRequire as createRequire3 } from "node:module";
8777
8843
  import { dirname as dirname4, resolve as resolve3 } from "node:path";
@@ -8788,7 +8854,7 @@ var init_utils2 = __esm({
8788
8854
  globalThis.require = require2;
8789
8855
  globalThis.__filename = __filename;
8790
8856
  globalThis.__dirname = __dirname;
8791
- globalThis.Buffer = Buffer;
8857
+ globalThis.Buffer = Buffer2;
8792
8858
  globalThis.process = process;
8793
8859
  if (typeof global === "undefined") {
8794
8860
  globalThis.global = globalThis;
@@ -9035,9 +9101,9 @@ var init_error_handling = __esm({
9035
9101
  }
9036
9102
  });
9037
9103
 
9038
- // node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/nodes/identity.js
9104
+ // node_modules/.bun/yaml@2.9.1/node_modules/yaml/dist/nodes/identity.js
9039
9105
  var require_identity = __commonJS({
9040
- "node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/nodes/identity.js"(exports) {
9106
+ "node_modules/.bun/yaml@2.9.1/node_modules/yaml/dist/nodes/identity.js"(exports) {
9041
9107
  "use strict";
9042
9108
  init_utils2();
9043
9109
  var ALIAS = /* @__PURE__ */ Symbol.for("yaml.alias");
@@ -9093,9 +9159,9 @@ var require_identity = __commonJS({
9093
9159
  }
9094
9160
  });
9095
9161
 
9096
- // node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/visit.js
9162
+ // node_modules/.bun/yaml@2.9.1/node_modules/yaml/dist/visit.js
9097
9163
  var require_visit = __commonJS({
9098
- "node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/visit.js"(exports) {
9164
+ "node_modules/.bun/yaml@2.9.1/node_modules/yaml/dist/visit.js"(exports) {
9099
9165
  "use strict";
9100
9166
  init_utils2();
9101
9167
  var identity = require_identity();
@@ -9252,9 +9318,9 @@ var require_visit = __commonJS({
9252
9318
  }
9253
9319
  });
9254
9320
 
9255
- // node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/doc/directives.js
9321
+ // node_modules/.bun/yaml@2.9.1/node_modules/yaml/dist/doc/directives.js
9256
9322
  var require_directives = __commonJS({
9257
- "node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/doc/directives.js"(exports) {
9323
+ "node_modules/.bun/yaml@2.9.1/node_modules/yaml/dist/doc/directives.js"(exports) {
9258
9324
  "use strict";
9259
9325
  init_utils2();
9260
9326
  var identity = require_identity();
@@ -9424,9 +9490,9 @@ var require_directives = __commonJS({
9424
9490
  }
9425
9491
  });
9426
9492
 
9427
- // node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/doc/anchors.js
9493
+ // node_modules/.bun/yaml@2.9.1/node_modules/yaml/dist/doc/anchors.js
9428
9494
  var require_anchors = __commonJS({
9429
- "node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/doc/anchors.js"(exports) {
9495
+ "node_modules/.bun/yaml@2.9.1/node_modules/yaml/dist/doc/anchors.js"(exports) {
9430
9496
  "use strict";
9431
9497
  init_utils2();
9432
9498
  var identity = require_identity();
@@ -9495,9 +9561,9 @@ var require_anchors = __commonJS({
9495
9561
  }
9496
9562
  });
9497
9563
 
9498
- // node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/doc/applyReviver.js
9564
+ // node_modules/.bun/yaml@2.9.1/node_modules/yaml/dist/doc/applyReviver.js
9499
9565
  var require_applyReviver = __commonJS({
9500
- "node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/doc/applyReviver.js"(exports) {
9566
+ "node_modules/.bun/yaml@2.9.1/node_modules/yaml/dist/doc/applyReviver.js"(exports) {
9501
9567
  "use strict";
9502
9568
  init_utils2();
9503
9569
  function applyReviver(reviver, obj, key, val) {
@@ -9546,9 +9612,9 @@ var require_applyReviver = __commonJS({
9546
9612
  }
9547
9613
  });
9548
9614
 
9549
- // node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/nodes/toJS.js
9615
+ // node_modules/.bun/yaml@2.9.1/node_modules/yaml/dist/nodes/toJS.js
9550
9616
  var require_toJS = __commonJS({
9551
- "node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/nodes/toJS.js"(exports) {
9617
+ "node_modules/.bun/yaml@2.9.1/node_modules/yaml/dist/nodes/toJS.js"(exports) {
9552
9618
  "use strict";
9553
9619
  init_utils2();
9554
9620
  var identity = require_identity();
@@ -9577,9 +9643,9 @@ var require_toJS = __commonJS({
9577
9643
  }
9578
9644
  });
9579
9645
 
9580
- // node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/nodes/Node.js
9646
+ // node_modules/.bun/yaml@2.9.1/node_modules/yaml/dist/nodes/Node.js
9581
9647
  var require_Node = __commonJS({
9582
- "node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/nodes/Node.js"(exports) {
9648
+ "node_modules/.bun/yaml@2.9.1/node_modules/yaml/dist/nodes/Node.js"(exports) {
9583
9649
  "use strict";
9584
9650
  init_utils2();
9585
9651
  var applyReviver = require_applyReviver();
@@ -9619,9 +9685,9 @@ var require_Node = __commonJS({
9619
9685
  }
9620
9686
  });
9621
9687
 
9622
- // node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/nodes/Alias.js
9688
+ // node_modules/.bun/yaml@2.9.1/node_modules/yaml/dist/nodes/Alias.js
9623
9689
  var require_Alias = __commonJS({
9624
- "node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/nodes/Alias.js"(exports) {
9690
+ "node_modules/.bun/yaml@2.9.1/node_modules/yaml/dist/nodes/Alias.js"(exports) {
9625
9691
  "use strict";
9626
9692
  init_utils2();
9627
9693
  var anchors = require_anchors();
@@ -9667,36 +9733,38 @@ var require_Alias = __commonJS({
9667
9733
  if (node.anchor === this.source)
9668
9734
  found = node;
9669
9735
  }
9736
+ if (found && ctx) {
9737
+ const { anchors: anchors2, doc: doc2, maxAliasCount } = ctx;
9738
+ let data = anchors2.get(found);
9739
+ if (!data) {
9740
+ toJS.toJS(found, null, ctx);
9741
+ data = anchors2.get(found);
9742
+ }
9743
+ if (data?.res === void 0) {
9744
+ const msg = "This should not happen: Alias anchor was not resolved?";
9745
+ throw new ReferenceError(msg);
9746
+ }
9747
+ if (maxAliasCount >= 0) {
9748
+ data.count += 1;
9749
+ if (data.aliasCount === 0)
9750
+ data.aliasCount = getAliasCount(doc2, found, anchors2);
9751
+ if (data.count * data.aliasCount > maxAliasCount) {
9752
+ const msg = "Excessive alias count indicates a resource exhaustion attack";
9753
+ throw new ReferenceError(msg);
9754
+ }
9755
+ }
9756
+ }
9670
9757
  return found;
9671
9758
  }
9672
9759
  toJSON(_arg, ctx) {
9673
9760
  if (!ctx)
9674
9761
  return { source: this.source };
9675
- const { anchors: anchors2, doc, maxAliasCount } = ctx;
9676
- const source = this.resolve(doc, ctx);
9762
+ const source = this.resolve(ctx.doc, ctx);
9677
9763
  if (!source) {
9678
9764
  const msg = `Unresolved alias (the anchor must be set before the alias): ${this.source}`;
9679
9765
  throw new ReferenceError(msg);
9680
9766
  }
9681
- let data = anchors2.get(source);
9682
- if (!data) {
9683
- toJS.toJS(source, null, ctx);
9684
- data = anchors2.get(source);
9685
- }
9686
- if (data?.res === void 0) {
9687
- const msg = "This should not happen: Alias anchor was not resolved?";
9688
- throw new ReferenceError(msg);
9689
- }
9690
- if (maxAliasCount >= 0) {
9691
- data.count += 1;
9692
- if (data.aliasCount === 0)
9693
- data.aliasCount = getAliasCount(doc, source, anchors2);
9694
- if (data.count * data.aliasCount > maxAliasCount) {
9695
- const msg = "Excessive alias count indicates a resource exhaustion attack";
9696
- throw new ReferenceError(msg);
9697
- }
9698
- }
9699
- return data.res;
9767
+ return ctx.anchors.get(source).res;
9700
9768
  }
9701
9769
  toString(ctx, _onComment, _onChompKeep) {
9702
9770
  const src = `*${this.source}`;
@@ -9736,9 +9804,9 @@ var require_Alias = __commonJS({
9736
9804
  }
9737
9805
  });
9738
9806
 
9739
- // node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/nodes/Scalar.js
9807
+ // node_modules/.bun/yaml@2.9.1/node_modules/yaml/dist/nodes/Scalar.js
9740
9808
  var require_Scalar = __commonJS({
9741
- "node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/nodes/Scalar.js"(exports) {
9809
+ "node_modules/.bun/yaml@2.9.1/node_modules/yaml/dist/nodes/Scalar.js"(exports) {
9742
9810
  "use strict";
9743
9811
  init_utils2();
9744
9812
  var identity = require_identity();
@@ -9767,9 +9835,9 @@ var require_Scalar = __commonJS({
9767
9835
  }
9768
9836
  });
9769
9837
 
9770
- // node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/doc/createNode.js
9838
+ // node_modules/.bun/yaml@2.9.1/node_modules/yaml/dist/doc/createNode.js
9771
9839
  var require_createNode = __commonJS({
9772
- "node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/doc/createNode.js"(exports) {
9840
+ "node_modules/.bun/yaml@2.9.1/node_modules/yaml/dist/doc/createNode.js"(exports) {
9773
9841
  "use strict";
9774
9842
  init_utils2();
9775
9843
  var Alias = require_Alias();
@@ -9843,9 +9911,9 @@ var require_createNode = __commonJS({
9843
9911
  }
9844
9912
  });
9845
9913
 
9846
- // node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/nodes/Collection.js
9914
+ // node_modules/.bun/yaml@2.9.1/node_modules/yaml/dist/nodes/Collection.js
9847
9915
  var require_Collection = __commonJS({
9848
- "node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/nodes/Collection.js"(exports) {
9916
+ "node_modules/.bun/yaml@2.9.1/node_modules/yaml/dist/nodes/Collection.js"(exports) {
9849
9917
  "use strict";
9850
9918
  init_utils2();
9851
9919
  var createNode = require_createNode();
@@ -9987,9 +10055,9 @@ var require_Collection = __commonJS({
9987
10055
  }
9988
10056
  });
9989
10057
 
9990
- // node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/stringify/stringifyComment.js
10058
+ // node_modules/.bun/yaml@2.9.1/node_modules/yaml/dist/stringify/stringifyComment.js
9991
10059
  var require_stringifyComment = __commonJS({
9992
- "node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/stringify/stringifyComment.js"(exports) {
10060
+ "node_modules/.bun/yaml@2.9.1/node_modules/yaml/dist/stringify/stringifyComment.js"(exports) {
9993
10061
  "use strict";
9994
10062
  init_utils2();
9995
10063
  var stringifyComment = (str) => str.replace(/^(?!$)(?: $)?/gm, "#");
@@ -10005,9 +10073,9 @@ var require_stringifyComment = __commonJS({
10005
10073
  }
10006
10074
  });
10007
10075
 
10008
- // node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/stringify/foldFlowLines.js
10076
+ // node_modules/.bun/yaml@2.9.1/node_modules/yaml/dist/stringify/foldFlowLines.js
10009
10077
  var require_foldFlowLines = __commonJS({
10010
- "node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/stringify/foldFlowLines.js"(exports) {
10078
+ "node_modules/.bun/yaml@2.9.1/node_modules/yaml/dist/stringify/foldFlowLines.js"(exports) {
10011
10079
  "use strict";
10012
10080
  init_utils2();
10013
10081
  var FOLD_FLOW = "flow";
@@ -10142,9 +10210,9 @@ ${indent}${text2.slice(fold + 1, end2)}`;
10142
10210
  }
10143
10211
  });
10144
10212
 
10145
- // node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/stringify/stringifyString.js
10213
+ // node_modules/.bun/yaml@2.9.1/node_modules/yaml/dist/stringify/stringifyString.js
10146
10214
  var require_stringifyString = __commonJS({
10147
- "node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/stringify/stringifyString.js"(exports) {
10215
+ "node_modules/.bun/yaml@2.9.1/node_modules/yaml/dist/stringify/stringifyString.js"(exports) {
10148
10216
  "use strict";
10149
10217
  init_utils2();
10150
10218
  var Scalar = require_Scalar();
@@ -10426,9 +10494,9 @@ ${indent}`);
10426
10494
  }
10427
10495
  });
10428
10496
 
10429
- // node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/stringify/stringify.js
10497
+ // node_modules/.bun/yaml@2.9.1/node_modules/yaml/dist/stringify/stringify.js
10430
10498
  var require_stringify2 = __commonJS({
10431
- "node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/stringify/stringify.js"(exports) {
10499
+ "node_modules/.bun/yaml@2.9.1/node_modules/yaml/dist/stringify/stringify.js"(exports) {
10432
10500
  "use strict";
10433
10501
  init_utils2();
10434
10502
  var anchors = require_anchors();
@@ -10551,9 +10619,9 @@ ${ctx.indent}${str}`;
10551
10619
  }
10552
10620
  });
10553
10621
 
10554
- // node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/stringify/stringifyPair.js
10622
+ // node_modules/.bun/yaml@2.9.1/node_modules/yaml/dist/stringify/stringifyPair.js
10555
10623
  var require_stringifyPair = __commonJS({
10556
- "node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/stringify/stringifyPair.js"(exports) {
10624
+ "node_modules/.bun/yaml@2.9.1/node_modules/yaml/dist/stringify/stringifyPair.js"(exports) {
10557
10625
  "use strict";
10558
10626
  init_utils2();
10559
10627
  var identity = require_identity();
@@ -10685,9 +10753,9 @@ ${ctx.indent}`;
10685
10753
  }
10686
10754
  });
10687
10755
 
10688
- // node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/log.js
10756
+ // node_modules/.bun/yaml@2.9.1/node_modules/yaml/dist/log.js
10689
10757
  var require_log = __commonJS({
10690
- "node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/log.js"(exports) {
10758
+ "node_modules/.bun/yaml@2.9.1/node_modules/yaml/dist/log.js"(exports) {
10691
10759
  "use strict";
10692
10760
  init_utils2();
10693
10761
  var node_process = __require("process");
@@ -10708,9 +10776,9 @@ var require_log = __commonJS({
10708
10776
  }
10709
10777
  });
10710
10778
 
10711
- // node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/schema/yaml-1.1/merge.js
10779
+ // node_modules/.bun/yaml@2.9.1/node_modules/yaml/dist/schema/yaml-1.1/merge.js
10712
10780
  var require_merge = __commonJS({
10713
- "node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/schema/yaml-1.1/merge.js"(exports) {
10781
+ "node_modules/.bun/yaml@2.9.1/node_modules/yaml/dist/schema/yaml-1.1/merge.js"(exports) {
10714
10782
  "use strict";
10715
10783
  init_utils2();
10716
10784
  var identity = require_identity();
@@ -10769,9 +10837,9 @@ var require_merge = __commonJS({
10769
10837
  }
10770
10838
  });
10771
10839
 
10772
- // node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/nodes/addPairToJSMap.js
10840
+ // node_modules/.bun/yaml@2.9.1/node_modules/yaml/dist/nodes/addPairToJSMap.js
10773
10841
  var require_addPairToJSMap = __commonJS({
10774
- "node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/nodes/addPairToJSMap.js"(exports) {
10842
+ "node_modules/.bun/yaml@2.9.1/node_modules/yaml/dist/nodes/addPairToJSMap.js"(exports) {
10775
10843
  "use strict";
10776
10844
  init_utils2();
10777
10845
  var log4 = require_log();
@@ -10834,9 +10902,9 @@ var require_addPairToJSMap = __commonJS({
10834
10902
  }
10835
10903
  });
10836
10904
 
10837
- // node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/nodes/Pair.js
10905
+ // node_modules/.bun/yaml@2.9.1/node_modules/yaml/dist/nodes/Pair.js
10838
10906
  var require_Pair = __commonJS({
10839
- "node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/nodes/Pair.js"(exports) {
10907
+ "node_modules/.bun/yaml@2.9.1/node_modules/yaml/dist/nodes/Pair.js"(exports) {
10840
10908
  "use strict";
10841
10909
  init_utils2();
10842
10910
  var createNode = require_createNode();
@@ -10875,9 +10943,9 @@ var require_Pair = __commonJS({
10875
10943
  }
10876
10944
  });
10877
10945
 
10878
- // node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/stringify/stringifyCollection.js
10946
+ // node_modules/.bun/yaml@2.9.1/node_modules/yaml/dist/stringify/stringifyCollection.js
10879
10947
  var require_stringifyCollection = __commonJS({
10880
- "node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/stringify/stringifyCollection.js"(exports) {
10948
+ "node_modules/.bun/yaml@2.9.1/node_modules/yaml/dist/stringify/stringifyCollection.js"(exports) {
10881
10949
  "use strict";
10882
10950
  init_utils2();
10883
10951
  var identity = require_identity();
@@ -11027,9 +11095,9 @@ ${indent}${end}`;
11027
11095
  }
11028
11096
  });
11029
11097
 
11030
- // node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/nodes/YAMLMap.js
11098
+ // node_modules/.bun/yaml@2.9.1/node_modules/yaml/dist/nodes/YAMLMap.js
11031
11099
  var require_YAMLMap = __commonJS({
11032
- "node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/nodes/YAMLMap.js"(exports) {
11100
+ "node_modules/.bun/yaml@2.9.1/node_modules/yaml/dist/nodes/YAMLMap.js"(exports) {
11033
11101
  "use strict";
11034
11102
  init_utils2();
11035
11103
  var stringifyCollection = require_stringifyCollection();
@@ -11172,9 +11240,9 @@ var require_YAMLMap = __commonJS({
11172
11240
  }
11173
11241
  });
11174
11242
 
11175
- // node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/schema/common/map.js
11243
+ // node_modules/.bun/yaml@2.9.1/node_modules/yaml/dist/schema/common/map.js
11176
11244
  var require_map = __commonJS({
11177
- "node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/schema/common/map.js"(exports) {
11245
+ "node_modules/.bun/yaml@2.9.1/node_modules/yaml/dist/schema/common/map.js"(exports) {
11178
11246
  "use strict";
11179
11247
  init_utils2();
11180
11248
  var identity = require_identity();
@@ -11195,9 +11263,9 @@ var require_map = __commonJS({
11195
11263
  }
11196
11264
  });
11197
11265
 
11198
- // node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/nodes/YAMLSeq.js
11266
+ // node_modules/.bun/yaml@2.9.1/node_modules/yaml/dist/nodes/YAMLSeq.js
11199
11267
  var require_YAMLSeq = __commonJS({
11200
- "node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/nodes/YAMLSeq.js"(exports) {
11268
+ "node_modules/.bun/yaml@2.9.1/node_modules/yaml/dist/nodes/YAMLSeq.js"(exports) {
11201
11269
  "use strict";
11202
11270
  init_utils2();
11203
11271
  var createNode = require_createNode();
@@ -11312,9 +11380,9 @@ var require_YAMLSeq = __commonJS({
11312
11380
  }
11313
11381
  });
11314
11382
 
11315
- // node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/schema/common/seq.js
11383
+ // node_modules/.bun/yaml@2.9.1/node_modules/yaml/dist/schema/common/seq.js
11316
11384
  var require_seq = __commonJS({
11317
- "node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/schema/common/seq.js"(exports) {
11385
+ "node_modules/.bun/yaml@2.9.1/node_modules/yaml/dist/schema/common/seq.js"(exports) {
11318
11386
  "use strict";
11319
11387
  init_utils2();
11320
11388
  var identity = require_identity();
@@ -11335,9 +11403,9 @@ var require_seq = __commonJS({
11335
11403
  }
11336
11404
  });
11337
11405
 
11338
- // node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/schema/common/string.js
11406
+ // node_modules/.bun/yaml@2.9.1/node_modules/yaml/dist/schema/common/string.js
11339
11407
  var require_string2 = __commonJS({
11340
- "node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/schema/common/string.js"(exports) {
11408
+ "node_modules/.bun/yaml@2.9.1/node_modules/yaml/dist/schema/common/string.js"(exports) {
11341
11409
  "use strict";
11342
11410
  init_utils2();
11343
11411
  var stringifyString = require_stringifyString();
@@ -11355,9 +11423,9 @@ var require_string2 = __commonJS({
11355
11423
  }
11356
11424
  });
11357
11425
 
11358
- // node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/schema/common/null.js
11426
+ // node_modules/.bun/yaml@2.9.1/node_modules/yaml/dist/schema/common/null.js
11359
11427
  var require_null = __commonJS({
11360
- "node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/schema/common/null.js"(exports) {
11428
+ "node_modules/.bun/yaml@2.9.1/node_modules/yaml/dist/schema/common/null.js"(exports) {
11361
11429
  "use strict";
11362
11430
  init_utils2();
11363
11431
  var Scalar = require_Scalar();
@@ -11374,9 +11442,9 @@ var require_null = __commonJS({
11374
11442
  }
11375
11443
  });
11376
11444
 
11377
- // node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/schema/core/bool.js
11445
+ // node_modules/.bun/yaml@2.9.1/node_modules/yaml/dist/schema/core/bool.js
11378
11446
  var require_bool = __commonJS({
11379
- "node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/schema/core/bool.js"(exports) {
11447
+ "node_modules/.bun/yaml@2.9.1/node_modules/yaml/dist/schema/core/bool.js"(exports) {
11380
11448
  "use strict";
11381
11449
  init_utils2();
11382
11450
  var Scalar = require_Scalar();
@@ -11399,9 +11467,9 @@ var require_bool = __commonJS({
11399
11467
  }
11400
11468
  });
11401
11469
 
11402
- // node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/stringify/stringifyNumber.js
11470
+ // node_modules/.bun/yaml@2.9.1/node_modules/yaml/dist/stringify/stringifyNumber.js
11403
11471
  var require_stringifyNumber = __commonJS({
11404
- "node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/stringify/stringifyNumber.js"(exports) {
11472
+ "node_modules/.bun/yaml@2.9.1/node_modules/yaml/dist/stringify/stringifyNumber.js"(exports) {
11405
11473
  "use strict";
11406
11474
  init_utils2();
11407
11475
  function stringifyNumber({ format, minFractionDigits, tag, value }) {
@@ -11427,9 +11495,9 @@ var require_stringifyNumber = __commonJS({
11427
11495
  }
11428
11496
  });
11429
11497
 
11430
- // node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/schema/core/float.js
11498
+ // node_modules/.bun/yaml@2.9.1/node_modules/yaml/dist/schema/core/float.js
11431
11499
  var require_float = __commonJS({
11432
- "node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/schema/core/float.js"(exports) {
11500
+ "node_modules/.bun/yaml@2.9.1/node_modules/yaml/dist/schema/core/float.js"(exports) {
11433
11501
  "use strict";
11434
11502
  init_utils2();
11435
11503
  var Scalar = require_Scalar();
@@ -11474,9 +11542,9 @@ var require_float = __commonJS({
11474
11542
  }
11475
11543
  });
11476
11544
 
11477
- // node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/schema/core/int.js
11545
+ // node_modules/.bun/yaml@2.9.1/node_modules/yaml/dist/schema/core/int.js
11478
11546
  var require_int = __commonJS({
11479
- "node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/schema/core/int.js"(exports) {
11547
+ "node_modules/.bun/yaml@2.9.1/node_modules/yaml/dist/schema/core/int.js"(exports) {
11480
11548
  "use strict";
11481
11549
  init_utils2();
11482
11550
  var stringifyNumber = require_stringifyNumber();
@@ -11520,9 +11588,9 @@ var require_int = __commonJS({
11520
11588
  }
11521
11589
  });
11522
11590
 
11523
- // node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/schema/core/schema.js
11591
+ // node_modules/.bun/yaml@2.9.1/node_modules/yaml/dist/schema/core/schema.js
11524
11592
  var require_schema = __commonJS({
11525
- "node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/schema/core/schema.js"(exports) {
11593
+ "node_modules/.bun/yaml@2.9.1/node_modules/yaml/dist/schema/core/schema.js"(exports) {
11526
11594
  "use strict";
11527
11595
  init_utils2();
11528
11596
  var map = require_map();
@@ -11549,9 +11617,9 @@ var require_schema = __commonJS({
11549
11617
  }
11550
11618
  });
11551
11619
 
11552
- // node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/schema/json/schema.js
11620
+ // node_modules/.bun/yaml@2.9.1/node_modules/yaml/dist/schema/json/schema.js
11553
11621
  var require_schema2 = __commonJS({
11554
- "node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/schema/json/schema.js"(exports) {
11622
+ "node_modules/.bun/yaml@2.9.1/node_modules/yaml/dist/schema/json/schema.js"(exports) {
11555
11623
  "use strict";
11556
11624
  init_utils2();
11557
11625
  var Scalar = require_Scalar();
@@ -11617,9 +11685,9 @@ var require_schema2 = __commonJS({
11617
11685
  }
11618
11686
  });
11619
11687
 
11620
- // node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/schema/yaml-1.1/binary.js
11688
+ // node_modules/.bun/yaml@2.9.1/node_modules/yaml/dist/schema/yaml-1.1/binary.js
11621
11689
  var require_binary = __commonJS({
11622
- "node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/schema/yaml-1.1/binary.js"(exports) {
11690
+ "node_modules/.bun/yaml@2.9.1/node_modules/yaml/dist/schema/yaml-1.1/binary.js"(exports) {
11623
11691
  "use strict";
11624
11692
  init_utils2();
11625
11693
  var node_buffer = __require("buffer");
@@ -11684,9 +11752,9 @@ var require_binary = __commonJS({
11684
11752
  }
11685
11753
  });
11686
11754
 
11687
- // node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/schema/yaml-1.1/pairs.js
11755
+ // node_modules/.bun/yaml@2.9.1/node_modules/yaml/dist/schema/yaml-1.1/pairs.js
11688
11756
  var require_pairs = __commonJS({
11689
- "node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/schema/yaml-1.1/pairs.js"(exports) {
11757
+ "node_modules/.bun/yaml@2.9.1/node_modules/yaml/dist/schema/yaml-1.1/pairs.js"(exports) {
11690
11758
  "use strict";
11691
11759
  init_utils2();
11692
11760
  var identity = require_identity();
@@ -11763,9 +11831,9 @@ ${cn.comment}` : item.comment;
11763
11831
  }
11764
11832
  });
11765
11833
 
11766
- // node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/schema/yaml-1.1/omap.js
11834
+ // node_modules/.bun/yaml@2.9.1/node_modules/yaml/dist/schema/yaml-1.1/omap.js
11767
11835
  var require_omap = __commonJS({
11768
- "node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/schema/yaml-1.1/omap.js"(exports) {
11836
+ "node_modules/.bun/yaml@2.9.1/node_modules/yaml/dist/schema/yaml-1.1/omap.js"(exports) {
11769
11837
  "use strict";
11770
11838
  init_utils2();
11771
11839
  var identity = require_identity();
@@ -11842,9 +11910,9 @@ var require_omap = __commonJS({
11842
11910
  }
11843
11911
  });
11844
11912
 
11845
- // node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/schema/yaml-1.1/bool.js
11913
+ // node_modules/.bun/yaml@2.9.1/node_modules/yaml/dist/schema/yaml-1.1/bool.js
11846
11914
  var require_bool2 = __commonJS({
11847
- "node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/schema/yaml-1.1/bool.js"(exports) {
11915
+ "node_modules/.bun/yaml@2.9.1/node_modules/yaml/dist/schema/yaml-1.1/bool.js"(exports) {
11848
11916
  "use strict";
11849
11917
  init_utils2();
11850
11918
  var Scalar = require_Scalar();
@@ -11875,9 +11943,9 @@ var require_bool2 = __commonJS({
11875
11943
  }
11876
11944
  });
11877
11945
 
11878
- // node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/schema/yaml-1.1/float.js
11946
+ // node_modules/.bun/yaml@2.9.1/node_modules/yaml/dist/schema/yaml-1.1/float.js
11879
11947
  var require_float2 = __commonJS({
11880
- "node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/schema/yaml-1.1/float.js"(exports) {
11948
+ "node_modules/.bun/yaml@2.9.1/node_modules/yaml/dist/schema/yaml-1.1/float.js"(exports) {
11881
11949
  "use strict";
11882
11950
  init_utils2();
11883
11951
  var Scalar = require_Scalar();
@@ -11925,9 +11993,9 @@ var require_float2 = __commonJS({
11925
11993
  }
11926
11994
  });
11927
11995
 
11928
- // node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/schema/yaml-1.1/int.js
11996
+ // node_modules/.bun/yaml@2.9.1/node_modules/yaml/dist/schema/yaml-1.1/int.js
11929
11997
  var require_int2 = __commonJS({
11930
- "node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/schema/yaml-1.1/int.js"(exports) {
11998
+ "node_modules/.bun/yaml@2.9.1/node_modules/yaml/dist/schema/yaml-1.1/int.js"(exports) {
11931
11999
  "use strict";
11932
12000
  init_utils2();
11933
12001
  var stringifyNumber = require_stringifyNumber();
@@ -12005,9 +12073,9 @@ var require_int2 = __commonJS({
12005
12073
  }
12006
12074
  });
12007
12075
 
12008
- // node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/schema/yaml-1.1/set.js
12076
+ // node_modules/.bun/yaml@2.9.1/node_modules/yaml/dist/schema/yaml-1.1/set.js
12009
12077
  var require_set = __commonJS({
12010
- "node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/schema/yaml-1.1/set.js"(exports) {
12078
+ "node_modules/.bun/yaml@2.9.1/node_modules/yaml/dist/schema/yaml-1.1/set.js"(exports) {
12011
12079
  "use strict";
12012
12080
  init_utils2();
12013
12081
  var identity = require_identity();
@@ -12095,9 +12163,9 @@ var require_set = __commonJS({
12095
12163
  }
12096
12164
  });
12097
12165
 
12098
- // node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/schema/yaml-1.1/timestamp.js
12166
+ // node_modules/.bun/yaml@2.9.1/node_modules/yaml/dist/schema/yaml-1.1/timestamp.js
12099
12167
  var require_timestamp = __commonJS({
12100
- "node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/schema/yaml-1.1/timestamp.js"(exports) {
12168
+ "node_modules/.bun/yaml@2.9.1/node_modules/yaml/dist/schema/yaml-1.1/timestamp.js"(exports) {
12101
12169
  "use strict";
12102
12170
  init_utils2();
12103
12171
  var stringifyNumber = require_stringifyNumber();
@@ -12184,9 +12252,9 @@ var require_timestamp = __commonJS({
12184
12252
  }
12185
12253
  });
12186
12254
 
12187
- // node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/schema/yaml-1.1/schema.js
12255
+ // node_modules/.bun/yaml@2.9.1/node_modules/yaml/dist/schema/yaml-1.1/schema.js
12188
12256
  var require_schema3 = __commonJS({
12189
- "node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/schema/yaml-1.1/schema.js"(exports) {
12257
+ "node_modules/.bun/yaml@2.9.1/node_modules/yaml/dist/schema/yaml-1.1/schema.js"(exports) {
12190
12258
  "use strict";
12191
12259
  init_utils2();
12192
12260
  var map = require_map();
@@ -12229,9 +12297,9 @@ var require_schema3 = __commonJS({
12229
12297
  }
12230
12298
  });
12231
12299
 
12232
- // node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/schema/tags.js
12300
+ // node_modules/.bun/yaml@2.9.1/node_modules/yaml/dist/schema/tags.js
12233
12301
  var require_tags = __commonJS({
12234
- "node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/schema/tags.js"(exports) {
12302
+ "node_modules/.bun/yaml@2.9.1/node_modules/yaml/dist/schema/tags.js"(exports) {
12235
12303
  "use strict";
12236
12304
  init_utils2();
12237
12305
  var map = require_map();
@@ -12324,9 +12392,9 @@ var require_tags = __commonJS({
12324
12392
  }
12325
12393
  });
12326
12394
 
12327
- // node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/schema/Schema.js
12395
+ // node_modules/.bun/yaml@2.9.1/node_modules/yaml/dist/schema/Schema.js
12328
12396
  var require_Schema = __commonJS({
12329
- "node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/schema/Schema.js"(exports) {
12397
+ "node_modules/.bun/yaml@2.9.1/node_modules/yaml/dist/schema/Schema.js"(exports) {
12330
12398
  "use strict";
12331
12399
  init_utils2();
12332
12400
  var identity = require_identity();
@@ -12357,9 +12425,9 @@ var require_Schema = __commonJS({
12357
12425
  }
12358
12426
  });
12359
12427
 
12360
- // node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/stringify/stringifyDocument.js
12428
+ // node_modules/.bun/yaml@2.9.1/node_modules/yaml/dist/stringify/stringifyDocument.js
12361
12429
  var require_stringifyDocument = __commonJS({
12362
- "node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/stringify/stringifyDocument.js"(exports) {
12430
+ "node_modules/.bun/yaml@2.9.1/node_modules/yaml/dist/stringify/stringifyDocument.js"(exports) {
12363
12431
  "use strict";
12364
12432
  init_utils2();
12365
12433
  var identity = require_identity();
@@ -12438,9 +12506,9 @@ var require_stringifyDocument = __commonJS({
12438
12506
  }
12439
12507
  });
12440
12508
 
12441
- // node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/doc/Document.js
12509
+ // node_modules/.bun/yaml@2.9.1/node_modules/yaml/dist/doc/Document.js
12442
12510
  var require_Document = __commonJS({
12443
- "node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/doc/Document.js"(exports) {
12511
+ "node_modules/.bun/yaml@2.9.1/node_modules/yaml/dist/doc/Document.js"(exports) {
12444
12512
  "use strict";
12445
12513
  init_utils2();
12446
12514
  var Alias = require_Alias();
@@ -12748,9 +12816,9 @@ var require_Document = __commonJS({
12748
12816
  }
12749
12817
  });
12750
12818
 
12751
- // node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/errors.js
12819
+ // node_modules/.bun/yaml@2.9.1/node_modules/yaml/dist/errors.js
12752
12820
  var require_errors = __commonJS({
12753
- "node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/errors.js"(exports) {
12821
+ "node_modules/.bun/yaml@2.9.1/node_modules/yaml/dist/errors.js"(exports) {
12754
12822
  "use strict";
12755
12823
  init_utils2();
12756
12824
  var YAMLError = class extends Error {
@@ -12814,9 +12882,9 @@ ${pointer}
12814
12882
  }
12815
12883
  });
12816
12884
 
12817
- // node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/compose/resolve-props.js
12885
+ // node_modules/.bun/yaml@2.9.1/node_modules/yaml/dist/compose/resolve-props.js
12818
12886
  var require_resolve_props = __commonJS({
12819
- "node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/compose/resolve-props.js"(exports) {
12887
+ "node_modules/.bun/yaml@2.9.1/node_modules/yaml/dist/compose/resolve-props.js"(exports) {
12820
12888
  "use strict";
12821
12889
  init_utils2();
12822
12890
  function resolveProps(tokens, { flow, indicator, next, offset, onError, parentIndent, startOnNewline }) {
@@ -12949,9 +13017,9 @@ var require_resolve_props = __commonJS({
12949
13017
  }
12950
13018
  });
12951
13019
 
12952
- // node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/compose/util-contains-newline.js
13020
+ // node_modules/.bun/yaml@2.9.1/node_modules/yaml/dist/compose/util-contains-newline.js
12953
13021
  var require_util_contains_newline = __commonJS({
12954
- "node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/compose/util-contains-newline.js"(exports) {
13022
+ "node_modules/.bun/yaml@2.9.1/node_modules/yaml/dist/compose/util-contains-newline.js"(exports) {
12955
13023
  "use strict";
12956
13024
  init_utils2();
12957
13025
  function containsNewline(key) {
@@ -12992,9 +13060,9 @@ var require_util_contains_newline = __commonJS({
12992
13060
  }
12993
13061
  });
12994
13062
 
12995
- // node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/compose/util-flow-indent-check.js
13063
+ // node_modules/.bun/yaml@2.9.1/node_modules/yaml/dist/compose/util-flow-indent-check.js
12996
13064
  var require_util_flow_indent_check = __commonJS({
12997
- "node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/compose/util-flow-indent-check.js"(exports) {
13065
+ "node_modules/.bun/yaml@2.9.1/node_modules/yaml/dist/compose/util-flow-indent-check.js"(exports) {
12998
13066
  "use strict";
12999
13067
  init_utils2();
13000
13068
  var utilContainsNewline = require_util_contains_newline();
@@ -13011,9 +13079,9 @@ var require_util_flow_indent_check = __commonJS({
13011
13079
  }
13012
13080
  });
13013
13081
 
13014
- // node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/compose/util-map-includes.js
13082
+ // node_modules/.bun/yaml@2.9.1/node_modules/yaml/dist/compose/util-map-includes.js
13015
13083
  var require_util_map_includes = __commonJS({
13016
- "node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/compose/util-map-includes.js"(exports) {
13084
+ "node_modules/.bun/yaml@2.9.1/node_modules/yaml/dist/compose/util-map-includes.js"(exports) {
13017
13085
  "use strict";
13018
13086
  init_utils2();
13019
13087
  var identity = require_identity();
@@ -13028,9 +13096,9 @@ var require_util_map_includes = __commonJS({
13028
13096
  }
13029
13097
  });
13030
13098
 
13031
- // node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/compose/resolve-block-map.js
13099
+ // node_modules/.bun/yaml@2.9.1/node_modules/yaml/dist/compose/resolve-block-map.js
13032
13100
  var require_resolve_block_map = __commonJS({
13033
- "node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/compose/resolve-block-map.js"(exports) {
13101
+ "node_modules/.bun/yaml@2.9.1/node_modules/yaml/dist/compose/resolve-block-map.js"(exports) {
13034
13102
  "use strict";
13035
13103
  init_utils2();
13036
13104
  var Pair = require_Pair();
@@ -13048,10 +13116,10 @@ var require_resolve_block_map = __commonJS({
13048
13116
  let offset = bm.offset;
13049
13117
  let commentEnd = null;
13050
13118
  for (const collItem of bm.items) {
13051
- const { start, key, sep: sep2, value } = collItem;
13119
+ const { start, key, sep: sep3, value } = collItem;
13052
13120
  const keyProps = resolveProps.resolveProps(start, {
13053
13121
  indicator: "explicit-key-ind",
13054
- next: key ?? sep2?.[0],
13122
+ next: key ?? sep3?.[0],
13055
13123
  offset,
13056
13124
  onError,
13057
13125
  parentIndent: bm.indent,
@@ -13065,7 +13133,7 @@ var require_resolve_block_map = __commonJS({
13065
13133
  else if ("indent" in key && key.indent !== bm.indent)
13066
13134
  onError(offset, "BAD_INDENT", startColMsg);
13067
13135
  }
13068
- if (!keyProps.anchor && !keyProps.tag && !sep2) {
13136
+ if (!keyProps.anchor && !keyProps.tag && !sep3) {
13069
13137
  commentEnd = keyProps.end;
13070
13138
  if (keyProps.comment) {
13071
13139
  if (map.comment)
@@ -13089,7 +13157,7 @@ var require_resolve_block_map = __commonJS({
13089
13157
  ctx.atKey = false;
13090
13158
  if (utilMapIncludes.mapIncludes(ctx, map.items, keyNode))
13091
13159
  onError(keyStart, "DUPLICATE_KEY", "Map keys must be unique");
13092
- const valueProps = resolveProps.resolveProps(sep2 ?? [], {
13160
+ const valueProps = resolveProps.resolveProps(sep3 ?? [], {
13093
13161
  indicator: "map-value-ind",
13094
13162
  next: value,
13095
13163
  offset: keyNode.range[2],
@@ -13105,7 +13173,7 @@ var require_resolve_block_map = __commonJS({
13105
13173
  if (ctx.options.strict && keyProps.start < valueProps.found.offset - 1024)
13106
13174
  onError(keyNode.range, "KEY_OVER_1024_CHARS", "The : indicator must be at most 1024 chars after the start of an implicit block mapping key");
13107
13175
  }
13108
- const valueNode = value ? composeNode(ctx, value, valueProps, onError) : composeEmptyNode(ctx, offset, sep2, null, valueProps, onError);
13176
+ const valueNode = value ? composeNode(ctx, value, valueProps, onError) : composeEmptyNode(ctx, offset, sep3, null, valueProps, onError);
13109
13177
  if (ctx.schema.compat)
13110
13178
  utilFlowIndentCheck.flowIndentCheck(bm.indent, value, onError);
13111
13179
  offset = valueNode.range[2];
@@ -13137,9 +13205,9 @@ var require_resolve_block_map = __commonJS({
13137
13205
  }
13138
13206
  });
13139
13207
 
13140
- // node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/compose/resolve-block-seq.js
13208
+ // node_modules/.bun/yaml@2.9.1/node_modules/yaml/dist/compose/resolve-block-seq.js
13141
13209
  var require_resolve_block_seq = __commonJS({
13142
- "node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/compose/resolve-block-seq.js"(exports) {
13210
+ "node_modules/.bun/yaml@2.9.1/node_modules/yaml/dist/compose/resolve-block-seq.js"(exports) {
13143
13211
  "use strict";
13144
13212
  init_utils2();
13145
13213
  var YAMLSeq = require_YAMLSeq();
@@ -13189,16 +13257,16 @@ var require_resolve_block_seq = __commonJS({
13189
13257
  }
13190
13258
  });
13191
13259
 
13192
- // node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/compose/resolve-end.js
13260
+ // node_modules/.bun/yaml@2.9.1/node_modules/yaml/dist/compose/resolve-end.js
13193
13261
  var require_resolve_end = __commonJS({
13194
- "node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/compose/resolve-end.js"(exports) {
13262
+ "node_modules/.bun/yaml@2.9.1/node_modules/yaml/dist/compose/resolve-end.js"(exports) {
13195
13263
  "use strict";
13196
13264
  init_utils2();
13197
13265
  function resolveEnd(end, offset, reqSpace, onError) {
13198
13266
  let comment = "";
13199
13267
  if (end) {
13200
13268
  let hasSpace = false;
13201
- let sep2 = "";
13269
+ let sep3 = "";
13202
13270
  for (const token of end) {
13203
13271
  const { source, type } = token;
13204
13272
  switch (type) {
@@ -13212,13 +13280,13 @@ var require_resolve_end = __commonJS({
13212
13280
  if (!comment)
13213
13281
  comment = cb;
13214
13282
  else
13215
- comment += sep2 + cb;
13216
- sep2 = "";
13283
+ comment += sep3 + cb;
13284
+ sep3 = "";
13217
13285
  break;
13218
13286
  }
13219
13287
  case "newline":
13220
13288
  if (comment)
13221
- sep2 += source;
13289
+ sep3 += source;
13222
13290
  hasSpace = true;
13223
13291
  break;
13224
13292
  default:
@@ -13233,9 +13301,9 @@ var require_resolve_end = __commonJS({
13233
13301
  }
13234
13302
  });
13235
13303
 
13236
- // node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/compose/resolve-flow-collection.js
13304
+ // node_modules/.bun/yaml@2.9.1/node_modules/yaml/dist/compose/resolve-flow-collection.js
13237
13305
  var require_resolve_flow_collection = __commonJS({
13238
- "node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/compose/resolve-flow-collection.js"(exports) {
13306
+ "node_modules/.bun/yaml@2.9.1/node_modules/yaml/dist/compose/resolve-flow-collection.js"(exports) {
13239
13307
  "use strict";
13240
13308
  init_utils2();
13241
13309
  var identity = require_identity();
@@ -13262,18 +13330,18 @@ var require_resolve_flow_collection = __commonJS({
13262
13330
  let offset = fc.offset + fc.start.source.length;
13263
13331
  for (let i2 = 0; i2 < fc.items.length; ++i2) {
13264
13332
  const collItem = fc.items[i2];
13265
- const { start, key, sep: sep2, value } = collItem;
13333
+ const { start, key, sep: sep3, value } = collItem;
13266
13334
  const props = resolveProps.resolveProps(start, {
13267
13335
  flow: fcName,
13268
13336
  indicator: "explicit-key-ind",
13269
- next: key ?? sep2?.[0],
13337
+ next: key ?? sep3?.[0],
13270
13338
  offset,
13271
13339
  onError,
13272
13340
  parentIndent: fc.indent,
13273
13341
  startOnNewline: false
13274
13342
  });
13275
13343
  if (!props.found) {
13276
- if (!props.anchor && !props.tag && !sep2 && !value) {
13344
+ if (!props.anchor && !props.tag && !sep3 && !value) {
13277
13345
  if (i2 === 0 && props.comma)
13278
13346
  onError(props.comma, "UNEXPECTED_TOKEN", `Unexpected , in ${fcName}`);
13279
13347
  else if (i2 < fc.items.length - 1)
@@ -13327,8 +13395,8 @@ var require_resolve_flow_collection = __commonJS({
13327
13395
  }
13328
13396
  }
13329
13397
  }
13330
- if (!isMap && !sep2 && !props.found) {
13331
- const valueNode = value ? composeNode(ctx, value, props, onError) : composeEmptyNode(ctx, props.end, sep2, null, props, onError);
13398
+ if (!isMap && !sep3 && !props.found) {
13399
+ const valueNode = value ? composeNode(ctx, value, props, onError) : composeEmptyNode(ctx, props.end, sep3, null, props, onError);
13332
13400
  coll.items.push(valueNode);
13333
13401
  offset = valueNode.range[2];
13334
13402
  if (isBlock(value))
@@ -13340,7 +13408,7 @@ var require_resolve_flow_collection = __commonJS({
13340
13408
  if (isBlock(key))
13341
13409
  onError(keyNode.range, "BLOCK_IN_FLOW", blockMsg);
13342
13410
  ctx.atKey = false;
13343
- const valueProps = resolveProps.resolveProps(sep2 ?? [], {
13411
+ const valueProps = resolveProps.resolveProps(sep3 ?? [], {
13344
13412
  flow: fcName,
13345
13413
  indicator: "map-value-ind",
13346
13414
  next: value,
@@ -13351,8 +13419,8 @@ var require_resolve_flow_collection = __commonJS({
13351
13419
  });
13352
13420
  if (valueProps.found) {
13353
13421
  if (!isMap && !props.found && ctx.options.strict) {
13354
- if (sep2)
13355
- for (const st of sep2) {
13422
+ if (sep3)
13423
+ for (const st of sep3) {
13356
13424
  if (st === valueProps.found)
13357
13425
  break;
13358
13426
  if (st.type === "newline") {
@@ -13369,7 +13437,7 @@ var require_resolve_flow_collection = __commonJS({
13369
13437
  else
13370
13438
  onError(valueProps.start, "MISSING_CHAR", `Missing , or : between ${fcName} items`);
13371
13439
  }
13372
- const valueNode = value ? composeNode(ctx, value, valueProps, onError) : valueProps.found ? composeEmptyNode(ctx, valueProps.end, sep2, null, valueProps, onError) : null;
13440
+ const valueNode = value ? composeNode(ctx, value, valueProps, onError) : valueProps.found ? composeEmptyNode(ctx, valueProps.end, sep3, null, valueProps, onError) : null;
13373
13441
  if (valueNode) {
13374
13442
  if (isBlock(value))
13375
13443
  onError(valueNode.range, "BLOCK_IN_FLOW", blockMsg);
@@ -13428,9 +13496,9 @@ var require_resolve_flow_collection = __commonJS({
13428
13496
  }
13429
13497
  });
13430
13498
 
13431
- // node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/compose/compose-collection.js
13499
+ // node_modules/.bun/yaml@2.9.1/node_modules/yaml/dist/compose/compose-collection.js
13432
13500
  var require_compose_collection = __commonJS({
13433
- "node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/compose/compose-collection.js"(exports) {
13501
+ "node_modules/.bun/yaml@2.9.1/node_modules/yaml/dist/compose/compose-collection.js"(exports) {
13434
13502
  "use strict";
13435
13503
  init_utils2();
13436
13504
  var identity = require_identity();
@@ -13494,9 +13562,9 @@ var require_compose_collection = __commonJS({
13494
13562
  }
13495
13563
  });
13496
13564
 
13497
- // node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/compose/resolve-block-scalar.js
13565
+ // node_modules/.bun/yaml@2.9.1/node_modules/yaml/dist/compose/resolve-block-scalar.js
13498
13566
  var require_resolve_block_scalar = __commonJS({
13499
- "node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/compose/resolve-block-scalar.js"(exports) {
13567
+ "node_modules/.bun/yaml@2.9.1/node_modules/yaml/dist/compose/resolve-block-scalar.js"(exports) {
13500
13568
  "use strict";
13501
13569
  init_utils2();
13502
13570
  var Scalar = require_Scalar();
@@ -13551,7 +13619,7 @@ var require_resolve_block_scalar = __commonJS({
13551
13619
  chompStart = i2 + 1;
13552
13620
  }
13553
13621
  let value = "";
13554
- let sep2 = "";
13622
+ let sep3 = "";
13555
13623
  let prevMoreIndented = false;
13556
13624
  for (let i2 = 0; i2 < contentStart; ++i2)
13557
13625
  value += lines[i2][0].slice(trimIndent) + "\n";
@@ -13568,24 +13636,24 @@ var require_resolve_block_scalar = __commonJS({
13568
13636
  indent = "";
13569
13637
  }
13570
13638
  if (type === Scalar.Scalar.BLOCK_LITERAL) {
13571
- value += sep2 + indent.slice(trimIndent) + content;
13572
- sep2 = "\n";
13639
+ value += sep3 + indent.slice(trimIndent) + content;
13640
+ sep3 = "\n";
13573
13641
  } else if (indent.length > trimIndent || content[0] === " ") {
13574
- if (sep2 === " ")
13575
- sep2 = "\n";
13576
- else if (!prevMoreIndented && sep2 === "\n")
13577
- sep2 = "\n\n";
13578
- value += sep2 + indent.slice(trimIndent) + content;
13579
- sep2 = "\n";
13642
+ if (sep3 === " ")
13643
+ sep3 = "\n";
13644
+ else if (!prevMoreIndented && sep3 === "\n")
13645
+ sep3 = "\n\n";
13646
+ value += sep3 + indent.slice(trimIndent) + content;
13647
+ sep3 = "\n";
13580
13648
  prevMoreIndented = true;
13581
13649
  } else if (content === "") {
13582
- if (sep2 === "\n")
13650
+ if (sep3 === "\n")
13583
13651
  value += "\n";
13584
13652
  else
13585
- sep2 = "\n";
13653
+ sep3 = "\n";
13586
13654
  } else {
13587
- value += sep2 + content;
13588
- sep2 = " ";
13655
+ value += sep3 + content;
13656
+ sep3 = " ";
13589
13657
  prevMoreIndented = false;
13590
13658
  }
13591
13659
  }
@@ -13678,9 +13746,9 @@ var require_resolve_block_scalar = __commonJS({
13678
13746
  }
13679
13747
  });
13680
13748
 
13681
- // node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/compose/resolve-flow-scalar.js
13749
+ // node_modules/.bun/yaml@2.9.1/node_modules/yaml/dist/compose/resolve-flow-scalar.js
13682
13750
  var require_resolve_flow_scalar = __commonJS({
13683
- "node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/compose/resolve-flow-scalar.js"(exports) {
13751
+ "node_modules/.bun/yaml@2.9.1/node_modules/yaml/dist/compose/resolve-flow-scalar.js"(exports) {
13684
13752
  "use strict";
13685
13753
  init_utils2();
13686
13754
  var Scalar = require_Scalar();
@@ -13748,45 +13816,46 @@ var require_resolve_flow_scalar = __commonJS({
13748
13816
  }
13749
13817
  if (badChar)
13750
13818
  onError(0, "BAD_SCALAR_START", `Plain value cannot start with ${badChar}`);
13751
- return foldLines(source);
13819
+ return unfoldLines(source);
13752
13820
  }
13753
13821
  function singleQuotedValue(source, onError) {
13754
13822
  if (source[source.length - 1] !== "'" || source.length === 1)
13755
13823
  onError(source.length, "MISSING_CHAR", "Missing closing 'quote");
13756
- return foldLines(source.slice(1, -1)).replace(/''/g, "'");
13824
+ return unfoldLines(source.slice(1, -1)).replace(/''/g, "'");
13757
13825
  }
13758
- function foldLines(source) {
13759
- let first, line;
13826
+ function unfoldLines(source) {
13827
+ const line = /(.*?)\r?\n/sy;
13828
+ let match = line.exec(source);
13829
+ if (!match)
13830
+ return source;
13831
+ let trimEnd, trimBoth;
13760
13832
  try {
13761
- first = new RegExp("(.*?)(?<![ ])[ ]*\r?\n", "sy");
13762
- line = new RegExp("[ ]*(.*?)(?:(?<![ ])[ ]*)?\r?\n", "sy");
13833
+ trimEnd = new RegExp("(?<![ ])[ ]+$");
13834
+ trimBoth = new RegExp("^[ ]+|(?<![ ])[ ]+$", "g");
13763
13835
  } catch {
13764
- first = /(.*?)[ \t]*\r?\n/sy;
13765
- line = /[ \t]*(.*?)[ \t]*\r?\n/sy;
13836
+ trimEnd = /[ \t]+$/;
13837
+ trimBoth = /^[ \t]+|[ \t]+$/g;
13766
13838
  }
13767
- let match = first.exec(source);
13768
- if (!match)
13769
- return source;
13770
- let res = match[1];
13771
- let sep2 = " ";
13772
- let pos = first.lastIndex;
13773
- line.lastIndex = pos;
13839
+ let res = match[1].replace(trimEnd, "");
13840
+ let sep3 = " ";
13841
+ let pos = line.lastIndex;
13774
13842
  while (match = line.exec(source)) {
13775
- if (match[1] === "") {
13776
- if (sep2 === "\n")
13777
- res += sep2;
13843
+ const lm = match[1].replace(trimBoth, "");
13844
+ if (lm === "") {
13845
+ if (sep3 === "\n")
13846
+ res += sep3;
13778
13847
  else
13779
- sep2 = "\n";
13848
+ sep3 = "\n";
13780
13849
  } else {
13781
- res += sep2 + match[1];
13782
- sep2 = " ";
13850
+ res += sep3 + lm;
13851
+ sep3 = " ";
13783
13852
  }
13784
13853
  pos = line.lastIndex;
13785
13854
  }
13786
13855
  const last = /[ \t]*(.*)/sy;
13787
13856
  last.lastIndex = pos;
13788
13857
  match = last.exec(source);
13789
- return res + sep2 + (match?.[1] ?? "");
13858
+ return res + sep3 + (match?.[1] ?? "");
13790
13859
  }
13791
13860
  function doubleQuotedValue(source, onError) {
13792
13861
  let res = "";
@@ -13899,9 +13968,9 @@ var require_resolve_flow_scalar = __commonJS({
13899
13968
  }
13900
13969
  });
13901
13970
 
13902
- // node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/compose/compose-scalar.js
13971
+ // node_modules/.bun/yaml@2.9.1/node_modules/yaml/dist/compose/compose-scalar.js
13903
13972
  var require_compose_scalar = __commonJS({
13904
- "node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/compose/compose-scalar.js"(exports) {
13973
+ "node_modules/.bun/yaml@2.9.1/node_modules/yaml/dist/compose/compose-scalar.js"(exports) {
13905
13974
  "use strict";
13906
13975
  init_utils2();
13907
13976
  var identity = require_identity();
@@ -13981,9 +14050,9 @@ var require_compose_scalar = __commonJS({
13981
14050
  }
13982
14051
  });
13983
14052
 
13984
- // node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/compose/util-empty-scalar-position.js
14053
+ // node_modules/.bun/yaml@2.9.1/node_modules/yaml/dist/compose/util-empty-scalar-position.js
13985
14054
  var require_util_empty_scalar_position = __commonJS({
13986
- "node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/compose/util-empty-scalar-position.js"(exports) {
14055
+ "node_modules/.bun/yaml@2.9.1/node_modules/yaml/dist/compose/util-empty-scalar-position.js"(exports) {
13987
14056
  "use strict";
13988
14057
  init_utils2();
13989
14058
  function emptyScalarPosition(offset, before, pos) {
@@ -14012,9 +14081,9 @@ var require_util_empty_scalar_position = __commonJS({
14012
14081
  }
14013
14082
  });
14014
14083
 
14015
- // node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/compose/compose-node.js
14084
+ // node_modules/.bun/yaml@2.9.1/node_modules/yaml/dist/compose/compose-node.js
14016
14085
  var require_compose_node = __commonJS({
14017
- "node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/compose/compose-node.js"(exports) {
14086
+ "node_modules/.bun/yaml@2.9.1/node_modules/yaml/dist/compose/compose-node.js"(exports) {
14018
14087
  "use strict";
14019
14088
  init_utils2();
14020
14089
  var Alias = require_Alias();
@@ -14119,9 +14188,9 @@ var require_compose_node = __commonJS({
14119
14188
  }
14120
14189
  });
14121
14190
 
14122
- // node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/compose/compose-doc.js
14191
+ // node_modules/.bun/yaml@2.9.1/node_modules/yaml/dist/compose/compose-doc.js
14123
14192
  var require_compose_doc = __commonJS({
14124
- "node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/compose/compose-doc.js"(exports) {
14193
+ "node_modules/.bun/yaml@2.9.1/node_modules/yaml/dist/compose/compose-doc.js"(exports) {
14125
14194
  "use strict";
14126
14195
  init_utils2();
14127
14196
  var Document = require_Document();
@@ -14163,9 +14232,9 @@ var require_compose_doc = __commonJS({
14163
14232
  }
14164
14233
  });
14165
14234
 
14166
- // node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/compose/composer.js
14235
+ // node_modules/.bun/yaml@2.9.1/node_modules/yaml/dist/compose/composer.js
14167
14236
  var require_composer = __commonJS({
14168
- "node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/compose/composer.js"(exports) {
14237
+ "node_modules/.bun/yaml@2.9.1/node_modules/yaml/dist/compose/composer.js"(exports) {
14169
14238
  "use strict";
14170
14239
  init_utils2();
14171
14240
  var node_process = __require("process");
@@ -14372,9 +14441,9 @@ ${end.comment}` : end.comment;
14372
14441
  }
14373
14442
  });
14374
14443
 
14375
- // node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/parse/cst-scalar.js
14444
+ // node_modules/.bun/yaml@2.9.1/node_modules/yaml/dist/parse/cst-scalar.js
14376
14445
  var require_cst_scalar = __commonJS({
14377
- "node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/parse/cst-scalar.js"(exports) {
14446
+ "node_modules/.bun/yaml@2.9.1/node_modules/yaml/dist/parse/cst-scalar.js"(exports) {
14378
14447
  "use strict";
14379
14448
  init_utils2();
14380
14449
  var resolveBlockScalar = require_resolve_block_scalar();
@@ -14558,9 +14627,9 @@ var require_cst_scalar = __commonJS({
14558
14627
  }
14559
14628
  });
14560
14629
 
14561
- // node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/parse/cst-stringify.js
14630
+ // node_modules/.bun/yaml@2.9.1/node_modules/yaml/dist/parse/cst-stringify.js
14562
14631
  var require_cst_stringify = __commonJS({
14563
- "node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/parse/cst-stringify.js"(exports) {
14632
+ "node_modules/.bun/yaml@2.9.1/node_modules/yaml/dist/parse/cst-stringify.js"(exports) {
14564
14633
  "use strict";
14565
14634
  init_utils2();
14566
14635
  var stringify2 = (cst) => "type" in cst ? stringifyToken(cst) : stringifyItem(cst);
@@ -14603,14 +14672,14 @@ var require_cst_stringify = __commonJS({
14603
14672
  }
14604
14673
  }
14605
14674
  }
14606
- function stringifyItem({ start, key, sep: sep2, value }) {
14675
+ function stringifyItem({ start, key, sep: sep3, value }) {
14607
14676
  let res = "";
14608
14677
  for (const st of start)
14609
14678
  res += st.source;
14610
14679
  if (key)
14611
14680
  res += stringifyToken(key);
14612
- if (sep2)
14613
- for (const st of sep2)
14681
+ if (sep3)
14682
+ for (const st of sep3)
14614
14683
  res += st.source;
14615
14684
  if (value)
14616
14685
  res += stringifyToken(value);
@@ -14620,9 +14689,9 @@ var require_cst_stringify = __commonJS({
14620
14689
  }
14621
14690
  });
14622
14691
 
14623
- // node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/parse/cst-visit.js
14692
+ // node_modules/.bun/yaml@2.9.1/node_modules/yaml/dist/parse/cst-visit.js
14624
14693
  var require_cst_visit = __commonJS({
14625
- "node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/parse/cst-visit.js"(exports) {
14694
+ "node_modules/.bun/yaml@2.9.1/node_modules/yaml/dist/parse/cst-visit.js"(exports) {
14626
14695
  "use strict";
14627
14696
  init_utils2();
14628
14697
  var BREAK = /* @__PURE__ */ Symbol("break visit");
@@ -14683,9 +14752,9 @@ var require_cst_visit = __commonJS({
14683
14752
  }
14684
14753
  });
14685
14754
 
14686
- // node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/parse/cst.js
14755
+ // node_modules/.bun/yaml@2.9.1/node_modules/yaml/dist/parse/cst.js
14687
14756
  var require_cst = __commonJS({
14688
- "node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/parse/cst.js"(exports) {
14757
+ "node_modules/.bun/yaml@2.9.1/node_modules/yaml/dist/parse/cst.js"(exports) {
14689
14758
  "use strict";
14690
14759
  init_utils2();
14691
14760
  var cstScalar = require_cst_scalar();
@@ -14786,9 +14855,9 @@ var require_cst = __commonJS({
14786
14855
  }
14787
14856
  });
14788
14857
 
14789
- // node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/parse/lexer.js
14858
+ // node_modules/.bun/yaml@2.9.1/node_modules/yaml/dist/parse/lexer.js
14790
14859
  var require_lexer = __commonJS({
14791
- "node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/parse/lexer.js"(exports) {
14860
+ "node_modules/.bun/yaml@2.9.1/node_modules/yaml/dist/parse/lexer.js"(exports) {
14792
14861
  "use strict";
14793
14862
  init_utils2();
14794
14863
  var cst = require_cst();
@@ -15376,9 +15445,9 @@ var require_lexer = __commonJS({
15376
15445
  }
15377
15446
  });
15378
15447
 
15379
- // node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/parse/line-counter.js
15448
+ // node_modules/.bun/yaml@2.9.1/node_modules/yaml/dist/parse/line-counter.js
15380
15449
  var require_line_counter = __commonJS({
15381
- "node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/parse/line-counter.js"(exports) {
15450
+ "node_modules/.bun/yaml@2.9.1/node_modules/yaml/dist/parse/line-counter.js"(exports) {
15382
15451
  "use strict";
15383
15452
  init_utils2();
15384
15453
  var LineCounter = class {
@@ -15408,9 +15477,9 @@ var require_line_counter = __commonJS({
15408
15477
  }
15409
15478
  });
15410
15479
 
15411
- // node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/parse/parser.js
15480
+ // node_modules/.bun/yaml@2.9.1/node_modules/yaml/dist/parse/parser.js
15412
15481
  var require_parser = __commonJS({
15413
- "node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/parse/parser.js"(exports) {
15482
+ "node_modules/.bun/yaml@2.9.1/node_modules/yaml/dist/parse/parser.js"(exports) {
15414
15483
  "use strict";
15415
15484
  init_utils2();
15416
15485
  var node_process = __require("process");
@@ -15782,18 +15851,18 @@ var require_parser = __commonJS({
15782
15851
  if (this.type === "map-value-ind") {
15783
15852
  const prev = getPrevProps(this.peek(2));
15784
15853
  const start = getFirstKeyStartProps(prev);
15785
- let sep2;
15854
+ let sep3;
15786
15855
  if (scalar.end) {
15787
- sep2 = scalar.end;
15788
- sep2.push(this.sourceToken);
15856
+ sep3 = scalar.end;
15857
+ sep3.push(this.sourceToken);
15789
15858
  delete scalar.end;
15790
15859
  } else
15791
- sep2 = [this.sourceToken];
15860
+ sep3 = [this.sourceToken];
15792
15861
  const map = {
15793
15862
  type: "block-map",
15794
15863
  offset: scalar.offset,
15795
15864
  indent: scalar.indent,
15796
- items: [{ start, key: scalar, sep: sep2 }]
15865
+ items: [{ start, key: scalar, sep: sep3 }]
15797
15866
  };
15798
15867
  this.onKeyLine = true;
15799
15868
  this.stack[this.stack.length - 1] = map;
@@ -15946,15 +16015,15 @@ var require_parser = __commonJS({
15946
16015
  } else if (isFlowToken(it.key) && !includesToken(it.sep, "newline")) {
15947
16016
  const start2 = getFirstKeyStartProps(it.start);
15948
16017
  const key = it.key;
15949
- const sep2 = it.sep;
15950
- sep2.push(this.sourceToken);
16018
+ const sep3 = it.sep;
16019
+ sep3.push(this.sourceToken);
15951
16020
  delete it.key;
15952
16021
  delete it.sep;
15953
16022
  this.stack.push({
15954
16023
  type: "block-map",
15955
16024
  offset: this.offset,
15956
16025
  indent: this.indent,
15957
- items: [{ start: start2, key, sep: sep2 }]
16026
+ items: [{ start: start2, key, sep: sep3 }]
15958
16027
  });
15959
16028
  } else if (start.length > 0) {
15960
16029
  it.sep = it.sep.concat(start, this.sourceToken);
@@ -16148,13 +16217,13 @@ var require_parser = __commonJS({
16148
16217
  const prev = getPrevProps(parent);
16149
16218
  const start = getFirstKeyStartProps(prev);
16150
16219
  fixFlowSeqItems(fc);
16151
- const sep2 = fc.end.splice(1, fc.end.length);
16152
- sep2.push(this.sourceToken);
16220
+ const sep3 = fc.end.splice(1, fc.end.length);
16221
+ sep3.push(this.sourceToken);
16153
16222
  const map = {
16154
16223
  type: "block-map",
16155
16224
  offset: fc.offset,
16156
16225
  indent: fc.indent,
16157
- items: [{ start, key: fc, sep: sep2 }]
16226
+ items: [{ start, key: fc, sep: sep3 }]
16158
16227
  };
16159
16228
  this.onKeyLine = true;
16160
16229
  this.stack[this.stack.length - 1] = map;
@@ -16283,9 +16352,9 @@ var require_parser = __commonJS({
16283
16352
  }
16284
16353
  });
16285
16354
 
16286
- // node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/public-api.js
16355
+ // node_modules/.bun/yaml@2.9.1/node_modules/yaml/dist/public-api.js
16287
16356
  var require_public_api = __commonJS({
16288
- "node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/public-api.js"(exports) {
16357
+ "node_modules/.bun/yaml@2.9.1/node_modules/yaml/dist/public-api.js"(exports) {
16289
16358
  "use strict";
16290
16359
  init_utils2();
16291
16360
  var composer = require_composer();
@@ -16381,9 +16450,9 @@ var require_public_api = __commonJS({
16381
16450
  }
16382
16451
  });
16383
16452
 
16384
- // node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/index.js
16453
+ // node_modules/.bun/yaml@2.9.1/node_modules/yaml/dist/index.js
16385
16454
  var require_dist = __commonJS({
16386
- "node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/index.js"(exports) {
16455
+ "node_modules/.bun/yaml@2.9.1/node_modules/yaml/dist/index.js"(exports) {
16387
16456
  "use strict";
16388
16457
  init_utils2();
16389
16458
  var composer = require_composer();
@@ -17113,7 +17182,7 @@ function uploadServiceAccountToGitHub(appDir, repo, dryRun = false, staging = fa
17113
17182
  const contentRaw = readSync(filePath, { format: "text" });
17114
17183
  const content = typeof contentRaw === "string" ? contentRaw : null;
17115
17184
  if (!content) return;
17116
- const encoded = Buffer.from(content).toString("base64");
17185
+ const encoded = Buffer2.from(content).toString("base64");
17117
17186
  setGitHubSecret(secretName, encoded, repo, dryRun);
17118
17187
  }
17119
17188
  async function main(options = {}) {
@@ -17313,9 +17382,9 @@ var init_sync_secrets = __esm({
17313
17382
  }
17314
17383
  });
17315
17384
 
17316
- // node_modules/.bun/esbuild@0.27.7/node_modules/esbuild/lib/main.js
17385
+ // node_modules/.bun/esbuild@0.28.2/node_modules/esbuild/lib/main.js
17317
17386
  var require_main = __commonJS({
17318
- "node_modules/.bun/esbuild@0.27.7/node_modules/esbuild/lib/main.js"(exports, module) {
17387
+ "node_modules/.bun/esbuild@0.28.2/node_modules/esbuild/lib/main.js"(exports, module) {
17319
17388
  "use strict";
17320
17389
  init_utils2();
17321
17390
  var __defProp2 = Object.defineProperty;
@@ -17492,11 +17561,11 @@ var require_main = __commonJS({
17492
17561
  encodeUTF8 = (text2) => encoder.encode(text2);
17493
17562
  decodeUTF8 = (bytes) => decoder.decode(bytes);
17494
17563
  encodeInvariant = 'new TextEncoder().encode("")';
17495
- } else if (typeof Buffer !== "undefined") {
17496
- encodeUTF8 = (text2) => Buffer.from(text2);
17564
+ } else if (typeof Buffer2 !== "undefined") {
17565
+ encodeUTF8 = (text2) => Buffer2.from(text2);
17497
17566
  decodeUTF8 = (bytes) => {
17498
17567
  let { buffer, byteOffset, byteLength } = bytes;
17499
- return Buffer.from(buffer, byteOffset, byteLength).toString();
17568
+ return Buffer2.from(buffer, byteOffset, byteLength).toString();
17500
17569
  };
17501
17570
  encodeInvariant = 'Buffer.from("")';
17502
17571
  } else {
@@ -17873,10 +17942,12 @@ is not a problem with esbuild. You need to fix your environment instead.
17873
17942
  let color = getFlag(options, keys, "color", mustBeBoolean);
17874
17943
  let logLevel = getFlag(options, keys, "logLevel", mustBeString);
17875
17944
  let logLimit = getFlag(options, keys, "logLimit", mustBeInteger);
17945
+ let logStyle = getFlag(options, keys, "logStyle", mustBeString);
17876
17946
  if (color !== void 0) flags.push(`--color=${color}`);
17877
17947
  else if (isTTY2) flags.push(`--color=true`);
17878
17948
  flags.push(`--log-level=${logLevel || logLevelDefault}`);
17879
17949
  flags.push(`--log-limit=${logLimit || 0}`);
17950
+ if (logStyle) flags.push(`--log-style=${logStyle}`);
17880
17951
  }
17881
17952
  function validateStringValue(value, what, key) {
17882
17953
  if (typeof value !== "string") {
@@ -18225,8 +18296,8 @@ is not a problem with esbuild. You need to fix your environment instead.
18225
18296
  if (isFirstPacket) {
18226
18297
  isFirstPacket = false;
18227
18298
  let binaryVersion = String.fromCharCode(...bytes);
18228
- if (binaryVersion !== "0.27.7") {
18229
- throw new Error(`Cannot start service: Host version "${"0.27.7"}" does not match binary version ${quote(binaryVersion)}`);
18299
+ if (binaryVersion !== "0.28.2") {
18300
+ throw new Error(`Cannot start service: Host version "${"0.28.2"}" does not match binary version ${quote(binaryVersion)}`);
18230
18301
  }
18231
18302
  return;
18232
18303
  }
@@ -18365,6 +18436,7 @@ is not a problem with esbuild. You need to fix your environment instead.
18365
18436
  let kind = getFlag(options, keys, "kind", mustBeString);
18366
18437
  let color = getFlag(options, keys, "color", mustBeBoolean);
18367
18438
  let terminalWidth = getFlag(options, keys, "terminalWidth", mustBeInteger);
18439
+ let logStyle = getFlag(options, keys, "logStyle", mustBeString);
18368
18440
  checkForInvalidFlags(options, keys, `in ${callName}() call`);
18369
18441
  if (kind === void 0) throw new Error(`Missing "kind" in ${callName}() call`);
18370
18442
  if (kind !== "error" && kind !== "warning") throw new Error(`Expected "kind" to be "error" or "warning" in ${callName}() call`);
@@ -18375,6 +18447,7 @@ is not a problem with esbuild. You need to fix your environment instead.
18375
18447
  };
18376
18448
  if (color !== void 0) request.color = color;
18377
18449
  if (terminalWidth !== void 0) request.terminalWidth = terminalWidth;
18450
+ if (logStyle !== void 0) request.logStyle = logStyle;
18378
18451
  sendRequest(refs, request, (error2, response) => {
18379
18452
  if (error2) return callback(new Error(error2), null);
18380
18453
  callback(null, response.messages);
@@ -19358,7 +19431,7 @@ for your current platform.`);
19358
19431
  "node_modules",
19359
19432
  ".cache",
19360
19433
  "esbuild",
19361
- `pnpapi-${pkg.replace("/", "-")}-${"0.27.7"}-${path.basename(subpath)}`
19434
+ `pnpapi-${pkg.replace("/", "-")}-${"0.28.2"}-${path.basename(subpath)}`
19362
19435
  );
19363
19436
  if (!fs3.existsSync(binTargetPath)) {
19364
19437
  fs3.mkdirSync(path.dirname(binTargetPath), { recursive: true });
@@ -19391,7 +19464,7 @@ for your current platform.`);
19391
19464
  }
19392
19465
  }
19393
19466
  var _a;
19394
- var isInternalWorkerThread = ((_a = worker_threads == null ? void 0 : worker_threads.workerData) == null ? void 0 : _a.esbuildVersion) === "0.27.7";
19467
+ var isInternalWorkerThread = ((_a = worker_threads == null ? void 0 : worker_threads.workerData) == null ? void 0 : _a.esbuildVersion) === "0.28.2";
19395
19468
  var esbuildCommandAndArgs = () => {
19396
19469
  if ((!ESBUILD_BINARY_PATH || false) && (path2.basename(__filename) !== "main.js" || path2.basename(__dirname) !== "lib")) {
19397
19470
  throw new Error(
@@ -19458,7 +19531,7 @@ More information: The file containing the code for esbuild's JavaScript API (${_
19458
19531
  }
19459
19532
  }
19460
19533
  };
19461
- var version = "0.27.7";
19534
+ var version = "0.28.2";
19462
19535
  var build2 = (options) => ensureServiceIsRunning().build(options);
19463
19536
  var context = (buildOptions) => ensureServiceIsRunning().context(buildOptions);
19464
19537
  var transform = (input, options) => ensureServiceIsRunning().transform(input, options);
@@ -19561,7 +19634,7 @@ More information: The file containing the code for esbuild's JavaScript API (${_
19561
19634
  var ensureServiceIsRunning = () => {
19562
19635
  if (longLivedService) return longLivedService;
19563
19636
  let [command, args] = esbuildCommandAndArgs();
19564
- let child = child_process.spawn(command, args.concat(`--service=${"0.27.7"}`, "--ping"), {
19637
+ let child = child_process.spawn(command, args.concat(`--service=${"0.28.2"}`, "--ping"), {
19565
19638
  windowsHide: true,
19566
19639
  stdio: ["pipe", "pipe", "inherit"],
19567
19640
  cwd: defaultWD
@@ -19665,7 +19738,7 @@ More information: The file containing the code for esbuild's JavaScript API (${_
19665
19738
  esbuild: node_exports
19666
19739
  });
19667
19740
  callback(service);
19668
- let stdout2 = child_process.execFileSync(command, args.concat(`--service=${"0.27.7"}`), {
19741
+ let stdout2 = child_process.execFileSync(command, args.concat(`--service=${"0.28.2"}`), {
19669
19742
  cwd: defaultWD,
19670
19743
  windowsHide: true,
19671
19744
  input: stdin2,
@@ -19685,7 +19758,7 @@ More information: The file containing the code for esbuild's JavaScript API (${_
19685
19758
  var startWorkerThreadService = (worker_threads2) => {
19686
19759
  let { port1: mainPort, port2: workerPort } = new worker_threads2.MessageChannel();
19687
19760
  let worker = new worker_threads2.Worker(__filename, {
19688
- workerData: { workerPort, defaultWD, esbuildVersion: "0.27.7" },
19761
+ workerData: { workerPort, defaultWD, esbuildVersion: "0.28.2" },
19689
19762
  transferList: [workerPort],
19690
19763
  // From node's documentation: https://nodejs.org/api/worker_threads.html
19691
19764
  //
@@ -19821,7 +19894,7 @@ __export(bundle_edge_function_exports, {
19821
19894
  bundleEdgeFunction: () => bundleEdgeFunction
19822
19895
  });
19823
19896
  import fs2 from "node:fs";
19824
- import { resolve as resolve4, dirname as dirname5, join as join4 } from "node:path";
19897
+ import { resolve as resolve4, dirname as dirname5, join as join4, relative as relative3, sep as sep2 } from "node:path";
19825
19898
  function detectWorkspace() {
19826
19899
  let currentDir = process.cwd();
19827
19900
  const maxDepth = 10;
@@ -19903,25 +19976,19 @@ function createDenoEdgePlugin(workspace, denoImports, functionsDir) {
19903
19976
  setup(build2) {
19904
19977
  build2.onResolve({ filter: /^@donotdev\/functions\/.+/ }, (args) => {
19905
19978
  const subpath = args.path.replace("@donotdev/functions/", "");
19906
- if (workspace.type === "dndev") {
19907
- return {
19908
- path: resolve4(
19909
- workspace.root,
19910
- "packages",
19911
- "functions",
19912
- "src",
19913
- subpath,
19914
- "index.ts"
19915
- )
19916
- };
19979
+ const packageDir = workspace.type === "dndev" ? resolve4(workspace.root, "packages", "functions") : resolveFrameworkPackage("@donotdev/functions", functionsDir);
19980
+ if (!packageDir) {
19981
+ throw new Error(
19982
+ `@donotdev/functions not found from ${functionsDir}. Install it in the app.`
19983
+ );
19917
19984
  }
19918
- const resolved = resolvePackageExport(
19919
- "@donotdev/functions",
19920
- `./${subpath}`,
19921
- functionsDir
19922
- );
19923
- if (resolved) return { path: resolved };
19924
- return null;
19985
+ const entry = resolve4(packageDir, "src", subpath, "index.ts");
19986
+ if (!fs2.existsSync(entry)) {
19987
+ throw new Error(
19988
+ `${args.path} has no source entry at ${entry}. Check the import path.`
19989
+ );
19990
+ }
19991
+ return { path: entry };
19925
19992
  });
19926
19993
  build2.onResolve({ filter: /^@donotdev\/core$/ }, (args) => {
19927
19994
  if (workspace.type === "dndev") {
@@ -20040,6 +20107,7 @@ function createDenoEdgePlugin(workspace, denoImports, functionsDir) {
20040
20107
  build2.onResolve({ filter: /.*/ }, (args) => {
20041
20108
  if (args.kind === "entry-point") return null;
20042
20109
  if (args.path.startsWith(".") || args.path.startsWith("/")) return null;
20110
+ if (args.path.startsWith("node:")) return { path: args.path, external: true };
20043
20111
  if (args.path.startsWith("@donotdev/")) return null;
20044
20112
  const packageRoot = args.path.startsWith("@") ? args.path.split("/").slice(0, 2).join("/") : args.path.split("/")[0];
20045
20113
  if (packageRoot && ALWAYS_BUNDLE.has(packageRoot)) return null;
@@ -20054,6 +20122,72 @@ function createDenoEdgePlugin(workspace, denoImports, functionsDir) {
20054
20122
  }
20055
20123
  };
20056
20124
  }
20125
+ function importChain(metafile, entry, target) {
20126
+ const previous = /* @__PURE__ */ new Map([[entry, null]]);
20127
+ const queue = [entry];
20128
+ while (queue.length > 0) {
20129
+ const current = queue.shift();
20130
+ if (current === target) break;
20131
+ for (const imported of metafile.inputs[current]?.imports ?? []) {
20132
+ if (previous.has(imported.path)) continue;
20133
+ previous.set(imported.path, current);
20134
+ queue.push(imported.path);
20135
+ }
20136
+ }
20137
+ if (!previous.has(target)) return [target];
20138
+ const chain = [];
20139
+ for (let at = target; at !== null; at = previous.get(at) ?? null) {
20140
+ chain.unshift(at);
20141
+ }
20142
+ return chain;
20143
+ }
20144
+ function assertEdgeBoundary(metafile, entryPointPath, workspace, functionsDir) {
20145
+ const isFrameworkModule = (input) => {
20146
+ const absolute = resolve4(process.cwd(), input);
20147
+ if (absolute.startsWith(resolve4(functionsDir) + sep2)) return false;
20148
+ return absolute.includes(`${sep2}node_modules${sep2}@donotdev${sep2}`) || workspace.type === "dndev" && absolute.startsWith(resolve4(workspace.root, "packages") + sep2);
20149
+ };
20150
+ const entry = relative3(process.cwd(), entryPointPath).split(sep2).join("/");
20151
+ if (!metafile.inputs[entry]) {
20152
+ throw new Error(`Edge bundle metafile has no input for ${entryPointPath}`);
20153
+ }
20154
+ const output = Object.values(metafile.outputs)[0];
20155
+ if (!output) throw new Error("Edge bundle metafile has no output");
20156
+ const bundled = Object.entries(output.inputs).filter(([, info2]) => info2.bytesInOutput > 0).map(([input]) => input);
20157
+ const externals = output.imports.filter((imported) => imported.external).map((imported) => imported.path);
20158
+ const firstHit = /* @__PURE__ */ new Map();
20159
+ for (const { label, pattern, frameworkOnly } of EDGE_FORBIDDEN) {
20160
+ const input = bundled.find((path) => pattern.test(path));
20161
+ if (input) {
20162
+ firstHit.set(label, { module: input, importer: input });
20163
+ continue;
20164
+ }
20165
+ const hit = externals.filter((path) => pattern.test(path)).flatMap((external) => {
20166
+ const importers = bundled.filter(
20167
+ (path) => metafile.inputs[path]?.imports.some(
20168
+ (imported) => imported.external && imported.path === external
20169
+ )
20170
+ );
20171
+ return (importers.length > 0 ? importers : [entry]).map((importer) => ({
20172
+ module: external,
20173
+ importer
20174
+ }));
20175
+ }).find(({ importer }) => !frameworkOnly || isFrameworkModule(importer));
20176
+ if (hit) firstHit.set(label, hit);
20177
+ }
20178
+ if (firstHit.size > 0) {
20179
+ const violations = [...firstHit].map(([label, { module, importer }]) => {
20180
+ const chain = importChain(metafile, entry, importer);
20181
+ if (module !== importer) chain.push(module);
20182
+ return `${label}:
20183
+ ${chain.join("\n \u2192 ")}`;
20184
+ });
20185
+ throw new Error(
20186
+ `Edge function ${entryPointPath} would load modules that do not belong in a Supabase Edge Function:
20187
+ ` + 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."
20188
+ );
20189
+ }
20190
+ }
20057
20191
  async function bundleEdgeFunction(options) {
20058
20192
  const { entryPointPath, functionsDir } = options;
20059
20193
  const workspace = detectWorkspace();
@@ -20110,7 +20244,8 @@ async function bundleEdgeFunction(options) {
20110
20244
  plugins: [createDenoEdgePlugin(workspace, denoImports, functionsDir)],
20111
20245
  mainFields: ["module", "main"],
20112
20246
  conditions: ["import", "module"],
20113
- logLevel: "warning"
20247
+ logLevel: "warning",
20248
+ metafile: true
20114
20249
  };
20115
20250
  const result = await (0, import_esbuild.build)(config);
20116
20251
  if (result.errors.length > 0) {
@@ -20118,6 +20253,7 @@ async function bundleEdgeFunction(options) {
20118
20253
  throw new Error(`Edge function bundling failed:
20119
20254
  ${errorMessages}`);
20120
20255
  }
20256
+ assertEdgeBoundary(result.metafile, entryPointPath, workspace, functionsDir);
20121
20257
  if (result.warnings.length > 0) {
20122
20258
  for (const warning of result.warnings) {
20123
20259
  log2.debug(`[bundle-edge] Warning: ${warning.text}`);
@@ -20153,7 +20289,7 @@ async function buildSupabaseEdgeFunctions(functionsDir) {
20153
20289
  });
20154
20290
  const outputPath = join4(buildDir, `${functionName}.js`);
20155
20291
  fs2.writeFileSync(outputPath, bundled, "utf8");
20156
- const size = Buffer.byteLength(bundled, "utf8");
20292
+ const size = Buffer2.byteLength(bundled, "utf8");
20157
20293
  results.push({ name: functionName, outputPath, size });
20158
20294
  log2.info(` ${functionName} \u2192 ${(size / 1024).toFixed(1)} KB`);
20159
20295
  } catch (error2) {
@@ -20171,7 +20307,7 @@ ${errors.length} function(s) failed to bundle`);
20171
20307
  All ${results.length} function(s) built to ${buildDir}`);
20172
20308
  return { success: true, functions: results, errors: [] };
20173
20309
  }
20174
- var import_esbuild, ALWAYS_BUNDLE;
20310
+ var import_esbuild, ALWAYS_BUNDLE, EDGE_FORBIDDEN;
20175
20311
  var init_bundle_edge_function = __esm({
20176
20312
  "packages/tooling/src/utils/bundle-edge-function.ts"() {
20177
20313
  "use strict";
@@ -20180,6 +20316,19 @@ var init_bundle_edge_function = __esm({
20180
20316
  init_cli_output();
20181
20317
  init_pathResolver();
20182
20318
  ALWAYS_BUNDLE = /* @__PURE__ */ new Set(["valibot"]);
20319
+ EDGE_FORBIDDEN = [
20320
+ { label: "firebase-admin", pattern: /(^|[/:])firebase-admin(\/|$)/ },
20321
+ { label: "firebase-functions", pattern: /(^|[/:])firebase-functions(\/|$)/ },
20322
+ {
20323
+ label: "@donotdev/firebase",
20324
+ pattern: /(^|[/:])@donotdev\/firebase(\/|$)|(^|\/)providers\/firebase\//
20325
+ },
20326
+ {
20327
+ label: "client code (@donotdev/utils client)",
20328
+ pattern: /core\/utils\/src\/client\//
20329
+ },
20330
+ { label: "react", pattern: /(^|[/:])react(\/|$)/, frameworkOnly: true }
20331
+ ];
20183
20332
  }
20184
20333
  });
20185
20334
 
@@ -21723,6 +21872,7 @@ async function deployRules(appDir, serviceAccountPath, projectId, config, option
21723
21872
  init_utils2();
21724
21873
  import { execFileSync } from "node:child_process";
21725
21874
  import { createHash } from "node:crypto";
21875
+ import { readlinkSync } from "node:fs";
21726
21876
  init_vercel_api();
21727
21877
  init_vercel_token();
21728
21878
  init_cli_output();
@@ -21732,6 +21882,7 @@ init_secrets_resolver();
21732
21882
  var UPLOAD_BATCH_SIZE = 10;
21733
21883
  var POLL_INTERVAL_MS = 3e3;
21734
21884
  var POLL_MAX_ATTEMPTS = 100;
21885
+ var SYMLINK_MODE = 41471;
21735
21886
  function apiHeaders(token, extra) {
21736
21887
  return { Authorization: `Bearer ${token}`, ...extra };
21737
21888
  }
@@ -21747,10 +21898,14 @@ async function collectDistFiles(distDir) {
21747
21898
  });
21748
21899
  for (const entry of entries) {
21749
21900
  const fullPath = joinPath(dir, entry.name);
21750
- if (entry.isDirectory()) {
21901
+ const isDir = entry.isDirectory() || entry.isSymbolicLink() && statSync2(fullPath)?.isDirectory() === true;
21902
+ if (isDir) {
21751
21903
  await walk(fullPath);
21752
21904
  } else {
21753
21905
  const content = await read(fullPath, { format: "buffer" });
21906
+ if (!content) {
21907
+ throw new Error(`Cannot read ${fullPath} for upload`);
21908
+ }
21754
21909
  const sha = createHash("sha1").update(content).digest("hex");
21755
21910
  files.push({
21756
21911
  relativePath: getRelativePathBetween(distDir, fullPath),
@@ -21764,7 +21919,7 @@ async function collectDistFiles(distDir) {
21764
21919
  await walk(distDir);
21765
21920
  return files;
21766
21921
  }
21767
- async function collectVercelOutputFiles(appDir) {
21922
+ async function collectVercelOutputFiles(appDir, repoRoot) {
21768
21923
  const outputRoot = joinPath(appDir, ".vercel/output");
21769
21924
  if (!pathExists(outputRoot)) return [];
21770
21925
  const files = [];
@@ -21774,10 +21929,14 @@ async function collectVercelOutputFiles(appDir) {
21774
21929
  });
21775
21930
  for (const entry of entries) {
21776
21931
  const fullPath = joinPath(dir, entry.name);
21777
- if (entry.isDirectory()) {
21932
+ const isDir = entry.isDirectory() || entry.isSymbolicLink() && statSync2(fullPath)?.isDirectory() === true;
21933
+ if (isDir) {
21778
21934
  await walk(fullPath);
21779
21935
  } else {
21780
21936
  const content = await read(fullPath, { format: "buffer" });
21937
+ if (!content) {
21938
+ throw new Error(`Cannot read ${fullPath} for upload`);
21939
+ }
21781
21940
  const sha = createHash("sha1").update(content).digest("hex");
21782
21941
  files.push({
21783
21942
  relativePath: getRelativePathBetween(appDir, fullPath),
@@ -21789,7 +21948,39 @@ async function collectVercelOutputFiles(appDir) {
21789
21948
  }
21790
21949
  }
21791
21950
  await walk(outputRoot);
21792
- return files;
21951
+ const mapped = [];
21952
+ for (const file of files) {
21953
+ if (!file.relativePath.endsWith(".func/.vc-config.json")) continue;
21954
+ const config = JSON.parse(file.content.toString("utf8"));
21955
+ const funcDir = file.relativePath.slice(0, -"/.vc-config.json".length);
21956
+ for (const [target, source] of Object.entries(config.filePathMap ?? {})) {
21957
+ const sourcePath = joinPath(repoRoot, source);
21958
+ if (lstatSync3(sourcePath)?.isSymbolicLink()) {
21959
+ const linkTarget = Buffer2.from(readlinkSync(sourcePath), "utf8");
21960
+ mapped.push({
21961
+ relativePath: `${funcDir}/${target}`,
21962
+ content: linkTarget,
21963
+ sha: createHash("sha1").update(linkTarget).digest("hex"),
21964
+ size: linkTarget.byteLength,
21965
+ mode: SYMLINK_MODE
21966
+ });
21967
+ continue;
21968
+ }
21969
+ const content = await read(sourcePath, { format: "buffer" });
21970
+ if (!content) {
21971
+ throw new Error(
21972
+ `filePathMap of ${funcDir}: cannot read ${sourcePath} (resolved from the repository root)`
21973
+ );
21974
+ }
21975
+ mapped.push({
21976
+ relativePath: `${funcDir}/${target}`,
21977
+ content,
21978
+ sha: createHash("sha1").update(content).digest("hex"),
21979
+ size: content.byteLength
21980
+ });
21981
+ }
21982
+ }
21983
+ return [...files, ...mapped];
21793
21984
  }
21794
21985
  function runVercelBuild(appDir, projectRoot) {
21795
21986
  const result = resolveVercelCredentials(appDir, projectRoot);
@@ -21919,7 +22110,7 @@ function buildOutputConfig(appDir, mode = "spa") {
21919
22110
  }
21920
22111
  const config = { version: 3, routes };
21921
22112
  const json = JSON.stringify(config, null, 2);
21922
- const content = Buffer.from(json);
22113
+ const content = Buffer2.from(json);
21923
22114
  const sha = createHash("sha1").update(content).digest("hex");
21924
22115
  log2.debug(`Build Output config.json: ${routes.length} routes`);
21925
22116
  return {
@@ -21938,7 +22129,8 @@ async function createDeployment(files, token, orgId, projectId, projectName) {
21938
22129
  files: files.map((f) => ({
21939
22130
  file: f.relativePath,
21940
22131
  sha: f.sha,
21941
- size: f.size
22132
+ size: f.size,
22133
+ ...f.mode !== void 0 ? { mode: f.mode } : {}
21942
22134
  })),
21943
22135
  projectSettings: {
21944
22136
  buildCommand: "",
@@ -22013,7 +22205,7 @@ async function waitForReady(deploymentId, token, orgId) {
22013
22205
  }
22014
22206
  throw new Error("Deployment timed out (5+ minutes)");
22015
22207
  }
22016
- async function deployVercelFrontend(appDir, config, framework = "unknown") {
22208
+ async function deployVercelFrontend(appDir, repoRoot, config, framework = "unknown") {
22017
22209
  const result = resolveVercelCredentials(appDir);
22018
22210
  if ("missing" in result) {
22019
22211
  const missing = result.missing ?? [];
@@ -22051,7 +22243,7 @@ async function deployVercelFrontend(appDir, config, framework = "unknown") {
22051
22243
  );
22052
22244
  }
22053
22245
  log2.info("Collecting .vercel/output files...");
22054
- const outputFiles = await collectVercelOutputFiles(appDir);
22246
+ const outputFiles = await collectVercelOutputFiles(appDir, repoRoot);
22055
22247
  if (outputFiles.length === 0) {
22056
22248
  throw new Error(
22057
22249
  ".vercel/output is empty \u2014 vercel build may have failed."
@@ -22482,11 +22674,20 @@ async function main2(options = {}) {
22482
22674
  ...serviceAccountPath ? [`Service Account: ${serviceAccountPath}`] : []
22483
22675
  ].join("\n");
22484
22676
  note(configNote, "Deployment Configuration");
22677
+ if (options.dryRun) {
22678
+ outro("Dry run: build checked, nothing uploaded or deployed.");
22679
+ return;
22680
+ }
22485
22681
  if (shouldDeployFirebaseFrontend && serviceAccountPath && config.project) {
22486
22682
  await deployFrontend(appDir, serviceAccountPath, config.project, config);
22487
22683
  }
22488
22684
  if (shouldDeployVercelFrontend) {
22489
- await deployVercelFrontend(appDir, config, appProviderInfo.framework);
22685
+ await deployVercelFrontend(
22686
+ appDir,
22687
+ projectRoot,
22688
+ config,
22689
+ appProviderInfo.framework
22690
+ );
22490
22691
  }
22491
22692
  if (shouldDeployFirebaseFunctions && serviceAccountPath && config.project) {
22492
22693
  const functionsEnvPath = joinPath(appDir, "functions", ".env");