@bugbug-io/cli 14.15.1 → 14.17.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.
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]="6d7999fb-fef8-5334-afcb-dbaf0a606051")}catch(e){}}();
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-O5XZVA62.js";
72
+ } from "./chunk-SV7A72JI.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-GWN34GGJ.js");
4570
+ const { startNavigator } = await import("./app-BA5RUZL3.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-GWN34GGJ.js");
4582
+ const { startNavigator } = await import("./app-BA5RUZL3.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=6d7999fb-fef8-5334-afcb-dbaf0a606051
4619
+ //# debugId=805173f1-b23f-5a72-bc7a-b370ef223a66
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bugbug-io/cli",
3
- "version": "14.15.1",
3
+ "version": "14.17.0",
4
4
  "description": "BugBug CLI for test automation, CI workflows, and AI-agent plugin installation",
5
5
  "type": "module",
6
6
  "bin": {