Introduction¶
The philosophy of DSH (DeepSeek Harness) is “Everything is a plugin”. During development, managing the plugin market is a frequent operation. Existing methods usually require navigating to a settings page or a specific view. The dsh-market-sidebar plugin provides a direct entry point. It renders the dshmarket interface as a formal panel in the sidebar, positioned immediately below the “New Session” button and above the built-in “Plugins” menu.
Plugin Positioning¶
This is a client-side plugin maintained by dingchenhui0618-arch. Its core function is to register the dshmarket market panel into the sidebar, positioned immediately below the “New Session” button and above the built-in “Plugins” menu.
Core Functionality¶
- Register Panel: Register
{ id: 'market', order: -10, label: 'Plugin Market' }tosidebar.panellist. - Render Logic: Register the same key to
main, renderingctx.get('market').render(). - Sorting & Display: Uses
order: -10to ensure it appears before the built-in plugin (order 0). If the market is absent, the sidebar degrades to a hint item without causing client assembly failure. - Standalone Operation: Independent of the loading order of dshmarket.
- Optional Hiding: Supports hiding the entry with the same name in settings via configuration.
Installation and Activation¶
Environment requirements: DSH Web ≥ 0.1.0-rc.6, Node >= 20, and dshmarket must be installed.
- Create a Junction (assuming the local path is
D:\Projects\dsh-market-sidebar):
$profile = "$env:USERPROFILE\.dsh\profiles\desktop"
New-Item -ItemType Junction -Path "$profile\node_modules\dsh-market-sidebar" -Target 'D:\Projects\dsh-market-sidebar'
- Add configuration to
$profile\package.json:
{
"dependencies": {
"dsh-market-sidebar": "link:D:/Projects/dsh-market-sidebar"
},
"dsh": {
"profile": {
"bundles": [
"dshmarket",
"dsh-market-sidebar"
]
}
}
}
An incremental update will be triggered approximately 1 second after installation, and the new item will appear in the sidebar.
Typical Usage¶
By default, a “Plugin Market” item will appear in the sidebar. Clicking it renders the dshmarket interface.
To hide the entry with the same name in settings, modify HIDE_SETTINGS_SECTION to true in lib/client.js.
Notes¶
- When uninstalling, the entry in
bundles, the dependency independencies, and the junction must be manually removed. - This plugin does not include market logic itself; it relies on the dshmarket contract.
Conclusion¶
By adjusting the registration order of sidebar.panellist, this plugin front-loads the market panel, aligning with DSH’s philosophy of “Everything is a plugin”.