feat: 页面按钮 + 设置分区 + 修掉同步注册事故

- fix(host): 工具/设置注册从 async 续体挪回 apply 同步段 —— cordis 的 ctx 在 apply 返回后失效,
  之前真机报 'cannot create effect on inactive context',导致 float_window 没装上
- feat(host): tapIndex 往 index.html 注入『悬浮窗』按钮(自带状态点/看门狗/被 SPA 重建后自动补回),
  实测带 auth cookie 拉首页 HTML 已含该按钮;config.button=false 可关
- feat(client): 客户端半 lib/client.js(ModuleLoader 格式,无需构建)注册 sidebar.footer.action
  与 settings.section(设置→悬浮窗整页:打开/全屏/固定/锁定/隐藏/关闭 + 会话状态);接管后摘掉注入的备用按钮
- package.json: exports['./client'] + dsh.client{inject,platform}
This commit is contained in:
2026-09-27 16:26:40 +08:00
parent 5f258e8308
commit 387f9a0012
3 changed files with 271 additions and 80 deletions
+18
View File
@@ -11,6 +11,15 @@
],
"type": "module",
"main": "lib/host.js",
"exports": {
".": {
"default": "./lib/host.js"
},
"./client": {
"default": "./lib/client.js"
},
"./package.json": "./package.json"
},
"files": [
"lib",
"shell",
@@ -19,8 +28,17 @@
"README.md"
],
"dsh": {
"engines": {
"dsh": ">=0.1.7-rc.1"
},
"bundle": {
"patch": "./cordis.patch.yml"
},
"client": {
"inject": [
"@deepseek-ai/dsh-client-ui-settings"
],
"platform": "web"
}
},
"license": "MIT"