@ellery/savio 0.2.1 → 0.3.0

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 +3 -1
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -85,13 +85,15 @@ var TokenRefreshError = class extends Error {
85
85
  // src/login.ts
86
86
  import { createServer } from "http";
87
87
  import { randomBytes } from "crypto";
88
+ import { hostname } from "os";
88
89
  import { URL as URL2 } from "url";
89
90
  import open from "open";
90
91
  var LOGIN_TIMEOUT_MS = 12e4;
91
92
  async function browserLogin(serverUrl) {
92
93
  const state = randomBytes(32).toString("hex");
93
94
  const { port, token } = await startCallbackServer(state);
94
- const authUrl = `${serverUrl}/cli-auth?port=${port}&state=${encodeURIComponent(state)}`;
95
+ const host = hostname();
96
+ const authUrl = `${serverUrl}/cli-auth?port=${port}&state=${encodeURIComponent(state)}&hostname=${encodeURIComponent(host)}`;
95
97
  process.stderr.write(`Opening browser to authorize...
96
98
  `);
97
99
  process.stderr.write(`If the browser doesn't open, visit:
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ellery/savio",
3
- "version": "0.2.1",
3
+ "version": "0.3.0",
4
4
  "description": "Savio MCP server — browser auth and local stdio proxy",
5
5
  "type": "module",
6
6
  "bin": {