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、需要定期自动释放系统临时目录空间的用户。
설치
$
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:hj01857655/dsh-plugins#5a7f8533f4dcd4f85ec3ebd7e9fa0a071445bf65&path:packages/dsh-spill-hygieneConfiguration
Environment variables, not ctx.config — this package does not assume the host opened a
config namespace for it.
| Variable | Default | Meaning |
|---|---|---|
DSH_SPILL_HYGIENE_APPLY | unset (report only) | Set to 1 to actually delete |
DSH_SPILL_HYGIENE_MAX_AGE_DAYS | 30 | Retention, aligned with dsh's own cleanupPeriodDays |
DSH_SPILL_HYGIENE_INTERVAL_MS | 86400000 | Sweep period |
DSH_SPILL_HYGIENE_FIRST_DELAY_MS | 60000 | Delay before the first sweep |
DSH_SPILL_HYGIENE_TMP_DIR | OS temp dir | What 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.