@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.
- package/dist/cli.js +1714 -254
- package/dist/dispatcher.js +1790 -330
- package/package.json +6 -6
package/dist/cli.js
CHANGED
|
@@ -40,8 +40,1430 @@ 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
|
+
|
|
563
|
+
// ../../node_modules/.pnpm/smol-toml@1.6.1/node_modules/smol-toml/dist/error.js
|
|
564
|
+
function getLineColFromPtr(string, ptr) {
|
|
565
|
+
let lines = string.slice(0, ptr).split(/\r\n|\n|\r/g);
|
|
566
|
+
return [lines.length, lines.pop().length + 1];
|
|
567
|
+
}
|
|
568
|
+
function makeCodeBlock(string, line, column) {
|
|
569
|
+
let lines = string.split(/\r\n|\n|\r/g);
|
|
570
|
+
let codeblock = "";
|
|
571
|
+
let numberLen = (Math.log10(line + 1) | 0) + 1;
|
|
572
|
+
for (let i = line - 1; i <= line + 1; i++) {
|
|
573
|
+
let l = lines[i - 1];
|
|
574
|
+
if (!l)
|
|
575
|
+
continue;
|
|
576
|
+
codeblock += i.toString().padEnd(numberLen, " ");
|
|
577
|
+
codeblock += ": ";
|
|
578
|
+
codeblock += l;
|
|
579
|
+
codeblock += "\n";
|
|
580
|
+
if (i === line) {
|
|
581
|
+
codeblock += " ".repeat(numberLen + column + 2);
|
|
582
|
+
codeblock += "^\n";
|
|
583
|
+
}
|
|
584
|
+
}
|
|
585
|
+
return codeblock;
|
|
586
|
+
}
|
|
587
|
+
var TomlError;
|
|
588
|
+
var init_error = __esm({
|
|
589
|
+
"../../node_modules/.pnpm/smol-toml@1.6.1/node_modules/smol-toml/dist/error.js"() {
|
|
590
|
+
"use strict";
|
|
591
|
+
TomlError = class extends Error {
|
|
592
|
+
line;
|
|
593
|
+
column;
|
|
594
|
+
codeblock;
|
|
595
|
+
constructor(message, options) {
|
|
596
|
+
const [line, column] = getLineColFromPtr(options.toml, options.ptr);
|
|
597
|
+
const codeblock = makeCodeBlock(options.toml, line, column);
|
|
598
|
+
super(`Invalid TOML document: ${message}
|
|
599
|
+
|
|
600
|
+
${codeblock}`, options);
|
|
601
|
+
this.line = line;
|
|
602
|
+
this.column = column;
|
|
603
|
+
this.codeblock = codeblock;
|
|
604
|
+
}
|
|
605
|
+
};
|
|
606
|
+
}
|
|
607
|
+
});
|
|
608
|
+
|
|
609
|
+
// ../../node_modules/.pnpm/smol-toml@1.6.1/node_modules/smol-toml/dist/util.js
|
|
610
|
+
function isEscaped(str3, ptr) {
|
|
611
|
+
let i = 0;
|
|
612
|
+
while (str3[ptr - ++i] === "\\")
|
|
613
|
+
;
|
|
614
|
+
return --i && i % 2;
|
|
615
|
+
}
|
|
616
|
+
function indexOfNewline(str3, start = 0, end = str3.length) {
|
|
617
|
+
let idx = str3.indexOf("\n", start);
|
|
618
|
+
if (str3[idx - 1] === "\r")
|
|
619
|
+
idx--;
|
|
620
|
+
return idx <= end ? idx : -1;
|
|
621
|
+
}
|
|
622
|
+
function skipComment(str3, ptr) {
|
|
623
|
+
for (let i = ptr; i < str3.length; i++) {
|
|
624
|
+
let c = str3[i];
|
|
625
|
+
if (c === "\n")
|
|
626
|
+
return i;
|
|
627
|
+
if (c === "\r" && str3[i + 1] === "\n")
|
|
628
|
+
return i + 1;
|
|
629
|
+
if (c < " " && c !== " " || c === "\x7F") {
|
|
630
|
+
throw new TomlError("control characters are not allowed in comments", {
|
|
631
|
+
toml: str3,
|
|
632
|
+
ptr
|
|
633
|
+
});
|
|
634
|
+
}
|
|
635
|
+
}
|
|
636
|
+
return str3.length;
|
|
637
|
+
}
|
|
638
|
+
function skipVoid(str3, ptr, banNewLines, banComments) {
|
|
639
|
+
let c;
|
|
640
|
+
while (1) {
|
|
641
|
+
while ((c = str3[ptr]) === " " || c === " " || !banNewLines && (c === "\n" || c === "\r" && str3[ptr + 1] === "\n"))
|
|
642
|
+
ptr++;
|
|
643
|
+
if (banComments || c !== "#")
|
|
644
|
+
break;
|
|
645
|
+
ptr = skipComment(str3, ptr);
|
|
646
|
+
}
|
|
647
|
+
return ptr;
|
|
648
|
+
}
|
|
649
|
+
function skipUntil(str3, ptr, sep4, end, banNewLines = false) {
|
|
650
|
+
if (!end) {
|
|
651
|
+
ptr = indexOfNewline(str3, ptr);
|
|
652
|
+
return ptr < 0 ? str3.length : ptr;
|
|
653
|
+
}
|
|
654
|
+
for (let i = ptr; i < str3.length; i++) {
|
|
655
|
+
let c = str3[i];
|
|
656
|
+
if (c === "#") {
|
|
657
|
+
i = indexOfNewline(str3, i);
|
|
658
|
+
} else if (c === sep4) {
|
|
659
|
+
return i + 1;
|
|
660
|
+
} else if (c === end || banNewLines && (c === "\n" || c === "\r" && str3[i + 1] === "\n")) {
|
|
661
|
+
return i;
|
|
662
|
+
}
|
|
663
|
+
}
|
|
664
|
+
throw new TomlError("cannot find end of structure", {
|
|
665
|
+
toml: str3,
|
|
666
|
+
ptr
|
|
667
|
+
});
|
|
668
|
+
}
|
|
669
|
+
function getStringEnd(str3, seek) {
|
|
670
|
+
let first2 = str3[seek];
|
|
671
|
+
let target = first2 === str3[seek + 1] && str3[seek + 1] === str3[seek + 2] ? str3.slice(seek, seek + 3) : first2;
|
|
672
|
+
seek += target.length - 1;
|
|
673
|
+
do
|
|
674
|
+
seek = str3.indexOf(target, ++seek);
|
|
675
|
+
while (seek > -1 && first2 !== "'" && isEscaped(str3, seek));
|
|
676
|
+
if (seek > -1) {
|
|
677
|
+
seek += target.length;
|
|
678
|
+
if (target.length > 1) {
|
|
679
|
+
if (str3[seek] === first2)
|
|
680
|
+
seek++;
|
|
681
|
+
if (str3[seek] === first2)
|
|
682
|
+
seek++;
|
|
683
|
+
}
|
|
684
|
+
}
|
|
685
|
+
return seek;
|
|
686
|
+
}
|
|
687
|
+
var init_util = __esm({
|
|
688
|
+
"../../node_modules/.pnpm/smol-toml@1.6.1/node_modules/smol-toml/dist/util.js"() {
|
|
689
|
+
"use strict";
|
|
690
|
+
init_error();
|
|
691
|
+
}
|
|
692
|
+
});
|
|
693
|
+
|
|
694
|
+
// ../../node_modules/.pnpm/smol-toml@1.6.1/node_modules/smol-toml/dist/date.js
|
|
695
|
+
var DATE_TIME_RE, TomlDate;
|
|
696
|
+
var init_date = __esm({
|
|
697
|
+
"../../node_modules/.pnpm/smol-toml@1.6.1/node_modules/smol-toml/dist/date.js"() {
|
|
698
|
+
"use strict";
|
|
699
|
+
DATE_TIME_RE = /^(\d{4}-\d{2}-\d{2})?[T ]?(?:(\d{2}):\d{2}(?::\d{2}(?:\.\d+)?)?)?(Z|[-+]\d{2}:\d{2})?$/i;
|
|
700
|
+
TomlDate = class _TomlDate extends Date {
|
|
701
|
+
#hasDate = false;
|
|
702
|
+
#hasTime = false;
|
|
703
|
+
#offset = null;
|
|
704
|
+
constructor(date2) {
|
|
705
|
+
let hasDate = true;
|
|
706
|
+
let hasTime = true;
|
|
707
|
+
let offset2 = "Z";
|
|
708
|
+
if (typeof date2 === "string") {
|
|
709
|
+
let match2 = date2.match(DATE_TIME_RE);
|
|
710
|
+
if (match2) {
|
|
711
|
+
if (!match2[1]) {
|
|
712
|
+
hasDate = false;
|
|
713
|
+
date2 = `0000-01-01T${date2}`;
|
|
714
|
+
}
|
|
715
|
+
hasTime = !!match2[2];
|
|
716
|
+
hasTime && date2[10] === " " && (date2 = date2.replace(" ", "T"));
|
|
717
|
+
if (match2[2] && +match2[2] > 23) {
|
|
718
|
+
date2 = "";
|
|
719
|
+
} else {
|
|
720
|
+
offset2 = match2[3] || null;
|
|
721
|
+
date2 = date2.toUpperCase();
|
|
722
|
+
if (!offset2 && hasTime)
|
|
723
|
+
date2 += "Z";
|
|
724
|
+
}
|
|
725
|
+
} else {
|
|
726
|
+
date2 = "";
|
|
727
|
+
}
|
|
728
|
+
}
|
|
729
|
+
super(date2);
|
|
730
|
+
if (!isNaN(this.getTime())) {
|
|
731
|
+
this.#hasDate = hasDate;
|
|
732
|
+
this.#hasTime = hasTime;
|
|
733
|
+
this.#offset = offset2;
|
|
734
|
+
}
|
|
735
|
+
}
|
|
736
|
+
isDateTime() {
|
|
737
|
+
return this.#hasDate && this.#hasTime;
|
|
738
|
+
}
|
|
739
|
+
isLocal() {
|
|
740
|
+
return !this.#hasDate || !this.#hasTime || !this.#offset;
|
|
741
|
+
}
|
|
742
|
+
isDate() {
|
|
743
|
+
return this.#hasDate && !this.#hasTime;
|
|
744
|
+
}
|
|
745
|
+
isTime() {
|
|
746
|
+
return this.#hasTime && !this.#hasDate;
|
|
747
|
+
}
|
|
748
|
+
isValid() {
|
|
749
|
+
return this.#hasDate || this.#hasTime;
|
|
750
|
+
}
|
|
751
|
+
toISOString() {
|
|
752
|
+
let iso = super.toISOString();
|
|
753
|
+
if (this.isDate())
|
|
754
|
+
return iso.slice(0, 10);
|
|
755
|
+
if (this.isTime())
|
|
756
|
+
return iso.slice(11, 23);
|
|
757
|
+
if (this.#offset === null)
|
|
758
|
+
return iso.slice(0, -1);
|
|
759
|
+
if (this.#offset === "Z")
|
|
760
|
+
return iso;
|
|
761
|
+
let offset2 = +this.#offset.slice(1, 3) * 60 + +this.#offset.slice(4, 6);
|
|
762
|
+
offset2 = this.#offset[0] === "-" ? offset2 : -offset2;
|
|
763
|
+
let offsetDate = new Date(this.getTime() - offset2 * 6e4);
|
|
764
|
+
return offsetDate.toISOString().slice(0, -1) + this.#offset;
|
|
765
|
+
}
|
|
766
|
+
static wrapAsOffsetDateTime(jsDate, offset2 = "Z") {
|
|
767
|
+
let date2 = new _TomlDate(jsDate);
|
|
768
|
+
date2.#offset = offset2;
|
|
769
|
+
return date2;
|
|
770
|
+
}
|
|
771
|
+
static wrapAsLocalDateTime(jsDate) {
|
|
772
|
+
let date2 = new _TomlDate(jsDate);
|
|
773
|
+
date2.#offset = null;
|
|
774
|
+
return date2;
|
|
775
|
+
}
|
|
776
|
+
static wrapAsLocalDate(jsDate) {
|
|
777
|
+
let date2 = new _TomlDate(jsDate);
|
|
778
|
+
date2.#hasTime = false;
|
|
779
|
+
date2.#offset = null;
|
|
780
|
+
return date2;
|
|
781
|
+
}
|
|
782
|
+
static wrapAsLocalTime(jsDate) {
|
|
783
|
+
let date2 = new _TomlDate(jsDate);
|
|
784
|
+
date2.#hasDate = false;
|
|
785
|
+
date2.#offset = null;
|
|
786
|
+
return date2;
|
|
787
|
+
}
|
|
788
|
+
};
|
|
789
|
+
}
|
|
790
|
+
});
|
|
791
|
+
|
|
792
|
+
// ../../node_modules/.pnpm/smol-toml@1.6.1/node_modules/smol-toml/dist/primitive.js
|
|
793
|
+
function parseString(str3, ptr = 0, endPtr = str3.length) {
|
|
794
|
+
let isLiteral = str3[ptr] === "'";
|
|
795
|
+
let isMultiline = str3[ptr++] === str3[ptr] && str3[ptr] === str3[ptr + 1];
|
|
796
|
+
if (isMultiline) {
|
|
797
|
+
endPtr -= 2;
|
|
798
|
+
if (str3[ptr += 2] === "\r")
|
|
799
|
+
ptr++;
|
|
800
|
+
if (str3[ptr] === "\n")
|
|
801
|
+
ptr++;
|
|
802
|
+
}
|
|
803
|
+
let tmp = 0;
|
|
804
|
+
let isEscape;
|
|
805
|
+
let parsed = "";
|
|
806
|
+
let sliceStart = ptr;
|
|
807
|
+
while (ptr < endPtr - 1) {
|
|
808
|
+
let c = str3[ptr++];
|
|
809
|
+
if (c === "\n" || c === "\r" && str3[ptr] === "\n") {
|
|
810
|
+
if (!isMultiline) {
|
|
811
|
+
throw new TomlError("newlines are not allowed in strings", {
|
|
812
|
+
toml: str3,
|
|
813
|
+
ptr: ptr - 1
|
|
814
|
+
});
|
|
815
|
+
}
|
|
816
|
+
} else if (c < " " && c !== " " || c === "\x7F") {
|
|
817
|
+
throw new TomlError("control characters are not allowed in strings", {
|
|
818
|
+
toml: str3,
|
|
819
|
+
ptr: ptr - 1
|
|
820
|
+
});
|
|
821
|
+
}
|
|
822
|
+
if (isEscape) {
|
|
823
|
+
isEscape = false;
|
|
824
|
+
if (c === "x" || c === "u" || c === "U") {
|
|
825
|
+
let code = str3.slice(ptr, ptr += c === "x" ? 2 : c === "u" ? 4 : 8);
|
|
826
|
+
if (!ESCAPE_REGEX.test(code)) {
|
|
827
|
+
throw new TomlError("invalid unicode escape", {
|
|
828
|
+
toml: str3,
|
|
829
|
+
ptr: tmp
|
|
830
|
+
});
|
|
831
|
+
}
|
|
832
|
+
try {
|
|
833
|
+
parsed += String.fromCodePoint(parseInt(code, 16));
|
|
834
|
+
} catch {
|
|
835
|
+
throw new TomlError("invalid unicode escape", {
|
|
836
|
+
toml: str3,
|
|
837
|
+
ptr: tmp
|
|
838
|
+
});
|
|
839
|
+
}
|
|
840
|
+
} else if (isMultiline && (c === "\n" || c === " " || c === " " || c === "\r")) {
|
|
841
|
+
ptr = skipVoid(str3, ptr - 1, true);
|
|
842
|
+
if (str3[ptr] !== "\n" && str3[ptr] !== "\r") {
|
|
843
|
+
throw new TomlError("invalid escape: only line-ending whitespace may be escaped", {
|
|
844
|
+
toml: str3,
|
|
845
|
+
ptr: tmp
|
|
846
|
+
});
|
|
847
|
+
}
|
|
848
|
+
ptr = skipVoid(str3, ptr);
|
|
849
|
+
} else if (c in ESC_MAP) {
|
|
850
|
+
parsed += ESC_MAP[c];
|
|
851
|
+
} else {
|
|
852
|
+
throw new TomlError("unrecognized escape sequence", {
|
|
853
|
+
toml: str3,
|
|
854
|
+
ptr: tmp
|
|
855
|
+
});
|
|
856
|
+
}
|
|
857
|
+
sliceStart = ptr;
|
|
858
|
+
} else if (!isLiteral && c === "\\") {
|
|
859
|
+
tmp = ptr - 1;
|
|
860
|
+
isEscape = true;
|
|
861
|
+
parsed += str3.slice(sliceStart, tmp);
|
|
862
|
+
}
|
|
863
|
+
}
|
|
864
|
+
return parsed + str3.slice(sliceStart, endPtr - 1);
|
|
865
|
+
}
|
|
866
|
+
function parseValue(value, toml, ptr, integersAsBigInt) {
|
|
867
|
+
if (value === "true")
|
|
868
|
+
return true;
|
|
869
|
+
if (value === "false")
|
|
870
|
+
return false;
|
|
871
|
+
if (value === "-inf")
|
|
872
|
+
return -Infinity;
|
|
873
|
+
if (value === "inf" || value === "+inf")
|
|
874
|
+
return Infinity;
|
|
875
|
+
if (value === "nan" || value === "+nan" || value === "-nan")
|
|
876
|
+
return NaN;
|
|
877
|
+
if (value === "-0")
|
|
878
|
+
return integersAsBigInt ? 0n : 0;
|
|
879
|
+
let isInt = INT_REGEX.test(value);
|
|
880
|
+
if (isInt || FLOAT_REGEX.test(value)) {
|
|
881
|
+
if (LEADING_ZERO.test(value)) {
|
|
882
|
+
throw new TomlError("leading zeroes are not allowed", {
|
|
883
|
+
toml,
|
|
884
|
+
ptr
|
|
885
|
+
});
|
|
886
|
+
}
|
|
887
|
+
value = value.replace(/_/g, "");
|
|
888
|
+
let numeric2 = +value;
|
|
889
|
+
if (isNaN(numeric2)) {
|
|
890
|
+
throw new TomlError("invalid number", {
|
|
891
|
+
toml,
|
|
892
|
+
ptr
|
|
893
|
+
});
|
|
894
|
+
}
|
|
895
|
+
if (isInt) {
|
|
896
|
+
if ((isInt = !Number.isSafeInteger(numeric2)) && !integersAsBigInt) {
|
|
897
|
+
throw new TomlError("integer value cannot be represented losslessly", {
|
|
898
|
+
toml,
|
|
899
|
+
ptr
|
|
900
|
+
});
|
|
901
|
+
}
|
|
902
|
+
if (isInt || integersAsBigInt === true)
|
|
903
|
+
numeric2 = BigInt(value);
|
|
904
|
+
}
|
|
905
|
+
return numeric2;
|
|
906
|
+
}
|
|
907
|
+
const date2 = new TomlDate(value);
|
|
908
|
+
if (!date2.isValid()) {
|
|
909
|
+
throw new TomlError("invalid value", {
|
|
910
|
+
toml,
|
|
911
|
+
ptr
|
|
912
|
+
});
|
|
913
|
+
}
|
|
914
|
+
return date2;
|
|
915
|
+
}
|
|
916
|
+
var INT_REGEX, FLOAT_REGEX, LEADING_ZERO, ESCAPE_REGEX, ESC_MAP;
|
|
917
|
+
var init_primitive = __esm({
|
|
918
|
+
"../../node_modules/.pnpm/smol-toml@1.6.1/node_modules/smol-toml/dist/primitive.js"() {
|
|
919
|
+
"use strict";
|
|
920
|
+
init_util();
|
|
921
|
+
init_date();
|
|
922
|
+
init_error();
|
|
923
|
+
INT_REGEX = /^((0x[0-9a-fA-F](_?[0-9a-fA-F])*)|(([+-]|0[ob])?\d(_?\d)*))$/;
|
|
924
|
+
FLOAT_REGEX = /^[+-]?\d(_?\d)*(\.\d(_?\d)*)?([eE][+-]?\d(_?\d)*)?$/;
|
|
925
|
+
LEADING_ZERO = /^[+-]?0[0-9_]/;
|
|
926
|
+
ESCAPE_REGEX = /^[0-9a-f]{2,8}$/i;
|
|
927
|
+
ESC_MAP = {
|
|
928
|
+
b: "\b",
|
|
929
|
+
t: " ",
|
|
930
|
+
n: "\n",
|
|
931
|
+
f: "\f",
|
|
932
|
+
r: "\r",
|
|
933
|
+
e: "\x1B",
|
|
934
|
+
'"': '"',
|
|
935
|
+
"\\": "\\"
|
|
936
|
+
};
|
|
937
|
+
}
|
|
938
|
+
});
|
|
939
|
+
|
|
940
|
+
// ../../node_modules/.pnpm/smol-toml@1.6.1/node_modules/smol-toml/dist/extract.js
|
|
941
|
+
function sliceAndTrimEndOf(str3, startPtr, endPtr) {
|
|
942
|
+
let value = str3.slice(startPtr, endPtr);
|
|
943
|
+
let commentIdx = value.indexOf("#");
|
|
944
|
+
if (commentIdx > -1) {
|
|
945
|
+
skipComment(str3, commentIdx);
|
|
946
|
+
value = value.slice(0, commentIdx);
|
|
947
|
+
}
|
|
948
|
+
return [value.trimEnd(), commentIdx];
|
|
949
|
+
}
|
|
950
|
+
function extractValue(str3, ptr, end, depth, integersAsBigInt) {
|
|
951
|
+
if (depth === 0) {
|
|
952
|
+
throw new TomlError("document contains excessively nested structures. aborting.", {
|
|
953
|
+
toml: str3,
|
|
954
|
+
ptr
|
|
955
|
+
});
|
|
956
|
+
}
|
|
957
|
+
let c = str3[ptr];
|
|
958
|
+
if (c === "[" || c === "{") {
|
|
959
|
+
let [value, endPtr2] = c === "[" ? parseArray(str3, ptr, depth, integersAsBigInt) : parseInlineTable(str3, ptr, depth, integersAsBigInt);
|
|
960
|
+
if (end) {
|
|
961
|
+
endPtr2 = skipVoid(str3, endPtr2);
|
|
962
|
+
if (str3[endPtr2] === ",")
|
|
963
|
+
endPtr2++;
|
|
964
|
+
else if (str3[endPtr2] !== end) {
|
|
965
|
+
throw new TomlError("expected comma or end of structure", {
|
|
966
|
+
toml: str3,
|
|
967
|
+
ptr: endPtr2
|
|
968
|
+
});
|
|
969
|
+
}
|
|
970
|
+
}
|
|
971
|
+
return [value, endPtr2];
|
|
972
|
+
}
|
|
973
|
+
let endPtr;
|
|
974
|
+
if (c === '"' || c === "'") {
|
|
975
|
+
endPtr = getStringEnd(str3, ptr);
|
|
976
|
+
let parsed = parseString(str3, ptr, endPtr);
|
|
977
|
+
if (end) {
|
|
978
|
+
endPtr = skipVoid(str3, endPtr);
|
|
979
|
+
if (str3[endPtr] && str3[endPtr] !== "," && str3[endPtr] !== end && str3[endPtr] !== "\n" && str3[endPtr] !== "\r") {
|
|
980
|
+
throw new TomlError("unexpected character encountered", {
|
|
981
|
+
toml: str3,
|
|
982
|
+
ptr: endPtr
|
|
983
|
+
});
|
|
984
|
+
}
|
|
985
|
+
endPtr += +(str3[endPtr] === ",");
|
|
986
|
+
}
|
|
987
|
+
return [parsed, endPtr];
|
|
988
|
+
}
|
|
989
|
+
endPtr = skipUntil(str3, ptr, ",", end);
|
|
990
|
+
let slice2 = sliceAndTrimEndOf(str3, ptr, endPtr - +(str3[endPtr - 1] === ","));
|
|
991
|
+
if (!slice2[0]) {
|
|
992
|
+
throw new TomlError("incomplete key-value declaration: no value specified", {
|
|
993
|
+
toml: str3,
|
|
994
|
+
ptr
|
|
995
|
+
});
|
|
996
|
+
}
|
|
997
|
+
if (end && slice2[1] > -1) {
|
|
998
|
+
endPtr = skipVoid(str3, ptr + slice2[1]);
|
|
999
|
+
endPtr += +(str3[endPtr] === ",");
|
|
1000
|
+
}
|
|
1001
|
+
return [
|
|
1002
|
+
parseValue(slice2[0], str3, ptr, integersAsBigInt),
|
|
1003
|
+
endPtr
|
|
1004
|
+
];
|
|
1005
|
+
}
|
|
1006
|
+
var init_extract = __esm({
|
|
1007
|
+
"../../node_modules/.pnpm/smol-toml@1.6.1/node_modules/smol-toml/dist/extract.js"() {
|
|
1008
|
+
"use strict";
|
|
1009
|
+
init_primitive();
|
|
1010
|
+
init_struct();
|
|
1011
|
+
init_util();
|
|
1012
|
+
init_error();
|
|
1013
|
+
}
|
|
1014
|
+
});
|
|
1015
|
+
|
|
1016
|
+
// ../../node_modules/.pnpm/smol-toml@1.6.1/node_modules/smol-toml/dist/struct.js
|
|
1017
|
+
function parseKey(str3, ptr, end = "=") {
|
|
1018
|
+
let dot = ptr - 1;
|
|
1019
|
+
let parsed = [];
|
|
1020
|
+
let endPtr = str3.indexOf(end, ptr);
|
|
1021
|
+
if (endPtr < 0) {
|
|
1022
|
+
throw new TomlError("incomplete key-value: cannot find end of key", {
|
|
1023
|
+
toml: str3,
|
|
1024
|
+
ptr
|
|
1025
|
+
});
|
|
1026
|
+
}
|
|
1027
|
+
do {
|
|
1028
|
+
let c = str3[ptr = ++dot];
|
|
1029
|
+
if (c !== " " && c !== " ") {
|
|
1030
|
+
if (c === '"' || c === "'") {
|
|
1031
|
+
if (c === str3[ptr + 1] && c === str3[ptr + 2]) {
|
|
1032
|
+
throw new TomlError("multiline strings are not allowed in keys", {
|
|
1033
|
+
toml: str3,
|
|
1034
|
+
ptr
|
|
1035
|
+
});
|
|
1036
|
+
}
|
|
1037
|
+
let eos = getStringEnd(str3, ptr);
|
|
1038
|
+
if (eos < 0) {
|
|
1039
|
+
throw new TomlError("unfinished string encountered", {
|
|
1040
|
+
toml: str3,
|
|
1041
|
+
ptr
|
|
1042
|
+
});
|
|
1043
|
+
}
|
|
1044
|
+
dot = str3.indexOf(".", eos);
|
|
1045
|
+
let strEnd = str3.slice(eos, dot < 0 || dot > endPtr ? endPtr : dot);
|
|
1046
|
+
let newLine = indexOfNewline(strEnd);
|
|
1047
|
+
if (newLine > -1) {
|
|
1048
|
+
throw new TomlError("newlines are not allowed in keys", {
|
|
1049
|
+
toml: str3,
|
|
1050
|
+
ptr: ptr + dot + newLine
|
|
1051
|
+
});
|
|
1052
|
+
}
|
|
1053
|
+
if (strEnd.trimStart()) {
|
|
1054
|
+
throw new TomlError("found extra tokens after the string part", {
|
|
1055
|
+
toml: str3,
|
|
1056
|
+
ptr: eos
|
|
1057
|
+
});
|
|
1058
|
+
}
|
|
1059
|
+
if (endPtr < eos) {
|
|
1060
|
+
endPtr = str3.indexOf(end, eos);
|
|
1061
|
+
if (endPtr < 0) {
|
|
1062
|
+
throw new TomlError("incomplete key-value: cannot find end of key", {
|
|
1063
|
+
toml: str3,
|
|
1064
|
+
ptr
|
|
1065
|
+
});
|
|
1066
|
+
}
|
|
1067
|
+
}
|
|
1068
|
+
parsed.push(parseString(str3, ptr, eos));
|
|
1069
|
+
} else {
|
|
1070
|
+
dot = str3.indexOf(".", ptr);
|
|
1071
|
+
let part = str3.slice(ptr, dot < 0 || dot > endPtr ? endPtr : dot);
|
|
1072
|
+
if (!KEY_PART_RE.test(part)) {
|
|
1073
|
+
throw new TomlError("only letter, numbers, dashes and underscores are allowed in keys", {
|
|
1074
|
+
toml: str3,
|
|
1075
|
+
ptr
|
|
1076
|
+
});
|
|
1077
|
+
}
|
|
1078
|
+
parsed.push(part.trimEnd());
|
|
1079
|
+
}
|
|
1080
|
+
}
|
|
1081
|
+
} while (dot + 1 && dot < endPtr);
|
|
1082
|
+
return [parsed, skipVoid(str3, endPtr + 1, true, true)];
|
|
1083
|
+
}
|
|
1084
|
+
function parseInlineTable(str3, ptr, depth, integersAsBigInt) {
|
|
1085
|
+
let res = {};
|
|
1086
|
+
let seen = /* @__PURE__ */ new Set();
|
|
1087
|
+
let c;
|
|
1088
|
+
ptr++;
|
|
1089
|
+
while ((c = str3[ptr++]) !== "}" && c) {
|
|
1090
|
+
if (c === ",") {
|
|
1091
|
+
throw new TomlError("expected value, found comma", {
|
|
1092
|
+
toml: str3,
|
|
1093
|
+
ptr: ptr - 1
|
|
1094
|
+
});
|
|
1095
|
+
} else if (c === "#")
|
|
1096
|
+
ptr = skipComment(str3, ptr);
|
|
1097
|
+
else if (c !== " " && c !== " " && c !== "\n" && c !== "\r") {
|
|
1098
|
+
let k;
|
|
1099
|
+
let t = res;
|
|
1100
|
+
let hasOwn4 = false;
|
|
1101
|
+
let [key, keyEndPtr] = parseKey(str3, ptr - 1);
|
|
1102
|
+
for (let i = 0; i < key.length; i++) {
|
|
1103
|
+
if (i)
|
|
1104
|
+
t = hasOwn4 ? t[k] : t[k] = {};
|
|
1105
|
+
k = key[i];
|
|
1106
|
+
if ((hasOwn4 = Object.hasOwn(t, k)) && (typeof t[k] !== "object" || seen.has(t[k]))) {
|
|
1107
|
+
throw new TomlError("trying to redefine an already defined value", {
|
|
1108
|
+
toml: str3,
|
|
1109
|
+
ptr
|
|
1110
|
+
});
|
|
1111
|
+
}
|
|
1112
|
+
if (!hasOwn4 && k === "__proto__") {
|
|
1113
|
+
Object.defineProperty(t, k, { enumerable: true, configurable: true, writable: true });
|
|
1114
|
+
}
|
|
1115
|
+
}
|
|
1116
|
+
if (hasOwn4) {
|
|
1117
|
+
throw new TomlError("trying to redefine an already defined value", {
|
|
1118
|
+
toml: str3,
|
|
1119
|
+
ptr
|
|
1120
|
+
});
|
|
1121
|
+
}
|
|
1122
|
+
let [value, valueEndPtr] = extractValue(str3, keyEndPtr, "}", depth - 1, integersAsBigInt);
|
|
1123
|
+
seen.add(value);
|
|
1124
|
+
t[k] = value;
|
|
1125
|
+
ptr = valueEndPtr;
|
|
1126
|
+
}
|
|
1127
|
+
}
|
|
1128
|
+
if (!c) {
|
|
1129
|
+
throw new TomlError("unfinished table encountered", {
|
|
1130
|
+
toml: str3,
|
|
1131
|
+
ptr
|
|
1132
|
+
});
|
|
1133
|
+
}
|
|
1134
|
+
return [res, ptr];
|
|
1135
|
+
}
|
|
1136
|
+
function parseArray(str3, ptr, depth, integersAsBigInt) {
|
|
1137
|
+
let res = [];
|
|
1138
|
+
let c;
|
|
1139
|
+
ptr++;
|
|
1140
|
+
while ((c = str3[ptr++]) !== "]" && c) {
|
|
1141
|
+
if (c === ",") {
|
|
1142
|
+
throw new TomlError("expected value, found comma", {
|
|
1143
|
+
toml: str3,
|
|
1144
|
+
ptr: ptr - 1
|
|
1145
|
+
});
|
|
1146
|
+
} else if (c === "#")
|
|
1147
|
+
ptr = skipComment(str3, ptr);
|
|
1148
|
+
else if (c !== " " && c !== " " && c !== "\n" && c !== "\r") {
|
|
1149
|
+
let e = extractValue(str3, ptr - 1, "]", depth - 1, integersAsBigInt);
|
|
1150
|
+
res.push(e[0]);
|
|
1151
|
+
ptr = e[1];
|
|
1152
|
+
}
|
|
1153
|
+
}
|
|
1154
|
+
if (!c) {
|
|
1155
|
+
throw new TomlError("unfinished array encountered", {
|
|
1156
|
+
toml: str3,
|
|
1157
|
+
ptr
|
|
1158
|
+
});
|
|
1159
|
+
}
|
|
1160
|
+
return [res, ptr];
|
|
1161
|
+
}
|
|
1162
|
+
var KEY_PART_RE;
|
|
1163
|
+
var init_struct = __esm({
|
|
1164
|
+
"../../node_modules/.pnpm/smol-toml@1.6.1/node_modules/smol-toml/dist/struct.js"() {
|
|
1165
|
+
"use strict";
|
|
1166
|
+
init_primitive();
|
|
1167
|
+
init_extract();
|
|
1168
|
+
init_util();
|
|
1169
|
+
init_error();
|
|
1170
|
+
KEY_PART_RE = /^[a-zA-Z0-9-_]+[ \t]*$/;
|
|
1171
|
+
}
|
|
1172
|
+
});
|
|
1173
|
+
|
|
1174
|
+
// ../../node_modules/.pnpm/smol-toml@1.6.1/node_modules/smol-toml/dist/parse.js
|
|
1175
|
+
function peekTable(key, table, meta, type2) {
|
|
1176
|
+
let t = table;
|
|
1177
|
+
let m = meta;
|
|
1178
|
+
let k;
|
|
1179
|
+
let hasOwn4 = false;
|
|
1180
|
+
let state;
|
|
1181
|
+
for (let i = 0; i < key.length; i++) {
|
|
1182
|
+
if (i) {
|
|
1183
|
+
t = hasOwn4 ? t[k] : t[k] = {};
|
|
1184
|
+
m = (state = m[k]).c;
|
|
1185
|
+
if (type2 === 0 && (state.t === 1 || state.t === 2)) {
|
|
1186
|
+
return null;
|
|
1187
|
+
}
|
|
1188
|
+
if (state.t === 2) {
|
|
1189
|
+
let l = t.length - 1;
|
|
1190
|
+
t = t[l];
|
|
1191
|
+
m = m[l].c;
|
|
1192
|
+
}
|
|
1193
|
+
}
|
|
1194
|
+
k = key[i];
|
|
1195
|
+
if ((hasOwn4 = Object.hasOwn(t, k)) && m[k]?.t === 0 && m[k]?.d) {
|
|
1196
|
+
return null;
|
|
1197
|
+
}
|
|
1198
|
+
if (!hasOwn4) {
|
|
1199
|
+
if (k === "__proto__") {
|
|
1200
|
+
Object.defineProperty(t, k, { enumerable: true, configurable: true, writable: true });
|
|
1201
|
+
Object.defineProperty(m, k, { enumerable: true, configurable: true, writable: true });
|
|
1202
|
+
}
|
|
1203
|
+
m[k] = {
|
|
1204
|
+
t: i < key.length - 1 && type2 === 2 ? 3 : type2,
|
|
1205
|
+
d: false,
|
|
1206
|
+
i: 0,
|
|
1207
|
+
c: {}
|
|
1208
|
+
};
|
|
1209
|
+
}
|
|
1210
|
+
}
|
|
1211
|
+
state = m[k];
|
|
1212
|
+
if (state.t !== type2 && !(type2 === 1 && state.t === 3)) {
|
|
1213
|
+
return null;
|
|
1214
|
+
}
|
|
1215
|
+
if (type2 === 2) {
|
|
1216
|
+
if (!state.d) {
|
|
1217
|
+
state.d = true;
|
|
1218
|
+
t[k] = [];
|
|
1219
|
+
}
|
|
1220
|
+
t[k].push(t = {});
|
|
1221
|
+
state.c[state.i++] = state = { t: 1, d: false, i: 0, c: {} };
|
|
1222
|
+
}
|
|
1223
|
+
if (state.d) {
|
|
1224
|
+
return null;
|
|
1225
|
+
}
|
|
1226
|
+
state.d = true;
|
|
1227
|
+
if (type2 === 1) {
|
|
1228
|
+
t = hasOwn4 ? t[k] : t[k] = {};
|
|
1229
|
+
} else if (type2 === 0 && hasOwn4) {
|
|
1230
|
+
return null;
|
|
1231
|
+
}
|
|
1232
|
+
return [k, t, state.c];
|
|
1233
|
+
}
|
|
1234
|
+
function parse(toml, { maxDepth = 1e3, integersAsBigInt } = {}) {
|
|
1235
|
+
let res = {};
|
|
1236
|
+
let meta = {};
|
|
1237
|
+
let tbl = res;
|
|
1238
|
+
let m = meta;
|
|
1239
|
+
for (let ptr = skipVoid(toml, 0); ptr < toml.length; ) {
|
|
1240
|
+
if (toml[ptr] === "[") {
|
|
1241
|
+
let isTableArray = toml[++ptr] === "[";
|
|
1242
|
+
let k = parseKey(toml, ptr += +isTableArray, "]");
|
|
1243
|
+
if (isTableArray) {
|
|
1244
|
+
if (toml[k[1] - 1] !== "]") {
|
|
1245
|
+
throw new TomlError("expected end of table declaration", {
|
|
1246
|
+
toml,
|
|
1247
|
+
ptr: k[1] - 1
|
|
1248
|
+
});
|
|
1249
|
+
}
|
|
1250
|
+
k[1]++;
|
|
1251
|
+
}
|
|
1252
|
+
let p = peekTable(
|
|
1253
|
+
k[0],
|
|
1254
|
+
res,
|
|
1255
|
+
meta,
|
|
1256
|
+
isTableArray ? 2 : 1
|
|
1257
|
+
/* Type.EXPLICIT */
|
|
1258
|
+
);
|
|
1259
|
+
if (!p) {
|
|
1260
|
+
throw new TomlError("trying to redefine an already defined table or value", {
|
|
1261
|
+
toml,
|
|
1262
|
+
ptr
|
|
1263
|
+
});
|
|
1264
|
+
}
|
|
1265
|
+
m = p[2];
|
|
1266
|
+
tbl = p[1];
|
|
1267
|
+
ptr = k[1];
|
|
1268
|
+
} else {
|
|
1269
|
+
let k = parseKey(toml, ptr);
|
|
1270
|
+
let p = peekTable(
|
|
1271
|
+
k[0],
|
|
1272
|
+
tbl,
|
|
1273
|
+
m,
|
|
1274
|
+
0
|
|
1275
|
+
/* Type.DOTTED */
|
|
1276
|
+
);
|
|
1277
|
+
if (!p) {
|
|
1278
|
+
throw new TomlError("trying to redefine an already defined table or value", {
|
|
1279
|
+
toml,
|
|
1280
|
+
ptr
|
|
1281
|
+
});
|
|
1282
|
+
}
|
|
1283
|
+
let v = extractValue(toml, k[1], void 0, maxDepth, integersAsBigInt);
|
|
1284
|
+
p[1][p[0]] = v[0];
|
|
1285
|
+
ptr = v[1];
|
|
1286
|
+
}
|
|
1287
|
+
ptr = skipVoid(toml, ptr, true);
|
|
1288
|
+
if (toml[ptr] && toml[ptr] !== "\n" && toml[ptr] !== "\r") {
|
|
1289
|
+
throw new TomlError("each key-value declaration must be followed by an end-of-line", {
|
|
1290
|
+
toml,
|
|
1291
|
+
ptr
|
|
1292
|
+
});
|
|
1293
|
+
}
|
|
1294
|
+
ptr = skipVoid(toml, ptr);
|
|
1295
|
+
}
|
|
1296
|
+
return res;
|
|
1297
|
+
}
|
|
1298
|
+
var init_parse = __esm({
|
|
1299
|
+
"../../node_modules/.pnpm/smol-toml@1.6.1/node_modules/smol-toml/dist/parse.js"() {
|
|
1300
|
+
"use strict";
|
|
1301
|
+
init_struct();
|
|
1302
|
+
init_extract();
|
|
1303
|
+
init_util();
|
|
1304
|
+
init_error();
|
|
1305
|
+
}
|
|
1306
|
+
});
|
|
1307
|
+
|
|
1308
|
+
// ../../node_modules/.pnpm/smol-toml@1.6.1/node_modules/smol-toml/dist/stringify.js
|
|
1309
|
+
function extendedTypeOf(obj) {
|
|
1310
|
+
let type2 = typeof obj;
|
|
1311
|
+
if (type2 === "object") {
|
|
1312
|
+
if (Array.isArray(obj))
|
|
1313
|
+
return "array";
|
|
1314
|
+
if (obj instanceof Date)
|
|
1315
|
+
return "date";
|
|
1316
|
+
}
|
|
1317
|
+
return type2;
|
|
1318
|
+
}
|
|
1319
|
+
function isArrayOfTables(obj) {
|
|
1320
|
+
for (let i = 0; i < obj.length; i++) {
|
|
1321
|
+
if (extendedTypeOf(obj[i]) !== "object")
|
|
1322
|
+
return false;
|
|
1323
|
+
}
|
|
1324
|
+
return obj.length != 0;
|
|
1325
|
+
}
|
|
1326
|
+
function formatString(s) {
|
|
1327
|
+
return JSON.stringify(s).replace(/\x7f/g, "\\u007f");
|
|
1328
|
+
}
|
|
1329
|
+
function stringifyValue(val, type2, depth, numberAsFloat) {
|
|
1330
|
+
if (depth === 0) {
|
|
1331
|
+
throw new Error("Could not stringify the object: maximum object depth exceeded");
|
|
1332
|
+
}
|
|
1333
|
+
if (type2 === "number") {
|
|
1334
|
+
if (isNaN(val))
|
|
1335
|
+
return "nan";
|
|
1336
|
+
if (val === Infinity)
|
|
1337
|
+
return "inf";
|
|
1338
|
+
if (val === -Infinity)
|
|
1339
|
+
return "-inf";
|
|
1340
|
+
if (numberAsFloat && Number.isInteger(val))
|
|
1341
|
+
return val.toFixed(1);
|
|
1342
|
+
return val.toString();
|
|
1343
|
+
}
|
|
1344
|
+
if (type2 === "bigint" || type2 === "boolean") {
|
|
1345
|
+
return val.toString();
|
|
1346
|
+
}
|
|
1347
|
+
if (type2 === "string") {
|
|
1348
|
+
return formatString(val);
|
|
1349
|
+
}
|
|
1350
|
+
if (type2 === "date") {
|
|
1351
|
+
if (isNaN(val.getTime())) {
|
|
1352
|
+
throw new TypeError("cannot serialize invalid date");
|
|
1353
|
+
}
|
|
1354
|
+
return val.toISOString();
|
|
1355
|
+
}
|
|
1356
|
+
if (type2 === "object") {
|
|
1357
|
+
return stringifyInlineTable(val, depth, numberAsFloat);
|
|
1358
|
+
}
|
|
1359
|
+
if (type2 === "array") {
|
|
1360
|
+
return stringifyArray(val, depth, numberAsFloat);
|
|
1361
|
+
}
|
|
1362
|
+
}
|
|
1363
|
+
function stringifyInlineTable(obj, depth, numberAsFloat) {
|
|
1364
|
+
let keys = Object.keys(obj);
|
|
1365
|
+
if (keys.length === 0)
|
|
1366
|
+
return "{}";
|
|
1367
|
+
let res = "{ ";
|
|
1368
|
+
for (let i = 0; i < keys.length; i++) {
|
|
1369
|
+
let k = keys[i];
|
|
1370
|
+
if (i)
|
|
1371
|
+
res += ", ";
|
|
1372
|
+
res += BARE_KEY.test(k) ? k : formatString(k);
|
|
1373
|
+
res += " = ";
|
|
1374
|
+
res += stringifyValue(obj[k], extendedTypeOf(obj[k]), depth - 1, numberAsFloat);
|
|
1375
|
+
}
|
|
1376
|
+
return res + " }";
|
|
1377
|
+
}
|
|
1378
|
+
function stringifyArray(array, depth, numberAsFloat) {
|
|
1379
|
+
if (array.length === 0)
|
|
1380
|
+
return "[]";
|
|
1381
|
+
let res = "[ ";
|
|
1382
|
+
for (let i = 0; i < array.length; i++) {
|
|
1383
|
+
if (i)
|
|
1384
|
+
res += ", ";
|
|
1385
|
+
if (array[i] === null || array[i] === void 0) {
|
|
1386
|
+
throw new TypeError("arrays cannot contain null or undefined values");
|
|
1387
|
+
}
|
|
1388
|
+
res += stringifyValue(array[i], extendedTypeOf(array[i]), depth - 1, numberAsFloat);
|
|
1389
|
+
}
|
|
1390
|
+
return res + " ]";
|
|
1391
|
+
}
|
|
1392
|
+
function stringifyArrayTable(array, key, depth, numberAsFloat) {
|
|
1393
|
+
if (depth === 0) {
|
|
1394
|
+
throw new Error("Could not stringify the object: maximum object depth exceeded");
|
|
1395
|
+
}
|
|
1396
|
+
let res = "";
|
|
1397
|
+
for (let i = 0; i < array.length; i++) {
|
|
1398
|
+
res += `${res && "\n"}[[${key}]]
|
|
1399
|
+
`;
|
|
1400
|
+
res += stringifyTable(0, array[i], key, depth, numberAsFloat);
|
|
1401
|
+
}
|
|
1402
|
+
return res;
|
|
1403
|
+
}
|
|
1404
|
+
function stringifyTable(tableKey, obj, prefix, depth, numberAsFloat) {
|
|
1405
|
+
if (depth === 0) {
|
|
1406
|
+
throw new Error("Could not stringify the object: maximum object depth exceeded");
|
|
1407
|
+
}
|
|
1408
|
+
let preamble = "";
|
|
1409
|
+
let tables = "";
|
|
1410
|
+
let keys = Object.keys(obj);
|
|
1411
|
+
for (let i = 0; i < keys.length; i++) {
|
|
1412
|
+
let k = keys[i];
|
|
1413
|
+
if (obj[k] !== null && obj[k] !== void 0) {
|
|
1414
|
+
let type2 = extendedTypeOf(obj[k]);
|
|
1415
|
+
if (type2 === "symbol" || type2 === "function") {
|
|
1416
|
+
throw new TypeError(`cannot serialize values of type '${type2}'`);
|
|
1417
|
+
}
|
|
1418
|
+
let key = BARE_KEY.test(k) ? k : formatString(k);
|
|
1419
|
+
if (type2 === "array" && isArrayOfTables(obj[k])) {
|
|
1420
|
+
tables += (tables && "\n") + stringifyArrayTable(obj[k], prefix ? `${prefix}.${key}` : key, depth - 1, numberAsFloat);
|
|
1421
|
+
} else if (type2 === "object") {
|
|
1422
|
+
let tblKey = prefix ? `${prefix}.${key}` : key;
|
|
1423
|
+
tables += (tables && "\n") + stringifyTable(tblKey, obj[k], tblKey, depth - 1, numberAsFloat);
|
|
1424
|
+
} else {
|
|
1425
|
+
preamble += key;
|
|
1426
|
+
preamble += " = ";
|
|
1427
|
+
preamble += stringifyValue(obj[k], type2, depth, numberAsFloat);
|
|
1428
|
+
preamble += "\n";
|
|
1429
|
+
}
|
|
1430
|
+
}
|
|
1431
|
+
}
|
|
1432
|
+
if (tableKey && (preamble || !tables))
|
|
1433
|
+
preamble = preamble ? `[${tableKey}]
|
|
1434
|
+
${preamble}` : `[${tableKey}]`;
|
|
1435
|
+
return preamble && tables ? `${preamble}
|
|
1436
|
+
${tables}` : preamble || tables;
|
|
1437
|
+
}
|
|
1438
|
+
function stringify(obj, { maxDepth = 1e3, numbersAsFloat = false } = {}) {
|
|
1439
|
+
if (extendedTypeOf(obj) !== "object") {
|
|
1440
|
+
throw new TypeError("stringify can only be called with an object");
|
|
1441
|
+
}
|
|
1442
|
+
let str3 = stringifyTable(0, obj, "", maxDepth, numbersAsFloat);
|
|
1443
|
+
if (str3[str3.length - 1] !== "\n")
|
|
1444
|
+
return str3 + "\n";
|
|
1445
|
+
return str3;
|
|
1446
|
+
}
|
|
1447
|
+
var BARE_KEY;
|
|
1448
|
+
var init_stringify = __esm({
|
|
1449
|
+
"../../node_modules/.pnpm/smol-toml@1.6.1/node_modules/smol-toml/dist/stringify.js"() {
|
|
1450
|
+
"use strict";
|
|
1451
|
+
BARE_KEY = /^[a-z0-9-_]+$/i;
|
|
1452
|
+
}
|
|
1453
|
+
});
|
|
1454
|
+
|
|
1455
|
+
// ../../node_modules/.pnpm/smol-toml@1.6.1/node_modules/smol-toml/dist/index.js
|
|
1456
|
+
var init_dist = __esm({
|
|
1457
|
+
"../../node_modules/.pnpm/smol-toml@1.6.1/node_modules/smol-toml/dist/index.js"() {
|
|
1458
|
+
"use strict";
|
|
1459
|
+
init_parse();
|
|
1460
|
+
init_stringify();
|
|
1461
|
+
init_date();
|
|
1462
|
+
init_error();
|
|
1463
|
+
}
|
|
1464
|
+
});
|
|
1465
|
+
|
|
43
1466
|
// ../version/dist/chunk-Q3FHZORY.js
|
|
44
|
-
import chalk2 from "chalk";
|
|
45
1467
|
function shouldLog2(level) {
|
|
46
1468
|
if (quietMode2 && level !== "error") return false;
|
|
47
1469
|
return LOG_LEVELS2[level] <= LOG_LEVELS2[currentLevel2];
|
|
@@ -58,6 +1480,7 @@ var LOG_LEVELS2, PREFIXES2, COLORS2, currentLevel2, quietMode2, ReleaseKitError2
|
|
|
58
1480
|
var init_chunk_Q3FHZORY = __esm({
|
|
59
1481
|
"../version/dist/chunk-Q3FHZORY.js"() {
|
|
60
1482
|
"use strict";
|
|
1483
|
+
init_source();
|
|
61
1484
|
LOG_LEVELS2 = {
|
|
62
1485
|
error: 0,
|
|
63
1486
|
warn: 1,
|
|
@@ -73,11 +1496,11 @@ var init_chunk_Q3FHZORY = __esm({
|
|
|
73
1496
|
trace: "[TRACE]"
|
|
74
1497
|
};
|
|
75
1498
|
COLORS2 = {
|
|
76
|
-
error:
|
|
77
|
-
warn:
|
|
78
|
-
info:
|
|
79
|
-
debug:
|
|
80
|
-
trace:
|
|
1499
|
+
error: source_default.red,
|
|
1500
|
+
warn: source_default.yellow,
|
|
1501
|
+
info: source_default.blue,
|
|
1502
|
+
debug: source_default.gray,
|
|
1503
|
+
trace: source_default.dim
|
|
81
1504
|
};
|
|
82
1505
|
currentLevel2 = "info";
|
|
83
1506
|
quietMode2 = false;
|
|
@@ -194,44 +1617,44 @@ async function* splitStream(stream, separator) {
|
|
|
194
1617
|
yield buffer;
|
|
195
1618
|
}
|
|
196
1619
|
}
|
|
197
|
-
var
|
|
1620
|
+
var init_dist2 = __esm({
|
|
198
1621
|
"../../node_modules/.pnpm/@simple-libs+stream-utils@1.1.0/node_modules/@simple-libs/stream-utils/dist/index.js"() {
|
|
199
1622
|
"use strict";
|
|
200
1623
|
}
|
|
201
1624
|
});
|
|
202
1625
|
|
|
203
1626
|
// ../../node_modules/.pnpm/@simple-libs+child-process-utils@1.0.1/node_modules/@simple-libs/child-process-utils/dist/index.js
|
|
204
|
-
async function exitCode(
|
|
205
|
-
if (
|
|
206
|
-
return
|
|
1627
|
+
async function exitCode(process3) {
|
|
1628
|
+
if (process3.exitCode !== null) {
|
|
1629
|
+
return process3.exitCode;
|
|
207
1630
|
}
|
|
208
|
-
return new Promise((resolve11) =>
|
|
1631
|
+
return new Promise((resolve11) => process3.once("close", resolve11));
|
|
209
1632
|
}
|
|
210
|
-
async function catchProcessError(
|
|
1633
|
+
async function catchProcessError(process3) {
|
|
211
1634
|
let error3 = new Error("Process exited with non-zero code");
|
|
212
1635
|
let stderr = "";
|
|
213
|
-
|
|
1636
|
+
process3.on("error", (err) => {
|
|
214
1637
|
error3 = err;
|
|
215
1638
|
});
|
|
216
|
-
if (
|
|
1639
|
+
if (process3.stderr) {
|
|
217
1640
|
let chunk;
|
|
218
|
-
for await (chunk of
|
|
1641
|
+
for await (chunk of process3.stderr) {
|
|
219
1642
|
stderr += chunk.toString();
|
|
220
1643
|
}
|
|
221
1644
|
}
|
|
222
|
-
const code = await exitCode(
|
|
1645
|
+
const code = await exitCode(process3);
|
|
223
1646
|
if (stderr) {
|
|
224
1647
|
error3 = new Error(stderr);
|
|
225
1648
|
}
|
|
226
1649
|
return code ? error3 : null;
|
|
227
1650
|
}
|
|
228
|
-
async function* outputStream(
|
|
229
|
-
const { stdout } =
|
|
230
|
-
const errorPromise = catchProcessError(
|
|
1651
|
+
async function* outputStream(process3) {
|
|
1652
|
+
const { stdout } = process3;
|
|
1653
|
+
const errorPromise = catchProcessError(process3);
|
|
231
1654
|
if (stdout) {
|
|
232
1655
|
stdout.on("error", (err) => {
|
|
233
|
-
if (err.name === "AbortError" &&
|
|
234
|
-
|
|
1656
|
+
if (err.name === "AbortError" && process3.exitCode === null) {
|
|
1657
|
+
process3.kill("SIGKILL");
|
|
235
1658
|
}
|
|
236
1659
|
});
|
|
237
1660
|
yield* stdout;
|
|
@@ -241,13 +1664,13 @@ async function* outputStream(process2) {
|
|
|
241
1664
|
throw error3;
|
|
242
1665
|
}
|
|
243
1666
|
}
|
|
244
|
-
function output(
|
|
245
|
-
return concatBufferStream(outputStream(
|
|
1667
|
+
function output(process3) {
|
|
1668
|
+
return concatBufferStream(outputStream(process3));
|
|
246
1669
|
}
|
|
247
|
-
var
|
|
1670
|
+
var init_dist3 = __esm({
|
|
248
1671
|
"../../node_modules/.pnpm/@simple-libs+child-process-utils@1.0.1/node_modules/@simple-libs/child-process-utils/dist/index.js"() {
|
|
249
1672
|
"use strict";
|
|
250
|
-
|
|
1673
|
+
init_dist2();
|
|
251
1674
|
}
|
|
252
1675
|
});
|
|
253
1676
|
|
|
@@ -257,8 +1680,8 @@ var SCISSOR, GitClient;
|
|
|
257
1680
|
var init_GitClient = __esm({
|
|
258
1681
|
"../../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"() {
|
|
259
1682
|
"use strict";
|
|
260
|
-
init_dist();
|
|
261
1683
|
init_dist2();
|
|
1684
|
+
init_dist3();
|
|
262
1685
|
init_utils();
|
|
263
1686
|
SCISSOR = "------------------------ >8 ------------------------";
|
|
264
1687
|
GitClient = class {
|
|
@@ -953,7 +2376,7 @@ var require_parse = __commonJS({
|
|
|
953
2376
|
"../../node_modules/.pnpm/semver@7.7.4/node_modules/semver/functions/parse.js"(exports2, module2) {
|
|
954
2377
|
"use strict";
|
|
955
2378
|
var SemVer = require_semver();
|
|
956
|
-
var
|
|
2379
|
+
var parse2 = (version, options, throwErrors = false) => {
|
|
957
2380
|
if (version instanceof SemVer) {
|
|
958
2381
|
return version;
|
|
959
2382
|
}
|
|
@@ -966,7 +2389,7 @@ var require_parse = __commonJS({
|
|
|
966
2389
|
throw er;
|
|
967
2390
|
}
|
|
968
2391
|
};
|
|
969
|
-
module2.exports =
|
|
2392
|
+
module2.exports = parse2;
|
|
970
2393
|
}
|
|
971
2394
|
});
|
|
972
2395
|
|
|
@@ -974,9 +2397,9 @@ var require_parse = __commonJS({
|
|
|
974
2397
|
var require_valid = __commonJS({
|
|
975
2398
|
"../../node_modules/.pnpm/semver@7.7.4/node_modules/semver/functions/valid.js"(exports2, module2) {
|
|
976
2399
|
"use strict";
|
|
977
|
-
var
|
|
2400
|
+
var parse2 = require_parse();
|
|
978
2401
|
var valid = (version, options) => {
|
|
979
|
-
const v =
|
|
2402
|
+
const v = parse2(version, options);
|
|
980
2403
|
return v ? v.version : null;
|
|
981
2404
|
};
|
|
982
2405
|
module2.exports = valid;
|
|
@@ -987,9 +2410,9 @@ var require_valid = __commonJS({
|
|
|
987
2410
|
var require_clean = __commonJS({
|
|
988
2411
|
"../../node_modules/.pnpm/semver@7.7.4/node_modules/semver/functions/clean.js"(exports2, module2) {
|
|
989
2412
|
"use strict";
|
|
990
|
-
var
|
|
2413
|
+
var parse2 = require_parse();
|
|
991
2414
|
var clean = (version, options) => {
|
|
992
|
-
const s =
|
|
2415
|
+
const s = parse2(version.trim().replace(/^[=v]+/, ""), options);
|
|
993
2416
|
return s ? s.version : null;
|
|
994
2417
|
};
|
|
995
2418
|
module2.exports = clean;
|
|
@@ -1024,10 +2447,10 @@ var require_inc = __commonJS({
|
|
|
1024
2447
|
var require_diff = __commonJS({
|
|
1025
2448
|
"../../node_modules/.pnpm/semver@7.7.4/node_modules/semver/functions/diff.js"(exports2, module2) {
|
|
1026
2449
|
"use strict";
|
|
1027
|
-
var
|
|
2450
|
+
var parse2 = require_parse();
|
|
1028
2451
|
var diff = (version1, version2) => {
|
|
1029
|
-
const v1 =
|
|
1030
|
-
const v2 =
|
|
2452
|
+
const v1 = parse2(version1, null, true);
|
|
2453
|
+
const v2 = parse2(version2, null, true);
|
|
1031
2454
|
const comparison = v1.compare(v2);
|
|
1032
2455
|
if (comparison === 0) {
|
|
1033
2456
|
return null;
|
|
@@ -1098,9 +2521,9 @@ var require_patch = __commonJS({
|
|
|
1098
2521
|
var require_prerelease = __commonJS({
|
|
1099
2522
|
"../../node_modules/.pnpm/semver@7.7.4/node_modules/semver/functions/prerelease.js"(exports2, module2) {
|
|
1100
2523
|
"use strict";
|
|
1101
|
-
var
|
|
2524
|
+
var parse2 = require_parse();
|
|
1102
2525
|
var prerelease = (version, options) => {
|
|
1103
|
-
const parsed =
|
|
2526
|
+
const parsed = parse2(version, options);
|
|
1104
2527
|
return parsed && parsed.prerelease.length ? parsed.prerelease : null;
|
|
1105
2528
|
};
|
|
1106
2529
|
module2.exports = prerelease;
|
|
@@ -1286,7 +2709,7 @@ var require_coerce = __commonJS({
|
|
|
1286
2709
|
"../../node_modules/.pnpm/semver@7.7.4/node_modules/semver/functions/coerce.js"(exports2, module2) {
|
|
1287
2710
|
"use strict";
|
|
1288
2711
|
var SemVer = require_semver();
|
|
1289
|
-
var
|
|
2712
|
+
var parse2 = require_parse();
|
|
1290
2713
|
var { safeRe: re, t } = require_re();
|
|
1291
2714
|
var coerce = (version, options) => {
|
|
1292
2715
|
if (version instanceof SemVer) {
|
|
@@ -1321,7 +2744,7 @@ var require_coerce = __commonJS({
|
|
|
1321
2744
|
const patch = match2[4] || "0";
|
|
1322
2745
|
const prerelease = options.includePrerelease && match2[5] ? `-${match2[5]}` : "";
|
|
1323
2746
|
const build2 = options.includePrerelease && match2[6] ? `+${match2[6]}` : "";
|
|
1324
|
-
return
|
|
2747
|
+
return parse2(`${major}.${minor}.${patch}${prerelease}${build2}`, options);
|
|
1325
2748
|
};
|
|
1326
2749
|
module2.exports = coerce;
|
|
1327
2750
|
}
|
|
@@ -2338,7 +3761,7 @@ var require_semver2 = __commonJS({
|
|
|
2338
3761
|
var constants = require_constants();
|
|
2339
3762
|
var SemVer = require_semver();
|
|
2340
3763
|
var identifiers = require_identifiers();
|
|
2341
|
-
var
|
|
3764
|
+
var parse2 = require_parse();
|
|
2342
3765
|
var valid = require_valid();
|
|
2343
3766
|
var clean = require_clean();
|
|
2344
3767
|
var inc = require_inc();
|
|
@@ -2376,7 +3799,7 @@ var require_semver2 = __commonJS({
|
|
|
2376
3799
|
var simplifyRange = require_simplify();
|
|
2377
3800
|
var subset = require_subset();
|
|
2378
3801
|
module2.exports = {
|
|
2379
|
-
parse:
|
|
3802
|
+
parse: parse2,
|
|
2380
3803
|
valid,
|
|
2381
3804
|
clean,
|
|
2382
3805
|
inc,
|
|
@@ -2869,7 +4292,7 @@ function parseCommits(options = {}) {
|
|
|
2869
4292
|
throw err;
|
|
2870
4293
|
} : warnOption ? (err) => warnOption(err.toString()) : () => {
|
|
2871
4294
|
};
|
|
2872
|
-
return async function*
|
|
4295
|
+
return async function* parse2(rawCommits) {
|
|
2873
4296
|
const parser = new CommitParser(options);
|
|
2874
4297
|
let rawCommit;
|
|
2875
4298
|
for await (rawCommit of rawCommits) {
|
|
@@ -2892,14 +4315,14 @@ var init_stream = __esm({
|
|
|
2892
4315
|
});
|
|
2893
4316
|
|
|
2894
4317
|
// ../../node_modules/.pnpm/conventional-commits-parser@6.2.1/node_modules/conventional-commits-parser/dist/index.js
|
|
2895
|
-
var
|
|
2896
|
-
__export(
|
|
4318
|
+
var dist_exports2 = {};
|
|
4319
|
+
__export(dist_exports2, {
|
|
2897
4320
|
CommitParser: () => CommitParser,
|
|
2898
4321
|
createCommitObject: () => createCommitObject,
|
|
2899
4322
|
parseCommits: () => parseCommits,
|
|
2900
4323
|
parseCommitsStream: () => parseCommitsStream
|
|
2901
4324
|
});
|
|
2902
|
-
var
|
|
4325
|
+
var init_dist4 = __esm({
|
|
2903
4326
|
"../../node_modules/.pnpm/conventional-commits-parser@6.2.1/node_modules/conventional-commits-parser/dist/index.js"() {
|
|
2904
4327
|
"use strict";
|
|
2905
4328
|
init_types2();
|
|
@@ -3024,14 +4447,14 @@ var init_filters = __esm({
|
|
|
3024
4447
|
});
|
|
3025
4448
|
|
|
3026
4449
|
// ../../node_modules/.pnpm/conventional-commits-filter@5.0.0/node_modules/conventional-commits-filter/dist/index.js
|
|
3027
|
-
var
|
|
3028
|
-
__export(
|
|
4450
|
+
var dist_exports3 = {};
|
|
4451
|
+
__export(dist_exports3, {
|
|
3029
4452
|
RevertedCommitsFilter: () => RevertedCommitsFilter,
|
|
3030
4453
|
filterRevertedCommits: () => filterRevertedCommits,
|
|
3031
4454
|
filterRevertedCommitsStream: () => filterRevertedCommitsStream,
|
|
3032
4455
|
filterRevertedCommitsSync: () => filterRevertedCommitsSync
|
|
3033
4456
|
});
|
|
3034
|
-
var
|
|
4457
|
+
var init_dist5 = __esm({
|
|
3035
4458
|
"../../node_modules/.pnpm/conventional-commits-filter@5.0.0/node_modules/conventional-commits-filter/dist/index.js"() {
|
|
3036
4459
|
"use strict";
|
|
3037
4460
|
init_RevertedCommitsFilter();
|
|
@@ -3045,7 +4468,7 @@ var init_ConventionalGitClient = __esm({
|
|
|
3045
4468
|
"../../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"() {
|
|
3046
4469
|
"use strict";
|
|
3047
4470
|
import_semver = __toESM(require_semver2(), 1);
|
|
3048
|
-
|
|
4471
|
+
init_dist2();
|
|
3049
4472
|
init_GitClient();
|
|
3050
4473
|
ConventionalGitClient = class extends GitClient {
|
|
3051
4474
|
deps = null;
|
|
@@ -3054,8 +4477,8 @@ var init_ConventionalGitClient = __esm({
|
|
|
3054
4477
|
return this.deps;
|
|
3055
4478
|
}
|
|
3056
4479
|
this.deps = Promise.all([
|
|
3057
|
-
Promise.resolve().then(() => (
|
|
3058
|
-
Promise.resolve().then(() => (
|
|
4480
|
+
Promise.resolve().then(() => (init_dist4(), dist_exports2)).then(({ parseCommits: parseCommits2 }) => parseCommits2),
|
|
4481
|
+
Promise.resolve().then(() => (init_dist5(), dist_exports3)).then(({ filterRevertedCommits: filterRevertedCommits2 }) => filterRevertedCommits2)
|
|
3059
4482
|
]);
|
|
3060
4483
|
return this.deps;
|
|
3061
4484
|
}
|
|
@@ -3076,9 +4499,9 @@ var init_ConventionalGitClient = __esm({
|
|
|
3076
4499
|
yield* filterRevertedCommits2(this.getCommits(gitLogParams, parserOptions));
|
|
3077
4500
|
return;
|
|
3078
4501
|
}
|
|
3079
|
-
const
|
|
4502
|
+
const parse2 = parseCommits2(parserOptions);
|
|
3080
4503
|
const commitsStream = this.getRawCommits(gitLogParams);
|
|
3081
|
-
yield*
|
|
4504
|
+
yield* parse2(commitsStream);
|
|
3082
4505
|
}
|
|
3083
4506
|
/**
|
|
3084
4507
|
* Get semver tags stream.
|
|
@@ -3150,7 +4573,7 @@ var init_ConventionalGitClient = __esm({
|
|
|
3150
4573
|
});
|
|
3151
4574
|
|
|
3152
4575
|
// ../../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
|
|
3153
|
-
var
|
|
4576
|
+
var init_dist6 = __esm({
|
|
3154
4577
|
"../../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"() {
|
|
3155
4578
|
"use strict";
|
|
3156
4579
|
init_types();
|
|
@@ -3247,7 +4670,7 @@ var init_presetLoader = __esm({
|
|
|
3247
4670
|
});
|
|
3248
4671
|
|
|
3249
4672
|
// ../../node_modules/.pnpm/conventional-changelog-preset-loader@5.0.0/node_modules/conventional-changelog-preset-loader/dist/index.js
|
|
3250
|
-
var
|
|
4673
|
+
var init_dist7 = __esm({
|
|
3251
4674
|
"../../node_modules/.pnpm/conventional-changelog-preset-loader@5.0.0/node_modules/conventional-changelog-preset-loader/dist/index.js"() {
|
|
3252
4675
|
"use strict";
|
|
3253
4676
|
init_types3();
|
|
@@ -3273,8 +4696,8 @@ var VERSIONS, Bumper;
|
|
|
3273
4696
|
var init_bumper = __esm({
|
|
3274
4697
|
"../../node_modules/.pnpm/conventional-recommended-bump@11.2.0/node_modules/conventional-recommended-bump/dist/bumper.js"() {
|
|
3275
4698
|
"use strict";
|
|
3276
|
-
init_dist5();
|
|
3277
4699
|
init_dist6();
|
|
4700
|
+
init_dist7();
|
|
3278
4701
|
init_utils4();
|
|
3279
4702
|
VERSIONS = [
|
|
3280
4703
|
"major",
|
|
@@ -3442,7 +4865,7 @@ var init_bumper = __esm({
|
|
|
3442
4865
|
});
|
|
3443
4866
|
|
|
3444
4867
|
// ../../node_modules/.pnpm/conventional-recommended-bump@11.2.0/node_modules/conventional-recommended-bump/dist/index.js
|
|
3445
|
-
var
|
|
4868
|
+
var init_dist8 = __esm({
|
|
3446
4869
|
"../../node_modules/.pnpm/conventional-recommended-bump@11.2.0/node_modules/conventional-recommended-bump/dist/index.js"() {
|
|
3447
4870
|
"use strict";
|
|
3448
4871
|
init_bumper();
|
|
@@ -3507,44 +4930,44 @@ async function* splitStream2(stream, separator) {
|
|
|
3507
4930
|
yield buffer;
|
|
3508
4931
|
}
|
|
3509
4932
|
}
|
|
3510
|
-
var
|
|
4933
|
+
var init_dist9 = __esm({
|
|
3511
4934
|
"../../node_modules/.pnpm/@simple-libs+stream-utils@1.2.0/node_modules/@simple-libs/stream-utils/dist/index.js"() {
|
|
3512
4935
|
"use strict";
|
|
3513
4936
|
}
|
|
3514
4937
|
});
|
|
3515
4938
|
|
|
3516
4939
|
// ../../node_modules/.pnpm/@simple-libs+child-process-utils@1.0.2/node_modules/@simple-libs/child-process-utils/dist/index.js
|
|
3517
|
-
async function exitCode2(
|
|
3518
|
-
if (
|
|
3519
|
-
return
|
|
4940
|
+
async function exitCode2(process3) {
|
|
4941
|
+
if (process3.exitCode !== null) {
|
|
4942
|
+
return process3.exitCode;
|
|
3520
4943
|
}
|
|
3521
|
-
return new Promise((resolve11) =>
|
|
4944
|
+
return new Promise((resolve11) => process3.once("close", resolve11));
|
|
3522
4945
|
}
|
|
3523
|
-
async function catchProcessError2(
|
|
4946
|
+
async function catchProcessError2(process3) {
|
|
3524
4947
|
let error3 = new Error("Process exited with non-zero code");
|
|
3525
4948
|
let stderr = "";
|
|
3526
|
-
|
|
4949
|
+
process3.on("error", (err) => {
|
|
3527
4950
|
error3 = err;
|
|
3528
4951
|
});
|
|
3529
|
-
if (
|
|
4952
|
+
if (process3.stderr) {
|
|
3530
4953
|
let chunk;
|
|
3531
|
-
for await (chunk of
|
|
4954
|
+
for await (chunk of process3.stderr) {
|
|
3532
4955
|
stderr += chunk.toString();
|
|
3533
4956
|
}
|
|
3534
4957
|
}
|
|
3535
|
-
const code = await exitCode2(
|
|
4958
|
+
const code = await exitCode2(process3);
|
|
3536
4959
|
if (stderr) {
|
|
3537
4960
|
error3 = new Error(stderr);
|
|
3538
4961
|
}
|
|
3539
4962
|
return code ? error3 : null;
|
|
3540
4963
|
}
|
|
3541
|
-
async function* outputStream2(
|
|
3542
|
-
const { stdout } =
|
|
3543
|
-
const errorPromise = catchProcessError2(
|
|
4964
|
+
async function* outputStream2(process3) {
|
|
4965
|
+
const { stdout } = process3;
|
|
4966
|
+
const errorPromise = catchProcessError2(process3);
|
|
3544
4967
|
if (stdout) {
|
|
3545
4968
|
stdout.on("error", (err) => {
|
|
3546
|
-
if (err.name === "AbortError" &&
|
|
3547
|
-
|
|
4969
|
+
if (err.name === "AbortError" && process3.exitCode === null) {
|
|
4970
|
+
process3.kill("SIGKILL");
|
|
3548
4971
|
}
|
|
3549
4972
|
});
|
|
3550
4973
|
yield* stdout;
|
|
@@ -3554,13 +4977,13 @@ async function* outputStream2(process2) {
|
|
|
3554
4977
|
throw error3;
|
|
3555
4978
|
}
|
|
3556
4979
|
}
|
|
3557
|
-
function output2(
|
|
3558
|
-
return concatBufferStream2(outputStream2(
|
|
4980
|
+
function output2(process3) {
|
|
4981
|
+
return concatBufferStream2(outputStream2(process3));
|
|
3559
4982
|
}
|
|
3560
|
-
var
|
|
4983
|
+
var init_dist10 = __esm({
|
|
3561
4984
|
"../../node_modules/.pnpm/@simple-libs+child-process-utils@1.0.2/node_modules/@simple-libs/child-process-utils/dist/index.js"() {
|
|
3562
4985
|
"use strict";
|
|
3563
|
-
|
|
4986
|
+
init_dist9();
|
|
3564
4987
|
}
|
|
3565
4988
|
});
|
|
3566
4989
|
|
|
@@ -3570,8 +4993,8 @@ var SCISSOR3, GitClient2;
|
|
|
3570
4993
|
var init_GitClient2 = __esm({
|
|
3571
4994
|
"../../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"() {
|
|
3572
4995
|
"use strict";
|
|
3573
|
-
init_dist8();
|
|
3574
4996
|
init_dist9();
|
|
4997
|
+
init_dist10();
|
|
3575
4998
|
init_utils5();
|
|
3576
4999
|
SCISSOR3 = "------------------------ >8 ------------------------";
|
|
3577
5000
|
GitClient2 = class {
|
|
@@ -3820,7 +5243,7 @@ var init_ConventionalGitClient2 = __esm({
|
|
|
3820
5243
|
"../../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"() {
|
|
3821
5244
|
"use strict";
|
|
3822
5245
|
import_semver2 = __toESM(require_semver2(), 1);
|
|
3823
|
-
|
|
5246
|
+
init_dist9();
|
|
3824
5247
|
init_GitClient2();
|
|
3825
5248
|
ConventionalGitClient2 = class extends GitClient2 {
|
|
3826
5249
|
deps = null;
|
|
@@ -3829,8 +5252,8 @@ var init_ConventionalGitClient2 = __esm({
|
|
|
3829
5252
|
return this.deps;
|
|
3830
5253
|
}
|
|
3831
5254
|
this.deps = Promise.all([
|
|
3832
|
-
Promise.resolve().then(() => (
|
|
3833
|
-
Promise.resolve().then(() => (
|
|
5255
|
+
Promise.resolve().then(() => (init_dist4(), dist_exports2)).then(({ parseCommits: parseCommits2 }) => parseCommits2),
|
|
5256
|
+
Promise.resolve().then(() => (init_dist5(), dist_exports3)).then(({ filterRevertedCommits: filterRevertedCommits2 }) => filterRevertedCommits2)
|
|
3834
5257
|
]);
|
|
3835
5258
|
return this.deps;
|
|
3836
5259
|
}
|
|
@@ -3851,9 +5274,9 @@ var init_ConventionalGitClient2 = __esm({
|
|
|
3851
5274
|
yield* filterRevertedCommits2(this.getCommits(gitLogParams, parserOptions));
|
|
3852
5275
|
return;
|
|
3853
5276
|
}
|
|
3854
|
-
const
|
|
5277
|
+
const parse2 = parseCommits2(parserOptions);
|
|
3855
5278
|
const commitsStream = this.getRawCommits(gitLogParams);
|
|
3856
|
-
yield*
|
|
5279
|
+
yield* parse2(commitsStream);
|
|
3857
5280
|
}
|
|
3858
5281
|
/**
|
|
3859
5282
|
* Get semver tags stream.
|
|
@@ -3925,7 +5348,7 @@ var init_ConventionalGitClient2 = __esm({
|
|
|
3925
5348
|
});
|
|
3926
5349
|
|
|
3927
5350
|
// ../../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
|
|
3928
|
-
var
|
|
5351
|
+
var init_dist11 = __esm({
|
|
3929
5352
|
"../../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"() {
|
|
3930
5353
|
"use strict";
|
|
3931
5354
|
init_types4();
|
|
@@ -3962,7 +5385,7 @@ async function getSemverTags(options = {}) {
|
|
|
3962
5385
|
var init_src = __esm({
|
|
3963
5386
|
"../../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"() {
|
|
3964
5387
|
"use strict";
|
|
3965
|
-
|
|
5388
|
+
init_dist11();
|
|
3966
5389
|
}
|
|
3967
5390
|
});
|
|
3968
5391
|
|
|
@@ -7394,7 +8817,7 @@ function sync(root, options) {
|
|
|
7394
8817
|
return walker.start();
|
|
7395
8818
|
}
|
|
7396
8819
|
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;
|
|
7397
|
-
var
|
|
8820
|
+
var init_dist12 = __esm({
|
|
7398
8821
|
"../../node_modules/.pnpm/fdir@6.5.0_picomatch@4.0.4/node_modules/fdir/dist/index.mjs"() {
|
|
7399
8822
|
"use strict";
|
|
7400
8823
|
__require2 = /* @__PURE__ */ createRequire(import.meta.url);
|
|
@@ -8616,7 +10039,7 @@ var require_parse2 = __commonJS({
|
|
|
8616
10039
|
}
|
|
8617
10040
|
return { risky: false };
|
|
8618
10041
|
};
|
|
8619
|
-
var
|
|
10042
|
+
var parse2 = (input, options) => {
|
|
8620
10043
|
if (typeof input !== "string") {
|
|
8621
10044
|
throw new TypeError("Expected a string");
|
|
8622
10045
|
}
|
|
@@ -8786,7 +10209,7 @@ var require_parse2 = __commonJS({
|
|
|
8786
10209
|
output3 = token.close = `)$))${extglobStar}`;
|
|
8787
10210
|
}
|
|
8788
10211
|
if (token.inner.includes("*") && (rest = remaining()) && /^\.[^\\/.]+$/.test(rest)) {
|
|
8789
|
-
const expression =
|
|
10212
|
+
const expression = parse2(rest, { ...options, fastpaths: false }).output;
|
|
8790
10213
|
output3 = token.close = `)${expression})${extglobStar})`;
|
|
8791
10214
|
}
|
|
8792
10215
|
if (token.prev.type === "bos") {
|
|
@@ -9308,7 +10731,7 @@ var require_parse2 = __commonJS({
|
|
|
9308
10731
|
}
|
|
9309
10732
|
return state;
|
|
9310
10733
|
};
|
|
9311
|
-
|
|
10734
|
+
parse2.fastpaths = (input, options) => {
|
|
9312
10735
|
const opts = { ...options };
|
|
9313
10736
|
const max = typeof opts.maxLength === "number" ? Math.min(MAX_LENGTH, opts.maxLength) : MAX_LENGTH;
|
|
9314
10737
|
const len = input.length;
|
|
@@ -9373,7 +10796,7 @@ var require_parse2 = __commonJS({
|
|
|
9373
10796
|
}
|
|
9374
10797
|
return source;
|
|
9375
10798
|
};
|
|
9376
|
-
module2.exports =
|
|
10799
|
+
module2.exports = parse2;
|
|
9377
10800
|
}
|
|
9378
10801
|
});
|
|
9379
10802
|
|
|
@@ -9382,7 +10805,7 @@ var require_picomatch = __commonJS({
|
|
|
9382
10805
|
"../../node_modules/.pnpm/picomatch@4.0.4/node_modules/picomatch/lib/picomatch.js"(exports2, module2) {
|
|
9383
10806
|
"use strict";
|
|
9384
10807
|
var scan = require_scan();
|
|
9385
|
-
var
|
|
10808
|
+
var parse2 = require_parse2();
|
|
9386
10809
|
var utils2 = require_utils();
|
|
9387
10810
|
var constants = require_constants2();
|
|
9388
10811
|
var isObject3 = (val) => val && typeof val === "object" && !Array.isArray(val);
|
|
@@ -9470,7 +10893,7 @@ var require_picomatch = __commonJS({
|
|
|
9470
10893
|
picomatch2.isMatch = (str3, patterns, options) => picomatch2(patterns, options)(str3);
|
|
9471
10894
|
picomatch2.parse = (pattern, options) => {
|
|
9472
10895
|
if (Array.isArray(pattern)) return pattern.map((p) => picomatch2.parse(p, options));
|
|
9473
|
-
return
|
|
10896
|
+
return parse2(pattern, { ...options, fastpaths: false });
|
|
9474
10897
|
};
|
|
9475
10898
|
picomatch2.scan = (input, options) => scan(input, options);
|
|
9476
10899
|
picomatch2.compileRe = (state, options, returnOutput = false, returnState = false) => {
|
|
@@ -9496,10 +10919,10 @@ var require_picomatch = __commonJS({
|
|
|
9496
10919
|
}
|
|
9497
10920
|
let parsed = { negated: false, fastpaths: true };
|
|
9498
10921
|
if (options.fastpaths !== false && (input[0] === "." || input[0] === "*")) {
|
|
9499
|
-
parsed.output =
|
|
10922
|
+
parsed.output = parse2.fastpaths(input, options);
|
|
9500
10923
|
}
|
|
9501
10924
|
if (!parsed.output) {
|
|
9502
|
-
parsed =
|
|
10925
|
+
parsed = parse2(input, options);
|
|
9503
10926
|
}
|
|
9504
10927
|
return picomatch2.compileRe(parsed, options, returnOutput, returnState);
|
|
9505
10928
|
};
|
|
@@ -9798,10 +11221,10 @@ function globSync(patternsOrOptions, options) {
|
|
|
9798
11221
|
return formatPaths(crawler.sync(), relative2);
|
|
9799
11222
|
}
|
|
9800
11223
|
var import_picomatch, isReadonlyArray, 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;
|
|
9801
|
-
var
|
|
11224
|
+
var init_dist13 = __esm({
|
|
9802
11225
|
"../../node_modules/.pnpm/tinyglobby@0.2.15/node_modules/tinyglobby/dist/index.mjs"() {
|
|
9803
11226
|
"use strict";
|
|
9804
|
-
|
|
11227
|
+
init_dist12();
|
|
9805
11228
|
import_picomatch = __toESM(require_picomatch2(), 1);
|
|
9806
11229
|
isReadonlyArray = Array.isArray;
|
|
9807
11230
|
isWin = process.platform === "win32";
|
|
@@ -12527,7 +13950,7 @@ var require_parse3 = __commonJS({
|
|
|
12527
13950
|
}
|
|
12528
13951
|
return result + "\n" + srcline + "\n" + underline;
|
|
12529
13952
|
}
|
|
12530
|
-
function
|
|
13953
|
+
function parse2(input, options) {
|
|
12531
13954
|
var json5 = false;
|
|
12532
13955
|
var cjson = false;
|
|
12533
13956
|
if (options.legacy || options.mode === "json") {
|
|
@@ -12595,13 +14018,13 @@ var require_parse3 = __commonJS({
|
|
|
12595
14018
|
tokenStart();
|
|
12596
14019
|
var chr = input[position++];
|
|
12597
14020
|
if (chr === '"' || chr === "'" && json5) {
|
|
12598
|
-
return tokenEnd(
|
|
14021
|
+
return tokenEnd(parseString2(chr), "literal");
|
|
12599
14022
|
} else if (chr === "{") {
|
|
12600
14023
|
tokenEnd(void 0, "separator");
|
|
12601
14024
|
return parseObject();
|
|
12602
14025
|
} else if (chr === "[") {
|
|
12603
14026
|
tokenEnd(void 0, "separator");
|
|
12604
|
-
return
|
|
14027
|
+
return parseArray2();
|
|
12605
14028
|
} else if (chr === "-" || chr === "." || isDecDigit(chr) || json5 && (chr === "+" || chr === "I" || chr === "N")) {
|
|
12606
14029
|
return tokenEnd(parseNumber(), "literal");
|
|
12607
14030
|
} else if (chr === "n") {
|
|
@@ -12619,19 +14042,19 @@ var require_parse3 = __commonJS({
|
|
|
12619
14042
|
}
|
|
12620
14043
|
}
|
|
12621
14044
|
}
|
|
12622
|
-
function
|
|
14045
|
+
function parseKey2() {
|
|
12623
14046
|
var result;
|
|
12624
14047
|
while (position < length) {
|
|
12625
14048
|
tokenStart();
|
|
12626
14049
|
var chr = input[position++];
|
|
12627
14050
|
if (chr === '"' || chr === "'" && json5) {
|
|
12628
|
-
return tokenEnd(
|
|
14051
|
+
return tokenEnd(parseString2(chr), "key");
|
|
12629
14052
|
} else if (chr === "{") {
|
|
12630
14053
|
tokenEnd(void 0, "separator");
|
|
12631
14054
|
return parseObject();
|
|
12632
14055
|
} else if (chr === "[") {
|
|
12633
14056
|
tokenEnd(void 0, "separator");
|
|
12634
|
-
return
|
|
14057
|
+
return parseArray2();
|
|
12635
14058
|
} else if (chr === "." || isDecDigit(chr)) {
|
|
12636
14059
|
return tokenEnd(parseNumber(true), "key");
|
|
12637
14060
|
} else if (json5 && Uni.isIdentifierStart(chr) || chr === "\\" && input[position] === "u") {
|
|
@@ -12667,7 +14090,7 @@ var require_parse3 = __commonJS({
|
|
|
12667
14090
|
tokenEnd(void 0, "whitespace");
|
|
12668
14091
|
tokenStart();
|
|
12669
14092
|
position++;
|
|
12670
|
-
|
|
14093
|
+
skipComment2(input[position++] === "*");
|
|
12671
14094
|
tokenEnd(void 0, "comment");
|
|
12672
14095
|
tokenStart();
|
|
12673
14096
|
} else {
|
|
@@ -12677,7 +14100,7 @@ var require_parse3 = __commonJS({
|
|
|
12677
14100
|
}
|
|
12678
14101
|
return tokenEnd(void 0, "whitespace");
|
|
12679
14102
|
}
|
|
12680
|
-
function
|
|
14103
|
+
function skipComment2(multi) {
|
|
12681
14104
|
while (position < length) {
|
|
12682
14105
|
var chr = input[position++];
|
|
12683
14106
|
if (isLineTerminator(chr)) {
|
|
@@ -12713,7 +14136,7 @@ var require_parse3 = __commonJS({
|
|
|
12713
14136
|
var result = options.null_prototype ? /* @__PURE__ */ Object.create(null) : {}, empty_object = {}, is_non_empty = false;
|
|
12714
14137
|
while (position < length) {
|
|
12715
14138
|
skipWhiteSpace();
|
|
12716
|
-
var item1 =
|
|
14139
|
+
var item1 = parseKey2();
|
|
12717
14140
|
skipWhiteSpace();
|
|
12718
14141
|
tokenStart();
|
|
12719
14142
|
var chr = input[position++];
|
|
@@ -12772,7 +14195,7 @@ var require_parse3 = __commonJS({
|
|
|
12772
14195
|
}
|
|
12773
14196
|
fail();
|
|
12774
14197
|
}
|
|
12775
|
-
function
|
|
14198
|
+
function parseArray2() {
|
|
12776
14199
|
var result = [];
|
|
12777
14200
|
while (position < length) {
|
|
12778
14201
|
skipWhiteSpace();
|
|
@@ -12898,7 +14321,7 @@ var require_parse3 = __commonJS({
|
|
|
12898
14321
|
}
|
|
12899
14322
|
fail();
|
|
12900
14323
|
}
|
|
12901
|
-
function
|
|
14324
|
+
function parseString2(endChar) {
|
|
12902
14325
|
var result = "";
|
|
12903
14326
|
while (position < length) {
|
|
12904
14327
|
var chr = input[position++];
|
|
@@ -12985,7 +14408,7 @@ var require_parse3 = __commonJS({
|
|
|
12985
14408
|
}
|
|
12986
14409
|
}
|
|
12987
14410
|
try {
|
|
12988
|
-
return
|
|
14411
|
+
return parse2(input, options);
|
|
12989
14412
|
} catch (err) {
|
|
12990
14413
|
if (err instanceof SyntaxError && err.row != null && err.column != null) {
|
|
12991
14414
|
var old_err = err;
|
|
@@ -13356,7 +14779,7 @@ var require_document = __commonJS({
|
|
|
13356
14779
|
"use strict";
|
|
13357
14780
|
var assert2 = __require("assert");
|
|
13358
14781
|
var tokenize2 = require_parse3().tokenize;
|
|
13359
|
-
var
|
|
14782
|
+
var stringify4 = require_stringify().stringify;
|
|
13360
14783
|
var analyze2 = require_analyze().analyze;
|
|
13361
14784
|
function isObject3(x) {
|
|
13362
14785
|
return typeof x === "object" && x !== null;
|
|
@@ -13371,7 +14794,7 @@ var require_document = __commonJS({
|
|
|
13371
14794
|
}
|
|
13372
14795
|
if (options._splitMin == null) options._splitMin = 0;
|
|
13373
14796
|
if (options._splitMax == null) options._splitMax = 0;
|
|
13374
|
-
var stringified =
|
|
14797
|
+
var stringified = stringify4(value, options);
|
|
13375
14798
|
if (is_key) {
|
|
13376
14799
|
return [{ raw: stringified, type: "key", stack, value }];
|
|
13377
14800
|
}
|
|
@@ -13839,7 +15262,7 @@ var import_jju, InvalidMonorepoError, readJson, readJsonSync, BunTool, LernaTool
|
|
|
13839
15262
|
var init_manypkg_tools = __esm({
|
|
13840
15263
|
"../../node_modules/.pnpm/@manypkg+tools@2.1.0/node_modules/@manypkg/tools/dist/manypkg-tools.js"() {
|
|
13841
15264
|
"use strict";
|
|
13842
|
-
|
|
15265
|
+
init_dist13();
|
|
13843
15266
|
init_js_yaml();
|
|
13844
15267
|
import_jju = __toESM(require_jju(), 1);
|
|
13845
15268
|
InvalidMonorepoError = class extends Error {
|
|
@@ -14511,22 +15934,19 @@ var init_baseError_DQHIJACF = __esm({
|
|
|
14511
15934
|
// ../version/dist/chunk-UBCKZYTO.js
|
|
14512
15935
|
import * as fs9 from "fs";
|
|
14513
15936
|
import * as path12 from "path";
|
|
14514
|
-
import * as TOML2 from "smol-toml";
|
|
14515
15937
|
import * as fs32 from "fs";
|
|
14516
15938
|
import * as path32 from "path";
|
|
14517
15939
|
import { z as z22 } from "zod";
|
|
14518
15940
|
import { z as z3 } from "zod";
|
|
14519
15941
|
import * as fs22 from "fs";
|
|
14520
|
-
import * as
|
|
15942
|
+
import * as os3 from "os";
|
|
14521
15943
|
import * as path22 from "path";
|
|
14522
15944
|
import fs42 from "fs";
|
|
14523
15945
|
import { cwd } from "process";
|
|
14524
|
-
import chalk3 from "chalk";
|
|
14525
15946
|
import fs62 from "fs";
|
|
14526
15947
|
import path52 from "path";
|
|
14527
15948
|
import fs52 from "fs";
|
|
14528
15949
|
import path42 from "path";
|
|
14529
|
-
import * as TOML22 from "smol-toml";
|
|
14530
15950
|
import * as fs92 from "fs";
|
|
14531
15951
|
import path72 from "path";
|
|
14532
15952
|
import fs82 from "fs";
|
|
@@ -14537,7 +15957,7 @@ import path92 from "path";
|
|
|
14537
15957
|
import { Command } from "commander";
|
|
14538
15958
|
function parseCargoToml(cargoPath) {
|
|
14539
15959
|
const content = fs9.readFileSync(cargoPath, "utf-8");
|
|
14540
|
-
return
|
|
15960
|
+
return parse(content);
|
|
14541
15961
|
}
|
|
14542
15962
|
function isCargoToml(filePath) {
|
|
14543
15963
|
return path12.basename(filePath) === "Cargo.toml";
|
|
@@ -14564,7 +15984,7 @@ function substituteVariables2(value) {
|
|
|
14564
15984
|
return process.env[varName] ?? "";
|
|
14565
15985
|
});
|
|
14566
15986
|
result = result.replace(filePattern, (_, filePath) => {
|
|
14567
|
-
const expandedPath = filePath.startsWith("~") ? path22.join(
|
|
15987
|
+
const expandedPath = filePath.startsWith("~") ? path22.join(os3.homedir(), filePath.slice(1)) : filePath;
|
|
14568
15988
|
try {
|
|
14569
15989
|
return fs22.readFileSync(expandedPath, "utf-8").trim();
|
|
14570
15990
|
} catch {
|
|
@@ -14809,19 +16229,19 @@ function log4(message, level = "info") {
|
|
|
14809
16229
|
let chalkFn;
|
|
14810
16230
|
switch (level) {
|
|
14811
16231
|
case "success":
|
|
14812
|
-
chalkFn =
|
|
16232
|
+
chalkFn = source_default.green;
|
|
14813
16233
|
break;
|
|
14814
16234
|
case "warning":
|
|
14815
|
-
chalkFn =
|
|
16235
|
+
chalkFn = source_default.yellow;
|
|
14816
16236
|
break;
|
|
14817
16237
|
case "error":
|
|
14818
|
-
chalkFn =
|
|
16238
|
+
chalkFn = source_default.red;
|
|
14819
16239
|
break;
|
|
14820
16240
|
case "debug":
|
|
14821
|
-
chalkFn =
|
|
16241
|
+
chalkFn = source_default.gray;
|
|
14822
16242
|
break;
|
|
14823
16243
|
default:
|
|
14824
|
-
chalkFn =
|
|
16244
|
+
chalkFn = source_default.blue;
|
|
14825
16245
|
}
|
|
14826
16246
|
const formattedMessage = level === "debug" ? `[DEBUG] ${message}` : message;
|
|
14827
16247
|
if (isJsonOutputMode()) {
|
|
@@ -15040,7 +16460,7 @@ function updateCargoVersion(cargoPath, version, dryRun = false) {
|
|
|
15040
16460
|
} else {
|
|
15041
16461
|
cargo.package.version = version;
|
|
15042
16462
|
}
|
|
15043
|
-
const updatedContent =
|
|
16463
|
+
const updatedContent = stringify(cargo);
|
|
15044
16464
|
if (dryRun) {
|
|
15045
16465
|
recordPendingWrite(cargoPath, updatedContent);
|
|
15046
16466
|
} else {
|
|
@@ -16302,11 +17722,14 @@ var init_chunk_UBCKZYTO = __esm({
|
|
|
16302
17722
|
"use strict";
|
|
16303
17723
|
init_chunk_Q3FHZORY();
|
|
16304
17724
|
init_chunk_LMPZV35Z();
|
|
16305
|
-
|
|
17725
|
+
init_dist();
|
|
17726
|
+
init_dist8();
|
|
16306
17727
|
import_semver3 = __toESM(require_semver2(), 1);
|
|
16307
17728
|
init_src();
|
|
16308
17729
|
import_semver4 = __toESM(require_semver2(), 1);
|
|
17730
|
+
init_source();
|
|
16309
17731
|
init_node_figlet();
|
|
17732
|
+
init_dist();
|
|
16310
17733
|
import_semver5 = __toESM(require_semver2(), 1);
|
|
16311
17734
|
init_esm3();
|
|
16312
17735
|
init_manypkg_get_packages();
|
|
@@ -16613,7 +18036,7 @@ var init_chunk_UBCKZYTO = __esm({
|
|
|
16613
18036
|
});
|
|
16614
18037
|
MAX_INPUT_LENGTH2 = 1e4;
|
|
16615
18038
|
SOLE_REFERENCE_PATTERN2 = /^\{(?:env|file):[^}]+\}$/;
|
|
16616
|
-
AUTH_DIR2 = path22.join(
|
|
18039
|
+
AUTH_DIR2 = path22.join(os3.homedir(), ".config", "releasekit");
|
|
16617
18040
|
AUTH_FILE2 = path22.join(AUTH_DIR2, "auth.json");
|
|
16618
18041
|
CONFIG_FILE2 = "releasekit.config.json";
|
|
16619
18042
|
VersionError = class extends BaseVersionError {
|
|
@@ -17019,8 +18442,8 @@ var init_chunk_UBCKZYTO = __esm({
|
|
|
17019
18442
|
});
|
|
17020
18443
|
|
|
17021
18444
|
// ../version/dist/index.js
|
|
17022
|
-
var
|
|
17023
|
-
__export(
|
|
18445
|
+
var dist_exports4 = {};
|
|
18446
|
+
__export(dist_exports4, {
|
|
17024
18447
|
BaseVersionError: () => BaseVersionError,
|
|
17025
18448
|
PackageProcessor: () => PackageProcessor,
|
|
17026
18449
|
VersionEngine: () => VersionEngine,
|
|
@@ -17036,7 +18459,7 @@ __export(dist_exports3, {
|
|
|
17036
18459
|
getJsonData: () => getJsonData,
|
|
17037
18460
|
loadConfig: () => loadConfig22
|
|
17038
18461
|
});
|
|
17039
|
-
var
|
|
18462
|
+
var init_dist14 = __esm({
|
|
17040
18463
|
"../version/dist/index.js"() {
|
|
17041
18464
|
"use strict";
|
|
17042
18465
|
init_chunk_UBCKZYTO();
|
|
@@ -17046,7 +18469,6 @@ var init_dist13 = __esm({
|
|
|
17046
18469
|
});
|
|
17047
18470
|
|
|
17048
18471
|
// ../notes/dist/chunk-7TJSPQPW.js
|
|
17049
|
-
import chalk4 from "chalk";
|
|
17050
18472
|
import * as fs23 from "fs";
|
|
17051
18473
|
import * as path23 from "path";
|
|
17052
18474
|
function setLogLevel2(level) {
|
|
@@ -17075,7 +18497,7 @@ function info2(message) {
|
|
|
17075
18497
|
}
|
|
17076
18498
|
function success2(message) {
|
|
17077
18499
|
if (!shouldLog3("info")) return;
|
|
17078
|
-
console.error(
|
|
18500
|
+
console.error(source_default.green(`[SUCCESS] ${message}`));
|
|
17079
18501
|
}
|
|
17080
18502
|
function debug(message) {
|
|
17081
18503
|
log5(message, "debug");
|
|
@@ -17198,6 +18620,7 @@ var LOG_LEVELS3, PREFIXES3, COLORS3, currentLevel3, quietMode3, ReleaseKitError3
|
|
|
17198
18620
|
var init_chunk_7TJSPQPW = __esm({
|
|
17199
18621
|
"../notes/dist/chunk-7TJSPQPW.js"() {
|
|
17200
18622
|
"use strict";
|
|
18623
|
+
init_source();
|
|
17201
18624
|
LOG_LEVELS3 = {
|
|
17202
18625
|
error: 0,
|
|
17203
18626
|
warn: 1,
|
|
@@ -17213,11 +18636,11 @@ var init_chunk_7TJSPQPW = __esm({
|
|
|
17213
18636
|
trace: "[TRACE]"
|
|
17214
18637
|
};
|
|
17215
18638
|
COLORS3 = {
|
|
17216
|
-
error:
|
|
17217
|
-
warn:
|
|
17218
|
-
info:
|
|
17219
|
-
debug:
|
|
17220
|
-
trace:
|
|
18639
|
+
error: source_default.red,
|
|
18640
|
+
warn: source_default.yellow,
|
|
18641
|
+
info: source_default.blue,
|
|
18642
|
+
debug: source_default.gray,
|
|
18643
|
+
trace: source_default.dim
|
|
17221
18644
|
};
|
|
17222
18645
|
currentLevel3 = "info";
|
|
17223
18646
|
quietMode3 = false;
|
|
@@ -17343,7 +18766,7 @@ var init_errors = __esm({
|
|
|
17343
18766
|
|
|
17344
18767
|
// ../../node_modules/.pnpm/@anthropic-ai+sdk@0.82.0_zod@4.3.6/node_modules/@anthropic-ai/sdk/core/error.mjs
|
|
17345
18768
|
var AnthropicError, APIError, APIUserAbortError, APIConnectionError, APIConnectionTimeoutError, BadRequestError, AuthenticationError, PermissionDeniedError, NotFoundError, ConflictError, UnprocessableEntityError, RateLimitError, InternalServerError;
|
|
17346
|
-
var
|
|
18769
|
+
var init_error2 = __esm({
|
|
17347
18770
|
"../../node_modules/.pnpm/@anthropic-ai+sdk@0.82.0_zod@4.3.6/node_modules/@anthropic-ai/sdk/core/error.mjs"() {
|
|
17348
18771
|
"use strict";
|
|
17349
18772
|
init_errors();
|
|
@@ -17461,7 +18884,7 @@ var startsWithSchemeRegexp, isAbsoluteURL, isArray, isReadonlyArray2, validatePo
|
|
|
17461
18884
|
var init_values = __esm({
|
|
17462
18885
|
"../../node_modules/.pnpm/@anthropic-ai+sdk@0.82.0_zod@4.3.6/node_modules/@anthropic-ai/sdk/internal/utils/values.mjs"() {
|
|
17463
18886
|
"use strict";
|
|
17464
|
-
|
|
18887
|
+
init_error2();
|
|
17465
18888
|
startsWithSchemeRegexp = /^[a-z][a-z0-9+.-]*:/i;
|
|
17466
18889
|
isAbsoluteURL = (url) => {
|
|
17467
18890
|
return startsWithSchemeRegexp.test(url);
|
|
@@ -17753,7 +19176,7 @@ function stringifyQuery(query) {
|
|
|
17753
19176
|
var init_query = __esm({
|
|
17754
19177
|
"../../node_modules/.pnpm/@anthropic-ai+sdk@0.82.0_zod@4.3.6/node_modules/@anthropic-ai/sdk/internal/utils/query.mjs"() {
|
|
17755
19178
|
"use strict";
|
|
17756
|
-
|
|
19179
|
+
init_error2();
|
|
17757
19180
|
}
|
|
17758
19181
|
});
|
|
17759
19182
|
|
|
@@ -18007,7 +19430,7 @@ var init_streaming = __esm({
|
|
|
18007
19430
|
"../../node_modules/.pnpm/@anthropic-ai+sdk@0.82.0_zod@4.3.6/node_modules/@anthropic-ai/sdk/core/streaming.mjs"() {
|
|
18008
19431
|
"use strict";
|
|
18009
19432
|
init_tslib();
|
|
18010
|
-
|
|
19433
|
+
init_error2();
|
|
18011
19434
|
init_shims();
|
|
18012
19435
|
init_line();
|
|
18013
19436
|
init_shims();
|
|
@@ -18015,7 +19438,7 @@ var init_streaming = __esm({
|
|
|
18015
19438
|
init_values();
|
|
18016
19439
|
init_bytes();
|
|
18017
19440
|
init_log();
|
|
18018
|
-
|
|
19441
|
+
init_error2();
|
|
18019
19442
|
Stream = class _Stream {
|
|
18020
19443
|
constructor(iterator, controller, client) {
|
|
18021
19444
|
this.iterator = iterator;
|
|
@@ -18264,7 +19687,7 @@ function addRequestID(value, response) {
|
|
|
18264
19687
|
enumerable: false
|
|
18265
19688
|
});
|
|
18266
19689
|
}
|
|
18267
|
-
var
|
|
19690
|
+
var init_parse2 = __esm({
|
|
18268
19691
|
"../../node_modules/.pnpm/@anthropic-ai+sdk@0.82.0_zod@4.3.6/node_modules/@anthropic-ai/sdk/internal/parse.mjs"() {
|
|
18269
19692
|
"use strict";
|
|
18270
19693
|
init_streaming();
|
|
@@ -18278,7 +19701,7 @@ var init_api_promise = __esm({
|
|
|
18278
19701
|
"../../node_modules/.pnpm/@anthropic-ai+sdk@0.82.0_zod@4.3.6/node_modules/@anthropic-ai/sdk/core/api-promise.mjs"() {
|
|
18279
19702
|
"use strict";
|
|
18280
19703
|
init_tslib();
|
|
18281
|
-
|
|
19704
|
+
init_parse2();
|
|
18282
19705
|
APIPromise = class _APIPromise extends Promise {
|
|
18283
19706
|
constructor(client, responsePromise, parseResponse2 = defaultParseResponse) {
|
|
18284
19707
|
super((resolve11) => {
|
|
@@ -18348,8 +19771,8 @@ var init_pagination = __esm({
|
|
|
18348
19771
|
"../../node_modules/.pnpm/@anthropic-ai+sdk@0.82.0_zod@4.3.6/node_modules/@anthropic-ai/sdk/core/pagination.mjs"() {
|
|
18349
19772
|
"use strict";
|
|
18350
19773
|
init_tslib();
|
|
18351
|
-
|
|
18352
|
-
|
|
19774
|
+
init_error2();
|
|
19775
|
+
init_parse2();
|
|
18353
19776
|
init_api_promise();
|
|
18354
19777
|
init_values();
|
|
18355
19778
|
AbstractPage = class {
|
|
@@ -18520,8 +19943,8 @@ var init_uploads = __esm({
|
|
|
18520
19943
|
init_shims();
|
|
18521
19944
|
checkFileSupport = () => {
|
|
18522
19945
|
if (typeof File === "undefined") {
|
|
18523
|
-
const { process:
|
|
18524
|
-
const isOldNode = typeof
|
|
19946
|
+
const { process: process3 } = globalThis;
|
|
19947
|
+
const isOldNode = typeof process3?.versions?.node === "string" && parseInt(process3.versions.node.split(".")) < 20;
|
|
18525
19948
|
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`." : ""));
|
|
18526
19949
|
}
|
|
18527
19950
|
};
|
|
@@ -18788,7 +20211,7 @@ var EMPTY, createPathTagFunction, path13;
|
|
|
18788
20211
|
var init_path = __esm({
|
|
18789
20212
|
"../../node_modules/.pnpm/@anthropic-ai+sdk@0.82.0_zod@4.3.6/node_modules/@anthropic-ai/sdk/internal/utils/path.mjs"() {
|
|
18790
20213
|
"use strict";
|
|
18791
|
-
|
|
20214
|
+
init_error2();
|
|
18792
20215
|
EMPTY = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.create(null));
|
|
18793
20216
|
createPathTagFunction = (pathEncoder = encodeURIPath) => function path18(statics, ...params) {
|
|
18794
20217
|
if (statics.length === 1)
|
|
@@ -19031,10 +20454,10 @@ var init_models = __esm({
|
|
|
19031
20454
|
});
|
|
19032
20455
|
|
|
19033
20456
|
// ../../node_modules/.pnpm/@anthropic-ai+sdk@0.82.0_zod@4.3.6/node_modules/@anthropic-ai/sdk/error.mjs
|
|
19034
|
-
var
|
|
20457
|
+
var init_error3 = __esm({
|
|
19035
20458
|
"../../node_modules/.pnpm/@anthropic-ai+sdk@0.82.0_zod@4.3.6/node_modules/@anthropic-ai/sdk/error.mjs"() {
|
|
19036
20459
|
"use strict";
|
|
19037
|
-
|
|
20460
|
+
init_error2();
|
|
19038
20461
|
}
|
|
19039
20462
|
});
|
|
19040
20463
|
|
|
@@ -19131,7 +20554,7 @@ function parseBetaOutputFormat(params, content) {
|
|
|
19131
20554
|
var init_beta_parser = __esm({
|
|
19132
20555
|
"../../node_modules/.pnpm/@anthropic-ai+sdk@0.82.0_zod@4.3.6/node_modules/@anthropic-ai/sdk/lib/beta-parser.mjs"() {
|
|
19133
20556
|
"use strict";
|
|
19134
|
-
|
|
20557
|
+
init_error2();
|
|
19135
20558
|
}
|
|
19136
20559
|
});
|
|
19137
20560
|
|
|
@@ -19381,7 +20804,7 @@ var init_BetaMessageStream = __esm({
|
|
|
19381
20804
|
"use strict";
|
|
19382
20805
|
init_tslib();
|
|
19383
20806
|
init_parser();
|
|
19384
|
-
|
|
20807
|
+
init_error3();
|
|
19385
20808
|
init_errors();
|
|
19386
20809
|
init_streaming2();
|
|
19387
20810
|
init_beta_parser();
|
|
@@ -20083,7 +21506,7 @@ var init_BetaToolRunner = __esm({
|
|
|
20083
21506
|
"use strict";
|
|
20084
21507
|
init_tslib();
|
|
20085
21508
|
init_ToolError();
|
|
20086
|
-
|
|
21509
|
+
init_error2();
|
|
20087
21510
|
init_headers();
|
|
20088
21511
|
init_CompactionControl();
|
|
20089
21512
|
init_stainless_helper_header();
|
|
@@ -20365,7 +21788,7 @@ var JSONLDecoder;
|
|
|
20365
21788
|
var init_jsonl = __esm({
|
|
20366
21789
|
"../../node_modules/.pnpm/@anthropic-ai+sdk@0.82.0_zod@4.3.6/node_modules/@anthropic-ai/sdk/internal/decoders/jsonl.mjs"() {
|
|
20367
21790
|
"use strict";
|
|
20368
|
-
|
|
21791
|
+
init_error2();
|
|
20369
21792
|
init_shims();
|
|
20370
21793
|
init_line();
|
|
20371
21794
|
JSONLDecoder = class _JSONLDecoder {
|
|
@@ -20410,7 +21833,7 @@ var init_batches = __esm({
|
|
|
20410
21833
|
init_pagination();
|
|
20411
21834
|
init_headers();
|
|
20412
21835
|
init_jsonl();
|
|
20413
|
-
|
|
21836
|
+
init_error3();
|
|
20414
21837
|
init_path();
|
|
20415
21838
|
Batches = class extends APIResource {
|
|
20416
21839
|
/**
|
|
@@ -20626,7 +22049,7 @@ var DEPRECATED_MODELS, MODELS_TO_WARN_WITH_THINKING_ENABLED, Messages;
|
|
|
20626
22049
|
var init_messages = __esm({
|
|
20627
22050
|
"../../node_modules/.pnpm/@anthropic-ai+sdk@0.82.0_zod@4.3.6/node_modules/@anthropic-ai/sdk/resources/beta/messages/messages.mjs"() {
|
|
20628
22051
|
"use strict";
|
|
20629
|
-
|
|
22052
|
+
init_error3();
|
|
20630
22053
|
init_resource();
|
|
20631
22054
|
init_constants();
|
|
20632
22055
|
init_headers();
|
|
@@ -21077,7 +22500,7 @@ function parseOutputFormat(params, content) {
|
|
|
21077
22500
|
var init_parser2 = __esm({
|
|
21078
22501
|
"../../node_modules/.pnpm/@anthropic-ai+sdk@0.82.0_zod@4.3.6/node_modules/@anthropic-ai/sdk/lib/parser.mjs"() {
|
|
21079
22502
|
"use strict";
|
|
21080
|
-
|
|
22503
|
+
init_error2();
|
|
21081
22504
|
}
|
|
21082
22505
|
});
|
|
21083
22506
|
|
|
@@ -21093,7 +22516,7 @@ var init_MessageStream = __esm({
|
|
|
21093
22516
|
"use strict";
|
|
21094
22517
|
init_tslib();
|
|
21095
22518
|
init_errors();
|
|
21096
|
-
|
|
22519
|
+
init_error3();
|
|
21097
22520
|
init_streaming2();
|
|
21098
22521
|
init_parser();
|
|
21099
22522
|
init_parser2();
|
|
@@ -21668,7 +23091,7 @@ var init_batches2 = __esm({
|
|
|
21668
23091
|
init_pagination();
|
|
21669
23092
|
init_headers();
|
|
21670
23093
|
init_jsonl();
|
|
21671
|
-
|
|
23094
|
+
init_error3();
|
|
21672
23095
|
init_path();
|
|
21673
23096
|
Batches2 = class extends APIResource {
|
|
21674
23097
|
/**
|
|
@@ -22003,12 +23426,12 @@ var readEnv;
|
|
|
22003
23426
|
var init_env = __esm({
|
|
22004
23427
|
"../../node_modules/.pnpm/@anthropic-ai+sdk@0.82.0_zod@4.3.6/node_modules/@anthropic-ai/sdk/internal/utils/env.mjs"() {
|
|
22005
23428
|
"use strict";
|
|
22006
|
-
readEnv = (
|
|
23429
|
+
readEnv = (env2) => {
|
|
22007
23430
|
if (typeof globalThis.process !== "undefined") {
|
|
22008
|
-
return globalThis.process.env?.[
|
|
23431
|
+
return globalThis.process.env?.[env2]?.trim() ?? void 0;
|
|
22009
23432
|
}
|
|
22010
23433
|
if (typeof globalThis.Deno !== "undefined") {
|
|
22011
|
-
return globalThis.Deno.env?.get?.(
|
|
23434
|
+
return globalThis.Deno.env?.get?.(env2)?.trim();
|
|
22012
23435
|
}
|
|
22013
23436
|
return void 0;
|
|
22014
23437
|
};
|
|
@@ -22030,7 +23453,7 @@ var init_client = __esm({
|
|
|
22030
23453
|
init_request_options();
|
|
22031
23454
|
init_query();
|
|
22032
23455
|
init_version();
|
|
22033
|
-
|
|
23456
|
+
init_error2();
|
|
22034
23457
|
init_pagination();
|
|
22035
23458
|
init_uploads2();
|
|
22036
23459
|
init_resources();
|
|
@@ -22521,7 +23944,7 @@ var init_sdk = __esm({
|
|
|
22521
23944
|
init_api_promise();
|
|
22522
23945
|
init_client();
|
|
22523
23946
|
init_pagination();
|
|
22524
|
-
|
|
23947
|
+
init_error2();
|
|
22525
23948
|
}
|
|
22526
23949
|
});
|
|
22527
23950
|
|
|
@@ -22605,7 +24028,7 @@ var init_errors2 = __esm({
|
|
|
22605
24028
|
|
|
22606
24029
|
// ../../node_modules/.pnpm/openai@6.33.0_zod@4.3.6/node_modules/openai/core/error.mjs
|
|
22607
24030
|
var OpenAIError, APIError2, APIUserAbortError2, APIConnectionError2, APIConnectionTimeoutError2, BadRequestError2, AuthenticationError2, PermissionDeniedError2, NotFoundError2, ConflictError2, UnprocessableEntityError2, RateLimitError2, InternalServerError2, LengthFinishReasonError, ContentFilterFinishReasonError, InvalidWebhookSignatureError;
|
|
22608
|
-
var
|
|
24031
|
+
var init_error4 = __esm({
|
|
22609
24032
|
"../../node_modules/.pnpm/openai@6.33.0_zod@4.3.6/node_modules/openai/core/error.mjs"() {
|
|
22610
24033
|
"use strict";
|
|
22611
24034
|
init_errors2();
|
|
@@ -22743,7 +24166,7 @@ var startsWithSchemeRegexp2, isAbsoluteURL2, isArray2, isReadonlyArray3, validat
|
|
|
22743
24166
|
var init_values2 = __esm({
|
|
22744
24167
|
"../../node_modules/.pnpm/openai@6.33.0_zod@4.3.6/node_modules/openai/internal/utils/values.mjs"() {
|
|
22745
24168
|
"use strict";
|
|
22746
|
-
|
|
24169
|
+
init_error4();
|
|
22747
24170
|
startsWithSchemeRegexp2 = /^[a-z][a-z0-9+.-]*:/i;
|
|
22748
24171
|
isAbsoluteURL2 = (url) => {
|
|
22749
24172
|
return startsWithSchemeRegexp2.test(url);
|
|
@@ -23361,7 +24784,7 @@ function stringify2(object, opts = {}) {
|
|
|
23361
24784
|
return joined.length > 0 ? prefix + joined : "";
|
|
23362
24785
|
}
|
|
23363
24786
|
var array_prefix_generators, push_to_array, toISOString, defaults2, sentinel;
|
|
23364
|
-
var
|
|
24787
|
+
var init_stringify2 = __esm({
|
|
23365
24788
|
"../../node_modules/.pnpm/openai@6.33.0_zod@4.3.6/node_modules/openai/internal/qs/stringify.mjs"() {
|
|
23366
24789
|
"use strict";
|
|
23367
24790
|
init_utils6();
|
|
@@ -23415,7 +24838,7 @@ function stringifyQuery2(query) {
|
|
|
23415
24838
|
var init_query2 = __esm({
|
|
23416
24839
|
"../../node_modules/.pnpm/openai@6.33.0_zod@4.3.6/node_modules/openai/internal/utils/query.mjs"() {
|
|
23417
24840
|
"use strict";
|
|
23418
|
-
|
|
24841
|
+
init_stringify2();
|
|
23419
24842
|
}
|
|
23420
24843
|
});
|
|
23421
24844
|
|
|
@@ -23669,14 +25092,14 @@ var init_streaming3 = __esm({
|
|
|
23669
25092
|
"../../node_modules/.pnpm/openai@6.33.0_zod@4.3.6/node_modules/openai/core/streaming.mjs"() {
|
|
23670
25093
|
"use strict";
|
|
23671
25094
|
init_tslib2();
|
|
23672
|
-
|
|
25095
|
+
init_error4();
|
|
23673
25096
|
init_shims2();
|
|
23674
25097
|
init_line2();
|
|
23675
25098
|
init_shims2();
|
|
23676
25099
|
init_errors2();
|
|
23677
25100
|
init_bytes2();
|
|
23678
25101
|
init_log2();
|
|
23679
|
-
|
|
25102
|
+
init_error4();
|
|
23680
25103
|
Stream2 = class _Stream {
|
|
23681
25104
|
constructor(iterator, controller, client) {
|
|
23682
25105
|
this.iterator = iterator;
|
|
@@ -23932,7 +25355,7 @@ function addRequestID2(value, response) {
|
|
|
23932
25355
|
enumerable: false
|
|
23933
25356
|
});
|
|
23934
25357
|
}
|
|
23935
|
-
var
|
|
25358
|
+
var init_parse3 = __esm({
|
|
23936
25359
|
"../../node_modules/.pnpm/openai@6.33.0_zod@4.3.6/node_modules/openai/internal/parse.mjs"() {
|
|
23937
25360
|
"use strict";
|
|
23938
25361
|
init_streaming3();
|
|
@@ -23946,7 +25369,7 @@ var init_api_promise2 = __esm({
|
|
|
23946
25369
|
"../../node_modules/.pnpm/openai@6.33.0_zod@4.3.6/node_modules/openai/core/api-promise.mjs"() {
|
|
23947
25370
|
"use strict";
|
|
23948
25371
|
init_tslib2();
|
|
23949
|
-
|
|
25372
|
+
init_parse3();
|
|
23950
25373
|
APIPromise2 = class _APIPromise extends Promise {
|
|
23951
25374
|
constructor(client, responsePromise, parseResponse2 = defaultParseResponse2) {
|
|
23952
25375
|
super((resolve11) => {
|
|
@@ -24016,8 +25439,8 @@ var init_pagination2 = __esm({
|
|
|
24016
25439
|
"../../node_modules/.pnpm/openai@6.33.0_zod@4.3.6/node_modules/openai/core/pagination.mjs"() {
|
|
24017
25440
|
"use strict";
|
|
24018
25441
|
init_tslib2();
|
|
24019
|
-
|
|
24020
|
-
|
|
25442
|
+
init_error4();
|
|
25443
|
+
init_parse3();
|
|
24021
25444
|
init_api_promise2();
|
|
24022
25445
|
init_values2();
|
|
24023
25446
|
AbstractPage2 = class {
|
|
@@ -24186,8 +25609,8 @@ var init_uploads3 = __esm({
|
|
|
24186
25609
|
init_shims2();
|
|
24187
25610
|
checkFileSupport2 = () => {
|
|
24188
25611
|
if (typeof File === "undefined") {
|
|
24189
|
-
const { process:
|
|
24190
|
-
const isOldNode = typeof
|
|
25612
|
+
const { process: process3 } = globalThis;
|
|
25613
|
+
const isOldNode = typeof process3?.versions?.node === "string" && parseInt(process3.versions.node.split(".")) < 20;
|
|
24191
25614
|
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`." : ""));
|
|
24192
25615
|
}
|
|
24193
25616
|
};
|
|
@@ -24338,7 +25761,7 @@ var EMPTY2, createPathTagFunction2, path14;
|
|
|
24338
25761
|
var init_path2 = __esm({
|
|
24339
25762
|
"../../node_modules/.pnpm/openai@6.33.0_zod@4.3.6/node_modules/openai/internal/utils/path.mjs"() {
|
|
24340
25763
|
"use strict";
|
|
24341
|
-
|
|
25764
|
+
init_error4();
|
|
24342
25765
|
EMPTY2 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.create(null));
|
|
24343
25766
|
createPathTagFunction2 = (pathEncoder = encodeURIPath2) => function path18(statics, ...params) {
|
|
24344
25767
|
if (statics.length === 1)
|
|
@@ -24423,10 +25846,10 @@ var init_messages3 = __esm({
|
|
|
24423
25846
|
});
|
|
24424
25847
|
|
|
24425
25848
|
// ../../node_modules/.pnpm/openai@6.33.0_zod@4.3.6/node_modules/openai/error.mjs
|
|
24426
|
-
var
|
|
25849
|
+
var init_error5 = __esm({
|
|
24427
25850
|
"../../node_modules/.pnpm/openai@6.33.0_zod@4.3.6/node_modules/openai/error.mjs"() {
|
|
24428
25851
|
"use strict";
|
|
24429
|
-
|
|
25852
|
+
init_error4();
|
|
24430
25853
|
}
|
|
24431
25854
|
});
|
|
24432
25855
|
|
|
@@ -24539,7 +25962,7 @@ function validateInputTools(tools) {
|
|
|
24539
25962
|
var init_parser3 = __esm({
|
|
24540
25963
|
"../../node_modules/.pnpm/openai@6.33.0_zod@4.3.6/node_modules/openai/lib/parser.mjs"() {
|
|
24541
25964
|
"use strict";
|
|
24542
|
-
|
|
25965
|
+
init_error5();
|
|
24543
25966
|
}
|
|
24544
25967
|
});
|
|
24545
25968
|
|
|
@@ -24563,7 +25986,7 @@ var init_EventStream = __esm({
|
|
|
24563
25986
|
"../../node_modules/.pnpm/openai@6.33.0_zod@4.3.6/node_modules/openai/lib/EventStream.mjs"() {
|
|
24564
25987
|
"use strict";
|
|
24565
25988
|
init_tslib2();
|
|
24566
|
-
|
|
25989
|
+
init_error5();
|
|
24567
25990
|
EventStream = class {
|
|
24568
25991
|
constructor() {
|
|
24569
25992
|
_EventStream_instances.add(this);
|
|
@@ -24757,7 +26180,7 @@ var init_AbstractChatCompletionRunner = __esm({
|
|
|
24757
26180
|
"../../node_modules/.pnpm/openai@6.33.0_zod@4.3.6/node_modules/openai/lib/AbstractChatCompletionRunner.mjs"() {
|
|
24758
26181
|
"use strict";
|
|
24759
26182
|
init_tslib2();
|
|
24760
|
-
|
|
26183
|
+
init_error5();
|
|
24761
26184
|
init_parser3();
|
|
24762
26185
|
init_chatCompletionUtils();
|
|
24763
26186
|
init_EventStream();
|
|
@@ -25378,7 +26801,7 @@ var init_ChatCompletionStream = __esm({
|
|
|
25378
26801
|
"use strict";
|
|
25379
26802
|
init_tslib2();
|
|
25380
26803
|
init_parser4();
|
|
25381
|
-
|
|
26804
|
+
init_error5();
|
|
25382
26805
|
init_parser3();
|
|
25383
26806
|
init_streaming4();
|
|
25384
26807
|
init_AbstractChatCompletionRunner();
|
|
@@ -26579,7 +28002,7 @@ var toFloat32Array;
|
|
|
26579
28002
|
var init_base64 = __esm({
|
|
26580
28003
|
"../../node_modules/.pnpm/openai@6.33.0_zod@4.3.6/node_modules/openai/internal/utils/base64.mjs"() {
|
|
26581
28004
|
"use strict";
|
|
26582
|
-
|
|
28005
|
+
init_error4();
|
|
26583
28006
|
init_bytes2();
|
|
26584
28007
|
toFloat32Array = (base64Str) => {
|
|
26585
28008
|
if (typeof Buffer !== "undefined") {
|
|
@@ -26603,12 +28026,12 @@ var readEnv2;
|
|
|
26603
28026
|
var init_env2 = __esm({
|
|
26604
28027
|
"../../node_modules/.pnpm/openai@6.33.0_zod@4.3.6/node_modules/openai/internal/utils/env.mjs"() {
|
|
26605
28028
|
"use strict";
|
|
26606
|
-
readEnv2 = (
|
|
28029
|
+
readEnv2 = (env2) => {
|
|
26607
28030
|
if (typeof globalThis.process !== "undefined") {
|
|
26608
|
-
return globalThis.process.env?.[
|
|
28031
|
+
return globalThis.process.env?.[env2]?.trim() ?? void 0;
|
|
26609
28032
|
}
|
|
26610
28033
|
if (typeof globalThis.Deno !== "undefined") {
|
|
26611
|
-
return globalThis.Deno.env?.get?.(
|
|
28034
|
+
return globalThis.Deno.env?.get?.(env2)?.trim();
|
|
26612
28035
|
}
|
|
26613
28036
|
return void 0;
|
|
26614
28037
|
};
|
|
@@ -26638,7 +28061,7 @@ var init_AssistantStream = __esm({
|
|
|
26638
28061
|
"use strict";
|
|
26639
28062
|
init_tslib2();
|
|
26640
28063
|
init_streaming4();
|
|
26641
|
-
|
|
28064
|
+
init_error5();
|
|
26642
28065
|
init_EventStream();
|
|
26643
28066
|
init_utils7();
|
|
26644
28067
|
AssistantStream = class extends EventStream {
|
|
@@ -27892,7 +29315,7 @@ var init_files3 = __esm({
|
|
|
27892
29315
|
init_pagination2();
|
|
27893
29316
|
init_headers2();
|
|
27894
29317
|
init_sleep2();
|
|
27895
|
-
|
|
29318
|
+
init_error5();
|
|
27896
29319
|
init_uploads3();
|
|
27897
29320
|
init_path2();
|
|
27898
29321
|
Files3 = class extends APIResource2 {
|
|
@@ -28711,7 +30134,7 @@ function addOutputText(rsp) {
|
|
|
28711
30134
|
var init_ResponsesParser = __esm({
|
|
28712
30135
|
"../../node_modules/.pnpm/openai@6.33.0_zod@4.3.6/node_modules/openai/lib/ResponsesParser.mjs"() {
|
|
28713
30136
|
"use strict";
|
|
28714
|
-
|
|
30137
|
+
init_error5();
|
|
28715
30138
|
init_parser3();
|
|
28716
30139
|
}
|
|
28717
30140
|
});
|
|
@@ -28725,7 +30148,7 @@ var init_ResponseStream = __esm({
|
|
|
28725
30148
|
"../../node_modules/.pnpm/openai@6.33.0_zod@4.3.6/node_modules/openai/lib/responses/ResponseStream.mjs"() {
|
|
28726
30149
|
"use strict";
|
|
28727
30150
|
init_tslib2();
|
|
28728
|
-
|
|
30151
|
+
init_error5();
|
|
28729
30152
|
init_EventStream();
|
|
28730
30153
|
init_ResponsesParser();
|
|
28731
30154
|
ResponseStream = class _ResponseStream extends EventStream {
|
|
@@ -29863,7 +31286,7 @@ var init_webhooks = __esm({
|
|
|
29863
31286
|
"../../node_modules/.pnpm/openai@6.33.0_zod@4.3.6/node_modules/openai/resources/webhooks/webhooks.mjs"() {
|
|
29864
31287
|
"use strict";
|
|
29865
31288
|
init_tslib2();
|
|
29866
|
-
|
|
31289
|
+
init_error5();
|
|
29867
31290
|
init_resource2();
|
|
29868
31291
|
init_headers2();
|
|
29869
31292
|
Webhooks = class extends APIResource2 {
|
|
@@ -30004,7 +31427,7 @@ var init_client2 = __esm({
|
|
|
30004
31427
|
init_request_options2();
|
|
30005
31428
|
init_query2();
|
|
30006
31429
|
init_version2();
|
|
30007
|
-
|
|
31430
|
+
init_error4();
|
|
30008
31431
|
init_pagination2();
|
|
30009
31432
|
init_uploads4();
|
|
30010
31433
|
init_resources2();
|
|
@@ -30524,7 +31947,7 @@ var init_azure = __esm({
|
|
|
30524
31947
|
"../../node_modules/.pnpm/openai@6.33.0_zod@4.3.6/node_modules/openai/azure.mjs"() {
|
|
30525
31948
|
"use strict";
|
|
30526
31949
|
init_headers2();
|
|
30527
|
-
|
|
31950
|
+
init_error5();
|
|
30528
31951
|
init_utils7();
|
|
30529
31952
|
init_client2();
|
|
30530
31953
|
}
|
|
@@ -30539,7 +31962,7 @@ var init_openai = __esm({
|
|
|
30539
31962
|
init_api_promise2();
|
|
30540
31963
|
init_client2();
|
|
30541
31964
|
init_pagination2();
|
|
30542
|
-
|
|
31965
|
+
init_error4();
|
|
30543
31966
|
init_azure();
|
|
30544
31967
|
}
|
|
30545
31968
|
});
|
|
@@ -32030,15 +33453,15 @@ var require_runtime = __commonJS({
|
|
|
32030
33453
|
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] + ").");
|
|
32031
33454
|
}
|
|
32032
33455
|
}
|
|
32033
|
-
function template(templateSpec,
|
|
32034
|
-
if (!
|
|
33456
|
+
function template(templateSpec, env2) {
|
|
33457
|
+
if (!env2) {
|
|
32035
33458
|
throw new _exception2["default"]("No environment passed to template");
|
|
32036
33459
|
}
|
|
32037
33460
|
if (!templateSpec || !templateSpec.main) {
|
|
32038
33461
|
throw new _exception2["default"]("Unknown template object: " + typeof templateSpec);
|
|
32039
33462
|
}
|
|
32040
33463
|
templateSpec.main.decorator = templateSpec.main_d;
|
|
32041
|
-
|
|
33464
|
+
env2.VM.checkRevision(templateSpec.compiler);
|
|
32042
33465
|
var templateWasPrecompiledWithCompilerV7 = templateSpec.compiler && templateSpec.compiler[0] === 7;
|
|
32043
33466
|
function invokePartialWrapper(partial, context, options) {
|
|
32044
33467
|
if (options.hash) {
|
|
@@ -32047,12 +33470,12 @@ var require_runtime = __commonJS({
|
|
|
32047
33470
|
options.ids[0] = true;
|
|
32048
33471
|
}
|
|
32049
33472
|
}
|
|
32050
|
-
partial =
|
|
33473
|
+
partial = env2.VM.resolvePartial.call(this, partial, context, options);
|
|
32051
33474
|
options.hooks = this.hooks;
|
|
32052
33475
|
options.protoAccessControl = this.protoAccessControl;
|
|
32053
|
-
var result =
|
|
32054
|
-
if (result == null &&
|
|
32055
|
-
options.partials[options.name] =
|
|
33476
|
+
var result = env2.VM.invokePartial.call(this, partial, context, options);
|
|
33477
|
+
if (result == null && env2.compile) {
|
|
33478
|
+
options.partials[options.name] = env2.compile(partial, templateSpec.compilerOptions, env2);
|
|
32056
33479
|
result = options.partials[options.name](context, options);
|
|
32057
33480
|
}
|
|
32058
33481
|
if (result != null) {
|
|
@@ -32137,7 +33560,7 @@ var require_runtime = __commonJS({
|
|
|
32137
33560
|
},
|
|
32138
33561
|
// An empty object to use as replacement for null-contexts
|
|
32139
33562
|
nullContext: Object.seal({}),
|
|
32140
|
-
noop:
|
|
33563
|
+
noop: env2.VM.noop,
|
|
32141
33564
|
compilerInfo: templateSpec.compiler
|
|
32142
33565
|
};
|
|
32143
33566
|
function ret(context) {
|
|
@@ -32165,14 +33588,14 @@ var require_runtime = __commonJS({
|
|
|
32165
33588
|
ret._setup = function(options) {
|
|
32166
33589
|
if (!options.partial) {
|
|
32167
33590
|
var mergedHelpers = {};
|
|
32168
|
-
addHelpers(mergedHelpers,
|
|
33591
|
+
addHelpers(mergedHelpers, env2.helpers, container);
|
|
32169
33592
|
addHelpers(mergedHelpers, options.helpers, container);
|
|
32170
33593
|
container.helpers = mergedHelpers;
|
|
32171
33594
|
if (templateSpec.usePartial) {
|
|
32172
|
-
container.partials = container.mergeIfNeeded(options.partials,
|
|
33595
|
+
container.partials = container.mergeIfNeeded(options.partials, env2.partials);
|
|
32173
33596
|
}
|
|
32174
33597
|
if (templateSpec.usePartial || templateSpec.useDecorators) {
|
|
32175
|
-
container.decorators = Utils.extend({},
|
|
33598
|
+
container.decorators = Utils.extend({}, env2.decorators, options.decorators);
|
|
32176
33599
|
}
|
|
32177
33600
|
container.hooks = {};
|
|
32178
33601
|
container.protoAccessControl = _internalProtoAccess.createProtoAccessControl(options);
|
|
@@ -32671,7 +34094,7 @@ var require_parser = __commonJS({
|
|
|
32671
34094
|
parseError: function parseError(str3, hash) {
|
|
32672
34095
|
throw new Error(str3);
|
|
32673
34096
|
},
|
|
32674
|
-
parse: function
|
|
34097
|
+
parse: function parse2(input) {
|
|
32675
34098
|
var self = this, stack = [0], vstack = [null], lstack = [], table = this.table, yytext = "", yylineno = 0, yyleng = 0, recovering = 0, TERROR = 2, EOF = 1;
|
|
32676
34099
|
this.lexer.setInput(input);
|
|
32677
34100
|
this.lexer.yy = this.yy;
|
|
@@ -33584,7 +35007,7 @@ var require_base2 = __commonJS({
|
|
|
33584
35007
|
"use strict";
|
|
33585
35008
|
exports2.__esModule = true;
|
|
33586
35009
|
exports2.parseWithoutProcessing = parseWithoutProcessing;
|
|
33587
|
-
exports2.parse =
|
|
35010
|
+
exports2.parse = parse2;
|
|
33588
35011
|
function _interopRequireWildcard(obj) {
|
|
33589
35012
|
if (obj && obj.__esModule) {
|
|
33590
35013
|
return obj;
|
|
@@ -33626,7 +35049,7 @@ var require_base2 = __commonJS({
|
|
|
33626
35049
|
var ast = _parser2["default"].parse(input);
|
|
33627
35050
|
return ast;
|
|
33628
35051
|
}
|
|
33629
|
-
function
|
|
35052
|
+
function parse2(input, options) {
|
|
33630
35053
|
var ast = parseWithoutProcessing(input, options);
|
|
33631
35054
|
var strip3 = new _whitespaceControl2["default"](options);
|
|
33632
35055
|
return strip3.accept(ast);
|
|
@@ -34021,7 +35444,7 @@ var require_compiler = __commonJS({
|
|
|
34021
35444
|
}
|
|
34022
35445
|
}
|
|
34023
35446
|
};
|
|
34024
|
-
function precompile(input, options,
|
|
35447
|
+
function precompile(input, options, env2) {
|
|
34025
35448
|
if (input == null || typeof input !== "string" && input.type !== "Program") {
|
|
34026
35449
|
throw new _exception2["default"]("You must pass a string or Handlebars AST to Handlebars.precompile. You passed " + input);
|
|
34027
35450
|
}
|
|
@@ -34032,10 +35455,10 @@ var require_compiler = __commonJS({
|
|
|
34032
35455
|
if (options.compat) {
|
|
34033
35456
|
options.useDepths = true;
|
|
34034
35457
|
}
|
|
34035
|
-
var ast =
|
|
34036
|
-
return new
|
|
35458
|
+
var ast = env2.parse(input, options), environment = new env2.Compiler().compile(ast, options);
|
|
35459
|
+
return new env2.JavaScriptCompiler().compile(environment, options);
|
|
34037
35460
|
}
|
|
34038
|
-
function compile2(input, options,
|
|
35461
|
+
function compile2(input, options, env2) {
|
|
34039
35462
|
if (options === void 0) options = {};
|
|
34040
35463
|
if (input == null || typeof input !== "string" && input.type !== "Program") {
|
|
34041
35464
|
throw new _exception2["default"]("You must pass a string or Handlebars AST to Handlebars.compile. You passed " + input);
|
|
@@ -34049,8 +35472,8 @@ var require_compiler = __commonJS({
|
|
|
34049
35472
|
}
|
|
34050
35473
|
var compiled = void 0;
|
|
34051
35474
|
function compileInput() {
|
|
34052
|
-
var ast =
|
|
34053
|
-
return
|
|
35475
|
+
var ast = env2.parse(input, options), environment = new env2.Compiler().compile(ast, options), templateSpec = new env2.JavaScriptCompiler().compile(environment, options, void 0, true);
|
|
35476
|
+
return env2.template(templateSpec);
|
|
34054
35477
|
}
|
|
34055
35478
|
function ret(context, execOptions) {
|
|
34056
35479
|
if (!compiled) {
|
|
@@ -40459,7 +41882,7 @@ var init_liquid_node = __esm({
|
|
|
40459
41882
|
TokenKind2[TokenKind2["Delimited"] = 12] = "Delimited";
|
|
40460
41883
|
})(TokenKind || (TokenKind = {}));
|
|
40461
41884
|
Context = class _Context {
|
|
40462
|
-
constructor(
|
|
41885
|
+
constructor(env2 = {}, opts = defaultOptions2, renderOptions = {}, { memoryLimit, renderLimit } = {}) {
|
|
40463
41886
|
var _a5, _b, _c, _d, _e;
|
|
40464
41887
|
this.scopes = [{}];
|
|
40465
41888
|
this.registers = {};
|
|
@@ -40468,7 +41891,7 @@ var init_liquid_node = __esm({
|
|
|
40468
41891
|
this.sync = !!renderOptions.sync;
|
|
40469
41892
|
this.opts = opts;
|
|
40470
41893
|
this.globals = (_a5 = renderOptions.globals) !== null && _a5 !== void 0 ? _a5 : opts.globals;
|
|
40471
|
-
this.environments = isObject2(
|
|
41894
|
+
this.environments = isObject2(env2) ? env2 : Object(env2);
|
|
40472
41895
|
this.strictVariables = (_b = renderOptions.strictVariables) !== null && _b !== void 0 ? _b : this.opts.strictVariables;
|
|
40473
41896
|
this.ownPropertyOnly = (_c = renderOptions.ownPropertyOnly) !== null && _c !== void 0 ? _c : opts.ownPropertyOnly;
|
|
40474
41897
|
this.memoryLimit = memoryLimit !== null && memoryLimit !== void 0 ? memoryLimit : new Limiter("memory alloc", (_d = renderOptions.memoryLimit) !== null && _d !== void 0 ? _d : opts.memoryLimit);
|
|
@@ -41919,13 +43342,12 @@ var init_aggregator_IUQUAVJC = __esm({
|
|
|
41919
43342
|
});
|
|
41920
43343
|
|
|
41921
43344
|
// ../notes/dist/chunk-Y4S5UWCL.js
|
|
41922
|
-
import * as TOML3 from "smol-toml";
|
|
41923
43345
|
import * as fs33 from "fs";
|
|
41924
43346
|
import * as path33 from "path";
|
|
41925
43347
|
import { z as z23 } from "zod";
|
|
41926
43348
|
import { z as z4 } from "zod";
|
|
41927
43349
|
import * as fs24 from "fs";
|
|
41928
|
-
import * as
|
|
43350
|
+
import * as os4 from "os";
|
|
41929
43351
|
import * as path24 from "path";
|
|
41930
43352
|
import * as fs43 from "fs";
|
|
41931
43353
|
import * as fs93 from "fs";
|
|
@@ -41962,7 +43384,7 @@ function substituteVariables3(value) {
|
|
|
41962
43384
|
return process.env[varName] ?? "";
|
|
41963
43385
|
});
|
|
41964
43386
|
result = result.replace(filePattern, (_, filePath) => {
|
|
41965
|
-
const expandedPath = filePath.startsWith("~") ? path24.join(
|
|
43387
|
+
const expandedPath = filePath.startsWith("~") ? path24.join(os4.homedir(), filePath.slice(1)) : filePath;
|
|
41966
43388
|
try {
|
|
41967
43389
|
return fs24.readFileSync(expandedPath, "utf-8").trim();
|
|
41968
43390
|
} catch {
|
|
@@ -43254,6 +44676,7 @@ var init_chunk_Y4S5UWCL = __esm({
|
|
|
43254
44676
|
"../notes/dist/chunk-Y4S5UWCL.js"() {
|
|
43255
44677
|
"use strict";
|
|
43256
44678
|
init_chunk_7TJSPQPW();
|
|
44679
|
+
init_dist();
|
|
43257
44680
|
init_sdk();
|
|
43258
44681
|
init_openai();
|
|
43259
44682
|
init_openai();
|
|
@@ -43562,7 +44985,7 @@ var init_chunk_Y4S5UWCL = __esm({
|
|
|
43562
44985
|
});
|
|
43563
44986
|
MAX_INPUT_LENGTH3 = 1e4;
|
|
43564
44987
|
SOLE_REFERENCE_PATTERN3 = /^\{(?:env|file):[^}]+\}$/;
|
|
43565
|
-
AUTH_DIR3 = path24.join(
|
|
44988
|
+
AUTH_DIR3 = path24.join(os4.homedir(), ".config", "releasekit");
|
|
43566
44989
|
AUTH_FILE3 = path24.join(AUTH_DIR3, "auth.json");
|
|
43567
44990
|
CONFIG_FILE3 = "releasekit.config.json";
|
|
43568
44991
|
NotesError = class extends ReleaseKitError3 {
|
|
@@ -43849,8 +45272,8 @@ Summary (only output the summary, nothing else):`;
|
|
|
43849
45272
|
});
|
|
43850
45273
|
|
|
43851
45274
|
// ../notes/dist/index.js
|
|
43852
|
-
var
|
|
43853
|
-
__export(
|
|
45275
|
+
var dist_exports5 = {};
|
|
45276
|
+
__export(dist_exports5, {
|
|
43854
45277
|
ConfigError: () => ConfigError22,
|
|
43855
45278
|
GitHubError: () => GitHubError,
|
|
43856
45279
|
InputParseError: () => InputParseError,
|
|
@@ -43912,7 +45335,7 @@ function writeJson(outputPath, contexts, dryRun) {
|
|
|
43912
45335
|
fs14.writeFileSync(outputPath, content, "utf-8");
|
|
43913
45336
|
success2(`JSON output written to ${outputPath}`);
|
|
43914
45337
|
}
|
|
43915
|
-
var
|
|
45338
|
+
var init_dist15 = __esm({
|
|
43916
45339
|
"../notes/dist/index.js"() {
|
|
43917
45340
|
"use strict";
|
|
43918
45341
|
init_chunk_Y4S5UWCL();
|
|
@@ -43922,19 +45345,16 @@ var init_dist14 = __esm({
|
|
|
43922
45345
|
});
|
|
43923
45346
|
|
|
43924
45347
|
// ../publish/dist/chunk-OZHNJUFW.js
|
|
43925
|
-
import chalk5 from "chalk";
|
|
43926
45348
|
import * as fs25 from "fs";
|
|
43927
|
-
import * as TOML4 from "smol-toml";
|
|
43928
45349
|
import * as fs34 from "fs";
|
|
43929
45350
|
import * as path34 from "path";
|
|
43930
45351
|
import { z as z24 } from "zod";
|
|
43931
45352
|
import { z as z5 } from "zod";
|
|
43932
45353
|
import * as fs222 from "fs";
|
|
43933
|
-
import * as
|
|
45354
|
+
import * as os5 from "os";
|
|
43934
45355
|
import * as path222 from "path";
|
|
43935
45356
|
import { execFile as execFile2 } from "child_process";
|
|
43936
45357
|
import * as fs44 from "fs";
|
|
43937
|
-
import * as TOML23 from "smol-toml";
|
|
43938
45358
|
import * as fs54 from "fs";
|
|
43939
45359
|
import * as path44 from "path";
|
|
43940
45360
|
import * as fs64 from "fs";
|
|
@@ -43972,7 +45392,7 @@ function info3(message) {
|
|
|
43972
45392
|
}
|
|
43973
45393
|
function success3(message) {
|
|
43974
45394
|
if (!shouldLog4("info")) return;
|
|
43975
|
-
console.error(
|
|
45395
|
+
console.error(source_default.green(`[SUCCESS] ${message}`));
|
|
43976
45396
|
}
|
|
43977
45397
|
function debug2(message) {
|
|
43978
45398
|
log6(message, "debug");
|
|
@@ -43982,7 +45402,7 @@ function sanitizePackageName2(name) {
|
|
|
43982
45402
|
}
|
|
43983
45403
|
function parseCargoToml2(cargoPath) {
|
|
43984
45404
|
const content = fs25.readFileSync(cargoPath, "utf-8");
|
|
43985
|
-
return
|
|
45405
|
+
return parse(content);
|
|
43986
45406
|
}
|
|
43987
45407
|
function mergeGitConfig(topLevel, packageLevel) {
|
|
43988
45408
|
if (!topLevel && !packageLevel) return void 0;
|
|
@@ -44023,7 +45443,7 @@ function substituteVariables4(value) {
|
|
|
44023
45443
|
return process.env[varName] ?? "";
|
|
44024
45444
|
});
|
|
44025
45445
|
result = result.replace(filePattern, (_, filePath) => {
|
|
44026
|
-
const expandedPath = filePath.startsWith("~") ? path222.join(
|
|
45446
|
+
const expandedPath = filePath.startsWith("~") ? path222.join(os5.homedir(), filePath.slice(1)) : filePath;
|
|
44027
45447
|
try {
|
|
44028
45448
|
return fs222.readFileSync(expandedPath, "utf-8").trim();
|
|
44029
45449
|
} catch {
|
|
@@ -44469,7 +45889,7 @@ function updateCargoVersion2(cargoPath, newVersion) {
|
|
|
44469
45889
|
const cargo = parseCargoToml2(cargoPath);
|
|
44470
45890
|
if (cargo.package) {
|
|
44471
45891
|
cargo.package.version = newVersion;
|
|
44472
|
-
fs44.writeFileSync(cargoPath,
|
|
45892
|
+
fs44.writeFileSync(cargoPath, stringify(cargo));
|
|
44473
45893
|
}
|
|
44474
45894
|
} catch (error3) {
|
|
44475
45895
|
throw createPublishError(
|
|
@@ -45461,6 +46881,9 @@ var import_semver6, LOG_LEVELS4, PREFIXES4, COLORS4, currentLevel4, quietMode4,
|
|
|
45461
46881
|
var init_chunk_OZHNJUFW = __esm({
|
|
45462
46882
|
"../publish/dist/chunk-OZHNJUFW.js"() {
|
|
45463
46883
|
"use strict";
|
|
46884
|
+
init_source();
|
|
46885
|
+
init_dist();
|
|
46886
|
+
init_dist();
|
|
45464
46887
|
import_semver6 = __toESM(require_semver2(), 1);
|
|
45465
46888
|
LOG_LEVELS4 = {
|
|
45466
46889
|
error: 0,
|
|
@@ -45477,11 +46900,11 @@ var init_chunk_OZHNJUFW = __esm({
|
|
|
45477
46900
|
trace: "[TRACE]"
|
|
45478
46901
|
};
|
|
45479
46902
|
COLORS4 = {
|
|
45480
|
-
error:
|
|
45481
|
-
warn:
|
|
45482
|
-
info:
|
|
45483
|
-
debug:
|
|
45484
|
-
trace:
|
|
46903
|
+
error: source_default.red,
|
|
46904
|
+
warn: source_default.yellow,
|
|
46905
|
+
info: source_default.blue,
|
|
46906
|
+
debug: source_default.gray,
|
|
46907
|
+
trace: source_default.dim
|
|
45485
46908
|
};
|
|
45486
46909
|
currentLevel4 = "info";
|
|
45487
46910
|
quietMode4 = false;
|
|
@@ -45817,7 +47240,7 @@ var init_chunk_OZHNJUFW = __esm({
|
|
|
45817
47240
|
});
|
|
45818
47241
|
MAX_INPUT_LENGTH4 = 1e4;
|
|
45819
47242
|
SOLE_REFERENCE_PATTERN4 = /^\{(?:env|file):[^}]+\}$/;
|
|
45820
|
-
AUTH_DIR4 = path222.join(
|
|
47243
|
+
AUTH_DIR4 = path222.join(os5.homedir(), ".config", "releasekit");
|
|
45821
47244
|
AUTH_FILE4 = path222.join(AUTH_DIR4, "auth.json");
|
|
45822
47245
|
CONFIG_FILE4 = "releasekit.config.json";
|
|
45823
47246
|
BasePublishError = class _BasePublishError extends ReleaseKitError4 {
|
|
@@ -45897,8 +47320,8 @@ var init_chunk_OZHNJUFW = __esm({
|
|
|
45897
47320
|
});
|
|
45898
47321
|
|
|
45899
47322
|
// ../publish/dist/index.js
|
|
45900
|
-
var
|
|
45901
|
-
__export(
|
|
47323
|
+
var dist_exports6 = {};
|
|
47324
|
+
__export(dist_exports6, {
|
|
45902
47325
|
BasePublishError: () => BasePublishError,
|
|
45903
47326
|
PipelineError: () => PipelineError,
|
|
45904
47327
|
PublishError: () => PublishError,
|
|
@@ -45918,7 +47341,7 @@ __export(dist_exports5, {
|
|
|
45918
47341
|
runPipeline: () => runPipeline2,
|
|
45919
47342
|
updateCargoVersion: () => updateCargoVersion2
|
|
45920
47343
|
});
|
|
45921
|
-
var
|
|
47344
|
+
var init_dist16 = __esm({
|
|
45922
47345
|
"../publish/dist/index.js"() {
|
|
45923
47346
|
"use strict";
|
|
45924
47347
|
init_chunk_OZHNJUFW();
|
|
@@ -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:
|
|
45963
|
-
warn:
|
|
45964
|
-
info:
|
|
45965
|
-
debug:
|
|
45966
|
-
trace:
|
|
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(
|
|
47421
|
+
console.error(source_default.green(`[SUCCESS] ${message}`));
|
|
45999
47422
|
}
|
|
46000
47423
|
var ReleaseKitError = class _ReleaseKitError extends Error {
|
|
46001
47424
|
constructor(message) {
|
|
@@ -46035,13 +47458,13 @@ import { Command as Command6 } from "commander";
|
|
|
46035
47458
|
import { Command as Command4 } from "commander";
|
|
46036
47459
|
|
|
46037
47460
|
// ../config/dist/index.js
|
|
46038
|
-
|
|
47461
|
+
init_dist();
|
|
46039
47462
|
import * as fs3 from "fs";
|
|
46040
47463
|
import * as path3 from "path";
|
|
46041
47464
|
import { z as z2 } from "zod";
|
|
46042
47465
|
import { z } from "zod";
|
|
46043
47466
|
import * as fs2 from "fs";
|
|
46044
|
-
import * as
|
|
47467
|
+
import * as os2 from "os";
|
|
46045
47468
|
import * as path2 from "path";
|
|
46046
47469
|
var ConfigError = class extends ReleaseKitError {
|
|
46047
47470
|
code = "CONFIG_ERROR";
|
|
@@ -46366,7 +47789,7 @@ function substituteVariables(value) {
|
|
|
46366
47789
|
return process.env[varName] ?? "";
|
|
46367
47790
|
});
|
|
46368
47791
|
result = result.replace(filePattern, (_, filePath) => {
|
|
46369
|
-
const expandedPath = filePath.startsWith("~") ? path2.join(
|
|
47792
|
+
const expandedPath = filePath.startsWith("~") ? path2.join(os2.homedir(), filePath.slice(1)) : filePath;
|
|
46370
47793
|
try {
|
|
46371
47794
|
return fs2.readFileSync(expandedPath, "utf-8").trim();
|
|
46372
47795
|
} catch {
|
|
@@ -46396,7 +47819,7 @@ function substituteInObject(obj) {
|
|
|
46396
47819
|
}
|
|
46397
47820
|
return obj;
|
|
46398
47821
|
}
|
|
46399
|
-
var AUTH_DIR = path2.join(
|
|
47822
|
+
var AUTH_DIR = path2.join(os2.homedir(), ".config", "releasekit");
|
|
46400
47823
|
var AUTH_FILE = path2.join(AUTH_DIR, "auth.json");
|
|
46401
47824
|
var CONFIG_FILE = "releasekit.config.json";
|
|
46402
47825
|
function loadConfigFile(configPath) {
|
|
@@ -46776,7 +48199,7 @@ async function runRelease(inputOptions) {
|
|
|
46776
48199
|
return null;
|
|
46777
48200
|
}
|
|
46778
48201
|
if (!options.dryRun) {
|
|
46779
|
-
const { flushPendingWrites: flushPendingWrites2 } = await Promise.resolve().then(() => (
|
|
48202
|
+
const { flushPendingWrites: flushPendingWrites2 } = await Promise.resolve().then(() => (init_dist14(), dist_exports4));
|
|
46780
48203
|
flushPendingWrites2();
|
|
46781
48204
|
}
|
|
46782
48205
|
info(`Found ${versionOutput.updates.length} package update(s)`);
|
|
@@ -46805,7 +48228,7 @@ async function runRelease(inputOptions) {
|
|
|
46805
48228
|
return { versionOutput, notesGenerated, packageNotes, releaseNotes, publishOutput };
|
|
46806
48229
|
}
|
|
46807
48230
|
async function runVersionStep(options) {
|
|
46808
|
-
const { loadConfig: loadConfig5, VersionEngine: VersionEngine2, enableJsonOutput: enableJsonOutput2, getJsonData: getJsonData2 } = await Promise.resolve().then(() => (
|
|
48231
|
+
const { loadConfig: loadConfig5, VersionEngine: VersionEngine2, enableJsonOutput: enableJsonOutput2, getJsonData: getJsonData2 } = await Promise.resolve().then(() => (init_dist14(), dist_exports4));
|
|
46809
48232
|
enableJsonOutput2(options.dryRun);
|
|
46810
48233
|
const config = loadConfig5({ cwd: options.projectDir, configPath: options.config });
|
|
46811
48234
|
if (options.dryRun) config.dryRun = true;
|
|
@@ -46838,14 +48261,14 @@ async function runVersionStep(options) {
|
|
|
46838
48261
|
return getJsonData2();
|
|
46839
48262
|
}
|
|
46840
48263
|
async function runNotesStep(versionOutput, options) {
|
|
46841
|
-
const { parseVersionOutput: parseVersionOutput2, runPipeline: runPipeline3, loadConfig: loadConfig5 } = await Promise.resolve().then(() => (
|
|
48264
|
+
const { parseVersionOutput: parseVersionOutput2, runPipeline: runPipeline3, loadConfig: loadConfig5 } = await Promise.resolve().then(() => (init_dist15(), dist_exports5));
|
|
46842
48265
|
const config = loadConfig5(options.projectDir, options.config);
|
|
46843
48266
|
const input = parseVersionOutput2(JSON.stringify(versionOutput));
|
|
46844
48267
|
const result = await runPipeline3(input, config, options.dryRun);
|
|
46845
48268
|
return { packageNotes: result.packageNotes, releaseNotes: result.releaseNotes, files: result.files };
|
|
46846
48269
|
}
|
|
46847
48270
|
async function runPublishStep(versionOutput, options, releaseNotes, additionalFiles) {
|
|
46848
|
-
const { runPipeline: runPipeline3, loadConfig: loadConfig5 } = await Promise.resolve().then(() => (
|
|
48271
|
+
const { runPipeline: runPipeline3, loadConfig: loadConfig5 } = await Promise.resolve().then(() => (init_dist16(), dist_exports6));
|
|
46849
48272
|
const config = loadConfig5({ configPath: options.config });
|
|
46850
48273
|
if (options.branch) {
|
|
46851
48274
|
config.git.branch = options.branch;
|
|
@@ -47087,6 +48510,43 @@ export {
|
|
|
47087
48510
|
};
|
|
47088
48511
|
/*! Bundled license information:
|
|
47089
48512
|
|
|
48513
|
+
smol-toml/dist/error.js:
|
|
48514
|
+
smol-toml/dist/util.js:
|
|
48515
|
+
smol-toml/dist/date.js:
|
|
48516
|
+
smol-toml/dist/primitive.js:
|
|
48517
|
+
smol-toml/dist/extract.js:
|
|
48518
|
+
smol-toml/dist/struct.js:
|
|
48519
|
+
smol-toml/dist/parse.js:
|
|
48520
|
+
smol-toml/dist/stringify.js:
|
|
48521
|
+
smol-toml/dist/index.js:
|
|
48522
|
+
(*!
|
|
48523
|
+
* Copyright (c) Squirrel Chat et al., All rights reserved.
|
|
48524
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
48525
|
+
*
|
|
48526
|
+
* Redistribution and use in source and binary forms, with or without
|
|
48527
|
+
* modification, are permitted provided that the following conditions are met:
|
|
48528
|
+
*
|
|
48529
|
+
* 1. Redistributions of source code must retain the above copyright notice, this
|
|
48530
|
+
* list of conditions and the following disclaimer.
|
|
48531
|
+
* 2. Redistributions in binary form must reproduce the above copyright notice,
|
|
48532
|
+
* this list of conditions and the following disclaimer in the
|
|
48533
|
+
* documentation and/or other materials provided with the distribution.
|
|
48534
|
+
* 3. Neither the name of the copyright holder nor the names of its contributors
|
|
48535
|
+
* may be used to endorse or promote products derived from this software without
|
|
48536
|
+
* specific prior written permission.
|
|
48537
|
+
*
|
|
48538
|
+
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
|
|
48539
|
+
* ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
|
48540
|
+
* WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
|
48541
|
+
* DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
|
|
48542
|
+
* FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
|
48543
|
+
* DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
|
|
48544
|
+
* SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
|
|
48545
|
+
* CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
|
|
48546
|
+
* OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
|
48547
|
+
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
48548
|
+
*)
|
|
48549
|
+
|
|
47090
48550
|
js-yaml/dist/js-yaml.mjs:
|
|
47091
48551
|
(*! js-yaml 4.1.1 https://github.com/nodeca/js-yaml @license MIT *)
|
|
47092
48552
|
|