@khalilgharbaoui/opencode-claude-code-plugin 0.4.8 → 0.4.10
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/dist/index.js +5 -5
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -50,7 +50,7 @@ var log = {
|
|
|
50
50
|
else writeToFile(fmt("INFO", msg, data));
|
|
51
51
|
},
|
|
52
52
|
notice(msg, data) {
|
|
53
|
-
emit("NOTICE", msg, data,
|
|
53
|
+
emit("NOTICE", msg, data, false);
|
|
54
54
|
},
|
|
55
55
|
warn(msg, data) {
|
|
56
56
|
emit("WARN", msg, data, true);
|
|
@@ -1550,17 +1550,17 @@ function normalizeVisibleText(text) {
|
|
|
1550
1550
|
function looksLikeQuestion(text) {
|
|
1551
1551
|
const normalized = normalizeVisibleText(text).toLowerCase();
|
|
1552
1552
|
if (!normalized) return false;
|
|
1553
|
-
if (normalized.
|
|
1554
|
-
return /\b(please confirm|can you confirm|should i|would you like|do you want|which option|choose|pick one|need your|need you to|what would you like)\b/.test(normalized);
|
|
1553
|
+
if (normalized.includes("?")) return true;
|
|
1554
|
+
return /\b(please confirm|can you confirm|should i|would you like|do you want|which option|choose|pick one|need your|need you to|what would you like|let me know if|let me know whether|let me know what|if you'?d like|if you want to|tell me if|tell me which|tell me whether|say (?:go|yes|no)|push back|sign off|sounds? (?:good|right)|your call|your move|up to you|ready to (?:ship|go|proceed|merge)|happy to (?:ship|go|proceed|merge))\b/.test(normalized);
|
|
1555
1555
|
}
|
|
1556
1556
|
function looksLikeBlocker(text) {
|
|
1557
1557
|
const normalized = normalizeVisibleText(text).toLowerCase();
|
|
1558
1558
|
if (!normalized) return false;
|
|
1559
|
-
return /\b(blocked|blocker|cannot proceed|can't proceed|unable to proceed|need clarification|need more information|permission denied|failed and needs|requires your|manual step|required from you)\b/.test(normalized);
|
|
1559
|
+
return /\b(blocked|blocker|cannot proceed|can't proceed|unable to proceed|need clarification|need more information|permission denied|failed and needs|requires your|needs your|needs you to|action required|manual step|required from you)\b/.test(normalized);
|
|
1560
1560
|
}
|
|
1561
1561
|
function looksLikeFinalAnswer(text) {
|
|
1562
1562
|
const normalized = normalizeVisibleText(text).toLowerCase();
|
|
1563
|
-
if (normalized.length <
|
|
1563
|
+
if (normalized.length < 30) return false;
|
|
1564
1564
|
if (looksLikeQuestion(normalized) || looksLikeBlocker(normalized)) return false;
|
|
1565
1565
|
return /\b(done|completed|fixed|implemented|verified|published|released|sent|delivered|updated)\b/.test(normalized) || /\b(checks?|tests?) passed\b/.test(normalized) || /\b(summary|what changed|verification)\b/.test(normalized);
|
|
1566
1566
|
}
|