Skip to main content

Minke/tests/fixtures/web-plugin

250Stars28Forks3Issues2Watchers

A minimal external plugin for DSH Web platform that hooks into the renderer module loader and marks the document root node to verify plugin installation and hot-update flow.

Evidence4/5methodologySourceInstallMaintenanceDSH versionSecurity scan
Machine-auditedInstall commandRepo verifieddsh-plugin topicLicenseREADMEAI wiki

ⓘ This plugin is a sub-package of the lencx/Minke monorepo — stars and activity count the whole repository.

Language
TypeScript
License
Apache-2.0
Branch
main
agentdeekseekdesktopdshdsh-pluginharness

Install

cmdweb profile
$ dsh plugin --profile web add github:lencx/Minke#path:tests/fixtures/web-plugin

Run the command above in your terminal to install this plugin via the dsh CLI. You can switch Profile in the top-right corner. New to dsh? Read the beginner tutorial

Install via your agent

Install the DeepSeek Harness plugin lencx/Minke/tests/fixtures/web-plugin for me: review the repository at https://github.com/lencx/Minke first, then run the install command and verify the plugin loads successfully.

Paste this instruction to the DSH Web GUI assistant — it will install and verify for you.

One-Sentence Positioning

This is a Web platform smoke testing fixture bundled with the Minke desktop project, serving as a minimal external Web plugin that plugs into the host's renderer module loader to verify that the dsh plugin installation and hot-update pipeline is functioning properly.

Core Capabilities

  • Writes data-dsh-external-web-plugin="active" on the host page's HTML root element as a probe marker for "external Web plugin loaded"
  • Registers itself as a client module that can be started by the host via the host-provided window.__ModuleLoader__
  • Declares a cordis patch in the package metadata to insert itself into the host's startup list with the name @dsh-desktop/smoke-web-plugin
  • Does not do anything in the desktop main process; the main process-side apply() is an empty function

Technical Implementation

  • Language: JavaScript (ESM, type: module)
  • Key Dependencies: Only depends on the host runtime's window.__ModuleLoader__, no third-party dependencies
  • Architecture Pattern: Web platform client plugin—inserts itself into the host's startup list via cordis.patch.yml, then gets loaded by the host in the renderer to register the factory from lib/client.js
  • Entry Files: lib/index.js (main process side, empty implementation) / lib/client.js (renderer side, actually effective)

Use Cases

Suitable for Minke maintainers or DSH desktop host developers to verify that the "external Web plugin installation + renderer loading + hot-update" pipeline still works after modifications; not suitable for regular end users to install and use.

Prerequisites and Compatibility

DependencyMinimum VersionDescription
DSHNot declaredThe plugin package does not declare a DSH version; only consumed under Minke's built-in harness:smoke flow
NodeNot declaredThe plugin package does not declare a Node version
PlatformCross-platformRuns on the host's Web platform (Electron renderer or browser)
Native ModulesNoneNo native modules imported in the source code

Installation

dsh plugin --profile web add github:lencx/Minke/tests/fixtures/web-plugin

Configuration

This plugin requires no additional configuration. The package's dsh.client only declares three manifest fields and exposes no runtime parameters that can be adjusted by users:

Manifest FieldTypeDescriptionDefault Value
dsh.client.platformStringDeclares the running platform, must be web to be loaded by the host renderer"web"
dsh.client.injectArrayThe client script injection position tags, currently empty[]
dsh.client.immediatelyBooleanWhether to register this client module immediately when the host startstrue

FAQ

Q: What functionality can I see on the DSH desktop after installing this plugin?

A: You won't see any new functionality. Its only side effect is writing a data-dsh-external-web-plugin="active" data attribute on the host page's root element, which regular users cannot perceive as any UI change.

Q: Is it suitable for regular users to install?

A: No. It's a smoke testing fixture within the Minke repository, used by scripts/harness/smoke.mjs to automatically verify the external Web plugin installation and hot-update pipeline. It has no business value.

Q: Can it be uninstalled after installation?

A: Yes, uninstall it using the standard dsh plugin remove process; after uninstallation, the data-dsh-external-web-plugin="active" marker on the host page's root element will disappear.

Q: What does its main process and renderer do?

A: The main process-side lib/index.js exports an empty apply() and does nothing; the real action happens in the renderer, where lib/client.js calls window.__ModuleLoader__.load to register a factory, and the factory's apply() writes the data attribute to the document root element.

Q: How do I verify if this plugin is correctly loaded by the host?

A: In the browser developer tools, inspect the page's root <html> element; if the value of data-dsh-external-web-plugin is "active", it has been loaded. Minke's smoke test also modifies the client source code to change "active" to "reloaded" to verify hot-update.

Getting Started Difficulty

Beginner — the entire plugin consists of only two empty JS files plus a cordis patch. The understanding threshold comes from DSH Web plugin manifest field conventions, not from the plugin's own logic.

Known Issues and Limitations

  • Only exists as a smoke testing fixture within the Minke project, does not declare version compatibility information for external use, and cannot guarantee availability in third-party environments
  • The main process apply() is always an empty function and cannot extend business logic on the Node/desktop main process side

Read the usage guide →

Install steps, key points, FAQ and compatibility for this plugin — auto-derived from indexed fields.

Listing badge

Listed on deepseek-plugin.org
[![Listed on deepseek-plugin.org](https://img.shields.io/badge/listed_on-deepseek--plugin.org-007EC6)](https://deepseek-plugin.org/plugins/lencx/Minke/tests/fixtures/web-plugin)

Paste this markdown into your GitHub README to link back to this listing. The badge only states the listing — not a security endorsement.

← Back to plugin directory