coding-agent-adapters 0.8.5 → 0.8.6
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 +7 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +7 -0
- package/dist/index.js.map +1 -1
- package/package.json +3 -3
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,
|