@bugbug-io/cli 14.1.0 → 14.2.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.
@@ -1,3 +1,5 @@
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]="20137d86-cd7e-5ca0-8a8c-3b405154dfa8")}catch(e){}}();
1
3
  import {
2
4
  analytics,
3
5
  defaultJunitReportPath,
@@ -47,7 +49,7 @@ import {
47
49
  waitForSuiteRun,
48
50
  waitForTestRun,
49
51
  writeReportXml
50
- } from "./chunk-RW5JOZ3C.js";
52
+ } from "./chunk-N4JWEUEM.js";
51
53
  import "./chunk-BSHFIPEX.js";
52
54
  import "./chunk-PR4QN5HX.js";
53
55
 
@@ -3298,4 +3300,5 @@ var NavigatorApp = ({ initialRoute, initialRouteState }) => {
3298
3300
  export {
3299
3301
  NavigatorApp
3300
3302
  };
3301
- //# sourceMappingURL=NavigatorApp-SIKHI5JP.js.map
3303
+ //# sourceMappingURL=NavigatorApp-AWU642JT.js.map
3304
+ //# debugId=20137d86-cd7e-5ca0-8a8c-3b405154dfa8
@@ -1,3 +1,5 @@
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]="166c0fb0-dc65-55ca-81bb-2a3f2825a599")}catch(e){}}();
1
3
  import "./chunk-PR4QN5HX.js";
2
4
 
3
5
  // src/app/index.ts
@@ -5,7 +7,7 @@ var startNavigator = async (opts = {}) => {
5
7
  const [{ render }, React, { NavigatorApp }] = await Promise.all([
6
8
  import("./render-U36YSDSA.js"),
7
9
  import("react"),
8
- import("./NavigatorApp-SIKHI5JP.js")
10
+ import("./NavigatorApp-AWU642JT.js")
9
11
  ]);
10
12
  const element = React.createElement(
11
13
  NavigatorApp,
@@ -20,4 +22,5 @@ var startNavigator = async (opts = {}) => {
20
22
  export {
21
23
  startNavigator
22
24
  };
23
- //# sourceMappingURL=app-GQK4SIGI.js.map
25
+ //# sourceMappingURL=app-E2CW7E45.js.map
26
+ //# debugId=166c0fb0-dc65-55ca-81bb-2a3f2825a599
@@ -1,4 +1,6 @@
1
1
  // ../../node_modules/@opentelemetry/api/build/esm/version.js
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]="e3ca4ad7-0fab-50f2-9d2a-3250d4ccc50d")}catch(e){}}();
2
4
  var VERSION = "1.9.1";
3
5
 
4
6
  // ../../node_modules/@opentelemetry/api/build/esm/internal/semver.js
@@ -1089,4 +1091,5 @@ export {
1089
1091
  propagation,
1090
1092
  trace
1091
1093
  };
