wildcrane 0.11.17 → 0.11.19

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.
Files changed (3) hide show
  1. package/README.md +45 -3
  2. package/dist/kanban.mjs +107082 -23986
  3. package/package.json +12 -2
package/README.md CHANGED
@@ -24,11 +24,53 @@ Run `akb help` for commands and `akb guide` for workflows.
24
24
  目标包含结果和 `## Done when` 验收清单。仅在讨论中使用:
25
25
 
26
26
  ```sh
27
- akb raw goal new --title <title> --body-file <file> [--workflow <id>]
28
- akb raw goal save --id <goal> [--title <title>] [--body-file <file>] [--workflow <id>]
27
+ akb raw goal new --title <title> --body-file <file> [--workflow <id>] [--previews <agents>]
28
+ akb raw goal save --id <goal> [--title <title>] [--body-file <file>] [--workflow <id>] [--previews <agents>]
29
29
  akb raw goal drop --id <goal>
30
30
  akb raw goal start --id <goal>
31
31
  akb guide discuss-goal
32
32
  ```
33
33
 
34
- 保存不会开始任务;start 标记本轮结束后开始。成功结果形状、10 个目标上限和既有校验不变。`raw idea` 和 `guide discuss-idea` 保留兼容。
34
+ 保存不会开始任务;网页讨论的 start 标记本轮结束后开始,外部会话立即发起。`--previews ui,api` 选择审阅要点,空字符串清空,省略保留同一工作流的选择。Codex 与 Claude Code 会话使用同一命令;成功结果附讨论链接。10 个目标上限不变。`raw idea` 和 `guide discuss-idea` 保留兼容。
35
+
36
+ `akb previews --triggers --workflow <id> [--workspace <id>] [--json]` 只列该工作流启用的要点;讨论中可省略工作空间。详见 [目标审阅接口](../docs/api/goal-previews.md)。
37
+
38
+ ## 软件故障根因定位
39
+
40
+ 需要定位软件故障的根因与修复方向时,读取 `akb guide troubleshoot`。
41
+ 此命令只输出指南,不执行排查或修改代码,无需额外参数或配置。
42
+ `akb --json guide troubleshoot` 返回 `guide: "troubleshoot"` 和 `text`,沿用现有 JSON 结果封装。
43
+
44
+
45
+ ## Preview agents
46
+
47
+ `akb previews [agent] [id] [note...]` lists this board's agents or asks one to preview a card.
48
+ Add `--print` to work in the current session, or `--follow` to watch a separate run.
49
+
50
+ `akb previews --triggers [--json]` lists names and original `akb.when` conditions in catalog order,
51
+ including disabled and unassigned agents. Missing conditions display `Not configured`.
52
+ JSON returns `agents: { name: string, when: string | null }[]`, `problems` and `output` in the standard response.
53
+ An empty catalog returns `agents: []` with a message. Catalog diagnostics match the regular listing.
54
+ This read-only query accepts `--board` and `--dir`. Combining it with positional arguments,
55
+ `--print`, `--follow` / `-f` or `--notes` exits with 1 and JSON error kind `invalid-usage`.
56
+
57
+ ## 完成交付
58
+
59
+ 所属交付的当前运行登记自己的工作流步骤。最后一步同时结束交付并归档,返回既有归档交接。
60
+
61
+ ```sh
62
+ akb delivery complete <id> [--commit <sha> --branch <name>] --json
63
+ akb delivery cancel <id> --json
64
+ akb delivery resume <id> --json
65
+ ```
66
+
67
+ `id` 接受卡片或交付编号。软件步骤提供已合入的完整 40 或 64 位提交号和目标分支,两项必须同时提供。
68
+ Builder 自行创建分支和 worktree、处理冲突、检查并合入,登记接口校验参数和归属。
69
+ 文件步骤沿用工作流的成果清单与文件存在性校验,无需 Git。
70
+
71
+ 完成返回 `{ "ok": true, "deliveryId": "...", "finished": false }`,最后一步的 `finished` 为 `true`,并附上归档交接。
72
+ 同一运行重复登记相同结果返回原结果。结果不同、参数错误、运行不拥有当前步骤或成果不齐时非零退出,交付保留供恢复。
73
+ 成功退出的运行仍须完成登记。归档中断后可重试同一结果。
74
+
75
+ `cancel` 停止运行并结束交付,保留磁盘成果。`resume` 返回交付与运行编号,继续原会话或从既有成果恢复。
76
+ 交付外仍可使用 `akb raw archive <id>` 手动归档。`delivery conflict`、`delivery blocked`、`delivery discard` 和 `workflow worktree` 已移除。