@shipwellapp/cli 0.2.3 → 0.2.5
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.
- package/dist/index.js +30 -16
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -970,31 +970,45 @@ 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" });
|
|
973
|
+
res.writeHead(200, { "Content-Type": "text/html; charset=utf-8" });
|
|
974
974
|
res.end(`<!DOCTYPE html>
|
|
975
|
-
<html>
|
|
976
|
-
<head
|
|
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>
|
|
977
980
|
<style>
|
|
978
|
-
|
|
979
|
-
|
|
980
|
-
.
|
|
981
|
-
|
|
982
|
-
|
|
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; }
|
|
983
991
|
.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
|
-
|
|
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; }
|
|
986
996
|
</style>
|
|
987
997
|
</head>
|
|
988
998
|
<body>
|
|
989
999
|
<div class="card">
|
|
990
|
-
<div class="
|
|
991
|
-
|
|
992
|
-
|
|
993
|
-
|
|
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>
|
|
994
1007
|
<div class="hint">
|
|
995
|
-
<p
|
|
1008
|
+
<p>Next, set your API key:</p>
|
|
996
1009
|
<code>shipwell config set api-key sk-ant-...</code>
|
|
997
1010
|
</div>
|
|
1011
|
+
<p class="close">You can close this tab and return to your terminal.</p>
|
|
998
1012
|
</div>
|
|
999
1013
|
</body>
|
|
1000
1014
|
</html>`);
|
|
@@ -1186,7 +1200,7 @@ function modelsCommand() {
|
|
|
1186
1200
|
}
|
|
1187
1201
|
|
|
1188
1202
|
// src/index.ts
|
|
1189
|
-
var VERSION = "0.2.
|
|
1203
|
+
var VERSION = "0.2.5";
|
|
1190
1204
|
var accent7 = chalk7.hex("#6366f1");
|
|
1191
1205
|
var dim5 = chalk7.dim;
|
|
1192
1206
|
var bold2 = chalk7.bold;
|