forked from liliMozi/openhanako
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpackage.json
More file actions
200 lines (200 loc) · 6.34 KB
/
Copy pathpackage.json
File metadata and controls
200 lines (200 loc) · 6.34 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
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
{
"name": "hanako",
"version": "0.130.7",
"type": "module",
"description": "Hanako - a personal AI agent with memory and soul",
"license": "Apache-2.0",
"author": {
"name": "liliMozi"
},
"keywords": [
"ai-agent",
"electron",
"memory",
"multi-platform",
"telegram",
"personal-assistant"
],
"main": "desktop/main.cjs",
"engines": {
"node": ">=20"
},
"scripts": {
"start": "npm run build:preload && npm run build:renderer && npm run build:theme && node scripts/launch.js electron",
"start:dev": "npm run build:preload && npm run build:renderer && npm run build:theme && node scripts/launch.js electron-dev",
"start:vite": "npm run build:preload && node scripts/launch.js electron-vite",
"dev:renderer": "vite --config vite.config.ts",
"build:renderer": "vite build --config vite.config.ts",
"build:theme": "vite build --config vite.config.theme.js",
"build:preload": "vite build --config vite.config.preload.js",
"typecheck": "tsc --noEmit",
"cli": "node scripts/launch.js cli",
"server": "node scripts/launch.js server",
"build:main": "vite build --config vite.config.main.js",
"build:computer-use-helper": "node scripts/build-computer-use-helper.mjs",
"build:client": "npm run build:main && npm run build:preload && npm run build:renderer && npm run build:theme",
"generate:windows-icon": "node scripts/generate-windows-icon.cjs",
"pack": "npm run build:computer-use-helper && npm run build:server && npm run build:client && electron-builder --dir",
"install:local": "npm run pack && rm -rf /Applications/Hanako.app && cp -R dist/mac-arm64/Hanako.app /Applications/ && printf 'provider: github\\nowner: liliMozi\\nrepo: openhanako\\n' > /Applications/Hanako.app/Contents/Resources/app-update.yml && node scripts/sign-local.cjs",
"dist": "npm run build:computer-use-helper && npm run build:server && npm run build:client && electron-builder --mac dmg",
"dist:win": "npm run build:computer-use-helper && npm run generate:windows-icon && npm run build:server && npm run build:client && electron-builder --win nsis",
"test": "vitest run",
"build:server": "node scripts/build-server.mjs",
"lint": "eslint desktop/src/ server/",
"test:watch": "vitest",
"postinstall": "node scripts/patch-pi-sdk.cjs"
},
"dependencies": {
"@codemirror/lang-markdown": "^6.5.0",
"@codemirror/language-data": "^6.5.2",
"@floating-ui/dom": "^1.7.6",
"@hono/node-server": "^1.19.11",
"@hono/node-ws": "^1.3.0",
"@larksuiteoapi/node-sdk": "^1.59.0",
"@mariozechner/pi-ai": "0.70.5",
"@mariozechner/pi-coding-agent": "0.70.2",
"@tiptap/core": "^3.22.0",
"@tiptap/extension-placeholder": "^3.22.0",
"@tiptap/pm": "^3.22.0",
"@tiptap/react": "^3.22.0",
"@tiptap/starter-kit": "^3.22.0",
"@traptitech/markdown-it-katex": "^3.6.0",
"better-sqlite3": "^12.6.2",
"chokidar": "^5.0.0",
"codemirror": "^6.0.2",
"duck-duck-scrape": "^2.2.7",
"electron-updater": "^6.8.3",
"exceljs": "^4.4.0",
"extract-zip": "^2.0.1",
"hono": "^4.12.9",
"jsdom": "^29.0.2",
"js-yaml": "^4.1.0",
"katex": "^0.16.39",
"mammoth": "^1.11.0",
"markdown-it": "^14.1.1",
"markdown-it-task-lists": "^2.1.1",
"node-telegram-bot-api": "^0.67.0",
"qrcode": "^1.5.4",
"react": "^19.2.4",
"react-dom": "^19.2.4",
"typebox": "1.1.34",
"ws": "^8.18.0",
"zustand": "^5.0.11"
},
"overrides": {
"form-data": "^4.0.0",
"qs": "^6.14.1",
"tough-cookie": "^4.1.3"
},
"devDependencies": {
"@eslint/js": "^9.39.4",
"@testing-library/jest-dom": "^6.9.1",
"@testing-library/react": "^16.3.2",
"@types/markdown-it": "^14.1.2",
"@types/react": "^19.2.14",
"@types/react-dom": "^19.2.3",
"@vercel/nft": "^1.5.0",
"@vitejs/plugin-react": "^5.1.4",
"electron": "^38.8.4",
"electron-builder": "^26.8.1",
"esbuild": "^0.27.4",
"eslint": "^9.39.4",
"eslint-plugin-react-hooks": "^5.2.0",
"patch-package": "^8.0.1",
"pngjs": "^5.0.0",
"typescript": "^5.9.3",
"typescript-eslint": "^8.57.2",
"vite": "^7.3.1",
"vitest": "^4.0.18"
},
"build": {
"appId": "com.hanako.app",
"productName": "Hanako",
"asar": true,
"afterPack": "./scripts/fix-modules.cjs",
"extraMetadata": {
"main": "desktop/main.bundle.cjs"
},
"files": [
"desktop/main.bundle.cjs",
"desktop/preload.bundle.cjs",
"desktop/dist-renderer/**",
"desktop/src/**/*.{html,icns,ico,png,svg,json}",
"desktop/src/assets/**",
"package.json",
"!**/node_modules/**",
"node_modules/ws/**"
],
"extraResources": [
{
"from": "dist-server/${os}-${arch}/",
"to": "server/"
},
{
"from": "desktop/src/screenshot-themes/",
"to": "screenshot-themes/"
}
],
"afterSign": "./scripts/notarize.cjs",
"mac": {
"target": [
"dmg",
"zip"
],
"category": "public.app-category.productivity",
"icon": "desktop/src/icon.icns",
"artifactName": "${productName}-${version}-macOS-${arch}.${ext}",
"hardenedRuntime": true,
"gatekeeperAssess": false,
"entitlements": "desktop/entitlements.mac.plist",
"entitlementsInherit": "desktop/entitlements.mac.plist",
"extraResources": [
{
"from": "dist-computer-use/mac-${arch}/",
"to": "computer-use/macos/"
}
]
},
"dmg": {
"title": "Hanako",
"contents": [
{
"x": 180,
"y": 220
},
{
"x": 420,
"y": 220,
"type": "link",
"path": "/Applications"
}
]
},
"publish": [
{
"provider": "github",
"owner": "liliMozi",
"repo": "openhanako"
}
],
"win": {
"target": "nsis",
"icon": "desktop/src/icon.ico",
"artifactName": "${productName}-${version}-Windows-${arch}.${ext}",
"requestedExecutionLevel": "asInvoker",
"extraResources": [
{
"from": "vendor/git-portable",
"to": "git"
}
]
},
"nsis": {
"oneClick": false,
"allowToChangeInstallationDirectory": false,
"include": "build/installer.nsh",
"installerIcon": "desktop/src/icon.ico",
"uninstallerIcon": "desktop/src/icon.ico"
}
}
}