@robinpath/cli 1.74.0 → 1.76.0

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/cli.mjs +7 -3
  2. package/package.json +1 -1
package/dist/cli.mjs CHANGED
@@ -18598,7 +18598,7 @@ function getNativeModules() {
18598
18598
  import { join as join3, basename as basename2 } from "node:path";
18599
18599
  import { homedir as homedir2, platform as platform2 } from "node:os";
18600
18600
  import { existsSync as existsSync2 } from "node:fs";
18601
- var CLI_VERSION = true ? "1.74.0" : "1.74.0";
18601
+ var CLI_VERSION = true ? "1.76.0" : "1.76.0";
18602
18602
  var FLAG_QUIET = false;
18603
18603
  var FLAG_VERBOSE = false;
18604
18604
  var FLAG_AUTO_ACCEPT = false;
@@ -24201,7 +24201,7 @@ function collectInkInput(placeholder) {
24201
24201
  }
24202
24202
  return new Promise((resolve13) => {
24203
24203
  let resolved = false;
24204
- const { waitUntilExit } = render(
24204
+ const instance = render(
24205
24205
  /* @__PURE__ */ jsx(
24206
24206
  InputPrompt,
24207
24207
  {
@@ -24209,19 +24209,23 @@ function collectInkInput(placeholder) {
24209
24209
  onSubmit: (v) => {
24210
24210
  if (!resolved) {
24211
24211
  resolved = true;
24212
+ instance.clear();
24213
+ instance.unmount();
24212
24214
  resolve13(v);
24213
24215
  }
24214
24216
  },
24215
24217
  onExit: () => {
24216
24218
  if (!resolved) {
24217
24219
  resolved = true;
24220
+ instance.clear();
24221
+ instance.unmount();
24218
24222
  resolve13(null);
24219
24223
  }
24220
24224
  }
24221
24225
  }
24222
24226
  )
24223
24227
  );
24224
- waitUntilExit().then(() => {
24228
+ instance.waitUntilExit().then(() => {
24225
24229
  if (!resolved) {
24226
24230
  resolved = true;
24227
24231
  resolve13(null);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@robinpath/cli",
3
- "version": "1.74.0",
3
+ "version": "1.76.0",
4
4
  "description": "AI-powered scripting CLI — automate anything from your terminal",
5
5
  "type": "module",
6
6
  "license": "MIT",