@vocoder/cli 0.1.18 → 0.1.20

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/bin.mjs CHANGED
@@ -2074,9 +2074,8 @@ async function runAuthFlow(api, options, reauth = false, repoCanonical) {
2074
2074
  return null;
2075
2075
  }
2076
2076
  if (!shouldOpen) {
2077
- p5.log.info(
2078
- "Open the URL above manually in your browser to continue."
2079
- );
2077
+ p5.note(browserUrl, "Sign In");
2078
+ p5.log.info("Open the URL above manually in your browser to continue.");
2080
2079
  } else {
2081
2080
  const opened = await tryOpenBrowser2(browserUrl);
2082
2081
  if (!opened) {
@@ -2236,11 +2235,11 @@ async function init(options = {}) {
2236
2235
  );
2237
2236
  spinner4.stop("New API key generated");
2238
2237
  printMcpSetup(apiKey);
2239
- } catch {
2238
+ } catch (err) {
2240
2239
  spinner4.stop("Failed to generate key");
2241
- p5.log.error(
2242
- "Could not generate API key. Try again or generate one from the dashboard."
2243
- );
2240
+ const msg = err instanceof Error ? err.message : String(err);
2241
+ p5.log.error(`Could not generate API key: ${msg}`);
2242
+ p5.log.info("Try again or generate one from the dashboard.");
2244
2243
  return 1;
2245
2244
  }
2246
2245
  }