xiaozhi-client 2.3.0 → 2.3.1-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/backend/Logger.js +2 -2
- package/dist/backend/WebServer.js +3 -3
- package/dist/backend/WebServerLauncher.js +3 -3
- package/dist/cli/index.js +45 -62
- package/dist/cli/index.js.map +1 -1
- package/package.json +2 -2
- package/dist/WebServerLauncher.js +0 -2
- package/dist/backend/package.json +0 -187
- /package/dist/{backend → cli}/templates/default/package.json +0 -0
- /package/dist/{backend → cli}/templates/default/prompts/default.md +0 -0
- /package/dist/{backend → cli}/templates/default/xiaozhi.config.json +0 -0
- /package/dist/{backend → cli}/templates/hello-world/package.json +0 -0
- /package/dist/{backend → cli}/templates/hello-world/prompts/default.md +0 -0
- /package/dist/{backend → cli}/templates/hello-world/xiaozhi.config.json +0 -0
- /package/dist/{backend → cli}/templates/json5/package.json +0 -0
- /package/dist/{backend → cli}/templates/json5/prompts/default.md +0 -0
- /package/dist/{backend → cli}/templates/json5/xiaozhi.config.json5 +0 -0
- /package/dist/{backend → cli}/templates/jsonc/package.json +0 -0
- /package/dist/{backend → cli}/templates/jsonc/prompts/default.md +0 -0
- /package/dist/{backend → cli}/templates/jsonc/xiaozhi.config.jsonc +0 -0
- /package/dist/{backend → cli}/templates/modelscope/prompts/default.md +0 -0
- /package/dist/{backend → cli}/templates/modelscope/xiaozhi.config.json +0 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "xiaozhi-client",
|
|
3
|
-
"version": "2.3.
|
|
3
|
+
"version": "2.3.1-beta.1",
|
|
4
4
|
"description": "小智 AI 客户端 命令行工具",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -99,7 +99,7 @@
|
|
|
99
99
|
]
|
|
100
100
|
},
|
|
101
101
|
"scripts": {
|
|
102
|
-
"build": "pnpm run clean:dist && pnpm run build:server && pnpm run build:cli && pnpm run build:web",
|
|
102
|
+
"build": "pnpm run clean:dist && pnpm run build:server && pnpm run build:cli && node -e \"import('node:fs').then(({ cpSync }) => cpSync('templates', 'dist/cli/templates', { recursive: true }))\" && pnpm run build:web",
|
|
103
103
|
"build:server": "cd src/server && tsup",
|
|
104
104
|
"build:cli": "cd src/cli && tsup",
|
|
105
105
|
"build:web": "cd src/web && vite build",
|
|
@@ -1,187 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "xiaozhi-client",
|
|
3
|
-
"version": "2.3.0",
|
|
4
|
-
"description": "小智 AI 客户端 命令行工具",
|
|
5
|
-
"repository": {
|
|
6
|
-
"type": "git",
|
|
7
|
-
"url": "https://github.com/shenjingnan/xiaozhi-client.git"
|
|
8
|
-
},
|
|
9
|
-
"author": "shenjingnan <sjn.code@gmail.com>",
|
|
10
|
-
"license": "MIT",
|
|
11
|
-
"engines": {
|
|
12
|
-
"node": ">=22.0.0"
|
|
13
|
-
},
|
|
14
|
-
"keywords": [
|
|
15
|
-
"xiaozhi",
|
|
16
|
-
"mcp",
|
|
17
|
-
"websocket",
|
|
18
|
-
"ai"
|
|
19
|
-
],
|
|
20
|
-
"type": "module",
|
|
21
|
-
"main": "dist/cli/index.js",
|
|
22
|
-
"files": [
|
|
23
|
-
"dist",
|
|
24
|
-
"templates",
|
|
25
|
-
"README.md",
|
|
26
|
-
"LICENSE"
|
|
27
|
-
],
|
|
28
|
-
"publishConfig": {
|
|
29
|
-
"access": "public",
|
|
30
|
-
"registry": "https://registry.npmjs.org"
|
|
31
|
-
},
|
|
32
|
-
"bin": {
|
|
33
|
-
"xiaozhi": "dist/cli/index.js",
|
|
34
|
-
"xiaozhi-client": "dist/cli/index.js"
|
|
35
|
-
},
|
|
36
|
-
"scripts": {
|
|
37
|
-
"build": "pnpm run clean:dist && pnpm run build:server && pnpm run build:cli && pnpm run build:web",
|
|
38
|
-
"build:server": "cd src/server && tsup",
|
|
39
|
-
"build:cli": "cd src/cli && tsup",
|
|
40
|
-
"build:web": "cd src/web && vite build",
|
|
41
|
-
"dev": "concurrently \"cd src/server && tsup --watch\" \"cd src/cli && tsup --watch\" \"cd src/web & vite\" --prefix \"[{name}]\" --names \"SERVER,CLI,WEB\"",
|
|
42
|
-
"dev:cli": "cd src/cli && tsup --watch",
|
|
43
|
-
"dev:backend": "cd src/server && tsup --watch",
|
|
44
|
-
"dev:frontend": "cd src/web & vite",
|
|
45
|
-
"dev:docs": "cd docs && npm run dev",
|
|
46
|
-
"test": "vitest run --config src/vitest.config.ts",
|
|
47
|
-
"test:coverage": "vitest run --coverage --config src/vitest.config.ts",
|
|
48
|
-
"lint": "biome check src/",
|
|
49
|
-
"lint:fix": "biome check --write src/",
|
|
50
|
-
"typecheck": "tsc --noEmit",
|
|
51
|
-
"check:all": "pnpm run lint && pnpm run typecheck && pnpm run spellcheck && pnpm run check:cpd",
|
|
52
|
-
"spellcheck": "cspell .",
|
|
53
|
-
"check:cpd": "jscpd src/",
|
|
54
|
-
"release": "release-it",
|
|
55
|
-
"release:beta": "release-it --preRelease=beta --ci",
|
|
56
|
-
"release:dry": "release-it --dry-run --ci",
|
|
57
|
-
"release:patch": "release-it patch --ci",
|
|
58
|
-
"release:minor": "release-it minor --ci",
|
|
59
|
-
"release:major": "release-it major --ci",
|
|
60
|
-
"clean:dist": "rimraf dist || rm -rf dist",
|
|
61
|
-
"link": "pnpm link --global",
|
|
62
|
-
"unlink": "pnpm unlink --global",
|
|
63
|
-
"docker:update-version": "node docker/scripts/update-version.js",
|
|
64
|
-
"prepare": "husky"
|
|
65
|
-
},
|
|
66
|
-
"dependencies": {
|
|
67
|
-
"@coze/api": "^1.3.9",
|
|
68
|
-
"@discordjs/opus": "^0.10.0",
|
|
69
|
-
"@hono/node-server": "^1.19.10",
|
|
70
|
-
"@modelcontextprotocol/sdk": "^1.26.0",
|
|
71
|
-
"ajv": "^8.18.0",
|
|
72
|
-
"chalk": "^5.6.0",
|
|
73
|
-
"cli-table3": "^0.6.5",
|
|
74
|
-
"commander": "^14.0.0",
|
|
75
|
-
"comment-json": "^4.2.5",
|
|
76
|
-
"consola": "^3.4.2",
|
|
77
|
-
"dayjs": "^1.11.13",
|
|
78
|
-
"dotenv": "^17.2.1",
|
|
79
|
-
"eventsource": "^4.0.0",
|
|
80
|
-
"express": "^5.1.0",
|
|
81
|
-
"hono": "^4.12.7",
|
|
82
|
-
"node-cache": "^5.1.2",
|
|
83
|
-
"openai": "^6.24.0",
|
|
84
|
-
"ora": "^8.2.0",
|
|
85
|
-
"pino": "^10.3.1",
|
|
86
|
-
"pino-pretty": "^13.1.1",
|
|
87
|
-
"prism-media": "^1.3.5",
|
|
88
|
-
"univoice": "^0.10.0",
|
|
89
|
-
"ws": "^8.14.2",
|
|
90
|
-
"zod": "^4.3.6"
|
|
91
|
-
},
|
|
92
|
-
"devDependencies": {
|
|
93
|
-
"@biomejs/biome": "1.9.4",
|
|
94
|
-
"@commitlint/cli": "^20.5.0",
|
|
95
|
-
"@commitlint/config-conventional": "^20.5.0",
|
|
96
|
-
"@release-it/conventional-changelog": "^10.0.6",
|
|
97
|
-
"@types/node": "^24.10.0",
|
|
98
|
-
"@types/semver": "^7.7.1",
|
|
99
|
-
"@vitejs/plugin-react": "^5.1.2",
|
|
100
|
-
"@vitest/coverage-v8": "^3.2.4",
|
|
101
|
-
"concurrently": "^9.2.1",
|
|
102
|
-
"cross-env": "^10.0.0",
|
|
103
|
-
"cspell": "^9.2.1",
|
|
104
|
-
"esbuild": "^0.27.3",
|
|
105
|
-
"execa": "^9.6.0",
|
|
106
|
-
"glob": "^11.0.3",
|
|
107
|
-
"husky": "^9.1.7",
|
|
108
|
-
"jscpd": "^4.0.5",
|
|
109
|
-
"jsdom": "^29.0.2",
|
|
110
|
-
"lint-staged": "^16.4.0",
|
|
111
|
-
"release-it": "^19.0.0",
|
|
112
|
-
"rimraf": "^6.1.2",
|
|
113
|
-
"semver": "^7.7.2",
|
|
114
|
-
"ts-node": "^10.9.2",
|
|
115
|
-
"tsup": "^8.5.0",
|
|
116
|
-
"tsx": "^4.20.5",
|
|
117
|
-
"typescript": "^5.9.2",
|
|
118
|
-
"vite": "^7.1.11",
|
|
119
|
-
"vite-tsconfig-paths": "^6.1.0",
|
|
120
|
-
"vitest": "^3.2.4"
|
|
121
|
-
},
|
|
122
|
-
"pnpm": {
|
|
123
|
-
"overrides": {
|
|
124
|
-
"@isaacs/brace-expansion": ">=5.0.1",
|
|
125
|
-
"form-data": "^4.0.4",
|
|
126
|
-
"braces": ">=3.0.3",
|
|
127
|
-
"micromatch": ">=4.0.8",
|
|
128
|
-
"axios": ">=1.13.5",
|
|
129
|
-
"@conventional-changelog/git-client": ">=2.0.0",
|
|
130
|
-
"hono@>=1.1.0 <4.10.3": ">=4.10.3",
|
|
131
|
-
"js-yaml@<4.1.1": ">=4.1.1",
|
|
132
|
-
"esbuild@<=0.24.2": ">=0.25.0",
|
|
133
|
-
"glob@>=10.2.0 <10.5.0": ">=10.5.0",
|
|
134
|
-
"glob@>=11.0.0 <11.1.0": ">=11.1.0",
|
|
135
|
-
"body-parser@>=2.2.0 <2.2.1": ">=2.2.1",
|
|
136
|
-
"mdast-util-to-hast@>=13.0.0 <13.2.1": ">=13.2.1",
|
|
137
|
-
"lodash-es@>=4.0.0 <=4.17.22": ">=4.17.23",
|
|
138
|
-
"@modelcontextprotocol/sdk@>=1.10.0 <=1.25.3": ">=1.26.0",
|
|
139
|
-
"qs@>=6.7.0 <=6.14.1": ">=6.14.2",
|
|
140
|
-
"tar@<7.0.0": ">=7.0.0",
|
|
141
|
-
"minimatch@<11.0.0": ">=10.2.3",
|
|
142
|
-
"rollup@<5.0.0": ">=4.59.0",
|
|
143
|
-
"express-rate-limit@<9.0.0": ">=8.2.2",
|
|
144
|
-
"dompurify@<4.0.0": ">=3.3.2",
|
|
145
|
-
"immutable@<6.0.0": ">=5.1.5",
|
|
146
|
-
"flatted@<3.4.0": ">=3.4.0",
|
|
147
|
-
"next@>=16.0.0-beta.0 <16.1.7": ">=16.1.7",
|
|
148
|
-
"next@>=16.0.1 <16.1.7": ">=16.1.7",
|
|
149
|
-
"flatted@<=3.4.1": ">=3.4.2",
|
|
150
|
-
"smol-toml@<1.6.1": ">=1.6.1",
|
|
151
|
-
"brace-expansion@>=4.0.0 <5.0.5": ">=5.0.5",
|
|
152
|
-
"picomatch@<2.3.2": ">=2.3.2",
|
|
153
|
-
"picomatch@>=4.0.0 <4.0.4": ">=4.0.4",
|
|
154
|
-
"yaml@>=1.0.0 <1.10.3": ">=1.10.3",
|
|
155
|
-
"yaml@>=2.0.0 <2.8.3": ">=2.8.3",
|
|
156
|
-
"path-to-regexp@>=8.0.0 <8.4.0": ">=8.4.0",
|
|
157
|
-
"happy-dom@<20.8.9": ">=20.8.9",
|
|
158
|
-
"happy-dom@>=15.10.0 <=20.8.7": ">=20.8.8",
|
|
159
|
-
"lodash-es@>=4.0.0 <=4.17.23": ">=4.18.0",
|
|
160
|
-
"lodash@>=4.0.0 <=4.17.23": ">=4.18.0",
|
|
161
|
-
"lodash-es@<=4.17.23": ">=4.18.0",
|
|
162
|
-
"lodash@<=4.17.23": ">=4.18.0",
|
|
163
|
-
"@xmldom/xmldom@>=0.9.0 <0.9.9": ">=0.9.9",
|
|
164
|
-
"vite@>=7.0.0 <=7.3.1": ">=7.3.2",
|
|
165
|
-
"vite@>=7.1.0 <=7.3.1": ">=7.3.2",
|
|
166
|
-
"hono@<4.12.12": ">=4.12.12",
|
|
167
|
-
"hono@>=4.0.0 <=4.12.11": ">=4.12.12",
|
|
168
|
-
"@hono/node-server@<1.19.13": ">=1.19.13",
|
|
169
|
-
"axios@<1.15.0": ">=1.15.0",
|
|
170
|
-
"next@>=16.0.0-beta.0 <16.2.3": ">=16.2.3",
|
|
171
|
-
"mathjs@<15.2.0": ">=15.2.0",
|
|
172
|
-
"picomatch": ">=4.0.4",
|
|
173
|
-
"yaml": ">=2.8.3",
|
|
174
|
-
"cosmiconfig": ">=7.1.0"
|
|
175
|
-
}
|
|
176
|
-
},
|
|
177
|
-
"lint-staged": {
|
|
178
|
-
"*.{ts,tsx,json}": [
|
|
179
|
-
"biome check --write --no-errors-on-unmatched",
|
|
180
|
-
"./scripts/typecheck-staged.sh"
|
|
181
|
-
],
|
|
182
|
-
"*.{md,mdx,sh}": [
|
|
183
|
-
"cspell --no-must-find-files --no-progress"
|
|
184
|
-
]
|
|
185
|
-
},
|
|
186
|
-
"packageManager": "pnpm@10.13.1"
|
|
187
|
-
}
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|