singularity-forge/packages/tui/package.json
Mikael Hugo 9e55528c95 revert(tui): remove Ink bridge, restore pure custom differential renderer
The Ink bridge added today was a misguided gradual-migration wrapper:
- Components still rendered via the old string-line protocol (no Ink layout)
- Key decodes were re-encoded to escape sequences → keys.ts decoded again (double round-trip bug)
- The _useInk / _inkHandle path blocked TTY start unconditionally via process.stdout.isTTY check

Removed: ink-bridge.tsx, ink-bridge.test.ts, useInk() method, _useInk/_inkHandle fields,
startInkRenderer import/export, Ink branch in start()/stop()/requestRender().

Removed ink and react from packages/tui dependencies and peerDependencies.
Reverted tsconfig.extensions.json jsx settings (only needed for the .tsx bridge file).

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-05-10 21:38:54 +02:00

38 lines
787 B
JSON

{
"name": "@singularity-forge/tui",
"version": "2.75.3",
"description": "Terminal User Interface library (vendored from pi-mono)",
"type": "module",
"main": "./dist/index.js",
"types": "./dist/index.d.ts",
"exports": {
".": {
"types": "./dist/index.d.ts",
"import": "./dist/index.js",
"require": "./dist/index.js"
},
"./fuzzy": {
"types": "./dist/fuzzy.d.ts",
"import": "./dist/fuzzy.js",
"require": "./dist/fuzzy.js"
}
},
"scripts": {
"build": "tsgo -p tsconfig.json"
},
"dependencies": {
"chalk": "^5.6.2",
"get-east-asian-width": "^1.3.0",
"marked": "^18.0.3",
"mime-types": "^3.0.1"
},
"devDependencies": {
"@types/mime-types": "^2.1.4"
},
"optionalDependencies": {
"koffi": "^2.9.0"
},
"engines": {
"node": ">=26.1.0"
}
}