claude-coding-flow 1.4.2 → 1.4.3
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/commands/doc-gen.md +9 -6
- package/package.json +1 -1
package/commands/doc-gen.md
CHANGED
|
@@ -130,12 +130,15 @@ find docs/apis/ -name "*.md" -type f 2>/dev/null
|
|
|
130
130
|
|
|
131
131
|
### 第三步:AskUserQuestion 收集(两批)
|
|
132
132
|
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
3
|
|
133
|
+
**动态选项规则(注意:AskUserQuestion 每个 question 必须有 2-4 个 options,每个 option 必须有 label 和 description 两个字段)**:
|
|
134
|
+
- **0 个资源**:AskUserQuestion 提供 2 个选项,例如 `{"label":"无","description":"暂不指定"}` 和 `{"label":"稍后提供","description":"稍后手动提供文件路径"}`。禁止只给 1 个选项或缺少 description。
|
|
135
|
+
- **1-3 个资源**:AskUserQuestion 列出全部资源(每个都要有 label+description)+ 补充选项 `{"label":"手动指定","description":"输入自定义路径或名称"}`,总共 2-4 个选项。
|
|
136
|
+
- **4+ 个资源**:文字列出全部(带编号)+ AskUserQuestion(`{"label":"输入序号","description":"输入上方列表中的序号"}` + `{"label":"手动指定","description":"输入自定义路径或名称"}`)。
|
|
137
|
+
|
|
138
|
+
**第一批(3问,逐项弹出,每问单独一个 AskUserQuestion 调用)**:
|
|
139
|
+
1. header=需求文档:扫描 `docs/prds/` 下 `.md` 文件,按上述规则。有文件时剩余空位可补充 `{"label":"读取全部","description":"读取所有需求文档"}`
|
|
140
|
+
2. header=图片:扫描 `docs/images/` 下子文件夹,按上述规则。有目录时剩余空位可补充 `{"label":"无图片","description":"本次不使用图片资源"}`
|
|
141
|
+
3. header=API:扫描 `docs/apis/` 下 `.md` 文件,按上述规则。有文件时剩余空位可补充 `{"label":"无API文档","description":"本次不使用API文档"}`
|
|
139
142
|
|
|
140
143
|
**第二批(1问)**:
|
|
141
144
|
4. header=增量:`全新生成` / `增量更新`
|