coding-agent-adapters 0.8.6 → 0.8.8

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.cjs CHANGED
@@ -579,6 +579,15 @@ var ClaudeAdapter = class extends BaseCodingAdapter {
579
579
  safe: true,
580
580
  once: true
581
581
  },
582
+ {
583
+ pattern: /wants? (?:your )?permission|needs your permission|(?:Allow|Approve)\s[\s\S]{0,50}(?:Deny|Don't allow)/i,
584
+ type: "permission",
585
+ response: "",
586
+ responseType: "keys",
587
+ keys: ["enter"],
588
+ description: "Auto-approve tool permission prompts (file access, MCP tools, etc.)",
589
+ safe: true
590
+ },
582
591
  {
583
592
  pattern: /update available.*\[y\/n\]/i,
584
593
  type: "update",
@@ -821,7 +830,10 @@ var ClaudeAdapter = class extends BaseCodingAdapter {
821
830
  instructions: "Claude Code requesting file access permission"
822
831
  };
823
832
  }
824
- if (this.detectReady(output)) {
833
+ if (this.detectReady(output) || this.detectTaskComplete(output)) {
834
+ return { detected: false };
835
+ }
836
+ if (/❯/.test(stripped.slice(-300))) {
825
837
  return { detected: false };
826
838
  }
827
839
  return super.detectBlockingPrompt(output);