coding-agent-adapters 0.8.4 → 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 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,