elk-9527/dsh-auto-archive ↗★ 0

dsh-auto-archive

Automatically archives idle DSH conversations after a configurable number of days and clears the expired projection cache of archived sessions, without deleting transcripts or attachments.

套件
dsh-auto-archive
相容性
待驗證
版本
0.1.0
授權
MIT
最近更新
2026年10月26日

同名套件的其他儲存庫

安裝

$npx -p @deepseek-ai/dsh dsh plugin --profile web add github:elk-9527/dsh-auto-archive

Configuration / 配置

Stored at ~/.dsh/auto-archive/config.json (created automatically; editable from the panel):

{
  "version": 1,
  "autoArchive": { "enabled": true, "idleDays": 14, "checkIntervalMinutes": 30 },
  "cacheCleanup": { "enabled": true, "unusedDays": 90 },
  "protect": { "pinnedSessions": true, "sessionIds": [], "workspaces": [] },
  "limits": { "maxOperationsPerRun": 50 },
  "dryRun": false
}
  • idleDays — a session whose last activity is older than this is archived. Last activity = max(transcript mtime, createdAt).
  • unusedDays — an archived session idle longer than this has its projection cache removed.
  • protect.workspaces — workspace id or a case-insensitive cwd fragment; matching workspaces are never archived.
  • dryRun: true — every automatic run becomes a preview.
  • limits.maxOperationsPerRun — caps one run, so a first launch cannot sweep the whole history at once.
  • Run state lives in ~/.dsh/auto-archive/state.json (atomic writes, last 30 runs).