dsh-task-ledger 0.0.120 → 0.0.122

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.
@@ -10,8 +10,9 @@
10
10
  */
11
11
  /** 缓存有效期(2026-10-18 拍板 1.5s:够挡同一屏的重复读,短到不会让人看到旧数据)。 */
12
12
  export declare const CACHE_TTL_MS = 1500;
13
- /** 缓存的操作种类(= skill 脚本子命令;worklog 不进缓存故不在此列)。 */
14
- export type CacheOp = "list" | "history" | "stats" | "owners";
13
+ /** 缓存的操作种类(= skill 脚本子命令;worklog 不进缓存故不在此列)。
14
+ * `history` 已从插件侧消失(2026-10-29:本周 / 上周完成改取 `stats --trend` 的桶),不再单列。 */
15
+ export type CacheOp = "list" | "stats" | "owners";
15
16
  /** 缓存键:`op:workspace:filter` 三条信息都要,否则不同筛选 / 不同工作区会串味。 */
16
17
  export declare function cacheKey(workspaceId: string, op: CacheOp, detail: string): string;
17
18
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dsh-task-ledger",
3
- "version": "0.0.120",
3
+ "version": "0.0.122",
4
4
  "description": "Task ledger board for dsh (DeepSeek Harness): read-only board over task-ledger skill workspaces. The task-ledger skill is bundled — install the plugin, get the skill globally.",
5
5
  "keywords": [
6
6
  "deepseek",
package/skill/SKILL.md CHANGED
@@ -224,10 +224,12 @@ allowed-tools: Read,Edit,Bash,Grep
224
224
  | `--since` / `--until` | 按**结案时间**筛(只给日期含当天) |
225
225
  | `--months N` | 最近 N 个自然月(与 `--since` / `--until` **互斥**,同传直接报错) |
226
226
  | `--limit N` | 最近 N 条 |
227
- | `--json` | JSON 输出;**每条记录带 `mine`**(是不是自己结的,只比 uuid) |
227
+ | `--json` | JSON 输出;**每条记录带 `mine`**(是不是自己结的,只比 uuid);`count` 是**返回条数**(被 `--limit` 截断后),`capped` 为 true 表示还有更多没返回 |
228
228
 
229
229
  干什么:按结案时间倒序排列,每条一行,只列结案时间、负责人、标题,其他都不在表格里;要摘要 / 分类 / 标签 / 完整时间加 `--json`。不给时间参数 = 最近 3 个自然月;最多 13 个月,超了直接报错。
230
230
 
231
+ 要「某个时间窗内结案了多少」**别拿 `history` 数条数**(只覆盖 13 个月,且一给 `--limit`,`count` 就只是返回条数)—— 用 `stats --trend <粒度>` 的桶,`done` 就是该桶结案数。
232
+
231
233
  举例:「上周做过什么」→ `history --since <上周一日期>`;「今年都结掉哪些」→ `history --months 12`(超过 13 个月要分段查)。
232
234
 
233
235
  ### root — 台账根检测
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "task-ledger",
3
- "version": "1.3.44",
3
+ "version": "1.3.45",
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",
@@ -20,6 +20,7 @@
20
20
 
21
21
  ### 用法 / 参数类(退 1,改参数即可)
22
22
 
23
+ - **「history 不认这个参数:--count-only」**:调用方比脚本旧 —— `--count-only` 已于 1.3.44 删除(统计数改走 `stats --trend`)。DSH 插件升到 0.0.120 及以上;**改了 skill 就要同步升插件**,两包是同一份契约。
23
24
  - **「set 必须二选一:--release(释放回公共池)或 --owner <对方 uuid>(交接)」**:`set` 只认这两个,没有别的用法。
24
25
  - **「--release 与 --owner 不能同时给」**:释放不带人、交接不带释放,分开跑两次。
25
26
  - **「--owner 只收身份 uuid(形如 …),不接受名字 / 邮箱:X」**:身份参数传了名字。改传 uuid;要按显示名找人就加到查询里:`list --owner-name <片段>` / `history --owner-name <片段>`。