988hj7tczd-oss/dsh-receipts ↗★ 0
dsh-receipts
Mine local DSH session logs (JSONL) into personal 'usage & impact' receipts: Markdown day/week/month reports plus a self-contained HTML receipt, cross-referenced with local git log. Zero-network mining, privacy-first (reads only your own dshHome).
安装
$
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:988hj7tczd-oss/dsh-receipts说明文档
阅读完整 README ↗安装与使用(DSH 插件)
构建并安装到 profile:
pnpm install # link 到 dsh-src 的依赖
pnpm build # tsc 编译 lib/
dsh plugin --profile add /path/to/dsh-receipts
装载后 agent 获得 receipts 工具:
| 参数 | 默认 | 说明 |
|---|---|---|
period | month | week=7 / month=30 / quarter=90 / year=365 或正整数天数(如 "14") |
repo | 无 | 项目名子串,过滤整个报告(匹配会话 cwd) |
outDir | dshHome | 报告输出目录 |
redactPaths | false | 绝对路径脱敏(/) |
sessionsRoot | $DSH_HOME/sessions | 覆盖会话日志根目录 |
git | true | git log 交叉验证开关(关闭时标注「无法交叉验证(被禁用)」) |
输出两个文件:receipts-.md 与 receipts-.html(自包含);
`` 为最近活动日/生成日的 UTC 日期,格式 YYYY-MM-DD(如 receipts-2026-08-20.md)。
命令行直接使用