coding-agent-adapters 0.4.1 → 0.4.2
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/README.md +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/package.json +3 -3
package/dist/index.js
CHANGED
|
@@ -922,7 +922,7 @@ var GeminiAdapter = class extends BaseCodingAdapter {
|
|
|
922
922
|
}
|
|
923
923
|
detectLogin(output) {
|
|
924
924
|
const stripped = this.stripAnsi(output);
|
|
925
|
-
if (stripped.includes("API key not found") ||
|
|
925
|
+
if (stripped.includes("API key not found") || /set (?:GOOGLE_API_KEY|GEMINI_API_KEY)/i.test(stripped) || stripped.includes("authentication required") || stripped.includes("Invalid API key") || stripped.includes("API key is not valid")) {
|
|
926
926
|
return {
|
|
927
927
|
required: true,
|
|
928
928
|
type: "api_key",
|