cc-reviewer 5.1.0 → 5.1.1
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/adapters/claude.js +2 -2
- package/package.json +1 -1
package/dist/adapters/claude.js
CHANGED
|
@@ -89,7 +89,7 @@ export class ClaudeAdapter {
|
|
|
89
89
|
const args = [
|
|
90
90
|
'-p', // Non-interactive, print and exit
|
|
91
91
|
'--model', 'opus', // Use Opus
|
|
92
|
-
'--
|
|
92
|
+
'--setting-sources', '', // Skip hooks, plugins, CLAUDE.md (preserves OAuth auth; --bare kills keychain)
|
|
93
93
|
'--permission-mode', 'plan', // Read-only enforcement (layer 1)
|
|
94
94
|
'--verbose', // Required for stream-json
|
|
95
95
|
'--output-format', 'stream-json', // Structured streaming events
|
|
@@ -164,7 +164,7 @@ export class ClaudeAdapter {
|
|
|
164
164
|
if (lower.includes('rate limit') || lower.includes('rate_limit') || lower.includes('quota')) {
|
|
165
165
|
return { type: 'rate_limit', message: `Claude rate limit: ${stderr.slice(0, 500)}` };
|
|
166
166
|
}
|
|
167
|
-
if (lower.includes('unauthorized') || lower.includes('authentication') || lower.includes('api key') || stderr.includes('401') || stderr.includes('403')) {
|
|
167
|
+
if (lower.includes('unauthorized') || lower.includes('authentication') || lower.includes('not logged in') || lower.includes('api key') || stderr.includes('401') || stderr.includes('403')) {
|
|
168
168
|
return { type: 'auth_error', message: `Authentication failed: ${stderr.slice(0, 500)}`, details: { stderr } };
|
|
169
169
|
}
|
|
170
170
|
return { type: 'cli_error', message: stderr.slice(0, 500) || 'Unknown error' };
|