agent-afk 5.309.5 → 5.310.0

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.
@@ -1,4 +1,7 @@
1
1
  import OpenAI from 'openai';
2
2
  import type { OpenAIAuthResolution } from '../auth.js';
3
3
  import type { OpenAICompatibleQueryOptions } from './query-options.js';
4
+ export declare function applyOAuthRefresh(mutableOpts: {
5
+ auth: OpenAIAuthResolution;
6
+ } & OpenAICompatibleQueryOptions, newAuth: OpenAIAuthResolution): OpenAI;
4
7
  export declare function buildRefreshedClient(newAuth: OpenAIAuthResolution, opts: OpenAICompatibleQueryOptions): OpenAI;
@@ -0,0 +1,2 @@
1
+ export declare function maybePrintChatGptOAuthNotice(accountId: string | undefined): void;
2
+ export declare function _resetChatGptOAuthNotice(): void;
@@ -14,7 +14,7 @@ import { type CompactHandlerContext } from './query/compact-handler.js';
14
14
  import type { OpenAICompatibleQueryOptions } from './query/query-options.js';
15
15
  export type { OpenAICompatibleQueryOptions } from './query/query-options.js';
16
16
  import { type BeforeNextRoundCallback } from './query/live-updates.js';
17
- import type { AuthResolverDeps } from './auth.js';
17
+ import type { AuthResolverDeps, OpenAIAuthResolution } from './auth.js';
18
18
  export { buildQueryFromConfig } from './query/build-query.js';
19
19
  export { __setRetryBaseDelay, __setRetryAfterMaxWaitMs } from './query/retry.js';
20
20
  export { __setOpenAIClientFactory } from './query/client.js';
@@ -59,7 +59,7 @@ export declare class OpenAICompatibleQuery implements ProviderQuery, TurnDriverC
59
59
  constructor(opts: OpenAICompatibleQueryOptions);
60
60
  activeOpenAITools(): OpenAIFunctionTool[] | undefined;
61
61
  [Symbol.asyncIterator](): AsyncIterator<ProviderEvent>;
62
- rebuildClient(newAuth: import('./auth.js').OpenAIAuthResolution): void;
62
+ rebuildClient(newAuth: OpenAIAuthResolution): void;
63
63
  _authDeps: AuthResolverDeps;
64
64
  private runTurn;
65
65
  interrupt(reason?: import('../../abort-reason.js').ProviderAbortReason): Promise<void>;
@@ -11,4 +11,4 @@ export interface WireResolution {
11
11
  }
12
12
  export declare function envFlagEnabled(value: string | undefined): boolean;
13
13
  export declare function buildChatGptOAuthHeaders(accountId?: string): Record<string, string>;
14
- export declare function resolveWireMode(auth: Pick<OpenAIAuthResolution, 'source' | 'accountId'>, responsesOptIn?: boolean): WireResolution;
14
+ export declare function resolveWireMode(auth: Pick<OpenAIAuthResolution, 'source' | 'accountId'>, responsesOptIn?: boolean, customBaseURL?: string): WireResolution;