protovibe 1.1.6 → 1.1.7
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/index.mjs +8 -4
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -637,10 +637,14 @@ function App({ terminalWidth, version }) {
|
|
|
637
637
|
process.stdout.write("\nLogin cancelled. Run protovibe again when ready.\n");
|
|
638
638
|
process.exit(0);
|
|
639
639
|
}
|
|
640
|
-
process.stdout.write(
|
|
641
|
-
|
|
642
|
-
)
|
|
643
|
-
|
|
640
|
+
process.stdout.write("\n Opening browser to log you in to Claude Code...\n\n");
|
|
641
|
+
const loginResult = spawnSync("claude", ["auth", "login"], { stdio: "inherit", shell: true });
|
|
642
|
+
if (loginResult.status !== 0 && loginResult.status !== null) {
|
|
643
|
+
process.stdout.write(
|
|
644
|
+
"\n Opening Claude Code to log you in.\n Once logged in, type /exit to return to ProtoVibe.\n\n"
|
|
645
|
+
);
|
|
646
|
+
spawnSync("claude", [], { stdio: "inherit", shell: true });
|
|
647
|
+
}
|
|
644
648
|
if (!isAuthenticated()) {
|
|
645
649
|
process.stderr.write("\n\u2717 Not logged in. Run protovibe again after logging in.\n");
|
|
646
650
|
process.exit(1);
|