@shipwellapp/cli 0.2.1 → 0.2.3
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 +15 -12
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1186,7 +1186,7 @@ function modelsCommand() {
|
|
|
1186
1186
|
}
|
|
1187
1187
|
|
|
1188
1188
|
// src/index.ts
|
|
1189
|
-
var VERSION = "0.2.
|
|
1189
|
+
var VERSION = "0.2.2";
|
|
1190
1190
|
var accent7 = chalk7.hex("#6366f1");
|
|
1191
1191
|
var dim5 = chalk7.dim;
|
|
1192
1192
|
var bold2 = chalk7.bold;
|
|
@@ -1206,6 +1206,11 @@ function centerStr(s, w) {
|
|
|
1206
1206
|
const l = Math.floor(gap / 2);
|
|
1207
1207
|
return " ".repeat(l) + s + " ".repeat(gap - l);
|
|
1208
1208
|
}
|
|
1209
|
+
var LOGO = [
|
|
1210
|
+
"\u2554\u2550\u2557\u2566 \u2566\u2566\u2554\u2550\u2557\u2566 \u2566\u2554\u2550\u2557\u2566 \u2566 ",
|
|
1211
|
+
"\u255A\u2550\u2557\u2560\u2550\u2563\u2551\u2560\u2550\u255D\u2551\u2551\u2551\u2560\u2550 \u2551 \u2551 ",
|
|
1212
|
+
"\u255A\u2550\u255D\u2569 \u2569\u2569\u2569 \u255A\u2569\u255D\u255A\u2550\u255D\u2569\u2550\u255D\u2569\u2550\u255D"
|
|
1213
|
+
];
|
|
1209
1214
|
function showBanner() {
|
|
1210
1215
|
const user = getUser();
|
|
1211
1216
|
const apiKey = getApiKey();
|
|
@@ -1222,34 +1227,32 @@ function showBanner() {
|
|
|
1222
1227
|
const empty = () => row("", "");
|
|
1223
1228
|
const title = `${accent7("\u26F5 Shipwell")} ${g(`v${VERSION}`)}`;
|
|
1224
1229
|
const titleVis = visLen(title);
|
|
1225
|
-
const
|
|
1226
|
-
const top = `${g("\u256D\u2500")} ${title} ${g("\u2500".repeat(Math.max(0, dashes)))}${g("\u256E")}`;
|
|
1230
|
+
const top = `${g("\u256D\u2500")} ${title} ${g("\u2500".repeat(Math.max(0, W - 5 - titleVis)))}${g("\u256E")}`;
|
|
1227
1231
|
const bot = `${g("\u2570")}${g("\u2500".repeat(W - 2))}${g("\u256F")}`;
|
|
1228
1232
|
const lines = [];
|
|
1229
1233
|
lines.push("");
|
|
1230
1234
|
lines.push(top);
|
|
1231
1235
|
lines.push(empty());
|
|
1232
1236
|
const welcome = user ? `Welcome back, ${accent7(user.name)}!` : `Welcome to ${accent7("Shipwell")}`;
|
|
1233
|
-
lines.push(row(centerStr(welcome, LW), bold2("
|
|
1237
|
+
lines.push(row(centerStr(welcome, LW), bold2("Getting started")));
|
|
1234
1238
|
lines.push(row("", `${chalk7.cyan("audit")} ${g("<path>")} ${g("Security audit")}`));
|
|
1235
|
-
lines.push(row(centerStr(
|
|
1236
|
-
lines.push(row(centerStr(
|
|
1237
|
-
lines.push(row(
|
|
1239
|
+
lines.push(row(centerStr(accent7(LOGO[0]), LW), `${chalk7.cyan("migrate")} ${g("<path>")} ${g("Migration plan")}`));
|
|
1240
|
+
lines.push(row(centerStr(accent7(LOGO[1]), LW), `${chalk7.cyan("refactor")} ${g("<path>")} ${g("Refactor analysis")}`));
|
|
1241
|
+
lines.push(row(centerStr(accent7(LOGO[2]), LW), `${chalk7.cyan("docs")} ${g("<path>")} ${g("Documentation")}`));
|
|
1238
1242
|
lines.push(row("", `${chalk7.cyan("upgrade")} ${g("<path>")} ${g("Dep upgrade plan")}`));
|
|
1243
|
+
lines.push(row("", g("\u2500".repeat(RW))));
|
|
1239
1244
|
const keyDot = apiKey ? chalk7.green("\u25CF") : chalk7.yellow("\u25CB");
|
|
1240
1245
|
const keyText = apiKey ? g("API Key") : chalk7.yellow("No API Key");
|
|
1241
1246
|
const info = `${accent7(modelLabel)} \xB7 ${keyDot} ${keyText}`;
|
|
1242
|
-
lines.push(row(centerStr(info, LW),
|
|
1247
|
+
lines.push(row(centerStr(info, LW), bold2("Account & Config")));
|
|
1243
1248
|
if (user) {
|
|
1244
|
-
lines.push(row(centerStr(g(user.email), LW),
|
|
1249
|
+
lines.push(row(centerStr(g(user.email), LW), `${chalk7.cyan("login")} ${g("Sign in with Google")}`));
|
|
1245
1250
|
} else {
|
|
1246
1251
|
lines.push(row(
|
|
1247
1252
|
centerStr(`${g("Run")} ${chalk7.cyan("shipwell login")} ${g("to start")}`, LW),
|
|
1248
|
-
|
|
1253
|
+
`${chalk7.cyan("login")} ${g("Sign in with Google")}`
|
|
1249
1254
|
));
|
|
1250
1255
|
}
|
|
1251
|
-
lines.push(row("", `${chalk7.cyan("login")} ${g("Sign in with Google")}`));
|
|
1252
|
-
lines.push(row("", `${chalk7.cyan("logout")} ${g("Sign out")}`));
|
|
1253
1256
|
lines.push(row("", `${chalk7.cyan("config")} ${g("View/set configuration")}`));
|
|
1254
1257
|
lines.push(row("", `${chalk7.cyan("models")} ${g("Available Claude models")}`));
|
|
1255
1258
|
lines.push(row("", `${chalk7.cyan("update")} ${g("Update to latest version")}`));
|