@khalilgharbaoui/opencode-claude-code-plugin 0.4.14 → 0.4.15
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 +8 -2
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1571,9 +1571,15 @@ function looksLikeBlocker(text) {
|
|
|
1571
1571
|
}
|
|
1572
1572
|
function looksLikeFinalAnswer(text) {
|
|
1573
1573
|
const normalized = normalizeVisibleText(text).toLowerCase();
|
|
1574
|
-
if (normalized.length < 30) return false;
|
|
1575
1574
|
if (looksLikeQuestion(normalized) || looksLikeBlocker(normalized)) return false;
|
|
1576
|
-
|
|
1575
|
+
if (/\b(we'?re done|we are done|all done|all set)\b/.test(normalized)) {
|
|
1576
|
+
return true;
|
|
1577
|
+
}
|
|
1578
|
+
if (normalized.length < 30) return false;
|
|
1579
|
+
return /\b(done|completed|fixed|implemented|verified|published|released|sent|delivered|updated|shipped|deployed|merged|tagged|live|pinned)\b/.test(normalized) || // v0.4.15: also accept present-tense "tests pass" / "checks pass".
|
|
1580
|
+
// Real fire 03:31 ended in "78/78 tests pass" — past-tense-only regex
|
|
1581
|
+
// missed it.
|
|
1582
|
+
/\b(checks?|tests?) (?:pass|passes|passed)\b/.test(normalized) || /\b(summary|what changed|verification)\b/.test(normalized);
|
|
1577
1583
|
}
|
|
1578
1584
|
function continuationSignature(snapshot) {
|
|
1579
1585
|
const text = normalizeVisibleText(snapshot.text).slice(-500);
|