@shipwellapp/cli 0.2.5 → 0.2.7

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 +6 -43
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -970,48 +970,11 @@ 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; charset=utf-8" });
974
- res.end(`<!DOCTYPE html>
975
- <html lang="en">
976
- <head>
977
- <meta charset="utf-8">
978
- <meta name="viewport" content="width=device-width, initial-scale=1">
979
- <title>Shipwell \u2014 Authenticated</title>
980
- <style>
981
- * { margin: 0; padding: 0; box-sizing: border-box; }
982
- body { background: #0a0a0f; color: #e4e4e7; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; display: flex; align-items: center; justify-content: center; min-height: 100vh; }
983
- .card { text-align: center; padding: 3rem; max-width: 400px; }
984
- .logo { width: 64px; height: 64px; margin: 0 auto 1.5rem; background: rgba(99,102,241,0.1); border: 1px solid rgba(99,102,241,0.2); border-radius: 1rem; display: flex; align-items: center; justify-content: center; box-shadow: 0 0 30px rgba(99,102,241,0.15); }
985
- .logo svg { width: 32px; height: 32px; }
986
- .check { width: 48px; height: 48px; margin: 0 auto 1rem; background: rgba(34,197,94,0.1); border: 1px solid rgba(34,197,94,0.2); border-radius: 0.75rem; display: flex; align-items: center; justify-content: center; }
987
- .check svg { width: 24px; height: 24px; }
988
- h1 { font-size: 1.5rem; font-weight: 700; margin-bottom: 0.5rem; letter-spacing: -0.02em; }
989
- h1 span { background: linear-gradient(135deg, #818cf8, #6366f1); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
990
- .subtitle { color: #71717a; font-size: 0.875rem; line-height: 1.5; }
991
- .name { color: #818cf8; font-weight: 600; }
992
- .hint { margin-top: 1.5rem; padding: 1rem 1.25rem; background: #18181b; border-radius: 0.75rem; border: 1px solid #27272a; }
993
- .hint p { color: #a1a1aa; font-size: 0.8rem; margin-bottom: 0.5rem; }
994
- code { color: #22d3ee; font-size: 0.8rem; font-family: 'SF Mono', Menlo, monospace; }
995
- .close { margin-top: 1.5rem; color: #52525b; font-size: 0.75rem; }
996
- </style>
997
- </head>
998
- <body>
999
- <div class="card">
1000
- <div class="check">
1001
- <svg viewBox="0 0 24 24" fill="none" stroke="#22c55e" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round">
1002
- <polyline points="20 6 9 17 4 12"></polyline>
1003
- </svg>
1004
- </div>
1005
- <h1>Welcome to <span>Shipwell</span></h1>
1006
- <p class="subtitle">Logged in as <span class="name">${name}</span></p>
1007
- <div class="hint">
1008
- <p>Next, set your API key:</p>
1009
- <code>shipwell config set api-key sk-ant-...</code>
1010
- </div>
1011
- <p class="close">You can close this tab and return to your terminal.</p>
1012
- </div>
1013
- </body>
1014
- </html>`);
973
+ const successParams = new URLSearchParams({ name, email });
974
+ res.writeHead(302, {
975
+ Location: `${baseUrl}/cli-auth/success?${successParams.toString()}`
976
+ });
977
+ res.end();
1015
978
  server.close();
1016
979
  resolve({ name, email, uid, photo });
1017
980
  } else {
@@ -1200,7 +1163,7 @@ function modelsCommand() {
1200
1163
  }
1201
1164
 
1202
1165
  // src/index.ts
1203
- var VERSION = "0.2.5";
1166
+ var VERSION = "0.2.7";
1204
1167
  var accent7 = chalk7.hex("#6366f1");
1205
1168
  var dim5 = chalk7.dim;
1206
1169
  var bold2 = chalk7.bold;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@shipwellapp/cli",
3
- "version": "0.2.5",
3
+ "version": "0.2.7",
4
4
  "description": "Full Codebase Autopilot — deep cross-file analysis powered by Claude",
5
5
  "type": "module",
6
6
  "bin": {