prior-cli 1.3.5 → 1.3.6

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/bin/prior.js +7 -1
  2. package/package.json +1 -1
package/bin/prior.js CHANGED
@@ -660,7 +660,13 @@ async function startChat(opts = {}) {
660
660
  }
661
661
 
662
662
  if (key.name === 'return' || key.name === 'enter' || (key.ctrl && key.name === 'c')) {
663
- clearSuggestions();
663
+ // Clear suggestions NOW — before readline moves the cursor to the next line
664
+ if (_suggCount > 0) {
665
+ process.stdout.write('\x1b[s');
666
+ for (let i = 0; i < _suggCount; i++) process.stdout.write('\x1b[B\r\x1b[2K');
667
+ process.stdout.write('\x1b[u');
668
+ _suggCount = 0;
669
+ }
664
670
  return;
665
671
  }
666
672
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "prior-cli",
3
- "version": "1.3.5",
3
+ "version": "1.3.6",
4
4
  "description": "Prior Network AI — command-line interface",
5
5
  "bin": {
6
6
  "prior": "bin/prior.js"