Commit graph

3873 commits

Author SHA1 Message Date
lapy
6bc3d6bde7 fix(api): dedupe maven-compiler-plugin declaration
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.
2026-10-12 17:23:56 +01:00
lapy
56e83aaec0 fix(web): generator bundle resolves its route under the console mount 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.
2026-10-12 14:25:20 +01:00
lapy
13a627af6b chore(audit): generator code bundle no longer exempt from Han scan
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.
2026-10-12 14:16:35 +01:00
lapy
39ba5efd1b chore(web): rebuild vendored generator from translated source
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
2026-10-12 14:16:35 +01:00
lapy
3d2e6909e5 docs: remove dead vicp.fun demo block and broken translated READMEs
- README: replace upstream-only demo endpoints with self-host tip; refresh
  TTS/ASR provider tables (ElevenLabs, Kokoro added; Sherpa dropped)
- delete de/pt_BR/vi README forks whose links and content rotted; point users
  to the English docs tree instead
2026-10-11 18:54:44 +01:00
lapy
6b05efdb07 fix(mobile): remove duplicate provider/speedPitch route entries in pages.json 2026-10-11 18:54:44 +01:00
lapy
7e09042f40 chore(server): drop ad-hoc dependency/integration scratch scripts
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.
2026-10-11 18:54:37 +01:00
lapy
bb74a719a1 fix(web): repair merge-corrupted views and restore build
- global.scss: restore scrollbar-style mixin and dialog overlay tiers
- ModelConfig/ModelEditDialog/home: replace /deep/ with ::v-deep, fix CSS
  comments and malformed template nesting
- AgentTemplateManagement/DictManagement/ParamsManagement/VoiceCloneManagement:
  restore script blocks corrupted by merge conflict resolution