1092
- //# sourceMappingURL=chunk-BSHFIPEX.js.map
1094
+ //# sourceMappingURL=chunk-BSHFIPEX.js.map
1095
+ //# debugId=e3ca4ad7-0fab-50f2-9d2a-3250d4ccc50d
@@ -1,3 +1,5 @@
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]="b3f2bc19-5442-5cdf-bb03-5061c12bb717")}catch(e){}}();
1
3
  import {
2
4
  DiagLogLevel,
3
5
  INVALID_SPAN_CONTEXT,
@@ -8923,7 +8925,7 @@ var require_main = __commonJS({
8923
8925
  // ../core/package.json
8924
8926
  var package_default = {
8925
8927
  name: "@bugbug-io/core",
8926
- version: "14.1.0",
8928
+ version: "14.2.0",
8927
8929
  private: true,
8928
8930
  type: "module",
8929
8931
  main: "dist/index.js",
@@ -32718,7 +32720,7 @@ function getClientOptions(options, getDefaultIntegrationsImpl) {
32718
32720
  const tracesSampleRate = getTracesSampleRate(options.tracesSampleRate);
32719
32721
  const mergedOptions = {
32720
32722
  ...options,
32721
- dsn: options.dsn ?? process.env.SENTRY_DSN,
32723
+ dsn: options.dsn ?? "https://c850ce209b19d8558600d0ecbb5a160f@sentry.bugbug.io/52",
32722
32724
  environment: options.environment ?? process.env.SENTRY_ENVIRONMENT,
32723
32725
  sendClientReports: options.sendClientReports ?? true,
32724
32726
  transport: options.transport ?? makeNodeTransport,
@@ -47988,7 +47990,9 @@ var initSentry = ({ telemetryEnabled, env }) => {
47988
47990
  consoleLoggingIntegration({ levels: ["error"] })
47989
47991
  ]
47990
47992
  });
47991
- logger2.info(`Sentry initialized for ${environment} environment`);
47993
+ if (env.LOG_LEVEL === "debug") {
47994
+ logger2.info(`Sentry initialized for ${environment} environment`);
47995
+ }
47992
47996
  };
47993
47997
  var captureException2 = (error3, context2) => {
47994
47998
  if (context2) {
@@ -48219,7 +48223,7 @@ var resolveEnvConfig = (opts = {}) => {
48219
48223
  projectId,
48220
48224
  verbose: overrides.verbose ?? logLevel === "debug",
48221
48225
  nodeEnv: process.env.NODE_ENV ?? envFile.nodeEnv,
48222
- sentryDsn: process.env.SENTRY_DSN ?? envFile.sentryDsn
48226
+ sentryDsn: "https://c850ce209b19d8558600d0ecbb5a160f@sentry.bugbug.io/52"
48223
48227
  };
48224
48228
  };
48225
48229
  var readEnvFiles = (cwd) => {
@@ -56706,6 +56710,7 @@ var isUuid = (value) => UUID_REGEX.test(value);
56706
56710
  var SDK_ERROR_CODES = {
56707
56711
  AUTHENTICATION_ERROR: "AUTHENTICATION_ERROR",
56708
56712
  AUTHORIZATION_ERROR: "AUTHORIZATION_ERROR",
56713
+ SUBSCRIPTION_ERROR: "SUBSCRIPTION_ERROR",
56709
56714
  VALIDATION_ERROR: "VALIDATION_ERROR",
56710
56715
  CONFIGURATION_ERROR: "CONFIGURATION_ERROR",
56711
56716
  MISSING_PROJECT_ID_ERROR: "MISSING_PROJECT_ID_ERROR",
@@ -56724,6 +56729,7 @@ var STATUS_CLIENT_TIMEOUT = 408;
56724
56729
  var STATUS_CLIENT_CANCELLED = 499;
56725
56730
  var HTTP_STATUS_INTERNAL_SERVER_ERROR = 500;
56726
56731
  var HTTP_STATUS_SERVICE_UNAVAILABLE = 503;
56732
+ var HTTP_STATUS_PAYMENT_REQUIRED = 402;
56727
56733
  var BugBugError = class _BugBugError extends Error {
56728
56734
  code;
56729
56735
  statusCode;
@@ -56779,6 +56785,20 @@ var AuthorizationError = class extends BugBugError {
56779
56785
  this.name = "AuthorizationError";
56780
56786
  }
56781
56787
  };
56788
+ var SubscriptionError = class extends BugBugError {
56789
+ constructor(message = "This operation is not available on your current plan. Upgrade your plan to continue.", response, request2, upgradeUrl) {
56790
+ super(
56791
+ SDK_ERROR_CODES.SUBSCRIPTION_ERROR,
56792
+ message,
56793
+ response?.status ?? HTTP_STATUS_PAYMENT_REQUIRED,
56794
+ response,
56795
+ void 0,
56796
+ request2
56797
+ );
56798
+ this.upgradeUrl = upgradeUrl;
56799
+ this.name = "SubscriptionError";
56800
+ }
56801
+ };
56782
56802
  var ValidationError = class extends BugBugError {
56783
56803
  fields;
56784
56804
  constructor(message, response, fields, request2) {
@@ -56930,6 +56950,9 @@ function isAuthenticationError(error3) {
56930
56950
  function isAuthorizationError(error3) {
56931
56951
  return error3 instanceof AuthorizationError;
56932
56952
  }
56953
+ function isSubscriptionError(error3) {
56954
+ return error3 instanceof SubscriptionError;
56955
+ }
56933
56956
  function isValidationError(error3) {
56934
56957
  return error3 instanceof ValidationError;
56935
56958
  }
@@ -58150,7 +58173,7 @@ var resolveEnvConfig2 = (opts = {}) => {
58150
58173
  projectId,
58151
58174
  verbose: overrides.verbose ?? logLevel === "debug",
58152
58175
  nodeEnv: process.env.NODE_ENV ?? envFile.nodeEnv,
58153
- sentryDsn: process.env.SENTRY_DSN ?? envFile.sentryDsn
58176
+ sentryDsn: "https://c850ce209b19d8558600d0ecbb5a160f@sentry.bugbug.io/52"
58154
58177
  };
58155
58178
  };
58156
58179
  var readEnvFiles2 = (cwd) => {
@@ -58193,7 +58216,7 @@ var readEnvFiles2 = (cwd) => {
58193
58216
  var buildUserAgent2 = (clientType, version) => `BugBug ${clientType.toUpperCase()} ${version}`;
58194
58217
  var package_default2 = {
58195
58218
  name: "@bugbug-io/core",
58196
- version: "14.1.0",
58219
+ version: "14.2.0",
58197
58220
  private: true,
58198
58221
  type: "module",
58199
58222
  main: "dist/index.js",
@@ -58663,6 +58686,17 @@ function extractFieldErrors(body) {
58663
58686
  walk(body, "");
58664
58687
  return Object.keys(out).length > 0 ? out : void 0;
58665
58688
  }
58689
+ function extractSubscriptionUpgradeUrl(body) {
58690
+ const errorDetails = Array.isArray(body) ? body : [body];
58691
+ for (const errorDetail of errorDetails) {
58692
+ if (!errorDetail || typeof errorDetail !== "object") continue;
58693
+ const { params } = errorDetail;
58694
+ if (!params || typeof params !== "object") continue;
58695
+ const { upgradeUrl } = params;
58696
+ if (typeof upgradeUrl === "string") return upgradeUrl;
58697
+ }
58698
+ return void 0;
58699
+ }
58666
58700
  function formatApiErrorValue(value, path3 = "") {
58667
58701
  if (typeof value === "string") return value;
58668
58702
  if (typeof value === "number" || typeof value === "boolean") return String(value);
@@ -58885,6 +58919,7 @@ var BugBugApiClient = class {
58885
58919
  const errorMessage = formatApiErrorMessage(error3);
58886
58920
  const errorBody = parseErrorBody(error3);
58887
58921
  const fields = extractFieldErrors(errorBody);
58922
+ const subscriptionUpgradeUrl = extractSubscriptionUpgradeUrl(errorBody);
58888
58923
  switch (status) {
58889
58924
  case 401:
58890
58925
  throw new AuthenticationError(
@@ -58892,6 +58927,13 @@ var BugBugApiClient = class {
58892
58927
  response,
58893
58928
  request2
58894
58929
  );
58930
+ case 402:
58931
+ throw new SubscriptionError(
58932
+ errorMessage || "This operation is not available on your current plan. Upgrade your plan to continue.",
58933
+ response,
58934
+ request2,
58935
+ subscriptionUpgradeUrl
58936
+ );
58895
58937
  case 403:
58896
58938
  throw new AuthorizationError(
58897
58939
  errorMessage || "Access denied. Check your permissions.",
@@ -64081,7 +64123,8 @@ var formatErrorMessage = (error3) => {
64081
64123
  var formatSdkError = (error3) => {
64082
64124
  const headline = `${error3.message || error3.name} (${error3.statusCode})`;
64083
64125
  if (!isVerboseMode()) {
64084
- return headline;
64126
+ return isSubscriptionError(error3) && error3.upgradeUrl ? `${headline}
64127
+ Upgrade your plan: ${error3.upgradeUrl}` : headline;
64085
64128
  }
64086
64129
  const lines = [headline];
64087
64130
  if (error3.request?.method && error3.request?.url) {
@@ -64091,6 +64134,9 @@ var formatSdkError = (error3) => {
64091
64134
  const seconds = Math.round(error3.retryAfter / 1e3);
64092
64135
  lines.push(`Retry after ${seconds}s`);
64093
64136
  }
64137
+ if (isSubscriptionError(error3) && error3.upgradeUrl) {
64138
+ lines.push(`Upgrade your plan: ${error3.upgradeUrl}`);
64139
+ }
64094
64140
  if (isValidationError(error3) && error3.fields) {
64095
64141
  for (const [field, msgs] of Object.entries(error3.fields)) {
64096
64142
  lines.push(` - ${field}: ${msgs.join("; ")}`);
@@ -64844,4 +64890,5 @@ export {
64844
64890
  formatErrorMessage,
64845
64891
  showError
64846
64892
  };
64847
- //# sourceMappingURL=chunk-RW5JOZ3C.js.map
64893
+ //# sourceMappingURL=chunk-N4JWEUEM.js.map
64894
+ //# debugId=b3f2bc19-5442-5cdf-bb03-5061c12bb717
@@ -1,3 +1,5 @@
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]="6d44017c-e32f-5c07-bef6-6cc5122113c1")}catch(e){}}();
1
3
  var __create = Object.create;
2
4
  var __defProp = Object.defineProperty;
3
5
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
@@ -40,4 +42,5 @@ export {
40
42
  __export,
41
43
  __toESM
42
44
  };
43
- //# sourceMappingURL=chunk-PR4QN5HX.js.map
45
+ //# sourceMappingURL=chunk-PR4QN5HX.js.map
46
+ //# debugId=6d44017c-e32f-5c07-bef6-6cc5122113c1
@@ -1,4 +1,6 @@
1
1
  // ../../node_modules/@opentelemetry/resources/build/esm/detectors/platform/node/machine-id/execAsync.js
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]="822aac4a-6cce-5db6-a949-c631363c11d3")}catch(e){}}();
2
4
  import * as child_process from "child_process";
3
5
  import * as util from "util";
4
6
  var execAsync = util.promisify(child_process.exec);
@@ -6,4 +8,5 @@ var execAsync = util.promisify(child_process.exec);
6
8
  export {
7
9
  execAsync
8
10
  };
9
- //# sourceMappingURL=chunk-WZXVS2EO.js.map
11
+ //# sourceMappingURL=chunk-WZXVS2EO.js.map
12
+ //# debugId=822aac4a-6cce-5db6-a949-c631363c11d3
@@ -1,3 +1,5 @@
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]="ebb3b3de-43a2-55d6-8d5d-2c23994d6816")}catch(e){}}();
1
3
  import {
2
4
  execAsync
3
5
  } from "./chunk-WZXVS2EO.js";
@@ -26,4 +28,5 @@ async function getMachineId() {
26
28
  export {
27
29
  getMachineId
28
30
  };
29
- //# sourceMappingURL=getMachineId-bsd-QKL32ATF.js.map
31
+ //# sourceMappingURL=getMachineId-bsd-QKL32ATF.js.map
32
+ //# debugId=ebb3b3de-43a2-55d6-8d5d-2c23994d6816
@@ -1,3 +1,5 @@
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]="165d6bc8-d84a-5066-ab0e-fb1877040db2")}catch(e){}}();
1
3
  import {
2
4
  execAsync
3
5
  } from "./chunk-WZXVS2EO.js";
@@ -26,4 +28,5 @@ async function getMachineId() {
26
28
  export {
27
29
  getMachineId
28
30
  };
29
- //# sourceMappingURL=getMachineId-darwin-MNPDTPSO.js.map
31
+ //# sourceMappingURL=getMachineId-darwin-MNPDTPSO.js.map
32
+ //# debugId=165d6bc8-d84a-5066-ab0e-fb1877040db2
@@ -1,3 +1,5 @@
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]="c9d1032c-4eab-5a26-97c5-389c802d3ff1")}catch(e){}}();
1
3
  import {
2
4
  diag
3
5
  } from "./chunk-BSHFIPEX.js";
@@ -20,4 +22,5 @@ async function getMachineId() {
20
22
  export {
21
23
  getMachineId
22
24
  };
23
- //# sourceMappingURL=getMachineId-linux-6BBPG345.js.map
25
+ //# sourceMappingURL=getMachineId-linux-6BBPG345.js.map
26
+ //# debugId=c9d1032c-4eab-5a26-97c5-389c802d3ff1
@@ -1,3 +1,5 @@
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]="2191a705-44e7-5e6a-ae81-8a3e2b82da09")}catch(e){}}();
1
3
  import {
2
4
  diag
3
5
  } from "./chunk-BSHFIPEX.js";
