Repository navigation
Releases: LoveDoLove/dsh-token-saver
Releases · LoveDoLove/dsh-token-saver
Release list
v1.0.3
DSH Token Saver v1.0.3
Highlights
- Grep-pattern fix in the published build (commit
8562f48). The production grep path now reads the search pattern fromexec.argumentsviagrepPattern(payload.exec?.arguments)and folds non-matching lines, keeping matches plus context. The trackedlib/output shipped before this fix, so v1.0.2 did not contain it — v1.0.3 does. - Fail-open preserved. When no usable pattern is present,
foldGrepResultfalls back to head/tail truncation exactly as before; results with a non-matching or absent pattern are never dropped. - The pattern is read only for grep-like tools (
grep,rg,ripgrep,grep_search, …) and ignored for all other tools.
Changes since v1.0.2
package.json: version1.0.2→1.0.3.lib/strategies/tool-result-trim.js: rebuilt fromsrc/so the published artifact includes the grep-pattern fix (grepPatternhelper pluspattern: grepPattern(payload.exec?.arguments)in the grep fold path).- READMEs,
docs/benchmark-results.md, and the promotion drafts: install/release references and benchmark version labels updated to v1.0.3. - Compatibility and dependency settings are unchanged: DeepSeek Harness 0.2.x (>= 0.2.1-rc.1 < 0.3.0), Node.js >= 22.19.0, and the same peer dependency ranges as v1.0.2.
Documentation
- Benchmark methodology and results: docs/benchmark-methodology.md and docs/benchmark-results.md. The published byte-reduction figures were measured before this release on the same code path and are unchanged; they are byte reductions of synthetic input, not model token counts, token-cost savings, latency, or task-quality evidence. The B-production rows remain historical measurements whose generator is not committed to the repository.
Install
Pre-built artifact, no local build required:
dsh plugin --profile web add github:LoveDoLove/dsh-token-saver#v1.0.3
Or download dsh-token-saver-1.0.3.tgz from this release and install it as a local package.
Verification
- pnpm test: 160 passed (17 files)
- pnpm typecheck: 0 errors
- pnpm lint: 0 warnings / 0 errors
- pnpm build: success
- Tarball: 94 files, 65.3 kB, no node_modules; the packaged
lib/strategies/tool-result-trim.jscontains the grep-pattern fix
v1.0.2
DSH Token Saver v1.0.2
Highlights
- Persist cumulative RTK savings across restarts (~/.dsh/token-saver/stats.json); the Web dashboard now reports historical totals instead of resetting to zero.
- Prevent non-serializable tool results from breaking the post-execute hook (fail-open).
- Run RTK before the truncation threshold and merge LLM/stream stats into shared savings.
- Split compaction event counts (calls) from compacted text blocks (blocks); saved bytes remain exact across double-compaction passes.
Compatibility
- DeepSeek Harness 0.2.x (>= 0.2.1-rc.1 < 0.3.0)
- Node.js >= 22.19.0
- Peer dependencies: @deepseek-ai/cordis >=4.0.0 <5.0.0, @deepseek-ai/dsh-compaction >=0.2.0 <0.3.0, @deepseek-ai/schemastery >=3.18.0 <4.0.0
Install
Pre-built artifact, no local build required:
dsh plugin --profile web add github:LoveDoLove/dsh-token-saver#v1.0.2
Or download dsh-token-saver-1.0.2.tgz from this release and install it as a local package.
Verification
- pnpm test: 155 passed (17 files)
- pnpm typecheck: 0 errors
- pnpm lint: 0 warnings / 0 errors
- pnpm build: success
- Tarball: 94 files, 60.0 kB, no node_modules, imports cleanly from a clean install