mirror of
https://github.com/xinnan-tech/xiaozhi-esp32-server.git
synced 2026-11-27 04:49:47 +01:00
The rebase-merge silently dropped parameter lists and const bindings from several API methods, so calling them threw ReferenceError at runtime (e.g. 'request is not defined' when opening a role, which broke tag/plugin loading): - agent.js: restore getAgentSnapshots/getAgentSnapshot/restoreAgentSnapshot/ deleteAgentSnapshot (deleted by the merge but still used by AgentSnapshotDialog) and repair getAgentTags signature + request binding - model.js: restore onTerminalFailure/retryCount/retryStartedAt params and const request bindings on getModelNames/getLlmModelCodeList/getModelVoices; restore getRAGModels used by KnowledgeBaseDialog - device.js: restore dropped failCallback params on five methods - admin.js: restore failCallback param on addParam (guarded call) - register/retrievePassword: log the response object instead of the nonexistent 'error' identifier in the captcha else-branch Verified with an AST no-undef scan (acorn+eslint-scope) across all .vue/.js sources and an Api.* cross-reference against module exports. agentSnapshotApi regression tests pass (7/7). |
||
|---|---|---|
| .. | ||
| public | ||
| scripts | ||
| src | ||
| tests | ||
| .env | ||
| .env.development | ||
| .env.production | ||
| .npmrc | ||
| babel.config.js | ||
| jest.config.js | ||
| jsconfig.json | ||
| package-lock.json | ||
| package.json | ||
| pnpm-lock.yaml | ||
| README.md | ||
| vitest.config.js | ||
| vue.config.js | ||
This document is a development document. If you need to deploy Xiaozhi server, click here to view deployment tutorial
xiaozhi
Project setup
For development, use a code editor and select the manager-web folder as the project directory when importing the project
npm install
Compiles and hot-reloads for development
npm run serve
Compiles and minifies for production
npm run build