@@ -11,4 +13,5 @@ async function getMachineId() {
11
13
  export {
12
14
  getMachineId
13
15
  };
14
- //# sourceMappingURL=getMachineId-unsupported-A7ZABDRN.js.map
16
+ //# sourceMappingURL=getMachineId-unsupported-A7ZABDRN.js.map
17
+ //# debugId=2191a705-44e7-5e6a-ae81-8a3e2b82da09
@@ -1,3 +1,5 @@
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]="a62a9185-f297-567e-9f87-51e13e9cb0cc")}catch(e){}}();
1
3
  import {
2
4
  execAsync
3
5
  } from "./chunk-WZXVS2EO.js";
@@ -28,4 +30,5 @@ async function getMachineId() {
28
30
  export {
29
31
  getMachineId
30
32
  };
31
- //# sourceMappingURL=getMachineId-win-WYJ4B4CV.js.map
33
+ //# sourceMappingURL=getMachineId-win-WYJ4B4CV.js.map
34
+ //# debugId=a62a9185-f297-567e-9f87-51e13e9cb0cc
package/dist/index.js CHANGED
@@ -1,4 +1,6 @@
1
1
  #!/usr/bin/env node
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]="ba1e9743-6c9e-5581-bebb-31741ecd8726")}catch(e){}}();
2
4
  import {
3
5
  EXIT_GENERAL_ERROR,
4
6
  EXIT_USAGE_ERROR,
@@ -51,12 +53,17 @@ import {
51
53
  waitForSuiteRun,
52
54
  waitForTestRun,
53
55
  writeReportXml
54
- } from "./chunk-RW5JOZ3C.js";
56
+ } from "./chunk-N4JWEUEM.js";
55
57
  import "./chunk-BSHFIPEX.js";
