@creativeintelligence/abbie 0.1.8 → 0.1.10
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/cli/commands/login.js +11 -8
- package/oclif.manifest.json +1 -1
- package/package.json +1 -1
|
@@ -74,6 +74,7 @@ If already authenticated, shows current status. Use --force to re-authenticate.`
|
|
|
74
74
|
try {
|
|
75
75
|
const result = await client.mutation(api.functions.auth.tokens.createAuthCode, {
|
|
76
76
|
deviceId: device.deviceId,
|
|
77
|
+
hostname: device.hostname,
|
|
77
78
|
});
|
|
78
79
|
code = result.code;
|
|
79
80
|
expiresAt = result.expiresAt;
|
|
@@ -87,11 +88,14 @@ If already authenticated, shows current status. Use --force to re-authenticate.`
|
|
|
87
88
|
const webUrl = getWebUrl();
|
|
88
89
|
const authUrl = `${webUrl}/auth/cli?code=${code}`;
|
|
89
90
|
this.log("");
|
|
90
|
-
this.log("
|
|
91
|
-
this.log(
|
|
91
|
+
this.log(" ╭───────────────────────────────────────────╮");
|
|
92
|
+
this.log(" │ │");
|
|
93
|
+
this.log(` │ Code ${code} │`);
|
|
94
|
+
this.log(` │ Device ${device.hostname.slice(0, 25).padEnd(25)} │`);
|
|
95
|
+
this.log(" │ │");
|
|
96
|
+
this.log(" ╰───────────────────────────────────────────╯");
|
|
92
97
|
this.log("");
|
|
93
|
-
this.log(`
|
|
94
|
-
this.log(` device: ${device.hostname} (${device.deviceId.slice(0, 8)}...)`);
|
|
98
|
+
this.log(` ${authUrl}`);
|
|
95
99
|
this.log("");
|
|
96
100
|
if (flags.open) {
|
|
97
101
|
try {
|
|
@@ -168,9 +172,8 @@ If already authenticated, shows current status. Use --force to re-authenticate.`
|
|
|
168
172
|
// Non-fatal — bridge can still be started manually
|
|
169
173
|
}
|
|
170
174
|
this.log("");
|
|
171
|
-
this.log(" ✓
|
|
172
|
-
this.log(`
|
|
173
|
-
this.log(` device: ${device.hostname}`);
|
|
175
|
+
this.log(" ✓ Authenticated");
|
|
176
|
+
this.log(` ${device.hostname}`);
|
|
174
177
|
this.log("");
|
|
175
178
|
// Step 5: Optional initial sync
|
|
176
179
|
if (flags.sync) {
|
|
@@ -185,7 +188,7 @@ If already authenticated, shows current status. Use --force to re-authenticate.`
|
|
|
185
188
|
this.logInfo("run `abbie sync --apply` manually to sync.");
|
|
186
189
|
}
|
|
187
190
|
}
|
|
188
|
-
this.logInfo("run `abbie
|
|
191
|
+
this.logInfo("run `abbie` to launch the TUI, or visit https://abbie.computer");
|
|
189
192
|
return {
|
|
190
193
|
status: "authenticated",
|
|
191
194
|
clerkId,
|
package/oclif.manifest.json
CHANGED