Repository navigation
v0.2.0 — re-target at DeepSeek Harness 0.2
⚠️ Breaking re-target: this release supports DeepSeek Harness 0.2 onlyThe 0.1.x line was built on
@deepseek-ai/dsh-client-runtimeand thesettings.plugin.itemseat, both removed in DSH 0.2. DSH 0.2's install gate (which checkspeerDependencieson@deepseek-ai/dsh*) refuses 0.1.x outright, and the plugin would not load even if it were forced in. Stay onv0.1.2if you are still running DSH 0.1.x.
Re-targets the plugin at DeepSeek Harness 0.2 (0.2.0-rc.2).
Install
# from npm - name the range, see the cooldown note below
dsh plugin --profile <name> add @ltao0829/dsh-task-notify@^0.2.0
# or from Git, pinned to a release tag
dsh plugin --profile <name> add git+https://github.com/ltao0829/dsh-task-notify.git#v0.2.0Then restart dsh web and refresh the page. The settings page appears under Settings → Plugins → 任务完成提醒. On the first click or keypress the browser asks for notification permission — allow it to receive OS-level notifications.
Naming a version matters. pnpm 11 defaults
minimumReleaseAgeto 24 hours, so a release published less than a day ago is invisible to version resolution:dsh plugin add @ltao0829/dsh-task-notifysilently resolves to the previous version (0.1.0) and is then refused as incompatible. An explicit version or range is recorded inminimumReleaseAgeExcludeand installs immediately. The bare name resolves to 0.2.0 once the release is a day old.
Highlights
- Detection now folds three independent DSH 0.2 client sources instead of the retired single
sessions.liststore:ctx.sessions.list(catalog + Host baseline),ctx.uiSession.sessionStatus(live running state and the pending interaction), andctx.jobs.state(per-Session job rosters). - Background jobs are watched per Session via
IJobs.watchRows. The default opens onejob.liststream per Session observed running since page load; a new "Watch every session" setting switches to the whole catalog. - A pending interaction is tracked by its opaque request key, so a replacement request (approval, then a question) reminds again while a reconnect replay of the same request stays silent.
- Settings moved to the
settings.plugins.tabseat — a page in the Plugins section rather than the retiredsettings.plugin.itemcard. - Toast copy is now localized (
zh/en) through the plugin's own namespace instead of hard-coded Chinese.
What changed
Changed
- Client context types come from
@deepseek-ai/cordisplus each domain package's declaration merges;@deepseek-ai/dsh-client-runtimeis no longer referenced anywhere. - Host half is now inert — the
schemasteryConfigschema was dropped along with the dependency; the host half is a loader anchor and holds no settings. - Build externals track the 0.2 platform module table (
@deepseek-ai/dsh-client-storeand-ui-dockkitin;dsh-client-runtime,dsh-client-web-react, anddsh-client-schema-formout). - Theme tokens refreshed for the 0.2 alias table: the toast uses
--dsw-alias-bg-overlay, and the settings page no longer uses the removed--dsw-alias-label-tertiary. - Node.js floor raised to
>=22(DSH 0.2's toolchain requires it); CI matrix is now Node 22 and 24.
Added
- Manifest contract tests (
tests/manifest.spec.ts):manifestVersion, the web client platform, theengines.dshrange, per-peer range pinning, and patch/plugin identity agreement. tests/client-apply.spec.ts: drivesapply(ctx)end-to-end against a fake client context — the seat the 0.1.1 keyed-slot regression escaped through.tests/bundle.spec.tsand a new verification stage asserting the shippedlib/client.jsrequires platform modules only (a require the frozen module table cannot answer is a boot-time throw in the browser).- A "Watch every session" setting with
zh/encopy.
Fixed
- Installation is accepted again by DSH 0.2's compatibility gate. The retired
dsh.compatibilityblock and the 0.1.x peer ranges are gone; every DSH peer andengines.dshare pinned to^0.2.0-rc.2.
Removed
- The
dsh.compatibilitymanifest block (dshanddshReleasestables), which DSH 0.2 no longer reads. - The
schemasteryruntime dependency and the hostConfigschema. - The
dsh.taskNotify.v1storage key in favour ofdsh.taskNotify.v2, so a DSH 0.2 install starts from clean defaults rather than inheriting a record written by the 0.1.x line.
Verification
Verified against a real DSH 0.2.0-rc.2 in an isolated, disposable DSH_HOME (see docs/verification-evidence.md):
| Stage | Result |
|---|---|
pnpm pack |
tarball packed from the tagged commit |
dsh plugin --profile web add <tarball> |
accepted — not refused by the 0.2 compatibility gate |
dsh --profile web --dump-config |
task-notify present in the composed bundle tree |
dsh web boot |
boot document fetched at HTTP 200 (token redirect followed) and it references this plugin in the client module graph, so the browser half really is served |
| Shipped bundle | package/lib/client.js carries the __ModuleLoader__.load handoff; externals are only react and react/jsx-runtime |
dsh plugin remove |
plugin and its entry removed cleanly |
Local pipeline: typecheck ✅ · 62 tests passing (8 suites) ✅ · build ✅ · pnpm pack --dry-run ✅ · package metadata check ✅
Not covered by automation: the script does not drive a real browser, so in-page behavior (notification permission, Web Audio unlock, React rendering) is covered in jsdom by tests/client-apply.spec.ts and tests/notification.spec.ts rather than end-to-end.
Note on DSH 0.2's built-in reminders
DSH 0.2 ships its own scheduled reminder feature (dsh-schedule + a Schedules page, exposed to the model as the schedule_* tools). That is a different mechanism — a timer that fires a prompt. DSH still has no built-in OS-level notification when a turn or background job finishes (the session row only shows a small "done" dot), which is what this plugin provides.
Full changelog: CHANGELOG.md