Files
dsh-worktable/01_content/package.json
T
wangheng 80c1db576a fix(ui): DS Bot 页里工作台入口不渲染——改挂 shell.overlay (v0.5.3-local.13)
实测 DevTools:DS Bot 页下 `document.querySelectorAll('.dsh-wt_edgeStrip').length === 0`,
组件根本没有挂载。原因:ds-bot 0.4.5 用 shadow("sidebar.footer.action", ...)
接管了侧栏 footer 座位(bot-account / bot-return),我们的注册在该页不渲染。

修法:同一组件再注册一份到 shell.overlay(ds-bot 不接管该层),用 slotRole 分流:
- sidebar 实例:非 DS Bot 视图渲染(经典布局,保持原行为)
- overlay 实例:检测到 DS Bot 左栏时渲染(800ms 轮询 [class*="bt-leftcol"] 等)

两实例互斥,不会重复或同时消失。

已知取舍:overlay 实例拿不到 sidebar.worktable.project 的宿主项目列表
(跨座位 children 不可见),DS Bot 页里这部分入驻条目不显示;
工作台自身项目、二级页面、设置等不受影响。

验证:npm run pack 全绿,双资产同源 8f093ee7…。
2026-12-03 17:07:14 +08:00

90 lines
2.6 KiB
JSON
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
{
"name": "dsh-worktable",
"description": "工作台 Worktable:DeepSeek Harness 侧边栏的 agent 级项目容器(应用抽屉)",
"version": "0.5.3-local.13",
"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"
}
}