@donotdev/cli 0.1.46 → 0.2.0

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 (47) 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 +105 -37
  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 +107 -43
  8. package/dist/bin/commands/create-project.js +107 -43
  9. package/dist/bin/commands/db.js +134098 -72027
  10. package/dist/bin/commands/deploy.js +310 -239
  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 +310 -239
  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 +317 -246
  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/functions-firebase/src/billing/handleStripeWebhook.ts.example +8 -18
  31. package/templates/functions-firebase/src/billing/index.ts.example +0 -1
  32. package/templates/functions-firebase/src/billing/refreshSubscriptionStatus.ts.example +4 -8
  33. package/templates/functions-firebase/src/index.ts.example +0 -1
  34. package/templates/functions-supabase/supabase/config.toml.example +4 -0
  35. package/templates/functions-supabase/supabase/functions/stripe-webhook/index.ts.example +12 -0
  36. package/templates/functions-supabase/supabase/migrations/20250101000005_webhook_events.sql +133 -0
  37. package/templates/functions-vercel/.env.example +9 -0
  38. package/templates/functions-vercel/src/api/billing/handleStripeWebhook.ts.example +12 -14
  39. package/templates/functions-vercel/src/api/billing/refreshSubscriptionStatus.ts.example +4 -14
  40. package/templates/overlay-supabase/src/config/providers.ts.example +2 -2
  41. package/templates/root-consumer/.claude/hooks/guard-write.sh.example +32 -0
  42. package/templates/root-consumer/.claude/hooks/record-lookup.sh.example +22 -0
  43. package/templates/root-consumer/.claude/rules/definition-of-done.md.example +7 -0
  44. package/templates/root-consumer/.claude/rules/framework.md.example +6 -0
  45. package/templates/root-consumer/.claude/settings.json.example +11 -1
  46. package/templates/functions-firebase/src/billing/processPaymentSuccess.ts.example +0 -14
  47. 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
  }
@@ -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
@@ -8771,7 +8835,7 @@ var init_typed_file_operations = __esm({
8771
8835
  });
8772
8836
 
8773
8837
  // packages/tooling/src/bundler/utils.ts
8774
- import { Buffer } from "node:buffer";
8838
+ import { Buffer as Buffer2 } from "node:buffer";
8775
8839
  import { copyFileSync as copyFileSync2, readFileSync as readFileSync2, writeFileSync as writeFileSync2, mkdirSync as mkdirSync2 } from "node:fs";
8776
8840
  import { createRequire as createRequire3 } from "node:module";
8777
8841
  import { dirname as dirname4, resolve as resolve3 } from "node:path";
