@plexor-dev/claude-code-plugin 0.1.0-beta.13 → 0.1.0-beta.14
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/hooks/intercept.js +8 -0
- package/package.json +1 -1
package/hooks/intercept.js
CHANGED
|
@@ -164,6 +164,14 @@ async function main() {
|
|
|
164
164
|
input = await readStdin();
|
|
165
165
|
request = JSON.parse(input);
|
|
166
166
|
|
|
167
|
+
// Issue #687: Auto-disable hook when ANTHROPIC_BASE_URL points to Plexor
|
|
168
|
+
// If already using Plexor as proxy, don't run local hook (avoid double-processing)
|
|
169
|
+
const baseUrl = process.env.ANTHROPIC_BASE_URL || '';
|
|
170
|
+
if (baseUrl.includes('plexor')) {
|
|
171
|
+
logger.debug('Plexor proxy detected via ANTHROPIC_BASE_URL, passing through');
|
|
172
|
+
return output(request);
|
|
173
|
+
}
|
|
174
|
+
|
|
167
175
|
// CRITICAL: Check for slash commands FIRST (before agentic check)
|
|
168
176
|
// Slash commands like /plexor-status should pass through unchanged
|
|
169
177
|
// Must check before isAgenticRequest since all Claude Code requests have tools
|
package/package.json
CHANGED