nexrall-code 0.5.84 → 0.5.85

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 +15 -4
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -55846,13 +55846,14 @@ function rowsOccupied(text, columns = process.stdout.columns || 80) {
55846
55846
  function padToBottom(rowsAlreadyPrinted, footerText2 = "") {
55847
55847
  const rows = process.stdout.rows;
55848
55848
  if (!process.stdout.isTTY || !rows)
55849
- return;
55849
+ return false;
55850
55850
  const chromeRows = bottomChromeRows({ footerText: footerText2, columns: process.stdout.columns ?? 80 });
55851
55851
  const filler = rows - rowsAlreadyPrinted - chromeRows - 2;
55852
55852
  const MIN_WORTHWHILE_FILLER = 3;
55853
55853
  if (filler < MIN_WORTHWHILE_FILLER)
55854
- return;
55854
+ return false;
55855
55855
  console.log("\n".repeat(filler - 1));
55856
+ return true;
55856
55857
  }
55857
55858
  var rowCounter = null;
55858
55859
  function startRowCount() {
@@ -65145,6 +65146,10 @@ var App2 = ({ onReady }) => {
65145
65146
  forceFullRedrawRef = null;
65146
65147
  };
65147
65148
  }, [forceFullRedraw]);
65149
+ const collapseStartupPadding = (0, import_react35.useCallback)(() => {
65150
+ process.stdout.write("\x1B[2J\x1B[H");
65151
+ setStaticKey((k) => k + 1);
65152
+ }, []);
65148
65153
  import_react35.default.useEffect(() => {
65149
65154
  onReady({
65150
65155
  print,
@@ -65157,7 +65162,8 @@ var App2 = ({ onReady }) => {
65157
65162
  onInterrupt,
65158
65163
  onExit,
65159
65164
  setBusy,
65160
- close: () => requestExit(false)
65165
+ close: () => requestExit(false),
65166
+ collapseStartupPadding
65161
65167
  });
65162
65168
  }, []);
65163
65169
  const slices = renderInputSlices(line, cursorPos);
@@ -66184,9 +66190,10 @@ ${text}` : "");
66184
66190
  }
66185
66191
  console.log(source_default.dim(" Type a message, /help for commands, or Ctrl+C to exit."));
66186
66192
  console.log();
66193
+ let startupPadded = false;
66187
66194
  if (interactive) {
66188
66195
  await flushInkFrame();
66189
- padToBottom(stopRowCount(), footerText({ mode: agentMode, autoApprove: isYoloMode() }));
66196
+ startupPadded = padToBottom(stopRowCount(), footerText({ mode: agentMode, autoApprove: isYoloMode() }));
66190
66197
  }
66191
66198
  let agentRunning = false;
66192
66199
  const abortSignal = { aborted: false };
@@ -66234,6 +66241,10 @@ ${text}` : "");
66234
66241
  rl.prompt();
66235
66242
  return;
66236
66243
  }
66244
+ if (startupPadded) {
66245
+ startupPadded = false;
66246
+ getInkTerminal().collapseStartupPadding();
66247
+ }
66237
66248
  if (userInput.startsWith("/")) {
66238
66249
  const parts = userInput.split(/\s+/);
66239
66250
  const cmd = parts[0];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nexrall-code",
3
- "version": "0.5.84",
3
+ "version": "0.5.85",
4
4
  "description": "Nexrall Code — AI coding assistant for your terminal (headless agent for scripts, CI and automation)",
5
5
  "keywords": [
6
6
  "ai",