-
Notifications
You must be signed in to change notification settings - Fork 9
Expand file tree
/
Copy pathpackage.json
More file actions
183 lines (183 loc) · 6.06 KB
/
package.json
File metadata and controls
183 lines (183 loc) · 6.06 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
{
"name": "cooper",
"version": "1.0.5",
"description": "A beautiful native desktop GUI for GitHub Copilot",
"main": "./out/main/index.js",
"homepage": "https://github.com/CooperAgent/cooper",
"author": {
"name": "Cooper Labs",
"email": "hello@cooperlabs.dev"
},
"license": "MIT",
"scripts": {
"dev": "npm run prebuild-info && node scripts/dev-env.js",
"build": "npm run prebuild-info && electron-vite build",
"preview": "npm run prebuild-info && electron-vite preview",
"start": "npm run prebuild-info && node scripts/dev-env.js",
"test": "vitest run",
"test:watch": "vitest",
"test:components": "vitest run --config vitest.config.ts tests/components",
"test:bundle-size": "npm run build && node scripts/check-bundle-size.js --compare-baseline",
"test:bundle-size:update-baseline": "npm run build && node scripts/check-bundle-size.js --write-baseline",
"test:e2e": "npm run build && npx playwright test",
"test:e2e:headed": "npm run build && npx playwright test --headed",
"test:integration": "node --import tsx/esm tests/integration/choice-detection.test.ts",
"test:all": "npm run test && npm run test:e2e",
"postinstall": "npx patch-package && npx @electron/rebuild -w node-pty && node -e \"if(process.platform==='darwin'){require('child_process').execSync('codesign --force --deep --sign - --entitlements build/entitlements.mac.plist node_modules/electron/dist/Electron.app',{stdio:'inherit'})}\"",
"rebuild-pty": "npx @electron/rebuild -f -w node-pty",
"prebuild-info": "node scripts/build-info.js",
"clean": "node -e \"const fs=require('fs');['out','release'].forEach(d=>{try{fs.rmSync(d,{recursive:true,force:true})}catch{}})\"",
"dist": "npm install && node -e \"const platformScriptMap={darwin:'dist:mac',win32:'dist:win',linux:'dist:linux'};const script=platformScriptMap[process.platform];if(!script){throw new Error('Unsupported platform: '+process.platform)}require('child_process').execSync('npm run '+script,{stdio:'inherit'})\"",
"dist:mac": "npm run test && npm run clean && npm run prebuild-info && electron-vite build && electron-builder --mac",
"dist:win": "npm run test && npm run clean && npm run prebuild-info && electron-vite build && electron-builder --win",
"dist:linux": "npm run test && npm run clean && npm run prebuild-info && electron-vite build && electron-builder --linux",
"prepare": "husky",
"format": "prettier --write .",
"format:check": "prettier --check ."
},
"lint-staged": {
"*.{js,jsx,ts,tsx,json,css,md,html}": "prettier --write"
},
"build": {
"appId": "com.cooperlabs.cooper",
"productName": "Cooper",
"directories": {
"output": "release"
},
"files": [
"out/**/*",
"public/**/*"
],
"asarUnpack": [
"node_modules/@github/copilot-*/**/*",
"node_modules/ffmpeg-static/**/*",
"node_modules/node-pty/**/*",
"public/whisper-cpp/**/*",
"public/whisper-model/**/*"
],
"mac": {
"category": "public.app-category.developer-tools",
"icon": "build/icon.icns",
"target": [
{
"target": "dmg",
"arch": [
"arm64"
]
}
],
"sign": "build/sign.js",
"hardenedRuntime": true,
"gatekeeperAssess": false,
"notarize": false,
"entitlements": "build/entitlements.mac.plist",
"entitlementsInherit": "build/entitlements.mac.plist",
"extendInfo": {
"NSMicrophoneUsageDescription": "This app needs microphone access for voice input and speech-to-text features."
}
},
"dmg": {
"artifactName": "${productName}-${version}-mac-${arch}.${ext}",
"backgroundColor": "#ffffff",
"contents": [
{
"x": 130,
"y": 220
},
{
"x": 410,
"y": 220,
"type": "link",
"path": "/Applications"
}
]
},
"win": {
"target": [
{
"target": "nsis",
"arch": [
"x64"
]
}
],
"icon": "build/icon.ico"
},
"nsis": {
"oneClick": false,
"allowToChangeInstallationDirectory": true,
"artifactName": "${productName}-${version}-win-${arch}-Setup.${ext}",
"installerHeader": "build/icon.ico"
},
"linux": {
"target": [
{
"target": "AppImage",
"arch": [
"x64"
]
},
{
"target": "deb",
"arch": [
"x64"
]
}
],
"category": "Development",
"icon": "build/icon.png",
"artifactName": "${productName}-${version}-linux-${arch}.${ext}"
}
},
"dependencies": {
"@github/copilot-sdk": "^0.2.2",
"@xterm/addon-fit": "^0.11.0",
"@xterm/xterm": "^6.0.0",
"electron-log": "^5.4.3",
"electron-store": "^11.0.0",
"ffmpeg-static": "^5.3.0",
"gray-matter": "^4.0.3",
"js-yaml": "^4.1.1",
"node-pty": "^1.1.0",
"playwright": "^1.58.0",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"react-markdown": "^10.1.0",
"remark-gfm": "^4.0.1",
"unzipper": "^0.12.3",
"vosk-koffi": "^1.1.1",
"zod": "^4.3.6"
},
"devDependencies": {
"@electron-toolkit/preload": "^3.0.0",
"@electron-toolkit/utils": "^3.0.0",
"@electron/rebuild": "^4.0.2",
"@playwright/test": "^1.58.0",
"@testing-library/jest-dom": "^6.9.1",
"@testing-library/react": "^16.3.2",
"@testing-library/user-event": "^14.6.1",
"@types/js-yaml": "^4.0.9",
"@types/node": "^20.10.0",
"@types/react": "^18.2.0",
"@types/react-dom": "^18.2.0",
"@vitejs/plugin-react": "^4.2.0",
"autoprefixer": "^10.4.0",
"electron": "^28.1.0",
"electron-builder": "^26.4.0",
"electron-vite": "^5.0.0",
"husky": "^9.1.7",
"jsdom": "^28.1.0",
"lint-staged": "^16.2.7",
"patch-package": "^8.0.1",
"postcss": "^8.4.0",
"prettier": "^3.8.1",
"tailwindcss": "^3.4.0",
"tsx": "^4.21.0",
"typescript": "^5.3.0",
"vite": "^7.3.1",
"vitest": "^4.0.18"
},
"engines": {
"node": ">=22.12.0"
}
}