Commit graph

3861 commits

Author SHA1 Message Date
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
CGD
5aa46538d5
Merge pull request #3358 from xinnan-tech/fix-audio-delay
fix: 修复固定延迟不生效,调整相关逻辑
2026-09-08 10:53:25 +08:00
Sakura-RanChen
ed98be5347
Merge pull request #3357 from xinnan-tech/py-test-client-toctou
根治ManageApiClient单例TOCTOU竞态,锁保护+统一防护
2026-09-08 10:00:20 +08:00
Sakura-RanChen
79a95af399 fix: 修复固定延迟不生效,调整相关逻辑 2026-09-07 11:38:06 +08:00
3030332422
32cba36237 fix: 修复 ManageApiClient 关闭期间的连接池创建竞态 2026-09-07 11:14:50 +08:00
CGD
82e3c1874f
Merge pull request #3353 from muxinshijie/feature/manage-api-client-toctou
fix: 根治ManageApiClient单例TOCTOU竞态,锁保护+统一防护 #3339
2026-09-07 10:31:58 +08:00
欣南科技
c478257517
Merge pull request #3356 from xinnan-tech/fix/docs-typos
docs: 批量修正文档里的错别字和拼写错误
2026-09-06 08:44:01 +08:00
欣南科技
9fdb72cfd7
Merge pull request #3355 from xinnan-tech/fix/3354-建议修改docsmcpvisionintegrationmd
docs: 修正视觉模型配置文档里的错字
2026-09-06 08:43:38 +08:00
hrz
3c31315ecc docs: 批量修正文档里的错别字和拼写错误
扫了仓库里的文档,挑出明显写错的字和拼错的英文,统一改了一遍。包括「Anaconda Prompt」漏字、「火上」→「火山」、「设别」→「设备」、「tababr」→「tabbar」、「aotodl」→「autodl」、「mananger-web」→「manager-web」等十几处。仅文档修改,不影响代码。
2026-09-06 08:37:51 +08:00
hrz
07c6cdf16a docs: 修正视觉模型配置文档里的错字
按 issue #3354,把"视觉打语言模型"改成"视觉大语言模型",跟上下文一致。
2026-09-06 08:34:57 +08:00
hrz
8a3c2c51a0
Merge pull request #3351 from taiwan-dog/pm/disable-default-websocket-keepalive
fix: disable library WebSocket keepalive for device server
2026-09-05 00:37:23 +08:00
hrz
046fdc8aa4
Merge pull request #3350 from taiwan-dog/pm/hello-before-mcp-initialize
fix: send server hello before MCP initialize
2026-09-05 00:26:15 +08:00
muxinshijie
61e4879826 fix: 根治ManageApiClient单例TOCTOU竞态,锁保护+统一防护 #3339 2026-09-05 00:14:09 +08:00