Files
Your Name d93b07f0a9 feat: 初始化 SSH AI Agent 桌面客户端 v0.1.0
- Electron + React + TypeScript 桌面应用
- SSH 连接管理(ssh2)
- AI Agent ReAct 循环(OpenAI 兼容 API)
- 5 个内置工具(命令执行、文件读写、目录列表、系统信息)
- 6 个模型预设(GPT-4o、DeepSeek、通义千问、豆包、Ollama、LM Studio)
- 自定义模型支持
- 高风险工具审批流
- 无边框窗口 + 自定义标题栏
- AI 对话区右侧布局
- xterm.js 终端仿真
- 配置持久化(electron-store)
2026-06-12 18:11:06 +08:00

94 lines
2.6 KiB
JSON

{
"name": "ssh-ai-agent",
"version": "0.1.0",
"description": "智能SSH终端 - 集成 AI 助手的远程运维桌面客户端",
"author": {
"name": "SSH AI Agent Team"
},
"main": "dist/main/index.js",
"scripts": {
"dev": "tsc -p tsconfig.main.json && electron .",
"dev:watch": "concurrently \"tsc -p tsconfig.main.json -w\" \"wait-on dist/main/index.js && electron .\"",
"build:renderer": "vite build",
"build:main": "tsc -p tsconfig.main.json",
"build": "npm run build:main && npm run build:renderer",
"pack": "npm run build && electron-builder --dir",
"dist": "npm run build && electron-builder",
"test:patch": "node test_patch.js"
},
"dependencies": {
"@xterm/addon-fit": "^0.10.0",
"@xterm/addon-web-links": "^0.11.0",
"@xterm/xterm": "^5.5.0",
"electron-store": "^8.2.0",
"lucide-react": "^0.383.0",
"openai": "^4.52.0",
"react": "^18.3.1",
"react-dom": "^18.3.1",
"ssh2": "^1.15.0",
"uuid": "^9.0.1",
"zustand": "^4.5.2"
},
"devDependencies": {
"@types/react": "^18.3.3",
"@types/react-dom": "^18.3.0",
"@types/ssh2": "^1.15.4",
"@types/uuid": "^9.0.8",
"@vitejs/plugin-react": "^4.3.0",
"adm-zip": "^0.5.17",
"autoprefixer": "^10.4.19",
"concurrently": "^8.2.2",
"electron": "^30.0.8",
"electron-builder": "^24.13.3",
"extract-zip": "^2.0.1",
"postcss": "^8.4.38",
"tailwindcss": "^3.4.4",
"typescript": "^5.4.5",
"vite": "^5.3.1",
"wait-on": "^7.2.0"
},
"build": {
"appId": "com.ssh-ai-agent.app",
"productName": "智能SSH终端",
"copyright": "Copyright © 2026",
"directories": {
"output": "release"
},
"files": [
"dist/**/*",
"renderer/**/*"
],
"win": {
"target": [
{
"target": "nsis",
"arch": [
"x64"
]
}
],
"icon": "resources/icon.ico",
"artifactName": "${productName}-${version}-${arch}.${ext}",
"forceCodeSigning": false,
"sign": null,
"signingHashAlgorithms": []
},
"nsis": {
"oneClick": false,
"perMachine": false,
"allowToChangeInstallationDirectory": true,
"createDesktopShortcut": true,
"createStartMenuShortcut": true,
"shortcutName": "智能SSH终端",
"installerLanguages": [
"zh_CN"
],
"language": "2052",
"installerIcon": "resources/icon.ico",
"uninstallerIcon": "resources/icon.ico",
"uninstallDisplayName": "卸载 智能SSH终端",
"deleteAppDataOnUninstall": false
}
}
}