rea
morluto
Reverse engineer anything with agents, from app behavior down to native binaries.
PROJECT TOPICS
INSTALL REFERENCE
dsh plugin --profile web add github:DMu03/DSH-ModelEntry
该命令指向仓库当前默认分支;尚无绑定当前 commit 的完整验证结果。
PROJECT README
中文 | English
A DSH (DeepSeek Harness) add-on: adds a Models icon to the sidebar's panel icon list. Clicking it opens DSH's model management page (Settings → Models) directly.
An independent plugin that does not modify the application itself — not a single byte of resources/app.asar is touched. It only uses official plugin slots, so DSH updates cannot overwrite it.
engines.dsh; 0.2.x is the tested line).DSH ships an official CLI, published on npm as @deepseek-ai/dsh, and its plugin subcommand hands its arguments to pnpm and then selects the new bundle into dsh.profile.bundles for you:
npx -y @deepseek-ai/dsh@latest plugin --profile desktop add github:DMu03/DSH-ModelEntry#v1.0.0
https://github.com/DMu03/DSH-ModelEntry/archive/refs/tags/v1.0.0.tar.gz, an absolute local path, or the bare package name dsh-models-entry once it is published to npm.pnpm on PATH. Open the desktop app once first so its profile exists, and quit it before running the command.npx -y @deepseek-ai/dsh@latest plugin --profile desktop remove dsh-models-entry.~/.dsh/profiles/desktop/package.json, add "dsh-models-entry": "file:<absolute path to this repo>" to dependencies, and add "dsh-models-entry" to dsh.profile.bundles.pnpm install in that profile directory (the bundled pnpm under runtime/primary-runtime works too), or copy package.json + lib + cordis.patch.yml into node_modules/dsh-models-entry.The desktop app's Settings → Plugins page lists the installed bundles and lets you switch them on and off.
order: 20) to the sidebar panel icon column.| Piece | Official interface used |
|---|---|
| Sidebar icon | slot sidebar.panellist (list; the registration id doubles as the panel key) |
| Main panel | slot main (keyed, key equals the icon id) |
| Opening the Models page | ctx.slots.entries('sidebar.settings')[0].store.create().actions.openSection('models') |
| Returning to the chat | ctx.layout.selectPanel(null) |
| Copy | ctx.locale.register('models-entry', { zh, en }) |
The third row is the interesting one. The openSettings(sectionId) callback is only handed to the occupant of settings.launcher, and that seat is taken by the account menu, so third-party plugins cannot receive it. The open/close state of the Settings dialog already belongs to the store of the sidebar.settings registration. The core's register() splits registration options in two: key/id/order/label/priority go into entry.options, while store/inject/children/locale/registrant stay as sibling fields of options — so the store must be read as entry.store (entry.options.store is undefined). ui-settings-general pins create() so it always returns the same instance.
Why the panel exists at all: a click in sidebar.panellist means layout.selectPanel(id) — it switches the main panel, it does not open a dialog. So the only entry point for an icon click is the panel mount: on mount it opens Settings, then hands the main column back to the conversation.
The components deliberately do not use the registration inject / locale faces; callbacks and copy come from the apply closure, which removes one unknown from the "did the injected face reach the component" question.
lib/client.js client bundle (hand-written __ModuleLoader__ factory, no build step)
lib/index.js host half: a side-effect-free loader entry
test/client-selftest.mjs offline self-test (fake window/react/ctx, no DSH needed)
cordis.patch.yml bundle patch: inserts this plugin
package.json declares dsh.bundle.patch / dsh.client
LICENSE MIT
node --check lib/client.js
node --check lib/index.js
node test/client-selftest.mjs
The self-test fakes window, react and ctx, runs apply(), then asserts: the icon registers into sidebar.panellist with id model-manager, the panel registers into main with the same key, mounting the panel calls openSection('models') and then selectPanel(null). A second case removes the settings shell and asserts the panel renders the failure reason.
npx -y @deepseek-ai/dsh@latest plugin --profile desktop remove dsh-models-entry, or remove the two lines from dsh.profile.bundles / dependencies by hand. Restart afterwards.
sidebar.settings registration (actions.openSection). If a major DSH release changes the settings shell store, the panel displays the concrete failure instead of breaking the UI.models (registered by ui-settings-models). If upstream renames it, change MODELS_SECTION_ID in lib/client.js.sidebar.panellist semantics.MIT — see LICENSE.
CLASSIFICATION EVIDENCE
系统优先读取 GitHub Topics,再与站内分类词典和词根规则比对。当前命中: deepseek、deepseek-harness、deepseek-harness-plugin。