三个问题一起修:
1. 复制不生效:copyText 只试 navigator.clipboard.writeText,在 webview
(非安全上下文/权限未授予)会抛错直接返回 false,且按钮仍显示原样 →
表现为「点了没反应」。改为三级降级:Clipboard API → execCommand('copy')
→ 再次 Clipboard API;并新增 update.copyFailed 失败态提示(3s)。
2. 按钮颜色太浅:.dsh-wt_updateBtnCopy 原为 rgba(79,142,247,.18) 半透明底
+ #cfe0ff 浅蓝字,在浅色主题上几乎看不见。改为实心强调色 + 白字 + 加粗,
并补 hover/active 反馈。
3. 升级命令用的是当前版本:UPDATE_TGZ 写死 v0.5.3-local.9,不随检测结果变化,
「有新版本」提示里给的却是自己这一版的地址。改为
worktableUpgrade(tag) 按目标版本生成;index.tsx / split.tsx 两个调用点
均传 updateInfo.latest。
测试:
- host-transport.test.mjs 调用签名补 tag 参数
- 新增断言:命令必须指向目标版本(local.10 与 local.9 各验一次)
验证:npm run pack 全绿,双资产同源 sha256 2ff7d45a…。
90 lines
2.6 KiB
JSON
90 lines
2.6 KiB
JSON
{
|
||
"name": "dsh-worktable",
|
||
"description": "工作台 Worktable:DeepSeek Harness 侧边栏的 agent 级项目容器(应用抽屉)",
|
||
"version": "0.5.3-local.10",
|
||
"repository": {
|
||
"type": "git",
|
||
"url": "https://github.com/Aisland-SJL/dsh-worktable.git",
|
||
"directory": "01_content"
|
||
},
|
||
"engines": {
|
||
"node": ">=22",
|
||
"dsh": "0.2.0-rc.2 || 0.2.1-rc.3 || 0.2.1-rc.5 || 0.2.2-alpha.2"
|
||
},
|
||
"license": "MIT",
|
||
"type": "module",
|
||
"main": "lib/index.js",
|
||
"exports": {
|
||
".": "./lib/index.js",
|
||
"./client": "./lib/client.js",
|
||
"./package.json": "./package.json"
|
||
},
|
||
"files": [
|
||
"lib/index.js",
|
||
"lib/client.js",
|
||
"cordis.patch.yml",
|
||
"dsh.plugin.json",
|
||
"README.md",
|
||
"LICENSE"
|
||
],
|
||
"dsh": {
|
||
"bundle": {
|
||
"patch": "./cordis.patch.yml"
|
||
},
|
||
"client": {
|
||
"platform": "web",
|
||
"inject": [
|
||
"@deepseek-ai/dsh-client-ui-slots",
|
||
"@deepseek-ai/dsh-client-ui-primitives",
|
||
"@deepseek-ai/dsh-client-locale"
|
||
]
|
||
},
|
||
"compatibility": {
|
||
"dsh": "0.2.0-rc.2 || 0.2.1-rc.3 || 0.2.1-rc.5 || 0.2.2-alpha.2",
|
||
"dshReleases": {
|
||
"0.2.0-rc.2": "compatible",
|
||
"0.2.1-rc.3": "compatible",
|
||
"0.2.1-rc.5": "compatible",
|
||
"0.2.2-alpha.2": "compatible"
|
||
}
|
||
}
|
||
},
|
||
"scripts": {
|
||
"build": "node build.mjs",
|
||
"check": "node --check lib/index.js && node --check lib/client.js",
|
||
"pack": "node release-prep.mjs",
|
||
"test:gate": "node client-factory-gate.test.mjs",
|
||
"test:sidebar": "node ../04_test/sidebar-popup.test.mjs",
|
||
"test:input": "node ../04_test/host-input.test.mjs",
|
||
"test:session": "node ../04_test/session-compat.test.mjs",
|
||
"test:details": "node ../04_test/session-details.test.mjs",
|
||
"test:update": "node ../04_test/update-check.test.mjs",
|
||
"test:transport": "node ../04_test/host-transport.test.mjs",
|
||
"test:widget": "node ../04_test/widget-mount.test.mjs",
|
||
"test:security": "node --test ../04_test/request-auth.test.mjs ../04_test/preview-files.test.mjs ../04_test/sandboxed-frame.test.mjs",
|
||
"verify:remote": "node verify-remote.mjs"
|
||
},
|
||
"peerDependencies": {
|
||
"@deepseek-ai/cordis": "*",
|
||
"@deepseek-ai/dsh-client-locale": "*",
|
||
"@deepseek-ai/dsh-host-webserver": "*"
|
||
},
|
||
"peerDependenciesMeta": {
|
||
"@deepseek-ai/cordis": {
|
||
"optional": true
|
||
},
|
||
"@deepseek-ai/dsh-host-webserver": {
|
||
"optional": true
|
||
},
|
||
"@deepseek-ai/dsh-client-locale": {
|
||
"optional": true
|
||
}
|
||
},
|
||
"devDependencies": {
|
||
"esbuild": "^0.25.0",
|
||
"highlight.js": "^11.12.0",
|
||
"markdown-it": "^15.0.0",
|
||
"xterm": "^5.3.0"
|
||
}
|
||
}
|