@pugi/cli 0.1.0-beta.91 → 0.1.0-beta.92

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.
@@ -44,7 +44,7 @@ export function sanitizeSemver(raw) {
44
44
  * during import). When bumping the CLI version BOTH literals must be
45
45
  * updated; the release smoke-test (`pack:smoke`) verifies they agree.
46
46
  */
47
- export const PUGI_CLI_VERSION = sanitizeSemver('0.1.0-beta.91');
47
+ export const PUGI_CLI_VERSION = sanitizeSemver('0.1.0-beta.92');
48
48
  /**
49
49
  * Outbound: the CLI's installed semver. Read at request time by
50
50
  * `version-interceptor.ts` and injected on every `fetch` call.
@@ -222,7 +222,18 @@ export async function renderRepl(options) {
222
222
  mascotPrePrinted,
223
223
  welcomeData,
224
224
  autoInitStatus: options.autoInitStatus ?? null,
225
- })));
225
+ })), {
226
+ // PUGI-534 — Ink kills the process on the first raw Ctrl+C by
227
+ // default, which beat the InputBox useInput double-tap timer to
228
+ // the punch (operator reported single ^C exits the REPL). Disable
229
+ // Ink's built-in handler so the InputBox `lastCtrlCAt` window owns
230
+ // the exit gesture: first press → cancel + toast, second press
231
+ // within 1s → `handleExit()` → `useApp().exit()`. SIGINT handlers
232
+ // on the process object (sigint-guard + per-engine-task in
233
+ // runtime/cli.ts) still fire as defence-in-depth on the rare
234
+ // non-raw fallback path.
235
+ exitOnCtrlC: false,
236
+ });
226
237
  // Make sure we leave the alt screen on abrupt exits too. Without
227
238
  // this the operator's shell stays "frozen" on the Pugi splash.
228
239
  process.once('exit', bootstrap.restore);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pugi/cli",
3
- "version": "0.1.0-beta.91",
3
+ "version": "0.1.0-beta.92",
4
4
  "description": "Pugi CLI - terminal-native software execution system",
5
5
  "homepage": "https://pugi.io",
6
6
  "repository": {
@@ -63,7 +63,7 @@
63
63
  "which": "^6.0.0",
64
64
  "zod": "^3.23.0",
65
65
  "@pugi/personas": "0.1.2",
66
- "@pugi/sdk": "0.1.0-beta.91"
66
+ "@pugi/sdk": "0.1.0-beta.92"
67
67
  },
68
68
  "devDependencies": {
69
69
  "@types/node": "^22.0.0",