Repository navigation
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.