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

dsh-spill-hygiene

自动清理DSH自身清理机制无法覆盖的孤儿临时子进程文件 适合长期运行DSH、需要定期自动释放系统临时目录空间的用户。

包名
dsh-spill-hygiene
兼容性
待验证
Cordis 依赖范围
~4.0.4
版本
0.1.0
许可证
MIT
最近更新
2026年10月16日

安装

$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.