Upstream's edge-tts workaround (msedgeservices 403 fix) now imports
edge_tts.communicate explicitly; the conftest shim only registered the
.exceptions submodule, so 4 tts tests failed after the sync. Same pattern
as the existing opuslib_next submodule shims.
Also widen CI + rebase gate from smoke-only to the full pytest suite and
the unittest-only lifecycle tests (the smoke run masked these failures).
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.
- drop first duplicate 'roleConfig.functionName' in all locales (the
later duplicate won at runtime; the first is dead)
- rename en 'language.ptBR' to 'language.pt_BR' to match the labelKey
used by the language switcher in i18n/index.js (the switcher showed a
raw key for Portuguese)
- drop dead 'language.zhCN/zhTW' labels from en (zh locales are removed
downstream)
- add knowledgeFileUpload pagination/test keys missing in de, pt_BR, vi
Template-compile scan (vue-template-compiler over all .vue files) found
four files with mismatched tags, all fallout from the upstream rebase:
- CustomDialog.vue: the confirm footer button opened with <el-button> and
closed with </CustomButton>, and the options object declared a second
computed: block that clobbered the first (killing effectiveCancelText/
effectiveConfirmText => blank modal buttons). Merge the computed blocks,
restore data(), close the button tag.
- AddWisdomBodyDialog.vue: duplicate legacy body plus a stray </el-dialog>
for a <CustomDialog> root; drop the dead duplicate.
- FirmwareDialog.vue: finished the half-applied el-dialog -> CustomDialog
conversion (confirm/cancel wiring, dialogVisible in data).
- ProviderManagement.vue: the merge interleaved the old el-table markup
with the new CustomTable template, producing a structurally broken page.
Adopt upstream's clean CustomTable version and re-apply the four Han
strings (comments/title/error text).
Also add 4 i18n keys referenced but missing from every locale
(common.noData / addFailure / updateFailure, message.searchFailed) in
en, de, pt_BR and vi.
Verified: 0 template compile errors, 0 missing i18n keys, audit clean.
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).
The component used the shorthand `components: { CustomDialog }` without a
matching import, so the shared webpack chunk threw
`ReferenceError: CustomDialog is not defined` at evaluation time.
vue-router then registered `undefined` as the ModelConfig view and the
models page rendered blank with no console error.
Fixes blank #/model-config page.
CI runs had no rg on the runner, so the bash script fell back to its python
branch with a different file set (no extension skips; sees gitignored tracked
files) and a different verdict than local rg runs. One deterministic scanner
now serves both: git ls-files walk, NUL sniff + extension skip for binary
blobs (model .cmo3/.can3/.moc3/.jit files decode to CJK-looking garbage),
allowlist for the opentype.js LCID table line, exception zones unchanged.
cdi3.json (parameter/ArtMesh display names) and physics3.json (physics
setting names) of the Hiyori/Natori sample models carried Chinese labels;
Ids are untouched so runtime behaviour is unchanged.
Merge of bdb25382 (proc/lint flags) with upstream's compiler pin left two
<plugin> entries for the same GA. Maven 3.9+ (CI) treats duplicate plugin
declarations as a fatal POM error; only 3.8 tolerated it as a warning.
Merged configuration: source/target 21, proc=full, lint args, lombok
annotation processor path.
The previous rebuild baked createWebHistory('./') which vue-router normalizes
to '/.' and matches nothing - the page rendered only the header shell. The
bundle now derives its router base from document.baseURI, verified in a real
browser at /generator/: step wizard renders, zero Han in the UI.
The rebuilt bundle ships translated strings, so westernization_audit.sh now
scans generator/assets + index.html as live source (allowlisting the one
third-party opentype.js LCID font-name table line). The exception narrows to
generator/static device data, which the firmware consumes byte-for-byte.
westernization.md documents the checkout location and rebuild flow.
Regenerated from the westernized xiaozhi-assets-generator checkout:
- code bundle is now Han-free (locales, toasts, log messages translated upstream)
- built with relative base ./ so the console's /generator/ mount actually
resolves its assets (upstream default /tools/assets-generator/ 404s there,
matching upstream's older relative-path vendored copy)
- static/ device data (charsets, fonts, emoji gifs, wakenet blobs) unchanged
update_dependencies.py pinned 'latest 2025' versions outside requirements.txt,
test_all_integrations.py and TEST_RESULTS_SUMMARY.md were one-off run artefacts;
pytest covers the same provider contracts.
202610111200 now purges stale RSS feeds (dead reuters feeds since 2020),
replaces CN Home-Assistant entity placeholders with generic English ids and
keeps the Han-free seed assertion green in LiquibaseWesternizationIntegrationTest.
- hass_state: use httpx (async) instead of undefined requests/asyncio.TimeoutError
- prompt_manager: call sync get_weather directly on executor thread; drop lunar plumbing
- register: repopulate module_func_map so module-level plugins expand to functions
- whisper/kokoro: run blocking transcribe/HTTP calls via asyncio.to_thread
- edge TTS: re-apply volume/rate/pitch percentage params; elevenlabs: pass voice_settings
- add GeminiVLLM provider (google-genai) backing the GeminiVLLM config entry
- get_news: dedicated NEWS cache (15m) and live Western RSS defaults; drop dead newsnow branch
- play_music: return Action.RECORD so playback turns enter dialogue history
- ota_handler: default timezone_offset 0; config: prompt_template, HA entities, voice, language
- agent-base-prompt.txt: rebuilt from upstream engineered English baseline
- tests: drop shims/expectations for providers removed by the western provider set
Final localization pass over everything the audit covers, driven by the
local qwen3.8:instruct endpoint (thinking disabled) with placeholder-
masked, cached, resumable batches:
- Python server: comments, docstrings, log/error messages, prompt text
- manager-api Java: javadoc, exception messages, Swagger summaries,
westernized test fixtures (locale strings, signed-URL examples)
- manager-web / manager-mobile: component comments and misc leftovers
(functional split regexes such as /[、;;,,]/ left byte-identical)
- digital-human: HTML/UI text, JS comments, wake-word defaults aligned
with the server canonical English wake words
- docs: device-call guide, wakeword and search integration guides
Also widens the westernization audit exception to the whole vendored
generator bundle and retires the stale per-file exception list.
Drop the dead zh-CN/zh-TW Element locale imports, resolve any stored
language only when it is in supportedLanguages (else fall back to en),
and generalize the language-code tooltip example from zh-CN to en-US.
Add @Override to the in-memory RedisUtils mock methods and enable
renren.redis.open in the test profile so RedisAspect routes to the mock
instead of short-circuiting cached lookups to null.
The mock AsyncClient/Client dropped wrapper methods (send,
build_request) that provider helpers rely on, so subclass the real
httpx clients and only override the transport seam. Also give
edge_tts.Communicate a fake async stream so the TTS text-to-speech
test no longer opens a real Bing websocket.
check_config_file() must drive the coroutine with asyncio.run(), and
setup_logging() must accept an already-loaded config (or hit the cache)
instead of re-entering the event loop from a running loop.
Register the upstream Liquibase changesets (202606231030..202609172100) that
were dropped during the rebase, and append a downstream cleanup changeset
(202610111200) that westernizes EdgeTTS field remarks, purges the retired
MinimaxStreamTTS rows and updates the HA / web-search plugin descriptors.
Extend the H2 replay harness to cover what the upstream SQL now needs:
- MySQL JSON_SET/REPLACE semantics incl. array-index paths ($[0].label)
- double-quoted string literals and multi-clause ALTER TABLE splitting
- assertions for the new cleanup changeset results
Server runtime:
- translate model-visible strings: direct_answer tool schema, web_search
tool desc/errors/results, call_device tool desc/replies, hass_state
desc/report strings; they were Chinese text fed to LLMs and devices
- replace Chinese pconline geocoder with ip-api.com (English city names)
- prompt_manager: drop dead Chinese WEEKDAY_MAP, stop forcing lang=zh_CN
for weather, English fallback location
- delete orphan alibl_endpoint.py (no importers after AliBL removal) and
dead initialize_voiceprint() calling a nonexistent ASR hook
- translate mcp_server_settings.json descriptors
- test_current_time: assert English weekday/date behavior (upstream test
still expected Chinese weekdays)
Docs/branding:
- README and docs/guides/voiceprint.md: voiceprint IS implemented via the
HTTP VoiceprintProvider; document the real protocol (health/identify)
and privacy notes instead of falsely claiming the feature is missing
- issue templates: English
Ops:
- Dockerfile-server-base: drop Aliyun PyPI mirror from published image
- LICENSE: keep xinnan-tech copyright notice alongside downstream (MIT)
- CI: run westernization_audit as a gate; make smoke test failure fatal
- westernization.md: point python verification at the real pytest layout
The merge-rebase kept both the old downstream MCP initialize dispatch and
upstream's relocated one, so every capable device received two initialize
messages per connection. Keep only the post-hello send (upstream #3347).
requirements: drop chardet (removed upstream, unused here), restore
mcp-proxy 0.12.0, and remove the stale cozepy pin comment (cozepy is not a
downstream dependency).