插件目录 / UI & Skins / ex-setting
ex-setting
未验证 omdsh-dev
功能简介
DSH 的设置扩展插件。
未验证 — 尚未实测
DSH 的设置扩展插件。 尚未验证——请自行安装测试。
「未验证」表示我们的自动化 CI 尚未安装过该插件。功能描述与版本兼容性均为作者声明。这不是安全审计,也不代表对第三方代码的背书。
README
@deepseek-ai/dsh-ex-setting
English | 中文
The automatic DSH Web settings bundle. It combines the host-side configuration crawler with its browser settings navigation in one external package: the host enumerates registered settings namespaces and schema-bearing composition rows, while the client projects them into first-level settings sections and editors.
Repository shape
package.json # host/client package and dsh.bundle/dshClient manifests
cordis.patch.yml # profile layer that mounts the crawler
src/index.ts # host crawler plugin (service provide + Fabric handler binding)
src/routes.ts # crawler-owned webserver composition route
src/nav-scroll.ts # browser bundle rewrite contract (serveBrowserTransform)
src/invariant.ts # crawler invariant companion
src/client/ # browser settings page (store, section, crawler wire)
lib/ # generated host/client artifacts
docs/ # detailed host and client protocol references
tests/host/ # crawler, route, invariant, loader, and Fabric composition tests
tests/client/ # browser store and section tests
patches/ # host patch contract (empty: zero out-of-package changes)
scripts/ # verify:self-contained, host patch extraction/applier
.agents/skills/ # dsh-plugin-* contributor workflow
The two runtime faces share one package identity so Git/profile installation has one root artifact. The browser face is exported as @deepseek-ai/dsh-ex-setting/client and is selected by the package's dshClient manifest.
Bundle behavior
Installing the bundle adds the web-config-crawler row. That is the deployment-level decision to expose all registered settings namespaces and schema-carrying composition rows through the Web configuration plane. A profile can disable it:
- id: web-config-crawler
disabled: true
The crawler redacts secrets, applies path-addressed edits with schema resolution, persists complete rows into the personal overlay, and removes rows to restore lower bundle layers. The browser page keeps settings namespaces and composition rows source-distinct and renders schema fields, secret controls, reset, revision conflicts, restart notices, and live invalidation refreshes.
External zero-change design
This bundle ships with zero out-of-package host changes. Three mechanisms make that possible:
- Fabric exposure widening — the crawler is Fabric-required: its
cordis.patch.ymlrow carries the staticweb-config-crawler/exposed-namespacesstub under the row's own config and ships disabled, and thefabric-dshlauncher enables Fabric-required rows at launch. A plaindshboot therefore skips this bundle entirely (the app runs, the crawler stays unloaded), while a fabric-dsh boot loads it with the hooks installed and the gateway's privateexposedNamespaces()decision rewritten at load time; the crawler binds the matchingafterhandler when it mounts, and therequiredstub makes a boot where the transform bound nothing fail loud (seedocs/web-config-crawler.md). - Crawler-owned composition route — the browser half reads and edits composition rows through the crawler's own webserver route (
/dsh-config/crawler/composition,src/routes.ts) instead of a gateway RPC domain, so the write path adds nothing toapiproxyorconnection. - Served browser rewrite — the crawler serves the
ui-settings-generalclient bundle throughserveBrowserTransform, rewritingSettingsRootto publishweb-config-crawler/nav-scroll; the browser half registers the matchingbeforehandler that injects the dialog navigation scroll styles (seedocs/ui-settings-plugins.md).
The settings/composition wire protocol, API proxy handlers, slot host, and browser shell are supplied by the DSH version selected by the profile.
Development
The host packages (@deepseek-ai/dsh-*, @deepseek-ai/cordis) install from the npm registry: every runtime import declares them as peer + dev dependencies at the ^0.1.0-rc.0 series, and development imports resolve from this repository's own node_modules — no sibling checkout is required. The devDependencies also enumerate the peer closure of the test-only host tree (the apiproxy composition test imports the real gateway).
pnpm install
pnpm run typecheck
pnpm test
pnpm run build
pnpm run verify:self-contained
The prepare script builds both host and browser entries directly from src/, so Git installation does not require sibling project references. pnpm 10 may require the profile to allow the package's prepare script; only approve a pinned, trusted checkout.
CI
Two GitHub Actions workflows ship with the repository:
.github/workflows/ci.yml— every push tomainand every pull request: frozen-lockfile install,verify:self-contained, typecheck, tests, build, andprepare..github/workflows/release.yml— every push tomain: runs the build andprepare, packs the tarball (pnpm pack), and publishes it to a GitHub Release taggedv<version>frompackage.json. Bumpversionto cut a new release; re-pushing the same version refreshes that release's artifact.
Model Experience
This bundle adds no model-visible prompt text or tools. It exposes configuration only through the loopback Web settings surface; the owning DSH settings, composition, session, and permission services retain logging, redaction, and authorization semantics.
Known Limitations and Deferred Work
- Native Zod composition Config schemas remain file-configurable but are not rendered by the generic editor, which requires schemastery
toJSON(). - The crawler is intentionally broad; deployments that do not want automatic composition editing should disable the row and keep the gateway allowlist posture.
安装
装一次目录插件,之后本站所有插件都能让 DeepSeek Harness 自动找、自动装:
dsh plugin add dshbase-catalog 然后对 agent 说「帮我装 ex-setting」,它会在目录里找到并自动安装。文档:dshbase-catalog · 已验证场景包。
该插件是 GitHub 源码(未发 npm)——直接从仓库装:
Web profile:
dsh plugin --profile web add github:omdsh-dev/ex-setting Headless(CLI)profile:
dsh plugin --profile headless add github:omdsh-dev/ex-setting 实测报告
尚未 L3 验证——若已跑过,见下方失败备注。
备注:验证: install-fail (0.1.0-rc.6) 浏览全部待验证失败 →
使用场景
改变 dsh 的外观或交互方式——一套主题、皮肤或新面板,重塑工作区。
适合谁
在 web UI 里一待几小时、想让它按自己的习惯好看又好用的人。
二次开发建议
皮肤、面板和主题 token 是扩展点——写新皮肤、加面板,或与上游配色同步 token。