lvy-jsd/dsh-tool-manager--packages-dsh-tool-manager-dsbot-entry ↗★ 0
dsh-tool-manager-dsbot-entry
Adds a "Tool manager" entry to the ds-bot settings dialog that opens the dsh-tool-manager panel, without changing ds-bot. 适合在特定布局下需要更便捷访问工具管理面板的用户。
インストール
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:lvy-jsd/dsh-tool-manager#7b37565ac428824a61f82534240b14374f0f5378&path:packages/dsh-tool-manager-dsbot-entryドキュメント
README 全文を読む ↗dsh-tool-manager-dsbot-entry
Adds a Tool manager row (工具管理 in Chinese) to the
ds-bot settings dialog. Clicking it
shows the dsh-tool-manager-panel panel inside the
dialog, in ds-bot's own colors.
Use it when your DSH web UI runs in the ds-bot layout, where DSH's own Settings page (and the panel's section in it) is one step further away (Bot settings → Harness settings → Tool manager).
Install
Needs dsh-tool-manager-panel (it serves the data and the panel component).
dsh plugin --profile web add dsh-tool-manager-panel dsh-tool-manager-dsbot-entry
How it works, and why it is safe to break
ds-bot's settings dialog has a fixed page list and no extension point, so this plugin adds its row from the outside and changes no ds-bot code:
- A component in the host's always-mounted
shell.overlayslot watches the document with aMutationObserver. - When a
.bt-settingsdialog with the expected nav appears, it inserts one row (ds-bot's own.bt-settings-itemclass) above "Harness settings", and one host element over the page area. The panel renders into it through a React portal; clicking any other row closes it. - The panel's
--dsw-alias-*variables are mapped onto ds-bot's--bt-*variables inside that host, so it follows ds-bot's theme. - Copy comes from the panel's dictionaries and follows the DSH interface language.
If ds-bot changes its dialog markup, the row simply does not appear; nothing else is affected, and the panel stays available in DSH's Settings page. The better long-term fix is a settings-page extension point in ds-bot; when one exists, this plugin should switch to it.
License
MIT