@bugbug-io/cli 14.12.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.
|
@@ -62,7 +62,7 @@ import {
|
|
|
62
62
|
waitForSuiteRun,
|
|
63
63
|
waitForTestRun,
|
|
64
64
|
writeReportXml
|
|
65
|
-
} from "./chunk-
|
|
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-
|
|
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-
|
|
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-
|
|
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]="
|
|
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.
|
|
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
|
|
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
|
-
|
|
48103
|
-
|
|
48104
|
-
|
|
48105
|
-
|
|
48106
|
-
|
|
48107
|
-
|
|
48108
|
-
}
|
|
48109
|
-
|
|
48110
|
-
}
|
|
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.
|
|
58392
|
+
version: "14.13.0",
|
|
58337
58393
|
private: true,
|
|
58338
58394
|
type: "module",
|
|
58339
58395
|
main: "dist/index.js",
|
|
@@ -65078,5 +65134,5 @@ export {
|
|
|
65078
65134
|
formatErrorMessage,
|
|
65079
65135
|
showError
|
|
65080
65136
|
};
|
|
65081
|
-
//# sourceMappingURL=chunk-
|
|
65082
|
-
//# debugId=
|
|
65137
|
+
//# sourceMappingURL=chunk-H5GEPM6E.js.map
|
|
65138
|
+
//# debugId=9c1eeb28-b715-561a-bb16-fdf41fafcc76
|
package/dist/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
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]="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 {
|
|
@@ -66,7 +66,7 @@ import {
|
|
|
66
66
|
waitForSuiteRun,
|
|
67
67
|
waitForTestRun,
|
|
68
68
|
writeReportXml
|
|
69
|
-
} from "./chunk-
|
|
69
|
+
} from "./chunk-H5GEPM6E.js";
|
|
70
70
|
import "./chunk-XLIBEETK.js";
|
|
71
71
|
import "./chunk-3PJ4ZE2N.js";
|
|
72
72
|
import {
|
|
@@ -3183,10 +3183,11 @@ var PLUGINS_CLI_ENV = {
|
|
|
3183
3183
|
DO_NOT_TRACK: "1"
|
|
3184
3184
|
};
|
|
3185
3185
|
var PLUGINS_CLI_MARKETPLACE = "plugins-cli";
|
|
3186
|
+
var PLUGINS_CLI_PACKAGE = "plugins@1.3.5";
|
|
3186
3187
|
var buildPluginsCliArgv = (target, source) => [
|
|
3187
3188
|
"npx",
|
|
3188
3189
|
"-y",
|
|
3189
|
-
|
|
3190
|
+
PLUGINS_CLI_PACKAGE,
|
|
3190
3191
|
"add",
|
|
3191
3192
|
source,
|
|
3192
3193
|
"--target",
|
|
@@ -4560,7 +4561,7 @@ program2.exitOverride();
|
|
|
4560
4561
|
});
|
|
4561
4562
|
analytics.trackEvent("cli_session_started");
|
|
4562
4563
|
if (startupMode.type === "commandline" && await shouldRedirectUnauthenticatedCommandToInit(process.argv, hasUsableSession)) {
|
|
4563
|
-
const { startNavigator } = await import("./app-
|
|
4564
|
+
const { startNavigator } = await import("./app-KCQRODEZ.js");
|
|
4564
4565
|
await startNavigator({
|
|
4565
4566
|
initialRoute: "/init",
|
|
4566
4567
|
initialRouteState: {
|
|
@@ -4572,7 +4573,7 @@ program2.exitOverride();
|
|
|
4572
4573
|
return;
|
|
4573
4574
|
}
|
|
4574
4575
|
if (startupMode.type === "navigator") {
|
|
4575
|
-
const { startNavigator } = await import("./app-
|
|
4576
|
+
const { startNavigator } = await import("./app-KCQRODEZ.js");
|
|
4576
4577
|
await startNavigator({
|
|
4577
4578
|
initialRoute: startupMode.route,
|
|
4578
4579
|
token: config.token,
|
|
@@ -4609,4 +4610,4 @@ program2.exitOverride();
|
|
|
4609
4610
|
}
|
|
4610
4611
|
})();
|
|
4611
4612
|
//# sourceMappingURL=index.js.map
|
|
4612
|
-
//# debugId=
|
|
4613
|
+
//# debugId=6d7999fb-fef8-5334-afcb-dbaf0a606051
|