@zivis/cli 0.1.0-alpha.7 → 0.1.0-alpha.9
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/commands/auth/init.js +102 -116
- package/dist/commands/auth/init.js.map +1 -1
- package/package.json +1 -1
|
@@ -1,14 +1,9 @@
|
|
|
1
1
|
import * as readline from "node:readline/promises";
|
|
2
|
-
import { login, getStorageName, saveSessionEntry
|
|
3
|
-
import { getValidAccessToken } from "@zivis/mcp/auth/token-refresh";
|
|
2
|
+
import { login, getStorageName, saveSessionEntry } from "@zivis/mcp/auth";
|
|
4
3
|
import { DEFAULT_CONFIG } from "@zivis/mcp/types";
|
|
5
4
|
import { fetchUserOrgs, extractEmail } from "../../internal/orgs.js";
|
|
6
5
|
import { ensureProjectBinding } from "../../internal/project-binding.js";
|
|
7
|
-
|
|
8
|
-
function parseReceivedOrgId(msg) {
|
|
9
|
-
const m = msg.match(/received (org_\w+)/);
|
|
10
|
-
return m ? m[1] : null;
|
|
11
|
-
}
|
|
6
|
+
import { decodeJwtPayload } from "@zivis/mcp/auth/jwt";
|
|
12
7
|
async function prompt(question) {
|
|
13
8
|
const rl = readline.createInterface({ input: process.stdin, output: process.stderr });
|
|
14
9
|
try {
|
|
@@ -21,134 +16,125 @@ async function prompt(question) {
|
|
|
21
16
|
export async function initCommand(opts) {
|
|
22
17
|
const config = DEFAULT_CONFIG;
|
|
23
18
|
const session = opts.session || "default";
|
|
24
|
-
//
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
const stored = await loadTokens(session);
|
|
29
|
-
const email = extractEmail(stored?.id_token);
|
|
30
|
-
console.log(`Using existing session (${email}).`);
|
|
31
|
-
console.log(`To force re-login first: zivis auth logout && zivis auth init\n`);
|
|
32
|
-
}
|
|
33
|
-
else {
|
|
34
|
-
console.log("Step 1/2: Authenticate (browser will open)...");
|
|
35
|
-
try {
|
|
36
|
-
const tokens = await login(config, session, undefined, { skipConfirm: true });
|
|
37
|
-
bootstrapToken = tokens.access_token;
|
|
38
|
-
const email = extractEmail(tokens.id_token);
|
|
39
|
-
console.log(`✓ Authenticated as ${email}`);
|
|
40
|
-
}
|
|
41
|
-
catch (err) {
|
|
42
|
-
console.error("Login failed:", err instanceof Error ? err.message : err);
|
|
43
|
-
process.exit(1);
|
|
44
|
-
}
|
|
45
|
-
}
|
|
46
|
-
// Fetch the user's orgs
|
|
47
|
-
let orgs;
|
|
19
|
+
// Step 1: Open browser — no org pre-selection. User picks the org in their browser.
|
|
20
|
+
console.log("Opening browser for authentication...");
|
|
21
|
+
console.log("Log into the org you want to bind this project to.\n");
|
|
22
|
+
let tokens;
|
|
48
23
|
try {
|
|
49
|
-
|
|
24
|
+
tokens = await login(config, session, undefined, { skipConfirm: true });
|
|
50
25
|
}
|
|
51
26
|
catch (err) {
|
|
52
|
-
console.error("
|
|
53
|
-
process.exit(1);
|
|
54
|
-
}
|
|
55
|
-
if (orgs.length === 0) {
|
|
56
|
-
console.error("No organizations found for this account. Contact support.");
|
|
27
|
+
console.error("Login failed:", err instanceof Error ? err.message : err);
|
|
57
28
|
process.exit(1);
|
|
58
29
|
}
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
30
|
+
const email = extractEmail(tokens.id_token);
|
|
31
|
+
// Step 2: Determine which org the JWT is scoped to
|
|
32
|
+
const claims = decodeJwtPayload(tokens.access_token);
|
|
33
|
+
const jwtOrgId = claims?.org_id;
|
|
34
|
+
if (jwtOrgId) {
|
|
35
|
+
// Look up org name before confirming
|
|
36
|
+
let orgName;
|
|
37
|
+
try {
|
|
38
|
+
const orgs = await fetchUserOrgs(config, tokens.access_token);
|
|
39
|
+
orgName = orgs.find((o) => o.workosOrgId === jwtOrgId)?.name;
|
|
40
|
+
}
|
|
41
|
+
catch {
|
|
42
|
+
// non-fatal
|
|
68
43
|
}
|
|
69
|
-
|
|
44
|
+
const orgLabel = orgName ?? jwtOrgId;
|
|
45
|
+
console.log(`\nAuthenticated as: ${email}`);
|
|
46
|
+
console.log(`Org: ${orgLabel}\n`);
|
|
47
|
+
const confirm = await prompt(`Bind this project to "${orgLabel}"? [Y/n] `);
|
|
48
|
+
if (confirm.toLowerCase() === "n" || confirm.toLowerCase() === "no") {
|
|
49
|
+
console.log("\nAborted. To log into a different org:");
|
|
50
|
+
console.log(" 1. In your browser, switch to the correct org (or use a private/incognito window)");
|
|
51
|
+
console.log(" 2. Run `zivis auth logout` then `zivis auth init` again");
|
|
52
|
+
process.exit(0);
|
|
53
|
+
}
|
|
54
|
+
const storageName = getStorageName();
|
|
55
|
+
await saveSessionEntry(session, email);
|
|
56
|
+
console.log(`\n✓ Logged in as ${email} → ${orgLabel}`);
|
|
57
|
+
console.log(`✓ Credentials stored in ${storageName}`);
|
|
58
|
+
await ensureProjectBinding({
|
|
59
|
+
config,
|
|
60
|
+
session,
|
|
61
|
+
accessToken: tokens.access_token,
|
|
62
|
+
organizationId: jwtOrgId,
|
|
63
|
+
cwd: process.cwd(),
|
|
64
|
+
autoBind: true,
|
|
65
|
+
skipBind: false,
|
|
66
|
+
});
|
|
70
67
|
}
|
|
71
68
|
else {
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
console.
|
|
76
|
-
|
|
77
|
-
}
|
|
78
|
-
// Attempt org-scoped login, with graceful handling for browser-session mismatches
|
|
79
|
-
let scopedTokens;
|
|
80
|
-
let finalOrgId = selectedOrg.workosOrgId;
|
|
81
|
-
let finalOrgName = selectedOrg.name;
|
|
82
|
-
let printUrlOnly = false;
|
|
83
|
-
for (let attempt = 0; attempt < 2; attempt++) {
|
|
84
|
-
const stepLabel = `Step ${orgs.length > 1 || attempt > 0 ? "2/2" : "1/1"}`;
|
|
85
|
-
const browserNote = printUrlOnly ? "(URL will be printed — paste into a private/incognito window)" : "(browser will open)";
|
|
86
|
-
console.log(`\n${stepLabel}: Logging in to ${finalOrgName} ${browserNote}...`);
|
|
69
|
+
// No org in JWT — user is authenticated but not scoped to an org yet.
|
|
70
|
+
// Fetch orgs and let them pick, then do a scoped login.
|
|
71
|
+
console.log("\nYour account isn't scoped to a specific org yet.");
|
|
72
|
+
console.log("Fetching your organizations...\n");
|
|
73
|
+
let orgs;
|
|
87
74
|
try {
|
|
88
|
-
|
|
89
|
-
orgName: finalOrgName,
|
|
90
|
-
skipConfirm: true,
|
|
91
|
-
printUrlOnly,
|
|
92
|
-
});
|
|
93
|
-
break; // success
|
|
75
|
+
orgs = await fetchUserOrgs(config, tokens.access_token);
|
|
94
76
|
}
|
|
95
77
|
catch (err) {
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
78
|
+
console.error("Failed to fetch organizations:", err instanceof Error ? err.message : err);
|
|
79
|
+
process.exit(1);
|
|
80
|
+
}
|
|
81
|
+
if (orgs.length === 0) {
|
|
82
|
+
console.error("No organizations found. Contact support.");
|
|
83
|
+
process.exit(1);
|
|
84
|
+
}
|
|
85
|
+
if (orgs.length === 1) {
|
|
86
|
+
console.log(`One org found: ${orgs[0].name}. Re-authenticating scoped to that org...`);
|
|
87
|
+
}
|
|
88
|
+
else {
|
|
89
|
+
console.log("Your organizations:");
|
|
90
|
+
orgs.forEach((org, i) => console.log(` ${i + 1}. ${org.name}`));
|
|
91
|
+
const answer = await prompt(`\nSelect org to bind this project to [1-${orgs.length}]: `);
|
|
92
|
+
const idx = parseInt(answer, 10) - 1;
|
|
93
|
+
if (isNaN(idx) || idx < 0 || idx >= orgs.length) {
|
|
94
|
+
console.error("Invalid selection.");
|
|
100
95
|
process.exit(1);
|
|
101
96
|
}
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
console.error(`\n⚠ Browser authenticated to "${receivedName}" instead of "${finalOrgName}".`);
|
|
106
|
-
console.error(` Your browser's active session is for a different org.`);
|
|
107
|
-
if (attempt >= 1) {
|
|
108
|
-
console.error("\nStill mismatched after retry — your browser may not support private-window auto-open.");
|
|
109
|
-
console.error("Run `zivis auth init` again and paste the printed URL into a private/incognito window manually.");
|
|
97
|
+
const selected = orgs[idx];
|
|
98
|
+
if (!selected.workosOrgId) {
|
|
99
|
+
console.error(`Org "${selected.name}" has no WorkOS org ID.`);
|
|
110
100
|
process.exit(1);
|
|
111
101
|
}
|
|
112
|
-
console.
|
|
113
|
-
console.
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
102
|
+
console.log(`\nRe-opening browser scoped to ${selected.name}...`);
|
|
103
|
+
console.log("(Tip: if your browser logs into the wrong org, use option 2 to get a URL for a private/incognito window)\n");
|
|
104
|
+
try {
|
|
105
|
+
const scopedTokens = await login(config, session, selected.workosOrgId, {
|
|
106
|
+
orgName: selected.name,
|
|
107
|
+
skipConfirm: true,
|
|
108
|
+
});
|
|
109
|
+
const storageName2 = getStorageName();
|
|
110
|
+
await saveSessionEntry(session, email);
|
|
111
|
+
console.log(`\n✓ Logged in as ${email} → ${selected.name}`);
|
|
112
|
+
console.log(`✓ Credentials stored in ${storageName2}`);
|
|
113
|
+
await ensureProjectBinding({
|
|
114
|
+
config,
|
|
115
|
+
session,
|
|
116
|
+
accessToken: scopedTokens.access_token,
|
|
117
|
+
organizationId: selected.workosOrgId,
|
|
118
|
+
cwd: process.cwd(),
|
|
119
|
+
autoBind: true,
|
|
120
|
+
skipBind: false,
|
|
121
|
+
});
|
|
128
122
|
}
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
123
|
+
catch (err) {
|
|
124
|
+
const msg = err instanceof Error ? err.message : String(err);
|
|
125
|
+
const m = msg.match(/received (org_\w+)/);
|
|
126
|
+
if (m) {
|
|
127
|
+
console.error(`\n⚠ Browser authenticated to a different org than selected.`);
|
|
128
|
+
console.error(` Your browser has an active session for a different org.\n`);
|
|
129
|
+
console.error(` To fix: run \`zivis auth init\` again and paste the URL into a private/incognito window.`);
|
|
130
|
+
}
|
|
131
|
+
else {
|
|
132
|
+
console.error("Login failed:", msg);
|
|
133
|
+
}
|
|
134
|
+
process.exit(1);
|
|
132
135
|
}
|
|
133
136
|
}
|
|
134
137
|
}
|
|
135
|
-
if (!scopedTokens) {
|
|
136
|
-
process.exit(1);
|
|
137
|
-
}
|
|
138
|
-
const email = extractEmail(scopedTokens.id_token);
|
|
139
|
-
const storageName = getStorageName();
|
|
140
|
-
await saveSessionEntry(session, email);
|
|
141
|
-
console.log(`\n✓ Logged in as ${email} → ${finalOrgName}`);
|
|
142
|
-
console.log(`✓ Credentials stored in ${storageName}`);
|
|
143
|
-
await ensureProjectBinding({
|
|
144
|
-
config,
|
|
145
|
-
session,
|
|
146
|
-
accessToken: scopedTokens.access_token,
|
|
147
|
-
organizationId: finalOrgId,
|
|
148
|
-
cwd: process.cwd(),
|
|
149
|
-
autoBind: true,
|
|
150
|
-
skipBind: false,
|
|
151
|
-
});
|
|
152
138
|
process.exit(0);
|
|
153
139
|
}
|
|
154
140
|
//# sourceMappingURL=init.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"init.js","sourceRoot":"","sources":["../../../src/commands/auth/init.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,QAAQ,MAAM,wBAAwB,CAAC;AACnD,OAAO,EAAE,KAAK,EAAE,cAAc,EAAE,gBAAgB,EAAE,
|
|
1
|
+
{"version":3,"file":"init.js","sourceRoot":"","sources":["../../../src/commands/auth/init.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,QAAQ,MAAM,wBAAwB,CAAC;AACnD,OAAO,EAAE,KAAK,EAAE,cAAc,EAAE,gBAAgB,EAAE,MAAM,iBAAiB,CAAC;AAC1E,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,EAAE,aAA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