feat(diag): 增加现场诊断上报通道 (v0.5.3-local.15)

内嵌视图(DS Bot 等)没有 DevTools,无法读取插件运行现场。新增:
- 服务端 /api/worktable/diag(需鉴权):把客户端上报的 JSON 追加到
  <DSH_HOME>/logs/worktable-diag.log
- 客户端 apply() 在 1.5s/5s 各上报一次:href、__ModuleLoader__ 类型、
  style[data-dsh-plugin] 数量、.dsh-wt_section/.dsh-wt_edgeStrip 数量、
  sidebar/overlayHost 是否存在、body 子元素数、窗口宽度、最近 5 条 window 错误

用途:确认 DS Bot 视图里插件 client 是否加载、哪个座位渲染,据此再修复。
验证:npm run pack 全绿,双资产同源 aafb7ab2…。
This commit is contained in:
wangheng
2026-12-04 09:19:49 +08:00
parent 64a1d46b46
commit 3e7e2799c4
8 changed files with 120 additions and 12 deletions
+1 -1
View File
@@ -1,7 +1,7 @@
{
"name": "dsh-worktable",
"description": "工作台 Worktable:DeepSeek Harness 侧边栏的 agent 级项目容器(应用抽屉)",
"version": "0.5.3-local.14",
"version": "0.5.3-local.15",
"repository": {
"type": "git",
"url": "https://github.com/Aisland-SJL/dsh-worktable.git",