@alwaysmeticulous/cli 2.303.1 → 2.305.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/dist/command-utils/common-options.d.ts +5 -0
- package/dist/command-utils/common-options.d.ts.map +1 -1
- package/dist/command-utils/common-options.js +7 -2
- package/dist/command-utils/common-options.js.map +1 -1
- package/dist/command-utils/json-args.d.ts +14 -0
- package/dist/command-utils/json-args.d.ts.map +1 -0
- package/dist/command-utils/json-args.js +40 -0
- package/dist/command-utils/json-args.js.map +1 -0
- package/dist/command-utils/json-args.spec.d.ts +2 -0
- package/dist/command-utils/json-args.spec.d.ts.map +1 -0
- package/dist/command-utils/json-args.spec.js +37 -0
- package/dist/command-utils/json-args.spec.js.map +1 -0
- package/dist/command-utils/print-json.d.ts +7 -0
- package/dist/command-utils/print-json.d.ts.map +1 -0
- package/dist/command-utils/print-json.js +16 -0
- package/dist/command-utils/print-json.js.map +1 -0
- package/dist/commands/agent/build-git-options.d.ts +25 -20
- package/dist/commands/agent/build-git-options.d.ts.map +1 -1
- package/dist/commands/agent/build-git-options.js +62 -54
- package/dist/commands/agent/build-git-options.js.map +1 -1
- package/dist/commands/agent/build-git-options.spec.js +96 -62
- package/dist/commands/agent/build-git-options.spec.js.map +1 -1
- package/dist/commands/agent/index.d.ts.map +1 -1
- package/dist/commands/agent/index.js +11 -4
- package/dist/commands/agent/index.js.map +1 -1
- package/dist/commands/agent/js-coverage-diff.command.d.ts +1 -1
- package/dist/commands/agent/js-coverage-diff.command.d.ts.map +1 -1
- package/dist/commands/agent/js-coverage-diff.command.js +31 -38
- package/dist/commands/agent/js-coverage-diff.command.js.map +1 -1
- package/dist/commands/agent/js-coverage.command.d.ts +7 -4
- package/dist/commands/agent/js-coverage.command.d.ts.map +1 -1
- package/dist/commands/agent/js-coverage.command.js +104 -66
- package/dist/commands/agent/js-coverage.command.js.map +1 -1
- package/dist/commands/agent/js-coverage.command.spec.js +48 -2
- package/dist/commands/agent/js-coverage.command.spec.js.map +1 -1
- package/dist/commands/agent/screenshot-dom-diff.command.d.ts +1 -0
- package/dist/commands/agent/screenshot-dom-diff.command.d.ts.map +1 -1
- package/dist/commands/agent/screenshot-dom-diff.command.js +26 -18
- package/dist/commands/agent/screenshot-dom-diff.command.js.map +1 -1
- package/dist/commands/agent/screenshot-image-files.command.d.ts +1 -0
- package/dist/commands/agent/screenshot-image-files.command.d.ts.map +1 -1
- package/dist/commands/agent/screenshot-image-files.command.js +18 -5
- package/dist/commands/agent/screenshot-image-files.command.js.map +1 -1
- package/dist/commands/agent/screenshot-image.command.d.ts +1 -0
- package/dist/commands/agent/screenshot-image.command.d.ts.map +1 -1
- package/dist/commands/agent/screenshot-image.command.js +9 -4
- package/dist/commands/agent/screenshot-image.command.js.map +1 -1
- package/dist/commands/agent/test-run-diffs.command.d.ts +1 -0
- package/dist/commands/agent/test-run-diffs.command.d.ts.map +1 -1
- package/dist/commands/agent/test-run-diffs.command.js +40 -24
- package/dist/commands/agent/test-run-diffs.command.js.map +1 -1
- package/dist/commands/agent/test-run-diffs.utils.d.ts +7 -0
- package/dist/commands/agent/test-run-diffs.utils.d.ts.map +1 -1
- package/dist/commands/agent/test-run-diffs.utils.js +48 -3
- package/dist/commands/agent/test-run-diffs.utils.js.map +1 -1
- package/dist/commands/agent/test-run-diffs.utils.spec.js +145 -2
- package/dist/commands/agent/test-run-diffs.utils.spec.js.map +1 -1
- package/dist/commands/agent/test-run-for-commit.command.d.ts.map +1 -1
- package/dist/commands/agent/test-run-for-commit.command.js +12 -14
- package/dist/commands/agent/test-run-for-commit.command.js.map +1 -1
- package/dist/commands/agent/timeline.command.d.ts +1 -0
- package/dist/commands/agent/timeline.command.d.ts.map +1 -1
- package/dist/commands/agent/timeline.command.js +21 -7
- package/dist/commands/agent/timeline.command.js.map +1 -1
- package/dist/commands/agent/timeline.command.spec.d.ts +2 -0
- package/dist/commands/agent/timeline.command.spec.d.ts.map +1 -0
- package/dist/commands/agent/timeline.command.spec.js +77 -0
- package/dist/commands/agent/timeline.command.spec.js.map +1 -0
- package/dist/commands/agent/trigger-test-run.command.d.ts +27 -1
- package/dist/commands/agent/trigger-test-run.command.d.ts.map +1 -1
- package/dist/commands/agent/trigger-test-run.command.js +64 -53
- package/dist/commands/agent/trigger-test-run.command.js.map +1 -1
- package/dist/commands/agent/trigger-test-run.command.spec.d.ts +2 -0
- package/dist/commands/agent/trigger-test-run.command.spec.d.ts.map +1 -0
- package/dist/commands/agent/trigger-test-run.command.spec.js +88 -0
- package/dist/commands/agent/trigger-test-run.command.spec.js.map +1 -0
- package/dist/commands/agent/upload-build.command.d.ts +0 -1
- package/dist/commands/agent/upload-build.command.d.ts.map +1 -1
- package/dist/commands/agent/upload-build.command.js +12 -17
- package/dist/commands/agent/upload-build.command.js.map +1 -1
- package/dist/commands/all-commands.d.ts +38 -0
- package/dist/commands/all-commands.d.ts.map +1 -0
- package/dist/commands/all-commands.js +65 -0
- package/dist/commands/all-commands.js.map +1 -0
- package/dist/commands/auth/__tests__/list-projects.command.spec.js +22 -12
- package/dist/commands/auth/__tests__/list-projects.command.spec.js.map +1 -1
- package/dist/commands/auth/__tests__/login.command.spec.js +9 -7
- package/dist/commands/auth/__tests__/login.command.spec.js.map +1 -1
- package/dist/commands/auth/__tests__/logout.command.spec.js +4 -8
- package/dist/commands/auth/__tests__/logout.command.spec.js.map +1 -1
- package/dist/commands/auth/__tests__/whoami.command.spec.js +71 -21
- package/dist/commands/auth/__tests__/whoami.command.spec.js.map +1 -1
- package/dist/commands/auth/list-projects.command.d.ts.map +1 -1
- package/dist/commands/auth/list-projects.command.js +17 -14
- package/dist/commands/auth/list-projects.command.js.map +1 -1
- package/dist/commands/auth/login.command.d.ts.map +1 -1
- package/dist/commands/auth/login.command.js +4 -5
- package/dist/commands/auth/login.command.js.map +1 -1
- package/dist/commands/auth/logout.command.d.ts +1 -5
- package/dist/commands/auth/logout.command.d.ts.map +1 -1
- package/dist/commands/auth/logout.command.js +4 -9
- package/dist/commands/auth/logout.command.js.map +1 -1
- package/dist/commands/auth/set-project.command.d.ts.map +1 -1
- package/dist/commands/auth/set-project.command.js +7 -5
- package/dist/commands/auth/set-project.command.js.map +1 -1
- package/dist/commands/auth/unset-project.command.js +5 -5
- package/dist/commands/auth/unset-project.command.js.map +1 -1
- package/dist/commands/auth/whoami.command.d.ts +5 -1
- package/dist/commands/auth/whoami.command.d.ts.map +1 -1
- package/dist/commands/auth/whoami.command.js +75 -32
- package/dist/commands/auth/whoami.command.js.map +1 -1
- package/dist/commands/ci/prepare.command.d.ts.map +1 -1
- package/dist/commands/ci/prepare.command.js +3 -2
- package/dist/commands/ci/prepare.command.js.map +1 -1
- package/dist/commands/ci/run-local.command.d.ts.map +1 -1
- package/dist/commands/ci/run-local.command.js +6 -4
- package/dist/commands/ci/run-local.command.js.map +1 -1
- package/dist/commands/ci/run-with-uploaded-asset-chunks.command.d.ts.map +1 -1
- package/dist/commands/ci/run-with-uploaded-asset-chunks.command.js +6 -3
- package/dist/commands/ci/run-with-uploaded-asset-chunks.command.js.map +1 -1
- package/dist/commands/ci/run.command.d.ts.map +1 -1
- package/dist/commands/ci/run.command.js +3 -2
- package/dist/commands/ci/run.command.js.map +1 -1
- package/dist/commands/ci/start-tunnel.command.d.ts.map +1 -1
- package/dist/commands/ci/start-tunnel.command.js +4 -2
- package/dist/commands/ci/start-tunnel.command.js.map +1 -1
- package/dist/commands/ci/trigger-test-run.core.d.ts.map +1 -1
- package/dist/commands/ci/trigger-test-run.core.js +6 -3
- package/dist/commands/ci/trigger-test-run.core.js.map +1 -1
- package/dist/commands/ci/upload-assets.command.d.ts +1 -0
- package/dist/commands/ci/upload-assets.command.d.ts.map +1 -1
- package/dist/commands/ci/upload-assets.command.js +3 -2
- package/dist/commands/ci/upload-assets.command.js.map +1 -1
- package/dist/commands/ci/upload-container.command.d.ts +1 -0
- package/dist/commands/ci/upload-container.command.d.ts.map +1 -1
- package/dist/commands/ci/upload-container.command.js +3 -2
- package/dist/commands/ci/upload-container.command.js.map +1 -1
- package/dist/commands/debug/index.d.ts.map +1 -1
- package/dist/commands/debug/index.js +43 -36
- package/dist/commands/debug/index.js.map +1 -1
- package/dist/commands/local/relevant-sessions.command.d.ts.map +1 -1
- package/dist/commands/local/relevant-sessions.command.js +6 -3
- package/dist/commands/local/relevant-sessions.command.js.map +1 -1
- package/dist/commands/project/show.command.d.ts.map +1 -1
- package/dist/commands/project/show.command.js +6 -3
- package/dist/commands/project/show.command.js.map +1 -1
- package/dist/commands/record/__tests__/login.command.spec.d.ts +2 -0
- package/dist/commands/record/__tests__/login.command.spec.d.ts.map +1 -0
- package/dist/commands/record/__tests__/login.command.spec.js +72 -0
- package/dist/commands/record/__tests__/login.command.spec.js.map +1 -0
- package/dist/commands/record/__tests__/session.command.spec.d.ts +2 -0
- package/dist/commands/record/__tests__/session.command.spec.d.ts.map +1 -0
- package/dist/commands/record/__tests__/session.command.spec.js +86 -0
- package/dist/commands/record/__tests__/session.command.spec.js.map +1 -0
- package/dist/commands/record/login.command.d.ts.map +1 -1
- package/dist/commands/record/login.command.js +9 -3
- package/dist/commands/record/login.command.js.map +1 -1
- package/dist/commands/record/session.command.d.ts.map +1 -1
- package/dist/commands/record/session.command.js +9 -3
- package/dist/commands/record/session.command.js.map +1 -1
- package/dist/commands/replay.command.d.ts.map +1 -1
- package/dist/commands/replay.command.js +11 -15
- package/dist/commands/replay.command.js.map +1 -1
- package/dist/commands/schema.command.d.ts +53 -0
- package/dist/commands/schema.command.d.ts.map +1 -1
- package/dist/commands/schema.command.js +232 -106
- package/dist/commands/schema.command.js.map +1 -1
- package/dist/commands/schema.command.spec.d.ts +2 -0
- package/dist/commands/schema.command.spec.d.ts.map +1 -0
- package/dist/commands/schema.command.spec.js +198 -0
- package/dist/commands/schema.command.spec.js.map +1 -0
- package/dist/main.d.ts.map +1 -1
- package/dist/main.js +60 -48
- package/dist/main.js.map +1 -1
- package/dist/utils/__tests__/select-project.spec.js +6 -12
- package/dist/utils/__tests__/select-project.spec.js.map +1 -1
- package/dist/utils/select-project.d.ts +1 -3
- package/dist/utils/select-project.d.ts.map +1 -1
- package/dist/utils/select-project.js +6 -5
- package/dist/utils/select-project.js.map +1 -1
- package/package.json +9 -9
|
@@ -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]="eb50ac0d-6821-51d9-8c1b-86f46442104c")}catch(e){}}();
|
|
3
3
|
|
|
4
4
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
5
|
const vitest_1 = require("vitest");
|
|
@@ -15,21 +15,25 @@ const loggerMock = {
|
|
|
15
15
|
error: vitest_1.vi.fn(),
|
|
16
16
|
debug: vitest_1.vi.fn(),
|
|
17
17
|
};
|
|
18
|
-
vitest_1.vi.mock("@alwaysmeticulous/common", () => ({
|
|
19
|
-
initLogger: () => loggerMock,
|
|
20
|
-
}));
|
|
21
18
|
const mocks = vitest_1.vi.hoisted(() => ({
|
|
22
19
|
resolveApiTokenWithOAuth: vitest_1.vi.fn(),
|
|
23
20
|
isOAuthJwt: vitest_1.vi.fn(),
|
|
24
21
|
createClient: vitest_1.vi.fn(),
|
|
22
|
+
createClientWithOAuth: vitest_1.vi.fn(),
|
|
25
23
|
getWhoami: vitest_1.vi.fn(),
|
|
26
24
|
getStoredProject: vitest_1.vi.fn(),
|
|
27
25
|
getProject: vitest_1.vi.fn(),
|
|
26
|
+
logNotice: vitest_1.vi.fn(),
|
|
27
|
+
}));
|
|
28
|
+
vitest_1.vi.mock("@alwaysmeticulous/common", () => ({
|
|
29
|
+
initLogger: () => loggerMock,
|
|
30
|
+
logNotice: mocks.logNotice,
|
|
28
31
|
}));
|
|
29
32
|
vitest_1.vi.mock("@alwaysmeticulous/client", () => ({
|
|
30
33
|
resolveApiTokenWithOAuth: mocks.resolveApiTokenWithOAuth,
|
|
31
34
|
isOAuthJwt: mocks.isOAuthJwt,
|
|
32
35
|
createClient: mocks.createClient,
|
|
36
|
+
createClientWithOAuth: mocks.createClientWithOAuth,
|
|
33
37
|
getWhoami: mocks.getWhoami,
|
|
34
38
|
getStoredProject: mocks.getStoredProject,
|
|
35
39
|
getProject: mocks.getProject,
|
|
@@ -37,8 +41,13 @@ vitest_1.vi.mock("@alwaysmeticulous/client", () => ({
|
|
|
37
41
|
vitest_1.vi.mock("../../../utils/handle-auth-failure", () => ({
|
|
38
42
|
handleAuthFailure: vitest_1.vi.fn().mockReturnValue(false),
|
|
39
43
|
}));
|
|
40
|
-
const runHandler = () => whoami_command_1.whoamiCommand.handler({
|
|
41
|
-
|
|
44
|
+
const runHandler = (args = {}) => whoami_command_1.whoamiCommand.handler({
|
|
45
|
+
json: false,
|
|
46
|
+
...args,
|
|
47
|
+
});
|
|
48
|
+
let logSpy;
|
|
49
|
+
const stdoutText = () => logSpy.mock.calls.flat().join("\n");
|
|
50
|
+
const noticeText = () => mocks.logNotice.mock.calls.flat().join("\n");
|
|
42
51
|
const FAKE_WHOAMI = {
|
|
43
52
|
email: "alice@example.com",
|
|
44
53
|
firstName: "Alice",
|
|
@@ -52,9 +61,14 @@ const FAKE_WHOAMI = {
|
|
|
52
61
|
vitest_1.vi.clearAllMocks();
|
|
53
62
|
delete process.env["METICULOUS_API_TOKEN"];
|
|
54
63
|
mocks.createClient.mockReturnValue({});
|
|
64
|
+
mocks.createClientWithOAuth.mockResolvedValue({});
|
|
55
65
|
mocks.getWhoami.mockResolvedValue(FAKE_WHOAMI);
|
|
56
66
|
mocks.getStoredProject.mockReturnValue(null);
|
|
57
67
|
mocks.getProject.mockResolvedValue(null);
|
|
68
|
+
logSpy = vitest_1.vi.spyOn(console, "log").mockImplementation(() => { });
|
|
69
|
+
});
|
|
70
|
+
(0, vitest_1.afterEach)(() => {
|
|
71
|
+
logSpy.mockRestore();
|
|
58
72
|
});
|
|
59
73
|
(0, vitest_1.afterAll)(() => {
|
|
60
74
|
if (originalEnvToken === undefined) {
|
|
@@ -73,28 +87,48 @@ const FAKE_WHOAMI = {
|
|
|
73
87
|
await runHandler();
|
|
74
88
|
(0, vitest_1.expect)(mocks.getWhoami).toHaveBeenCalled();
|
|
75
89
|
(0, vitest_1.expect)(mocks.getProject).not.toHaveBeenCalled();
|
|
76
|
-
|
|
77
|
-
(0, vitest_1.expect)(
|
|
78
|
-
(0, vitest_1.expect)(
|
|
79
|
-
|
|
90
|
+
// OAuth path uses the refreshing client, not the static one.
|
|
91
|
+
(0, vitest_1.expect)(mocks.createClientWithOAuth).toHaveBeenCalledTimes(1);
|
|
92
|
+
(0, vitest_1.expect)(mocks.createClient).not.toHaveBeenCalled();
|
|
93
|
+
const out = stdoutText();
|
|
94
|
+
(0, vitest_1.expect)(out).toContain("Authenticated via: OAuth");
|
|
95
|
+
(0, vitest_1.expect)(out).toContain("alice@example.com");
|
|
96
|
+
(0, vitest_1.expect)(out).toContain("Alice Smith");
|
|
80
97
|
});
|
|
81
|
-
(0, vitest_1.it)("
|
|
98
|
+
(0, vitest_1.it)("prints organizations with their role", async () => {
|
|
82
99
|
mocks.getWhoami.mockResolvedValue({
|
|
83
100
|
...FAKE_WHOAMI,
|
|
84
101
|
organizations: [{ id: "org-1", name: "Acme", role: "owner" }],
|
|
85
102
|
});
|
|
86
103
|
await runHandler();
|
|
87
|
-
(0, vitest_1.expect)(
|
|
104
|
+
(0, vitest_1.expect)(stdoutText()).toContain("Acme (owner)");
|
|
88
105
|
});
|
|
89
|
-
(0, vitest_1.it)("
|
|
106
|
+
(0, vitest_1.it)("prints the selected project when one is stored", async () => {
|
|
90
107
|
mocks.getStoredProject.mockReturnValue("Acme/my-project");
|
|
91
108
|
await runHandler();
|
|
92
|
-
(0, vitest_1.expect)(
|
|
109
|
+
(0, vitest_1.expect)(stdoutText()).toContain("Acme/my-project");
|
|
93
110
|
});
|
|
94
|
-
(0, vitest_1.it)("prompts to set a project when none is selected", async () => {
|
|
111
|
+
(0, vitest_1.it)("prompts (on stderr) to set a project when none is selected", async () => {
|
|
95
112
|
mocks.getStoredProject.mockReturnValue(null);
|
|
96
113
|
await runHandler();
|
|
97
|
-
(0, vitest_1.expect)(
|
|
114
|
+
(0, vitest_1.expect)(noticeText()).toContain("auth set-project");
|
|
115
|
+
});
|
|
116
|
+
(0, vitest_1.it)("emits structured JSON with --json", async () => {
|
|
117
|
+
mocks.getStoredProject.mockReturnValue("Acme/my-project");
|
|
118
|
+
mocks.getWhoami.mockResolvedValue({
|
|
119
|
+
...FAKE_WHOAMI,
|
|
120
|
+
organizations: [{ id: "org-1", name: "Acme", role: "owner" }],
|
|
121
|
+
});
|
|
122
|
+
await runHandler({ json: true });
|
|
123
|
+
(0, vitest_1.expect)(JSON.parse(stdoutText())).toEqual({
|
|
124
|
+
authenticatedVia: "oauth",
|
|
125
|
+
email: "alice@example.com",
|
|
126
|
+
firstName: "Alice",
|
|
127
|
+
lastName: "Smith",
|
|
128
|
+
isAdmin: false,
|
|
129
|
+
organizations: [{ name: "Acme", role: "owner" }],
|
|
130
|
+
selectedProject: "Acme/my-project",
|
|
131
|
+
});
|
|
98
132
|
});
|
|
99
133
|
});
|
|
100
134
|
(0, vitest_1.describe)("project API token", () => {
|
|
@@ -106,11 +140,14 @@ const FAKE_WHOAMI = {
|
|
|
106
140
|
process.env["METICULOUS_API_TOKEN"] = "project-token";
|
|
107
141
|
await runHandler();
|
|
108
142
|
(0, vitest_1.expect)(mocks.getWhoami).not.toHaveBeenCalled();
|
|
109
|
-
|
|
143
|
+
// Project-token path stays on the static client (never expires).
|
|
144
|
+
(0, vitest_1.expect)(mocks.createClient).toHaveBeenCalled();
|
|
145
|
+
(0, vitest_1.expect)(mocks.createClientWithOAuth).not.toHaveBeenCalled();
|
|
146
|
+
(0, vitest_1.expect)(stdoutText()).toContain("project API token (METICULOUS_API_TOKEN environment variable)");
|
|
110
147
|
});
|
|
111
148
|
(0, vitest_1.it)("reports the config file as the source when the env var is unset", async () => {
|
|
112
149
|
await runHandler();
|
|
113
|
-
(0, vitest_1.expect)(
|
|
150
|
+
(0, vitest_1.expect)(stdoutText()).toContain("project API token (~/.meticulous/config.json)");
|
|
114
151
|
});
|
|
115
152
|
(0, vitest_1.it)("shows the pinned project resolved via token-info", async () => {
|
|
116
153
|
mocks.getProject.mockResolvedValue({
|
|
@@ -119,14 +156,27 @@ const FAKE_WHOAMI = {
|
|
|
119
156
|
organization: { id: "o1", name: "Org" },
|
|
120
157
|
});
|
|
121
158
|
await runHandler();
|
|
122
|
-
(0, vitest_1.expect)(
|
|
159
|
+
(0, vitest_1.expect)(stdoutText()).toContain("Pinned project: Org/App");
|
|
123
160
|
});
|
|
124
161
|
(0, vitest_1.it)("swallows token-info failures without failing whoami", async () => {
|
|
125
162
|
mocks.getProject.mockRejectedValue(new Error("boom"));
|
|
126
163
|
await (0, vitest_1.expect)(runHandler()).resolves.toBeUndefined();
|
|
127
|
-
(0, vitest_1.expect)(
|
|
164
|
+
(0, vitest_1.expect)(noticeText()).toContain("scoped to a single project");
|
|
165
|
+
});
|
|
166
|
+
(0, vitest_1.it)("emits structured JSON with --json", async () => {
|
|
167
|
+
mocks.getProject.mockResolvedValue({
|
|
168
|
+
id: "p1",
|
|
169
|
+
name: "App",
|
|
170
|
+
organization: { id: "o1", name: "Org" },
|
|
171
|
+
});
|
|
172
|
+
await runHandler({ json: true });
|
|
173
|
+
(0, vitest_1.expect)(JSON.parse(stdoutText())).toEqual({
|
|
174
|
+
authenticatedVia: "project-api-token",
|
|
175
|
+
tokenSource: "~/.meticulous/config.json",
|
|
176
|
+
pinnedProject: "Org/App",
|
|
177
|
+
});
|
|
128
178
|
});
|
|
129
179
|
});
|
|
130
180
|
});
|
|
131
181
|
//# sourceMappingURL=whoami.command.spec.js.map
|
|
132
|
-
//# debugId=
|
|
182
|
+
//# debugId=eb50ac0d-6821-51d9-8c1b-86f46442104c
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"whoami.command.spec.js","sources":["../../../../src/commands/auth/__tests__/whoami.command.spec.ts"],"sourceRoot":"","names":[],"mappings":";;;;AAAA,
|
|
1
|
+
{"version":3,"file":"whoami.command.spec.js","sources":["../../../../src/commands/auth/__tests__/whoami.command.spec.ts"],"sourceRoot":"","names":[],"mappings":";;;;AAAA,mCAQgB;AAChB,sDAAkD;AAElD,+EAA+E;AAC/E,iDAAiD;AACjD,WAAE,CAAC,IAAI,CAAC,qCAAqC,EAAE,GAAG,EAAE,CAAC,CAAC;IACpD,WAAW,EAAE,CAAC,EAAyC,EAAE,EAAE,CAAC,EAAE;CAC/D,CAAC,CAAC,CAAC;AAEJ,MAAM,UAAU,GAAG;IACjB,IAAI,EAAE,WAAE,CAAC,EAAE,EAAE;IACb,IAAI,EAAE,WAAE,CAAC,EAAE,EAAE;IACb,KAAK,EAAE,WAAE,CAAC,EAAE,EAAE;IACd,KAAK,EAAE,WAAE,CAAC,EAAE,EAAE;CACf,CAAC;AAEF,MAAM,KAAK,GAAG,WAAE,CAAC,OAAO,CAAC,GAAG,EAAE,CAAC,CAAC;IAC9B,wBAAwB,EAAE,WAAE,CAAC,EAAE,EAAE;IACjC,UAAU,EAAE,WAAE,CAAC,EAAE,EAAE;IACnB,YAAY,EAAE,WAAE,CAAC,EAAE,EAAE;IACrB,qBAAqB,EAAE,WAAE,CAAC,EAAE,EAAE;IAC9B,SAAS,EAAE,WAAE,CAAC,EAAE,EAAE;IAClB,gBAAgB,EAAE,WAAE,CAAC,EAAE,EAAE;IACzB,UAAU,EAAE,WAAE,CAAC,EAAE,EAAE;IACnB,SAAS,EAAE,WAAE,CAAC,EAAE,EAAE;CACnB,CAAC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ourceRoot":"","sources":["../../../src/commands/auth/list-projects.command.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"list-projects.command.d.ts","sourceRoot":"","sources":["../../../src/commands/auth/list-projects.command.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAM3C,UAAU,OAAO;IACf,IAAI,CAAC,EAAE,OAAO,CAAC;CAChB;AAED,eAAO,MAAM,mBAAmB,EAAE,aAAa,CAAC,OAAO,EAAE,OAAO,CA6C/D,CAAC"}
|
|
@@ -1,10 +1,11 @@
|
|
|
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]="ff1d263b-8c49-5577-b678-dd28914b6398")}catch(e){}}();
|
|
3
3
|
|
|
4
4
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
5
|
exports.listProjectsCommand = void 0;
|
|
6
6
|
const client_1 = require("@alwaysmeticulous/client");
|
|
7
7
|
const common_1 = require("@alwaysmeticulous/common");
|
|
8
|
+
const print_json_1 = require("../../command-utils/print-json");
|
|
8
9
|
const sentry_utils_1 = require("../../command-utils/sentry.utils");
|
|
9
10
|
const cli_user_error_1 = require("../../utils/cli-user-error");
|
|
10
11
|
const select_project_1 = require("../../utils/select-project");
|
|
@@ -15,12 +16,13 @@ exports.listProjectsCommand = {
|
|
|
15
16
|
json: {
|
|
16
17
|
boolean: true,
|
|
17
18
|
description: "Output projects as a JSON array of {id, name, organization: {name}} " +
|
|
18
|
-
"instead of one
|
|
19
|
+
"on stdout (an empty array when there are none) instead of one " +
|
|
20
|
+
"'organization/project' slug per line. Notices still go to stderr.",
|
|
19
21
|
default: false,
|
|
20
22
|
},
|
|
21
23
|
},
|
|
22
24
|
handler: (0, sentry_utils_1.wrapHandler)(async ({ json }) => {
|
|
23
|
-
|
|
25
|
+
(0, common_1.initLogger)();
|
|
24
26
|
// Enumerating the user's projects is an OAuth-only operation: a
|
|
25
27
|
// project-scoped API token (env var or legacy config) is bound to a single
|
|
26
28
|
// project and cannot list the rest. Rather than asking the user to log out
|
|
@@ -30,20 +32,20 @@ exports.listProjectsCommand = {
|
|
|
30
32
|
const client = (0, client_1.createClient)({ apiToken });
|
|
31
33
|
const projects = await (0, select_project_1.fetchAccessibleProjects)(client);
|
|
32
34
|
if (json) {
|
|
33
|
-
|
|
35
|
+
(0, print_json_1.printJson)(projects.map((p) => ({
|
|
34
36
|
id: p.id,
|
|
35
37
|
name: p.name,
|
|
36
38
|
organization: { name: p.organization.name },
|
|
37
|
-
}));
|
|
38
|
-
process.stdout.write(JSON.stringify(payload, null, 2) + "\n");
|
|
39
|
-
return;
|
|
39
|
+
})));
|
|
40
40
|
}
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
41
|
+
else {
|
|
42
|
+
for (const p of projects) {
|
|
43
|
+
console.log(`${p.organization.name}/${p.name}`);
|
|
44
|
+
}
|
|
44
45
|
}
|
|
45
|
-
|
|
46
|
-
|
|
46
|
+
// Guidance on stderr regardless of --json (which only changes stdout).
|
|
47
|
+
if (projects.length === 0) {
|
|
48
|
+
(0, common_1.logNotice)("No projects are accessible to your account.");
|
|
47
49
|
}
|
|
48
50
|
}),
|
|
49
51
|
};
|
|
@@ -55,7 +57,8 @@ const resolveOAuthToken = async () => {
|
|
|
55
57
|
if (!(0, client_1.isInteractiveContext)()) {
|
|
56
58
|
throw new cli_user_error_1.CliUserError("`meticulous auth list-projects` lists the projects your user account " +
|
|
57
59
|
"can access, which requires an OAuth login. Run it from an " +
|
|
58
|
-
"interactive terminal to log in via the browser
|
|
60
|
+
"interactive terminal to log in via the browser, or first run " +
|
|
61
|
+
"`meticulous auth login --non-interactive`. (A project-scoped " +
|
|
59
62
|
"METICULOUS_API_TOKEN or ~/.meticulous/config.json token cannot " +
|
|
60
63
|
"enumerate projects.)");
|
|
61
64
|
}
|
|
@@ -63,4 +66,4 @@ const resolveOAuthToken = async () => {
|
|
|
63
66
|
return tokens.accessToken;
|
|
64
67
|
};
|
|
65
68
|
//# sourceMappingURL=list-projects.command.js.map
|
|
66
|
-
//# debugId=
|
|
69
|
+
//# debugId=ff1d263b-8c49-5577-b678-dd28914b6398
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list-projects.command.js","sources":["../../../src/commands/auth/list-projects.command.ts"],"sourceRoot":"","names":[],"mappings":";;;;;AAAA,qDAKkC;AAClC,
|
|
1
|
+
{"version":3,"file":"list-projects.command.js","sources":["../../../src/commands/auth/list-projects.command.ts"],"sourceRoot":"","names":[],"mappings":";;;;;AAAA,qDAKkC;AAClC,qDAAiE;AAEjE,+DAA2D;AAC3D,mEAA+D;AAC/D,+DAA0D;AAC1D,+DAAqE;AAMxD,QAAA,mBAAmB,GAAoC;IAClE,OAAO,EAAE,eAAe;IACxB,QAAQ,EAAE,mEAAmE;IAC7E,OAAO,EAAE;QACP,IAAI,EAAE;YACJ,OAAO,EAAE,IAAI;YACb,WAAW,EACT,sEAAsE;gBACtE,gEAAgE;gBAChE,mEAAmE;YACrE,OAAO,EAAE,KAAK;SACf;KACF;IACD,OAAO,EAAE,IAAA,0BAAW,EAAC,KAAK,EAAE,EAAE,IAAI,EAAW,EAAE,EAAE;QAC/C,IAAA,mBAAU,GAAE,CAAC;QAEb,gEAAgE;QAChE,2EAA2E;QAC3E,2EAA2E;QAC3E,uEAAuE;QACvE,4EAA4E;QAC5E,MAAM,QAAQ,GAAG,MAAM,iBAAiB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C,OAAO,MAAM,CAAC,WAAW,CAAC;AAC5B,CAAC,CAAC","debugId":"ff1d263b-8c49-5577-b678-dd28914b6398"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"login.command.d.ts","sourceRoot":"","sources":["../../../src/commands/auth/login.command.ts"],"names":[],"mappings":"AAQA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAK3C,UAAU,OAAO;IACf,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,cAAc,CAAC,EAAE,OAAO,CAAC;CAC1B;AAED,eAAO,MAAM,YAAY,EAAE,aAAa,CAAC,OAAO,EAAE,OAAO,
|
|
1
|
+
{"version":3,"file":"login.command.d.ts","sourceRoot":"","sources":["../../../src/commands/auth/login.command.ts"],"names":[],"mappings":"AAQA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAK3C,UAAU,OAAO;IACf,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,cAAc,CAAC,EAAE,OAAO,CAAC;CAC1B;AAED,eAAO,MAAM,YAAY,EAAE,aAAa,CAAC,OAAO,EAAE,OAAO,CA2ExD,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]="f048a1b0-d763-5107-9b60-cc7659056cf0")}catch(e){}}();
|
|
3
3
|
|
|
4
4
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
5
|
exports.loginCommand = void 0;
|
|
@@ -29,7 +29,7 @@ exports.loginCommand = {
|
|
|
29
29
|
},
|
|
30
30
|
},
|
|
31
31
|
handler: (0, sentry_utils_1.wrapHandler)(async ({ project, nonInteractive = false }) => {
|
|
32
|
-
|
|
32
|
+
(0, common_1.initLogger)();
|
|
33
33
|
// Treat an explicit `--non-interactive` as authoritative; otherwise fall
|
|
34
34
|
// back to detecting whether we're attached to a real terminal.
|
|
35
35
|
const hasTty = (0, client_1.isInteractiveContext)();
|
|
@@ -64,13 +64,12 @@ exports.loginCommand = {
|
|
|
64
64
|
// rather than leaving nothing selected.
|
|
65
65
|
await (0, select_project_1.selectAndStoreProject)({
|
|
66
66
|
client,
|
|
67
|
-
logger,
|
|
68
67
|
project,
|
|
69
68
|
allowInteractivePrompt: interactive,
|
|
70
69
|
fallbackToProject: previousProject ?? undefined,
|
|
71
70
|
});
|
|
72
|
-
|
|
71
|
+
(0, common_1.logNotice)("You can change the selected project at any time with `meticulous auth set-project`.");
|
|
73
72
|
}),
|
|
74
73
|
};
|
|
75
74
|
//# sourceMappingURL=login.command.js.map
|
|
76
|
-
//# debugId=
|
|
75
|
+
//# debugId=f048a1b0-d763-5107-9b60-cc7659056cf0
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"login.command.js","sources":["../../../src/commands/auth/login.command.ts"],"sourceRoot":"","names":[],"mappings":";;;;;AAAA,qDAMkC;AAClC,
|
|
1
|
+
{"version":3,"file":"login.command.js","sources":["../../../src/commands/auth/login.command.ts"],"sourceRoot":"","names":[],"mappings":";;;;;AAAA,qDAMkC;AAClC,qDAAiE;AAEjE,mEAA+D;AAC/D,+DAA0D;AAC1D,+DAAmE;AAOtD,QAAA,YAAY,GAAoC;IAC3D,OAAO,EAAE,OAAO;IAChB,QAAQ,EAAE,8CAA8C;IACxD,OAAO,EAAE;QACP,OAAO,EAAE;YACP,MAAM,EAAE,IAAI;YACZ,WAAW,EACT,4EAA4E;gBAC5E,+DAA+D;SAClE;QACD,cAAc,EAAE;YACd,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CAAC,CAAC;QAEH,IAAA,kBAAS,EACP,qFAAqF,CACtF,CAAC;IACJ,CAAC,CAAC;CACH,CAAC","debugId":"f048a1b0-d763-5107-9b60-cc7659056cf0"}
|
|
@@ -1,7 +1,3 @@
|
|
|
1
1
|
import type { CommandModule } from "yargs";
|
|
2
|
-
|
|
3
|
-
dryRun?: boolean;
|
|
4
|
-
}
|
|
5
|
-
export declare const logoutCommand: CommandModule<unknown, Options>;
|
|
6
|
-
export {};
|
|
2
|
+
export declare const logoutCommand: CommandModule;
|
|
7
3
|
//# sourceMappingURL=logout.command.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"logout.command.d.ts","sourceRoot":"","sources":["../../../src/commands/auth/logout.command.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAG3C,
|
|
1
|
+
{"version":3,"file":"logout.command.d.ts","sourceRoot":"","sources":["../../../src/commands/auth/logout.command.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAG3C,eAAO,MAAM,aAAa,EAAE,aAY3B,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]="51aac2cb-fe09-5054-bd29-e8184aa1fae1")}catch(e){}}();
|
|
3
3
|
|
|
4
4
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
5
|
exports.logoutCommand = void 0;
|
|
@@ -9,16 +9,11 @@ const sentry_utils_1 = require("../../command-utils/sentry.utils");
|
|
|
9
9
|
exports.logoutCommand = {
|
|
10
10
|
command: "logout",
|
|
11
11
|
describe: "Clear stored OAuth tokens and selected project",
|
|
12
|
-
|
|
13
|
-
handler: (0, sentry_utils_1.wrapHandler)(({ dryRun }) => {
|
|
12
|
+
handler: (0, sentry_utils_1.wrapHandler)(() => {
|
|
14
13
|
const logger = (0, common_1.initLogger)();
|
|
15
|
-
if (dryRun) {
|
|
16
|
-
logger.info("Dry run: would clear stored OAuth tokens and selected project");
|
|
17
|
-
return Promise.resolve();
|
|
18
|
-
}
|
|
19
14
|
(0, client_1.clearOAuthTokens)();
|
|
20
15
|
(0, client_1.clearStoredProject)();
|
|
21
|
-
|
|
16
|
+
(0, common_1.logNotice)("Logged out successfully.");
|
|
22
17
|
warnAboutRemainingCredentials(logger);
|
|
23
18
|
return Promise.resolve();
|
|
24
19
|
}),
|
|
@@ -43,4 +38,4 @@ const warnAboutRemainingCredentials = (logger) => {
|
|
|
43
38
|
}
|
|
44
39
|
};
|
|
45
40
|
//# sourceMappingURL=logout.command.js.map
|
|
46
|
-
//# debugId=
|
|
41
|
+
//# debugId=51aac2cb-fe09-5054-bd29-e8184aa1fae1
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"logout.command.js","sources":["../../../src/commands/auth/logout.command.ts"],"sourceRoot":"","names":[],"mappings":";;;;;AAAA,qDAIkC;AAClC,
|
|
1
|
+
{"version":3,"file":"logout.command.js","sources":["../../../src/commands/auth/logout.command.ts"],"sourceRoot":"","names":[],"mappings":";;;;;AAAA,qDAIkC;AAClC,qDAAiE;AAGjE,mEAA+D;AAElD,QAAA,aAAa,GAAkB;IAC1C,OAAO,EAAE,QAAQ;IACjB,QAAQ,EAAE,gDAAgD;IAC1D,OAAO,EAAE,IAAA,0BAAW,EAAC,GAAG,EAAE;QACxB,MAAM,MAAM,GAAG,IAAA,mBAAU,GAAE,CAAC;QAC5B,IAAA,yBAAgB,GAAE,CAAC;QACnB,IAAA,2BAAkB,GAAE,CAAC;QACrB,IAAA,kBAAS,EAAC,0BAA0B,CAAC,CAAC;QAEtC,6BAA6B,CAAC,MAAM,CAAC,CAAC;QACtC,OAAO,OAAO,CAAC,OAAO,EAAE,CAAC;IAC3B,CAAC,CAAC;CACH,CAAC;AAEF,MAAM,6BAA6B,GAAG,CAAC,MAAc,EAAQ,EAAE;IAC7D,IAAI,OAAO,CAAC,GAAG,CAAC,sBAAsB,CAAC,EAAE,CAAC;QACxC,MAAM,CAAC,IAAI,CACT,uEAAuE;YACrE,+DAA+D,CAClE,CAAC;IACJ,CAAC;IAED,4EAA4E;IAC5E,2DAA2D;IAC3D,IAAI,SAAS,GAA0C,IAAI,CAAC;IAC5D,IAAI,CAAC;QACH,SAAS,GAAG,IAAA,2BAAkB,GAAE,CAAC;IACnC,CAAC;IAAC,MAAM,CAAC;QACP,OAAO;IACT,CAAC;IACD,IAAI,SAAS,EAAE,CAAC;QACd,MAAM,CAAC,IAAI,CACT,yCAAyC,SAAS,CAAC,IAAI,OAAO;YAC5D,sEAAsE,CACzE,CAAC;IACJ,CAAC;AACH,CAAC,CAAC","debugId":"51aac2cb-fe09-5054-bd29-e8184aa1fae1"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"set-project.command.d.ts","sourceRoot":"","sources":["../../../src/commands/auth/set-project.command.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAK3C,UAAU,OAAO;IACf,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB;AAED,eAAO,MAAM,iBAAiB,EAAE,aAAa,CAAC,OAAO,EAAE,OAAO,
|
|
1
|
+
{"version":3,"file":"set-project.command.d.ts","sourceRoot":"","sources":["../../../src/commands/auth/set-project.command.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAK3C,UAAU,OAAO;IACf,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB;AAED,eAAO,MAAM,iBAAiB,EAAE,aAAa,CAAC,OAAO,EAAE,OAAO,CA4C7D,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]="a672f1da-7096-58fd-a622-e65024367f92")}catch(e){}}();
|
|
3
3
|
|
|
4
4
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
5
|
exports.setProjectCommand = void 0;
|
|
@@ -20,7 +20,7 @@ exports.setProjectCommand = {
|
|
|
20
20
|
},
|
|
21
21
|
},
|
|
22
22
|
handler: (0, sentry_utils_1.wrapHandler)(async ({ project }) => {
|
|
23
|
-
|
|
23
|
+
(0, common_1.initLogger)();
|
|
24
24
|
const apiToken = await (0, client_1.resolveApiTokenWithOAuth)({
|
|
25
25
|
apiToken: null,
|
|
26
26
|
enableOAuthLogin: true,
|
|
@@ -35,14 +35,16 @@ exports.setProjectCommand = {
|
|
|
35
35
|
"logout` and unset `METICULOUS_API_TOKEN`, then re-run this " +
|
|
36
36
|
"command to log in with OAuth.");
|
|
37
37
|
}
|
|
38
|
-
const client = (0, client_1.
|
|
38
|
+
const client = await (0, client_1.createClientWithOAuth)({
|
|
39
|
+
apiToken: null,
|
|
40
|
+
enableOAuthLogin: true,
|
|
41
|
+
});
|
|
39
42
|
await (0, select_project_1.selectAndStoreProject)({
|
|
40
43
|
client,
|
|
41
|
-
logger,
|
|
42
44
|
project,
|
|
43
45
|
allowInteractivePrompt: (0, client_1.isInteractiveContext)(),
|
|
44
46
|
});
|
|
45
47
|
}),
|
|
46
48
|
};
|
|
47
49
|
//# sourceMappingURL=set-project.command.js.map
|
|
48
|
-
//# debugId=
|
|
50
|
+
//# debugId=a672f1da-7096-58fd-a622-e65024367f92
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"set-project.command.js","sources":["../../../src/commands/auth/set-project.command.ts"],"sourceRoot":"","names":[],"mappings":";;;;;AAAA,qDAKkC;AAClC,qDAAsD;AAEtD,mEAA+D;AAC/D,+DAA0D;AAC1D,+DAAmE;AAMtD,QAAA,iBAAiB,GAAoC;IAChE,OAAO,EAAE,aAAa;IACtB,QAAQ,EACN,wEAAwE;IAC1E,OAAO,EAAE;QACP,OAAO,EAAE;YACP,MAAM,EAAE,IAAI;YACZ,WAAW,EACT,4EAA4E;gBAC5E,2EAA2E;gBAC3E,qEAAqE;SACxE;KACF;IACD,OAAO,EAAE,IAAA,0BAAW,EAAC,KAAK,EAAE,EAAE,OAAO,EAAW,EAAE,EAAE;QAClD,
|
|
1
|
+
{"version":3,"file":"set-project.command.js","sources":["../../../src/commands/auth/set-project.command.ts"],"sourceRoot":"","names":[],"mappings":";;;;;AAAA,qDAKkC;AAClC,qDAAsD;AAEtD,mEAA+D;AAC/D,+DAA0D;AAC1D,+DAAmE;AAMtD,QAAA,iBAAiB,GAAoC;IAChE,OAAO,EAAE,aAAa;IACtB,QAAQ,EACN,wEAAwE;IAC1E,OAAO,EAAE;QACP,OAAO,EAAE;YACP,MAAM,EAAE,IAAI;YACZ,WAAW,EACT,4EAA4E;gBAC5E,2EAA2E;gBAC3E,qEAAqE;SACxE;KACF;IACD,OAAO,EAAE,IAAA,0BAAW,EAAC,KAAK,EAAE,EAAE,OAAO,EAAW,EAAE,EAAE;QAClD,IAAA,mBAAU,GAAE,CAAC;QAEb,MAAM,QAAQ,GAAG,MAAM,IAAA,iCAAwB,EAAC;YAC9C,QAAQ,EAAE,IAAI;YACd,gBAAgB,EAAE,IAAI;SACvB,CAAC,CAAC;QAEH,qEAAqE;QACrE,+CAA+C;QAC/C,IAAI,CAAC,IAAA,mBAAU,EAAC,QAAQ,CAAC,EAAE,CAAC;YAC1B,MAAM,IAAI,6BAAY,CACpB,gEAAgE;gBAC9D,+DAA+D;gBAC/D,UAAU;gBACV,gEAAgE;gBAChE,6DAA6D;gBAC7D,+BAA+B,CAClC,CAAC;QACJ,CAAC;QAED,MAAM,MAAM,GAAG,MAAM,IAAA,8BAAqB,EAAC;YACzC,QAAQ,EAAE,IAAI;YACd,gBAAgB,EAAE,IAAI;SACvB,CAAC,CAAC;QACH,MAAM,IAAA,sCAAqB,EAAC;YAC1B,MAAM;YACN,OAAO;YACP,sBAAsB,EAAE,IAAA,6BAAoB,GAAE;SAC/C,CAAC,CAAC;IACL,CAAC,CAAC;CACH,CAAC","debugId":"a672f1da-7096-58fd-a622-e65024367f92"}
|
|
@@ -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]="e3ecc8cf-a4f8-5ae3-bcfa-04079472df76")}catch(e){}}();
|
|
3
3
|
|
|
4
4
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
5
|
exports.unsetProjectCommand = void 0;
|
|
@@ -11,17 +11,17 @@ exports.unsetProjectCommand = {
|
|
|
11
11
|
describe: "Clear the project selected via `auth set-project`",
|
|
12
12
|
builder: {},
|
|
13
13
|
handler: (0, sentry_utils_1.wrapHandler)(() => {
|
|
14
|
-
|
|
14
|
+
(0, common_1.initLogger)();
|
|
15
15
|
const previous = (0, client_1.getStoredProject)();
|
|
16
16
|
(0, client_1.clearStoredProject)();
|
|
17
17
|
if (previous) {
|
|
18
|
-
|
|
18
|
+
(0, common_1.logNotice)(`Cleared selected project (was: ${previous}).`);
|
|
19
19
|
}
|
|
20
20
|
else {
|
|
21
|
-
|
|
21
|
+
(0, common_1.logNotice)("No project was selected.");
|
|
22
22
|
}
|
|
23
23
|
return Promise.resolve();
|
|
24
24
|
}),
|
|
25
25
|
};
|
|
26
26
|
//# sourceMappingURL=unset-project.command.js.map
|
|
27
|
-
//# debugId=
|
|
27
|
+
//# debugId=e3ecc8cf-a4f8-5ae3-bcfa-04079472df76
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"unset-project.command.js","sources":["../../../src/commands/auth/unset-project.command.ts"],"sourceRoot":"","names":[],"mappings":";;;;;AAAA,qDAAgF;AAChF,
|
|
1
|
+
{"version":3,"file":"unset-project.command.js","sources":["../../../src/commands/auth/unset-project.command.ts"],"sourceRoot":"","names":[],"mappings":";;;;;AAAA,qDAAgF;AAChF,qDAAiE;AAEjE,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,IAAA,mBAAU,GAAE,CAAC;QACb,MAAM,QAAQ,GAAG,IAAA,yBAAgB,GAAE,CAAC;QACpC,IAAA,2BAAkB,GAAE,CAAC;QACrB,IAAI,QAAQ,EAAE,CAAC;YACb,IAAA,kBAAS,EAAC,kCAAkC,QAAQ,IAAI,CAAC,CAAC;QAC5D,CAAC;aAAM,CAAC;YACN,IAAA,kBAAS,EAAC,0BAA0B,CAAC,CAAC;QACxC,CAAC;QACD,OAAO,OAAO,CAAC,OAAO,EAAE,CAAC;IAC3B,CAAC,CAAC;CACH,CAAC","debugId":"e3ecc8cf-a4f8-5ae3-bcfa-04079472df76"}
|
|
@@ -1,3 +1,7 @@
|
|
|
1
1
|
import type { CommandModule } from "yargs";
|
|
2
|
-
|
|
2
|
+
interface Options {
|
|
3
|
+
json: boolean;
|
|
4
|
+
}
|
|
5
|
+
export declare const whoamiCommand: CommandModule<unknown, Options>;
|
|
6
|
+
export {};
|
|
3
7
|
//# sourceMappingURL=whoami.command.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"whoami.command.d.ts","sourceRoot":"","sources":["../../../src/commands/auth/whoami.command.ts"],"names":[],"mappings":"AAUA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"whoami.command.d.ts","sourceRoot":"","sources":["../../../src/commands/auth/whoami.command.ts"],"names":[],"mappings":"AAUA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAK3C,UAAU,OAAO;IACf,IAAI,EAAE,OAAO,CAAC;CACf;AAED,eAAO,MAAM,aAAa,EAAE,aAAa,CAAC,OAAO,EAAE,OAAO,CAuGzD,CAAC"}
|