Repository navigation
Releases
v2.0.3 - @deepseek-ai/dsh 0.2.x
Compatible with @deepseek-ai/dsh@0.2.0-rc.1.
Changes
- Widen the dsh peer range from ^0.1.0-rc.6 to >=0.1.0-rc.6 <0.3.0-0, so the compatibility preflight accepts the 0.2.x runtime. The old caret excluded 0.2.0.
- No code change: the host APIs this plugin binds (settings, host-webserver, token-meter, session-projection, compaction-basic) are identical in 0.2.0-rc.1. The only compaction-basic change is internal (tool history passed to the provider).
- Version 2.0.3.
Verification
- node --test tests/ - 4 passed.
v2.0.2 - fix threshold persistence on dsh 0.1.7-alpha.2
Fixes a real incompatibility with @deepseek-ai/dsh@0.1.7-alpha.2 that v2.0.1 missed.
Fixed
- No more crash on the removed settings API. 0.1.7-alpha.2 removed ctx.settings.register/get and the settings.yaml document behind it. The host half logged "settings register failed ctx.settings.register is not a function" and every check silently used the hardcoded 0.5 ratio.
- The threshold API route mounts again. webServer was missing from inject, so ctx.get('webServer') returned undefined at apply time and POST /dsh-auto-compact/api/* answered 405. The route now registers through the injected service.
- Per-session thresholds persist in the plugin's own JSON document at $DSH_HOME/dsh-auto-compact.json (default ~/.dsh/dsh-auto-compact.json), written atomically (tmp + rename). The client contract is unchanged, so the ring panel works without a client edit.
- Dropped the @deepseek-ai/schemastery dependency; it existed only for the removed settings schema.
Verification
node --test tests/ — 4 passed: inject declaration, store parsing, route registration + persistence, and cross-process reload.
Note: a server that already loaded v2.0.1 must be restarted to pick this up.
v2.0.1 — @deepseek-ai/dsh 0.1.7-alpha.2
Superseded by v2.0.2. The compatibility statement below was based on a symbol check only. On @deepseek-ai/dsh@0.1.7-alpha.2, ctx.settings.register no longer exists and the custom webServer route did not mount, so thresholds fell back to the default 50% and the panel could not save. Install v2.0.2 instead.
Adapted for @deepseek-ai/dsh@0.1.7-alpha.2.
Changes
- Verified API-compatible with 0.1.7-alpha.2 — no host or client code change required.
@deepseek-ai/schemasteryaligned to^3.18.4.- Version
2.0.1. - README (中文 / English) now documents installing from a local checkout, since npm publishing is on hold.
Verification
API surface checked against the 0.1.7-alpha.2 package tree: settings.register/update, webServer.register, sessionProjections.snapshot + contextPressure (token-meter projection), tokenMeter.measure, agentPresets.serviceFor + compaction compactIfNeeded, agent/pre-step, agent/turn-stopping, agents.list(), timer.interval.