实现了基于 Web 的 Claude Code 实例管理功能: ## 功能特性 - 🔐 用户认证:JWT 登录验证 - 🚀 实例管理:创建、启动、停止、删除 Claude Code 实例 - 📊 实时监控:CPU、内存、运行时间统计 - 📝 日志管理:Winston 日志系统 - 🔌 PM2 集成:稳定的进程管理 - 🌐 Web 界面:Vue 3 + Element Plus ## 技术栈 - 后端:Node.js + Express + TypeScript + PM2 - 前端:Vue 3 + TypeScript + Vite + Element Plus - 认证:JWT - 存储:文件系统(JSON) ## 项目结构 - Monorepo 结构,前后端分离 - 完整的类型定义 - 模块化设计 - 详细的开发文档 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
48 lines
1.2 KiB
JSON
48 lines
1.2 KiB
JSON
{
|
|
"name": "cc-cloud-backend",
|
|
"version": "1.0.0",
|
|
"description": "CC Cloud 后端服务",
|
|
"main": "dist/app.js",
|
|
"scripts": {
|
|
"dev": "tsx watch src/app.ts",
|
|
"build": "tsc",
|
|
"start": "node dist/app.js",
|
|
"lint": "eslint src --ext .ts",
|
|
"lint:fix": "eslint src --ext .ts --fix",
|
|
"typecheck": "tsc --noEmit"
|
|
},
|
|
"keywords": [],
|
|
"author": "",
|
|
"license": "MIT",
|
|
"dependencies": {
|
|
"express": "^4.18.2",
|
|
"cors": "^2.8.5",
|
|
"dotenv": "^16.3.1",
|
|
"jsonwebtoken": "^9.0.2",
|
|
"bcrypt": "^5.1.1",
|
|
"pm2": "^5.3.0",
|
|
"socket.io": "^4.6.1",
|
|
"ws": "^8.16.0",
|
|
"axios": "^1.6.5",
|
|
"winston": "^3.11.0",
|
|
"winston-daily-rotate-file": "^4.7.1",
|
|
"detect-port": "^2.0.0",
|
|
"uuid": "^9.0.1",
|
|
"zod": "^3.22.4"
|
|
},
|
|
"devDependencies": {
|
|
"@types/express": "^4.17.21",
|
|
"@types/cors": "^2.8.17",
|
|
"@types/jsonwebtoken": "^9.0.5",
|
|
"@types/bcrypt": "^5.0.2",
|
|
"@types/node": "^20.11.5",
|
|
"@types/ws": "^8.5.10",
|
|
"@types/uuid": "^9.0.7",
|
|
"@typescript-eslint/eslint-plugin": "^6.19.1",
|
|
"@typescript-eslint/parser": "^6.19.1",
|
|
"eslint": "^8.56.0",
|
|
"tsx": "^4.7.0",
|
|
"typescript": "^5.3.3"
|
|
}
|
|
}
|