agentflowctl 0.5.0 → 0.7.0
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/README.md +46 -10
- package/dist/arbitration.js +5 -3
- package/dist/cli.js +18 -15
- package/dist/engine.js +122 -34
- package/dist/feedback.js +15 -0
- package/dist/handoff.js +109 -0
- package/dist/logs.js +79 -23
- package/dist/paths.js +1 -0
- package/dist/resultMeta.js +24 -0
- package/dist/runner.js +2 -23
- package/dist/schemas.js +49 -0
- package/dist/stopReport.js +79 -0
- package/package.json +1 -1
- package/prompts/fix.md +11 -0
- package/prompts/implement-code.md +11 -0
- package/prompts/implement-tests.md +11 -0
- package/prompts/plan-arbiter.md +13 -1
- package/prompts/plan-fix.md +11 -0
- package/prompts/plan-review.md +12 -1
- package/prompts/plan.md +11 -0
- package/prompts/review.md +12 -1
- package/prompts/spec.md +11 -0
package/prompts/review.md
CHANGED
|
@@ -6,6 +6,17 @@
|
|
|
6
6
|
目前的工作目錄就是專案(agentflowctl 為這次任務建立的專用 git worktree)。
|
|
7
7
|
</context>
|
|
8
8
|
|
|
9
|
+
<handoff>
|
|
10
|
+
先閱讀 .flow/handoff-context.md,處理與本階段有關的待辦事項。完成時寫入 .flow/handoff-response.json;即使沒有事項也必須寫出空陣列:
|
|
11
|
+
|
|
12
|
+
```json
|
|
13
|
+
{ "newIssues": [], "dispositions": [] }
|
|
14
|
+
```
|
|
15
|
+
|
|
16
|
+
新增事項格式:{ "kind": "action 或 info", "summary": "具體問題", "evidence": "檔案位置或檢查證據", "targetStage": "plan 或 code" }。
|
|
17
|
+
處置格式:{ "id": "既有事項 ID", "status": "proposed_resolved、resolved 或 accepted", "reason": "具體處理理由", "evidence": "檔案、commit 或檢查結果" }。撰寫者只能用 proposed_resolved 提出修正;審查者可以用 resolved 或 accepted 結案。重要疑慮必須放在這份檔案,不能只寫在回覆的 <concerns>。
|
|
18
|
+
</handoff>
|
|
19
|
+
|
|
9
20
|
<inputs>
|
|
10
21
|
- 規格:.flow/spec.md
|
|
11
22
|
- 驗收條件:.flow/acceptance.json
|
|
@@ -39,7 +50,7 @@
|
|
|
39
50
|
</output_format>
|
|
40
51
|
|
|
41
52
|
<constraints>
|
|
42
|
-
- 只能寫入 .flow/review.json,不可修改任何程式碼,其他變更都會被捨棄。
|
|
53
|
+
- 只能寫入 .flow/review.json 與 .flow/handoff-response.json,不可修改任何程式碼,其他變更都會被捨棄。
|
|
43
54
|
</constraints>
|
|
44
55
|
|
|
45
56
|
<reply_format>
|
package/prompts/spec.md
CHANGED
|
@@ -6,6 +6,17 @@
|
|
|
6
6
|
目前的工作目錄就是專案(agentflowctl 為這次任務建立的專用 git worktree)。
|
|
7
7
|
</context>
|
|
8
8
|
|
|
9
|
+
<handoff>
|
|
10
|
+
先閱讀 .flow/handoff-context.md,處理與本階段有關的待辦事項。完成時寫入 .flow/handoff-response.json;即使沒有事項也必須寫出空陣列:
|
|
11
|
+
|
|
12
|
+
```json
|
|
13
|
+
{ "newIssues": [], "dispositions": [] }
|
|
14
|
+
```
|
|
15
|
+
|
|
16
|
+
新增事項格式:{ "kind": "action 或 info", "summary": "具體問題", "evidence": "檔案位置或檢查證據", "targetStage": "plan 或 code" }。
|
|
17
|
+
處置格式:{ "id": "既有事項 ID", "status": "proposed_resolved、resolved 或 accepted", "reason": "具體處理理由", "evidence": "檔案、commit 或檢查結果" }。撰寫者只能用 proposed_resolved 提出修正;審查者可以用 resolved 或 accepted 結案。重要疑慮必須放在這份檔案,不能只寫在回覆的 <concerns>。
|
|
18
|
+
</handoff>
|
|
19
|
+
|
|
9
20
|
<requirement>
|
|
10
21
|
{{requirement}}
|
|
11
22
|
</requirement>
|