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