oc-codex-multi-auth 6.0.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.
- package/LICENSE +21 -0
- package/README.md +162 -0
- package/assets/opencode-logo-ornate-dark.svg +18 -0
- package/assets/readme-hero.svg +31 -0
- package/config/README.md +96 -0
- package/config/minimal-opencode.json +13 -0
- package/config/opencode-legacy.json +871 -0
- package/config/opencode-modern.json +358 -0
- package/dist/index.d.ts +45 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +5008 -0
- package/dist/index.js.map +1 -0
- package/dist/lib/accounts/rate-limits.d.ts +22 -0
- package/dist/lib/accounts/rate-limits.d.ts.map +1 -0
- package/dist/lib/accounts/rate-limits.js +63 -0
- package/dist/lib/accounts/rate-limits.js.map +1 -0
- package/dist/lib/accounts.d.ts +134 -0
- package/dist/lib/accounts.d.ts.map +1 -0
- package/dist/lib/accounts.js +795 -0
- package/dist/lib/accounts.js.map +1 -0
- package/dist/lib/audit.d.ts +45 -0
- package/dist/lib/audit.d.ts.map +1 -0
- package/dist/lib/audit.js +154 -0
- package/dist/lib/audit.js.map +1 -0
- package/dist/lib/auth/auth.d.ts +51 -0
- package/dist/lib/auth/auth.d.ts.map +1 -0
- package/dist/lib/auth/auth.js +191 -0
- package/dist/lib/auth/auth.js.map +1 -0
- package/dist/lib/auth/browser.d.ts +17 -0
- package/dist/lib/auth/browser.d.ts.map +1 -0
- package/dist/lib/auth/browser.js +90 -0
- package/dist/lib/auth/browser.js.map +1 -0
- package/dist/lib/auth/device-code.d.ts +28 -0
- package/dist/lib/auth/device-code.d.ts.map +1 -0
- package/dist/lib/auth/device-code.js +215 -0
- package/dist/lib/auth/device-code.js.map +1 -0
- package/dist/lib/auth/login-runner.d.ts +55 -0
- package/dist/lib/auth/login-runner.d.ts.map +1 -0
- package/dist/lib/auth/login-runner.js +631 -0
- package/dist/lib/auth/login-runner.js.map +1 -0
- package/dist/lib/auth/server.d.ts +10 -0
- package/dist/lib/auth/server.d.ts.map +1 -0
- package/dist/lib/auth/server.js +98 -0
- package/dist/lib/auth/server.js.map +1 -0
- package/dist/lib/auth/token-utils.d.ts +60 -0
- package/dist/lib/auth/token-utils.d.ts.map +1 -0
- package/dist/lib/auth/token-utils.js +416 -0
- package/dist/lib/auth/token-utils.js.map +1 -0
- package/dist/lib/auth-rate-limit.d.ts +20 -0
- package/dist/lib/auth-rate-limit.d.ts.map +1 -0
- package/dist/lib/auth-rate-limit.js +91 -0
- package/dist/lib/auth-rate-limit.js.map +1 -0
- package/dist/lib/auto-update-checker.d.ts +10 -0
- package/dist/lib/auto-update-checker.d.ts.map +1 -0
- package/dist/lib/auto-update-checker.js +129 -0
- package/dist/lib/auto-update-checker.js.map +1 -0
- package/dist/lib/circuit-breaker.d.ts +34 -0
- package/dist/lib/circuit-breaker.d.ts.map +1 -0
- package/dist/lib/circuit-breaker.js +124 -0
- package/dist/lib/circuit-breaker.js.map +1 -0
- package/dist/lib/cli.d.ts +46 -0
- package/dist/lib/cli.d.ts.map +1 -0
- package/dist/lib/cli.js +192 -0
- package/dist/lib/cli.js.map +1 -0
- package/dist/lib/config.d.ts +42 -0
- package/dist/lib/config.d.ts.map +1 -0
- package/dist/lib/config.js +314 -0
- package/dist/lib/config.js.map +1 -0
- package/dist/lib/constants.d.ts +90 -0
- package/dist/lib/constants.d.ts.map +1 -0
- package/dist/lib/constants.js +90 -0
- package/dist/lib/constants.js.map +1 -0
- package/dist/lib/context-overflow.d.ts +27 -0
- package/dist/lib/context-overflow.d.ts.map +1 -0
- package/dist/lib/context-overflow.js +124 -0
- package/dist/lib/context-overflow.js.map +1 -0
- package/dist/lib/errors.d.ts +113 -0
- package/dist/lib/errors.d.ts.map +1 -0
- package/dist/lib/errors.js +103 -0
- package/dist/lib/errors.js.map +1 -0
- package/dist/lib/health.d.ts +33 -0
- package/dist/lib/health.d.ts.map +1 -0
- package/dist/lib/health.js +70 -0
- package/dist/lib/health.js.map +1 -0
- package/dist/lib/index.d.ts +20 -0
- package/dist/lib/index.d.ts.map +1 -0
- package/dist/lib/index.js +20 -0
- package/dist/lib/index.js.map +1 -0
- package/dist/lib/logger.d.ts +40 -0
- package/dist/lib/logger.d.ts.map +1 -0
- package/dist/lib/logger.js +337 -0
- package/dist/lib/logger.js.map +1 -0
- package/dist/lib/oauth-success.html +712 -0
- package/dist/lib/parallel-probe.d.ts +28 -0
- package/dist/lib/parallel-probe.d.ts.map +1 -0
- package/dist/lib/parallel-probe.js +97 -0
- package/dist/lib/parallel-probe.js.map +1 -0
- package/dist/lib/proactive-refresh.d.ts +67 -0
- package/dist/lib/proactive-refresh.d.ts.map +1 -0
- package/dist/lib/proactive-refresh.js +161 -0
- package/dist/lib/proactive-refresh.js.map +1 -0
- package/dist/lib/prompts/codex-opencode-bridge.d.ts +20 -0
- package/dist/lib/prompts/codex-opencode-bridge.d.ts.map +1 -0
- package/dist/lib/prompts/codex-opencode-bridge.js +126 -0
- package/dist/lib/prompts/codex-opencode-bridge.js.map +1 -0
- package/dist/lib/prompts/codex.d.ts +41 -0
- package/dist/lib/prompts/codex.d.ts.map +1 -0
- package/dist/lib/prompts/codex.js +400 -0
- package/dist/lib/prompts/codex.js.map +1 -0
- package/dist/lib/prompts/opencode-codex.d.ts +25 -0
- package/dist/lib/prompts/opencode-codex.d.ts.map +1 -0
- package/dist/lib/prompts/opencode-codex.js +223 -0
- package/dist/lib/prompts/opencode-codex.js.map +1 -0
- package/dist/lib/recovery/constants.d.ts +12 -0
- package/dist/lib/recovery/constants.d.ts.map +1 -0
- package/dist/lib/recovery/constants.js +25 -0
- package/dist/lib/recovery/constants.js.map +1 -0
- package/dist/lib/recovery/index.d.ts +12 -0
- package/dist/lib/recovery/index.d.ts.map +1 -0
- package/dist/lib/recovery/index.js +12 -0
- package/dist/lib/recovery/index.js.map +1 -0
- package/dist/lib/recovery/storage.d.ts +24 -0
- package/dist/lib/recovery/storage.d.ts.map +1 -0
- package/dist/lib/recovery/storage.js +362 -0
- package/dist/lib/recovery/storage.js.map +1 -0
- package/dist/lib/recovery/types.d.ts +116 -0
- package/dist/lib/recovery/types.d.ts.map +1 -0
- package/dist/lib/recovery/types.js +7 -0
- package/dist/lib/recovery/types.js.map +1 -0
- package/dist/lib/recovery.d.ts +31 -0
- package/dist/lib/recovery.d.ts.map +1 -0
- package/dist/lib/recovery.js +313 -0
- package/dist/lib/recovery.js.map +1 -0
- package/dist/lib/refresh-queue.d.ts +131 -0
- package/dist/lib/refresh-queue.d.ts.map +1 -0
- package/dist/lib/refresh-queue.js +297 -0
- package/dist/lib/refresh-queue.js.map +1 -0
- package/dist/lib/request/fetch-helpers.d.ts +142 -0
- package/dist/lib/request/fetch-helpers.d.ts.map +1 -0
- package/dist/lib/request/fetch-helpers.js +749 -0
- package/dist/lib/request/fetch-helpers.js.map +1 -0
- package/dist/lib/request/helpers/input-utils.d.ts +7 -0
- package/dist/lib/request/helpers/input-utils.d.ts.map +1 -0
- package/dist/lib/request/helpers/input-utils.js +214 -0
- package/dist/lib/request/helpers/input-utils.js.map +1 -0
- package/dist/lib/request/helpers/model-map.d.ts +22 -0
- package/dist/lib/request/helpers/model-map.d.ts.map +1 -0
- package/dist/lib/request/helpers/model-map.js +183 -0
- package/dist/lib/request/helpers/model-map.js.map +1 -0
- package/dist/lib/request/helpers/tool-utils.d.ts +29 -0
- package/dist/lib/request/helpers/tool-utils.d.ts.map +1 -0
- package/dist/lib/request/helpers/tool-utils.js +117 -0
- package/dist/lib/request/helpers/tool-utils.js.map +1 -0
- package/dist/lib/request/rate-limit-backoff.d.ts +17 -0
- package/dist/lib/request/rate-limit-backoff.d.ts.map +1 -0
- package/dist/lib/request/rate-limit-backoff.js +83 -0
- package/dist/lib/request/rate-limit-backoff.js.map +1 -0
- package/dist/lib/request/request-transformer.d.ts +107 -0
- package/dist/lib/request/request-transformer.d.ts.map +1 -0
- package/dist/lib/request/request-transformer.js +930 -0
- package/dist/lib/request/request-transformer.js.map +1 -0
- package/dist/lib/request/response-handler.d.ts +23 -0
- package/dist/lib/request/response-handler.d.ts.map +1 -0
- package/dist/lib/request/response-handler.js +245 -0
- package/dist/lib/request/response-handler.js.map +1 -0
- package/dist/lib/request/retry-budget.d.ts +19 -0
- package/dist/lib/request/retry-budget.d.ts.map +1 -0
- package/dist/lib/request/retry-budget.js +99 -0
- package/dist/lib/request/retry-budget.js.map +1 -0
- package/dist/lib/rotation.d.ts +130 -0
- package/dist/lib/rotation.d.ts.map +1 -0
- package/dist/lib/rotation.js +301 -0
- package/dist/lib/rotation.js.map +1 -0
- package/dist/lib/runtime-contracts.d.ts +16 -0
- package/dist/lib/runtime-contracts.d.ts.map +1 -0
- package/dist/lib/runtime-contracts.js +24 -0
- package/dist/lib/runtime-contracts.js.map +1 -0
- package/dist/lib/schemas.d.ts +457 -0
- package/dist/lib/schemas.d.ts.map +1 -0
- package/dist/lib/schemas.js +283 -0
- package/dist/lib/schemas.js.map +1 -0
- package/dist/lib/shutdown.d.ts +7 -0
- package/dist/lib/shutdown.d.ts.map +1 -0
- package/dist/lib/shutdown.js +43 -0
- package/dist/lib/shutdown.js.map +1 -0
- package/dist/lib/storage/migrations.d.ts +65 -0
- package/dist/lib/storage/migrations.d.ts.map +1 -0
- package/dist/lib/storage/migrations.js +44 -0
- package/dist/lib/storage/migrations.js.map +1 -0
- package/dist/lib/storage/paths.d.ts +16 -0
- package/dist/lib/storage/paths.d.ts.map +1 -0
- package/dist/lib/storage/paths.js +92 -0
- package/dist/lib/storage/paths.js.map +1 -0
- package/dist/lib/storage.d.ts +157 -0
- package/dist/lib/storage.d.ts.map +1 -0
- package/dist/lib/storage.js +1169 -0
- package/dist/lib/storage.js.map +1 -0
- package/dist/lib/table-formatter.d.ts +32 -0
- package/dist/lib/table-formatter.d.ts.map +1 -0
- package/dist/lib/table-formatter.js +44 -0
- package/dist/lib/table-formatter.js.map +1 -0
- package/dist/lib/types.d.ts +131 -0
- package/dist/lib/types.d.ts.map +1 -0
- package/dist/lib/types.js +2 -0
- package/dist/lib/types.js.map +1 -0
- package/dist/lib/ui/ansi.d.ts +22 -0
- package/dist/lib/ui/ansi.d.ts.map +1 -0
- package/dist/lib/ui/ansi.js +38 -0
- package/dist/lib/ui/ansi.js.map +1 -0
- package/dist/lib/ui/auth-menu.d.ts +39 -0
- package/dist/lib/ui/auth-menu.d.ts.map +1 -0
- package/dist/lib/ui/auth-menu.js +186 -0
- package/dist/lib/ui/auth-menu.js.map +1 -0
- package/dist/lib/ui/beginner.d.ts +62 -0
- package/dist/lib/ui/beginner.d.ts.map +1 -0
- package/dist/lib/ui/beginner.js +259 -0
- package/dist/lib/ui/beginner.js.map +1 -0
- package/dist/lib/ui/confirm.d.ts +2 -0
- package/dist/lib/ui/confirm.d.ts.map +1 -0
- package/dist/lib/ui/confirm.js +21 -0
- package/dist/lib/ui/confirm.js.map +1 -0
- package/dist/lib/ui/format.d.ts +9 -0
- package/dist/lib/ui/format.d.ts.map +1 -0
- package/dist/lib/ui/format.js +49 -0
- package/dist/lib/ui/format.js.map +1 -0
- package/dist/lib/ui/runtime.d.ts +11 -0
- package/dist/lib/ui/runtime.d.ts.map +1 -0
- package/dist/lib/ui/runtime.js +31 -0
- package/dist/lib/ui/runtime.js.map +1 -0
- package/dist/lib/ui/select.d.ts +20 -0
- package/dist/lib/ui/select.d.ts.map +1 -0
- package/dist/lib/ui/select.js +343 -0
- package/dist/lib/ui/select.js.map +1 -0
- package/dist/lib/ui/theme.d.ts +34 -0
- package/dist/lib/ui/theme.d.ts.map +1 -0
- package/dist/lib/ui/theme.js +84 -0
- package/dist/lib/ui/theme.js.map +1 -0
- package/dist/lib/utils.d.ts +29 -0
- package/dist/lib/utils.d.ts.map +1 -0
- package/dist/lib/utils.js +54 -0
- package/dist/lib/utils.js.map +1 -0
- package/package.json +113 -0
- package/scripts/audit-dev-allowlist.js +114 -0
- package/scripts/copy-oauth-success.js +37 -0
- package/scripts/install-oc-codex-multi-auth-core.js +381 -0
- package/scripts/install-oc-codex-multi-auth.js +15 -0
- package/scripts/test-all-models.sh +260 -0
- package/scripts/validate-model-map.sh +97 -0
|
@@ -0,0 +1,358 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://opencode.ai/config.json",
|
|
3
|
+
"plugin": [
|
|
4
|
+
"oc-codex-multi-auth"
|
|
5
|
+
],
|
|
6
|
+
"provider": {
|
|
7
|
+
"openai": {
|
|
8
|
+
"options": {
|
|
9
|
+
"reasoningEffort": "medium",
|
|
10
|
+
"reasoningSummary": "auto",
|
|
11
|
+
"textVerbosity": "medium",
|
|
12
|
+
"include": [
|
|
13
|
+
"reasoning.encrypted_content"
|
|
14
|
+
],
|
|
15
|
+
"store": false
|
|
16
|
+
},
|
|
17
|
+
"models": {
|
|
18
|
+
"gpt-5.4": {
|
|
19
|
+
"name": "GPT 5.4 (OAuth)",
|
|
20
|
+
"limit": {
|
|
21
|
+
"context": 1050000,
|
|
22
|
+
"output": 128000
|
|
23
|
+
},
|
|
24
|
+
"modalities": {
|
|
25
|
+
"input": [
|
|
26
|
+
"text",
|
|
27
|
+
"image"
|
|
28
|
+
],
|
|
29
|
+
"output": [
|
|
30
|
+
"text"
|
|
31
|
+
]
|
|
32
|
+
},
|
|
33
|
+
"variants": {
|
|
34
|
+
"none": {
|
|
35
|
+
"reasoningEffort": "none",
|
|
36
|
+
"reasoningSummary": "auto",
|
|
37
|
+
"textVerbosity": "medium"
|
|
38
|
+
},
|
|
39
|
+
"low": {
|
|
40
|
+
"reasoningEffort": "low",
|
|
41
|
+
"reasoningSummary": "auto",
|
|
42
|
+
"textVerbosity": "medium"
|
|
43
|
+
},
|
|
44
|
+
"medium": {
|
|
45
|
+
"reasoningEffort": "medium",
|
|
46
|
+
"reasoningSummary": "auto",
|
|
47
|
+
"textVerbosity": "medium"
|
|
48
|
+
},
|
|
49
|
+
"high": {
|
|
50
|
+
"reasoningEffort": "high",
|
|
51
|
+
"reasoningSummary": "detailed",
|
|
52
|
+
"textVerbosity": "medium"
|
|
53
|
+
},
|
|
54
|
+
"xhigh": {
|
|
55
|
+
"reasoningEffort": "xhigh",
|
|
56
|
+
"reasoningSummary": "detailed",
|
|
57
|
+
"textVerbosity": "medium"
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
},
|
|
61
|
+
"gpt-5.4-pro": {
|
|
62
|
+
"name": "GPT 5.4 Pro (OAuth)",
|
|
63
|
+
"limit": {
|
|
64
|
+
"context": 1050000,
|
|
65
|
+
"output": 128000
|
|
66
|
+
},
|
|
67
|
+
"modalities": {
|
|
68
|
+
"input": [
|
|
69
|
+
"text",
|
|
70
|
+
"image"
|
|
71
|
+
],
|
|
72
|
+
"output": [
|
|
73
|
+
"text"
|
|
74
|
+
]
|
|
75
|
+
},
|
|
76
|
+
"variants": {
|
|
77
|
+
"medium": {
|
|
78
|
+
"reasoningEffort": "medium",
|
|
79
|
+
"reasoningSummary": "detailed",
|
|
80
|
+
"textVerbosity": "medium"
|
|
81
|
+
},
|
|
82
|
+
"high": {
|
|
83
|
+
"reasoningEffort": "high",
|
|
84
|
+
"reasoningSummary": "detailed",
|
|
85
|
+
"textVerbosity": "medium"
|
|
86
|
+
},
|
|
87
|
+
"xhigh": {
|
|
88
|
+
"reasoningEffort": "xhigh",
|
|
89
|
+
"reasoningSummary": "detailed",
|
|
90
|
+
"textVerbosity": "medium"
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
},
|
|
94
|
+
"gpt-5.4-mini": {
|
|
95
|
+
"name": "GPT 5.4 Mini (OAuth)",
|
|
96
|
+
"limit": {
|
|
97
|
+
"context": 400000,
|
|
98
|
+
"output": 128000
|
|
99
|
+
},
|
|
100
|
+
"modalities": {
|
|
101
|
+
"input": [
|
|
102
|
+
"text",
|
|
103
|
+
"image"
|
|
104
|
+
],
|
|
105
|
+
"output": [
|
|
106
|
+
"text"
|
|
107
|
+
]
|
|
108
|
+
},
|
|
109
|
+
"variants": {
|
|
110
|
+
"none": {
|
|
111
|
+
"reasoningEffort": "none",
|
|
112
|
+
"reasoningSummary": "auto",
|
|
113
|
+
"textVerbosity": "medium"
|
|
114
|
+
},
|
|
115
|
+
"low": {
|
|
116
|
+
"reasoningEffort": "low",
|
|
117
|
+
"reasoningSummary": "auto",
|
|
118
|
+
"textVerbosity": "medium"
|
|
119
|
+
},
|
|
120
|
+
"medium": {
|
|
121
|
+
"reasoningEffort": "medium",
|
|
122
|
+
"reasoningSummary": "auto",
|
|
123
|
+
"textVerbosity": "medium"
|
|
124
|
+
},
|
|
125
|
+
"high": {
|
|
126
|
+
"reasoningEffort": "high",
|
|
127
|
+
"reasoningSummary": "detailed",
|
|
128
|
+
"textVerbosity": "medium"
|
|
129
|
+
},
|
|
130
|
+
"xhigh": {
|
|
131
|
+
"reasoningEffort": "xhigh",
|
|
132
|
+
"reasoningSummary": "detailed",
|
|
133
|
+
"textVerbosity": "medium"
|
|
134
|
+
}
|
|
135
|
+
}
|
|
136
|
+
},
|
|
137
|
+
"gpt-5.4-nano": {
|
|
138
|
+
"name": "GPT 5.4 Nano (OAuth)",
|
|
139
|
+
"limit": {
|
|
140
|
+
"context": 400000,
|
|
141
|
+
"output": 128000
|
|
142
|
+
},
|
|
143
|
+
"modalities": {
|
|
144
|
+
"input": [
|
|
145
|
+
"text",
|
|
146
|
+
"image"
|
|
147
|
+
],
|
|
148
|
+
"output": [
|
|
149
|
+
"text"
|
|
150
|
+
]
|
|
151
|
+
},
|
|
152
|
+
"variants": {
|
|
153
|
+
"none": {
|
|
154
|
+
"reasoningEffort": "none",
|
|
155
|
+
"reasoningSummary": "auto",
|
|
156
|
+
"textVerbosity": "medium"
|
|
157
|
+
},
|
|
158
|
+
"low": {
|
|
159
|
+
"reasoningEffort": "low",
|
|
160
|
+
"reasoningSummary": "auto",
|
|
161
|
+
"textVerbosity": "medium"
|
|
162
|
+
},
|
|
163
|
+
"medium": {
|
|
164
|
+
"reasoningEffort": "medium",
|
|
165
|
+
"reasoningSummary": "auto",
|
|
166
|
+
"textVerbosity": "medium"
|
|
167
|
+
},
|
|
168
|
+
"high": {
|
|
169
|
+
"reasoningEffort": "high",
|
|
170
|
+
"reasoningSummary": "detailed",
|
|
171
|
+
"textVerbosity": "medium"
|
|
172
|
+
},
|
|
173
|
+
"xhigh": {
|
|
174
|
+
"reasoningEffort": "xhigh",
|
|
175
|
+
"reasoningSummary": "detailed",
|
|
176
|
+
"textVerbosity": "medium"
|
|
177
|
+
}
|
|
178
|
+
}
|
|
179
|
+
},
|
|
180
|
+
"gpt-5.1-codex-max": {
|
|
181
|
+
"name": "GPT 5.1 Codex Max (OAuth)",
|
|
182
|
+
"limit": {
|
|
183
|
+
"context": 400000,
|
|
184
|
+
"output": 128000
|
|
185
|
+
},
|
|
186
|
+
"modalities": {
|
|
187
|
+
"input": [
|
|
188
|
+
"text",
|
|
189
|
+
"image"
|
|
190
|
+
],
|
|
191
|
+
"output": [
|
|
192
|
+
"text"
|
|
193
|
+
]
|
|
194
|
+
},
|
|
195
|
+
"variants": {
|
|
196
|
+
"low": {
|
|
197
|
+
"reasoningEffort": "low",
|
|
198
|
+
"reasoningSummary": "detailed",
|
|
199
|
+
"textVerbosity": "medium"
|
|
200
|
+
},
|
|
201
|
+
"medium": {
|
|
202
|
+
"reasoningEffort": "medium",
|
|
203
|
+
"reasoningSummary": "detailed",
|
|
204
|
+
"textVerbosity": "medium"
|
|
205
|
+
},
|
|
206
|
+
"high": {
|
|
207
|
+
"reasoningEffort": "high",
|
|
208
|
+
"reasoningSummary": "detailed",
|
|
209
|
+
"textVerbosity": "medium"
|
|
210
|
+
},
|
|
211
|
+
"xhigh": {
|
|
212
|
+
"reasoningEffort": "xhigh",
|
|
213
|
+
"reasoningSummary": "detailed",
|
|
214
|
+
"textVerbosity": "medium"
|
|
215
|
+
}
|
|
216
|
+
}
|
|
217
|
+
},
|
|
218
|
+
"gpt-5.1-codex": {
|
|
219
|
+
"name": "GPT 5.1 Codex (OAuth)",
|
|
220
|
+
"limit": {
|
|
221
|
+
"context": 400000,
|
|
222
|
+
"output": 128000
|
|
223
|
+
},
|
|
224
|
+
"modalities": {
|
|
225
|
+
"input": [
|
|
226
|
+
"text",
|
|
227
|
+
"image"
|
|
228
|
+
],
|
|
229
|
+
"output": [
|
|
230
|
+
"text"
|
|
231
|
+
]
|
|
232
|
+
},
|
|
233
|
+
"variants": {
|
|
234
|
+
"low": {
|
|
235
|
+
"reasoningEffort": "low",
|
|
236
|
+
"reasoningSummary": "auto",
|
|
237
|
+
"textVerbosity": "medium"
|
|
238
|
+
},
|
|
239
|
+
"medium": {
|
|
240
|
+
"reasoningEffort": "medium",
|
|
241
|
+
"reasoningSummary": "auto",
|
|
242
|
+
"textVerbosity": "medium"
|
|
243
|
+
},
|
|
244
|
+
"high": {
|
|
245
|
+
"reasoningEffort": "high",
|
|
246
|
+
"reasoningSummary": "detailed",
|
|
247
|
+
"textVerbosity": "medium"
|
|
248
|
+
}
|
|
249
|
+
}
|
|
250
|
+
},
|
|
251
|
+
"gpt-5.1-codex-mini": {
|
|
252
|
+
"name": "GPT 5.1 Codex Mini (OAuth)",
|
|
253
|
+
"limit": {
|
|
254
|
+
"context": 400000,
|
|
255
|
+
"output": 128000
|
|
256
|
+
},
|
|
257
|
+
"modalities": {
|
|
258
|
+
"input": [
|
|
259
|
+
"text",
|
|
260
|
+
"image"
|
|
261
|
+
],
|
|
262
|
+
"output": [
|
|
263
|
+
"text"
|
|
264
|
+
]
|
|
265
|
+
},
|
|
266
|
+
"variants": {
|
|
267
|
+
"medium": {
|
|
268
|
+
"reasoningEffort": "medium",
|
|
269
|
+
"reasoningSummary": "auto",
|
|
270
|
+
"textVerbosity": "medium"
|
|
271
|
+
},
|
|
272
|
+
"high": {
|
|
273
|
+
"reasoningEffort": "high",
|
|
274
|
+
"reasoningSummary": "detailed",
|
|
275
|
+
"textVerbosity": "medium"
|
|
276
|
+
}
|
|
277
|
+
}
|
|
278
|
+
},
|
|
279
|
+
"gpt-5.1": {
|
|
280
|
+
"name": "GPT 5.1 (OAuth)",
|
|
281
|
+
"limit": {
|
|
282
|
+
"context": 272000,
|
|
283
|
+
"output": 128000
|
|
284
|
+
},
|
|
285
|
+
"modalities": {
|
|
286
|
+
"input": [
|
|
287
|
+
"text",
|
|
288
|
+
"image"
|
|
289
|
+
],
|
|
290
|
+
"output": [
|
|
291
|
+
"text"
|
|
292
|
+
]
|
|
293
|
+
},
|
|
294
|
+
"variants": {
|
|
295
|
+
"none": {
|
|
296
|
+
"reasoningEffort": "none",
|
|
297
|
+
"reasoningSummary": "auto",
|
|
298
|
+
"textVerbosity": "medium"
|
|
299
|
+
},
|
|
300
|
+
"low": {
|
|
301
|
+
"reasoningEffort": "low",
|
|
302
|
+
"reasoningSummary": "auto",
|
|
303
|
+
"textVerbosity": "low"
|
|
304
|
+
},
|
|
305
|
+
"medium": {
|
|
306
|
+
"reasoningEffort": "medium",
|
|
307
|
+
"reasoningSummary": "auto",
|
|
308
|
+
"textVerbosity": "medium"
|
|
309
|
+
},
|
|
310
|
+
"high": {
|
|
311
|
+
"reasoningEffort": "high",
|
|
312
|
+
"reasoningSummary": "detailed",
|
|
313
|
+
"textVerbosity": "high"
|
|
314
|
+
}
|
|
315
|
+
}
|
|
316
|
+
},
|
|
317
|
+
"gpt-5-codex": {
|
|
318
|
+
"name": "GPT 5 Codex (OAuth)",
|
|
319
|
+
"limit": {
|
|
320
|
+
"context": 400000,
|
|
321
|
+
"output": 128000
|
|
322
|
+
},
|
|
323
|
+
"modalities": {
|
|
324
|
+
"input": [
|
|
325
|
+
"text",
|
|
326
|
+
"image"
|
|
327
|
+
],
|
|
328
|
+
"output": [
|
|
329
|
+
"text"
|
|
330
|
+
]
|
|
331
|
+
},
|
|
332
|
+
"variants": {
|
|
333
|
+
"low": {
|
|
334
|
+
"reasoningEffort": "low",
|
|
335
|
+
"reasoningSummary": "auto",
|
|
336
|
+
"textVerbosity": "medium"
|
|
337
|
+
},
|
|
338
|
+
"medium": {
|
|
339
|
+
"reasoningEffort": "medium",
|
|
340
|
+
"reasoningSummary": "auto",
|
|
341
|
+
"textVerbosity": "medium"
|
|
342
|
+
},
|
|
343
|
+
"high": {
|
|
344
|
+
"reasoningEffort": "high",
|
|
345
|
+
"reasoningSummary": "detailed",
|
|
346
|
+
"textVerbosity": "medium"
|
|
347
|
+
}
|
|
348
|
+
},
|
|
349
|
+
"options": {
|
|
350
|
+
"reasoningEffort": "high",
|
|
351
|
+
"reasoningSummary": "detailed",
|
|
352
|
+
"textVerbosity": "medium"
|
|
353
|
+
}
|
|
354
|
+
}
|
|
355
|
+
}
|
|
356
|
+
}
|
|
357
|
+
}
|
|
358
|
+
}
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* OpenAI ChatGPT (Codex) OAuth Authentication Plugin for opencode
|
|
3
|
+
*
|
|
4
|
+
* COMPLIANCE NOTICE:
|
|
5
|
+
* This plugin uses OpenAI's official OAuth authentication flow (the same method
|
|
6
|
+
* used by OpenAI's official Codex CLI at https://github.com/openai/codex).
|
|
7
|
+
*
|
|
8
|
+
* INTENDED USE: Personal development and coding assistance with your own
|
|
9
|
+
* ChatGPT Plus/Pro subscription.
|
|
10
|
+
*
|
|
11
|
+
* NOT INTENDED FOR: Commercial resale, multi-user services, high-volume
|
|
12
|
+
* automated extraction, or any use that violates OpenAI's Terms of Service.
|
|
13
|
+
*
|
|
14
|
+
* Users are responsible for ensuring their usage complies with:
|
|
15
|
+
* - OpenAI Terms of Use: https://openai.com/policies/terms-of-use/
|
|
16
|
+
* - OpenAI Usage Policies: https://openai.com/policies/usage-policies/
|
|
17
|
+
*
|
|
18
|
+
* For production applications, use the OpenAI Platform API: https://platform.openai.com/
|
|
19
|
+
*
|
|
20
|
+
* @license MIT (see LICENSE file)
|
|
21
|
+
* @author numman-ali
|
|
22
|
+
* @repository https://github.com/ndycode/oc-codex-multi-auth
|
|
23
|
+
|
|
24
|
+
*/
|
|
25
|
+
import type { Plugin } from "@opencode-ai/plugin";
|
|
26
|
+
/**
|
|
27
|
+
* OpenAI Codex OAuth authentication plugin for opencode
|
|
28
|
+
*
|
|
29
|
+
* This plugin enables opencode to use OpenAI's Codex backend via ChatGPT Plus/Pro
|
|
30
|
+
* OAuth authentication, allowing users to leverage their ChatGPT subscription
|
|
31
|
+
* instead of OpenAI Platform API credits.
|
|
32
|
+
*
|
|
33
|
+
* @example
|
|
34
|
+
* ```json
|
|
35
|
+
* {
|
|
36
|
+
* "plugin": ["oc-codex-multi-auth"],
|
|
37
|
+
|
|
38
|
+
* "model": "openai/gpt-5-codex"
|
|
39
|
+
* }
|
|
40
|
+
* ```
|
|
41
|
+
*/
|
|
42
|
+
export declare const OpenAIOAuthPlugin: Plugin;
|
|
43
|
+
export declare const OpenAIAuthPlugin: Plugin;
|
|
44
|
+
export default OpenAIOAuthPlugin;
|
|
45
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AAGH,OAAO,KAAK,EAAE,MAAM,EAAe,MAAM,qBAAqB,CAAC;AA8M/D;;;;;;;;;;;;;;;GAeG;AAEH,eAAO,MAAM,iBAAiB,EAAE,MA++L/B,CAAC;AAEF,eAAO,MAAM,gBAAgB,QAAoB,CAAC;AAElD,eAAe,iBAAiB,CAAC"}
|