xiaozhi-esp32-server/main/manager-web
lapy cd83c805f5 chore(westernization): add rebase-verification tooling and docs
The October rebase silently shipped runtime-breaking merge artifacts that
neither the web build nor the test suites caught (blank models page,
ReferenceError on role open, broken provider management). Make every one
of those failure classes fail loudly and early:

- manager-web/scripts/integrity-check.js: AST pass (acorn + eslint-scope)
  for undefined identifiers (lost imports, dropped function params and
  const bindings), vue-template-compiler pass for mismatched tags, and a
  duplicate-options-key pass (double 'computed:' clobbering). Negative-
  tested against reproductions of all three shipped bugs.
- manager-web/scripts/check-i18n.js rewritten for the fork: base locale
  is en, locales discovered dynamically, plus a pass that fails when any
  $t('a.b') key referenced in src/ has no definition (upstream rebases
  kept adding views with keys never added downstream).
- scripts/westernization_rebase_check.sh: one-command gate chaining audit,
  integrity, i18n parity, snapshot/contract/unit tests and the production
  build; heavier Java/Python suites run only when toolchains exist.
- scripts/translate_han_llm.py: vendored from the one-off /tmp tool used
  for the translation sweep; repo-relative paths, endpoint/model via
  TRANSLATE_API/TRANSLATE_MODEL env, cache gitignored.
- CI: the Vue job now runs integrity-check, check:i18n, test:snapshot and
  test:contract before test:unit; new nightly Upstream Sync Check workflow
  dry-merges upstream/main into a throwaway branch and runs the same web
  gates so a breaking incoming merge alerts before a human sync.
- westernization.md: tooling table, five known merge-corruption failure
  classes with symptoms and repair strategy, translator usage, updated
  rebase order and good-outcome checklist.

acorn and eslint-scope are now explicit devDependencies.
2026-10-13 11:35:11 +01:00
..
public fix(web): generator bundle resolves its route under the console mount path 2026-10-12 14:25:20 +01:00
scripts chore(westernization): add rebase-verification tooling and docs 2026-10-13 11:35:11 +01:00
src fix(i18n): repair locale drift found by rewritten checker 2026-10-13 11:34:51 +01:00
tests 加日期格式化工具测试,24 例 2026-09-02 22:24:36 +08:00
.env feat(manager-web): westernize admin UI, i18n, generator bundle, and plugin harness 2026-04-25 17:05:13 +01:00
.env.development feat(manager-web): westernize admin UI, i18n, generator bundle, and plugin harness 2026-04-25 17:05:13 +01:00
.env.production feat(manager-web): westernize admin UI, i18n, generator bundle, and plugin harness 2026-04-25 17:05:13 +01:00
.npmrc perf(构建): ⚡ 优化构建时间:首次构建提升 50%,二次构建提升 30% 2025-04-01 00:38:32 +08:00
babel.config.js feat(manager-web): westernize admin UI, i18n, generator bundle, and plugin harness 2026-04-25 17:05:13 +01:00
jest.config.js feat(manager-web): westernize admin UI, i18n, generator bundle, and plugin harness 2026-04-25 17:05:13 +01:00
jsconfig.json update:格式化代码 2025-04-05 20:19:28 +08:00
package-lock.json chore(westernization): add rebase-verification tooling and docs 2026-10-13 11:35:11 +01:00
package.json chore(westernization): add rebase-verification tooling and docs 2026-10-13 11:35:11 +01:00
pnpm-lock.yaml feat(manager-web): westernize admin UI, i18n, generator bundle, and plugin harness 2026-04-25 17:05:13 +01:00
README.md feat(manager-web): westernize admin UI, i18n, generator bundle, and plugin harness 2026-04-25 17:05:13 +01:00
vitest.config.js 加 featureManager 单元测试,7 例 2026-09-02 22:24:36 +08:00
vue.config.js chore(westernization): translate remaining Han text across code, UI and docs 2026-10-11 17:58:15 +01:00

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

Customize configuration

See Configuration Reference.