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
138 lines (138 loc) · 3.7 KB
/
Copy pathpackage.json
File metadata and controls
138 lines (138 loc) · 3.7 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
{
"name": "hanako",
"version": "0.49.1",
"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:renderer && node scripts/launch.js electron",
"start:dev": "node scripts/launch.js electron-dev",
"start:vite": "node scripts/launch.js electron-vite",
"dev:renderer": "vite --config vite.config.ts",
"build:renderer": "vite build --config vite.config.ts",
"typecheck": "tsc --noEmit",
"cli": "node scripts/launch.js cli",
"server": "node scripts/launch.js server",
"rebuild": "electron-rebuild -f -w better-sqlite3",
"pack": "npm run build:renderer && electron-builder --dir",
"dist": "npm run build:renderer && electron-builder --mac dmg",
"dist:win": "npm run build:renderer && electron-builder --win nsis",
"test": "vitest run",
"test:watch": "vitest",
"postinstall": "electron-rebuild -f -w better-sqlite3"
},
"dependencies": {
"@codemirror/lang-markdown": "^6.5.0",
"@codemirror/language-data": "^6.5.2",
"@fastify/websocket": "^11.0.0",
"@larksuiteoapi/node-sdk": "^1.59.0",
"@mariozechner/pi-coding-agent": "^0.56.3",
"@sinclair/typebox": "^0.34.0",
"@traptitech/markdown-it-katex": "^3.6.0",
"better-sqlite3": "^12.6.2",
"codemirror": "^6.0.2",
"duck-duck-scrape": "^2.2.7",
"exceljs": "^4.4.0",
"fastify": "^5.2.0",
"js-yaml": "^4.1.0",
"katex": "^0.16.39",
"mammoth": "^1.11.0",
"markdown-it": "^14.1.1",
"node-telegram-bot-api": "^0.67.0",
"react": "^19.2.4",
"react-dom": "^19.2.4",
"ws": "^8.18.0",
"zustand": "^5.0.11"
},
"overrides": {
"form-data": "^4.0.0",
"qs": "^6.14.1",
"tough-cookie": "^4.1.3"
},
"devDependencies": {
"@electron/rebuild": "^4.0.3",
"@types/react": "^19.2.14",
"@types/react-dom": "^19.2.3",
"@vitejs/plugin-react": "^5.1.4",
"electron": "^38.8.4",
"electron-builder": "^26.8.1",
"typescript": "^5.9.3",
"vite": "^7.3.1",
"vitest": "^4.0.18"
},
"build": {
"appId": "com.hanako.app",
"productName": "Hanako",
"asar": false,
"afterPack": "./scripts/fix-modules.cjs",
"files": [
"core/**",
"hub/**",
"lib/**",
"server/**",
"desktop/**",
"skills2set/**",
"index.js",
"package.json",
"!**/node_modules/*/{CHANGELOG.md,README.md,readme.md,LICENSE,license,test,tests,__tests__,docs,doc,.github}"
],
"mac": {
"target": "dmg",
"category": "public.app-category.productivity",
"icon": "desktop/src/icon.icns",
"artifactName": "${productName}-${version}-macOS-${arch}.${ext}"
},
"dmg": {
"title": "Hanako",
"contents": [
{
"x": 120,
"y": 220
},
{
"x": 390,
"y": 220,
"type": "link",
"path": "/Applications"
},
{
"x": 270,
"y": 220,
"type": "file",
"path": "desktop/如果提示已损坏请看这里.txt"
}
]
},
"win": {
"target": "nsis",
"icon": "desktop/src/icon.png",
"artifactName": "${productName}-${version}-Windows-${arch}.${ext}",
"requestedExecutionLevel": "asInvoker",
"extraResources": [
{
"from": "vendor/git-portable",
"to": "git"
}
]
},
"nsis": {
"oneClick": false,
"allowToChangeInstallationDirectory": true
}
}
}