@inetafrica/open-claudia 1.14.4 → 1.14.5
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/bot-agent.js +5 -0
- package/bot.js +5 -0
- package/package.json +1 -1
package/bot-agent.js
CHANGED
|
@@ -2021,6 +2021,11 @@ bot.on("message", async (msg) => {
|
|
|
2021
2021
|
}
|
|
2022
2022
|
|
|
2023
2023
|
if (pendingClaudeAuthProcess && pendingClaudeAuthLabel !== "manual OAuth token save") {
|
|
2024
|
+
const text = msg.text.trim();
|
|
2025
|
+
if (looksLikeClaudeAuthReply(text)) {
|
|
2026
|
+
await send("That looks like a Claude login code/callback. I did not delete it or send it to Claude as a prompt. Please resend it as `/auth_code YOUR_CODE`, or use /cancel_auth to stop the login flow.");
|
|
2027
|
+
return;
|
|
2028
|
+
}
|
|
2024
2029
|
await send("Claude login is still waiting. I will not delete normal messages. If Claude gave you a code, send it as `/auth_code YOUR_CODE`, or use /cancel_auth.");
|
|
2025
2030
|
}
|
|
2026
2031
|
|
package/bot.js
CHANGED
|
@@ -2060,6 +2060,11 @@ bot.on("message", async (msg) => {
|
|
|
2060
2060
|
}
|
|
2061
2061
|
|
|
2062
2062
|
if (pendingClaudeAuthProcess && pendingClaudeAuthLabel !== "manual OAuth token save") {
|
|
2063
|
+
const text = msg.text.trim();
|
|
2064
|
+
if (looksLikeClaudeAuthReply(text)) {
|
|
2065
|
+
await send("That looks like a Claude login code/callback. I did not delete it or send it to Claude as a prompt. Please resend it as `/auth_code YOUR_CODE`, or use /cancel_auth to stop the login flow.");
|
|
2066
|
+
return;
|
|
2067
|
+
}
|
|
2063
2068
|
await send("Claude login is still waiting. I will not delete normal messages. If Claude gave you a code, send it as `/auth_code YOUR_CODE`, or use /cancel_auth.");
|
|
2064
2069
|
}
|
|
2065
2070
|
|