rea
morluto
Reverse engineer anything with agents, from app behavior down to native binaries.
PROJECT TOPICS
INSTALL REFERENCE
dsh plugin --profile web add github:masknull/dsh-fetch-models-search
该命令指向仓库当前默认分支;尚无绑定当前 commit 的完整验证结果。
PROJECT README
Add a search box to the Fetch available models dialog in DSH settings → Models — filter the candidate model list as you type.
A pure browser-side DSH plugin. It injects a search input above the candidate list opened by Fetch available models and filters rows in real time (case-insensitive substring match on the model id). It does not modify or patch any component code — it is a self-contained DOM enhancement that degrades to a no-op when the dialog is not present.
MutationObserver (frame-coalesced via requestAnimationFrame) re-applies the current filter whenever the candidate list is rebuilt.display toggles and one injected style element; uninstall restores the page exactly.zh ⇒ Chinese).import any @deepseek-ai module at runtime and ships its complete __ModuleLoader__.load closure factory wrapper.Install from GitHub into the web profile:
dsh plugin --profile web add github:masknull/dsh-fetch-models-search
Or, from a local checkout:
dsh plugin --profile web add link:D:\.dsh\plugins\dsh-fetch-models-search
# or from the package directory itself:
dsh plugin --profile web add .
Restart DSH Desktop / the dsh service after installing. The client-module graph (
window.__DSH_BOOT__) is composed at startup; a page refresh alone will not pick up a newly added plugin bundle.
ui-primitives Modal rendered via createPortal into document.body — role="dialog" + aria-modal="true". Its unique structural fingerprint is a <ul> whose <li> children contain input[type=checkbox] (other dialogs, e.g. the delete-confirmation dialog, have no such list). No CSS-module hash class names are used, so the anchor is immune to theme/language changes.<input type="search"> is inserted immediately before the candidate <ul>; a <style> element with --dsw-alias-*-token styling is injected once into <head>.display: none. A "no matching models" hint appears when the query yields nothing and disappears when cleared.apply(ctx) registers the observer and hands a cleanup back through ctx.effect; the plugin unload restores everything (observer disconnected, style removed).dsh plugin --profile web remove dsh-fetch-models-search
| Path | Purpose |
|---|---|
cordis.patch.yml |
bundle patch — inserts the fetch-models-search loader row |
lib/index.js |
host half — empty apply (the row must exist host-side; the browser half is discovered via the dsh.client declaration) |
lib/client.js |
browser half — search-box injection + filtering |
scripts/verify.mjs |
jsdom end-to-end verification (18 assertions) |
node scripts/verify.mjs
The script loads lib/client.js through a simulated window.__ModuleLoader__, builds a dialog DOM isomorphic to the real picker, and asserts: correct dialog targeting (no false positives on other dialogs), injection, filtering, checkbox isolation, filter persistence across re-renders, no-match hint, re-open re-injection, and lifecycle cleanup.
CLASSIFICATION EVIDENCE
系统优先读取 GitHub Topics,再与站内分类词典和词根规则比对。当前命中: model、models、模型。