@wrongstack/tui 1.0.9 → 1.0.10

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.
@@ -2,8 +2,14 @@ import type { TerminalLifecycle } from '@wrongstack/core/utils';
2
2
  import type { RunTuiOptions } from './run-tui-options.js';
3
3
  /** Everything runTui needs from the exit wiring after handing it over. */
4
4
  export interface ExitOrchestrator {
5
- /** Resolves the run promise through the durable-close budget. */
6
- settle: (code: number) => void;
5
+ /**
6
+ * Resolves the run promise through the durable-close budget.
7
+ *
8
+ * `afterCleanup` runs only after the alternate buffer is restored and
9
+ * terminal output is unsilenced. Startup failures use it to report a mount
10
+ * error to the shell rather than writing it into the hidden TUI buffer.
11
+ */
12
+ settle: (code: number, afterCleanup?: (() => void) | undefined) => void;
7
13
  /** Clean project-switch exit: unmount, then a 5s hard-exit fallback. */
8
14
  requestExit: (code: number) => void;
9
15
  /** Raw-stdin Ctrl+C watcher — pass to mountInkApp (armed after render). */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wrongstack/tui",
3
- "version": "1.0.9",
3
+ "version": "1.0.10",
4
4
  "license": "MIT",
5
5
  "description": "WrongStack terminal UI: Ink-based interactive renderer with history, pickers, and slash menus.",
6
6
  "repository": {
@@ -26,14 +26,12 @@
26
26
  "!dist/**/*.map"
27
27
  ],
28
28
  "dependencies": {
29
- "@wrongstack/core": "1.0.9",
30
- "@wrongstack/kanban": "1.0.9",
31
- "@wrongstack/runtime": "1.0.9",
32
- "@wrongstack/sage": "1.0.9",
33
- "@wrongstack/sdd": "1.0.9",
34
- "@wrongstack/tools": "1.0.9",
35
- "ink": "7.1.1",
36
- "react": "^19.3.0",
29
+ "@wrongstack/core": "1.0.10",
30
+ "@wrongstack/kanban": "1.0.10",
31
+ "@wrongstack/runtime": "1.0.10",
32
+ "@wrongstack/sage": "1.0.10",
33
+ "@wrongstack/sdd": "1.0.10",
34
+ "@wrongstack/tools": "1.0.10",
37
35
  "string-width": "8.2.2",
38
36
  "wrap-ansi": "^10.0.1"
39
37
  },
@@ -43,8 +41,10 @@
43
41
  "@types/node": "^26.5.1",
44
42
  "@types/react": "^19.3.0",
45
43
  "@types/react-dom": "^19.3.0",
44
+ "ink": "7.1.1",
46
45
  "ink-testing-library": "^4.0.0",
47
46
  "jsdom": "^30.0.1",
47
+ "react": "^19.3.0",
48
48
  "react-dom": "^19.3.0",
49
49
  "typescript": "^7.0.2"
50
50
  },