@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.
@@ -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
- return new URL(url).pathname.startsWith("/v1/pool/anthropic-messages/");
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
  }