@releasekit/release 0.7.16 → 0.7.18

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. package/dist/cli.js +1714 -254
  2. package/dist/dispatcher.js +1790 -330
  3. package/package.json +6 -6
@@ -40,8 +40,527 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
40
40
  mod
41
41
  ));
42
42
 
43
+ // ../../node_modules/.pnpm/chalk@5.6.2/node_modules/chalk/source/vendor/ansi-styles/index.js
44
+ function assembleStyles() {
45
+ const codes = /* @__PURE__ */ new Map();
46
+ for (const [groupName, group] of Object.entries(styles)) {
47
+ for (const [styleName, style] of Object.entries(group)) {
48
+ styles[styleName] = {
49
+ open: `\x1B[${style[0]}m`,
50
+ close: `\x1B[${style[1]}m`
51
+ };
52
+ group[styleName] = styles[styleName];
53
+ codes.set(style[0], style[1]);
54
+ }
55
+ Object.defineProperty(styles, groupName, {
56
+ value: group,
57
+ enumerable: false
58
+ });
59
+ }
60
+ Object.defineProperty(styles, "codes", {
61
+ value: codes,
62
+ enumerable: false
63
+ });
64
+ styles.color.close = "\x1B[39m";
65
+ styles.bgColor.close = "\x1B[49m";
66
+ styles.color.ansi = wrapAnsi16();
67
+ styles.color.ansi256 = wrapAnsi256();
68
+ styles.color.ansi16m = wrapAnsi16m();
69
+ styles.bgColor.ansi = wrapAnsi16(ANSI_BACKGROUND_OFFSET);
70
+ styles.bgColor.ansi256 = wrapAnsi256(ANSI_BACKGROUND_OFFSET);
71
+ styles.bgColor.ansi16m = wrapAnsi16m(ANSI_BACKGROUND_OFFSET);
72
+ Object.defineProperties(styles, {
73
+ rgbToAnsi256: {
74
+ value(red, green, blue) {
75
+ if (red === green && green === blue) {
76
+ if (red < 8) {
77
+ return 16;
78
+ }
79
+ if (red > 248) {
80
+ return 231;
81
+ }
82
+ return Math.round((red - 8) / 247 * 24) + 232;
83
+ }
84
+ return 16 + 36 * Math.round(red / 255 * 5) + 6 * Math.round(green / 255 * 5) + Math.round(blue / 255 * 5);
85
+ },
86
+ enumerable: false
87
+ },
88
+ hexToRgb: {
89
+ value(hex) {
90
+ const matches = /[a-f\d]{6}|[a-f\d]{3}/i.exec(hex.toString(16));
91
+ if (!matches) {
92
+ return [0, 0, 0];
93
+ }
94
+ let [colorString] = matches;
95
+ if (colorString.length === 3) {
96
+ colorString = [...colorString].map((character) => character + character).join("");
97
+ }
98
+ const integer = Number.parseInt(colorString, 16);
99
+ return [
100
+ /* eslint-disable no-bitwise */
101
+ integer >> 16 & 255,
102
+ integer >> 8 & 255,
103
+ integer & 255
104
+ /* eslint-enable no-bitwise */
105
+ ];
106
+ },
107
+ enumerable: false
108
+ },
109
+ hexToAnsi256: {
110
+ value: (hex) => styles.rgbToAnsi256(...styles.hexToRgb(hex)),
111
+ enumerable: false
112
+ },
113
+ ansi256ToAnsi: {
114
+ value(code) {
115
+ if (code < 8) {
116
+ return 30 + code;
117
+ }
118
+ if (code < 16) {
119
+ return 90 + (code - 8);
120
+ }
121
+ let red;
122
+ let green;
123
+ let blue;
124
+ if (code >= 232) {
125
+ red = ((code - 232) * 10 + 8) / 255;
126
+ green = red;
127
+ blue = red;
128
+ } else {
129
+ code -= 16;
130
+ const remainder = code % 36;
131
+ red = Math.floor(code / 36) / 5;
132
+ green = Math.floor(remainder / 6) / 5;
133
+ blue = remainder % 6 / 5;
134
+ }
135
+ const value = Math.max(red, green, blue) * 2;
136
+ if (value === 0) {
137
+ return 30;
138
+ }
139
+ let result = 30 + (Math.round(blue) << 2 | Math.round(green) << 1 | Math.round(red));
140
+ if (value === 2) {
141
+ result += 60;
142
+ }
143
+ return result;
144
+ },
145
+ enumerable: false
146
+ },
147
+ rgbToAnsi: {
148
+ value: (red, green, blue) => styles.ansi256ToAnsi(styles.rgbToAnsi256(red, green, blue)),
149
+ enumerable: false
150
+ },
151
+ hexToAnsi: {
152
+ value: (hex) => styles.ansi256ToAnsi(styles.hexToAnsi256(hex)),
153
+ enumerable: false
154
+ }
155
+ });
156
+ return styles;
157
+ }
158
+ var ANSI_BACKGROUND_OFFSET, wrapAnsi16, wrapAnsi256, wrapAnsi16m, styles, modifierNames, foregroundColorNames, backgroundColorNames, colorNames, ansiStyles, ansi_styles_default;
159
+ var init_ansi_styles = __esm({
160
+ "../../node_modules/.pnpm/chalk@5.6.2/node_modules/chalk/source/vendor/ansi-styles/index.js"() {
161
+ "use strict";
162
+ ANSI_BACKGROUND_OFFSET = 10;
163
+ wrapAnsi16 = (offset2 = 0) => (code) => `\x1B[${code + offset2}m`;
164
+ wrapAnsi256 = (offset2 = 0) => (code) => `\x1B[${38 + offset2};5;${code}m`;
165
+ wrapAnsi16m = (offset2 = 0) => (red, green, blue) => `\x1B[${38 + offset2};2;${red};${green};${blue}m`;
166
+ styles = {
167
+ modifier: {
168
+ reset: [0, 0],
169
+ // 21 isn't widely supported and 22 does the same thing
170
+ bold: [1, 22],
171
+ dim: [2, 22],
172
+ italic: [3, 23],
173
+ underline: [4, 24],
174
+ overline: [53, 55],
175
+ inverse: [7, 27],
176
+ hidden: [8, 28],
177
+ strikethrough: [9, 29]
178
+ },
179
+ color: {
180
+ black: [30, 39],
181
+ red: [31, 39],
182
+ green: [32, 39],
183
+ yellow: [33, 39],
184
+ blue: [34, 39],
185
+ magenta: [35, 39],
186
+ cyan: [36, 39],
187
+ white: [37, 39],
188
+ // Bright color
189
+ blackBright: [90, 39],
190
+ gray: [90, 39],
191
+ // Alias of `blackBright`
192
+ grey: [90, 39],
193
+ // Alias of `blackBright`
194
+ redBright: [91, 39],
195
+ greenBright: [92, 39],
196
+ yellowBright: [93, 39],
197
+ blueBright: [94, 39],
198
+ magentaBright: [95, 39],
199
+ cyanBright: [96, 39],
200
+ whiteBright: [97, 39]
201
+ },
202
+ bgColor: {
203
+ bgBlack: [40, 49],
204
+ bgRed: [41, 49],
205
+ bgGreen: [42, 49],
206
+ bgYellow: [43, 49],
207
+ bgBlue: [44, 49],
208
+ bgMagenta: [45, 49],
209
+ bgCyan: [46, 49],
210
+ bgWhite: [47, 49],
211
+ // Bright color
212
+ bgBlackBright: [100, 49],
213
+ bgGray: [100, 49],
214
+ // Alias of `bgBlackBright`
215
+ bgGrey: [100, 49],
216
+ // Alias of `bgBlackBright`
217
+ bgRedBright: [101, 49],
218
+ bgGreenBright: [102, 49],
219
+ bgYellowBright: [103, 49],
220
+ bgBlueBright: [104, 49],
221
+ bgMagentaBright: [105, 49],
222
+ bgCyanBright: [106, 49],
223
+ bgWhiteBright: [107, 49]
224
+ }
225
+ };
226
+ modifierNames = Object.keys(styles.modifier);
227
+ foregroundColorNames = Object.keys(styles.color);
228
+ backgroundColorNames = Object.keys(styles.bgColor);
229
+ colorNames = [...foregroundColorNames, ...backgroundColorNames];
230
+ ansiStyles = assembleStyles();
231
+ ansi_styles_default = ansiStyles;
232
+ }
233
+ });
234
+
235
+ // ../../node_modules/.pnpm/chalk@5.6.2/node_modules/chalk/source/vendor/supports-color/index.js
236
+ import process2 from "process";
237
+ import os from "os";
238
+ import tty from "tty";
239
+ function hasFlag(flag, argv = globalThis.Deno ? globalThis.Deno.args : process2.argv) {
240
+ const prefix = flag.startsWith("-") ? "" : flag.length === 1 ? "-" : "--";
241
+ const position = argv.indexOf(prefix + flag);
242
+ const terminatorPosition = argv.indexOf("--");
243
+ return position !== -1 && (terminatorPosition === -1 || position < terminatorPosition);
244
+ }
245
+ function envForceColor() {
246
+ if ("FORCE_COLOR" in env) {
247
+ if (env.FORCE_COLOR === "true") {
248
+ return 1;
249
+ }
250
+ if (env.FORCE_COLOR === "false") {
251
+ return 0;
252
+ }
253
+ return env.FORCE_COLOR.length === 0 ? 1 : Math.min(Number.parseInt(env.FORCE_COLOR, 10), 3);
254
+ }
255
+ }
256
+ function translateLevel(level) {
257
+ if (level === 0) {
258
+ return false;
259
+ }
260
+ return {
261
+ level,
262
+ hasBasic: true,
263
+ has256: level >= 2,
264
+ has16m: level >= 3
265
+ };
266
+ }
267
+ function _supportsColor(haveStream, { streamIsTTY, sniffFlags = true } = {}) {
268
+ const noFlagForceColor = envForceColor();
269
+ if (noFlagForceColor !== void 0) {
270
+ flagForceColor = noFlagForceColor;
271
+ }
272
+ const forceColor = sniffFlags ? flagForceColor : noFlagForceColor;
273
+ if (forceColor === 0) {
274
+ return 0;
275
+ }
276
+ if (sniffFlags) {
277
+ if (hasFlag("color=16m") || hasFlag("color=full") || hasFlag("color=truecolor")) {
278
+ return 3;
279
+ }
280
+ if (hasFlag("color=256")) {
281
+ return 2;
282
+ }
283
+ }
284
+ if ("TF_BUILD" in env && "AGENT_NAME" in env) {
285
+ return 1;
286
+ }
287
+ if (haveStream && !streamIsTTY && forceColor === void 0) {
288
+ return 0;
289
+ }
290
+ const min = forceColor || 0;
291
+ if (env.TERM === "dumb") {
292
+ return min;
293
+ }
294
+ if (process2.platform === "win32") {
295
+ const osRelease = os.release().split(".");
296
+ if (Number(osRelease[0]) >= 10 && Number(osRelease[2]) >= 10586) {
297
+ return Number(osRelease[2]) >= 14931 ? 3 : 2;
298
+ }
299
+ return 1;
300
+ }
301
+ if ("CI" in env) {
302
+ if (["GITHUB_ACTIONS", "GITEA_ACTIONS", "CIRCLECI"].some((key) => key in env)) {
303
+ return 3;
304
+ }
305
+ if (["TRAVIS", "APPVEYOR", "GITLAB_CI", "BUILDKITE", "DRONE"].some((sign) => sign in env) || env.CI_NAME === "codeship") {
306
+ return 1;
307
+ }
308
+ return min;
309
+ }
310
+ if ("TEAMCITY_VERSION" in env) {
311
+ return /^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(env.TEAMCITY_VERSION) ? 1 : 0;
312
+ }
313
+ if (env.COLORTERM === "truecolor") {
314
+ return 3;
315
+ }
316
+ if (env.TERM === "xterm-kitty") {
317
+ return 3;
318
+ }
319
+ if (env.TERM === "xterm-ghostty") {
320
+ return 3;
321
+ }
322
+ if (env.TERM === "wezterm") {
323
+ return 3;
324
+ }
325
+ if ("TERM_PROGRAM" in env) {
326
+ const version = Number.parseInt((env.TERM_PROGRAM_VERSION || "").split(".")[0], 10);
327
+ switch (env.TERM_PROGRAM) {
328
+ case "iTerm.app": {
329
+ return version >= 3 ? 3 : 2;
330
+ }
331
+ case "Apple_Terminal": {
332
+ return 2;
333
+ }
334
+ }
335
+ }
336
+ if (/-256(color)?$/i.test(env.TERM)) {
337
+ return 2;
338
+ }
339
+ if (/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(env.TERM)) {
340
+ return 1;
341
+ }
342
+ if ("COLORTERM" in env) {
343
+ return 1;
344
+ }
345
+ return min;
346
+ }
347
+ function createSupportsColor(stream, options = {}) {
348
+ const level = _supportsColor(stream, {
349
+ streamIsTTY: stream && stream.isTTY,
350
+ ...options
351
+ });
352
+ return translateLevel(level);
353
+ }
354
+ var env, flagForceColor, supportsColor, supports_color_default;
355
+ var init_supports_color = __esm({
356
+ "../../node_modules/.pnpm/chalk@5.6.2/node_modules/chalk/source/vendor/supports-color/index.js"() {
357
+ "use strict";
358
+ ({ env } = process2);
359
+ if (hasFlag("no-color") || hasFlag("no-colors") || hasFlag("color=false") || hasFlag("color=never")) {
360
+ flagForceColor = 0;
361
+ } else if (hasFlag("color") || hasFlag("colors") || hasFlag("color=true") || hasFlag("color=always")) {
362
+ flagForceColor = 1;
363
+ }
364
+ supportsColor = {
365
+ stdout: createSupportsColor({ isTTY: tty.isatty(1) }),
366
+ stderr: createSupportsColor({ isTTY: tty.isatty(2) })
367
+ };
368
+ supports_color_default = supportsColor;
369
+ }
370
+ });
371
+
372
+ // ../../node_modules/.pnpm/chalk@5.6.2/node_modules/chalk/source/utilities.js
373
+ function stringReplaceAll(string, substring, replacer) {
374
+ let index = string.indexOf(substring);
375
+ if (index === -1) {
376
+ return string;
377
+ }
378
+ const substringLength = substring.length;
379
+ let endIndex = 0;
380
+ let returnValue = "";
381
+ do {
382
+ returnValue += string.slice(endIndex, index) + substring + replacer;
383
+ endIndex = index + substringLength;
384
+ index = string.indexOf(substring, endIndex);
385
+ } while (index !== -1);
386
+ returnValue += string.slice(endIndex);
387
+ return returnValue;
388
+ }
389
+ function stringEncaseCRLFWithFirstIndex(string, prefix, postfix, index) {
390
+ let endIndex = 0;
391
+ let returnValue = "";
392
+ do {
393
+ const gotCR = string[index - 1] === "\r";
394
+ returnValue += string.slice(endIndex, gotCR ? index - 1 : index) + prefix + (gotCR ? "\r\n" : "\n") + postfix;
395
+ endIndex = index + 1;
396
+ index = string.indexOf("\n", endIndex);
397
+ } while (index !== -1);
398
+ returnValue += string.slice(endIndex);
399
+ return returnValue;
400
+ }
401
+ var init_utilities = __esm({
402
+ "../../node_modules/.pnpm/chalk@5.6.2/node_modules/chalk/source/utilities.js"() {
403
+ "use strict";
404
+ }
405
+ });
406
+
407
+ // ../../node_modules/.pnpm/chalk@5.6.2/node_modules/chalk/source/index.js
408
+ function createChalk(options) {
409
+ return chalkFactory(options);
410
+ }
411
+ var stdoutColor, stderrColor, GENERATOR, STYLER, IS_EMPTY, levelMapping, styles2, applyOptions, chalkFactory, getModelAnsi, usedModels, proto, createStyler, createBuilder, applyStyle, chalk, chalkStderr, source_default;
412
+ var init_source = __esm({
413
+ "../../node_modules/.pnpm/chalk@5.6.2/node_modules/chalk/source/index.js"() {
414
+ "use strict";
415
+ init_ansi_styles();
416
+ init_supports_color();
417
+ init_utilities();
418
+ ({ stdout: stdoutColor, stderr: stderrColor } = supports_color_default);
419
+ GENERATOR = /* @__PURE__ */ Symbol("GENERATOR");
420
+ STYLER = /* @__PURE__ */ Symbol("STYLER");
421
+ IS_EMPTY = /* @__PURE__ */ Symbol("IS_EMPTY");
422
+ levelMapping = [
423
+ "ansi",
424
+ "ansi",
425
+ "ansi256",
426
+ "ansi16m"
427
+ ];
428
+ styles2 = /* @__PURE__ */ Object.create(null);
429
+ applyOptions = (object, options = {}) => {
430
+ if (options.level && !(Number.isInteger(options.level) && options.level >= 0 && options.level <= 3)) {
431
+ throw new Error("The `level` option should be an integer from 0 to 3");
432
+ }
433
+ const colorLevel = stdoutColor ? stdoutColor.level : 0;
434
+ object.level = options.level === void 0 ? colorLevel : options.level;
435
+ };
436
+ chalkFactory = (options) => {
437
+ const chalk2 = (...strings) => strings.join(" ");
438
+ applyOptions(chalk2, options);
439
+ Object.setPrototypeOf(chalk2, createChalk.prototype);
440
+ return chalk2;
441
+ };
442
+ Object.setPrototypeOf(createChalk.prototype, Function.prototype);
443
+ for (const [styleName, style] of Object.entries(ansi_styles_default)) {
444
+ styles2[styleName] = {
445
+ get() {
446
+ const builder = createBuilder(this, createStyler(style.open, style.close, this[STYLER]), this[IS_EMPTY]);
447
+ Object.defineProperty(this, styleName, { value: builder });
448
+ return builder;
449
+ }
450
+ };
451
+ }
452
+ styles2.visible = {
453
+ get() {
454
+ const builder = createBuilder(this, this[STYLER], true);
455
+ Object.defineProperty(this, "visible", { value: builder });
456
+ return builder;
457
+ }
458
+ };
459
+ getModelAnsi = (model, level, type2, ...arguments_) => {
460
+ if (model === "rgb") {
461
+ if (level === "ansi16m") {
462
+ return ansi_styles_default[type2].ansi16m(...arguments_);
463
+ }
464
+ if (level === "ansi256") {
465
+ return ansi_styles_default[type2].ansi256(ansi_styles_default.rgbToAnsi256(...arguments_));
466
+ }
467
+ return ansi_styles_default[type2].ansi(ansi_styles_default.rgbToAnsi(...arguments_));
468
+ }
469
+ if (model === "hex") {
470
+ return getModelAnsi("rgb", level, type2, ...ansi_styles_default.hexToRgb(...arguments_));
471
+ }
472
+ return ansi_styles_default[type2][model](...arguments_);
473
+ };
474
+ usedModels = ["rgb", "hex", "ansi256"];
475
+ for (const model of usedModels) {
476
+ styles2[model] = {
477
+ get() {
478
+ const { level } = this;
479
+ return function(...arguments_) {
480
+ const styler = createStyler(getModelAnsi(model, levelMapping[level], "color", ...arguments_), ansi_styles_default.color.close, this[STYLER]);
481
+ return createBuilder(this, styler, this[IS_EMPTY]);
482
+ };
483
+ }
484
+ };
485
+ const bgModel = "bg" + model[0].toUpperCase() + model.slice(1);
486
+ styles2[bgModel] = {
487
+ get() {
488
+ const { level } = this;
489
+ return function(...arguments_) {
490
+ const styler = createStyler(getModelAnsi(model, levelMapping[level], "bgColor", ...arguments_), ansi_styles_default.bgColor.close, this[STYLER]);
491
+ return createBuilder(this, styler, this[IS_EMPTY]);
492
+ };
493
+ }
494
+ };
495
+ }
496
+ proto = Object.defineProperties(() => {
497
+ }, {
498
+ ...styles2,
499
+ level: {
500
+ enumerable: true,
501
+ get() {
502
+ return this[GENERATOR].level;
503
+ },
504
+ set(level) {
505
+ this[GENERATOR].level = level;
506
+ }
507
+ }
508
+ });
509
+ createStyler = (open, close, parent) => {
510
+ let openAll;
511
+ let closeAll;
512
+ if (parent === void 0) {
513
+ openAll = open;
514
+ closeAll = close;
515
+ } else {
516
+ openAll = parent.openAll + open;
517
+ closeAll = close + parent.closeAll;
518
+ }
519
+ return {
520
+ open,
521
+ close,
522
+ openAll,
523
+ closeAll,
524
+ parent
525
+ };
526
+ };
527
+ createBuilder = (self, _styler, _isEmpty) => {
528
+ const builder = (...arguments_) => applyStyle(builder, arguments_.length === 1 ? "" + arguments_[0] : arguments_.join(" "));
529
+ Object.setPrototypeOf(builder, proto);
530
+ builder[GENERATOR] = self;
531
+ builder[STYLER] = _styler;
532
+ builder[IS_EMPTY] = _isEmpty;
533
+ return builder;
534
+ };
535
+ applyStyle = (self, string) => {
536
+ if (self.level <= 0 || !string) {
537
+ return self[IS_EMPTY] ? "" : string;
538
+ }
539
+ let styler = self[STYLER];
540
+ if (styler === void 0) {
541
+ return string;
542
+ }
543
+ const { openAll, closeAll } = styler;
544
+ if (string.includes("\x1B")) {
545
+ while (styler !== void 0) {
546
+ string = stringReplaceAll(string, styler.close, styler.open);
547
+ styler = styler.parent;
548
+ }
549
+ }
550
+ const lfIndex = string.indexOf("\n");
551
+ if (lfIndex !== -1) {
552
+ string = stringEncaseCRLFWithFirstIndex(string, closeAll, openAll, lfIndex);
553
+ }
554
+ return openAll + string + closeAll;
555
+ };
556
+ Object.defineProperties(createChalk.prototype, styles2);
557
+ chalk = createChalk();
558
+ chalkStderr = createChalk({ level: stderrColor ? stderrColor.level : 0 });
559
+ source_default = chalk;
560
+ }
561
+ });
562
+
43
563
  // ../notes/dist/chunk-7TJSPQPW.js
44
- import chalk2 from "chalk";
45
564
  import * as fs2 from "fs";
46
565
  import * as path2 from "path";
