deepseek-harness
deepseek-ai
DeepSeek Harness: Everything is a Plugin.
PROJECT TOPICS
PROJECT README
Adds a Restart DSH button to DSH Desktop → Settings → General (通用设置). It sits directly below「繁忙时 Enter 键行为」and lets you restart the DSH Desktop application with one click, using DSH's official graceful restart facility.
settings.general.item)ctx.desktopRuntime.requestRestart() → graceful Cordis teardown +
app.relaunch() + app.exit(0)) — no shell, no kill, no sudoModal + Button primitives) before restarting--dsw-alias-*) — no hardcoded colorsLocal install into a DSH web profile (additive, backed-up edits):
~/.dsh/profiles/web/package.json dependencies:"@y2zyyr/dsh-restart-button": "link:/path/to/dsh-restart-button"
@y2zyyr/dsh-restart-button to dsh.profile.bundles.pnpm install in the profile directory.The plugin's own cordis.patch.yml registers the Loader entry; the host half is
loaded by Cordis and the browser half is served as
/plugins/dsh-restart-button/client.js.
compatibility or advanced mode —
provides the desktopRuntime service, so the button is enabled.dsh web (headless browser, no desktop shell): the button renders but is
disabled with a note — the restart capability is not available there.^0.1.0-rc.6 (compatible with the DeepSeek Harness Desktop runtime 0.1.0-rc.7; v0.1.1 widened the range so the DSH Desktop market verifier accepts the package).The host half registers a browser-trust-fenced route (/dsh-restart-button/api,
loopback / same-origin only) and calls the official
ctx.desktopRuntime.requestRestart() when a desktop shell is present. The
official implementation disposes the whole Cordis plugin tree (flushing settings /
session state, 5 s grace), then app.relaunch() + app.exit(0). This is a
graceful restart — never a process kill. If the desktop runtime is absent, the
route reports restartable: false and the client disables the button.
desktopRuntime
service; the plugin never spawns kill/pkill/osascript/sudo./tmp/dsh-restart-button-test/ used purely for local verification, and it is
never shipped as telemetry.webServer (route) and
optionally desktopRuntime; the client only slots/locale.pnpm installpnpm typecheck (tsc, no emit)pnpm test (node --test; real Cordis integration tests)pnpm build (scripts/build.mjs → lib/index.js + lib/client.js)CLASSIFICATION EVIDENCE
系统优先读取 GitHub Topics,再与站内分类词典和词根规则比对。当前命中: 无有效分类标签。