nexrall-code 0.5.39 → 0.5.40
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 +13 -8
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -53228,11 +53228,15 @@ function center(s2, w) {
|
|
|
53228
53228
|
return " ".repeat(left) + s2;
|
|
53229
53229
|
}
|
|
53230
53230
|
function renderBanner(info) {
|
|
53231
|
-
const
|
|
53232
|
-
const
|
|
53233
|
-
const
|
|
53231
|
+
const GAP = 4;
|
|
53232
|
+
const LOGO_W = Math.max(...NEX_LOGO.map(visibleLen));
|
|
53233
|
+
const headerText = `Nexrall Code v${info.version}`;
|
|
53234
|
+
const LEFT_W = Math.max(LOGO_W, visibleLen(headerText), visibleLen(info.modelLabel), visibleLen(info.workDir));
|
|
53235
|
+
const framing = 2 + GAP + 2;
|
|
53236
|
+
const termW = process.stdout.columns || 100;
|
|
53237
|
+
const RIGHT_W = Math.max(32, Math.min(46, termW - framing - LEFT_W));
|
|
53234
53238
|
const leftLines = [];
|
|
53235
|
-
leftLines.push(source_default.bold.hex("#3b82f6")(
|
|
53239
|
+
leftLines.push(source_default.bold.hex("#3b82f6")("Nexrall Code ") + source_default.dim(`v${info.version}`));
|
|
53236
53240
|
leftLines.push("");
|
|
53237
53241
|
leftLines.push(center(source_default.bold(`Welcome back ${info.userLabel}!`), LEFT_W));
|
|
53238
53242
|
leftLines.push("");
|
|
@@ -53261,14 +53265,15 @@ function renderBanner(info) {
|
|
|
53261
53265
|
}
|
|
53262
53266
|
const rowCount = Math.max(leftLines.length, rightLines.length);
|
|
53263
53267
|
const border = source_default.hex("#3b82f6");
|
|
53268
|
+
const INNER_W = LEFT_W + GAP + RIGHT_W + 2;
|
|
53264
53269
|
const lines = [];
|
|
53265
|
-
lines.push(border("\u256D" + "\u2500".repeat(
|
|
53270
|
+
lines.push(border("\u256D" + "\u2500".repeat(INNER_W) + "\u256E"));
|
|
53266
53271
|
for (let i2 = 0; i2 < rowCount; i2++) {
|
|
53267
53272
|
const l = padVis(leftLines[i2] ?? "", LEFT_W);
|
|
53268
53273
|
const r2 = padVis(rightLines[i2] ?? "", RIGHT_W);
|
|
53269
53274
|
lines.push(border("\u2502 ") + l + " ".repeat(GAP) + r2 + border(" \u2502"));
|
|
53270
53275
|
}
|
|
53271
|
-
lines.push(border("\u2570" + "\u2500".repeat(
|
|
53276
|
+
lines.push(border("\u2570" + "\u2500".repeat(INNER_W) + "\u256F"));
|
|
53272
53277
|
return lines.join("\n");
|
|
53273
53278
|
}
|
|
53274
53279
|
function wrapText(text, width) {
|
|
@@ -62262,7 +62267,7 @@ var InkReadlineAdapter = class extends EventEmitter3 {
|
|
|
62262
62267
|
};
|
|
62263
62268
|
|
|
62264
62269
|
// src/commands/chat.ts
|
|
62265
|
-
var CLI_VERSION = "0.5.
|
|
62270
|
+
var CLI_VERSION = "0.5.40";
|
|
62266
62271
|
var MODEL_LABELS = {
|
|
62267
62272
|
turbo: "Nexrall Turbo",
|
|
62268
62273
|
pro: "Nexrall Pro",
|
|
@@ -63668,7 +63673,7 @@ function pluginListCommand() {
|
|
|
63668
63673
|
|
|
63669
63674
|
// src/index.ts
|
|
63670
63675
|
var program2 = new Command();
|
|
63671
|
-
program2.name("nex").description("Nexrall Code \u2014 AI coding assistant (powered by Nexrall)").version("0.5.
|
|
63676
|
+
program2.name("nex").description("Nexrall Code \u2014 AI coding assistant (powered by Nexrall)").version("0.5.40");
|
|
63672
63677
|
program2.command("auth").description("Login to your Nexrall account").action(authCommand);
|
|
63673
63678
|
program2.command("logout").description("Log out of your Nexrall account").action(logoutCommand);
|
|
63674
63679
|
program2.command("update").description("Update nex to the latest version").option("-c, --check", "Check for updates without installing").option("-y, --yes", "Skip confirmation prompt").action(async (opts) => {
|