@minonl/dia 0.0.6 → 0.0.7

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.
@@ -34,3 +34,33 @@ dia unclaim install.sh # 释放自己的
34
34
  - 这是 **advisory**:不保证别人真的让路,也不自动改代码/合并;
35
35
  - 不做全 worktree 锁;文件系统写操作仍以人工/MR 协调为准;
36
36
  - M1a 不含 `dia in` 提示、pre-commit/MR 强制点(留到后续)。
37
+
38
+ ---
39
+
40
+ # dia task 依赖 / dia graph(M1b)
41
+
42
+ ## 任务声明
43
+
44
+ ```bash
45
+ dia task add "实现 X" --owner ses_... --depends t-a,t-b --touches src/x.ts,docs/x.md --judge "bun test"
46
+ dia task link t-xxx --depends t-new --touches src/y.ts
47
+ dia task link t-xxx --remove-depends t-old
48
+ dia task done t-xxx --evidence "bun test 通过" --reason done
49
+ ```
50
+
51
+ - `owner` / `deps` / `touches` 都是可选;旧 task 没有这些字段时自动为 `[]`。
52
+ - `done` 仍强制 judge + evidence;`--reason` 只记录 closure_reason,不新增终态。
53
+ - `pending`/`blocked` 用 `task status <id> blocked --blocked-reason ...`。
54
+
55
+ ## 依赖图
56
+
57
+ ```bash
58
+ dia graph --json
59
+ dia graph # 人类可读:task → deps + claims
60
+ dia graph --json --task t-xxx
61
+ ```
62
+
63
+ - 只输出 **declared** 边:`depends_on` / `touches` / `claims`;
64
+ - `blocked_by` 只在 task 节点里做派生提示,不是边;
65
+ - 任务依赖成环:`cycles` 非空,退出码 **3**(参数错仍是 2);
66
+ - `--task` 只输出该任务的直接依赖/touches/claim 邻居,不做全图闭包。
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@minonl/dia",
3
- "version": "0.0.6",
3
+ "version": "0.0.7",
4
4
  "type": "module",
5
5
  "description": "dia (嗲) — lightweight agent framework: knowledge index, audit, session ingest",
6
6
  "bin": {