nexrall-code 0.5.84 → 0.5.86

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 +16 -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,11 @@ var App2 = ({ onReady }) => {
65145
65146
  forceFullRedrawRef = null;
65146
65147
  };
65147
65148
  }, [forceFullRedraw]);
65149
+ const collapseStartupPadding = (0, import_react35.useCallback)(async () => {
65150
+ await inkInstance?.waitUntilRenderFlush();
65151
+ process.stdout.write("\x1B[2J\x1B[H");
65152
+ setStaticKey((k) => k + 1);
65153
+ }, []);
65148
65154
  import_react35.default.useEffect(() => {
65149
65155
  onReady({
65150
65156
  print,
@@ -65157,7 +65163,8 @@ var App2 = ({ onReady }) => {
65157
65163
  onInterrupt,
65158
65164
  onExit,
65159
65165
  setBusy,
65160
- close: () => requestExit(false)
65166
+ close: () => requestExit(false),
65167
+ collapseStartupPadding
65161
65168
  });
65162
65169
  }, []);
65163
65170
  const slices = renderInputSlices(line, cursorPos);
@@ -66184,9 +66191,10 @@ ${text}` : "");
66184
66191
  }
66185
66192
  console.log(source_default.dim(" Type a message, /help for commands, or Ctrl+C to exit."));
66186
66193
  console.log();
66194
+ let startupPadded = false;
66187
66195
  if (interactive) {
66188
66196
  await flushInkFrame();
66189
- padToBottom(stopRowCount(), footerText({ mode: agentMode, autoApprove: isYoloMode() }));
66197
+ startupPadded = padToBottom(stopRowCount(), footerText({ mode: agentMode, autoApprove: isYoloMode() }));
66190
66198
  }
66191
66199
  let agentRunning = false;
66192
66200
  const abortSignal = { aborted: false };
@@ -66234,6 +66242,10 @@ ${text}` : "");
66234
66242
  rl.prompt();
66235
66243
  return;
66236
66244
  }
66245
+ if (startupPadded) {
66246
+ startupPadded = false;
66247
+ await getInkTerminal().collapseStartupPadding();
66248
+ }
66237
66249
  if (userInput.startsWith("/")) {
66238
66250
  const parts = userInput.split(/\s+/);
66239
66251
  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.86",
4
4
  "description": "Nexrall Code — AI coding assistant for your terminal (headless agent for scripts, CI and automation)",
5
5
  "keywords": [
6
6
  "ai",