@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/cli.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
|
// ../version/dist/chunk-Q3FHZORY.js
|
|
44
|
-
import chalk2 from "chalk";
|
|
45
564
|
function shouldLog2(level) {
|
|
46
565
|
if (quietMode2 && level !== "error") return false;
|
|
47
566
|
return LOG_LEVELS2[level] <= LOG_LEVELS2[currentLevel2];
|
|
@@ -58,6 +577,7 @@ var LOG_LEVELS2, PREFIXES2, COLORS2, currentLevel2, quietMode2, ReleaseKitError2
|
|
|
58
577
|
var init_chunk_Q3FHZORY = __esm({
|
|
59
578
|
"../version/dist/chunk-Q3FHZORY.js"() {
|
|
60
579
|
"use strict";
|
|
580
|
+
init_source();
|
|
61
581
|
LOG_LEVELS2 = {
|
|
62
582
|
error: 0,
|
|
63
583
|
warn: 1,
|
|
@@ -73,11 +593,11 @@ var init_chunk_Q3FHZORY = __esm({
|
|
|
73
593
|
trace: "[TRACE]"
|
|
74
594
|
};
|
|
75
595
|
COLORS2 = {
|
|
76
|
-
error:
|
|
77
|
-
warn:
|
|
78
|
-
info:
|
|
79
|
-
debug:
|
|
80
|
-
trace:
|
|
596
|
+
error: source_default.red,
|
|
597
|
+
warn: source_default.yellow,
|
|
598
|
+
info: source_default.blue,
|
|
599
|
+
debug: source_default.gray,
|
|
600
|
+
trace: source_default.dim
|
|
81
601
|
};
|
|
82
602
|
currentLevel2 = "info";
|
|
83
603
|
quietMode2 = false;
|
|
@@ -201,37 +721,37 @@ var init_dist = __esm({
|
|
|
201
721
|
});
|
|
202
722
|
|
|
203
723
|
// ../../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
|
|
724
|
+
async function exitCode(process3) {
|
|
725
|
+
if (process3.exitCode !== null) {
|
|
726
|
+
return process3.exitCode;
|
|
207
727
|
}
|
|
208
|
-
return new Promise((resolve11) =>
|
|
728
|
+
return new Promise((resolve11) => process3.once("close", resolve11));
|
|
209
729
|
}
|
|
210
|
-
async function catchProcessError(
|
|
730
|
+
async function catchProcessError(process3) {
|
|
211
731
|
let error3 = new Error("Process exited with non-zero code");
|
|
212
732
|
let stderr = "";
|
|
213
|
-
|
|
733
|
+
process3.on("error", (err) => {
|
|
214
734
|
error3 = err;
|
|
215
735
|
});
|
|
216
|
-
if (
|
|
736
|
+
if (process3.stderr) {
|
|
217
737
|
let chunk;
|
|
218
|
-
for await (chunk of
|
|
738
|
+
for await (chunk of process3.stderr) {
|
|
219
739
|
stderr += chunk.toString();
|
|
220
740
|
}
|
|
221
741
|
}
|
|
222
|
-
const code = await exitCode(
|
|
742
|
+
const code = await exitCode(process3);
|
|
223
743
|
if (stderr) {
|
|
224
744
|
error3 = new Error(stderr);
|
|
225
745
|
}
|
|
226
746
|
return code ? error3 : null;
|
|
227
747
|
}
|
|
228
|
-
async function* outputStream(
|
|
229
|
-
const { stdout } =
|
|
230
|
-
const errorPromise = catchProcessError(
|
|
748
|
+
async function* outputStream(process3) {
|
|
749
|
+
const { stdout } = process3;
|
|
750
|
+
const errorPromise = catchProcessError(process3);
|
|
231
751
|
if (stdout) {
|
|
232
752
|
stdout.on("error", (err) => {
|
|
233
|
-
if (err.name === "AbortError" &&
|
|
234
|
-
|
|
753
|
+
if (err.name === "AbortError" && process3.exitCode === null) {
|
|
754
|
+
process3.kill("SIGKILL");
|
|
235
755
|
}
|
|
236
756
|
});
|
|
237
757
|
yield* stdout;
|
|
@@ -241,8 +761,8 @@ async function* outputStream(process2) {
|
|
|
241
761
|
throw error3;
|
|
242
762
|
}
|
|
243
763
|
}
|
|
244
|
-
function output(
|
|
245
|
-
return concatBufferStream(outputStream(
|
|
764
|
+
function output(process3) {
|
|
765
|
+
return concatBufferStream(outputStream(process3));
|
|
246
766
|
}
|
|
247
767
|
var init_dist2 = __esm({
|
|
248
768
|
"../../node_modules/.pnpm/@simple-libs+child-process-utils@1.0.1/node_modules/@simple-libs/child-process-utils/dist/index.js"() {
|
|
@@ -3514,37 +4034,37 @@ var init_dist8 = __esm({
|
|
|
3514
4034
|
});
|
|
3515
4035
|
|
|
3516
4036
|
// ../../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
|
|
4037
|
+
async function exitCode2(process3) {
|
|
4038
|
+
if (process3.exitCode !== null) {
|
|
4039
|
+
return process3.exitCode;
|
|
3520
4040
|
}
|
|
3521
|
-
return new Promise((resolve11) =>
|
|
4041
|
+
return new Promise((resolve11) => process3.once("close", resolve11));
|
|
3522
4042
|
}
|
|
3523
|
-
async function catchProcessError2(
|
|
4043
|
+
async function catchProcessError2(process3) {
|
|
3524
4044
|
let error3 = new Error("Process exited with non-zero code");
|
|
3525
4045
|
let stderr = "";
|
|
3526
|
-
|
|
4046
|
+
process3.on("error", (err) => {
|
|
3527
4047
|
error3 = err;
|
|
3528
4048
|
});
|
|
3529
|
-
if (
|
|
4049
|
+
if (process3.stderr) {
|
|
3530
4050
|
let chunk;
|
|
3531
|
-
for await (chunk of
|
|
4051
|
+
for await (chunk of process3.stderr) {
|
|
3532
4052
|
stderr += chunk.toString();
|
|
3533
4053
|
}
|
|
3534
4054
|
}
|
|
3535
|
-
const code = await exitCode2(
|
|
4055
|
+
const code = await exitCode2(process3);
|
|
3536
4056
|
if (stderr) {
|
|
3537
4057
|
error3 = new Error(stderr);
|
|
3538
4058
|
}
|
|
3539
4059
|
return code ? error3 : null;
|
|
3540
4060
|
}
|
|
3541
|
-
async function* outputStream2(
|
|
3542
|
-
const { stdout } =
|
|
3543
|
-
const errorPromise = catchProcessError2(
|
|
4061
|
+
async function* outputStream2(process3) {
|
|
4062
|
+
const { stdout } = process3;
|
|
4063
|
+
const errorPromise = catchProcessError2(process3);
|
|
3544
4064
|
if (stdout) {
|
|
3545
4065
|
stdout.on("error", (err) => {
|
|
3546
|
-
if (err.name === "AbortError" &&
|
|
3547
|
-
|
|
4066
|
+
if (err.name === "AbortError" && process3.exitCode === null) {
|
|
4067
|
+
process3.kill("SIGKILL");
|
|
3548
4068
|
}
|
|
3549
4069
|
});
|
|
3550
4070
|
yield* stdout;
|
|
@@ -3554,8 +4074,8 @@ async function* outputStream2(process2) {
|
|
|
3554
4074
|
throw error3;
|
|
3555
4075
|
}
|
|
3556
4076
|
}
|
|
3557
|
-
function output2(
|
|
3558
|
-
return concatBufferStream2(outputStream2(
|
|
4077
|
+
function output2(process3) {
|
|
4078
|
+
return concatBufferStream2(outputStream2(process3));
|
|
3559
4079
|
}
|
|
3560
4080
|
var init_dist9 = __esm({
|
|
3561
4081
|
"../../node_modules/.pnpm/@simple-libs+child-process-utils@1.0.2/node_modules/@simple-libs/child-process-utils/dist/index.js"() {
|
|
@@ -14517,11 +15037,10 @@ import * as path32 from "path";
|
|
|
14517
15037
|
import { z as z22 } from "zod";
|
|
14518
15038
|
import { z as z3 } from "zod";
|
|
14519
15039
|
import * as fs22 from "fs";
|
|
14520
|
-
import * as
|
|
15040
|
+
import * as os3 from "os";
|
|
14521
15041
|
import * as path22 from "path";
|
|
14522
15042
|
import fs42 from "fs";
|
|
14523
15043
|
import { cwd } from "process";
|
|
14524
|
-
import chalk3 from "chalk";
|
|
14525
15044
|
import fs62 from "fs";
|
|
14526
15045
|
import path52 from "path";
|
|
14527
15046
|
import fs52 from "fs";
|
|
@@ -14564,7 +15083,7 @@ function substituteVariables2(value) {
|
|
|
14564
15083
|
return process.env[varName] ?? "";
|
|
14565
15084
|
});
|
|
14566
15085
|
result = result.replace(filePattern, (_, filePath) => {
|
|
14567
|
-
const expandedPath = filePath.startsWith("~") ? path22.join(
|
|
15086
|
+
const expandedPath = filePath.startsWith("~") ? path22.join(os3.homedir(), filePath.slice(1)) : filePath;
|
|
14568
15087
|
try {
|
|
14569
15088
|
return fs22.readFileSync(expandedPath, "utf-8").trim();
|
|
14570
15089
|
} catch {
|
|
@@ -14809,19 +15328,19 @@ function log4(message, level = "info") {
|
|
|
14809
15328
|
let chalkFn;
|
|
14810
15329
|
switch (level) {
|
|
14811
15330
|
case "success":
|
|
14812
|
-
chalkFn =
|
|
15331
|
+
chalkFn = source_default.green;
|
|
14813
15332
|
break;
|
|
14814
15333
|
case "warning":
|
|
14815
|
-
chalkFn =
|
|
15334
|
+
chalkFn = source_default.yellow;
|
|
14816
15335
|
break;
|
|
14817
15336
|
case "error":
|
|
14818
|
-
chalkFn =
|
|
15337
|
+
chalkFn = source_default.red;
|
|
14819
15338
|
break;
|
|
14820
15339
|
case "debug":
|
|
14821
|
-
chalkFn =
|
|
15340
|
+
chalkFn = source_default.gray;
|
|
14822
15341
|
break;
|
|
14823
15342
|
default:
|
|
14824
|
-
chalkFn =
|
|
15343
|
+
chalkFn = source_default.blue;
|
|
14825
15344
|
}
|
|
14826
15345
|
const formattedMessage = level === "debug" ? `[DEBUG] ${message}` : message;
|
|
14827
15346
|
if (isJsonOutputMode()) {
|
|
@@ -16306,6 +16825,7 @@ var init_chunk_UBCKZYTO = __esm({
|
|
|
16306
16825
|
import_semver3 = __toESM(require_semver2(), 1);
|
|
16307
16826
|
init_src();
|
|
16308
16827
|
import_semver4 = __toESM(require_semver2(), 1);
|
|
16828
|
+
init_source();
|
|
16309
16829
|
init_node_figlet();
|
|
16310
16830
|
import_semver5 = __toESM(require_semver2(), 1);
|
|
16311
16831
|
init_esm3();
|
|
@@ -16613,7 +17133,7 @@ var init_chunk_UBCKZYTO = __esm({
|
|
|
16613
17133
|
});
|
|
16614
17134
|
MAX_INPUT_LENGTH2 = 1e4;
|
|
16615
17135
|
SOLE_REFERENCE_PATTERN2 = /^\{(?:env|file):[^}]+\}$/;
|
|
16616
|
-
AUTH_DIR2 = path22.join(
|
|
17136
|
+
AUTH_DIR2 = path22.join(os3.homedir(), ".config", "releasekit");
|
|
16617
17137
|
AUTH_FILE2 = path22.join(AUTH_DIR2, "auth.json");
|
|
16618
17138
|
CONFIG_FILE2 = "releasekit.config.json";
|
|
16619
17139
|
VersionError = class extends BaseVersionError {
|
|
@@ -17046,7 +17566,6 @@ var init_dist13 = __esm({
|
|
|
17046
17566
|
});
|
|
17047
17567
|
|
|
17048
17568
|
// ../notes/dist/chunk-7TJSPQPW.js
|
|
17049
|
-
import chalk4 from "chalk";
|
|
17050
17569
|
import * as fs23 from "fs";
|
|
17051
17570
|
import * as path23 from "path";
|
|
17052
17571
|
function setLogLevel2(level) {
|
|
@@ -17075,7 +17594,7 @@ function info2(message) {
|
|
|
17075
17594
|
}
|
|
17076
17595
|
function success2(message) {
|
|
17077
17596
|
if (!shouldLog3("info")) return;
|
|
17078
|
-
console.error(
|
|
17597
|
+
console.error(source_default.green(`[SUCCESS] ${message}`));
|
|
17079
17598
|
}
|
|
17080
17599
|
function debug(message) {
|
|
17081
17600
|
log5(message, "debug");
|
|
@@ -17198,6 +17717,7 @@ var LOG_LEVELS3, PREFIXES3, COLORS3, currentLevel3, quietMode3, ReleaseKitError3
|
|
|
17198
17717
|
var init_chunk_7TJSPQPW = __esm({
|
|
17199
17718
|
"../notes/dist/chunk-7TJSPQPW.js"() {
|
|
17200
17719
|
"use strict";
|
|
17720
|
+
init_source();
|
|
17201
17721
|
LOG_LEVELS3 = {
|
|
17202
17722
|
error: 0,
|
|
17203
17723
|
warn: 1,
|
|
@@ -17213,11 +17733,11 @@ var init_chunk_7TJSPQPW = __esm({
|
|
|
17213
17733
|
trace: "[TRACE]"
|
|
17214
17734
|
};
|
|
17215
17735
|
COLORS3 = {
|
|
17216
|
-
error:
|
|
17217
|
-
warn:
|
|
17218
|
-
info:
|
|
17219
|
-
debug:
|
|
17220
|
-
trace:
|
|
17736
|
+
error: source_default.red,
|
|
17737
|
+
warn: source_default.yellow,
|
|
17738
|
+
info: source_default.blue,
|
|
17739
|
+
debug: source_default.gray,
|
|
17740
|
+
trace: source_default.dim
|
|
17221
17741
|
};
|
|
17222
17742
|
currentLevel3 = "info";
|
|
17223
17743
|
quietMode3 = false;
|
|
@@ -18520,8 +19040,8 @@ var init_uploads = __esm({
|
|
|
18520
19040
|
init_shims();
|
|
18521
19041
|
checkFileSupport = () => {
|
|
18522
19042
|
if (typeof File === "undefined") {
|
|
18523
|
-
const { process:
|
|
18524
|
-
const isOldNode = typeof
|
|
19043
|
+
const { process: process3 } = globalThis;
|
|
19044
|
+
const isOldNode = typeof process3?.versions?.node === "string" && parseInt(process3.versions.node.split(".")) < 20;
|
|
18525
19045
|
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
19046
|
}
|
|
18527
19047
|
};
|
|
@@ -22003,12 +22523,12 @@ var readEnv;
|
|
|
22003
22523
|
var init_env = __esm({
|
|
22004
22524
|
"../../node_modules/.pnpm/@anthropic-ai+sdk@0.82.0_zod@4.3.6/node_modules/@anthropic-ai/sdk/internal/utils/env.mjs"() {
|
|
22005
22525
|
"use strict";
|
|
22006
|
-
readEnv = (
|
|
22526
|
+
readEnv = (env2) => {
|
|
22007
22527
|
if (typeof globalThis.process !== "undefined") {
|
|
22008
|
-
return globalThis.process.env?.[
|
|
22528
|
+
return globalThis.process.env?.[env2]?.trim() ?? void 0;
|
|
22009
22529
|
}
|
|
22010
22530
|
if (typeof globalThis.Deno !== "undefined") {
|
|
22011
|
-
return globalThis.Deno.env?.get?.(
|
|
22531
|
+
return globalThis.Deno.env?.get?.(env2)?.trim();
|
|
22012
22532
|
}
|
|
22013
22533
|
return void 0;
|
|
22014
22534
|
};
|
|
@@ -24186,8 +24706,8 @@ var init_uploads3 = __esm({
|
|
|
24186
24706
|
init_shims2();
|
|
24187
24707
|
checkFileSupport2 = () => {
|
|
24188
24708
|
if (typeof File === "undefined") {
|
|
24189
|
-
const { process:
|
|
24190
|
-
const isOldNode = typeof
|
|
24709
|
+
const { process: process3 } = globalThis;
|
|
24710
|
+
const isOldNode = typeof process3?.versions?.node === "string" && parseInt(process3.versions.node.split(".")) < 20;
|
|
24191
24711
|
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
24712
|
}
|
|
24193
24713
|
};
|
|
@@ -26603,12 +27123,12 @@ var readEnv2;
|
|
|
26603
27123
|
var init_env2 = __esm({
|
|
26604
27124
|
"../../node_modules/.pnpm/openai@6.33.0_zod@4.3.6/node_modules/openai/internal/utils/env.mjs"() {
|
|
26605
27125
|
"use strict";
|
|
26606
|
-
readEnv2 = (
|
|
27126
|
+
readEnv2 = (env2) => {
|
|
26607
27127
|
if (typeof globalThis.process !== "undefined") {
|
|
26608
|
-
return globalThis.process.env?.[
|
|
27128
|
+
return globalThis.process.env?.[env2]?.trim() ?? void 0;
|
|
26609
27129
|
}
|
|
26610
27130
|
if (typeof globalThis.Deno !== "undefined") {
|
|
26611
|
-
return globalThis.Deno.env?.get?.(
|
|
27131
|
+
return globalThis.Deno.env?.get?.(env2)?.trim();
|
|
26612
27132
|
}
|
|
26613
27133
|
return void 0;
|
|
26614
27134
|
};
|
|
@@ -32030,15 +32550,15 @@ var require_runtime = __commonJS({
|
|
|
32030
32550
|
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
32551
|
}
|
|
32032
32552
|
}
|
|
32033
|
-
function template(templateSpec,
|
|
32034
|
-
if (!
|
|
32553
|
+
function template(templateSpec, env2) {
|
|
32554
|
+
if (!env2) {
|
|
32035
32555
|
throw new _exception2["default"]("No environment passed to template");
|
|
32036
32556
|
}
|
|
32037
32557
|
if (!templateSpec || !templateSpec.main) {
|
|
32038
32558
|
throw new _exception2["default"]("Unknown template object: " + typeof templateSpec);
|
|
32039
32559
|
}
|
|
32040
32560
|
templateSpec.main.decorator = templateSpec.main_d;
|
|
32041
|
-
|
|
32561
|
+
env2.VM.checkRevision(templateSpec.compiler);
|
|
32042
32562
|
var templateWasPrecompiledWithCompilerV7 = templateSpec.compiler && templateSpec.compiler[0] === 7;
|
|
32043
32563
|
function invokePartialWrapper(partial, context, options) {
|
|
32044
32564
|
if (options.hash) {
|
|
@@ -32047,12 +32567,12 @@ var require_runtime = __commonJS({
|
|
|
32047
32567
|
options.ids[0] = true;
|
|
32048
32568
|
}
|
|
32049
32569
|
}
|
|
32050
|
-
partial =
|
|
32570
|
+
partial = env2.VM.resolvePartial.call(this, partial, context, options);
|
|
32051
32571
|
options.hooks = this.hooks;
|
|
32052
32572
|
options.protoAccessControl = this.protoAccessControl;
|
|
32053
|
-
var result =
|
|
32054
|
-
if (result == null &&
|
|
32055
|
-
options.partials[options.name] =
|
|
32573
|
+
var result = env2.VM.invokePartial.call(this, partial, context, options);
|
|
32574
|
+
if (result == null && env2.compile) {
|
|
32575
|
+
options.partials[options.name] = env2.compile(partial, templateSpec.compilerOptions, env2);
|
|
32056
32576
|
result = options.partials[options.name](context, options);
|
|
32057
32577
|
}
|
|
32058
32578
|
if (result != null) {
|
|
@@ -32137,7 +32657,7 @@ var require_runtime = __commonJS({
|
|
|
32137
32657
|
},
|
|
32138
32658
|
// An empty object to use as replacement for null-contexts
|
|
32139
32659
|
nullContext: Object.seal({}),
|
|
32140
|
-
noop:
|
|
32660
|
+
noop: env2.VM.noop,
|
|
32141
32661
|
compilerInfo: templateSpec.compiler
|
|
32142
32662
|
};
|
|
32143
32663
|
function ret(context) {
|
|
@@ -32165,14 +32685,14 @@ var require_runtime = __commonJS({
|
|
|
32165
32685
|
ret._setup = function(options) {
|
|
32166
32686
|
if (!options.partial) {
|
|
32167
32687
|
var mergedHelpers = {};
|
|
32168
|
-
addHelpers(mergedHelpers,
|
|
32688
|
+
addHelpers(mergedHelpers, env2.helpers, container);
|
|
32169
32689
|
addHelpers(mergedHelpers, options.helpers, container);
|
|
32170
32690
|
container.helpers = mergedHelpers;
|
|
32171
32691
|
if (templateSpec.usePartial) {
|
|
32172
|
-
container.partials = container.mergeIfNeeded(options.partials,
|
|
32692
|
+
container.partials = container.mergeIfNeeded(options.partials, env2.partials);
|
|
32173
32693
|
}
|
|
32174
32694
|
if (templateSpec.usePartial || templateSpec.useDecorators) {
|
|
32175
|
-
container.decorators = Utils.extend({},
|
|
32695
|
+
container.decorators = Utils.extend({}, env2.decorators, options.decorators);
|
|
32176
32696
|
}
|
|
32177
32697
|
container.hooks = {};
|
|
32178
32698
|
container.protoAccessControl = _internalProtoAccess.createProtoAccessControl(options);
|
|
@@ -34021,7 +34541,7 @@ var require_compiler = __commonJS({
|
|
|
34021
34541
|
}
|
|
34022
34542
|
}
|
|
34023
34543
|
};
|
|
34024
|
-
function precompile(input, options,
|
|
34544
|
+
function precompile(input, options, env2) {
|
|
34025
34545
|
if (input == null || typeof input !== "string" && input.type !== "Program") {
|
|
34026
34546
|
throw new _exception2["default"]("You must pass a string or Handlebars AST to Handlebars.precompile. You passed " + input);
|
|
34027
34547
|
}
|
|
@@ -34032,10 +34552,10 @@ var require_compiler = __commonJS({
|
|
|
34032
34552
|
if (options.compat) {
|
|
34033
34553
|
options.useDepths = true;
|
|
34034
34554
|
}
|
|
34035
|
-
var ast =
|
|
34036
|
-
return new
|
|
34555
|
+
var ast = env2.parse(input, options), environment = new env2.Compiler().compile(ast, options);
|
|
34556
|
+
return new env2.JavaScriptCompiler().compile(environment, options);
|
|
34037
34557
|
}
|
|
34038
|
-
function compile2(input, options,
|
|
34558
|
+
function compile2(input, options, env2) {
|
|
34039
34559
|
if (options === void 0) options = {};
|
|
34040
34560
|
if (input == null || typeof input !== "string" && input.type !== "Program") {
|
|
34041
34561
|
throw new _exception2["default"]("You must pass a string or Handlebars AST to Handlebars.compile. You passed " + input);
|
|
@@ -34049,8 +34569,8 @@ var require_compiler = __commonJS({
|
|
|
34049
34569
|
}
|
|
34050
34570
|
var compiled = void 0;
|
|
34051
34571
|
function compileInput() {
|
|
34052
|
-
var ast =
|
|
34053
|
-
return
|
|
34572
|
+
var ast = env2.parse(input, options), environment = new env2.Compiler().compile(ast, options), templateSpec = new env2.JavaScriptCompiler().compile(environment, options, void 0, true);
|
|
34573
|
+
return env2.template(templateSpec);
|
|
34054
34574
|
}
|
|
34055
34575
|
function ret(context, execOptions) {
|
|
34056
34576
|
if (!compiled) {
|
|
@@ -40459,7 +40979,7 @@ var init_liquid_node = __esm({
|
|
|
40459
40979
|
TokenKind2[TokenKind2["Delimited"] = 12] = "Delimited";
|
|
40460
40980
|
})(TokenKind || (TokenKind = {}));
|
|
40461
40981
|
Context = class _Context {
|
|
40462
|
-
constructor(
|
|
40982
|
+
constructor(env2 = {}, opts = defaultOptions2, renderOptions = {}, { memoryLimit, renderLimit } = {}) {
|
|
40463
40983
|
var _a5, _b, _c, _d, _e;
|
|
40464
40984
|
this.scopes = [{}];
|
|
40465
40985
|
this.registers = {};
|
|
@@ -40468,7 +40988,7 @@ var init_liquid_node = __esm({
|
|
|
40468
40988
|
this.sync = !!renderOptions.sync;
|
|
40469
40989
|
this.opts = opts;
|
|
40470
40990
|
this.globals = (_a5 = renderOptions.globals) !== null && _a5 !== void 0 ? _a5 : opts.globals;
|
|
40471
|
-
this.environments = isObject2(
|
|
40991
|
+
this.environments = isObject2(env2) ? env2 : Object(env2);
|
|
40472
40992
|
this.strictVariables = (_b = renderOptions.strictVariables) !== null && _b !== void 0 ? _b : this.opts.strictVariables;
|
|
40473
40993
|
this.ownPropertyOnly = (_c = renderOptions.ownPropertyOnly) !== null && _c !== void 0 ? _c : opts.ownPropertyOnly;
|
|
40474
40994
|
this.memoryLimit = memoryLimit !== null && memoryLimit !== void 0 ? memoryLimit : new Limiter("memory alloc", (_d = renderOptions.memoryLimit) !== null && _d !== void 0 ? _d : opts.memoryLimit);
|
|
@@ -41925,7 +42445,7 @@ import * as path33 from "path";
|
|
|
41925
42445
|
import { z as z23 } from "zod";
|
|
41926
42446
|
import { z as z4 } from "zod";
|
|
41927
42447
|
import * as fs24 from "fs";
|
|
41928
|
-
import * as
|
|
42448
|
+
import * as os4 from "os";
|
|
41929
42449
|
import * as path24 from "path";
|
|
41930
42450
|
import * as fs43 from "fs";
|
|
41931
42451
|
import * as fs93 from "fs";
|
|
@@ -41962,7 +42482,7 @@ function substituteVariables3(value) {
|
|
|
41962
42482
|
return process.env[varName] ?? "";
|
|
41963
42483
|
});
|
|
41964
42484
|
result = result.replace(filePattern, (_, filePath) => {
|
|
41965
|
-
const expandedPath = filePath.startsWith("~") ? path24.join(
|
|
42485
|
+
const expandedPath = filePath.startsWith("~") ? path24.join(os4.homedir(), filePath.slice(1)) : filePath;
|
|
41966
42486
|
try {
|
|
41967
42487
|
return fs24.readFileSync(expandedPath, "utf-8").trim();
|
|
41968
42488
|
} catch {
|
|
@@ -43562,7 +44082,7 @@ var init_chunk_Y4S5UWCL = __esm({
|
|
|
43562
44082
|
});
|
|
43563
44083
|
MAX_INPUT_LENGTH3 = 1e4;
|
|
43564
44084
|
SOLE_REFERENCE_PATTERN3 = /^\{(?:env|file):[^}]+\}$/;
|
|
43565
|
-
AUTH_DIR3 = path24.join(
|
|
44085
|
+
AUTH_DIR3 = path24.join(os4.homedir(), ".config", "releasekit");
|
|
43566
44086
|
AUTH_FILE3 = path24.join(AUTH_DIR3, "auth.json");
|
|
43567
44087
|
CONFIG_FILE3 = "releasekit.config.json";
|
|
43568
44088
|
NotesError = class extends ReleaseKitError3 {
|
|
@@ -43922,7 +44442,6 @@ var init_dist14 = __esm({
|
|
|
43922
44442
|
});
|
|
43923
44443
|
|
|
43924
44444
|
// ../publish/dist/chunk-OZHNJUFW.js
|
|
43925
|
-
import chalk5 from "chalk";
|
|
43926
44445
|
import * as fs25 from "fs";
|
|
43927
44446
|
import * as TOML4 from "smol-toml";
|
|
43928
44447
|
import * as fs34 from "fs";
|
|
@@ -43930,7 +44449,7 @@ import * as path34 from "path";
|
|
|
43930
44449
|
import { z as z24 } from "zod";
|
|
43931
44450
|
import { z as z5 } from "zod";
|
|
43932
44451
|
import * as fs222 from "fs";
|
|
43933
|
-
import * as
|
|
44452
|
+
import * as os5 from "os";
|
|
43934
44453
|
import * as path222 from "path";
|
|
43935
44454
|
import { execFile as execFile2 } from "child_process";
|
|
43936
44455
|
import * as fs44 from "fs";
|
|
@@ -43972,7 +44491,7 @@ function info3(message) {
|
|
|
43972
44491
|
}
|
|
43973
44492
|
function success3(message) {
|
|
43974
44493
|
if (!shouldLog4("info")) return;
|
|
43975
|
-
console.error(
|
|
44494
|
+
console.error(source_default.green(`[SUCCESS] ${message}`));
|
|
43976
44495
|
}
|
|
43977
44496
|
function debug2(message) {
|
|
43978
44497
|
log6(message, "debug");
|
|
@@ -44023,7 +44542,7 @@ function substituteVariables4(value) {
|
|
|
44023
44542
|
return process.env[varName] ?? "";
|
|
44024
44543
|
});
|
|
44025
44544
|
result = result.replace(filePattern, (_, filePath) => {
|
|
44026
|
-
const expandedPath = filePath.startsWith("~") ? path222.join(
|
|
44545
|
+
const expandedPath = filePath.startsWith("~") ? path222.join(os5.homedir(), filePath.slice(1)) : filePath;
|
|
44027
44546
|
try {
|
|
44028
44547
|
return fs222.readFileSync(expandedPath, "utf-8").trim();
|
|
44029
44548
|
} catch {
|
|
@@ -45461,6 +45980,7 @@ var import_semver6, LOG_LEVELS4, PREFIXES4, COLORS4, currentLevel4, quietMode4,
|
|
|
45461
45980
|
var init_chunk_OZHNJUFW = __esm({
|
|
45462
45981
|
"../publish/dist/chunk-OZHNJUFW.js"() {
|
|
45463
45982
|
"use strict";
|
|
45983
|
+
init_source();
|
|
45464
45984
|
import_semver6 = __toESM(require_semver2(), 1);
|
|
45465
45985
|
LOG_LEVELS4 = {
|
|
45466
45986
|
error: 0,
|
|
@@ -45477,11 +45997,11 @@ var init_chunk_OZHNJUFW = __esm({
|
|
|
45477
45997
|
trace: "[TRACE]"
|
|
45478
45998
|
};
|
|
45479
45999
|
COLORS4 = {
|
|
45480
|
-
error:
|
|
45481
|
-
warn:
|
|
45482
|
-
info:
|
|
45483
|
-
debug:
|
|
45484
|
-
trace:
|
|
46000
|
+
error: source_default.red,
|
|
46001
|
+
warn: source_default.yellow,
|
|
46002
|
+
info: source_default.blue,
|
|
46003
|
+
debug: source_default.gray,
|
|
46004
|
+
trace: source_default.dim
|
|
45485
46005
|
};
|
|
45486
46006
|
currentLevel4 = "info";
|
|
45487
46007
|
quietMode4 = false;
|
|
@@ -45817,7 +46337,7 @@ var init_chunk_OZHNJUFW = __esm({
|
|
|
45817
46337
|
});
|
|
45818
46338
|
MAX_INPUT_LENGTH4 = 1e4;
|
|
45819
46339
|
SOLE_REFERENCE_PATTERN4 = /^\{(?:env|file):[^}]+\}$/;
|
|
45820
|
-
AUTH_DIR4 = path222.join(
|
|
46340
|
+
AUTH_DIR4 = path222.join(os5.homedir(), ".config", "releasekit");
|
|
45821
46341
|
AUTH_FILE4 = path222.join(AUTH_DIR4, "auth.json");
|
|
45822
46342
|
CONFIG_FILE4 = "releasekit.config.json";
|
|
45823
46343
|
BasePublishError = class _BasePublishError extends ReleaseKitError4 {
|
|
@@ -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) {
|
|
@@ -46041,7 +46561,7 @@ import * as path3 from "path";
|
|
|
46041
46561
|
import { z as z2 } from "zod";
|
|
46042
46562
|
import { z } from "zod";
|
|
46043
46563
|
import * as fs2 from "fs";
|
|
46044
|
-
import * as
|
|
46564
|
+
import * as os2 from "os";
|
|
46045
46565
|
import * as path2 from "path";
|
|
46046
46566
|
var ConfigError = class extends ReleaseKitError {
|
|
46047
46567
|
code = "CONFIG_ERROR";
|
|
@@ -46366,7 +46886,7 @@ function substituteVariables(value) {
|
|
|
46366
46886
|
return process.env[varName] ?? "";
|
|
46367
46887
|
});
|
|
46368
46888
|
result = result.replace(filePattern, (_, filePath) => {
|
|
46369
|
-
const expandedPath = filePath.startsWith("~") ? path2.join(
|
|
46889
|
+
const expandedPath = filePath.startsWith("~") ? path2.join(os2.homedir(), filePath.slice(1)) : filePath;
|
|
46370
46890
|
try {
|
|
46371
46891
|
return fs2.readFileSync(expandedPath, "utf-8").trim();
|
|
46372
46892
|
} catch {
|
|
@@ -46396,7 +46916,7 @@ function substituteInObject(obj) {
|
|
|
46396
46916
|
}
|
|
46397
46917
|
return obj;
|
|
46398
46918
|
}
|
|
46399
|
-
var AUTH_DIR = path2.join(
|
|
46919
|
+
var AUTH_DIR = path2.join(os2.homedir(), ".config", "releasekit");
|
|
46400
46920
|
var AUTH_FILE = path2.join(AUTH_DIR, "auth.json");
|
|
46401
46921
|
var CONFIG_FILE = "releasekit.config.json";
|
|
46402
46922
|
function loadConfigFile(configPath) {
|