opencode-copilot-account-switcher 0.2.3 → 0.2.4

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.
@@ -12,7 +12,6 @@ const RETRYABLE_MESSAGES = [
12
12
  "unable to verify the first certificate",
13
13
  "self-signed certificate in certificate chain",
14
14
  ];
15
- const RETRYABLE_PATH_SEGMENTS = ["/chat/completions", "/responses", "/models", "/token"];
16
15
  function isAbortError(error) {
17
16
  return error instanceof Error && error.name === "AbortError";
18
17
  }
@@ -33,9 +32,7 @@ function isCopilotUrl(request) {
33
32
  try {
34
33
  const url = new URL(raw);
35
34
  const isCopilotHost = url.hostname === "api.githubcopilot.com" || url.hostname.startsWith("copilot-api.");
36
- if (!isCopilotHost)
37
- return false;
38
- return RETRYABLE_PATH_SEGMENTS.some((segment) => url.pathname.includes(segment));
35
+ return isCopilotHost;
39
36
  }
40
37
  catch {
41
38
  return false;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "opencode-copilot-account-switcher",
3
- "version": "0.2.3",
3
+ "version": "0.2.4",
4
4
  "description": "GitHub Copilot account switcher plugin for OpenCode",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",