- Add `.env` to `.gitignore` and create `.env.example`. - Install `@modelcontextprotocol/sdk` to fix type errors. - Fix linting issues (unused vars, error handling) in `src/api/extract.ts` and `src/service/ai.ts`. - Fix typecheck errors in `src/service/file.ts` (Buffer types) and `src/service/ai.ts` (GenAI types). - Update `tsconfig.json` to use React JSX and skip lib checks. - Fix tests in `src/service/asset.test.ts` (mocking `Bun.write`) and `src/api/equipment.test.ts`. - Refactor `src/ui/components/Stash.tsx` and `src/ui/components/Extractor.tsx` to infer types from Hono client. - Simplify `src/ui/types.ts` by removing redundant types.
49 lines
1.3 KiB
JSON
49 lines
1.3 KiB
JSON
{
|
|
"name": "forgery",
|
|
"type": "module",
|
|
"scripts": {
|
|
"dev": "bun run --hot src/index.ts",
|
|
"lint": "eslint .",
|
|
"format": "prettier --write .",
|
|
"format:check": "prettier --check .",
|
|
"test": "bun test",
|
|
"typecheck": "tsc --noEmit"
|
|
},
|
|
"dependencies": {
|
|
"@google/genai": "^1.40.0",
|
|
"@hono/zod-validator": "^0.7.6",
|
|
"@libsql/client": "^0.17.0",
|
|
"@prisma/adapter-libsql": "^7.3.0",
|
|
"@prisma/client": "^7.3.0",
|
|
"@types/react": "^19.2.13",
|
|
"@types/react-dom": "^19.2.3",
|
|
"bun-plugin-tailwind": "^0.1.2",
|
|
"class-variance-authority": "^0.7.1",
|
|
"clsx": "^2.1.1",
|
|
"framer-motion": "^12.33.0",
|
|
"hono": "^4.11.8",
|
|
"lucide-react": "^0.563.0",
|
|
"react": "^19.2.4",
|
|
"react-dom": "^19.2.4",
|
|
"sharp": "^0.34.5",
|
|
"tailwind-merge": "^3.4.0",
|
|
"tailwindcss": "^4.1.18",
|
|
"ulidx": "^2.4.1",
|
|
"zod": "^4.3.6",
|
|
"zod-to-json-schema": "^3.25.1"
|
|
},
|
|
"devDependencies": {
|
|
"@eslint/js": "^10.0.1",
|
|
"@modelcontextprotocol/sdk": "^1.26.0",
|
|
"@types/bun": "^1.3.8",
|
|
"@typescript-eslint/eslint-plugin": "^8.54.0",
|
|
"@typescript-eslint/parser": "^8.54.0",
|
|
"eslint": "^10.0.0",
|
|
"eslint-config-prettier": "^10.1.8",
|
|
"prettier": "^3.8.1",
|
|
"prisma": "^7.3.0",
|
|
"typescript": "^5.9.3",
|
|
"typescript-eslint": "^8.54.0"
|
|
}
|
|
}
|