47
566
  function setLogLevel2(level) {
@@ -70,7 +589,7 @@ function info2(message) {
70
589
  }
71
590
  function success2(message) {
72
591
  if (!shouldLog2("info")) return;
73
- console.error(chalk2.green(`[SUCCESS] ${message}`));
592
+ console.error(source_default.green(`[SUCCESS] ${message}`));
74
593
  }
75
594
  function debug(message) {
76
595
  log2(message, "debug");
@@ -193,6 +712,7 @@ var LOG_LEVELS2, PREFIXES2, COLORS2, currentLevel2, quietMode2, ReleaseKitError2
193
712
  var init_chunk_7TJSPQPW = __esm({
194
713
  "../notes/dist/chunk-7TJSPQPW.js"() {
195
714
  "use strict";
715
+ init_source();
196
716
  LOG_LEVELS2 = {
197
717
  error: 0,
198
718
  warn: 1,
@@ -208,11 +728,11 @@ var init_chunk_7TJSPQPW = __esm({
208
728
  trace: "[TRACE]"
209
729
  };
210
730
  COLORS2 = {
211
- error: chalk2.red,
212
- warn: chalk2.yellow,
213
- info: chalk2.blue,
214
- debug: chalk2.gray,
215
- trace: chalk2.dim
731
+ error: source_default.red,
732
+ warn: source_default.yellow,
733
+ info: source_default.blue,
734
+ debug: source_default.gray,
735
+ trace: source_default.dim
216
736
  };
217
737
  currentLevel2 = "info";
218
738
  quietMode2 = false;
@@ -258,6 +778,909 @@ var init_chunk_7TJSPQPW = __esm({
258
778
  }
259
779
  });
260
780
 
781
+ // ../../node_modules/.pnpm/smol-toml@1.6.1/node_modules/smol-toml/dist/error.js
782
+ function getLineColFromPtr(string, ptr) {
783
+ let lines = string.slice(0, ptr).split(/\r\n|\n|\r/g);
784
+ return [lines.length, lines.pop().length + 1];
785
+ }
786
+ function makeCodeBlock(string, line, column) {
787
+ let lines = string.split(/\r\n|\n|\r/g);
788
+ let codeblock = "";
789
+ let numberLen = (Math.log10(line + 1) | 0) + 1;
790
+ for (let i = line - 1; i <= line + 1; i++) {
791
+ let l = lines[i - 1];
792
+ if (!l)
793
+ continue;
794
+ codeblock += i.toString().padEnd(numberLen, " ");
795
+ codeblock += ": ";
796
+ codeblock += l;
797
+ codeblock += "\n";
798
+ if (i === line) {
799
+ codeblock += " ".repeat(numberLen + column + 2);
800
+ codeblock += "^\n";
801
+ }
802
+ }
803
+ return codeblock;
804
+ }
805
+ var TomlError;
806
+ var init_error = __esm({
807
+ "../../node_modules/.pnpm/smol-toml@1.6.1/node_modules/smol-toml/dist/error.js"() {
808
+ "use strict";
809
+ TomlError = class extends Error {
810
+ line;
811
+ column;
812
+ codeblock;
813
+ constructor(message, options) {
814
+ const [line, column] = getLineColFromPtr(options.toml, options.ptr);
815
+ const codeblock = makeCodeBlock(options.toml, line, column);
816
+ super(`Invalid TOML document: ${message}
817
+
818
+ ${codeblock}`, options);
819
+ this.line = line;
820
+ this.column = column;
821
+ this.codeblock = codeblock;
822
+ }
823
+ };
824
+ }
825
+ });
826
+
827
+ // ../../node_modules/.pnpm/smol-toml@1.6.1/node_modules/smol-toml/dist/util.js
828
+ function isEscaped(str3, ptr) {
829
+ let i = 0;
830
+ while (str3[ptr - ++i] === "\\")
831
+ ;
832
+ return --i && i % 2;
833
+ }
834
+ function indexOfNewline(str3, start = 0, end = str3.length) {
835
+ let idx = str3.indexOf("\n", start);
836
+ if (str3[idx - 1] === "\r")
837
+ idx--;
838
+ return idx <= end ? idx : -1;
839
+ }
840
+ function skipComment(str3, ptr) {
841
+ for (let i = ptr; i < str3.length; i++) {
842
+ let c = str3[i];
843
+ if (c === "\n")
844
+ return i;
845
+ if (c === "\r" && str3[i + 1] === "\n")
846
+ return i + 1;
847
+ if (c < " " && c !== " " || c === "\x7F") {
848
+ throw new TomlError("control characters are not allowed in comments", {
849
+ toml: str3,
850
+ ptr
851
+ });
852
+ }
853
+ }
854
+ return str3.length;
855
+ }
856
+ function skipVoid(str3, ptr, banNewLines, banComments) {
857
+ let c;
858
+ while (1) {
859
+ while ((c = str3[ptr]) === " " || c === " " || !banNewLines && (c === "\n" || c === "\r" && str3[ptr + 1] === "\n"))
860
+ ptr++;
861
+ if (banComments || c !== "#")
862
+ break;
863
+ ptr = skipComment(str3, ptr);
864
+ }
865
+ return ptr;
866
+ }
867
+ function skipUntil(str3, ptr, sep4, end, banNewLines = false) {
868
+ if (!end) {
869
+ ptr = indexOfNewline(str3, ptr);
870
+ return ptr < 0 ? str3.length : ptr;
871
+ }
872
+ for (let i = ptr; i < str3.length; i++) {
873
+ let c = str3[i];
874
+ if (c === "#") {
875
+ i = indexOfNewline(str3, i);
876
+ } else if (c === sep4) {
877
+ return i + 1;
878
+ } else if (c === end || banNewLines && (c === "\n" || c === "\r" && str3[i + 1] === "\n")) {
879
+ return i;
880
+ }
881
+ }
882
+ throw new TomlError("cannot find end of structure", {
883
+ toml: str3,
884
+ ptr
885
+ });
886
+ }
887
+ function getStringEnd(str3, seek) {
888
+ let first2 = str3[seek];
889
+ let target = first2 === str3[seek + 1] && str3[seek + 1] === str3[seek + 2] ? str3.slice(seek, seek + 3) : first2;
890
+ seek += target.length - 1;
891
+ do
892
+ seek = str3.indexOf(target, ++seek);
893
+ while (seek > -1 && first2 !== "'" && isEscaped(str3, seek));
894
+ if (seek > -1) {
895
+ seek += target.length;
896
+ if (target.length > 1) {
897
+ if (str3[seek] === first2)
898
+ seek++;
899
+ if (str3[seek] === first2)
900
+ seek++;
901
+ }
902
+ }
903
+ return seek;
904
+ }
905
+ var init_util = __esm({
906
+ "../../node_modules/.pnpm/smol-toml@1.6.1/node_modules/smol-toml/dist/util.js"() {
907
+ "use strict";
908
+ init_error();
909
+ }
910
+ });
911
+
912
+ // ../../node_modules/.pnpm/smol-toml@1.6.1/node_modules/smol-toml/dist/date.js
913
+ var DATE_TIME_RE, TomlDate;
914
+ var init_date = __esm({
915
+ "../../node_modules/.pnpm/smol-toml@1.6.1/node_modules/smol-toml/dist/date.js"() {
916
+ "use strict";
917
+ DATE_TIME_RE = /^(\d{4}-\d{2}-\d{2})?[T ]?(?:(\d{2}):\d{2}(?::\d{2}(?:\.\d+)?)?)?(Z|[-+]\d{2}:\d{2})?$/i;
918
+ TomlDate = class _TomlDate extends Date {
919
+ #hasDate = false;
920
+ #hasTime = false;
921
+ #offset = null;
922
+ constructor(date2) {
923
+ let hasDate = true;
924
+ let hasTime = true;
925
+ let offset2 = "Z";
926
+ if (typeof date2 === "string") {
927
+ let match2 = date2.match(DATE_TIME_RE);
928
+ if (match2) {
929
+ if (!match2[1]) {
930
+ hasDate = false;
931
+ date2 = `0000-01-01T${date2}`;
932
+ }
933
+ hasTime = !!match2[2];
934
+ hasTime && date2[10] === " " && (date2 = date2.replace(" ", "T"));
935
+ if (match2[2] && +match2[2] > 23) {
936
+ date2 = "";
937
+ } else {
938
+ offset2 = match2[3] || null;
939
+ date2 = date2.toUpperCase();
940
+ if (!offset2 && hasTime)
941
+ date2 += "Z";
942
+ }
943
+ } else {
944
+ date2 = "";
945
+ }
946
+ }
947
+ super(date2);
948
+ if (!isNaN(this.getTime())) {
949
+ this.#hasDate = hasDate;
950
+ this.#hasTime = hasTime;
951
+ this.#offset = offset2;
952
+ }
953
+ }
954
+ isDateTime() {
955
+ return this.#hasDate && this.#hasTime;
956
+ }
957
+ isLocal() {
958
+ return !this.#hasDate || !this.#hasTime || !this.#offset;
959
+ }
960
+ isDate() {
961
+ return this.#hasDate && !this.#hasTime;
962
+ }
963
+ isTime() {
964
+ return this.#hasTime && !this.#hasDate;
965
+ }
966
+ isValid() {
967
+ return this.#hasDate || this.#hasTime;
968
+ }
969
+ toISOString() {
970
+ let iso = super.toISOString();
971
+ if (this.isDate())
972
+ return iso.slice(0, 10);
973
+ if (this.isTime())
974
+ return iso.slice(11, 23);
975
+ if (this.#offset === null)
976
+ return iso.slice(0, -1);
977
+ if (this.#offset === "Z")
978
+ return iso;
979
+ let offset2 = +this.#offset.slice(1, 3) * 60 + +this.#offset.slice(4, 6);
980
+ offset2 = this.#offset[0] === "-" ? offset2 : -offset2;
981
+ let offsetDate = new Date(this.getTime() - offset2 * 6e4);
982
+ return offsetDate.toISOString().slice(0, -1) + this.#offset;
983
+ }
984
+ static wrapAsOffsetDateTime(jsDate, offset2 = "Z") {
985
+ let date2 = new _TomlDate(jsDate);
986
+ date2.#offset = offset2;
987
+ return date2;
988
+ }
989
+ static wrapAsLocalDateTime(jsDate) {
990
+ let date2 = new _TomlDate(jsDate);
991
+ date2.#offset = null;
992
+ return date2;
993
+ }
994
+ static wrapAsLocalDate(jsDate) {
995
+ let date2 = new _TomlDate(jsDate);
996
+ date2.#hasTime = false;
997
+ date2.#offset = null;
998
+ return date2;
999
+ }
1000
+ static wrapAsLocalTime(jsDate) {
1001
+ let date2 = new _TomlDate(jsDate);
1002
+ date2.#hasDate = false;
1003
+ date2.#offset = null;
1004
+ return date2;
1005
+ }
1006
+ };
1007
+ }
1008
+ });
1009
+
1010
+ // ../../node_modules/.pnpm/smol-toml@1.6.1/node_modules/smol-toml/dist/primitive.js
1011
+ function parseString(str3, ptr = 0, endPtr = str3.length) {
1012
+ let isLiteral = str3[ptr] === "'";
1013
+ let isMultiline = str3[ptr++] === str3[ptr] && str3[ptr] === str3[ptr + 1];
1014
+ if (isMultiline) {
1015
+ endPtr -= 2;
1016
+ if (str3[ptr += 2] === "\r")
1017
+ ptr++;
1018
+ if (str3[ptr] === "\n")
1019
+ ptr++;
1020
+ }
1021
+ let tmp = 0;
1022
+ let isEscape;
1023
+ let parsed = "";
1024
+ let sliceStart = ptr;
1025
+ while (ptr < endPtr - 1) {
1026
+ let c = str3[ptr++];
1027
+ if (c === "\n" || c === "\r" && str3[ptr] === "\n") {
1028
+ if (!isMultiline) {
1029
+ throw new TomlError("newlines are not allowed in strings", {
1030
+ toml: str3,
1031
+ ptr: ptr - 1
1032
+ });
1033
+ }
1034
+ } else if (c < " " && c !== " " || c === "\x7F") {
1035
+ throw new TomlError("control characters are not allowed in strings", {
1036
+ toml: str3,
1037
+ ptr: ptr - 1
1038
+ });
1039
+ }
1040
+ if (isEscape) {
1041
+ isEscape = false;
1042
+ if (c === "x" || c === "u" || c === "U") {
1043
+ let code = str3.slice(ptr, ptr += c === "x" ? 2 : c === "u" ? 4 : 8);
1044
+ if (!ESCAPE_REGEX.test(code)) {
1045
+ throw new TomlError("invalid unicode escape", {
1046
+ toml: str3,
1047
+ ptr: tmp
1048
+ });
1049
+ }
1050
+ try {
1051
+ parsed += String.fromCodePoint(parseInt(code, 16));
1052
+ } catch {
1053
+ throw new TomlError("invalid unicode escape", {
1054
+ toml: str3,
1055
+ ptr: tmp
1056
+ });
1057
+ }
1058
+ } else if (isMultiline && (c === "\n" || c === " " || c === " " || c === "\r")) {
1059
+ ptr = skipVoid(str3, ptr - 1, true);
1060
+ if (str3[ptr] !== "\n" && str3[ptr] !== "\r") {
1061
+ throw new TomlError("invalid escape: only line-ending whitespace may be escaped", {
1062
+ toml: str3,
1063
+ ptr: tmp
1064
+ });
1065
+ }
1066
+ ptr = skipVoid(str3, ptr);
1067
+ } else if (c in ESC_MAP) {
1068
+ parsed += ESC_MAP[c];
1069
+ } else {
1070
+ throw new TomlError("unrecognized escape sequence", {
1071
+ toml: str3,
1072
+ ptr: tmp
1073
+ });
1074
+ }
1075
+ sliceStart = ptr;
1076
+ } else if (!isLiteral && c === "\\") {
1077
+ tmp = ptr - 1;
1078
+ isEscape = true;
1079
+ parsed += str3.slice(sliceStart, tmp);
1080
+ }
1081
+ }
1082
+ return parsed + str3.slice(sliceStart, endPtr - 1);
1083
+ }
1084
+ function parseValue(value, toml, ptr, integersAsBigInt) {
1085
+ if (value === "true")
1086
+ return true;
1087
+ if (value === "false")
1088
+ return false;
1089
+ if (value === "-inf")
1090
+ return -Infinity;
1091
+ if (value === "inf" || value === "+inf")
1092
+ return Infinity;
1093
+ if (value === "nan" || value === "+nan" || value === "-nan")
1094
+ return NaN;
1095
+ if (value === "-0")
1096
+ return integersAsBigInt ? 0n : 0;
1097
+ let isInt = INT_REGEX.test(value);
1098
+ if (isInt || FLOAT_REGEX.test(value)) {
1099
+ if (LEADING_ZERO.test(value)) {
1100
+ throw new TomlError("leading zeroes are not allowed", {
1101
+ toml,
1102
+ ptr
1103
+ });
1104
+ }
1105
+ value = value.replace(/_/g, "");
1106
+ let numeric2 = +value;
1107
+ if (isNaN(numeric2)) {
1108
+ throw new TomlError("invalid number", {
1109
+ toml,
1110
+ ptr
1111
+ });
1112
+ }
1113
+ if (isInt) {
1114
+ if ((isInt = !Number.isSafeInteger(numeric2)) && !integersAsBigInt) {
1115
+ throw new TomlError("integer value cannot be represented losslessly", {
1116
+ toml,
1117
+ ptr
1118
+ });
1119
+ }
1120
+ if (isInt || integersAsBigInt === true)
1121
+ numeric2 = BigInt(value);
1122
+ }
1123
+ return numeric2;
1124
+ }
1125
+ const date2 = new TomlDate(value);
1126
+ if (!date2.isValid()) {
1127
+ throw new TomlError("invalid value", {
1128
+ toml,
1129
+ ptr
1130
+ });
1131
+ }
1132
+ return date2;
1133
+ }
1134
+ var INT_REGEX, FLOAT_REGEX, LEADING_ZERO, ESCAPE_REGEX, ESC_MAP;
1135
+ var init_primitive = __esm({
1136
+ "../../node_modules/.pnpm/smol-toml@1.6.1/node_modules/smol-toml/dist/primitive.js"() {
1137
+ "use strict";
1138
+ init_util();
1139
+ init_date();
1140
+ init_error();
1141
+ INT_REGEX = /^((0x[0-9a-fA-F](_?[0-9a-fA-F])*)|(([+-]|0[ob])?\d(_?\d)*))$/;
1142
+ FLOAT_REGEX = /^[+-]?\d(_?\d)*(\.\d(_?\d)*)?([eE][+-]?\d(_?\d)*)?$/;
1143
+ LEADING_ZERO = /^[+-]?0[0-9_]/;
1144
+ ESCAPE_REGEX = /^[0-9a-f]{2,8}$/i;
1145
+ ESC_MAP = {
1146
+ b: "\b",
1147
+ t: " ",
1148
+ n: "\n",
1149
+ f: "\f",
1150
+ r: "\r",
1151
+ e: "\x1B",
1152
+ '"': '"',
1153
+ "\\": "\\"
1154
+ };
1155
+ }
1156
+ });
1157
+
1158
+ // ../../node_modules/.pnpm/smol-toml@1.6.1/node_modules/smol-toml/dist/extract.js
1159
+ function sliceAndTrimEndOf(str3, startPtr, endPtr) {
1160
+ let value = str3.slice(startPtr, endPtr);
1161
+ let commentIdx = value.indexOf("#");
1162
+ if (commentIdx > -1) {
1163
+ skipComment(str3, commentIdx);
1164
+ value = value.slice(0, commentIdx);
1165
+ }
1166
+ return [value.trimEnd(), commentIdx];
1167
+ }
1168
+ function extractValue(str3, ptr, end, depth, integersAsBigInt) {
1169
+ if (depth === 0) {
1170
+ throw new TomlError("document contains excessively nested structures. aborting.", {
1171
+ toml: str3,
1172
+ ptr
1173
+ });
1174
+ }
1175
+ let c = str3[ptr];
1176
+ if (c === "[" || c === "{") {
1177
+ let [value, endPtr2] = c === "[" ? parseArray(str3, ptr, depth, integersAsBigInt) : parseInlineTable(str3, ptr, depth, integersAsBigInt);
1178
+ if (end) {
1179
+ endPtr2 = skipVoid(str3, endPtr2);
1180
+ if (str3[endPtr2] === ",")
1181
+ endPtr2++;
1182
+ else if (str3[endPtr2] !== end) {
1183
+ throw new TomlError("expected comma or end of structure", {
1184
+ toml: str3,
1185
+ ptr: endPtr2
1186
+ });
1187
+ }
1188
+ }
1189
+ return [value, endPtr2];
1190
+ }
1191
+ let endPtr;
1192
+ if (c === '"' || c === "'") {
1193
+ endPtr = getStringEnd(str3, ptr);
1194
+ let parsed = parseString(str3, ptr, endPtr);
1195
+ if (end) {
1196
+ endPtr = skipVoid(str3, endPtr);
1197
+ if (str3[endPtr] && str3[endPtr] !== "," && str3[endPtr] !== end && str3[endPtr] !== "\n" && str3[endPtr] !== "\r") {
1198
+ throw new TomlError("unexpected character encountered", {
1199
+ toml: str3,
1200
+ ptr: endPtr
1201
+ });
1202
+ }
1203
+ endPtr += +(str3[endPtr] === ",");
1204
+ }
1205
+ return [parsed, endPtr];
1206
+ }
1207
+ endPtr = skipUntil(str3, ptr, ",", end);
1208
+ let slice2 = sliceAndTrimEndOf(str3, ptr, endPtr - +(str3[endPtr - 1] === ","));
1209
+ if (!slice2[0]) {
1210
+ throw new TomlError("incomplete key-value declaration: no value specified", {
1211
+ toml: str3,
1212
+ ptr
1213
+ });
1214
+ }
1215
+ if (end && slice2[1] > -1) {
1216
+ endPtr = skipVoid(str3, ptr + slice2[1]);
1217
+ endPtr += +(str3[endPtr] === ",");
1218
+ }
1219
+ return [
1220
+ parseValue(slice2[0], str3, ptr, integersAsBigInt),
1221
+ endPtr
1222
+ ];
1223
+ }
1224
+ var init_extract = __esm({
1225
+ "../../node_modules/.pnpm/smol-toml@1.6.1/node_modules/smol-toml/dist/extract.js"() {
1226
+ "use strict";
1227
+ init_primitive();
1228
+ init_struct();
1229
+ init_util();
1230
+ init_error();
1231
+ }
1232
+ });
1233
+
1234
+ // ../../node_modules/.pnpm/smol-toml@1.6.1/node_modules/smol-toml/dist/struct.js
1235
+ function parseKey(str3, ptr, end = "=") {
1236
+ let dot = ptr - 1;
1237
+ let parsed = [];
1238
+ let endPtr = str3.indexOf(end, ptr);
1239
+ if (endPtr < 0) {
1240
+ throw new TomlError("incomplete key-value: cannot find end of key", {
1241
+ toml: str3,
1242
+ ptr
1243
+ });
1244
+ }
1245
+ do {
1246
+ let c = str3[ptr = ++dot];
1247
+ if (c !== " " && c !== " ") {
1248
+ if (c === '"' || c === "'") {
1249
+ if (c === str3[ptr + 1] && c === str3[ptr + 2]) {
1250
+ throw new TomlError("multiline strings are not allowed in keys", {
1251
+ toml: str3,
1252
+ ptr
1253
+ });
1254
+ }
1255
+ let eos = getStringEnd(str3, ptr);
1256
+ if (eos < 0) {
1257
+ throw new TomlError("unfinished string encountered", {
1258
+ toml: str3,
1259
+ ptr
1260
+ });
1261
+ }
1262
+ dot = str3.indexOf(".", eos);
1263
+ let strEnd = str3.slice(eos, dot < 0 || dot > endPtr ? endPtr : dot);
1264
+ let newLine = indexOfNewline(strEnd);
1265
+ if (newLine > -1) {
1266
+ throw new TomlError("newlines are not allowed in keys", {
1267
+ toml: str3,
1268
+ ptr: ptr + dot + newLine
1269
+ });
1270
+ }
1271
+ if (strEnd.trimStart()) {
1272
+ throw new TomlError("found extra tokens after the string part", {
1273
+ toml: str3,
1274
+ ptr: eos
1275
+ });
1276
+ }
1277
+ if (endPtr < eos) {
1278
+ endPtr = str3.indexOf(end, eos);
1279
+ if (endPtr < 0) {
1280
+ throw new TomlError("incomplete key-value: cannot find end of key", {
1281
+ toml: str3,
1282
+ ptr
1283
+ });
1284
+ }
1285
+ }
1286
+ parsed.push(parseString(str3, ptr, eos));
1287
+ } else {
1288
+ dot = str3.indexOf(".", ptr);
1289
+ let part = str3.slice(ptr, dot < 0 || dot > endPtr ? endPtr : dot);
1290
+ if (!KEY_PART_RE.test(part)) {
1291
+ throw new TomlError("only letter, numbers, dashes and underscores are allowed in keys", {
1292
+ toml: str3,
1293
+ ptr
1294
+ });
1295
+ }
1296
+ parsed.push(part.trimEnd());
1297
+ }
1298
+ }
1299
+ } while (dot + 1 && dot < endPtr);
1300
+ return [parsed, skipVoid(str3, endPtr + 1, true, true)];
1301
+ }
1302
+ function parseInlineTable(str3, ptr, depth, integersAsBigInt) {
1303
+ let res = {};
1304
+ let seen = /* @__PURE__ */ new Set();
1305
+ let c;
1306
+ ptr++;
1307
+ while ((c = str3[ptr++]) !== "}" && c) {
1308
+ if (c === ",") {
1309
+ throw new TomlError("expected value, found comma", {
1310
+ toml: str3,
1311
+ ptr: ptr - 1
1312
+ });
1313
+ } else if (c === "#")
1314
+ ptr = skipComment(str3, ptr);
1315
+ else if (c !== " " && c !== " " && c !== "\n" && c !== "\r") {
1316
+ let k;
1317
+ let t = res;
1318
+ let hasOwn4 = false;
1319
+ let [key, keyEndPtr] = parseKey(str3, ptr - 1);
1320
+ for (let i = 0; i < key.length; i++) {
1321
+ if (i)
1322
+ t = hasOwn4 ? t[k] : t[k] = {};
1323
+ k = key[i];
1324
+ if ((hasOwn4 = Object.hasOwn(t, k)) && (typeof t[k] !== "object" || seen.has(t[k]))) {
1325
+ throw new TomlError("trying to redefine an already defined value", {
1326
+ toml: str3,
1327
+ ptr
1328
+ });
1329
+ }
1330
+ if (!hasOwn4 && k === "__proto__") {
1331
+ Object.defineProperty(t, k, { enumerable: true, configurable: true, writable: true });
1332
+ }
1333
+ }
1334
+ if (hasOwn4) {
1335
+ throw new TomlError("trying to redefine an already defined value", {
1336
+ toml: str3,
1337
+ ptr
1338
+ });
1339
+ }
1340
+ let [value, valueEndPtr] = extractValue(str3, keyEndPtr, "}", depth - 1, integersAsBigInt);
1341
+ seen.add(value);
1342
+ t[k] = value;
1343
+ ptr = valueEndPtr;
1344
+ }
1345
+ }
1346
+ if (!c) {
1347
+ throw new TomlError("unfinished table encountered", {
1348
+ toml: str3,
1349
+ ptr
1350
+ });
1351
+ }
1352
+ return [res, ptr];
1353
+ }
1354
+ function parseArray(str3, ptr, depth, integersAsBigInt) {
1355
+ let res = [];
1356
+ let c;
1357
+ ptr++;
1358
+ while ((c = str3[ptr++]) !== "]" && c) {
1359
+ if (c === ",") {
1360
+ throw new TomlError("expected value, found comma", {
1361
+ toml: str3,
1362
+ ptr: ptr - 1
1363
+ });
1364
+ } else if (c === "#")
1365
+ ptr = skipComment(str3, ptr);
1366
+ else if (c !== " " && c !== " " && c !== "\n" && c !== "\r") {
1367
+ let e = extractValue(str3, ptr - 1, "]", depth - 1, integersAsBigInt);
1368
+ res.push(e[0]);
1369
+ ptr = e[1];
1370
+ }
1371
+ }
1372
+ if (!c) {
1373
+ throw new TomlError("unfinished array encountered", {
1374
+ toml: str3,
1375
+ ptr
1376
+ });
1377
+ }
1378
+ return [res, ptr];
1379
+ }
1380
+ var KEY_PART_RE;
1381
+ var init_struct = __esm({
1382
+ "../../node_modules/.pnpm/smol-toml@1.6.1/node_modules/smol-toml/dist/struct.js"() {
1383
+ "use strict";
1384
+ init_primitive();
1385
+ init_extract();
1386
+ init_util();
1387
+ init_error();
1388
+ KEY_PART_RE = /^[a-zA-Z0-9-_]+[ \t]*$/;
1389
+ }
1390
+ });
1391
+
1392
+ // ../../node_modules/.pnpm/smol-toml@1.6.1/node_modules/smol-toml/dist/parse.js
1393
+ function peekTable(key, table, meta, type2) {
1394
+ let t = table;
1395
+ let m = meta;
1396
+ let k;
1397
+ let hasOwn4 = false;
1398
+ let state;
1399
+ for (let i = 0; i < key.length; i++) {
1400
+ if (i) {
1401
+ t = hasOwn4 ? t[k] : t[k] = {};
1402
+ m = (state = m[k]).c;
1403
+ if (type2 === 0 && (state.t === 1 || state.t === 2)) {
1404
+ return null;
1405
+ }
1406
+ if (state.t === 2) {
1407
+ let l = t.length - 1;
1408
+ t = t[l];
1409
+ m = m[l].c;
1410
+ }
1411
+ }
1412
+ k = key[i];
1413
+ if ((hasOwn4 = Object.hasOwn(t, k)) && m[k]?.t === 0 && m[k]?.d) {
1414
+ return null;
1415
+ }
1416
+ if (!hasOwn4) {
1417
+ if (k === "__proto__") {
1418
+ Object.defineProperty(t, k, { enumerable: true, configurable: true, writable: true });
1419
+ Object.defineProperty(m, k, { enumerable: true, configurable: true, writable: true });
1420
+ }
1421
+ m[k] = {
1422
+ t: i < key.length - 1 && type2 === 2 ? 3 : type2,
1423
+ d: false,
1424
+ i: 0,
1425
+ c: {}
1426
+ };
1427
+ }
1428
+ }
1429
+ state = m[k];
1430
+ if (state.t !== type2 && !(type2 === 1 && state.t === 3)) {
1431
+ return null;
1432
+ }
1433
+ if (type2 === 2) {
1434
+ if (!state.d) {
1435
+ state.d = true;
1436
+ t[k] = [];
1437
+ }
1438
+ t[k].push(t = {});
1439
+ state.c[state.i++] = state = { t: 1, d: false, i: 0, c: {} };
1440
+ }
1441
+ if (state.d) {
1442
+ return null;
1443
+ }
1444
+ state.d = true;
1445
+ if (type2 === 1) {
1446
+ t = hasOwn4 ? t[k] : t[k] = {};
1447
+ } else if (type2 === 0 && hasOwn4) {
1448
+ return null;
1449
+ }
1450
+ return [k, t, state.c];
1451
+ }
1452
+ function parse(toml, { maxDepth = 1e3, integersAsBigInt } = {}) {
1453
+ let res = {};
1454
+ let meta = {};
1455
+ let tbl = res;
1456
+ let m = meta;
1457
+ for (let ptr = skipVoid(toml, 0); ptr < toml.length; ) {
1458
+ if (toml[ptr] === "[") {
1459
+ let isTableArray = toml[++ptr] === "[";
1460
+ let k = parseKey(toml, ptr += +isTableArray, "]");
1461
+ if (isTableArray) {
1462
+ if (toml[k[1] - 1] !== "]") {
1463
+ throw new TomlError("expected end of table declaration", {
1464
+ toml,
1465
+ ptr: k[1] - 1
1466
+ });
1467
+ }
1468
+ k[1]++;
1469
+ }
1470
+ let p = peekTable(
1471
+ k[0],
1472
+ res,
1473
+ meta,
1474
+ isTableArray ? 2 : 1
1475
+ /* Type.EXPLICIT */
1476
+ );
1477
+ if (!p) {
1478
+ throw new TomlError("trying to redefine an already defined table or value", {
1479
+ toml,
1480
+ ptr
1481
+ });
1482
+ }
1483
+ m = p[2];
1484
+ tbl = p[1];
1485
+ ptr = k[1];
1486
+ } else {
1487
+ let k = parseKey(toml, ptr);
1488
+ let p = peekTable(
1489
+ k[0],
1490
+ tbl,
1491
+ m,
1492
+ 0
1493
+ /* Type.DOTTED */
1494
+ );
1495
+ if (!p) {
1496
+ throw new TomlError("trying to redefine an already defined table or value", {
1497
+ toml,
1498
+ ptr
1499
+ });
1500
+ }
1501
+ let v = extractValue(toml, k[1], void 0, maxDepth, integersAsBigInt);
1502
+ p[1][p[0]] = v[0];
1503
+ ptr = v[1];
1504
+ }
1505
+ ptr = skipVoid(toml, ptr, true);
1506
+ if (toml[ptr] && toml[ptr] !== "\n" && toml[ptr] !== "\r") {
1507
+ throw new TomlError("each key-value declaration must be followed by an end-of-line", {
1508
+ toml,
1509
+ ptr
1510
+ });
1511
+ }
1512
+ ptr = skipVoid(toml, ptr);
1513
+ }
1514
+ return res;
1515
+ }
1516
+ var init_parse = __esm({
1517
+ "../../node_modules/.pnpm/smol-toml@1.6.1/node_modules/smol-toml/dist/parse.js"() {
1518
+ "use strict";
1519
+ init_struct();
1520
+ init_extract();
1521
+ init_util();
1522
+ init_error();
1523
+ }
1524
+ });
1525
+
1526
+ // ../../node_modules/.pnpm/smol-toml@1.6.1/node_modules/smol-toml/dist/stringify.js
1527
+ function extendedTypeOf(obj) {
1528
+ let type2 = typeof obj;
1529
+ if (type2 === "object") {
1530
+ if (Array.isArray(obj))
1531
+ return "array";
1532
+ if (obj instanceof Date)
1533
+ return "date";
1534
+ }
1535
+ return type2;
1536
+ }
1537
+ function isArrayOfTables(obj) {
1538
+ for (let i = 0; i < obj.length; i++) {
1539
+ if (extendedTypeOf(obj[i]) !== "object")
1540
+ return false;
1541
+ }
1542
+ return obj.length != 0;
1543
+ }
1544
+ function formatString(s) {
1545
+ return JSON.stringify(s).replace(/\x7f/g, "\\u007f");
1546
+ }
1547
+ function stringifyValue(val, type2, depth, numberAsFloat) {
1548
+ if (depth === 0) {
1549
+ throw new Error("Could not stringify the object: maximum object depth exceeded");
1550
+ }
1551
+ if (type2 === "number") {
1552
+ if (isNaN(val))
1553
+ return "nan";
1554
+ if (val === Infinity)
1555
+ return "inf";
1556
+ if (val === -Infinity)
1557
+ return "-inf";
1558
+ if (numberAsFloat && Number.isInteger(val))
1559
+ return val.toFixed(1);
1560
+ return val.toString();
1561
+ }
1562
+ if (type2 === "bigint" || type2 === "boolean") {
1563
+ return val.toString();
1564
+ }
1565
+ if (type2 === "string") {
1566
+ return formatString(val);
1567
+ }
1568
+ if (type2 === "date") {
1569
+ if (isNaN(val.getTime())) {
1570
+ throw new TypeError("cannot serialize invalid date");
1571
+ }
1572
+ return val.toISOString();
1573
+ }
1574
+ if (type2 === "object") {
1575
+ return stringifyInlineTable(val, depth, numberAsFloat);
1576
+ }
1577
+ if (type2 === "array") {
1578
+ return stringifyArray(val, depth, numberAsFloat);
1579
+ }
1580
+ }
1581
+ function stringifyInlineTable(obj, depth, numberAsFloat) {
1582
+ let keys = Object.keys(obj);
1583
+ if (keys.length === 0)
1584
+ return "{}";
1585
+ let res = "{ ";
1586
+ for (let i = 0; i < keys.length; i++) {
1587
+ let k = keys[i];
1588
+ if (i)
1589
+ res += ", ";
1590
+ res += BARE_KEY.test(k) ? k : formatString(k);
1591
+ res += " = ";
1592
+ res += stringifyValue(obj[k], extendedTypeOf(obj[k]), depth - 1, numberAsFloat);
1593
+ }
1594
+ return res + " }";
1595
+ }
1596
+ function stringifyArray(array, depth, numberAsFloat) {
1597
+ if (array.length === 0)
1598
+ return "[]";
1599
+ let res = "[ ";
1600
+ for (let i = 0; i < array.length; i++) {
1601
+ if (i)
1602
+ res += ", ";
1603
+ if (array[i] === null || array[i] === void 0) {
1604
+ throw new TypeError("arrays cannot contain null or undefined values");
1605
+ }
1606
+ res += stringifyValue(array[i], extendedTypeOf(array[i]), depth - 1, numberAsFloat);
1607
+ }
1608
+ return res + " ]";
1609
+ }
1610
+ function stringifyArrayTable(array, key, depth, numberAsFloat) {
1611
+ if (depth === 0) {
1612
+ throw new Error("Could not stringify the object: maximum object depth exceeded");
1613
+ }
1614
+ let res = "";
1615
+ for (let i = 0; i < array.length; i++) {
1616
+ res += `${res && "\n"}[[${key}]]
1617
+ `;
1618
+ res += stringifyTable(0, array[i], key, depth, numberAsFloat);
1619
+ }
1620
+ return res;
1621
+ }
1622
+ function stringifyTable(tableKey, obj, prefix, depth, numberAsFloat) {
1623
+ if (depth === 0) {
1624
+ throw new Error("Could not stringify the object: maximum object depth exceeded");
1625
+ }
1626
+ let preamble = "";
1627
+ let tables = "";
1628
+ let keys = Object.keys(obj);
1629
+ for (let i = 0; i < keys.length; i++) {
1630
+ let k = keys[i];
1631
+ if (obj[k] !== null && obj[k] !== void 0) {
1632
+ let type2 = extendedTypeOf(obj[k]);
1633
+ if (type2 === "symbol" || type2 === "function") {
1634
+ throw new TypeError(`cannot serialize values of type '${type2}'`);
1635
+ }
1636
+ let key = BARE_KEY.test(k) ? k : formatString(k);
1637
+ if (type2 === "array" && isArrayOfTables(obj[k])) {
1638
+ tables += (tables && "\n") + stringifyArrayTable(obj[k], prefix ? `${prefix}.${key}` : key, depth - 1, numberAsFloat);
1639
+ } else if (type2 === "object") {
1640
+ let tblKey = prefix ? `${prefix}.${key}` : key;
1641
+ tables += (tables && "\n") + stringifyTable(tblKey, obj[k], tblKey, depth - 1, numberAsFloat);
1642
+ } else {
1643
+ preamble += key;
1644
+ preamble += " = ";
1645
+ preamble += stringifyValue(obj[k], type2, depth, numberAsFloat);
1646
+ preamble += "\n";
1647
+ }
1648
+ }
1649
+ }
1650
+ if (tableKey && (preamble || !tables))
1651
+ preamble = preamble ? `[${tableKey}]
1652
+ ${preamble}` : `[${tableKey}]`;
1653
+ return preamble && tables ? `${preamble}
1654
+ ${tables}` : preamble || tables;
1655
+ }
1656
+ function stringify(obj, { maxDepth = 1e3, numbersAsFloat = false } = {}) {
1657
+ if (extendedTypeOf(obj) !== "object") {
1658
+ throw new TypeError("stringify can only be called with an object");
1659
+ }
1660
+ let str3 = stringifyTable(0, obj, "", maxDepth, numbersAsFloat);
1661
+ if (str3[str3.length - 1] !== "\n")
1662
+ return str3 + "\n";
1663
+ return str3;
1664
+ }
1665
+ var BARE_KEY;
1666
+ var init_stringify = __esm({
1667
+ "../../node_modules/.pnpm/smol-toml@1.6.1/node_modules/smol-toml/dist/stringify.js"() {
1668
+ "use strict";
1669
+ BARE_KEY = /^[a-z0-9-_]+$/i;
1670
+ }
1671
+ });
1672
+
1673
+ // ../../node_modules/.pnpm/smol-toml@1.6.1/node_modules/smol-toml/dist/index.js
1674
+ var init_dist = __esm({
1675
+ "../../node_modules/.pnpm/smol-toml@1.6.1/node_modules/smol-toml/dist/index.js"() {
1676
+ "use strict";
1677
+ init_parse();
1678
+ init_stringify();
1679
+ init_date();
1680
+ init_error();
1681
+ }
1682
+ });
1683
+
261
1684
  // ../../node_modules/.pnpm/@anthropic-ai+sdk@0.82.0_zod@4.3.6/node_modules/@anthropic-ai/sdk/internal/tslib.mjs
262
1685
  function __classPrivateFieldSet(receiver, state, value, kind, f) {
263
1686
  if (kind === "m")
@@ -338,7 +1761,7 @@ var init_errors = __esm({
338
1761
 
339
1762
  // ../../node_modules/.pnpm/@anthropic-ai+sdk@0.82.0_zod@4.3.6/node_modules/@anthropic-ai/sdk/core/error.mjs
340
1763
  var AnthropicError, APIError, APIUserAbortError, APIConnectionError, APIConnectionTimeoutError, BadRequestError, AuthenticationError, PermissionDeniedError, NotFoundError, ConflictError, UnprocessableEntityError, RateLimitError, InternalServerError;
341
- var init_error = __esm({
1764
+ var init_error2 = __esm({
342
1765
  "../../node_modules/.pnpm/@anthropic-ai+sdk@0.82.0_zod@4.3.6/node_modules/@anthropic-ai/sdk/core/error.mjs"() {
343
1766
  "use strict";
344
1767
  init_errors();
@@ -456,7 +1879,7 @@ var startsWithSchemeRegexp, isAbsoluteURL, isArray, isReadonlyArray, validatePos
456
1879
  var init_values = __esm({
457
1880
  "../../node_modules/.pnpm/@anthropic-ai+sdk@0.82.0_zod@4.3.6/node_modules/@anthropic-ai/sdk/internal/utils/values.mjs"() {
458
1881
  "use strict";
459
- init_error();
1882
+ init_error2();
460
1883
  startsWithSchemeRegexp = /^[a-z][a-z0-9+.-]*:/i;
461
1884
  isAbsoluteURL = (url) => {
462
1885
  return startsWithSchemeRegexp.test(url);
@@ -748,7 +2171,7 @@ function stringifyQuery(query) {
748
2171
  var init_query = __esm({
749
2172
  "../../node_modules/.pnpm/@anthropic-ai+sdk@0.82.0_zod@4.3.6/node_modules/@anthropic-ai/sdk/internal/utils/query.mjs"() {
750
2173
  "use strict";
751
- init_error();
2174
+ init_error2();
752
2175
  }
753
2176
  });
754
2177
 
@@ -1002,7 +2425,7 @@ var init_streaming = __esm({
1002
2425
  "../../node_modules/.pnpm/@anthropic-ai+sdk@0.82.0_zod@4.3.6/node_modules/@anthropic-ai/sdk/core/streaming.mjs"() {
1003
2426
  "use strict";
1004
2427
  init_tslib();
1005
- init_error();
2428
+ init_error2();
1006
2429
  init_shims();
1007
2430
  init_line();
1008
2431
  init_shims();
@@ -1010,7 +2433,7 @@ var init_streaming = __esm({
1010
2433
  init_values();
1011
2434
  init_bytes();
1012
2435
  init_log();
1013
- init_error();
2436
+ init_error2();
1014
2437
  Stream = class _Stream {
1015
2438
  constructor(iterator, controller, client) {
1016
2439
  this.iterator = iterator;
@@ -1259,7 +2682,7 @@ function addRequestID(value, response) {
1259
2682
  enumerable: false
1260
2683
  });
1261
2684
  }
1262
- var init_parse = __esm({
2685
+ var init_parse2 = __esm({
1263
2686
  "../../node_modules/.pnpm/@anthropic-ai+sdk@0.82.0_zod@4.3.6/node_modules/@anthropic-ai/sdk/internal/parse.mjs"() {
1264
2687
  "use strict";
1265
2688
  init_streaming();
@@ -1273,7 +2696,7 @@ var init_api_promise = __esm({
1273
2696
  "../../node_modules/.pnpm/@anthropic-ai+sdk@0.82.0_zod@4.3.6/node_modules/@anthropic-ai/sdk/core/api-promise.mjs"() {
1274
2697
  "use strict";
1275
2698
  init_tslib();
1276
- init_parse();
2699
+ init_parse2();
1277
2700
  APIPromise = class _APIPromise extends Promise {
1278
2701
  constructor(client, responsePromise, parseResponse2 = defaultParseResponse) {
1279
2702
  super((resolve11) => {
@@ -1343,8 +2766,8 @@ var init_pagination = __esm({
1343
2766
  "../../node_modules/.pnpm/@anthropic-ai+sdk@0.82.0_zod@4.3.6/node_modules/@anthropic-ai/sdk/core/pagination.mjs"() {
1344
2767
  "use strict";
1345
2768
  init_tslib();
1346
- init_error();
1347
- init_parse();
2769
+ init_error2();
2770
+ init_parse2();
1348
2771
  init_api_promise();
1349
2772
  init_values();
1350
2773
  AbstractPage = class {
@@ -1515,8 +2938,8 @@ var init_uploads = __esm({
1515
2938
  init_shims();
1516
2939
  checkFileSupport = () => {
1517
2940
  if (typeof File === "undefined") {
1518
- const { process: process2 } = globalThis;
1519
- const isOldNode = typeof process2?.versions?.node === "string" && parseInt(process2.versions.node.split(".")) < 20;
2941
+ const { process: process3 } = globalThis;
2942
+ const isOldNode = typeof process3?.versions?.node === "string" && parseInt(process3.versions.node.split(".")) < 20;
1520
2943
  throw new Error("`File` is not defined as a global, which is required for file uploads." + (isOldNode ? " Update to Node 20 LTS or newer, or set `globalThis.File` to `import('node:buffer').File`." : ""));
1521
2944
  }
1522
2945
  };
@@ -1783,7 +3206,7 @@ var EMPTY, createPathTagFunction, path3;
1783
3206
  var init_path = __esm({
1784
3207
  "../../node_modules/.pnpm/@anthropic-ai+sdk@0.82.0_zod@4.3.6/node_modules/@anthropic-ai/sdk/internal/utils/path.mjs"() {
1785
3208
  "use strict";
1786
- init_error();
3209
+ init_error2();
1787
3210
  EMPTY = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.create(null));
1788
3211
  createPathTagFunction = (pathEncoder = encodeURIPath) => function path19(statics, ...params) {
1789
3212
  if (statics.length === 1)
@@ -2026,10 +3449,10 @@ var init_models = __esm({
2026
3449
  });
2027
3450
 
2028
3451
  // ../../node_modules/.pnpm/@anthropic-ai+sdk@0.82.0_zod@4.3.6/node_modules/@anthropic-ai/sdk/error.mjs
2029
- var init_error2 = __esm({
3452
+ var init_error3 = __esm({
2030
3453
  "../../node_modules/.pnpm/@anthropic-ai+sdk@0.82.0_zod@4.3.6/node_modules/@anthropic-ai/sdk/error.mjs"() {
2031
3454
  "use strict";
2032
- init_error();
3455
+ init_error2();
2033
3456
  }
2034
3457
  });
2035
3458
 
@@ -2126,7 +3549,7 @@ function parseBetaOutputFormat(params, content) {
2126
3549
  var init_beta_parser = __esm({
2127
3550
  "../../node_modules/.pnpm/@anthropic-ai+sdk@0.82.0_zod@4.3.6/node_modules/@anthropic-ai/sdk/lib/beta-parser.mjs"() {
2128
3551
  "use strict";
2129
- init_error();
3552
+ init_error2();
2130
3553
  }
2131
3554
  });
2132
3555
 
@@ -2376,7 +3799,7 @@ var init_BetaMessageStream = __esm({
2376
3799
  "use strict";
2377
3800
  init_tslib();
2378
3801
  init_parser();
2379
- init_error2();
3802
+ init_error3();
2380
3803
  init_errors();
2381
3804
  init_streaming2();
2382
3805
  init_beta_parser();
@@ -3078,7 +4501,7 @@ var init_BetaToolRunner = __esm({
3078
4501
  "use strict";
3079
4502
  init_tslib();
3080
4503
  init_ToolError();
3081
- init_error();
4504
+ init_error2();
3082
4505
  init_headers();
3083
4506
  init_CompactionControl();
3084
4507
  init_stainless_helper_header();
@@ -3360,7 +4783,7 @@ var JSONLDecoder;
3360
4783
  var init_jsonl = __esm({
3361
4784
  "../../node_modules/.pnpm/@anthropic-ai+sdk@0.82.0_zod@4.3.6/node_modules/@anthropic-ai/sdk/internal/decoders/jsonl.mjs"() {
3362
4785
  "use strict";
3363
- init_error();
4786
+ init_error2();
3364
4787
  init_shims();
3365
4788
  init_line();
3366
4789
  JSONLDecoder = class _JSONLDecoder {
@@ -3405,7 +4828,7 @@ var init_batches = __esm({
3405
4828
  init_pagination();
3406
4829
  init_headers();
3407
4830
  init_jsonl();
3408
- init_error2();
4831
+ init_error3();
3409
4832
  init_path();
3410
4833
  Batches = class extends APIResource {
3411
4834
  /**
@@ -3621,7 +5044,7 @@ var DEPRECATED_MODELS, MODELS_TO_WARN_WITH_THINKING_ENABLED, Messages;
3621
5044
  var init_messages = __esm({
3622
5045
  "../../node_modules/.pnpm/@anthropic-ai+sdk@0.82.0_zod@4.3.6/node_modules/@anthropic-ai/sdk/resources/beta/messages/messages.mjs"() {
3623
5046
  "use strict";
3624
- init_error2();
5047
+ init_error3();
3625
5048
  init_resource();
3626
5049
  init_constants();
3627
5050
  init_headers();
@@ -4072,7 +5495,7 @@ function parseOutputFormat(params, content) {
4072
5495
  var init_parser2 = __esm({
4073
5496
  "../../node_modules/.pnpm/@anthropic-ai+sdk@0.82.0_zod@4.3.6/node_modules/@anthropic-ai/sdk/lib/parser.mjs"() {
4074
5497
  "use strict";
4075
- init_error();
5498
+ init_error2();
4076
5499
  }
4077
5500
  });
4078
5501
 
@@ -4088,7 +5511,7 @@ var init_MessageStream = __esm({
4088
5511
  "use strict";
4089
5512
  init_tslib();
4090
5513
  init_errors();
4091
- init_error2();
5514
+ init_error3();
4092
5515
  init_streaming2();
4093
5516
  init_parser();
4094
5517
  init_parser2();
@@ -4663,7 +6086,7 @@ var init_batches2 = __esm({
4663
6086
  init_pagination();
4664
6087
  init_headers();
4665
6088
  init_jsonl();
4666
- init_error2();
6089
+ init_error3();
4667
6090
  init_path();
4668
6091
  Batches2 = class extends APIResource {
4669
6092
  /**
@@ -4998,12 +6421,12 @@ var readEnv;
4998
6421
  var init_env = __esm({
4999
6422
  "../../node_modules/.pnpm/@anthropic-ai+sdk@0.82.0_zod@4.3.6/node_modules/@anthropic-ai/sdk/internal/utils/env.mjs"() {
5000
6423
  "use strict";
5001
- readEnv = (env) => {
6424
+ readEnv = (env2) => {
5002
6425
  if (typeof globalThis.process !== "undefined") {
5003
- return globalThis.process.env?.[env]?.trim() ?? void 0;
6426
+ return globalThis.process.env?.[env2]?.trim() ?? void 0;
5004
6427
  }
5005
6428
  if (typeof globalThis.Deno !== "undefined") {
5006
- return globalThis.Deno.env?.get?.(env)?.trim();
6429
+ return globalThis.Deno.env?.get?.(env2)?.trim();
5007
6430
  }
5008
6431
  return void 0;
5009
6432
  };
@@ -5025,7 +6448,7 @@ var init_client = __esm({
5025
6448
  init_request_options();
5026
6449
  init_query();
5027
6450
  init_version();
5028
- init_error();
6451
+ init_error2();
5029
6452
  init_pagination();
5030
6453
  init_uploads2();
5031
6454
  init_resources();
@@ -5516,7 +6939,7 @@ var init_sdk = __esm({
5516
6939
  init_api_promise();
5517
6940
  init_client();
5518
6941
  init_pagination();
5519
- init_error();
6942
+ init_error2();
5520
6943
  }
5521
6944
  });
5522
6945
 
@@ -5600,7 +7023,7 @@ var init_errors2 = __esm({
5600
7023
 
5601
7024
  // ../../node_modules/.pnpm/openai@6.33.0_zod@4.3.6/node_modules/openai/core/error.mjs
5602
7025
  var OpenAIError, APIError2, APIUserAbortError2, APIConnectionError2, APIConnectionTimeoutError2, BadRequestError2, AuthenticationError2, PermissionDeniedError2, NotFoundError2, ConflictError2, UnprocessableEntityError2, RateLimitError2, InternalServerError2, LengthFinishReasonError, ContentFilterFinishReasonError, InvalidWebhookSignatureError;
5603
- var init_error3 = __esm({
7026
+ var init_error4 = __esm({
5604
7027
  "../../node_modules/.pnpm/openai@6.33.0_zod@4.3.6/node_modules/openai/core/error.mjs"() {
5605
7028
  "use strict";
5606
7029
  init_errors2();
@@ -5738,7 +7161,7 @@ var startsWithSchemeRegexp2, isAbsoluteURL2, isArray2, isReadonlyArray2, validat
5738
7161
  var init_values2 = __esm({
5739
7162
  "../../node_modules/.pnpm/openai@6.33.0_zod@4.3.6/node_modules/openai/internal/utils/values.mjs"() {
5740
7163
  "use strict";
5741
- init_error3();
7164
+ init_error4();
5742
7165
  startsWithSchemeRegexp2 = /^[a-z][a-z0-9+.-]*:/i;
5743
7166
  isAbsoluteURL2 = (url) => {
5744
7167
  return startsWithSchemeRegexp2.test(url);
@@ -6292,7 +7715,7 @@ function normalize_stringify_options(opts = defaults) {
6292
7715
  strictNullHandling: typeof opts.strictNullHandling === "boolean" ? opts.strictNullHandling : defaults.strictNullHandling
6293
7716
  };
6294
7717
  }
6295
- function stringify(object, opts = {}) {
7718
+ function stringify2(object, opts = {}) {
6296
7719
  let obj = object;
6297
7720
  const options = normalize_stringify_options(opts);
6298
7721
  let obj_keys;
@@ -6356,7 +7779,7 @@ function stringify(object, opts = {}) {
6356
7779
  return joined.length > 0 ? prefix + joined : "";
6357
7780
  }
6358
7781
  var array_prefix_generators, push_to_array, toISOString, defaults, sentinel;
6359
- var init_stringify = __esm({
7782
+ var init_stringify2 = __esm({
6360
7783
  "../../node_modules/.pnpm/openai@6.33.0_zod@4.3.6/node_modules/openai/internal/qs/stringify.mjs"() {
6361
7784
  "use strict";
6362
7785
  init_utils();
@@ -6405,12 +7828,12 @@ var init_stringify = __esm({
6405
7828
 
6406
7829
  // ../../node_modules/.pnpm/openai@6.33.0_zod@4.3.6/node_modules/openai/internal/utils/query.mjs
6407
7830
  function stringifyQuery2(query) {
6408
- return stringify(query, { arrayFormat: "brackets" });
7831
+ return stringify2(query, { arrayFormat: "brackets" });
6409
7832
  }
6410
7833
  var init_query2 = __esm({
6411
7834
  "../../node_modules/.pnpm/openai@6.33.0_zod@4.3.6/node_modules/openai/internal/utils/query.mjs"() {
6412
7835
  "use strict";
6413
- init_stringify();
7836
+ init_stringify2();
6414
7837
  }
6415
7838
  });
6416
7839
 
@@ -6664,14 +8087,14 @@ var init_streaming3 = __esm({
6664
8087
  "../../node_modules/.pnpm/openai@6.33.0_zod@4.3.6/node_modules/openai/core/streaming.mjs"() {
6665
8088
  "use strict";
6666
8089
  init_tslib2();
6667
- init_error3();
8090
+ init_error4();
6668
8091
  init_shims2();
6669
8092
  init_line2();
6670
8093
  init_shims2();
6671
8094
  init_errors2();
6672
8095
  init_bytes2();
6673
8096
  init_log2();
6674
- init_error3();
8097
+ init_error4();
6675
8098
  Stream2 = class _Stream {
6676
8099
  constructor(iterator, controller, client) {
6677
8100
  this.iterator = iterator;
@@ -6927,7 +8350,7 @@ function addRequestID2(value, response) {
6927
8350
  enumerable: false
6928
8351
  });
6929
8352
  }
6930
- var init_parse2 = __esm({
8353
+ var init_parse3 = __esm({
6931
8354
  "../../node_modules/.pnpm/openai@6.33.0_zod@4.3.6/node_modules/openai/internal/parse.mjs"() {
6932
8355
  "use strict";
6933
8356
  init_streaming3();
@@ -6941,7 +8364,7 @@ var init_api_promise2 = __esm({
6941
8364
  "../../node_modules/.pnpm/openai@6.33.0_zod@4.3.6/node_modules/openai/core/api-promise.mjs"() {
6942
8365
  "use strict";
6943
8366
  init_tslib2();
6944
- init_parse2();
8367
+ init_parse3();
6945
8368
  APIPromise2 = class _APIPromise extends Promise {
6946
8369
  constructor(client, responsePromise, parseResponse2 = defaultParseResponse2) {
6947
8370
  super((resolve11) => {
@@ -7011,8 +8434,8 @@ var init_pagination2 = __esm({
7011
8434
  "../../node_modules/.pnpm/openai@6.33.0_zod@4.3.6/node_modules/openai/core/pagination.mjs"() {
7012
8435
  "use strict";
7013
8436
  init_tslib2();
7014
- init_error3();
7015
- init_parse2();
8437
+ init_error4();
8438
+ init_parse3();
7016
8439
  init_api_promise2();
7017
8440
  init_values2();
7018
8441
  AbstractPage2 = class {
@@ -7181,8 +8604,8 @@ var init_uploads3 = __esm({
7181
8604
  init_shims2();
7182
8605
  checkFileSupport2 = () => {
7183
8606
  if (typeof File === "undefined") {
7184
- const { process: process2 } = globalThis;
7185
- const isOldNode = typeof process2?.versions?.node === "string" && parseInt(process2.versions.node.split(".")) < 20;
8607
+ const { process: process3 } = globalThis;
8608
+ const isOldNode = typeof process3?.versions?.node === "string" && parseInt(process3.versions.node.split(".")) < 20;
7186
8609
  throw new Error("`File` is not defined as a global, which is required for file uploads." + (isOldNode ? " Update to Node 20 LTS or newer, or set `globalThis.File` to `import('node:buffer').File`." : ""));
7187
8610
  }
7188
8611
  };
@@ -7333,7 +8756,7 @@ var EMPTY2, createPathTagFunction2, path4;
7333
8756
  var init_path2 = __esm({
7334
8757
  "../../node_modules/.pnpm/openai@6.33.0_zod@4.3.6/node_modules/openai/internal/utils/path.mjs"() {
7335
8758
  "use strict";
7336
- init_error3();
8759
+ init_error4();
7337
8760
  EMPTY2 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.create(null));
7338
8761
  createPathTagFunction2 = (pathEncoder = encodeURIPath2) => function path19(statics, ...params) {
7339
8762
  if (statics.length === 1)
@@ -7418,10 +8841,10 @@ var init_messages3 = __esm({
7418
8841
  });
7419
8842
 
7420
8843
  // ../../node_modules/.pnpm/openai@6.33.0_zod@4.3.6/node_modules/openai/error.mjs
7421
- var init_error4 = __esm({
8844
+ var init_error5 = __esm({
7422
8845
  "../../node_modules/.pnpm/openai@6.33.0_zod@4.3.6/node_modules/openai/error.mjs"() {
7423
8846
  "use strict";
7424
- init_error3();
8847
+ init_error4();
7425
8848
  }
7426
8849
  });
7427
8850
 
@@ -7534,7 +8957,7 @@ function validateInputTools(tools) {
7534
8957
  var init_parser3 = __esm({
7535
8958
  "../../node_modules/.pnpm/openai@6.33.0_zod@4.3.6/node_modules/openai/lib/parser.mjs"() {
7536
8959
  "use strict";
7537
- init_error4();
8960
+ init_error5();
7538
8961
  }
7539
8962
  });
7540
8963
 
@@ -7558,7 +8981,7 @@ var init_EventStream = __esm({
7558
8981
  "../../node_modules/.pnpm/openai@6.33.0_zod@4.3.6/node_modules/openai/lib/EventStream.mjs"() {
7559
8982
  "use strict";
7560
8983
  init_tslib2();
7561
- init_error4();
8984
+ init_error5();
7562
8985
  EventStream = class {
7563
8986
  constructor() {
7564
8987
  _EventStream_instances.add(this);
@@ -7752,7 +9175,7 @@ var init_AbstractChatCompletionRunner = __esm({
7752
9175
  "../../node_modules/.pnpm/openai@6.33.0_zod@4.3.6/node_modules/openai/lib/AbstractChatCompletionRunner.mjs"() {
7753
9176
  "use strict";
7754
9177
  init_tslib2();
7755
- init_error4();
9178
+ init_error5();
7756
9179
  init_parser3();
7757
9180
  init_chatCompletionUtils();
7758
9181
  init_EventStream();
@@ -8373,7 +9796,7 @@ var init_ChatCompletionStream = __esm({
8373
9796
  "use strict";
8374
9797
  init_tslib2();
8375
9798
  init_parser4();
8376
- init_error4();
9799
+ init_error5();
8377
9800
  init_parser3();
8378
9801
  init_streaming4();
8379
9802
  init_AbstractChatCompletionRunner();
@@ -9574,7 +10997,7 @@ var toFloat32Array;
9574
10997
  var init_base64 = __esm({
9575
10998
  "../../node_modules/.pnpm/openai@6.33.0_zod@4.3.6/node_modules/openai/internal/utils/base64.mjs"() {
9576
10999
  "use strict";
9577
- init_error3();
11000
+ init_error4();
9578
11001
  init_bytes2();
9579
11002
  toFloat32Array = (base64Str) => {
9580
11003
  if (typeof Buffer !== "undefined") {
@@ -9598,12 +11021,12 @@ var readEnv2;
9598
11021
  var init_env2 = __esm({
9599
11022
  "../../node_modules/.pnpm/openai@6.33.0_zod@4.3.6/node_modules/openai/internal/utils/env.mjs"() {
9600
11023
  "use strict";
9601
- readEnv2 = (env) => {
11024
+ readEnv2 = (env2) => {
9602
11025
  if (typeof globalThis.process !== "undefined") {
9603
- return globalThis.process.env?.[env]?.trim() ?? void 0;
11026
+ return globalThis.process.env?.[env2]?.trim() ?? void 0;
9604
11027
  }
9605
11028
  if (typeof globalThis.Deno !== "undefined") {
9606
- return globalThis.Deno.env?.get?.(env)?.trim();
11029
+ return globalThis.Deno.env?.get?.(env2)?.trim();
9607
11030
  }
9608
11031
  return void 0;
9609
11032
  };
@@ -9633,7 +11056,7 @@ var init_AssistantStream = __esm({
9633
11056
  "use strict";
9634
11057
  init_tslib2();
9635
11058
  init_streaming4();
9636
- init_error4();
11059
+ init_error5();
9637
11060
  init_EventStream();
9638
11061
  init_utils2();
9639
11062
  AssistantStream = class extends EventStream {
@@ -10887,7 +12310,7 @@ var init_files3 = __esm({
10887
12310
  init_pagination2();
10888
12311
  init_headers2();
10889
12312
  init_sleep2();
10890
- init_error4();
12313
+ init_error5();
10891
12314
  init_uploads3();
10892
12315
  init_path2();
10893
12316
  Files3 = class extends APIResource2 {
@@ -11706,7 +13129,7 @@ function addOutputText(rsp) {
11706
13129
  var init_ResponsesParser = __esm({
11707
13130
  "../../node_modules/.pnpm/openai@6.33.0_zod@4.3.6/node_modules/openai/lib/ResponsesParser.mjs"() {
11708
13131
  "use strict";
11709
- init_error4();
13132
+ init_error5();
11710
13133
  init_parser3();
11711
13134
  }
11712
13135
  });
@@ -11720,7 +13143,7 @@ var init_ResponseStream = __esm({
11720
13143
  "../../node_modules/.pnpm/openai@6.33.0_zod@4.3.6/node_modules/openai/lib/responses/ResponseStream.mjs"() {
11721
13144
  "use strict";
11722
13145
  init_tslib2();
11723
- init_error4();
13146
+ init_error5();
11724
13147
  init_EventStream();
11725
13148
  init_ResponsesParser();
11726
13149
  ResponseStream = class _ResponseStream extends EventStream {
@@ -12858,7 +14281,7 @@ var init_webhooks = __esm({
12858
14281
  "../../node_modules/.pnpm/openai@6.33.0_zod@4.3.6/node_modules/openai/resources/webhooks/webhooks.mjs"() {
12859
14282
  "use strict";
12860
14283
  init_tslib2();
12861
- init_error4();
14284
+ init_error5();
12862
14285
  init_resource2();
12863
14286
  init_headers2();
12864
14287
  Webhooks = class extends APIResource2 {
@@ -12999,7 +14422,7 @@ var init_client2 = __esm({
12999
14422
  init_request_options2();
13000
14423
  init_query2();
13001
14424
  init_version2();
13002
- init_error3();
14425
+ init_error4();
13003
14426
  init_pagination2();
13004
14427
  init_uploads4();
13005
14428
  init_resources2();
@@ -13519,7 +14942,7 @@ var init_azure = __esm({
13519
14942
  "../../node_modules/.pnpm/openai@6.33.0_zod@4.3.6/node_modules/openai/azure.mjs"() {
13520
14943
  "use strict";
13521
14944
  init_headers2();
13522
- init_error4();
14945
+ init_error5();
13523
14946
  init_utils2();
13524
14947
  init_client2();
13525
14948
  }
@@ -13534,7 +14957,7 @@ var init_openai = __esm({
13534
14957
  init_api_promise2();
13535
14958
  init_client2();
13536
14959
  init_pagination2();
13537
- init_error3();
14960
+ init_error4();
13538
14961
  init_azure();
13539
14962
  }
13540
14963
  });
@@ -15025,15 +16448,15 @@ var require_runtime = __commonJS({
15025
16448
  throw new _exception2["default"]("Template was precompiled with a newer version of Handlebars than the current runtime. Please update your runtime to a newer version (" + compilerInfo[1] + ").");
15026
16449
  }
15027
16450
  }
15028
- function template(templateSpec, env) {
15029
- if (!env) {
16451
+ function template(templateSpec, env2) {
16452
+ if (!env2) {
15030
16453
  throw new _exception2["default"]("No environment passed to template");
15031
16454
  }
15032
16455
  if (!templateSpec || !templateSpec.main) {
15033
16456
  throw new _exception2["default"]("Unknown template object: " + typeof templateSpec);
15034
16457
  }
15035
16458
  templateSpec.main.decorator = templateSpec.main_d;
15036
- env.VM.checkRevision(templateSpec.compiler);
16459
+ env2.VM.checkRevision(templateSpec.compiler);
15037
16460
  var templateWasPrecompiledWithCompilerV7 = templateSpec.compiler && templateSpec.compiler[0] === 7;
15038
16461
  function invokePartialWrapper(partial, context, options) {
15039
16462
  if (options.hash) {
@@ -15042,12 +16465,12 @@ var require_runtime = __commonJS({
15042
16465
  options.ids[0] = true;
15043
16466
  }
15044
16467
  }
15045
- partial = env.VM.resolvePartial.call(this, partial, context, options);
16468
+ partial = env2.VM.resolvePartial.call(this, partial, context, options);
15046
16469
  options.hooks = this.hooks;
15047
16470
  options.protoAccessControl = this.protoAccessControl;
15048
- var result = env.VM.invokePartial.call(this, partial, context, options);
15049
- if (result == null && env.compile) {
15050
- options.partials[options.name] = env.compile(partial, templateSpec.compilerOptions, env);
16471
+ var result = env2.VM.invokePartial.call(this, partial, context, options);
16472
+ if (result == null && env2.compile) {
16473
+ options.partials[options.name] = env2.compile(partial, templateSpec.compilerOptions, env2);
15051
16474
  result = options.partials[options.name](context, options);
15052
16475
  }
15053
16476
  if (result != null) {
@@ -15132,7 +16555,7 @@ var require_runtime = __commonJS({
15132
16555
  },
15133
16556
  // An empty object to use as replacement for null-contexts
15134
16557
  nullContext: Object.seal({}),
15135
- noop: env.VM.noop,
16558
+ noop: env2.VM.noop,
15136
16559
  compilerInfo: templateSpec.compiler
15137
16560
  };
15138
16561
  function ret(context) {
@@ -15160,14 +16583,14 @@ var require_runtime = __commonJS({
15160
16583
  ret._setup = function(options) {
15161
16584
  if (!options.partial) {
15162
16585
  var mergedHelpers = {};
15163
- addHelpers(mergedHelpers, env.helpers, container);
16586
+ addHelpers(mergedHelpers, env2.helpers, container);
15164
16587
  addHelpers(mergedHelpers, options.helpers, container);
15165
16588
  container.helpers = mergedHelpers;
15166
16589
  if (templateSpec.usePartial) {
15167
- container.partials = container.mergeIfNeeded(options.partials, env.partials);
16590
+ container.partials = container.mergeIfNeeded(options.partials, env2.partials);
15168
16591
  }
15169
16592
  if (templateSpec.usePartial || templateSpec.useDecorators) {
15170
- container.decorators = Utils.extend({}, env.decorators, options.decorators);
16593
+ container.decorators = Utils.extend({}, env2.decorators, options.decorators);
15171
16594
  }
15172
16595
  container.hooks = {};
15173
16596
  container.protoAccessControl = _internalProtoAccess.createProtoAccessControl(options);
@@ -15666,7 +17089,7 @@ var require_parser = __commonJS({
15666
17089
  parseError: function parseError(str3, hash) {
15667
17090
  throw new Error(str3);
15668
17091
  },
15669
- parse: function parse4(input) {
17092
+ parse: function parse2(input) {
15670
17093
  var self = this, stack = [0], vstack = [null], lstack = [], table = this.table, yytext = "", yylineno = 0, yyleng = 0, recovering = 0, TERROR = 2, EOF = 1;
15671
17094
  this.lexer.setInput(input);
15672
17095
  this.lexer.yy = this.yy;
@@ -16579,7 +18002,7 @@ var require_base2 = __commonJS({
16579
18002
  "use strict";
16580
18003
  exports2.__esModule = true;
16581
18004
  exports2.parseWithoutProcessing = parseWithoutProcessing;
16582
- exports2.parse = parse4;
18005
+ exports2.parse = parse2;
16583
18006
  function _interopRequireWildcard(obj) {
16584
18007
  if (obj && obj.__esModule) {
16585
18008
  return obj;
@@ -16621,7 +18044,7 @@ var require_base2 = __commonJS({
16621
18044
  var ast = _parser2["default"].parse(input);
16622
18045
  return ast;
16623
18046
  }
16624
- function parse4(input, options) {
18047
+ function parse2(input, options) {
16625
18048
  var ast = parseWithoutProcessing(input, options);
16626
18049
  var strip3 = new _whitespaceControl2["default"](options);
16627
18050
  return strip3.accept(ast);
@@ -17016,7 +18439,7 @@ var require_compiler = __commonJS({
17016
18439
  }
17017
18440
  }
17018
18441
  };
17019
- function precompile(input, options, env) {
18442
+ function precompile(input, options, env2) {
17020
18443
  if (input == null || typeof input !== "string" && input.type !== "Program") {
17021
18444
  throw new _exception2["default"]("You must pass a string or Handlebars AST to Handlebars.precompile. You passed " + input);
17022
18445
  }
@@ -17027,10 +18450,10 @@ var require_compiler = __commonJS({
17027
18450
  if (options.compat) {
17028
18451
  options.useDepths = true;
17029
18452
  }
17030
- var ast = env.parse(input, options), environment = new env.Compiler().compile(ast, options);
17031
- return new env.JavaScriptCompiler().compile(environment, options);
18453
+ var ast = env2.parse(input, options), environment = new env2.Compiler().compile(ast, options);
18454
+ return new env2.JavaScriptCompiler().compile(environment, options);
17032
18455
  }
17033
- function compile2(input, options, env) {
18456
+ function compile2(input, options, env2) {
17034
18457
  if (options === void 0) options = {};
17035
18458
  if (input == null || typeof input !== "string" && input.type !== "Program") {
17036
18459
  throw new _exception2["default"]("You must pass a string or Handlebars AST to Handlebars.compile. You passed " + input);
@@ -17044,8 +18467,8 @@ var require_compiler = __commonJS({
17044
18467
  }
17045
18468
  var compiled = void 0;
17046
18469
  function compileInput() {
17047
- var ast = env.parse(input, options), environment = new env.Compiler().compile(ast, options), templateSpec = new env.JavaScriptCompiler().compile(environment, options, void 0, true);
17048
- return env.template(templateSpec);
18470
+ var ast = env2.parse(input, options), environment = new env2.Compiler().compile(ast, options), templateSpec = new env2.JavaScriptCompiler().compile(environment, options, void 0, true);
18471
+ return env2.template(templateSpec);
17049
18472
  }
17050
18473
  function ret(context, execOptions) {
17051
18474
  if (!compiled) {
@@ -20148,14 +21571,14 @@ function promisify(fn) {
20148
21571
  });
20149
21572
  };
20150
21573
  }
20151
- function stringify2(value) {
21574
+ function stringify3(value) {
20152
21575
  value = toValue(value);
20153
21576
  if (isString(value))
20154
21577
  return value;
20155
21578
  if (isNil(value))
20156
21579
  return "";
20157
21580
  if (isArray3(value))
20158
- return value.map((x) => stringify2(x)).join("");
21581
+ return value.map((x) => stringify3(x)).join("");
20159
21582
  return String(value);
20160
21583
  }
20161
21584
  function toEnumerable(val) {
@@ -20701,7 +22124,7 @@ function to_integer(value) {
20701
22124
  return Number(value);
20702
22125
  }
20703
22126
  function escape2(str3) {
20704
- str3 = stringify2(str3);
22127
+ str3 = stringify3(str3);
20705
22128
  this.context.memoryLimit.use(str3.length);
20706
22129
  return str3.replace(/&|<|>|"|'/g, (m) => escapeMap[m]);
20707
22130
  }
@@ -20709,7 +22132,7 @@ function xml_escape(str3) {
20709
22132
  return escape2.call(this, str3);
20710
22133
  }
20711
22134
  function unescape2(str3) {
20712
- str3 = stringify2(str3);
22135
+ str3 = stringify3(str3);
20713
22136
  this.context.memoryLimit.use(str3.length);
20714
22137
  return str3.replace(/&(amp|lt|gt|#34|#39);/g, (m) => unescapeMap[m]);
20715
22138
  }
@@ -20717,12 +22140,12 @@ function escape_once(str3) {
20717
22140
  return escape2.call(this, unescape2.call(this, str3));
20718
22141
  }
20719
22142
  function newline_to_br(v) {
20720
- const str3 = stringify2(v);
22143
+ const str3 = stringify3(v);
20721
22144
  this.context.memoryLimit.use(str3.length);
20722
22145
  return str3.replace(/\r?\n/gm, "<br />\n");
20723
22146
  }
20724
22147
  function strip_html(v) {
20725
- const str3 = stringify2(v);
22148
+ const str3 = stringify3(v);
20726
22149
  this.context.memoryLimit.use(str3.length);
20727
22150
  return str3.replace(/<script[\s\S]*?<\/script>|<style[\s\S]*?<\/style>|<.*?>|<!--[\s\S]*?-->/g, "");
20728
22151
  }
@@ -21081,7 +22504,7 @@ function round(v, arg = 0) {
21081
22504
  return Math.round(v * amp) / amp;
21082
22505
  }
21083
22506
  function slugify(str3, mode = "default", cased = false) {
21084
- str3 = stringify2(str3);
22507
+ str3 = stringify3(str3);
21085
22508
  const replacer = rSlugifyReplacers[mode];
21086
22509
  if (replacer) {
21087
22510
  if (mode === "latin")
@@ -21100,7 +22523,7 @@ function* sort(arr, property) {
21100
22523
  for (const item of array) {
21101
22524
  values.push([
21102
22525
  item,
21103
- property ? yield this.context._getFromScope(item, stringify2(property).split("."), false) : item
22526
+ property ? yield this.context._getFromScope(item, stringify3(property).split("."), false) : item
21104
22527
  ]);
21105
22528
  }
21106
22529
  return values.sort((lhs, rhs) => {
@@ -21110,7 +22533,7 @@ function* sort(arr, property) {
21110
22533
  }).map((tuple) => tuple[0]);
21111
22534
  }
21112
22535
  function sort_natural(input, property) {
21113
- const propertyString = stringify2(property);
22536
+ const propertyString = stringify3(property);
21114
22537
  const compare = property === void 0 ? caseInsensitiveCompare : (lhs, rhs) => caseInsensitiveCompare(lhs[propertyString], rhs[propertyString]);
21115
22538
  const array = toArray(input);
21116
22539
  this.context.memoryLimit.use(array.length);
@@ -21121,7 +22544,7 @@ function* map(arr, property) {
21121
22544
  const array = toArray(arr);
21122
22545
  this.context.memoryLimit.use(array.length);
21123
22546
  for (const item of array) {
21124
- results.push(yield this.context._getFromScope(item, stringify2(property), false));
22547
+ results.push(yield this.context._getFromScope(item, stringify3(property), false));
21125
22548
  }
21126
22549
  return results;
21127
22550
  }
@@ -21129,7 +22552,7 @@ function* sum(arr, property) {
21129
22552
  let sum2 = 0;
21130
22553
  const array = toArray(arr);
21131
22554
  for (const item of array) {
21132
- const data = Number(property ? yield this.context._getFromScope(item, stringify2(property), false) : item);
22555
+ const data = Number(property ? yield this.context._getFromScope(item, stringify3(property), false) : item);
21133
22556
  sum2 += Number.isNaN(data) ? 0 : data;
21134
22557
  }
21135
22558
  return sum2;
@@ -21172,7 +22595,7 @@ function slice(v, begin, length = 1) {
21172
22595
  if (isNil(v))
21173
22596
  return [];
21174
22597
  if (!isArray3(v))
21175
- v = stringify2(v);
22598
+ v = stringify3(v);
21176
22599
  begin = begin < 0 ? v.length + begin : begin;
21177
22600
  this.context.memoryLimit.use(length);
21178
22601
  return v.slice(begin, begin + length);
@@ -21190,7 +22613,7 @@ function* filter(include, arr, property, expected) {
21190
22613
  const values = [];
21191
22614
  arr = toArray(arr);
21192
22615
  this.context.memoryLimit.use(arr.length);
21193
- const token = new Tokenizer(stringify2(property)).readScopeValue();
22616
+ const token = new Tokenizer(stringify3(property)).readScopeValue();
21194
22617
  for (const item of arr) {
21195
22618
  values.push(yield evalToken(token, this.context.spawn(item)));
21196
22619
  }
@@ -21199,7 +22622,7 @@ function* filter(include, arr, property, expected) {
21199
22622
  }
21200
22623
  function* filter_exp(include, arr, itemName, exp) {
21201
22624
  const filtered = [];
21202
- const keyTemplate = new Value(stringify2(exp), this.liquid);
22625
+ const keyTemplate = new Value(stringify3(exp), this.liquid);
21203
22626
  const array = toArray(arr);
21204
22627
  this.context.memoryLimit.use(array.length);
21205
22628
  for (const item of array) {
@@ -21226,7 +22649,7 @@ function* reject_exp(arr, itemName, exp) {
21226
22649
  function* group_by(arr, property) {
21227
22650
  const map3 = /* @__PURE__ */ new Map();
21228
22651
  arr = toEnumerable(arr);
21229
- const token = new Tokenizer(stringify2(property)).readScopeValue();
22652
+ const token = new Tokenizer(stringify3(property)).readScopeValue();
21230
22653
  this.context.memoryLimit.use(arr.length);
21231
22654
  for (const item of arr) {
21232
22655
  const key = yield evalToken(token, this.context.spawn(item));
@@ -21238,7 +22661,7 @@ function* group_by(arr, property) {
21238
22661
  }
21239
22662
  function* group_by_exp(arr, itemName, exp) {
21240
22663
  const map3 = /* @__PURE__ */ new Map();
21241
- const keyTemplate = new Value(stringify2(exp), this.liquid);
22664
+ const keyTemplate = new Value(stringify3(exp), this.liquid);
21242
22665
  arr = toEnumerable(arr);
21243
22666
  this.context.memoryLimit.use(arr.length);
21244
22667
  for (const item of arr) {
@@ -21252,7 +22675,7 @@ function* group_by_exp(arr, itemName, exp) {
21252
22675
  return [...map3.entries()].map(([name, items]) => ({ name, items }));
21253
22676
  }
21254
22677
  function* search(arr, property, expected) {
21255
- const token = new Tokenizer(stringify2(property)).readScopeValue();
22678
+ const token = new Tokenizer(stringify3(property)).readScopeValue();
21256
22679
  const array = toArray(arr);
21257
22680
  const matcher = expectedMatcher.call(this, expected);
21258
22681
  for (let index = 0; index < array.length; index++) {
@@ -21262,7 +22685,7 @@ function* search(arr, property, expected) {
21262
22685
  }
21263
22686
  }
21264
22687
  function* search_exp(arr, itemName, exp) {
21265
- const predicate = new Value(stringify2(exp), this.liquid);
22688
+ const predicate = new Value(stringify3(exp), this.liquid);
21266
22689
  const array = toArray(arr);
21267
22690
  for (let index = 0; index < array.length; index++) {
21268
22691
  this.context.push({ [itemName]: array[index] });
@@ -21306,7 +22729,7 @@ function sample(v, count = 1) {
21306
22729
  if (isNil(v))
21307
22730
  return [];
21308
22731
  if (!isArray3(v))
21309
- v = stringify2(v);
22732
+ v = stringify3(v);
21310
22733
  this.context.memoryLimit.use(count);
21311
22734
  const shuffled = [...v].sort(() => Math.random() - 0.5);
21312
22735
  if (count === 1)
@@ -21321,7 +22744,7 @@ function date(v, format2, timezoneOffset) {
21321
22744
  if (!date2)
21322
22745
  return v;
21323
22746
  format2 = toValue(format2);
21324
- format2 = isNil(format2) ? this.context.opts.dateFormat : stringify2(format2);
22747
+ format2 = isNil(format2) ? this.context.opts.dateFormat : stringify3(format2);
21325
22748
  return strftime(date2, format2);
21326
22749
  }
21327
22750
  function date_to_xmlschema(v) {
@@ -21370,23 +22793,23 @@ function parseDate(v, opts, timezoneOffset) {
21370
22793
  }
21371
22794
  function append(v, arg) {
21372
22795
  assert(arguments.length === 2, "append expect 2 arguments");
21373
- const lhs = stringify2(v);
21374
- const rhs = stringify2(arg);
22796
+ const lhs = stringify3(v);
22797
+ const rhs = stringify3(arg);
21375
22798
  this.context.memoryLimit.use(lhs.length + rhs.length);
21376
22799
  return lhs + rhs;
21377
22800
  }
21378
22801
  function prepend(v, arg) {
21379
22802
  assert(arguments.length === 2, "prepend expect 2 arguments");
21380
- const lhs = stringify2(v);
21381
- const rhs = stringify2(arg);
22803
+ const lhs = stringify3(v);
22804
+ const rhs = stringify3(arg);
21382
22805
  this.context.memoryLimit.use(lhs.length + rhs.length);
21383
22806
  return rhs + lhs;
21384
22807
  }
21385
22808
  function lstrip(v, chars) {
21386
- const str3 = stringify2(v);
22809
+ const str3 = stringify3(v);
21387
22810
  this.context.memoryLimit.use(str3.length);
21388
22811
  if (chars) {
21389
- chars = stringify2(chars);
22812
+ chars = stringify3(chars);
21390
22813
  this.context.memoryLimit.use(chars.length);
21391
22814
  for (let i = 0, set2 = new Set(chars); i < str3.length; i++) {
21392
22815
  if (!set2.has(str3[i]))
@@ -21397,30 +22820,30 @@ function lstrip(v, chars) {
21397
22820
  return str3.trimStart();
21398
22821
  }
21399
22822
  function downcase(v) {
21400
- const str3 = stringify2(v);
22823
+ const str3 = stringify3(v);
21401
22824
  this.context.memoryLimit.use(str3.length);
21402
22825
  return str3.toLowerCase();
21403
22826
  }
21404
22827
  function upcase(v) {
21405
- const str3 = stringify2(v);
22828
+ const str3 = stringify3(v);
21406
22829
  this.context.memoryLimit.use(str3.length);
21407
- return stringify2(str3).toUpperCase();
22830
+ return stringify3(str3).toUpperCase();
21408
22831
  }
21409
22832
  function remove(v, arg) {
21410
- const str3 = stringify2(v);
21411
- arg = stringify2(arg);
22833
+ const str3 = stringify3(v);
22834
+ arg = stringify3(arg);
21412
22835
  this.context.memoryLimit.use(str3.length + arg.length);
21413
22836
  return str3.split(arg).join("");
21414
22837
  }
21415
22838
  function remove_first(v, l) {
21416
- const str3 = stringify2(v);
21417
- l = stringify2(l);
22839
+ const str3 = stringify3(v);
22840
+ l = stringify3(l);
21418
22841
  this.context.memoryLimit.use(str3.length + l.length);
21419
22842
  return str3.replace(l, "");
21420
22843
  }
21421
22844
  function remove_last(v, l) {
21422
- const str3 = stringify2(v);
21423
- const pattern = stringify2(l);
22845
+ const str3 = stringify3(v);
22846
+ const pattern = stringify3(l);
21424
22847
  this.context.memoryLimit.use(str3.length + pattern.length);
21425
22848
  const index = str3.lastIndexOf(pattern);
21426
22849
  if (index === -1)
@@ -21428,10 +22851,10 @@ function remove_last(v, l) {
21428
22851
  return str3.substring(0, index) + str3.substring(index + pattern.length);
21429
22852
  }
21430
22853
  function rstrip(str3, chars) {
21431
- str3 = stringify2(str3);
22854
+ str3 = stringify3(str3);
21432
22855
  this.context.memoryLimit.use(str3.length);
21433
22856
  if (chars) {
21434
- chars = stringify2(chars);
22857
+ chars = stringify3(chars);
21435
22858
  this.context.memoryLimit.use(chars.length);
21436
22859
  for (let i = str3.length - 1, set2 = new Set(chars); i >= 0; i--) {
21437
22860
  if (!set2.has(str3[i]))
@@ -21442,18 +22865,18 @@ function rstrip(str3, chars) {
21442
22865
  return str3.trimEnd();
21443
22866
  }
21444
22867
  function split(v, arg) {
21445
- const str3 = stringify2(v);
22868
+ const str3 = stringify3(v);
21446
22869
  this.context.memoryLimit.use(str3.length);
21447
- const arr = str3.split(stringify2(arg));
22870
+ const arr = str3.split(stringify3(arg));
21448
22871
  while (arr.length && arr[arr.length - 1] === "")
21449
22872
  arr.pop();
21450
22873
  return arr;
21451
22874
  }
21452
22875
  function strip2(v, chars) {
21453
- const str3 = stringify2(v);
22876
+ const str3 = stringify3(v);
21454
22877
  this.context.memoryLimit.use(str3.length);
21455
22878
  if (chars) {
21456
- const set2 = new Set(stringify2(chars));
22879
+ const set2 = new Set(stringify3(chars));
21457
22880
  this.context.memoryLimit.use(set2.size);
21458
22881
  let i = 0;
21459
22882
  let j = str3.length - 1;
@@ -21466,33 +22889,33 @@ function strip2(v, chars) {
21466
22889
  return str3.trim();
21467
22890
  }
21468
22891
  function strip_newlines(v) {
21469
- const str3 = stringify2(v);
22892
+ const str3 = stringify3(v);
21470
22893
  this.context.memoryLimit.use(str3.length);
21471
22894
  return str3.replace(/\r?\n/gm, "");
21472
22895
  }
21473
22896
  function capitalize(str3) {
21474
- str3 = stringify2(str3);
22897
+ str3 = stringify3(str3);
21475
22898
  this.context.memoryLimit.use(str3.length);
21476
22899
  return str3.charAt(0).toUpperCase() + str3.slice(1).toLowerCase();
21477
22900
  }
21478
22901
  function replace(v, pattern, replacement) {
21479
- const str3 = stringify2(v);
21480
- pattern = stringify2(pattern);
21481
- replacement = stringify2(replacement);
22902
+ const str3 = stringify3(v);
22903
+ pattern = stringify3(pattern);
22904
+ replacement = stringify3(replacement);
21482
22905
  this.context.memoryLimit.use(str3.length + pattern.length + replacement.length);
21483
22906
  return str3.split(pattern).join(replacement);
21484
22907
  }
21485
22908
  function replace_first(v, arg1, arg2) {
21486
- const str3 = stringify2(v);
21487
- arg1 = stringify2(arg1);
21488
- arg2 = stringify2(arg2);
22909
+ const str3 = stringify3(v);
22910
+ arg1 = stringify3(arg1);
22911
+ arg2 = stringify3(arg2);
21489
22912
  this.context.memoryLimit.use(str3.length + arg1.length + arg2.length);
21490
22913
  return str3.replace(arg1, () => arg2);
21491
22914
  }
21492
22915
  function replace_last(v, arg1, arg2) {
21493
- const str3 = stringify2(v);
21494
- const pattern = stringify2(arg1);
21495
- const replacement = stringify2(arg2);
22916
+ const str3 = stringify3(v);
22917
+ const pattern = stringify3(arg1);
22918
+ const replacement = stringify3(arg2);
21496
22919
  this.context.memoryLimit.use(str3.length + pattern.length + replacement.length);
21497
22920
  const index = str3.lastIndexOf(pattern);
21498
22921
  if (index === -1)
@@ -21500,16 +22923,16 @@ function replace_last(v, arg1, arg2) {
21500
22923
  return str3.substring(0, index) + replacement + str3.substring(index + pattern.length);
21501
22924
  }
21502
22925
  function truncate(v, l = 50, o = "...") {
21503
- const str3 = stringify2(v);
21504
- o = stringify2(o);
22926
+ const str3 = stringify3(v);
22927
+ o = stringify3(o);
21505
22928
  this.context.memoryLimit.use(str3.length + o.length);
21506
22929
  if (str3.length <= l)
21507
22930
  return v;
21508
22931
  return str3.substring(0, l - o.length) + o;
21509
22932
  }
21510
22933
  function truncatewords(v, words = 15, o = "...") {
21511
- const str3 = stringify2(v);
21512
- o = stringify2(o);
22934
+ const str3 = stringify3(v);
22935
+ o = stringify3(o);
21513
22936
  this.context.memoryLimit.use(str3.length + o.length);
21514
22937
  const arr = str3.split(/\s+/);
21515
22938
  if (words <= 0)
@@ -21520,12 +22943,12 @@ function truncatewords(v, words = 15, o = "...") {
21520
22943
  return ret;
21521
22944
  }
21522
22945
  function normalize_whitespace(v) {
21523
- const str3 = stringify2(v);
22946
+ const str3 = stringify3(v);
21524
22947
  this.context.memoryLimit.use(str3.length);
21525
22948
  return str3.replace(/\s+/g, " ");
21526
22949
  }
21527
22950
  function number_of_words(input, mode) {
21528
- const str3 = stringify2(input);
22951
+ const str3 = stringify3(input);
21529
22952
  this.context.memoryLimit.use(str3.length);
21530
22953
  input = str3.trim();
21531
22954
  if (!input)
@@ -21540,7 +22963,7 @@ function number_of_words(input, mode) {
21540
22963
  }
21541
22964
  }
21542
22965
  function array_to_sentence_string(array, connector = "and") {
21543
- connector = stringify2(connector);
22966
+ connector = stringify3(connector);
21544
22967
  this.context.memoryLimit.use(array.length + connector.length);
21545
22968
  switch (array.length) {
21546
22969
  case 0:
@@ -21560,12 +22983,12 @@ function base64Decode(str3) {
21560
22983
  return Buffer.from(str3, "base64").toString("utf8");
21561
22984
  }
21562
22985
  function base64_encode(value) {
21563
- const str3 = stringify2(value);
22986
+ const str3 = stringify3(value);
21564
22987
  this.context.memoryLimit.use(str3.length);
21565
22988
  return base64Encode(str3);
21566
22989
  }
21567
22990
  function base64_decode(value) {
21568
- const str3 = stringify2(value);
22991
+ const str3 = stringify3(value);
21569
22992
  this.context.memoryLimit.use(str3.length);
21570
22993
  return base64Decode(str3);
21571
22994
  }
@@ -21837,7 +23260,7 @@ var init_liquid_node = __esm({
21837
23260
  this.buffer = "";
21838
23261
  }
21839
23262
  write(html) {
21840
- this.buffer += stringify2(html);
23263
+ this.buffer += stringify3(html);
21841
23264
  }
21842
23265
  };
21843
23266
  StreamedEmitter = class {
@@ -21846,7 +23269,7 @@ var init_liquid_node = __esm({
21846
23269
  this.stream = new PassThrough();
21847
23270
  }
21848
23271
  write(html) {
21849
- this.stream.write(stringify2(html));
23272
+ this.stream.write(stringify3(html));
21850
23273
  }
21851
23274
  error(err) {
21852
23275
  this.stream.emit("error", err);
@@ -21864,7 +23287,7 @@ var init_liquid_node = __esm({
21864
23287
  if (typeof html !== "string" && this.buffer === "") {
21865
23288
  this.buffer = html;
21866
23289
  } else {
21867
- this.buffer = stringify2(this.buffer) + stringify2(html);
23290
+ this.buffer = stringify3(this.buffer) + stringify3(html);
21868
23291
  }
21869
23292
  }
21870
23293
  };
@@ -23454,7 +24877,7 @@ var init_liquid_node = __esm({
23454
24877
  TokenKind2[TokenKind2["Delimited"] = 12] = "Delimited";
23455
24878
  })(TokenKind || (TokenKind = {}));
23456
24879
  Context = class _Context {
23457
- constructor(env = {}, opts = defaultOptions, renderOptions = {}, { memoryLimit, renderLimit } = {}) {
24880
+ constructor(env2 = {}, opts = defaultOptions, renderOptions = {}, { memoryLimit, renderLimit } = {}) {
23458
24881
  var _a5, _b, _c, _d, _e;
23459
24882
  this.scopes = [{}];
23460
24883
  this.registers = {};
@@ -23463,7 +24886,7 @@ var init_liquid_node = __esm({
23463
24886
  this.sync = !!renderOptions.sync;
23464
24887
  this.opts = opts;
23465
24888
  this.globals = (_a5 = renderOptions.globals) !== null && _a5 !== void 0 ? _a5 : opts.globals;
23466
- this.environments = isObject(env) ? env : Object(env);
24889
+ this.environments = isObject(env2) ? env2 : Object(env2);
23467
24890
  this.strictVariables = (_b = renderOptions.strictVariables) !== null && _b !== void 0 ? _b : this.opts.strictVariables;
23468
24891
  this.ownPropertyOnly = (_c = renderOptions.ownPropertyOnly) !== null && _c !== void 0 ? _c : opts.ownPropertyOnly;
23469
24892
  this.memoryLimit = memoryLimit !== null && memoryLimit !== void 0 ? memoryLimit : new Limiter("memory alloc", (_d = renderOptions.memoryLimit) !== null && _d !== void 0 ? _d : opts.memoryLimit);
@@ -23592,10 +25015,10 @@ var init_liquid_node = __esm({
23592
25015
  times,
23593
25016
  round
23594
25017
  });
23595
- url_decode = (x) => decodeURIComponent(stringify2(x)).replace(/\+/g, " ");
23596
- url_encode = (x) => encodeURIComponent(stringify2(x)).replace(/%20/g, "+");
23597
- cgi_escape = (x) => encodeURIComponent(stringify2(x)).replace(/%20/g, "+").replace(/[!'()*]/g, (c) => "%" + c.charCodeAt(0).toString(16).toUpperCase());
23598
- uri_escape = (x) => encodeURI(stringify2(x)).replace(/%5B/g, "[").replace(/%5D/g, "]");
25018
+ url_decode = (x) => decodeURIComponent(stringify3(x)).replace(/\+/g, " ");
25019
+ url_encode = (x) => encodeURIComponent(stringify3(x)).replace(/%20/g, "+");
25020
+ cgi_escape = (x) => encodeURIComponent(stringify3(x)).replace(/%20/g, "+").replace(/[!'()*]/g, (c) => "%" + c.charCodeAt(0).toString(16).toUpperCase());
25021
+ uri_escape = (x) => encodeURI(stringify3(x)).replace(/%5B/g, "[").replace(/%5D/g, "]");
23599
25022
  rSlugifyDefault = /[^\p{M}\p{L}\p{Nd}]+/ug;
23600
25023
  rSlugifyReplacers = {
23601
25024
  "raw": /\s+/g,
@@ -23615,7 +25038,7 @@ var init_liquid_node = __esm({
23615
25038
  });
23616
25039
  join = argumentsToValue(function(v, arg) {
23617
25040
  const array = toArray(v);
23618
- const sep4 = isNil(arg) ? " " : stringify2(arg);
25041
+ const sep4 = isNil(arg) ? " " : stringify3(arg);
23619
25042
  const complexity = array.length * (1 + sep4.length);
23620
25043
  this.context.memoryLimit.use(complexity);
23621
25044
  return array.join(sep4);
@@ -24104,7 +25527,7 @@ var init_liquid_node = __esm({
24104
25527
  if (!isNumber(scope[this.variable])) {
24105
25528
  scope[this.variable] = 0;
24106
25529
  }
24107
- emitter.write(stringify2(--scope[this.variable]));
25530
+ emitter.write(stringify3(--scope[this.variable]));
24108
25531
  }
24109
25532
  *localScope() {
24110
25533
  yield this.identifier;
@@ -24211,7 +25634,7 @@ var init_liquid_node = __esm({
24211
25634
  }
24212
25635
  const val = scope[this.variable];
24213
25636
  scope[this.variable]++;
24214
- emitter.write(stringify2(val));
25637
+ emitter.write(stringify3(val));
24215
25638
  }
24216
25639
  *localScope() {
24217
25640
  yield this.identifier;
@@ -24914,13 +26337,12 @@ var init_aggregator_IUQUAVJC = __esm({
24914
26337
  });
24915
26338
 
24916
26339
  // ../notes/dist/chunk-Y4S5UWCL.js
24917
- import * as TOML from "smol-toml";
24918
26340
  import * as fs32 from "fs";
24919
26341
  import * as path32 from "path";
24920
26342
  import { z as z2 } from "zod";
24921
26343
  import { z } from "zod";
24922
26344
  import * as fs22 from "fs";
24923
- import * as os from "os";
26345
+ import * as os2 from "os";
24924
26346
  import * as path22 from "path";
24925
26347
  import * as fs42 from "fs";
24926
26348
  import * as fs9 from "fs";
@@ -24957,7 +26379,7 @@ function substituteVariables(value) {
24957
26379
  return process.env[varName] ?? "";
24958
26380
  });
24959
26381
  result = result.replace(filePattern, (_, filePath) => {
24960
- const expandedPath = filePath.startsWith("~") ? path22.join(os.homedir(), filePath.slice(1)) : filePath;
26382
+ const expandedPath = filePath.startsWith("~") ? path22.join(os2.homedir(), filePath.slice(1)) : filePath;
24961
26383
  try {
24962
26384
  return fs22.readFileSync(expandedPath, "utf-8").trim();
24963
26385
  } catch {
@@ -26249,6 +27671,7 @@ var init_chunk_Y4S5UWCL = __esm({
26249
27671
  "../notes/dist/chunk-Y4S5UWCL.js"() {
26250
27672
  "use strict";
26251
27673
  init_chunk_7TJSPQPW();
27674
+ init_dist();
26252
27675
  init_sdk();
26253
27676
  init_openai();
26254
27677
  init_openai();
@@ -26557,7 +27980,7 @@ var init_chunk_Y4S5UWCL = __esm({
26557
27980
  });
26558
27981
  MAX_INPUT_LENGTH = 1e4;
26559
27982
  SOLE_REFERENCE_PATTERN = /^\{(?:env|file):[^}]+\}$/;
26560
- AUTH_DIR = path22.join(os.homedir(), ".config", "releasekit");
27983
+ AUTH_DIR = path22.join(os2.homedir(), ".config", "releasekit");
26561
27984
  AUTH_FILE = path22.join(AUTH_DIR, "auth.json");
26562
27985
  CONFIG_FILE = "releasekit.config.json";
26563
27986
  NotesError = class extends ReleaseKitError2 {
@@ -26844,8 +28267,8 @@ Summary (only output the summary, nothing else):`;
26844
28267
  });
26845
28268
 
26846
28269
  // ../notes/dist/index.js
26847
- var dist_exports = {};
26848
- __export(dist_exports, {
28270
+ var dist_exports2 = {};
28271
+ __export(dist_exports2, {
26849
28272
  ConfigError: () => ConfigError2,
26850
28273
  GitHubError: () => GitHubError,
26851
28274
  InputParseError: () => InputParseError,
@@ -26907,7 +28330,7 @@ function writeJson(outputPath, contexts, dryRun) {
26907
28330
  fs11.writeFileSync(outputPath, content, "utf-8");
26908
28331
  success2(`JSON output written to ${outputPath}`);
26909
28332
  }
26910
- var init_dist = __esm({
28333
+ var init_dist2 = __esm({
26911
28334
  "../notes/dist/index.js"() {
26912
28335
  "use strict";
26913
28336
  init_chunk_Y4S5UWCL();
@@ -27374,7 +28797,7 @@ var require_parse = __commonJS({
27374
28797
  "../../node_modules/.pnpm/semver@7.7.4/node_modules/semver/functions/parse.js"(exports2, module2) {
27375
28798
  "use strict";
27376
28799
  var SemVer = require_semver();
27377
- var parse4 = (version, options, throwErrors = false) => {
28800
+ var parse2 = (version, options, throwErrors = false) => {
27378
28801
  if (version instanceof SemVer) {
27379
28802
  return version;
27380
28803
  }
@@ -27387,7 +28810,7 @@ var require_parse = __commonJS({
27387
28810
  throw er;
27388
28811
  }
27389
28812
  };
27390
- module2.exports = parse4;
28813
+ module2.exports = parse2;
27391
28814
  }
27392
28815
  });
27393
28816
 
@@ -27395,9 +28818,9 @@ var require_parse = __commonJS({
27395
28818
  var require_valid = __commonJS({
27396
28819
  "../../node_modules/.pnpm/semver@7.7.4/node_modules/semver/functions/valid.js"(exports2, module2) {
27397
28820
  "use strict";
27398
- var parse4 = require_parse();
28821
+ var parse2 = require_parse();
27399
28822
  var valid = (version, options) => {
27400
- const v = parse4(version, options);
28823
+ const v = parse2(version, options);
27401
28824
  return v ? v.version : null;
27402
28825
  };
27403
28826
  module2.exports = valid;
@@ -27408,9 +28831,9 @@ var require_valid = __commonJS({
27408
28831
  var require_clean = __commonJS({
27409
28832
  "../../node_modules/.pnpm/semver@7.7.4/node_modules/semver/functions/clean.js"(exports2, module2) {
27410
28833
  "use strict";
27411
- var parse4 = require_parse();
28834
+ var parse2 = require_parse();
27412
28835
  var clean = (version, options) => {
27413
- const s = parse4(version.trim().replace(/^[=v]+/, ""), options);
28836
+ const s = parse2(version.trim().replace(/^[=v]+/, ""), options);
27414
28837
  return s ? s.version : null;
27415
28838
  };
27416
28839
  module2.exports = clean;
@@ -27445,10 +28868,10 @@ var require_inc = __commonJS({
27445
28868
  var require_diff = __commonJS({
27446
28869
  "../../node_modules/.pnpm/semver@7.7.4/node_modules/semver/functions/diff.js"(exports2, module2) {
27447
28870
  "use strict";
27448
- var parse4 = require_parse();
28871
+ var parse2 = require_parse();
27449
28872
  var diff = (version1, version2) => {
27450
- const v1 = parse4(version1, null, true);
27451
- const v2 = parse4(version2, null, true);
28873
+ const v1 = parse2(version1, null, true);
28874
+ const v2 = parse2(version2, null, true);
27452
28875
  const comparison = v1.compare(v2);
27453
28876
  if (comparison === 0) {
27454
28877
  return null;
@@ -27519,9 +28942,9 @@ var require_patch = __commonJS({
27519
28942
  var require_prerelease = __commonJS({
27520
28943
  "../../node_modules/.pnpm/semver@7.7.4/node_modules/semver/functions/prerelease.js"(exports2, module2) {
27521
28944
  "use strict";
27522
- var parse4 = require_parse();
28945
+ var parse2 = require_parse();
27523
28946
  var prerelease = (version, options) => {
27524
- const parsed = parse4(version, options);
28947
+ const parsed = parse2(version, options);
27525
28948
  return parsed && parsed.prerelease.length ? parsed.prerelease : null;
27526
28949
  };
27527
28950
  module2.exports = prerelease;
@@ -27707,7 +29130,7 @@ var require_coerce = __commonJS({
27707
29130
  "../../node_modules/.pnpm/semver@7.7.4/node_modules/semver/functions/coerce.js"(exports2, module2) {
27708
29131
  "use strict";
27709
29132
  var SemVer = require_semver();
27710
- var parse4 = require_parse();
29133
+ var parse2 = require_parse();
27711
29134
  var { safeRe: re, t } = require_re();
27712
29135
  var coerce = (version, options) => {
27713
29136
  if (version instanceof SemVer) {
@@ -27742,7 +29165,7 @@ var require_coerce = __commonJS({
27742
29165
  const patch = match2[4] || "0";
27743
29166
  const prerelease = options.includePrerelease && match2[5] ? `-${match2[5]}` : "";
27744
29167
  const build2 = options.includePrerelease && match2[6] ? `+${match2[6]}` : "";
27745
- return parse4(`${major}.${minor}.${patch}${prerelease}${build2}`, options);
29168
+ return parse2(`${major}.${minor}.${patch}${prerelease}${build2}`, options);
27746
29169
  };
27747
29170
  module2.exports = coerce;
27748
29171
  }
@@ -28759,7 +30182,7 @@ var require_semver2 = __commonJS({
28759
30182
  var constants = require_constants();
28760
30183
  var SemVer = require_semver();
28761
30184
  var identifiers = require_identifiers();
28762
- var parse4 = require_parse();
30185
+ var parse2 = require_parse();
28763
30186
  var valid = require_valid();
28764
30187
  var clean = require_clean();
28765
30188
  var inc = require_inc();
@@ -28797,7 +30220,7 @@ var require_semver2 = __commonJS({
28797
30220
  var simplifyRange = require_simplify();
28798
30221
  var subset = require_subset();
28799
30222
  module2.exports = {
28800
- parse: parse4,
30223
+ parse: parse2,
28801
30224
  valid,
28802
30225
  clean,
28803
30226
  inc,
@@ -28847,19 +30270,16 @@ var require_semver2 = __commonJS({
28847
30270
  });
28848
30271
 
28849
30272
  // ../publish/dist/chunk-OZHNJUFW.js
28850
- import chalk3 from "chalk";
28851
30273
  import * as fs23 from "fs";
28852
- import * as TOML2 from "smol-toml";
28853
30274
  import * as fs33 from "fs";
28854
30275
  import * as path33 from "path";
28855
30276
  import { z as z22 } from "zod";
28856
30277
  import { z as z3 } from "zod";
28857
30278
  import * as fs222 from "fs";
28858
- import * as os2 from "os";
30279
+ import * as os3 from "os";
28859
30280
  import * as path222 from "path";
28860
30281
  import { execFile } from "child_process";
28861
30282
  import * as fs43 from "fs";
28862
- import * as TOML22 from "smol-toml";
28863
30283
  import * as fs53 from "fs";
28864
30284
  import * as path43 from "path";
28865
30285
  import * as fs62 from "fs";
@@ -28897,7 +30317,7 @@ function info3(message) {
28897
30317
  }
28898
30318
  function success3(message) {
28899
30319
  if (!shouldLog3("info")) return;
28900
- console.error(chalk3.green(`[SUCCESS] ${message}`));
30320
+ console.error(source_default.green(`[SUCCESS] ${message}`));
28901
30321
  }
28902
30322
  function debug2(message) {
28903
30323
  log3(message, "debug");
@@ -28907,7 +30327,7 @@ function sanitizePackageName(name) {
28907
30327
  }
28908
30328
  function parseCargoToml(cargoPath) {
28909
30329
  const content = fs23.readFileSync(cargoPath, "utf-8");
28910
- return TOML2.parse(content);
30330
+ return parse(content);
28911
30331
  }
28912
30332
  function mergeGitConfig(topLevel, packageLevel) {
28913
30333
  if (!topLevel && !packageLevel) return void 0;
@@ -28948,7 +30368,7 @@ function substituteVariables2(value) {
28948
30368
  return process.env[varName] ?? "";
28949
30369
  });
28950
30370
  result = result.replace(filePattern, (_, filePath) => {
28951
- const expandedPath = filePath.startsWith("~") ? path222.join(os2.homedir(), filePath.slice(1)) : filePath;
30371
+ const expandedPath = filePath.startsWith("~") ? path222.join(os3.homedir(), filePath.slice(1)) : filePath;
28952
30372
  try {
28953
30373
  return fs222.readFileSync(expandedPath, "utf-8").trim();
28954
30374
  } catch {
@@ -29394,7 +30814,7 @@ function updateCargoVersion(cargoPath, newVersion) {
29394
30814
  const cargo = parseCargoToml(cargoPath);
29395
30815
  if (cargo.package) {
29396
30816
  cargo.package.version = newVersion;
29397
- fs43.writeFileSync(cargoPath, TOML22.stringify(cargo));
30817
+ fs43.writeFileSync(cargoPath, stringify(cargo));
29398
30818
  }
29399
30819
  } catch (error3) {
29400
30820
  throw createPublishError(
@@ -30386,6 +31806,9 @@ var import_semver, LOG_LEVELS3, PREFIXES3, COLORS3, currentLevel3, quietMode3, R
30386
31806
  var init_chunk_OZHNJUFW = __esm({
30387
31807
  "../publish/dist/chunk-OZHNJUFW.js"() {
30388
31808
  "use strict";
31809
+ init_source();
31810
+ init_dist();
31811
+ init_dist();
30389
31812
  import_semver = __toESM(require_semver2(), 1);
30390
31813
  LOG_LEVELS3 = {
30391
31814
  error: 0,
@@ -30402,11 +31825,11 @@ var init_chunk_OZHNJUFW = __esm({
30402
31825
  trace: "[TRACE]"
30403
31826
  };
30404
31827
  COLORS3 = {
30405
- error: chalk3.red,
30406
- warn: chalk3.yellow,
30407
- info: chalk3.blue,
30408
- debug: chalk3.gray,
30409
- trace: chalk3.dim
31828
+ error: source_default.red,
31829
+ warn: source_default.yellow,
31830
+ info: source_default.blue,
31831
+ debug: source_default.gray,
31832
+ trace: source_default.dim
30410
31833
  };
30411
31834
  currentLevel3 = "info";
30412
31835
  quietMode3 = false;
@@ -30742,7 +32165,7 @@ var init_chunk_OZHNJUFW = __esm({
30742
32165
  });
30743
32166
  MAX_INPUT_LENGTH2 = 1e4;
30744
32167
  SOLE_REFERENCE_PATTERN2 = /^\{(?:env|file):[^}]+\}$/;
30745
- AUTH_DIR2 = path222.join(os2.homedir(), ".config", "releasekit");
32168
+ AUTH_DIR2 = path222.join(os3.homedir(), ".config", "releasekit");
30746
32169
  AUTH_FILE2 = path222.join(AUTH_DIR2, "auth.json");
30747
32170
  CONFIG_FILE2 = "releasekit.config.json";
30748
32171
  BasePublishError = class _BasePublishError extends ReleaseKitError3 {
@@ -30822,8 +32245,8 @@ var init_chunk_OZHNJUFW = __esm({
30822
32245
  });
30823
32246
 
30824
32247
  // ../publish/dist/index.js
30825
- var dist_exports2 = {};
30826
- __export(dist_exports2, {
32248
+ var dist_exports3 = {};
32249
+ __export(dist_exports3, {
30827
32250
  BasePublishError: () => BasePublishError,
30828
32251
  PipelineError: () => PipelineError,
30829
32252
  PublishError: () => PublishError,
@@ -30843,7 +32266,7 @@ __export(dist_exports2, {
30843
32266
  runPipeline: () => runPipeline2,
30844
32267
  updateCargoVersion: () => updateCargoVersion
30845
32268
  });
30846
- var init_dist2 = __esm({
32269
+ var init_dist3 = __esm({
30847
32270
  "../publish/dist/index.js"() {
30848
32271
  "use strict";
30849
32272
  init_chunk_OZHNJUFW();
@@ -30851,7 +32274,6 @@ var init_dist2 = __esm({
30851
32274
  });
30852
32275
 
30853
32276
  // ../version/dist/chunk-Q3FHZORY.js
30854
- import chalk4 from "chalk";
30855
32277
  function shouldLog4(level) {
30856
32278
  if (quietMode4 && level !== "error") return false;
30857
32279
  return LOG_LEVELS4[level] <= LOG_LEVELS4[currentLevel4];
@@ -30868,6 +32290,7 @@ var LOG_LEVELS4, PREFIXES4, COLORS4, currentLevel4, quietMode4, ReleaseKitError4
30868
32290
  var init_chunk_Q3FHZORY = __esm({
30869
32291
  "../version/dist/chunk-Q3FHZORY.js"() {
30870
32292
  "use strict";
32293
+ init_source();
30871
32294
  LOG_LEVELS4 = {
30872
32295
  error: 0,
30873
32296
  warn: 1,
@@ -30883,11 +32306,11 @@ var init_chunk_Q3FHZORY = __esm({
30883
32306
  trace: "[TRACE]"
30884
32307
  };
30885
32308
  COLORS4 = {
30886
- error: chalk4.red,
30887
- warn: chalk4.yellow,
30888
- info: chalk4.blue,
30889
- debug: chalk4.gray,
30890
- trace: chalk4.dim
32309
+ error: source_default.red,
32310
+ warn: source_default.yellow,
32311
+ info: source_default.blue,
32312
+ debug: source_default.gray,
32313
+ trace: source_default.dim
30891
32314
  };
30892
32315
  currentLevel4 = "info";
30893
32316
  quietMode4 = false;
@@ -31004,44 +32427,44 @@ async function* splitStream(stream, separator) {
31004
32427
  yield buffer;
31005
32428
  }
31006
32429
  }
31007
- var init_dist3 = __esm({
32430
+ var init_dist4 = __esm({
31008
32431
  "../../node_modules/.pnpm/@simple-libs+stream-utils@1.1.0/node_modules/@simple-libs/stream-utils/dist/index.js"() {
31009
32432
  "use strict";
31010
32433
  }
31011
32434
  });
31012
32435
 
31013
32436
  // ../../node_modules/.pnpm/@simple-libs+child-process-utils@1.0.1/node_modules/@simple-libs/child-process-utils/dist/index.js
31014
- async function exitCode(process2) {
31015
- if (process2.exitCode !== null) {
31016
- return process2.exitCode;
32437
+ async function exitCode(process3) {
32438
+ if (process3.exitCode !== null) {
32439
+ return process3.exitCode;
31017
32440
  }
31018
- return new Promise((resolve11) => process2.once("close", resolve11));
32441
+ return new Promise((resolve11) => process3.once("close", resolve11));
31019
32442
  }
31020
- async function catchProcessError(process2) {
32443
+ async function catchProcessError(process3) {
31021
32444
  let error3 = new Error("Process exited with non-zero code");
31022
32445
  let stderr = "";
31023
- process2.on("error", (err) => {
32446
+ process3.on("error", (err) => {
31024
32447
  error3 = err;
31025
32448
  });
31026
- if (process2.stderr) {
32449
+ if (process3.stderr) {
31027
32450
  let chunk;
31028
- for await (chunk of process2.stderr) {
32451
+ for await (chunk of process3.stderr) {
31029
32452
  stderr += chunk.toString();
31030
32453
  }
31031
32454
  }
31032
- const code = await exitCode(process2);
32455
+ const code = await exitCode(process3);
31033
32456
  if (stderr) {
31034
32457
  error3 = new Error(stderr);
31035
32458
  }
31036
32459
  return code ? error3 : null;
31037
32460
  }
31038
- async function* outputStream(process2) {
31039
- const { stdout } = process2;
31040
- const errorPromise = catchProcessError(process2);
32461
+ async function* outputStream(process3) {
32462
+ const { stdout } = process3;
32463
+ const errorPromise = catchProcessError(process3);
31041
32464
  if (stdout) {
31042
32465
  stdout.on("error", (err) => {
31043
- if (err.name === "AbortError" && process2.exitCode === null) {
31044
- process2.kill("SIGKILL");
32466
+ if (err.name === "AbortError" && process3.exitCode === null) {
32467
+ process3.kill("SIGKILL");
31045
32468
  }
31046
32469
  });
31047
32470
  yield* stdout;
@@ -31051,13 +32474,13 @@ async function* outputStream(process2) {
31051
32474
  throw error3;
31052
32475
  }
31053
32476
  }
31054
- function output(process2) {
31055
- return concatBufferStream(outputStream(process2));
32477
+ function output(process3) {
32478
+ return concatBufferStream(outputStream(process3));
31056
32479
  }
31057
- var init_dist4 = __esm({
32480
+ var init_dist5 = __esm({
31058
32481
  "../../node_modules/.pnpm/@simple-libs+child-process-utils@1.0.1/node_modules/@simple-libs/child-process-utils/dist/index.js"() {
31059
32482
  "use strict";
31060
- init_dist3();
32483
+ init_dist4();
31061
32484
  }
31062
32485
  });
31063
32486
 
@@ -31067,8 +32490,8 @@ var SCISSOR, GitClient;
31067
32490
  var init_GitClient = __esm({
31068
32491
  "../../node_modules/.pnpm/@conventional-changelog+git-client@2.5.1_conventional-commits-filter@5.0.0_conventional-commits-parser@6.2.1/node_modules/@conventional-changelog/git-client/dist/GitClient.js"() {
31069
32492
  "use strict";
31070
- init_dist3();
31071
32493
  init_dist4();
32494
+ init_dist5();
31072
32495
  init_utils4();
31073
32496
  SCISSOR = "------------------------ >8 ------------------------";
31074
32497
  GitClient = class {
@@ -31749,7 +33172,7 @@ function parseCommits(options = {}) {
31749
33172
  throw err;
31750
33173
  } : warnOption ? (err) => warnOption(err.toString()) : () => {
31751
33174
  };
31752
- return async function* parse4(rawCommits) {
33175
+ return async function* parse2(rawCommits) {
31753
33176
  const parser = new CommitParser(options);
31754
33177
  let rawCommit;
31755
33178
  for await (rawCommit of rawCommits) {
@@ -31772,14 +33195,14 @@ var init_stream = __esm({
31772
33195
  });
31773
33196
 
31774
33197
  // ../../node_modules/.pnpm/conventional-commits-parser@6.2.1/node_modules/conventional-commits-parser/dist/index.js
31775
- var dist_exports3 = {};
31776
- __export(dist_exports3, {
33198
+ var dist_exports4 = {};
33199
+ __export(dist_exports4, {
31777
33200
  CommitParser: () => CommitParser,
31778
33201
  createCommitObject: () => createCommitObject,
31779
33202
  parseCommits: () => parseCommits,
31780
33203
  parseCommitsStream: () => parseCommitsStream
31781
33204
  });
31782
- var init_dist5 = __esm({
33205
+ var init_dist6 = __esm({
31783
33206
  "../../node_modules/.pnpm/conventional-commits-parser@6.2.1/node_modules/conventional-commits-parser/dist/index.js"() {
31784
33207
  "use strict";
31785
33208
  init_types2();
@@ -31904,14 +33327,14 @@ var init_filters = __esm({
31904
33327
  });
31905
33328
 
31906
33329
  // ../../node_modules/.pnpm/conventional-commits-filter@5.0.0/node_modules/conventional-commits-filter/dist/index.js
31907
- var dist_exports4 = {};
31908
- __export(dist_exports4, {
33330
+ var dist_exports5 = {};
33331
+ __export(dist_exports5, {
31909
33332
  RevertedCommitsFilter: () => RevertedCommitsFilter,
31910
33333
  filterRevertedCommits: () => filterRevertedCommits,
31911
33334
  filterRevertedCommitsStream: () => filterRevertedCommitsStream,
31912
33335
  filterRevertedCommitsSync: () => filterRevertedCommitsSync
31913
33336
  });
31914
- var init_dist6 = __esm({
33337
+ var init_dist7 = __esm({
31915
33338
  "../../node_modules/.pnpm/conventional-commits-filter@5.0.0/node_modules/conventional-commits-filter/dist/index.js"() {
31916
33339
  "use strict";
31917
33340
  init_RevertedCommitsFilter();
@@ -31925,7 +33348,7 @@ var init_ConventionalGitClient = __esm({
31925
33348
  "../../node_modules/.pnpm/@conventional-changelog+git-client@2.5.1_conventional-commits-filter@5.0.0_conventional-commits-parser@6.2.1/node_modules/@conventional-changelog/git-client/dist/ConventionalGitClient.js"() {
31926
33349
  "use strict";
31927
33350
  import_semver2 = __toESM(require_semver2(), 1);
31928
- init_dist3();
33351
+ init_dist4();
31929
33352
  init_GitClient();
31930
33353
  ConventionalGitClient = class extends GitClient {
31931
33354
  deps = null;
@@ -31934,8 +33357,8 @@ var init_ConventionalGitClient = __esm({
31934
33357
  return this.deps;
31935
33358
  }
31936
33359
  this.deps = Promise.all([
31937
- Promise.resolve().then(() => (init_dist5(), dist_exports3)).then(({ parseCommits: parseCommits2 }) => parseCommits2),
31938
- Promise.resolve().then(() => (init_dist6(), dist_exports4)).then(({ filterRevertedCommits: filterRevertedCommits2 }) => filterRevertedCommits2)
33360
+ Promise.resolve().then(() => (init_dist6(), dist_exports4)).then(({ parseCommits: parseCommits2 }) => parseCommits2),
33361
+ Promise.resolve().then(() => (init_dist7(), dist_exports5)).then(({ filterRevertedCommits: filterRevertedCommits2 }) => filterRevertedCommits2)
31939
33362
  ]);
31940
33363
  return this.deps;
31941
33364
  }
@@ -31956,9 +33379,9 @@ var init_ConventionalGitClient = __esm({
31956
33379
  yield* filterRevertedCommits2(this.getCommits(gitLogParams, parserOptions));
31957
33380
  return;
31958
33381
  }
31959
- const parse4 = parseCommits2(parserOptions);
33382
+ const parse2 = parseCommits2(parserOptions);
31960
33383
  const commitsStream = this.getRawCommits(gitLogParams);
31961
- yield* parse4(commitsStream);
33384
+ yield* parse2(commitsStream);
31962
33385
  }
31963
33386
  /**
31964
33387
  * Get semver tags stream.
@@ -32030,7 +33453,7 @@ var init_ConventionalGitClient = __esm({
32030
33453
  });
32031
33454
 
32032
33455
  // ../../node_modules/.pnpm/@conventional-changelog+git-client@2.5.1_conventional-commits-filter@5.0.0_conventional-commits-parser@6.2.1/node_modules/@conventional-changelog/git-client/dist/index.js
32033
- var init_dist7 = __esm({
33456
+ var init_dist8 = __esm({
32034
33457
  "../../node_modules/.pnpm/@conventional-changelog+git-client@2.5.1_conventional-commits-filter@5.0.0_conventional-commits-parser@6.2.1/node_modules/@conventional-changelog/git-client/dist/index.js"() {
32035
33458
  "use strict";
32036
33459
  init_types();
@@ -32127,7 +33550,7 @@ var init_presetLoader = __esm({
32127
33550
  });
32128
33551
 
32129
33552
  // ../../node_modules/.pnpm/conventional-changelog-preset-loader@5.0.0/node_modules/conventional-changelog-preset-loader/dist/index.js
32130
- var init_dist8 = __esm({
33553
+ var init_dist9 = __esm({
32131
33554
  "../../node_modules/.pnpm/conventional-changelog-preset-loader@5.0.0/node_modules/conventional-changelog-preset-loader/dist/index.js"() {
32132
33555
  "use strict";
32133
33556
  init_types3();
@@ -32153,8 +33576,8 @@ var VERSIONS, Bumper;
32153
33576
  var init_bumper = __esm({
32154
33577
  "../../node_modules/.pnpm/conventional-recommended-bump@11.2.0/node_modules/conventional-recommended-bump/dist/bumper.js"() {
32155
33578
  "use strict";
32156
- init_dist7();
32157
33579
  init_dist8();
33580
+ init_dist9();
32158
33581
  init_utils7();
32159
33582
  VERSIONS = [
32160
33583
  "major",
@@ -32322,7 +33745,7 @@ var init_bumper = __esm({
32322
33745
  });
32323
33746
 
32324
33747
  // ../../node_modules/.pnpm/conventional-recommended-bump@11.2.0/node_modules/conventional-recommended-bump/dist/index.js
32325
- var init_dist9 = __esm({
33748
+ var init_dist10 = __esm({
32326
33749
  "../../node_modules/.pnpm/conventional-recommended-bump@11.2.0/node_modules/conventional-recommended-bump/dist/index.js"() {
32327
33750
  "use strict";
32328
33751
  init_bumper();
@@ -32387,44 +33810,44 @@ async function* splitStream2(stream, separator) {
32387
33810
  yield buffer;
32388
33811
  }
32389
33812
  }
32390
- var init_dist10 = __esm({
33813
+ var init_dist11 = __esm({
32391
33814
  "../../node_modules/.pnpm/@simple-libs+stream-utils@1.2.0/node_modules/@simple-libs/stream-utils/dist/index.js"() {
32392
33815
  "use strict";
32393
33816
  }
32394
33817
  });
32395
33818
 
32396
33819
  // ../../node_modules/.pnpm/@simple-libs+child-process-utils@1.0.2/node_modules/@simple-libs/child-process-utils/dist/index.js
32397
- async function exitCode2(process2) {
32398
- if (process2.exitCode !== null) {
32399
- return process2.exitCode;
33820
+ async function exitCode2(process3) {
33821
+ if (process3.exitCode !== null) {
33822
+ return process3.exitCode;
32400
33823
  }
32401
- return new Promise((resolve11) => process2.once("close", resolve11));
33824
+ return new Promise((resolve11) => process3.once("close", resolve11));
32402
33825
  }
32403
- async function catchProcessError2(process2) {
33826
+ async function catchProcessError2(process3) {
32404
33827
  let error3 = new Error("Process exited with non-zero code");
32405
33828
  let stderr = "";
32406
- process2.on("error", (err) => {
33829
+ process3.on("error", (err) => {
32407
33830
  error3 = err;
32408
33831
  });
32409
- if (process2.stderr) {
33832
+ if (process3.stderr) {
32410
33833
  let chunk;
32411
- for await (chunk of process2.stderr) {
33834
+ for await (chunk of process3.stderr) {
32412
33835
  stderr += chunk.toString();
32413
33836
  }
32414
33837
  }
32415
- const code = await exitCode2(process2);
33838
+ const code = await exitCode2(process3);
32416
33839
  if (stderr) {
32417
33840
  error3 = new Error(stderr);
32418
33841
  }
32419
33842
  return code ? error3 : null;
32420
33843
  }
32421
- async function* outputStream2(process2) {
32422
- const { stdout } = process2;
32423
- const errorPromise = catchProcessError2(process2);
33844
+ async function* outputStream2(process3) {
33845
+ const { stdout } = process3;
33846
+ const errorPromise = catchProcessError2(process3);
32424
33847
  if (stdout) {
32425
33848
  stdout.on("error", (err) => {
32426
- if (err.name === "AbortError" && process2.exitCode === null) {
32427
- process2.kill("SIGKILL");
33849
+ if (err.name === "AbortError" && process3.exitCode === null) {
33850
+ process3.kill("SIGKILL");
32428
33851
  }
32429
33852
  });
32430
33853
  yield* stdout;
@@ -32434,13 +33857,13 @@ async function* outputStream2(process2) {
32434
33857
  throw error3;
32435
33858
  }
32436
33859
  }
32437
- function output2(process2) {
32438
- return concatBufferStream2(outputStream2(process2));
33860
+ function output2(process3) {
33861
+ return concatBufferStream2(outputStream2(process3));
32439
33862
  }
32440
- var init_dist11 = __esm({
33863
+ var init_dist12 = __esm({
32441
33864
  "../../node_modules/.pnpm/@simple-libs+child-process-utils@1.0.2/node_modules/@simple-libs/child-process-utils/dist/index.js"() {
32442
33865
  "use strict";
32443
- init_dist10();
33866
+ init_dist11();
32444
33867
  }
32445
33868
  });
32446
33869
 
@@ -32450,8 +33873,8 @@ var SCISSOR3, GitClient2;
32450
33873
  var init_GitClient2 = __esm({
32451
33874
  "../../node_modules/.pnpm/@conventional-changelog+git-client@2.6.0_conventional-commits-filter@5.0.0_conventional-commits-parser@6.2.1/node_modules/@conventional-changelog/git-client/dist/GitClient.js"() {
32452
33875
  "use strict";
32453
- init_dist10();
32454
33876
  init_dist11();
33877
+ init_dist12();
32455
33878
  init_utils8();
32456
33879
  SCISSOR3 = "------------------------ >8 ------------------------";
32457
33880
  GitClient2 = class {
@@ -32700,7 +34123,7 @@ var init_ConventionalGitClient2 = __esm({
32700
34123
  "../../node_modules/.pnpm/@conventional-changelog+git-client@2.6.0_conventional-commits-filter@5.0.0_conventional-commits-parser@6.2.1/node_modules/@conventional-changelog/git-client/dist/ConventionalGitClient.js"() {
32701
34124
  "use strict";
32702
34125
  import_semver3 = __toESM(require_semver2(), 1);
32703
- init_dist10();
34126
+ init_dist11();
32704
34127
  init_GitClient2();
32705
34128
  ConventionalGitClient2 = class extends GitClient2 {
32706
34129
  deps = null;
@@ -32709,8 +34132,8 @@ var init_ConventionalGitClient2 = __esm({
32709
34132
  return this.deps;
32710
34133
  }
32711
34134
  this.deps = Promise.all([
32712
- Promise.resolve().then(() => (init_dist5(), dist_exports3)).then(({ parseCommits: parseCommits2 }) => parseCommits2),
32713
- Promise.resolve().then(() => (init_dist6(), dist_exports4)).then(({ filterRevertedCommits: filterRevertedCommits2 }) => filterRevertedCommits2)
34135
+ Promise.resolve().then(() => (init_dist6(), dist_exports4)).then(({ parseCommits: parseCommits2 }) => parseCommits2),
34136
+ Promise.resolve().then(() => (init_dist7(), dist_exports5)).then(({ filterRevertedCommits: filterRevertedCommits2 }) => filterRevertedCommits2)
32714
34137
  ]);
32715
34138
  return this.deps;
32716
34139
  }
@@ -32731,9 +34154,9 @@ var init_ConventionalGitClient2 = __esm({
32731
34154
  yield* filterRevertedCommits2(this.getCommits(gitLogParams, parserOptions));
32732
34155
  return;
32733
34156
  }
32734
- const parse4 = parseCommits2(parserOptions);
34157
+ const parse2 = parseCommits2(parserOptions);
32735
34158
  const commitsStream = this.getRawCommits(gitLogParams);
32736
- yield* parse4(commitsStream);
34159
+ yield* parse2(commitsStream);
32737
34160
  }
32738
34161
  /**
32739
34162
  * Get semver tags stream.
@@ -32805,7 +34228,7 @@ var init_ConventionalGitClient2 = __esm({
32805
34228
  });
32806
34229
 
32807
34230
  // ../../node_modules/.pnpm/@conventional-changelog+git-client@2.6.0_conventional-commits-filter@5.0.0_conventional-commits-parser@6.2.1/node_modules/@conventional-changelog/git-client/dist/index.js
32808
- var init_dist12 = __esm({
34231
+ var init_dist13 = __esm({
32809
34232
  "../../node_modules/.pnpm/@conventional-changelog+git-client@2.6.0_conventional-commits-filter@5.0.0_conventional-commits-parser@6.2.1/node_modules/@conventional-changelog/git-client/dist/index.js"() {
32810
34233
  "use strict";
32811
34234
  init_types4();
@@ -32842,7 +34265,7 @@ async function getSemverTags(options = {}) {
32842
34265
  var init_src = __esm({
32843
34266
  "../../node_modules/.pnpm/git-semver-tags@8.0.1_conventional-commits-filter@5.0.0_conventional-commits-parser@6.2.1/node_modules/git-semver-tags/src/index.js"() {
32844
34267
  "use strict";
32845
- init_dist12();
34268
+ init_dist13();
32846
34269
  }
32847
34270
  });
32848
34271
 
@@ -36274,7 +37697,7 @@ function sync(root, options) {
36274
37697
  return walker.start();
36275
37698
  }
36276
37699
  var __require2, SLASHES_REGEX, WINDOWS_ROOT_DIR_REGEX, pushDirectory, pushDirectoryFilter, empty$2, pushFileFilterAndCount, pushFileFilter, pushFileCount, pushFile, empty$1, getArray, getArrayGroup, groupFiles, empty, resolveSymlinksAsync, resolveSymlinks, onlyCountsSync, groupsSync, defaultSync, limitFilesSync, onlyCountsAsync, defaultAsync, limitFilesAsync, groupsAsync, readdirOpts, walkAsync, walkSync, Queue, Counter, Aborter, Walker, APIBuilder, pm, Builder;
36277
- var init_dist13 = __esm({
37700
+ var init_dist14 = __esm({
36278
37701
  "../../node_modules/.pnpm/fdir@6.5.0_picomatch@4.0.4/node_modules/fdir/dist/index.mjs"() {
36279
37702
  "use strict";
36280
37703
  __require2 = /* @__PURE__ */ createRequire2(import.meta.url);
@@ -37496,7 +38919,7 @@ var require_parse2 = __commonJS({
37496
38919
  }
37497
38920
  return { risky: false };
37498
38921
  };
37499
- var parse4 = (input, options) => {
38922
+ var parse2 = (input, options) => {
37500
38923
  if (typeof input !== "string") {
37501
38924
  throw new TypeError("Expected a string");
37502
38925
  }
@@ -37666,7 +39089,7 @@ var require_parse2 = __commonJS({
37666
39089
  output3 = token.close = `)$))${extglobStar}`;
37667
39090
  }
37668
39091
  if (token.inner.includes("*") && (rest = remaining()) && /^\.[^\\/.]+$/.test(rest)) {
37669
- const expression = parse4(rest, { ...options, fastpaths: false }).output;
39092
+ const expression = parse2(rest, { ...options, fastpaths: false }).output;
37670
39093
  output3 = token.close = `)${expression})${extglobStar})`;
37671
39094
  }
37672
39095
  if (token.prev.type === "bos") {
@@ -38188,7 +39611,7 @@ var require_parse2 = __commonJS({
38188
39611
  }
38189
39612
  return state;
38190
39613
  };
38191
- parse4.fastpaths = (input, options) => {
39614
+ parse2.fastpaths = (input, options) => {
38192
39615
  const opts = { ...options };
38193
39616
  const max = typeof opts.maxLength === "number" ? Math.min(MAX_LENGTH, opts.maxLength) : MAX_LENGTH;
38194
39617
  const len = input.length;
@@ -38253,7 +39676,7 @@ var require_parse2 = __commonJS({
38253
39676
  }
38254
39677
  return source;
38255
39678
  };
38256
- module2.exports = parse4;
39679
+ module2.exports = parse2;
38257
39680
  }
38258
39681
  });
38259
39682
 
@@ -38262,7 +39685,7 @@ var require_picomatch = __commonJS({
38262
39685
  "../../node_modules/.pnpm/picomatch@4.0.4/node_modules/picomatch/lib/picomatch.js"(exports2, module2) {
38263
39686
  "use strict";
38264
39687
  var scan = require_scan();
38265
- var parse4 = require_parse2();
39688
+ var parse2 = require_parse2();
38266
39689
  var utils2 = require_utils2();
38267
39690
  var constants = require_constants2();
38268
39691
  var isObject3 = (val) => val && typeof val === "object" && !Array.isArray(val);
@@ -38350,7 +39773,7 @@ var require_picomatch = __commonJS({
38350
39773
  picomatch2.isMatch = (str3, patterns, options) => picomatch2(patterns, options)(str3);
38351
39774
  picomatch2.parse = (pattern, options) => {
38352
39775
  if (Array.isArray(pattern)) return pattern.map((p) => picomatch2.parse(p, options));
38353
- return parse4(pattern, { ...options, fastpaths: false });
39776
+ return parse2(pattern, { ...options, fastpaths: false });
38354
39777
  };
38355
39778
  picomatch2.scan = (input, options) => scan(input, options);
38356
39779
  picomatch2.compileRe = (state, options, returnOutput = false, returnState = false) => {
@@ -38376,10 +39799,10 @@ var require_picomatch = __commonJS({
38376
39799
  }
38377
39800
  let parsed = { negated: false, fastpaths: true };
38378
39801
  if (options.fastpaths !== false && (input[0] === "." || input[0] === "*")) {
38379
- parsed.output = parse4.fastpaths(input, options);
39802
+ parsed.output = parse2.fastpaths(input, options);
38380
39803
  }
38381
39804
  if (!parsed.output) {
38382
- parsed = parse4(input, options);
39805
+ parsed = parse2(input, options);
38383
39806
  }
38384
39807
  return picomatch2.compileRe(parsed, options, returnOutput, returnState);
38385
39808
  };
@@ -38678,10 +40101,10 @@ function globSync(patternsOrOptions, options) {
38678
40101
  return formatPaths(crawler.sync(), relative2);
38679
40102
  }
38680
40103
  var import_picomatch, isReadonlyArray3, isWin, ONLY_PARENT_DIRECTORIES, WIN32_ROOT_DIR, isRoot, splitPatternOptions, POSIX_UNESCAPED_GLOB_SYMBOLS, WIN32_UNESCAPED_GLOB_SYMBOLS, escapePosixPath, escapeWin32Path, escapePath, PARENT_DIRECTORY, ESCAPING_BACKSLASHES, BACKSLASHES;
38681
- var init_dist14 = __esm({
40104
+ var init_dist15 = __esm({
38682
40105
  "../../node_modules/.pnpm/tinyglobby@0.2.15/node_modules/tinyglobby/dist/index.mjs"() {
38683
40106
  "use strict";
38684
- init_dist13();
40107
+ init_dist14();
38685
40108
  import_picomatch = __toESM(require_picomatch2(), 1);
38686
40109
  isReadonlyArray3 = Array.isArray;
38687
40110
  isWin = process.platform === "win32";
@@ -41407,7 +42830,7 @@ var require_parse3 = __commonJS({
41407
42830
  }
41408
42831
  return result + "\n" + srcline + "\n" + underline;
41409
42832
  }
41410
- function parse4(input, options) {
42833
+ function parse2(input, options) {
41411
42834
  var json5 = false;
41412
42835
  var cjson = false;
41413
42836
  if (options.legacy || options.mode === "json") {
@@ -41475,13 +42898,13 @@ var require_parse3 = __commonJS({
41475
42898
  tokenStart();
41476
42899
  var chr = input[position++];
41477
42900
  if (chr === '"' || chr === "'" && json5) {
41478
- return tokenEnd(parseString(chr), "literal");
42901
+ return tokenEnd(parseString2(chr), "literal");
41479
42902
  } else if (chr === "{") {
41480
42903
  tokenEnd(void 0, "separator");
41481
42904
  return parseObject();
41482
42905
  } else if (chr === "[") {
41483
42906
  tokenEnd(void 0, "separator");
41484
- return parseArray();
42907
+ return parseArray2();
41485
42908
  } else if (chr === "-" || chr === "." || isDecDigit(chr) || json5 && (chr === "+" || chr === "I" || chr === "N")) {
41486
42909
  return tokenEnd(parseNumber(), "literal");
41487
42910
  } else if (chr === "n") {
@@ -41499,19 +42922,19 @@ var require_parse3 = __commonJS({
41499
42922
  }
41500
42923
  }
41501
42924
  }
41502
- function parseKey() {
42925
+ function parseKey2() {
41503
42926
  var result;
41504
42927
  while (position < length) {
41505
42928
  tokenStart();
41506
42929
  var chr = input[position++];
41507
42930
  if (chr === '"' || chr === "'" && json5) {
41508
- return tokenEnd(parseString(chr), "key");
42931
+ return tokenEnd(parseString2(chr), "key");
41509
42932
  } else if (chr === "{") {
41510
42933
  tokenEnd(void 0, "separator");
41511
42934
  return parseObject();
41512
42935
  } else if (chr === "[") {
41513
42936
  tokenEnd(void 0, "separator");
41514
- return parseArray();
42937
+ return parseArray2();
41515
42938
  } else if (chr === "." || isDecDigit(chr)) {
41516
42939
  return tokenEnd(parseNumber(true), "key");
41517
42940
  } else if (json5 && Uni.isIdentifierStart(chr) || chr === "\\" && input[position] === "u") {
@@ -41547,7 +42970,7 @@ var require_parse3 = __commonJS({
41547
42970
  tokenEnd(void 0, "whitespace");
41548
42971
  tokenStart();
41549
42972
  position++;
41550
- skipComment(input[position++] === "*");
42973
+ skipComment2(input[position++] === "*");
41551
42974
  tokenEnd(void 0, "comment");
41552
42975
  tokenStart();
41553
42976
  } else {
@@ -41557,7 +42980,7 @@ var require_parse3 = __commonJS({
41557
42980
  }
41558
42981
  return tokenEnd(void 0, "whitespace");
41559
42982
  }
41560
- function skipComment(multi) {
42983
+ function skipComment2(multi) {
41561
42984
  while (position < length) {
41562
42985
  var chr = input[position++];
41563
42986
  if (isLineTerminator(chr)) {
@@ -41593,7 +43016,7 @@ var require_parse3 = __commonJS({
41593
43016
  var result = options.null_prototype ? /* @__PURE__ */ Object.create(null) : {}, empty_object = {}, is_non_empty = false;
41594
43017
  while (position < length) {
41595
43018
  skipWhiteSpace();
41596
- var item1 = parseKey();
43019
+ var item1 = parseKey2();
41597
43020
  skipWhiteSpace();
41598
43021
  tokenStart();
41599
43022
  var chr = input[position++];
@@ -41652,7 +43075,7 @@ var require_parse3 = __commonJS({
41652
43075
  }
41653
43076
  fail();
41654
43077
  }
41655
- function parseArray() {
43078
+ function parseArray2() {
41656
43079
  var result = [];
41657
43080
  while (position < length) {
41658
43081
  skipWhiteSpace();
@@ -41778,7 +43201,7 @@ var require_parse3 = __commonJS({
41778
43201
  }
41779
43202
  fail();
41780
43203
  }
41781
- function parseString(endChar) {
43204
+ function parseString2(endChar) {
41782
43205
  var result = "";
41783
43206
  while (position < length) {
41784
43207
  var chr = input[position++];
@@ -41865,7 +43288,7 @@ var require_parse3 = __commonJS({
41865
43288
  }
41866
43289
  }
41867
43290
  try {
41868
- return parse4(input, options);
43291
+ return parse2(input, options);
41869
43292
  } catch (err) {
41870
43293
  if (err instanceof SyntaxError && err.row != null && err.column != null) {
41871
43294
  var old_err = err;
@@ -42236,7 +43659,7 @@ var require_document = __commonJS({
42236
43659
  "use strict";
42237
43660
  var assert2 = __require("assert");
42238
43661
  var tokenize2 = require_parse3().tokenize;
42239
- var stringify5 = require_stringify().stringify;
43662
+ var stringify4 = require_stringify().stringify;
42240
43663
  var analyze2 = require_analyze().analyze;
42241
43664
  function isObject3(x) {
42242
43665
  return typeof x === "object" && x !== null;
@@ -42251,7 +43674,7 @@ var require_document = __commonJS({
42251
43674
  }
42252
43675
  if (options._splitMin == null) options._splitMin = 0;
42253
43676
  if (options._splitMax == null) options._splitMax = 0;
42254
- var stringified = stringify5(value, options);
43677
+ var stringified = stringify4(value, options);
42255
43678
  if (is_key) {
42256
43679
  return [{ raw: stringified, type: "key", stack, value }];
42257
43680
  }
@@ -42719,7 +44142,7 @@ var import_jju, InvalidMonorepoError, readJson, readJsonSync, BunTool, LernaTool
42719
44142
  var init_manypkg_tools = __esm({
42720
44143
  "../../node_modules/.pnpm/@manypkg+tools@2.1.0/node_modules/@manypkg/tools/dist/manypkg-tools.js"() {
42721
44144
  "use strict";
42722
- init_dist14();
44145
+ init_dist15();
42723
44146
  init_js_yaml();
42724
44147
  import_jju = __toESM(require_jju(), 1);
42725
44148
  InvalidMonorepoError = class extends Error {
@@ -43391,22 +44814,19 @@ var init_baseError_DQHIJACF = __esm({
43391
44814
  // ../version/dist/chunk-UBCKZYTO.js
43392
44815
  import * as fs15 from "fs";
43393
44816
  import * as path17 from "path";
43394
- import * as TOML3 from "smol-toml";
43395
44817
  import * as fs34 from "fs";
43396
44818
  import * as path34 from "path";
43397
44819
  import { z as z23 } from "zod";
43398
44820
  import { z as z4 } from "zod";
43399
44821
  import * as fs24 from "fs";
43400
- import * as os3 from "os";
44822
+ import * as os4 from "os";
43401
44823
  import * as path23 from "path";
43402
44824
  import fs44 from "fs";
43403
44825
  import { cwd } from "process";
43404
- import chalk5 from "chalk";
43405
44826
  import fs63 from "fs";
43406
44827
  import path54 from "path";
43407
44828
  import fs54 from "fs";
43408
44829
  import path44 from "path";
43409
- import * as TOML23 from "smol-toml";
43410
44830
  import * as fs93 from "fs";
43411
44831
  import path73 from "path";
43412
44832
  import fs83 from "fs";
@@ -43417,7 +44837,7 @@ import path92 from "path";
43417
44837
  import { Command as Command3 } from "commander";
43418
44838
  function parseCargoToml2(cargoPath) {
43419
44839
  const content = fs15.readFileSync(cargoPath, "utf-8");
43420
- return TOML3.parse(content);
44840
+ return parse(content);
43421
44841
  }
43422
44842
  function isCargoToml(filePath) {
43423
44843
  return path17.basename(filePath) === "Cargo.toml";
@@ -43444,7 +44864,7 @@ function substituteVariables3(value) {
43444
44864
  return process.env[varName] ?? "";
43445
44865
  });
43446
44866
  result = result.replace(filePattern, (_, filePath) => {
43447
- const expandedPath = filePath.startsWith("~") ? path23.join(os3.homedir(), filePath.slice(1)) : filePath;
44867
+ const expandedPath = filePath.startsWith("~") ? path23.join(os4.homedir(), filePath.slice(1)) : filePath;
43448
44868
  try {
43449
44869
  return fs24.readFileSync(expandedPath, "utf-8").trim();
43450
44870
  } catch {
@@ -43689,19 +45109,19 @@ function log6(message, level = "info") {
43689
45109
  let chalkFn;
43690
45110
  switch (level) {
43691
45111
  case "success":
43692
- chalkFn = chalk5.green;
45112
+ chalkFn = source_default.green;
43693
45113
  break;
43694
45114
  case "warning":
43695
- chalkFn = chalk5.yellow;
45115
+ chalkFn = source_default.yellow;
43696
45116
  break;
43697
45117
  case "error":
43698
- chalkFn = chalk5.red;
45118
+ chalkFn = source_default.red;
43699
45119
  break;
43700
45120
  case "debug":
43701
- chalkFn = chalk5.gray;
45121
+ chalkFn = source_default.gray;
43702
45122
  break;
43703
45123
  default:
43704
- chalkFn = chalk5.blue;
45124
+ chalkFn = source_default.blue;
43705
45125
  }
43706
45126
  const formattedMessage = level === "debug" ? `[DEBUG] ${message}` : message;
43707
45127
  if (isJsonOutputMode()) {
@@ -43920,7 +45340,7 @@ function updateCargoVersion2(cargoPath, version, dryRun = false) {
43920
45340
  } else {
43921
45341
  cargo.package.version = version;
43922
45342
  }
43923
- const updatedContent = TOML23.stringify(cargo);
45343
+ const updatedContent = stringify(cargo);
43924
45344
  if (dryRun) {
43925
45345
  recordPendingWrite(cargoPath, updatedContent);
43926
45346
  } else {
@@ -45182,11 +46602,14 @@ var init_chunk_UBCKZYTO = __esm({
45182
46602
  "use strict";
45183
46603
  init_chunk_Q3FHZORY();
45184
46604
  init_chunk_LMPZV35Z();
45185
- init_dist9();
46605
+ init_dist();
46606
+ init_dist10();
45186
46607
  import_semver4 = __toESM(require_semver2(), 1);
45187
46608
  init_src();
45188
46609
  import_semver5 = __toESM(require_semver2(), 1);
46610
+ init_source();
45189
46611
  init_node_figlet();
46612
+ init_dist();
45190
46613
  import_semver6 = __toESM(require_semver2(), 1);
45191
46614
  init_esm3();
45192
46615
  init_manypkg_get_packages();
@@ -45493,7 +46916,7 @@ var init_chunk_UBCKZYTO = __esm({
45493
46916
  });
45494
46917
  MAX_INPUT_LENGTH3 = 1e4;
45495
46918
  SOLE_REFERENCE_PATTERN3 = /^\{(?:env|file):[^}]+\}$/;
45496
- AUTH_DIR3 = path23.join(os3.homedir(), ".config", "releasekit");
46919
+ AUTH_DIR3 = path23.join(os4.homedir(), ".config", "releasekit");
45497
46920
  AUTH_FILE3 = path23.join(AUTH_DIR3, "auth.json");
45498
46921
  CONFIG_FILE3 = "releasekit.config.json";
45499
46922
  VersionError = class extends BaseVersionError {
@@ -45899,8 +47322,8 @@ var init_chunk_UBCKZYTO = __esm({
45899
47322
  });
45900
47323
 
45901
47324
  // ../version/dist/index.js
45902
- var dist_exports5 = {};
45903
- __export(dist_exports5, {
47325
+ var dist_exports6 = {};
47326
+ __export(dist_exports6, {
45904
47327
  BaseVersionError: () => BaseVersionError,
45905
47328
  PackageProcessor: () => PackageProcessor,
45906
47329
  VersionEngine: () => VersionEngine,
@@ -45916,7 +47339,7 @@ __export(dist_exports5, {
45916
47339
  getJsonData: () => getJsonData,
45917
47340
  loadConfig: () => loadConfig23
45918
47341
  });
45919
- var init_dist15 = __esm({
47342
+ var init_dist16 = __esm({
45920
47343
  "../version/dist/index.js"() {
45921
47344
  "use strict";
45922
47345
  init_chunk_UBCKZYTO();
@@ -45930,10 +47353,10 @@ import { realpathSync } from "fs";
45930
47353
  import { fileURLToPath as fileURLToPath4 } from "url";
45931
47354
 
45932
47355
  // ../core/dist/index.js
47356
+ init_source();
45933
47357
  import * as fs from "fs";
45934
47358
  import * as path from "path";
45935
47359
  import { fileURLToPath } from "url";
45936
- import chalk from "chalk";
45937
47360
  function readPackageVersion(importMetaUrl) {
45938
47361
  try {
45939
47362
  const dir = path.dirname(fileURLToPath(importMetaUrl));
@@ -45959,11 +47382,11 @@ var PREFIXES = {
45959
47382
  trace: "[TRACE]"
45960
47383
  };
45961
47384
  var COLORS = {
45962
- error: chalk.red,
45963
- warn: chalk.yellow,
45964
- info: chalk.blue,
45965
- debug: chalk.gray,
45966
- trace: chalk.dim
47385
+ error: source_default.red,
47386
+ warn: source_default.yellow,
47387
+ info: source_default.blue,
47388
+ debug: source_default.gray,
47389
+ trace: source_default.dim
45967
47390
  };
45968
47391
  var currentLevel = "info";
45969
47392
  var quietMode = false;
@@ -45995,7 +47418,7 @@ function info(message) {
45995
47418
  }
45996
47419
  function success(message) {
45997
47420
  if (!shouldLog("info")) return;
45998
- console.error(chalk.green(`[SUCCESS] ${message}`));
47421
+ console.error(source_default.green(`[SUCCESS] ${message}`));
45999
47422
  }
46000
47423
  var ReleaseKitError = class _ReleaseKitError extends Error {
46001
47424
  constructor(message) {
@@ -46029,14 +47452,14 @@ var EXIT_CODES = {
46029
47452
  };
46030
47453
 
46031
47454
  // src/dispatcher.ts
46032
- init_dist();
46033
47455
  init_dist2();
46034
- init_dist15();
47456
+ init_dist3();
47457
+ init_dist16();
46035
47458
  import { Command as Command7 } from "commander";
46036
47459
 
46037
47460
  // src/init-command.ts
46038
47461
  import * as fs16 from "fs";
46039
- init_dist();
47462
+ init_dist2();
46040
47463
  import { Command as Command4 } from "commander";
46041
47464
  function createInitCommand() {
46042
47465
  return new Command4("init").description("Create a default releasekit.config.json").option("-f, --force", "Overwrite existing config").action((options) => {
@@ -46087,13 +47510,13 @@ function createInitCommand() {
46087
47510
  import { Command as Command5 } from "commander";
46088
47511
 
46089
47512
  // ../config/dist/index.js
46090
- import * as TOML4 from "smol-toml";
47513
+ init_dist();
46091
47514
  import * as fs35 from "fs";
46092
47515
  import * as path35 from "path";
46093
47516
  import { z as z24 } from "zod";
46094
47517
  import { z as z5 } from "zod";
46095
47518
  import * as fs25 from "fs";
46096
- import * as os4 from "os";
47519
+ import * as os5 from "os";
46097
47520
  import * as path24 from "path";
46098
47521
  var ConfigError5 = class extends ReleaseKitError {
46099
47522
  code = "CONFIG_ERROR";
@@ -46418,7 +47841,7 @@ function substituteVariables4(value) {
46418
47841
  return process.env[varName] ?? "";
46419
47842
  });
46420
47843
  result = result.replace(filePattern, (_, filePath) => {
46421
- const expandedPath = filePath.startsWith("~") ? path24.join(os4.homedir(), filePath.slice(1)) : filePath;
47844
+ const expandedPath = filePath.startsWith("~") ? path24.join(os5.homedir(), filePath.slice(1)) : filePath;
46422
47845
  try {
46423
47846
  return fs25.readFileSync(expandedPath, "utf-8").trim();
46424
47847
  } catch {
@@ -46448,7 +47871,7 @@ function substituteInObject4(obj) {
46448
47871
  }
46449
47872
  return obj;
46450
47873
  }
46451
- var AUTH_DIR4 = path24.join(os4.homedir(), ".config", "releasekit");
47874
+ var AUTH_DIR4 = path24.join(os5.homedir(), ".config", "releasekit");
46452
47875
  var AUTH_FILE4 = path24.join(AUTH_DIR4, "auth.json");
46453
47876
  var CONFIG_FILE4 = "releasekit.config.json";
46454
47877
  function loadConfigFile4(configPath) {
@@ -46828,7 +48251,7 @@ async function runRelease(inputOptions) {
46828
48251
  return null;
46829
48252
  }
46830
48253
  if (!options.dryRun) {
46831
- const { flushPendingWrites: flushPendingWrites2 } = await Promise.resolve().then(() => (init_dist15(), dist_exports5));
48254
+ const { flushPendingWrites: flushPendingWrites2 } = await Promise.resolve().then(() => (init_dist16(), dist_exports6));
46832
48255
  flushPendingWrites2();
46833
48256
  }
46834
48257
  info(`Found ${versionOutput.updates.length} package update(s)`);
@@ -46857,7 +48280,7 @@ async function runRelease(inputOptions) {
46857
48280
  return { versionOutput, notesGenerated, packageNotes, releaseNotes, publishOutput };
46858
48281
  }
46859
48282
  async function runVersionStep(options) {
46860
- const { loadConfig: loadConfig6, VersionEngine: VersionEngine2, enableJsonOutput: enableJsonOutput2, getJsonData: getJsonData2 } = await Promise.resolve().then(() => (init_dist15(), dist_exports5));
48283
+ const { loadConfig: loadConfig6, VersionEngine: VersionEngine2, enableJsonOutput: enableJsonOutput2, getJsonData: getJsonData2 } = await Promise.resolve().then(() => (init_dist16(), dist_exports6));
46861
48284
  enableJsonOutput2(options.dryRun);
46862
48285
  const config = loadConfig6({ cwd: options.projectDir, configPath: options.config });
46863
48286
  if (options.dryRun) config.dryRun = true;
@@ -46890,14 +48313,14 @@ async function runVersionStep(options) {
46890
48313
  return getJsonData2();
46891
48314
  }
46892
48315
  async function runNotesStep(versionOutput, options) {
46893
- const { parseVersionOutput: parseVersionOutput2, runPipeline: runPipeline3, loadConfig: loadConfig6 } = await Promise.resolve().then(() => (init_dist(), dist_exports));
48316
+ const { parseVersionOutput: parseVersionOutput2, runPipeline: runPipeline3, loadConfig: loadConfig6 } = await Promise.resolve().then(() => (init_dist2(), dist_exports2));
46894
48317
  const config = loadConfig6(options.projectDir, options.config);
46895
48318
  const input = parseVersionOutput2(JSON.stringify(versionOutput));
46896
48319
  const result = await runPipeline3(input, config, options.dryRun);
46897
48320
  return { packageNotes: result.packageNotes, releaseNotes: result.releaseNotes, files: result.files };
46898
48321
  }
46899
48322
  async function runPublishStep(versionOutput, options, releaseNotes, additionalFiles) {
46900
- const { runPipeline: runPipeline3, loadConfig: loadConfig6 } = await Promise.resolve().then(() => (init_dist2(), dist_exports2));
48323
+ const { runPipeline: runPipeline3, loadConfig: loadConfig6 } = await Promise.resolve().then(() => (init_dist3(), dist_exports3));
46901
48324
  const config = loadConfig6({ configPath: options.config });
46902
48325
  if (options.branch) {
46903
48326
  config.git.branch = options.branch;
@@ -47146,6 +48569,43 @@ export {
47146
48569
  };
47147
48570
  /*! Bundled license information:
47148
48571
 
48572
+ smol-toml/dist/error.js:
48573
+ smol-toml/dist/util.js:
48574
+ smol-toml/dist/date.js:
48575
+ smol-toml/dist/primitive.js:
48576
+ smol-toml/dist/extract.js:
48577
+ smol-toml/dist/struct.js:
48578
+ smol-toml/dist/parse.js:
48579
+ smol-toml/dist/stringify.js:
48580
+ smol-toml/dist/index.js:
48581
+ (*!
48582
+ * Copyright (c) Squirrel Chat et al., All rights reserved.
48583
+ * SPDX-License-Identifier: BSD-3-Clause
48584
+ *
48585
+ * Redistribution and use in source and binary forms, with or without
48586
+ * modification, are permitted provided that the following conditions are met:
48587
+ *
48588
+ * 1. Redistributions of source code must retain the above copyright notice, this
48589
+ * list of conditions and the following disclaimer.
48590
+ * 2. Redistributions in binary form must reproduce the above copyright notice,
48591
+ * this list of conditions and the following disclaimer in the
48592
+ * documentation and/or other materials provided with the distribution.
48593
+ * 3. Neither the name of the copyright holder nor the names of its contributors
48594
+ * may be used to endorse or promote products derived from this software without
48595
+ * specific prior written permission.
48596
+ *
48597
+ * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
48598
+ * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
48599
+ * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
48600
+ * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
48601
+ * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
48602
+ * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
48603
+ * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
48604
+ * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
48605
+ * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
48606
+ * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
48607
+ *)
48608
+
47149
48609
  ejs/lib/esm/ejs.js:
47150
48610
  (**
47151
48611
  * @file Embedded JavaScript templating engine. {@link http://ejs.co}