dsh-market-sidebar: Bringing the Plugin Marketplace into the DSH Sidebar

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

  1. Register Panel: Register { id: 'market', order: -10, label: 'Plugin Market' } to sidebar.panellist.
  2. Render Logic: Register the same key to main, rendering ctx.get('market').render().
  3. Sorting & Display: Uses order: -10 to 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.
  4. Standalone Operation: Independent of the loading order of dshmarket.
  5. 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.

  1. 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'
  1. 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 in dependencies, 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”.

View Plugin Directory Page
Access GitHub Repository

羽毛球分组比赛记分
小程序二维码

欢迎使用《羽毛球分组比赛记分》微信小程序

Xiaoye