@@ -8788,7 +8852,7 @@ var init_utils2 = __esm({
8788
8852
  globalThis.require = require2;
8789
8853
  globalThis.__filename = __filename;
8790
8854
  globalThis.__dirname = __dirname;
8791
- globalThis.Buffer = Buffer;
8855
+ globalThis.Buffer = Buffer2;
8792
8856
  globalThis.process = process;
8793
8857
  if (typeof global === "undefined") {
8794
8858
  globalThis.global = globalThis;
@@ -9035,9 +9099,9 @@ var init_error_handling = __esm({
9035
9099
  }
9036
9100
  });
9037
9101
 
9038
- // node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/nodes/identity.js
9102
+ // node_modules/.bun/yaml@2.9.1/node_modules/yaml/dist/nodes/identity.js
9039
9103
  var require_identity = __commonJS({
9040
- "node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/nodes/identity.js"(exports) {
9104
+ "node_modules/.bun/yaml@2.9.1/node_modules/yaml/dist/nodes/identity.js"(exports) {
9041
9105
  "use strict";
9042
9106
  init_utils2();
9043
9107
  var ALIAS = /* @__PURE__ */ Symbol.for("yaml.alias");
@@ -9093,9 +9157,9 @@ var require_identity = __commonJS({
9093
9157
  }
9094
9158
  });
9095
9159
 
9096
- // node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/visit.js
9160
+ // node_modules/.bun/yaml@2.9.1/node_modules/yaml/dist/visit.js
9097
9161
  var require_visit = __commonJS({
9098
- "node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/visit.js"(exports) {
9162
+ "node_modules/.bun/yaml@2.9.1/node_modules/yaml/dist/visit.js"(exports) {
9099
9163
  "use strict";
9100
9164
  init_utils2();
9101
9165
  var identity = require_identity();
@@ -9252,9 +9316,9 @@ var require_visit = __commonJS({
9252
9316
  }
9253
9317
  });
9254
9318
 
9255
- // node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/doc/directives.js
9319
+ // node_modules/.bun/yaml@2.9.1/node_modules/yaml/dist/doc/directives.js
9256
9320
  var require_directives = __commonJS({
9257
- "node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/doc/directives.js"(exports) {
9321
+ "node_modules/.bun/yaml@2.9.1/node_modules/yaml/dist/doc/directives.js"(exports) {
9258
9322
  "use strict";
9259
9323
  init_utils2();
9260
9324
  var identity = require_identity();
@@ -9424,9 +9488,9 @@ var require_directives = __commonJS({
9424
9488
  }
9425
9489
  });
9426
9490
 
9427
- // node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/doc/anchors.js
9491
+ // node_modules/.bun/yaml@2.9.1/node_modules/yaml/dist/doc/anchors.js
9428
9492
  var require_anchors = __commonJS({
9429
- "node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/doc/anchors.js"(exports) {
9493
+ "node_modules/.bun/yaml@2.9.1/node_modules/yaml/dist/doc/anchors.js"(exports) {
9430
9494
  "use strict";
9431
9495
  init_utils2();
9432
9496
  var identity = require_identity();
@@ -9495,9 +9559,9 @@ var require_anchors = __commonJS({
9495
9559
  }
9496
9560
  });
9497
9561
 
9498
- // node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/doc/applyReviver.js
9562
+ // node_modules/.bun/yaml@2.9.1/node_modules/yaml/dist/doc/applyReviver.js
9499
9563
  var require_applyReviver = __commonJS({
9500
- "node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/doc/applyReviver.js"(exports) {
9564
+ "node_modules/.bun/yaml@2.9.1/node_modules/yaml/dist/doc/applyReviver.js"(exports) {
9501
9565
  "use strict";
9502
9566
  init_utils2();
9503
9567
  function applyReviver(reviver, obj, key, val) {
@@ -9546,9 +9610,9 @@ var require_applyReviver = __commonJS({
9546
9610
  }
9547
9611
  });
9548
9612
 
9549
- // node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/nodes/toJS.js
9613
+ // node_modules/.bun/yaml@2.9.1/node_modules/yaml/dist/nodes/toJS.js
9550
9614
  var require_toJS = __commonJS({
9551
- "node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/nodes/toJS.js"(exports) {
9615
+ "node_modules/.bun/yaml@2.9.1/node_modules/yaml/dist/nodes/toJS.js"(exports) {
9552
9616
  "use strict";
9553
9617
  init_utils2();
9554
9618
  var identity = require_identity();
@@ -9577,9 +9641,9 @@ var require_toJS = __commonJS({
9577
9641
  }
9578
9642
  });
9579
9643
 
9580
- // node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/nodes/Node.js
9644
+ // node_modules/.bun/yaml@2.9.1/node_modules/yaml/dist/nodes/Node.js
9581
9645
  var require_Node = __commonJS({
9582
- "node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/nodes/Node.js"(exports) {
9646
+ "node_modules/.bun/yaml@2.9.1/node_modules/yaml/dist/nodes/Node.js"(exports) {
9583
9647
  "use strict";
9584
9648
  init_utils2();
9585
9649
  var applyReviver = require_applyReviver();
@@ -9619,9 +9683,9 @@ var require_Node = __commonJS({
9619
9683
  }
9620
9684
  });
9621
9685
 
9622
- // node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/nodes/Alias.js
9686
+ // node_modules/.bun/yaml@2.9.1/node_modules/yaml/dist/nodes/Alias.js
9623
9687
  var require_Alias = __commonJS({
9624
- "node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/nodes/Alias.js"(exports) {
9688
+ "node_modules/.bun/yaml@2.9.1/node_modules/yaml/dist/nodes/Alias.js"(exports) {
9625
9689
  "use strict";
9626
9690
  init_utils2();
9627
9691
  var anchors = require_anchors();
@@ -9667,36 +9731,38 @@ var require_Alias = __commonJS({
9667
9731
  if (node.anchor === this.source)
9668
9732
  found = node;
9669
9733
  }
9734
+ if (found && ctx) {
9735
+ const { anchors: anchors2, doc: doc2, maxAliasCount } = ctx;
9736
+ let data = anchors2.get(found);
9737
+ if (!data) {
9738
+ toJS.toJS(found, null, ctx);
9739
+ data = anchors2.get(found);
9740
+ }
9741
+ if (data?.res === void 0) {
9742
+ const msg = "This should not happen: Alias anchor was not resolved?";
9743
+ throw new ReferenceError(msg);
9744
+ }
9745
+ if (maxAliasCount >= 0) {
9746
+ data.count += 1;
9747
+ if (data.aliasCount === 0)
9748
+ data.aliasCount = getAliasCount(doc2, found, anchors2);
9749
+ if (data.count * data.aliasCount > maxAliasCount) {
9750
+ const msg = "Excessive alias count indicates a resource exhaustion attack";
9751
+ throw new ReferenceError(msg);
9752
+ }
9753
+ }
9754
+ }
9670
9755
  return found;
9671
9756
  }
9672
9757
  toJSON(_arg, ctx) {
9673
9758
  if (!ctx)
9674
9759
  return { source: this.source };
9675
- const { anchors: anchors2, doc, maxAliasCount } = ctx;
9676
- const source = this.resolve(doc, ctx);
9760
+ const source = this.resolve(ctx.doc, ctx);
9677
9761
  if (!source) {
9678
9762
  const msg = `Unresolved alias (the anchor must be set before the alias): ${this.source}`;
9679
9763
  throw new ReferenceError(msg);
9680
9764
  }
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;
9765
+ return ctx.anchors.get(source).res;
9700
9766
  }
9701
9767
  toString(ctx, _onComment, _onChompKeep) {
9702
9768
  const src = `*${this.source}`;
@@ -9736,9 +9802,9 @@ var require_Alias = __commonJS({
9736
9802
  }
9737
9803
  });
9738
9804
 
9739
- // node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/nodes/Scalar.js
9805
+ // node_modules/.bun/yaml@2.9.1/node_modules/yaml/dist/nodes/Scalar.js
9740
9806
  var require_Scalar = __commonJS({
9741
- "node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/nodes/Scalar.js"(exports) {
9807
+ "node_modules/.bun/yaml@2.9.1/node_modules/yaml/dist/nodes/Scalar.js"(exports) {
9742
9808
  "use strict";
9743
9809
  init_utils2();
9744
9810
  var identity = require_identity();
@@ -9767,9 +9833,9 @@ var require_Scalar = __commonJS({
9767
9833
  }
9768
9834
  });
9769
9835
 
9770
- // node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/doc/createNode.js
9836
+ // node_modules/.bun/yaml@2.9.1/node_modules/yaml/dist/doc/createNode.js
9771
9837
  var require_createNode = __commonJS({
9772
- "node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/doc/createNode.js"(exports) {
9838
+ "node_modules/.bun/yaml@2.9.1/node_modules/yaml/dist/doc/createNode.js"(exports) {
9773
9839
  "use strict";
9774
9840
  init_utils2();
9775
9841
  var Alias = require_Alias();
@@ -9843,9 +9909,9 @@ var require_createNode = __commonJS({
9843
9909
  }
9844
9910
  });
9845
9911
 
9846
- // node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/nodes/Collection.js
9912
+ // node_modules/.bun/yaml@2.9.1/node_modules/yaml/dist/nodes/Collection.js
9847
9913
  var require_Collection = __commonJS({
9848
- "node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/nodes/Collection.js"(exports) {
9914
+ "node_modules/.bun/yaml@2.9.1/node_modules/yaml/dist/nodes/Collection.js"(exports) {
9849
9915
  "use strict";
9850
9916
  init_utils2();
9851
9917
  var createNode = require_createNode();
@@ -9987,9 +10053,9 @@ var require_Collection = __commonJS({
9987
10053
  }
9988
10054
  });
9989
10055
 
9990
- // node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/stringify/stringifyComment.js
10056
+ // node_modules/.bun/yaml@2.9.1/node_modules/yaml/dist/stringify/stringifyComment.js
9991
10057
  var require_stringifyComment = __commonJS({
9992
- "node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/stringify/stringifyComment.js"(exports) {
10058
+ "node_modules/.bun/yaml@2.9.1/node_modules/yaml/dist/stringify/stringifyComment.js"(exports) {
9993
10059
  "use strict";
9994
10060
  init_utils2();
9995
10061
  var stringifyComment = (str) => str.replace(/^(?!$)(?: $)?/gm, "#");
@@ -10005,9 +10071,9 @@ var require_stringifyComment = __commonJS({
10005
10071
  }
10006
10072
  });
10007
10073
 
10008
- // node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/stringify/foldFlowLines.js
10074
+ // node_modules/.bun/yaml@2.9.1/node_modules/yaml/dist/stringify/foldFlowLines.js
10009
10075
  var require_foldFlowLines = __commonJS({
10010
- "node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/stringify/foldFlowLines.js"(exports) {
10076
+ "node_modules/.bun/yaml@2.9.1/node_modules/yaml/dist/stringify/foldFlowLines.js"(exports) {
10011
10077
  "use strict";
10012
10078
  init_utils2();
10013
10079
  var FOLD_FLOW = "flow";
@@ -10142,9 +10208,9 @@ ${indent}${text2.slice(fold + 1, end2)}`;
10142
10208
  }
10143
10209
  });
10144
10210
 
10145
- // node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/stringify/stringifyString.js
10211
+ // node_modules/.bun/yaml@2.9.1/node_modules/yaml/dist/stringify/stringifyString.js
10146
10212
  var require_stringifyString = __commonJS({
10147
- "node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/stringify/stringifyString.js"(exports) {
10213
+ "node_modules/.bun/yaml@2.9.1/node_modules/yaml/dist/stringify/stringifyString.js"(exports) {
10148
10214
  "use strict";
10149
10215
  init_utils2();
10150
10216
  var Scalar = require_Scalar();
@@ -10426,9 +10492,9 @@ ${indent}`);
10426
10492
  }
10427
10493
  });
10428
10494
 
10429
- // node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/stringify/stringify.js
10495
+ // node_modules/.bun/yaml@2.9.1/node_modules/yaml/dist/stringify/stringify.js
10430
10496
  var require_stringify2 = __commonJS({
10431
- "node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/stringify/stringify.js"(exports) {
10497
+ "node_modules/.bun/yaml@2.9.1/node_modules/yaml/dist/stringify/stringify.js"(exports) {
10432
10498
  "use strict";
10433
10499
  init_utils2();
10434
10500
  var anchors = require_anchors();
@@ -10551,9 +10617,9 @@ ${ctx.indent}${str}`;
10551
10617
  }
10552
10618
  });
10553
10619
 
10554
- // node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/stringify/stringifyPair.js
10620
+ // node_modules/.bun/yaml@2.9.1/node_modules/yaml/dist/stringify/stringifyPair.js
10555
10621
  var require_stringifyPair = __commonJS({
10556
- "node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/stringify/stringifyPair.js"(exports) {
10622
+ "node_modules/.bun/yaml@2.9.1/node_modules/yaml/dist/stringify/stringifyPair.js"(exports) {
10557
10623
  "use strict";
10558
10624
  init_utils2();
10559
10625
  var identity = require_identity();
@@ -10685,9 +10751,9 @@ ${ctx.indent}`;
10685
10751
  }
10686
10752
  });
10687
10753
 
10688
- // node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/log.js
10754
+ // node_modules/.bun/yaml@2.9.1/node_modules/yaml/dist/log.js
10689
10755
  var require_log = __commonJS({
10690
- "node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/log.js"(exports) {
10756
+ "node_modules/.bun/yaml@2.9.1/node_modules/yaml/dist/log.js"(exports) {
10691
10757
  "use strict";
10692
10758
  init_utils2();
10693
10759
  var node_process = __require("process");
@@ -10708,9 +10774,9 @@ var require_log = __commonJS({
10708
10774
  }
10709
10775
  });
10710
10776
 
10711
- // node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/schema/yaml-1.1/merge.js
10777
+ // node_modules/.bun/yaml@2.9.1/node_modules/yaml/dist/schema/yaml-1.1/merge.js
10712
10778
  var require_merge = __commonJS({
10713
- "node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/schema/yaml-1.1/merge.js"(exports) {
10779
+ "node_modules/.bun/yaml@2.9.1/node_modules/yaml/dist/schema/yaml-1.1/merge.js"(exports) {
10714
10780
  "use strict";
10715
10781
  init_utils2();
10716
10782
  var identity = require_identity();
@@ -10769,9 +10835,9 @@ var require_merge = __commonJS({
10769
10835
  }
10770
10836
  });
10771
10837
 
10772
- // node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/nodes/addPairToJSMap.js
10838
+ // node_modules/.bun/yaml@2.9.1/node_modules/yaml/dist/nodes/addPairToJSMap.js
10773
10839
  var require_addPairToJSMap = __commonJS({
10774
- "node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/nodes/addPairToJSMap.js"(exports) {
10840
+ "node_modules/.bun/yaml@2.9.1/node_modules/yaml/dist/nodes/addPairToJSMap.js"(exports) {
10775
10841
  "use strict";
10776
10842
  init_utils2();
10777
10843
  var log4 = require_log();
@@ -10834,9 +10900,9 @@ var require_addPairToJSMap = __commonJS({
10834
10900
  }
10835
10901
  });
10836
10902
 
10837
- // node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/nodes/Pair.js
10903
+ // node_modules/.bun/yaml@2.9.1/node_modules/yaml/dist/nodes/Pair.js
10838
10904
  var require_Pair = __commonJS({
10839
- "node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/nodes/Pair.js"(exports) {
10905
+ "node_modules/.bun/yaml@2.9.1/node_modules/yaml/dist/nodes/Pair.js"(exports) {
10840
10906
  "use strict";
10841
10907
  init_utils2();
10842
10908
  var createNode = require_createNode();
@@ -10875,9 +10941,9 @@ var require_Pair = __commonJS({
10875
10941
  }
10876
10942
  });
10877
10943
 
10878
- // node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/stringify/stringifyCollection.js
10944
+ // node_modules/.bun/yaml@2.9.1/node_modules/yaml/dist/stringify/stringifyCollection.js
10879
10945
  var require_stringifyCollection = __commonJS({
10880
- "node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/stringify/stringifyCollection.js"(exports) {
10946
+ "node_modules/.bun/yaml@2.9.1/node_modules/yaml/dist/stringify/stringifyCollection.js"(exports) {
10881
10947
  "use strict";
10882
10948
  init_utils2();
10883
10949
  var identity = require_identity();
@@ -11027,9 +11093,9 @@ ${indent}${end}`;
11027
11093
  }
11028
11094
  });
11029
11095
 
11030
- // node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/nodes/YAMLMap.js
11096
+ // node_modules/.bun/yaml@2.9.1/node_modules/yaml/dist/nodes/YAMLMap.js
11031
11097
  var require_YAMLMap = __commonJS({
11032
- "node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/nodes/YAMLMap.js"(exports) {
11098
+ "node_modules/.bun/yaml@2.9.1/node_modules/yaml/dist/nodes/YAMLMap.js"(exports) {
11033
11099
  "use strict";
11034
11100
  init_utils2();
11035
11101
  var stringifyCollection = require_stringifyCollection();
@@ -11172,9 +11238,9 @@ var require_YAMLMap = __commonJS({
11172
11238
  }
11173
11239
  });
11174
11240
 
11175
- // node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/schema/common/map.js
11241
+ // node_modules/.bun/yaml@2.9.1/node_modules/yaml/dist/schema/common/map.js
11176
11242
  var require_map = __commonJS({
11177
- "node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/schema/common/map.js"(exports) {
11243
+ "node_modules/.bun/yaml@2.9.1/node_modules/yaml/dist/schema/common/map.js"(exports) {
11178
11244
  "use strict";
11179
11245
  init_utils2();
11180
11246
  var identity = require_identity();
@@ -11195,9 +11261,9 @@ var require_map = __commonJS({
11195
11261
  }
11196
11262
  });
11197
11263
 
11198
- // node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/nodes/YAMLSeq.js
11264
+ // node_modules/.bun/yaml@2.9.1/node_modules/yaml/dist/nodes/YAMLSeq.js
11199
11265
  var require_YAMLSeq = __commonJS({
11200
- "node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/nodes/YAMLSeq.js"(exports) {
11266
+ "node_modules/.bun/yaml@2.9.1/node_modules/yaml/dist/nodes/YAMLSeq.js"(exports) {
11201
11267
  "use strict";
11202
11268
  init_utils2();
11203
11269
  var createNode = require_createNode();
@@ -11312,9 +11378,9 @@ var require_YAMLSeq = __commonJS({
11312
11378
  }
11313
11379
  });
11314
11380
 
11315
- // node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/schema/common/seq.js
11381
+ // node_modules/.bun/yaml@2.9.1/node_modules/yaml/dist/schema/common/seq.js
11316
11382
  var require_seq = __commonJS({
11317
- "node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/schema/common/seq.js"(exports) {
11383
+ "node_modules/.bun/yaml@2.9.1/node_modules/yaml/dist/schema/common/seq.js"(exports) {
11318
11384
  "use strict";
11319
11385
  init_utils2();
11320
11386
  var identity = require_identity();
@@ -11335,9 +11401,9 @@ var require_seq = __commonJS({
11335
11401
  }
11336
11402
  });
11337
11403
 
11338
- // node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/schema/common/string.js
11404
+ // node_modules/.bun/yaml@2.9.1/node_modules/yaml/dist/schema/common/string.js
11339
11405
  var require_string2 = __commonJS({
11340
- "node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/schema/common/string.js"(exports) {
11406
+ "node_modules/.bun/yaml@2.9.1/node_modules/yaml/dist/schema/common/string.js"(exports) {
11341
11407
  "use strict";
11342
11408
  init_utils2();
11343
11409
  var stringifyString = require_stringifyString();
@@ -11355,9 +11421,9 @@ var require_string2 = __commonJS({
11355
11421
  }
11356
11422
  });
11357
11423
 
11358
- // node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/schema/common/null.js
11424
+ // node_modules/.bun/yaml@2.9.1/node_modules/yaml/dist/schema/common/null.js
11359
11425
  var require_null = __commonJS({
11360
- "node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/schema/common/null.js"(exports) {
11426
+ "node_modules/.bun/yaml@2.9.1/node_modules/yaml/dist/schema/common/null.js"(exports) {
11361
11427
  "use strict";
11362
11428
  init_utils2();
11363
11429
  var Scalar = require_Scalar();
@@ -11374,9 +11440,9 @@ var require_null = __commonJS({
11374
11440
  }
11375
11441
  });
11376
11442
 
11377
- // node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/schema/core/bool.js
11443
+ // node_modules/.bun/yaml@2.9.1/node_modules/yaml/dist/schema/core/bool.js
11378
11444
  var require_bool = __commonJS({
11379
- "node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/schema/core/bool.js"(exports) {
11445
+ "node_modules/.bun/yaml@2.9.1/node_modules/yaml/dist/schema/core/bool.js"(exports) {
11380
11446
  "use strict";
11381
11447
  init_utils2();
11382
11448
  var Scalar = require_Scalar();
@@ -11399,9 +11465,9 @@ var require_bool = __commonJS({
11399
11465
  }
11400
11466
  });
11401
11467
 
11402
- // node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/stringify/stringifyNumber.js
11468
+ // node_modules/.bun/yaml@2.9.1/node_modules/yaml/dist/stringify/stringifyNumber.js
11403
11469
  var require_stringifyNumber = __commonJS({
11404
- "node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/stringify/stringifyNumber.js"(exports) {
11470
+ "node_modules/.bun/yaml@2.9.1/node_modules/yaml/dist/stringify/stringifyNumber.js"(exports) {
11405
11471
  "use strict";
11406
11472
  init_utils2();
11407
11473
  function stringifyNumber({ format, minFractionDigits, tag, value }) {
@@ -11427,9 +11493,9 @@ var require_stringifyNumber = __commonJS({
11427
11493
  }
11428
11494
  });
11429
11495
 
11430
- // node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/schema/core/float.js
11496
+ // node_modules/.bun/yaml@2.9.1/node_modules/yaml/dist/schema/core/float.js
11431
11497
  var require_float = __commonJS({
11432
- "node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/schema/core/float.js"(exports) {
11498
+ "node_modules/.bun/yaml@2.9.1/node_modules/yaml/dist/schema/core/float.js"(exports) {
11433
11499
  "use strict";
11434
11500
  init_utils2();
11435
11501
  var Scalar = require_Scalar();
@@ -11474,9 +11540,9 @@ var require_float = __commonJS({
11474
11540
  }
11475
11541
  });
11476
11542
 
11477
- // node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/schema/core/int.js
11543
+ // node_modules/.bun/yaml@2.9.1/node_modules/yaml/dist/schema/core/int.js
11478
11544
  var require_int = __commonJS({
11479
- "node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/schema/core/int.js"(exports) {
11545
+ "node_modules/.bun/yaml@2.9.1/node_modules/yaml/dist/schema/core/int.js"(exports) {
11480
11546
  "use strict";
11481
11547
  init_utils2();
11482
11548
  var stringifyNumber = require_stringifyNumber();
@@ -11520,9 +11586,9 @@ var require_int = __commonJS({
11520
11586
  }
11521
11587
  });
11522
11588
 
11523
- // node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/schema/core/schema.js
11589
+ // node_modules/.bun/yaml@2.9.1/node_modules/yaml/dist/schema/core/schema.js
11524
11590
  var require_schema = __commonJS({
11525
- "node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/schema/core/schema.js"(exports) {
11591
+ "node_modules/.bun/yaml@2.9.1/node_modules/yaml/dist/schema/core/schema.js"(exports) {
11526
11592
  "use strict";
11527
11593
  init_utils2();
11528
11594
  var map = require_map();
@@ -11549,9 +11615,9 @@ var require_schema = __commonJS({
11549
11615
  }
11550
11616
  });
11551
11617
 
11552
- // node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/schema/json/schema.js
11618
+ // node_modules/.bun/yaml@2.9.1/node_modules/yaml/dist/schema/json/schema.js
11553
11619
  var require_schema2 = __commonJS({
11554
- "node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/schema/json/schema.js"(exports) {
11620
+ "node_modules/.bun/yaml@2.9.1/node_modules/yaml/dist/schema/json/schema.js"(exports) {
11555
11621
  "use strict";
11556
11622
  init_utils2();
11557
11623
  var Scalar = require_Scalar();
@@ -11617,9 +11683,9 @@ var require_schema2 = __commonJS({
11617
11683
  }
11618
11684
  });
11619
11685
 
11620
- // node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/schema/yaml-1.1/binary.js
11686
+ // node_modules/.bun/yaml@2.9.1/node_modules/yaml/dist/schema/yaml-1.1/binary.js
11621
11687
  var require_binary = __commonJS({
11622
- "node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/schema/yaml-1.1/binary.js"(exports) {
11688
+ "node_modules/.bun/yaml@2.9.1/node_modules/yaml/dist/schema/yaml-1.1/binary.js"(exports) {
11623
11689
  "use strict";
11624
11690
  init_utils2();
11625
11691
  var node_buffer = __require("buffer");
@@ -11684,9 +11750,9 @@ var require_binary = __commonJS({
11684
11750
  }
11685
11751
  });
11686
11752
 
11687
- // node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/schema/yaml-1.1/pairs.js
11753
+ // node_modules/.bun/yaml@2.9.1/node_modules/yaml/dist/schema/yaml-1.1/pairs.js
11688
11754
  var require_pairs = __commonJS({
11689
- "node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/schema/yaml-1.1/pairs.js"(exports) {
11755
+ "node_modules/.bun/yaml@2.9.1/node_modules/yaml/dist/schema/yaml-1.1/pairs.js"(exports) {
11690
11756
  "use strict";
11691
11757
  init_utils2();
11692
11758
  var identity = require_identity();
@@ -11763,9 +11829,9 @@ ${cn.comment}` : item.comment;
11763
11829
  }
11764
11830
  });
11765
11831
 
11766
- // node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/schema/yaml-1.1/omap.js
11832
+ // node_modules/.bun/yaml@2.9.1/node_modules/yaml/dist/schema/yaml-1.1/omap.js
11767
11833
  var require_omap = __commonJS({
11768
- "node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/schema/yaml-1.1/omap.js"(exports) {
11834
+ "node_modules/.bun/yaml@2.9.1/node_modules/yaml/dist/schema/yaml-1.1/omap.js"(exports) {
11769
11835
  "use strict";
11770
11836
  init_utils2();
11771
11837
  var identity = require_identity();
@@ -11842,9 +11908,9 @@ var require_omap = __commonJS({
11842
11908
  }
11843
11909
  });
11844
11910
 
11845
- // node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/schema/yaml-1.1/bool.js
11911
+ // node_modules/.bun/yaml@2.9.1/node_modules/yaml/dist/schema/yaml-1.1/bool.js
11846
11912
  var require_bool2 = __commonJS({
11847
- "node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/schema/yaml-1.1/bool.js"(exports) {
11913
+ "node_modules/.bun/yaml@2.9.1/node_modules/yaml/dist/schema/yaml-1.1/bool.js"(exports) {
11848
11914
  "use strict";
11849
11915
  init_utils2();
11850
11916
  var Scalar = require_Scalar();
@@ -11875,9 +11941,9 @@ var require_bool2 = __commonJS({
11875
11941
  }
11876
11942
  });
11877
11943
 
11878
- // node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/schema/yaml-1.1/float.js
11944
+ // node_modules/.bun/yaml@2.9.1/node_modules/yaml/dist/schema/yaml-1.1/float.js
11879
11945
  var require_float2 = __commonJS({
11880
- "node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/schema/yaml-1.1/float.js"(exports) {
11946
+ "node_modules/.bun/yaml@2.9.1/node_modules/yaml/dist/schema/yaml-1.1/float.js"(exports) {
11881
11947
  "use strict";
11882
11948
  init_utils2();
11883
11949
  var Scalar = require_Scalar();
@@ -11925,9 +11991,9 @@ var require_float2 = __commonJS({
11925
11991
  }
11926
11992
  });
11927
11993
 
11928
- // node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/schema/yaml-1.1/int.js
11994
+ // node_modules/.bun/yaml@2.9.1/node_modules/yaml/dist/schema/yaml-1.1/int.js
11929
11995
  var require_int2 = __commonJS({
11930
- "node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/schema/yaml-1.1/int.js"(exports) {
11996
+ "node_modules/.bun/yaml@2.9.1/node_modules/yaml/dist/schema/yaml-1.1/int.js"(exports) {
11931
11997
  "use strict";
11932
11998
  init_utils2();
11933
11999
  var stringifyNumber = require_stringifyNumber();
@@ -12005,9 +12071,9 @@ var require_int2 = __commonJS({
12005
12071
  }
12006
12072
  });
12007
12073
 
12008
- // node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/schema/yaml-1.1/set.js
12074
+ // node_modules/.bun/yaml@2.9.1/node_modules/yaml/dist/schema/yaml-1.1/set.js
12009
12075
  var require_set = __commonJS({
12010
- "node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/schema/yaml-1.1/set.js"(exports) {
12076
+ "node_modules/.bun/yaml@2.9.1/node_modules/yaml/dist/schema/yaml-1.1/set.js"(exports) {
12011
12077
  "use strict";
12012
12078
  init_utils2();
12013
12079
  var identity = require_identity();
@@ -12095,9 +12161,9 @@ var require_set = __commonJS({
12095
12161
  }
12096
12162
  });
12097
12163
 
12098
- // node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/schema/yaml-1.1/timestamp.js
12164
+ // node_modules/.bun/yaml@2.9.1/node_modules/yaml/dist/schema/yaml-1.1/timestamp.js
12099
12165
  var require_timestamp = __commonJS({
12100
- "node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/schema/yaml-1.1/timestamp.js"(exports) {
12166
+ "node_modules/.bun/yaml@2.9.1/node_modules/yaml/dist/schema/yaml-1.1/timestamp.js"(exports) {
12101
12167
  "use strict";
12102
12168
  init_utils2();
12103
12169
  var stringifyNumber = require_stringifyNumber();
@@ -12184,9 +12250,9 @@ var require_timestamp = __commonJS({
12184
12250
  }
12185
12251
  });
12186
12252
 
12187
- // node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/schema/yaml-1.1/schema.js
12253
+ // node_modules/.bun/yaml@2.9.1/node_modules/yaml/dist/schema/yaml-1.1/schema.js
12188
12254
  var require_schema3 = __commonJS({
12189
- "node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/schema/yaml-1.1/schema.js"(exports) {
12255
+ "node_modules/.bun/yaml@2.9.1/node_modules/yaml/dist/schema/yaml-1.1/schema.js"(exports) {
12190
12256
  "use strict";
12191
12257
  init_utils2();
12192
12258
  var map = require_map();
@@ -12229,9 +12295,9 @@ var require_schema3 = __commonJS({
12229
12295
  }
12230
12296
  });
12231
12297
 
12232
- // node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/schema/tags.js
12298
+ // node_modules/.bun/yaml@2.9.1/node_modules/yaml/dist/schema/tags.js
12233
12299
  var require_tags = __commonJS({
12234
- "node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/schema/tags.js"(exports) {
12300
+ "node_modules/.bun/yaml@2.9.1/node_modules/yaml/dist/schema/tags.js"(exports) {
12235
12301
  "use strict";
12236
12302
  init_utils2();
12237
12303
  var map = require_map();
@@ -12324,9 +12390,9 @@ var require_tags = __commonJS({
12324
12390
  }
12325
12391
  });
12326
12392
 
12327
- // node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/schema/Schema.js
12393
+ // node_modules/.bun/yaml@2.9.1/node_modules/yaml/dist/schema/Schema.js
12328
12394
  var require_Schema = __commonJS({
12329
- "node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/schema/Schema.js"(exports) {
12395
+ "node_modules/.bun/yaml@2.9.1/node_modules/yaml/dist/schema/Schema.js"(exports) {
12330
12396
  "use strict";
12331
12397
  init_utils2();
12332
12398
  var identity = require_identity();
@@ -12357,9 +12423,9 @@ var require_Schema = __commonJS({
12357
12423
  }
12358
12424
  });
12359
12425
 
12360
- // node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/stringify/stringifyDocument.js
12426
+ // node_modules/.bun/yaml@2.9.1/node_modules/yaml/dist/stringify/stringifyDocument.js
12361
12427
  var require_stringifyDocument = __commonJS({
12362
- "node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/stringify/stringifyDocument.js"(exports) {
12428
+ "node_modules/.bun/yaml@2.9.1/node_modules/yaml/dist/stringify/stringifyDocument.js"(exports) {
12363
12429
  "use strict";
12364
12430
  init_utils2();
12365
12431
  var identity = require_identity();
@@ -12438,9 +12504,9 @@ var require_stringifyDocument = __commonJS({
12438
12504
  }
12439
12505
  });
12440
12506
 
12441
- // node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/doc/Document.js
12507
+ // node_modules/.bun/yaml@2.9.1/node_modules/yaml/dist/doc/Document.js
12442
12508
  var require_Document = __commonJS({
12443
- "node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/doc/Document.js"(exports) {
12509
+ "node_modules/.bun/yaml@2.9.1/node_modules/yaml/dist/doc/Document.js"(exports) {
12444
12510
  "use strict";
12445
12511
  init_utils2();
12446
12512
  var Alias = require_Alias();
@@ -12748,9 +12814,9 @@ var require_Document = __commonJS({
12748
12814
  }
12749
12815
  });
12750
12816
 
12751
- // node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/errors.js
12817
+ // node_modules/.bun/yaml@2.9.1/node_modules/yaml/dist/errors.js
12752
12818
  var require_errors = __commonJS({
12753
- "node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/errors.js"(exports) {
12819
+ "node_modules/.bun/yaml@2.9.1/node_modules/yaml/dist/errors.js"(exports) {
12754
12820
  "use strict";
12755
12821
  init_utils2();
12756
12822
  var YAMLError = class extends Error {
@@ -12814,9 +12880,9 @@ ${pointer}
12814
12880
  }
12815
12881
  });
12816
12882
 
12817
- // node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/compose/resolve-props.js
12883
+ // node_modules/.bun/yaml@2.9.1/node_modules/yaml/dist/compose/resolve-props.js
12818
12884
  var require_resolve_props = __commonJS({
12819
- "node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/compose/resolve-props.js"(exports) {
12885
+ "node_modules/.bun/yaml@2.9.1/node_modules/yaml/dist/compose/resolve-props.js"(exports) {
12820
12886
  "use strict";
12821
12887
  init_utils2();
12822
12888
  function resolveProps(tokens, { flow, indicator, next, offset, onError, parentIndent, startOnNewline }) {
@@ -12949,9 +13015,9 @@ var require_resolve_props = __commonJS({
12949
13015
  }
12950
13016
  });
12951
13017
 
12952
- // node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/compose/util-contains-newline.js
13018
+ // node_modules/.bun/yaml@2.9.1/node_modules/yaml/dist/compose/util-contains-newline.js
12953
13019
  var require_util_contains_newline = __commonJS({
12954
- "node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/compose/util-contains-newline.js"(exports) {
13020
+ "node_modules/.bun/yaml@2.9.1/node_modules/yaml/dist/compose/util-contains-newline.js"(exports) {
12955
13021
  "use strict";
12956
13022
  init_utils2();
12957
13023
  function containsNewline(key) {
@@ -12992,9 +13058,9 @@ var require_util_contains_newline = __commonJS({
12992
13058
  }
12993
13059
  });
12994
13060
 
12995
- // node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/compose/util-flow-indent-check.js
13061
+ // node_modules/.bun/yaml@2.9.1/node_modules/yaml/dist/compose/util-flow-indent-check.js
12996
13062
  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) {
13063
+ "node_modules/.bun/yaml@2.9.1/node_modules/yaml/dist/compose/util-flow-indent-check.js"(exports) {
12998
13064
  "use strict";
12999
13065
  init_utils2();
13000
13066
  var utilContainsNewline = require_util_contains_newline();
@@ -13011,9 +13077,9 @@ var require_util_flow_indent_check = __commonJS({
13011
13077
  }
13012
13078
  });
13013
13079
 
13014
- // node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/compose/util-map-includes.js
13080
+ // node_modules/.bun/yaml@2.9.1/node_modules/yaml/dist/compose/util-map-includes.js
13015
13081
  var require_util_map_includes = __commonJS({
13016
- "node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/compose/util-map-includes.js"(exports) {
13082
+ "node_modules/.bun/yaml@2.9.1/node_modules/yaml/dist/compose/util-map-includes.js"(exports) {
13017
13083
  "use strict";
13018
13084
  init_utils2();
13019
13085
  var identity = require_identity();
@@ -13028,9 +13094,9 @@ var require_util_map_includes = __commonJS({
13028
13094
  }
13029
13095
  });
13030
13096
 
13031
- // node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/compose/resolve-block-map.js
13097
+ // node_modules/.bun/yaml@2.9.1/node_modules/yaml/dist/compose/resolve-block-map.js
13032
13098
  var require_resolve_block_map = __commonJS({
13033
- "node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/compose/resolve-block-map.js"(exports) {
13099
+ "node_modules/.bun/yaml@2.9.1/node_modules/yaml/dist/compose/resolve-block-map.js"(exports) {
13034
13100
  "use strict";
13035
13101
  init_utils2();
13036
13102
  var Pair = require_Pair();
@@ -13137,9 +13203,9 @@ var require_resolve_block_map = __commonJS({
13137
13203
  }
13138
13204
  });
13139
13205
 
13140
- // node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/compose/resolve-block-seq.js
13206
+ // node_modules/.bun/yaml@2.9.1/node_modules/yaml/dist/compose/resolve-block-seq.js
13141
13207
  var require_resolve_block_seq = __commonJS({
13142
- "node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/compose/resolve-block-seq.js"(exports) {
13208
+ "node_modules/.bun/yaml@2.9.1/node_modules/yaml/dist/compose/resolve-block-seq.js"(exports) {
13143
13209
  "use strict";
13144
13210
  init_utils2();
13145
13211
  var YAMLSeq = require_YAMLSeq();
@@ -13189,9 +13255,9 @@ var require_resolve_block_seq = __commonJS({
13189
13255
  }
13190
13256
  });
13191
13257
 
13192
- // node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/compose/resolve-end.js
13258
+ // node_modules/.bun/yaml@2.9.1/node_modules/yaml/dist/compose/resolve-end.js
13193
13259
  var require_resolve_end = __commonJS({
13194
- "node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/compose/resolve-end.js"(exports) {
13260
+ "node_modules/.bun/yaml@2.9.1/node_modules/yaml/dist/compose/resolve-end.js"(exports) {
13195
13261
  "use strict";
13196
13262
  init_utils2();
13197
13263
  function resolveEnd(end, offset, reqSpace, onError) {
@@ -13233,9 +13299,9 @@ var require_resolve_end = __commonJS({
13233
13299
  }
13234
13300
  });
13235
13301
 
13236
- // node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/compose/resolve-flow-collection.js
13302
+ // node_modules/.bun/yaml@2.9.1/node_modules/yaml/dist/compose/resolve-flow-collection.js
13237
13303
  var require_resolve_flow_collection = __commonJS({
13238
- "node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/compose/resolve-flow-collection.js"(exports) {
13304
+ "node_modules/.bun/yaml@2.9.1/node_modules/yaml/dist/compose/resolve-flow-collection.js"(exports) {
13239
13305
  "use strict";
13240
13306
  init_utils2();
13241
13307
  var identity = require_identity();
@@ -13428,9 +13494,9 @@ var require_resolve_flow_collection = __commonJS({
13428
13494
  }
13429
13495
  });
13430
13496
 
13431
- // node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/compose/compose-collection.js
13497
+ // node_modules/.bun/yaml@2.9.1/node_modules/yaml/dist/compose/compose-collection.js
13432
13498
  var require_compose_collection = __commonJS({
13433
- "node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/compose/compose-collection.js"(exports) {
13499
+ "node_modules/.bun/yaml@2.9.1/node_modules/yaml/dist/compose/compose-collection.js"(exports) {
13434
13500
  "use strict";
13435
13501
  init_utils2();
13436
13502
  var identity = require_identity();
@@ -13494,9 +13560,9 @@ var require_compose_collection = __commonJS({
13494
13560
  }
13495
13561
  });
13496
13562
 
13497
- // node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/compose/resolve-block-scalar.js
13563
+ // node_modules/.bun/yaml@2.9.1/node_modules/yaml/dist/compose/resolve-block-scalar.js
13498
13564
  var require_resolve_block_scalar = __commonJS({
13499
- "node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/compose/resolve-block-scalar.js"(exports) {
13565
+ "node_modules/.bun/yaml@2.9.1/node_modules/yaml/dist/compose/resolve-block-scalar.js"(exports) {
13500
13566
  "use strict";
13501
13567
  init_utils2();
13502
13568
  var Scalar = require_Scalar();
@@ -13678,9 +13744,9 @@ var require_resolve_block_scalar = __commonJS({
13678
13744
  }
13679
13745
  });
13680
13746
 
13681
- // node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/compose/resolve-flow-scalar.js
13747
+ // node_modules/.bun/yaml@2.9.1/node_modules/yaml/dist/compose/resolve-flow-scalar.js
13682
13748
  var require_resolve_flow_scalar = __commonJS({
13683
- "node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/compose/resolve-flow-scalar.js"(exports) {
13749
+ "node_modules/.bun/yaml@2.9.1/node_modules/yaml/dist/compose/resolve-flow-scalar.js"(exports) {
13684
13750
  "use strict";
13685
13751
  init_utils2();
13686
13752
  var Scalar = require_Scalar();
@@ -13748,37 +13814,38 @@ var require_resolve_flow_scalar = __commonJS({
13748
13814
  }
13749
13815
  if (badChar)
13750
13816
  onError(0, "BAD_SCALAR_START", `Plain value cannot start with ${badChar}`);
13751
- return foldLines(source);
13817
+ return unfoldLines(source);
13752
13818
  }
13753
13819
  function singleQuotedValue(source, onError) {
13754
13820
  if (source[source.length - 1] !== "'" || source.length === 1)
13755
13821
  onError(source.length, "MISSING_CHAR", "Missing closing 'quote");
13756
- return foldLines(source.slice(1, -1)).replace(/''/g, "'");
13822
+ return unfoldLines(source.slice(1, -1)).replace(/''/g, "'");
13757
13823
  }
13758
- function foldLines(source) {
13759
- let first, line;
13824
+ function unfoldLines(source) {
13825
+ const line = /(.*?)\r?\n/sy;
13826
+ let match = line.exec(source);
13827
+ if (!match)
13828
+ return source;
13829
+ let trimEnd, trimBoth;
13760
13830
  try {
13761
- first = new RegExp("(.*?)(?<![ ])[ ]*\r?\n", "sy");
13762
- line = new RegExp("[ ]*(.*?)(?:(?<![ ])[ ]*)?\r?\n", "sy");
13831
+ trimEnd = new RegExp("(?<![ ])[ ]+$");
13832
+ trimBoth = new RegExp("^[ ]+|(?<![ ])[ ]+$", "g");
13763
13833
  } catch {
13764
- first = /(.*?)[ \t]*\r?\n/sy;
13765
- line = /[ \t]*(.*?)[ \t]*\r?\n/sy;
13834
+ trimEnd = /[ \t]+$/;
13835
+ trimBoth = /^[ \t]+|[ \t]+$/g;
13766
13836
  }
13767
- let match = first.exec(source);
13768
- if (!match)
13769
- return source;
13770
- let res = match[1];
13837
+ let res = match[1].replace(trimEnd, "");
13771
13838
  let sep2 = " ";
13772
- let pos = first.lastIndex;
13773
- line.lastIndex = pos;
13839
+ let pos = line.lastIndex;
13774
13840
  while (match = line.exec(source)) {
13775
- if (match[1] === "") {
13841
+ const lm = match[1].replace(trimBoth, "");
13842
+ if (lm === "") {
13776
13843
  if (sep2 === "\n")
13777
13844
  res += sep2;
13778
13845
  else
13779
13846
  sep2 = "\n";
13780
13847
  } else {
13781
- res += sep2 + match[1];
13848
+ res += sep2 + lm;
13782
13849
  sep2 = " ";
13783
13850
  }
13784
13851
  pos = line.lastIndex;
@@ -13899,9 +13966,9 @@ var require_resolve_flow_scalar = __commonJS({
13899
13966
  }
13900
13967
  });
13901
13968
 
13902
- // node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/compose/compose-scalar.js
13969
+ // node_modules/.bun/yaml@2.9.1/node_modules/yaml/dist/compose/compose-scalar.js
13903
13970
  var require_compose_scalar = __commonJS({
13904
- "node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/compose/compose-scalar.js"(exports) {
13971
+ "node_modules/.bun/yaml@2.9.1/node_modules/yaml/dist/compose/compose-scalar.js"(exports) {
13905
13972
  "use strict";
13906
13973
  init_utils2();
13907
13974
  var identity = require_identity();
@@ -13981,9 +14048,9 @@ var require_compose_scalar = __commonJS({
13981
14048
  }
13982
14049
  });
13983
14050
 
13984
- // node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/compose/util-empty-scalar-position.js
14051
+ // node_modules/.bun/yaml@2.9.1/node_modules/yaml/dist/compose/util-empty-scalar-position.js
13985
14052
  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) {
14053
+ "node_modules/.bun/yaml@2.9.1/node_modules/yaml/dist/compose/util-empty-scalar-position.js"(exports) {
13987
14054
  "use strict";
13988
14055
  init_utils2();
13989
14056
  function emptyScalarPosition(offset, before, pos) {
@@ -14012,9 +14079,9 @@ var require_util_empty_scalar_position = __commonJS({
14012
14079
  }
14013
14080
  });
14014
14081
 
14015
- // node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/compose/compose-node.js
14082
+ // node_modules/.bun/yaml@2.9.1/node_modules/yaml/dist/compose/compose-node.js
14016
14083
  var require_compose_node = __commonJS({
14017
- "node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/compose/compose-node.js"(exports) {
14084
+ "node_modules/.bun/yaml@2.9.1/node_modules/yaml/dist/compose/compose-node.js"(exports) {
14018
14085
  "use strict";
14019
14086
  init_utils2();
14020
14087
  var Alias = require_Alias();
@@ -14119,9 +14186,9 @@ var require_compose_node = __commonJS({
14119
14186
  }
14120
14187
  });
14121
14188
 
14122
- // node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/compose/compose-doc.js
14189
+ // node_modules/.bun/yaml@2.9.1/node_modules/yaml/dist/compose/compose-doc.js
14123
14190
  var require_compose_doc = __commonJS({
14124
- "node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/compose/compose-doc.js"(exports) {
14191
+ "node_modules/.bun/yaml@2.9.1/node_modules/yaml/dist/compose/compose-doc.js"(exports) {
14125
14192
  "use strict";
14126
14193
  init_utils2();
14127
14194
  var Document = require_Document();
@@ -14163,9 +14230,9 @@ var require_compose_doc = __commonJS({
14163
14230
  }
14164
14231
  });
14165
14232
 
14166
- // node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/compose/composer.js
14233
+ // node_modules/.bun/yaml@2.9.1/node_modules/yaml/dist/compose/composer.js
14167
14234
  var require_composer = __commonJS({
14168
- "node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/compose/composer.js"(exports) {
14235
+ "node_modules/.bun/yaml@2.9.1/node_modules/yaml/dist/compose/composer.js"(exports) {
14169
14236
  "use strict";
14170
14237
  init_utils2();
14171
14238
  var node_process = __require("process");
@@ -14372,9 +14439,9 @@ ${end.comment}` : end.comment;
14372
14439
  }
14373
14440
  });
14374
14441
 
14375
- // node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/parse/cst-scalar.js
14442
+ // node_modules/.bun/yaml@2.9.1/node_modules/yaml/dist/parse/cst-scalar.js
14376
14443
  var require_cst_scalar = __commonJS({
14377
- "node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/parse/cst-scalar.js"(exports) {
14444
+ "node_modules/.bun/yaml@2.9.1/node_modules/yaml/dist/parse/cst-scalar.js"(exports) {
14378
14445
  "use strict";
14379
14446
  init_utils2();
14380
14447
  var resolveBlockScalar = require_resolve_block_scalar();
@@ -14558,9 +14625,9 @@ var require_cst_scalar = __commonJS({
14558
14625
  }
14559
14626
  });
14560
14627
 
14561
- // node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/parse/cst-stringify.js
14628
+ // node_modules/.bun/yaml@2.9.1/node_modules/yaml/dist/parse/cst-stringify.js
14562
14629
  var require_cst_stringify = __commonJS({
14563
- "node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/parse/cst-stringify.js"(exports) {
14630
+ "node_modules/.bun/yaml@2.9.1/node_modules/yaml/dist/parse/cst-stringify.js"(exports) {
14564
14631
  "use strict";
14565
14632
  init_utils2();
14566
14633
  var stringify2 = (cst) => "type" in cst ? stringifyToken(cst) : stringifyItem(cst);
@@ -14620,9 +14687,9 @@ var require_cst_stringify = __commonJS({
14620
14687
  }
14621
14688
  });
14622
14689
 
14623
- // node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/parse/cst-visit.js
14690
+ // node_modules/.bun/yaml@2.9.1/node_modules/yaml/dist/parse/cst-visit.js
14624
14691
  var require_cst_visit = __commonJS({
14625
- "node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/parse/cst-visit.js"(exports) {
14692
+ "node_modules/.bun/yaml@2.9.1/node_modules/yaml/dist/parse/cst-visit.js"(exports) {
14626
14693
  "use strict";
14627
14694
  init_utils2();
14628
14695
  var BREAK = /* @__PURE__ */ Symbol("break visit");
@@ -14683,9 +14750,9 @@ var require_cst_visit = __commonJS({
14683
14750
  }
14684
14751
  });
14685
14752
 
14686
- // node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/parse/cst.js
14753
+ // node_modules/.bun/yaml@2.9.1/node_modules/yaml/dist/parse/cst.js
14687
14754
  var require_cst = __commonJS({
14688
- "node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/parse/cst.js"(exports) {
14755
+ "node_modules/.bun/yaml@2.9.1/node_modules/yaml/dist/parse/cst.js"(exports) {
14689
14756
  "use strict";
14690
14757
  init_utils2();
14691
14758
  var cstScalar = require_cst_scalar();
@@ -14786,9 +14853,9 @@ var require_cst = __commonJS({
14786
14853
  }
14787
14854
  });
14788
14855
 
14789
- // node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/parse/lexer.js
14856
+ // node_modules/.bun/yaml@2.9.1/node_modules/yaml/dist/parse/lexer.js
14790
14857
  var require_lexer = __commonJS({
14791
- "node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/parse/lexer.js"(exports) {
14858
+ "node_modules/.bun/yaml@2.9.1/node_modules/yaml/dist/parse/lexer.js"(exports) {
14792
14859
  "use strict";
14793
14860
  init_utils2();
14794
14861
  var cst = require_cst();
@@ -15376,9 +15443,9 @@ var require_lexer = __commonJS({
15376
15443
  }
15377
15444
  });
15378
15445
 
15379
- // node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/parse/line-counter.js
15446
+ // node_modules/.bun/yaml@2.9.1/node_modules/yaml/dist/parse/line-counter.js
15380
15447
  var require_line_counter = __commonJS({
15381
- "node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/parse/line-counter.js"(exports) {
15448
+ "node_modules/.bun/yaml@2.9.1/node_modules/yaml/dist/parse/line-counter.js"(exports) {
15382
15449
  "use strict";
15383
15450
  init_utils2();
15384
15451
  var LineCounter = class {
@@ -15408,9 +15475,9 @@ var require_line_counter = __commonJS({
15408
15475
  }
15409
15476
  });
15410
15477
 
15411
- // node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/parse/parser.js
15478
+ // node_modules/.bun/yaml@2.9.1/node_modules/yaml/dist/parse/parser.js
15412
15479
  var require_parser = __commonJS({
15413
- "node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/parse/parser.js"(exports) {
15480
+ "node_modules/.bun/yaml@2.9.1/node_modules/yaml/dist/parse/parser.js"(exports) {
15414
15481
  "use strict";
15415
15482
  init_utils2();
15416
15483
  var node_process = __require("process");
@@ -16283,9 +16350,9 @@ var require_parser = __commonJS({
16283
16350
  }
16284
16351
  });
16285
16352
 
16286
- // node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/public-api.js
16353
+ // node_modules/.bun/yaml@2.9.1/node_modules/yaml/dist/public-api.js
16287
16354
  var require_public_api = __commonJS({
16288
- "node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/public-api.js"(exports) {
16355
+ "node_modules/.bun/yaml@2.9.1/node_modules/yaml/dist/public-api.js"(exports) {
16289
16356
  "use strict";
16290
16357
  init_utils2();
16291
16358
  var composer = require_composer();
@@ -16381,9 +16448,9 @@ var require_public_api = __commonJS({
16381
16448
  }
16382
16449
  });
16383
16450
 
16384
- // node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/index.js
16451
+ // node_modules/.bun/yaml@2.9.1/node_modules/yaml/dist/index.js
16385
16452
  var require_dist = __commonJS({
16386
- "node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/index.js"(exports) {
16453
+ "node_modules/.bun/yaml@2.9.1/node_modules/yaml/dist/index.js"(exports) {
16387
16454
  "use strict";
16388
16455
  init_utils2();
16389
16456
  var composer = require_composer();
@@ -17113,7 +17180,7 @@ function uploadServiceAccountToGitHub(appDir, repo, dryRun = false, staging = fa
17113
17180
  const contentRaw = readSync(filePath, { format: "text" });
17114
17181
  const content = typeof contentRaw === "string" ? contentRaw : null;
17115
17182
  if (!content) return;
17116
- const encoded = Buffer.from(content).toString("base64");
17183
+ const encoded = Buffer2.from(content).toString("base64");
17117
17184
  setGitHubSecret(secretName, encoded, repo, dryRun);
17118
17185
  }
17119
17186
  async function main(options = {}) {
@@ -17313,9 +17380,9 @@ var init_sync_secrets = __esm({
17313
17380
  }
17314
17381
  });
17315
17382
 
17316
- // node_modules/.bun/esbuild@0.27.7/node_modules/esbuild/lib/main.js
17383
+ // node_modules/.bun/esbuild@0.28.2/node_modules/esbuild/lib/main.js
17317
17384
  var require_main = __commonJS({
17318
- "node_modules/.bun/esbuild@0.27.7/node_modules/esbuild/lib/main.js"(exports, module) {
17385
+ "node_modules/.bun/esbuild@0.28.2/node_modules/esbuild/lib/main.js"(exports, module) {
17319
17386
  "use strict";
17320
17387
  init_utils2();
17321
17388
  var __defProp2 = Object.defineProperty;
@@ -17492,11 +17559,11 @@ var require_main = __commonJS({
17492
17559
  encodeUTF8 = (text2) => encoder.encode(text2);
17493
17560
  decodeUTF8 = (bytes) => decoder.decode(bytes);
17494
17561
  encodeInvariant = 'new TextEncoder().encode("")';
17495
- } else if (typeof Buffer !== "undefined") {
17496
- encodeUTF8 = (text2) => Buffer.from(text2);
17562
+ } else if (typeof Buffer2 !== "undefined") {
17563
+ encodeUTF8 = (text2) => Buffer2.from(text2);
17497
17564
  decodeUTF8 = (bytes) => {
17498
17565
  let { buffer, byteOffset, byteLength } = bytes;
17499
- return Buffer.from(buffer, byteOffset, byteLength).toString();
17566
+ return Buffer2.from(buffer, byteOffset, byteLength).toString();
17500
17567
  };
17501
17568
  encodeInvariant = 'Buffer.from("")';
17502
17569
  } else {
@@ -17873,10 +17940,12 @@ is not a problem with esbuild. You need to fix your environment instead.
17873
17940
  let color = getFlag(options, keys, "color", mustBeBoolean);
17874
17941
  let logLevel = getFlag(options, keys, "logLevel", mustBeString);
17875
17942
  let logLimit = getFlag(options, keys, "logLimit", mustBeInteger);
17943
+ let logStyle = getFlag(options, keys, "logStyle", mustBeString);
17876
17944
  if (color !== void 0) flags.push(`--color=${color}`);
17877
17945
  else if (isTTY2) flags.push(`--color=true`);
17878
17946
  flags.push(`--log-level=${logLevel || logLevelDefault}`);
17879
17947
  flags.push(`--log-limit=${logLimit || 0}`);
17948
+ if (logStyle) flags.push(`--log-style=${logStyle}`);
17880
17949
  }
17881
17950
  function validateStringValue(value, what, key) {
17882
17951
  if (typeof value !== "string") {
@@ -18225,8 +18294,8 @@ is not a problem with esbuild. You need to fix your environment instead.
18225
18294
  if (isFirstPacket) {
18226
18295
  isFirstPacket = false;
18227
18296
  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)}`);
18297
+ if (binaryVersion !== "0.28.2") {
18298
+ throw new Error(`Cannot start service: Host version "${"0.28.2"}" does not match binary version ${quote(binaryVersion)}`);
18230
18299
  }
18231
18300
  return;
18232
18301
  }
@@ -18365,6 +18434,7 @@ is not a problem with esbuild. You need to fix your environment instead.
18365
18434
  let kind = getFlag(options, keys, "kind", mustBeString);
18366
18435
  let color = getFlag(options, keys, "color", mustBeBoolean);
18367
18436
  let terminalWidth = getFlag(options, keys, "terminalWidth", mustBeInteger);
18437
+ let logStyle = getFlag(options, keys, "logStyle", mustBeString);
18368
18438
  checkForInvalidFlags(options, keys, `in ${callName}() call`);
18369
18439
  if (kind === void 0) throw new Error(`Missing "kind" in ${callName}() call`);
18370
18440
  if (kind !== "error" && kind !== "warning") throw new Error(`Expected "kind" to be "error" or "warning" in ${callName}() call`);
@@ -18375,6 +18445,7 @@ is not a problem with esbuild. You need to fix your environment instead.
18375
18445
  };
18376
18446
  if (color !== void 0) request.color = color;
18377
18447
  if (terminalWidth !== void 0) request.terminalWidth = terminalWidth;
18448
+ if (logStyle !== void 0) request.logStyle = logStyle;
18378
18449
  sendRequest(refs, request, (error2, response) => {
18379
18450
  if (error2) return callback(new Error(error2), null);
18380
18451
  callback(null, response.messages);
@@ -19358,7 +19429,7 @@ for your current platform.`);
19358
19429
  "node_modules",
19359
19430
  ".cache",
19360
19431
  "esbuild",
19361
- `pnpapi-${pkg.replace("/", "-")}-${"0.27.7"}-${path.basename(subpath)}`
19432
+ `pnpapi-${pkg.replace("/", "-")}-${"0.28.2"}-${path.basename(subpath)}`
19362
19433
  );
19363
19434
  if (!fs3.existsSync(binTargetPath)) {
19364
19435
  fs3.mkdirSync(path.dirname(binTargetPath), { recursive: true });
@@ -19391,7 +19462,7 @@ for your current platform.`);
19391
19462
  }
19392
19463
  }
19393
19464
  var _a;
19394
- var isInternalWorkerThread = ((_a = worker_threads == null ? void 0 : worker_threads.workerData) == null ? void 0 : _a.esbuildVersion) === "0.27.7";
19465
+ var isInternalWorkerThread = ((_a = worker_threads == null ? void 0 : worker_threads.workerData) == null ? void 0 : _a.esbuildVersion) === "0.28.2";
19395
19466
  var esbuildCommandAndArgs = () => {
19396
19467
  if ((!ESBUILD_BINARY_PATH || false) && (path2.basename(__filename) !== "main.js" || path2.basename(__dirname) !== "lib")) {
19397
19468
  throw new Error(
@@ -19458,7 +19529,7 @@ More information: The file containing the code for esbuild's JavaScript API (${_
19458
19529
  }
19459
19530
  }
19460
19531
  };
19461
- var version = "0.27.7";
19532
+ var version = "0.28.2";
19462
19533
  var build2 = (options) => ensureServiceIsRunning().build(options);
19463
19534
  var context = (buildOptions) => ensureServiceIsRunning().context(buildOptions);
19464
19535
  var transform = (input, options) => ensureServiceIsRunning().transform(input, options);
@@ -19561,7 +19632,7 @@ More information: The file containing the code for esbuild's JavaScript API (${_
19561
19632
  var ensureServiceIsRunning = () => {
19562
19633
  if (longLivedService) return longLivedService;
19563
19634
  let [command, args] = esbuildCommandAndArgs();
19564
- let child = child_process.spawn(command, args.concat(`--service=${"0.27.7"}`, "--ping"), {
19635
+ let child = child_process.spawn(command, args.concat(`--service=${"0.28.2"}`, "--ping"), {
19565
19636
  windowsHide: true,
19566
19637
  stdio: ["pipe", "pipe", "inherit"],
19567
19638
  cwd: defaultWD
@@ -19665,7 +19736,7 @@ More information: The file containing the code for esbuild's JavaScript API (${_
19665
19736
  esbuild: node_exports
19666
19737
  });
19667
19738
  callback(service);
19668
- let stdout2 = child_process.execFileSync(command, args.concat(`--service=${"0.27.7"}`), {
19739
+ let stdout2 = child_process.execFileSync(command, args.concat(`--service=${"0.28.2"}`), {
19669
19740
  cwd: defaultWD,
19670
19741
  windowsHide: true,
19671
19742
  input: stdin2,
@@ -19685,7 +19756,7 @@ More information: The file containing the code for esbuild's JavaScript API (${_
19685
19756
  var startWorkerThreadService = (worker_threads2) => {
19686
19757
  let { port1: mainPort, port2: workerPort } = new worker_threads2.MessageChannel();
19687
19758
  let worker = new worker_threads2.Worker(__filename, {
19688
- workerData: { workerPort, defaultWD, esbuildVersion: "0.27.7" },
19759
+ workerData: { workerPort, defaultWD, esbuildVersion: "0.28.2" },
19689
19760
  transferList: [workerPort],
19690
19761
  // From node's documentation: https://nodejs.org/api/worker_threads.html
19691
19762
  //
@@ -20153,7 +20224,7 @@ async function buildSupabaseEdgeFunctions(functionsDir) {
20153
20224
  });
20154
20225
  const outputPath = join4(buildDir, `${functionName}.js`);
20155
20226
  fs2.writeFileSync(outputPath, bundled, "utf8");
20156
- const size = Buffer.byteLength(bundled, "utf8");
20227
+ const size = Buffer2.byteLength(bundled, "utf8");
20157
20228
  results.push({ name: functionName, outputPath, size });
20158
20229
  log2.info(` ${functionName} \u2192 ${(size / 1024).toFixed(1)} KB`);
20159
20230
  } catch (error2) {
@@ -21919,7 +21990,7 @@ function buildOutputConfig(appDir, mode = "spa") {
21919
21990
  }
21920
21991
  const config = { version: 3, routes };
21921
21992
  const json = JSON.stringify(config, null, 2);
21922
- const content = Buffer.from(json);
21993
+ const content = Buffer2.from(json);
21923
21994
  const sha = createHash("sha1").update(content).digest("hex");
21924
21995
  log2.debug(`Build Output config.json: ${routes.length} routes`);
21925
21996
  return {