@anyship/cli 0.2.0 → 0.2.1

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/package.json +1 -1
  2. package/src/oauth.mjs +5 -3
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@anyship/cli",
3
- "version": "0.2.0",
3
+ "version": "0.2.1",
4
4
  "description": "anyship CLI — deploy a local project directory, run a local MCP server for AI agents, and log in.",
5
5
  "type": "module",
6
6
  "bin": {
package/src/oauth.mjs CHANGED
@@ -43,10 +43,12 @@ function startCallbackServer() {
43
43
  res.end();
44
44
  return;
45
45
  }
46
- res.writeHead(200, { "content-type": "text/html" });
46
+ res.writeHead(200, { "content-type": "text/html; charset=utf-8" });
47
47
  res.end(
48
- "<!doctype html><body style='font:16px/1.5 system-ui;text-align:center;padding:48px'>" +
49
- "<h2>anyship signed in ✓</h2><p>You can close this tab and return to your terminal.</p>",
48
+ "<!doctype html><html><head><meta charset='utf-8'></head>" +
49
+ "<body style='font:16px/1.5 system-ui;text-align:center;padding:48px'>" +
50
+ "<h2>anyship — signed in ✓</h2><p>You can close this tab and return to your terminal.</p>" +
51
+ "</body></html>",
50
52
  );
51
53
  resolveCode({ code: u.searchParams.get("code"), state: u.searchParams.get("state") });
52
54
  });