- 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}
46 lines
921 B
JSON
46 lines
921 B
JSON
{
|
|
"name": "dsh-float-window",
|
|
"version": "0.1.0",
|
|
"description": "DSH 悬浮窗:始终置顶、可固定位置/尺寸、支持毛玻璃的会话镜像小窗;Agent 抓屏时自动隐身,因此不会干扰屏幕操控",
|
|
"keywords": [
|
|
"dsh",
|
|
"dsh-plugin",
|
|
"deepseek-harness",
|
|
"float-window",
|
|
"always-on-top"
|
|
],
|
|
"type": "module",
|
|
"main": "lib/host.js",
|
|
"exports": {
|
|
".": {
|
|
"default": "./lib/host.js"
|
|
},
|
|
"./client": {
|
|
"default": "./lib/client.js"
|
|
},
|
|
"./package.json": "./package.json"
|
|
},
|
|
"files": [
|
|
"lib",
|
|
"shell",
|
|
"tools",
|
|
"cordis.patch.yml",
|
|
"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"
|
|
}
|