Skip to content

v0.2.0 — re-target at DeepSeek Harness 0.2

Choose a tag to compare

@ltao0829 ltao0829 released this 01 Oct 17:55
· 11 commits to main since this release

⚠️ Breaking re-target: this release supports DeepSeek Harness 0.2 only

The 0.1.x line was built on @deepseek-ai/dsh-client-runtime and the settings.plugin.item seat, both removed in DSH 0.2. DSH 0.2's install gate (which checks peerDependencies on @deepseek-ai/dsh*) refuses 0.1.x outright, and the plugin would not load even if it were forced in. Stay on v0.1.2 if 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.0

Then 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 minimumReleaseAge to 24 hours, so a release published less than a day ago is invisible to version resolution: dsh plugin add @ltao0829/dsh-task-notify silently resolves to the previous version (0.1.0) and is then refused as incompatible. An explicit version or range is recorded in minimumReleaseAgeExclude and 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.list store: ctx.sessions.list (catalog + Host baseline), ctx.uiSession.sessionStatus (live running state and the pending interaction), and ctx.jobs.state (per-Session job rosters).
  • Background jobs are watched per Session via IJobs.watchRows. The default opens one job.list stream 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.tab seat — a page in the Plugins section rather than the retired settings.plugin.item card.
  • 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/cordis plus each domain package's declaration merges; @deepseek-ai/dsh-client-runtime is no longer referenced anywhere.
  • Host half is now inert — the schemastery Config schema 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-store and -ui-dockkit in; dsh-client-runtime, dsh-client-web-react, and dsh-client-schema-form out).
  • 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, the engines.dsh range, per-peer range pinning, and patch/plugin identity agreement.
  • tests/client-apply.spec.ts: drives apply(ctx) end-to-end against a fake client context — the seat the 0.1.1 keyed-slot regression escaped through.
  • tests/bundle.spec.ts and a new verification stage asserting the shipped lib/client.js requires 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 / en copy.

Fixed

  • Installation is accepted again by DSH 0.2's compatibility gate. The retired dsh.compatibility block and the 0.1.x peer ranges are gone; every DSH peer and engines.dsh are pinned to ^0.2.0-rc.2.

Removed

  • The dsh.compatibility manifest block (dsh and dshReleases tables), which DSH 0.2 no longer reads.
  • The schemastery runtime dependency and the host Config schema.
  • The dsh.taskNotify.v1 storage key in favour of dsh.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