@adamchanadam/agent-handoff-kit 0.3.8 → 0.3.9
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 +3 -3
- package/bin/agent-handoff-kit.mjs +8 -0
- package/docs/whatsnew/v0.3.9.md +19 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Agent Handoff Kit
|
|
2
2
|
|
|
3
|
-
狀態:目前版本為 `v0.3.
|
|
3
|
+
狀態:目前版本為 `v0.3.9`。這是早期可用版本,仍在持續完善中。
|
|
4
4
|
|
|
5
5
|

|
|
6
6
|
|
|
@@ -248,8 +248,8 @@ Agent Handoff Kit 同 [Adam-AI-Instructions](https://github.com/prompt-templates
|
|
|
248
248
|
|
|
249
249
|
## 目前限制
|
|
250
250
|
|
|
251
|
-
- 目前版本為 `v0.3.
|
|
251
|
+
- 目前版本為 `v0.3.9`。
|
|
252
252
|
- 這是早期可用版本,仍在持續完善中。
|
|
253
253
|
- 升級合併屬窄範圍策略,不是完整的複雜合併工具。
|
|
254
254
|
- `doctor` 能檢查結構,不能代替 AI 對專案內容的理解。
|
|
255
|
-
- 未取得明確批准前,不應因安裝成功而自動建立新版本、發佈或上傳任何內容。
|
|
255
|
+
- 未取得明確批准前,不應因安裝成功而自動建立新版本、發佈或上傳任何內容。
|
|
@@ -889,6 +889,9 @@ function normalizePrompt(text) {
|
|
|
889
889
|
|
|
890
890
|
function assessHandoffLifecycleConsistency(text) {
|
|
891
891
|
const fieldValue = fieldValueAfterMarker(text, "lifecycle-conflicts-resolved");
|
|
892
|
+
if (isAffirmativeLifecycleFieldValue(fieldValue)) {
|
|
893
|
+
return { ok: true, reason: "" };
|
|
894
|
+
}
|
|
892
895
|
if (isUnresolvedLifecycleFieldValue(fieldValue)) {
|
|
893
896
|
return { ok: false, reason: "lifecycle field is explicitly unresolved" };
|
|
894
897
|
}
|
|
@@ -898,6 +901,11 @@ function assessHandoffLifecycleConsistency(text) {
|
|
|
898
901
|
return { ok: true, reason: "" };
|
|
899
902
|
}
|
|
900
903
|
|
|
904
|
+
function isAffirmativeLifecycleFieldValue(value) {
|
|
905
|
+
const trimmed = (value || "").trim();
|
|
906
|
+
return /^(yes|resolved|confirmed|complete|completed|ok|passed|all clear)\b|^(是|已|完成|已完成|已解決|已核對|已確認|通過)\b/i.test(trimmed);
|
|
907
|
+
}
|
|
908
|
+
|
|
901
909
|
function isUnresolvedLifecycleFieldValue(value) {
|
|
902
910
|
return /\b(no|blocked|uncertain)\b|否|阻擋|不確定/i.test(value || "");
|
|
903
911
|
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
# v0.3.9
|
|
2
|
+
|
|
3
|
+
## 本版新加了甚麼
|
|
4
|
+
|
|
5
|
+
修正交接狀態檢查的一個誤判:如果 handoff 已明確寫出「已解決」,但同一句同時提到仍有下一步要做,`doctor` 不應把它當成未完成。
|
|
6
|
+
|
|
7
|
+
## 對你已有檔案的影響
|
|
8
|
+
|
|
9
|
+
本版不會覆寫你的 handoff 內容。它只令 `doctor` 更準確:真正未收口的交接仍會被指出;已明確收口但保留後續待辦的文字,不應再被誤殺。
|
|
10
|
+
|
|
11
|
+
## 建議下一步
|
|
12
|
+
|
|
13
|
+
升級後照常執行:
|
|
14
|
+
|
|
15
|
+
```bash
|
|
16
|
+
npx --yes @adamchanadam/agent-handoff-kit@latest doctor
|
|
17
|
+
```
|
|
18
|
+
|
|
19
|
+
如果 `doctor` 通過,就可以繼續日常使用。如果它指出 handoff 需要修補,請把輸出貼給 AI,先修交接狀態,不要重裝覆蓋項目文件。
|