@oxecli/oxe 1.0.10 → 1.0.11

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.
package/dist/cli.js CHANGED
@@ -317,6 +317,7 @@ export async function main() {
317
317
  // leaves that row as a blank, giving exactly one blank under the prompt,
318
318
  // and the trailing newline gives one blank under the goodbye message.
319
319
  process.stdout.write("\nClosing terminal session. Goodbye!\n");
320
+ process.exit(0);
320
321
  return;
321
322
  }
322
323
  throw err;
@@ -332,4 +333,7 @@ export async function main() {
332
333
  if (typeof client?.close === "function")
333
334
  await client.close();
334
335
  }
336
+ // The prompt's readline keypress listener is never removed and stdin remains
337
+ // resumed, so Node won't exit on its own after the loop ends. Exit explicitly.
338
+ process.exit(0);
335
339
  }
package/dist/config.js CHANGED
@@ -275,6 +275,7 @@ export async function promptApiKey(prompt) {
275
275
  catch {
276
276
  /* ignore */
277
277
  }
278
+ process.stdin.pause();
278
279
  process.stdout.write("\n");
279
280
  };
280
281
  process.stdin.on("data", onData);
package/dist/ui.js CHANGED
@@ -611,6 +611,8 @@ export function askBottomPrompt(label = "You", prefix = "❯", history = []) {
611
611
  process.stdin.setRawMode(false);
612
612
  showCursor();
613
613
  clearBox();
614
+ process.stdin.removeListener("keypress", onKeypress);
615
+ process.stdin.pause();
614
616
  if (isErr)
615
617
  reject(value);
616
618
  else
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@oxecli/oxe",
3
- "version": "1.0.10",
3
+ "version": "1.0.11",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },