Files
myagents/desktop/package.json
T
Zhengshou Lai 2ac1c9750e refactor(desktop): code review fixes
- Shortcut: Cmd+Shift+C → Cmd+Shift+M (avoid Chrome DevTools conflict)
- Preload: onData/onExit now return cleanup functions (fix memory leak)
- PTY: resolve shell path at construction time, throw on missing claude CLI
- Terminal: remove allowProposedApi, dedupe resize listeners, add cleanup
- Main: debounce window move config writes (500ms), restart PTY on activate
- CSS: remove unused orbGlow keyframes
- Package: fix appId to com.apaam.myclaude, skip code signing, remove unused deps
2026-05-27 11:23:14 +08:00

70 lines
1.8 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",
"pack": "npm run build && electron-builder --dir",
"dist": "npm run build && electron-builder"
},
"build": {
"appId": "com.apaam.myclaude",
"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",
"identity": null,
"hardenedRuntime": false,
"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": {
"@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",
"typescript": "^6.0.3",
"vite": "^8.0.10",
"wait-on": "^9.0.5"
}
}