@bugbug-io/cli 14.19.0 → 14.20.0
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.
|
@@ -62,7 +62,7 @@ import {
|
|
|
62
62
|
waitForSuiteRun,
|
|
63
63
|
waitForTestRun,
|
|
64
64
|
writeReportXml
|
|
65
|
-
} from "./chunk-
|
|
65
|
+
} from "./chunk-2NG2AJDW.js";
|
|
66
66
|
import "./chunk-XLIBEETK.js";
|
|
67
67
|
import "./chunk-3PJ4ZE2N.js";
|
|
68
68
|
import {
|
|
@@ -11130,5 +11130,5 @@ react-router/dist/development/index.mjs:
|
|
|
11130
11130
|
* @license MIT
|
|
11131
11131
|
*)
|
|
11132
11132
|
*/
|
|
11133
|
-
//# sourceMappingURL=NavigatorApp-
|
|
11133
|
+
//# sourceMappingURL=NavigatorApp-57YO534Y.js.map
|
|
11134
11134
|
//# debugId=9e90a61c-d567-5034-bd9e-55c33ff018a1
|
|
@@ -12,7 +12,7 @@ var startNavigator = async (opts = {}) => {
|
|
|
12
12
|
const [{ render }, React, { NavigatorApp }] = await Promise.all([
|
|
13
13
|
import("./render-CSMURV5U.js"),
|
|
14
14
|
importReact(),
|
|
15
|
-
import("./NavigatorApp-
|
|
15
|
+
import("./NavigatorApp-57YO534Y.js")
|
|
16
16
|
]);
|
|
17
17
|
const element = React.createElement(
|
|
18
18
|
NavigatorApp,
|
|
@@ -27,5 +27,5 @@ var startNavigator = async (opts = {}) => {
|
|
|
27
27
|
export {
|
|
28
28
|
startNavigator
|
|
29
29
|
};
|
|
30
|
-
//# sourceMappingURL=app-
|
|
30
|
+
//# sourceMappingURL=app-NW7B3SZ6.js.map
|
|
31
31
|
//# debugId=cecc8c80-302a-54e0-a1fb-74d6bb70c0a1
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
|
|
2
|
-
!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="
|
|
2
|
+
!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="c36e5cd0-6e21-5666-878a-28f96150ca6f")}catch(e){}}();
|
|
3
3
|
import { createRequire as __nodeCreateRequire } from 'node:module';
|
|
4
4
|
const require = __nodeCreateRequire(import.meta.url);
|
|
5
5
|
import {
|
|
@@ -8930,7 +8930,7 @@ var require_main = __commonJS({
|
|
|
8930
8930
|
// ../core/package.json
|
|
8931
8931
|
var package_default = {
|
|
8932
8932
|
name: "@bugbug-io/core",
|
|
8933
|
-
version: "14.
|
|
8933
|
+
version: "14.20.0",
|
|
8934
8934
|
private: true,
|
|
8935
8935
|
type: "module",
|
|
8936
8936
|
main: "dist/index.js",
|
|
@@ -57059,7 +57059,8 @@ var NotFoundError = class extends BugBugError {
|
|
|
57059
57059
|
};
|
|
57060
57060
|
var RateLimitError = class extends BugBugError {
|
|
57061
57061
|
retryAfter;
|
|
57062
|
-
|
|
57062
|
+
throttled;
|
|
57063
|
+
constructor(retryAfter, message = "Rate limit exceeded", response, request2, throttled = false) {
|
|
57063
57064
|
super(
|
|
57064
57065
|
SDK_ERROR_CODES.RATE_LIMIT_ERROR,
|
|
57065
57066
|
message,
|
|
@@ -57070,6 +57071,7 @@ var RateLimitError = class extends BugBugError {
|
|
|
57070
57071
|
);
|
|
57071
57072
|
this.name = "RateLimitError";
|
|
57072
57073
|
this.retryAfter = retryAfter;
|
|
57074
|
+
this.throttled = throttled;
|
|
57073
57075
|
}
|
|
57074
57076
|
};
|
|
57075
57077
|
var TimeoutError = class extends BugBugError {
|
|
@@ -78728,7 +78730,7 @@ var readEnvFiles2 = (cwd) => {
|
|
|
78728
78730
|
var buildUserAgent2 = (clientType, version2) => `BugBug ${clientType.toUpperCase()} ${version2}`;
|
|
78729
78731
|
var package_default2 = {
|
|
78730
78732
|
name: "@bugbug-io/core",
|
|
78731
|
-
version: "14.
|
|
78733
|
+
version: "14.20.0",
|
|
78732
78734
|
private: true,
|
|
78733
78735
|
type: "module",
|
|
78734
78736
|
main: "dist/index.js",
|
|
@@ -79002,6 +79004,7 @@ var RateLimiter = class {
|
|
|
79002
79004
|
*/
|
|
79003
79005
|
async execute(fn, options = {}) {
|
|
79004
79006
|
const retryServer429 = options.retryServer429 ?? this.#config.retryServer429;
|
|
79007
|
+
const retryThrottled = options.retryThrottled ?? false;
|
|
79005
79008
|
let lastError = null;
|
|
79006
79009
|
await this.#acquireSlot();
|
|
79007
79010
|
try {
|
|
@@ -79028,7 +79031,7 @@ var RateLimiter = class {
|
|
|
79028
79031
|
throw fnError;
|
|
79029
79032
|
}
|
|
79030
79033
|
lastError = fnError;
|
|
79031
|
-
if (!retryServer429) {
|
|
79034
|
+
if (!retryServer429 && !(retryThrottled && fnError.throttled)) {
|
|
79032
79035
|
throw fnError;
|
|
79033
79036
|
}
|
|
79034
79037
|
if (attempt === this.#config.exponentialBackoff.maxRetries) {
|
|
@@ -79228,6 +79231,12 @@ function extractSubscriptionUpgradeUrl(body) {
|
|
|
79228
79231
|
}
|
|
79229
79232
|
return void 0;
|
|
79230
79233
|
}
|
|
79234
|
+
function isThrottledErrorBody(body) {
|
|
79235
|
+
const errorDetails = Array.isArray(body) ? body : [body];
|
|
79236
|
+
return errorDetails.some(
|
|
79237
|
+
(errorDetail) => Boolean(errorDetail) && typeof errorDetail === "object" && errorDetail.code === "throttled"
|
|
79238
|
+
);
|
|
79239
|
+
}
|
|
79231
79240
|
function formatApiErrorValue(value, path3 = "") {
|
|
79232
79241
|
if (typeof value === "string") return value;
|
|
79233
79242
|
if (typeof value === "number" || typeof value === "boolean") return String(value);
|
|
@@ -79453,7 +79462,10 @@ var BugBugApiClient = class {
|
|
|
79453
79462
|
throw this.#toTransportError(error62, requestOrigin, abortContext);
|
|
79454
79463
|
}
|
|
79455
79464
|
},
|
|
79456
|
-
{
|
|
79465
|
+
{
|
|
79466
|
+
retryServer429: this.#canRetryServer429(method),
|
|
79467
|
+
retryThrottled: this.#config.rateLimit.retryServer429 !== false
|
|
79468
|
+
}
|
|
79457
79469
|
);
|
|
79458
79470
|
};
|
|
79459
79471
|
/**
|
|
@@ -79510,7 +79522,8 @@ var BugBugApiClient = class {
|
|
|
79510
79522
|
parseRetryAfterMs(response?.headers.get("Retry-After")),
|
|
79511
79523
|
errorMessage || "Rate limit exceeded",
|
|
79512
79524
|
response,
|
|
79513
|
-
requestWithResponseContext
|
|
79525
|
+
requestWithResponseContext,
|
|
79526
|
+
isThrottledErrorBody(errorBody)
|
|
79514
79527
|
);
|
|
79515
79528
|
}
|
|
79516
79529
|
case 500:
|
|
@@ -79803,7 +79816,10 @@ var BugBugApiClient = class {
|
|
|
79803
79816
|
throw this.#toTransportError(error62, requestOrigin, abortContext);
|
|
79804
79817
|
}
|
|
79805
79818
|
},
|
|
79806
|
-
{
|
|
79819
|
+
{
|
|
79820
|
+
retryServer429: this.#canRetryServer429(method),
|
|
79821
|
+
retryThrottled: this.#config.rateLimit.retryServer429 !== false
|
|
79822
|
+
}
|
|
79807
79823
|
);
|
|
79808
79824
|
};
|
|
79809
79825
|
#canRetryServer429 = (method) => method === "GET" && this.#config.rateLimit.retryServer429 !== false;
|
|
@@ -80861,5 +80877,5 @@ export {
|
|
|
80861
80877
|
formatErrorMessage,
|
|
80862
80878
|
showError
|
|
80863
80879
|
};
|
|
80864
|
-
//# sourceMappingURL=chunk-
|
|
80865
|
-
//# debugId=
|
|
80880
|
+
//# sourceMappingURL=chunk-2NG2AJDW.js.map
|
|
80881
|
+
//# debugId=c36e5cd0-6e21-5666-878a-28f96150ca6f
|
package/dist/index.js
CHANGED
|
@@ -69,7 +69,7 @@ import {
|
|
|
69
69
|
waitForSuiteRun,
|
|
70
70
|
waitForTestRun,
|
|
71
71
|
writeReportXml
|
|
72
|
-
} from "./chunk-
|
|
72
|
+
} from "./chunk-2NG2AJDW.js";
|
|
73
73
|
import "./chunk-XLIBEETK.js";
|
|
74
74
|
import "./chunk-3PJ4ZE2N.js";
|
|
75
75
|
import {
|
|
@@ -4567,7 +4567,7 @@ program2.exitOverride();
|
|
|
4567
4567
|
});
|
|
4568
4568
|
analytics.trackEvent("cli_session_started");
|
|
4569
4569
|
if (startupMode.type === "commandline" && await shouldRedirectUnauthenticatedCommandToInit(process.argv, hasUsableSession)) {
|
|
4570
|
-
const { startNavigator } = await import("./app-
|
|
4570
|
+
const { startNavigator } = await import("./app-NW7B3SZ6.js");
|
|
4571
4571
|
await startNavigator({
|
|
4572
4572
|
initialRoute: "/init",
|
|
4573
4573
|
initialRouteState: {
|
|
@@ -4579,7 +4579,7 @@ program2.exitOverride();
|
|
|
4579
4579
|
return;
|
|
4580
4580
|
}
|
|
4581
4581
|
if (startupMode.type === "navigator") {
|
|
4582
|
-
const { startNavigator } = await import("./app-
|
|
4582
|
+
const { startNavigator } = await import("./app-NW7B3SZ6.js");
|
|
4583
4583
|
await startNavigator({
|
|
4584
4584
|
initialRoute: startupMode.route,
|
|
4585
4585
|
token: config.token,
|