coding-agent-adapters 0.8.5 → 0.8.7

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
@@ -697,6 +697,13 @@ var ClaudeAdapter = class extends BaseCodingAdapter {
697
697
  }
698
698
  detectLogin(output) {
699
699
  const stripped = this.stripAnsi(output);
700
+ if (stripped.includes("Not logged in") || stripped.includes("Please run /login") || stripped.includes("please log in") || stripped.includes("run /login")) {
701
+ return {
702
+ required: true,
703
+ type: "cli_auth",
704
+ instructions: 'Claude Code requires authentication. Run "claude login" in your terminal.'
705
+ };
706
+ }
700
707
  if (stripped.includes("API key not found") || stripped.includes("ANTHROPIC_API_KEY") || stripped.includes("authentication required") || stripped.includes("Please sign in") || stripped.includes("Invalid API key")) {
701
708
  return {
702
709
  required: true,
@@ -812,7 +819,10 @@ var ClaudeAdapter = class extends BaseCodingAdapter {
812
819
  instructions: "Claude Code requesting file access permission"
813
820
  };
814
821
  }
815
- if (this.detectReady(output)) {
822
+ if (this.detectReady(output) || this.detectTaskComplete(output)) {
823
+ return { detected: false };
824
+ }
825
+ if (/❯/.test(stripped.slice(-300))) {
816
826
  return { detected: false };
817
827
  }
818
828
  return super.detectBlockingPrompt(output);