feat(FN-968): initialize @fusion/tui workspace package

- Add @fusion/tui as a new private workspace package with ink and React dependencies
- Configure TypeScript with JSX (react-jsx), strict mode, and Node16 module resolution
- Add minimal src/index.tsx entry point with package exports
- Update root README.md with tui package reference
- Add pnpm-lock.yaml entries for ink, ink-text-input, and @types/react
This commit is contained in:
gsxdsm
2026-04-05 10:26:12 -07:00
parent bf84bea5a0
commit f035be2c6a
6 changed files with 371 additions and 0 deletions

7
packages/tui/README.md Normal file
View File

@@ -0,0 +1,7 @@
# @fusion/tui
Terminal UI components for kb, built with [Ink](https://github.com/vadimdemedes/ink) (React for the command line).
## Status
This package is under active development and not yet published.

35
packages/tui/package.json Normal file
View File

@@ -0,0 +1,35 @@
{
"name": "@fusion/tui",
"version": "0.1.0",
"type": "module",
"exports": {
".": {
"types": "./src/index.tsx",
"import": "./dist/index.js"
}
},
"files": [
"dist",
"README.md"
],
"scripts": {
"build": "tsc",
"typecheck": "tsc --noEmit",
"test": "echo 'No tests yet' && exit 0"
},
"dependencies": {
"@fusion/core": "workspace:*",
"ink": "^6.8.0",
"ink-text-input": "^6.0.0",
"react": "^19.0.0"
},
"devDependencies": {
"@types/node": "^25.5.0",
"@types/react": "^19.0.0",
"typescript": "^5.7.0"
},
"engines": {
"node": ">=22.5.0"
},
"private": true
}

View File

@@ -0,0 +1,3 @@
/** @fusion/tui — Terminal UI components for kb */
export {};

View File

@@ -0,0 +1,11 @@
{
"extends": "../../tsconfig.base.json",
"compilerOptions": {
"outDir": "dist",
"rootDir": "src",
"jsx": "react-jsx",
"types": ["node"]
},
"include": ["src/**/*"],
"exclude": ["src/**/*.test.ts", "src/**/*.test.tsx", "src/**/__tests__/**/*"]
}