988hj7tczd-oss/dsh-receipts0

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

包名
dsh-receipts
版本
0.1.0
许可证
MIT
最近更新
2026年8月24日

安装

$npx -p @deepseek-ai/dsh dsh plugin --profile web add github:988hj7tczd-oss/dsh-receipts

安装与使用(DSH 插件)

构建并安装到 profile:

pnpm install          # link 到 dsh-src 的依赖
pnpm build            # tsc 编译 lib/
dsh plugin --profile  add /path/to/dsh-receipts

装载后 agent 获得 receipts 工具:

参数默认说明
periodmonthweek=7 / month=30 / quarter=90 / year=365 或正整数天数(如 "14"
repo项目名子串,过滤整个报告(匹配会话 cwd)
outDirdshHome报告输出目录
redactPathsfalse绝对路径脱敏(/
sessionsRoot$DSH_HOME/sessions覆盖会话日志根目录
gittruegit log 交叉验证开关(关闭时标注「无法交叉验证(被禁用)」)

输出两个文件:receipts-.mdreceipts-.html(自包含); `` 为最近活动日/生成日的 UTC 日期,格式 YYYY-MM-DD(如 receipts-2026-08-20.md)。

命令行直接使用