@bugbug-io/cli 14.11.0 → 14.13.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/README.md CHANGED
@@ -86,6 +86,7 @@ bugbug logout # Clear the stored user token and current project
86
86
 
87
87
  ```bash
88
88
  bugbug init # Create bugbug.yaml pinning this directory to a project
89
+ bugbug project settings # Read project settings
89
90
  bugbug project export # Export project as a ZIP (bugbug-project-export-<timestamp>.zip)
90
91
  bugbug project export -o out.zip # Export to a specific file
91
92
  bugbug project import out.zip # Import a project from a ZIP archive
@@ -62,7 +62,7 @@ import {
62
62
  waitForSuiteRun,
63
63
  waitForTestRun,
64
64
  writeReportXml
65
- } from "./chunk-7PD7MS2Z.js";
65
+ } from "./chunk-H5GEPM6E.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-QRQI2DVK.js.map
11133
+ //# sourceMappingURL=NavigatorApp-BN43AMWS.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-QRQI2DVK.js")
15
+ import("./NavigatorApp-BN43AMWS.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-G43FUI5J.js.map
30
+ //# sourceMappingURL=app-KCQRODEZ.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]="03d400d9-c31c-5b1e-b075-a7bbdddd44af")}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]="9c1eeb28-b715-561a-bb16-fdf41fafcc76")}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.11.0",
8933
+ version: "14.13.0",
8934
8934
  private: true,
8935
8935
  type: "module",
8936
8936
  main: "dist/index.js",
@@ -48051,9 +48051,9 @@ var ALLOWED_EVENT_DATA_KEYS = /* @__PURE__ */ new Set([
48051
48051
  "testRunId",
48052
48052
  "toolName"
48053
48053
  ]);
48054
- var buildTelemetryUrl = (apiUrl) => {
48054
+ var buildTelemetryUrl = (apiUrl, path3 = "events") => {
48055
48055
  const normalizedBaseUrl = apiUrl.replace(/\/+$/, "");
48056
- return `${normalizedBaseUrl}/telemetry/events/`;
48056
+ return `${normalizedBaseUrl}/telemetry/${path3}/`;
48057
48057
  };
48058
48058
  var sanitizeEventData = (data) => {
48059
48059
  const result = {};
@@ -48076,6 +48076,15 @@ var createAnalyticsService = (config) => {
48076
48076
  };
48077
48077
  const fetchImpl = configuredFetchImpl ?? globalThis.fetch?.bind(globalThis);
48078
48078
  const isEnabled3 = Boolean(config.telemetryEnabled && config.token && fetchImpl);
48079
+ const postTelemetry = (path3, payload) => fetchImpl?.(buildTelemetryUrl(config.apiUrl, path3), {
48080
+ method: "POST",
48081
+ headers: {
48082
+ Authorization: `Token ${config.token}`,
48083
+ "Content-Type": "application/json",
48084
+ "User-Agent": buildUserAgent(config.source, clientVersion)
48085
+ },
48086
+ body: JSON.stringify(payload)
48087
+ });
48079
48088
  return {
48080
48089
  setup: () => void 0,
48081
48090
  setGlobalEventData: (data) => {
@@ -48099,15 +48108,17 @@ var createAnalyticsService = (config) => {
48099
48108
  ...data
48100
48109
  })
48101
48110
  };
48102
- fetchImpl(buildTelemetryUrl(config.apiUrl), {
48103
- method: "POST",
48104
- headers: {
48105
- Authorization: `Token ${config.token}`,
48106
- "Content-Type": "application/json",
48107
- "User-Agent": buildUserAgent(config.source, clientVersion)
48108
- },
48109
- body: JSON.stringify(payload)
48110
- }).catch(() => void 0);
48111
+ postTelemetry("events", payload)?.catch(() => void 0);
48112
+ },
48113
+ submitFeedback: async (feedback) => {
48114
+ if (!isEnabled3)
48115
+ return false;
48116
+ try {
48117
+ const response = await postTelemetry("feedback", { ...feedback, source: config.source });
48118
+ return Boolean(response?.ok);
48119
+ } catch {
48120
+ return false;
48121
+ }
48111
48122
  },
48112
48123
  clearSession: () => {
48113
48124
  sessionId = "";
@@ -58030,6 +58041,51 @@ var TestsModule = class {
58030
58041
  pathParams: { id: runId, artifact_type: artifactType },
58031
58042
  ...options
58032
58043
  });
58044
+ /**
58045
+ * Get the email inbox of a test run with its (optionally filtered) messages.
58046
+ *
58047
+ * @param runId - UUID of the run.
58048
+ * @param options - Inbox filters (`search`, `from`, `unseen`, ...) plus request options.
58049
+ */
58050
+ getRunInbox = async (runId, options = {}) => {
58051
+ const { signal, timeout, headers, ...queryParams } = options;
58052
+ return this.#client.get("/testruns/{id}/inbox/", {
58053
+ pathParams: { id: runId },
58054
+ queryParams,
58055
+ signal,
58056
+ timeout,
58057
+ headers
58058
+ });
58059
+ };
58060
+ /**
58061
+ * Fetch a single inbox message, including its HTML body.
58062
+ *
58063
+ * @throws {NotFoundError} When the message does not exist in the run inbox.
58064
+ */
58065
+ getRunInboxMessage = async (runId, messageId, options = {}) => this.#client.get("/testruns/{id}/inbox/messages/{message_id}/", {
58066
+ pathParams: { id: runId, message_id: messageId },
58067
+ ...options
58068
+ });
58069
+ /**
58070
+ * Delete all messages from a test run inbox.
58071
+ */
58072
+ clearRunInbox = async (runId, options = {}) => {
58073
+ await this.#client.delete("/testruns/{id}/inbox/", {
58074
+ pathParams: { id: runId },
58075
+ ...options
58076
+ });
58077
+ };
58078
+ /**
58079
+ * Delete a single message from a test run inbox.
58080
+ *
58081
+ * @throws {NotFoundError} When the message does not exist in the run inbox.
58082
+ */
58083
+ deleteRunInboxMessage = async (runId, messageId, options = {}) => {
58084
+ await this.#client.delete("/testruns/{id}/inbox/messages/{message_id}/", {
58085
+ pathParams: { id: runId, message_id: messageId },
58086
+ ...options
58087
+ });
58088
+ };
58033
58089
  export(testId, fmt2, options = {}) {
58034
58090
  if (fmt2 === "yaml") {
58035
58091
  return this.#client.getText("/tests/{id}/export/{fmt}/", {
@@ -58333,7 +58389,7 @@ var readEnvFiles2 = (cwd) => {
58333
58389
  var buildUserAgent2 = (clientType, version) => `BugBug ${clientType.toUpperCase()} ${version}`;
58334
58390
  var package_default2 = {
58335
58391
  name: "@bugbug-io/core",
58336
- version: "14.11.0",
58392
+ version: "14.13.0",
58337
58393
  private: true,
58338
58394
  type: "module",
58339
58395
  main: "dist/index.js",
@@ -64435,6 +64491,21 @@ var runClientCommand = (argv, options = {}) => {
64435
64491
  const code = result.error ? 1 : result.status ?? 1;
64436
64492
  return { ok: code === 0, code };
64437
64493
  };
64494
+ var readClientCommandOutput = (argv, options = {}) => {
64495
+ const spawnSyncFn = options.spawn ?? defaultSyncSpawn;
64496
+ const [command, ...args] = argv;
64497
+ const spawnOptions = {
64498
+ stdio: "pipe",
64499
+ encoding: "utf8",
64500
+ ...process.platform === "win32" ? { shell: true } : {}
64501
+ };
64502
+ if (options.env)
64503
+ spawnOptions.env = { ...process.env, ...options.env };
64504
+ const result = spawnSyncFn(command, args, spawnOptions);
64505
+ if (result.error || result.status !== 0)
64506
+ return void 0;
64507
+ return result.stdout == null ? void 0 : String(result.stdout);
64508
+ };
64438
64509
 
64439
64510
  // src/utils/external.ts
64440
64511
  var OPENABLE_URL_PROTOCOLS = /* @__PURE__ */ new Set(["http:", "https:"]);
@@ -64614,6 +64685,7 @@ var importProject = async (file) => {
64614
64685
  return { path: path3, size: bytes.byteLength };
64615
64686
  };
64616
64687
  var listProjects = async () => getSdk().projects.getAll();
64688
+ var getProjectSettings = async () => getSdk().project.getSettings();
64617
64689
  var getProjectById = async (projectId) => getSdk().projects.findById(projectId);
64618
64690
  var initProject = async (token, projectId) => {
64619
64691
  const trimmed = token.trim();
@@ -64975,6 +65047,7 @@ var getRunErrorMessage = (state) => {
64975
65047
  };
64976
65048
 
64977
65049
  export {
65050
+ DEFAULT_MCP_ACCESS_URL,
64978
65051
  PLUGIN_PACKAGE_NAME,
64979
65052
  PLUGIN_REPO_SOURCE,
64980
65053
  userCwd,
@@ -65000,6 +65073,7 @@ export {
65000
65073
  isRunningStatus,
65001
65074
  isCompletedStatus,
65002
65075
  runClientCommand,
65076
+ readClientCommandOutput,
65003
65077
  openExternalUrl,
65004
65078
  formatRunStatus,
65005
65079
  getSdk,
@@ -65011,6 +65085,7 @@ export {
65011
65085
  exportProject,
65012
65086
  importProject,
65013
65087
  listProjects,
65088
+ getProjectSettings,
65014
65089
  getProjectById,
65015
65090
  initProject,
65016
65091
  hasProjectConfigFile,
@@ -65059,5 +65134,5 @@ export {
65059
65134
  formatErrorMessage,
65060
65135
  showError
65061
65136
  };
65062
- //# sourceMappingURL=chunk-7PD7MS2Z.js.map
65063
- //# debugId=03d400d9-c31c-5b1e-b075-a7bbdddd44af
65137
+ //# sourceMappingURL=chunk-H5GEPM6E.js.map
65138
+ //# debugId=9c1eeb28-b715-561a-bb16-fdf41fafcc76
package/dist/index.js CHANGED
@@ -1,9 +1,10 @@
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]="6f67254d-fe25-50b8-9beb-c00c0a09bd79")}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]="6d7999fb-fef8-5334-afcb-dbaf0a606051")}catch(e){}}();
4
4
  import { createRequire as __nodeCreateRequire } from 'node:module';
5
5
  const require = __nodeCreateRequire(import.meta.url);
6
6
  import {
7
+ DEFAULT_MCP_ACCESS_URL,
7
8
  EXIT_GENERAL_ERROR,
8
9
  EXIT_USAGE_ERROR,
9
10
  PLUGIN_PACKAGE_NAME,
@@ -23,6 +24,7 @@ import {
23
24
  formatInlineRunReport,
24
25
  getCliConfig,
25
26
  getIdentity,
27
+ getProjectSettings,
26
28
  getSdk,
27
29
  getSuite,
28
30
  getSuiteRun,
@@ -44,6 +46,7 @@ import {
44
46
  listTests,
45
47
  login,
46
48
  logout,
49
+ readClientCommandOutput,
47
50
  resolveOutputMode,
48
51
  runClientCommand,
49
52
  runSuite,
@@ -63,7 +66,7 @@ import {
63
66
  waitForSuiteRun,
64
67
  waitForTestRun,
65
68
  writeReportXml
66
- } from "./chunk-7PD7MS2Z.js";
69
+ } from "./chunk-H5GEPM6E.js";
67
70
  import "./chunk-XLIBEETK.js";
68
71
  import "./chunk-3PJ4ZE2N.js";
69
72
  import {
@@ -3153,6 +3156,126 @@ var registerAuthCommands = (program3) => {
3153
3156
  // src/features/install/install.service.ts
3154
3157
  import { homedir } from "os";
3155
3158
 
3159
+ // ../core/dist/install/codexVerify.js
3160
+ import { join } from "path";
3161
+
3162
+ // ../core/dist/install/jsonConfig.js
3163
+ import { existsSync, mkdirSync, readFileSync, writeFileSync } from "fs";
3164
+ import { dirname } from "path";
3165
+ var readJsonObject = (path) => {
3166
+ if (!existsSync(path))
3167
+ return {};
3168
+ try {
3169
+ const parsed = JSON.parse(readFileSync(path, "utf8"));
3170
+ return parsed && typeof parsed === "object" ? parsed : {};
3171
+ } catch {
3172
+ return {};
3173
+ }
3174
+ };
3175
+ var getObject = (parent, key) => {
3176
+ const existing = parent[key];
3177
+ return existing && typeof existing === "object" ? existing : {};
3178
+ };
3179
+
3180
+ // ../core/dist/install/pluginsCli.js
3181
+ var PLUGINS_CLI_ENV = {
3182
+ DISABLE_TELEMETRY: "1",
3183
+ DO_NOT_TRACK: "1"
3184
+ };
3185
+ var PLUGINS_CLI_MARKETPLACE = "plugins-cli";
3186
+ var PLUGINS_CLI_PACKAGE = "plugins@1.3.5";
3187
+ var buildPluginsCliArgv = (target, source) => [
3188
+ "npx",
3189
+ "-y",
3190
+ PLUGINS_CLI_PACKAGE,
3191
+ "add",
3192
+ source,
3193
+ "--target",
3194
+ target,
3195
+ "--yes"
3196
+ ];
3197
+ var runPluginsCli = ({ target, source, dryRun = false, runnerOptions }) => {
3198
+ const argv = buildPluginsCliArgv(target, source);
3199
+ const command = argv.join(" ");
3200
+ if (dryRun)
3201
+ return { action: "executed", command };
3202
+ const { ok, code } = runClientCommand(argv, {
3203
+ ...runnerOptions,
3204
+ env: { ...PLUGINS_CLI_ENV }
3205
+ });
3206
+ if (!ok) {
3207
+ return {
3208
+ action: "unsupported",
3209
+ command,
3210
+ message: `\`${command}\` failed (exit ${code}).`
3211
+ };
3212
+ }
3213
+ return { action: "executed", command };
3214
+ };
3215
+
3216
+ // ../core/dist/install/codexVerify.js
3217
+ var MCP_SERVER_NAME = "bugbug";
3218
+ var PUBLISHED_PLUGIN_NAME = "bugbug";
3219
+ var resolveExpected = (ctx) => {
3220
+ const ref = ctx.pluginRef;
3221
+ if (ref?.kind !== "local") {
3222
+ return { pluginName: PUBLISHED_PLUGIN_NAME, mcpUrl: DEFAULT_MCP_ACCESS_URL };
3223
+ }
3224
+ const manifest = readJsonObject(join(ref.value, ".codex-plugin", "plugin.json"));
3225
+ const servers = getObject(readJsonObject(join(ref.value, ".mcp.json")), "mcpServers");
3226
+ const server = getObject(servers, MCP_SERVER_NAME);
3227
+ return {
3228
+ pluginName: typeof manifest.name === "string" ? manifest.name : PUBLISHED_PLUGIN_NAME,
3229
+ mcpUrl: typeof server.url === "string" ? server.url : void 0
3230
+ };
3231
+ };
3232
+ var listInstalledPlugins = (ctx) => {
3233
+ const output = readClientCommandOutput(["codex", "plugin", "list", "--json"], ctx.runnerOptions);
3234
+ if (!output)
3235
+ return [];
3236
+ try {
3237
+ const parsed = JSON.parse(output);
3238
+ return Array.isArray(parsed.installed) ? parsed.installed : [];
3239
+ } catch {
3240
+ return [];
3241
+ }
3242
+ };
3243
+ var isInstalled = (plugins, pluginId) => plugins.some((plugin) => plugin.pluginId === pluginId && plugin.installed === true);
3244
+ var readMcpServerUrl = (ctx) => {
3245
+ const output = readClientCommandOutput(["codex", "mcp", "get", MCP_SERVER_NAME, "--json"], ctx.runnerOptions);
3246
+ if (!output)
3247
+ return void 0;
3248
+ try {
3249
+ const parsed = JSON.parse(output);
3250
+ return typeof parsed.transport?.url === "string" ? parsed.transport.url : void 0;
3251
+ } catch {
3252
+ return void 0;
3253
+ }
3254
+ };
3255
+ var normalizeUrl = (url) => url.replace(/\/+$/, "");
3256
+ var verifyCodexInstall = (ctx) => {
3257
+ const expected = resolveExpected(ctx);
3258
+ const pluginId = `${expected.pluginName}@${PLUGINS_CLI_MARKETPLACE}`;
3259
+ let plugins = listInstalledPlugins(ctx);
3260
+ if (!isInstalled(plugins, pluginId)) {
3261
+ runClientCommand(["codex", "plugin", "add", pluginId], ctx.runnerOptions);
3262
+ plugins = listInstalledPlugins(ctx);
3263
+ if (!isInstalled(plugins, pluginId)) {
3264
+ return `Codex did not install \`${pluginId}\`; run \`codex plugin add ${pluginId}\`.`;
3265
+ }
3266
+ }
3267
+ const actualUrl = readMcpServerUrl(ctx);
3268
+ if (!actualUrl) {
3269
+ return `Codex has no \`${MCP_SERVER_NAME}\` MCP server after installing \`${pluginId}\`.`;
3270
+ }
3271
+ if (!expected.mcpUrl || normalizeUrl(actualUrl) === normalizeUrl(expected.mcpUrl)) {
3272
+ return void 0;
3273
+ }
3274
+ const conflicting = plugins.filter((plugin) => plugin.installed === true && typeof plugin.name === "string" && plugin.name.startsWith(PUBLISHED_PLUGIN_NAME) && plugin.pluginId !== pluginId).map((plugin) => `codex plugin remove ${String(plugin.pluginId)}`);
3275
+ const hint = conflicting.length ? ` Remove the conflicting plugin (\`${conflicting.join("`, `")}\`) and re-run the install.` : "";
3276
+ return `Codex resolves the \`${MCP_SERVER_NAME}\` MCP server to ${actualUrl}, expected ${expected.mcpUrl}.${hint}`;
3277
+ };
3278
+
3156
3279
  // ../core/dist/install/clients.js
