@anthonyhaussman/opencode-agy-auth 1.2.3-alpha.4 → 1.2.3-alpha.5

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.
@@ -7,6 +7,7 @@ export declare function createOAuthAuthorizeMethod(options?: {
7
7
  client?: PluginClient;
8
8
  getConfiguredProjectId?: () => Promise<string | undefined> | string | undefined;
9
9
  getUserAgentModel?: () => Promise<string | undefined> | string | undefined;
10
+ openBrowser?: (url: string) => void;
10
11
  }): () => Promise<{
11
12
  url: string;
12
13
  instructions: string;
@@ -17,3 +18,7 @@ export declare function parseOAuthCallbackInput(input: string): {
17
18
  code?: string;
18
19
  state?: string;
19
20
  };
21
+ export declare function setOpenBrowserLauncherForTesting(launcher: typeof openBrowserLauncher | null): void;
22
+ export declare function defaultOpenBrowserLauncher(command: string, args: string[]): void;
23
+ declare let openBrowserLauncher: typeof defaultOpenBrowserLauncher;
24
+ export {};
@@ -7,6 +7,7 @@ export declare function getSafeHeader(headers: unknown, key: string): string | u
7
7
  export declare function setSafeHeaders(initHeaders: unknown, newHeaders: Record<string, string>): unknown;
8
8
  export declare function toUrlString(value: RequestInfo): string;
9
9
  export declare function resolveModelTier(baseModelId: string, init?: RequestInit): string;
10
+ export declare function setStoredAuthOverrideForTesting(override: any): void;
10
11
  export declare function loadStoredAuthFromJson(): any;
11
12
  export declare function createV2FetchInterceptor(getAuthSnapshot?: () => Promise<any> | any): (input: RequestInfo, init?: RequestInit) => Promise<Response>;
12
13
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@anthonyhaussman/opencode-agy-auth",
3
- "version": "1.2.3-alpha.4",
3
+ "version": "1.2.3-alpha.5",
4
4
  "author": "antigravity",
5
5
  "repository": {
6
6
  "type": "git",