Repository navigation
Expand file tree
/
Copy pathpackage.json
More file actions
180 lines (180 loc) · 6.13 KB
/
Copy pathpackage.json
File metadata and controls
180 lines (180 loc) · 6.13 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
{
"name": "persona",
"version": "0.1.0-beta.0",
"description": "A realtime character presence for desktop voice experiences.",
"author": {
"name": "xikhar",
"email": "xikhar@users.noreply.github.com"
},
"desktopName": "persona.desktop",
"private": true,
"license": "MIT",
"homepage": "https://github.com/xikhar/persona#readme",
"repository": {
"type": "git",
"url": "git+https://github.com/xikhar/persona.git"
},
"bugs": {
"url": "https://github.com/xikhar/persona/issues"
},
"engines": {
"node": ">=24"
},
"allowScripts": {
"@swc/core@1.15.46": true,
"electron@39.8.10": true,
"electron-winstaller@5.4.0": true,
"esbuild@0.28.1": true,
"fsevents@2.3.3": true
},
"main": "electron/main.cjs",
"type": "module",
"scripts": {
"dev": "npm run clean:runtime && concurrently -k -n renderer,runtime,electron \"vite\" \"tsc -p tsconfig.runtime.json --watch --preserveWatchOutput\" \"wait-on http://127.0.0.1:5173 electron/main.cjs && cross-env VITE_DEV_SERVER_URL=http://127.0.0.1:5173 nodemon --quiet --watch electron --ext cjs --delay 200ms --exec electron .\"",
"build": "npm run build:runtime && tsc -b && vite build",
"clean:runtime": "node scripts/clean-runtime.mts",
"build:runtime": "npm run clean:runtime && tsc -p tsconfig.runtime.json",
"build:runtime:test": "npm run clean:runtime && tsc -p tsconfig.runtime.test.json",
"test": "npm run test:node && npm run test:renderer",
"test:node": "npm run build:runtime:test && node --test electron/*.test.cjs scripts/*.test.cjs",
"test:renderer": "vitest run",
"lint": "eslint .",
"start": "npm run build:runtime && electron .",
"demo": "npm run build && electron .",
"assets:check": "npm run build:runtime && node scripts/check-assets.cjs",
"assets:release": "npm run build:runtime && node scripts/check-assets.cjs --release",
"native:build": "npm run build:runtime && node scripts/build-native.cjs",
"native:test": "npm run build:runtime && node scripts/test-native.cjs",
"release:check-tag": "npm run build:runtime && node scripts/check-release-tag.cjs",
"release:checksums": "npm run build:runtime && node scripts/write-checksums.cjs",
"audit:production": "npm audit --omit=dev --audit-level=high",
"check": "npm run lint && npm test && npm run assets:check && npm run audit:production && npm run build",
"dist:linux": "npm run build && node scripts/build-linux.cjs",
"dist:appimage": "npm run build && electron-builder --linux AppImage --publish never",
"dist:windows": "npm run native:build && npm run native:test && npm run build && electron-builder --win nsis --publish never",
"dist:mac": "npm run native:build && npm run native:test && npm run build && electron-builder --mac dmg zip --publish never"
},
"devDependencies": {
"@eslint/js": "^10.0.1",
"@pixiv/three-vrm": "^3.4.4",
"@pixiv/three-vrm-animation": "^3.4.4",
"@pixiv/types-vrmc-vrm-animation-1.0": "^3.5.5",
"@pmndrs/assets": "^1.7.0",
"@react-three/drei": "^10.7.7",
"@react-three/fiber": "^9.4.2",
"@stylistic/eslint-plugin": "^5.10.0",
"@types/node": "^22.0.0",
"@types/react": "^19.2.5",
"@types/react-dom": "^19.2.3",
"@types/three": "^0.182.0",
"@vitejs/plugin-react-swc": "^4.2.2",
"concurrently": "^9.2.1",
"cross-env": "^10.1.0",
"electron": "^39.2.7",
"electron-builder": "^26.15.7",
"eslint": "^10.8.0",
"eslint-plugin-react-hooks": "^7.0.1",
"eslint-plugin-react-refresh": "^0.5.3",
"globals": "^17.8.0",
"nodemon": "^3.1.14",
"react": "^19.2.0",
"react-dom": "^19.2.0",
"three": "^0.182.0",
"typescript": "~5.9.3",
"typescript-eslint": "^8.46.4",
"vite": "^7.2.5",
"vitest": "^4.0.14",
"wait-on": "^9.0.3"
},
"build": {
"appId": "com.xikhar.persona",
"productName": "Persona",
"asar": true,
"directories": {
"output": "release"
},
"protocols": [
{
"name": "Persona",
"schemes": [
"persona"
]
}
],
"files": [
"dist/**/*",
"electron/**/*.cjs",
"!electron/**/*.test.cjs",
"LICENSE",
"package.json"
],
"linux": {
"category": "Utility",
"executableName": "persona",
"icon": "public/assets/avatar.png",
"syncDesktopName": true,
"artifactName": "Persona-${version}-linux-${arch}.${ext}",
"target": [
"AppImage",
"deb"
]
},
"win": {
"target": [
"nsis"
],
"artifactName": "Persona-${version}-windows-${arch}-setup.${ext}",
"icon": "public/assets/avatar.png",
"requestedExecutionLevel": "asInvoker",
"signExts": [
"persona-audio-listener.exe"
],
"extraResources": [
{
"from": "native/bin/win32/persona-audio-listener.exe",
"to": "native/win32/persona-audio-listener.exe"
}
]
},
"nsis": {
"oneClick": false,
"allowToChangeInstallationDirectory": true,
"createDesktopShortcut": true,
"createStartMenuShortcut": true,
"shortcutName": "Persona"
},
"mac": {
"target": [
"dmg",
"zip"
],
"artifactName": "Persona-${version}-macos-${arch}.${ext}",
"category": "public.app-category.utilities",
"icon": "public/assets/avatar.png",
"minimumSystemVersion": "14.2.0",
"hardenedRuntime": true,
"entitlements": "build/entitlements.mac.plist",
"entitlementsInherit": "build/entitlements.mac.plist",
"binaries": [
"Contents/Resources/native/darwin/persona-audio-listener"
],
"extendInfo": {
"NSAudioCaptureUsageDescription": "Persona listens to supported voice-app output levels to animate your character. Audio is processed in memory and is never stored."
},
"extraResources": [
{
"from": "native/bin/darwin/persona-audio-listener",
"to": "native/darwin/persona-audio-listener"
}
]
}
},
"dependencies": {
"@modelcontextprotocol/sdk": "^1.30.0",
"gltf-validator": "2.0.0-dev.3.10",
"zod": "^4.4.3"
},
"overrides": {
"yauzl": "^3.3.1"
}
}