dsh-local-plugin-source: Managing Local Plugin Directories on the DeepSeek Harness Desktop

In DeepSeek Harness, locally developed plugins typically need to be installed via absolute paths or interactive methods. The dsh-local-plugin-source plugin solves this problem by converting a local folder (defaulting to %USERPROFILE%\.dsh\local-plugins) into an in-app plugin source, allowing you to manage these local packages directly within the settings.

Core Features

  • Local Plugin Source Management: Converts a specified directory into a plugin source, listing packages within that directory under “Settings -> Plugins -> Local Plugins”.
  • Full Lifecycle Operations: Supports installing, reinstalling, enabling, disabling, and removing local plugins.
  • Security Mechanisms: Only allows the installation of packages found in the scan list to prevent path traversal attacks; request body size is limited to 64KB.
  • Instant Activation: Becomes effective immediately upon activation, requiring no additional disable toggles.

Installation and Activation

This plugin is itself a bundle, installed via the Profile’s Plugin Manager:

# Agent side execution
plugin_manager: install_bundle(target: "C:\\Users\\<you>\\.dsh\\local-plugins\\dsh-local-plugin-source")

Once installed, navigate to the “Settings -> Plugins” page, where the “Local Plugins” tab will appear.

Typical Usage

  1. Reinstall after Removal: If a local plugin was previously installed via an absolute path, it can be easily reinstalled with one click using this plugin after removal.
  2. Hot Reloading: After modifying local plugin code, simply reinstall it via this plugin to apply changes (a restart may be required in some scenarios).
  3. Auto-discovery: Drag a DSH bundle into the default directory, and it will automatically appear within the application.
  4. Custom Directories: Modify the scan directory via the configuration file.

Use Cases and Notes

  • Use Cases: Ideal for scenarios requiring frequent switching, debugging, or management of locally developed plugins within the DSH desktop client.
  • Notes:
    • Only manages specified directories; does not take over npm/git installations.
    • A restart is required to refresh the memory cache.
    • pnpm installation logs only display the last 4KB.
    • Unpatched regular packages will display as “no bundle patch” in the list.
    • A restart is required to refresh the memory cache.
    • A restart is required to refresh the memory cache.

This plugin provides a convenient entry point for local development, eliminating the need to pass absolute paths and enabling plugin installation and maintenance directly within the application. For more details, please refer to the plugin directory or the GitHub repository.

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

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

Xiaoye