singularity-forge/packages/tui/package.json
Mikael Hugo 4e97058d7e feat(tui): add Ink bridge for gradual migration from custom renderer
Install ink@7.0.2 + react@19.2.6. Add JSX/react-jsx support to
packages/tui tsconfig. Create ink-bridge.tsx: LegacyComponentView wraps
existing Component objects as React nodes, startInkRenderer drives the
Ink render loop around any legacy Component tree.

Exports startInkRenderer from @singularity-forge/tui public API.
All 78 existing tui tests pass; 3 new ink-bridge tests added.

This is the infrastructure step for migrating components one-by-one from
the custom differential renderer to native Ink React components, without
breaking interactive mode.

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

39 lines
786 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"
}
},
"scripts": {
"build": "tsgo -p tsconfig.json"
},
"dependencies": {
"chalk": "^5.6.2",
"get-east-asian-width": "^1.3.0",
"ink": "^7.0.2",
"marked": "^18.0.3",
"mime-types": "^3.0.1",
"react": "^19.2.6"
},
"devDependencies": {
"@types/mime-types": "^2.1.4",
"@types/react": "^19.2.14"
},
"peerDependencies": {
"react": ">=19"
},
"optionalDependencies": {
"koffi": "^2.9.0"
},
"engines": {
"node": ">=26.1.0"
}
}