bitfab-cli 0.2.16 → 0.2.17

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.
Files changed (2) hide show
  1. package/dist/index.js +7 -3
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -7878,7 +7878,7 @@ async function openStudioTo(path14, opts) {
7878
7878
  const targetWithSession = `${path14}${path14.includes("?") ? "&" : "?"}session=${encodeURIComponent(sessionId)}`;
7879
7879
  const signInUrl = `${opts.serviceUrl}/studio/sign-in?redirect_url=${encodeURIComponent(targetWithSession)}`;
7880
7880
  openChromelessWindow(signInUrl);
7881
- opts.onLoginRequired?.(sessionId);
7881
+ opts.onLoginRequired?.(sessionId, signInUrl);
7882
7882
  const abortController = new AbortController();
7883
7883
  const timer = setTimeout(() => abortController.abort(), LOGIN_TIMEOUT_MS2);
7884
7884
  const keepalive = setInterval(() => process.stderr.write(""), 3e4);
@@ -8046,11 +8046,15 @@ async function runLogin(platform2, pluginVersion, options) {
8046
8046
  const exitOnComplete = options?.exitOnComplete ?? true;
8047
8047
  const config2 = getConfig();
8048
8048
  console.log("\nOpening Studio to sign in...");
8049
- console.log("(If the browser didn't open, visit the Studio URL manually.)");
8050
8049
  const closePath = `/studio/close?pluginLogin=true&autoClose=true&message=${encodeURIComponent("Login complete")}`;
8051
8050
  try {
8052
8051
  const result = await openStudioTo(closePath, {
8053
- serviceUrl: config2.serviceUrl
8052
+ serviceUrl: config2.serviceUrl,
8053
+ onLoginRequired: (_sessionId, signInUrl) => {
8054
+ console.log(`
8055
+ If the browser didn't open, visit this URL manually:
8056
+ ${signInUrl}`);
8057
+ }
8054
8058
  });
8055
8059
  result.abort();
8056
8060
  const apiKey = getConfig().apiKey;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bitfab-cli",
3
- "version": "0.2.16",
3
+ "version": "0.2.17",
4
4
  "description": "Install and configure the Bitfab plugin in Claude Code, Codex, or Cursor.",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",