- Electron + React + TypeScript 桌面宠物外壳 - xterm.js + node-pty 直接对接 Claude CLI 进程 - 宠物 orb(80x80)可拖拽,点击展开终端面板 - CRT 复古终端主题(扫描线、文字发光) - 全局快捷键 Cmd+Shift+C 显隐 - 窗口位置自动保存 - 中华田园犬吉祥物 icon(AI 生成) - Makefile 新增 `make app` 打包命令
72 lines
1.9 KiB
JSON
72 lines
1.9 KiB
JSON
{
|
|
"name": "myclaude-pet",
|
|
"version": "1.0.0",
|
|
"description": "Desktop pet wrapper for Claude CLI",
|
|
"main": "dist-electron/main.js",
|
|
"scripts": {
|
|
"dev": "npx tsc -p tsconfig.electron.json && concurrently \"vite\" \"tsc -p tsconfig.electron.json --watch --preserveWatchOutput\" \"wait-on http://localhost:5173 && VITE_DEV_SERVER_URL=http://localhost:5173 npx electron dist-electron/main.js\"",
|
|
"build": "vite build && tsc -p tsconfig.electron.json && cp electron/preload.js dist-electron/",
|
|
"start": "npx electron dist-electron/main.js",
|
|
"rebuild": "electron-rebuild",
|
|
"pack": "npm run build && electron-builder --dir",
|
|
"dist": "npm run build && electron-builder"
|
|
},
|
|
"build": {
|
|
"appId": "com.apaam.myclaude-pet",
|
|
"productName": "MyClaude",
|
|
"directories": {
|
|
"output": "release",
|
|
"buildResources": "build"
|
|
},
|
|
"files": [
|
|
"dist/**/*",
|
|
"dist-electron/**/*",
|
|
"build/**/*"
|
|
],
|
|
"mac": {
|
|
"target": [
|
|
{
|
|
"target": "dir",
|
|
"arch": ["arm64", "x64"]
|
|
},
|
|
{
|
|
"target": "dmg",
|
|
"arch": ["arm64", "x64"]
|
|
}
|
|
],
|
|
"category": "public.app-category.productivity",
|
|
"hardenedRuntime": true,
|
|
"gatekeeperAssess": false
|
|
}
|
|
},
|
|
"keywords": [
|
|
"claude",
|
|
"desktop",
|
|
"pet"
|
|
],
|
|
"author": "",
|
|
"license": "ISC",
|
|
"type": "module",
|
|
"dependencies": {
|
|
"@xterm/addon-fit": "^0.11.0",
|
|
"@xterm/xterm": "^6.0.0",
|
|
"node-pty": "^1.1.0",
|
|
"react": "^19.2.5",
|
|
"react-dom": "^19.2.5"
|
|
},
|
|
"devDependencies": {
|
|
"@electron/rebuild": "^4.0.4",
|
|
"@types/node": "^25.6.0",
|
|
"@types/react": "^19.2.14",
|
|
"@types/react-dom": "^19.2.3",
|
|
"@vitejs/plugin-react": "^6.0.1",
|
|
"concurrently": "^9.2.1",
|
|
"electron": "^42.0.0",
|
|
"electron-builder": "^26.8.1",
|
|
"tsx": "^4.21.0",
|
|
"typescript": "^6.0.3",
|
|
"vite": "^8.0.10",
|
|
"wait-on": "^9.0.5"
|
|
}
|
|
}
|