@vellumai/cli 0.10.0-dev.202606232210.2d9d2d7 → 0.10.0-dev.202606232330.324e2b5

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vellumai/cli",
3
- "version": "0.10.0-dev.202606232210.2d9d2d7",
3
+ "version": "0.10.0-dev.202606232330.324e2b5",
4
4
  "description": "CLI tools for vellum-assistant",
5
5
  "type": "module",
6
6
  "exports": {
@@ -18,6 +18,9 @@ export function canPromptForConfirmation(): boolean {
18
18
  * Show `prompt` and resolve true on Enter, false on Esc/q/Ctrl-C. Restores the
19
19
  * prior stdin raw/paused state on exit. Caller must gate on
20
20
  * {@link canPromptForConfirmation} first.
21
+ *
22
+ * `unref()`s stdin on cleanup so the resumed handle doesn't keep the process
23
+ * alive after the prompt resolves.
21
24
  */
22
25
  export async function confirmAction(prompt: string): Promise<boolean> {
23
26
  const stdin = process.stdin;
@@ -36,6 +39,7 @@ export async function confirmAction(prompt: string): Promise<boolean> {
36
39
  if (wasPaused) {
37
40
  stdin.pause();
38
41
  }
42
+ stdin.unref?.();
39
43
  stdout.write("\n");
40
44
  };
41
45