rscot-agent 1.2.2 → 1.2.3

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 +8 -4
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -1455,13 +1455,17 @@ async function signIn() {
1455
1455
  client: "cli"
1456
1456
  });
1457
1457
  const authUrl = `${AUTH_BASE}/auth/desktop/start?${params.toString()}`;
1458
- process.stdout.write(`
1459
- Opening browser to: ${authUrl}
1458
+ const verbose = process.env.RSCOT_VERBOSE === "1";
1459
+ process.stdout.write("\nOpened your browser to sign in.\n");
1460
+ process.stdout.write("Complete the flow there, then return to this terminal.\n");
1461
+ process.stdout.write("Waiting (up to 3 minutes)\u2026\n\n");
1462
+ if (verbose) {
1463
+ process.stdout.write(`[verbose] auth url: ${authUrl}
1460
1464
  `);
1461
- process.stdout.write("If the browser does not open, paste that URL manually.\n");
1462
- process.stdout.write(`Waiting for callback on http://127.0.0.1:${port}/cb (up to 3 minutes)\u2026
1465
+ process.stdout.write(`[verbose] loopback: 127.0.0.1:${port}
1463
1466
 
1464
1467
  `);
1468
+ }
1465
1469
  openBrowser(authUrl);
1466
1470
  const code = await waitForCallback(server, state);
1467
1471
  const bundle = await exchangeCode(code, verifier, deviceId);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "rscot-agent",
3
- "version": "1.2.2",
3
+ "version": "1.2.3",
4
4
  "description": "Rscot Agent (rscot) — local-first, source-available coding agent. One-shot npx onramp that walks you through provider/key setup.",
5
5
  "license": "SEE LICENSE IN LICENSE",
6
6
  "type": "module",