Repository navigation
Commit b944419
committed
chore: move to Ink 8 and drop the ink patch script
- ink 6.8 -> 8.0, react / @types/react ~19.2 -> ~19.3 (ink 8 ships
react-reconciler 0.34, which requires react ^19.3). engines.node is now
>=22 because ink 8 requires Node 22. Release binaries are unaffected
(oclif pack bundles Node); CI already runs on Node 22.
- Delete scripts/patch-ink.ts and its postinstall, pkg.ts and build-npm.ts
steps. Ink 8 natively provides suspendTerminal() (flush + erase frame,
release raw mode and the stdin 'readable' listener, forced redraw on
resume) and fixes the stale <Static> node bug the reconciler patch
backported.
- DefaultReporter hands the terminal to PTY sessions via suspendTerminal(),
captured from useApp() in DefaultComponent. Verified in a PTY on Node 22
and Node 24 (which previously needed the kState workaround). Ink now
restores raw mode itself on resume, which also fixes keypresses being
line-buffered after a stdin handoff.
- wrap='middle' -> 'wrap' in PromptPressKeyToContinue: 'middle' was never a
valid value (ink 5 silently skipped wrapping), and ink 8 rejects it.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_016QnBk1T9WChsm317yyQKmh1 parent e4acec8 commit b944419
8 files changed
Lines changed: 191 additions & 410 deletions
File tree
- scripts
- src/ui
- components
- widgets
- reporters
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
24 | | - | |
| 24 | + | |
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
| |||
38 | 38 | | |
39 | 39 | | |
40 | 40 | | |
41 | | - | |
| 41 | + | |
42 | 42 | | |
43 | 43 | | |
44 | 44 | | |
| |||
56 | 56 | | |
57 | 57 | | |
58 | 58 | | |
59 | | - | |
| 59 | + | |
60 | 60 | | |
61 | 61 | | |
62 | 62 | | |
| |||
82 | 82 | | |
83 | 83 | | |
84 | 84 | | |
85 | | - | |
| 85 | + | |
86 | 86 | | |
87 | 87 | | |
88 | 88 | | |
| |||
128 | 128 | | |
129 | 129 | | |
130 | 130 | | |
131 | | - | |
| 131 | + | |
132 | 132 | | |
133 | 133 | | |
134 | 134 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
4 | | - | |
5 | | - | |
6 | | - | |
7 | | - | |
8 | | - | |
9 | | - | |
10 | | - | |
11 | | - | |
12 | | - | |
13 | | - | |
14 | | - | |
15 | | - | |
16 | | - | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
17 | 8 | | |
18 | 9 | | |
19 | 10 | | |
20 | 11 | | |
21 | 12 | | |
22 | | - | |
23 | 13 | | |
24 | 14 | | |
25 | 15 | | |
| |||
30 | 20 | | |
31 | 21 | | |
32 | 22 | | |
33 | | - | |
34 | | - | |
35 | | - | |
36 | | - | |
37 | | - | |
38 | | - | |
39 | | - | |
40 | | - | |
41 | | - | |
| 23 | + | |
42 | 24 | | |
43 | 25 | | |
44 | 26 | | |
| |||
This file was deleted.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
29 | | - | |
30 | | - | |
31 | | - | |
32 | | - | |
33 | | - | |
34 | | - | |
35 | | - | |
36 | 29 | | |
37 | 30 | | |
38 | 31 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| |||
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
| 29 | + | |
29 | 30 | | |
30 | 31 | | |
31 | | - | |
| 32 | + | |
| 33 | + | |
32 | 34 | | |
33 | 35 | | |
34 | 36 | | |
| |||
42 | 44 | | |
43 | 45 | | |
44 | 46 | | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
45 | 51 | | |
46 | 52 | | |
47 | 53 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
14 | | - | |
| 14 | + | |
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
| |||
0 commit comments