task-ledger 1.3.42 → 1.3.44

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/SKILL.md CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  name: task-ledger
3
3
  description: 本地任务台账,跨会话记录在办任务的归属、进度与起止。当用户要登记一件新的事(新建任务 / 建个坑 / 这活我领了)、记录已有任务的进展(接着做 / 记一条进展 / 这轮先记下)、查看任务状态或历史(现在该做什么 / 这活谁在做 / 上周做过什么)、给任务结案或退回(做完了 / 验收通过 / 不做了 / 退回待认领)、整理标签或检查台账一致性时加载;只是改代码、讨论方案时不要用。
4
- version: 1.3.42
4
+ version: 1.3.44
5
5
  allowed-tools: Read,Edit,Bash,Grep
6
6
  ---
7
7
 
@@ -187,6 +187,9 @@ allowed-tools: Read,Edit,Bash,Grep
187
187
  - `owners` 只有加 `--by-owner` 才出现;人名实时取自名册,不进缓存。
188
188
  - 上限按**时间跨度**定,不按读几个文件定:一次最多 10 年(3660 天);`day` 粒度另有 365 天上限(一天一桶没人看十年)。超了直接报错,不返回半截数据。缓存文件不计入任何上限(命中的月份根本不读源文件)。
189
189
  - 已过完的本地月会落一份本机缓存(`~/.taskledger/cache/trend/`,不进 git、随时可删);当月永远实时算。缓存不改变**能查多久**(历史文件从不清理,10 年就是 120 个文件在盘上),只决定**查得多快**。
190
+ - 缓存分两层:**整月缓存**只写你查的那几个月;另有**月度锚**(`anchors.json`,只记每个月末的未结,全局 + 按人,几十字节/月)。
191
+ - 有左锚(上个月末的未结)⇒ 从锚往右累计,**只读那一段的月份**,查再久以前也不碰中间的月份;
192
+ - 没有左锚(第一次查某段历史)⇒ 从今天的在办快照往回推一次,沿途把每个月的锚补上,并在 `warnings` 里告诉你读了几个月。
190
193
 
191
194
  举例:「最近 8 周每周完成多少」→ `stats --trend week`;「今年每月按人看」→ `stats --trend month --last 12m --by-owner`。
192
195
 
@@ -221,7 +224,6 @@ allowed-tools: Read,Edit,Bash,Grep
221
224
  | `--since` / `--until` | 按**结案时间**筛(只给日期含当天) |
222
225
  | `--months N` | 最近 N 个自然月(与 `--since` / `--until` **互斥**,同传直接报错) |
223
226
  | `--limit N` | 最近 N 条 |
224
- | `--count-only` | 只输出 `{"count","capped"}`(与 `--json`、`--limit` 都互斥) |
225
227
  | `--json` | JSON 输出;**每条记录带 `mine`**(是不是自己结的,只比 uuid) |
226
228
 
227
229
  干什么:按结案时间倒序排列,每条一行,只列结案时间、负责人、标题,其他都不在表格里;要摘要 / 分类 / 标签 / 完整时间加 `--json`。不给时间参数 = 最近 3 个自然月;最多 13 个月,超了直接报错。
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "task-ledger",
3
- "version": "1.3.42",
3
+ "version": "1.3.44",
4
4
  "description": "Task-ledger skill for coding agents: per-workspace progress tracking (ledger/pool.json + owners/<hash>.json shards + owners.json index, history, worklog) driven by a CLI script. Standalone install for CodeBuddy and other agents; also bundled inside the dsh-task-ledger DSH plugin.",
5
5
  "keywords": [
6
6
  "skill",
@@ -24,7 +24,7 @@
24
24
  - **「--release 与 --owner 不能同时给」**:释放不带人、交接不带释放,分开跑两次。
25
25
  - **「--owner 只收身份 uuid(形如 …),不接受名字 / 邮箱:X」**:身份参数传了名字。改传 uuid;要按显示名找人就加到查询里:`list --owner-name <片段>` / `history --owner-name <片段>`。
26
26
  - **「--owner 不能和 --mine / --pool 一起用」**:范围只能选一种。要按某个人筛就 `--owner <uuid>`,要看自己的就 `--mine`。
27
- - **「--count-only 与 --limit 不能同时用」/「--limit 必须 ≥ 1」**:计数不截断、列表才截断;`--limit 0` 没有意义。
27
+ - **「--limit 必须 ≥ 1」**:`--limit 0` 没有意义。
28
28
  - **「时间区间反了:--since(…)晚于 --until(…)」**:两端换过来。
29
29
  - **「认领目标不是 uuid:X」**:`init --claim` 抄了老台账的邮箱 / 名字键。老台账先迁到 uuid 身份;这台机器先 `init --new --name=<名字>`。
30
30
  - **「名册里没有 uuid=X」**:`init --claim` 抄了一个不在 `owners.json` 里的 uuid。不带参数跑一次 `init` 看可选用户再选。
Binary file
Binary file