@releasekit/release 0.7.16 → 0.7.17
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 +626 -106
- package/dist/dispatcher.js +626 -106
- package/package.json +4 -4
package/dist/dispatcher.js
CHANGED
|
@@ -40,8 +40,527 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
40
40
|
mod
|
|
41
41
|
));
|
|
42
42
|
|
|
43
|
+
// ../../node_modules/.pnpm/chalk@5.6.2/node_modules/chalk/source/vendor/ansi-styles/index.js
|
|
44
|
+
function assembleStyles() {
|
|
45
|
+
const codes = /* @__PURE__ */ new Map();
|
|
46
|
+
for (const [groupName, group] of Object.entries(styles)) {
|
|
47
|
+
for (const [styleName, style] of Object.entries(group)) {
|
|
48
|
+
styles[styleName] = {
|
|
49
|
+
open: `\x1B[${style[0]}m`,
|
|
50
|
+
close: `\x1B[${style[1]}m`
|
|
51
|
+
};
|
|
52
|
+
group[styleName] = styles[styleName];
|
|
53
|
+
codes.set(style[0], style[1]);
|
|
54
|
+
}
|
|
55
|
+
Object.defineProperty(styles, groupName, {
|
|
56
|
+
value: group,
|
|
57
|
+
enumerable: false
|
|
58
|
+
});
|
|
59
|
+
}
|
|
60
|
+
Object.defineProperty(styles, "codes", {
|
|
61
|
+
value: codes,
|
|
62
|
+
enumerable: false
|
|
63
|
+
});
|
|
64
|
+
styles.color.close = "\x1B[39m";
|
|
65
|
+
styles.bgColor.close = "\x1B[49m";
|
|
66
|
+
styles.color.ansi = wrapAnsi16();
|
|
67
|
+
styles.color.ansi256 = wrapAnsi256();
|
|
68
|
+
styles.color.ansi16m = wrapAnsi16m();
|
|
69
|
+
styles.bgColor.ansi = wrapAnsi16(ANSI_BACKGROUND_OFFSET);
|
|
70
|
+
styles.bgColor.ansi256 = wrapAnsi256(ANSI_BACKGROUND_OFFSET);
|
|
71
|
+
styles.bgColor.ansi16m = wrapAnsi16m(ANSI_BACKGROUND_OFFSET);
|
|
72
|
+
Object.defineProperties(styles, {
|
|
73
|
+
rgbToAnsi256: {
|
|
74
|
+
value(red, green, blue) {
|
|
75
|
+
if (red === green && green === blue) {
|
|
76
|
+
if (red < 8) {
|
|
77
|
+
return 16;
|
|
78
|
+
}
|
|
79
|
+
if (red > 248) {
|
|
80
|
+
return 231;
|
|
81
|
+
}
|
|
82
|
+
return Math.round((red - 8) / 247 * 24) + 232;
|
|
83
|
+
}
|
|
84
|
+
return 16 + 36 * Math.round(red / 255 * 5) + 6 * Math.round(green / 255 * 5) + Math.round(blue / 255 * 5);
|
|
85
|
+
},
|
|
86
|
+
enumerable: false
|
|
87
|
+
},
|
|
88
|
+
hexToRgb: {
|
|
89
|
+
value(hex) {
|
|
90
|
+
const matches = /[a-f\d]{6}|[a-f\d]{3}/i.exec(hex.toString(16));
|
|
91
|
+
if (!matches) {
|
|
92
|
+
return [0, 0, 0];
|
|
93
|
+
}
|
|
94
|
+
let [colorString] = matches;
|
|
95
|
+
if (colorString.length === 3) {
|
|
96
|
+
colorString = [...colorString].map((character) => character + character).join("");
|
|
97
|
+
}
|
|
98
|
+
const integer = Number.parseInt(colorString, 16);
|
|
99
|
+
return [
|
|
100
|
+
/* eslint-disable no-bitwise */
|
|
101
|
+
integer >> 16 & 255,
|
|
102
|
+
integer >> 8 & 255,
|
|
103
|
+
integer & 255
|
|
104
|
+
/* eslint-enable no-bitwise */
|
|
105
|
+
];
|
|
106
|
+
},
|
|
107
|
+
enumerable: false
|
|
108
|
+
},
|
|
109
|
+
hexToAnsi256: {
|
|
110
|
+
value: (hex) => styles.rgbToAnsi256(...styles.hexToRgb(hex)),
|
|
111
|
+
enumerable: false
|
|
112
|
+
},
|
|
113
|
+
ansi256ToAnsi: {
|
|
114
|
+
value(code) {
|
|
115
|
+
if (code < 8) {
|
|
116
|
+
return 30 + code;
|
|
117
|
+
}
|
|
118
|
+
if (code < 16) {
|
|
119
|
+
return 90 + (code - 8);
|
|
120
|
+
}
|
|
121
|
+
let red;
|
|
122
|
+
let green;
|
|
123
|
+
let blue;
|
|
124
|
+
if (code >= 232) {
|
|
125
|
+
red = ((code - 232) * 10 + 8) / 255;
|
|
126
|
+
green = red;
|
|
127
|
+
blue = red;
|
|
128
|
+
} else {
|
|
129
|
+
code -= 16;
|
|
130
|
+
const remainder = code % 36;
|
|
131
|
+
red = Math.floor(code / 36) / 5;
|
|
132
|
+
green = Math.floor(remainder / 6) / 5;
|
|
133
|
+
blue = remainder % 6 / 5;
|
|
134
|
+
}
|
|
135
|
+
const value = Math.max(red, green, blue) * 2;
|
|
136
|
+
if (value === 0) {
|
|
137
|
+
return 30;
|
|
138
|
+
}
|
|
139
|
+
let result = 30 + (Math.round(blue) << 2 | Math.round(green) << 1 | Math.round(red));
|
|
140
|
+
if (value === 2) {
|
|
141
|
+
result += 60;
|
|
142
|
+
}
|
|
143
|
+
return result;
|
|
144
|
+
},
|
|
145
|
+
enumerable: false
|
|
146
|
+
},
|
|
147
|
+
rgbToAnsi: {
|
|
148
|
+
value: (red, green, blue) => styles.ansi256ToAnsi(styles.rgbToAnsi256(red, green, blue)),
|
|
149
|
+
enumerable: false
|
|
150
|
+
},
|
|
151
|
+
hexToAnsi: {
|
|
152
|
+
value: (hex) => styles.ansi256ToAnsi(styles.hexToAnsi256(hex)),
|
|
153
|
+
enumerable: false
|
|
154
|
+
}
|
|
155
|
+
});
|
|
156
|
+
return styles;
|
|
157
|
+
}
|
|
158
|
+
var ANSI_BACKGROUND_OFFSET, wrapAnsi16, wrapAnsi256, wrapAnsi16m, styles, modifierNames, foregroundColorNames, backgroundColorNames, colorNames, ansiStyles, ansi_styles_default;
|
|
159
|
+
var init_ansi_styles = __esm({
|
|
160
|
+
"../../node_modules/.pnpm/chalk@5.6.2/node_modules/chalk/source/vendor/ansi-styles/index.js"() {
|
|
161
|
+
"use strict";
|
|
162
|
+
ANSI_BACKGROUND_OFFSET = 10;
|
|
163
|
+
wrapAnsi16 = (offset2 = 0) => (code) => `\x1B[${code + offset2}m`;
|
|
164
|
+
wrapAnsi256 = (offset2 = 0) => (code) => `\x1B[${38 + offset2};5;${code}m`;
|
|
165
|
+
wrapAnsi16m = (offset2 = 0) => (red, green, blue) => `\x1B[${38 + offset2};2;${red};${green};${blue}m`;
|
|
166
|
+
styles = {
|
|
167
|
+
modifier: {
|
|
168
|
+
reset: [0, 0],
|
|
169
|
+
// 21 isn't widely supported and 22 does the same thing
|
|
170
|
+
bold: [1, 22],
|
|
171
|
+
dim: [2, 22],
|
|
172
|
+
italic: [3, 23],
|
|
173
|
+
underline: [4, 24],
|
|
174
|
+
overline: [53, 55],
|
|
175
|
+
inverse: [7, 27],
|
|
176
|
+
hidden: [8, 28],
|
|
177
|
+
strikethrough: [9, 29]
|
|
178
|
+
},
|
|
179
|
+
color: {
|
|
180
|
+
black: [30, 39],
|
|
181
|
+
red: [31, 39],
|
|
182
|
+
green: [32, 39],
|
|
183
|
+
yellow: [33, 39],
|
|
184
|
+
blue: [34, 39],
|
|
185
|
+
magenta: [35, 39],
|
|
186
|
+
cyan: [36, 39],
|
|
187
|
+
white: [37, 39],
|
|
188
|
+
// Bright color
|
|
189
|
+
blackBright: [90, 39],
|
|
190
|
+
gray: [90, 39],
|
|
191
|
+
// Alias of `blackBright`
|
|
192
|
+
grey: [90, 39],
|
|
193
|
+
// Alias of `blackBright`
|
|
194
|
+
redBright: [91, 39],
|
|
195
|
+
greenBright: [92, 39],
|
|
196
|
+
yellowBright: [93, 39],
|
|
197
|
+
blueBright: [94, 39],
|
|
198
|
+
magentaBright: [95, 39],
|
|
199
|
+
cyanBright: [96, 39],
|
|
200
|
+
whiteBright: [97, 39]
|
|
201
|
+
},
|
|
202
|
+
bgColor: {
|
|
203
|
+
bgBlack: [40, 49],
|
|
204
|
+
bgRed: [41, 49],
|
|
205
|
+
bgGreen: [42, 49],
|
|
206
|
+
bgYellow: [43, 49],
|
|
207
|
+
bgBlue: [44, 49],
|
|
208
|
+
bgMagenta: [45, 49],
|
|
209
|
+
bgCyan: [46, 49],
|
|
210
|
+
bgWhite: [47, 49],
|
|
211
|
+
// Bright color
|
|
212
|
+
bgBlackBright: [100, 49],
|
|
213
|
+
bgGray: [100, 49],
|
|
214
|
+
// Alias of `bgBlackBright`
|
|
215
|
+
bgGrey: [100, 49],
|
|
216
|
+
// Alias of `bgBlackBright`
|
|
217
|
+
bgRedBright: [101, 49],
|
|
218
|
+
bgGreenBright: [102, 49],
|
|
219
|
+
bgYellowBright: [103, 49],
|
|
220
|
+
bgBlueBright: [104, 49],
|
|
221
|
+
bgMagentaBright: [105, 49],
|
|
222
|
+
bgCyanBright: [106, 49],
|
|
223
|
+
bgWhiteBright: [107, 49]
|
|
224
|
+
}
|
|
225
|
+
};
|
|
226
|
+
modifierNames = Object.keys(styles.modifier);
|
|
227
|
+
foregroundColorNames = Object.keys(styles.color);
|
|
228
|
+
backgroundColorNames = Object.keys(styles.bgColor);
|
|
229
|
+
colorNames = [...foregroundColorNames, ...backgroundColorNames];
|
|
230
|
+
ansiStyles = assembleStyles();
|
|
231
|
+
ansi_styles_default = ansiStyles;
|
|
232
|
+
}
|
|
233
|
+
});
|
|
234
|
+
|
|
235
|
+
// ../../node_modules/.pnpm/chalk@5.6.2/node_modules/chalk/source/vendor/supports-color/index.js
|
|
236
|
+
import process2 from "process";
|
|
237
|
+
import os from "os";
|
|
238
|
+
import tty from "tty";
|
|
239
|
+
function hasFlag(flag, argv = globalThis.Deno ? globalThis.Deno.args : process2.argv) {
|
|
240
|
+
const prefix = flag.startsWith("-") ? "" : flag.length === 1 ? "-" : "--";
|
|
241
|
+
const position = argv.indexOf(prefix + flag);
|
|
242
|
+
const terminatorPosition = argv.indexOf("--");
|
|
243
|
+
return position !== -1 && (terminatorPosition === -1 || position < terminatorPosition);
|
|
244
|
+
}
|
|
245
|
+
function envForceColor() {
|
|
246
|
+
if ("FORCE_COLOR" in env) {
|
|
247
|
+
if (env.FORCE_COLOR === "true") {
|
|
248
|
+
return 1;
|
|
249
|
+
}
|
|
250
|
+
if (env.FORCE_COLOR === "false") {
|
|
251
|
+
return 0;
|
|
252
|
+
}
|
|
253
|
+
return env.FORCE_COLOR.length === 0 ? 1 : Math.min(Number.parseInt(env.FORCE_COLOR, 10), 3);
|
|
254
|
+
}
|
|
255
|
+
}
|
|
256
|
+
function translateLevel(level) {
|
|
257
|
+
if (level === 0) {
|
|
258
|
+
return false;
|
|
259
|
+
}
|
|
260
|
+
return {
|
|
261
|
+
level,
|
|
262
|
+
hasBasic: true,
|
|
263
|
+
has256: level >= 2,
|
|
264
|
+
has16m: level >= 3
|
|
265
|
+
};
|
|
266
|
+
}
|
|
267
|
+
function _supportsColor(haveStream, { streamIsTTY, sniffFlags = true } = {}) {
|
|
268
|
+
const noFlagForceColor = envForceColor();
|
|
269
|
+
if (noFlagForceColor !== void 0) {
|
|
270
|
+
flagForceColor = noFlagForceColor;
|
|
271
|
+
}
|
|
272
|
+
const forceColor = sniffFlags ? flagForceColor : noFlagForceColor;
|
|
273
|
+
if (forceColor === 0) {
|
|
274
|
+
return 0;
|
|
275
|
+
}
|
|
276
|
+
if (sniffFlags) {
|
|
277
|
+
if (hasFlag("color=16m") || hasFlag("color=full") || hasFlag("color=truecolor")) {
|
|
278
|
+
return 3;
|
|
279
|
+
}
|
|
280
|
+
if (hasFlag("color=256")) {
|
|
281
|
+
return 2;
|
|
282
|
+
}
|
|
283
|
+
}
|
|
284
|
+
if ("TF_BUILD" in env && "AGENT_NAME" in env) {
|
|
285
|
+
return 1;
|
|
286
|
+
}
|
|
287
|
+
if (haveStream && !streamIsTTY && forceColor === void 0) {
|
|
288
|
+
return 0;
|
|
289
|
+
}
|
|
290
|
+
const min = forceColor || 0;
|
|
291
|
+
if (env.TERM === "dumb") {
|
|
292
|
+
return min;
|
|
293
|
+
}
|
|
294
|
+
if (process2.platform === "win32") {
|
|
295
|
+
const osRelease = os.release().split(".");
|
|
296
|
+
if (Number(osRelease[0]) >= 10 && Number(osRelease[2]) >= 10586) {
|
|
297
|
+
return Number(osRelease[2]) >= 14931 ? 3 : 2;
|
|
298
|
+
}
|
|
299
|
+
return 1;
|
|
300
|
+
}
|
|
301
|
+
if ("CI" in env) {
|
|
302
|
+
if (["GITHUB_ACTIONS", "GITEA_ACTIONS", "CIRCLECI"].some((key) => key in env)) {
|
|
303
|
+
return 3;
|
|
304
|
+
}
|
|
305
|
+
if (["TRAVIS", "APPVEYOR", "GITLAB_CI", "BUILDKITE", "DRONE"].some((sign) => sign in env) || env.CI_NAME === "codeship") {
|
|
306
|
+
return 1;
|
|
307
|
+
}
|
|
308
|
+
return min;
|
|
309
|
+
}
|
|
310
|
+
if ("TEAMCITY_VERSION" in env) {
|
|
311
|
+
return /^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(env.TEAMCITY_VERSION) ? 1 : 0;
|
|
312
|
+
}
|
|
313
|
+
if (env.COLORTERM === "truecolor") {
|
|
314
|
+
return 3;
|
|
315
|
+
}
|
|
316
|
+
if (env.TERM === "xterm-kitty") {
|
|
317
|
+
return 3;
|
|
318
|
+
}
|
|
319
|
+
if (env.TERM === "xterm-ghostty") {
|
|
320
|
+
return 3;
|
|
321
|
+
}
|
|
322
|
+
if (env.TERM === "wezterm") {
|
|
323
|
+
return 3;
|
|
324
|
+
}
|
|
325
|
+
if ("TERM_PROGRAM" in env) {
|
|
326
|
+
const version = Number.parseInt((env.TERM_PROGRAM_VERSION || "").split(".")[0], 10);
|
|
327
|
+
switch (env.TERM_PROGRAM) {
|
|
328
|
+
case "iTerm.app": {
|
|
329
|
+
return version >= 3 ? 3 : 2;
|
|
330
|
+
}
|
|
331
|
+
case "Apple_Terminal": {
|
|
332
|
+
return 2;
|
|
333
|
+
}
|
|
334
|
+
}
|
|
335
|
+
}
|
|
336
|
+
if (/-256(color)?$/i.test(env.TERM)) {
|
|
337
|
+
return 2;
|
|
338
|
+
}
|
|
339
|
+
if (/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(env.TERM)) {
|
|
340
|
+
return 1;
|
|
341
|
+
}
|
|
342
|
+
if ("COLORTERM" in env) {
|
|
343
|
+
return 1;
|
|
344
|
+
}
|
|
345
|
+
return min;
|
|
346
|
+
}
|
|
347
|
+
function createSupportsColor(stream, options = {}) {
|
|
348
|
+
const level = _supportsColor(stream, {
|
|
349
|
+
streamIsTTY: stream && stream.isTTY,
|
|
350
|
+
...options
|
|
351
|
+
});
|
|
352
|
+
return translateLevel(level);
|
|
353
|
+
}
|
|
354
|
+
var env, flagForceColor, supportsColor, supports_color_default;
|
|
355
|
+
var init_supports_color = __esm({
|
|
356
|
+
"../../node_modules/.pnpm/chalk@5.6.2/node_modules/chalk/source/vendor/supports-color/index.js"() {
|
|
357
|
+
"use strict";
|
|
358
|
+
({ env } = process2);
|
|
359
|
+
if (hasFlag("no-color") || hasFlag("no-colors") || hasFlag("color=false") || hasFlag("color=never")) {
|
|
360
|
+
flagForceColor = 0;
|
|
361
|
+
} else if (hasFlag("color") || hasFlag("colors") || hasFlag("color=true") || hasFlag("color=always")) {
|
|
362
|
+
flagForceColor = 1;
|
|
363
|
+
}
|
|
364
|
+
supportsColor = {
|
|
365
|
+
stdout: createSupportsColor({ isTTY: tty.isatty(1) }),
|
|
366
|
+
stderr: createSupportsColor({ isTTY: tty.isatty(2) })
|
|
367
|
+
};
|
|
368
|
+
supports_color_default = supportsColor;
|
|
369
|
+
}
|
|
370
|
+
});
|
|
371
|
+
|
|
372
|
+
// ../../node_modules/.pnpm/chalk@5.6.2/node_modules/chalk/source/utilities.js
|
|
373
|
+
function stringReplaceAll(string, substring, replacer) {
|
|
374
|
+
let index = string.indexOf(substring);
|
|
375
|
+
if (index === -1) {
|
|
376
|
+
return string;
|
|
377
|
+
}
|
|
378
|
+
const substringLength = substring.length;
|
|
379
|
+
let endIndex = 0;
|
|
380
|
+
let returnValue = "";
|
|
381
|
+
do {
|
|
382
|
+
returnValue += string.slice(endIndex, index) + substring + replacer;
|
|
383
|
+
endIndex = index + substringLength;
|
|
384
|
+
index = string.indexOf(substring, endIndex);
|
|
385
|
+
} while (index !== -1);
|
|
386
|
+
returnValue += string.slice(endIndex);
|
|
387
|
+
return returnValue;
|
|
388
|
+
}
|
|
389
|
+
function stringEncaseCRLFWithFirstIndex(string, prefix, postfix, index) {
|
|
390
|
+
let endIndex = 0;
|
|
391
|
+
let returnValue = "";
|
|
392
|
+
do {
|
|
393
|
+
const gotCR = string[index - 1] === "\r";
|
|
394
|
+
returnValue += string.slice(endIndex, gotCR ? index - 1 : index) + prefix + (gotCR ? "\r\n" : "\n") + postfix;
|
|
395
|
+
endIndex = index + 1;
|
|
396
|
+
index = string.indexOf("\n", endIndex);
|
|
397
|
+
} while (index !== -1);
|
|
398
|
+
returnValue += string.slice(endIndex);
|
|
399
|
+
return returnValue;
|
|
400
|
+
}
|
|
401
|
+
var init_utilities = __esm({
|
|
402
|
+
"../../node_modules/.pnpm/chalk@5.6.2/node_modules/chalk/source/utilities.js"() {
|
|
403
|
+
"use strict";
|
|
404
|
+
}
|
|
405
|
+
});
|
|
406
|
+
|
|
407
|
+
// ../../node_modules/.pnpm/chalk@5.6.2/node_modules/chalk/source/index.js
|
|
408
|
+
function createChalk(options) {
|
|
409
|
+
return chalkFactory(options);
|
|
410
|
+
}
|
|
411
|
+
var stdoutColor, stderrColor, GENERATOR, STYLER, IS_EMPTY, levelMapping, styles2, applyOptions, chalkFactory, getModelAnsi, usedModels, proto, createStyler, createBuilder, applyStyle, chalk, chalkStderr, source_default;
|
|
412
|
+
var init_source = __esm({
|
|
413
|
+
"../../node_modules/.pnpm/chalk@5.6.2/node_modules/chalk/source/index.js"() {
|
|
414
|
+
"use strict";
|
|
415
|
+
init_ansi_styles();
|
|
416
|
+
init_supports_color();
|
|
417
|
+
init_utilities();
|
|
418
|
+
({ stdout: stdoutColor, stderr: stderrColor } = supports_color_default);
|
|
419
|
+
GENERATOR = /* @__PURE__ */ Symbol("GENERATOR");
|
|
420
|
+
STYLER = /* @__PURE__ */ Symbol("STYLER");
|
|
421
|
+
IS_EMPTY = /* @__PURE__ */ Symbol("IS_EMPTY");
|
|
422
|
+
levelMapping = [
|
|
423
|
+
"ansi",
|
|
424
|
+
"ansi",
|
|
425
|
+
"ansi256",
|
|
426
|
+
"ansi16m"
|
|
427
|
+
];
|
|
428
|
+
styles2 = /* @__PURE__ */ Object.create(null);
|
|
429
|
+
applyOptions = (object, options = {}) => {
|
|
430
|
+
if (options.level && !(Number.isInteger(options.level) && options.level >= 0 && options.level <= 3)) {
|
|
431
|
+
throw new Error("The `level` option should be an integer from 0 to 3");
|
|
432
|
+
}
|
|
433
|
+
const colorLevel = stdoutColor ? stdoutColor.level : 0;
|
|
434
|
+
object.level = options.level === void 0 ? colorLevel : options.level;
|
|
435
|
+
};
|
|
436
|
+
chalkFactory = (options) => {
|
|
437
|
+
const chalk2 = (...strings) => strings.join(" ");
|
|
438
|
+
applyOptions(chalk2, options);
|
|
439
|
+
Object.setPrototypeOf(chalk2, createChalk.prototype);
|
|
440
|
+
return chalk2;
|
|
441
|
+
};
|
|
442
|
+
Object.setPrototypeOf(createChalk.prototype, Function.prototype);
|
|
443
|
+
for (const [styleName, style] of Object.entries(ansi_styles_default)) {
|
|
444
|
+
styles2[styleName] = {
|
|
445
|
+
get() {
|
|
446
|
+
const builder = createBuilder(this, createStyler(style.open, style.close, this[STYLER]), this[IS_EMPTY]);
|
|
447
|
+
Object.defineProperty(this, styleName, { value: builder });
|
|
448
|
+
return builder;
|
|
449
|
+
}
|
|
450
|
+
};
|
|
451
|
+
}
|
|
452
|
+
styles2.visible = {
|
|
453
|
+
get() {
|
|
454
|
+
const builder = createBuilder(this, this[STYLER], true);
|
|
455
|
+
Object.defineProperty(this, "visible", { value: builder });
|
|
456
|
+
return builder;
|
|
457
|
+
}
|
|
458
|
+
};
|
|
459
|
+
getModelAnsi = (model, level, type2, ...arguments_) => {
|
|
460
|
+
if (model === "rgb") {
|
|
461
|
+
if (level === "ansi16m") {
|
|
462
|
+
return ansi_styles_default[type2].ansi16m(...arguments_);
|
|
463
|
+
}
|
|
464
|
+
if (level === "ansi256") {
|
|
465
|
+
return ansi_styles_default[type2].ansi256(ansi_styles_default.rgbToAnsi256(...arguments_));
|
|
466
|
+
}
|
|
467
|
+
return ansi_styles_default[type2].ansi(ansi_styles_default.rgbToAnsi(...arguments_));
|
|
468
|
+
}
|
|
469
|
+
if (model === "hex") {
|
|
470
|
+
return getModelAnsi("rgb", level, type2, ...ansi_styles_default.hexToRgb(...arguments_));
|
|
471
|
+
}
|
|
472
|
+
return ansi_styles_default[type2][model](...arguments_);
|
|
473
|
+
};
|
|
474
|
+
usedModels = ["rgb", "hex", "ansi256"];
|
|
475
|
+
for (const model of usedModels) {
|
|
476
|
+
styles2[model] = {
|
|
477
|
+
get() {
|
|
478
|
+
const { level } = this;
|
|
479
|
+
return function(...arguments_) {
|
|
480
|
+
const styler = createStyler(getModelAnsi(model, levelMapping[level], "color", ...arguments_), ansi_styles_default.color.close, this[STYLER]);
|
|
481
|
+
return createBuilder(this, styler, this[IS_EMPTY]);
|
|
482
|
+
};
|
|
483
|
+
}
|
|
484
|
+
};
|
|
485
|
+
const bgModel = "bg" + model[0].toUpperCase() + model.slice(1);
|
|
486
|
+
styles2[bgModel] = {
|
|
487
|
+
get() {
|
|
488
|
+
const { level } = this;
|
|
489
|
+
return function(...arguments_) {
|
|
490
|
+
const styler = createStyler(getModelAnsi(model, levelMapping[level], "bgColor", ...arguments_), ansi_styles_default.bgColor.close, this[STYLER]);
|
|
491
|
+
return createBuilder(this, styler, this[IS_EMPTY]);
|
|
492
|
+
};
|
|
493
|
+
}
|
|
494
|
+
};
|
|
495
|
+
}
|
|
496
|
+
proto = Object.defineProperties(() => {
|
|
497
|
+
}, {
|
|
498
|
+
...styles2,
|
|
499
|
+
level: {
|
|
500
|
+
enumerable: true,
|
|
501
|
+
get() {
|
|
502
|
+
return this[GENERATOR].level;
|
|
503
|
+
},
|
|
504
|
+
set(level) {
|
|
505
|
+
this[GENERATOR].level = level;
|
|
506
|
+
}
|
|
507
|
+
}
|
|
508
|
+
});
|
|
509
|
+
createStyler = (open, close, parent) => {
|
|
510
|
+
let openAll;
|
|
511
|
+
let closeAll;
|
|
512
|
+
if (parent === void 0) {
|
|
513
|
+
openAll = open;
|
|
514
|
+
closeAll = close;
|
|
515
|
+
} else {
|
|
516
|
+
openAll = parent.openAll + open;
|
|
517
|
+
closeAll = close + parent.closeAll;
|
|
518
|
+
}
|
|
519
|
+
return {
|
|
520
|
+
open,
|
|
521
|
+
close,
|
|
522
|
+
openAll,
|
|
523
|
+
closeAll,
|
|
524
|
+
parent
|
|
525
|
+
};
|
|
526
|
+
};
|
|
527
|
+
createBuilder = (self, _styler, _isEmpty) => {
|
|
528
|
+
const builder = (...arguments_) => applyStyle(builder, arguments_.length === 1 ? "" + arguments_[0] : arguments_.join(" "));
|
|
529
|
+
Object.setPrototypeOf(builder, proto);
|
|
530
|
+
builder[GENERATOR] = self;
|
|
531
|
+
builder[STYLER] = _styler;
|
|
532
|
+
builder[IS_EMPTY] = _isEmpty;
|
|
533
|
+
return builder;
|
|
534
|
+
};
|
|
535
|
+
applyStyle = (self, string) => {
|
|
536
|
+
if (self.level <= 0 || !string) {
|
|
537
|
+
return self[IS_EMPTY] ? "" : string;
|
|
538
|
+
}
|
|
539
|
+
let styler = self[STYLER];
|
|
540
|
+
if (styler === void 0) {
|
|
541
|
+
return string;
|
|
542
|
+
}
|
|
543
|
+
const { openAll, closeAll } = styler;
|
|
544
|
+
if (string.includes("\x1B")) {
|
|
545
|
+
while (styler !== void 0) {
|
|
546
|
+
string = stringReplaceAll(string, styler.close, styler.open);
|
|
547
|
+
styler = styler.parent;
|
|
548
|
+
}
|
|
549
|
+
}
|
|
550
|
+
const lfIndex = string.indexOf("\n");
|
|
551
|
+
if (lfIndex !== -1) {
|
|
552
|
+
string = stringEncaseCRLFWithFirstIndex(string, closeAll, openAll, lfIndex);
|
|
553
|
+
}
|
|
554
|
+
return openAll + string + closeAll;
|
|
555
|
+
};
|
|
556
|
+
Object.defineProperties(createChalk.prototype, styles2);
|
|
557
|
+
chalk = createChalk();
|
|
558
|
+
chalkStderr = createChalk({ level: stderrColor ? stderrColor.level : 0 });
|
|
559
|
+
source_default = chalk;
|
|
560
|
+
}
|
|
561
|
+
});
|
|
562
|
+
|
|
43
563
|
// ../notes/dist/chunk-7TJSPQPW.js
|
|
44
|
-
import chalk2 from "chalk";
|
|
45
564
|
import * as fs2 from "fs";
|
|
46
565
|
import * as path2 from "path";
|
|
47
566
|
function setLogLevel2(level) {
|
|
@@ -70,7 +589,7 @@ function info2(message) {
|
|
|
70
589
|
}
|
|
71
590
|
function success2(message) {
|
|
72
591
|
if (!shouldLog2("info")) return;
|
|
73
|
-
console.error(
|
|
592
|
+
console.error(source_default.green(`[SUCCESS] ${message}`));
|
|
74
593
|
}
|
|
75
594
|
function debug(message) {
|
|
76
595
|
log2(message, "debug");
|
|
@@ -193,6 +712,7 @@ var LOG_LEVELS2, PREFIXES2, COLORS2, currentLevel2, quietMode2, ReleaseKitError2
|
|
|
193
712
|
var init_chunk_7TJSPQPW = __esm({
|
|
194
713
|
"../notes/dist/chunk-7TJSPQPW.js"() {
|
|
195
714
|
"use strict";
|
|
715
|
+
init_source();
|
|
196
716
|
LOG_LEVELS2 = {
|
|
197
717
|
error: 0,
|
|
198
718
|
warn: 1,
|
|
@@ -208,11 +728,11 @@ var init_chunk_7TJSPQPW = __esm({
|
|
|
208
728
|
trace: "[TRACE]"
|
|
209
729
|
};
|
|
210
730
|
COLORS2 = {
|
|
211
|
-
error:
|
|
212
|
-
warn:
|
|
213
|
-
info:
|
|
214
|
-
debug:
|
|
215
|
-
trace:
|
|
731
|
+
error: source_default.red,
|
|
732
|
+
warn: source_default.yellow,
|
|
733
|
+
info: source_default.blue,
|
|
734
|
+
debug: source_default.gray,
|
|
735
|
+
trace: source_default.dim
|
|
216
736
|
};
|
|
217
737
|
currentLevel2 = "info";
|
|
218
738
|
quietMode2 = false;
|
|
@@ -1515,8 +2035,8 @@ var init_uploads = __esm({
|
|
|
1515
2035
|
init_shims();
|
|
1516
2036
|
checkFileSupport = () => {
|
|
1517
2037
|
if (typeof File === "undefined") {
|
|
1518
|
-
const { process:
|
|
1519
|
-
const isOldNode = typeof
|
|
2038
|
+
const { process: process3 } = globalThis;
|
|
2039
|
+
const isOldNode = typeof process3?.versions?.node === "string" && parseInt(process3.versions.node.split(".")) < 20;
|
|
1520
2040
|
throw new Error("`File` is not defined as a global, which is required for file uploads." + (isOldNode ? " Update to Node 20 LTS or newer, or set `globalThis.File` to `import('node:buffer').File`." : ""));
|
|
1521
2041
|
}
|
|
1522
2042
|
};
|
|
@@ -4998,12 +5518,12 @@ var readEnv;
|
|
|
4998
5518
|
var init_env = __esm({
|
|
4999
5519
|
"../../node_modules/.pnpm/@anthropic-ai+sdk@0.82.0_zod@4.3.6/node_modules/@anthropic-ai/sdk/internal/utils/env.mjs"() {
|
|
5000
5520
|
"use strict";
|
|
5001
|
-
readEnv = (
|
|
5521
|
+
readEnv = (env2) => {
|
|
5002
5522
|
if (typeof globalThis.process !== "undefined") {
|
|
5003
|
-
return globalThis.process.env?.[
|
|
5523
|
+
return globalThis.process.env?.[env2]?.trim() ?? void 0;
|
|
5004
5524
|
}
|
|
5005
5525
|
if (typeof globalThis.Deno !== "undefined") {
|
|
5006
|
-
return globalThis.Deno.env?.get?.(
|
|
5526
|
+
return globalThis.Deno.env?.get?.(env2)?.trim();
|
|
5007
5527
|
}
|
|
5008
5528
|
return void 0;
|
|
5009
5529
|
};
|
|
@@ -7181,8 +7701,8 @@ var init_uploads3 = __esm({
|
|
|
7181
7701
|
init_shims2();
|
|
7182
7702
|
checkFileSupport2 = () => {
|
|
7183
7703
|
if (typeof File === "undefined") {
|
|
7184
|
-
const { process:
|
|
7185
|
-
const isOldNode = typeof
|
|
7704
|
+
const { process: process3 } = globalThis;
|
|
7705
|
+
const isOldNode = typeof process3?.versions?.node === "string" && parseInt(process3.versions.node.split(".")) < 20;
|
|
7186
7706
|
throw new Error("`File` is not defined as a global, which is required for file uploads." + (isOldNode ? " Update to Node 20 LTS or newer, or set `globalThis.File` to `import('node:buffer').File`." : ""));
|
|
7187
7707
|
}
|
|
7188
7708
|
};
|
|
@@ -9598,12 +10118,12 @@ var readEnv2;
|
|
|
9598
10118
|
var init_env2 = __esm({
|
|
9599
10119
|
"../../node_modules/.pnpm/openai@6.33.0_zod@4.3.6/node_modules/openai/internal/utils/env.mjs"() {
|
|
9600
10120
|
"use strict";
|
|
9601
|
-
readEnv2 = (
|
|
10121
|
+
readEnv2 = (env2) => {
|
|
9602
10122
|
if (typeof globalThis.process !== "undefined") {
|
|
9603
|
-
return globalThis.process.env?.[
|
|
10123
|
+
return globalThis.process.env?.[env2]?.trim() ?? void 0;
|
|
9604
10124
|
}
|
|
9605
10125
|
if (typeof globalThis.Deno !== "undefined") {
|
|
9606
|
-
return globalThis.Deno.env?.get?.(
|
|
10126
|
+
return globalThis.Deno.env?.get?.(env2)?.trim();
|
|
9607
10127
|
}
|
|
9608
10128
|
return void 0;
|
|
9609
10129
|
};
|
|
@@ -15025,15 +15545,15 @@ var require_runtime = __commonJS({
|
|
|
15025
15545
|
throw new _exception2["default"]("Template was precompiled with a newer version of Handlebars than the current runtime. Please update your runtime to a newer version (" + compilerInfo[1] + ").");
|
|
15026
15546
|
}
|
|
15027
15547
|
}
|
|
15028
|
-
function template(templateSpec,
|
|
15029
|
-
if (!
|
|
15548
|
+
function template(templateSpec, env2) {
|
|
15549
|
+
if (!env2) {
|
|
15030
15550
|
throw new _exception2["default"]("No environment passed to template");
|
|
15031
15551
|
}
|
|
15032
15552
|
if (!templateSpec || !templateSpec.main) {
|
|
15033
15553
|
throw new _exception2["default"]("Unknown template object: " + typeof templateSpec);
|
|
15034
15554
|
}
|
|
15035
15555
|
templateSpec.main.decorator = templateSpec.main_d;
|
|
15036
|
-
|
|
15556
|
+
env2.VM.checkRevision(templateSpec.compiler);
|
|
15037
15557
|
var templateWasPrecompiledWithCompilerV7 = templateSpec.compiler && templateSpec.compiler[0] === 7;
|
|
15038
15558
|
function invokePartialWrapper(partial, context, options) {
|
|
15039
15559
|
if (options.hash) {
|
|
@@ -15042,12 +15562,12 @@ var require_runtime = __commonJS({
|
|
|
15042
15562
|
options.ids[0] = true;
|
|
15043
15563
|
}
|
|
15044
15564
|
}
|
|
15045
|
-
partial =
|
|
15565
|
+
partial = env2.VM.resolvePartial.call(this, partial, context, options);
|
|
15046
15566
|
options.hooks = this.hooks;
|
|
15047
15567
|
options.protoAccessControl = this.protoAccessControl;
|
|
15048
|
-
var result =
|
|
15049
|
-
if (result == null &&
|
|
15050
|
-
options.partials[options.name] =
|
|
15568
|
+
var result = env2.VM.invokePartial.call(this, partial, context, options);
|
|
15569
|
+
if (result == null && env2.compile) {
|
|
15570
|
+
options.partials[options.name] = env2.compile(partial, templateSpec.compilerOptions, env2);
|
|
15051
15571
|
result = options.partials[options.name](context, options);
|
|
15052
15572
|
}
|
|
15053
15573
|
if (result != null) {
|
|
@@ -15132,7 +15652,7 @@ var require_runtime = __commonJS({
|
|
|
15132
15652
|
},
|
|
15133
15653
|
// An empty object to use as replacement for null-contexts
|
|
15134
15654
|
nullContext: Object.seal({}),
|
|
15135
|
-
noop:
|
|
15655
|
+
noop: env2.VM.noop,
|
|
15136
15656
|
compilerInfo: templateSpec.compiler
|
|
15137
15657
|
};
|
|
15138
15658
|
function ret(context) {
|
|
@@ -15160,14 +15680,14 @@ var require_runtime = __commonJS({
|
|
|
15160
15680
|
ret._setup = function(options) {
|
|
15161
15681
|
if (!options.partial) {
|
|
15162
15682
|
var mergedHelpers = {};
|
|
15163
|
-
addHelpers(mergedHelpers,
|
|
15683
|
+
addHelpers(mergedHelpers, env2.helpers, container);
|
|
15164
15684
|
addHelpers(mergedHelpers, options.helpers, container);
|
|
15165
15685
|
container.helpers = mergedHelpers;
|
|
15166
15686
|
if (templateSpec.usePartial) {
|
|
15167
|
-
container.partials = container.mergeIfNeeded(options.partials,
|
|
15687
|
+
container.partials = container.mergeIfNeeded(options.partials, env2.partials);
|
|
15168
15688
|
}
|
|
15169
15689
|
if (templateSpec.usePartial || templateSpec.useDecorators) {
|
|
15170
|
-
container.decorators = Utils.extend({},
|
|
15690
|
+
container.decorators = Utils.extend({}, env2.decorators, options.decorators);
|
|
15171
15691
|
}
|
|
15172
15692
|
container.hooks = {};
|
|
15173
15693
|
container.protoAccessControl = _internalProtoAccess.createProtoAccessControl(options);
|
|
@@ -17016,7 +17536,7 @@ var require_compiler = __commonJS({
|
|
|
17016
17536
|
}
|
|
17017
17537
|
}
|
|
17018
17538
|
};
|
|
17019
|
-
function precompile(input, options,
|
|
17539
|
+
function precompile(input, options, env2) {
|
|
17020
17540
|
if (input == null || typeof input !== "string" && input.type !== "Program") {
|
|
17021
17541
|
throw new _exception2["default"]("You must pass a string or Handlebars AST to Handlebars.precompile. You passed " + input);
|
|
17022
17542
|
}
|
|
@@ -17027,10 +17547,10 @@ var require_compiler = __commonJS({
|
|
|
17027
17547
|
if (options.compat) {
|
|
17028
17548
|
options.useDepths = true;
|
|
17029
17549
|
}
|
|
17030
|
-
var ast =
|
|
17031
|
-
return new
|
|
17550
|
+
var ast = env2.parse(input, options), environment = new env2.Compiler().compile(ast, options);
|
|
17551
|
+
return new env2.JavaScriptCompiler().compile(environment, options);
|
|
17032
17552
|
}
|
|
17033
|
-
function compile2(input, options,
|
|
17553
|
+
function compile2(input, options, env2) {
|
|
17034
17554
|
if (options === void 0) options = {};
|
|
17035
17555
|
if (input == null || typeof input !== "string" && input.type !== "Program") {
|
|
17036
17556
|
throw new _exception2["default"]("You must pass a string or Handlebars AST to Handlebars.compile. You passed " + input);
|
|
@@ -17044,8 +17564,8 @@ var require_compiler = __commonJS({
|
|
|
17044
17564
|
}
|
|
17045
17565
|
var compiled = void 0;
|
|
17046
17566
|
function compileInput() {
|
|
17047
|
-
var ast =
|
|
17048
|
-
return
|
|
17567
|
+
var ast = env2.parse(input, options), environment = new env2.Compiler().compile(ast, options), templateSpec = new env2.JavaScriptCompiler().compile(environment, options, void 0, true);
|
|
17568
|
+
return env2.template(templateSpec);
|
|
17049
17569
|
}
|
|
17050
17570
|
function ret(context, execOptions) {
|
|
17051
17571
|
if (!compiled) {
|
|
@@ -23454,7 +23974,7 @@ var init_liquid_node = __esm({
|
|
|
23454
23974
|
TokenKind2[TokenKind2["Delimited"] = 12] = "Delimited";
|
|
23455
23975
|
})(TokenKind || (TokenKind = {}));
|
|
23456
23976
|
Context = class _Context {
|
|
23457
|
-
constructor(
|
|
23977
|
+
constructor(env2 = {}, opts = defaultOptions, renderOptions = {}, { memoryLimit, renderLimit } = {}) {
|
|
23458
23978
|
var _a5, _b, _c, _d, _e;
|
|
23459
23979
|
this.scopes = [{}];
|
|
23460
23980
|
this.registers = {};
|
|
@@ -23463,7 +23983,7 @@ var init_liquid_node = __esm({
|
|
|
23463
23983
|
this.sync = !!renderOptions.sync;
|
|
23464
23984
|
this.opts = opts;
|
|
23465
23985
|
this.globals = (_a5 = renderOptions.globals) !== null && _a5 !== void 0 ? _a5 : opts.globals;
|
|
23466
|
-
this.environments = isObject(
|
|
23986
|
+
this.environments = isObject(env2) ? env2 : Object(env2);
|
|
23467
23987
|
this.strictVariables = (_b = renderOptions.strictVariables) !== null && _b !== void 0 ? _b : this.opts.strictVariables;
|
|
23468
23988
|
this.ownPropertyOnly = (_c = renderOptions.ownPropertyOnly) !== null && _c !== void 0 ? _c : opts.ownPropertyOnly;
|
|
23469
23989
|
this.memoryLimit = memoryLimit !== null && memoryLimit !== void 0 ? memoryLimit : new Limiter("memory alloc", (_d = renderOptions.memoryLimit) !== null && _d !== void 0 ? _d : opts.memoryLimit);
|
|
@@ -24920,7 +25440,7 @@ import * as path32 from "path";
|
|
|
24920
25440
|
import { z as z2 } from "zod";
|
|
24921
25441
|
import { z } from "zod";
|
|
24922
25442
|
import * as fs22 from "fs";
|
|
24923
|
-
import * as
|
|
25443
|
+
import * as os2 from "os";
|
|
24924
25444
|
import * as path22 from "path";
|
|
24925
25445
|
import * as fs42 from "fs";
|
|
24926
25446
|
import * as fs9 from "fs";
|
|
@@ -24957,7 +25477,7 @@ function substituteVariables(value) {
|
|
|
24957
25477
|
return process.env[varName] ?? "";
|
|
24958
25478
|
});
|
|
24959
25479
|
result = result.replace(filePattern, (_, filePath) => {
|
|
24960
|
-
const expandedPath = filePath.startsWith("~") ? path22.join(
|
|
25480
|
+
const expandedPath = filePath.startsWith("~") ? path22.join(os2.homedir(), filePath.slice(1)) : filePath;
|
|
24961
25481
|
try {
|
|
24962
25482
|
return fs22.readFileSync(expandedPath, "utf-8").trim();
|
|
24963
25483
|
} catch {
|
|
@@ -26557,7 +27077,7 @@ var init_chunk_Y4S5UWCL = __esm({
|
|
|
26557
27077
|
});
|
|
26558
27078
|
MAX_INPUT_LENGTH = 1e4;
|
|
26559
27079
|
SOLE_REFERENCE_PATTERN = /^\{(?:env|file):[^}]+\}$/;
|
|
26560
|
-
AUTH_DIR = path22.join(
|
|
27080
|
+
AUTH_DIR = path22.join(os2.homedir(), ".config", "releasekit");
|
|
26561
27081
|
AUTH_FILE = path22.join(AUTH_DIR, "auth.json");
|
|
26562
27082
|
CONFIG_FILE = "releasekit.config.json";
|
|
26563
27083
|
NotesError = class extends ReleaseKitError2 {
|
|
@@ -28847,7 +29367,6 @@ var require_semver2 = __commonJS({
|
|
|
28847
29367
|
});
|
|
28848
29368
|
|
|
28849
29369
|
// ../publish/dist/chunk-OZHNJUFW.js
|
|
28850
|
-
import chalk3 from "chalk";
|
|
28851
29370
|
import * as fs23 from "fs";
|
|
28852
29371
|
import * as TOML2 from "smol-toml";
|
|
28853
29372
|
import * as fs33 from "fs";
|
|
@@ -28855,7 +29374,7 @@ import * as path33 from "path";
|
|
|
28855
29374
|
import { z as z22 } from "zod";
|
|
28856
29375
|
import { z as z3 } from "zod";
|
|
28857
29376
|
import * as fs222 from "fs";
|
|
28858
|
-
import * as
|
|
29377
|
+
import * as os3 from "os";
|
|
28859
29378
|
import * as path222 from "path";
|
|
28860
29379
|
import { execFile } from "child_process";
|
|
28861
29380
|
import * as fs43 from "fs";
|
|
@@ -28897,7 +29416,7 @@ function info3(message) {
|
|
|
28897
29416
|
}
|
|
28898
29417
|
function success3(message) {
|
|
28899
29418
|
if (!shouldLog3("info")) return;
|
|
28900
|
-
console.error(
|
|
29419
|
+
console.error(source_default.green(`[SUCCESS] ${message}`));
|
|
28901
29420
|
}
|
|
28902
29421
|
function debug2(message) {
|
|
28903
29422
|
log3(message, "debug");
|
|
@@ -28948,7 +29467,7 @@ function substituteVariables2(value) {
|
|
|
28948
29467
|
return process.env[varName] ?? "";
|
|
28949
29468
|
});
|
|
28950
29469
|
result = result.replace(filePattern, (_, filePath) => {
|
|
28951
|
-
const expandedPath = filePath.startsWith("~") ? path222.join(
|
|
29470
|
+
const expandedPath = filePath.startsWith("~") ? path222.join(os3.homedir(), filePath.slice(1)) : filePath;
|
|
28952
29471
|
try {
|
|
28953
29472
|
return fs222.readFileSync(expandedPath, "utf-8").trim();
|
|
28954
29473
|
} catch {
|
|
@@ -30386,6 +30905,7 @@ var import_semver, LOG_LEVELS3, PREFIXES3, COLORS3, currentLevel3, quietMode3, R
|
|
|
30386
30905
|
var init_chunk_OZHNJUFW = __esm({
|
|
30387
30906
|
"../publish/dist/chunk-OZHNJUFW.js"() {
|
|
30388
30907
|
"use strict";
|
|
30908
|
+
init_source();
|
|
30389
30909
|
import_semver = __toESM(require_semver2(), 1);
|
|
30390
30910
|
LOG_LEVELS3 = {
|
|
30391
30911
|
error: 0,
|
|
@@ -30402,11 +30922,11 @@ var init_chunk_OZHNJUFW = __esm({
|
|
|
30402
30922
|
trace: "[TRACE]"
|
|
30403
30923
|
};
|
|
30404
30924
|
COLORS3 = {
|
|
30405
|
-
error:
|
|
30406
|
-
warn:
|
|
30407
|
-
info:
|
|
30408
|
-
debug:
|
|
30409
|
-
trace:
|
|
30925
|
+
error: source_default.red,
|
|
30926
|
+
warn: source_default.yellow,
|
|
30927
|
+
info: source_default.blue,
|
|
30928
|
+
debug: source_default.gray,
|
|
30929
|
+
trace: source_default.dim
|
|
30410
30930
|
};
|
|
30411
30931
|
currentLevel3 = "info";
|
|
30412
30932
|
quietMode3 = false;
|
|
@@ -30742,7 +31262,7 @@ var init_chunk_OZHNJUFW = __esm({
|
|
|
30742
31262
|
});
|
|
30743
31263
|
MAX_INPUT_LENGTH2 = 1e4;
|
|
30744
31264
|
SOLE_REFERENCE_PATTERN2 = /^\{(?:env|file):[^}]+\}$/;
|
|
30745
|
-
AUTH_DIR2 = path222.join(
|
|
31265
|
+
AUTH_DIR2 = path222.join(os3.homedir(), ".config", "releasekit");
|
|
30746
31266
|
AUTH_FILE2 = path222.join(AUTH_DIR2, "auth.json");
|
|
30747
31267
|
CONFIG_FILE2 = "releasekit.config.json";
|
|
30748
31268
|
BasePublishError = class _BasePublishError extends ReleaseKitError3 {
|
|
@@ -30851,7 +31371,6 @@ var init_dist2 = __esm({
|
|
|
30851
31371
|
});
|
|
30852
31372
|
|
|
30853
31373
|
// ../version/dist/chunk-Q3FHZORY.js
|
|
30854
|
-
import chalk4 from "chalk";
|
|
30855
31374
|
function shouldLog4(level) {
|
|
30856
31375
|
if (quietMode4 && level !== "error") return false;
|
|
30857
31376
|
return LOG_LEVELS4[level] <= LOG_LEVELS4[currentLevel4];
|
|
@@ -30868,6 +31387,7 @@ var LOG_LEVELS4, PREFIXES4, COLORS4, currentLevel4, quietMode4, ReleaseKitError4
|
|
|
30868
31387
|
var init_chunk_Q3FHZORY = __esm({
|
|
30869
31388
|
"../version/dist/chunk-Q3FHZORY.js"() {
|
|
30870
31389
|
"use strict";
|
|
31390
|
+
init_source();
|
|
30871
31391
|
LOG_LEVELS4 = {
|
|
30872
31392
|
error: 0,
|
|
30873
31393
|
warn: 1,
|
|
@@ -30883,11 +31403,11 @@ var init_chunk_Q3FHZORY = __esm({
|
|
|
30883
31403
|
trace: "[TRACE]"
|
|
30884
31404
|
};
|
|
30885
31405
|
COLORS4 = {
|
|
30886
|
-
error:
|
|
30887
|
-
warn:
|
|
30888
|
-
info:
|
|
30889
|
-
debug:
|
|
30890
|
-
trace:
|
|
31406
|
+
error: source_default.red,
|
|
31407
|
+
warn: source_default.yellow,
|
|
31408
|
+
info: source_default.blue,
|
|
31409
|
+
debug: source_default.gray,
|
|
31410
|
+
trace: source_default.dim
|
|
30891
31411
|
};
|
|
30892
31412
|
currentLevel4 = "info";
|
|
30893
31413
|
quietMode4 = false;
|
|
@@ -31011,37 +31531,37 @@ var init_dist3 = __esm({
|
|
|
31011
31531
|
});
|
|
31012
31532
|
|
|
31013
31533
|
// ../../node_modules/.pnpm/@simple-libs+child-process-utils@1.0.1/node_modules/@simple-libs/child-process-utils/dist/index.js
|
|
31014
|
-
async function exitCode(
|
|
31015
|
-
if (
|
|
31016
|
-
return
|
|
31534
|
+
async function exitCode(process3) {
|
|
31535
|
+
if (process3.exitCode !== null) {
|
|
31536
|
+
return process3.exitCode;
|
|
31017
31537
|
}
|
|
31018
|
-
return new Promise((resolve11) =>
|
|
31538
|
+
return new Promise((resolve11) => process3.once("close", resolve11));
|
|
31019
31539
|
}
|
|
31020
|
-
async function catchProcessError(
|
|
31540
|
+
async function catchProcessError(process3) {
|
|
31021
31541
|
let error3 = new Error("Process exited with non-zero code");
|
|
31022
31542
|
let stderr = "";
|
|
31023
|
-
|
|
31543
|
+
process3.on("error", (err) => {
|
|
31024
31544
|
error3 = err;
|
|
31025
31545
|
});
|
|
31026
|
-
if (
|
|
31546
|
+
if (process3.stderr) {
|
|
31027
31547
|
let chunk;
|
|
31028
|
-
for await (chunk of
|
|
31548
|
+
for await (chunk of process3.stderr) {
|
|
31029
31549
|
stderr += chunk.toString();
|
|
31030
31550
|
}
|
|
31031
31551
|
}
|
|
31032
|
-
const code = await exitCode(
|
|
31552
|
+
const code = await exitCode(process3);
|
|
31033
31553
|
if (stderr) {
|
|
31034
31554
|
error3 = new Error(stderr);
|
|
31035
31555
|
}
|
|
31036
31556
|
return code ? error3 : null;
|
|
31037
31557
|
}
|
|
31038
|
-
async function* outputStream(
|
|
31039
|
-
const { stdout } =
|
|
31040
|
-
const errorPromise = catchProcessError(
|
|
31558
|
+
async function* outputStream(process3) {
|
|
31559
|
+
const { stdout } = process3;
|
|
31560
|
+
const errorPromise = catchProcessError(process3);
|
|
31041
31561
|
if (stdout) {
|
|
31042
31562
|
stdout.on("error", (err) => {
|
|
31043
|
-
if (err.name === "AbortError" &&
|
|
31044
|
-
|
|
31563
|
+
if (err.name === "AbortError" && process3.exitCode === null) {
|
|
31564
|
+
process3.kill("SIGKILL");
|
|
31045
31565
|
}
|
|
31046
31566
|
});
|
|
31047
31567
|
yield* stdout;
|
|
@@ -31051,8 +31571,8 @@ async function* outputStream(process2) {
|
|
|
31051
31571
|
throw error3;
|
|
31052
31572
|
}
|
|
31053
31573
|
}
|
|
31054
|
-
function output(
|
|
31055
|
-
return concatBufferStream(outputStream(
|
|
31574
|
+
function output(process3) {
|
|
31575
|
+
return concatBufferStream(outputStream(process3));
|
|
31056
31576
|
}
|
|
31057
31577
|
var init_dist4 = __esm({
|
|
31058
31578
|
"../../node_modules/.pnpm/@simple-libs+child-process-utils@1.0.1/node_modules/@simple-libs/child-process-utils/dist/index.js"() {
|
|
@@ -32394,37 +32914,37 @@ var init_dist10 = __esm({
|
|
|
32394
32914
|
});
|
|
32395
32915
|
|
|
32396
32916
|
// ../../node_modules/.pnpm/@simple-libs+child-process-utils@1.0.2/node_modules/@simple-libs/child-process-utils/dist/index.js
|
|
32397
|
-
async function exitCode2(
|
|
32398
|
-
if (
|
|
32399
|
-
return
|
|
32917
|
+
async function exitCode2(process3) {
|
|
32918
|
+
if (process3.exitCode !== null) {
|
|
32919
|
+
return process3.exitCode;
|
|
32400
32920
|
}
|
|
32401
|
-
return new Promise((resolve11) =>
|
|
32921
|
+
return new Promise((resolve11) => process3.once("close", resolve11));
|
|
32402
32922
|
}
|
|
32403
|
-
async function catchProcessError2(
|
|
32923
|
+
async function catchProcessError2(process3) {
|
|
32404
32924
|
let error3 = new Error("Process exited with non-zero code");
|
|
32405
32925
|
let stderr = "";
|
|
32406
|
-
|
|
32926
|
+
process3.on("error", (err) => {
|
|
32407
32927
|
error3 = err;
|
|
32408
32928
|
});
|
|
32409
|
-
if (
|
|
32929
|
+
if (process3.stderr) {
|
|
32410
32930
|
let chunk;
|
|
32411
|
-
for await (chunk of
|
|
32931
|
+
for await (chunk of process3.stderr) {
|
|
32412
32932
|
stderr += chunk.toString();
|
|
32413
32933
|
}
|
|
32414
32934
|
}
|
|
32415
|
-
const code = await exitCode2(
|
|
32935
|
+
const code = await exitCode2(process3);
|
|
32416
32936
|
if (stderr) {
|
|
32417
32937
|
error3 = new Error(stderr);
|
|
32418
32938
|
}
|
|
32419
32939
|
return code ? error3 : null;
|
|
32420
32940
|
}
|
|
32421
|
-
async function* outputStream2(
|
|
32422
|
-
const { stdout } =
|
|
32423
|
-
const errorPromise = catchProcessError2(
|
|
32941
|
+
async function* outputStream2(process3) {
|
|
32942
|
+
const { stdout } = process3;
|
|
32943
|
+
const errorPromise = catchProcessError2(process3);
|
|
32424
32944
|
if (stdout) {
|
|
32425
32945
|
stdout.on("error", (err) => {
|
|
32426
|
-
if (err.name === "AbortError" &&
|
|
32427
|
-
|
|
32946
|
+
if (err.name === "AbortError" && process3.exitCode === null) {
|
|
32947
|
+
process3.kill("SIGKILL");
|
|
32428
32948
|
}
|
|
32429
32949
|
});
|
|
32430
32950
|
yield* stdout;
|
|
@@ -32434,8 +32954,8 @@ async function* outputStream2(process2) {
|
|
|
32434
32954
|
throw error3;
|
|
32435
32955
|
}
|
|
32436
32956
|
}
|
|
32437
|
-
function output2(
|
|
32438
|
-
return concatBufferStream2(outputStream2(
|
|
32957
|
+
function output2(process3) {
|
|
32958
|
+
return concatBufferStream2(outputStream2(process3));
|
|
32439
32959
|
}
|
|
32440
32960
|
var init_dist11 = __esm({
|
|
32441
32961
|
"../../node_modules/.pnpm/@simple-libs+child-process-utils@1.0.2/node_modules/@simple-libs/child-process-utils/dist/index.js"() {
|
|
@@ -43397,11 +43917,10 @@ import * as path34 from "path";
|
|
|
43397
43917
|
import { z as z23 } from "zod";
|
|
43398
43918
|
import { z as z4 } from "zod";
|
|
43399
43919
|
import * as fs24 from "fs";
|
|
43400
|
-
import * as
|
|
43920
|
+
import * as os4 from "os";
|
|
43401
43921
|
import * as path23 from "path";
|
|
43402
43922
|
import fs44 from "fs";
|
|
43403
43923
|
import { cwd } from "process";
|
|
43404
|
-
import chalk5 from "chalk";
|
|
43405
43924
|
import fs63 from "fs";
|
|
43406
43925
|
import path54 from "path";
|
|
43407
43926
|
import fs54 from "fs";
|
|
@@ -43444,7 +43963,7 @@ function substituteVariables3(value) {
|
|
|
43444
43963
|
return process.env[varName] ?? "";
|
|
43445
43964
|
});
|
|
43446
43965
|
result = result.replace(filePattern, (_, filePath) => {
|
|
43447
|
-
const expandedPath = filePath.startsWith("~") ? path23.join(
|
|
43966
|
+
const expandedPath = filePath.startsWith("~") ? path23.join(os4.homedir(), filePath.slice(1)) : filePath;
|
|
43448
43967
|
try {
|
|
43449
43968
|
return fs24.readFileSync(expandedPath, "utf-8").trim();
|
|
43450
43969
|
} catch {
|
|
@@ -43689,19 +44208,19 @@ function log6(message, level = "info") {
|
|
|
43689
44208
|
let chalkFn;
|
|
43690
44209
|
switch (level) {
|
|
43691
44210
|
case "success":
|
|
43692
|
-
chalkFn =
|
|
44211
|
+
chalkFn = source_default.green;
|
|
43693
44212
|
break;
|
|
43694
44213
|
case "warning":
|
|
43695
|
-
chalkFn =
|
|
44214
|
+
chalkFn = source_default.yellow;
|
|
43696
44215
|
break;
|
|
43697
44216
|
case "error":
|
|
43698
|
-
chalkFn =
|
|
44217
|
+
chalkFn = source_default.red;
|
|
43699
44218
|
break;
|
|
43700
44219
|
case "debug":
|
|
43701
|
-
chalkFn =
|
|
44220
|
+
chalkFn = source_default.gray;
|
|
43702
44221
|
break;
|
|
43703
44222
|
default:
|
|
43704
|
-
chalkFn =
|
|
44223
|
+
chalkFn = source_default.blue;
|
|
43705
44224
|
}
|
|
43706
44225
|
const formattedMessage = level === "debug" ? `[DEBUG] ${message}` : message;
|
|
43707
44226
|
if (isJsonOutputMode()) {
|
|
@@ -45186,6 +45705,7 @@ var init_chunk_UBCKZYTO = __esm({
|
|
|
45186
45705
|
import_semver4 = __toESM(require_semver2(), 1);
|
|
45187
45706
|
init_src();
|
|
45188
45707
|
import_semver5 = __toESM(require_semver2(), 1);
|
|
45708
|
+
init_source();
|
|
45189
45709
|
init_node_figlet();
|
|
45190
45710
|
import_semver6 = __toESM(require_semver2(), 1);
|
|
45191
45711
|
init_esm3();
|
|
@@ -45493,7 +46013,7 @@ var init_chunk_UBCKZYTO = __esm({
|
|
|
45493
46013
|
});
|
|
45494
46014
|
MAX_INPUT_LENGTH3 = 1e4;
|
|
45495
46015
|
SOLE_REFERENCE_PATTERN3 = /^\{(?:env|file):[^}]+\}$/;
|
|
45496
|
-
AUTH_DIR3 = path23.join(
|
|
46016
|
+
AUTH_DIR3 = path23.join(os4.homedir(), ".config", "releasekit");
|
|
45497
46017
|
AUTH_FILE3 = path23.join(AUTH_DIR3, "auth.json");
|
|
45498
46018
|
CONFIG_FILE3 = "releasekit.config.json";
|
|
45499
46019
|
VersionError = class extends BaseVersionError {
|
|
@@ -45930,10 +46450,10 @@ import { realpathSync } from "fs";
|
|
|
45930
46450
|
import { fileURLToPath as fileURLToPath4 } from "url";
|
|
45931
46451
|
|
|
45932
46452
|
// ../core/dist/index.js
|
|
46453
|
+
init_source();
|
|
45933
46454
|
import * as fs from "fs";
|
|
45934
46455
|
import * as path from "path";
|
|
45935
46456
|
import { fileURLToPath } from "url";
|
|
45936
|
-
import chalk from "chalk";
|
|
45937
46457
|
function readPackageVersion(importMetaUrl) {
|
|
45938
46458
|
try {
|
|
45939
46459
|
const dir = path.dirname(fileURLToPath(importMetaUrl));
|
|
@@ -45959,11 +46479,11 @@ var PREFIXES = {
|
|
|
45959
46479
|
trace: "[TRACE]"
|
|
45960
46480
|
};
|
|
45961
46481
|
var COLORS = {
|
|
45962
|
-
error:
|
|
45963
|
-
warn:
|
|
45964
|
-
info:
|
|
45965
|
-
debug:
|
|
45966
|
-
trace:
|
|
46482
|
+
error: source_default.red,
|
|
46483
|
+
warn: source_default.yellow,
|
|
46484
|
+
info: source_default.blue,
|
|
46485
|
+
debug: source_default.gray,
|
|
46486
|
+
trace: source_default.dim
|
|
45967
46487
|
};
|
|
45968
46488
|
var currentLevel = "info";
|
|
45969
46489
|
var quietMode = false;
|
|
@@ -45995,7 +46515,7 @@ function info(message) {
|
|
|
45995
46515
|
}
|
|
45996
46516
|
function success(message) {
|
|
45997
46517
|
if (!shouldLog("info")) return;
|
|
45998
|
-
console.error(
|
|
46518
|
+
console.error(source_default.green(`[SUCCESS] ${message}`));
|
|
45999
46519
|
}
|
|
46000
46520
|
var ReleaseKitError = class _ReleaseKitError extends Error {
|
|
46001
46521
|
constructor(message) {
|
|
@@ -46093,7 +46613,7 @@ import * as path35 from "path";
|
|
|
46093
46613
|
import { z as z24 } from "zod";
|
|
46094
46614
|
import { z as z5 } from "zod";
|
|
46095
46615
|
import * as fs25 from "fs";
|
|
46096
|
-
import * as
|
|
46616
|
+
import * as os5 from "os";
|
|
46097
46617
|
import * as path24 from "path";
|
|
46098
46618
|
var ConfigError5 = class extends ReleaseKitError {
|
|
46099
46619
|
code = "CONFIG_ERROR";
|
|
@@ -46418,7 +46938,7 @@ function substituteVariables4(value) {
|
|
|
46418
46938
|
return process.env[varName] ?? "";
|
|
46419
46939
|
});
|
|
46420
46940
|
result = result.replace(filePattern, (_, filePath) => {
|
|
46421
|
-
const expandedPath = filePath.startsWith("~") ? path24.join(
|
|
46941
|
+
const expandedPath = filePath.startsWith("~") ? path24.join(os5.homedir(), filePath.slice(1)) : filePath;
|
|
46422
46942
|
try {
|
|
46423
46943
|
return fs25.readFileSync(expandedPath, "utf-8").trim();
|
|
46424
46944
|
} catch {
|
|
@@ -46448,7 +46968,7 @@ function substituteInObject4(obj) {
|
|
|
46448
46968
|
}
|
|
46449
46969
|
return obj;
|
|
46450
46970
|
}
|
|
46451
|
-
var AUTH_DIR4 = path24.join(
|
|
46971
|
+
var AUTH_DIR4 = path24.join(os5.homedir(), ".config", "releasekit");
|
|
46452
46972
|
var AUTH_FILE4 = path24.join(AUTH_DIR4, "auth.json");
|
|
46453
46973
|
var CONFIG_FILE4 = "releasekit.config.json";
|
|
46454
46974
|
function loadConfigFile4(configPath) {
|