- package.json: re-add v-code-diff; npm run build passes cleanly
- router: drop KnowledgeFileUpload route (view removed upstream in 0eb0a600)
- login/register: point legal links at -en pages, delete duplicate CN html
2026-10-11 18:54:32 +01:00
lapy
a72af7e55f fix(api): align seed-data cleanup changeset with Western defaults
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.
2026-10-11 18:54:32 +01:00
lapy
ff23ac3f7d fix(server): restore merge-lost runtime fixes and western defaults
- 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
2026-10-11 18:54:25 +01:00
lapy
70771b4209 chore(westernization): translate remaining Han text across code, UI and docs
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.
2026-10-11 17:58:15 +01:00
lapy
302ed23055 fix(web): validate stored language against supported locales
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.
2026-10-11 17:58:09 +01:00
lapy
e786e948ec test(api): fix maskMiddle expected suffix
maskMiddle keeps a 4-char tail, so the masked '...e123' suffix is the
contract, not '...3123'.
2026-10-11 17:58:02 +01:00
lapy
934a349cdd test(api): make mock RedisUtils usable and stop aspect swallowing calls
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.
2026-10-11 17:58:02 +01:00
lapy
514928722d test(server): keep httpx shim a real subclass and fake edge-tts streaming
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.
2026-10-11 17:58:02 +01:00
lapy
bdf184db01 fix(server): restore upstream config-load deadlock fix lost in rebase
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.
2026-10-11 17:57:56 +01:00
lapy
6086ca1e18 fix(api): keep TimbreDetailsVO.sort nullable
Revert the field to Long so legacy timbre rows with a NULL sort keep
deserializing instead of blowing up on unboxing.
2026-10-11 17:57:52 +01:00
lapy
0ccaf3a6b1 fix(db): replay upstream changelog history and add westernization cleanup changeset
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
2026-10-11 17:57:49 +01:00
lapy
feb6edb47f fix(westernization): runtime English surface, voiceprint truth, CI gates
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
2026-10-11 13:13:07 +01:00
lapy
cfe3da5c7b fix(rebase): send MCP initialize once and align python deps with upstream
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).
2026-10-11 12:45:49 +01:00
lapy
f92fb3439a fix(rebase): align upstream DTO and test startup behavior 2026-10-11 11:44:13 +01:00
lapy
67a0a512d9 fix(rebase): reconcile manager API contracts 2026-10-11 11:41:55 +01:00
lapy
1692ca69bd fix(rebase): restore compatible API guards and type handlers 2026-10-11 10:22:27 +01:00
lapy
75f742a80d merge: rebase westernization onto upstream main 2026-10-11 2026-10-11 10:18:56 +01:00
wengzh
c30c40bf56
Merge pull request #3415 from xinnan-tech/chore/bump-deps-20261010065106-1659
chore(deps): 批量升级 4 个允许的依赖
2026-10-10 15:24:17 +08:00
Sakura-RanChen
199c4ce365 chore(deps): batch bump 允许升级的依赖 2026-10-10 14:53:30 +08:00
hrz
a6cd755cf2
聊天记录弹框底部不再留大量空白 (#3410)
弹框本身和 body 用 !important 撑到视口(body 顶开 size="large" 默认多扣的 56px footer 高度)。body 的高度由 flex: 1 自动撑满,max-height 只用来顶开原来的 950px 上限。
2026-10-09 17:24:39 +08:00
hrz
23d0e64d9d
召回测试弹框与切片弹框样式对齐 (#3409)
召回测试弹框宽度从 900px 调到 1200px 并启用大弹框样式,高度、上下间距与切片弹框保持一致。结果区域改用 flex 填充而不是写死的 400px 高度。
2026-10-09 17:18:06 +08:00
hrz
96c224c4e4
切片和聊天记录弹框统一为大弹框样式 (#3407)
知识库查看切片弹框加 size="large",聊天记录弹框去掉旧样式覆盖并把 body 改成 flex 列布局,底部下载按钮不再绝对定位,两个弹框跟历史版本对齐。
2026-10-09 17:02:49 +08:00
hrz
2b6483662a
召回测试弹框回车不再刷新页面 (#3408)
给 el-form 加阻止默认提交的处理,按回车时不再触发浏览器刷新。
2026-10-09 17:01:52 +08:00
hrz
aef973e6b9
7 处 el-select 加 filterable 支持输入筛选 #3405 (#3406)
主诉:手动添加设备下拉无搜索(FIRMWARE_TYPE 字典 54 项)。统一修同类位置:替换词多选加 collapse-tags;登录/注册/找回密码的区号下拉加 filterable(海外 200+ 项)。无新依赖、纯 element-ui 原生属性。
2026-10-08 15:39:46 +08:00
hrz
7a260ee143
弹框关掉后再点不开以及宽度高度统一收口 (#3388)
* 统一管理后台弹框更舒展

把 CustomDialog 默认宽度从 600 加到 720,正文给到至少 360 的高度,
默认弹框就不再显得局促。参数编辑弹框也跟着加宽。智能体历史版
本那条列表、对比和恢复预览都给到至少 420 的最小高度,避免内容
少时框太矮看起来小气。其他像添加智能体、绑定设备这些原本就合适
的弹框没动。

* 弹框外观统一收口

原本几个弹框长得参差不齐:标题字号、按钮文案、留白高度各管各的。这次把新建智能体、新建设备、改模型、改参数这几个弹框接到同一个底座上,按钮统一成「确定」「取消」,输入框字号高度对齐,遮罩背景加了模糊,弹框太高就内部滚动,四个弹框看起来一个模子

* 修复弹框关掉后再点不开

之前几个弹框改用新底座的时候,关闭那一路少了一段转发:父页面用双向绑定来收弹框关闭的信号,子页面应该再把关闭事件抛上去告诉父页面。这一段被删了,下次再点添加按钮时父页面那边状态没复位,弹框就拉不开来。现在把这段补回去。

* 弹框宽度和高度统一收口

同一批弹框的尺寸还是各管各的:模型配置里改参数那个是跟着窗口大小按比例伸缩,历史提示词的源编辑弹框是 900 像素,参数管理里又是 720 像素,智能体变更详情那个上下还留了一大块空白。这次收到同一个共用底子上:宽度都对齐到 720 像素,弹框默认上下贴齐屏幕边、内容多时中间滚动,变更详情那个高度撑到接近屏幕顶到底。

* 管理后台弹框按大小分类统一外观

管理后台里的弹框按大小分成两类来收口。占整页的大弹框(历史版本、变更详情、模型修改、模型参数修正等)撑满整个浏览器高度,下面不再留白;小弹框(添加智能体、添加设备、知识库、字典、角色模板等)改成对齐屏幕正中,不再顶在屏幕上沿。修改模型那条弹框也加宽到 960,左右留白加大到 40,跟历史版本对齐,看起来更舒展。

* 大弹框上下留白收口到十像素并按三档统一宽度

大弹框上下各留十像素让边框和圆角清晰可见。宽度按用途分三档:表单 960、含代码 1080、表格 80% 加宽度上限。供应器、上下文供应器、音色克隆都改 960;TTS 从 90% 改 80%;角色模板从 1200 改 1080;缓存查看从 70% 改 80%。新增模板的大文本框改成自适应高度。

* 弹框样式与文案收口处理

AddDeviceDialog 确认后关闭弹框;CustomDialog 去掉 :global 与紧邻选择器,合并 el-dialog__body 样式块;删除未使用的 --dialog-form/--dialog-code;AddWisdomBodyDialog 的 cancel/handleClose 委托到同一个实现;多语言文案同步去冒号与双点。

* 弹框遮罩样式移到全局作用域

scoped 块里的 ::v-deep .v-modal 打不到 body 层的遮罩,改在 global.scss 用全局选择器。

* 弹框 wrapper 居中样式移到全局作用域

scoped 块里的 ::v-deep .el-dialog__wrapper 同样打不到 element-ui 自渲染的 wrapper,跟 .v-modal 一起挪到 global.scss。

* 弹框提交状态异常收口

设备激活码错误路径不再卡 loading;Provider 与固件弹框补 loading 兜底。

* 弹框视觉异常收口

首页删除确认弹框 wrapper 居中;历史版本弹框去掉内层多余滚动条。

* 设备 API 链式返回修复

bindDevice 等方法补上 return,让 .fail() 兜底回调能正常注册到请求对象上。

* 设备 API 错误回调参数补全

device.js 六个方法加 failCallback 参数;user.js login 网络重试补 failCallback;AddDeviceDialog 改四参数签名。

* 设备状态 API 失败回调引用修复

getDeviceStatus 的 .fail() 块把函数体内 callback(res) 改成与签名一致的 if (failCallback) failCallback(err),避免业务错误时抛 ReferenceError。
2026-10-07 08:03:25 +08:00
欣南科技
87c6df77b0
Merge pull request #3386 from xinnan-tech/0.9.7
Bump to 0.9.7
2026-09-29 10:03:47 +08:00
hrz
eb51f420a2 Bump to 0.9.7 2026-09-29 09:13:14 +08:00
DaGou12138
1eefb4ea86
Merge pull request #3385 from xinnan-tech/serpapi
Serpapi
2026-09-28 10:25:33 +08:00
hrz
1211f8202b
Merge pull request #3376 from googio/feat/serply-search
feat(web_search): 新增Serply搜索源
2026-09-28 09:36:42 +08:00
wengzh
788f5301fd
Merge pull request #3378 from xinnan-tech/fix-deps
fix(deps): 移除 chardet 直接依赖
2026-09-21 09:38:29 +08:00
Sakura-RanChen
edad16aedf fix(deps): 移除 chardet 直接依赖 2026-09-20 15:55:21 +08:00
serply
65a3fae9fc
feat(web_search): 新增Serply搜索源
联网搜索插件在秘塔和Tavily之外增加Serply,返回谷歌搜索结果。
通过 provider: "serply" 选用,未配置时行为不变。
2026-09-17 16:45:28 -04:00
wengzh
f4ba65f224
Merge pull request #3375 from xinnan-tech/fix-snapshot-dialog-diff-style
fix: 修复 v-code-diff 斜体样式干扰 diff 展示
2026-09-17 17:54:02 +08:00
lww9029
87c2bae55a fix: 修复 v-code-diff 斜体样式干扰 diff 展示 2026-09-17 17:50:27 +08:00
wengzh
628d4cedb7
Merge pull request #3373 from xinnan-tech/feat-snapshot-dialog-code-diff
feat: 历史版本快照增加代码对比视图
2026-09-17 17:06:59 +08:00
Sakura-RanChen
6c3f89cae1
chore(deps): 批量升级 4 个允许的依赖 (#3374)
* chore(deps): batch bump 允许升级的依赖

* test: 添加 5 条核心链路测试 + 默认 mock 模式

参照 PR #3370 的整体结构,新增 STT/LLM/TTS/RAG/Memory 五个 test_*.py
覆盖关键链路。conftest.py 默认 mock 模式:

- PYTEST_CONFIG_FILE 指向单模块配置文件(不入库)
- RUN_LIVE_API_TESTS=1 走真请求(必须配齐密钥)
- 真实存在的第三方包(openai/httpx)保留,仅 patch httpx 网络层
- 装了一半会炸的本地模型(torch/funasr/modelscope)强制 shim
- mock load_config / init_service,避免触发远程 manager-api

mock 模式目标:dep-upgrade orchestrator / CI 不需要任何密钥即可跑通。

---------

Co-authored-by: Sakura-RanChen <Sakura-RanChen@local>
2026-09-17 15:57:43 +08:00
lww9029
4745186cea style: 调整窄屏样式 2026-09-17 10:43:26 +08:00
lww9029
1ddc97b626 feat: 快照对话框增加代码对比视图 2026-09-17 10:04:15 +08:00
wengzh
6afc54a17d
Merge pull request #3366 from xinnan-tech/feat-tts-alibl
Feat tts alibl
2026-09-11 17:35:08 +08:00
wengzh
daccfeb9dd
Merge pull request #3364 from xinnan-tech/fix-memory-title
fix: 记忆模式为nomem时错误生成标题
2026-09-11 17:34:43 +08:00
Sakura-RanChen
1846d3e935 调整相关逻辑 2026-09-09 16:17:13 +08:00
Sakura-RanChen
b1a7607dd5
Merge pull request #3345 from apexlsai/feature/alibl-workspace-streaming
feat(tts): 完善阿里百炼 Workspace 流式语音合成
2026-09-09 14:22:59 +08:00
Sakura-RanChen
d6d2da3d76 fix: 记忆模式为nomem时错误生成标题 2026-09-09 10:33:37 +08:00