@bugbug-io/cli 14.10.0 → 14.12.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-
|
|
65
|
+
} from "./chunk-4F2H22FW.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-PUXIO7DO.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-PUXIO7DO.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-MFBVF6Q2.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]="8675dd77-a641-587c-a627-1283a7335316")}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.12.0",
|
|
8934
8934
|
private: true,
|
|
8935
8935
|
type: "module",
|
|
8936
8936
|
main: "dist/index.js",
|
|
@@ -58333,7 +58333,7 @@ var readEnvFiles2 = (cwd) => {
|
|
|
58333
58333
|
var buildUserAgent2 = (clientType, version) => `BugBug ${clientType.toUpperCase()} ${version}`;
|
|
58334
58334
|
var package_default2 = {
|
|
58335
58335
|
name: "@bugbug-io/core",
|
|
58336
|
-
version: "14.
|
|
58336
|
+
version: "14.12.0",
|
|
58337
58337
|
private: true,
|
|
58338
58338
|
type: "module",
|
|
58339
58339
|
main: "dist/index.js",
|
|
@@ -64435,6 +64435,21 @@ var runClientCommand = (argv, options = {}) => {
|
|
|
64435
64435
|
const code = result.error ? 1 : result.status ?? 1;
|
|
64436
64436
|
return { ok: code === 0, code };
|
|
64437
64437
|
};
|
|
64438
|
+
var readClientCommandOutput = (argv, options = {}) => {
|
|
64439
|
+
const spawnSyncFn = options.spawn ?? defaultSyncSpawn;
|
|
64440
|
+
const [command, ...args] = argv;
|
|
64441
|
+
const spawnOptions = {
|
|
64442
|
+
stdio: "pipe",
|
|
64443
|
+
encoding: "utf8",
|
|
64444
|
+
...process.platform === "win32" ? { shell: true } : {}
|
|
64445
|
+
};
|
|
64446
|
+
if (options.env)
|
|
64447
|
+
spawnOptions.env = { ...process.env, ...options.env };
|
|
64448
|
+
const result = spawnSyncFn(command, args, spawnOptions);
|
|
64449
|
+
if (result.error || result.status !== 0)
|
|
64450
|
+
return void 0;
|
|
64451
|
+
return result.stdout == null ? void 0 : String(result.stdout);
|
|
64452
|
+
};
|
|
64438
64453
|
|
|
64439
64454
|
// src/utils/external.ts
|
|
64440
64455
|
var OPENABLE_URL_PROTOCOLS = /* @__PURE__ */ new Set(["http:", "https:"]);
|
|
@@ -64614,6 +64629,7 @@ var importProject = async (file) => {
|
|
|
64614
64629
|
return { path: path3, size: bytes.byteLength };
|
|
64615
64630
|
};
|
|
64616
64631
|
var listProjects = async () => getSdk().projects.getAll();
|
|
64632
|
+
var getProjectSettings = async () => getSdk().project.getSettings();
|
|
64617
64633
|
var getProjectById = async (projectId) => getSdk().projects.findById(projectId);
|
|
64618
64634
|
var initProject = async (token, projectId) => {
|
|
64619
64635
|
const trimmed = token.trim();
|
|
@@ -64975,6 +64991,7 @@ var getRunErrorMessage = (state) => {
|
|
|
64975
64991
|
};
|
|
64976
64992
|
|
|
64977
64993
|
export {
|
|
64994
|
+
DEFAULT_MCP_ACCESS_URL,
|
|
64978
64995
|
PLUGIN_PACKAGE_NAME,
|
|
64979
64996
|
PLUGIN_REPO_SOURCE,
|
|
64980
64997
|
userCwd,
|
|
@@ -65000,6 +65017,7 @@ export {
|
|
|
65000
65017
|
isRunningStatus,
|
|
65001
65018
|
isCompletedStatus,
|
|
65002
65019
|
runClientCommand,
|
|
65020
|
+
readClientCommandOutput,
|
|
65003
65021
|
openExternalUrl,
|
|
65004
65022
|
formatRunStatus,
|
|
65005
65023
|
getSdk,
|
|
@@ -65011,6 +65029,7 @@ export {
|
|
|
65011
65029
|
exportProject,
|
|
65012
65030
|
importProject,
|
|
65013
65031
|
listProjects,
|
|
65032
|
+
getProjectSettings,
|
|
65014
65033
|
getProjectById,
|
|
65015
65034
|
initProject,
|
|
65016
65035
|
hasProjectConfigFile,
|
|
@@ -65059,5 +65078,5 @@ export {
|
|
|
65059
65078
|
formatErrorMessage,
|
|
65060
65079
|
showError
|
|
65061
65080
|
};
|
|
65062
|
-
//# sourceMappingURL=chunk-
|
|
65063
|
-
//# debugId=
|
|
65081
|
+
//# sourceMappingURL=chunk-4F2H22FW.js.map
|
|
65082
|
+
//# debugId=8675dd77-a641-587c-a627-1283a7335316
|
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]="
|
|
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]="7dad2c83-efca-56ee-993a-465e4a3a77e6")}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-
|
|
69
|
+
} from "./chunk-4F2H22FW.js";
|
|
67
70
|
import "./chunk-XLIBEETK.js";
|
|
68
71
|
import "./chunk-3PJ4ZE2N.js";
|
|
69
72
|
import {
|
|
@@ -3153,6 +3156,125 @@ 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 buildPluginsCliArgv = (target, source) => [
|
|
3187
|
+
"npx",
|
|
3188
|
+
"-y",
|
|
3189
|
+
"plugins",
|
|
3190
|
+
"add",
|
|
3191
|
+
source,
|
|
3192
|
+
"--target",
|
|
3193
|
+
target,
|
|
3194
|
+
"--yes"
|
|
3195
|
+
];
|
|
3196
|
+
var runPluginsCli = ({ target, source, dryRun = false, runnerOptions }) => {
|
|
3197
|
+
const argv = buildPluginsCliArgv(target, source);
|
|
3198
|
+
const command = argv.join(" ");
|
|
3199
|
+
if (dryRun)
|
|
3200
|
+
return { action: "executed", command };
|
|
3201
|
+
const { ok, code } = runClientCommand(argv, {
|
|
3202
|
+
...runnerOptions,
|
|
3203
|
+
env: { ...PLUGINS_CLI_ENV }
|
|
3204
|
+
});
|
|
3205
|
+
if (!ok) {
|
|
3206
|
+
return {
|
|
3207
|
+
action: "unsupported",
|
|
3208
|
+
command,
|
|
3209
|
+
message: `\`${command}\` failed (exit ${code}).`
|
|
3210
|
+
};
|
|
3211
|
+
}
|
|
3212
|
+
return { action: "executed", command };
|
|
3213
|
+
};
|
|
3214
|
+
|
|
3215
|
+
// ../core/dist/install/codexVerify.js
|
|
3216
|
+
var MCP_SERVER_NAME = "bugbug";
|
|
3217
|
+
var PUBLISHED_PLUGIN_NAME = "bugbug";
|
|
3218
|
+
var resolveExpected = (ctx) => {
|
|
3219
|
+
const ref = ctx.pluginRef;
|
|
3220
|
+
if (ref?.kind !== "local") {
|
|
3221
|
+
return { pluginName: PUBLISHED_PLUGIN_NAME, mcpUrl: DEFAULT_MCP_ACCESS_URL };
|
|
3222
|
+
}
|
|
3223
|
+
const manifest = readJsonObject(join(ref.value, ".codex-plugin", "plugin.json"));
|
|
3224
|
+
const servers = getObject(readJsonObject(join(ref.value, ".mcp.json")), "mcpServers");
|
|
3225
|
+
const server = getObject(servers, MCP_SERVER_NAME);
|
|
3226
|
+
return {
|
|
3227
|
+
pluginName: typeof manifest.name === "string" ? manifest.name : PUBLISHED_PLUGIN_NAME,
|
|
3228
|
+
mcpUrl: typeof server.url === "string" ? server.url : void 0
|
|
3229
|
+
};
|
|
3230
|
+
};
|
|
3231
|
+
var listInstalledPlugins = (ctx) => {
|
|
3232
|
+
const output = readClientCommandOutput(["codex", "plugin", "list", "--json"], ctx.runnerOptions);
|
|
3233
|
+
if (!output)
|
|
3234
|
+
return [];
|
|
3235
|
+
try {
|
|
3236
|
+
const parsed = JSON.parse(output);
|
|
3237
|
+
return Array.isArray(parsed.installed) ? parsed.installed : [];
|
|
3238
|
+
} catch {
|
|
3239
|
+
return [];
|
|
3240
|
+
}
|
|
3241
|
+
};
|
|
3242
|
+
var isInstalled = (plugins, pluginId) => plugins.some((plugin) => plugin.pluginId === pluginId && plugin.installed === true);
|
|
3243
|
+
var readMcpServerUrl = (ctx) => {
|
|
3244
|
+
const output = readClientCommandOutput(["codex", "mcp", "get", MCP_SERVER_NAME, "--json"], ctx.runnerOptions);
|
|
3245
|
+
if (!output)
|
|
3246
|
+
return void 0;
|
|
3247
|
+
try {
|
|
3248
|
+
const parsed = JSON.parse(output);
|
|
3249
|
+
return typeof parsed.transport?.url === "string" ? parsed.transport.url : void 0;
|
|
3250
|
+
} catch {
|
|
3251
|
+
return void 0;
|
|
3252
|
+
}
|
|
3253
|
+
};
|
|
3254
|
+
var normalizeUrl = (url) => url.replace(/\/+$/, "");
|
|
3255
|
+
var verifyCodexInstall = (ctx) => {
|
|
3256
|
+
const expected = resolveExpected(ctx);
|
|
3257
|
+
const pluginId = `${expected.pluginName}@${PLUGINS_CLI_MARKETPLACE}`;
|
|
3258
|
+
let plugins = listInstalledPlugins(ctx);
|
|
3259
|
+
if (!isInstalled(plugins, pluginId)) {
|
|
3260
|
+
runClientCommand(["codex", "plugin", "add", pluginId], ctx.runnerOptions);
|
|
3261
|
+
plugins = listInstalledPlugins(ctx);
|
|
3262
|
+
if (!isInstalled(plugins, pluginId)) {
|
|
3263
|
+
return `Codex did not install \`${pluginId}\`; run \`codex plugin add ${pluginId}\`.`;
|
|
3264
|
+
}
|
|
3265
|
+
}
|
|
3266
|
+
const actualUrl = readMcpServerUrl(ctx);
|
|
3267
|
+
if (!actualUrl) {
|
|
3268
|
+
return `Codex has no \`${MCP_SERVER_NAME}\` MCP server after installing \`${pluginId}\`.`;
|
|
3269
|
+
}
|
|
3270
|
+
if (!expected.mcpUrl || normalizeUrl(actualUrl) === normalizeUrl(expected.mcpUrl)) {
|
|
3271
|
+
return void 0;
|
|
3272
|
+
}
|
|
3273
|
+
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)}`);
|
|
3274
|
+
const hint = conflicting.length ? ` Remove the conflicting plugin (\`${conflicting.join("`, `")}\`) and re-run the install.` : "";
|
|
3275
|
+
return `Codex resolves the \`${MCP_SERVER_NAME}\` MCP server to ${actualUrl}, expected ${expected.mcpUrl}.${hint}`;
|
|
3276
|
+
};
|
|
3277
|
+
|
|
3156
3278
|
// ../core/dist/install/clients.js
|
|
3157
3279
|
var CLIENTS = {
|
|
3158
3280
|
cursor: {
|
|
@@ -3186,6 +3308,7 @@ var CLIENTS = {
|
|
|
3186
3308
|
cliName: "codex",
|
|
3187
3309
|
detectDir: ".codex",
|
|
3188
3310
|
pluginsTarget: "codex",
|
|
3311
|
+
verifyInstall: verifyCodexInstall,
|
|
3189
3312
|
postInstallAuth: {
|
|
3190
3313
|
command: "codex",
|
|
3191
3314
|
resetCheckArgs: ["mcp", "get", "bugbug"],
|
|
@@ -3204,40 +3327,6 @@ var CLIENTS = {
|
|
|
3204
3327
|
}
|
|
3205
3328
|
};
|
|
3206
3329
|
|
|
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
3330
|
// ../core/dist/install/installPlugin.js
|
|
3242
3331
|
var runPostInstallAuth = (ctx, auth) => {
|
|
3243
3332
|
const resetCommand = auth.resetArgs ? [auth.command, ...auth.resetArgs].join(" ") : void 0;
|
|
@@ -3270,7 +3359,14 @@ var installPlugin = (client, ctx) => {
|
|
|
3270
3359
|
dryRun: ctx.dryRun,
|
|
3271
3360
|
runnerOptions: ctx.runnerOptions
|
|
3272
3361
|
});
|
|
3273
|
-
if (
|
|
3362
|
+
if (action !== "executed") {
|
|
3363
|
+
return { client, path: command, action, message };
|
|
3364
|
+
}
|
|
3365
|
+
const verifyMessage = ctx.dryRun ? void 0 : definition.verifyInstall?.(ctx);
|
|
3366
|
+
if (verifyMessage) {
|
|
3367
|
+
return { client, path: command, action: "unsupported", message: verifyMessage };
|
|
3368
|
+
}
|
|
3369
|
+
if (!definition.postInstallAuth) {
|
|
3274
3370
|
return { client, path: command, action, message };
|
|
3275
3371
|
}
|
|
3276
3372
|
const login2 = runPostInstallAuth(ctx, definition.postInstallAuth);
|
|
@@ -3464,7 +3560,34 @@ var registerProfilesCommand = (program3) => {
|
|
|
3464
3560
|
return profiles;
|
|
3465
3561
|
};
|
|
3466
3562
|
|
|
3563
|
+
// src/features/project/project.formatters.ts
|
|
3564
|
+
var projectSettingsOutputFormatters = {
|
|
3565
|
+
toPlain(settings) {
|
|
3566
|
+
return renderTable(Object.entries(settings), [
|
|
3567
|
+
{ header: "Setting", get: ([key]) => key },
|
|
3568
|
+
{
|
|
3569
|
+
header: "Value",
|
|
3570
|
+
get: ([, value]) => {
|
|
3571
|
+
if (value === null || value === void 0) return "N/A";
|
|
3572
|
+
return typeof value === "object" ? JSON.stringify(value) : String(value);
|
|
3573
|
+
}
|
|
3574
|
+
}
|
|
3575
|
+
]);
|
|
3576
|
+
},
|
|
3577
|
+
toJson: (settings) => settings
|
|
3578
|
+
};
|
|
3579
|
+
|
|
3467
3580
|
// src/features/project/project.command.ts
|
|
3581
|
+
var registerProjectSettingsCommand = (parent) => parent.command("settings").description("Show project settings").action(async () => {
|
|
3582
|
+
const mode = resolveOutputMode();
|
|
3583
|
+
try {
|
|
3584
|
+
const settings = await getProjectSettings();
|
|
3585
|
+
await renderOutput(mode, settings, projectSettingsOutputFormatters);
|
|
3586
|
+
} catch (err) {
|
|
3587
|
+
emitError(mode, { error: err instanceof Error ? err.message : String(err) });
|
|
3588
|
+
exitWith(EXIT_GENERAL_ERROR);
|
|
3589
|
+
}
|
|
3590
|
+
});
|
|
3468
3591
|
var registerProjectInitCommand = (parent, commandName = "init") => parent.command(commandName).description("Initialize a new BugBug project in the current directory.").action(async () => {
|
|
3469
3592
|
const mode = resolveOutputMode();
|
|
3470
3593
|
const { token, projectId } = getCliConfig();
|
|
@@ -3530,6 +3653,7 @@ var registerProjectImportCommand = (parent, commandName = "import") => parent.co
|
|
|
3530
3653
|
var registerProjectCommand = (program3) => {
|
|
3531
3654
|
const project = program3.command("project").description("Project commands");
|
|
3532
3655
|
registerProjectInitCommand(project, "init");
|
|
3656
|
+
registerProjectSettingsCommand(project);
|
|
3533
3657
|
registerProjectExportCommand(project, "export");
|
|
3534
3658
|
registerProjectImportCommand(project, "import");
|
|
3535
3659
|
return project;
|
|
@@ -4436,7 +4560,7 @@ program2.exitOverride();
|
|
|
4436
4560
|
});
|
|
4437
4561
|
analytics.trackEvent("cli_session_started");
|
|
4438
4562
|
if (startupMode.type === "commandline" && await shouldRedirectUnauthenticatedCommandToInit(process.argv, hasUsableSession)) {
|
|
4439
|
-
const { startNavigator } = await import("./app-
|
|
4563
|
+
const { startNavigator } = await import("./app-MFBVF6Q2.js");
|
|
4440
4564
|
await startNavigator({
|
|
4441
4565
|
initialRoute: "/init",
|
|
4442
4566
|
initialRouteState: {
|
|
@@ -4448,7 +4572,7 @@ program2.exitOverride();
|
|
|
4448
4572
|
return;
|
|
4449
4573
|
}
|
|
4450
4574
|
if (startupMode.type === "navigator") {
|
|
4451
|
-
const { startNavigator } = await import("./app-
|
|
4575
|
+
const { startNavigator } = await import("./app-MFBVF6Q2.js");
|
|
4452
4576
|
await startNavigator({
|
|
4453
4577
|
initialRoute: startupMode.route,
|
|
4454
4578
|
token: config.token,
|
|
@@ -4485,4 +4609,4 @@ program2.exitOverride();
|
|
|
4485
4609
|
}
|
|
4486
4610
|
})();
|
|
4487
4611
|
//# sourceMappingURL=index.js.map
|
|
4488
|
-
//# debugId=
|
|
4612
|
+
//# debugId=7dad2c83-efca-56ee-993a-465e4a3a77e6
|