fix(deps): regenerate the [email protected] patch so it applies on a clean install (#7407)

The committed `patches/ink+7.0.3.patch` no longer applies to the `[email protected]`
tarball the lockfile pins (verified: lockfile and registry integrity are
identical, and `git apply --check` fails on `package.json`, `index.js`,
`ink.js`, `output.js`, and `renderer.js`). On a fresh `npm install`/`npm ci`
the `postinstall` patch-package step fails, so the text-selection exports
(`getFrameController` / `FrameController` / `ReadonlyFrame` / `ScreenSelection`
/ `FrameCell`) added for VP mouse selection are missing from `ink`, and
`packages/cli/src/ui/selection/*` fails to build with TS2305. Existing
checkouts only keep working because they still carry an already-patched
`node_modules/ink` from when the patch last applied.

Regenerate the patch against the pinned `[email protected]` with patch-package. The
new patch reproduces the exact ink state the project already runs on and drops
three hunks that no longer apply and are not needed: the `package.json`
subpath exports (`./dom`, `./components/CursorContext` — not imported by any
source), a `clearTerminal` write on alternate-screen enter (redundant with the
per-render clear), and a width calc that the published build already expresses
differently. Verified with a full `npm ci` (postinstall patch applies, prepare
build passes) and a clean `git apply --check` against a pristine `[email protected]`.

Generated with AI

Co-authored-by: 秦奇 <[email protected]>
Co-authored-by: Qwen-Coder <[email protected]>
This commit is contained in:
authored and GitHub committed 2026-07-21 15:11:38 +00:00
1 parent 7e33da8d96
commit f33f3dbc7f

Diff Content Not Available