rea
morluto
Reverse engineer anything with agents, from app behavior down to native binaries.
PROJECT TOPICS
INSTALL REFERENCE
dsh plugin --profile web add github:ken95573/dsh-model-show
该命令指向仓库当前默认分支;尚无绑定当前 commit 的完整验证结果。
PROJECT README
English | 简体中文
The composer's model selector in DSH Web shows Provider/Model instead of a bare model name, so the picked model always names the provider it came from — and nothing else about the selector changes.
| Composer trigger | |
|---|---|
| Before | Example Chat · High |
| After | Example Provider/Example Chat · High |
Above: provider OpenCode Zen, model DeepSeek V4.1 Flash; the trailing Default is the
thinking-effort suffix DSH already appends.
displayName) — no hard-coded vendor list.DeepSeek-V4.1-Flash → 1017) and keeps following
whatever the running DSH build ships.>= 0.2.2-rc.1 < 0.2.3-0, web client platform.@deepseek-ai/dsh-client-ui-model-selection) must stay
enabled — this plugin reuses its modelDirectories service and only shadows the composer seat.
The built-in label plugin (…deepseek-model-label-1017) must stay enabled too; it draws the badge.displayName), e.g. Example Provider.Plugin market — search the npm package name dsh-model-show, install, enable.
Desktop CLI (the reserved desktop profile is managed only by the app's own CLI):
"%LOCALAPPDATA%\Programs\DeepSeek Harness\resources\runtime\cli\bin\dsh.cmd" plugin --profile desktop add dsh-model-show
From GitHub or a local directory, replace the package name with github:<user>/dsh-model-show or
"C:\path\to\dsh-model-show". Update with an explicit version
(add dsh-model-show@<version> — see releases; the registry latest can lag behind rc builds); remove with
plugin --profile desktop remove dsh-model-show.
Let the agent do it — plugin_manager, action: install_bundle, target = package directory.
| Action | Effect |
|---|---|
| Install, enable or disable from the plugin UI or market | DSH recomposes the tree in place; with HMR present (the Desktop build ships it) it applies without a restart |
dsh plugin … add from a shell, or hand-editing the profile |
Disk-level change — restart once |
| Disable the plugin | The slot entry is disposed and the built-in seat takes over: the trigger returns to the plain model name, no leftovers |
If DSH ever answers “restart required” after a UI action, it is one of four documented reasons (package moved, host module touched, unmanaged plugin, module comparison) — none apply here.
Example Chat → Example Provider/Example Chat (plus · High when the model has a
thinking effort).Provider/Model text.conversation.input.model is a single slot: exactly one entry renders, and this plugin registers
at priority: -1 so it shadows the built-in seat. DSH only injects a renderSlot face into entries
that declare children, and the child label slot may be declared only once (by the built-in seat) —
so the plugin composes that child slot itself:
createElement, so a hook component keeps its own hooks;min-width: 0, max-width: 100%, overflow: hidden,
ellipsis), so a self-contained pill cannot blow up the trigger;deepseek-model-label); anything else is
appended beside it instead of dropped.Side effect: those extra decorations also appear in the dropdown rows — the platform renders that slot per row too.
Menu rows don't show the provider — a bug? No. Only the trigger is rewritten, so grouping and search stay predictable.
Badge gone? Enable the built-in …deepseek-model-label-1017 plugin; the badge is a replayed
decorator, not a string this plugin prints.
Market card says host requirement unknown? The curated catalog fills its npm field from the
registry on its own schedule; once it has, the card shows the version and engines.dsh and installs
from the registry.
Installed but nothing changed? Check the built-in model selection plugin is enabled and that the
profile's dsh.profile.bundles still lists dsh-model-show (a broken declaration can be dropped
during a host upgrade) — re-add the row and restart.
No network requests, no telemetry. It reads only what DSH exposes (the session's model catalog, the locale dictionaries, the slot registry) and never writes your catalog, credentials or settings. The published package is 12 files: code, locales, icon, screenshot, patch, licence/notice, readmes.
npm test # manifest, vendoring edits, label composition, package whitelist
npm run vendor # re-extract the built-in bundle and re-apply the edits
npm run vendor:check # non-zero exit when the shipped bundle drifts
npm run vendor reads …\resources\app\dsh\node_modules\@deepseek-ai\dsh-client-ui-model-selection\lib\client.js
from the installed app (newer builds ship unpacked, so --from <client.js> and --asar <app.asar>
are both accepted). If upstream moves an anchor it fails loudly instead of emitting a broken bundle.
lib/client.js is compared byte-for-byte and normalised to LF, so a CRLF checkout breaks both
npm test and vendor:check.
| Path | Purpose |
|---|---|
lib/client.js |
vendored browser bundle (11 documented edits) |
lib/index.js, cordis.patch.yml |
host half (empty apply) and the row that mounts it |
scripts/vendor-from-asar.mjs |
extract, edit, verify |
tests/*.test.mjs |
bundle assertions, label composition, publish whitelist |
lib/client.js is a vendored copy of the built-in bundle, so it still relies on the browser module
table's dsh-client-ui-primitives, cordis and dsh-client-store (declared in
dsh.client.external). A future refactor of the built-in selector can invalidate it; engines.dsh,
the vendoring script and the test suite are the three guards.min(360px, 45cqw) trigger width: a
long Provider/Model is ellipsised, never wrapped.Provider/Model.MIT. lib/client.js derives from @deepseek-ai/dsh-client-ui-model-selection (MIT, Copyright (c)
DeepSeek); see NOTICE.md.
CLASSIFICATION EVIDENCE
系统优先读取 GitHub Topics,再与站内分类词典和词根规则比对。当前命中: 模型。