@bugbug-io/cli 14.4.2 → 14.4.3

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-4RFEZBW7.js";
65
+ } from "./chunk-H5R2GMRL.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-6G45ERVL.js.map
11133
+ //# sourceMappingURL=NavigatorApp-UUXFK5JW.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-6G45ERVL.js")
15
+ import("./NavigatorApp-UUXFK5JW.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-MH7KCWNW.js.map
30
+ //# sourceMappingURL=app-MSVLIJL3.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]="ab25891e-91a8-5df9-bc74-dc36230e31d2")}catch(e){}}();
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]="dc8a69a7-6baa-5132-bf11-2057ae61bff0")}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.4.2",
8933
+ version: "14.4.3",
8934
8934
  private: true,
8935
8935
  type: "module",
8936
8936
  main: "dist/index.js",
@@ -47999,12 +47999,15 @@ var initSentry = ({ telemetryEnabled, env }) => {
47999
47999
  logger2.info(`Sentry initialized for ${environment} environment`);
48000
48000
  }
48001
48001
  };
48002
- var captureException2 = (error3, context2) => {
48003
- if (context2) {
48002
+ var captureException2 = (error3, context2, fingerprint) => {
48003
+ if (context2 || fingerprint) {
48004
48004
  withScope2((scope) => {
48005
- Object.entries(context2).forEach(([key, value]) => {
48005
+ Object.entries(context2 ?? {}).forEach(([key, value]) => {
48006
48006
  scope.setTag(key, String(value));
48007
48007
  });
48008
+ if (fingerprint) {
48009
+ scope.setFingerprint(fingerprint);
48010
+ }
48008
48011
  captureException(error3);
48009
48012
  });
48010
48013
  } else {
@@ -58221,7 +58224,7 @@ var readEnvFiles2 = (cwd) => {
58221
58224
  var buildUserAgent2 = (clientType, version) => `BugBug ${clientType.toUpperCase()} ${version}`;
58222
58225
  var package_default2 = {
58223
58226
  name: "@bugbug-io/core",
58224
- version: "14.4.2",
58227
+ version: "14.4.3",
58225
58228
  private: true,
58226
58229
  type: "module",
58227
58230
  main: "dist/index.js",
@@ -58921,6 +58924,8 @@ var BugBugApiClient = class {
58921
58924
  */
58922
58925
  #handleOpenApiError = async (error3, response, request2) => {
58923
58926
  const status = response?.status;
58927
+ const requestId = response?.headers.get("X-Request-Id")?.trim();
58928
+ const requestWithResponseContext = requestId ? { ...request2, requestId } : request2;
58924
58929
  const errorMessage = formatApiErrorMessage(error3);
58925
58930
  const errorBody = parseErrorBody(error3);
58926
58931
  const fields = extractFieldErrors(errorBody);
@@ -58930,33 +58935,37 @@ var BugBugApiClient = class {
58930
58935
  throw new AuthenticationError(
58931
58936
  errorMessage || "Invalid API token or authentication failed",
58932
58937
  response,
58933
- request2
58938
+ requestWithResponseContext
58934
58939
  );
58935
58940
  case 402:
58936
58941
  throw new SubscriptionError(
58937
58942
  errorMessage || "This operation is not available on your current plan. Upgrade your plan to continue.",
58938
58943
  response,
58939
- request2,
58944
+ requestWithResponseContext,
58940
58945
  subscriptionUpgradeUrl
58941
58946
  );
58942
58947
  case 403:
58943
58948
  throw new AuthorizationError(
58944
58949
  errorMessage || "Access denied. Check your permissions.",
58945
58950
  response,
58946
- request2
58951
+ requestWithResponseContext
58947
58952
  );
58948
58953
  case 404:
58949
- throw new NotFoundError(errorMessage || "Resource not found", response, request2);
58954
+ throw new NotFoundError(
58955
+ errorMessage || "Resource not found",
58956
+ response,
58957
+ requestWithResponseContext
58958
+ );
58950
58959
  case 400:
58951
58960
  case 422:
58952
58961
  if (status === 400 && this.#isMissingProjectId(errorMessage, fields)) {
58953
- throw new MissingProjectIdError(void 0, response, request2);
58962
+ throw new MissingProjectIdError(void 0, response, requestWithResponseContext);
58954
58963
  }
58955
58964
  throw new ValidationError(
58956
58965
  errorMessage || "Validation failed. Check your request data.",
58957
58966
  response,
58958
58967
  fields,
58959
- request2
58968
+ requestWithResponseContext
58960
58969
  );
58961
58970
  case 429: {
58962
58971
  const retryAfter = response?.headers.get("Retry-After");
@@ -58965,14 +58974,14 @@ var BugBugApiClient = class {
58965
58974
  retryAfterMs,
58966
58975
  errorMessage || "Rate limit exceeded",
58967
58976
  response,
58968
- request2
58977
+ requestWithResponseContext
58969
58978
  );
58970
58979
  }
58971
58980
  case 500:
58972
58981
  throw new InternalServerError(
58973
58982
  errorMessage || "Internal server error. Please try again later.",
58974
58983
  response,
58975
- request2
58984
+ requestWithResponseContext
58976
58985
  );
58977
58986
  case 502:
58978
58987
  case 503:
@@ -58980,21 +58989,21 @@ var BugBugApiClient = class {
58980
58989
  throw new ServiceUnavailableError(
58981
58990
  errorMessage || "Service temporarily unavailable. Please try again later.",
58982
58991
  response,
58983
- request2
58992
+ requestWithResponseContext
58984
58993
  );
58985
58994
  default:
58986
58995
  if (status === void 0) {
58987
58996
  throw new NetworkError(
58988
58997
  errorMessage || "No response received from BugBug API",
58989
58998
  void 0,
58990
- request2
58999
+ requestWithResponseContext
58991
59000
  );
58992
59001
  }
58993
59002
  throw new HttpError(
58994
59003
  errorMessage || `HTTP ${status}: ${response?.statusText || "Unknown error"}`,
58995
59004
  status,
58996
59005
  response,
58997
- request2
59006
+ requestWithResponseContext
58998
59007
  );
58999
59008
  }
59000
59009
  };
@@ -63734,7 +63743,7 @@ var STEP_ERROR_CODES = [
63734
63743
  ];
63735
63744
  var WaitingConditionSchema = external_exports.object({
63736
63745
  type: WaitingConditionTypeSchema,
63737
- expected: external_exports.string().nullable().describe("Expected value for the waiting condition, if any.")
63746
+ expected: external_exports.string().nullable().optional().default(null).describe("Expected value for the waiting condition, if any.")
63738
63747
  }).passthrough();
63739
63748
  var StepErrorCodeSchema = external_exports.enum(STEP_ERROR_CODES);
63740
63749
  var StepSourceSchema = external_exports.enum(["api", "agent"]).describe("Creation source for public API step writes.");
@@ -64901,5 +64910,5 @@ export {
64901
64910
  formatErrorMessage,
64902
64911
  showError
64903
64912
  };
64904
- //# sourceMappingURL=chunk-4RFEZBW7.js.map
64905
- //# debugId=ab25891e-91a8-5df9-bc74-dc36230e31d2
64913
+ //# sourceMappingURL=chunk-H5R2GMRL.js.map
64914
+ //# debugId=dc8a69a7-6baa-5132-bf11-2057ae61bff0
package/dist/index.js CHANGED
@@ -55,7 +55,7 @@ import {
55
55
  waitForSuiteRun,
56
56
  waitForTestRun,
57
57
  writeReportXml
58
- } from "./chunk-4RFEZBW7.js";
58
+ } from "./chunk-H5R2GMRL.js";
59
59
  import "./chunk-XLIBEETK.js";
60
60
  import "./chunk-3PJ4ZE2N.js";
61
61
  import {
@@ -4236,7 +4236,7 @@ program2.exitOverride();
4236
4236
  });
4237
4237
  analytics.trackEvent("cli_session_started");
4238
4238
  if (startupMode.type === "commandline" && await shouldRedirectUnauthenticatedCommandToInit(process.argv, hasUsableSession)) {
4239
- const { startNavigator } = await import("./app-MH7KCWNW.js");
4239
+ const { startNavigator } = await import("./app-MSVLIJL3.js");
4240
4240
  await startNavigator({
4241
4241
  initialRoute: "/init",
4242
4242
  initialRouteState: {
@@ -4248,7 +4248,7 @@ program2.exitOverride();
4248
4248
  return;
4249
4249
  }
4250
4250
  if (startupMode.type === "navigator") {
4251
- const { startNavigator } = await import("./app-MH7KCWNW.js");
4251
+ const { startNavigator } = await import("./app-MSVLIJL3.js");
4252
4252
  await startNavigator({
4253
4253
  initialRoute: startupMode.route,
4254
4254
  token: config.token,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bugbug-io/cli",
3
- "version": "14.4.2",
3
+ "version": "14.4.3",
4
4
  "description": "BugBug CLI for test automation, CI workflows, and AI-agent plugin installation",
5
5
  "type": "module",
6
6
  "bin": {
@@ -57,6 +57,7 @@
57
57
  "tsx": "^4.19.3"
58
58
  },
59
59
  "engines": {
60
- "node": ">=24"
60
+ "node": ">=24",
61
+ "npm": ">=11"
61
62
  }
62
63
  }