@alwaysmeticulous/cli 2.297.1 → 2.298.1
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/command-utils/common-options.d.ts +1 -0
- package/dist/command-utils/common-options.d.ts.map +1 -0
- package/dist/command-utils/download-session.utils.d.ts +3 -2
- package/dist/command-utils/download-session.utils.d.ts.map +1 -0
- package/dist/command-utils/download-session.utils.js +2 -2
- package/dist/command-utils/download-session.utils.js.map +1 -1
- package/dist/command-utils/parse-rewrites.d.ts +2 -1
- package/dist/command-utils/parse-rewrites.d.ts.map +1 -0
- package/dist/command-utils/sentry.utils.d.ts +1 -0
- package/dist/command-utils/sentry.utils.d.ts.map +1 -0
- package/dist/command-utils/sentry.utils.js +4 -4
- package/dist/command-utils/sentry.utils.js.map +1 -1
- package/dist/commands/agent/index.d.ts +2 -1
- package/dist/commands/agent/index.d.ts.map +1 -0
- package/dist/commands/agent/js-coverage-diff.command.d.ts +2 -1
- package/dist/commands/agent/js-coverage-diff.command.d.ts.map +1 -0
- package/dist/commands/agent/js-coverage.command.d.ts +2 -1
- package/dist/commands/agent/js-coverage.command.d.ts.map +1 -0
- package/dist/commands/agent/js-coverage.command.js +13 -10
- package/dist/commands/agent/js-coverage.command.js.map +1 -1
- package/dist/commands/agent/screenshot-dom-diff.command.d.ts +2 -1
- package/dist/commands/agent/screenshot-dom-diff.command.d.ts.map +1 -0
- package/dist/commands/agent/screenshot-image-files.command.d.ts +2 -1
- package/dist/commands/agent/screenshot-image-files.command.d.ts.map +1 -0
- package/dist/commands/agent/screenshot-image.command.d.ts +2 -1
- package/dist/commands/agent/screenshot-image.command.d.ts.map +1 -0
- package/dist/commands/agent/test-run-diffs.command.d.ts +6 -2
- package/dist/commands/agent/test-run-diffs.command.d.ts.map +1 -0
- package/dist/commands/agent/test-run-diffs.command.js +71 -53
- package/dist/commands/agent/test-run-diffs.command.js.map +1 -1
- package/dist/commands/agent/test-run-diffs.utils.d.ts +44 -0
- package/dist/commands/agent/test-run-diffs.utils.d.ts.map +1 -0
- package/dist/commands/agent/test-run-diffs.utils.js +65 -0
- package/dist/commands/agent/test-run-diffs.utils.js.map +1 -0
- package/dist/commands/agent/test-run-diffs.utils.spec.d.ts +2 -0
- package/dist/commands/agent/test-run-diffs.utils.spec.d.ts.map +1 -0
- package/dist/commands/agent/test-run-diffs.utils.spec.js +186 -0
- package/dist/commands/agent/test-run-diffs.utils.spec.js.map +1 -0
- package/dist/commands/agent/test-run-for-commit.command.d.ts +2 -2
- package/dist/commands/agent/test-run-for-commit.command.d.ts.map +1 -0
- package/dist/commands/agent/test-run-for-commit.command.js +9 -19
- package/dist/commands/agent/test-run-for-commit.command.js.map +1 -1
- package/dist/commands/agent/timeline.command.d.ts +2 -1
- package/dist/commands/agent/timeline.command.d.ts.map +1 -0
- package/dist/commands/auth/index.d.ts +2 -1
- package/dist/commands/auth/index.d.ts.map +1 -0
- package/dist/commands/auth/logout.command.d.ts +2 -1
- package/dist/commands/auth/logout.command.d.ts.map +1 -0
- package/dist/commands/auth/logout.command.js +5 -4
- package/dist/commands/auth/logout.command.js.map +1 -1
- package/dist/commands/auth/set-project.command.d.ts +2 -1
- package/dist/commands/auth/set-project.command.d.ts.map +1 -0
- package/dist/commands/auth/set-project.command.js +2 -2
- package/dist/commands/auth/set-project.command.js.map +1 -1
- package/dist/commands/auth/unset-project.command.d.ts +2 -1
- package/dist/commands/auth/unset-project.command.d.ts.map +1 -0
- package/dist/commands/auth/unset-project.command.js +4 -3
- package/dist/commands/auth/unset-project.command.js.map +1 -1
- package/dist/commands/auth/whoami.command.d.ts +2 -1
- package/dist/commands/auth/whoami.command.d.ts.map +1 -0
- package/dist/commands/ci/index.d.ts +2 -1
- package/dist/commands/ci/index.d.ts.map +1 -0
- package/dist/commands/ci/prepare.command.d.ts +3 -2
- package/dist/commands/ci/prepare.command.d.ts.map +1 -0
- package/dist/commands/ci/resolve-git-options.d.ts +1 -0
- package/dist/commands/ci/resolve-git-options.d.ts.map +1 -0
- package/dist/commands/ci/resolve-git-options.js +8 -3
- package/dist/commands/ci/resolve-git-options.js.map +1 -1
- package/dist/commands/ci/run-local.command.d.ts +4 -3
- package/dist/commands/ci/run-local.command.d.ts.map +1 -0
- package/dist/commands/ci/run-local.command.js +2 -2
- package/dist/commands/ci/run-local.command.js.map +1 -1
- package/dist/commands/ci/run-with-uploaded-asset-chunks.command.d.ts +2 -1
- package/dist/commands/ci/run-with-uploaded-asset-chunks.command.d.ts.map +1 -0
- package/dist/commands/ci/run-with-uploaded-asset-chunks.command.js +2 -2
- package/dist/commands/ci/run-with-uploaded-asset-chunks.command.js.map +1 -1
- package/dist/commands/ci/run.command.d.ts +2 -1
- package/dist/commands/ci/run.command.d.ts.map +1 -0
- package/dist/commands/ci/run.command.js +10 -4
- package/dist/commands/ci/run.command.js.map +1 -1
- package/dist/commands/ci/start-tunnel.command.d.ts +2 -1
- package/dist/commands/ci/start-tunnel.command.d.ts.map +1 -0
- package/dist/commands/ci/start-tunnel.command.js +3 -3
- package/dist/commands/ci/start-tunnel.command.js.map +1 -1
- package/dist/commands/ci/upload-asset-chunk.command.d.ts +2 -1
- package/dist/commands/ci/upload-asset-chunk.command.d.ts.map +1 -0
- package/dist/commands/ci/upload-assets.command.d.ts +2 -1
- package/dist/commands/ci/upload-assets.command.d.ts.map +1 -0
- package/dist/commands/ci/upload-assets.command.js +3 -3
- package/dist/commands/ci/upload-assets.command.js.map +1 -1
- package/dist/commands/ci/upload-container.command.d.ts +3 -2
- package/dist/commands/ci/upload-container.command.d.ts.map +1 -0
- package/dist/commands/ci/upload-container.command.js +2 -2
- package/dist/commands/ci/upload-container.command.js.map +1 -1
- package/dist/commands/debug/clean-workspaces.d.ts +1 -0
- package/dist/commands/debug/clean-workspaces.d.ts.map +1 -0
- package/dist/commands/debug/index.d.ts +2 -1
- package/dist/commands/debug/index.d.ts.map +1 -0
- package/dist/commands/debug/index.js +2 -2
- package/dist/commands/debug/index.js.map +1 -1
- package/dist/commands/debug/present-workspace.d.ts +1 -0
- package/dist/commands/debug/present-workspace.d.ts.map +1 -0
- package/dist/commands/debug/present-workspace.js +2 -2
- package/dist/commands/debug/present-workspace.js.map +1 -1
- package/dist/commands/debug/project-worktree.d.ts +2 -1
- package/dist/commands/debug/project-worktree.d.ts.map +1 -0
- package/dist/commands/deprecated-aliases.d.ts +2 -1
- package/dist/commands/deprecated-aliases.d.ts.map +1 -0
- package/dist/commands/download/index.d.ts +2 -1
- package/dist/commands/download/index.d.ts.map +1 -0
- package/dist/commands/download/replay.command.d.ts +2 -1
- package/dist/commands/download/replay.command.d.ts.map +1 -0
- package/dist/commands/download/session.command.d.ts +2 -1
- package/dist/commands/download/session.command.d.ts.map +1 -0
- package/dist/commands/download/test-run.command.d.ts +2 -1
- package/dist/commands/download/test-run.command.d.ts.map +1 -0
- package/dist/commands/download/test-run.command.js +2 -2
- package/dist/commands/download/test-run.command.js.map +1 -1
- package/dist/commands/local/get-edited-files.utils.d.ts +2 -1
- package/dist/commands/local/get-edited-files.utils.d.ts.map +1 -0
- package/dist/commands/local/get-edited-files.utils.js +3 -3
- package/dist/commands/local/get-edited-files.utils.js.map +1 -1
- package/dist/commands/local/get-edited-files.utils.spec.d.ts +1 -0
- package/dist/commands/local/get-edited-files.utils.spec.d.ts.map +1 -0
- package/dist/commands/local/index.d.ts +2 -1
- package/dist/commands/local/index.d.ts.map +1 -0
- package/dist/commands/local/relevant-sessions.command.d.ts +2 -1
- package/dist/commands/local/relevant-sessions.command.d.ts.map +1 -0
- package/dist/commands/local/relevant-sessions.command.js +2 -2
- package/dist/commands/local/relevant-sessions.command.js.map +1 -1
- package/dist/commands/project/index.d.ts +2 -1
- package/dist/commands/project/index.d.ts.map +1 -0
- package/dist/commands/project/index.js +7 -3
- package/dist/commands/project/index.js.map +1 -1
- package/dist/commands/project/show.command.d.ts +2 -1
- package/dist/commands/project/show.command.d.ts.map +1 -0
- package/dist/commands/project/show.command.js +2 -2
- package/dist/commands/project/show.command.js.map +1 -1
- package/dist/commands/project/upload-source.command.d.ts +2 -1
- package/dist/commands/project/upload-source.command.d.ts.map +1 -0
- package/dist/commands/record/index.d.ts +2 -1
- package/dist/commands/record/index.d.ts.map +1 -0
- package/dist/commands/record/login.command.d.ts +2 -1
- package/dist/commands/record/login.command.d.ts.map +1 -0
- package/dist/commands/record/login.command.js +2 -2
- package/dist/commands/record/login.command.js.map +1 -1
- package/dist/commands/record/session.command.d.ts +2 -1
- package/dist/commands/record/session.command.d.ts.map +1 -0
- package/dist/commands/record/session.command.js +2 -2
- package/dist/commands/record/session.command.js.map +1 -1
- package/dist/commands/replay-debugger.ui.d.ts +4 -3
- package/dist/commands/replay-debugger.ui.d.ts.map +1 -0
- package/dist/commands/replay-debugger.ui.js +2 -2
- package/dist/commands/replay-debugger.ui.js.map +1 -1
- package/dist/commands/replay.command.d.ts +4 -3
- package/dist/commands/replay.command.d.ts.map +1 -0
- package/dist/commands/replay.command.js +8 -4
- package/dist/commands/replay.command.js.map +1 -1
- package/dist/commands/schema.command.d.ts +2 -1
- package/dist/commands/schema.command.d.ts.map +1 -0
- package/dist/commands/schema.command.js +4 -3
- package/dist/commands/schema.command.js.map +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/main.d.ts +1 -0
- package/dist/main.d.ts.map +1 -0
- package/dist/main.js +2 -2
- package/dist/main.js.map +1 -1
- package/dist/utils/__tests__/handle-auth-failure.spec.d.ts +1 -0
- package/dist/utils/__tests__/handle-auth-failure.spec.d.ts.map +1 -0
- package/dist/utils/__tests__/handle-auth-failure.spec.js +2 -2
- package/dist/utils/__tests__/handle-auth-failure.spec.js.map +1 -1
- package/dist/utils/__tests__/resolve-project-identifier.spec.d.ts +1 -0
- package/dist/utils/__tests__/resolve-project-identifier.spec.d.ts.map +1 -0
- package/dist/utils/__tests__/resolve-test-run-from-commit.spec.d.ts +2 -0
- package/dist/utils/__tests__/resolve-test-run-from-commit.spec.d.ts.map +1 -0
- package/dist/utils/__tests__/resolve-test-run-from-commit.spec.js +65 -0
- package/dist/utils/__tests__/resolve-test-run-from-commit.spec.js.map +1 -0
- package/dist/utils/cli-user-error.d.ts +1 -0
- package/dist/utils/cli-user-error.d.ts.map +1 -0
- package/dist/utils/constants.d.ts +1 -0
- package/dist/utils/constants.d.ts.map +1 -0
- package/dist/utils/environment.utils.d.ts +1 -0
- package/dist/utils/environment.utils.d.ts.map +1 -0
- package/dist/utils/format-coverage-ranges.d.ts +2 -1
- package/dist/utils/format-coverage-ranges.d.ts.map +1 -0
- package/dist/utils/handle-auth-failure.d.ts +1 -0
- package/dist/utils/handle-auth-failure.d.ts.map +1 -0
- package/dist/utils/out-of-date-client-error.d.ts +2 -1
- package/dist/utils/out-of-date-client-error.d.ts.map +1 -0
- package/dist/utils/resolve-project-identifier.d.ts +1 -0
- package/dist/utils/resolve-project-identifier.d.ts.map +1 -0
- package/dist/utils/resolve-test-run-from-commit.d.ts +29 -11
- package/dist/utils/resolve-test-run-from-commit.d.ts.map +1 -0
- package/dist/utils/resolve-test-run-from-commit.js +64 -24
- package/dist/utils/resolve-test-run-from-commit.js.map +1 -1
- package/package.json +14 -14
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
"use strict";
|
|
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]="745a03e3-8218-5e27-8e96-123d2cacb50e")}catch(e){}}();
|
|
3
|
+
|
|
4
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
|
+
exports.formatDiffRow = exports.buildDiffsSummaryHeader = exports.flattenDiffRows = exports.resolveIncludeAllDiffs = void 0;
|
|
6
|
+
const fmtMismatch = (v) => v != null ? v.toFixed(5) : "";
|
|
7
|
+
/**
|
|
8
|
+
* --includeMatches implies --includeAllDiffs: matches are never part of the
|
|
9
|
+
* selected representative subset, so they only make sense alongside the full
|
|
10
|
+
* set of diffs.
|
|
11
|
+
*/
|
|
12
|
+
const resolveIncludeAllDiffs = ({ includeAllDiffs, includeMatches, }) => includeAllDiffs || includeMatches;
|
|
13
|
+
exports.resolveIncludeAllDiffs = resolveIncludeAllDiffs;
|
|
14
|
+
/**
|
|
15
|
+
* Flattens replay diffs into one list of rows. By default the backend's `index`
|
|
16
|
+
* is a flat cross-replay-diff priority rank, so we sort by it (a flat order the
|
|
17
|
+
* grouped response can't express). With orderByReplayDiffs the backend already
|
|
18
|
+
* returns rows grouped by replay diff in event order, which we preserve.
|
|
19
|
+
*/
|
|
20
|
+
const flattenDiffRows = (data, orderByReplayDiffs) => {
|
|
21
|
+
const rows = data.flatMap((replayDiff) => replayDiff.screenshots.map((screenshot) => ({ replayDiff, screenshot })));
|
|
22
|
+
if (!orderByReplayDiffs) {
|
|
23
|
+
rows.sort((a, b) => a.screenshot.index - b.screenshot.index);
|
|
24
|
+
}
|
|
25
|
+
return rows;
|
|
26
|
+
};
|
|
27
|
+
exports.flattenDiffRows = flattenDiffRows;
|
|
28
|
+
/**
|
|
29
|
+
* Builds the TSV header. index/total are only meaningful with orderByReplayDiffs;
|
|
30
|
+
* by default rows are already in priority order, so the index is omitted.
|
|
31
|
+
*/
|
|
32
|
+
const buildDiffsSummaryHeader = (columns) => {
|
|
33
|
+
const fields = ["replayDiffId", "screenshotName"];
|
|
34
|
+
if (columns.orderByReplayDiffs)
|
|
35
|
+
fields.push("index", "total");
|
|
36
|
+
fields.push("outcome", "mismatch");
|
|
37
|
+
if (columns.includeDomDiffIds)
|
|
38
|
+
fields.push("domDiffIds");
|
|
39
|
+
if (columns.includeAllDiffs)
|
|
40
|
+
fields.push("isSelected");
|
|
41
|
+
if (columns.includeReplayIds)
|
|
42
|
+
fields.push("baseReplayId", "headReplayId");
|
|
43
|
+
return fields;
|
|
44
|
+
};
|
|
45
|
+
exports.buildDiffsSummaryHeader = buildDiffsSummaryHeader;
|
|
46
|
+
/** Formats a single row's fields, gated by the same columns as the header. */
|
|
47
|
+
const formatDiffRow = ({ replayDiff, screenshot }, columns) => {
|
|
48
|
+
const fields = [
|
|
49
|
+
replayDiff.replayDiffId,
|
|
50
|
+
screenshot.screenshotName,
|
|
51
|
+
];
|
|
52
|
+
if (columns.orderByReplayDiffs)
|
|
53
|
+
fields.push(screenshot.index, screenshot.total ?? "");
|
|
54
|
+
fields.push(screenshot.outcome, fmtMismatch(screenshot.mismatchFraction));
|
|
55
|
+
if (columns.includeDomDiffIds)
|
|
56
|
+
fields.push(screenshot.domDiffIds ?? "");
|
|
57
|
+
if (columns.includeAllDiffs)
|
|
58
|
+
fields.push(String(screenshot.isSelected ?? false));
|
|
59
|
+
if (columns.includeReplayIds)
|
|
60
|
+
fields.push(replayDiff.baseReplayId ?? "", replayDiff.headReplayId ?? "");
|
|
61
|
+
return fields;
|
|
62
|
+
};
|
|
63
|
+
exports.formatDiffRow = formatDiffRow;
|
|
64
|
+
//# sourceMappingURL=test-run-diffs.utils.js.map
|
|
65
|
+
//# debugId=745a03e3-8218-5e27-8e96-123d2cacb50e
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"test-run-diffs.utils.js","sources":["../../../src/commands/agent/test-run-diffs.utils.ts"],"sourceRoot":"","names":[],"mappings":";;;;;AA0BA,MAAM,WAAW,GAAG,CAAC,CAAgB,EAAU,EAAE,CAC/C,CAAC,IAAI,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC;AAEhC;;;;GAIG;AACI,MAAM,sBAAsB,GAAG,CAAC,EACrC,eAAe,EACf,cAAc,GAIf,EAAW,EAAE,CAAC,eAAe,IAAI,cAAc,CAAC;AANpC,QAAA,sBAAsB,0BAMc;AAEjD;;;;;GAKG;AACI,MAAM,eAAe,GAAG,CAC7B,IAA8B,EAC9B,kBAA2B,EAChB,EAAE;IACb,MAAM,IAAI,GA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C1B,CAAC;IACF,IAAI,OAAO,CAAC,kBAAkB;QAC5B,MAAM,CAAC,IAAI,CAAC,UAAU,CAAC,KAAK,EAAE,UAAU,CAAC,KAAK,IAAI,EAAE,CAAC,CAAC;IACxD,MAAM,CAAC,IAAI,CAAC,UAAU,CAAC,OAAO,EAAE,WAAW,CAAC,UAAU,CAAC,gBAAgB,CAAC,CAAC,CAAC;IAC1E,IAAI,OAAO,CAAC,iBAAiB;QAAE,MAAM,CAAC,IAAI,CAAC,UAAU,CAAC,UAAU,IAAI,EAAE,CAAC,CAAC;IACxE,IAAI,OAAO,CAAC,eAAe;QACzB,MAAM,CAAC,IAAI,CAAC,MAAM,CAAC,UAAU,CAAC,UAAU,IAAI,KAAK,CAAC,CAAC,CAAC;IACtD,IAAI,OAAO,CAAC,gBAAgB;QAC1B,MAAM,CAAC,IAAI,CAAC,UAAU,CAAC,YAAY,IAAI,EAAE,EAAE,UAAU,CAAC,YAAY,IAAI,EAAE,CAAC,CAAC;IAC5E,OAAO,MAAM,CAAC;AAChB,CAAC,CAAC;AAjBW,QAAA,aAAa,iBAiBxB","debugId":"745a03e3-8218-5e27-8e96-123d2cacb50e"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"test-run-diffs.utils.spec.d.ts","sourceRoot":"","sources":["../../../src/commands/agent/test-run-diffs.utils.spec.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,186 @@
|
|
|
1
|
+
"use strict";
|
|
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]="01396d98-db6c-5229-a055-4321c4a9ed86")}catch(e){}}();
|
|
3
|
+
|
|
4
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
|
+
const vitest_1 = require("vitest");
|
|
6
|
+
const test_run_diffs_utils_1 = require("./test-run-diffs.utils");
|
|
7
|
+
const screenshot = (overrides) => ({
|
|
8
|
+
index: 0,
|
|
9
|
+
outcome: "different",
|
|
10
|
+
userVisibleOutcome: "difference",
|
|
11
|
+
mismatchFraction: 0.1,
|
|
12
|
+
...overrides,
|
|
13
|
+
});
|
|
14
|
+
const replayDiff = (overrides) => ({
|
|
15
|
+
screenshots: [],
|
|
16
|
+
...overrides,
|
|
17
|
+
});
|
|
18
|
+
const NO_COLUMNS = {
|
|
19
|
+
orderByReplayDiffs: false,
|
|
20
|
+
includeDomDiffIds: false,
|
|
21
|
+
includeAllDiffs: false,
|
|
22
|
+
includeReplayIds: false,
|
|
23
|
+
};
|
|
24
|
+
(0, vitest_1.describe)("resolveIncludeAllDiffs", () => {
|
|
25
|
+
(0, vitest_1.test)("is false when neither flag is set", () => {
|
|
26
|
+
(0, vitest_1.expect)((0, test_run_diffs_utils_1.resolveIncludeAllDiffs)({ includeAllDiffs: false, includeMatches: false })).toBe(false);
|
|
27
|
+
});
|
|
28
|
+
(0, vitest_1.test)("--includeAllDiffs alone enables it", () => {
|
|
29
|
+
(0, vitest_1.expect)((0, test_run_diffs_utils_1.resolveIncludeAllDiffs)({ includeAllDiffs: true, includeMatches: false })).toBe(true);
|
|
30
|
+
});
|
|
31
|
+
(0, vitest_1.test)("--includeMatches implies --includeAllDiffs", () => {
|
|
32
|
+
(0, vitest_1.expect)((0, test_run_diffs_utils_1.resolveIncludeAllDiffs)({ includeAllDiffs: false, includeMatches: true })).toBe(true);
|
|
33
|
+
});
|
|
34
|
+
});
|
|
35
|
+
(0, vitest_1.describe)("flattenDiffRows", () => {
|
|
36
|
+
const data = [
|
|
37
|
+
replayDiff({
|
|
38
|
+
replayDiffId: "rd-1",
|
|
39
|
+
screenshots: [
|
|
40
|
+
screenshot({ screenshotName: "a", index: 2 }),
|
|
41
|
+
screenshot({ screenshotName: "b", index: 0 }),
|
|
42
|
+
],
|
|
43
|
+
}),
|
|
44
|
+
replayDiff({
|
|
45
|
+
replayDiffId: "rd-2",
|
|
46
|
+
screenshots: [screenshot({ screenshotName: "c", index: 1 })],
|
|
47
|
+
}),
|
|
48
|
+
];
|
|
49
|
+
(0, vitest_1.test)("sorts by priority index across replay diffs by default", () => {
|
|
50
|
+
const rows = (0, test_run_diffs_utils_1.flattenDiffRows)(data, false);
|
|
51
|
+
(0, vitest_1.expect)(rows.map((r) => r.screenshot.screenshotName)).toEqual([
|
|
52
|
+
"b",
|
|
53
|
+
"c",
|
|
54
|
+
"a",
|
|
55
|
+
]);
|
|
56
|
+
});
|
|
57
|
+
(0, vitest_1.test)("preserves replay-diff grouping order with orderByReplayDiffs", () => {
|
|
58
|
+
const rows = (0, test_run_diffs_utils_1.flattenDiffRows)(data, true);
|
|
59
|
+
(0, vitest_1.expect)(rows.map((r) => r.screenshot.screenshotName)).toEqual([
|
|
60
|
+
"a",
|
|
61
|
+
"b",
|
|
62
|
+
"c",
|
|
63
|
+
]);
|
|
64
|
+
});
|
|
65
|
+
});
|
|
66
|
+
(0, vitest_1.describe)("buildDiffsSummaryHeader", () => {
|
|
67
|
+
(0, vitest_1.test)("emits only the base columns by default", () => {
|
|
68
|
+
(0, vitest_1.expect)((0, test_run_diffs_utils_1.buildDiffsSummaryHeader)(NO_COLUMNS)).toEqual([
|
|
69
|
+
"replayDiffId",
|
|
70
|
+
"screenshotName",
|
|
71
|
+
"outcome",
|
|
72
|
+
"mismatch",
|
|
73
|
+
]);
|
|
74
|
+
});
|
|
75
|
+
(0, vitest_1.test)("adds index/total only with orderByReplayDiffs", () => {
|
|
76
|
+
(0, vitest_1.expect)((0, test_run_diffs_utils_1.buildDiffsSummaryHeader)({ ...NO_COLUMNS, orderByReplayDiffs: true })).toEqual([
|
|
77
|
+
"replayDiffId",
|
|
78
|
+
"screenshotName",
|
|
79
|
+
"index",
|
|
80
|
+
"total",
|
|
81
|
+
"outcome",
|
|
82
|
+
"mismatch",
|
|
83
|
+
]);
|
|
84
|
+
});
|
|
85
|
+
(0, vitest_1.test)("gates the optional columns independently", () => {
|
|
86
|
+
(0, vitest_1.expect)((0, test_run_diffs_utils_1.buildDiffsSummaryHeader)({
|
|
87
|
+
orderByReplayDiffs: true,
|
|
88
|
+
includeDomDiffIds: true,
|
|
89
|
+
includeAllDiffs: true,
|
|
90
|
+
includeReplayIds: true,
|
|
91
|
+
})).toEqual([
|
|
92
|
+
"replayDiffId",
|
|
93
|
+
"screenshotName",
|
|
94
|
+
"index",
|
|
95
|
+
"total",
|
|
96
|
+
"outcome",
|
|
97
|
+
"mismatch",
|
|
98
|
+
"domDiffIds",
|
|
99
|
+
"isSelected",
|
|
100
|
+
"baseReplayId",
|
|
101
|
+
"headReplayId",
|
|
102
|
+
]);
|
|
103
|
+
});
|
|
104
|
+
});
|
|
105
|
+
(0, vitest_1.describe)("formatDiffRow", () => {
|
|
106
|
+
const row = {
|
|
107
|
+
replayDiff: replayDiff({
|
|
108
|
+
replayDiffId: "rd-1",
|
|
109
|
+
baseReplayId: "base-1",
|
|
110
|
+
headReplayId: "head-1",
|
|
111
|
+
}),
|
|
112
|
+
screenshot: screenshot({
|
|
113
|
+
screenshotName: "home",
|
|
114
|
+
index: 3,
|
|
115
|
+
total: 7,
|
|
116
|
+
outcome: "different",
|
|
117
|
+
mismatchFraction: 0.12345678,
|
|
118
|
+
domDiffIds: "d1,d2",
|
|
119
|
+
isSelected: true,
|
|
120
|
+
}),
|
|
121
|
+
};
|
|
122
|
+
(0, vitest_1.test)("emits the base columns and formats the mismatch fraction", () => {
|
|
123
|
+
(0, vitest_1.expect)((0, test_run_diffs_utils_1.formatDiffRow)(row, NO_COLUMNS)).toEqual([
|
|
124
|
+
"rd-1",
|
|
125
|
+
"home",
|
|
126
|
+
"different",
|
|
127
|
+
"0.12346",
|
|
128
|
+
]);
|
|
129
|
+
});
|
|
130
|
+
(0, vitest_1.test)("renders a null mismatch fraction as an empty string", () => {
|
|
131
|
+
const withNull = {
|
|
132
|
+
...row,
|
|
133
|
+
screenshot: { ...row.screenshot, mismatchFraction: null },
|
|
134
|
+
};
|
|
135
|
+
(0, vitest_1.expect)((0, test_run_diffs_utils_1.formatDiffRow)(withNull, NO_COLUMNS)).toEqual([
|
|
136
|
+
"rd-1",
|
|
137
|
+
"home",
|
|
138
|
+
"different",
|
|
139
|
+
"",
|
|
140
|
+
]);
|
|
141
|
+
});
|
|
142
|
+
(0, vitest_1.test)("includes the gated columns in header order when enabled", () => {
|
|
143
|
+
(0, vitest_1.expect)((0, test_run_diffs_utils_1.formatDiffRow)(row, {
|
|
144
|
+
orderByReplayDiffs: true,
|
|
145
|
+
includeDomDiffIds: true,
|
|
146
|
+
includeAllDiffs: true,
|
|
147
|
+
includeReplayIds: true,
|
|
148
|
+
})).toEqual([
|
|
149
|
+
"rd-1",
|
|
150
|
+
"home",
|
|
151
|
+
3,
|
|
152
|
+
7,
|
|
153
|
+
"different",
|
|
154
|
+
"0.12346",
|
|
155
|
+
"d1,d2",
|
|
156
|
+
"true",
|
|
157
|
+
"base-1",
|
|
158
|
+
"head-1",
|
|
159
|
+
]);
|
|
160
|
+
});
|
|
161
|
+
(0, vitest_1.test)("falls back when optional screenshot fields are absent", () => {
|
|
162
|
+
const sparse = {
|
|
163
|
+
replayDiff: replayDiff({ replayDiffId: "rd-1" }),
|
|
164
|
+
screenshot: screenshot({ screenshotName: "home", index: 1 }),
|
|
165
|
+
};
|
|
166
|
+
(0, vitest_1.expect)((0, test_run_diffs_utils_1.formatDiffRow)(sparse, {
|
|
167
|
+
orderByReplayDiffs: true,
|
|
168
|
+
includeDomDiffIds: true,
|
|
169
|
+
includeAllDiffs: true,
|
|
170
|
+
includeReplayIds: true,
|
|
171
|
+
})).toEqual([
|
|
172
|
+
"rd-1",
|
|
173
|
+
"home",
|
|
174
|
+
1,
|
|
175
|
+
"",
|
|
176
|
+
"different",
|
|
177
|
+
"0.10000",
|
|
178
|
+
"",
|
|
179
|
+
"false",
|
|
180
|
+
"",
|
|
181
|
+
"",
|
|
182
|
+
]);
|
|
183
|
+
});
|
|
184
|
+
});
|
|
185
|
+
//# sourceMappingURL=test-run-diffs.utils.spec.js.map
|
|
186
|
+
//# debugId=01396d98-db6c-5229-a055-4321c4a9ed86
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"test-run-diffs.utils.spec.js","sources":["../../../src/commands/agent/test-run-diffs.utils.spec.ts"],"sourceRoot":"","names":[],"mappings":";;;;AAIA,mCAAgD;AAChD,iEAMgC;AAEhC,MAAM,UAAU,GAAG,CACjB,SAAuE,EAC/C,EAAE,CAAC,CAAC;IAC5B,KAAK,EAAE,CAAC;IACR,OAAO,EAAE,WAAW;IACpB,kBAAkB,EAAE,YAAY;IAChC,gBAAgB,EAAE,GAAG;IACrB,GAAG,SAAS;CACb,CAAC,CAAC;AAEH,MAAM,UAAU,GAAG,CACjB,SAAqE,EAC7C,EAAE,CAAC,CAAC;IAC5B,WAAW,EAAE,EAAE;IACf,GAAG,SAAS;CACb,CAAC,CAAC;AAEH,MAAM,UAAU,GAAwB;IACtC,kBAAkB,EAAE,KAAK;IACzB,iBAAiB,EAAE,KAAK;IACxB,eAAe,EAAE,KAAK;IACtB,gBAAgB,EAAE,KAAK;CACxB,CAAC;AAEF,IAAA,iBAAQ,EAAC,wBAAwB,EAAE,GAAG,EAAE;IACtC,IAAA,aAAI,EAAC,mCAAmC,EAAE,GAAG,EAAE;QAC7C,IAAA,eAAM,EACJ,IAAA,6CAAsB,EAAC,EAAE,eAAe,EAAE,KAAK,EAAE,cAAc,EAAE,KAAK,EAAE,CAAC,CAC1E,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;IAChB,CAAC,CAAC,CAAC;IAEH,IAAA,aAAI,EAAC,oCAAoC,EAAE,GAAG,EAAE;QAC9C,IAAA,eAAM,EACJ,IAAA,6CAAsB,EAAC,EAAE,eAAe,EAAE,IAAI,EAAE,cAAc,EAAE,KAAK,EAAE,CAAC,CACzE,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IACf,CAAC,CAAC,CAAC;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SAAS;YACT,OAAO;YACP,MAAM;YACN,QAAQ;YACR,QAAQ;SACT,CAAC,CAAC;IACL,CAAC,CAAC,CAAC;IAEH,IAAA,aAAI,EAAC,uDAAuD,EAAE,GAAG,EAAE;QACjE,MAAM,MAAM,GAAG;YACb,UAAU,EAAE,UAAU,CAAC,EAAE,YAAY,EAAE,MAAM,EAAE,CAAC;YAChD,UAAU,EAAE,UAAU,CAAC,EAAE,cAAc,EAAE,MAAM,EAAE,KAAK,EAAE,CAAC,EAAE,CAAC;SAC7D,CAAC;QACF,IAAA,eAAM,EACJ,IAAA,oCAAa,EAAC,MAAM,EAAE;YACpB,kBAAkB,EAAE,IAAI;YACxB,iBAAiB,EAAE,IAAI;YACvB,eAAe,EAAE,IAAI;YACrB,gBAAgB,EAAE,IAAI;SACvB,CAAC,CACH,CAAC,OAAO,CAAC;YACR,MAAM;YACN,MAAM;YACN,CAAC;YACD,EAAE;YACF,WAAW;YACX,SAAS;YACT,EAAE;YACF,OAAO;YACP,EAAE;YACF,EAAE;SACH,CAAC,CAAC;IACL,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC","debugId":"01396d98-db6c-5229-a055-4321c4a9ed86"}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { CommandModule } from "yargs";
|
|
1
|
+
import type { CommandModule } from "yargs";
|
|
2
2
|
interface Options {
|
|
3
3
|
apiToken?: string | null | undefined;
|
|
4
4
|
commitSha: string | undefined;
|
|
5
|
-
waitForTestRunToComplete: boolean;
|
|
6
5
|
json: boolean;
|
|
7
6
|
}
|
|
8
7
|
export declare const testRunForCommitCommand: CommandModule<unknown, Options>;
|
|
9
8
|
export {};
|
|
9
|
+
//# sourceMappingURL=test-run-for-commit.command.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"test-run-for-commit.command.d.ts","sourceRoot":"","sources":["../../../src/commands/agent/test-run-for-commit.command.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAM3C,UAAU,OAAO;IACf,QAAQ,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IACrC,SAAS,EAAE,MAAM,GAAG,SAAS,CAAC;IAC9B,IAAI,EAAE,OAAO,CAAC;CACf;AAmDD,eAAO,MAAM,uBAAuB,EAAE,aAAa,CAAC,OAAO,EAAE,OAAO,CAkBnE,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use strict";
|
|
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]="9b5efc00-2af5-5751-ad68-276a1fc64308")}catch(e){}}();
|
|
3
3
|
|
|
4
4
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
5
|
exports.testRunForCommitCommand = void 0;
|
|
@@ -10,7 +10,7 @@ const cli_user_error_1 = require("../../utils/cli-user-error");
|
|
|
10
10
|
const resolve_project_identifier_1 = require("../../utils/resolve-project-identifier");
|
|
11
11
|
const resolve_test_run_from_commit_1 = require("../../utils/resolve-test-run-from-commit");
|
|
12
12
|
const log = (...args) => process.stderr.write(args.join(" ") + "\n");
|
|
13
|
-
const handler = async ({ apiToken, commitSha,
|
|
13
|
+
const handler = async ({ apiToken, commitSha, json, }) => {
|
|
14
14
|
(0, common_1.initLogger)();
|
|
15
15
|
// Default to the current checkout's HEAD so the command can be run with no
|
|
16
16
|
// arguments to auto-infer the test run for the working tree.
|
|
@@ -26,16 +26,9 @@ const handler = async ({ apiToken, commitSha, waitForTestRunToComplete, json, })
|
|
|
26
26
|
// the project chosen via `meticulous auth set-project`.
|
|
27
27
|
const { projectId } = (0, resolve_project_identifier_1.resolveProjectIdentifier)(apiToken_);
|
|
28
28
|
const client = (0, client_1.createClient)({ apiToken: apiToken_ });
|
|
29
|
-
|
|
29
|
+
const result = await (0, client_1.getTestRunForCommit)(client, resolvedCommitSha, {
|
|
30
30
|
projectId,
|
|
31
31
|
});
|
|
32
|
-
if (result.testRunId != null &&
|
|
33
|
-
result.status != null &&
|
|
34
|
-
waitForTestRunToComplete &&
|
|
35
|
-
(0, resolve_test_run_from_commit_1.isTestRunInProgress)(result.status)) {
|
|
36
|
-
const status = await (0, resolve_test_run_from_commit_1.awaitTestRunCompletion)(client, result.testRunId);
|
|
37
|
-
result = { ...result, status };
|
|
38
|
-
}
|
|
39
32
|
if (json) {
|
|
40
33
|
console.log(JSON.stringify(result, null, 2));
|
|
41
34
|
return;
|
|
@@ -45,9 +38,11 @@ const handler = async ({ apiToken, commitSha, waitForTestRunToComplete, json, })
|
|
|
45
38
|
return;
|
|
46
39
|
}
|
|
47
40
|
console.log(result.testRunId);
|
|
48
|
-
if (result.status != null && (0, resolve_test_run_from_commit_1.
|
|
49
|
-
|
|
50
|
-
|
|
41
|
+
if (result.status != null && !(0, resolve_test_run_from_commit_1.isTestRunComplete)(result.status)) {
|
|
42
|
+
// Surface in-progress/Partial/failed runs so the caller knows the run isn't
|
|
43
|
+
// a finished verdict yet. Commands that consume the results (test-run-diffs,
|
|
44
|
+
// js-coverage) each have their own --waitForTestRunToComplete to block on it.
|
|
45
|
+
log(`Test run is not complete (status: ${result.status}).`);
|
|
51
46
|
}
|
|
52
47
|
};
|
|
53
48
|
exports.testRunForCommitCommand = {
|
|
@@ -59,11 +54,6 @@ exports.testRunForCommitCommand = {
|
|
|
59
54
|
string: true,
|
|
60
55
|
description: "Commit SHA to look up. Defaults to the current git HEAD when omitted.",
|
|
61
56
|
},
|
|
62
|
-
waitForTestRunToComplete: {
|
|
63
|
-
boolean: true,
|
|
64
|
-
default: false,
|
|
65
|
-
description: "If the matched test run is still in progress, block until it finishes before returning.",
|
|
66
|
-
},
|
|
67
57
|
json: {
|
|
68
58
|
boolean: true,
|
|
69
59
|
description: "Output the raw response as JSON",
|
|
@@ -73,4 +63,4 @@ exports.testRunForCommitCommand = {
|
|
|
73
63
|
handler: (0, sentry_utils_1.wrapHandler)(handler),
|
|
74
64
|
};
|
|
75
65
|
//# sourceMappingURL=test-run-for-commit.command.js.map
|
|
76
|
-
//# debugId=
|
|
66
|
+
//# debugId=9b5efc00-2af5-5751-ad68-276a1fc64308
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"test-run-for-commit.command.js","sources":["../../../src/commands/agent/test-run-for-commit.command.ts"],"sourceRoot":"","names":[],"mappings":";;;;;AAAA,qDAIkC;AAClC,qDAAoE;AAEpE,mEAA+D;AAC/D,+DAA0D;AAC1D,uFAAkF;AAClF,
|
|
1
|
+
{"version":3,"file":"test-run-for-commit.command.js","sources":["../../../src/commands/agent/test-run-for-commit.command.ts"],"sourceRoot":"","names":[],"mappings":";;;;;AAAA,qDAIkC;AAClC,qDAAoE;AAEpE,mEAA+D;AAC/D,+DAA0D;AAC1D,uFAAkF;AAClF,2FAA6E;AAQ7E,MAAM,GAAG,GAAG,CAAC,GAAG,IAAe,EAAE,EAAE,CAAC,OAAO,CAAC,MAAM,CAAC,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,GAAG,IAAI,CAAC,CAAC;AAEhF,MAAM,OAAO,GAAG,KAAK,EAAE,EACrB,QAAQ,EACR,SAAS,EACT,IAAI,GACI,EAAiB,EAAE;IAC3B,IAAA,mBAAU,GAAE,CAAC;IAEb,2EAA2E;IAC3E,6DAA6D;IAC7D,MAAM,iBAAiB,GAAG,MAAM,IAAA,qBAAY,EAAC,SAAS,CAAC,CAAC;IACxD,IAAI,CAAC,iBAAiB,EAAE,CAAC;QACvB,MAAM,IAAI,6BAAY,CACpB,oFAAoF,CACr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,IAAI;YACZ,WAAW,EACT,uEAAuE;SAC1E;QACD,IAAI,EAAE;YACJ,OAAO,EAAE,IAAI;YACb,WAAW,EAAE,iCAAiC;YAC9C,OAAO,EAAE,KAAK;SACf;KACF;IACD,OAAO,EAAE,IAAA,0BAAW,EAAC,OAAO,CAAC;CAC9B,CAAC","debugId":"9b5efc00-2af5-5751-ad68-276a1fc64308"}
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import { CommandModule } from "yargs";
|
|
1
|
+
import type { CommandModule } from "yargs";
|
|
2
2
|
interface Options {
|
|
3
3
|
apiToken?: string | null | undefined;
|
|
4
4
|
replayDiffId: string;
|
|
5
5
|
}
|
|
6
6
|
export declare const timelineDiffCommand: CommandModule<unknown, Options>;
|
|
7
7
|
export {};
|
|
8
|
+
//# sourceMappingURL=timeline.command.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"timeline.command.d.ts","sourceRoot":"","sources":["../../../src/commands/agent/timeline.command.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAG3C,UAAU,OAAO;IACf,QAAQ,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IACrC,YAAY,EAAE,MAAM,CAAC;CACtB;AAsCD,eAAO,MAAM,mBAAmB,EAAE,aAAa,CAAC,OAAO,EAAE,OAAO,CAY/D,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/commands/auth/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAM3C,eAAO,MAAM,WAAW,EAAE,aAczB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"logout.command.d.ts","sourceRoot":"","sources":["../../../src/commands/auth/logout.command.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAG3C,UAAU,OAAO;IACf,MAAM,CAAC,EAAE,OAAO,CAAC;CAClB;AAED,eAAO,MAAM,aAAa,EAAE,aAAa,CAAC,OAAO,EAAE,OAAO,CAczD,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use strict";
|
|
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]="a9393f0c-935c-5914-a7dc-42c00a444bee")}catch(e){}}();
|
|
3
3
|
|
|
4
4
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
5
|
exports.logoutCommand = void 0;
|
|
@@ -10,15 +10,16 @@ exports.logoutCommand = {
|
|
|
10
10
|
command: "logout",
|
|
11
11
|
describe: "Clear stored OAuth tokens",
|
|
12
12
|
builder: {},
|
|
13
|
-
handler: (0, sentry_utils_1.wrapHandler)(
|
|
13
|
+
handler: (0, sentry_utils_1.wrapHandler)(({ dryRun }) => {
|
|
14
14
|
const logger = (0, common_1.initLogger)();
|
|
15
15
|
if (dryRun) {
|
|
16
16
|
logger.info("Dry run: would clear stored OAuth tokens");
|
|
17
|
-
return;
|
|
17
|
+
return Promise.resolve();
|
|
18
18
|
}
|
|
19
19
|
(0, client_1.clearOAuthTokens)();
|
|
20
20
|
logger.info("Logged out successfully.");
|
|
21
|
+
return Promise.resolve();
|
|
21
22
|
}),
|
|
22
23
|
};
|
|
23
24
|
//# sourceMappingURL=logout.command.js.map
|
|
24
|
-
//# debugId=
|
|
25
|
+
//# debugId=a9393f0c-935c-5914-a7dc-42c00a444bee
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"logout.command.js","sources":["../../../src/commands/auth/logout.command.ts"],"sourceRoot":"","names":[],"mappings":";;;;;AAAA,qDAA4D;AAC5D,qDAAsD;AAEtD,mEAA+D;AAMlD,QAAA,aAAa,GAAoC;IAC5D,OAAO,EAAE,QAAQ;IACjB,QAAQ,EAAE,2BAA2B;IACrC,OAAO,EAAE,EAAE;IACX,OAAO,EAAE,IAAA,0BAAW,EAAC,
|
|
1
|
+
{"version":3,"file":"logout.command.js","sources":["../../../src/commands/auth/logout.command.ts"],"sourceRoot":"","names":[],"mappings":";;;;;AAAA,qDAA4D;AAC5D,qDAAsD;AAEtD,mEAA+D;AAMlD,QAAA,aAAa,GAAoC;IAC5D,OAAO,EAAE,QAAQ;IACjB,QAAQ,EAAE,2BAA2B;IACrC,OAAO,EAAE,EAAE;IACX,OAAO,EAAE,IAAA,0BAAW,EAAC,CAAC,EAAE,MAAM,EAAE,EAAE,EAAE;QAClC,MAAM,MAAM,GAAG,IAAA,mBAAU,GAAE,CAAC;QAC5B,IAAI,MAAM,EAAE,CAAC;YACX,MAAM,CAAC,IAAI,CAAC,0CAA0C,CAAC,CAAC;YACxD,OAAO,OAAO,CAAC,OAAO,EAAE,CAAC;QAC3B,CAAC;QACD,IAAA,yBAAgB,GAAE,CAAC;QACnB,MAAM,CAAC,IAAI,CAAC,0BAA0B,CAAC,CAAC;QACxC,OAAO,OAAO,CAAC,OAAO,EAAE,CAAC;IAC3B,CAAC,CAAC;CACH,CAAC","debugId":"a9393f0c-935c-5914-a7dc-42c00a444bee"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"set-project.command.d.ts","sourceRoot":"","sources":["../../../src/commands/auth/set-project.command.ts"],"names":[],"mappings":"AAUA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAK3C,eAAO,MAAM,iBAAiB,EAAE,aAkD/B,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use strict";
|
|
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]="a2850427-e84a-5bc6-b426-c52735064dd1")}catch(e){}}();
|
|
3
3
|
|
|
4
4
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
5
5
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
@@ -70,4 +70,4 @@ const promptForProject = async (projects) => {
|
|
|
70
70
|
return selected;
|
|
71
71
|
};
|
|
72
72
|
//# sourceMappingURL=set-project.command.js.map
|
|
73
|
-
//# debugId=
|
|
73
|
+
//# debugId=a2850427-e84a-5bc6-b426-c52735064dd1
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"set-project.command.js","sources":["../../../src/commands/auth/set-project.command.ts"],"sourceRoot":"","names":[],"mappings":";;;;;;;;
|
|
1
|
+
{"version":3,"file":"set-project.command.js","sources":["../../../src/commands/auth/set-project.command.ts"],"sourceRoot":"","names":[],"mappings":";;;;;;;;AACA,qDAMkC;AAClC,qDAAsD;AACtD,wDAAgC;AAEhC,mEAA+D;AAC/D,+DAA0D;AAC1D,yEAAoE;AAEvD,QAAA,iBAAiB,GAAkB;IAC9C,OAAO,EAAE,aAAa;IACtB,QAAQ,EACN,wEAAwE;IAC1E,OAAO,EAAE,EAAE;IACX,OAAO,EAAE,IAAA,0BAAW,EAAC,KAAK,IAAI,EAAE;QAC9B,MAAM,MAAM,GAAG,IAAA,mBAAU,GAAE,CAAC;QAE5B,MAAM,QAAQ,GA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,MAAM,gBAAgB,GAAG,KAAK,EAC5B,QAAwB,EACD,EAAE;IACzB,MAAM,EAAE,SAAS,EAAE,GAAG,MAAM,kBAAQ,CAAC,MAAM,CAAwB;QACjE;YACE,IAAI,EAAE,MAAM;YACZ,IAAI,EAAE,WAAW;YACjB,OAAO,EAAE,mBAAmB;YAC5B,OAAO,EAAE,QAAQ,CAAC,GAAG,CAAC,CAAC,OAAO,EAAE,EAAE,CAAC,CAAC;gBAClC,IAAI,EAAE,GAAG,OAAO,CAAC,YAAY,CAAC,IAAI,IAAI,OAAO,CAAC,IAAI,EAAE;gBACpD,KAAK,EAAE,OAAO,CAAC,EAAE;aAClB,CAAC,CAAC;SACJ;KACF,CAAC,CAAC;IAEH,MAAM,QAAQ,GAAG,QAAQ,CAAC,IAAI,CAAC,CAAC,OAAO,EAAE,EAAE,CAAC,OAAO,CAAC,EAAE,KAAK,SAAS,CAAC,CAAC;IACtE,IAAI,CAAC,QAAQ,EAAE,CAAC;QACd,MAAM,IAAI,KAAK,CAAC,4CAA4C,CAAC,CAAC;IAChE,CAAC;IACD,OAAO,QAAQ,CAAC;AAClB,CAAC,CAAC","debugId":"a2850427-e84a-5bc6-b426-c52735064dd1"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"unset-project.command.d.ts","sourceRoot":"","sources":["../../../src/commands/auth/unset-project.command.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAG3C,eAAO,MAAM,mBAAmB,EAAE,aAejC,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use strict";
|
|
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]="610598e6-20c9-5c9c-bd28-b3830333067d")}catch(e){}}();
|
|
3
3
|
|
|
4
4
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
5
|
exports.unsetProjectCommand = void 0;
|
|
@@ -10,7 +10,7 @@ exports.unsetProjectCommand = {
|
|
|
10
10
|
command: "unset-project",
|
|
11
11
|
describe: "Clear the project selected via `auth set-project`",
|
|
12
12
|
builder: {},
|
|
13
|
-
handler: (0, sentry_utils_1.wrapHandler)(
|
|
13
|
+
handler: (0, sentry_utils_1.wrapHandler)(() => {
|
|
14
14
|
const logger = (0, common_1.initLogger)();
|
|
15
15
|
const previous = (0, client_1.getStoredProject)();
|
|
16
16
|
(0, client_1.clearStoredProject)();
|
|
@@ -20,7 +20,8 @@ exports.unsetProjectCommand = {
|
|
|
20
20
|
else {
|
|
21
21
|
logger.info("No project was selected.");
|
|
22
22
|
}
|
|
23
|
+
return Promise.resolve();
|
|
23
24
|
}),
|
|
24
25
|
};
|
|
25
26
|
//# sourceMappingURL=unset-project.command.js.map
|
|
26
|
-
//# debugId=
|
|
27
|
+
//# debugId=610598e6-20c9-5c9c-bd28-b3830333067d
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"unset-project.command.js","sources":["../../../src/commands/auth/unset-project.command.ts"],"sourceRoot":"","names":[],"mappings":";;;;;AAAA,
|
|
1
|
+
{"version":3,"file":"unset-project.command.js","sources":["../../../src/commands/auth/unset-project.command.ts"],"sourceRoot":"","names":[],"mappings":";;;;;AAAA,qDAAgF;AAChF,qDAAsD;AAEtD,mEAA+D;AAElD,QAAA,mBAAmB,GAAkB;IAChD,OAAO,EAAE,eAAe;IACxB,QAAQ,EAAE,mDAAmD;IAC7D,OAAO,EAAE,EAAE;IACX,OAAO,EAAE,IAAA,0BAAW,EAAC,GAAG,EAAE;QACxB,MAAM,MAAM,GAAG,IAAA,mBAAU,GAAE,CAAC;QAC5B,MAAM,QAAQ,GAAG,IAAA,yBAAgB,GAAE,CAAC;QACpC,IAAA,2BAAkB,GAAE,CAAC;QACrB,IAAI,QAAQ,EAAE,CAAC;YACb,MAAM,CAAC,IAAI,CAAC,kCAAkC,QAAQ,IAAI,CAAC,CAAC;QAC9D,CAAC;aAAM,CAAC;YACN,MAAM,CAAC,IAAI,CAAC,0BAA0B,CAAC,CAAC;QAC1C,CAAC;QACD,OAAO,OAAO,CAAC,OAAO,EAAE,CAAC;IAC3B,CAAC,CAAC;CACH,CAAC","debugId":"610598e6-20c9-5c9c-bd28-b3830333067d"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"whoami.command.d.ts","sourceRoot":"","sources":["../../../src/commands/auth/whoami.command.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAI3C,eAAO,MAAM,aAAa,EAAE,aAyC3B,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/commands/ci/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAU3C,eAAO,MAAM,SAAS,EAAE,aAkBvB,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import log from "loglevel";
|
|
2
|
-
import { CommandModule } from "yargs";
|
|
1
|
+
import type log from "loglevel";
|
|
2
|
+
import type { CommandModule } from "yargs";
|
|
3
3
|
interface Options {
|
|
4
4
|
apiToken?: string | null | undefined;
|
|
5
5
|
headCommit: string | null | undefined;
|
|
@@ -14,3 +14,4 @@ export declare const prepareForMeticulousTests: ({ apiToken, headCommit, trigger
|
|
|
14
14
|
}) => Promise<void>;
|
|
15
15
|
export declare const ciPrepareCommand: CommandModule<unknown, Options>;
|
|
16
16
|
export {};
|
|
17
|
+
//# sourceMappingURL=prepare.command.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"prepare.command.d.ts","sourceRoot":"","sources":["../../../src/commands/ci/prepare.command.ts"],"names":[],"mappings":"AAQA,OAAO,KAAK,GAAG,MAAM,UAAU,CAAC;AAChC,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAQ3C,UAAU,OAAO;IACf,QAAQ,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IACrC,UAAU,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IACtC,aAAa,EAAE,MAAM,CAAC;IACtB,MAAM,CAAC,EAAE,OAAO,CAAC;CAClB;AAED,eAAO,MAAM,yBAAyB,qDAKnC;IACD,QAAQ,EAAE,MAAM,CAAC;IACjB,UAAU,EAAE,MAAM,CAAC;IACnB,aAAa,EAAE,MAAM,CAAC;IACtB,MAAM,EAAE,GAAG,CAAC,MAAM,CAAC;CACpB,KAAG,OAAO,CAAC,IAAI,CAkEf,CAAC;AAyCF,eAAO,MAAM,gBAAgB,EAAE,aAAa,CAAC,OAAO,EAAE,OAAO,CAmB5D,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"resolve-git-options.d.ts","sourceRoot":"","sources":["../../../src/commands/ci/resolve-git-options.ts"],"names":[],"mappings":"AAQA,MAAM,WAAW,kBAAkB;IACjC,SAAS,EAAE,MAAM,CAAC;IAClB,OAAO,EAAE,MAAM,GAAG,SAAS,CAAC;IAC5B,aAAa,EAAE,MAAM,GAAG,SAAS,CAAC;IAClC,sBAAsB,EAAE,OAAO,CAAC;CACjC;AAED;;;;GAIG;AACH,eAAO,MAAM,2BAA2B,kBACvB,MAAM,GAAG,SAAS,WACxB,MAAM,GAAG,SAAS,iBACZ,MAAM,GAAG,SAAS,KAChC,OAA+D,CAAC;AAEnE;;;;;;GAMG;AACH,eAAO,MAAM,iBAAiB,gGAK3B;IACD,SAAS,EAAE,MAAM,GAAG,SAAS,CAAC;IAC9B,OAAO,EAAE,MAAM,GAAG,SAAS,CAAC;IAC5B,aAAa,EAAE,MAAM,GAAG,SAAS,CAAC;IAClC,aAAa,EAAE,MAAM,GAAG,SAAS,CAAC;CACnC,KAAG,OAAO,CAAC,kBAAkB,CAqB7B,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use strict";
|
|
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]="27576f50-5a1c-584d-a24a-505d8d9c5aae")}catch(e){}}();
|
|
3
3
|
|
|
4
4
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
5
|
exports.resolveGitOptions = exports.hasGitContextForTestRunWait = void 0;
|
|
@@ -56,7 +56,12 @@ const resolveFromRepoDirectory = async (repoDirectory) => {
|
|
|
56
56
|
logger.info(`Commit SHA inferred from repo${uncommitted ? " (with uncommitted changes)" : ""}: ${commitSha}`);
|
|
57
57
|
logger.info(`Base SHA inferred from merge-base: ${baseSha}`);
|
|
58
58
|
logger.info(`Git diff output computed: ${gitDiffOutput.length} chars`);
|
|
59
|
-
return {
|
|
59
|
+
return {
|
|
60
|
+
commitSha,
|
|
61
|
+
baseSha,
|
|
62
|
+
gitDiffOutput,
|
|
63
|
+
withUncommittedChanges: uncommitted,
|
|
64
|
+
};
|
|
60
65
|
};
|
|
61
66
|
const resolveFromExplicitArgs = async ({ commitSha_, baseSha_, gitDiffOutput_, }) => {
|
|
62
67
|
const logger = (0, common_1.initLogger)();
|
|
@@ -82,4 +87,4 @@ const resolveFromExplicitArgs = async ({ commitSha_, baseSha_, gitDiffOutput_, }
|
|
|
82
87
|
return { commitSha, baseSha, gitDiffOutput, withUncommittedChanges: false };
|
|
83
88
|
};
|
|
84
89
|
//# sourceMappingURL=resolve-git-options.js.map
|
|
85
|
-
//# debugId=
|
|
90
|
+
//# debugId=27576f50-5a1c-584d-a24a-505d8d9c5aae
|