56
58
  import "./chunk-PR4QN5HX.js";
57
59
 
58
60
  // src/instrument.ts
59
- initSentry({ telemetryEnabled: getCliConfig().telemetryEnabled, env: process.env });
61
+ initSentry({
62
+ telemetryEnabled: getCliConfig().telemetryEnabled,
63
+ // Not a no-op: tsup substitutes the left-hand `process.env.SENTRY_DSN` at build
64
+ // time, while the spread lets a runtime `SENTRY_DSN` still override it.
65
+ env: { SENTRY_DSN: "https://c850ce209b19d8558600d0ecbb5a160f@sentry.bugbug.io/52", ...process.env }
66
+ });
60
67
 
61
68
  // src/index.ts
62
69
  import { Command, CommanderError } from "commander";
@@ -1208,7 +1215,7 @@ program.exitOverride();
1208
1215
  });
1209
1216
  analytics.trackEvent("cli_session_started");
1210
1217
  if (startupMode.type === "commandline" && await shouldRedirectUnauthenticatedCommandToInit(process.argv, hasUsableSession)) {
1211
- const { startNavigator } = await import("./app-GQK4SIGI.js");
1218
+ const { startNavigator } = await import("./app-E2CW7E45.js");
1212
1219
  await startNavigator({
1213
1220
  initialRoute: "/init",
1214
1221
  initialRouteState: {
@@ -1220,7 +1227,7 @@ program.exitOverride();
1220
1227
  return;
1221
1228
  }
1222
1229
  if (startupMode.type === "navigator") {
1223
- const { startNavigator } = await import("./app-GQK4SIGI.js");
1230
+ const { startNavigator } = await import("./app-E2CW7E45.js");
1224
1231
  await startNavigator({
1225
1232
  initialRoute: startupMode.route,
1226
1233
  token: config.token,
@@ -1256,4 +1263,5 @@ program.exitOverride();
1256
1263
  process.exit(1);
1257
1264
  }
1258
1265
  })();
1259
- //# sourceMappingURL=index.js.map
1266
+ //# sourceMappingURL=index.js.map
1267
+ //# debugId=ba1e9743-6c9e-5581-bebb-31741ecd8726
@@ -1,3 +1,5 @@
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]="0cb71153-95be-5aec-9e38-a0d70d318e00")}catch(e){}}();
1
3
  import "./chunk-PR4QN5HX.js";
