@bugbug-io/cli 14.15.0 → 14.16.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-VJEFXB2W.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-MEWI3DH7.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-MEWI3DH7.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-5HJPOPND.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]="c3820a7c-e9e3-5320-a995-7dc91dc6e07f")}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.16.0",
|
|
8934
8934
|
private: true,
|
|
8935
8935
|
type: "module",
|
|
8936
8936
|
main: "dist/index.js",
|
|
@@ -48458,6 +48458,11 @@ var exitWith = (code) => {
|
|
|
48458
48458
|
}
|
|
48459
48459
|
return void 0;
|
|
48460
48460
|
};
|
|
48461
|
+
var isBrokenPipeError = (error3) => error3 instanceof Error && error3.code === "EPIPE";
|
|
48462
|
+
var exitOnBrokenPipe = (error3) => {
|
|
48463
|
+
if (!isBrokenPipeError(error3)) throw error3;
|
|
48464
|
+
exitWith(EXIT_OK);
|
|
48465
|
+
};
|
|
48461
48466
|
|
|
48462
48467
|
// ../sdk/dist/index.js
|
|
48463
48468
|
import { createRequire as createRequire2 } from "module";
|
|
@@ -57116,7 +57121,8 @@ var InternalServerError = class extends BugBugError {
|
|
|
57116
57121
|
}
|
|
57117
57122
|
};
|
|
57118
57123
|
var ServiceUnavailableError = class extends BugBugError {
|
|
57119
|
-
|
|
57124
|
+
retryAfter;
|
|
57125
|
+
constructor(message = "Service temporarily unavailable", response, request2, retryAfter) {
|
|
57120
57126
|
super(
|
|
57121
57127
|
SDK_ERROR_CODES.SERVICE_UNAVAILABLE,
|
|
57122
57128
|
message,
|
|
@@ -57126,6 +57132,7 @@ var ServiceUnavailableError = class extends BugBugError {
|
|
|
57126
57132
|
request2
|
|
57127
57133
|
);
|
|
57128
57134
|
this.name = "ServiceUnavailableError";
|
|
57135
|
+
this.retryAfter = retryAfter;
|
|
57129
57136
|
}
|
|
57130
57137
|
};
|
|
57131
57138
|
var UnexpectedResponseError = class extends BugBugError {
|
|
@@ -58536,7 +58543,7 @@ var readEnvFiles2 = (cwd) => {
|
|
|
58536
58543
|
var buildUserAgent2 = (clientType, version) => `BugBug ${clientType.toUpperCase()} ${version}`;
|
|
58537
58544
|
var package_default2 = {
|
|
58538
58545
|
name: "@bugbug-io/core",
|
|
58539
|
-
version: "14.
|
|
58546
|
+
version: "14.16.0",
|
|
58540
58547
|
private: true,
|
|
58541
58548
|
type: "module",
|
|
58542
58549
|
main: "dist/index.js",
|
|
@@ -59065,6 +59072,14 @@ function parseJsonOrText(text) {
|
|
|
59065
59072
|
return text;
|
|
59066
59073
|
}
|
|
59067
59074
|
}
|
|
59075
|
+
function parseRetryAfterMs(header, now2 = Date.now()) {
|
|
59076
|
+
const value = header?.trim();
|
|
59077
|
+
if (!value) return void 0;
|
|
59078
|
+
if (/^\d+$/.test(value)) return parseInt(value, 10) * 1e3;
|
|
59079
|
+
const date = Date.parse(value);
|
|
59080
|
+
if (Number.isNaN(date)) return void 0;
|
|
59081
|
+
return Math.max(0, date - now2);
|
|
59082
|
+
}
|
|
59068
59083
|
var BugBugApiClient = class {
|
|
59069
59084
|
#config;
|
|
59070
59085
|
#client;
|
|
@@ -59306,10 +59321,8 @@ var BugBugApiClient = class {
|
|
|
59306
59321
|
requestWithResponseContext
|
|
59307
59322
|
);
|
|
59308
59323
|
case 429: {
|
|
59309
|
-
const retryAfter = response?.headers.get("Retry-After");
|
|
59310
|
-
const retryAfterMs = retryAfter ? parseInt(retryAfter) * 1e3 : void 0;
|
|
59311
59324
|
throw new RateLimitError(
|
|
59312
|
-
|
|
59325
|
+
parseRetryAfterMs(response?.headers.get("Retry-After")),
|
|
59313
59326
|
errorMessage || "Rate limit exceeded",
|
|
59314
59327
|
response,
|
|
59315
59328
|
requestWithResponseContext
|
|
@@ -59327,7 +59340,8 @@ var BugBugApiClient = class {
|
|
|
59327
59340
|
throw new ServiceUnavailableError(
|
|
59328
59341
|
errorMessage || "Service temporarily unavailable. Please try again later.",
|
|
59329
59342
|
response,
|
|
59330
|
-
requestWithResponseContext
|
|
59343
|
+
requestWithResponseContext,
|
|
59344
|
+
parseRetryAfterMs(response?.headers.get("Retry-After"))
|
|
59331
59345
|
);
|
|
59332
59346
|
default:
|
|
59333
59347
|
if (status === void 0) {
|
|
@@ -63880,7 +63894,7 @@ var coerce = {
|
|
|
63880
63894
|
var NEVER = INVALID;
|
|
63881
63895
|
var UuidSchema = external_exports.string().min(1).describe("UUID");
|
|
63882
63896
|
var DateTimeSchema = external_exports.string().describe("ISO 8601 date-time string");
|
|
63883
|
-
var CursorSchema = external_exports.string().describe("Opaque cursor
|
|
63897
|
+
var CursorSchema = external_exports.string().describe("Opaque cursor for the next page: pass the `next_token` value from the previous response. There is no page number parameter.");
|
|
63884
63898
|
var PageSizeSchema = external_exports.number().int().min(1).max(100).describe("Number of results per page.");
|
|
63885
63899
|
var StepTimingSecondsSchema = external_exports.number().min(0).max(300).nullable().optional();
|
|
63886
63900
|
var DEBUG_ARTIFACT_TYPES = [
|
|
@@ -64153,6 +64167,7 @@ var AssertStepSchema = StepBaseSchema.extend({
|
|
|
64153
64167
|
selectorsPresets: external_exports.array(SelectorsPresetSchema).describe("Target selectors used by the element-related assertion."),
|
|
64154
64168
|
assertionProperty: AssertionPropertySchema.describe("Assertion property to inspect, for example text or value."),
|
|
64155
64169
|
assertionType: AssertionTypeSchema.describe("Assertion operator used by BugBug."),
|
|
64170
|
+
assertionCaseInsensitive: external_exports.boolean().nullable().optional().describe("Ignore letter case in text comparisons. Null uses legacy behavior; omitted updates keep the current setting."),
|
|
64156
64171
|
assertionExpectedValue: external_exports.string().nullable().describe("Expected assertion value when applicable."),
|
|
64157
64172
|
assertionJavaScript: external_exports.string().nullable().describe("Custom JavaScript used by script-based assertions."),
|
|
64158
64173
|
assertionVariableName: external_exports.string().nullable().describe("Variable name used by variable-based assertions.")
|
|
@@ -64290,6 +64305,7 @@ var IfConditionStepSchema = StepBaseSchema.extend({
|
|
|
64290
64305
|
selectorsPresets: external_exports.array(SelectorsPresetSchema).optional().describe("Target selectors used to locate the element for the condition."),
|
|
64291
64306
|
assertionProperty: AssertionPropertySchema.describe("Assertion property to inspect for the branch condition."),
|
|
64292
64307
|
assertionType: AssertionTypeSchema.describe("Assertion operator used to evaluate the branch condition."),
|
|
64308
|
+
assertionCaseInsensitive: external_exports.boolean().nullable().optional().describe("Ignore letter case in text comparisons. Null uses legacy behavior; omitted updates keep the current setting."),
|
|
64293
64309
|
assertionExpectedValue: external_exports.string().nullable().describe("Expected assertion value when applicable."),
|
|
64294
64310
|
assertionJavaScript: external_exports.string().nullable().describe("Custom JavaScript used by script-based conditions."),
|
|
64295
64311
|
assertionVariableName: external_exports.string().nullable().describe("Variable name used by variable-based conditions.")
|
|
@@ -65212,11 +65228,14 @@ export {
|
|
|
65212
65228
|
resolveOutputMode,
|
|
65213
65229
|
isCiMode,
|
|
65214
65230
|
analytics,
|
|
65231
|
+
EXIT_OK,
|
|
65215
65232
|
EXIT_GENERAL_ERROR,
|
|
65216
65233
|
EXIT_USAGE_ERROR,
|
|
65217
65234
|
exitCodeForStatus,
|
|
65218
65235
|
emitError,
|
|
65219
65236
|
exitWith,
|
|
65237
|
+
isBrokenPipeError,
|
|
65238
|
+
exitOnBrokenPipe,
|
|
65220
65239
|
isAuthenticationError,
|
|
65221
65240
|
isAuthorizationError,
|
|
65222
65241
|
isRunningStatus,
|
|
@@ -65283,5 +65302,5 @@ export {
|
|
|
65283
65302
|
formatErrorMessage,
|
|
65284
65303
|
showError
|
|
65285
65304
|
};
|
|
65286
|
-
//# sourceMappingURL=chunk-
|
|
65287
|
-
//# debugId=
|
|
65305
|
+
//# sourceMappingURL=chunk-VJEFXB2W.js.map
|
|
65306
|
+
//# debugId=c3820a7c-e9e3-5320-a995-7dc91dc6e07f
|
package/dist/index.js
CHANGED
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
|
|
3
|
-
!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]="
|
|
3
|
+
!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]="805173f1-b23f-5a72-bc7a-b370ef223a66")}catch(e){}}();
|
|
4
4
|
import { createRequire as __nodeCreateRequire } from 'node:module';
|
|
5
5
|
const require = __nodeCreateRequire(import.meta.url);
|
|
6
6
|
import {
|
|
7
7
|
DEFAULT_MCP_ACCESS_URL,
|
|
8
8
|
EXIT_GENERAL_ERROR,
|
|
9
|
+
EXIT_OK,
|
|
9
10
|
EXIT_USAGE_ERROR,
|
|
10
11
|
PLUGIN_PACKAGE_NAME,
|
|
11
12
|
PLUGIN_REPO_SOURCE,
|
|
@@ -17,6 +18,7 @@ import {
|
|
|
17
18
|
detectFormat,
|
|
18
19
|
emitError,
|
|
19
20
|
exitCodeForStatus,
|
|
21
|
+
exitOnBrokenPipe,
|
|
20
22
|
exitWith,
|
|
21
23
|
exportProject,
|
|
22
24
|
exportTest,
|
|
@@ -39,6 +41,7 @@ import {
|
|
|
39
41
|
importTest,
|
|
40
42
|
initProject,
|
|
41
43
|
initSentry,
|
|
44
|
+
isBrokenPipeError,
|
|
42
45
|
isCiMode,
|
|
43
46
|
isCompletedStatus,
|
|
44
47
|
listProfiles,
|
|
@@ -66,7 +69,7 @@ import {
|
|
|
66
69
|
waitForSuiteRun,
|
|
67
70
|
waitForTestRun,
|
|
68
71
|
writeReportXml
|
|
69
|
-
} from "./chunk-
|
|
72
|
+
} from "./chunk-VJEFXB2W.js";
|
|
70
73
|
import "./chunk-XLIBEETK.js";
|
|
71
74
|
import "./chunk-3PJ4ZE2N.js";
|
|
72
75
|
import {
|
|
@@ -4514,11 +4517,14 @@ var isExitingAfterFatalError = false;
|
|
|
4514
4517
|
var handleFatalError = async (error) => {
|
|
4515
4518
|
if (isExitingAfterFatalError) return;
|
|
4516
4519
|
isExitingAfterFatalError = true;
|
|
4520
|
+
if (isBrokenPipeError(error)) exitWith(EXIT_OK);
|
|
4517
4521
|
captureException(error);
|
|
4518
4522
|
await closeSentry();
|
|
4519
4523
|
showError(formatErrorMessage(error));
|
|
4520
4524
|
exitWith(EXIT_GENERAL_ERROR);
|
|
4521
4525
|
};
|
|
4526
|
+
process.stdout.on("error", exitOnBrokenPipe);
|
|
4527
|
+
process.stderr.on("error", exitOnBrokenPipe);
|
|
4522
4528
|
process.on("uncaughtException", handleFatalError);
|
|
4523
4529
|
process.on("unhandledRejection", handleFatalError);
|
|
4524
4530
|
var version = getVersion();
|
|
@@ -4561,7 +4567,7 @@ program2.exitOverride();
|
|
|
4561
4567
|
});
|
|
4562
4568
|
analytics.trackEvent("cli_session_started");
|
|
4563
4569
|
if (startupMode.type === "commandline" && await shouldRedirectUnauthenticatedCommandToInit(process.argv, hasUsableSession)) {
|
|
4564
|
-
const { startNavigator } = await import("./app-
|
|
4570
|
+
const { startNavigator } = await import("./app-5HJPOPND.js");
|
|
4565
4571
|
await startNavigator({
|
|
4566
4572
|
initialRoute: "/init",
|
|
4567
4573
|
initialRouteState: {
|
|
@@ -4573,7 +4579,7 @@ program2.exitOverride();
|
|
|
4573
4579
|
return;
|
|
4574
4580
|
}
|
|
4575
4581
|
if (startupMode.type === "navigator") {
|
|
4576
|
-
const { startNavigator } = await import("./app-
|
|
4582
|
+
const { startNavigator } = await import("./app-5HJPOPND.js");
|
|
4577
4583
|
await startNavigator({
|
|
4578
4584
|
initialRoute: startupMode.route,
|
|
4579
4585
|
token: config.token,
|
|
@@ -4610,4 +4616,4 @@ program2.exitOverride();
|
|
|
4610
4616
|
}
|
|
4611
4617
|
})();
|
|
4612
4618
|
//# sourceMappingURL=index.js.map
|
|
4613
|
-
//# debugId=
|
|
4619
|
+
//# debugId=805173f1-b23f-5a72-bc7a-b370ef223a66
|