3157
3280
  var CLIENTS = {
3158
3281
  cursor: {
@@ -3186,6 +3309,7 @@ var CLIENTS = {
3186
3309
  cliName: "codex",
3187
3310
  detectDir: ".codex",
3188
3311
  pluginsTarget: "codex",
3312
+ verifyInstall: verifyCodexInstall,
3189
3313
  postInstallAuth: {
3190
3314
  command: "codex",
3191
3315
  resetCheckArgs: ["mcp", "get", "bugbug"],
@@ -3204,40 +3328,6 @@ var CLIENTS = {
3204
3328
  }
3205
3329
  };
3206
3330
 
3207
- // ../core/dist/install/pluginsCli.js
3208
- var PLUGINS_CLI_ENV = {
3209
- DISABLE_TELEMETRY: "1",
3210
- DO_NOT_TRACK: "1"
3211
- };
3212
- var buildPluginsCliArgv = (target, source) => [
3213
- "npx",
3214
- "-y",
3215
- "plugins",
3216
- "add",
3217
- source,
3218
- "--target",
3219
- target,
3220
- "--yes"
3221
- ];
3222
- var runPluginsCli = ({ target, source, dryRun = false, runnerOptions }) => {
3223
- const argv = buildPluginsCliArgv(target, source);
3224
- const command = argv.join(" ");
3225
- if (dryRun)
3226
- return { action: "executed", command };
3227
- const { ok, code } = runClientCommand(argv, {
3228
- ...runnerOptions,
3229
- env: { ...PLUGINS_CLI_ENV }
3230
- });
3231
- if (!ok) {
3232
- return {
3233
- action: "unsupported",
3234
- command,
3235
- message: `\`${command}\` failed (exit ${code}).`
3236
- };
3237
- }
3238
- return { action: "executed", command };
3239
- };
3240
-
3241
3331
  // ../core/dist/install/installPlugin.js
3242
3332
  var runPostInstallAuth = (ctx, auth) => {
3243
3333
  const resetCommand = auth.resetArgs ? [auth.command, ...auth.resetArgs].join(" ") : void 0;
@@ -3270,7 +3360,14 @@ var installPlugin = (client, ctx) => {
3270
3360
  dryRun: ctx.dryRun,
3271
3361
  runnerOptions: ctx.runnerOptions
3272
3362
  });
3273
- if (!definition.postInstallAuth || action !== "executed") {
3363
+ if (action !== "executed") {
3364
+ return { client, path: command, action, message };
3365
+ }
3366
+ const verifyMessage = ctx.dryRun ? void 0 : definition.verifyInstall?.(ctx);
3367
+ if (verifyMessage) {
3368
+ return { client, path: command, action: "unsupported", message: verifyMessage };
3369
+ }
3370
+ if (!definition.postInstallAuth) {
3274
3371
  return { client, path: command, action, message };
3275
3372
  }
3276
3373
  const login2 = runPostInstallAuth(ctx, definition.postInstallAuth);
@@ -3464,7 +3561,34 @@ var registerProfilesCommand = (program3) => {
3464
3561
  return profiles;
3465
3562
  };
3466
3563
 
3564
+ // src/features/project/project.formatters.ts
3565
+ var projectSettingsOutputFormatters = {
3566
+ toPlain(settings) {
3567
+ return renderTable(Object.entries(settings), [
3568
+ { header: "Setting", get: ([key]) => key },
3569
+ {
3570
+ header: "Value",
3571
+ get: ([, value]) => {
3572
+ if (value === null || value === void 0) return "N/A";
3573
+ return typeof value === "object" ? JSON.stringify(value) : String(value);
3574
+ }
3575
+ }
3576
+ ]);
3577
+ },
3578
+ toJson: (settings) => settings
3579
+ };
3580
+
3467
3581
  // src/features/project/project.command.ts
3582
+ var registerProjectSettingsCommand = (parent) => parent.command("settings").description("Show project settings").action(async () => {
3583
+ const mode = resolveOutputMode();
3584
+ try {
3585
+ const settings = await getProjectSettings();
3586
+ await renderOutput(mode, settings, projectSettingsOutputFormatters);
3587
+ } catch (err) {
3588
+ emitError(mode, { error: err instanceof Error ? err.message : String(err) });
3589
+ exitWith(EXIT_GENERAL_ERROR);
3590
+ }
3591
+ });
3468
3592
  var registerProjectInitCommand = (parent, commandName = "init") => parent.command(commandName).description("Initialize a new BugBug project in the current directory.").action(async () => {
3469
3593
  const mode = resolveOutputMode();
3470
3594
  const { token, projectId } = getCliConfig();
@@ -3530,6 +3654,7 @@ var registerProjectImportCommand = (parent, commandName = "import") => parent.co
3530
3654
  var registerProjectCommand = (program3) => {
3531
3655
  const project = program3.command("project").description("Project commands");
3532
3656
  registerProjectInitCommand(project, "init");
3657
+ registerProjectSettingsCommand(project);
3533
3658
  registerProjectExportCommand(project, "export");
3534
3659
  registerProjectImportCommand(project, "import");
3535
3660
  return project;
@@ -4436,7 +4561,7 @@ program2.exitOverride();
4436
4561
  });
4437
4562
  analytics.trackEvent("cli_session_started");
4438
4563
  if (startupMode.type === "commandline" && await shouldRedirectUnauthenticatedCommandToInit(process.argv, hasUsableSession)) {
4439
- const { startNavigator } = await import("./app-G43FUI5J.js");
4564
+ const { startNavigator } = await import("./app-KCQRODEZ.js");
4440
4565
  await startNavigator({
4441
4566
  initialRoute: "/init",
4442
4567
  initialRouteState: {
@@ -4448,7 +4573,7 @@ program2.exitOverride();
4448
4573
  return;
4449
4574
  }
4450
4575
  if (startupMode.type === "navigator") {
4451
- const { startNavigator } = await import("./app-G43FUI5J.js");
4576
+ const { startNavigator } = await import("./app-KCQRODEZ.js");
4452
4577
  await startNavigator({
4453
4578
  initialRoute: startupMode.route,
4454
4579
  token: config.token,
@@ -4485,4 +4610,4 @@ program2.exitOverride();
4485
4610
  }
4486
4611
  })();
4487
4612
  //# sourceMappingURL=index.js.map
4488
- //# debugId=6f67254d-fe25-50b8-9beb-c00c0a09bd79
4613
+ //# debugId=6d7999fb-fef8-5334-afcb-dbaf0a606051
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bugbug-io/cli",
3
- "version": "14.11.0",
3
+ "version": "14.13.0",
4
4
  "description": "BugBug CLI for test automation, CI workflows, and AI-agent plugin installation",
5
5
  "type": "module",
6
6
  "bin": {