dsh-commit-journal 0.3.0 → 0.6.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,26 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.6.0
4
+
5
+ - Sync: store per-commit diff stats (`additions` / `deletions` / optional `filesChanged`); no file path list; no bulk backfill of old rows
6
+ - Providers: local via `git log --numstat`; GitLab `with_stats`; Codeup/GitHub per-SHA GetCommit (concurrency 4, 429 backoff) when list omits stats; each sync backfills up to 100 older rows missing stats
7
+ - Codeup: no `/diff` fallback (GetCommit stats only); GitHub omits `filesChanged` when files list is truncated at 300
8
+ - Reports / daily exports / panel: show `+a −d` (and files when known); report header sums stats over included commits
9
+ - Activity: range totals `+/−` in stats cards; per-day tooltip includes line stats when present
10
+
11
+ ## 0.5.0
12
+
13
+ - Reports (optional): `groupBy=ticket` merges commits by ticket id (`[ABC-123]` / `#123` / `ABC-123`); no-ticket commits stay repo-grouped
14
+ - Reports: conventional message parse (`type`/`scope`/`ticket`/bullets); failure degrades safely
15
+ - Settings: `reportGroupBy` default remains `repo`
16
+
17
+ ## 0.4.0
18
+
19
+ - Reports: default exclude merge commits; optional type/author blacklists via settings
20
+ - Reports: `groupBy` = `repo` (default) | `day` | `flat`; header shows raw → included counts
21
+ - Reports: week/month attendance section vs statutory workdays (local cache; wording avoids “didn’t work”)
22
+ - Agent tools: `get_period_report` gains `groupBy` / `excludeMerge` / `includeAttendance`; settings update for report filters
23
+
3
24
  ## 0.3.0
4
25
 
5
26
  - Providers: GitLab (incl. self-hosted) and GitHub / GitHub Enterprise adapters (GitLab pending live verification; GitHub tested)
package/README.md CHANGED
@@ -14,6 +14,10 @@ DeepSeek Harness (`dsh`) 插件:按账号选择 **远程拉取**(Codeup / Gi
14
14
 
15
15
  **定位**:适合「未 clone / 不想逐仓告知路径」的跨仓提交材料,或「本机多根目录批量索引」。
16
16
 
17
+ ![账号面板](assets/screenshot-accounts.png)
18
+
19
+ ![活跃热力图](assets/screenshot-activity.png)
20
+
17
21
  ## 安装
18
22
 
19
23
  推荐(npm):
@@ -114,10 +118,10 @@ feat(smart-patrol): H5 今日任务对接分页并触底无限加载
114
118
  | `upsert_account` / `remove_account` | 创建、更新、删除;`mode=local` 时填 `localRoots`,无需 token |
115
119
  | `sync_commits` | 增量同步(remote API 或 local `git log`) |
116
120
  | `list_repos` | 仓库列表;`refresh` 时 remote 拉 API / local 重扫 |
117
- | `query_commits` | 按日期 / 仓库 / 关键词查本地提交 |
118
- | `get_period_report` | 日 / 周 / 月 / 自定义区间 Markdown 材料(可落盘) |
121
+ | `query_commits` | 按日期 / 仓库 / 关键词查本地提交(含增删行汇总字段,旧数据可缺) |
122
+ | `get_period_report` | 日 / 周 / 月 / 自定义区间 Markdown(默认排除 merge、按仓库分组;可选 `groupBy=ticket`;周/月含出勤对照;页头/条目含 `+/−` 汇总;可落盘) |
119
123
  | `get_activity_heatmap` | 热力统计;传 `date` 可取单日明细 |
120
- | `update_journal_settings` | 同步间隔、回溯天数、导出目录等 |
124
+ | `update_journal_settings` | 同步间隔、回溯、导出目录、报告过滤与默认 `reportGroupBy` 等 |
121
125
 
122
126
  ## 可直接对 Agent 说的提示词
123
127
 
@@ -139,6 +143,18 @@ feat(smart-patrol): H5 今日任务对接分页并触底无限加载
139
143
 
140
144
  建议流程:`list_accounts` →(缺数据则)`sync_commits` → `query_commits` / `get_period_report` / `get_activity_heatmap`。
141
145
 
146
+ ### 报告选项
147
+
148
+ **通用底座(默认)**
149
+
150
+ - **过滤**:默认排除 merge;可用设置 `reportExcludeTypes` / `reportExcludeAuthors`(默认空),或单次传 `excludeMerge`
151
+ - **分组**:`groupBy=repo`(默认)| `day` | `flat`
152
+ - **出勤对照**:仅周/月;按法定工作日对照本地缓存是否有提交(文案为「本地缓存无提交」);`includeAttendance=false` 可关
153
+
154
+ **可选增强**
155
+
156
+ - **`groupBy=ticket`**:按提交说明中的工单号归并(`[ABC-123]` / `#123` / `ABC-123`);无工单仍按仓库列出。也可用设置 `reportGroupBy=ticket` 作为默认。
157
+
142
158
  ## 数据目录
143
159
 
144
160
  ```text
@@ -157,6 +173,9 @@ feat(smart-patrol): H5 今日任务对接分页并触底无限加载
157
173
  - [x] 本机 git 根目录扫描(按账号)
158
174
  - [x] GitLab(含自建)— 已接入,**待实测**
159
175
  - [x] GitHub / GitHub Enterprise — 已接入并实测(含公司代理 TLS)
176
+ - [x] 报告通用底座(merge 过滤、按仓库/按日、法定工作日出勤对照)
177
+ - [x] 报告可选增强(conventional 解析 / `groupBy=ticket`)
178
+ - [x] 变更汇总(增删行 / 可得时的文件数;不存路径;同步写入,并每轮最多回填 100 条缺 stats 历史)
160
179
 
161
180
  ## License
162
181