@khalilgharbaoui/opencode-claude-code-plugin 0.4.9 → 0.4.11

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 CHANGED
@@ -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.endsWith("?")) 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)\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|let me know when|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)|ready (?:when|whenever|once|if) you|standing by|i'?ll stand ?by|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 < 40) return false;
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
  }