@shipwellapp/cli 0.2.4 → 0.2.6

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 +5 -29
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -970,34 +970,10 @@ function startAuthFlow(baseUrl) {
970
970
  const email = url.searchParams.get("email") || "";
971
971
  const uid = url.searchParams.get("uid") || "";
972
972
  const photo = url.searchParams.get("photo") || void 0;
973
- res.writeHead(200, { "Content-Type": "text/html" });
974
- res.end(`<!DOCTYPE html>
975
- <html>
976
- <head><title>Shipwell</title>
977
- <style>
978
- body { background: #0a0a0f; color: #e4e4e7; font-family: -apple-system, BlinkMacSystemFont, sans-serif; display: flex; align-items: center; justify-content: center; min-height: 100vh; margin: 0; }
979
- .card { text-align: center; padding: 3rem; }
980
- .icon { font-size: 3rem; margin-bottom: 1rem; }
981
- h1 { font-size: 1.5rem; margin: 0 0 0.5rem; }
982
- p { color: #71717a; font-size: 0.875rem; margin: 0.25rem 0; }
983
- .name { color: #818cf8; font-weight: 600; }
984
- .hint { margin-top: 1.5rem; padding: 1rem; background: #18181b; border-radius: 0.75rem; border: 1px solid #27272a; }
985
- code { color: #22d3ee; font-size: 0.8rem; }
986
- </style>
987
- </head>
988
- <body>
989
- <div class="card">
990
- <div class="icon">\u26F5</div>
991
- <h1>Welcome to Shipwell</h1>
992
- <p>Logged in as <span class="name">${name}</span></p>
993
- <p style="margin-top: 1rem; color: #52525b;">You can close this tab and return to your terminal.</p>
994
- <div class="hint">
995
- <p style="color: #a1a1aa; margin-bottom: 0.5rem;">Next, set your API key:</p>
996
- <code>shipwell config set api-key sk-ant-...</code>
997
- </div>
998
- </div>
999
- </body>
1000
- </html>`);
973
+ res.setHeader("Access-Control-Allow-Origin", "*");
974
+ res.setHeader("Access-Control-Allow-Methods", "GET, OPTIONS");
975
+ res.writeHead(200, { "Content-Type": "text/plain" });
976
+ res.end("ok");
1001
977
  server.close();
1002
978
  resolve({ name, email, uid, photo });
1003
979
  } else {
@@ -1186,7 +1162,7 @@ function modelsCommand() {
1186
1162
  }
1187
1163
 
1188
1164
  // src/index.ts
1189
- var VERSION = "0.2.4";
1165
+ var VERSION = "0.2.6";
1190
1166
  var accent7 = chalk7.hex("#6366f1");
1191
1167
  var dim5 = chalk7.dim;
1192
1168
  var bold2 = chalk7.bold;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@shipwellapp/cli",
3
- "version": "0.2.4",
3
+ "version": "0.2.6",
4
4
  "description": "Full Codebase Autopilot — deep cross-file analysis powered by Claude",
5
5
  "type": "module",
6
6
  "bin": {