nexrall-code 0.5.35 → 0.5.36
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 +14 -3
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -62067,6 +62067,8 @@ var use_app_default = useApp;
|
|
|
62067
62067
|
|
|
62068
62068
|
// ../../node_modules/.pnpm/ink@7.1.1_@types+react@19.2.18_react@19.2.8/node_modules/ink/build/hooks/use-stdout.js
|
|
62069
62069
|
var import_react25 = __toESM(require_react(), 1);
|
|
62070
|
+
var useStdout = () => (0, import_react25.useContext)(StdoutContext_default);
|
|
62071
|
+
var use_stdout_default = useStdout;
|
|
62070
62072
|
|
|
62071
62073
|
// ../../node_modules/.pnpm/ink@7.1.1_@types+react@19.2.18_react@19.2.8/node_modules/ink/build/hooks/use-stderr.js
|
|
62072
62074
|
var import_react26 = __toESM(require_react(), 1);
|
|
@@ -62166,7 +62168,16 @@ var App2 = ({ onReady }) => {
|
|
|
62166
62168
|
import_react34.default.useEffect(() => {
|
|
62167
62169
|
onReady({ print, setFooter, setLive, askLine, onLine, setInputEnabled, close: () => exit() });
|
|
62168
62170
|
}, []);
|
|
62169
|
-
|
|
62171
|
+
const { stdout } = use_stdout_default();
|
|
62172
|
+
const [rows, setRows] = (0, import_react34.useState)(stdout.rows || 24);
|
|
62173
|
+
(0, import_react34.useEffect)(() => {
|
|
62174
|
+
const onResize = () => setRows(stdout.rows || 24);
|
|
62175
|
+
stdout.on("resize", onResize);
|
|
62176
|
+
return () => {
|
|
62177
|
+
stdout.off("resize", onResize);
|
|
62178
|
+
};
|
|
62179
|
+
}, [stdout]);
|
|
62180
|
+
return /* @__PURE__ */ import_react34.default.createElement(Box_default, { flexDirection: "column", height: rows }, /* @__PURE__ */ import_react34.default.createElement(Static, { items }, (item) => /* @__PURE__ */ import_react34.default.createElement(Text, { key: item.id }, item.content)), /* @__PURE__ */ import_react34.default.createElement(Box_default, { flexDirection: "column", flexGrow: 1, justifyContent: "flex-end" }, live ? /* @__PURE__ */ import_react34.default.createElement(Text, null, live) : null, /* @__PURE__ */ import_react34.default.createElement(Text, { dimColor: true }, "\u2500".repeat(process.stdout.columns || 80)), inputEnabled ? /* @__PURE__ */ import_react34.default.createElement(Box_default, null, /* @__PURE__ */ import_react34.default.createElement(Text, null, prompt2), /* @__PURE__ */ import_react34.default.createElement(Text, null, line), /* @__PURE__ */ import_react34.default.createElement(Text, { inverse: true }, " ")) : /* @__PURE__ */ import_react34.default.createElement(Text, { dimColor: true }, " (working\u2026)"), /* @__PURE__ */ import_react34.default.createElement(Text, { dimColor: true }, footerText(footer))));
|
|
62170
62181
|
};
|
|
62171
62182
|
function startInkTerminal() {
|
|
62172
62183
|
if (handle)
|
|
@@ -62236,7 +62247,7 @@ var InkReadlineAdapter = class extends EventEmitter3 {
|
|
|
62236
62247
|
};
|
|
62237
62248
|
|
|
62238
62249
|
// src/commands/chat.ts
|
|
62239
|
-
var CLI_VERSION = "0.5.
|
|
62250
|
+
var CLI_VERSION = "0.5.36";
|
|
62240
62251
|
var MODEL_LABELS = {
|
|
62241
62252
|
turbo: "Nexrall Turbo",
|
|
62242
62253
|
pro: "Nexrall Pro",
|
|
@@ -63651,7 +63662,7 @@ function pluginListCommand() {
|
|
|
63651
63662
|
|
|
63652
63663
|
// src/index.ts
|
|
63653
63664
|
var program2 = new Command();
|
|
63654
|
-
program2.name("nex").description("Nexrall Code \u2014 AI coding assistant (powered by Nexrall)").version("0.5.
|
|
63665
|
+
program2.name("nex").description("Nexrall Code \u2014 AI coding assistant (powered by Nexrall)").version("0.5.36");
|
|
63655
63666
|
program2.command("auth").description("Login to your Nexrall account").action(authCommand);
|
|
63656
63667
|
program2.command("logout").description("Log out of your Nexrall account").action(logoutCommand);
|
|
63657
63668
|
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) => {
|