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
+3 -3
View File
@@ -4,9 +4,9 @@
> 每条标注日期、动机、落点与验证方式。改动在 `01_content/src/`,经 `npm run build`
> 产出 `lib/`;发布物由 `npm run pack`(`01_content/release-prep.mjs`)生成。
当前版本:**0.5.3-local.14**(2026-12-03)
产物:`01_content/dist/v0.5.3-local.14/dsh-worktable.tgz`,488494 字节,
sha256 `c28cba759426a38002c172ff06a37c260ce8eb3c0b3987478c96229f3d7c9551`
当前版本:**0.5.3-local.15**(2026-12-04)
产物:`01_content/dist/v0.5.3-local.15/dsh-worktable.tgz`,488948 字节,
sha256 `aafb7ab2fa6fc94028c0d28c04409668defdd061522aeaaa8b49a2dad0a1f0f5`
---