@certalis/agent-smith 0.3.0 → 0.3.3
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 +8 -3
- package/dist/bin.js +792 -177
- package/dist/claude-companion/hooks/provider-choice.js +6 -1
- package/dist/client-launcher.js +689 -66
- package/dist/edge.js +15 -3
- package/dist/https.js +17 -4
- package/dist/pool.js +217 -86
- package/dist/post-processor.worker.js +92 -42
- package/dist/server.js +217 -86
- package/package.json +2 -1
|
@@ -311,9 +311,14 @@ export async function retryCapacityBlockedRequest({
|
|
|
311
311
|
return result;
|
|
312
312
|
}
|
|
313
313
|
|
|
314
|
+
/** Only the Agent Smith launcher loads this plugin, and in Remote Control mode its proxy sends api.anthropic.com's Messages API to the pool. */
|
|
314
315
|
export function isAnthropicPoolRequest(url) {
|
|
315
316
|
try {
|
|
316
|
-
|
|
317
|
+
const { hostname, pathname } = new URL(url);
|
|
318
|
+
return (
|
|
319
|
+
pathname.startsWith("/v1/pool/anthropic-messages/") ||
|
|
320
|
+
(hostname === "api.anthropic.com" && pathname === "/v1/messages")
|
|
321
|
+
);
|
|
317
322
|
} catch {
|
|
318
323
|
return false;
|
|
319
324
|
}
|