@freesyntax/notch-cli 0.5.13 → 0.5.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/dist/index.js +3 -4
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -6390,8 +6390,8 @@ function clearMenu(state) {
6390
6390
  if (state.renderedLines === 0) return "";
6391
6391
  const lines = state.renderedLines;
6392
6392
  state.renderedLines = 0;
6393
- let ansi = "";
6394
- for (let i = 0; i < lines; i++) {
6393
+ let ansi = "\x1B[2K";
6394
+ for (let i = 0; i < lines + 1; i++) {
6395
6395
  ansi += "\x1B[1A\x1B[2K";
6396
6396
  }
6397
6397
  return ansi;
@@ -6456,16 +6456,15 @@ function attachSlashMenu(rl) {
6456
6456
  const shouldShow = updateMenu(state, line);
6457
6457
  if (wasVisible && !shouldShow) {
6458
6458
  process.stdout.write(clearMenu(state));
6459
+ rewritePromptLine(rl);
6459
6460
  } else if (shouldShow) {
6460
6461
  if (wasVisible) {
6461
6462
  process.stdout.write(clearMenu(state));
6462
6463
  }
6463
6464
  const menuStr = renderMenu(state);
6464
6465
  if (menuStr) {
6465
- process.stdout.write("\x1B[s");
6466
6466
  process.stdout.write(menuStr + "\n");
6467
6467
  rewritePromptLine(rl);
6468
- process.stdout.write("\x1B[u");
6469
6468
  }
6470
6469
  }
6471
6470
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@freesyntax/notch-cli",
3
- "version": "0.5.13",
3
+ "version": "0.5.14",
4
4
  "description": "Notch CLI — AI-powered coding assistant by Driftrail",
5
5
  "type": "module",
6
6
  "bin": {