opencommit 3.2.8 → 3.2.10
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/README.md +1 -1
- package/out/cli.cjs +934 -310
- package/package.json +2 -1
package/out/cli.cjs
CHANGED
|
@@ -1477,20 +1477,20 @@ var require_ini = __commonJS({
|
|
|
1477
1477
|
let esc = false;
|
|
1478
1478
|
let unesc = "";
|
|
1479
1479
|
for (let i3 = 0, l3 = val.length; i3 < l3; i3++) {
|
|
1480
|
-
const
|
|
1480
|
+
const c4 = val.charAt(i3);
|
|
1481
1481
|
if (esc) {
|
|
1482
|
-
if ("\\;#".indexOf(
|
|
1483
|
-
unesc +=
|
|
1482
|
+
if ("\\;#".indexOf(c4) !== -1) {
|
|
1483
|
+
unesc += c4;
|
|
1484
1484
|
} else {
|
|
1485
|
-
unesc += "\\" +
|
|
1485
|
+
unesc += "\\" + c4;
|
|
1486
1486
|
}
|
|
1487
1487
|
esc = false;
|
|
1488
|
-
} else if (";#".indexOf(
|
|
1488
|
+
} else if (";#".indexOf(c4) !== -1) {
|
|
1489
1489
|
break;
|
|
1490
|
-
} else if (
|
|
1490
|
+
} else if (c4 === "\\") {
|
|
1491
1491
|
esc = true;
|
|
1492
1492
|
} else {
|
|
1493
|
-
unesc +=
|
|
1493
|
+
unesc += c4;
|
|
1494
1494
|
}
|
|
1495
1495
|
}
|
|
1496
1496
|
if (esc) {
|
|
@@ -1697,9 +1697,9 @@ var require_lib = __commonJS({
|
|
|
1697
1697
|
};
|
|
1698
1698
|
exports2.ByteString = (value, options = {}) => {
|
|
1699
1699
|
const x5 = exports2.DOMString(value, options);
|
|
1700
|
-
let
|
|
1701
|
-
for (let i3 = 0; (
|
|
1702
|
-
if (
|
|
1700
|
+
let c4;
|
|
1701
|
+
for (let i3 = 0; (c4 = x5.codePointAt(i3)) !== void 0; ++i3) {
|
|
1702
|
+
if (c4 > 255) {
|
|
1703
1703
|
throw makeException(TypeError, "is not a valid ByteString", options);
|
|
1704
1704
|
}
|
|
1705
1705
|
}
|
|
@@ -1710,17 +1710,17 @@ var require_lib = __commonJS({
|
|
|
1710
1710
|
const n2 = S6.length;
|
|
1711
1711
|
const U7 = [];
|
|
1712
1712
|
for (let i3 = 0; i3 < n2; ++i3) {
|
|
1713
|
-
const
|
|
1714
|
-
if (
|
|
1715
|
-
U7.push(String.fromCodePoint(
|
|
1716
|
-
} else if (56320 <=
|
|
1713
|
+
const c4 = S6.charCodeAt(i3);
|
|
1714
|
+
if (c4 < 55296 || c4 > 57343) {
|
|
1715
|
+
U7.push(String.fromCodePoint(c4));
|
|
1716
|
+
} else if (56320 <= c4 && c4 <= 57343) {
|
|
1717
1717
|
U7.push(String.fromCodePoint(65533));
|
|
1718
1718
|
} else if (i3 === n2 - 1) {
|
|
1719
1719
|
U7.push(String.fromCodePoint(65533));
|
|
1720
1720
|
} else {
|
|
1721
1721
|
const d7 = S6.charCodeAt(i3 + 1);
|
|
1722
1722
|
if (56320 <= d7 && d7 <= 57343) {
|
|
1723
|
-
const a4 =
|
|
1723
|
+
const a4 = c4 & 1023;
|
|
1724
1724
|
const b7 = d7 & 1023;
|
|
1725
1725
|
U7.push(String.fromCodePoint((2 << 15) + (2 << 9) * a4 + b7));
|
|
1726
1726
|
++i3;
|
|
@@ -2597,17 +2597,17 @@ var require_tr46 = __commonJS({
|
|
|
2597
2597
|
var require_infra = __commonJS({
|
|
2598
2598
|
"node_modules/whatwg-url/lib/infra.js"(exports2, module2) {
|
|
2599
2599
|
"use strict";
|
|
2600
|
-
function isASCIIDigit(
|
|
2601
|
-
return
|
|
2600
|
+
function isASCIIDigit(c4) {
|
|
2601
|
+
return c4 >= 48 && c4 <= 57;
|
|
2602
2602
|
}
|
|
2603
|
-
function isASCIIAlpha(
|
|
2604
|
-
return
|
|
2603
|
+
function isASCIIAlpha(c4) {
|
|
2604
|
+
return c4 >= 65 && c4 <= 90 || c4 >= 97 && c4 <= 122;
|
|
2605
2605
|
}
|
|
2606
|
-
function isASCIIAlphanumeric(
|
|
2607
|
-
return isASCIIAlpha(
|
|
2606
|
+
function isASCIIAlphanumeric(c4) {
|
|
2607
|
+
return isASCIIAlpha(c4) || isASCIIDigit(c4);
|
|
2608
2608
|
}
|
|
2609
|
-
function isASCIIHex(
|
|
2610
|
-
return isASCIIDigit(
|
|
2609
|
+
function isASCIIHex(c4) {
|
|
2610
|
+
return isASCIIDigit(c4) || c4 >= 65 && c4 <= 70 || c4 >= 97 && c4 <= 102;
|
|
2611
2611
|
}
|
|
2612
2612
|
module2.exports = {
|
|
2613
2613
|
isASCIIDigit,
|
|
@@ -2646,8 +2646,8 @@ var require_percent_encoding = __commonJS({
|
|
|
2646
2646
|
function p4(char) {
|
|
2647
2647
|
return char.codePointAt(0);
|
|
2648
2648
|
}
|
|
2649
|
-
function percentEncode(
|
|
2650
|
-
let hex =
|
|
2649
|
+
function percentEncode(c4) {
|
|
2650
|
+
let hex = c4.toString(16).toUpperCase();
|
|
2651
2651
|
if (hex.length === 1) {
|
|
2652
2652
|
hex = `0${hex}`;
|
|
2653
2653
|
}
|
|
@@ -2674,35 +2674,35 @@ var require_percent_encoding = __commonJS({
|
|
|
2674
2674
|
const bytes = utf8Encode(input);
|
|
2675
2675
|
return percentDecodeBytes(bytes);
|
|
2676
2676
|
}
|
|
2677
|
-
function isC0ControlPercentEncode(
|
|
2678
|
-
return
|
|
2677
|
+
function isC0ControlPercentEncode(c4) {
|
|
2678
|
+
return c4 <= 31 || c4 > 126;
|
|
2679
2679
|
}
|
|
2680
2680
|
var extraFragmentPercentEncodeSet = /* @__PURE__ */ new Set([p4(" "), p4('"'), p4("<"), p4(">"), p4("`")]);
|
|
2681
|
-
function isFragmentPercentEncode(
|
|
2682
|
-
return isC0ControlPercentEncode(
|
|
2681
|
+
function isFragmentPercentEncode(c4) {
|
|
2682
|
+
return isC0ControlPercentEncode(c4) || extraFragmentPercentEncodeSet.has(c4);
|
|
2683
2683
|
}
|
|
2684
2684
|
var extraQueryPercentEncodeSet = /* @__PURE__ */ new Set([p4(" "), p4('"'), p4("#"), p4("<"), p4(">")]);
|
|
2685
|
-
function isQueryPercentEncode(
|
|
2686
|
-
return isC0ControlPercentEncode(
|
|
2685
|
+
function isQueryPercentEncode(c4) {
|
|
2686
|
+
return isC0ControlPercentEncode(c4) || extraQueryPercentEncodeSet.has(c4);
|
|
2687
2687
|
}
|
|
2688
|
-
function isSpecialQueryPercentEncode(
|
|
2689
|
-
return isQueryPercentEncode(
|
|
2688
|
+
function isSpecialQueryPercentEncode(c4) {
|
|
2689
|
+
return isQueryPercentEncode(c4) || c4 === p4("'");
|
|
2690
2690
|
}
|
|
2691
2691
|
var extraPathPercentEncodeSet = /* @__PURE__ */ new Set([p4("?"), p4("`"), p4("{"), p4("}"), p4("^")]);
|
|
2692
|
-
function isPathPercentEncode(
|
|
2693
|
-
return isQueryPercentEncode(
|
|
2692
|
+
function isPathPercentEncode(c4) {
|
|
2693
|
+
return isQueryPercentEncode(c4) || extraPathPercentEncodeSet.has(c4);
|
|
2694
2694
|
}
|
|
2695
2695
|
var extraUserinfoPercentEncodeSet = /* @__PURE__ */ new Set([p4("/"), p4(":"), p4(";"), p4("="), p4("@"), p4("["), p4("\\"), p4("]"), p4("|")]);
|
|
2696
|
-
function isUserinfoPercentEncode(
|
|
2697
|
-
return isPathPercentEncode(
|
|
2696
|
+
function isUserinfoPercentEncode(c4) {
|
|
2697
|
+
return isPathPercentEncode(c4) || extraUserinfoPercentEncodeSet.has(c4);
|
|
2698
2698
|
}
|
|
2699
2699
|
var extraComponentPercentEncodeSet = /* @__PURE__ */ new Set([p4("$"), p4("%"), p4("&"), p4("+"), p4(",")]);
|
|
2700
|
-
function isComponentPercentEncode(
|
|
2701
|
-
return isUserinfoPercentEncode(
|
|
2700
|
+
function isComponentPercentEncode(c4) {
|
|
2701
|
+
return isUserinfoPercentEncode(c4) || extraComponentPercentEncodeSet.has(c4);
|
|
2702
2702
|
}
|
|
2703
2703
|
var extraURLEncodedPercentEncodeSet = /* @__PURE__ */ new Set([p4("!"), p4("'"), p4("("), p4(")"), p4("~")]);
|
|
2704
|
-
function isURLEncodedPercentEncode(
|
|
2705
|
-
return isComponentPercentEncode(
|
|
2704
|
+
function isURLEncodedPercentEncode(c4) {
|
|
2705
|
+
return isComponentPercentEncode(c4) || extraURLEncodedPercentEncodeSet.has(c4);
|
|
2706
2706
|
}
|
|
2707
2707
|
function utf8PercentEncodeCodePointInternal(codePoint, percentEncodePredicate) {
|
|
2708
2708
|
const bytes = utf8Encode(codePoint);
|
|
@@ -2780,8 +2780,8 @@ var require_url_state_machine = __commonJS({
|
|
|
2780
2780
|
return [...str2].length;
|
|
2781
2781
|
}
|
|
2782
2782
|
function at2(input, idx) {
|
|
2783
|
-
const
|
|
2784
|
-
return isNaN(
|
|
2783
|
+
const c4 = input[idx];
|
|
2784
|
+
return isNaN(c4) ? void 0 : String.fromCodePoint(c4);
|
|
2785
2785
|
}
|
|
2786
2786
|
function isSingleDot(buffer) {
|
|
2787
2787
|
return buffer === "." || buffer.toLowerCase() === "%2e";
|
|
@@ -2895,7 +2895,7 @@ var require_url_state_machine = __commonJS({
|
|
|
2895
2895
|
let pieceIndex = 0;
|
|
2896
2896
|
let compress = null;
|
|
2897
2897
|
let pointer = 0;
|
|
2898
|
-
input = Array.from(input, (
|
|
2898
|
+
input = Array.from(input, (c4) => c4.codePointAt(0));
|
|
2899
2899
|
if (input[pointer] === p4(":")) {
|
|
2900
2900
|
if (input[pointer + 1] !== p4(":")) {
|
|
2901
2901
|
return failure;
|
|
@@ -3194,11 +3194,11 @@ var require_url_state_machine = __commonJS({
|
|
|
3194
3194
|
this.atFlag = false;
|
|
3195
3195
|
this.arrFlag = false;
|
|
3196
3196
|
this.passwordTokenSeenFlag = false;
|
|
3197
|
-
this.input = Array.from(this.input, (
|
|
3197
|
+
this.input = Array.from(this.input, (c4) => c4.codePointAt(0));
|
|
3198
3198
|
for (; this.pointer <= this.input.length; ++this.pointer) {
|
|
3199
|
-
const
|
|
3200
|
-
const cStr = isNaN(
|
|
3201
|
-
const ret = this[`parse ${this.state}`](
|
|
3199
|
+
const c4 = this.input[this.pointer];
|
|
3200
|
+
const cStr = isNaN(c4) ? void 0 : String.fromCodePoint(c4);
|
|
3201
|
+
const ret = this[`parse ${this.state}`](c4, cStr);
|
|
3202
3202
|
if (!ret) {
|
|
3203
3203
|
break;
|
|
3204
3204
|
} else if (ret === failure) {
|
|
@@ -3207,8 +3207,8 @@ var require_url_state_machine = __commonJS({
|
|
|
3207
3207
|
}
|
|
3208
3208
|
}
|
|
3209
3209
|
}
|
|
3210
|
-
URLStateMachine.prototype["parse scheme start"] = function parseSchemeStart(
|
|
3211
|
-
if (infra.isASCIIAlpha(
|
|
3210
|
+
URLStateMachine.prototype["parse scheme start"] = function parseSchemeStart(c4, cStr) {
|
|
3211
|
+
if (infra.isASCIIAlpha(c4)) {
|
|
3212
3212
|
this.buffer += cStr.toLowerCase();
|
|
3213
3213
|
this.state = "scheme";
|
|
3214
3214
|
} else if (!this.stateOverride) {
|
|
@@ -3220,10 +3220,10 @@ var require_url_state_machine = __commonJS({
|
|
|
3220
3220
|
}
|
|
3221
3221
|
return true;
|
|
3222
3222
|
};
|
|
3223
|
-
URLStateMachine.prototype["parse scheme"] = function parseScheme(
|
|
3224
|
-
if (infra.isASCIIAlphanumeric(
|
|
3223
|
+
URLStateMachine.prototype["parse scheme"] = function parseScheme(c4, cStr) {
|
|
3224
|
+
if (infra.isASCIIAlphanumeric(c4) || c4 === p4("+") || c4 === p4("-") || c4 === p4(".")) {
|
|
3225
3225
|
this.buffer += cStr.toLowerCase();
|
|
3226
|
-
} else if (
|
|
3226
|
+
} else if (c4 === p4(":")) {
|
|
3227
3227
|
if (this.stateOverride) {
|
|
3228
3228
|
if (isSpecial(this.url) && !isSpecialScheme(this.buffer)) {
|
|
3229
3229
|
return false;
|
|
@@ -3272,10 +3272,10 @@ var require_url_state_machine = __commonJS({
|
|
|
3272
3272
|
}
|
|
3273
3273
|
return true;
|
|
3274
3274
|
};
|
|
3275
|
-
URLStateMachine.prototype["parse no scheme"] = function parseNoScheme(
|
|
3276
|
-
if (this.base === null || hasAnOpaquePath(this.base) &&
|
|
3275
|
+
URLStateMachine.prototype["parse no scheme"] = function parseNoScheme(c4) {
|
|
3276
|
+
if (this.base === null || hasAnOpaquePath(this.base) && c4 !== p4("#")) {
|
|
3277
3277
|
return failure;
|
|
3278
|
-
} else if (hasAnOpaquePath(this.base) &&
|
|
3278
|
+
} else if (hasAnOpaquePath(this.base) && c4 === p4("#")) {
|
|
3279
3279
|
this.url.scheme = this.base.scheme;
|
|
3280
3280
|
this.url.path = this.base.path;
|
|
3281
3281
|
this.url.query = this.base.query;
|
|
@@ -3290,8 +3290,8 @@ var require_url_state_machine = __commonJS({
|
|
|
3290
3290
|
}
|
|
3291
3291
|
return true;
|
|
3292
3292
|
};
|
|
3293
|
-
URLStateMachine.prototype["parse special relative or authority"] = function parseSpecialRelativeOrAuthority(
|
|
3294
|
-
if (
|
|
3293
|
+
URLStateMachine.prototype["parse special relative or authority"] = function parseSpecialRelativeOrAuthority(c4) {
|
|
3294
|
+
if (c4 === p4("/") && this.input[this.pointer + 1] === p4("/")) {
|
|
3295
3295
|
this.state = "special authority ignore slashes";
|
|
3296
3296
|
++this.pointer;
|
|
3297
3297
|
} else {
|
|
@@ -3301,8 +3301,8 @@ var require_url_state_machine = __commonJS({
|
|
|
3301
3301
|
}
|
|
3302
3302
|
return true;
|
|
3303
3303
|
};
|
|
3304
|
-
URLStateMachine.prototype["parse path or authority"] = function parsePathOrAuthority(
|
|
3305
|
-
if (
|
|
3304
|
+
URLStateMachine.prototype["parse path or authority"] = function parsePathOrAuthority(c4) {
|
|
3305
|
+
if (c4 === p4("/")) {
|
|
3306
3306
|
this.state = "authority";
|
|
3307
3307
|
} else {
|
|
3308
3308
|
this.state = "path";
|
|
@@ -3310,11 +3310,11 @@ var require_url_state_machine = __commonJS({
|
|
|
3310
3310
|
}
|
|
3311
3311
|
return true;
|
|
3312
3312
|
};
|
|
3313
|
-
URLStateMachine.prototype["parse relative"] = function parseRelative(
|
|
3313
|
+
URLStateMachine.prototype["parse relative"] = function parseRelative(c4) {
|
|
3314
3314
|
this.url.scheme = this.base.scheme;
|
|
3315
|
-
if (
|
|
3315
|
+
if (c4 === p4("/")) {
|
|
3316
3316
|
this.state = "relative slash";
|
|
3317
|
-
} else if (isSpecial(this.url) &&
|
|
3317
|
+
} else if (isSpecial(this.url) && c4 === p4("\\")) {
|
|
3318
3318
|
this.parseError = true;
|
|
3319
3319
|
this.state = "relative slash";
|
|
3320
3320
|
} else {
|
|
@@ -3324,13 +3324,13 @@ var require_url_state_machine = __commonJS({
|
|
|
3324
3324
|
this.url.port = this.base.port;
|
|
3325
3325
|
this.url.path = this.base.path.slice();
|
|
3326
3326
|
this.url.query = this.base.query;
|
|
3327
|
-
if (
|
|
3327
|
+
if (c4 === p4("?")) {
|
|
3328
3328
|
this.url.query = "";
|
|
3329
3329
|
this.state = "query";
|
|
3330
|
-
} else if (
|
|
3330
|
+
} else if (c4 === p4("#")) {
|
|
3331
3331
|
this.url.fragment = "";
|
|
3332
3332
|
this.state = "fragment";
|
|
3333
|
-
} else if (!isNaN(
|
|
3333
|
+
} else if (!isNaN(c4)) {
|
|
3334
3334
|
this.url.query = null;
|
|
3335
3335
|
this.url.path.pop();
|
|
3336
3336
|
this.state = "path";
|
|
@@ -3339,13 +3339,13 @@ var require_url_state_machine = __commonJS({
|
|
|
3339
3339
|
}
|
|
3340
3340
|
return true;
|
|
3341
3341
|
};
|
|
3342
|
-
URLStateMachine.prototype["parse relative slash"] = function parseRelativeSlash(
|
|
3343
|
-
if (isSpecial(this.url) && (
|
|
3344
|
-
if (
|
|
3342
|
+
URLStateMachine.prototype["parse relative slash"] = function parseRelativeSlash(c4) {
|
|
3343
|
+
if (isSpecial(this.url) && (c4 === p4("/") || c4 === p4("\\"))) {
|
|
3344
|
+
if (c4 === p4("\\")) {
|
|
3345
3345
|
this.parseError = true;
|
|
3346
3346
|
}
|
|
3347
3347
|
this.state = "special authority ignore slashes";
|
|
3348
|
-
} else if (
|
|
3348
|
+
} else if (c4 === p4("/")) {
|
|
3349
3349
|
this.state = "authority";
|
|
3350
3350
|
} else {
|
|
3351
3351
|
this.url.username = this.base.username;
|
|
@@ -3357,8 +3357,8 @@ var require_url_state_machine = __commonJS({
|
|
|
3357
3357
|
}
|
|
3358
3358
|
return true;
|
|
3359
3359
|
};
|
|
3360
|
-
URLStateMachine.prototype["parse special authority slashes"] = function parseSpecialAuthoritySlashes(
|
|
3361
|
-
if (
|
|
3360
|
+
URLStateMachine.prototype["parse special authority slashes"] = function parseSpecialAuthoritySlashes(c4) {
|
|
3361
|
+
if (c4 === p4("/") && this.input[this.pointer + 1] === p4("/")) {
|
|
3362
3362
|
this.state = "special authority ignore slashes";
|
|
3363
3363
|
++this.pointer;
|
|
3364
3364
|
} else {
|
|
@@ -3368,8 +3368,8 @@ var require_url_state_machine = __commonJS({
|
|
|
3368
3368
|
}
|
|
3369
3369
|
return true;
|
|
3370
3370
|
};
|
|
3371
|
-
URLStateMachine.prototype["parse special authority ignore slashes"] = function parseSpecialAuthorityIgnoreSlashes(
|
|
3372
|
-
if (
|
|
3371
|
+
URLStateMachine.prototype["parse special authority ignore slashes"] = function parseSpecialAuthorityIgnoreSlashes(c4) {
|
|
3372
|
+
if (c4 !== p4("/") && c4 !== p4("\\")) {
|
|
3373
3373
|
this.state = "authority";
|
|
3374
3374
|
--this.pointer;
|
|
3375
3375
|
} else {
|
|
@@ -3377,8 +3377,8 @@ var require_url_state_machine = __commonJS({
|
|
|
3377
3377
|
}
|
|
3378
3378
|
return true;
|
|
3379
3379
|
};
|
|
3380
|
-
URLStateMachine.prototype["parse authority"] = function parseAuthority(
|
|
3381
|
-
if (
|
|
3380
|
+
URLStateMachine.prototype["parse authority"] = function parseAuthority(c4, cStr) {
|
|
3381
|
+
if (c4 === p4("@")) {
|
|
3382
3382
|
this.parseError = true;
|
|
3383
3383
|
if (this.atFlag) {
|
|
3384
3384
|
this.buffer = `%40${this.buffer}`;
|
|
@@ -3399,7 +3399,7 @@ var require_url_state_machine = __commonJS({
|
|
|
3399
3399
|
}
|
|
3400
3400
|
}
|
|
3401
3401
|
this.buffer = "";
|
|
3402
|
-
} else if (isNaN(
|
|
3402
|
+
} else if (isNaN(c4) || c4 === p4("/") || c4 === p4("?") || c4 === p4("#") || isSpecial(this.url) && c4 === p4("\\")) {
|
|
3403
3403
|
if (this.atFlag && this.buffer === "") {
|
|
3404
3404
|
this.parseError = true;
|
|
3405
3405
|
return failure;
|
|
@@ -3412,11 +3412,11 @@ var require_url_state_machine = __commonJS({
|
|
|
3412
3412
|
}
|
|
3413
3413
|
return true;
|
|
3414
3414
|
};
|
|
3415
|
-
URLStateMachine.prototype["parse hostname"] = URLStateMachine.prototype["parse host"] = function parseHostName(
|
|
3415
|
+
URLStateMachine.prototype["parse hostname"] = URLStateMachine.prototype["parse host"] = function parseHostName(c4, cStr) {
|
|
3416
3416
|
if (this.stateOverride && this.url.scheme === "file") {
|
|
3417
3417
|
--this.pointer;
|
|
3418
3418
|
this.state = "file host";
|
|
3419
|
-
} else if (
|
|
3419
|
+
} else if (c4 === p4(":") && !this.arrFlag) {
|
|
3420
3420
|
if (this.buffer === "") {
|
|
3421
3421
|
this.parseError = true;
|
|
3422
3422
|
return failure;
|
|
@@ -3431,7 +3431,7 @@ var require_url_state_machine = __commonJS({
|
|
|
3431
3431
|
this.url.host = host;
|
|
3432
3432
|
this.buffer = "";
|
|
3433
3433
|
this.state = "port";
|
|
3434
|
-
} else if (isNaN(
|
|
3434
|
+
} else if (isNaN(c4) || c4 === p4("/") || c4 === p4("?") || c4 === p4("#") || isSpecial(this.url) && c4 === p4("\\")) {
|
|
3435
3435
|
--this.pointer;
|
|
3436
3436
|
if (isSpecial(this.url) && this.buffer === "") {
|
|
3437
3437
|
this.parseError = true;
|
|
@@ -3451,19 +3451,19 @@ var require_url_state_machine = __commonJS({
|
|
|
3451
3451
|
return false;
|
|
3452
3452
|
}
|
|
3453
3453
|
} else {
|
|
3454
|
-
if (
|
|
3454
|
+
if (c4 === p4("[")) {
|
|
3455
3455
|
this.arrFlag = true;
|
|
3456
|
-
} else if (
|
|
3456
|
+
} else if (c4 === p4("]")) {
|
|
3457
3457
|
this.arrFlag = false;
|
|
3458
3458
|
}
|
|
3459
3459
|
this.buffer += cStr;
|
|
3460
3460
|
}
|
|
3461
3461
|
return true;
|
|
3462
3462
|
};
|
|
3463
|
-
URLStateMachine.prototype["parse port"] = function parsePort(
|
|
3464
|
-
if (infra.isASCIIDigit(
|
|
3463
|
+
URLStateMachine.prototype["parse port"] = function parsePort(c4, cStr) {
|
|
3464
|
+
if (infra.isASCIIDigit(c4)) {
|
|
3465
3465
|
this.buffer += cStr;
|
|
3466
|
-
} else if (isNaN(
|
|
3466
|
+
} else if (isNaN(c4) || c4 === p4("/") || c4 === p4("?") || c4 === p4("#") || isSpecial(this.url) && c4 === p4("\\") || this.stateOverride) {
|
|
3467
3467
|
if (this.buffer !== "") {
|
|
3468
3468
|
const port = parseInt(this.buffer);
|
|
3469
3469
|
if (port > 2 ** 16 - 1) {
|
|
@@ -3489,11 +3489,11 @@ var require_url_state_machine = __commonJS({
|
|
|
3489
3489
|
const length = input.length - pointer;
|
|
3490
3490
|
return length >= 2 && isWindowsDriveLetterCodePoints(input[pointer], input[pointer + 1]) && (length === 2 || fileOtherwiseCodePoints.has(input[pointer + 2]));
|
|
3491
3491
|
}
|
|
3492
|
-
URLStateMachine.prototype["parse file"] = function parseFile(
|
|
3492
|
+
URLStateMachine.prototype["parse file"] = function parseFile(c4) {
|
|
3493
3493
|
this.url.scheme = "file";
|
|
3494
3494
|
this.url.host = "";
|
|
3495
|
-
if (
|
|
3496
|
-
if (
|
|
3495
|
+
if (c4 === p4("/") || c4 === p4("\\")) {
|
|
3496
|
+
if (c4 === p4("\\")) {
|
|
3497
3497
|
this.parseError = true;
|
|
3498
3498
|
}
|
|
3499
3499
|
this.state = "file slash";
|
|
@@ -3501,13 +3501,13 @@ var require_url_state_machine = __commonJS({
|
|
|
3501
3501
|
this.url.host = this.base.host;
|
|
3502
3502
|
this.url.path = this.base.path.slice();
|
|
3503
3503
|
this.url.query = this.base.query;
|
|
3504
|
-
if (
|
|
3504
|
+
if (c4 === p4("?")) {
|
|
3505
3505
|
this.url.query = "";
|
|
3506
3506
|
this.state = "query";
|
|
3507
|
-
} else if (
|
|
3507
|
+
} else if (c4 === p4("#")) {
|
|
3508
3508
|
this.url.fragment = "";
|
|
3509
3509
|
this.state = "fragment";
|
|
3510
|
-
} else if (!isNaN(
|
|
3510
|
+
} else if (!isNaN(c4)) {
|
|
3511
3511
|
this.url.query = null;
|
|
3512
3512
|
if (!startsWithWindowsDriveLetter(this.input, this.pointer)) {
|
|
3513
3513
|
shortenPath(this.url);
|
|
@@ -3524,9 +3524,9 @@ var require_url_state_machine = __commonJS({
|
|
|
3524
3524
|
}
|
|
3525
3525
|
return true;
|
|
3526
3526
|
};
|
|
3527
|
-
URLStateMachine.prototype["parse file slash"] = function parseFileSlash(
|
|
3528
|
-
if (
|
|
3529
|
-
if (
|
|
3527
|
+
URLStateMachine.prototype["parse file slash"] = function parseFileSlash(c4) {
|
|
3528
|
+
if (c4 === p4("/") || c4 === p4("\\")) {
|
|
3529
|
+
if (c4 === p4("\\")) {
|
|
3530
3530
|
this.parseError = true;
|
|
3531
3531
|
}
|
|
3532
3532
|
this.state = "file host";
|
|
@@ -3542,8 +3542,8 @@ var require_url_state_machine = __commonJS({
|
|
|
3542
3542
|
}
|
|
3543
3543
|
return true;
|
|
3544
3544
|
};
|
|
3545
|
-
URLStateMachine.prototype["parse file host"] = function parseFileHost(
|
|
3546
|
-
if (isNaN(
|
|
3545
|
+
URLStateMachine.prototype["parse file host"] = function parseFileHost(c4, cStr) {
|
|
3546
|
+
if (isNaN(c4) || c4 === p4("/") || c4 === p4("\\") || c4 === p4("?") || c4 === p4("#")) {
|
|
3547
3547
|
--this.pointer;
|
|
3548
3548
|
if (!this.stateOverride && isWindowsDriveLetterString(this.buffer)) {
|
|
3549
3549
|
this.parseError = true;
|
|
@@ -3574,24 +3574,24 @@ var require_url_state_machine = __commonJS({
|
|
|
3574
3574
|
}
|
|
3575
3575
|
return true;
|
|
3576
3576
|
};
|
|
3577
|
-
URLStateMachine.prototype["parse path start"] = function parsePathStart(
|
|
3577
|
+
URLStateMachine.prototype["parse path start"] = function parsePathStart(c4) {
|
|
3578
3578
|
if (isSpecial(this.url)) {
|
|
3579
|
-
if (
|
|
3579
|
+
if (c4 === p4("\\")) {
|
|
3580
3580
|
this.parseError = true;
|
|
3581
3581
|
}
|
|
3582
3582
|
this.state = "path";
|
|
3583
|
-
if (
|
|
3583
|
+
if (c4 !== p4("/") && c4 !== p4("\\")) {
|
|
3584
3584
|
--this.pointer;
|
|
3585
3585
|
}
|
|
3586
|
-
} else if (!this.stateOverride &&
|
|
3586
|
+
} else if (!this.stateOverride && c4 === p4("?")) {
|
|
3587
3587
|
this.url.query = "";
|
|
3588
3588
|
this.state = "query";
|
|
3589
|
-
} else if (!this.stateOverride &&
|
|
3589
|
+
} else if (!this.stateOverride && c4 === p4("#")) {
|
|
3590
3590
|
this.url.fragment = "";
|
|
3591
3591
|
this.state = "fragment";
|
|
3592
|
-
} else if (
|
|
3592
|
+
} else if (c4 !== void 0) {
|
|
3593
3593
|
this.state = "path";
|
|
3594
|
-
if (
|
|
3594
|
+
if (c4 !== p4("/")) {
|
|
3595
3595
|
--this.pointer;
|
|
3596
3596
|
}
|
|
3597
3597
|
} else if (this.stateOverride && this.url.host === null) {
|
|
@@ -3599,17 +3599,17 @@ var require_url_state_machine = __commonJS({
|
|
|
3599
3599
|
}
|
|
3600
3600
|
return true;
|
|
3601
3601
|
};
|
|
3602
|
-
URLStateMachine.prototype["parse path"] = function parsePath(
|
|
3603
|
-
if (isNaN(
|
|
3604
|
-
if (isSpecial(this.url) &&
|
|
3602
|
+
URLStateMachine.prototype["parse path"] = function parsePath(c4) {
|
|
3603
|
+
if (isNaN(c4) || c4 === p4("/") || isSpecial(this.url) && c4 === p4("\\") || !this.stateOverride && (c4 === p4("?") || c4 === p4("#"))) {
|
|
3604
|
+
if (isSpecial(this.url) && c4 === p4("\\")) {
|
|
3605
3605
|
this.parseError = true;
|
|
3606
3606
|
}
|
|
3607
3607
|
if (isDoubleDot(this.buffer)) {
|
|
3608
3608
|
shortenPath(this.url);
|
|
3609
|
-
if (
|
|
3609
|
+
if (c4 !== p4("/") && !(isSpecial(this.url) && c4 === p4("\\"))) {
|
|
3610
3610
|
this.url.path.push("");
|
|
3611
3611
|
}
|
|
3612
|
-
} else if (isSingleDot(this.buffer) &&
|
|
3612
|
+
} else if (isSingleDot(this.buffer) && c4 !== p4("/") && !(isSpecial(this.url) && c4 === p4("\\"))) {
|
|
3613
3613
|
this.url.path.push("");
|
|
3614
3614
|
} else if (!isSingleDot(this.buffer)) {
|
|
3615
3615
|
if (this.url.scheme === "file" && this.url.path.length === 0 && isWindowsDriveLetterString(this.buffer)) {
|
|
@@ -3618,30 +3618,30 @@ var require_url_state_machine = __commonJS({
|
|
|
3618
3618
|
this.url.path.push(this.buffer);
|
|
3619
3619
|
}
|
|
3620
3620
|
this.buffer = "";
|
|
3621
|
-
if (
|
|
3621
|
+
if (c4 === p4("?")) {
|
|
3622
3622
|
this.url.query = "";
|
|
3623
3623
|
this.state = "query";
|
|
3624
3624
|
}
|
|
3625
|
-
if (
|
|
3625
|
+
if (c4 === p4("#")) {
|
|
3626
3626
|
this.url.fragment = "";
|
|
3627
3627
|
this.state = "fragment";
|
|
3628
3628
|
}
|
|
3629
3629
|
} else {
|
|
3630
|
-
if (
|
|
3630
|
+
if (c4 === p4("%") && (!infra.isASCIIHex(this.input[this.pointer + 1]) || !infra.isASCIIHex(this.input[this.pointer + 2]))) {
|
|
3631
3631
|
this.parseError = true;
|
|
3632
3632
|
}
|
|
3633
|
-
this.buffer += utf8PercentEncodeCodePoint(
|
|
3633
|
+
this.buffer += utf8PercentEncodeCodePoint(c4, isPathPercentEncode);
|
|
3634
3634
|
}
|
|
3635
3635
|
return true;
|
|
3636
3636
|
};
|
|
3637
|
-
URLStateMachine.prototype["parse opaque path"] = function parseOpaquePath(
|
|
3638
|
-
if (
|
|
3637
|
+
URLStateMachine.prototype["parse opaque path"] = function parseOpaquePath(c4) {
|
|
3638
|
+
if (c4 === p4("?")) {
|
|
3639
3639
|
this.url.query = "";
|
|
3640
3640
|
this.state = "query";
|
|
3641
|
-
} else if (
|
|
3641
|
+
} else if (c4 === p4("#")) {
|
|
3642
3642
|
this.url.fragment = "";
|
|
3643
3643
|
this.state = "fragment";
|
|
3644
|
-
} else if (
|
|
3644
|
+
} else if (c4 === p4(" ")) {
|
|
3645
3645
|
const remaining = this.input[this.pointer + 1];
|
|
3646
3646
|
if (remaining === p4("?") || remaining === p4("#")) {
|
|
3647
3647
|
this.url.path += "%20";
|
|
@@ -3649,44 +3649,44 @@ var require_url_state_machine = __commonJS({
|
|
|
3649
3649
|
this.url.path += " ";
|
|
3650
3650
|
}
|
|
3651
3651
|
} else {
|
|
3652
|
-
if (!isNaN(
|
|
3652
|
+
if (!isNaN(c4) && c4 !== p4("%")) {
|
|
3653
3653
|
this.parseError = true;
|
|
3654
3654
|
}
|
|
3655
|
-
if (
|
|
3655
|
+
if (c4 === p4("%") && (!infra.isASCIIHex(this.input[this.pointer + 1]) || !infra.isASCIIHex(this.input[this.pointer + 2]))) {
|
|
3656
3656
|
this.parseError = true;
|
|
3657
3657
|
}
|
|
3658
|
-
if (!isNaN(
|
|
3659
|
-
this.url.path += utf8PercentEncodeCodePoint(
|
|
3658
|
+
if (!isNaN(c4)) {
|
|
3659
|
+
this.url.path += utf8PercentEncodeCodePoint(c4, isC0ControlPercentEncode);
|
|
3660
3660
|
}
|
|
3661
3661
|
}
|
|
3662
3662
|
return true;
|
|
3663
3663
|
};
|
|
3664
|
-
URLStateMachine.prototype["parse query"] = function parseQuery(
|
|
3664
|
+
URLStateMachine.prototype["parse query"] = function parseQuery(c4, cStr) {
|
|
3665
3665
|
if (!isSpecial(this.url) || this.url.scheme === "ws" || this.url.scheme === "wss") {
|
|
3666
3666
|
this.encodingOverride = "utf-8";
|
|
3667
3667
|
}
|
|
3668
|
-
if (!this.stateOverride &&
|
|
3668
|
+
if (!this.stateOverride && c4 === p4("#") || isNaN(c4)) {
|
|
3669
3669
|
const queryPercentEncodePredicate = isSpecial(this.url) ? isSpecialQueryPercentEncode : isQueryPercentEncode;
|
|
3670
3670
|
this.url.query += utf8PercentEncodeString(this.buffer, queryPercentEncodePredicate);
|
|
3671
3671
|
this.buffer = "";
|
|
3672
|
-
if (
|
|
3672
|
+
if (c4 === p4("#")) {
|
|
3673
3673
|
this.url.fragment = "";
|
|
3674
3674
|
this.state = "fragment";
|
|
3675
3675
|
}
|
|
3676
|
-
} else if (!isNaN(
|
|
3677
|
-
if (
|
|
3676
|
+
} else if (!isNaN(c4)) {
|
|
3677
|
+
if (c4 === p4("%") && (!infra.isASCIIHex(this.input[this.pointer + 1]) || !infra.isASCIIHex(this.input[this.pointer + 2]))) {
|
|
3678
3678
|
this.parseError = true;
|
|
3679
3679
|
}
|
|
3680
3680
|
this.buffer += cStr;
|
|
3681
3681
|
}
|
|
3682
3682
|
return true;
|
|
3683
3683
|
};
|
|
3684
|
-
URLStateMachine.prototype["parse fragment"] = function parseFragment(
|
|
3685
|
-
if (!isNaN(
|
|
3686
|
-
if (
|
|
3684
|
+
URLStateMachine.prototype["parse fragment"] = function parseFragment(c4) {
|
|
3685
|
+
if (!isNaN(c4)) {
|
|
3686
|
+
if (c4 === p4("%") && (!infra.isASCIIHex(this.input[this.pointer + 1]) || !infra.isASCIIHex(this.input[this.pointer + 2]))) {
|
|
3687
3687
|
this.parseError = true;
|
|
3688
3688
|
}
|
|
3689
|
-
this.url.fragment += utf8PercentEncodeCodePoint(
|
|
3689
|
+
this.url.fragment += utf8PercentEncodeCodePoint(c4, isFragmentPercentEncode);
|
|
3690
3690
|
}
|
|
3691
3691
|
return true;
|
|
3692
3692
|
};
|
|
@@ -6366,7 +6366,7 @@ function n(e3, t2) {
|
|
|
6366
6366
|
function u2(e3) {
|
|
6367
6367
|
return new a3(e3);
|
|
6368
6368
|
}
|
|
6369
|
-
function
|
|
6369
|
+
function c3(e3) {
|
|
6370
6370
|
return l2(e3);
|
|
6371
6371
|
}
|
|
6372
6372
|
function d6(e3) {
|
|
@@ -6396,7 +6396,7 @@ function g3(e3, t2, r3) {
|
|
|
6396
6396
|
}
|
|
6397
6397
|
function w6(e3, t2, r3) {
|
|
6398
6398
|
try {
|
|
6399
|
-
return
|
|
6399
|
+
return c3(g3(e3, t2, r3));
|
|
6400
6400
|
} catch (e4) {
|
|
6401
6401
|
return d6(e4);
|
|
6402
6402
|
}
|
|
@@ -6496,7 +6496,7 @@ function G5(e3, t2, r3) {
|
|
|
6496
6496
|
function X4(e3) {
|
|
6497
6497
|
return e3._reader._readRequests.length;
|
|
6498
6498
|
}
|
|
6499
|
-
function
|
|
6499
|
+
function J5(e3) {
|
|
6500
6500
|
const t2 = e3._reader;
|
|
6501
6501
|
return void 0 !== t2 && !!K5(t2);
|
|
6502
6502
|
}
|
|
@@ -6559,7 +6559,7 @@ function be(e3) {
|
|
|
6559
6559
|
if ("readable" !== t3._state) return false;
|
|
6560
6560
|
if (e4._closeRequested) return false;
|
|
6561
6561
|
if (!e4._started) return false;
|
|
6562
|
-
if (
|
|
6562
|
+
if (J5(t3) && X4(t3) > 0) return true;
|
|
6563
6563
|
if (Le(t3) && ze(t3) > 0) return true;
|
|
6564
6564
|
if (ke(e4) > 0) return true;
|
|
6565
6565
|
return false;
|
|
@@ -6670,11 +6670,11 @@ function Oe(e3, t2, r3) {
|
|
|
6670
6670
|
const o3 = Object.create(ReadableByteStreamController.prototype);
|
|
6671
6671
|
let n2, a4, i3;
|
|
6672
6672
|
n2 = void 0 !== t2.start ? () => t2.start(o3) : () => {
|
|
6673
|
-
}, a4 = void 0 !== t2.pull ? () => t2.pull(o3) : () =>
|
|
6673
|
+
}, a4 = void 0 !== t2.pull ? () => t2.pull(o3) : () => c3(void 0), i3 = void 0 !== t2.cancel ? (e4) => t2.cancel(e4) : () => c3(void 0);
|
|
6674
6674
|
const l3 = t2.autoAllocateChunkSize;
|
|
6675
6675
|
if (0 === l3) throw new TypeError("autoAllocateChunkSize must be greater than 0");
|
|
6676
6676
|
!function(e4, t3, r4, o4, n3, a5, i4) {
|
|
6677
|
-
t3._controlledReadableByteStream = e4, t3._pullAgain = false, t3._pulling = false, t3._byobRequest = null, t3._queue = t3._queueTotalSize = void 0, ce2(t3), t3._closeRequested = false, t3._started = false, t3._strategyHWM = a5, t3._pullAlgorithm = o4, t3._cancelAlgorithm = n3, t3._autoAllocateChunkSize = i4, t3._pendingPullIntos = new S5(), e4._readableStreamController = t3, b6(
|
|
6677
|
+
t3._controlledReadableByteStream = e4, t3._pullAgain = false, t3._pulling = false, t3._byobRequest = null, t3._queue = t3._queueTotalSize = void 0, ce2(t3), t3._closeRequested = false, t3._started = false, t3._strategyHWM = a5, t3._pullAlgorithm = o4, t3._cancelAlgorithm = n3, t3._autoAllocateChunkSize = i4, t3._pendingPullIntos = new S5(), e4._readableStreamController = t3, b6(c3(r4()), () => (t3._started = true, be(t3), null), (e5) => (Pe(t3, e5), null));
|
|
6678
6678
|
}(e3, o3, n2, a4, i3, r3, l3);
|
|
6679
6679
|
}
|
|
6680
6680
|
function Be(e3) {
|
|
@@ -6743,10 +6743,10 @@ function Xe(e3) {
|
|
|
6743
6743
|
}
|
|
6744
6744
|
function Je(e3, t2) {
|
|
6745
6745
|
var r3;
|
|
6746
|
-
if ("closed" === e3._state || "errored" === e3._state) return
|
|
6746
|
+
if ("closed" === e3._state || "errored" === e3._state) return c3(void 0);
|
|
6747
6747
|
e3._writableStreamController._abortReason = t2, null === (r3 = e3._writableStreamController._abortController) || void 0 === r3 || r3.abort(t2);
|
|
6748
6748
|
const o3 = e3._state;
|
|
6749
|
-
if ("closed" === o3 || "errored" === o3) return
|
|
6749
|
+
if ("closed" === o3 || "errored" === o3) return c3(void 0);
|
|
6750
6750
|
if (void 0 !== e3._pendingAbortRequest) return e3._pendingAbortRequest._promise;
|
|
6751
6751
|
let n2 = false;
|
|
6752
6752
|
"erroring" === o3 && (n2 = true, t2 = void 0);
|
|
@@ -6926,7 +6926,7 @@ function kt(e3, t2, r3, o3, n2, a4) {
|
|
|
6926
6926
|
const e4 = u2((e5, t3) => {
|
|
6927
6927
|
!function r4(o4) {
|
|
6928
6928
|
o4 ? e5() : f3(function() {
|
|
6929
|
-
if (w7) return
|
|
6929
|
+
if (w7) return c3(true);
|
|
6930
6930
|
return f3(l3.ready, () => f3(i3.read(), (e6) => !!e6.done || (E4 = l3.write(e6.value), m4(E4), false)));
|
|
6931
6931
|
}(), r4, t3);
|
|
6932
6932
|
}(false);
|
|
@@ -6934,7 +6934,7 @@ function kt(e3, t2, r3, o3, n2, a4) {
|
|
|
6934
6934
|
m4(e4);
|
|
6935
6935
|
}
|
|
6936
6936
|
function B3() {
|
|
6937
|
-
return v5 = "closed", r3 ? L7() : z6(() => (Ge(t2) && (T6 = rt(t2), R7 = t2._state), T6 || "closed" === R7 ?
|
|
6937
|
+
return v5 = "closed", r3 ? L7() : z6(() => (Ge(t2) && (T6 = rt(t2), R7 = t2._state), T6 || "closed" === R7 ? c3(void 0) : "erroring" === R7 || "errored" === R7 ? d6(_7) : (T6 = true, l3.close())), false, void 0), null;
|
|
6938
6938
|
}
|
|
6939
6939
|
function A5(e4) {
|
|
6940
6940
|
return w7 || (v5 = "errored", s2 = e4, o3 ? L7(true, e4) : z6(() => l3.abort(e4), true, e4)), null;
|
|
@@ -6944,7 +6944,7 @@ function kt(e3, t2, r3, o3, n2, a4) {
|
|
|
6944
6944
|
}
|
|
6945
6945
|
if (void 0 !== a4 && (k7 = () => {
|
|
6946
6946
|
const e4 = void 0 !== a4.reason ? a4.reason : new Wt("Aborted", "AbortError"), t3 = [];
|
|
6947
|
-
o3 || t3.push(() => "writable" === R7 ? l3.abort(e4) :
|
|
6947
|
+
o3 || t3.push(() => "writable" === R7 ? l3.abort(e4) : c3(void 0)), n2 || t3.push(() => "readable" === v5 ? i3.cancel(e4) : c3(void 0)), z6(() => Promise.all(t3.map((e5) => e5())), true, e4);
|
|
6948
6948
|
}, a4.aborted ? k7() : a4.addEventListener("abort", k7)), Vt(e3) && (v5 = e3._state, s2 = e3._storedError), Ge(t2) && (R7 = t2._state, _7 = t2._storedError, T6 = rt(t2)), Vt(e3) && Ge(t2) && (q6 = true, g4()), "errored" === v5) A5(s2);
|
|
6949
6949
|
else if ("erroring" === R7 || "errored" === R7) j4(_7);
|
|
6950
6950
|
else if ("closed" === v5) B3();
|
|
@@ -6956,7 +6956,7 @@ function kt(e3, t2, r3, o3, n2, a4) {
|
|
|
6956
6956
|
function o4() {
|
|
6957
6957
|
return "writable" !== R7 || T6 ? n3() : h3(function() {
|
|
6958
6958
|
let e5;
|
|
6959
|
-
return
|
|
6959
|
+
return c3(function t4() {
|
|
6960
6960
|
if (e5 !== E4) return e5 = E4, p3(E4, t4, t4);
|
|
6961
6961
|
}());
|
|
6962
6962
|
}(), n3), null;
|
|
@@ -6999,26 +6999,26 @@ function Ot(e3, t2) {
|
|
|
6999
6999
|
var t4, r4;
|
|
7000
7000
|
if (d7 = false, f4 = false, e5.done) return h4 || o3.close(), p4 || n2.close(), null === (t4 = o3.byobRequest) || void 0 === t4 || t4.respond(0), null === (r4 = n2.byobRequest) || void 0 === r4 || r4.respond(0), h4 && p4 || a4(void 0), null;
|
|
7001
7001
|
const l4 = e5.value, u3 = l4;
|
|
7002
|
-
let
|
|
7002
|
+
let c4 = l4;
|
|
7003
7003
|
if (!h4 && !p4) try {
|
|
7004
|
-
|
|
7004
|
+
c4 = le2(l4);
|
|
7005
7005
|
} catch (e6) {
|
|
7006
7006
|
return o3.error(e6), n2.error(e6), a4(i3.cancel(e6)), null;
|
|
7007
7007
|
}
|
|
7008
|
-
return h4 || o3.enqueue(u3), p4 || n2.enqueue(
|
|
7008
|
+
return h4 || o3.enqueue(u3), p4 || n2.enqueue(c4), s2 = false, d7 ? S6() : f4 && v5(), null;
|
|
7009
7009
|
}, () => (s2 = false, null));
|
|
7010
7010
|
}
|
|
7011
7011
|
function w7(t4, r4) {
|
|
7012
7012
|
l3 || (i3.releaseLock(), i3 = e4.getReader({ mode: "byob" }), y6(i3), l3 = true);
|
|
7013
|
-
const u3 = r4 ? n2 : o3,
|
|
7013
|
+
const u3 = r4 ? n2 : o3, c4 = r4 ? o3 : n2;
|
|
7014
7014
|
b6(i3.read(t4), (e5) => {
|
|
7015
7015
|
var t5;
|
|
7016
7016
|
d7 = false, f4 = false;
|
|
7017
7017
|
const o4 = r4 ? p4 : h4, n3 = r4 ? h4 : p4;
|
|
7018
7018
|
if (e5.done) {
|
|
7019
|
-
o4 || u3.close(), n3 ||
|
|
7019
|
+
o4 || u3.close(), n3 || c4.close();
|
|
7020
7020
|
const r5 = e5.value;
|
|
7021
|
-
return void 0 !== r5 && (o4 || u3.byobRequest.respondWithNewView(r5), n3 || null === (t5 =
|
|
7021
|
+
return void 0 !== r5 && (o4 || u3.byobRequest.respondWithNewView(r5), n3 || null === (t5 = c4.byobRequest) || void 0 === t5 || t5.respond(0)), o4 && n3 || a4(void 0), null;
|
|
7022
7022
|
}
|
|
7023
7023
|
const l4 = e5.value;
|
|
7024
7024
|
if (n3) o4 || u3.byobRequest.respondWithNewView(l4);
|
|
@@ -7027,24 +7027,24 @@ function Ot(e3, t2) {
|
|
|
7027
7027
|
try {
|
|
7028
7028
|
e6 = le2(l4);
|
|
7029
7029
|
} catch (e7) {
|
|
7030
|
-
return u3.error(e7),
|
|
7030
|
+
return u3.error(e7), c4.error(e7), a4(i3.cancel(e7)), null;
|
|
7031
7031
|
}
|
|
7032
|
-
o4 || u3.byobRequest.respondWithNewView(l4),
|
|
7032
|
+
o4 || u3.byobRequest.respondWithNewView(l4), c4.enqueue(e6);
|
|
7033
7033
|
}
|
|
7034
7034
|
return s2 = false, d7 ? S6() : f4 && v5(), null;
|
|
7035
7035
|
}, () => (s2 = false, null));
|
|
7036
7036
|
}
|
|
7037
7037
|
function S6() {
|
|
7038
|
-
if (s2) return d7 = true,
|
|
7038
|
+
if (s2) return d7 = true, c3(void 0);
|
|
7039
7039
|
s2 = true;
|
|
7040
7040
|
const e5 = o3.byobRequest;
|
|
7041
|
-
return null === e5 ? g4() : w7(e5.view, false),
|
|
7041
|
+
return null === e5 ? g4() : w7(e5.view, false), c3(void 0);
|
|
7042
7042
|
}
|
|
7043
7043
|
function v5() {
|
|
7044
|
-
if (s2) return f4 = true,
|
|
7044
|
+
if (s2) return f4 = true, c3(void 0);
|
|
7045
7045
|
s2 = true;
|
|
7046
7046
|
const e5 = n2.byobRequest;
|
|
7047
|
-
return null === e5 ? g4() : w7(e5.view, true),
|
|
7047
|
+
return null === e5 ? g4() : w7(e5.view, true), c3(void 0);
|
|
7048
7048
|
}
|
|
7049
7049
|
function R7(e5) {
|
|
7050
7050
|
if (h4 = true, t3 = e5, p4) {
|
|
@@ -7073,11 +7073,11 @@ function Ot(e3, t2) {
|
|
|
7073
7073
|
l3 = e5;
|
|
7074
7074
|
});
|
|
7075
7075
|
function m5() {
|
|
7076
|
-
return s2 ? (d7 = true,
|
|
7076
|
+
return s2 ? (d7 = true, c3(void 0)) : (s2 = true, b6(r3.read(), (e5) => {
|
|
7077
7077
|
if (d7 = false, e5.done) return f4 || a4.close(), h4 || i3.close(), f4 && h4 || l3(void 0), null;
|
|
7078
7078
|
const t4 = e5.value, r4 = t4, o4 = t4;
|
|
7079
7079
|
return f4 || a4.enqueue(r4), h4 || i3.enqueue(o4), s2 = false, d7 && m5(), null;
|
|
7080
|
-
}, () => (s2 = false, null)),
|
|
7080
|
+
}, () => (s2 = false, null)), c3(void 0));
|
|
7081
7081
|
}
|
|
7082
7082
|
function y6(e5) {
|
|
7083
7083
|
if (f4 = true, o3 = e5, h4) {
|
|
@@ -7136,8 +7136,8 @@ function It(e3, t2, r3, o3) {
|
|
|
7136
7136
|
const n2 = Object.create(ReadableStreamDefaultController.prototype);
|
|
7137
7137
|
let a4, i3, l3;
|
|
7138
7138
|
a4 = void 0 !== t2.start ? () => t2.start(n2) : () => {
|
|
7139
|
-
}, i3 = void 0 !== t2.pull ? () => t2.pull(n2) : () =>
|
|
7140
|
-
t3._controlledReadableStream = e4, t3._queue = void 0, t3._queueTotalSize = void 0, ce2(t3), t3._started = false, t3._closeRequested = false, t3._pullAgain = false, t3._pulling = false, t3._strategySizeAlgorithm = i4, t3._strategyHWM = a5, t3._pullAlgorithm = o4, t3._cancelAlgorithm = n3, e4._readableStreamController = t3, b6(
|
|
7139
|
+
}, i3 = void 0 !== t2.pull ? () => t2.pull(n2) : () => c3(void 0), l3 = void 0 !== t2.cancel ? (e4) => t2.cancel(e4) : () => c3(void 0), function(e4, t3, r4, o4, n3, a5, i4) {
|
|
7140
|
+
t3._controlledReadableStream = e4, t3._queue = void 0, t3._queueTotalSize = void 0, ce2(t3), t3._started = false, t3._closeRequested = false, t3._pullAgain = false, t3._pulling = false, t3._strategySizeAlgorithm = i4, t3._strategyHWM = a5, t3._pullAlgorithm = o4, t3._cancelAlgorithm = n3, e4._readableStreamController = t3, b6(c3(r4()), () => (t3._started = true, At(t3), null), (e5) => (zt(t3, e5), null));
|
|
7141
7141
|
}(e3, n2, a4, i3, l3, r3, o3);
|
|
7142
7142
|
}
|
|
7143
7143
|
function Dt(e3) {
|
|
@@ -7192,7 +7192,7 @@ function Ut(e3) {
|
|
|
7192
7192
|
return void 0 !== e3._reader;
|
|
7193
7193
|
}
|
|
7194
7194
|
function Gt(e3, r3) {
|
|
7195
|
-
if (e3._disturbed = true, "closed" === e3._state) return
|
|
7195
|
+
if (e3._disturbed = true, "closed" === e3._state) return c3(void 0);
|
|
7196
7196
|
if ("errored" === e3._state) return d6(e3._storedError);
|
|
7197
7197
|
Xt(e3);
|
|
7198
7198
|
const o3 = e3._reader;
|
|
@@ -7345,7 +7345,7 @@ var init_ponyfill = __esm({
|
|
|
7345
7345
|
y5 = (e3) => {
|
|
7346
7346
|
if ("function" == typeof queueMicrotask) y5 = queueMicrotask;
|
|
7347
7347
|
else {
|
|
7348
|
-
const e4 =
|
|
7348
|
+
const e4 = c3(void 0);
|
|
7349
7349
|
y5 = (t2) => f3(e4, t2);
|
|
7350
7350
|
}
|
|
7351
7351
|
return y5(e3);
|
|
@@ -7455,7 +7455,7 @@ var init_ponyfill = __esm({
|
|
|
7455
7455
|
const r3 = t2.cancel(e3);
|
|
7456
7456
|
return t2.releaseLock(), p3(r3, () => ({ value: e3, done: true }));
|
|
7457
7457
|
}
|
|
7458
|
-
return t2.releaseLock(),
|
|
7458
|
+
return t2.releaseLock(), c3({ value: e3, done: true });
|
|
7459
7459
|
}
|
|
7460
7460
|
};
|
|
7461
7461
|
re2 = { next() {
|
|
@@ -7563,7 +7563,7 @@ var init_ponyfill = __esm({
|
|
|
7563
7563
|
const t4 = e4._pendingPullIntos.peek();
|
|
7564
7564
|
t4.buffer, 0, Re(e4), t4.buffer = t4.buffer, "none" === t4.readerType && ge(e4, t4);
|
|
7565
7565
|
}
|
|
7566
|
-
if (
|
|
7566
|
+
if (J5(r3)) if (function(e5) {
|
|
7567
7567
|
const t4 = e5._controlledReadableByteStream._reader;
|
|
7568
7568
|
for (; t4._readRequests.length > 0; ) {
|
|
7569
7569
|
if (0 === e5._queueTotalSize) return;
|
|
@@ -7688,9 +7688,9 @@ var init_ponyfill = __esm({
|
|
|
7688
7688
|
let a5, i3, l3, s2;
|
|
7689
7689
|
a5 = void 0 !== t3.start ? () => t3.start(n3) : () => {
|
|
7690
7690
|
};
|
|
7691
|
-
i3 = void 0 !== t3.write ? (e5) => t3.write(e5, n3) : () =>
|
|
7692
|
-
l3 = void 0 !== t3.close ? () => t3.close() : () =>
|
|
7693
|
-
s2 = void 0 !== t3.abort ? (e5) => t3.abort(e5) : () =>
|
|
7691
|
+
i3 = void 0 !== t3.write ? (e5) => t3.write(e5, n3) : () => c3(void 0);
|
|
7692
|
+
l3 = void 0 !== t3.close ? () => t3.close() : () => c3(void 0);
|
|
7693
|
+
s2 = void 0 !== t3.abort ? (e5) => t3.abort(e5) : () => c3(void 0);
|
|
7694
7694
|
!function(e5, t4, r5, o5, n4, a6, i4, l4) {
|
|
7695
7695
|
t4._controlledWritableStream = e5, e5._writableStreamController = t4, t4._queue = void 0, t4._queueTotalSize = void 0, ce2(t4), t4._abortReason = void 0, t4._abortController = function() {
|
|
7696
7696
|
if (Ue) return new AbortController();
|
|
@@ -7698,7 +7698,7 @@ var init_ponyfill = __esm({
|
|
|
7698
7698
|
const s3 = bt(t4);
|
|
7699
7699
|
nt(e5, s3);
|
|
7700
7700
|
const u3 = r5();
|
|
7701
|
-
b6(
|
|
7701
|
+
b6(c3(u3), () => (t4._started = true, dt(t4), null), (r6) => (t4._started = true, Ze(e5, r6), null));
|
|
7702
7702
|
}(e4, n3, a5, i3, l3, s2, r4, o4);
|
|
7703
7703
|
}(this, o3, $e(r3, 1), a4);
|
|
7704
7704
|
}
|
|
@@ -8042,7 +8042,7 @@ var init_ponyfill = __esm({
|
|
|
8042
8042
|
}
|
|
8043
8043
|
function s3(t4) {
|
|
8044
8044
|
return function(e5, t5) {
|
|
8045
|
-
return cr(e5, t5),
|
|
8045
|
+
return cr(e5, t5), c3(void 0);
|
|
8046
8046
|
}(e4, t4);
|
|
8047
8047
|
}
|
|
8048
8048
|
function u3() {
|
|
@@ -8062,7 +8062,7 @@ var init_ponyfill = __esm({
|
|
|
8062
8062
|
}(e4);
|
|
8063
8063
|
}
|
|
8064
8064
|
function f5(t4) {
|
|
8065
|
-
return dr(e4, t4),
|
|
8065
|
+
return dr(e4, t4), c3(void 0);
|
|
8066
8066
|
}
|
|
8067
8067
|
e4._writableState = "writable", e4._writableStoredError = void 0, e4._writableHasInFlightOperation = false, e4._writableStarted = false, e4._writable = function(e5, t4, r5, o5, n4, a6, i5) {
|
|
8068
8068
|
return new WritableStream({ start(r6) {
|
|
@@ -8110,12 +8110,12 @@ var init_ponyfill = __esm({
|
|
|
8110
8110
|
let o4, n3;
|
|
8111
8111
|
o4 = void 0 !== t3.transform ? (e5) => t3.transform(e5, r4) : (e5) => {
|
|
8112
8112
|
try {
|
|
8113
|
-
return _r(r4, e5),
|
|
8113
|
+
return _r(r4, e5), c3(void 0);
|
|
8114
8114
|
} catch (e6) {
|
|
8115
8115
|
return d6(e6);
|
|
8116
8116
|
}
|
|
8117
8117
|
};
|
|
8118
|
-
n3 = void 0 !== t3.flush ? () => t3.flush(r4) : () =>
|
|
8118
|
+
n3 = void 0 !== t3.flush ? () => t3.flush(r4) : () => c3(void 0);
|
|
8119
8119
|
!function(e5, t4, r5, o5) {
|
|
8120
8120
|
t4._controlledTransformStream = e5, e5._transformStreamController = t4, t4._transformAlgorithm = r5, t4._flushAlgorithm = o5;
|
|
8121
8121
|
}(e4, r4, o4, n3);
|
|
@@ -23779,8 +23779,8 @@ var require_browser = __commonJS({
|
|
|
23779
23779
|
if (!this.useColors) {
|
|
23780
23780
|
return;
|
|
23781
23781
|
}
|
|
23782
|
-
const
|
|
23783
|
-
args.splice(1, 0,
|
|
23782
|
+
const c4 = "color: " + this.color;
|
|
23783
|
+
args.splice(1, 0, c4, "color: inherit");
|
|
23784
23784
|
let index = 0;
|
|
23785
23785
|
let lastC = 0;
|
|
23786
23786
|
args[0].replace(/%[a-zA-Z%]/g, (match) => {
|
|
@@ -23792,7 +23792,7 @@ var require_browser = __commonJS({
|
|
|
23792
23792
|
lastC = index;
|
|
23793
23793
|
}
|
|
23794
23794
|
});
|
|
23795
|
-
args.splice(lastC, 0,
|
|
23795
|
+
args.splice(lastC, 0, c4);
|
|
23796
23796
|
}
|
|
23797
23797
|
exports2.log = console.debug || console.log || (() => {
|
|
23798
23798
|
});
|
|
@@ -24076,8 +24076,8 @@ var require_node = __commonJS({
|
|
|
24076
24076
|
function formatArgs(args) {
|
|
24077
24077
|
const { namespace: name, useColors: useColors2 } = this;
|
|
24078
24078
|
if (useColors2) {
|
|
24079
|
-
const
|
|
24080
|
-
const colorCode = "\x1B[3" + (
|
|
24079
|
+
const c4 = this.color;
|
|
24080
|
+
const colorCode = "\x1B[3" + (c4 < 8 ? c4 : "8;5;" + c4);
|
|
24081
24081
|
const prefix = ` ${colorCode};1m${name} \x1B[0m`;
|
|
24082
24082
|
args[0] = prefix + args[0].split("\n").join("\n" + prefix);
|
|
24083
24083
|
args.push(colorCode + "m+" + module2.exports.humanize(this.diff) + "\x1B[0m");
|
|
@@ -26820,8 +26820,8 @@ var require_object_inspect = __commonJS({
|
|
|
26820
26820
|
var s2 = $replace.call($replace.call(str2, /(['\\])/g, "\\$1"), /[\x00-\x1f]/g, lowbyte);
|
|
26821
26821
|
return wrapQuotes(s2, "single", opts);
|
|
26822
26822
|
}
|
|
26823
|
-
function lowbyte(
|
|
26824
|
-
var n2 =
|
|
26823
|
+
function lowbyte(c4) {
|
|
26824
|
+
var n2 = c4.charCodeAt(0);
|
|
26825
26825
|
var x5 = {
|
|
26826
26826
|
8: "b",
|
|
26827
26827
|
9: "t",
|
|
@@ -27182,26 +27182,26 @@ var require_utils2 = __commonJS({
|
|
|
27182
27182
|
var segment = string.length >= limit ? string.slice(j4, j4 + limit) : string;
|
|
27183
27183
|
var arr = [];
|
|
27184
27184
|
for (var i3 = 0; i3 < segment.length; ++i3) {
|
|
27185
|
-
var
|
|
27186
|
-
if (
|
|
27185
|
+
var c4 = segment.charCodeAt(i3);
|
|
27186
|
+
if (c4 === 45 || c4 === 46 || c4 === 95 || c4 === 126 || c4 >= 48 && c4 <= 57 || c4 >= 65 && c4 <= 90 || c4 >= 97 && c4 <= 122 || format === formats.RFC1738 && (c4 === 40 || c4 === 41)) {
|
|
27187
27187
|
arr[arr.length] = segment.charAt(i3);
|
|
27188
27188
|
continue;
|
|
27189
27189
|
}
|
|
27190
|
-
if (
|
|
27191
|
-
arr[arr.length] = hexTable[
|
|
27190
|
+
if (c4 < 128) {
|
|
27191
|
+
arr[arr.length] = hexTable[c4];
|
|
27192
27192
|
continue;
|
|
27193
27193
|
}
|
|
27194
|
-
if (
|
|
27195
|
-
arr[arr.length] = hexTable[192 |
|
|
27194
|
+
if (c4 < 2048) {
|
|
27195
|
+
arr[arr.length] = hexTable[192 | c4 >> 6] + hexTable[128 | c4 & 63];
|
|
27196
27196
|
continue;
|
|
27197
27197
|
}
|
|
27198
|
-
if (
|
|
27199
|
-
arr[arr.length] = hexTable[224 |
|
|
27198
|
+
if (c4 < 55296 || c4 >= 57344) {
|
|
27199
|
+
arr[arr.length] = hexTable[224 | c4 >> 12] + hexTable[128 | c4 >> 6 & 63] + hexTable[128 | c4 & 63];
|
|
27200
27200
|
continue;
|
|
27201
27201
|
}
|
|
27202
27202
|
i3 += 1;
|
|
27203
|
-
|
|
27204
|
-
arr[arr.length] = hexTable[240 |
|
|
27203
|
+
c4 = 65536 + ((c4 & 1023) << 10 | segment.charCodeAt(i3) & 1023);
|
|
27204
|
+
arr[arr.length] = hexTable[240 | c4 >> 18] + hexTable[128 | c4 >> 12 & 63] + hexTable[128 | c4 >> 6 & 63] + hexTable[128 | c4 & 63];
|
|
27205
27205
|
}
|
|
27206
27206
|
out += arr.join("");
|
|
27207
27207
|
}
|
|
@@ -32184,7 +32184,7 @@ var require_base64 = __commonJS({
|
|
|
32184
32184
|
return btoa(String.fromCodePoint(...u8arr));
|
|
32185
32185
|
}
|
|
32186
32186
|
function bytesFromBase64(encoded) {
|
|
32187
|
-
return Uint8Array.from(atob(encoded), (
|
|
32187
|
+
return Uint8Array.from(atob(encoded), (c4) => c4.charCodeAt(0));
|
|
32188
32188
|
}
|
|
32189
32189
|
function stringToBytes(str2) {
|
|
32190
32190
|
return new TextEncoder().encode(str2);
|
|
@@ -47085,10 +47085,10 @@ var $ = (t2, { onFlag: n2, onArgument: r3 }) => {
|
|
|
47085
47085
|
if (a4) {
|
|
47086
47086
|
if (o3(), !n2) continue;
|
|
47087
47087
|
const [l3, f4, g4] = a4;
|
|
47088
|
-
if (g4) for (let
|
|
47088
|
+
if (g4) for (let c4 = 0; c4 < l3.length; c4 += 1) {
|
|
47089
47089
|
o3();
|
|
47090
|
-
const u3 =
|
|
47091
|
-
e3 = n2(l3[
|
|
47090
|
+
const u3 = c4 === l3.length - 1;
|
|
47091
|
+
e3 = n2(l3[c4], u3 ? f4 : void 0, [s2, c4 + 1, u3]);
|
|
47092
47092
|
}
|
|
47093
47093
|
else e3 = n2(l3, f4, [s2]);
|
|
47094
47094
|
} else o3(i3, [s2]) && r3?.([i3], [s2]);
|
|
@@ -47114,8 +47114,8 @@ var U = (t2, n2 = process.argv.slice(2), { ignore: r3 } = {}) => {
|
|
|
47114
47114
|
const g4 = w(o3, a4);
|
|
47115
47115
|
if (!r3?.(g4 ? V : k, a4, l3)) {
|
|
47116
47116
|
if (g4) {
|
|
47117
|
-
const [
|
|
47118
|
-
e3.push(f4), A5 && e3.push(A5),
|
|
47117
|
+
const [c4, u3] = o3[a4], y6 = d(u3, l3), p4 = (P4, A5) => {
|
|
47118
|
+
e3.push(f4), A5 && e3.push(A5), c4.push(m(u3, P4 || ""));
|
|
47119
47119
|
};
|
|
47120
47120
|
return y6 === void 0 ? p4 : p4(y6);
|
|
47121
47121
|
}
|
|
@@ -47621,19 +47621,19 @@ function x2(t2, e3, r3, n2) {
|
|
|
47621
47621
|
console.log(e3.version);
|
|
47622
47622
|
};
|
|
47623
47623
|
if (i3 && l3.flags.version === true) return f4(), process.exit(0);
|
|
47624
|
-
const p4 = new M2(), O5 = o3 && s2?.render ? s2.render : (
|
|
47625
|
-
const m5 = U3({ ...e3, ...
|
|
47624
|
+
const p4 = new M2(), O5 = o3 && s2?.render ? s2.render : (c4) => p4.render(c4), u3 = (c4) => {
|
|
47625
|
+
const m5 = U3({ ...e3, ...c4 ? { help: c4 } : {}, flags: a4 });
|
|
47626
47626
|
console.log(O5(m5, p4));
|
|
47627
47627
|
};
|
|
47628
47628
|
if (o3 && l3.flags.help === true) return u3(), process.exit(0);
|
|
47629
47629
|
if (e3.parameters) {
|
|
47630
|
-
let { parameters:
|
|
47631
|
-
const g4 =
|
|
47630
|
+
let { parameters: c4 } = e3, m5 = l3._;
|
|
47631
|
+
const g4 = c4.indexOf("--"), v5 = c4.slice(g4 + 1), h4 = /* @__PURE__ */ Object.create(null);
|
|
47632
47632
|
if (g4 > -1 && v5.length > 0) {
|
|
47633
|
-
|
|
47633
|
+
c4 = c4.slice(0, g4);
|
|
47634
47634
|
const E4 = l3._["--"];
|
|
47635
|
-
m5 = m5.slice(0, -E4.length || void 0), b3(h4, w3(
|
|
47636
|
-
} else b3(h4, w3(
|
|
47635
|
+
m5 = m5.slice(0, -E4.length || void 0), b3(h4, w3(c4), m5, u3), b3(h4, w3(v5), E4, u3);
|
|
47636
|
+
} else b3(h4, w3(c4), m5, u3);
|
|
47637
47637
|
Object.assign(l3._, h4);
|
|
47638
47638
|
}
|
|
47639
47639
|
const $6 = { ...l3, showVersion: f4, showHelp: u3 };
|
|
@@ -47672,7 +47672,7 @@ function G3(t2, e3) {
|
|
|
47672
47672
|
// package.json
|
|
47673
47673
|
var package_default = {
|
|
47674
47674
|
name: "opencommit",
|
|
47675
|
-
version: "3.2.
|
|
47675
|
+
version: "3.2.10",
|
|
47676
47676
|
description: "Auto-generate impressive commits in 1 second. Killing lame commits with AI \u{1F92F}\u{1F52B}",
|
|
47677
47677
|
keywords: [
|
|
47678
47678
|
"git",
|
|
@@ -47723,6 +47723,7 @@ var package_default = {
|
|
|
47723
47723
|
"deploy:patch": "npm version patch && npm run deploy:build",
|
|
47724
47724
|
lint: "eslint src --ext ts && tsc --noEmit",
|
|
47725
47725
|
format: "prettier --write src",
|
|
47726
|
+
"format:check": "prettier --check src",
|
|
47726
47727
|
test: "node --no-warnings --experimental-vm-modules $( [ -f ./node_modules/.bin/jest ] && echo ./node_modules/.bin/jest || which jest ) test/unit",
|
|
47727
47728
|
"test:all": "npm run test:unit:docker && npm run test:e2e:docker",
|
|
47728
47729
|
"test:docker-build": "docker build -t oco-test -f test/Dockerfile .",
|
|
@@ -47788,6 +47789,7 @@ var import_node_process = require("node:process");
|
|
|
47788
47789
|
var f = __toESM(require("node:readline"), 1);
|
|
47789
47790
|
var import_node_readline = __toESM(require("node:readline"), 1);
|
|
47790
47791
|
var import_node_tty = require("node:tty");
|
|
47792
|
+
var import_picocolors = __toESM(require_picocolors(), 1);
|
|
47791
47793
|
function q3({ onlyFirst: t2 = false } = {}) {
|
|
47792
47794
|
const u3 = ["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)", "(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-ntqry=><~]))"].join("|");
|
|
47793
47795
|
return new RegExp(u3, t2 ? void 0 : "g");
|
|
@@ -48149,6 +48151,25 @@ var yD = class extends x3 {
|
|
|
48149
48151
|
this.value = this._value.value;
|
|
48150
48152
|
}
|
|
48151
48153
|
};
|
|
48154
|
+
var SD = Object.defineProperty;
|
|
48155
|
+
var jD = (t2, u3, F5) => u3 in t2 ? SD(t2, u3, { enumerable: true, configurable: true, writable: true, value: F5 }) : t2[u3] = F5;
|
|
48156
|
+
var MD = (t2, u3, F5) => (jD(t2, typeof u3 != "symbol" ? u3 + "" : u3, F5), F5);
|
|
48157
|
+
var TD = class extends x3 {
|
|
48158
|
+
constructor(u3) {
|
|
48159
|
+
super(u3), MD(this, "valueWithCursor", ""), this.on("finalize", () => {
|
|
48160
|
+
this.value || (this.value = u3.defaultValue), this.valueWithCursor = this.value;
|
|
48161
|
+
}), this.on("value", () => {
|
|
48162
|
+
if (this.cursor >= this.value.length) this.valueWithCursor = `${this.value}${import_picocolors.default.inverse(import_picocolors.default.hidden("_"))}`;
|
|
48163
|
+
else {
|
|
48164
|
+
const F5 = this.value.slice(0, this.cursor), e3 = this.value.slice(this.cursor);
|
|
48165
|
+
this.valueWithCursor = `${F5}${import_picocolors.default.inverse(e3[0])}${e3.slice(1)}`;
|
|
48166
|
+
}
|
|
48167
|
+
});
|
|
48168
|
+
}
|
|
48169
|
+
get cursor() {
|
|
48170
|
+
return this._cursor;
|
|
48171
|
+
}
|
|
48172
|
+
};
|
|
48152
48173
|
var PD = globalThis.process.platform.startsWith("win");
|
|
48153
48174
|
function WD({ input: t2 = import_node_process.stdin, output: u3 = import_node_process.stdout, overwrite: F5 = true, hideCursor: e3 = true } = {}) {
|
|
48154
48175
|
const s2 = f.createInterface({ input: t2, output: u3, prompt: "", tabSize: 1 });
|
|
@@ -48169,7 +48190,7 @@ function WD({ input: t2 = import_node_process.stdin, output: u3 = import_node_pr
|
|
|
48169
48190
|
|
|
48170
48191
|
// node_modules/@clack/prompts/dist/index.mjs
|
|
48171
48192
|
var import_node_process2 = __toESM(require("node:process"), 1);
|
|
48172
|
-
var
|
|
48193
|
+
var import_picocolors2 = __toESM(require_picocolors(), 1);
|
|
48173
48194
|
var import_sisteransi2 = __toESM(require_src(), 1);
|
|
48174
48195
|
function N4() {
|
|
48175
48196
|
return import_node_process2.default.platform !== "win32" ? import_node_process2.default.env.TERM !== "linux" : Boolean(import_node_process2.default.env.CI) || Boolean(import_node_process2.default.env.WT_SESSION) || Boolean(import_node_process2.default.env.TERMINUS_SUBLIME) || import_node_process2.default.env.ConEmuTask === "{cmd::Cmder}" || import_node_process2.default.env.TERM_PROGRAM === "Terminus-Sublime" || import_node_process2.default.env.TERM_PROGRAM === "vscode" || import_node_process2.default.env.TERM === "xterm-256color" || import_node_process2.default.env.TERM === "alacritty" || import_node_process2.default.env.TERMINAL_EMULATOR === "JetBrains-JediTerm";
|
|
@@ -48201,30 +48222,51 @@ var h2 = (r3) => {
|
|
|
48201
48222
|
switch (r3) {
|
|
48202
48223
|
case "initial":
|
|
48203
48224
|
case "active":
|
|
48204
|
-
return
|
|
48225
|
+
return import_picocolors2.default.cyan(W4);
|
|
48205
48226
|
case "cancel":
|
|
48206
|
-
return
|
|
48227
|
+
return import_picocolors2.default.red(D3);
|
|
48207
48228
|
case "error":
|
|
48208
|
-
return
|
|
48229
|
+
return import_picocolors2.default.yellow(F3);
|
|
48209
48230
|
case "submit":
|
|
48210
|
-
return
|
|
48231
|
+
return import_picocolors2.default.green(f2);
|
|
48211
48232
|
}
|
|
48212
48233
|
};
|
|
48234
|
+
var J4 = (r3) => new TD({ validate: r3.validate, placeholder: r3.placeholder, defaultValue: r3.defaultValue, initialValue: r3.initialValue, render() {
|
|
48235
|
+
const n2 = `${import_picocolors2.default.gray(a2)}
|
|
48236
|
+
${h2(this.state)} ${r3.message}
|
|
48237
|
+
`, s2 = r3.placeholder ? import_picocolors2.default.inverse(r3.placeholder[0]) + import_picocolors2.default.dim(r3.placeholder.slice(1)) : import_picocolors2.default.inverse(import_picocolors2.default.hidden("_")), t2 = this.value ? this.valueWithCursor : s2;
|
|
48238
|
+
switch (this.state) {
|
|
48239
|
+
case "error":
|
|
48240
|
+
return `${n2.trim()}
|
|
48241
|
+
${import_picocolors2.default.yellow(a2)} ${t2}
|
|
48242
|
+
${import_picocolors2.default.yellow(o)} ${import_picocolors2.default.yellow(this.error)}
|
|
48243
|
+
`;
|
|
48244
|
+
case "submit":
|
|
48245
|
+
return `${n2}${import_picocolors2.default.gray(a2)} ${import_picocolors2.default.dim(this.value || r3.placeholder)}`;
|
|
48246
|
+
case "cancel":
|
|
48247
|
+
return `${n2}${import_picocolors2.default.gray(a2)} ${import_picocolors2.default.strikethrough(import_picocolors2.default.dim(this.value ?? ""))}${this.value?.trim() ? `
|
|
48248
|
+
` + import_picocolors2.default.gray(a2) : ""}`;
|
|
48249
|
+
default:
|
|
48250
|
+
return `${n2}${import_picocolors2.default.cyan(a2)} ${t2}
|
|
48251
|
+
${import_picocolors2.default.cyan(o)}
|
|
48252
|
+
`;
|
|
48253
|
+
}
|
|
48254
|
+
} }).prompt();
|
|
48213
48255
|
var Q3 = (r3) => {
|
|
48214
48256
|
const n2 = r3.active ?? "Yes", s2 = r3.inactive ?? "No";
|
|
48215
48257
|
return new xD2({ active: n2, inactive: s2, initialValue: r3.initialValue ?? true, render() {
|
|
48216
|
-
const t2 = `${
|
|
48258
|
+
const t2 = `${import_picocolors2.default.gray(a2)}
|
|
48217
48259
|
${h2(this.state)} ${r3.message}
|
|
48218
48260
|
`, i3 = this.value ? n2 : s2;
|
|
48219
48261
|
switch (this.state) {
|
|
48220
48262
|
case "submit":
|
|
48221
|
-
return `${t2}${
|
|
48263
|
+
return `${t2}${import_picocolors2.default.gray(a2)} ${import_picocolors2.default.dim(i3)}`;
|
|
48222
48264
|
case "cancel":
|
|
48223
|
-
return `${t2}${
|
|
48224
|
-
${
|
|
48265
|
+
return `${t2}${import_picocolors2.default.gray(a2)} ${import_picocolors2.default.strikethrough(import_picocolors2.default.dim(i3))}
|
|
48266
|
+
${import_picocolors2.default.gray(a2)}`;
|
|
48225
48267
|
default:
|
|
48226
|
-
return `${t2}${
|
|
48227
|
-
${
|
|
48268
|
+
return `${t2}${import_picocolors2.default.cyan(a2)} ${this.value ? `${import_picocolors2.default.green(w5)} ${n2}` : `${import_picocolors2.default.dim(S4)} ${import_picocolors2.default.dim(n2)}`} ${import_picocolors2.default.dim("/")} ${this.value ? `${import_picocolors2.default.dim(S4)} ${import_picocolors2.default.dim(s2)}` : `${import_picocolors2.default.green(w5)} ${s2}`}
|
|
48269
|
+
${import_picocolors2.default.cyan(o)}
|
|
48228
48270
|
`;
|
|
48229
48271
|
}
|
|
48230
48272
|
} }).prompt();
|
|
@@ -48232,22 +48274,22 @@ ${import_picocolors.default.cyan(o)}
|
|
|
48232
48274
|
var ee = (r3) => {
|
|
48233
48275
|
const n2 = (s2, t2) => {
|
|
48234
48276
|
const i3 = s2.label ?? String(s2.value);
|
|
48235
|
-
return t2 === "active" ? `${
|
|
48277
|
+
return t2 === "active" ? `${import_picocolors2.default.green(w5)} ${i3} ${s2.hint ? import_picocolors2.default.dim(`(${s2.hint})`) : ""}` : t2 === "selected" ? `${import_picocolors2.default.dim(i3)}` : t2 === "cancelled" ? `${import_picocolors2.default.strikethrough(import_picocolors2.default.dim(i3))}` : `${import_picocolors2.default.dim(S4)} ${import_picocolors2.default.dim(i3)}`;
|
|
48236
48278
|
};
|
|
48237
48279
|
return new yD({ options: r3.options, initialValue: r3.initialValue, render() {
|
|
48238
|
-
const s2 = `${
|
|
48280
|
+
const s2 = `${import_picocolors2.default.gray(a2)}
|
|
48239
48281
|
${h2(this.state)} ${r3.message}
|
|
48240
48282
|
`;
|
|
48241
48283
|
switch (this.state) {
|
|
48242
48284
|
case "submit":
|
|
48243
|
-
return `${s2}${
|
|
48285
|
+
return `${s2}${import_picocolors2.default.gray(a2)} ${n2(this.options[this.cursor], "selected")}`;
|
|
48244
48286
|
case "cancel":
|
|
48245
|
-
return `${s2}${
|
|
48246
|
-
${
|
|
48287
|
+
return `${s2}${import_picocolors2.default.gray(a2)} ${n2(this.options[this.cursor], "cancelled")}
|
|
48288
|
+
${import_picocolors2.default.gray(a2)}`;
|
|
48247
48289
|
default:
|
|
48248
|
-
return `${s2}${
|
|
48249
|
-
${
|
|
48250
|
-
${
|
|
48290
|
+
return `${s2}${import_picocolors2.default.cyan(a2)} ${this.options.map((t2, i3) => n2(t2, i3 === this.cursor ? "active" : "inactive")).join(`
|
|
48291
|
+
${import_picocolors2.default.cyan(a2)} `)}
|
|
48292
|
+
${import_picocolors2.default.cyan(o)}
|
|
48251
48293
|
`;
|
|
48252
48294
|
}
|
|
48253
48295
|
} }).prompt();
|
|
@@ -48255,42 +48297,42 @@ ${import_picocolors.default.cyan(o)}
|
|
|
48255
48297
|
var re = (r3) => {
|
|
48256
48298
|
const n2 = (s2, t2) => {
|
|
48257
48299
|
const i3 = s2.label ?? String(s2.value);
|
|
48258
|
-
return t2 === "active" ? `${
|
|
48300
|
+
return t2 === "active" ? `${import_picocolors2.default.cyan(_5)} ${i3} ${s2.hint ? import_picocolors2.default.dim(`(${s2.hint})`) : ""}` : t2 === "selected" ? `${import_picocolors2.default.green(y4)} ${import_picocolors2.default.dim(i3)}` : t2 === "cancelled" ? `${import_picocolors2.default.strikethrough(import_picocolors2.default.dim(i3))}` : t2 === "active-selected" ? `${import_picocolors2.default.green(y4)} ${i3} ${s2.hint ? import_picocolors2.default.dim(`(${s2.hint})`) : ""}` : t2 === "submitted" ? `${import_picocolors2.default.dim(i3)}` : `${import_picocolors2.default.dim(A3)} ${import_picocolors2.default.dim(i3)}`;
|
|
48259
48301
|
};
|
|
48260
48302
|
return new gD2({ options: r3.options, initialValues: r3.initialValues, required: r3.required ?? true, cursorAt: r3.cursorAt, validate(s2) {
|
|
48261
48303
|
if (this.required && s2.length === 0) return `Please select at least one option.
|
|
48262
|
-
${
|
|
48304
|
+
${import_picocolors2.default.reset(import_picocolors2.default.dim(`Press ${import_picocolors2.default.gray(import_picocolors2.default.bgWhite(import_picocolors2.default.inverse(" space ")))} to select, ${import_picocolors2.default.gray(import_picocolors2.default.bgWhite(import_picocolors2.default.inverse(" enter ")))} to submit`))}`;
|
|
48263
48305
|
}, render() {
|
|
48264
|
-
let s2 = `${
|
|
48306
|
+
let s2 = `${import_picocolors2.default.gray(a2)}
|
|
48265
48307
|
${h2(this.state)} ${r3.message}
|
|
48266
48308
|
`;
|
|
48267
48309
|
switch (this.state) {
|
|
48268
48310
|
case "submit":
|
|
48269
|
-
return `${s2}${
|
|
48311
|
+
return `${s2}${import_picocolors2.default.gray(a2)} ${this.options.filter(({ value: t2 }) => this.value.includes(t2)).map((t2) => n2(t2, "submitted")).join(import_picocolors2.default.dim(", ")) || import_picocolors2.default.dim("none")}`;
|
|
48270
48312
|
case "cancel": {
|
|
48271
|
-
const t2 = this.options.filter(({ value: i3 }) => this.value.includes(i3)).map((i3) => n2(i3, "cancelled")).join(
|
|
48272
|
-
return `${s2}${
|
|
48273
|
-
${
|
|
48313
|
+
const t2 = this.options.filter(({ value: i3 }) => this.value.includes(i3)).map((i3) => n2(i3, "cancelled")).join(import_picocolors2.default.dim(", "));
|
|
48314
|
+
return `${s2}${import_picocolors2.default.gray(a2)} ${t2.trim() ? `${t2}
|
|
48315
|
+
${import_picocolors2.default.gray(a2)}` : ""}`;
|
|
48274
48316
|
}
|
|
48275
48317
|
case "error": {
|
|
48276
48318
|
const t2 = this.error.split(`
|
|
48277
|
-
`).map((i3,
|
|
48319
|
+
`).map((i3, c4) => c4 === 0 ? `${import_picocolors2.default.yellow(o)} ${import_picocolors2.default.yellow(i3)}` : ` ${i3}`).join(`
|
|
48278
48320
|
`);
|
|
48279
|
-
return s2 +
|
|
48280
|
-
const l3 = this.value.includes(i3.value), $6 =
|
|
48321
|
+
return s2 + import_picocolors2.default.yellow(a2) + " " + this.options.map((i3, c4) => {
|
|
48322
|
+
const l3 = this.value.includes(i3.value), $6 = c4 === this.cursor;
|
|
48281
48323
|
return $6 && l3 ? n2(i3, "active-selected") : l3 ? n2(i3, "selected") : n2(i3, $6 ? "active" : "inactive");
|
|
48282
48324
|
}).join(`
|
|
48283
|
-
${
|
|
48325
|
+
${import_picocolors2.default.yellow(a2)} `) + `
|
|
48284
48326
|
` + t2 + `
|
|
48285
48327
|
`;
|
|
48286
48328
|
}
|
|
48287
48329
|
default:
|
|
48288
|
-
return `${s2}${
|
|
48289
|
-
const
|
|
48290
|
-
return l3 &&
|
|
48330
|
+
return `${s2}${import_picocolors2.default.cyan(a2)} ${this.options.map((t2, i3) => {
|
|
48331
|
+
const c4 = this.value.includes(t2.value), l3 = i3 === this.cursor;
|
|
48332
|
+
return l3 && c4 ? n2(t2, "active-selected") : c4 ? n2(t2, "selected") : n2(t2, l3 ? "active" : "inactive");
|
|
48291
48333
|
}).join(`
|
|
48292
|
-
${
|
|
48293
|
-
${
|
|
48334
|
+
${import_picocolors2.default.cyan(a2)} `)}
|
|
48335
|
+
${import_picocolors2.default.cyan(o)}
|
|
48294
48336
|
`;
|
|
48295
48337
|
}
|
|
48296
48338
|
} }).prompt();
|
|
@@ -48300,21 +48342,21 @@ var ie = (r3 = "", n2 = "") => {
|
|
|
48300
48342
|
const s2 = `
|
|
48301
48343
|
${r3}
|
|
48302
48344
|
`.split(`
|
|
48303
|
-
`), t2 = Math.max(s2.reduce((
|
|
48345
|
+
`), t2 = Math.max(s2.reduce((c4, l3) => (l3 = b5(l3), l3.length > c4 ? l3.length : c4), 0), b5(n2).length) + 2, i3 = s2.map((c4) => `${import_picocolors2.default.gray(a2)} ${import_picocolors2.default.dim(c4)}${" ".repeat(t2 - b5(c4).length)}${import_picocolors2.default.gray(a2)}`).join(`
|
|
48304
48346
|
`);
|
|
48305
|
-
process.stdout.write(`${
|
|
48306
|
-
${
|
|
48347
|
+
process.stdout.write(`${import_picocolors2.default.gray(a2)}
|
|
48348
|
+
${import_picocolors2.default.green(f2)} ${import_picocolors2.default.reset(n2)} ${import_picocolors2.default.gray(R5.repeat(Math.max(t2 - n2.length - 1, 1)) + G4)}
|
|
48307
48349
|
${i3}
|
|
48308
|
-
${
|
|
48350
|
+
${import_picocolors2.default.gray(H3 + R5.repeat(t2 + 2) + K4)}
|
|
48309
48351
|
`);
|
|
48310
48352
|
};
|
|
48311
48353
|
var ae = (r3 = "") => {
|
|
48312
|
-
process.stdout.write(`${
|
|
48354
|
+
process.stdout.write(`${import_picocolors2.default.gray(L5)} ${r3}
|
|
48313
48355
|
`);
|
|
48314
48356
|
};
|
|
48315
48357
|
var ce = (r3 = "") => {
|
|
48316
|
-
process.stdout.write(`${
|
|
48317
|
-
${
|
|
48358
|
+
process.stdout.write(`${import_picocolors2.default.gray(a2)}
|
|
48359
|
+
${import_picocolors2.default.gray(o)} ${r3}
|
|
48318
48360
|
|
|
48319
48361
|
`);
|
|
48320
48362
|
};
|
|
@@ -48323,18 +48365,18 @@ var le = () => {
|
|
|
48323
48365
|
let r3, n2;
|
|
48324
48366
|
const s2 = p2 ? 80 : 120;
|
|
48325
48367
|
return { start(t2 = "") {
|
|
48326
|
-
t2 = t2.replace(/\.?\.?\.$/, ""), r3 = WD(), process.stdout.write(`${
|
|
48327
|
-
${
|
|
48368
|
+
t2 = t2.replace(/\.?\.?\.$/, ""), r3 = WD(), process.stdout.write(`${import_picocolors2.default.gray(a2)}
|
|
48369
|
+
${import_picocolors2.default.magenta("\u25CB")} ${t2}
|
|
48328
48370
|
`);
|
|
48329
|
-
let i3 = 0,
|
|
48371
|
+
let i3 = 0, c4 = 0;
|
|
48330
48372
|
n2 = setInterval(() => {
|
|
48331
48373
|
let l3 = C3[i3];
|
|
48332
|
-
process.stdout.write(import_sisteransi2.cursor.move(-999, -1)), process.stdout.write(`${
|
|
48333
|
-
`), i3 = i3 === C3.length - 1 ? 0 : i3 + 1,
|
|
48374
|
+
process.stdout.write(import_sisteransi2.cursor.move(-999, -1)), process.stdout.write(`${import_picocolors2.default.magenta(l3)} ${t2}${Math.floor(c4) >= 1 ? ".".repeat(Math.floor(c4)).slice(0, 3) : ""}
|
|
48375
|
+
`), i3 = i3 === C3.length - 1 ? 0 : i3 + 1, c4 = c4 === C3.length ? 0 : c4 + 0.125;
|
|
48334
48376
|
}, s2);
|
|
48335
48377
|
}, stop(t2 = "") {
|
|
48336
|
-
process.stdout.write(import_sisteransi2.cursor.move(-999, -2)), process.stdout.write(import_sisteransi2.erase.down(2)), clearInterval(n2), process.stdout.write(`${
|
|
48337
|
-
${
|
|
48378
|
+
process.stdout.write(import_sisteransi2.cursor.move(-999, -2)), process.stdout.write(import_sisteransi2.erase.down(2)), clearInterval(n2), process.stdout.write(`${import_picocolors2.default.gray(a2)}
|
|
48379
|
+
${import_picocolors2.default.green(f2)} ${t2}
|
|
48338
48380
|
`), r3();
|
|
48339
48381
|
} };
|
|
48340
48382
|
};
|
|
@@ -50092,10 +50134,10 @@ var ja_default = {
|
|
|
50092
50134
|
var ko_default = {
|
|
50093
50135
|
localLanguage: "\uD55C\uAD6D\uC5B4",
|
|
50094
50136
|
commitFix: "fix(server.ts): \uD3EC\uD2B8 \uBCC0\uC218\uB97C \uC18C\uBB38\uC790 port\uC5D0\uC11C \uB300\uBB38\uC790 PORT\uB85C \uBCC0\uACBD",
|
|
50095
|
-
commitFeat: "
|
|
50137
|
+
commitFeat: "feat(server.ts): process.env.PORT \uD658\uACBD \uBCC0\uC218 \uC9C0\uC6D0 \uCD94\uAC00",
|
|
50096
50138
|
commitDescription: "\uD3EC\uD2B8 \uBCC0\uC218\uB294 \uC774\uC81C PORT\uB85C \uC774\uB984\uC774 \uC9C0\uC815\uB418\uC5B4 \uC0C1\uC218\uC778 PORT\uC640 \uC77C\uAD00\uC131 \uC788\uB294 \uC774\uB984 \uADDC\uCE59\uC744 \uB530\uB985\uB2C8\uB2E4. \uD658\uACBD \uBCC0\uC218 \uC9C0\uC6D0\uC744 \uD1B5\uD574 \uC560\uD50C\uB9AC\uCF00\uC774\uC158\uC740 \uC774\uC81C process.env.PORT \uD658\uACBD \uBCC0\uC218\uB85C \uC9C0\uC815\uB41C \uC0AC\uC6A9 \uAC00\uB2A5\uD55C \uBAA8\uB4E0 \uD3EC\uD2B8\uC5D0\uC11C \uC2E4\uD589\uD560 \uC218 \uC788\uC73C\uBBC0\uB85C \uB354 \uC720\uC5F0\uD574\uC84C\uC2B5\uB2C8\uB2E4.",
|
|
50097
50139
|
commitFixOmitScope: "fix: \uD3EC\uD2B8 \uBCC0\uC218\uB97C \uC18C\uBB38\uC790 port\uC5D0\uC11C \uB300\uBB38\uC790 PORT\uB85C \uBCC0\uACBD",
|
|
50098
|
-
commitFeatOmitScope: "
|
|
50140
|
+
commitFeatOmitScope: "feat: process.env.PORT \uD658\uACBD \uBCC0\uC218 \uC9C0\uC6D0 \uCD94\uAC00"
|
|
50099
50141
|
};
|
|
50100
50142
|
|
|
50101
50143
|
// src/i18n/nl.json
|
|
@@ -50270,6 +50312,7 @@ var CONFIG_KEYS = /* @__PURE__ */ ((CONFIG_KEYS2) => {
|
|
|
50270
50312
|
CONFIG_KEYS2["OCO_API_CUSTOM_HEADERS"] = "OCO_API_CUSTOM_HEADERS";
|
|
50271
50313
|
CONFIG_KEYS2["OCO_OMIT_SCOPE"] = "OCO_OMIT_SCOPE";
|
|
50272
50314
|
CONFIG_KEYS2["OCO_GITPUSH"] = "OCO_GITPUSH";
|
|
50315
|
+
CONFIG_KEYS2["OCO_HOOK_AUTO_UNCOMMENT"] = "OCO_HOOK_AUTO_UNCOMMENT";
|
|
50273
50316
|
return CONFIG_KEYS2;
|
|
50274
50317
|
})(CONFIG_KEYS || {});
|
|
50275
50318
|
var MODEL_LIST = {
|
|
@@ -50371,7 +50414,442 @@ var MODEL_LIST = {
|
|
|
50371
50414
|
"mistral-moderation-2411",
|
|
50372
50415
|
"mistral-moderation-latest"
|
|
50373
50416
|
],
|
|
50374
|
-
deepseek: ["deepseek-chat", "deepseek-reasoner"]
|
|
50417
|
+
deepseek: ["deepseek-chat", "deepseek-reasoner"],
|
|
50418
|
+
// AI/ML API available chat-completion models
|
|
50419
|
+
// https://api.aimlapi.com/v1/models
|
|
50420
|
+
aimlapi: [
|
|
50421
|
+
"openai/gpt-4o",
|
|
50422
|
+
"gpt-4o-2024-08-06",
|
|
50423
|
+
"gpt-4o-2024-05-13",
|
|
50424
|
+
"gpt-4o-mini",
|
|
50425
|
+
"gpt-4o-mini-2024-07-18",
|
|
50426
|
+
"chatgpt-4o-latest",
|
|
50427
|
+
"gpt-4-turbo",
|
|
50428
|
+
"gpt-4-turbo-2024-04-09",
|
|
50429
|
+
"gpt-4",
|
|
50430
|
+
"gpt-4-0125-preview",
|
|
50431
|
+
"gpt-4-1106-preview",
|
|
50432
|
+
"gpt-3.5-turbo",
|
|
50433
|
+
"gpt-3.5-turbo-0125",
|
|
50434
|
+
"gpt-3.5-turbo-1106",
|
|
50435
|
+
"o1-preview",
|
|
50436
|
+
"o1-preview-2024-09-12",
|
|
50437
|
+
"o1-mini",
|
|
50438
|
+
"o1-mini-2024-09-12",
|
|
50439
|
+
"o3-mini",
|
|
50440
|
+
"gpt-4o-audio-preview",
|
|
50441
|
+
"gpt-4o-mini-audio-preview",
|
|
50442
|
+
"gpt-4o-search-preview",
|
|
50443
|
+
"gpt-4o-mini-search-preview",
|
|
50444
|
+
"openai/gpt-4.1-2025-04-14",
|
|
50445
|
+
"openai/gpt-4.1-mini-2025-04-14",
|
|
50446
|
+
"openai/gpt-4.1-nano-2025-04-14",
|
|
50447
|
+
"openai/o4-mini-2025-04-16",
|
|
50448
|
+
"openai/o3-2025-04-16",
|
|
50449
|
+
"o1",
|
|
50450
|
+
"openai/o3-pro",
|
|
50451
|
+
"meta-llama/Llama-3.2-90B-Vision-Instruct-Turbo",
|
|
50452
|
+
"google/gemma-2-27b-it",
|
|
50453
|
+
"meta-llama/Llama-Vision-Free",
|
|
50454
|
+
"Qwen/Qwen2-72B-Instruct",
|
|
50455
|
+
"mistralai/Mixtral-8x7B-Instruct-v0.1",
|
|
50456
|
+
"nvidia/Llama-3.1-Nemotron-70B-Instruct-HF",
|
|
50457
|
+
"NousResearch/Nous-Hermes-2-Mixtral-8x7B-DPO",
|
|
50458
|
+
"meta-llama/Llama-3.3-70B-Instruct-Turbo",
|
|
50459
|
+
"meta-llama/Llama-3.2-3B-Instruct-Turbo",
|
|
50460
|
+
"meta-llama/Llama-3.2-11B-Vision-Instruct-Turbo",
|
|
50461
|
+
"meta-llama/Llama-Guard-3-11B-Vision-Turbo",
|
|
50462
|
+
"Qwen/Qwen2.5-7B-Instruct-Turbo",
|
|
50463
|
+
"Qwen/Qwen2.5-Coder-32B-Instruct",
|
|
50464
|
+
"meta-llama/Meta-Llama-3-8B-Instruct-Lite",
|
|
50465
|
+
"meta-llama/Llama-3-8b-chat-hf",
|
|
50466
|
+
"meta-llama/Llama-3-70b-chat-hf",
|
|
50467
|
+
"Qwen/Qwen2.5-72B-Instruct-Turbo",
|
|
50468
|
+
"Qwen/QwQ-32B",
|
|
50469
|
+
"meta-llama/Meta-Llama-3.1-405B-Instruct-Turbo",
|
|
50470
|
+
"meta-llama/Meta-Llama-3.1-8B-Instruct-Turbo",
|
|
50471
|
+
"meta-llama/Meta-Llama-3.1-70B-Instruct-Turbo",
|
|
50472
|
+
"mistralai/Mistral-7B-Instruct-v0.2",
|
|
50473
|
+
"meta-llama/LlamaGuard-2-8b",
|
|
50474
|
+
"mistralai/Mistral-7B-Instruct-v0.1",
|
|
50475
|
+
"mistralai/Mistral-7B-Instruct-v0.3",
|
|
50476
|
+
"meta-llama/Meta-Llama-Guard-3-8B",
|
|
50477
|
+
"meta-llama/llama-4-scout",
|
|
50478
|
+
"meta-llama/llama-4-maverick",
|
|
50479
|
+
"Qwen/Qwen3-235B-A22B-fp8-tput",
|
|
50480
|
+
"claude-3-opus-20240229",
|
|
50481
|
+
"claude-3-haiku-20240307",
|
|
50482
|
+
"claude-3-5-sonnet-20240620",
|
|
50483
|
+
"claude-3-5-sonnet-20241022",
|
|
50484
|
+
"claude-3-5-haiku-20241022",
|
|
50485
|
+
"claude-3-7-sonnet-20250219",
|
|
50486
|
+
"claude-sonnet-4-20250514",
|
|
50487
|
+
"claude-opus-4-20250514",
|
|
50488
|
+
"google/gemini-2.0-flash-exp",
|
|
50489
|
+
"google/gemini-2.0-flash",
|
|
50490
|
+
"google/gemini-2.5-pro",
|
|
50491
|
+
"google/gemini-2.5-flash",
|
|
50492
|
+
"deepseek-chat",
|
|
50493
|
+
"deepseek-reasoner",
|
|
50494
|
+
"qwen-max",
|
|
50495
|
+
"qwen-plus",
|
|
50496
|
+
"qwen-turbo",
|
|
50497
|
+
"qwen-max-2025-01-25",
|
|
50498
|
+
"mistralai/mistral-tiny",
|
|
50499
|
+
"mistralai/mistral-nemo",
|
|
50500
|
+
"anthracite-org/magnum-v4-72b",
|
|
50501
|
+
"nvidia/llama-3.1-nemotron-70b-instruct",
|
|
50502
|
+
"cohere/command-r-plus",
|
|
50503
|
+
"mistralai/codestral-2501",
|
|
50504
|
+
"google/gemma-3-4b-it",
|
|
50505
|
+
"google/gemma-3-12b-it",
|
|
50506
|
+
"google/gemma-3-27b-it",
|
|
50507
|
+
"google/gemini-2.5-flash-lite-preview",
|
|
50508
|
+
"deepseek/deepseek-prover-v2",
|
|
50509
|
+
"google/gemma-3n-e4b-it",
|
|
50510
|
+
"cohere/command-a",
|
|
50511
|
+
"MiniMax-Text-01",
|
|
50512
|
+
"abab6.5s-chat",
|
|
50513
|
+
"minimax/m1",
|
|
50514
|
+
"bagoodex/bagoodex-search-v1",
|
|
50515
|
+
"moonshot/kimi-k2-preview",
|
|
50516
|
+
"perplexity/sonar",
|
|
50517
|
+
"perplexity/sonar-pro",
|
|
50518
|
+
"x-ai/grok-4-07-09",
|
|
50519
|
+
"x-ai/grok-3-beta",
|
|
50520
|
+
"x-ai/grok-3-mini-beta"
|
|
50521
|
+
],
|
|
50522
|
+
// OpenRouter available models
|
|
50523
|
+
// input_modalities: 'text'
|
|
50524
|
+
// output_modalities: 'text'
|
|
50525
|
+
// https://openrouter.ai/api/v1/models
|
|
50526
|
+
openrouter: [
|
|
50527
|
+
"openai/gpt-4o-mini",
|
|
50528
|
+
// used by default
|
|
50529
|
+
"01-ai/yi-large",
|
|
50530
|
+
"aetherwiing/mn-starcannon-12b",
|
|
50531
|
+
"agentica-org/deepcoder-14b-preview:free",
|
|
50532
|
+
"ai21/jamba-1.6-large",
|
|
50533
|
+
"ai21/jamba-1.6-mini",
|
|
50534
|
+
"aion-labs/aion-1.0",
|
|
50535
|
+
"aion-labs/aion-1.0-mini",
|
|
50536
|
+
"aion-labs/aion-rp-llama-3.1-8b",
|
|
50537
|
+
"alfredpros/codellama-7b-instruct-solidity",
|
|
50538
|
+
"all-hands/openhands-lm-32b-v0.1",
|
|
50539
|
+
"alpindale/goliath-120b",
|
|
50540
|
+
"alpindale/magnum-72b",
|
|
50541
|
+
"amazon/nova-lite-v1",
|
|
50542
|
+
"amazon/nova-micro-v1",
|
|
50543
|
+
"amazon/nova-pro-v1",
|
|
50544
|
+
"anthracite-org/magnum-v2-72b",
|
|
50545
|
+
"anthracite-org/magnum-v4-72b",
|
|
50546
|
+
"anthropic/claude-2",
|
|
50547
|
+
"anthropic/claude-2.0",
|
|
50548
|
+
"anthropic/claude-2.0:beta",
|
|
50549
|
+
"anthropic/claude-2.1",
|
|
50550
|
+
"anthropic/claude-2.1:beta",
|
|
50551
|
+
"anthropic/claude-2:beta",
|
|
50552
|
+
"anthropic/claude-3-haiku",
|
|
50553
|
+
"anthropic/claude-3-haiku:beta",
|
|
50554
|
+
"anthropic/claude-3-opus",
|
|
50555
|
+
"anthropic/claude-3-opus:beta",
|
|
50556
|
+
"anthropic/claude-3-sonnet",
|
|
50557
|
+
"anthropic/claude-3-sonnet:beta",
|
|
50558
|
+
"anthropic/claude-3.5-haiku",
|
|
50559
|
+
"anthropic/claude-3.5-haiku-20241022",
|
|
50560
|
+
"anthropic/claude-3.5-haiku-20241022:beta",
|
|
50561
|
+
"anthropic/claude-3.5-haiku:beta",
|
|
50562
|
+
"anthropic/claude-3.5-sonnet",
|
|
50563
|
+
"anthropic/claude-3.5-sonnet-20240620",
|
|
50564
|
+
"anthropic/claude-3.5-sonnet-20240620:beta",
|
|
50565
|
+
"anthropic/claude-3.5-sonnet:beta",
|
|
50566
|
+
"anthropic/claude-3.7-sonnet",
|
|
50567
|
+
"anthropic/claude-3.7-sonnet:beta",
|
|
50568
|
+
"anthropic/claude-3.7-sonnet:thinking",
|
|
50569
|
+
"anthropic/claude-opus-4",
|
|
50570
|
+
"anthropic/claude-sonnet-4",
|
|
50571
|
+
"arcee-ai/arcee-blitz",
|
|
50572
|
+
"arcee-ai/caller-large",
|
|
50573
|
+
"arcee-ai/coder-large",
|
|
50574
|
+
"arcee-ai/maestro-reasoning",
|
|
50575
|
+
"arcee-ai/spotlight",
|
|
50576
|
+
"arcee-ai/virtuoso-large",
|
|
50577
|
+
"arcee-ai/virtuoso-medium-v2",
|
|
50578
|
+
"arliai/qwq-32b-arliai-rpr-v1:free",
|
|
50579
|
+
"cognitivecomputations/dolphin-mixtral-8x22b",
|
|
50580
|
+
"cognitivecomputations/dolphin3.0-mistral-24b:free",
|
|
50581
|
+
"cognitivecomputations/dolphin3.0-r1-mistral-24b:free",
|
|
50582
|
+
"cohere/command",
|
|
50583
|
+
"cohere/command-a",
|
|
50584
|
+
"cohere/command-r",
|
|
50585
|
+
"cohere/command-r-03-2024",
|
|
50586
|
+
"cohere/command-r-08-2024",
|
|
50587
|
+
"cohere/command-r-plus",
|
|
50588
|
+
"cohere/command-r-plus-04-2024",
|
|
50589
|
+
"cohere/command-r-plus-08-2024",
|
|
50590
|
+
"cohere/command-r7b-12-2024",
|
|
50591
|
+
"deepseek/deepseek-chat",
|
|
50592
|
+
"deepseek/deepseek-chat-v3-0324",
|
|
50593
|
+
"deepseek/deepseek-chat-v3-0324:free",
|
|
50594
|
+
"deepseek/deepseek-chat:free",
|
|
50595
|
+
"deepseek/deepseek-prover-v2",
|
|
50596
|
+
"deepseek/deepseek-prover-v2:free",
|
|
50597
|
+
"deepseek/deepseek-r1",
|
|
50598
|
+
"deepseek/deepseek-r1-0528",
|
|
50599
|
+
"deepseek/deepseek-r1-0528-qwen3-8b",
|
|
50600
|
+
"deepseek/deepseek-r1-0528-qwen3-8b:free",
|
|
50601
|
+
"deepseek/deepseek-r1-0528:free",
|
|
50602
|
+
"deepseek/deepseek-r1-distill-llama-70b",
|
|
50603
|
+
"deepseek/deepseek-r1-distill-llama-70b:free",
|
|
50604
|
+
"deepseek/deepseek-r1-distill-llama-8b",
|
|
50605
|
+
"deepseek/deepseek-r1-distill-qwen-1.5b",
|
|
50606
|
+
"deepseek/deepseek-r1-distill-qwen-14b",
|
|
50607
|
+
"deepseek/deepseek-r1-distill-qwen-14b:free",
|
|
50608
|
+
"deepseek/deepseek-r1-distill-qwen-32b",
|
|
50609
|
+
"deepseek/deepseek-r1-distill-qwen-32b:free",
|
|
50610
|
+
"deepseek/deepseek-r1-distill-qwen-7b",
|
|
50611
|
+
"deepseek/deepseek-r1-zero:free",
|
|
50612
|
+
"deepseek/deepseek-r1:free",
|
|
50613
|
+
"deepseek/deepseek-v3-base:free",
|
|
50614
|
+
"eleutherai/llemma_7b",
|
|
50615
|
+
"eva-unit-01/eva-llama-3.33-70b",
|
|
50616
|
+
"eva-unit-01/eva-qwen-2.5-32b",
|
|
50617
|
+
"eva-unit-01/eva-qwen-2.5-72b",
|
|
50618
|
+
"featherless/qwerky-72b:free",
|
|
50619
|
+
"google/gemini-2.0-flash-001",
|
|
50620
|
+
"google/gemini-2.0-flash-exp:free",
|
|
50621
|
+
"google/gemini-2.0-flash-lite-001",
|
|
50622
|
+
"google/gemini-2.5-flash-preview",
|
|
50623
|
+
"google/gemini-2.5-flash-preview-05-20",
|
|
50624
|
+
"google/gemini-2.5-flash-preview-05-20:thinking",
|
|
50625
|
+
"google/gemini-2.5-flash-preview:thinking",
|
|
50626
|
+
"google/gemini-2.5-pro-exp-03-25",
|
|
50627
|
+
"google/gemini-2.5-pro-preview",
|
|
50628
|
+
"google/gemini-2.5-pro-preview-05-06",
|
|
50629
|
+
"google/gemini-flash-1.5",
|
|
50630
|
+
"google/gemini-flash-1.5-8b",
|
|
50631
|
+
"google/gemini-pro-1.5",
|
|
50632
|
+
"google/gemma-2-27b-it",
|
|
50633
|
+
"google/gemma-2-9b-it",
|
|
50634
|
+
"google/gemma-2-9b-it:free",
|
|
50635
|
+
"google/gemma-3-12b-it",
|
|
50636
|
+
"google/gemma-3-12b-it:free",
|
|
50637
|
+
"google/gemma-3-1b-it:free",
|
|
50638
|
+
"google/gemma-3-27b-it",
|
|
50639
|
+
"google/gemma-3-27b-it:free",
|
|
50640
|
+
"google/gemma-3-4b-it",
|
|
50641
|
+
"google/gemma-3-4b-it:free",
|
|
50642
|
+
"google/gemma-3n-e4b-it:free",
|
|
50643
|
+
"gryphe/mythomax-l2-13b",
|
|
50644
|
+
"inception/mercury-coder-small-beta",
|
|
50645
|
+
"infermatic/mn-inferor-12b",
|
|
50646
|
+
"inflection/inflection-3-pi",
|
|
50647
|
+
"inflection/inflection-3-productivity",
|
|
50648
|
+
"liquid/lfm-3b",
|
|
50649
|
+
"liquid/lfm-40b",
|
|
50650
|
+
"liquid/lfm-7b",
|
|
50651
|
+
"mancer/weaver",
|
|
50652
|
+
"meta-llama/llama-2-70b-chat",
|
|
50653
|
+
"meta-llama/llama-3-70b-instruct",
|
|
50654
|
+
"meta-llama/llama-3-8b-instruct",
|
|
50655
|
+
"meta-llama/llama-3.1-405b",
|
|
50656
|
+
"meta-llama/llama-3.1-405b-instruct",
|
|
50657
|
+
"meta-llama/llama-3.1-405b:free",
|
|
50658
|
+
"meta-llama/llama-3.1-70b-instruct",
|
|
50659
|
+
"meta-llama/llama-3.1-8b-instruct",
|
|
50660
|
+
"meta-llama/llama-3.1-8b-instruct:free",
|
|
50661
|
+
"meta-llama/llama-3.2-11b-vision-instruct",
|
|
50662
|
+
"meta-llama/llama-3.2-11b-vision-instruct:free",
|
|
50663
|
+
"meta-llama/llama-3.2-1b-instruct",
|
|
50664
|
+
"meta-llama/llama-3.2-1b-instruct:free",
|
|
50665
|
+
"meta-llama/llama-3.2-3b-instruct",
|
|
50666
|
+
"meta-llama/llama-3.2-3b-instruct:free",
|
|
50667
|
+
"meta-llama/llama-3.2-90b-vision-instruct",
|
|
50668
|
+
"meta-llama/llama-3.3-70b-instruct",
|
|
50669
|
+
"meta-llama/llama-3.3-70b-instruct:free",
|
|
50670
|
+
"meta-llama/llama-3.3-8b-instruct:free",
|
|
50671
|
+
"meta-llama/llama-4-maverick",
|
|
50672
|
+
"meta-llama/llama-4-maverick:free",
|
|
50673
|
+
"meta-llama/llama-4-scout",
|
|
50674
|
+
"meta-llama/llama-4-scout:free",
|
|
50675
|
+
"meta-llama/llama-guard-2-8b",
|
|
50676
|
+
"meta-llama/llama-guard-3-8b",
|
|
50677
|
+
"meta-llama/llama-guard-4-12b",
|
|
50678
|
+
"microsoft/mai-ds-r1:free",
|
|
50679
|
+
"microsoft/phi-3-medium-128k-instruct",
|
|
50680
|
+
"microsoft/phi-3-mini-128k-instruct",
|
|
50681
|
+
"microsoft/phi-3.5-mini-128k-instruct",
|
|
50682
|
+
"microsoft/phi-4",
|
|
50683
|
+
"microsoft/phi-4-multimodal-instruct",
|
|
50684
|
+
"microsoft/phi-4-reasoning-plus",
|
|
50685
|
+
"microsoft/phi-4-reasoning-plus:free",
|
|
50686
|
+
"microsoft/phi-4-reasoning:free",
|
|
50687
|
+
"microsoft/wizardlm-2-8x22b",
|
|
50688
|
+
"minimax/minimax-01",
|
|
50689
|
+
"mistralai/codestral-2501",
|
|
50690
|
+
"mistralai/devstral-small",
|
|
50691
|
+
"mistralai/devstral-small:free",
|
|
50692
|
+
"mistralai/magistral-medium-2506",
|
|
50693
|
+
"mistralai/magistral-medium-2506:thinking",
|
|
50694
|
+
"mistralai/magistral-small-2506",
|
|
50695
|
+
"mistralai/ministral-3b",
|
|
50696
|
+
"mistralai/ministral-8b",
|
|
50697
|
+
"mistralai/mistral-7b-instruct",
|
|
50698
|
+
"mistralai/mistral-7b-instruct-v0.1",
|
|
50699
|
+
"mistralai/mistral-7b-instruct-v0.2",
|
|
50700
|
+
"mistralai/mistral-7b-instruct-v0.3",
|
|
50701
|
+
"mistralai/mistral-7b-instruct:free",
|
|
50702
|
+
"mistralai/mistral-large",
|
|
50703
|
+
"mistralai/mistral-large-2407",
|
|
50704
|
+
"mistralai/mistral-large-2411",
|
|
50705
|
+
"mistralai/mistral-medium",
|
|
50706
|
+
"mistralai/mistral-medium-3",
|
|
50707
|
+
"mistralai/mistral-nemo",
|
|
50708
|
+
"mistralai/mistral-nemo:free",
|
|
50709
|
+
"mistralai/mistral-saba",
|
|
50710
|
+
"mistralai/mistral-small",
|
|
50711
|
+
"mistralai/mistral-small-24b-instruct-2501",
|
|
50712
|
+
"mistralai/mistral-small-24b-instruct-2501:free",
|
|
50713
|
+
"mistralai/mistral-small-3.1-24b-instruct",
|
|
50714
|
+
"mistralai/mistral-small-3.1-24b-instruct:free",
|
|
50715
|
+
"mistralai/mistral-tiny",
|
|
50716
|
+
"mistralai/mixtral-8x22b-instruct",
|
|
50717
|
+
"mistralai/mixtral-8x7b-instruct",
|
|
50718
|
+
"mistralai/pixtral-12b",
|
|
50719
|
+
"mistralai/pixtral-large-2411",
|
|
50720
|
+
"moonshotai/kimi-vl-a3b-thinking:free",
|
|
50721
|
+
"moonshotai/moonlight-16b-a3b-instruct:free",
|
|
50722
|
+
"neversleep/llama-3-lumimaid-70b",
|
|
50723
|
+
"neversleep/llama-3-lumimaid-8b",
|
|
50724
|
+
"neversleep/llama-3.1-lumimaid-70b",
|
|
50725
|
+
"neversleep/llama-3.1-lumimaid-8b",
|
|
50726
|
+
"neversleep/noromaid-20b",
|
|
50727
|
+
"nothingiisreal/mn-celeste-12b",
|
|
50728
|
+
"nousresearch/deephermes-3-llama-3-8b-preview:free",
|
|
50729
|
+
"nousresearch/deephermes-3-mistral-24b-preview:free",
|
|
50730
|
+
"nousresearch/hermes-2-pro-llama-3-8b",
|
|
50731
|
+
"nousresearch/hermes-3-llama-3.1-405b",
|
|
50732
|
+
"nousresearch/hermes-3-llama-3.1-70b",
|
|
50733
|
+
"nousresearch/nous-hermes-2-mixtral-8x7b-dpo",
|
|
50734
|
+
"nvidia/llama-3.1-nemotron-70b-instruct",
|
|
50735
|
+
"nvidia/llama-3.1-nemotron-ultra-253b-v1",
|
|
50736
|
+
"nvidia/llama-3.1-nemotron-ultra-253b-v1:free",
|
|
50737
|
+
"nvidia/llama-3.3-nemotron-super-49b-v1",
|
|
50738
|
+
"nvidia/llama-3.3-nemotron-super-49b-v1:free",
|
|
50739
|
+
"open-r1/olympiccoder-32b:free",
|
|
50740
|
+
"openai/chatgpt-4o-latest",
|
|
50741
|
+
"openai/codex-mini",
|
|
50742
|
+
"openai/gpt-3.5-turbo",
|
|
50743
|
+
"openai/gpt-3.5-turbo-0125",
|
|
50744
|
+
"openai/gpt-3.5-turbo-0613",
|
|
50745
|
+
"openai/gpt-3.5-turbo-1106",
|
|
50746
|
+
"openai/gpt-3.5-turbo-16k",
|
|
50747
|
+
"openai/gpt-3.5-turbo-instruct",
|
|
50748
|
+
"openai/gpt-4",
|
|
50749
|
+
"openai/gpt-4-0314",
|
|
50750
|
+
"openai/gpt-4-1106-preview",
|
|
50751
|
+
"openai/gpt-4-turbo",
|
|
50752
|
+
"openai/gpt-4-turbo-preview",
|
|
50753
|
+
"openai/gpt-4.1",
|
|
50754
|
+
"openai/gpt-4.1-mini",
|
|
50755
|
+
"openai/gpt-4.1-nano",
|
|
50756
|
+
"openai/gpt-4.5-preview",
|
|
50757
|
+
"openai/gpt-4o",
|
|
50758
|
+
"openai/gpt-4o-2024-05-13",
|
|
50759
|
+
"openai/gpt-4o-2024-08-06",
|
|
50760
|
+
"openai/gpt-4o-2024-11-20",
|
|
50761
|
+
"openai/gpt-4o-mini-2024-07-18",
|
|
50762
|
+
"openai/gpt-4o-mini-search-preview",
|
|
50763
|
+
"openai/gpt-4o-search-preview",
|
|
50764
|
+
"openai/gpt-4o:extended",
|
|
50765
|
+
"openai/o1",
|
|
50766
|
+
"openai/o1-mini",
|
|
50767
|
+
"openai/o1-mini-2024-09-12",
|
|
50768
|
+
"openai/o1-preview",
|
|
50769
|
+
"openai/o1-preview-2024-09-12",
|
|
50770
|
+
"openai/o1-pro",
|
|
50771
|
+
"openai/o3",
|
|
50772
|
+
"openai/o3-mini",
|
|
50773
|
+
"openai/o3-mini-high",
|
|
50774
|
+
"openai/o3-pro",
|
|
50775
|
+
"openai/o4-mini",
|
|
50776
|
+
"openai/o4-mini-high",
|
|
50777
|
+
"opengvlab/internvl3-14b:free",
|
|
50778
|
+
"opengvlab/internvl3-2b:free",
|
|
50779
|
+
"openrouter/auto",
|
|
50780
|
+
"perplexity/llama-3.1-sonar-large-128k-online",
|
|
50781
|
+
"perplexity/llama-3.1-sonar-small-128k-online",
|
|
50782
|
+
"perplexity/r1-1776",
|
|
50783
|
+
"perplexity/sonar",
|
|
50784
|
+
"perplexity/sonar-deep-research",
|
|
50785
|
+
"perplexity/sonar-pro",
|
|
50786
|
+
"perplexity/sonar-reasoning",
|
|
50787
|
+
"perplexity/sonar-reasoning-pro",
|
|
50788
|
+
"pygmalionai/mythalion-13b",
|
|
50789
|
+
"qwen/qwen-2-72b-instruct",
|
|
50790
|
+
"qwen/qwen-2.5-72b-instruct",
|
|
50791
|
+
"qwen/qwen-2.5-72b-instruct:free",
|
|
50792
|
+
"qwen/qwen-2.5-7b-instruct",
|
|
50793
|
+
"qwen/qwen-2.5-7b-instruct:free",
|
|
50794
|
+
"qwen/qwen-2.5-coder-32b-instruct",
|
|
50795
|
+
"qwen/qwen-2.5-coder-32b-instruct:free",
|
|
50796
|
+
"qwen/qwen-2.5-vl-7b-instruct",
|
|
50797
|
+
"qwen/qwen-2.5-vl-7b-instruct:free",
|
|
50798
|
+
"qwen/qwen-max",
|
|
50799
|
+
"qwen/qwen-plus",
|
|
50800
|
+
"qwen/qwen-turbo",
|
|
50801
|
+
"qwen/qwen-vl-max",
|
|
50802
|
+
"qwen/qwen-vl-plus",
|
|
50803
|
+
"qwen/qwen2.5-vl-32b-instruct",
|
|
50804
|
+
"qwen/qwen2.5-vl-32b-instruct:free",
|
|
50805
|
+
"qwen/qwen2.5-vl-3b-instruct:free",
|
|
50806
|
+
"qwen/qwen2.5-vl-72b-instruct",
|
|
50807
|
+
"qwen/qwen2.5-vl-72b-instruct:free",
|
|
50808
|
+
"qwen/qwen3-14b",
|
|
50809
|
+
"qwen/qwen3-14b:free",
|
|
50810
|
+
"qwen/qwen3-235b-a22b",
|
|
50811
|
+
"qwen/qwen3-235b-a22b:free",
|
|
50812
|
+
"qwen/qwen3-30b-a3b",
|
|
50813
|
+
"qwen/qwen3-30b-a3b:free",
|
|
50814
|
+
"qwen/qwen3-32b",
|
|
50815
|
+
"qwen/qwen3-32b:free",
|
|
50816
|
+
"qwen/qwen3-8b",
|
|
50817
|
+
"qwen/qwen3-8b:free",
|
|
50818
|
+
"qwen/qwq-32b",
|
|
50819
|
+
"qwen/qwq-32b-preview",
|
|
50820
|
+
"qwen/qwq-32b:free",
|
|
50821
|
+
"raifle/sorcererlm-8x22b",
|
|
50822
|
+
"rekaai/reka-flash-3:free",
|
|
50823
|
+
"sao10k/fimbulvetr-11b-v2",
|
|
50824
|
+
"sao10k/l3-euryale-70b",
|
|
50825
|
+
"sao10k/l3-lunaris-8b",
|
|
50826
|
+
"sao10k/l3.1-euryale-70b",
|
|
50827
|
+
"sao10k/l3.3-euryale-70b",
|
|
50828
|
+
"sarvamai/sarvam-m:free",
|
|
50829
|
+
"scb10x/llama3.1-typhoon2-70b-instruct",
|
|
50830
|
+
"sentientagi/dobby-mini-unhinged-plus-llama-3.1-8b",
|
|
50831
|
+
"shisa-ai/shisa-v2-llama3.3-70b:free",
|
|
50832
|
+
"sophosympatheia/midnight-rose-70b",
|
|
50833
|
+
"thedrummer/anubis-pro-105b-v1",
|
|
50834
|
+
"thedrummer/rocinante-12b",
|
|
50835
|
+
"thedrummer/skyfall-36b-v2",
|
|
50836
|
+
"thedrummer/unslopnemo-12b",
|
|
50837
|
+
"thedrummer/valkyrie-49b-v1",
|
|
50838
|
+
"thudm/glm-4-32b",
|
|
50839
|
+
"thudm/glm-4-32b:free",
|
|
50840
|
+
"thudm/glm-z1-32b",
|
|
50841
|
+
"thudm/glm-z1-32b:free",
|
|
50842
|
+
"thudm/glm-z1-rumination-32b",
|
|
50843
|
+
"tngtech/deepseek-r1t-chimera:free",
|
|
50844
|
+
"undi95/remm-slerp-l2-13b",
|
|
50845
|
+
"undi95/toppy-m-7b",
|
|
50846
|
+
"x-ai/grok-2-1212",
|
|
50847
|
+
"x-ai/grok-2-vision-1212",
|
|
50848
|
+
"x-ai/grok-3-beta",
|
|
50849
|
+
"x-ai/grok-3-mini-beta",
|
|
50850
|
+
"x-ai/grok-beta",
|
|
50851
|
+
"x-ai/grok-vision-beta"
|
|
50852
|
+
]
|
|
50375
50853
|
};
|
|
50376
50854
|
var getDefaultModel = (provider) => {
|
|
50377
50855
|
switch (provider) {
|
|
@@ -50389,6 +50867,10 @@ var getDefaultModel = (provider) => {
|
|
|
50389
50867
|
return MODEL_LIST.mistral[0];
|
|
50390
50868
|
case "deepseek":
|
|
50391
50869
|
return MODEL_LIST.deepseek[0];
|
|
50870
|
+
case "aimlapi":
|
|
50871
|
+
return MODEL_LIST.aimlapi[0];
|
|
50872
|
+
case "openrouter":
|
|
50873
|
+
return MODEL_LIST.openrouter[0];
|
|
50392
50874
|
default:
|
|
50393
50875
|
return MODEL_LIST.openai[0];
|
|
50394
50876
|
}
|
|
@@ -50542,9 +51024,11 @@ var configValidators = {
|
|
|
50542
51024
|
"test",
|
|
50543
51025
|
"flowise",
|
|
50544
51026
|
"groq",
|
|
50545
|
-
"deepseek"
|
|
51027
|
+
"deepseek",
|
|
51028
|
+
"aimlapi",
|
|
51029
|
+
"openrouter"
|
|
50546
51030
|
].includes(value) || value.startsWith("ollama"),
|
|
50547
|
-
`${value} is not supported yet, use 'ollama', 'mlx', 'anthropic', 'azure', 'gemini', 'flowise', 'mistral', 'deepseek' or 'openai' (default)`
|
|
51031
|
+
`${value} is not supported yet, use 'ollama', 'mlx', 'anthropic', 'azure', 'gemini', 'flowise', 'mistral', 'deepseek', 'aimlapi' or 'openai' (default)`
|
|
50548
51032
|
);
|
|
50549
51033
|
return value;
|
|
50550
51034
|
},
|
|
@@ -50573,6 +51057,13 @@ var configValidators = {
|
|
|
50573
51057
|
"Must be true or false"
|
|
50574
51058
|
);
|
|
50575
51059
|
return value;
|
|
51060
|
+
},
|
|
51061
|
+
["OCO_HOOK_AUTO_UNCOMMENT" /* OCO_HOOK_AUTO_UNCOMMENT */](value) {
|
|
51062
|
+
validateConfig(
|
|
51063
|
+
"OCO_HOOK_AUTO_UNCOMMENT" /* OCO_HOOK_AUTO_UNCOMMENT */,
|
|
51064
|
+
typeof value === "boolean",
|
|
51065
|
+
"Must be true or false"
|
|
51066
|
+
);
|
|
50576
51067
|
}
|
|
50577
51068
|
};
|
|
50578
51069
|
var OCO_AI_PROVIDER_ENUM = /* @__PURE__ */ ((OCO_AI_PROVIDER_ENUM2) => {
|
|
@@ -50587,6 +51078,8 @@ var OCO_AI_PROVIDER_ENUM = /* @__PURE__ */ ((OCO_AI_PROVIDER_ENUM2) => {
|
|
|
50587
51078
|
OCO_AI_PROVIDER_ENUM2["MISTRAL"] = "mistral";
|
|
50588
51079
|
OCO_AI_PROVIDER_ENUM2["MLX"] = "mlx";
|
|
50589
51080
|
OCO_AI_PROVIDER_ENUM2["DEEPSEEK"] = "deepseek";
|
|
51081
|
+
OCO_AI_PROVIDER_ENUM2["AIMLAPI"] = "aimlapi";
|
|
51082
|
+
OCO_AI_PROVIDER_ENUM2["OPENROUTER"] = "openrouter";
|
|
50590
51083
|
return OCO_AI_PROVIDER_ENUM2;
|
|
50591
51084
|
})(OCO_AI_PROVIDER_ENUM || {});
|
|
50592
51085
|
var defaultConfigPath = (0, import_path.join)((0, import_os.homedir)(), ".opencommit");
|
|
@@ -50610,8 +51103,9 @@ var DEFAULT_CONFIG = {
|
|
|
50610
51103
|
OCO_TEST_MOCK_TYPE: "commit-message",
|
|
50611
51104
|
OCO_WHY: false,
|
|
50612
51105
|
OCO_OMIT_SCOPE: false,
|
|
50613
|
-
OCO_GITPUSH: true
|
|
51106
|
+
OCO_GITPUSH: true,
|
|
50614
51107
|
// todo: deprecate
|
|
51108
|
+
OCO_HOOK_AUTO_UNCOMMENT: false
|
|
50615
51109
|
};
|
|
50616
51110
|
var initGlobalConfig = (configPath = defaultConfigPath) => {
|
|
50617
51111
|
(0, import_fs.writeFileSync)(configPath, (0, import_ini.stringify)(DEFAULT_CONFIG), "utf8");
|
|
@@ -50812,6 +51306,11 @@ function getConfigKeyDetails(key) {
|
|
|
50812
51306
|
description: "Message template placeholder",
|
|
50813
51307
|
values: ["String (must start with $)"]
|
|
50814
51308
|
};
|
|
51309
|
+
case "OCO_HOOK_AUTO_UNCOMMENT" /* OCO_HOOK_AUTO_UNCOMMENT */:
|
|
51310
|
+
return {
|
|
51311
|
+
description: "Automatically uncomment the commit message in the hook",
|
|
51312
|
+
values: ["true", "false"]
|
|
51313
|
+
};
|
|
50815
51314
|
default:
|
|
50816
51315
|
return {
|
|
50817
51316
|
description: "String value",
|
|
@@ -50874,7 +51373,11 @@ ${key}:`));
|
|
|
50874
51373
|
}
|
|
50875
51374
|
}
|
|
50876
51375
|
}
|
|
50877
|
-
console.log(
|
|
51376
|
+
console.log(
|
|
51377
|
+
source_default.yellow(
|
|
51378
|
+
'\nUse "oco config describe [PARAMETER]" to see accepted values and more details for a specific config parameter.'
|
|
51379
|
+
)
|
|
51380
|
+
);
|
|
50878
51381
|
}
|
|
50879
51382
|
var configCommand = G3(
|
|
50880
51383
|
{
|
|
@@ -52535,9 +53038,9 @@ function debug(action, ...args) {
|
|
|
52535
53038
|
}
|
|
52536
53039
|
}
|
|
52537
53040
|
var uuid4 = () => {
|
|
52538
|
-
return "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g, (
|
|
53041
|
+
return "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g, (c4) => {
|
|
52539
53042
|
const r3 = Math.random() * 16 | 0;
|
|
52540
|
-
const v5 =
|
|
53043
|
+
const v5 = c4 === "x" ? r3 : r3 & 3 | 8;
|
|
52541
53044
|
return v5.toString(16);
|
|
52542
53045
|
});
|
|
52543
53046
|
};
|
|
@@ -56296,8 +56799,8 @@ var CancelToken = class _CancelToken {
|
|
|
56296
56799
|
*/
|
|
56297
56800
|
static source() {
|
|
56298
56801
|
let cancel;
|
|
56299
|
-
const token = new _CancelToken(function executor(
|
|
56300
|
-
cancel =
|
|
56802
|
+
const token = new _CancelToken(function executor(c4) {
|
|
56803
|
+
cancel = c4;
|
|
56301
56804
|
});
|
|
56302
56805
|
return {
|
|
56303
56806
|
token,
|
|
@@ -62547,9 +63050,9 @@ function debug2(action, ...args) {
|
|
|
62547
63050
|
}
|
|
62548
63051
|
}
|
|
62549
63052
|
var uuid42 = () => {
|
|
62550
|
-
return "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g, (
|
|
63053
|
+
return "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g, (c4) => {
|
|
62551
63054
|
const r3 = Math.random() * 16 | 0;
|
|
62552
|
-
const v5 =
|
|
63055
|
+
const v5 = c4 === "x" ? r3 : r3 & 3 | 8;
|
|
62553
63056
|
return v5.toString(16);
|
|
62554
63057
|
});
|
|
62555
63058
|
};
|
|
@@ -63339,7 +63842,7 @@ var AbstractChatCompletionRunner = class extends EventStream {
|
|
|
63339
63842
|
const finalFunctionCallResult = __classPrivateFieldGet10(this, _AbstractChatCompletionRunner_instances, "m", _AbstractChatCompletionRunner_getFinalFunctionCallResult).call(this);
|
|
63340
63843
|
if (finalFunctionCallResult != null)
|
|
63341
63844
|
this._emit("finalFunctionCallResult", finalFunctionCallResult);
|
|
63342
|
-
if (this._chatCompletions.some((
|
|
63845
|
+
if (this._chatCompletions.some((c4) => c4.usage)) {
|
|
63343
63846
|
this._emit("totalUsage", __classPrivateFieldGet10(this, _AbstractChatCompletionRunner_instances, "m", _AbstractChatCompletionRunner_calculateTotalUsage).call(this));
|
|
63344
63847
|
}
|
|
63345
63848
|
}
|
|
@@ -66080,8 +66583,7 @@ var MistralAiEngine = class {
|
|
|
66080
66583
|
if (REQUEST_TOKENS > this.config.maxTokensInput - this.config.maxTokensOutput)
|
|
66081
66584
|
throw new Error("TOO_MUCH_TOKENS" /* tooMuchTokens */);
|
|
66082
66585
|
const completion = await this.client.chat.complete(params);
|
|
66083
|
-
if (!completion.choices)
|
|
66084
|
-
throw Error("No completion choice available.");
|
|
66586
|
+
if (!completion.choices) throw Error("No completion choice available.");
|
|
66085
66587
|
const message = completion.choices[0].message;
|
|
66086
66588
|
if (!message || !message.content)
|
|
66087
66589
|
throw Error("No completion choice available.");
|
|
@@ -66100,7 +66602,10 @@ var MistralAiEngine = class {
|
|
|
66100
66602
|
if (!config7.baseURL) {
|
|
66101
66603
|
this.client = new Mistral({ apiKey: config7.apiKey });
|
|
66102
66604
|
} else {
|
|
66103
|
-
this.client = new Mistral({
|
|
66605
|
+
this.client = new Mistral({
|
|
66606
|
+
apiKey: config7.apiKey,
|
|
66607
|
+
serverURL: config7.baseURL
|
|
66608
|
+
});
|
|
66104
66609
|
}
|
|
66105
66610
|
}
|
|
66106
66611
|
};
|
|
@@ -66182,6 +66687,74 @@ var DeepseekEngine = class extends OpenAiEngine {
|
|
|
66182
66687
|
}
|
|
66183
66688
|
};
|
|
66184
66689
|
|
|
66690
|
+
// src/engine/aimlapi.ts
|
|
66691
|
+
var AimlApiEngine = class {
|
|
66692
|
+
constructor(config7) {
|
|
66693
|
+
this.config = config7;
|
|
66694
|
+
this.generateCommitMessage = async (messages) => {
|
|
66695
|
+
try {
|
|
66696
|
+
const response = await this.client.post("", {
|
|
66697
|
+
model: this.config.model,
|
|
66698
|
+
messages
|
|
66699
|
+
});
|
|
66700
|
+
const message = response.data.choices?.[0]?.message;
|
|
66701
|
+
return message?.content ?? null;
|
|
66702
|
+
} catch (error) {
|
|
66703
|
+
const err = error;
|
|
66704
|
+
if (axios_default.isAxiosError(error) && error.response?.status === 401) {
|
|
66705
|
+
const apiError = error.response.data.error;
|
|
66706
|
+
if (apiError) throw new Error(apiError.message);
|
|
66707
|
+
}
|
|
66708
|
+
throw err;
|
|
66709
|
+
}
|
|
66710
|
+
};
|
|
66711
|
+
this.client = axios_default.create({
|
|
66712
|
+
baseURL: config7.baseURL || "https://api.aimlapi.com/v1/chat/completions",
|
|
66713
|
+
headers: {
|
|
66714
|
+
Authorization: `Bearer ${config7.apiKey}`,
|
|
66715
|
+
"HTTP-Referer": "https://github.com/di-sukharev/opencommit",
|
|
66716
|
+
"X-Title": "opencommit",
|
|
66717
|
+
"Content-Type": "application/json",
|
|
66718
|
+
...config7.customHeaders
|
|
66719
|
+
}
|
|
66720
|
+
});
|
|
66721
|
+
}
|
|
66722
|
+
};
|
|
66723
|
+
|
|
66724
|
+
// src/engine/openrouter.ts
|
|
66725
|
+
var OpenRouterEngine = class {
|
|
66726
|
+
constructor(config7) {
|
|
66727
|
+
this.config = config7;
|
|
66728
|
+
this.generateCommitMessage = async (messages) => {
|
|
66729
|
+
try {
|
|
66730
|
+
const response = await this.client.post("", {
|
|
66731
|
+
model: this.config.model,
|
|
66732
|
+
messages
|
|
66733
|
+
});
|
|
66734
|
+
const message = response.data.choices[0].message;
|
|
66735
|
+
let content = message?.content;
|
|
66736
|
+
return removeContentTags(content, "think");
|
|
66737
|
+
} catch (error) {
|
|
66738
|
+
const err = error;
|
|
66739
|
+
if (axios_default.isAxiosError(error) && error.response?.status === 401) {
|
|
66740
|
+
const openRouterError = error.response.data.error;
|
|
66741
|
+
if (openRouterError) throw new Error(openRouterError.message);
|
|
66742
|
+
}
|
|
66743
|
+
throw err;
|
|
66744
|
+
}
|
|
66745
|
+
};
|
|
66746
|
+
this.client = axios_default.create({
|
|
66747
|
+
baseURL: "https://openrouter.ai/api/v1/chat/completions",
|
|
66748
|
+
headers: {
|
|
66749
|
+
Authorization: `Bearer ${config7.apiKey}`,
|
|
66750
|
+
"HTTP-Referer": "https://github.com/di-sukharev/opencommit",
|
|
66751
|
+
"X-Title": "OpenCommit",
|
|
66752
|
+
"Content-Type": "application/json"
|
|
66753
|
+
}
|
|
66754
|
+
});
|
|
66755
|
+
}
|
|
66756
|
+
};
|
|
66757
|
+
|
|
66185
66758
|
// src/utils/engine.ts
|
|
66186
66759
|
function parseCustomHeaders(headers) {
|
|
66187
66760
|
let parsedHeaders = {};
|
|
@@ -66195,7 +66768,9 @@ function parseCustomHeaders(headers) {
|
|
|
66195
66768
|
parsedHeaders = JSON.parse(headers);
|
|
66196
66769
|
}
|
|
66197
66770
|
} catch (error) {
|
|
66198
|
-
console.warn(
|
|
66771
|
+
console.warn(
|
|
66772
|
+
"Invalid OCO_API_CUSTOM_HEADERS format, ignoring custom headers"
|
|
66773
|
+
);
|
|
66199
66774
|
}
|
|
66200
66775
|
return parsedHeaders;
|
|
66201
66776
|
}
|
|
@@ -66232,6 +66807,10 @@ function getEngine() {
|
|
|
66232
66807
|
return new MLXEngine(DEFAULT_CONFIG2);
|
|
66233
66808
|
case "deepseek" /* DEEPSEEK */:
|
|
66234
66809
|
return new DeepseekEngine(DEFAULT_CONFIG2);
|
|
66810
|
+
case "aimlapi" /* AIMLAPI */:
|
|
66811
|
+
return new AimlApiEngine(DEFAULT_CONFIG2);
|
|
66812
|
+
case "openrouter" /* OPENROUTER */:
|
|
66813
|
+
return new OpenRouterEngine(DEFAULT_CONFIG2);
|
|
66235
66814
|
default:
|
|
66236
66815
|
return new OpenAiEngine(DEFAULT_CONFIG2);
|
|
66237
66816
|
}
|
|
@@ -66743,7 +67322,10 @@ var config5 = getConfig();
|
|
|
66743
67322
|
var MAX_TOKENS_INPUT = config5.OCO_TOKENS_MAX_INPUT;
|
|
66744
67323
|
var MAX_TOKENS_OUTPUT = config5.OCO_TOKENS_MAX_OUTPUT;
|
|
66745
67324
|
var generateCommitMessageChatCompletionPrompt = async (diff, fullGitMojiSpec, context) => {
|
|
66746
|
-
const INIT_MESSAGES_PROMPT = await getMainCommitPrompt(
|
|
67325
|
+
const INIT_MESSAGES_PROMPT = await getMainCommitPrompt(
|
|
67326
|
+
fullGitMojiSpec,
|
|
67327
|
+
context
|
|
67328
|
+
);
|
|
66747
67329
|
const chatContextAsCompletionRequest = [...INIT_MESSAGES_PROMPT];
|
|
66748
67330
|
chatContextAsCompletionRequest.push({
|
|
66749
67331
|
role: "user",
|
|
@@ -66882,6 +67464,7 @@ function delay3(ms) {
|
|
|
66882
67464
|
// src/utils/git.ts
|
|
66883
67465
|
var import_fs3 = require("fs");
|
|
66884
67466
|
var import_ignore = __toESM(require_ignore(), 1);
|
|
67467
|
+
var import_path4 = require("path");
|
|
66885
67468
|
var assertGitRepo = async () => {
|
|
66886
67469
|
try {
|
|
66887
67470
|
await execa("git", ["rev-parse"]);
|
|
@@ -66889,56 +67472,62 @@ var assertGitRepo = async () => {
|
|
|
66889
67472
|
throw new Error(error);
|
|
66890
67473
|
}
|
|
66891
67474
|
};
|
|
66892
|
-
var getOpenCommitIgnore = () => {
|
|
67475
|
+
var getOpenCommitIgnore = async () => {
|
|
67476
|
+
const gitDir = await getGitDir();
|
|
66893
67477
|
const ig = (0, import_ignore.default)();
|
|
66894
67478
|
try {
|
|
66895
|
-
ig.add(
|
|
67479
|
+
ig.add(
|
|
67480
|
+
(0, import_fs3.readFileSync)((0, import_path4.join)(gitDir, ".opencommitignore")).toString().split("\n")
|
|
67481
|
+
);
|
|
66896
67482
|
} catch (e3) {
|
|
66897
67483
|
}
|
|
66898
67484
|
return ig;
|
|
66899
67485
|
};
|
|
66900
67486
|
var getCoreHooksPath = async () => {
|
|
66901
|
-
const
|
|
67487
|
+
const gitDir = await getGitDir();
|
|
67488
|
+
const { stdout } = await execa("git", ["config", "core.hooksPath"], {
|
|
67489
|
+
cwd: gitDir
|
|
67490
|
+
});
|
|
66902
67491
|
return stdout;
|
|
66903
67492
|
};
|
|
66904
67493
|
var getStagedFiles = async () => {
|
|
66905
|
-
const
|
|
66906
|
-
|
|
66907
|
-
"
|
|
66908
|
-
|
|
66909
|
-
|
|
66910
|
-
|
|
66911
|
-
"--name-only",
|
|
66912
|
-
"--cached",
|
|
66913
|
-
"--relative",
|
|
66914
|
-
gitDir
|
|
66915
|
-
]);
|
|
67494
|
+
const gitDir = await getGitDir();
|
|
67495
|
+
const { stdout: files } = await execa(
|
|
67496
|
+
"git",
|
|
67497
|
+
["diff", "--name-only", "--cached", "--relative"],
|
|
67498
|
+
{ cwd: gitDir }
|
|
67499
|
+
);
|
|
66916
67500
|
if (!files) return [];
|
|
66917
67501
|
const filesList = files.split("\n");
|
|
66918
|
-
const ig = getOpenCommitIgnore();
|
|
67502
|
+
const ig = await getOpenCommitIgnore();
|
|
66919
67503
|
const allowedFiles = filesList.filter((file) => !ig.ignores(file));
|
|
66920
67504
|
if (!allowedFiles) return [];
|
|
66921
67505
|
return allowedFiles.sort();
|
|
66922
67506
|
};
|
|
66923
67507
|
var getChangedFiles = async () => {
|
|
66924
|
-
const
|
|
66925
|
-
const { stdout:
|
|
66926
|
-
|
|
66927
|
-
|
|
66928
|
-
|
|
66929
|
-
|
|
67508
|
+
const gitDir = await getGitDir();
|
|
67509
|
+
const { stdout: modified } = await execa("git", ["ls-files", "--modified"], {
|
|
67510
|
+
cwd: gitDir
|
|
67511
|
+
});
|
|
67512
|
+
const { stdout: others } = await execa(
|
|
67513
|
+
"git",
|
|
67514
|
+
["ls-files", "--others", "--exclude-standard"],
|
|
67515
|
+
{ cwd: gitDir }
|
|
67516
|
+
);
|
|
66930
67517
|
const files = [...modified.split("\n"), ...others.split("\n")].filter(
|
|
66931
67518
|
(file) => !!file
|
|
66932
67519
|
);
|
|
66933
67520
|
return files.sort();
|
|
66934
67521
|
};
|
|
66935
67522
|
var gitAdd = async ({ files }) => {
|
|
67523
|
+
const gitDir = await getGitDir();
|
|
66936
67524
|
const gitAddSpinner = le();
|
|
66937
67525
|
gitAddSpinner.start("Adding files to commit");
|
|
66938
|
-
await execa("git", ["add", ...files]);
|
|
67526
|
+
await execa("git", ["add", ...files], { cwd: gitDir });
|
|
66939
67527
|
gitAddSpinner.stop(`Staged ${files.length} files`);
|
|
66940
67528
|
};
|
|
66941
67529
|
var getDiff = async ({ files }) => {
|
|
67530
|
+
const gitDir = await getGitDir();
|
|
66942
67531
|
const lockFiles = files.filter(
|
|
66943
67532
|
(file) => file.includes(".lock") || file.includes("-lock.") || file.includes(".svg") || file.includes(".png") || file.includes(".jpg") || file.includes(".jpeg") || file.includes(".webp") || file.includes(".gif")
|
|
66944
67533
|
);
|
|
@@ -66953,14 +67542,20 @@ ${lockFiles.join(
|
|
|
66953
67542
|
const filesWithoutLocks = files.filter(
|
|
66954
67543
|
(file) => !file.includes(".lock") && !file.includes("-lock.")
|
|
66955
67544
|
);
|
|
66956
|
-
const { stdout: diff } = await execa(
|
|
66957
|
-
"
|
|
66958
|
-
"--staged",
|
|
66959
|
-
|
|
66960
|
-
|
|
66961
|
-
]);
|
|
67545
|
+
const { stdout: diff } = await execa(
|
|
67546
|
+
"git",
|
|
67547
|
+
["diff", "--staged", "--", ...filesWithoutLocks],
|
|
67548
|
+
{ cwd: gitDir }
|
|
67549
|
+
);
|
|
66962
67550
|
return diff;
|
|
66963
67551
|
};
|
|
67552
|
+
var getGitDir = async () => {
|
|
67553
|
+
const { stdout: gitDir } = await execa("git", [
|
|
67554
|
+
"rev-parse",
|
|
67555
|
+
"--show-toplevel"
|
|
67556
|
+
]);
|
|
67557
|
+
return gitDir;
|
|
67558
|
+
};
|
|
66964
67559
|
|
|
66965
67560
|
// src/utils/trytm.ts
|
|
66966
67561
|
var trytm = async (promise) => {
|
|
@@ -67018,11 +67613,23 @@ ${source_default.grey("\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2
|
|
|
67018
67613
|
${commitMessage}
|
|
67019
67614
|
${source_default.grey("\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014")}`
|
|
67020
67615
|
);
|
|
67021
|
-
const
|
|
67022
|
-
message: "Confirm the commit message?"
|
|
67616
|
+
const userAction = skipCommitConfirmation ? "Yes" : await ee({
|
|
67617
|
+
message: "Confirm the commit message?",
|
|
67618
|
+
options: [
|
|
67619
|
+
{ value: "Yes", label: "Yes" },
|
|
67620
|
+
{ value: "No", label: "No" },
|
|
67621
|
+
{ value: "Edit", label: "Edit" }
|
|
67622
|
+
]
|
|
67023
67623
|
});
|
|
67024
|
-
if (hD2(
|
|
67025
|
-
if (
|
|
67624
|
+
if (hD2(userAction)) process.exit(1);
|
|
67625
|
+
if (userAction === "Edit") {
|
|
67626
|
+
const textResponse = await J4({
|
|
67627
|
+
message: "Please edit the commit message: (press Enter to continue)",
|
|
67628
|
+
initialValue: commitMessage
|
|
67629
|
+
});
|
|
67630
|
+
commitMessage = textResponse.toString();
|
|
67631
|
+
}
|
|
67632
|
+
if (userAction === "Yes" || userAction === "Edit") {
|
|
67026
67633
|
const committingChangesSpinner = le();
|
|
67027
67634
|
committingChangesSpinner.start("Committing the changes");
|
|
67028
67635
|
const { stdout } = await execa("git", [
|
|
@@ -67206,13 +67813,13 @@ var commitlintConfigCommand = G3(
|
|
|
67206
67813
|
// src/commands/githook.ts
|
|
67207
67814
|
var import_fs4 = require("fs");
|
|
67208
67815
|
var import_promises3 = __toESM(require("fs/promises"), 1);
|
|
67209
|
-
var
|
|
67816
|
+
var import_path5 = __toESM(require("path"), 1);
|
|
67210
67817
|
var HOOK_NAME = "prepare-commit-msg";
|
|
67211
|
-
var DEFAULT_SYMLINK_URL =
|
|
67818
|
+
var DEFAULT_SYMLINK_URL = import_path5.default.join(".git", "hooks", HOOK_NAME);
|
|
67212
67819
|
var getHooksPath = async () => {
|
|
67213
67820
|
try {
|
|
67214
67821
|
const hooksPath = await getCoreHooksPath();
|
|
67215
|
-
return
|
|
67822
|
+
return import_path5.default.join(hooksPath, HOOK_NAME);
|
|
67216
67823
|
} catch (error) {
|
|
67217
67824
|
return DEFAULT_SYMLINK_URL;
|
|
67218
67825
|
}
|
|
@@ -67252,7 +67859,7 @@ var hookCommand = G3(
|
|
|
67252
67859
|
`Different ${HOOK_NAME} is already set. Remove it before setting opencommit as '${HOOK_NAME}' hook.`
|
|
67253
67860
|
);
|
|
67254
67861
|
}
|
|
67255
|
-
await import_promises3.default.mkdir(
|
|
67862
|
+
await import_promises3.default.mkdir(import_path5.default.dirname(SYMLINK_URL), { recursive: true });
|
|
67256
67863
|
await import_promises3.default.symlink(HOOK_URL, SYMLINK_URL, "file");
|
|
67257
67864
|
await import_promises3.default.chmod(SYMLINK_URL, 493);
|
|
67258
67865
|
return ce(`${source_default.green("\u2714")} Hook set`);
|
|
@@ -67321,10 +67928,18 @@ var prepareCommitMessageHook = async (isStageAllFlag = false) => {
|
|
|
67321
67928
|
);
|
|
67322
67929
|
spin.stop("Done");
|
|
67323
67930
|
const fileContent = await import_promises4.default.readFile(messageFilePath);
|
|
67324
|
-
|
|
67325
|
-
|
|
67326
|
-
|
|
67327
|
-
|
|
67931
|
+
const messageWithComment = `# ${commitMessage}
|
|
67932
|
+
|
|
67933
|
+
# ---------- [OpenCommit] ---------- #
|
|
67934
|
+
# Remove the # above to use this generated commit message.
|
|
67935
|
+
# To cancel the commit, just close this window without making any changes.
|
|
67936
|
+
|
|
67937
|
+
${fileContent.toString()}`;
|
|
67938
|
+
const messageWithoutComment = `${commitMessage}
|
|
67939
|
+
|
|
67940
|
+
${fileContent.toString()}`;
|
|
67941
|
+
const message = config7.OCO_HOOK_AUTO_UNCOMMENT ? messageWithoutComment : messageWithComment;
|
|
67942
|
+
await import_promises4.default.writeFile(messageFilePath, message);
|
|
67328
67943
|
} catch (error) {
|
|
67329
67944
|
ce(`${source_default.red("\u2716")} ${error}`);
|
|
67330
67945
|
process.exit(1);
|
|
@@ -67364,7 +67979,7 @@ Current version: ${currentVersion}. Latest version: ${latestVersion}.
|
|
|
67364
67979
|
// src/migrations/_run.ts
|
|
67365
67980
|
var import_fs5 = __toESM(require("fs"), 1);
|
|
67366
67981
|
var import_os2 = require("os");
|
|
67367
|
-
var
|
|
67982
|
+
var import_path6 = require("path");
|
|
67368
67983
|
|
|
67369
67984
|
// src/migrations/00_use_single_api_key_and_url.ts
|
|
67370
67985
|
function use_single_api_key_and_url_default() {
|
|
@@ -67455,7 +68070,7 @@ var migrations = [
|
|
|
67455
68070
|
];
|
|
67456
68071
|
|
|
67457
68072
|
// src/migrations/_run.ts
|
|
67458
|
-
var migrationsFile = (0,
|
|
68073
|
+
var migrationsFile = (0, import_path6.join)((0, import_os2.homedir)(), ".opencommit_migrations");
|
|
67459
68074
|
var getCompletedMigrations = () => {
|
|
67460
68075
|
if (!import_fs5.default.existsSync(migrationsFile)) {
|
|
67461
68076
|
return [];
|
|
@@ -67475,6 +68090,15 @@ var runMigrations = async () => {
|
|
|
67475
68090
|
if (!getIsGlobalConfigFileExist()) return;
|
|
67476
68091
|
const config7 = getConfig();
|
|
67477
68092
|
if (config7.OCO_AI_PROVIDER === "test" /* TEST */) return;
|
|
68093
|
+
if ([
|
|
68094
|
+
"deepseek" /* DEEPSEEK */,
|
|
68095
|
+
"groq" /* GROQ */,
|
|
68096
|
+
"mistral" /* MISTRAL */,
|
|
68097
|
+
"mlx" /* MLX */,
|
|
68098
|
+
"openrouter" /* OPENROUTER */
|
|
68099
|
+
].includes(config7.OCO_AI_PROVIDER)) {
|
|
68100
|
+
return;
|
|
68101
|
+
}
|
|
67478
68102
|
const completedMigrations = getCompletedMigrations();
|
|
67479
68103
|
let isMigrated = false;
|
|
67480
68104
|
for (const migration of migrations) {
|