hj01857655/dsh-plugins--packages-dsh-spill-hygiene ↗★ 0

dsh-spill-hygiene

Reclaims orphaned subprocess spill files that dsh's own spill sweep never sees. 适合长期运行DSH、需要定期自动释放系统临时目录空间的用户。

Package
dsh-spill-hygiene
Compatibility
Unverified
Cordis peer range
~4.0.4
Version
0.1.0
License
MIT
Last updated
Oct 16, 2026

Install

$npx -p @deepseek-ai/dsh dsh plugin --profile web add github:hj01857655/dsh-plugins#5a7f8533f4dcd4f85ec3ebd7e9fa0a071445bf65&path:packages/dsh-spill-hygiene

Configuration

Environment variables, not ctx.config — this package does not assume the host opened a config namespace for it.

VariableDefaultMeaning
DSH_SPILL_HYGIENE_APPLYunset (report only)Set to 1 to actually delete
DSH_SPILL_HYGIENE_MAX_AGE_DAYS30Retention, aligned with dsh's own cleanupPeriodDays
DSH_SPILL_HYGIENE_INTERVAL_MS86400000Sweep period
DSH_SPILL_HYGIENE_FIRST_DELAY_MS60000Delay before the first sweep
DSH_SPILL_HYGIENE_TMP_DIROS temp dirWhat to scan

ctx.effect is used for scheduling rather than ctx.interval: the latter comes from cordis-plugin-timer's declaration merging, which this package does not declare as a peer dependency. Cordis core mixes effect in (cordis/lib/types/fiber.d.ts), and the returned disposer clears both timers when the plugin unloads.