praxis-agent 0.43.1 → 0.45.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.
@@ -0,0 +1,33 @@
1
+ import { type ModelProvider, type ModelRequest, type ModelStreamEvent, type ModelThinkingConfig } from '../core/runtime.js';
2
+ import { type CodexOAuthAccess, type CodexOAuthAccessOptions } from './codex-oauth.js';
3
+ export declare const CODEX_RESPONSES_ENDPOINT = "https://chatgpt.com/backend-api/codex/responses";
4
+ export type CodexOAuthAccessResolver = (options?: CodexOAuthAccessOptions) => Promise<CodexOAuthAccess>;
5
+ export interface CodexSubscriptionProviderOptions {
6
+ model: string;
7
+ access: CodexOAuthAccessResolver;
8
+ fetchImplementation?: typeof fetch;
9
+ maxStreamBufferBytes?: number;
10
+ maxToolArgumentsBytes?: number;
11
+ maxToolCallsPerResponse?: number;
12
+ maxToolMetadataBytes?: number;
13
+ maxReasoningBytes?: number;
14
+ maxErrorBodyBytes?: number;
15
+ thinking?: ModelThinkingConfig;
16
+ }
17
+ export declare function serializeCodexRequest(request: ModelRequest, model: string, configuredThinking?: ModelThinkingConfig): Record<string, unknown>;
18
+ export declare function parseCodexSseFrame(data: string): ModelStreamEvent[];
19
+ export declare class CodexSubscriptionProvider implements ModelProvider {
20
+ private readonly options;
21
+ readonly model: string;
22
+ readonly capabilities: ModelProvider['capabilities'];
23
+ private readonly fetchImplementation;
24
+ private readonly maxStreamBufferBytes;
25
+ private readonly maxToolArgumentsBytes;
26
+ private readonly maxToolCallsPerResponse;
27
+ private readonly maxToolMetadataBytes;
28
+ private readonly maxReasoningBytes;
29
+ private readonly maxErrorBodyBytes;
30
+ constructor(options: CodexSubscriptionProviderOptions);
31
+ complete(request: ModelRequest): AsyncIterable<ModelStreamEvent>;
32
+ }
33
+ //# sourceMappingURL=codex-subscription.d.ts.map