junecoder 1.0.13 → 1.0.14

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/package.json +1 -1
  2. package/tui.mjs +2 -2
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "junecoder",
3
- "version": "1.0.13",
3
+ "version": "1.0.14",
4
4
  "description": "Zero Npm Dependencies Agent Framework",
5
5
  "main": "agent.mjs",
6
6
  "type": "module",
package/tui.mjs CHANGED
@@ -261,9 +261,9 @@ export async function startTUI(agent, opts = {}) {
261
261
  const frame = out.join("\r\n");
262
262
  if (frame !== lastFrame) { lastFrame = frame; process.stdout.write(frame); }
263
263
 
264
- if (state.processing || state.permission || state.question) process.stdout.write(ansi.hideCursor);
264
+ if (state.processing || state.question || (state.permission && !state.permission.reasonMode)) process.stdout.write(ansi.hideCursor);
265
265
  else {
266
- const cursorRow = 1 + convH + taskPanelH + 2 + (layout.cursorLine - inputOffset);
266
+ const cursorRow = 1 + convH + taskPanelH + subOutLen + permPreviewLen + 2 + (layout.cursorLine - inputOffset);
267
267
  const cursorCol = 3 + layout.cursorCol;
268
268
  process.stdout.write(ESC + "[" + cursorRow + ";" + cursorCol + "H" + ansi.showCursor);
269
269
  }