@longrun-ai/codex-auth 0.1.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.
Files changed (78) hide show
  1. package/LICENSE +157 -0
  2. package/README.md +148 -0
  3. package/dist/auth/manager.d.ts +32 -0
  4. package/dist/auth/manager.d.ts.map +1 -0
  5. package/dist/auth/manager.js +206 -0
  6. package/dist/auth/manager.js.map +1 -0
  7. package/dist/auth/schema.d.ts +41 -0
  8. package/dist/auth/schema.d.ts.map +1 -0
  9. package/dist/auth/schema.js +9 -0
  10. package/dist/auth/schema.js.map +1 -0
  11. package/dist/auth/storage.d.ts +13 -0
  12. package/dist/auth/storage.d.ts.map +1 -0
  13. package/dist/auth/storage.js +92 -0
  14. package/dist/auth/storage.js.map +1 -0
  15. package/dist/bin/auth-doctor.d.ts +3 -0
  16. package/dist/bin/auth-doctor.d.ts.map +1 -0
  17. package/dist/bin/auth-doctor.js +507 -0
  18. package/dist/bin/auth-doctor.js.map +1 -0
  19. package/dist/index.d.ts +12 -0
  20. package/dist/index.d.ts.map +1 -0
  21. package/dist/index.js +12 -0
  22. package/dist/index.js.map +1 -0
  23. package/dist/llm/chatgpt.d.ts +355 -0
  24. package/dist/llm/chatgpt.d.ts.map +1 -0
  25. package/dist/llm/chatgpt.js +351 -0
  26. package/dist/llm/chatgpt.js.map +1 -0
  27. package/dist/oauth/browserLogin.d.ts +25 -0
  28. package/dist/oauth/browserLogin.d.ts.map +1 -0
  29. package/dist/oauth/browserLogin.js +231 -0
  30. package/dist/oauth/browserLogin.js.map +1 -0
  31. package/dist/oauth/deviceCode.d.ts +21 -0
  32. package/dist/oauth/deviceCode.d.ts.map +1 -0
  33. package/dist/oauth/deviceCode.js +103 -0
  34. package/dist/oauth/deviceCode.js.map +1 -0
  35. package/dist/oauth/pkce.d.ts +7 -0
  36. package/dist/oauth/pkce.d.ts.map +1 -0
  37. package/dist/oauth/pkce.js +14 -0
  38. package/dist/oauth/pkce.js.map +1 -0
  39. package/dist/oauth/refresh.d.ts +14 -0
  40. package/dist/oauth/refresh.d.ts.map +1 -0
  41. package/dist/oauth/refresh.js +122 -0
  42. package/dist/oauth/refresh.js.map +1 -0
  43. package/dist/oauth/tokenExchange.d.ts +7 -0
  44. package/dist/oauth/tokenExchange.d.ts.map +1 -0
  45. package/dist/oauth/tokenExchange.js +50 -0
  46. package/dist/oauth/tokenExchange.js.map +1 -0
  47. package/dist/oauth/tokenParsing.d.ts +4 -0
  48. package/dist/oauth/tokenParsing.d.ts.map +1 -0
  49. package/dist/oauth/tokenParsing.js +22 -0
  50. package/dist/oauth/tokenParsing.js.map +1 -0
  51. package/dist/prompts.d.ts +4 -0
  52. package/dist/prompts.d.ts.map +1 -0
  53. package/dist/prompts.js +85 -0
  54. package/dist/prompts.js.map +1 -0
  55. package/dist/utils/base64.d.ts +3 -0
  56. package/dist/utils/base64.d.ts.map +1 -0
  57. package/dist/utils/base64.js +16 -0
  58. package/dist/utils/base64.js.map +1 -0
  59. package/dist/utils/jwt.d.ts +6 -0
  60. package/dist/utils/jwt.d.ts.map +1 -0
  61. package/dist/utils/jwt.js +40 -0
  62. package/dist/utils/jwt.js.map +1 -0
  63. package/dist/utils/openBrowser.d.ts +2 -0
  64. package/dist/utils/openBrowser.d.ts.map +1 -0
  65. package/dist/utils/openBrowser.js +30 -0
  66. package/dist/utils/openBrowser.js.map +1 -0
  67. package/dist/utils/time.d.ts +2 -0
  68. package/dist/utils/time.d.ts.map +1 -0
  69. package/dist/utils/time.js +4 -0
  70. package/dist/utils/time.js.map +1 -0
  71. package/package.json +48 -0
  72. package/prompts/gpt-5.1-codex-max_prompt.md +117 -0
  73. package/prompts/gpt-5.2-codex_prompt.md +117 -0
  74. package/prompts/gpt_5_1_prompt.md +368 -0
  75. package/prompts/gpt_5_2_prompt.md +335 -0
  76. package/prompts/gpt_5_codex_prompt.md +105 -0
  77. package/prompts/prompt.md +310 -0
  78. package/prompts/prompt_with_apply_patch_instructions.md +386 -0
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,mBAAmB,CAAC;AAClC,cAAc,kBAAkB,CAAC;AACjC,cAAc,mBAAmB,CAAC;AAElC,cAAc,yBAAyB,CAAC;AACxC,cAAc,uBAAuB,CAAC;AACtC,cAAc,iBAAiB,CAAC;AAChC,cAAc,oBAAoB,CAAC;AACnC,cAAc,0BAA0B,CAAC;AACzC,cAAc,yBAAyB,CAAC;AAExC,cAAc,kBAAkB,CAAC;AACjC,cAAc,cAAc,CAAC"}
@@ -0,0 +1,355 @@
1
+ import type { RequestInit, Response as UndiciResponse } from 'undici';
2
+ import { AuthManager } from '../auth/manager.js';
3
+ import { AuthState } from '../auth/schema.js';
4
+ export interface ChatGptCredentials {
5
+ accessToken: string;
6
+ accountId: string;
7
+ }
8
+ export interface ChatGptClientOptions {
9
+ baseUrl?: string;
10
+ useCodex?: boolean;
11
+ originator?: string;
12
+ userAgent?: string;
13
+ codexHome?: string;
14
+ proxyUrl?: string;
15
+ useEnvProxy?: boolean;
16
+ }
17
+ export interface ChatGptRequestInit extends RequestInit {
18
+ json?: unknown;
19
+ }
20
+ export type ChatGptJsonValue = null | boolean | number | string | ChatGptJsonValue[] | {
21
+ [key: string]: ChatGptJsonValue;
22
+ };
23
+ export type ChatGptReasoningEffort = 'none' | 'minimal' | 'low' | 'medium' | 'high' | 'xhigh';
24
+ export type ChatGptReasoningSummary = 'auto' | 'concise' | 'detailed' | 'none';
25
+ export interface ChatGptReasoning {
26
+ effort?: ChatGptReasoningEffort;
27
+ summary?: ChatGptReasoningSummary;
28
+ }
29
+ export type ChatGptVerbosity = 'low' | 'medium' | 'high';
30
+ export interface ChatGptTextFormat {
31
+ type: 'json_schema';
32
+ strict: boolean;
33
+ schema: ChatGptJsonValue;
34
+ name: string;
35
+ }
36
+ export interface ChatGptTextControls {
37
+ verbosity?: ChatGptVerbosity;
38
+ format?: ChatGptTextFormat;
39
+ }
40
+ export type ChatGptInclude = 'reasoning.encrypted_content';
41
+ export type ChatGptToolChoice = 'auto';
42
+ export type ChatGptJsonSchema = Record<string, unknown>;
43
+ export interface ChatGptFunctionTool {
44
+ type: 'function';
45
+ name: string;
46
+ description: string;
47
+ strict: boolean;
48
+ parameters: ChatGptJsonSchema;
49
+ }
50
+ export interface ChatGptLocalShellTool {
51
+ type: 'local_shell';
52
+ }
53
+ export interface ChatGptWebSearchTool {
54
+ type: 'web_search';
55
+ external_web_access?: boolean;
56
+ }
57
+ export interface ChatGptFreeformToolFormat {
58
+ type: string;
59
+ syntax: string;
60
+ definition: string;
61
+ }
62
+ export interface ChatGptFreeformTool {
63
+ type: 'custom';
64
+ name: string;
65
+ description: string;
66
+ format: ChatGptFreeformToolFormat;
67
+ }
68
+ export type ChatGptTool = ChatGptFunctionTool | ChatGptLocalShellTool | ChatGptWebSearchTool | ChatGptFreeformTool;
69
+ export type ChatGptMessageRole = 'user' | 'assistant' | 'system';
70
+ export interface ChatGptOutputTextContent {
71
+ type: 'output_text';
72
+ text: string;
73
+ annotations?: ChatGptJsonValue[];
74
+ logprobs?: ChatGptJsonValue[];
75
+ }
76
+ export type ChatGptContentItem = {
77
+ type: 'input_text';
78
+ text: string;
79
+ } | {
80
+ type: 'input_image';
81
+ image_url: string;
82
+ } | ChatGptOutputTextContent;
83
+ export type ChatGptContentPart = ChatGptOutputTextContent;
84
+ export interface ChatGptMessageItem {
85
+ type: 'message';
86
+ role: ChatGptMessageRole;
87
+ content: ChatGptContentItem[];
88
+ id?: string;
89
+ }
90
+ export type ChatGptReasoningSummaryItem = {
91
+ type: 'summary_text';
92
+ text: string;
93
+ };
94
+ export type ChatGptReasoningContentItem = {
95
+ type: 'reasoning_text';
96
+ text: string;
97
+ } | {
98
+ type: 'text';
99
+ text: string;
100
+ };
101
+ export interface ChatGptReasoningItem {
102
+ type: 'reasoning';
103
+ summary: ChatGptReasoningSummaryItem[];
104
+ content?: ChatGptReasoningContentItem[];
105
+ encrypted_content?: string | null;
106
+ id?: string;
107
+ }
108
+ export type ChatGptLocalShellStatus = 'completed' | 'in_progress' | 'incomplete';
109
+ export interface ChatGptLocalShellExecAction {
110
+ type: 'exec';
111
+ command: string[];
112
+ timeout_ms?: number;
113
+ working_directory?: string;
114
+ env?: Record<string, string>;
115
+ user?: string;
116
+ }
117
+ export interface ChatGptLocalShellCallItem {
118
+ type: 'local_shell_call';
119
+ call_id?: string | null;
120
+ status: ChatGptLocalShellStatus;
121
+ action: ChatGptLocalShellExecAction;
122
+ id?: string;
123
+ }
124
+ export interface ChatGptFunctionCallItem {
125
+ type: 'function_call';
126
+ name: string;
127
+ arguments: string;
128
+ call_id: string;
129
+ id?: string;
130
+ }
131
+ export type ChatGptFunctionCallOutputContentItem = {
132
+ type: 'input_text';
133
+ text: string;
134
+ } | {
135
+ type: 'input_image';
136
+ image_url: string;
137
+ };
138
+ export type ChatGptFunctionCallOutput = string | ChatGptFunctionCallOutputContentItem[] | {
139
+ content: string;
140
+ success?: boolean;
141
+ };
142
+ export interface ChatGptFunctionCallOutputItem {
143
+ type: 'function_call_output';
144
+ call_id: string;
145
+ output: ChatGptFunctionCallOutput;
146
+ }
147
+ export interface ChatGptCustomToolCallItem {
148
+ type: 'custom_tool_call';
149
+ status?: string;
150
+ call_id: string;
151
+ name: string;
152
+ input: string;
153
+ id?: string;
154
+ }
155
+ export interface ChatGptCustomToolCallOutputItem {
156
+ type: 'custom_tool_call_output';
157
+ call_id: string;
158
+ output: string;
159
+ }
160
+ export type ChatGptWebSearchAction = {
161
+ type: 'search';
162
+ query?: string;
163
+ } | {
164
+ type: 'open_page';
165
+ url?: string;
166
+ } | {
167
+ type: 'find_in_page';
168
+ url?: string;
169
+ pattern?: string;
170
+ };
171
+ export interface ChatGptWebSearchCallItem {
172
+ type: 'web_search_call';
173
+ status?: string;
174
+ action: ChatGptWebSearchAction;
175
+ id?: string;
176
+ }
177
+ export interface ChatGptGhostCommit {
178
+ id: string;
179
+ parent: string | null;
180
+ preexisting_untracked_files: string[];
181
+ preexisting_untracked_dirs: string[];
182
+ }
183
+ export interface ChatGptGhostSnapshotItem {
184
+ type: 'ghost_snapshot';
185
+ ghost_commit: ChatGptGhostCommit;
186
+ }
187
+ export interface ChatGptCompactionItem {
188
+ type: 'compaction' | 'compaction_summary';
189
+ encrypted_content: string;
190
+ }
191
+ export type ChatGptResponseItem = ChatGptMessageItem | ChatGptReasoningItem | ChatGptLocalShellCallItem | ChatGptFunctionCallItem | ChatGptFunctionCallOutputItem | ChatGptCustomToolCallItem | ChatGptCustomToolCallOutputItem | ChatGptWebSearchCallItem | ChatGptGhostSnapshotItem | ChatGptCompactionItem;
192
+ export interface ChatGptResponsesRequest {
193
+ model: string;
194
+ instructions: string;
195
+ input: ChatGptResponseItem[];
196
+ tools: ChatGptTool[];
197
+ tool_choice: ChatGptToolChoice;
198
+ parallel_tool_calls: boolean;
199
+ reasoning: ChatGptReasoning | null;
200
+ store: boolean;
201
+ stream: true;
202
+ include: ChatGptInclude[];
203
+ prompt_cache_key?: string;
204
+ text?: ChatGptTextControls;
205
+ }
206
+ export type ChatGptResponsesPayload = ChatGptResponsesRequest;
207
+ export interface ChatGptConversationConfig {
208
+ model: string;
209
+ instructions: string;
210
+ tools?: ChatGptTool[];
211
+ parallel_tool_calls?: boolean;
212
+ reasoning?: ChatGptReasoning | null;
213
+ store?: boolean;
214
+ include?: ChatGptInclude[];
215
+ prompt_cache_key?: string;
216
+ text?: ChatGptTextControls;
217
+ }
218
+ export type ChatGptUserInput = {
219
+ userText: string;
220
+ userContent?: never;
221
+ } | {
222
+ userContent: ChatGptContentItem[];
223
+ userText?: never;
224
+ };
225
+ export type ChatGptStartConversationOptions = ChatGptConversationConfig & ChatGptUserInput;
226
+ export type ChatGptContinueConversationOptions = ChatGptConversationConfig & ChatGptUserInput & {
227
+ history: ChatGptResponseItem[];
228
+ };
229
+ export declare function createChatGptStartRequest(options: ChatGptStartConversationOptions): ChatGptResponsesRequest;
230
+ export declare function createChatGptContinuationRequest(options: ChatGptContinueConversationOptions): ChatGptResponsesRequest;
231
+ export interface ChatGptUsageInputTokensDetails {
232
+ cached_tokens: number;
233
+ }
234
+ export interface ChatGptUsageOutputTokensDetails {
235
+ reasoning_tokens: number;
236
+ }
237
+ export interface ChatGptResponseUsage {
238
+ input_tokens: number;
239
+ input_tokens_details?: ChatGptUsageInputTokensDetails | null;
240
+ output_tokens: number;
241
+ output_tokens_details?: ChatGptUsageOutputTokensDetails | null;
242
+ total_tokens: number;
243
+ }
244
+ export interface ChatGptResponseCreated {
245
+ id?: string;
246
+ }
247
+ export interface ChatGptResponseCompleted {
248
+ id: string;
249
+ usage?: ChatGptResponseUsage | null;
250
+ }
251
+ export interface ChatGptResponseError {
252
+ type?: string;
253
+ code?: string;
254
+ message?: string;
255
+ plan_type?: string;
256
+ resets_at?: number;
257
+ }
258
+ export interface ChatGptResponseFailed {
259
+ id?: string;
260
+ error?: ChatGptResponseError;
261
+ }
262
+ export interface ChatGptResponseCreatedEvent {
263
+ type: 'response.created';
264
+ response: ChatGptResponseCreated;
265
+ }
266
+ export interface ChatGptResponseInProgressEvent {
267
+ type: 'response.in_progress';
268
+ response: ChatGptResponseCreated;
269
+ }
270
+ export interface ChatGptResponseCompletedEvent {
271
+ type: 'response.completed';
272
+ response: ChatGptResponseCompleted;
273
+ }
274
+ export interface ChatGptResponseFailedEvent {
275
+ type: 'response.failed';
276
+ response: ChatGptResponseFailed;
277
+ }
278
+ export interface ChatGptResponseOutputItemAddedEvent {
279
+ type: 'response.output_item.added';
280
+ item: ChatGptResponseItem;
281
+ }
282
+ export interface ChatGptResponseOutputItemDoneEvent {
283
+ type: 'response.output_item.done';
284
+ item: ChatGptResponseItem;
285
+ }
286
+ export interface ChatGptResponseOutputTextDeltaEvent {
287
+ type: 'response.output_text.delta';
288
+ delta: string;
289
+ }
290
+ export interface ChatGptResponseOutputTextDoneEvent {
291
+ type: 'response.output_text.done';
292
+ output_index: number;
293
+ content_index: number;
294
+ item_id: string;
295
+ text: string;
296
+ logprobs?: ChatGptJsonValue[];
297
+ annotations?: ChatGptJsonValue[];
298
+ sequence_number?: number;
299
+ }
300
+ export interface ChatGptResponseContentPartAddedEvent {
301
+ type: 'response.content_part.added';
302
+ output_index: number;
303
+ content_index: number;
304
+ item_id: string;
305
+ part: ChatGptContentPart;
306
+ sequence_number?: number;
307
+ }
308
+ export interface ChatGptResponseContentPartDoneEvent {
309
+ type: 'response.content_part.done';
310
+ output_index: number;
311
+ content_index: number;
312
+ item_id: string;
313
+ part: ChatGptContentPart;
314
+ sequence_number?: number;
315
+ }
316
+ export interface ChatGptResponseReasoningSummaryTextDeltaEvent {
317
+ type: 'response.reasoning_summary_text.delta';
318
+ delta: string;
319
+ summary_index: number;
320
+ }
321
+ export interface ChatGptResponseReasoningTextDeltaEvent {
322
+ type: 'response.reasoning_text.delta';
323
+ delta: string;
324
+ content_index: number;
325
+ }
326
+ export interface ChatGptResponseReasoningSummaryPartAddedEvent {
327
+ type: 'response.reasoning_summary_part.added';
328
+ summary_index: number;
329
+ }
330
+ export type ChatGptResponsesStreamEvent = ChatGptResponseCreatedEvent | ChatGptResponseInProgressEvent | ChatGptResponseCompletedEvent | ChatGptResponseFailedEvent | ChatGptResponseOutputItemAddedEvent | ChatGptResponseOutputItemDoneEvent | ChatGptResponseOutputTextDeltaEvent | ChatGptResponseOutputTextDoneEvent | ChatGptResponseContentPartAddedEvent | ChatGptResponseContentPartDoneEvent | ChatGptResponseReasoningSummaryTextDeltaEvent | ChatGptResponseReasoningTextDeltaEvent | ChatGptResponseReasoningSummaryPartAddedEvent;
331
+ export interface ChatGptEventReceiver {
332
+ onEvent(event: ChatGptResponsesStreamEvent): void | Promise<void>;
333
+ }
334
+ export declare class ChatGptTriggerError extends Error {
335
+ readonly status: number;
336
+ readonly body: string;
337
+ readonly statusText: string;
338
+ constructor(status: number, body: string, statusText: string);
339
+ }
340
+ export type ChatGptResponsesStreamResponse = UndiciResponse;
341
+ export declare class ChatGptClient {
342
+ private readonly baseUrl;
343
+ private readonly codexBaseUrl;
344
+ private readonly headers;
345
+ private readonly dispatcher?;
346
+ constructor(credentials: ChatGptCredentials, options?: ChatGptClientOptions);
347
+ request(path: string, init?: ChatGptRequestInit): Promise<UndiciResponse>;
348
+ responses(payload: ChatGptResponsesRequest, init?: ChatGptRequestInit): Promise<ChatGptResponsesStreamResponse>;
349
+ trigger(payload: ChatGptResponsesRequest, receiver: ChatGptEventReceiver, init?: ChatGptRequestInit): Promise<number>;
350
+ private responsesWithRetry;
351
+ private requestAtBase;
352
+ }
353
+ export declare function credentialsFromAuthState(auth: AuthState): ChatGptCredentials;
354
+ export declare function createChatGptClientFromManager(manager: AuthManager, options?: ChatGptClientOptions): Promise<ChatGptClient>;
355
+ //# sourceMappingURL=chatgpt.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"chatgpt.d.ts","sourceRoot":"","sources":["../../src/llm/chatgpt.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAc,WAAW,EAAE,QAAQ,IAAI,cAAc,EAAE,MAAM,QAAQ,CAAC;AAGlF,OAAO,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AACjD,OAAO,EACL,SAAS,EAIV,MAAM,mBAAmB,CAAC;AAG3B,MAAM,WAAW,kBAAkB;IACjC,WAAW,EAAE,MAAM,CAAC;IACpB,SAAS,EAAE,MAAM,CAAC;CACnB;AAED,MAAM,WAAW,oBAAoB;IACnC,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,WAAW,CAAC,EAAE,OAAO,CAAC;CACvB;AAED,MAAM,WAAW,kBAAmB,SAAQ,WAAW;IACrD,IAAI,CAAC,EAAE,OAAO,CAAC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