2
4
 
3
5
  // src/features/tui/render.ts
@@ -35,4 +37,5 @@ var render = async (node) => {
35
37
  export {
36
38
  render
37
39
  };
38
- //# sourceMappingURL=render-U36YSDSA.js.map
40
+ //# sourceMappingURL=render-U36YSDSA.js.map
41
+ //# debugId=0cb71153-95be-5aec-9e38-a0d70d318e00
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bugbug-io/cli",
3
- "version": "14.1.0",
3
+ "version": "14.2.0",
4
4
  "description": "BugBug CLI for test automation, CI workflows, and AI-agent plugin installation",
5
5
  "type": "module",
6
6
  "bin": {
@@ -18,7 +18,8 @@
18
18
  "start:qa": "cross-env NODE_ENV=development BUGBUG_API_URL=https://qa.bugbug.io/api/v2/ BUGBUG_APP_URL=https://qa.bugbug.io/rest tsx --conditions=development ./src/index.ts",
19
19
  "start:staging": "cross-env NODE_ENV=development BUGBUG_API_URL=https://stage.bugbug.io/api/v2/ BUGBUG_APP_URL=https://stage.bugbug.io/rest tsx --conditions=development ./src/index.ts",
20
20
  "start:production": "cross-env NODE_ENV=development BUGBUG_API_URL=https://app.bugbug.io/api/v2/ BUGBUG_APP_URL=https://app.bugbug.io/rest tsx --conditions=development ./src/index.ts",
21
- "build": "tsup",
21
+ "build": "tsup && npm run sentry:inject",
22
+ "sentry:inject": "sentry-cli sourcemaps inject dist",
22
23
  "prepublishOnly": "npm run build",
23
24
  "start": "node dist/index.js",
24
25
  "test": "vitest run --no-file-parallelism",
@@ -26,16 +27,16 @@
26
27
  "test:ci": "cross-env CI=true vitest run --no-file-parallelism",
27
28
  "coverage": "vitest run --coverage",
28
29
  "typecheck": "tsc --noEmit",
30
+ "sentry:development": "../../scripts/sentry-upload.sh cli development",
31
+ "sentry:qa": "../../scripts/sentry-upload.sh cli qa",
32
+ "sentry:staging": "../../scripts/sentry-upload.sh cli staging",
33
+ "sentry:production": "../../scripts/sentry-upload.sh cli production",
29
34
  "format:check": "oxfmt --check",
30
35
  "oxlint:check": "oxlint .",
31
36
  "oxlint:ci": "oxlint . --max-warnings=0",
32
37
  "lint": "npm run format:check && npm run oxlint:check",
33
38
  "lint:fix": "oxfmt && oxlint . --fix",
34
- "lint:ci": "npm run format:check && npm run oxlint:ci",
35
- "sentry:development": "./scripts/sentry-upload.sh ./dist development",
36
- "sentry:qa": "./scripts/sentry-upload.sh ./dist qa",
37
- "sentry:staging": "./scripts/sentry-upload.sh ./dist staging",
38
- "sentry:production": "./scripts/sentry-upload.sh ./dist production"
39
+ "lint:ci": "npm run format:check && npm run oxlint:ci"
39
40
  },
40
41
  "author": "BugBug.io",
41
42
  "license": "MIT",