mirror of
https://github.com/siteboon/claudecodeui.git
synced 2026-04-15 10:01:31 +00:00
The backend had started to grow beyond what the frontend-only tooling setup could support safely. We were still running server code directly from /server, linting mainly the client, and relying on path assumptions such as "../.." that only worked in the source layout. That created three problems: - backend alias imports were hard to resolve consistently in the editor, ESLint, and the runtime - server code had no enforced module boundary rules, so cross-module deep imports could bypass intended public entry points - building the backend into a separate output directory would break repo-level lookups for package.json, .env, dist, and public assets because those paths were derived from source-only relative assumptions This change makes the backend tooling explicit and runtime-safe. A dedicated backend TypeScript config now lives in server/tsconfig.json, with tsconfig.server.json reduced to a compatibility shim. This gives the language service and backend tooling a canonical project rooted in /server while still preserving top-level compatibility for any existing references. The backend alias mapping now resolves relative to /server, which avoids colliding with the frontend's "@/..." -> "src/*" mapping. The package scripts were updated so development runs through tsx with the backend tsconfig, build now produces a compiled backend in dist-server, and typecheck/lint cover both client and server. A new build-server.mjs script runs TypeScript and tsc-alias and cleans dist-server first, which prevents stale compiled files from shadowing current source files after refactors. To make the compiled backend behave the same as the source backend, runtime path resolution was centralized in server/utils/runtime-paths.js. Instead of assuming fixed relative paths from each module, server entry points now resolve the actual app root and server root at runtime. That keeps package.json, .env, dist, public, and default database paths stable whether code is executed from /server or from /dist-server/server. ESLint was expanded from a frontend-only setup into a backend-aware one. The backend now uses import resolution tied to the backend tsconfig so aliased imports resolve correctly in linting, import ordering matches the frontend style, and unused/duplicate imports are surfaced consistently. Most importantly, eslint-plugin-boundaries now enforces server module boundaries. Files under server/modules can no longer import another module's internals directly. Cross-module imports must go through that module's barrel file (index.ts/index.js). boundaries/no-unknown was also enabled so alias-resolution gaps cannot silently bypass the rule. Together, these changes make the backend buildable, keep runtime path resolution stable after compilation, align server tooling with the client where appropriate, and enforce a stricter modular architecture for server code.
162 lines
4.7 KiB
JSON
162 lines
4.7 KiB
JSON
{
|
|
"name": "@cloudcli-ai/cloudcli",
|
|
"version": "1.28.1",
|
|
"description": "A web-based UI for Claude Code CLI",
|
|
"type": "module",
|
|
"main": "server/index.js",
|
|
"bin": {
|
|
"cloudcli": "server/cli.js"
|
|
},
|
|
"files": [
|
|
"server/",
|
|
"shared/",
|
|
"dist/",
|
|
"scripts/",
|
|
"README.md"
|
|
],
|
|
"homepage": "https://cloudcli.ai",
|
|
"repository": {
|
|
"type": "git",
|
|
"url": "git+https://github.com/siteboon/claudecodeui.git"
|
|
},
|
|
"bugs": {
|
|
"url": "https://github.com/siteboon/claudecodeui/issues"
|
|
},
|
|
"scripts": {
|
|
"dev": "concurrently --kill-others \"npm run server:dev\" \"npm run client\"",
|
|
"server": "node dist-server/server/index.js",
|
|
"server:dev": "tsx --tsconfig server/tsconfig.json server/index.js",
|
|
"server:dev-watch": "tsx watch --tsconfig server/tsconfig.json server/index.js",
|
|
"client": "vite",
|
|
"build": "npm run build:client && npm run build:server",
|
|
"build:client": "vite build",
|
|
"build:server": "node scripts/build-server.mjs",
|
|
"preview": "vite preview",
|
|
"typecheck": "tsc --noEmit -p tsconfig.json && tsc --noEmit -p server/tsconfig.json",
|
|
"lint": "eslint src/ server/",
|
|
"lint:fix": "eslint src/ server/ --fix",
|
|
"start": "npm run build && npm run server",
|
|
"release": "./release.sh",
|
|
"prepublishOnly": "npm run build",
|
|
"postinstall": "node scripts/fix-node-pty.js",
|
|
"prepare": "husky"
|
|
},
|
|
"keywords": [
|
|
"claude code",
|
|
"claude-code",
|
|
"claude-code-ui",
|
|
"cloudcli",
|
|
"codex",
|
|
"gemini",
|
|
"gemini-cli",
|
|
"cursor",
|
|
"cursor-cli",
|
|
"anthropic",
|
|
"openai",
|
|
"google",
|
|
"coding-agent",
|
|
"web-ui",
|
|
"ui",
|
|
"mobile IDE"
|
|
],
|
|
"author": "CloudCLI UI Contributors",
|
|
"license": "AGPL-3.0-or-later",
|
|
"dependencies": {
|
|
"@anthropic-ai/claude-agent-sdk": "^0.2.59",
|
|
"@codemirror/lang-css": "^6.3.1",
|
|
"@codemirror/lang-html": "^6.4.9",
|
|
"@codemirror/lang-javascript": "^6.2.4",
|
|
"@codemirror/lang-json": "^6.0.1",
|
|
"@codemirror/lang-markdown": "^6.3.3",
|
|
"@codemirror/lang-python": "^6.2.1",
|
|
"@codemirror/merge": "^6.11.1",
|
|
"@codemirror/theme-one-dark": "^6.1.2",
|
|
"@iarna/toml": "^2.2.5",
|
|
"@octokit/rest": "^22.0.0",
|
|
"@openai/codex-sdk": "^0.101.0",
|
|
"@replit/codemirror-minimap": "^0.5.2",
|
|
"@tailwindcss/typography": "^0.5.16",
|
|
"@uiw/react-codemirror": "^4.23.13",
|
|
"@xterm/addon-clipboard": "^0.1.0",
|
|
"@xterm/addon-fit": "^0.10.0",
|
|
"@xterm/addon-web-links": "^0.11.0",
|
|
"@xterm/addon-webgl": "^0.18.0",
|
|
"@xterm/xterm": "^5.5.0",
|
|
"bcrypt": "^6.0.0",
|
|
"better-sqlite3": "^12.6.2",
|
|
"chokidar": "^4.0.3",
|
|
"class-variance-authority": "^0.7.1",
|
|
"clsx": "^2.1.1",
|
|
"cors": "^2.8.5",
|
|
"cross-spawn": "^7.0.3",
|
|
"express": "^4.18.2",
|
|
"fuse.js": "^7.0.0",
|
|
"gray-matter": "^4.0.3",
|
|
"i18next": "^25.7.4",
|
|
"i18next-browser-languagedetector": "^8.2.0",
|
|
"jsonwebtoken": "^9.0.2",
|
|
"jszip": "^3.10.1",
|
|
"katex": "^0.16.25",
|
|
"lucide-react": "^0.515.0",
|
|
"mime-types": "^3.0.1",
|
|
"multer": "^2.0.1",
|
|
"node-fetch": "^2.7.0",
|
|
"node-pty": "^1.1.0-beta34",
|
|
"react": "^18.2.0",
|
|
"react-dom": "^18.2.0",
|
|
"react-dropzone": "^14.2.3",
|
|
"react-error-boundary": "^4.1.2",
|
|
"react-i18next": "^16.5.3",
|
|
"react-markdown": "^10.1.0",
|
|
"react-router-dom": "^6.8.1",
|
|
"react-syntax-highlighter": "^15.6.1",
|
|
"rehype-katex": "^7.0.1",
|
|
"rehype-raw": "^7.0.0",
|
|
"remark-gfm": "^4.0.0",
|
|
"remark-math": "^6.0.0",
|
|
"sqlite": "^5.1.1",
|
|
"sqlite3": "^5.1.7",
|
|
"tailwind-merge": "^3.3.1",
|
|
"web-push": "^3.6.7",
|
|
"ws": "^8.14.2"
|
|
},
|
|
"devDependencies": {
|
|
"@commitlint/cli": "^20.4.3",
|
|
"@commitlint/config-conventional": "^20.4.3",
|
|
"@eslint/js": "^9.39.3",
|
|
"@release-it/conventional-changelog": "^10.0.5",
|
|
"@types/node": "^22.19.7",
|
|
"@types/react": "^18.2.43",
|
|
"@types/react-dom": "^18.2.17",
|
|
"@vitejs/plugin-react": "^4.6.0",
|
|
"auto-changelog": "^2.5.0",
|
|
"autoprefixer": "^10.4.16",
|
|
"concurrently": "^8.2.2",
|
|
"eslint": "^9.39.3",
|
|
"eslint-import-resolver-typescript": "^4.4.4",
|
|
"eslint-plugin-boundaries": "^6.0.2",
|
|
"eslint-plugin-import-x": "^4.16.1",
|
|
"eslint-plugin-react": "^7.37.5",
|
|
"eslint-plugin-react-hooks": "^7.0.1",
|
|
"eslint-plugin-react-refresh": "^0.5.2",
|
|
"eslint-plugin-tailwindcss": "^3.18.2",
|
|
"eslint-plugin-unused-imports": "^4.4.1",
|
|
"globals": "^17.4.0",
|
|
"husky": "^9.1.7",
|
|
"lint-staged": "^16.3.2",
|
|
"node-gyp": "^10.0.0",
|
|
"postcss": "^8.4.32",
|
|
"release-it": "^19.0.5",
|
|
"sharp": "^0.34.2",
|
|
"tailwindcss": "^3.4.0",
|
|
"tsc-alias": "^1.8.16",
|
|
"tsx": "^4.21.0",
|
|
"typescript": "^5.9.3",
|
|
"typescript-eslint": "^8.56.1",
|
|
"vite": "^7.0.4"
|
|
},
|
|
"lint-staged": {
|
|
"src/**/*.{ts,tsx,js,jsx}": "eslint"
|
|
}
|
|
}
|