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.cjs +11 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +11 -1
- package/dist/index.js.map +1 -1
- package/package.json +3 -3
package/dist/index.cjs
CHANGED
|
@@ -699,6 +699,13 @@ var ClaudeAdapter = class extends BaseCodingAdapter {
|
|
|
699
699
|
}
|
|
700
700
|
detectLogin(output) {
|
|
701
701
|
const stripped = this.stripAnsi(output);
|
|
702
|
+
if (stripped.includes("Not logged in") || stripped.includes("Please run /login") || stripped.includes("please log in") || stripped.includes("run /login")) {
|
|
703
|
+
return {
|
|
704
|
+
required: true,
|
|
705
|
+
type: "cli_auth",
|
|
706
|
+
instructions: 'Claude Code requires authentication. Run "claude login" in your terminal.'
|
|
707
|
+
};
|
|
708
|
+
}
|
|
702
709
|
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")) {
|
|
703
710
|
return {
|
|
704
711
|
required: true,
|
|
@@ -814,7 +821,10 @@ var ClaudeAdapter = class extends BaseCodingAdapter {
|
|
|
814
821
|
instructions: "Claude Code requesting file access permission"
|
|
815
822
|
};
|
|
816
823
|
}
|
|
817
|
-
if (this.detectReady(output)) {
|
|
824
|
+
if (this.detectReady(output) || this.detectTaskComplete(output)) {
|
|
825
|
+
return { detected: false };
|
|
826
|
+
}
|
|
827
|
+
if (/❯/.test(stripped.slice(-300))) {
|
|
818
828
|
return { detected: false };
|
|
819
829
|
}
|
|
820
830
|
return super.detectBlockingPrompt(output);
|