opencode-aicodewith-auth 0.1.72 → 0.1.73
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/dist/index.js +95 -33
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -17,6 +17,16 @@ var MODELS = [
|
|
|
17
17
|
reasoning: "xhigh",
|
|
18
18
|
aliases: ["gpt-5.3-codex", "gpt 5.3 codex", "codex"]
|
|
19
19
|
},
|
|
20
|
+
{
|
|
21
|
+
id: "gpt-5.4",
|
|
22
|
+
family: "gpt",
|
|
23
|
+
displayName: "GPT-5.4",
|
|
24
|
+
version: "5.4",
|
|
25
|
+
limit: { context: 400000, output: 128000 },
|
|
26
|
+
modalities: { input: ["text", "image"], output: ["text"] },
|
|
27
|
+
reasoning: "xhigh",
|
|
28
|
+
aliases: ["gpt-5.4", "gpt 5.4"]
|
|
29
|
+
},
|
|
20
30
|
{
|
|
21
31
|
id: "gpt-5.2",
|
|
22
32
|
family: "gpt",
|
|
@@ -166,13 +176,23 @@ var MODELS = [
|
|
|
166
176
|
deprecated: true,
|
|
167
177
|
replacedBy: "claude-haiku-4-5-20251001"
|
|
168
178
|
},
|
|
179
|
+
{
|
|
180
|
+
id: "gemini-3.1-pro-preview",
|
|
181
|
+
family: "gemini",
|
|
182
|
+
displayName: "Gemini 3.1 Pro Preview",
|
|
183
|
+
version: "3.1",
|
|
184
|
+
limit: { context: 1048576, output: 65536 },
|
|
185
|
+
modalities: { input: ["text", "image"], output: ["text"] }
|
|
186
|
+
},
|
|
169
187
|
{
|
|
170
188
|
id: "gemini-3-pro",
|
|
171
189
|
family: "gemini",
|
|
172
|
-
displayName: "Gemini 3 Pro",
|
|
190
|
+
displayName: "Gemini 3 Pro (deprecated)",
|
|
173
191
|
version: "3",
|
|
174
192
|
limit: { context: 1048576, output: 65536 },
|
|
175
|
-
modalities: { input: ["text", "image"], output: ["text"] }
|
|
193
|
+
modalities: { input: ["text", "image"], output: ["text"] },
|
|
194
|
+
deprecated: true,
|
|
195
|
+
replacedBy: "gemini-3.1-pro-preview"
|
|
176
196
|
}
|
|
177
197
|
];
|
|
178
198
|
var getActiveModels = () => MODELS.filter((m) => !m.deprecated);
|
|
@@ -203,39 +223,62 @@ var buildAliasMap = () => {
|
|
|
203
223
|
}
|
|
204
224
|
return map;
|
|
205
225
|
};
|
|
206
|
-
|
|
226
|
+
function getLatestByFamily(family) {
|
|
227
|
+
const activeModels = MODELS.filter((m) => !m.deprecated && m.family === family);
|
|
228
|
+
if (activeModels.length === 0) {
|
|
229
|
+
throw new Error(`No active models found for family: ${family}`);
|
|
230
|
+
}
|
|
231
|
+
const latest = activeModels.sort((a, b) => {
|
|
232
|
+
const versionA = parseFloat(a.version);
|
|
233
|
+
const versionB = parseFloat(b.version);
|
|
234
|
+
return versionB - versionA;
|
|
235
|
+
})[0];
|
|
236
|
+
return `${PROVIDER_ID}/${latest.id}`;
|
|
237
|
+
}
|
|
238
|
+
function getLatestClaudeByTier(tier) {
|
|
239
|
+
const claudeModels = MODELS.filter((m) => !m.deprecated && m.family === "claude" && m.id.includes(tier));
|
|
240
|
+
if (claudeModels.length === 0) {
|
|
241
|
+
throw new Error(`No active Claude ${tier} models found`);
|
|
242
|
+
}
|
|
243
|
+
const latest = claudeModels.sort((a, b) => {
|
|
244
|
+
const versionA = parseFloat(a.version);
|
|
245
|
+
const versionB = parseFloat(b.version);
|
|
246
|
+
return versionB - versionA;
|
|
247
|
+
})[0];
|
|
248
|
+
return `${PROVIDER_ID}/${latest.id}`;
|
|
249
|
+
}
|
|
207
250
|
var OMO_MODEL_ASSIGNMENTS = {
|
|
208
251
|
agents: {
|
|
209
|
-
sisyphus:
|
|
210
|
-
hephaestus:
|
|
211
|
-
oracle:
|
|
212
|
-
librarian:
|
|
213
|
-
explore:
|
|
214
|
-
"multimodal-looker":
|
|
215
|
-
prometheus:
|
|
216
|
-
metis:
|
|
217
|
-
momus:
|
|
218
|
-
atlas:
|
|
219
|
-
build:
|
|
220
|
-
plan:
|
|
221
|
-
"sisyphus-junior":
|
|
222
|
-
"OpenCode-Builder":
|
|
223
|
-
general:
|
|
224
|
-
"frontend-ui-ux-engineer":
|
|
225
|
-
"document-writer":
|
|
252
|
+
sisyphus: getLatestClaudeByTier("sonnet"),
|
|
253
|
+
hephaestus: getLatestClaudeByTier("sonnet"),
|
|
254
|
+
oracle: getLatestByFamily("gpt"),
|
|
255
|
+
librarian: getLatestClaudeByTier("sonnet"),
|
|
256
|
+
explore: getLatestClaudeByTier("sonnet"),
|
|
257
|
+
"multimodal-looker": getLatestByFamily("gemini"),
|
|
258
|
+
prometheus: getLatestByFamily("gpt"),
|
|
259
|
+
metis: getLatestByFamily("gpt"),
|
|
260
|
+
momus: getLatestByFamily("gpt"),
|
|
261
|
+
atlas: getLatestClaudeByTier("sonnet"),
|
|
262
|
+
build: getLatestClaudeByTier("opus"),
|
|
263
|
+
plan: getLatestClaudeByTier("opus"),
|
|
264
|
+
"sisyphus-junior": getLatestClaudeByTier("sonnet"),
|
|
265
|
+
"OpenCode-Builder": getLatestClaudeByTier("opus"),
|
|
266
|
+
general: getLatestClaudeByTier("sonnet"),
|
|
267
|
+
"frontend-ui-ux-engineer": getLatestByFamily("gemini"),
|
|
268
|
+
"document-writer": getLatestByFamily("gemini")
|
|
226
269
|
},
|
|
227
270
|
categories: {
|
|
228
|
-
"visual-engineering":
|
|
229
|
-
ultrabrain:
|
|
230
|
-
deep:
|
|
231
|
-
artistry:
|
|
232
|
-
quick:
|
|
233
|
-
"unspecified-low":
|
|
234
|
-
"unspecified-high":
|
|
235
|
-
writing:
|
|
236
|
-
visual:
|
|
237
|
-
"business-logic":
|
|
238
|
-
"data-analysis":
|
|
271
|
+
"visual-engineering": getLatestByFamily("gemini"),
|
|
272
|
+
ultrabrain: getLatestByFamily("gemini"),
|
|
273
|
+
deep: getLatestByFamily("gemini"),
|
|
274
|
+
artistry: getLatestByFamily("gemini"),
|
|
275
|
+
quick: getLatestClaudeByTier("sonnet"),
|
|
276
|
+
"unspecified-low": getLatestClaudeByTier("sonnet"),
|
|
277
|
+
"unspecified-high": getLatestByFamily("gpt"),
|
|
278
|
+
writing: getLatestByFamily("gemini"),
|
|
279
|
+
visual: getLatestByFamily("gemini"),
|
|
280
|
+
"business-logic": getLatestByFamily("gpt"),
|
|
281
|
+
"data-analysis": getLatestClaudeByTier("sonnet")
|
|
239
282
|
}
|
|
240
283
|
};
|
|
241
284
|
// lib/constants.ts
|
|
@@ -795,6 +838,9 @@ function normalizeModel(model) {
|
|
|
795
838
|
if (normalized.includes("gpt-5.3-codex") || normalized.includes("gpt 5.3 codex")) {
|
|
796
839
|
return "gpt-5.3-codex";
|
|
797
840
|
}
|
|
841
|
+
if (normalized.includes("gpt-5.4") || normalized.includes("gpt 5.4")) {
|
|
842
|
+
return "gpt-5.4";
|
|
843
|
+
}
|
|
798
844
|
if (normalized.includes("gpt-5.2") || normalized.includes("gpt 5.2")) {
|
|
799
845
|
return "gpt-5.2";
|
|
800
846
|
}
|
|
@@ -1793,6 +1839,22 @@ var provider_config_default = {
|
|
|
1793
1839
|
]
|
|
1794
1840
|
}
|
|
1795
1841
|
},
|
|
1842
|
+
"gpt-5.4": {
|
|
1843
|
+
name: "GPT-5.4",
|
|
1844
|
+
limit: {
|
|
1845
|
+
context: 400000,
|
|
1846
|
+
output: 128000
|
|
1847
|
+
},
|
|
1848
|
+
modalities: {
|
|
1849
|
+
input: [
|
|
1850
|
+
"text",
|
|
1851
|
+
"image"
|
|
1852
|
+
],
|
|
1853
|
+
output: [
|
|
1854
|
+
"text"
|
|
1855
|
+
]
|
|
1856
|
+
}
|
|
1857
|
+
},
|
|
1796
1858
|
"gpt-5.2": {
|
|
1797
1859
|
name: "GPT-5.2",
|
|
1798
1860
|
limit: {
|
|
@@ -1857,8 +1919,8 @@ var provider_config_default = {
|
|
|
1857
1919
|
]
|
|
1858
1920
|
}
|
|
1859
1921
|
},
|
|
1860
|
-
"gemini-3-pro": {
|
|
1861
|
-
name: "Gemini 3 Pro",
|
|
1922
|
+
"gemini-3.1-pro-preview": {
|
|
1923
|
+
name: "Gemini 3.1 Pro Preview",
|
|
1862
1924
|
limit: {
|
|
1863
1925
|
context: 1048576,
|
|
1864
1926
|
output: 65536
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "opencode-aicodewith-auth",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.73",
|
|
4
4
|
"description": "OpenCode plugin for AICodewith authentication - Access GPT-5.3 Codex, GPT-5.2, Claude, and Gemini models through AICodewith API",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|