From a9249f8b86160a6875eea252c909a30dd0ba438f Mon Sep 17 00:00:00 2001 From: leether Date: Mon, 4 May 2026 14:42:01 +0800 Subject: [PATCH 01/16] feat: add GPT-5.3/5.4/5.5 model support - Add model mappings for gpt-5.3-codex, gpt-5.3-codex-spark, gpt-5.4, gpt-5.4-fast, gpt-5.4-mini, gpt-5.4-mini-fast, gpt-5.5, gpt-5.5-fast - Pattern-based model normalization for 5.3/5.4/5.5 families - Explicit gpt-5.5-pro rejection with clear error message - Update config templates, install script, docs, and tests - All 229 tests passing, all new models e2e verified --- .gitignore | 2 +- README.md | 9 +- config/README.md | 8 +- config/minimal-opencode.json | 2 +- config/opencode-legacy.json | 1 + config/opencode-modern.json | 269 +++++++++++++++++++++++++ docs/getting-started.md | 2 +- docs/index.md | 2 +- lib/prompts/codex.ts | 15 +- lib/request/helpers/model-map.ts | 54 +++++ lib/request/request-transformer.ts | 64 +++++- scripts/install-opencode-codex-auth.js | 19 +- test/install-script.test.ts | 14 +- 13 files changed, 430 insertions(+), 31 deletions(-) diff --git a/.gitignore b/.gitignore index 423d091..1e9aad7 100644 --- a/.gitignore +++ b/.gitignore @@ -7,4 +7,4 @@ dist/ opencode.json .opencode/ tmp -.codex-cache \ No newline at end of file +.codex-cache*.tgz diff --git a/README.md b/README.md index 6708114..24dd0f7 100644 --- a/README.md +++ b/README.md @@ -29,12 +29,12 @@ npx -y opencode-openai-codex-auth@latest Then: ```bash opencode auth login -opencode run "write hello world to test.txt" --model=openai/gpt-5.2 --variant=medium +opencode run "write hello world to test.txt" --model=openai/gpt-5.5 --variant=medium ``` Legacy OpenCode (v1.0.209 and below): ```bash npx -y opencode-openai-codex-auth@latest --legacy -opencode run "write hello world to test.txt" --model=openai/gpt-5.2-medium +opencode run "write hello world to test.txt" --model=openai/gpt-5.5-medium ``` Uninstall: ```bash @@ -43,6 +43,11 @@ npx -y opencode-openai-codex-auth@latest --uninstall --all ``` --- ## 📦 Models +- **gpt-5.5** (none/low/medium/high/xhigh) +- **gpt-5.4** (none/low/medium/high/xhigh) +- **gpt-5.4-mini** (none/low/medium/high) +- **gpt-5.3-codex** (low/medium/high/xhigh) +- **gpt-5.3-codex-spark** (low/medium/high/xhigh) - **gpt-5.2** (none/low/medium/high/xhigh) - **gpt-5.2-codex** (low/medium/high/xhigh) - **gpt-5.1-codex-max** (low/medium/high/xhigh) diff --git a/config/README.md b/config/README.md index 2c118cb..d72c28d 100644 --- a/config/README.md +++ b/config/README.md @@ -68,12 +68,12 @@ Both configs provide: 3. **Run opencode**: ```bash # Modern config (v1.0.210+): - opencode run "task" --model=openai/gpt-5.2 --variant=medium - opencode run "task" --model=openai/gpt-5.2 --variant=high + opencode run "task" --model=openai/gpt-5.5 --variant=medium + opencode run "task" --model=openai/gpt-5.5 --variant=high # Legacy config: - opencode run "task" --model=openai/gpt-5.2-medium - opencode run "task" --model=openai/gpt-5.2-high + opencode run "task" --model=openai/gpt-5.5-medium + opencode run "task" --model=openai/gpt-5.5-high ``` > **⚠️ Important**: Use the config file appropriate for your OpenCode version. Using the modern config with an older OpenCode version (v1.0.209 or below) will not work correctly. diff --git a/config/minimal-opencode.json b/config/minimal-opencode.json index 5474115..69577a0 100644 --- a/config/minimal-opencode.json +++ b/config/minimal-opencode.json @@ -8,5 +8,5 @@ } } }, - "model": "openai/gpt-5-codex" + "model": "openai/gpt-5.5" } diff --git a/config/opencode-legacy.json b/config/opencode-legacy.json index 5381226..94f1214 100644 --- a/config/opencode-legacy.json +++ b/config/opencode-legacy.json @@ -5,6 +5,7 @@ ], "provider": { "openai": { + "npm": "@ai-sdk/openai", "options": { "reasoningEffort": "medium", "reasoningSummary": "auto", diff --git a/config/opencode-modern.json b/config/opencode-modern.json index 9161024..e2d7065 100644 --- a/config/opencode-modern.json +++ b/config/opencode-modern.json @@ -5,6 +5,7 @@ ], "provider": { "openai": { + "npm": "@ai-sdk/openai", "options": { "reasoningEffort": "medium", "reasoningSummary": "auto", @@ -15,6 +16,274 @@ "store": false }, "models": { + "gpt-5.5": { + "name": "GPT 5.5 (OAuth)", + "limit": { + "context": 400000, + "output": 128000 + }, + "modalities": { + "input": [ + "text", + "image" + ], + "output": [ + "text" + ] + }, + "variants": { + "none": { + "reasoningEffort": "none", + "reasoningSummary": "auto", + "textVerbosity": "medium" + }, + "low": { + "reasoningEffort": "low", + "reasoningSummary": "auto", + "textVerbosity": "medium" + }, + "medium": { + "reasoningEffort": "medium", + "reasoningSummary": "auto", + "textVerbosity": "medium" + }, + "high": { + "reasoningEffort": "high", + "reasoningSummary": "detailed", + "textVerbosity": "medium" + }, + "xhigh": { + "reasoningEffort": "xhigh", + "reasoningSummary": "detailed", + "textVerbosity": "medium" + } + } + }, + "gpt-5.5-fast": { + "name": "GPT 5.5 Fast (OAuth)", + "limit": { + "context": 400000, + "output": 128000 + }, + "modalities": { + "input": [ + "text", + "image" + ], + "output": [ + "text" + ] + }, + "variants": { + "none": { "reasoningEffort": "none", "reasoningSummary": "auto", "textVerbosity": "medium" }, + "low": { "reasoningEffort": "low", "reasoningSummary": "auto", "textVerbosity": "medium" }, + "medium": { "reasoningEffort": "medium", "reasoningSummary": "auto", "textVerbosity": "medium" }, + "high": { "reasoningEffort": "high", "reasoningSummary": "detailed", "textVerbosity": "medium" }, + "xhigh": { "reasoningEffort": "xhigh", "reasoningSummary": "detailed", "textVerbosity": "medium" } + } + }, + "gpt-5.4": { + "name": "GPT 5.4 (OAuth)", + "limit": { + "context": 272000, + "output": 128000 + }, + "modalities": { + "input": [ + "text", + "image" + ], + "output": [ + "text" + ] + }, + "variants": { + "none": { + "reasoningEffort": "none", + "reasoningSummary": "auto", + "textVerbosity": "medium" + }, + "low": { + "reasoningEffort": "low", + "reasoningSummary": "auto", + "textVerbosity": "medium" + }, + "medium": { + "reasoningEffort": "medium", + "reasoningSummary": "auto", + "textVerbosity": "medium" + }, + "high": { + "reasoningEffort": "high", + "reasoningSummary": "detailed", + "textVerbosity": "medium" + }, + "xhigh": { + "reasoningEffort": "xhigh", + "reasoningSummary": "detailed", + "textVerbosity": "medium" + } + } + }, + "gpt-5.4-fast": { + "name": "GPT 5.4 Fast (OAuth)", + "limit": { + "context": 272000, + "output": 128000 + }, + "modalities": { + "input": [ + "text", + "image" + ], + "output": [ + "text" + ] + }, + "variants": { + "none": { "reasoningEffort": "none", "reasoningSummary": "auto", "textVerbosity": "medium" }, + "low": { "reasoningEffort": "low", "reasoningSummary": "auto", "textVerbosity": "medium" }, + "medium": { "reasoningEffort": "medium", "reasoningSummary": "auto", "textVerbosity": "medium" }, + "high": { "reasoningEffort": "high", "reasoningSummary": "detailed", "textVerbosity": "medium" }, + "xhigh": { "reasoningEffort": "xhigh", "reasoningSummary": "detailed", "textVerbosity": "medium" } + } + }, + "gpt-5.4-mini": { + "name": "GPT 5.4 Mini (OAuth)", + "limit": { + "context": 272000, + "output": 128000 + }, + "modalities": { + "input": [ + "text", + "image" + ], + "output": [ + "text" + ] + }, + "variants": { + "none": { + "reasoningEffort": "none", + "reasoningSummary": "auto", + "textVerbosity": "medium" + }, + "low": { + "reasoningEffort": "low", + "reasoningSummary": "auto", + "textVerbosity": "medium" + }, + "medium": { + "reasoningEffort": "medium", + "reasoningSummary": "auto", + "textVerbosity": "medium" + }, + "high": { + "reasoningEffort": "high", + "reasoningSummary": "detailed", + "textVerbosity": "medium" + } + } + }, + "gpt-5.4-mini-fast": { + "name": "GPT 5.4 Mini Fast (OAuth)", + "limit": { + "context": 272000, + "output": 128000 + }, + "modalities": { + "input": [ + "text", + "image" + ], + "output": [ + "text" + ] + }, + "variants": { + "none": { "reasoningEffort": "none", "reasoningSummary": "auto", "textVerbosity": "medium" }, + "low": { "reasoningEffort": "low", "reasoningSummary": "auto", "textVerbosity": "medium" }, + "medium": { "reasoningEffort": "medium", "reasoningSummary": "auto", "textVerbosity": "medium" }, + "high": { "reasoningEffort": "high", "reasoningSummary": "detailed", "textVerbosity": "medium" } + } + }, + "gpt-5.3-codex": { + "name": "GPT 5.3 Codex (OAuth)", + "limit": { + "context": 272000, + "output": 128000 + }, + "modalities": { + "input": [ + "text", + "image" + ], + "output": [ + "text" + ] + }, + "variants": { + "low": { + "reasoningEffort": "low", + "reasoningSummary": "auto", + "textVerbosity": "medium" + }, + "medium": { + "reasoningEffort": "medium", + "reasoningSummary": "auto", + "textVerbosity": "medium" + }, + "high": { + "reasoningEffort": "high", + "reasoningSummary": "detailed", + "textVerbosity": "medium" + }, + "xhigh": { + "reasoningEffort": "xhigh", + "reasoningSummary": "detailed", + "textVerbosity": "medium" + } + } + }, + "gpt-5.3-codex-spark": { + "name": "GPT 5.3 Codex Spark (OAuth)", + "limit": { + "context": 272000, + "output": 128000 + }, + "modalities": { + "input": [ + "text", + "image" + ], + "output": [ + "text" + ] + }, + "variants": { + "low": { + "reasoningEffort": "low", + "reasoningSummary": "auto", + "textVerbosity": "medium" + }, + "medium": { + "reasoningEffort": "medium", + "reasoningSummary": "auto", + "textVerbosity": "medium" + }, + "high": { + "reasoningEffort": "high", + "reasoningSummary": "detailed", + "textVerbosity": "medium" + }, + "xhigh": { + "reasoningEffort": "xhigh", + "reasoningSummary": "detailed", + "textVerbosity": "medium" + } + } + }, "gpt-5.2": { "name": "GPT 5.2 (OAuth)", "limit": { diff --git a/docs/getting-started.md b/docs/getting-started.md index dc225dc..22b2b3b 100644 --- a/docs/getting-started.md +++ b/docs/getting-started.md @@ -319,7 +319,7 @@ opencode auth login ```bash # Quick test -opencode run "write hello world to test.txt" --model=openai/gpt-5.1-codex-medium +opencode run "write hello world to test.txt" --model=openai/gpt-5.5 --variant=medium # Or start interactive session opencode diff --git a/docs/index.md b/docs/index.md index 4ff75f5..5c9a4c3 100644 --- a/docs/index.md +++ b/docs/index.md @@ -76,7 +76,7 @@ npx -y opencode-openai-codex-auth@latest ### Quick Test ```bash -opencode run "write hello world to test.txt" --model=openai/gpt-5.2 --variant=medium +opencode run "write hello world to test.txt" --model=openai/gpt-5.5 --variant=medium ``` --- diff --git a/lib/prompts/codex.ts b/lib/prompts/codex.ts index cc0bddd..c54cba0 100644 --- a/lib/prompts/codex.ts +++ b/lib/prompts/codex.ts @@ -54,22 +54,29 @@ const CACHE_FILES: Record = { */ export function getModelFamily(normalizedModel: string): ModelFamily { // Order matters - check more specific patterns first + if (normalizedModel.includes("codex-max")) { + return "codex-max"; + } if ( normalizedModel.includes("gpt-5.2-codex") || normalizedModel.includes("gpt 5.2 codex") ) { return "gpt-5.2-codex"; } - if (normalizedModel.includes("codex-max")) { - return "codex-max"; - } + // Any other codex variant (including gpt-5.3-codex / spark) uses the generic codex prompt. if ( normalizedModel.includes("codex") || normalizedModel.startsWith("codex-") ) { return "codex"; } - if (normalizedModel.includes("gpt-5.2")) { + // GPT-5.2+ general models share the same prompt family today. + if ( + normalizedModel.includes("gpt-5.2") || + normalizedModel.includes("gpt-5.3") || + normalizedModel.includes("gpt-5.4") || + normalizedModel.includes("gpt-5.5") + ) { return "gpt-5.2"; } return "gpt-5.1"; diff --git a/lib/request/helpers/model-map.ts b/lib/request/helpers/model-map.ts index 20ca329..9185aff 100644 --- a/lib/request/helpers/model-map.ts +++ b/lib/request/helpers/model-map.ts @@ -39,6 +39,16 @@ export const MODEL_MAP: Record = { "gpt-5.2-high": "gpt-5.2", "gpt-5.2-xhigh": "gpt-5.2", + // ============================================================================ + // GPT-5.3 Models (treated like GPT-5.2 for reasoning variants) + // ============================================================================ + "gpt-5.3": "gpt-5.3", + "gpt-5.3-none": "gpt-5.3", + "gpt-5.3-low": "gpt-5.3", + "gpt-5.3-medium": "gpt-5.3", + "gpt-5.3-high": "gpt-5.3", + "gpt-5.3-xhigh": "gpt-5.3", + // ============================================================================ // GPT-5.2 Codex Models (low/medium/high/xhigh) // ============================================================================ @@ -48,6 +58,50 @@ export const MODEL_MAP: Record = { "gpt-5.2-codex-high": "gpt-5.2-codex", "gpt-5.2-codex-xhigh": "gpt-5.2-codex", + // ============================================================================ + // GPT-5.3 Codex Models + // ============================================================================ + "gpt-5.3-codex": "gpt-5.3-codex", + "gpt-5.3-codex-low": "gpt-5.3-codex", + "gpt-5.3-codex-medium": "gpt-5.3-codex", + "gpt-5.3-codex-high": "gpt-5.3-codex", + "gpt-5.3-codex-xhigh": "gpt-5.3-codex", + + // GPT-5.3 Codex Spark (ultra-fast) + "gpt-5.3-codex-spark": "gpt-5.3-codex-spark", + "gpt-5.3-codex-spark-low": "gpt-5.3-codex-spark", + "gpt-5.3-codex-spark-medium": "gpt-5.3-codex-spark", + "gpt-5.3-codex-spark-high": "gpt-5.3-codex-spark", + "gpt-5.3-codex-spark-xhigh": "gpt-5.3-codex-spark", + + // ============================================================================ + // GPT-5.4 Models + // ============================================================================ + "gpt-5.4": "gpt-5.4", + "gpt-5.4-fast": "gpt-5.4-fast", + "gpt-5.4-none": "gpt-5.4", + "gpt-5.4-low": "gpt-5.4", + "gpt-5.4-medium": "gpt-5.4", + "gpt-5.4-high": "gpt-5.4", + "gpt-5.4-xhigh": "gpt-5.4", + "gpt-5.4-mini": "gpt-5.4-mini", + "gpt-5.4-mini-fast": "gpt-5.4-mini-fast", + "gpt-5.4-mini-none": "gpt-5.4-mini", + "gpt-5.4-mini-low": "gpt-5.4-mini", + "gpt-5.4-mini-medium": "gpt-5.4-mini", + "gpt-5.4-mini-high": "gpt-5.4-mini", + + // ============================================================================ + // GPT-5.5 Models + // ============================================================================ + "gpt-5.5": "gpt-5.5", + "gpt-5.5-fast": "gpt-5.5-fast", + "gpt-5.5-none": "gpt-5.5", + "gpt-5.5-low": "gpt-5.5", + "gpt-5.5-medium": "gpt-5.5", + "gpt-5.5-high": "gpt-5.5", + "gpt-5.5-xhigh": "gpt-5.5", + // ============================================================================ // GPT-5.1 Codex Mini Models // ============================================================================ diff --git a/lib/request/request-transformer.ts b/lib/request/request-transformer.ts index 07f9961..c438857 100644 --- a/lib/request/request-transformer.ts +++ b/lib/request/request-transformer.ts @@ -46,8 +46,45 @@ export function normalizeModel(model: string | undefined): string { // like "GPT 5 Codex Low (ChatGPT Subscription)" const normalized = modelId.toLowerCase(); + // ChatGPT OAuth/Codex backend does not support Pro tier model IDs. + // Keep this explicit so users get a clear error instead of a generic 400. + if ( + normalized.includes("gpt-5.5-pro") || + normalized.includes("gpt 5.5 pro") + ) { + return "gpt-5.5-pro"; + } + // Priority order for pattern matching (most specific first): - // 1. GPT-5.2 Codex (newest codex model) + // 1. Codex variants (newest first) + // Treat newer codex variants as first-class (do NOT downgrade) + if ( + normalized.includes("gpt-5.5-codex") || + normalized.includes("gpt 5.5 codex") + ) { + return "gpt-5.5-codex"; + } + if ( + normalized.includes("gpt-5.4-codex") || + normalized.includes("gpt 5.4 codex") + ) { + return "gpt-5.4-codex"; + } + if ( + normalized.includes("gpt-5.3-codex-spark") || + normalized.includes("gpt 5.3 codex spark") || + normalized.includes("gpt-5.3-codex_spark") + ) { + return "gpt-5.3-codex-spark"; + } + if ( + normalized.includes("gpt-5.3-codex") || + normalized.includes("gpt 5.3 codex") + ) { + return "gpt-5.3-codex"; + } + + // 2. GPT-5.2 Codex if ( normalized.includes("gpt-5.2-codex") || normalized.includes("gpt 5.2 codex") @@ -55,7 +92,21 @@ export function normalizeModel(model: string | undefined): string { return "gpt-5.2-codex"; } - // 2. GPT-5.2 (general purpose) + // 3. GPT-5.5 / 5.4 / 5.3 general purpose + if (normalized.includes("gpt-5.5") || normalized.includes("gpt 5.5")) { + return "gpt-5.5"; + } + if (normalized.includes("gpt-5.4-mini") || normalized.includes("gpt 5.4 mini")) { + return "gpt-5.4-mini"; + } + if (normalized.includes("gpt-5.4") || normalized.includes("gpt 5.4")) { + return "gpt-5.4"; + } + if (normalized.includes("gpt-5.3") || normalized.includes("gpt 5.3")) { + return "gpt-5.3"; + } + + // 4. GPT-5.2 (general purpose) if (normalized.includes("gpt-5.2") || normalized.includes("gpt 5.2")) { return "gpt-5.2"; } @@ -99,7 +150,10 @@ export function normalizeModel(model: string | undefined): string { } // 8. GPT-5 Codex family (any variant with "codex") + // If we don't recognize the exact variant, prefer the newest known Codex slug. if (normalized.includes("codex")) { + if (normalized.includes("spark")) return "gpt-5.3-codex-spark"; + // Keep legacy behavior for generic "gpt-5-codex" style names. return "gpt-5.1-codex"; } @@ -428,6 +482,12 @@ export async function transformRequestBody( const originalModel = body.model; const normalizedModel = normalizeModel(body.model); + if (normalizedModel === "gpt-5.5-pro") { + throw new Error( + "The 'gpt-5.5-pro' model is not supported when using Codex with a ChatGPT account. Use gpt-5.5 instead.", + ); + } + // Get model-specific configuration using ORIGINAL model name (config key) // This allows per-model options like "gpt-5-codex-low" to work correctly const lookupModel = originalModel || normalizedModel; diff --git a/scripts/install-opencode-codex-auth.js b/scripts/install-opencode-codex-auth.js index aaaeddf..1d036a2 100755 --- a/scripts/install-opencode-codex-auth.js +++ b/scripts/install-opencode-codex-auth.js @@ -123,10 +123,10 @@ async function getKnownModelIds() { join(repoRoot, "config", "opencode-modern.json"), ); const legacyModels = Object.keys( - legacyTemplate?.provider?.openai?.models || {}, + legacyTemplate?.provider?.["openai"]?.models || {}, ); const modernModels = Object.keys( - modernTemplate?.provider?.openai?.models || {}, + modernTemplate?.provider?.["openai"]?.models || {}, ); return new Set([...legacyModels, ...modernModels]); } @@ -309,8 +309,8 @@ async function main() { ? { ...existing.provider } : {}; const openai = - provider.openai && typeof provider.openai === "object" - ? { ...provider.openai } + provider["openai"] && typeof provider["openai"] === "object" + ? { ...provider["openai"] } : {}; const knownModelIds = await getKnownModelIds(); @@ -329,9 +329,9 @@ async function main() { } if (Object.keys(openai).length > 0) { - provider.openai = openai; + provider["openai"] = openai; } else { - delete provider.openai; + delete provider["openai"]; } const updates = []; @@ -387,13 +387,16 @@ async function main() { existing.provider && typeof existing.provider === "object" ? { ...existing.provider } : {}; - provider.openai = mergeOpenAIConfig(provider.openai, template.provider.openai); + provider["openai"] = mergeOpenAIConfig( + provider["openai"], + template.provider["openai"], + ); merged.provider = provider; nextConfig = merged; nextContent = applyJsoncUpdates(content, [ { path: ["plugin"], value: merged.plugin }, - { path: ["provider", "openai"], value: merged.provider.openai }, + { path: ["provider", "openai"], value: merged.provider["openai"] }, ]); } catch (error) { log(`Warning: Could not parse existing config (${error}). Replacing with template.`); diff --git a/test/install-script.test.ts b/test/install-script.test.ts index 0ab3d6d..922af96 100644 --- a/test/install-script.test.ts +++ b/test/install-script.test.ts @@ -53,9 +53,9 @@ describe('Install script', () => { expect(content).toContain('// My existing config'); expect(data.plugin).toContain('opencode-openai-codex-auth'); expect(data.plugin).toContain('some-other-plugin@1.2.3'); - expect(data.provider.openai.timeout).toBe(60000); - expect(data.provider.openai.models['custom-model']).toBeDefined(); - expect(data.provider.openai.models['gpt-5.2']).toBeDefined(); + expect(data.provider['openai'].timeout).toBe(60000); + expect(data.provider['openai'].models['custom-model']).toBeDefined(); + expect(data.provider['openai'].models['gpt-5.2']).toBeDefined(); }); it('prefers JSONC when both jsonc and json exist', () => { @@ -114,10 +114,10 @@ describe('Install script', () => { const { data } = readJsoncFile(configPath); expect(data.plugin).toEqual(['some-other-plugin@1.2.3']); - expect(data.provider.openai.timeout).toBe(60000); - expect(data.provider.openai.models['custom-model']).toBeDefined(); - expect(data.provider.openai.models['gpt-5.2']).toBeUndefined(); - expect(data.provider.openai.models['gpt-5.2-codex']).toBeUndefined(); + expect(data.provider['openai'].timeout).toBe(60000); + expect(data.provider['openai'].models['custom-model']).toBeDefined(); + expect(data.provider['openai'].models['gpt-5.2']).toBeUndefined(); + expect(data.provider['openai'].models['gpt-5.2-codex']).toBeUndefined(); expect(data.provider.anthropic).toBeDefined(); }); From d3105d5a3e8e6dcd2c3c55b838c964d59d7ea167 Mon Sep 17 00:00:00 2001 From: leether Date: Mon, 4 May 2026 15:14:49 +0800 Subject: [PATCH 02/16] docs: update README model count and families --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 24dd0f7..0d97c09 100644 --- a/README.md +++ b/README.md @@ -63,7 +63,7 @@ Minimal configs are not supported for GPT‑5.x; use the full configs above. --- ## ✅ Features - ChatGPT Plus/Pro OAuth authentication (official flow) -- 22 model presets across GPT‑5.2 / GPT‑5.2 Codex / GPT‑5.1 families +- 30 model presets across GPT‑5.5 / GPT‑5.4 / GPT‑5.3 / GPT‑5.2 / GPT‑5.1 families - Variant system support (v1.0.210+) + legacy presets - Multimodal input enabled for all models - Usage‑aware errors + automatic token refresh From 093c2ef1f320a4758a63e8fd7e3ffb5812d2c3c6 Mon Sep 17 00:00:00 2001 From: leether Date: Mon, 4 May 2026 15:17:46 +0800 Subject: [PATCH 03/16] docs: add fast variants to README model list --- README.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/README.md b/README.md index 0d97c09..7838d50 100644 --- a/README.md +++ b/README.md @@ -44,8 +44,11 @@ npx -y opencode-openai-codex-auth@latest --uninstall --all --- ## 📦 Models - **gpt-5.5** (none/low/medium/high/xhigh) +- **gpt-5.5-fast** (none/low/medium/high/xhigh) - **gpt-5.4** (none/low/medium/high/xhigh) +- **gpt-5.4-fast** (none/low/medium/high/xhigh) - **gpt-5.4-mini** (none/low/medium/high) +- **gpt-5.4-mini-fast** (none/low/medium/high) - **gpt-5.3-codex** (low/medium/high/xhigh) - **gpt-5.3-codex-spark** (low/medium/high/xhigh) - **gpt-5.2** (none/low/medium/high/xhigh) From 7cdff76d6de1f6dfcb4d5e32ec7e8ab376521fbf Mon Sep 17 00:00:00 2001 From: Paolo Calvi Date: Thu, 30 Jul 2026 21:44:09 +0000 Subject: [PATCH 04/16] feat: add GPT-5.6 Sol / Terra / Luna support The ChatGPT/Codex backend serves the three named 5.6 tiers to ChatGPT Plus/Pro accounts, so they can run on subscription quota rather than metered api.openai.com credits. Verified against POST https://chatgpt.com/backend-api/codex/responses: gpt-5.6-sol HTTP 200 gpt-5.6-terra HTTP 200 gpt-5.6-luna HTTP 200 gpt-5.6 HTTP 400 'not supported when using Codex with a ChatGPT account' gpt-5.6-codex HTTP 400 (same) Only the three supported ids are mapped. The pattern-matching fallback in request-transformer checks the 5.6 tiers before the 5.5 branch, otherwise an unmapped id such as gpt-5.6-sol-pro would silently downgrade to gpt-5.5. 229 existing tests pass unchanged. --- lib/request/helpers/model-map.ts | 34 ++++++++++++++++++++++++++++++ lib/request/request-transformer.ts | 13 +++++++++++- 2 files changed, 46 insertions(+), 1 deletion(-) diff --git a/lib/request/helpers/model-map.ts b/lib/request/helpers/model-map.ts index 9185aff..46333e0 100644 --- a/lib/request/helpers/model-map.ts +++ b/lib/request/helpers/model-map.ts @@ -102,6 +102,40 @@ export const MODEL_MAP: Record = { "gpt-5.5-high": "gpt-5.5", "gpt-5.5-xhigh": "gpt-5.5", + // ============================================================================ + // GPT-5.6 Models (Sol / Terra / Luna) + // + // The ChatGPT/Codex backend serves the three named 5.6 tiers but rejects the + // bare "gpt-5.6" and "gpt-5.6-codex" ids with: + // "The 'gpt-5.6' model is not supported when using Codex with a ChatGPT + // account." + // so only sol/terra/luna are mapped here. Verified against + // POST https://chatgpt.com/backend-api/codex/responses on 2026-07-30. + // ============================================================================ + "gpt-5.6-sol": "gpt-5.6-sol", + "gpt-5.6-sol-fast": "gpt-5.6-sol-fast", + "gpt-5.6-sol-none": "gpt-5.6-sol", + "gpt-5.6-sol-low": "gpt-5.6-sol", + "gpt-5.6-sol-medium": "gpt-5.6-sol", + "gpt-5.6-sol-high": "gpt-5.6-sol", + "gpt-5.6-sol-xhigh": "gpt-5.6-sol", + + "gpt-5.6-terra": "gpt-5.6-terra", + "gpt-5.6-terra-fast": "gpt-5.6-terra-fast", + "gpt-5.6-terra-none": "gpt-5.6-terra", + "gpt-5.6-terra-low": "gpt-5.6-terra", + "gpt-5.6-terra-medium": "gpt-5.6-terra", + "gpt-5.6-terra-high": "gpt-5.6-terra", + "gpt-5.6-terra-xhigh": "gpt-5.6-terra", + + "gpt-5.6-luna": "gpt-5.6-luna", + "gpt-5.6-luna-fast": "gpt-5.6-luna-fast", + "gpt-5.6-luna-none": "gpt-5.6-luna", + "gpt-5.6-luna-low": "gpt-5.6-luna", + "gpt-5.6-luna-medium": "gpt-5.6-luna", + "gpt-5.6-luna-high": "gpt-5.6-luna", + "gpt-5.6-luna-xhigh": "gpt-5.6-luna", + // ============================================================================ // GPT-5.1 Codex Mini Models // ============================================================================ diff --git a/lib/request/request-transformer.ts b/lib/request/request-transformer.ts index c438857..624862f 100644 --- a/lib/request/request-transformer.ts +++ b/lib/request/request-transformer.ts @@ -92,7 +92,18 @@ export function normalizeModel(model: string | undefined): string { return "gpt-5.2-codex"; } - // 3. GPT-5.5 / 5.4 / 5.3 general purpose + // 3. GPT-5.6 named tiers, then 5.5 / 5.4 / 5.3 general purpose. + // The 5.6 checks must precede the 5.5 check: an unmapped id such as + // "gpt-5.6-sol-pro" would otherwise fall through to a plain 5.5 downgrade. + if (normalized.includes("gpt-5.6-sol") || normalized.includes("gpt 5.6 sol")) { + return "gpt-5.6-sol"; + } + if (normalized.includes("gpt-5.6-terra") || normalized.includes("gpt 5.6 terra")) { + return "gpt-5.6-terra"; + } + if (normalized.includes("gpt-5.6-luna") || normalized.includes("gpt 5.6 luna")) { + return "gpt-5.6-luna"; + } if (normalized.includes("gpt-5.5") || normalized.includes("gpt 5.5")) { return "gpt-5.5"; } From a7bd151b49908bc6a98754fc56838506a7cace89 Mon Sep 17 00:00:00 2001 From: Paolo Calvi Date: Sun, 20 Sep 2026 17:59:07 +0000 Subject: [PATCH 05/16] fix: map -fast model ids to their base model The ChatGPT/Codex backend rejects every "-fast" id with "The '' model is not supported when using Codex with a ChatGPT account", so passing them through as-is produced a hard 400 rather than a faster request. Verified against POST https://chatgpt.com/backend-api/codex/responses on 2026-09-20 for gpt-5.4-mini-fast, gpt-5.6-{sol,terra,luna}-fast and gpt-6-astra-fast. Mapping them to their base model degrades a "-fast" selection to a working request instead of failing. This also covers opencode's openai provider default, which resolves to gpt-5.6-terra-fast and was therefore unusable. gpt-6-astra already had no -fast entry for this reason; this applies the same treatment to the 5.4, 5.5 and 5.6 families. --- lib/request/helpers/model-map.ts | 41 +++++++++++++++++++++++++++----- 1 file changed, 35 insertions(+), 6 deletions(-) diff --git a/lib/request/helpers/model-map.ts b/lib/request/helpers/model-map.ts index 46333e0..1fbaa54 100644 --- a/lib/request/helpers/model-map.ts +++ b/lib/request/helpers/model-map.ts @@ -10,6 +10,15 @@ * * Key: The model ID as specified in opencode.json config * Value: The normalized model name to send to the API + * + * NOTE ON "-fast": the ChatGPT/Codex backend rejects every "-fast" model id with + * "The '' model is not supported when using Codex with a ChatGPT account." + * Verified against POST https://chatgpt.com/backend-api/codex/responses on + * 2026-09-20 for gpt-5.4-mini-fast, gpt-5.6-{sol,terra,luna}-fast and + * gpt-6-astra-fast. They are therefore mapped to their base model rather than + * passed through, so a "-fast" selection degrades to a working request instead + * of a hard 400. This also covers opencode's openai provider default, which + * resolves to gpt-5.6-terra-fast. */ export const MODEL_MAP: Record = { // ============================================================================ @@ -78,14 +87,14 @@ export const MODEL_MAP: Record = { // GPT-5.4 Models // ============================================================================ "gpt-5.4": "gpt-5.4", - "gpt-5.4-fast": "gpt-5.4-fast", + "gpt-5.4-fast": "gpt-5.4", "gpt-5.4-none": "gpt-5.4", "gpt-5.4-low": "gpt-5.4", "gpt-5.4-medium": "gpt-5.4", "gpt-5.4-high": "gpt-5.4", "gpt-5.4-xhigh": "gpt-5.4", "gpt-5.4-mini": "gpt-5.4-mini", - "gpt-5.4-mini-fast": "gpt-5.4-mini-fast", + "gpt-5.4-mini-fast": "gpt-5.4-mini", "gpt-5.4-mini-none": "gpt-5.4-mini", "gpt-5.4-mini-low": "gpt-5.4-mini", "gpt-5.4-mini-medium": "gpt-5.4-mini", @@ -95,7 +104,7 @@ export const MODEL_MAP: Record = { // GPT-5.5 Models // ============================================================================ "gpt-5.5": "gpt-5.5", - "gpt-5.5-fast": "gpt-5.5-fast", + "gpt-5.5-fast": "gpt-5.5", "gpt-5.5-none": "gpt-5.5", "gpt-5.5-low": "gpt-5.5", "gpt-5.5-medium": "gpt-5.5", @@ -113,7 +122,7 @@ export const MODEL_MAP: Record = { // POST https://chatgpt.com/backend-api/codex/responses on 2026-07-30. // ============================================================================ "gpt-5.6-sol": "gpt-5.6-sol", - "gpt-5.6-sol-fast": "gpt-5.6-sol-fast", + "gpt-5.6-sol-fast": "gpt-5.6-sol", "gpt-5.6-sol-none": "gpt-5.6-sol", "gpt-5.6-sol-low": "gpt-5.6-sol", "gpt-5.6-sol-medium": "gpt-5.6-sol", @@ -121,7 +130,7 @@ export const MODEL_MAP: Record = { "gpt-5.6-sol-xhigh": "gpt-5.6-sol", "gpt-5.6-terra": "gpt-5.6-terra", - "gpt-5.6-terra-fast": "gpt-5.6-terra-fast", + "gpt-5.6-terra-fast": "gpt-5.6-terra", "gpt-5.6-terra-none": "gpt-5.6-terra", "gpt-5.6-terra-low": "gpt-5.6-terra", "gpt-5.6-terra-medium": "gpt-5.6-terra", @@ -129,13 +138,33 @@ export const MODEL_MAP: Record = { "gpt-5.6-terra-xhigh": "gpt-5.6-terra", "gpt-5.6-luna": "gpt-5.6-luna", - "gpt-5.6-luna-fast": "gpt-5.6-luna-fast", + "gpt-5.6-luna-fast": "gpt-5.6-luna", "gpt-5.6-luna-none": "gpt-5.6-luna", "gpt-5.6-luna-low": "gpt-5.6-luna", "gpt-5.6-luna-medium": "gpt-5.6-luna", "gpt-5.6-luna-high": "gpt-5.6-luna", "gpt-5.6-luna-xhigh": "gpt-5.6-luna", + // ============================================================================ + // GPT-6 Models (Astra) + // + // Reasoning efforts are low/medium/high/xhigh/max — "none" is rejected: + // "Unsupported value: 'none' is not supported with the 'gpt-6-astra' + // model. Supported values are: 'low', 'medium', 'high', 'xhigh', and + // 'max'." + // Only the "astra" tier is served: "gpt-6", "gpt-6-codex" and + // "gpt-6-astra-fast" are all rejected with "The '' model is not + // supported when using Codex with a ChatGPT account." + // Verified against POST https://chatgpt.com/backend-api/codex/responses + // on 2026-09-06. + // ============================================================================ + "gpt-6-astra": "gpt-6-astra", + "gpt-6-astra-low": "gpt-6-astra", + "gpt-6-astra-medium": "gpt-6-astra", + "gpt-6-astra-high": "gpt-6-astra", + "gpt-6-astra-xhigh": "gpt-6-astra", + "gpt-6-astra-max": "gpt-6-astra", + // ============================================================================ // GPT-5.1 Codex Mini Models // ============================================================================ From 37afe8dff19ac952b93ec5e8490dbb9f813460b5 Mon Sep 17 00:00:00 2001 From: Paolo Calvi Date: Sun, 20 Sep 2026 18:01:40 +0000 Subject: [PATCH 06/16] feat: normalize GPT-6 Astra and preserve xhigh for 5.6 / 6 normalizeModel had no gpt-6 branch, so any astra id that missed MODEL_MAP fell through every gpt-5 pattern to the default return and was silently downgraded to gpt-5.1. The new check runs ahead of the gpt-5 patterns, so an unreleased tier such as "gpt-6-astra-pro" still resolves to gpt-6-astra rather than a wrong-family model. getReasoningConfig only allowed xhigh for 5.2, 5.2-codex and codex-max, so xhigh on the 5.6 tiers and on astra was quietly clamped to high. Both families accept it (astra: low/medium/high/xhigh/max; 5.6: none through max), so both are now included. --- lib/request/request-transformer.ts | 21 ++++++++++++++++++--- test/config.test.ts | 10 ++++++++++ test/request-transformer.test.ts | 12 ++++++++++++ 3 files changed, 40 insertions(+), 3 deletions(-) diff --git a/lib/request/request-transformer.ts b/lib/request/request-transformer.ts index 624862f..0ed7252 100644 --- a/lib/request/request-transformer.ts +++ b/lib/request/request-transformer.ts @@ -92,7 +92,15 @@ export function normalizeModel(model: string | undefined): string { return "gpt-5.2-codex"; } - // 3. GPT-5.6 named tiers, then 5.5 / 5.4 / 5.3 general purpose. + // 3. GPT-6 named tiers. Must precede every gpt-5 check, and the final + // "gpt-5" catch-all must never see a gpt-6 id: an unmapped "gpt-6-astra-pro" + // matches no gpt-5 pattern and would otherwise reach the default return and + // be silently downgraded to gpt-5.1. + if (normalized.includes("gpt-6-astra") || normalized.includes("gpt 6 astra")) { + return "gpt-6-astra"; + } + + // 4. GPT-5.6 named tiers, then 5.5 / 5.4 / 5.3 general purpose. // The 5.6 checks must precede the 5.5 check: an unmapped id such as // "gpt-5.6-sol-pro" would otherwise fall through to a plain 5.5 downgrade. if (normalized.includes("gpt-5.6-sol") || normalized.includes("gpt 5.6 sol")) { @@ -290,8 +298,15 @@ export function getReasoningConfig( !isCodexMax && !isCodexMini; - // GPT 5.2, GPT 5.2 Codex, and Codex Max support xhigh reasoning - const supportsXhigh = isGpt52General || isGpt52Codex || isCodexMax; + const isGpt56 = + normalizedName.includes("gpt-5.6") || normalizedName.includes("gpt 5.6"); + const isGpt6 = + normalizedName.includes("gpt-6") || normalizedName.includes("gpt 6"); + + // GPT 5.2, GPT 5.2 Codex, Codex Max, the GPT 5.6 tiers, and GPT-6 accept + // xhigh. Anything missing here is silently downgraded to high below. + const supportsXhigh = + isGpt52General || isGpt52Codex || isCodexMax || isGpt56 || isGpt6; // GPT 5.1 general and GPT 5.2 general support "none" reasoning per: // - OpenAI API docs: "gpt-5.1 defaults to none, supports: none, low, medium, high" diff --git a/test/config.test.ts b/test/config.test.ts index 026c58a..4a3ba9b 100644 --- a/test/config.test.ts +++ b/test/config.test.ts @@ -99,6 +99,16 @@ describe('Configuration Parsing', () => { expect(highReasoning.summary).toBe('auto'); }); + it('should preserve xhigh for gpt-6 astra and the gpt-5.6 tiers', () => { + const xhigh = { reasoningEffort: 'xhigh' as const }; + + expect(getReasoningConfig('gpt-6-astra', xhigh).effort).toBe('xhigh'); + expect(getReasoningConfig('gpt-5.6-sol', xhigh).effort).toBe('xhigh'); + expect(getReasoningConfig('gpt-5.6-terra', xhigh).effort).toBe('xhigh'); + expect(getReasoningConfig('gpt-5.6-luna', xhigh).effort).toBe('xhigh'); + expect(getReasoningConfig('gpt-5.1', xhigh).effort).toBe('high'); + }); + it('should respect custom summary setting', () => { const detailedConfig = { reasoningSummary: 'detailed' as const }; const detailedReasoning = getReasoningConfig('gpt-5-codex', detailedConfig); diff --git a/test/request-transformer.test.ts b/test/request-transformer.test.ts index b3c0404..80afe5b 100644 --- a/test/request-transformer.test.ts +++ b/test/request-transformer.test.ts @@ -91,6 +91,18 @@ describe('Request Transformer Module', () => { expect(normalizeModel('openai/gpt-5.2-codex-xhigh')).toBe('gpt-5.2-codex'); }); + it('should normalize gpt-6 astra slugs without downgrading to gpt-5.1', async () => { + expect(normalizeModel('gpt-6-astra')).toBe('gpt-6-astra'); + expect(normalizeModel('openai/gpt-6-astra')).toBe('gpt-6-astra'); + expect(normalizeModel('gpt-6-astra-low')).toBe('gpt-6-astra'); + expect(normalizeModel('gpt-6-astra-medium')).toBe('gpt-6-astra'); + expect(normalizeModel('gpt-6-astra-high')).toBe('gpt-6-astra'); + expect(normalizeModel('gpt-6-astra-xhigh')).toBe('gpt-6-astra'); + expect(normalizeModel('gpt-6-astra-max')).toBe('gpt-6-astra'); + expect(normalizeModel('GPT 6 Astra (OAuth)')).toBe('gpt-6-astra'); + expect(normalizeModel('gpt-6-astra-unreleased-tier')).toBe('gpt-6-astra'); + }); + it('should normalize gpt-5.1 codex and mini slugs', async () => { expect(normalizeModel('gpt-5.1-codex')).toBe('gpt-5.1-codex'); expect(normalizeModel('openai/gpt-5.1-codex')).toBe('gpt-5.1-codex'); From bd6fc28c4d750fbe59f9d3e6607921681de933d3 Mon Sep 17 00:00:00 2001 From: Paolo Calvi Date: Sun, 20 Sep 2026 18:01:44 +0000 Subject: [PATCH 07/16] chore: sync package-lock with 4.4.0 and refresh transitive deps The lockfile still recorded 4.3.1 after the 4.4.0 release. Regenerating it also picks up esbuild 0.25.10 -> 0.27.7 and the current rollup platform binaries. No direct dependency ranges changed. --- package-lock.json | 502 +++++++++++++++++++++++++--------------------- 1 file changed, 274 insertions(+), 228 deletions(-) diff --git a/package-lock.json b/package-lock.json index a3bb40c..e5219fb 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "opencode-openai-codex-auth", - "version": "4.3.1", + "version": "4.4.0", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "opencode-openai-codex-auth", - "version": "4.3.1", + "version": "4.4.0", "license": "MIT", "dependencies": { "@openauthjs/openauth": "^0.4.3", @@ -32,9 +32,9 @@ } }, "node_modules/@esbuild/aix-ppc64": { - "version": "0.25.10", - "resolved": "https://registry.npmjs.org/@esbuild/aix-ppc64/-/aix-ppc64-0.25.10.tgz", - "integrity": "sha512-0NFWnA+7l41irNuaSVlLfgNT12caWJVLzp5eAVhZ0z1qpxbockccEt3s+149rE64VUI3Ml2zt8Nv5JVc4QXTsw==", + "version": "0.27.7", + "resolved": "https://registry.npmjs.org/@esbuild/aix-ppc64/-/aix-ppc64-0.27.7.tgz", + "integrity": "sha512-EKX3Qwmhz1eMdEJokhALr0YiD0lhQNwDqkPYyPhiSwKrh7/4KRjQc04sZ8db+5DVVnZ1LmbNDI1uAMPEUBnQPg==", "cpu": [ "ppc64" ], @@ -49,9 +49,9 @@ } }, "node_modules/@esbuild/android-arm": { - "version": "0.25.10", - "resolved": "https://registry.npmjs.org/@esbuild/android-arm/-/android-arm-0.25.10.tgz", - "integrity": "sha512-dQAxF1dW1C3zpeCDc5KqIYuZ1tgAdRXNoZP7vkBIRtKZPYe2xVr/d3SkirklCHudW1B45tGiUlz2pUWDfbDD4w==", + "version": "0.27.7", + "resolved": "https://registry.npmjs.org/@esbuild/android-arm/-/android-arm-0.27.7.tgz", + "integrity": "sha512-jbPXvB4Yj2yBV7HUfE2KHe4GJX51QplCN1pGbYjvsyCZbQmies29EoJbkEc+vYuU5o45AfQn37vZlyXy4YJ8RQ==", "cpu": [ "arm" ], @@ -66,9 +66,9 @@ } }, "node_modules/@esbuild/android-arm64": { - "version": "0.25.10", - "resolved": "https://registry.npmjs.org/@esbuild/android-arm64/-/android-arm64-0.25.10.tgz", - "integrity": "sha512-LSQa7eDahypv/VO6WKohZGPSJDq5OVOo3UoFR1E4t4Gj1W7zEQMUhI+lo81H+DtB+kP+tDgBp+M4oNCwp6kffg==", + "version": "0.27.7", + "resolved": "https://registry.npmjs.org/@esbuild/android-arm64/-/android-arm64-0.27.7.tgz", + "integrity": "sha512-62dPZHpIXzvChfvfLJow3q5dDtiNMkwiRzPylSCfriLvZeq0a1bWChrGx/BbUbPwOrsWKMn8idSllklzBy+dgQ==", "cpu": [ "arm64" ], @@ -83,9 +83,9 @@ } }, "node_modules/@esbuild/android-x64": { - "version": "0.25.10", - "resolved": "https://registry.npmjs.org/@esbuild/android-x64/-/android-x64-0.25.10.tgz", - "integrity": "sha512-MiC9CWdPrfhibcXwr39p9ha1x0lZJ9KaVfvzA0Wxwz9ETX4v5CHfF09bx935nHlhi+MxhA63dKRRQLiVgSUtEg==", + "version": "0.27.7", + "resolved": "https://registry.npmjs.org/@esbuild/android-x64/-/android-x64-0.27.7.tgz", + "integrity": "sha512-x5VpMODneVDb70PYV2VQOmIUUiBtY3D3mPBG8NxVk5CogneYhkR7MmM3yR/uMdITLrC1ml/NV1rj4bMJuy9MCg==", "cpu": [ "x64" ], @@ -100,9 +100,9 @@ } }, "node_modules/@esbuild/darwin-arm64": { - "version": "0.25.10", - "resolved": "https://registry.npmjs.org/@esbuild/darwin-arm64/-/darwin-arm64-0.25.10.tgz", - "integrity": "sha512-JC74bdXcQEpW9KkV326WpZZjLguSZ3DfS8wrrvPMHgQOIEIG/sPXEN/V8IssoJhbefLRcRqw6RQH2NnpdprtMA==", + "version": "0.27.7", + "resolved": "https://registry.npmjs.org/@esbuild/darwin-arm64/-/darwin-arm64-0.27.7.tgz", + "integrity": "sha512-5lckdqeuBPlKUwvoCXIgI2D9/ABmPq3Rdp7IfL70393YgaASt7tbju3Ac+ePVi3KDH6N2RqePfHnXkaDtY9fkw==", "cpu": [ "arm64" ], @@ -117,9 +117,9 @@ } }, "node_modules/@esbuild/darwin-x64": { - "version": "0.25.10", - "resolved": "https://registry.npmjs.org/@esbuild/darwin-x64/-/darwin-x64-0.25.10.tgz", - "integrity": "sha512-tguWg1olF6DGqzws97pKZ8G2L7Ig1vjDmGTwcTuYHbuU6TTjJe5FXbgs5C1BBzHbJ2bo1m3WkQDbWO2PvamRcg==", + "version": "0.27.7", + "resolved": "https://registry.npmjs.org/@esbuild/darwin-x64/-/darwin-x64-0.27.7.tgz", + "integrity": "sha512-rYnXrKcXuT7Z+WL5K980jVFdvVKhCHhUwid+dDYQpH+qu+TefcomiMAJpIiC2EM3Rjtq0sO3StMV/+3w3MyyqQ==", "cpu": [ "x64" ], @@ -134,9 +134,9 @@ } }, "node_modules/@esbuild/freebsd-arm64": { - "version": "0.25.10", - "resolved": "https://registry.npmjs.org/@esbuild/freebsd-arm64/-/freebsd-arm64-0.25.10.tgz", - "integrity": "sha512-3ZioSQSg1HT2N05YxeJWYR+Libe3bREVSdWhEEgExWaDtyFbbXWb49QgPvFH8u03vUPX10JhJPcz7s9t9+boWg==", + "version": "0.27.7", + "resolved": "https://registry.npmjs.org/@esbuild/freebsd-arm64/-/freebsd-arm64-0.27.7.tgz", + "integrity": "sha512-B48PqeCsEgOtzME2GbNM2roU29AMTuOIN91dsMO30t+Ydis3z/3Ngoj5hhnsOSSwNzS+6JppqWsuhTp6E82l2w==", "cpu": [ "arm64" ], @@ -151,9 +151,9 @@ } }, "node_modules/@esbuild/freebsd-x64": { - "version": "0.25.10", - "resolved": "https://registry.npmjs.org/@esbuild/freebsd-x64/-/freebsd-x64-0.25.10.tgz", - "integrity": "sha512-LLgJfHJk014Aa4anGDbh8bmI5Lk+QidDmGzuC2D+vP7mv/GeSN+H39zOf7pN5N8p059FcOfs2bVlrRr4SK9WxA==", + "version": "0.27.7", + "resolved": "https://registry.npmjs.org/@esbuild/freebsd-x64/-/freebsd-x64-0.27.7.tgz", + "integrity": "sha512-jOBDK5XEjA4m5IJK3bpAQF9/Lelu/Z9ZcdhTRLf4cajlB+8VEhFFRjWgfy3M1O4rO2GQ/b2dLwCUGpiF/eATNQ==", "cpu": [ "x64" ], @@ -168,9 +168,9 @@ } }, "node_modules/@esbuild/linux-arm": { - "version": "0.25.10", - "resolved": "https://registry.npmjs.org/@esbuild/linux-arm/-/linux-arm-0.25.10.tgz", - "integrity": "sha512-oR31GtBTFYCqEBALI9r6WxoU/ZofZl962pouZRTEYECvNF/dtXKku8YXcJkhgK/beU+zedXfIzHijSRapJY3vg==", + "version": "0.27.7", + "resolved": "https://registry.npmjs.org/@esbuild/linux-arm/-/linux-arm-0.27.7.tgz", + "integrity": "sha512-RkT/YXYBTSULo3+af8Ib0ykH8u2MBh57o7q/DAs3lTJlyVQkgQvlrPTnjIzzRPQyavxtPtfg0EopvDyIt0j1rA==", "cpu": [ "arm" ], @@ -185,9 +185,9 @@ } }, "node_modules/@esbuild/linux-arm64": { - "version": "0.25.10", - "resolved": "https://registry.npmjs.org/@esbuild/linux-arm64/-/linux-arm64-0.25.10.tgz", - "integrity": "sha512-5luJWN6YKBsawd5f9i4+c+geYiVEw20FVW5x0v1kEMWNq8UctFjDiMATBxLvmmHA4bf7F6hTRaJgtghFr9iziQ==", + "version": "0.27.7", + "resolved": "https://registry.npmjs.org/@esbuild/linux-arm64/-/linux-arm64-0.27.7.tgz", + "integrity": "sha512-RZPHBoxXuNnPQO9rvjh5jdkRmVizktkT7TCDkDmQ0W2SwHInKCAV95GRuvdSvA7w4VMwfCjUiPwDi0ZO6Nfe9A==", "cpu": [ "arm64" ], @@ -202,9 +202,9 @@ } }, "node_modules/@esbuild/linux-ia32": { - "version": "0.25.10", - "resolved": "https://registry.npmjs.org/@esbuild/linux-ia32/-/linux-ia32-0.25.10.tgz", - "integrity": "sha512-NrSCx2Kim3EnnWgS4Txn0QGt0Xipoumb6z6sUtl5bOEZIVKhzfyp/Lyw4C1DIYvzeW/5mWYPBFJU3a/8Yr75DQ==", + "version": "0.27.7", + "resolved": "https://registry.npmjs.org/@esbuild/linux-ia32/-/linux-ia32-0.27.7.tgz", + "integrity": "sha512-GA48aKNkyQDbd3KtkplYWT102C5sn/EZTY4XROkxONgruHPU72l+gW+FfF8tf2cFjeHaRbWpOYa/uRBz/Xq1Pg==", "cpu": [ "ia32" ], @@ -219,9 +219,9 @@ } }, "node_modules/@esbuild/linux-loong64": { - "version": "0.25.10", - "resolved": "https://registry.npmjs.org/@esbuild/linux-loong64/-/linux-loong64-0.25.10.tgz", - "integrity": "sha512-xoSphrd4AZda8+rUDDfD9J6FUMjrkTz8itpTITM4/xgerAZZcFW7Dv+sun7333IfKxGG8gAq+3NbfEMJfiY+Eg==", + "version": "0.27.7", + "resolved": "https://registry.npmjs.org/@esbuild/linux-loong64/-/linux-loong64-0.27.7.tgz", + "integrity": "sha512-a4POruNM2oWsD4WKvBSEKGIiWQF8fZOAsycHOt6JBpZ+JN2n2JH9WAv56SOyu9X5IqAjqSIPTaJkqN8F7XOQ5Q==", "cpu": [ "loong64" ], @@ -236,9 +236,9 @@ } }, "node_modules/@esbuild/linux-mips64el": { - "version": "0.25.10", - "resolved": "https://registry.npmjs.org/@esbuild/linux-mips64el/-/linux-mips64el-0.25.10.tgz", - "integrity": "sha512-ab6eiuCwoMmYDyTnyptoKkVS3k8fy/1Uvq7Dj5czXI6DF2GqD2ToInBI0SHOp5/X1BdZ26RKc5+qjQNGRBelRA==", + "version": "0.27.7", + "resolved": "https://registry.npmjs.org/@esbuild/linux-mips64el/-/linux-mips64el-0.27.7.tgz", + "integrity": "sha512-KabT5I6StirGfIz0FMgl1I+R1H73Gp0ofL9A3nG3i/cYFJzKHhouBV5VWK1CSgKvVaG4q1RNpCTR2LuTVB3fIw==", "cpu": [ "mips64el" ], @@ -253,9 +253,9 @@ } }, "node_modules/@esbuild/linux-ppc64": { - "version": "0.25.10", - "resolved": "https://registry.npmjs.org/@esbuild/linux-ppc64/-/linux-ppc64-0.25.10.tgz", - "integrity": "sha512-NLinzzOgZQsGpsTkEbdJTCanwA5/wozN9dSgEl12haXJBzMTpssebuXR42bthOF3z7zXFWH1AmvWunUCkBE4EA==", + "version": "0.27.7", + "resolved": "https://registry.npmjs.org/@esbuild/linux-ppc64/-/linux-ppc64-0.27.7.tgz", + "integrity": "sha512-gRsL4x6wsGHGRqhtI+ifpN/vpOFTQtnbsupUF5R5YTAg+y/lKelYR1hXbnBdzDjGbMYjVJLJTd2OFmMewAgwlQ==", "cpu": [ "ppc64" ], @@ -270,9 +270,9 @@ } }, "node_modules/@esbuild/linux-riscv64": { - "version": "0.25.10", - "resolved": "https://registry.npmjs.org/@esbuild/linux-riscv64/-/linux-riscv64-0.25.10.tgz", - "integrity": "sha512-FE557XdZDrtX8NMIeA8LBJX3dC2M8VGXwfrQWU7LB5SLOajfJIxmSdyL/gU1m64Zs9CBKvm4UAuBp5aJ8OgnrA==", + "version": "0.27.7", + "resolved": "https://registry.npmjs.org/@esbuild/linux-riscv64/-/linux-riscv64-0.27.7.tgz", + "integrity": "sha512-hL25LbxO1QOngGzu2U5xeXtxXcW+/GvMN3ejANqXkxZ/opySAZMrc+9LY/WyjAan41unrR3YrmtTsUpwT66InQ==", "cpu": [ "riscv64" ], @@ -287,9 +287,9 @@ } }, "node_modules/@esbuild/linux-s390x": { - "version": "0.25.10", - "resolved": "https://registry.npmjs.org/@esbuild/linux-s390x/-/linux-s390x-0.25.10.tgz", - "integrity": "sha512-3BBSbgzuB9ajLoVZk0mGu+EHlBwkusRmeNYdqmznmMc9zGASFjSsxgkNsqmXugpPk00gJ0JNKh/97nxmjctdew==", + "version": "0.27.7", + "resolved": "https://registry.npmjs.org/@esbuild/linux-s390x/-/linux-s390x-0.27.7.tgz", + "integrity": "sha512-2k8go8Ycu1Kb46vEelhu1vqEP+UeRVj2zY1pSuPdgvbd5ykAw82Lrro28vXUrRmzEsUV0NzCf54yARIK8r0fdw==", "cpu": [ "s390x" ], @@ -304,9 +304,9 @@ } }, "node_modules/@esbuild/linux-x64": { - "version": "0.25.10", - "resolved": "https://registry.npmjs.org/@esbuild/linux-x64/-/linux-x64-0.25.10.tgz", - "integrity": "sha512-QSX81KhFoZGwenVyPoberggdW1nrQZSvfVDAIUXr3WqLRZGZqWk/P4T8p2SP+de2Sr5HPcvjhcJzEiulKgnxtA==", + "version": "0.27.7", + "resolved": "https://registry.npmjs.org/@esbuild/linux-x64/-/linux-x64-0.27.7.tgz", + "integrity": "sha512-hzznmADPt+OmsYzw1EE33ccA+HPdIqiCRq7cQeL1Jlq2gb1+OyWBkMCrYGBJ+sxVzve2ZJEVeePbLM2iEIZSxA==", "cpu": [ "x64" ], @@ -321,9 +321,9 @@ } }, "node_modules/@esbuild/netbsd-arm64": { - "version": "0.25.10", - "resolved": "https://registry.npmjs.org/@esbuild/netbsd-arm64/-/netbsd-arm64-0.25.10.tgz", - "integrity": "sha512-AKQM3gfYfSW8XRk8DdMCzaLUFB15dTrZfnX8WXQoOUpUBQ+NaAFCP1kPS/ykbbGYz7rxn0WS48/81l9hFl3u4A==", + "version": "0.27.7", + "resolved": "https://registry.npmjs.org/@esbuild/netbsd-arm64/-/netbsd-arm64-0.27.7.tgz", + "integrity": "sha512-b6pqtrQdigZBwZxAn1UpazEisvwaIDvdbMbmrly7cDTMFnw/+3lVxxCTGOrkPVnsYIosJJXAsILG9XcQS+Yu6w==", "cpu": [ "arm64" ], @@ -338,9 +338,9 @@ } }, "node_modules/@esbuild/netbsd-x64": { - "version": "0.25.10", - "resolved": "https://registry.npmjs.org/@esbuild/netbsd-x64/-/netbsd-x64-0.25.10.tgz", - "integrity": "sha512-7RTytDPGU6fek/hWuN9qQpeGPBZFfB4zZgcz2VK2Z5VpdUxEI8JKYsg3JfO0n/Z1E/6l05n0unDCNc4HnhQGig==", + "version": "0.27.7", + "resolved": "https://registry.npmjs.org/@esbuild/netbsd-x64/-/netbsd-x64-0.27.7.tgz", + "integrity": "sha512-OfatkLojr6U+WN5EDYuoQhtM+1xco+/6FSzJJnuWiUw5eVcicbyK3dq5EeV/QHT1uy6GoDhGbFpprUiHUYggrw==", "cpu": [ "x64" ], @@ -355,9 +355,9 @@ } }, "node_modules/@esbuild/openbsd-arm64": { - "version": "0.25.10", - "resolved": "https://registry.npmjs.org/@esbuild/openbsd-arm64/-/openbsd-arm64-0.25.10.tgz", - "integrity": "sha512-5Se0VM9Wtq797YFn+dLimf2Zx6McttsH2olUBsDml+lm0GOCRVebRWUvDtkY4BWYv/3NgzS8b/UM3jQNh5hYyw==", + "version": "0.27.7", + "resolved": "https://registry.npmjs.org/@esbuild/openbsd-arm64/-/openbsd-arm64-0.27.7.tgz", + "integrity": "sha512-AFuojMQTxAz75Fo8idVcqoQWEHIXFRbOc1TrVcFSgCZtQfSdc1RXgB3tjOn/krRHENUB4j00bfGjyl2mJrU37A==", "cpu": [ "arm64" ], @@ -372,9 +372,9 @@ } }, "node_modules/@esbuild/openbsd-x64": { - "version": "0.25.10", - "resolved": "https://registry.npmjs.org/@esbuild/openbsd-x64/-/openbsd-x64-0.25.10.tgz", - "integrity": "sha512-XkA4frq1TLj4bEMB+2HnI0+4RnjbuGZfet2gs/LNs5Hc7D89ZQBHQ0gL2ND6Lzu1+QVkjp3x1gIcPKzRNP8bXw==", + "version": "0.27.7", + "resolved": "https://registry.npmjs.org/@esbuild/openbsd-x64/-/openbsd-x64-0.27.7.tgz", + "integrity": "sha512-+A1NJmfM8WNDv5CLVQYJ5PshuRm/4cI6WMZRg1by1GwPIQPCTs1GLEUHwiiQGT5zDdyLiRM/l1G0Pv54gvtKIg==", "cpu": [ "x64" ], @@ -389,9 +389,9 @@ } }, "node_modules/@esbuild/openharmony-arm64": { - "version": "0.25.10", - "resolved": "https://registry.npmjs.org/@esbuild/openharmony-arm64/-/openharmony-arm64-0.25.10.tgz", - "integrity": "sha512-AVTSBhTX8Y/Fz6OmIVBip9tJzZEUcY8WLh7I59+upa5/GPhh2/aM6bvOMQySspnCCHvFi79kMtdJS1w0DXAeag==", + "version": "0.27.7", + "resolved": "https://registry.npmjs.org/@esbuild/openharmony-arm64/-/openharmony-arm64-0.27.7.tgz", + "integrity": "sha512-+KrvYb/C8zA9CU/g0sR6w2RBw7IGc5J2BPnc3dYc5VJxHCSF1yNMxTV5LQ7GuKteQXZtspjFbiuW5/dOj7H4Yw==", "cpu": [ "arm64" ], @@ -406,9 +406,9 @@ } }, "node_modules/@esbuild/sunos-x64": { - "version": "0.25.10", - "resolved": "https://registry.npmjs.org/@esbuild/sunos-x64/-/sunos-x64-0.25.10.tgz", - "integrity": "sha512-fswk3XT0Uf2pGJmOpDB7yknqhVkJQkAQOcW/ccVOtfx05LkbWOaRAtn5SaqXypeKQra1QaEa841PgrSL9ubSPQ==", + "version": "0.27.7", + "resolved": "https://registry.npmjs.org/@esbuild/sunos-x64/-/sunos-x64-0.27.7.tgz", + "integrity": "sha512-ikktIhFBzQNt/QDyOL580ti9+5mL/YZeUPKU2ivGtGjdTYoqz6jObj6nOMfhASpS4GU4Q/Clh1QtxWAvcYKamA==", "cpu": [ "x64" ], @@ -423,9 +423,9 @@ } }, "node_modules/@esbuild/win32-arm64": { - "version": "0.25.10", - "resolved": "https://registry.npmjs.org/@esbuild/win32-arm64/-/win32-arm64-0.25.10.tgz", - "integrity": "sha512-ah+9b59KDTSfpaCg6VdJoOQvKjI33nTaQr4UluQwW7aEwZQsbMCfTmfEO4VyewOxx4RaDT/xCy9ra2GPWmO7Kw==", + "version": "0.27.7", + "resolved": "https://registry.npmjs.org/@esbuild/win32-arm64/-/win32-arm64-0.27.7.tgz", + "integrity": "sha512-7yRhbHvPqSpRUV7Q20VuDwbjW5kIMwTHpptuUzV+AA46kiPze5Z7qgt6CLCK3pWFrHeNfDd1VKgyP4O+ng17CA==", "cpu": [ "arm64" ], @@ -440,9 +440,9 @@ } }, "node_modules/@esbuild/win32-ia32": { - "version": "0.25.10", - "resolved": "https://registry.npmjs.org/@esbuild/win32-ia32/-/win32-ia32-0.25.10.tgz", - "integrity": "sha512-QHPDbKkrGO8/cz9LKVnJU22HOi4pxZnZhhA2HYHez5Pz4JeffhDjf85E57Oyco163GnzNCVkZK0b/n4Y0UHcSw==", + "version": "0.27.7", + "resolved": "https://registry.npmjs.org/@esbuild/win32-ia32/-/win32-ia32-0.27.7.tgz", + "integrity": "sha512-SmwKXe6VHIyZYbBLJrhOoCJRB/Z1tckzmgTLfFYOfpMAx63BJEaL9ExI8x7v0oAO3Zh6D/Oi1gVxEYr5oUCFhw==", "cpu": [ "ia32" ], @@ -457,9 +457,9 @@ } }, "node_modules/@esbuild/win32-x64": { - "version": "0.25.10", - "resolved": "https://registry.npmjs.org/@esbuild/win32-x64/-/win32-x64-0.25.10.tgz", - "integrity": "sha512-9KpxSVFCu0iK1owoez6aC/s/EdUQLDN3adTxGCqxMVhrPDj6bt5dbrHDXUuq+Bs2vATFBBrQS5vdQ/Ed2P+nbw==", + "version": "0.27.7", + "resolved": "https://registry.npmjs.org/@esbuild/win32-x64/-/win32-x64-0.27.7.tgz", + "integrity": "sha512-56hiAJPhwQ1R4i+21FVF7V8kSD5zZTdHcVuRFMW0hn753vVfQN8xlx4uOPT4xoGH0Z/oVATuR82AiqSTDIpaHg==", "cpu": [ "x64" ], @@ -515,6 +515,7 @@ "resolved": "https://registry.npmjs.org/@oslojs/asn1/-/asn1-1.0.0.tgz", "integrity": "sha512-zw/wn0sj0j0QKbIXfIlnEcTviaCzYOY3V5rAyjR6YtOByFtJiT574+8p9Wlach0lZH9fddD4yb9laEAIl4vXQA==", "license": "MIT", + "peer": true, "dependencies": { "@oslojs/binary": "1.0.0" } @@ -523,13 +524,15 @@ "version": "1.0.0", "resolved": "https://registry.npmjs.org/@oslojs/binary/-/binary-1.0.0.tgz", "integrity": "sha512-9RCU6OwXU6p67H4NODbuxv2S3eenuQ4/WFLrsq+K/k682xrznH5EVWA7N4VFk9VYVcbFtKqur5YQQZc0ySGhsQ==", - "license": "MIT" + "license": "MIT", + "peer": true }, "node_modules/@oslojs/crypto": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/@oslojs/crypto/-/crypto-1.0.1.tgz", "integrity": "sha512-7n08G8nWjAr/Yu3vu9zzrd0L9XnrJfpMioQcvCMxBIiF5orECHe5/3J0jmXRVvgfqMm/+4oxlQ+Sq39COYLcNQ==", "license": "MIT", + "peer": true, "dependencies": { "@oslojs/asn1": "1.0.0", "@oslojs/binary": "1.0.0" @@ -539,13 +542,15 @@ "version": "1.1.0", "resolved": "https://registry.npmjs.org/@oslojs/encoding/-/encoding-1.1.0.tgz", "integrity": "sha512-70wQhgYmndg4GCPxPPxPGevRKqTIJ2Nh4OkiMWmDAVYsTQ+Ta7Sq+rPevXyXGdzr30/qZBnyOalCszoMxlyldQ==", - "license": "MIT" + "license": "MIT", + "peer": true }, "node_modules/@oslojs/jwt": { "version": "0.2.0", "resolved": "https://registry.npmjs.org/@oslojs/jwt/-/jwt-0.2.0.tgz", "integrity": "sha512-bLE7BtHrURedCn4Mco3ma9L4Y1GR2SMBuIvjWr7rmQ4/W/4Jy70TIAgZ+0nIlk0xHz1vNP8x8DCns45Sb2XRbg==", "license": "MIT", + "peer": true, "dependencies": { "@oslojs/encoding": "0.4.1" } @@ -554,7 +559,8 @@ "version": "0.4.1", "resolved": "https://registry.npmjs.org/@oslojs/encoding/-/encoding-0.4.1.tgz", "integrity": "sha512-hkjo6MuIK/kQR5CrGNdAPZhS01ZCXuWDRJ187zh6qqF2+yMHZpD9fAYpX8q2bOO6Ryhl3XpCT6kUX76N8hhm4Q==", - "license": "MIT" + "license": "MIT", + "peer": true }, "node_modules/@polka/url": { "version": "1.0.0-next.29", @@ -564,9 +570,9 @@ "license": "MIT" }, "node_modules/@rollup/rollup-android-arm-eabi": { - "version": "4.52.4", - "resolved": "https://registry.npmjs.org/@rollup/rollup-android-arm-eabi/-/rollup-android-arm-eabi-4.52.4.tgz", - "integrity": "sha512-BTm2qKNnWIQ5auf4deoetINJm2JzvihvGb9R6K/ETwKLql/Bb3Eg2H1FBp1gUb4YGbydMA3jcmQTR73q7J+GAA==", + "version": "4.60.4", + "resolved": "https://registry.npmjs.org/@rollup/rollup-android-arm-eabi/-/rollup-android-arm-eabi-4.60.4.tgz", + "integrity": "sha512-F5QXMSiFebS9hKZj02XhWLLnRpJ3B3AROP0tWbFBSj+6kCbg5m9j5JoHKd4mmSVy5mS/IMQloYgYxCuJC0fxEQ==", "cpu": [ "arm" ], @@ -578,9 +584,9 @@ ] }, "node_modules/@rollup/rollup-android-arm64": { - "version": "4.52.4", - "resolved": "https://registry.npmjs.org/@rollup/rollup-android-arm64/-/rollup-android-arm64-4.52.4.tgz", - "integrity": "sha512-P9LDQiC5vpgGFgz7GSM6dKPCiqR3XYN1WwJKA4/BUVDjHpYsf3iBEmVz62uyq20NGYbiGPR5cNHI7T1HqxNs2w==", + "version": "4.60.4", + "resolved": "https://registry.npmjs.org/@rollup/rollup-android-arm64/-/rollup-android-arm64-4.60.4.tgz", + "integrity": "sha512-GxxTKApUpzRhof7poWvCJHRF51C67u1R7D6DiluBE8wKU1u5GWE8t+v81JvJYtbawoBFX1hLv5Ei4eVjkWokaw==", "cpu": [ "arm64" ], @@ -592,9 +598,9 @@ ] }, "node_modules/@rollup/rollup-darwin-arm64": { - "version": "4.52.4", - "resolved": "https://registry.npmjs.org/@rollup/rollup-darwin-arm64/-/rollup-darwin-arm64-4.52.4.tgz", - "integrity": "sha512-QRWSW+bVccAvZF6cbNZBJwAehmvG9NwfWHwMy4GbWi/BQIA/laTIktebT2ipVjNncqE6GLPxOok5hsECgAxGZg==", + "version": "4.60.4", + "resolved": "https://registry.npmjs.org/@rollup/rollup-darwin-arm64/-/rollup-darwin-arm64-4.60.4.tgz", + "integrity": "sha512-tua0TaJxMOB1R0V0RS1jFZ/RpURFDJIOR2A6jWwQeawuFyS4gBW+rntLRaQd0EQ4bd6Vp44Z2rXW+YYDBsj6IA==", "cpu": [ "arm64" ], @@ -606,9 +612,9 @@ ] }, "node_modules/@rollup/rollup-darwin-x64": { - "version": "4.52.4", - "resolved": "https://registry.npmjs.org/@rollup/rollup-darwin-x64/-/rollup-darwin-x64-4.52.4.tgz", - "integrity": "sha512-hZgP05pResAkRJxL1b+7yxCnXPGsXU0fG9Yfd6dUaoGk+FhdPKCJ5L1Sumyxn8kvw8Qi5PvQ8ulenUbRjzeCTw==", + "version": "4.60.4", + "resolved": "https://registry.npmjs.org/@rollup/rollup-darwin-x64/-/rollup-darwin-x64-4.60.4.tgz", + "integrity": "sha512-CSKq7MsP+5PFIcydhAiR1K0UhEI1A2jWXVKHPCBZ151yOutENwvnPocgVHkivu2kviURtCEB6zUQw0vs8RrhMg==", "cpu": [ "x64" ], @@ -620,9 +626,9 @@ ] }, "node_modules/@rollup/rollup-freebsd-arm64": { - "version": "4.52.4", - "resolved": "https://registry.npmjs.org/@rollup/rollup-freebsd-arm64/-/rollup-freebsd-arm64-4.52.4.tgz", - "integrity": "sha512-xmc30VshuBNUd58Xk4TKAEcRZHaXlV+tCxIXELiE9sQuK3kG8ZFgSPi57UBJt8/ogfhAF5Oz4ZSUBN77weM+mQ==", + "version": "4.60.4", + "resolved": "https://registry.npmjs.org/@rollup/rollup-freebsd-arm64/-/rollup-freebsd-arm64-4.60.4.tgz", + "integrity": "sha512-+O8OkVdyvXMtJEciu2wS/pzm1IxntEEQx3z5TAVy4l32G0etZn+RsA48ARRrFm6Ri8fvqPQfgrvNxSjKAbnd3g==", "cpu": [ "arm64" ], @@ -634,9 +640,9 @@ ] }, "node_modules/@rollup/rollup-freebsd-x64": { - "version": "4.52.4", - "resolved": "https://registry.npmjs.org/@rollup/rollup-freebsd-x64/-/rollup-freebsd-x64-4.52.4.tgz", - "integrity": "sha512-WdSLpZFjOEqNZGmHflxyifolwAiZmDQzuOzIq9L27ButpCVpD7KzTRtEG1I0wMPFyiyUdOO+4t8GvrnBLQSwpw==", + "version": "4.60.4", + "resolved": "https://registry.npmjs.org/@rollup/rollup-freebsd-x64/-/rollup-freebsd-x64-4.60.4.tgz", + "integrity": "sha512-Iw3oMskH3AfNuhU0MSN7vNbdi4me/NiYo2azqPz/Le16zHSa+3RRmliCMWWQmh4lcndccU40xcJuTYJZxNo/lw==", "cpu": [ "x64" ], @@ -648,9 +654,9 @@ ] }, "node_modules/@rollup/rollup-linux-arm-gnueabihf": { - "version": "4.52.4", - "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm-gnueabihf/-/rollup-linux-arm-gnueabihf-4.52.4.tgz", - "integrity": "sha512-xRiOu9Of1FZ4SxVbB0iEDXc4ddIcjCv2aj03dmW8UrZIW7aIQ9jVJdLBIhxBI+MaTnGAKyvMwPwQnoOEvP7FgQ==", + "version": "4.60.4", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm-gnueabihf/-/rollup-linux-arm-gnueabihf-4.60.4.tgz", + "integrity": "sha512-EIPRXTVQpHyF8WOo219AD2yEltPehLTcTMz2fn6JsatLYSzQf00hj3rulF+yauOlF9/FtM2WpkT/hJh/KJFGhA==", "cpu": [ "arm" ], @@ -662,9 +668,9 @@ ] }, "node_modules/@rollup/rollup-linux-arm-musleabihf": { - "version": "4.52.4", - "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm-musleabihf/-/rollup-linux-arm-musleabihf-4.52.4.tgz", - "integrity": "sha512-FbhM2p9TJAmEIEhIgzR4soUcsW49e9veAQCziwbR+XWB2zqJ12b4i/+hel9yLiD8pLncDH4fKIPIbt5238341Q==", + "version": "4.60.4", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm-musleabihf/-/rollup-linux-arm-musleabihf-4.60.4.tgz", + "integrity": "sha512-J3Yh9PzzF1Ovah2At+lHiGQdsYgArxBbXv/zHfSyaiFQEqvNv7DcW98pCrmdjCZBrqBiKrKKe2V+aaSGWuBe/w==", "cpu": [ "arm" ], @@ -676,9 +682,9 @@ ] }, "node_modules/@rollup/rollup-linux-arm64-gnu": { - "version": "4.52.4", - "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm64-gnu/-/rollup-linux-arm64-gnu-4.52.4.tgz", - "integrity": "sha512-4n4gVwhPHR9q/g8lKCyz0yuaD0MvDf7dV4f9tHt0C73Mp8h38UCtSCSE6R9iBlTbXlmA8CjpsZoujhszefqueg==", + "version": "4.60.4", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm64-gnu/-/rollup-linux-arm64-gnu-4.60.4.tgz", + "integrity": "sha512-BFDEZMYfUvLn37ONE1yMBojPxnMlTFsdyNoqncT0qFq1mAfllL+ATMMJd8TeuVMiX84s1KbcxcZbXInmcO2mRg==", "cpu": [ "arm64" ], @@ -690,9 +696,9 @@ ] }, "node_modules/@rollup/rollup-linux-arm64-musl": { - "version": "4.52.4", - "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm64-musl/-/rollup-linux-arm64-musl-4.52.4.tgz", - "integrity": "sha512-u0n17nGA0nvi/11gcZKsjkLj1QIpAuPFQbR48Subo7SmZJnGxDpspyw2kbpuoQnyK+9pwf3pAoEXerJs/8Mi9g==", + "version": "4.60.4", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm64-musl/-/rollup-linux-arm64-musl-4.60.4.tgz", + "integrity": "sha512-pc9EYOSlOgdQ2uPl1o9PF6/kLSgaUosia7gOuS8mB69IxJvlclko1MECXysjs5ryez1/5zjYqx3+xYU0TU6R1A==", "cpu": [ "arm64" ], @@ -704,9 +710,23 @@ ] }, "node_modules/@rollup/rollup-linux-loong64-gnu": { - "version": "4.52.4", - "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-loong64-gnu/-/rollup-linux-loong64-gnu-4.52.4.tgz", - "integrity": "sha512-0G2c2lpYtbTuXo8KEJkDkClE/+/2AFPdPAbmaHoE870foRFs4pBrDehilMcrSScrN/fB/1HTaWO4bqw+ewBzMQ==", + "version": "4.60.4", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-loong64-gnu/-/rollup-linux-loong64-gnu-4.60.4.tgz", + "integrity": "sha512-NxnomyxYerDh5n4iLrNa+sH+Z+U4BMEE46V2PgQ/hoB909i8gV1M5wPojWg9fk1jWpO3IQnOs20K4wyZuFLEFQ==", + "cpu": [ + "loong64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@rollup/rollup-linux-loong64-musl": { + "version": "4.60.4", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-loong64-musl/-/rollup-linux-loong64-musl-4.60.4.tgz", + "integrity": "sha512-nbJnQ8a3z1mtmrwImCYhc6BGpThAyYVRQxw9uKSKG4wR6aAYno9sVjJ0zaZcW9BPJX1GbrDPf+SvdWjgTuDmnw==", "cpu": [ "loong64" ], @@ -718,9 +738,23 @@ ] }, "node_modules/@rollup/rollup-linux-ppc64-gnu": { - "version": "4.52.4", - "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-ppc64-gnu/-/rollup-linux-ppc64-gnu-4.52.4.tgz", - "integrity": "sha512-teSACug1GyZHmPDv14VNbvZFX779UqWTsd7KtTM9JIZRDI5NUwYSIS30kzI8m06gOPB//jtpqlhmraQ68b5X2g==", + "version": "4.60.4", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-ppc64-gnu/-/rollup-linux-ppc64-gnu-4.60.4.tgz", + "integrity": "sha512-2EU6acNrQLd8tYvo/LXW535wupT3m6fo7HKo6lr7ktQoItxTyOL1ZCR/GfGCuXl2vR+zmfI6eRXkSemafv+iVg==", + "cpu": [ + "ppc64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@rollup/rollup-linux-ppc64-musl": { + "version": "4.60.4", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-ppc64-musl/-/rollup-linux-ppc64-musl-4.60.4.tgz", + "integrity": "sha512-WeBtoMuaMxiiIrO2IYP3xs6GMWkJP2C0EoT8beTLkUPmzV1i/UcOSVw1d5r9KBODtHKilG5yFxsGRnBbK3wJ4A==", "cpu": [ "ppc64" ], @@ -732,9 +766,9 @@ ] }, "node_modules/@rollup/rollup-linux-riscv64-gnu": { - "version": "4.52.4", - "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-riscv64-gnu/-/rollup-linux-riscv64-gnu-4.52.4.tgz", - "integrity": "sha512-/MOEW3aHjjs1p4Pw1Xk4+3egRevx8Ji9N6HUIA1Ifh8Q+cg9dremvFCUbOX2Zebz80BwJIgCBUemjqhU5XI5Eg==", + "version": "4.60.4", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-riscv64-gnu/-/rollup-linux-riscv64-gnu-4.60.4.tgz", + "integrity": "sha512-FJHFfqpKUI3A10WrWKiFbBZ7yVbGT4q4B5o1qKFFojqpaYoh9LrQgqWCmmcxQzVSXYtyB5bzkXrYzlHTs21MYA==", "cpu": [ "riscv64" ], @@ -746,9 +780,9 @@ ] }, "node_modules/@rollup/rollup-linux-riscv64-musl": { - "version": "4.52.4", - "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-riscv64-musl/-/rollup-linux-riscv64-musl-4.52.4.tgz", - "integrity": "sha512-1HHmsRyh845QDpEWzOFtMCph5Ts+9+yllCrREuBR/vg2RogAQGGBRC8lDPrPOMnrdOJ+mt1WLMOC2Kao/UwcvA==", + "version": "4.60.4", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-riscv64-musl/-/rollup-linux-riscv64-musl-4.60.4.tgz", + "integrity": "sha512-mcEl6CUT5IAUmQf1m9FYSmVqCJlpQ8r8eyftFUHG8i9OhY7BkBXSUdnLH5DOf0wCOjcP9v/QO93zpmF1SptCCw==", "cpu": [ "riscv64" ], @@ -760,9 +794,9 @@ ] }, "node_modules/@rollup/rollup-linux-s390x-gnu": { - "version": "4.52.4", - "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-s390x-gnu/-/rollup-linux-s390x-gnu-4.52.4.tgz", - "integrity": "sha512-seoeZp4L/6D1MUyjWkOMRU6/iLmCU2EjbMTyAG4oIOs1/I82Y5lTeaxW0KBfkUdHAWN7j25bpkt0rjnOgAcQcA==", + "version": "4.60.4", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-s390x-gnu/-/rollup-linux-s390x-gnu-4.60.4.tgz", + "integrity": "sha512-ynt3JxVd2w2buzoKDWIyiV1pJW93xlQic1THVLXilz429oijRpSHivZAgp65KBu+cMcgf1eVVjdnTLvPxgCuoQ==", "cpu": [ "s390x" ], @@ -774,9 +808,9 @@ ] }, "node_modules/@rollup/rollup-linux-x64-gnu": { - "version": "4.52.4", - "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-x64-gnu/-/rollup-linux-x64-gnu-4.52.4.tgz", - "integrity": "sha512-Wi6AXf0k0L7E2gteNsNHUs7UMwCIhsCTs6+tqQ5GPwVRWMaflqGec4Sd8n6+FNFDw9vGcReqk2KzBDhCa1DLYg==", + "version": "4.60.4", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-x64-gnu/-/rollup-linux-x64-gnu-4.60.4.tgz", + "integrity": "sha512-Boiz5+MsaROEWDf+GGEwF8VMHGhlUoQMtIPjOgA5fv4osupqTVnJteQNKJwUcnUog2G55jYXH7KZFFiJe0TEzQ==", "cpu": [ "x64" ], @@ -788,9 +822,9 @@ ] }, "node_modules/@rollup/rollup-linux-x64-musl": { - "version": "4.52.4", - "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-x64-musl/-/rollup-linux-x64-musl-4.52.4.tgz", - "integrity": "sha512-dtBZYjDmCQ9hW+WgEkaffvRRCKm767wWhxsFW3Lw86VXz/uJRuD438/XvbZT//B96Vs8oTA8Q4A0AfHbrxP9zw==", + "version": "4.60.4", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-x64-musl/-/rollup-linux-x64-musl-4.60.4.tgz", + "integrity": "sha512-+qfSY27qIrFfI/Hom04KYFw3GKZSGU4lXus51wsb5EuySfFlWRwjkKWoE9emgRw/ukoT4Udsj4W/+xxG8VbPKg==", "cpu": [ "x64" ], @@ -801,10 +835,24 @@ "linux" ] }, + "node_modules/@rollup/rollup-openbsd-x64": { + "version": "4.60.4", + "resolved": "https://registry.npmjs.org/@rollup/rollup-openbsd-x64/-/rollup-openbsd-x64-4.60.4.tgz", + "integrity": "sha512-VpTfOPHgVXEBeeR8hZ2O0F3aSso+JDWqTWmTmzcQKted54IAdUVbxE+j/MVxUsKa8L20HJhv3vUezVPoquqWjA==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "openbsd" + ] + }, "node_modules/@rollup/rollup-openharmony-arm64": { - "version": "4.52.4", - "resolved": "https://registry.npmjs.org/@rollup/rollup-openharmony-arm64/-/rollup-openharmony-arm64-4.52.4.tgz", - "integrity": "sha512-1ox+GqgRWqaB1RnyZXL8PD6E5f7YyRUJYnCqKpNzxzP0TkaUh112NDrR9Tt+C8rJ4x5G9Mk8PQR3o7Ku2RKqKA==", + "version": "4.60.4", + "resolved": "https://registry.npmjs.org/@rollup/rollup-openharmony-arm64/-/rollup-openharmony-arm64-4.60.4.tgz", + "integrity": "sha512-IPOsh5aRYuLv/nkU51X10Bf75Bsf6+gZdx1X+QP5QM6lIJFHHqbHLG0uJn/hWthzo13UAc2umiUorqZy3axoZg==", "cpu": [ "arm64" ], @@ -816,9 +864,9 @@ ] }, "node_modules/@rollup/rollup-win32-arm64-msvc": { - "version": "4.52.4", - "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-arm64-msvc/-/rollup-win32-arm64-msvc-4.52.4.tgz", - "integrity": "sha512-8GKr640PdFNXwzIE0IrkMWUNUomILLkfeHjXBi/nUvFlpZP+FA8BKGKpacjW6OUUHaNI6sUURxR2U2g78FOHWQ==", + "version": "4.60.4", + "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-arm64-msvc/-/rollup-win32-arm64-msvc-4.60.4.tgz", + "integrity": "sha512-4QzE9E81OohJ/HKzHhsqU+zcYYojVOXlFMs1DdyMT6qXl/niOH7AVElmmEdUNHHS/oRkc++d5k6Vy85zFs0DEw==", "cpu": [ "arm64" ], @@ -830,9 +878,9 @@ ] }, "node_modules/@rollup/rollup-win32-ia32-msvc": { - "version": "4.52.4", - "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-ia32-msvc/-/rollup-win32-ia32-msvc-4.52.4.tgz", - "integrity": "sha512-AIy/jdJ7WtJ/F6EcfOb2GjR9UweO0n43jNObQMb6oGxkYTfLcnN7vYYpG+CN3lLxrQkzWnMOoNSHTW54pgbVxw==", + "version": "4.60.4", + "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-ia32-msvc/-/rollup-win32-ia32-msvc-4.60.4.tgz", + "integrity": "sha512-zTPgT1YuHHcd+Tmx7h8aml0FWFVelV5N54oHow9SLj+GfoDy/huQ+UV396N/C7KpMDMiPspRktzM1/0r1usYEA==", "cpu": [ "ia32" ], @@ -844,9 +892,9 @@ ] }, "node_modules/@rollup/rollup-win32-x64-gnu": { - "version": "4.52.4", - "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-x64-gnu/-/rollup-win32-x64-gnu-4.52.4.tgz", - "integrity": "sha512-UF9KfsH9yEam0UjTwAgdK0anlQ7c8/pWPU2yVjyWcF1I1thABt6WXE47cI71pGiZ8wGvxohBoLnxM04L/wj8mQ==", + "version": "4.60.4", + "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-x64-gnu/-/rollup-win32-x64-gnu-4.60.4.tgz", + "integrity": "sha512-DRS4G7mi9lJxqEDezIkKCaUIKCrLUUDCUaCsTPCi/rtqaC6D/jjwslMQyiDU50Ka0JKpeXeRBFBAXwArY52vBw==", "cpu": [ "x64" ], @@ -858,9 +906,9 @@ ] }, "node_modules/@rollup/rollup-win32-x64-msvc": { - "version": "4.52.4", - "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-x64-msvc/-/rollup-win32-x64-msvc-4.52.4.tgz", - "integrity": "sha512-bf9PtUa0u8IXDVxzRToFQKsNCRz9qLYfR/MpECxl4mRoWYjAeFjgxj1XdZr2M/GNVpT05p+LgQOHopYDlUu6/w==", + "version": "4.60.4", + "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-x64-msvc/-/rollup-win32-x64-msvc-4.60.4.tgz", + "integrity": "sha512-QVTUovf40zgTqlFVrKA1uXMVvU2QWEFWfAH8Wdc48IxLvrJMQVMBRjuQyUpzZCDkakImib9eVazbWlC6ksWtJw==", "cpu": [ "x64" ], @@ -907,7 +955,6 @@ "integrity": "sha512-d2L25Y4j+W3ZlNAeMKcy7yDsK425ibcAOO2t7aPTz6gNMH0z2GThtwENCDc0d/Pw9wgyRqE5Px1wkV7naz8ang==", "dev": true, "license": "MIT", - "peer": true, "dependencies": { "undici-types": "~7.13.0" } @@ -1171,9 +1218,9 @@ "license": "MIT" }, "node_modules/esbuild": { - "version": "0.25.10", - "resolved": "https://registry.npmjs.org/esbuild/-/esbuild-0.25.10.tgz", - "integrity": "sha512-9RiGKvCwaqxO2owP61uQ4BgNborAQskMR6QusfWzQqv7AZOg5oGehdY2pRJMTKuwxd1IDBP4rSbI5lHzU7SMsQ==", + "version": "0.27.7", + "resolved": "https://registry.npmjs.org/esbuild/-/esbuild-0.27.7.tgz", + "integrity": "sha512-IxpibTjyVnmrIQo5aqNpCgoACA/dTKLTlhMHihVHhdkxKyPO1uBBthumT0rdHmcsk9uMonIWS0m4FljWzILh3w==", "dev": true, "hasInstallScript": true, "license": "MIT", @@ -1184,32 +1231,32 @@ "node": ">=18" }, "optionalDependencies": { - "@esbuild/aix-ppc64": "0.25.10", - "@esbuild/android-arm": "0.25.10", - "@esbuild/android-arm64": "0.25.10", - "@esbuild/android-x64": "0.25.10", - "@esbuild/darwin-arm64": "0.25.10", - "@esbuild/darwin-x64": "0.25.10", - "@esbuild/freebsd-arm64": "0.25.10", - "@esbuild/freebsd-x64": "0.25.10", - "@esbuild/linux-arm": "0.25.10", - "@esbuild/linux-arm64": "0.25.10", - "@esbuild/linux-ia32": "0.25.10", - "@esbuild/linux-loong64": "0.25.10", - "@esbuild/linux-mips64el": "0.25.10", - "@esbuild/linux-ppc64": "0.25.10", - "@esbuild/linux-riscv64": "0.25.10", - "@esbuild/linux-s390x": "0.25.10", - "@esbuild/linux-x64": "0.25.10", - "@esbuild/netbsd-arm64": "0.25.10", - "@esbuild/netbsd-x64": "0.25.10", - "@esbuild/openbsd-arm64": "0.25.10", - "@esbuild/openbsd-x64": "0.25.10", - "@esbuild/openharmony-arm64": "0.25.10", - "@esbuild/sunos-x64": "0.25.10", - "@esbuild/win32-arm64": "0.25.10", - "@esbuild/win32-ia32": "0.25.10", - "@esbuild/win32-x64": "0.25.10" + "@esbuild/aix-ppc64": "0.27.7", + "@esbuild/android-arm": "0.27.7", + "@esbuild/android-arm64": "0.27.7", + "@esbuild/android-x64": "0.27.7", + "@esbuild/darwin-arm64": "0.27.7", + "@esbuild/darwin-x64": "0.27.7", + "@esbuild/freebsd-arm64": "0.27.7", + "@esbuild/freebsd-x64": "0.27.7", + "@esbuild/linux-arm": "0.27.7", + "@esbuild/linux-arm64": "0.27.7", + "@esbuild/linux-ia32": "0.27.7", + "@esbuild/linux-loong64": "0.27.7", + "@esbuild/linux-mips64el": "0.27.7", + "@esbuild/linux-ppc64": "0.27.7", + "@esbuild/linux-riscv64": "0.27.7", + "@esbuild/linux-s390x": "0.27.7", + "@esbuild/linux-x64": "0.27.7", + "@esbuild/netbsd-arm64": "0.27.7", + "@esbuild/netbsd-x64": "0.27.7", + "@esbuild/openbsd-arm64": "0.27.7", + "@esbuild/openbsd-x64": "0.27.7", + "@esbuild/openharmony-arm64": "0.27.7", + "@esbuild/sunos-x64": "0.27.7", + "@esbuild/win32-arm64": "0.27.7", + "@esbuild/win32-ia32": "0.27.7", + "@esbuild/win32-x64": "0.27.7" } }, "node_modules/estree-walker": { @@ -1258,9 +1305,9 @@ "license": "MIT" }, "node_modules/flatted": { - "version": "3.3.3", - "resolved": "https://registry.npmjs.org/flatted/-/flatted-3.3.3.tgz", - "integrity": "sha512-GX+ysw4PBCz0PzosHDepZGANEuFCMLrnRTiEy9McGjmkCQYwRq4A/X786G/fjM/+OjsWSU1ZrY5qyARZmO/uwg==", + "version": "3.4.2", + "resolved": "https://registry.npmjs.org/flatted/-/flatted-3.4.2.tgz", + "integrity": "sha512-PjDse7RzhcPkIJwy5t7KPWQSZ9cAbzQXcafsetQoD7sOJRQlGikNbx7yZp2OotDnJyrDcbyRq3Ttb18iYOqkxA==", "dev": true, "license": "ISC" }, @@ -1280,11 +1327,10 @@ } }, "node_modules/hono": { - "version": "4.10.4", - "resolved": "https://registry.npmjs.org/hono/-/hono-4.10.4.tgz", - "integrity": "sha512-YG/fo7zlU3KwrBL5vDpWKisLYiM+nVstBQqfr7gCPbSYURnNEP9BDxEMz8KfsDR9JX0lJWDRNc6nXX31v7ZEyg==", + "version": "4.12.23", + "resolved": "https://registry.npmjs.org/hono/-/hono-4.12.23.tgz", + "integrity": "sha512-eIaZ9qDgu7XV0pxOCrg7/WhnQ6Ivm22UcxhXx/A3dcbqbbYgBEkc6e/J/s7j2tS96zoB0S9VBdLwQNCWwUo4LA==", "license": "MIT", - "peer": true, "engines": { "node": ">=16.9.0" } @@ -1346,9 +1392,9 @@ "license": "MIT" }, "node_modules/nanoid": { - "version": "3.3.11", - "resolved": "https://registry.npmjs.org/nanoid/-/nanoid-3.3.11.tgz", - "integrity": "sha512-N8SpfPUnUp1bK+PMYW8qSWdl9U+wwNWI4QKxOYDy9JAro3WMX7p2OeVRF9v+347pnakNevPmiHhNmZ2HbFA76w==", + "version": "3.3.12", + "resolved": "https://registry.npmjs.org/nanoid/-/nanoid-3.3.12.tgz", + "integrity": "sha512-ZB9RH/39qpq5Vu6Y+NmUaFhQR6pp+M2Xt76XBnEwDaGcVAqhlvxrl3B2bKS5D3NH3QR76v3aSrKaF/Kiy7lEtQ==", "dev": true, "funding": [ { @@ -1382,12 +1428,11 @@ "license": "ISC" }, "node_modules/picomatch": { - "version": "4.0.3", - "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-4.0.3.tgz", - "integrity": "sha512-5gTmgEY/sqK6gFXLIsQNH19lWb4ebPDLA4SdLP7dsWkIXHWlG66oPuVvXSGFPppYZz8ZDZq0dYYrbHfBCVUb1Q==", + "version": "4.0.4", + "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-4.0.4.tgz", + "integrity": "sha512-QP88BAKvMam/3NxH6vj2o21R6MjxZUAd6nlwAS/pnGvN9IVLocLHxGYIzFhg6fUQ+5th6P4dv4eW9jX3DSIj7A==", "dev": true, "license": "MIT", - "peer": true, "engines": { "node": ">=12" }, @@ -1396,9 +1441,9 @@ } }, "node_modules/postcss": { - "version": "8.5.6", - "resolved": "https://registry.npmjs.org/postcss/-/postcss-8.5.6.tgz", - "integrity": "sha512-3Ybi1tAuwAP9s0r1UQ2J4n5Y0G05bJkpUIO0/bI9MhwmD70S5aTWbXGBwxHrelT+XM1k6dM0pk+SwNkpTRN7Pg==", + "version": "8.5.15", + "resolved": "https://registry.npmjs.org/postcss/-/postcss-8.5.15.tgz", + "integrity": "sha512-FfR8sjd4em2T6fb3I2MwAJU7HWVMr9zba+enmQeeWFfCbm+UOC/0X4DS8XtpUTMwWMGbjKYP7xjfNekzyGmB3A==", "dev": true, "funding": [ { @@ -1416,7 +1461,7 @@ ], "license": "MIT", "dependencies": { - "nanoid": "^3.3.11", + "nanoid": "^3.3.12", "picocolors": "^1.1.1", "source-map-js": "^1.2.1" }, @@ -1425,9 +1470,9 @@ } }, "node_modules/rollup": { - "version": "4.52.4", - "resolved": "https://registry.npmjs.org/rollup/-/rollup-4.52.4.tgz", - "integrity": "sha512-CLEVl+MnPAiKh5pl4dEWSyMTpuflgNQiLGhMv8ezD5W/qP8AKvmYpCOKRRNOh7oRKnauBZ4SyeYkMS+1VSyKwQ==", + "version": "4.60.4", + "resolved": "https://registry.npmjs.org/rollup/-/rollup-4.60.4.tgz", + "integrity": "sha512-WHeFSbZYsPu3+bLoNRUuAO+wavNlocOPf3wSHTP7hcFKVnJeWsYlCDbr3mTS14FCizf9ccIxXA8sGL8zKeQN3g==", "dev": true, "license": "MIT", "dependencies": { @@ -1441,28 +1486,31 @@ "npm": ">=8.0.0" }, "optionalDependencies": { - "@rollup/rollup-android-arm-eabi": "4.52.4", - "@rollup/rollup-android-arm64": "4.52.4", - "@rollup/rollup-darwin-arm64": "4.52.4", - "@rollup/rollup-darwin-x64": "4.52.4", - "@rollup/rollup-freebsd-arm64": "4.52.4", - "@rollup/rollup-freebsd-x64": "4.52.4", - "@rollup/rollup-linux-arm-gnueabihf": "4.52.4", - "@rollup/rollup-linux-arm-musleabihf": "4.52.4", - "@rollup/rollup-linux-arm64-gnu": "4.52.4", - "@rollup/rollup-linux-arm64-musl": "4.52.4", - "@rollup/rollup-linux-loong64-gnu": "4.52.4", - "@rollup/rollup-linux-ppc64-gnu": "4.52.4", - "@rollup/rollup-linux-riscv64-gnu": "4.52.4", - "@rollup/rollup-linux-riscv64-musl": "4.52.4", - "@rollup/rollup-linux-s390x-gnu": "4.52.4", - "@rollup/rollup-linux-x64-gnu": "4.52.4", - "@rollup/rollup-linux-x64-musl": "4.52.4", - "@rollup/rollup-openharmony-arm64": "4.52.4", - "@rollup/rollup-win32-arm64-msvc": "4.52.4", - "@rollup/rollup-win32-ia32-msvc": "4.52.4", - "@rollup/rollup-win32-x64-gnu": "4.52.4", - "@rollup/rollup-win32-x64-msvc": "4.52.4", + "@rollup/rollup-android-arm-eabi": "4.60.4", + "@rollup/rollup-android-arm64": "4.60.4", + "@rollup/rollup-darwin-arm64": "4.60.4", + "@rollup/rollup-darwin-x64": "4.60.4", + "@rollup/rollup-freebsd-arm64": "4.60.4", + "@rollup/rollup-freebsd-x64": "4.60.4", + "@rollup/rollup-linux-arm-gnueabihf": "4.60.4", + "@rollup/rollup-linux-arm-musleabihf": "4.60.4", + "@rollup/rollup-linux-arm64-gnu": "4.60.4", + "@rollup/rollup-linux-arm64-musl": "4.60.4", + "@rollup/rollup-linux-loong64-gnu": "4.60.4", + "@rollup/rollup-linux-loong64-musl": "4.60.4", + "@rollup/rollup-linux-ppc64-gnu": "4.60.4", + "@rollup/rollup-linux-ppc64-musl": "4.60.4", + "@rollup/rollup-linux-riscv64-gnu": "4.60.4", + "@rollup/rollup-linux-riscv64-musl": "4.60.4", + "@rollup/rollup-linux-s390x-gnu": "4.60.4", + "@rollup/rollup-linux-x64-gnu": "4.60.4", + "@rollup/rollup-linux-x64-musl": "4.60.4", + "@rollup/rollup-openbsd-x64": "4.60.4", + "@rollup/rollup-openharmony-arm64": "4.60.4", + "@rollup/rollup-win32-arm64-msvc": "4.60.4", + "@rollup/rollup-win32-ia32-msvc": "4.60.4", + "@rollup/rollup-win32-x64-gnu": "4.60.4", + "@rollup/rollup-win32-x64-msvc": "4.60.4", "fsevents": "~2.3.2" } }, @@ -1618,14 +1666,13 @@ "license": "MIT" }, "node_modules/vite": { - "version": "7.1.12", - "resolved": "https://registry.npmjs.org/vite/-/vite-7.1.12.tgz", - "integrity": "sha512-ZWyE8YXEXqJrrSLvYgrRP7p62OziLW7xI5HYGWFzOvupfAlrLvURSzv/FyGyy0eidogEM3ujU+kUG1zuHgb6Ug==", + "version": "7.3.3", + "resolved": "https://registry.npmjs.org/vite/-/vite-7.3.3.tgz", + "integrity": "sha512-/4XH147Ui7OGTjg3HbdWe5arnZQSbfuRzdr9Ec7TQi5I7R+ir0Rlc9GIvD4v0XZurELqA035KVXJXpR61xhiTA==", "dev": true, "license": "MIT", - "peer": true, "dependencies": { - "esbuild": "^0.25.0", + "esbuild": "^0.27.0", "fdir": "^6.5.0", "picomatch": "^4.0.3", "postcss": "^8.5.6", @@ -1729,7 +1776,6 @@ "integrity": "sha512-LUCP5ev3GURDysTWiP47wRRUpLKMOfPh+yKTx3kVIEiu5KOMeqzpnYNsKyOoVrULivR8tLcks4+lga33Whn90A==", "dev": true, "license": "MIT", - "peer": true, "dependencies": { "@types/chai": "^5.2.2", "@vitest/expect": "3.2.4", From 608e9a89b9d977a48f7d8f60e6e58efd6447a8b1 Mon Sep 17 00:00:00 2001 From: Paolo Calvi Date: Sun, 20 Sep 2026 18:01:54 +0000 Subject: [PATCH 08/16] chore: ignore local agent tooling directories .omo/ and .serena/ hold local agent state (run-continuation data, Serena caches and memories). They are machine-specific and were surfacing as untracked on every status, where they risk being committed by accident. .opencode/ is already ignored for the same reason. --- .gitignore | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.gitignore b/.gitignore index 1e9aad7..e46fa1f 100644 --- a/.gitignore +++ b/.gitignore @@ -6,5 +6,7 @@ dist/ .history/ opencode.json .opencode/ +.omo/ +.serena/ tmp .codex-cache*.tgz From 814fa75afac57685fabe1474b6cd62c133173f0c Mon Sep 17 00:00:00 2001 From: Paolo Calvi Date: Sun, 20 Sep 2026 18:06:24 +0000 Subject: [PATCH 09/16] feat: expose GPT-6 Astra and the GPT-5.6 tiers in the installer config MODEL_MAP and normalizeModel have handled gpt-6-astra and gpt-5.6 sol/terra/luna since the 5.6 work, but neither was ever added to opencode-modern.json, so a fresh install exposed 14 models and none of the new ones. Users had to hand-edit their opencode.json to reach models the plugin already supported. Adds the four models with the effort ranges the backend actually accepts: astra low..max (no "none", which it rejects outright) and the 5.6 tiers none..max. Context follows the 5.5 generation convention at 400k. README now lists them, drops the stale "30 model presets" figure for the real 81 across 18 models, and documents that "-fast" ids normalize to their base model rather than selecting a distinct tier. --- README.md | 15 ++- config/opencode-modern.json | 187 ++++++++++++++++++++++++++++++++++++ 2 files changed, 200 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 7838d50..fd2e7ad 100644 --- a/README.md +++ b/README.md @@ -12,7 +12,7 @@ --- ## 💡 Philosophy > **"One config. Every model."** -OpenCode should feel effortless. This plugin keeps the setup minimal while giving you full GPT‑5.x + Codex access via ChatGPT OAuth. +OpenCode should feel effortless. This plugin keeps the setup minimal while giving you full GPT‑5.x / GPT‑6 + Codex access via ChatGPT OAuth. ``` ┌─────────────────────────────────────────────────────────┐ │ │ @@ -43,6 +43,10 @@ npx -y opencode-openai-codex-auth@latest --uninstall --all ``` --- ## 📦 Models +- **gpt-6-astra** (low/medium/high/xhigh/max) +- **gpt-5.6-sol** (none/low/medium/high/xhigh/max) +- **gpt-5.6-terra** (none/low/medium/high/xhigh/max) +- **gpt-5.6-luna** (none/low/medium/high/xhigh/max) - **gpt-5.5** (none/low/medium/high/xhigh) - **gpt-5.5-fast** (none/low/medium/high/xhigh) - **gpt-5.4** (none/low/medium/high/xhigh) @@ -57,6 +61,13 @@ npx -y opencode-openai-codex-auth@latest --uninstall --all - **gpt-5.1-codex** (low/medium/high) - **gpt-5.1-codex-mini** (medium/high) - **gpt-5.1** (none/low/medium/high) + +> `gpt-6-astra` does not accept `none`; the Codex backend rejects it explicitly. +> +> The `-fast` ids are accepted but resolve to their base model. The Codex +> backend serves no separate fast tier over ChatGPT OAuth and returns +> `"The '' model is not supported when using Codex with a ChatGPT account"` +> for every `-fast` id, so they are normalized rather than passed through. --- ## 🧩 Configuration - Modern (OpenCode v1.0.210+): `config/opencode-modern.json` @@ -66,7 +77,7 @@ Minimal configs are not supported for GPT‑5.x; use the full configs above. --- ## ✅ Features - ChatGPT Plus/Pro OAuth authentication (official flow) -- 30 model presets across GPT‑5.5 / GPT‑5.4 / GPT‑5.3 / GPT‑5.2 / GPT‑5.1 families +- 81 reasoning presets across 18 models, spanning the GPT‑6 / GPT‑5.6 / GPT‑5.5 / GPT‑5.4 / GPT‑5.3 / GPT‑5.2 / GPT‑5.1 families - Variant system support (v1.0.210+) + legacy presets - Multimodal input enabled for all models - Usage‑aware errors + automatic token refresh diff --git a/config/opencode-modern.json b/config/opencode-modern.json index e2d7065..d54cc77 100644 --- a/config/opencode-modern.json +++ b/config/opencode-modern.json @@ -16,6 +16,193 @@ "store": false }, "models": { + "gpt-6-astra": { + "name": "GPT 6 Astra (OAuth)", + "limit": { + "context": 400000, + "output": 128000 + }, + "modalities": { + "input": [ + "text", + "image" + ], + "output": [ + "text" + ] + }, + "variants": { + "low": { + "reasoningEffort": "low", + "reasoningSummary": "auto", + "textVerbosity": "medium" + }, + "medium": { + "reasoningEffort": "medium", + "reasoningSummary": "auto", + "textVerbosity": "medium" + }, + "high": { + "reasoningEffort": "high", + "reasoningSummary": "detailed", + "textVerbosity": "medium" + }, + "xhigh": { + "reasoningEffort": "xhigh", + "reasoningSummary": "detailed", + "textVerbosity": "medium" + }, + "max": { + "reasoningEffort": "max", + "reasoningSummary": "detailed", + "textVerbosity": "medium" + } + } + }, + "gpt-5.6-sol": { + "name": "GPT 5.6 Sol (OAuth)", + "limit": { + "context": 400000, + "output": 128000 + }, + "modalities": { + "input": [ + "text", + "image" + ], + "output": [ + "text" + ] + }, + "variants": { + "none": { + "reasoningEffort": "none", + "reasoningSummary": "auto", + "textVerbosity": "medium" + }, + "low": { + "reasoningEffort": "low", + "reasoningSummary": "auto", + "textVerbosity": "medium" + }, + "medium": { + "reasoningEffort": "medium", + "reasoningSummary": "auto", + "textVerbosity": "medium" + }, + "high": { + "reasoningEffort": "high", + "reasoningSummary": "detailed", + "textVerbosity": "medium" + }, + "xhigh": { + "reasoningEffort": "xhigh", + "reasoningSummary": "detailed", + "textVerbosity": "medium" + }, + "max": { + "reasoningEffort": "max", + "reasoningSummary": "detailed", + "textVerbosity": "medium" + } + } + }, + "gpt-5.6-terra": { + "name": "GPT 5.6 Terra (OAuth)", + "limit": { + "context": 400000, + "output": 128000 + }, + "modalities": { + "input": [ + "text", + "image" + ], + "output": [ + "text" + ] + }, + "variants": { + "none": { + "reasoningEffort": "none", + "reasoningSummary": "auto", + "textVerbosity": "medium" + }, + "low": { + "reasoningEffort": "low", + "reasoningSummary": "auto", + "textVerbosity": "medium" + }, + "medium": { + "reasoningEffort": "medium", + "reasoningSummary": "auto", + "textVerbosity": "medium" + }, + "high": { + "reasoningEffort": "high", + "reasoningSummary": "detailed", + "textVerbosity": "medium" + }, + "xhigh": { + "reasoningEffort": "xhigh", + "reasoningSummary": "detailed", + "textVerbosity": "medium" + }, + "max": { + "reasoningEffort": "max", + "reasoningSummary": "detailed", + "textVerbosity": "medium" + } + } + }, + "gpt-5.6-luna": { + "name": "GPT 5.6 Luna (OAuth)", + "limit": { + "context": 400000, + "output": 128000 + }, + "modalities": { + "input": [ + "text", + "image" + ], + "output": [ + "text" + ] + }, + "variants": { + "none": { + "reasoningEffort": "none", + "reasoningSummary": "auto", + "textVerbosity": "medium" + }, + "low": { + "reasoningEffort": "low", + "reasoningSummary": "auto", + "textVerbosity": "medium" + }, + "medium": { + "reasoningEffort": "medium", + "reasoningSummary": "auto", + "textVerbosity": "medium" + }, + "high": { + "reasoningEffort": "high", + "reasoningSummary": "detailed", + "textVerbosity": "medium" + }, + "xhigh": { + "reasoningEffort": "xhigh", + "reasoningSummary": "detailed", + "textVerbosity": "medium" + }, + "max": { + "reasoningEffort": "max", + "reasoningSummary": "detailed", + "textVerbosity": "medium" + } + } + }, "gpt-5.5": { "name": "GPT 5.5 (OAuth)", "limit": { From 16f10398f1d43893240defbf3fefface293ff39c Mon Sep 17 00:00:00 2001 From: Paolo Calvi Date: Sun, 20 Sep 2026 18:13:03 +0000 Subject: [PATCH 10/16] fix: serve the 5.2-generation prompt to the 5.6 and GPT-6 families getModelFamily enumerated 5.2 through 5.5 and fell through to a gpt-5.1 catch-all, so gpt-5.6-sol/terra/luna and gpt-6-astra were each sent gpt_5_1_prompt.md while gpt-5.4 and gpt-5.5 correctly received gpt_5_2_prompt.md. The newest models were getting the oldest instructions. This is the same catch-all-default failure that silently downgraded astra in normalizeModel, one layer further down, so the comment now states the invariant: any family omitted here is served the oldest prompt in the repo. Found while reviewing upstream numman-ali/opencode-openai-codex-auth#129, which extends ModelFamily for the 5.6 tiers. No new prompt files exist for 5.6 or 6, so they join the existing gpt-5.2 family rather than adding entries that point at the same file. --- lib/prompts/codex.ts | 8 ++++++-- test/codex.test.ts | 7 +++++++ 2 files changed, 13 insertions(+), 2 deletions(-) diff --git a/lib/prompts/codex.ts b/lib/prompts/codex.ts index c54cba0..ed19187 100644 --- a/lib/prompts/codex.ts +++ b/lib/prompts/codex.ts @@ -70,12 +70,16 @@ export function getModelFamily(normalizedModel: string): ModelFamily { ) { return "codex"; } - // GPT-5.2+ general models share the same prompt family today. + // GPT-5.2+ general models share the same prompt family today. Every newer + // family must be listed here: the trailing return is a gpt-5.1 catch-all, so + // an omitted family is silently served the oldest prompt in the repo. if ( normalizedModel.includes("gpt-5.2") || normalizedModel.includes("gpt-5.3") || normalizedModel.includes("gpt-5.4") || - normalizedModel.includes("gpt-5.5") + normalizedModel.includes("gpt-5.5") || + normalizedModel.includes("gpt-5.6") || + normalizedModel.includes("gpt-6") ) { return "gpt-5.2"; } diff --git a/test/codex.test.ts b/test/codex.test.ts index d05b14e..958a21d 100644 --- a/test/codex.test.ts +++ b/test/codex.test.ts @@ -91,6 +91,13 @@ describe("Codex Module", () => { it("should return gpt-5.2 for gpt-5.2-high", () => { expect(getModelFamily("gpt-5.2-high")).toBe("gpt-5.2"); }); + + it("should not fall back to gpt-5.1 for families newer than 5.5", () => { + expect(getModelFamily("gpt-5.6-sol")).toBe("gpt-5.2"); + expect(getModelFamily("gpt-5.6-terra")).toBe("gpt-5.2"); + expect(getModelFamily("gpt-5.6-luna")).toBe("gpt-5.2"); + expect(getModelFamily("gpt-6-astra")).toBe("gpt-5.2"); + }); }); describe("Priority order", () => { From b7706a67a3ae18d59160508c76634f43cef92350 Mon Sep 17 00:00:00 2001 From: Paolo Calvi Date: Sun, 20 Sep 2026 18:13:10 +0000 Subject: [PATCH 11/16] fix: harden SSE parsing for non-standard Codex streams Port of upstream numman-ali/opencode-openai-codex-auth#96 by @harshav167. parseSseStream only matched "data: " with a trailing space, parsed each line in isolation, and returned null unless it saw response.done or response.completed. A stream using "data:" without the space, or splitting one JSON object across several data lines, yielded nothing and the caller fell back to handing the raw SSE text to a JSON consumer. Now: both "data:" spellings are accepted, consecutive data lines are joined before parsing, a malformed event no longer poisons the events after it, and the payload falls back from finalResponse to the last response-like event to the last event, logging a warning when the final event is missing. Behaviour change: a stream with no response.done now returns the last JSON event rather than the original text, so that test was updated accordingly. --- lib/request/response-handler.ts | 99 ++++++++++++++++++++++++++------- test/response-handler.test.ts | 43 +++++++++++++- 2 files changed, 118 insertions(+), 24 deletions(-) diff --git a/lib/request/response-handler.ts b/lib/request/response-handler.ts index e52c35e..8205526 100644 --- a/lib/request/response-handler.ts +++ b/lib/request/response-handler.ts @@ -1,30 +1,79 @@ import { logRequest, LOGGING_ENABLED } from "../logger.js"; import type { SSEEventData } from "../types.js"; +interface SseParseResult { + finalResponse?: unknown; + lastResponseLike?: unknown; + lastEvent?: unknown; +} + /** - * Parse SSE stream to extract final response + * Parse SSE stream to extract the final response. + * + * Tolerates "data:" with or without a trailing space, JSON split across + * several data lines, and malformed events interleaved with valid ones. + * * @param sseText - Complete SSE stream text - * @returns Final response object or null if not found + * @returns The response.done payload, plus last-seen fallbacks */ -function parseSseStream(sseText: string): unknown | null { - const lines = sseText.split('\n'); +function parseSseStream(sseText: string): SseParseResult { + const lines = sseText.split(/\r?\n/); + let pendingData: string[] = []; + let finalResponse: unknown; + let lastResponseLike: unknown; + let lastEvent: unknown; + + const processEvent = (parsed: SSEEventData) => { + lastEvent = parsed; + const event = parsed as { type?: string; response?: unknown }; + if (!event || typeof event !== "object" || !("response" in event)) return; + + if (event.response !== undefined) { + lastResponseLike = event.response; + } + if (event.type === "response.done" || event.type === "response.completed") { + finalResponse = event.response; + } + }; + + const tryFlush = (): boolean => { + if (pendingData.length === 0) return false; + try { + const parsed = JSON.parse(pendingData.join("\n")) as SSEEventData; + pendingData = []; + processEvent(parsed); + return true; + } catch { + return false; + } + }; for (const line of lines) { - if (line.startsWith('data: ')) { - try { - const data = JSON.parse(line.substring(6)) as SSEEventData; - - // Look for response.done event with final data - if (data.type === 'response.done' || data.type === 'response.completed') { - return data.response; - } - } catch (e) { - // Skip malformed JSON - } + if (line === "") { + tryFlush(); + pendingData = []; + continue; + } + if (!line.startsWith("data:")) continue; + + const content = line.replace(/^data:\s?/, ""); + pendingData.push(content); + if (tryFlush()) continue; + + // The accumulated lines did not parse together, so retry this line alone: + // otherwise one malformed event poisons every event that follows it. + try { + const parsed = JSON.parse(content) as SSEEventData; + pendingData = []; + processEvent(parsed); + } catch { + // Keep accumulating - the JSON may span several data lines. } } - return null; + tryFlush(); + + return { finalResponse, lastResponseLike, lastEvent }; } /** @@ -54,11 +103,13 @@ export async function convertSseToJson(response: Response, headers: Headers): Pr } // Parse SSE events to extract the final response - const finalResponse = parseSseStream(fullText); + const parsed = parseSseStream(fullText); + const responsePayload = + parsed.finalResponse ?? parsed.lastResponseLike ?? parsed.lastEvent; - if (!finalResponse) { - console.error('[openai-codex-plugin] Could not find final response in SSE stream'); - logRequest("stream-error", { error: "No response.done event found" }); + if (!responsePayload) { + console.error('[openai-codex-plugin] Could not find JSON in SSE stream'); + logRequest("stream-error", { error: "No JSON events found in SSE stream" }); // Return original stream if we can't parse return new Response(fullText, { @@ -72,7 +123,13 @@ export async function convertSseToJson(response: Response, headers: Headers): Pr const jsonHeaders = new Headers(headers); jsonHeaders.set('content-type', 'application/json; charset=utf-8'); - return new Response(JSON.stringify(finalResponse), { + if (!parsed.finalResponse) { + logRequest("stream-warning", { + warning: "No final response event; using last JSON event", + }); + } + + return new Response(JSON.stringify(responsePayload), { status: response.status, statusText: response.statusText, headers: jsonHeaders, diff --git a/test/response-handler.test.ts b/test/response-handler.test.ts index df117e8..31ccb0c 100644 --- a/test/response-handler.test.ts +++ b/test/response-handler.test.ts @@ -61,7 +61,7 @@ data: {"type":"response.completed","response":{"id":"resp_456","output":"done"}} expect(body).toEqual({ id: 'resp_456', output: 'done' }); }); - it('should return original text if no final response found', async () => { + it('should return last JSON event if no final response found', async () => { const sseContent = `data: {"type":"response.started"} data: {"type":"chunk","delta":"text"} `; @@ -69,9 +69,9 @@ data: {"type":"chunk","delta":"text"} const headers = new Headers(); const result = await convertSseToJson(response, headers); - const text = await result.text(); + const body = await result.json(); - expect(text).toBe(sseContent); + expect(body).toEqual({ type: 'chunk', delta: 'text' }); }); it('should skip malformed JSON in SSE stream', async () => { @@ -110,5 +110,42 @@ data: {"type":"response.done","response":{"id":"resp_789"}} expect(result.status).toBe(200); expect(result.statusText).toBe('OK'); }); + + it('should parse data lines without a space after colon', async () => { + const sseContent = `data:{"type":"response.done","response":{"id":"resp_999","output":"ok"}}`; + const response = new Response(sseContent); + const headers = new Headers(); + + const result = await convertSseToJson(response, headers); + const body = await result.json(); + + expect(body).toEqual({ id: 'resp_999', output: 'ok' }); + }); + + it('should join multiline data fields into a single JSON event', async () => { + const sseContent = `data: {"type":"response.done", +data: "response":{"id":"resp_abc","output":"test"}} +`; + const response = new Response(sseContent); + const headers = new Headers(); + + const result = await convertSseToJson(response, headers); + const body = await result.json(); + + expect(body).toEqual({ id: 'resp_abc', output: 'test' }); + }); + + it('should keep parsing valid events after a malformed one', async () => { + const sseContent = `data: {"type":"response.started" +data: {"type":"response.done","response":{"id":"resp_def","output":"ok"}} +`; + const response = new Response(sseContent); + const headers = new Headers(); + + const result = await convertSseToJson(response, headers); + const body = await result.json(); + + expect(body).toEqual({ id: 'resp_def', output: 'ok' }); + }); }); }); From a3578b9713e1b76661677e46fdb4836b704a3227 Mon Sep 17 00:00:00 2001 From: Paolo Calvi Date: Sun, 20 Sep 2026 18:18:24 +0000 Subject: [PATCH 12/16] feat: bring opencode-legacy.json up to parity with the modern config The legacy config still stopped at the 5.2 and 5.1 families, so anyone on opencode v1.0.209 or below could not reach any model added since - 5.3 Codex, 5.4, 5.5, the 5.6 tiers or GPT-6 Astra - even though the plugin has resolved them for several releases. Adds 45 presets (22 -> 67) mirroring config/opencode-modern.json: effort ranges and context limits match entry for entry, and gpt-6-astra omits "none" because the backend rejects it. Also adds the missing gpt-5.6-{sol,terra,luna}-max ids to MODEL_MAP. The suffixed spelling is how the legacy config addresses a model, and only gpt-6-astra-max existed; the 5.6 tiers resolved through the pattern-match fallback instead of an explicit mapping. The "-fast" ids are deliberately not carried into the legacy config. They normalize to their base model, so legacy entries for them would be duplicate presets. --- config/opencode-legacy.json | 1125 ++++++++++++++++++++++++++++++ lib/request/helpers/model-map.ts | 3 + 2 files changed, 1128 insertions(+) diff --git a/config/opencode-legacy.json b/config/opencode-legacy.json index 94f1214..861a501 100644 --- a/config/opencode-legacy.json +++ b/config/opencode-legacy.json @@ -16,6 +16,1131 @@ "store": false }, "models": { + "gpt-6-astra-low": { + "name": "GPT 6 Astra Low (OAuth)", + "limit": { + "context": 400000, + "output": 128000 + }, + "modalities": { + "input": [ + "text", + "image" + ], + "output": [ + "text" + ] + }, + "options": { + "reasoningEffort": "low", + "reasoningSummary": "auto", + "textVerbosity": "medium", + "include": [ + "reasoning.encrypted_content" + ], + "store": false + } + }, + "gpt-6-astra-medium": { + "name": "GPT 6 Astra Medium (OAuth)", + "limit": { + "context": 400000, + "output": 128000 + }, + "modalities": { + "input": [ + "text", + "image" + ], + "output": [ + "text" + ] + }, + "options": { + "reasoningEffort": "medium", + "reasoningSummary": "auto", + "textVerbosity": "medium", + "include": [ + "reasoning.encrypted_content" + ], + "store": false + } + }, + "gpt-6-astra-high": { + "name": "GPT 6 Astra High (OAuth)", + "limit": { + "context": 400000, + "output": 128000 + }, + "modalities": { + "input": [ + "text", + "image" + ], + "output": [ + "text" + ] + }, + "options": { + "reasoningEffort": "high", + "reasoningSummary": "detailed", + "textVerbosity": "medium", + "include": [ + "reasoning.encrypted_content" + ], + "store": false + } + }, + "gpt-6-astra-xhigh": { + "name": "GPT 6 Astra Extra High (OAuth)", + "limit": { + "context": 400000, + "output": 128000 + }, + "modalities": { + "input": [ + "text", + "image" + ], + "output": [ + "text" + ] + }, + "options": { + "reasoningEffort": "xhigh", + "reasoningSummary": "detailed", + "textVerbosity": "medium", + "include": [ + "reasoning.encrypted_content" + ], + "store": false + } + }, + "gpt-6-astra-max": { + "name": "GPT 6 Astra Max (OAuth)", + "limit": { + "context": 400000, + "output": 128000 + }, + "modalities": { + "input": [ + "text", + "image" + ], + "output": [ + "text" + ] + }, + "options": { + "reasoningEffort": "max", + "reasoningSummary": "detailed", + "textVerbosity": "medium", + "include": [ + "reasoning.encrypted_content" + ], + "store": false + } + }, + "gpt-5.6-sol-none": { + "name": "GPT 5.6 Sol None (OAuth)", + "limit": { + "context": 400000, + "output": 128000 + }, + "modalities": { + "input": [ + "text", + "image" + ], + "output": [ + "text" + ] + }, + "options": { + "reasoningEffort": "none", + "reasoningSummary": "auto", + "textVerbosity": "medium", + "include": [ + "reasoning.encrypted_content" + ], + "store": false + } + }, + "gpt-5.6-sol-low": { + "name": "GPT 5.6 Sol Low (OAuth)", + "limit": { + "context": 400000, + "output": 128000 + }, + "modalities": { + "input": [ + "text", + "image" + ], + "output": [ + "text" + ] + }, + "options": { + "reasoningEffort": "low", + "reasoningSummary": "auto", + "textVerbosity": "medium", + "include": [ + "reasoning.encrypted_content" + ], + "store": false + } + }, + "gpt-5.6-sol-medium": { + "name": "GPT 5.6 Sol Medium (OAuth)", + "limit": { + "context": 400000, + "output": 128000 + }, + "modalities": { + "input": [ + "text", + "image" + ], + "output": [ + "text" + ] + }, + "options": { + "reasoningEffort": "medium", + "reasoningSummary": "auto", + "textVerbosity": "medium", + "include": [ + "reasoning.encrypted_content" + ], + "store": false + } + }, + "gpt-5.6-sol-high": { + "name": "GPT 5.6 Sol High (OAuth)", + "limit": { + "context": 400000, + "output": 128000 + }, + "modalities": { + "input": [ + "text", + "image" + ], + "output": [ + "text" + ] + }, + "options": { + "reasoningEffort": "high", + "reasoningSummary": "detailed", + "textVerbosity": "medium", + "include": [ + "reasoning.encrypted_content" + ], + "store": false + } + }, + "gpt-5.6-sol-xhigh": { + "name": "GPT 5.6 Sol Extra High (OAuth)", + "limit": { + "context": 400000, + "output": 128000 + }, + "modalities": { + "input": [ + "text", + "image" + ], + "output": [ + "text" + ] + }, + "options": { + "reasoningEffort": "xhigh", + "reasoningSummary": "detailed", + "textVerbosity": "medium", + "include": [ + "reasoning.encrypted_content" + ], + "store": false + } + }, + "gpt-5.6-sol-max": { + "name": "GPT 5.6 Sol Max (OAuth)", + "limit": { + "context": 400000, + "output": 128000 + }, + "modalities": { + "input": [ + "text", + "image" + ], + "output": [ + "text" + ] + }, + "options": { + "reasoningEffort": "max", + "reasoningSummary": "detailed", + "textVerbosity": "medium", + "include": [ + "reasoning.encrypted_content" + ], + "store": false + } + }, + "gpt-5.6-terra-none": { + "name": "GPT 5.6 Terra None (OAuth)", + "limit": { + "context": 400000, + "output": 128000 + }, + "modalities": { + "input": [ + "text", + "image" + ], + "output": [ + "text" + ] + }, + "options": { + "reasoningEffort": "none", + "reasoningSummary": "auto", + "textVerbosity": "medium", + "include": [ + "reasoning.encrypted_content" + ], + "store": false + } + }, + "gpt-5.6-terra-low": { + "name": "GPT 5.6 Terra Low (OAuth)", + "limit": { + "context": 400000, + "output": 128000 + }, + "modalities": { + "input": [ + "text", + "image" + ], + "output": [ + "text" + ] + }, + "options": { + "reasoningEffort": "low", + "reasoningSummary": "auto", + "textVerbosity": "medium", + "include": [ + "reasoning.encrypted_content" + ], + "store": false + } + }, + "gpt-5.6-terra-medium": { + "name": "GPT 5.6 Terra Medium (OAuth)", + "limit": { + "context": 400000, + "output": 128000 + }, + "modalities": { + "input": [ + "text", + "image" + ], + "output": [ + "text" + ] + }, + "options": { + "reasoningEffort": "medium", + "reasoningSummary": "auto", + "textVerbosity": "medium", + "include": [ + "reasoning.encrypted_content" + ], + "store": false + } + }, + "gpt-5.6-terra-high": { + "name": "GPT 5.6 Terra High (OAuth)", + "limit": { + "context": 400000, + "output": 128000 + }, + "modalities": { + "input": [ + "text", + "image" + ], + "output": [ + "text" + ] + }, + "options": { + "reasoningEffort": "high", + "reasoningSummary": "detailed", + "textVerbosity": "medium", + "include": [ + "reasoning.encrypted_content" + ], + "store": false + } + }, + "gpt-5.6-terra-xhigh": { + "name": "GPT 5.6 Terra Extra High (OAuth)", + "limit": { + "context": 400000, + "output": 128000 + }, + "modalities": { + "input": [ + "text", + "image" + ], + "output": [ + "text" + ] + }, + "options": { + "reasoningEffort": "xhigh", + "reasoningSummary": "detailed", + "textVerbosity": "medium", + "include": [ + "reasoning.encrypted_content" + ], + "store": false + } + }, + "gpt-5.6-terra-max": { + "name": "GPT 5.6 Terra Max (OAuth)", + "limit": { + "context": 400000, + "output": 128000 + }, + "modalities": { + "input": [ + "text", + "image" + ], + "output": [ + "text" + ] + }, + "options": { + "reasoningEffort": "max", + "reasoningSummary": "detailed", + "textVerbosity": "medium", + "include": [ + "reasoning.encrypted_content" + ], + "store": false + } + }, + "gpt-5.6-luna-none": { + "name": "GPT 5.6 Luna None (OAuth)", + "limit": { + "context": 400000, + "output": 128000 + }, + "modalities": { + "input": [ + "text", + "image" + ], + "output": [ + "text" + ] + }, + "options": { + "reasoningEffort": "none", + "reasoningSummary": "auto", + "textVerbosity": "medium", + "include": [ + "reasoning.encrypted_content" + ], + "store": false + } + }, + "gpt-5.6-luna-low": { + "name": "GPT 5.6 Luna Low (OAuth)", + "limit": { + "context": 400000, + "output": 128000 + }, + "modalities": { + "input": [ + "text", + "image" + ], + "output": [ + "text" + ] + }, + "options": { + "reasoningEffort": "low", + "reasoningSummary": "auto", + "textVerbosity": "medium", + "include": [ + "reasoning.encrypted_content" + ], + "store": false + } + }, + "gpt-5.6-luna-medium": { + "name": "GPT 5.6 Luna Medium (OAuth)", + "limit": { + "context": 400000, + "output": 128000 + }, + "modalities": { + "input": [ + "text", + "image" + ], + "output": [ + "text" + ] + }, + "options": { + "reasoningEffort": "medium", + "reasoningSummary": "auto", + "textVerbosity": "medium", + "include": [ + "reasoning.encrypted_content" + ], + "store": false + } + }, + "gpt-5.6-luna-high": { + "name": "GPT 5.6 Luna High (OAuth)", + "limit": { + "context": 400000, + "output": 128000 + }, + "modalities": { + "input": [ + "text", + "image" + ], + "output": [ + "text" + ] + }, + "options": { + "reasoningEffort": "high", + "reasoningSummary": "detailed", + "textVerbosity": "medium", + "include": [ + "reasoning.encrypted_content" + ], + "store": false + } + }, + "gpt-5.6-luna-xhigh": { + "name": "GPT 5.6 Luna Extra High (OAuth)", + "limit": { + "context": 400000, + "output": 128000 + }, + "modalities": { + "input": [ + "text", + "image" + ], + "output": [ + "text" + ] + }, + "options": { + "reasoningEffort": "xhigh", + "reasoningSummary": "detailed", + "textVerbosity": "medium", + "include": [ + "reasoning.encrypted_content" + ], + "store": false + } + }, + "gpt-5.6-luna-max": { + "name": "GPT 5.6 Luna Max (OAuth)", + "limit": { + "context": 400000, + "output": 128000 + }, + "modalities": { + "input": [ + "text", + "image" + ], + "output": [ + "text" + ] + }, + "options": { + "reasoningEffort": "max", + "reasoningSummary": "detailed", + "textVerbosity": "medium", + "include": [ + "reasoning.encrypted_content" + ], + "store": false + } + }, + "gpt-5.5-none": { + "name": "GPT 5.5 None (OAuth)", + "limit": { + "context": 400000, + "output": 128000 + }, + "modalities": { + "input": [ + "text", + "image" + ], + "output": [ + "text" + ] + }, + "options": { + "reasoningEffort": "none", + "reasoningSummary": "auto", + "textVerbosity": "medium", + "include": [ + "reasoning.encrypted_content" + ], + "store": false + } + }, + "gpt-5.5-low": { + "name": "GPT 5.5 Low (OAuth)", + "limit": { + "context": 400000, + "output": 128000 + }, + "modalities": { + "input": [ + "text", + "image" + ], + "output": [ + "text" + ] + }, + "options": { + "reasoningEffort": "low", + "reasoningSummary": "auto", + "textVerbosity": "medium", + "include": [ + "reasoning.encrypted_content" + ], + "store": false + } + }, + "gpt-5.5-medium": { + "name": "GPT 5.5 Medium (OAuth)", + "limit": { + "context": 400000, + "output": 128000 + }, + "modalities": { + "input": [ + "text", + "image" + ], + "output": [ + "text" + ] + }, + "options": { + "reasoningEffort": "medium", + "reasoningSummary": "auto", + "textVerbosity": "medium", + "include": [ + "reasoning.encrypted_content" + ], + "store": false + } + }, + "gpt-5.5-high": { + "name": "GPT 5.5 High (OAuth)", + "limit": { + "context": 400000, + "output": 128000 + }, + "modalities": { + "input": [ + "text", + "image" + ], + "output": [ + "text" + ] + }, + "options": { + "reasoningEffort": "high", + "reasoningSummary": "detailed", + "textVerbosity": "medium", + "include": [ + "reasoning.encrypted_content" + ], + "store": false + } + }, + "gpt-5.5-xhigh": { + "name": "GPT 5.5 Extra High (OAuth)", + "limit": { + "context": 400000, + "output": 128000 + }, + "modalities": { + "input": [ + "text", + "image" + ], + "output": [ + "text" + ] + }, + "options": { + "reasoningEffort": "xhigh", + "reasoningSummary": "detailed", + "textVerbosity": "medium", + "include": [ + "reasoning.encrypted_content" + ], + "store": false + } + }, + "gpt-5.4-none": { + "name": "GPT 5.4 None (OAuth)", + "limit": { + "context": 272000, + "output": 128000 + }, + "modalities": { + "input": [ + "text", + "image" + ], + "output": [ + "text" + ] + }, + "options": { + "reasoningEffort": "none", + "reasoningSummary": "auto", + "textVerbosity": "medium", + "include": [ + "reasoning.encrypted_content" + ], + "store": false + } + }, + "gpt-5.4-low": { + "name": "GPT 5.4 Low (OAuth)", + "limit": { + "context": 272000, + "output": 128000 + }, + "modalities": { + "input": [ + "text", + "image" + ], + "output": [ + "text" + ] + }, + "options": { + "reasoningEffort": "low", + "reasoningSummary": "auto", + "textVerbosity": "medium", + "include": [ + "reasoning.encrypted_content" + ], + "store": false + } + }, + "gpt-5.4-medium": { + "name": "GPT 5.4 Medium (OAuth)", + "limit": { + "context": 272000, + "output": 128000 + }, + "modalities": { + "input": [ + "text", + "image" + ], + "output": [ + "text" + ] + }, + "options": { + "reasoningEffort": "medium", + "reasoningSummary": "auto", + "textVerbosity": "medium", + "include": [ + "reasoning.encrypted_content" + ], + "store": false + } + }, + "gpt-5.4-high": { + "name": "GPT 5.4 High (OAuth)", + "limit": { + "context": 272000, + "output": 128000 + }, + "modalities": { + "input": [ + "text", + "image" + ], + "output": [ + "text" + ] + }, + "options": { + "reasoningEffort": "high", + "reasoningSummary": "detailed", + "textVerbosity": "medium", + "include": [ + "reasoning.encrypted_content" + ], + "store": false + } + }, + "gpt-5.4-xhigh": { + "name": "GPT 5.4 Extra High (OAuth)", + "limit": { + "context": 272000, + "output": 128000 + }, + "modalities": { + "input": [ + "text", + "image" + ], + "output": [ + "text" + ] + }, + "options": { + "reasoningEffort": "xhigh", + "reasoningSummary": "detailed", + "textVerbosity": "medium", + "include": [ + "reasoning.encrypted_content" + ], + "store": false + } + }, + "gpt-5.4-mini-none": { + "name": "GPT 5.4 Mini None (OAuth)", + "limit": { + "context": 272000, + "output": 128000 + }, + "modalities": { + "input": [ + "text", + "image" + ], + "output": [ + "text" + ] + }, + "options": { + "reasoningEffort": "none", + "reasoningSummary": "auto", + "textVerbosity": "medium", + "include": [ + "reasoning.encrypted_content" + ], + "store": false + } + }, + "gpt-5.4-mini-low": { + "name": "GPT 5.4 Mini Low (OAuth)", + "limit": { + "context": 272000, + "output": 128000 + }, + "modalities": { + "input": [ + "text", + "image" + ], + "output": [ + "text" + ] + }, + "options": { + "reasoningEffort": "low", + "reasoningSummary": "auto", + "textVerbosity": "medium", + "include": [ + "reasoning.encrypted_content" + ], + "store": false + } + }, + "gpt-5.4-mini-medium": { + "name": "GPT 5.4 Mini Medium (OAuth)", + "limit": { + "context": 272000, + "output": 128000 + }, + "modalities": { + "input": [ + "text", + "image" + ], + "output": [ + "text" + ] + }, + "options": { + "reasoningEffort": "medium", + "reasoningSummary": "auto", + "textVerbosity": "medium", + "include": [ + "reasoning.encrypted_content" + ], + "store": false + } + }, + "gpt-5.4-mini-high": { + "name": "GPT 5.4 Mini High (OAuth)", + "limit": { + "context": 272000, + "output": 128000 + }, + "modalities": { + "input": [ + "text", + "image" + ], + "output": [ + "text" + ] + }, + "options": { + "reasoningEffort": "high", + "reasoningSummary": "detailed", + "textVerbosity": "medium", + "include": [ + "reasoning.encrypted_content" + ], + "store": false + } + }, + "gpt-5.3-codex-low": { + "name": "GPT 5.3 Codex Low (OAuth)", + "limit": { + "context": 272000, + "output": 128000 + }, + "modalities": { + "input": [ + "text", + "image" + ], + "output": [ + "text" + ] + }, + "options": { + "reasoningEffort": "low", + "reasoningSummary": "auto", + "textVerbosity": "medium", + "include": [ + "reasoning.encrypted_content" + ], + "store": false + } + }, + "gpt-5.3-codex-medium": { + "name": "GPT 5.3 Codex Medium (OAuth)", + "limit": { + "context": 272000, + "output": 128000 + }, + "modalities": { + "input": [ + "text", + "image" + ], + "output": [ + "text" + ] + }, + "options": { + "reasoningEffort": "medium", + "reasoningSummary": "auto", + "textVerbosity": "medium", + "include": [ + "reasoning.encrypted_content" + ], + "store": false + } + }, + "gpt-5.3-codex-high": { + "name": "GPT 5.3 Codex High (OAuth)", + "limit": { + "context": 272000, + "output": 128000 + }, + "modalities": { + "input": [ + "text", + "image" + ], + "output": [ + "text" + ] + }, + "options": { + "reasoningEffort": "high", + "reasoningSummary": "detailed", + "textVerbosity": "medium", + "include": [ + "reasoning.encrypted_content" + ], + "store": false + } + }, + "gpt-5.3-codex-xhigh": { + "name": "GPT 5.3 Codex Extra High (OAuth)", + "limit": { + "context": 272000, + "output": 128000 + }, + "modalities": { + "input": [ + "text", + "image" + ], + "output": [ + "text" + ] + }, + "options": { + "reasoningEffort": "xhigh", + "reasoningSummary": "detailed", + "textVerbosity": "medium", + "include": [ + "reasoning.encrypted_content" + ], + "store": false + } + }, + "gpt-5.3-codex-spark-low": { + "name": "GPT 5.3 Codex Spark Low (OAuth)", + "limit": { + "context": 272000, + "output": 128000 + }, + "modalities": { + "input": [ + "text", + "image" + ], + "output": [ + "text" + ] + }, + "options": { + "reasoningEffort": "low", + "reasoningSummary": "auto", + "textVerbosity": "medium", + "include": [ + "reasoning.encrypted_content" + ], + "store": false + } + }, + "gpt-5.3-codex-spark-medium": { + "name": "GPT 5.3 Codex Spark Medium (OAuth)", + "limit": { + "context": 272000, + "output": 128000 + }, + "modalities": { + "input": [ + "text", + "image" + ], + "output": [ + "text" + ] + }, + "options": { + "reasoningEffort": "medium", + "reasoningSummary": "auto", + "textVerbosity": "medium", + "include": [ + "reasoning.encrypted_content" + ], + "store": false + } + }, + "gpt-5.3-codex-spark-high": { + "name": "GPT 5.3 Codex Spark High (OAuth)", + "limit": { + "context": 272000, + "output": 128000 + }, + "modalities": { + "input": [ + "text", + "image" + ], + "output": [ + "text" + ] + }, + "options": { + "reasoningEffort": "high", + "reasoningSummary": "detailed", + "textVerbosity": "medium", + "include": [ + "reasoning.encrypted_content" + ], + "store": false + } + }, + "gpt-5.3-codex-spark-xhigh": { + "name": "GPT 5.3 Codex Spark Extra High (OAuth)", + "limit": { + "context": 272000, + "output": 128000 + }, + "modalities": { + "input": [ + "text", + "image" + ], + "output": [ + "text" + ] + }, + "options": { + "reasoningEffort": "xhigh", + "reasoningSummary": "detailed", + "textVerbosity": "medium", + "include": [ + "reasoning.encrypted_content" + ], + "store": false + } + }, "gpt-5.2-none": { "name": "GPT 5.2 None (OAuth)", "limit": { diff --git a/lib/request/helpers/model-map.ts b/lib/request/helpers/model-map.ts index 1fbaa54..6d2413d 100644 --- a/lib/request/helpers/model-map.ts +++ b/lib/request/helpers/model-map.ts @@ -128,6 +128,7 @@ export const MODEL_MAP: Record = { "gpt-5.6-sol-medium": "gpt-5.6-sol", "gpt-5.6-sol-high": "gpt-5.6-sol", "gpt-5.6-sol-xhigh": "gpt-5.6-sol", + "gpt-5.6-sol-max": "gpt-5.6-sol", "gpt-5.6-terra": "gpt-5.6-terra", "gpt-5.6-terra-fast": "gpt-5.6-terra", @@ -136,6 +137,7 @@ export const MODEL_MAP: Record = { "gpt-5.6-terra-medium": "gpt-5.6-terra", "gpt-5.6-terra-high": "gpt-5.6-terra", "gpt-5.6-terra-xhigh": "gpt-5.6-terra", + "gpt-5.6-terra-max": "gpt-5.6-terra", "gpt-5.6-luna": "gpt-5.6-luna", "gpt-5.6-luna-fast": "gpt-5.6-luna", @@ -144,6 +146,7 @@ export const MODEL_MAP: Record = { "gpt-5.6-luna-medium": "gpt-5.6-luna", "gpt-5.6-luna-high": "gpt-5.6-luna", "gpt-5.6-luna-xhigh": "gpt-5.6-luna", + "gpt-5.6-luna-max": "gpt-5.6-luna", // ============================================================================ // GPT-6 Models (Astra) From b2d0e1ebed8589e4c389770984160105d6820e18 Mon Sep 17 00:00:00 2001 From: Paolo Calvi Date: Wed, 23 Sep 2026 10:47:29 +0000 Subject: [PATCH 13/16] fix: resolve every GPT-6 tier instead of downgrading to gpt-5.1 normalizeModel only knew gpt-6-astra, so gpt-6-sol and gpt-6-luna matched no pattern, reached the default return and were sent as gpt-5.1 - which the backend now rejects outright: "The 'gpt-5.1' model is not supported when using Codex with a ChatGPT account." Both tiers are served (verified against POST https://chatgpt.com/backend-api/codex/responses on 2026-09-23), so the astra-only check becomes one rule that keeps any "gpt-6-" id and drops its suffix. "-fast" ids still resolve to their base model, which matters because gpt-6-{sol,luna}-fast are rejected just like gpt-6-astra-fast. A future GPT-6 tier resolves without another code change. --- lib/request/helpers/model-map.ts | 17 ++++++++++------- lib/request/request-transformer.ts | 14 ++++++++------ test/request-transformer.test.ts | 12 ++++++++++++ 3 files changed, 30 insertions(+), 13 deletions(-) diff --git a/lib/request/helpers/model-map.ts b/lib/request/helpers/model-map.ts index 6d2413d..695a217 100644 --- a/lib/request/helpers/model-map.ts +++ b/lib/request/helpers/model-map.ts @@ -149,17 +149,20 @@ export const MODEL_MAP: Record = { "gpt-5.6-luna-max": "gpt-5.6-luna", // ============================================================================ - // GPT-6 Models (Astra) + // GPT-6 Models (Astra / Sol / Luna) // - // Reasoning efforts are low/medium/high/xhigh/max — "none" is rejected: + // Astra reasoning efforts are low/medium/high/xhigh/max — "none" is rejected: // "Unsupported value: 'none' is not supported with the 'gpt-6-astra' // model. Supported values are: 'low', 'medium', 'high', 'xhigh', and // 'max'." - // Only the "astra" tier is served: "gpt-6", "gpt-6-codex" and - // "gpt-6-astra-fast" are all rejected with "The '' model is not - // supported when using Codex with a ChatGPT account." - // Verified against POST https://chatgpt.com/backend-api/codex/responses - // on 2026-09-06. + // "gpt-6", "gpt-6-codex" and "gpt-6-astra-fast" are all rejected with + // "The '' model is not supported when using Codex with a ChatGPT + // account." Verified against POST + // https://chatgpt.com/backend-api/codex/responses on 2026-09-06. + // + // Sol and Luna are served as well and accept none..max; their "-fast" ids + // are rejected like Astra's (verified 2026-09-23). They need no entries + // here: normalizeModel keeps any "gpt-6-" id and drops its suffix. // ============================================================================ "gpt-6-astra": "gpt-6-astra", "gpt-6-astra-low": "gpt-6-astra", diff --git a/lib/request/request-transformer.ts b/lib/request/request-transformer.ts index 0ed7252..e2ff36a 100644 --- a/lib/request/request-transformer.ts +++ b/lib/request/request-transformer.ts @@ -92,12 +92,14 @@ export function normalizeModel(model: string | undefined): string { return "gpt-5.2-codex"; } - // 3. GPT-6 named tiers. Must precede every gpt-5 check, and the final - // "gpt-5" catch-all must never see a gpt-6 id: an unmapped "gpt-6-astra-pro" - // matches no gpt-5 pattern and would otherwise reach the default return and - // be silently downgraded to gpt-5.1. - if (normalized.includes("gpt-6-astra") || normalized.includes("gpt 6 astra")) { - return "gpt-6-astra"; + // 3. GPT-6 named tiers (astra, sol, luna, ...). Must precede every gpt-5 + // check, and the final "gpt-5" catch-all must never see a gpt-6 id: it would + // be rewritten to gpt-5.1, which the backend rejects outright. The tier is + // kept and any suffix dropped ("gpt-6-luna-fast", "GPT 6 Luna (OAuth)" -> + // "gpt-6-luna"), so a new tier needs no code change. + const gpt6Tier = normalized.match(/gpt[- ]6[- ]([a-z]+)/)?.[1]; + if (gpt6Tier) { + return `gpt-6-${gpt6Tier}`; } // 4. GPT-5.6 named tiers, then 5.5 / 5.4 / 5.3 general purpose. diff --git a/test/request-transformer.test.ts b/test/request-transformer.test.ts index 80afe5b..2c56664 100644 --- a/test/request-transformer.test.ts +++ b/test/request-transformer.test.ts @@ -103,6 +103,18 @@ describe('Request Transformer Module', () => { expect(normalizeModel('gpt-6-astra-unreleased-tier')).toBe('gpt-6-astra'); }); + it('should normalize gpt-6 sol and luna slugs without downgrading to gpt-5.1', async () => { + expect(normalizeModel('gpt-6-luna')).toBe('gpt-6-luna'); + expect(normalizeModel('openai/gpt-6-luna')).toBe('gpt-6-luna'); + expect(normalizeModel('gpt-6-luna-none')).toBe('gpt-6-luna'); + expect(normalizeModel('gpt-6-luna-xhigh')).toBe('gpt-6-luna'); + expect(normalizeModel('gpt-6-luna-fast')).toBe('gpt-6-luna'); + expect(normalizeModel('GPT 6 Luna (OAuth)')).toBe('gpt-6-luna'); + expect(normalizeModel('gpt-6-sol')).toBe('gpt-6-sol'); + expect(normalizeModel('gpt-6-sol-max')).toBe('gpt-6-sol'); + expect(normalizeModel('gpt-6-sol-fast')).toBe('gpt-6-sol'); + }); + it('should normalize gpt-5.1 codex and mini slugs', async () => { expect(normalizeModel('gpt-5.1-codex')).toBe('gpt-5.1-codex'); expect(normalizeModel('openai/gpt-5.1-codex')).toBe('gpt-5.1-codex'); From eb43f09c07f32a292caccb9cdb1d4aecaa4ea5be Mon Sep 17 00:00:00 2001 From: Paolo Calvi Date: Wed, 23 Sep 2026 10:47:29 +0000 Subject: [PATCH 14/16] fix: pass reasoning effort none through for GPT-6 Sol and Luna supportsNone only covered GPT-5.1 and GPT-5.2 general purpose, so "none" on gpt-6-sol and gpt-6-luna was silently lifted to "low". Both accept every effort from none to max (verified 2026-09-23); gpt-6-astra still rejects "none" and keeps the clamp. --- lib/request/request-transformer.ts | 6 ++++-- test/config.test.ts | 8 ++++++++ 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/lib/request/request-transformer.ts b/lib/request/request-transformer.ts index e2ff36a..9f8e8bf 100644 --- a/lib/request/request-transformer.ts +++ b/lib/request/request-transformer.ts @@ -304,6 +304,8 @@ export function getReasoningConfig( normalizedName.includes("gpt-5.6") || normalizedName.includes("gpt 5.6"); const isGpt6 = normalizedName.includes("gpt-6") || normalizedName.includes("gpt 6"); + // Sol and Luna accept "none"; Astra rejects it (backend-verified 2026-09-23). + const isGpt6SolOrLuna = /gpt[- ]6[- ](sol|luna)/.test(normalizedName); // GPT 5.2, GPT 5.2 Codex, Codex Max, the GPT 5.6 tiers, and GPT-6 accept // xhigh. Anything missing here is silently downgraded to high below. @@ -316,7 +318,7 @@ export function getReasoningConfig( // - Codex CLI: docs/config.md lists "none" as valid for model_reasoning_effort // - gpt-5.2 (being newer) also supports: none, low, medium, high, xhigh // - Codex models (including GPT-5.2 Codex) do NOT support "none" - const supportsNone = isGpt52General || isGpt51General; + const supportsNone = isGpt52General || isGpt51General || isGpt6SolOrLuna; // Default based on model type (Codex CLI defaults) // Note: OpenAI docs say gpt-5.1 defaults to "none", but we default to "medium" @@ -350,7 +352,7 @@ export function getReasoningConfig( } // For models that don't support "none", upgrade to "low" - // (Codex models don't support "none" - only GPT-5.1 and GPT-5.2 general purpose do) + // (Codex models don't support "none" - only GPT-5.1/5.2 general purpose and GPT-6 Sol/Luna do) if (!supportsNone && effort === "none") { effort = "low"; } diff --git a/test/config.test.ts b/test/config.test.ts index 4a3ba9b..bbc9585 100644 --- a/test/config.test.ts +++ b/test/config.test.ts @@ -109,6 +109,14 @@ describe('Configuration Parsing', () => { expect(getReasoningConfig('gpt-5.1', xhigh).effort).toBe('high'); }); + it('should keep none for gpt-6 sol/luna but lift it to low for astra', () => { + const none = { reasoningEffort: 'none' as const }; + + expect(getReasoningConfig('gpt-6-luna', none).effort).toBe('none'); + expect(getReasoningConfig('gpt-6-sol', none).effort).toBe('none'); + expect(getReasoningConfig('gpt-6-astra', none).effort).toBe('low'); + }); + it('should respect custom summary setting', () => { const detailedConfig = { reasoningSummary: 'detailed' as const }; const detailedReasoning = getReasoningConfig('gpt-5-codex', detailedConfig); From 61b7765d4388444529417391ebf40e5aab2ebe65 Mon Sep 17 00:00:00 2001 From: Paolo Calvi Date: Sat, 17 Oct 2026 21:15:56 +0000 Subject: [PATCH 15/16] fix: keep the minor version of GPT-6 ids (gpt-6.1-sol) --- lib/request/request-transformer.ts | 11 ++++++----- test/config.test.ts | 1 + test/request-transformer.test.ts | 3 +++ 3 files changed, 10 insertions(+), 5 deletions(-) diff --git a/lib/request/request-transformer.ts b/lib/request/request-transformer.ts index 9f8e8bf..418c5fe 100644 --- a/lib/request/request-transformer.ts +++ b/lib/request/request-transformer.ts @@ -96,10 +96,11 @@ export function normalizeModel(model: string | undefined): string { // check, and the final "gpt-5" catch-all must never see a gpt-6 id: it would // be rewritten to gpt-5.1, which the backend rejects outright. The tier is // kept and any suffix dropped ("gpt-6-luna-fast", "GPT 6 Luna (OAuth)" -> - // "gpt-6-luna"), so a new tier needs no code change. - const gpt6Tier = normalized.match(/gpt[- ]6[- ]([a-z]+)/)?.[1]; - if (gpt6Tier) { - return `gpt-6-${gpt6Tier}`; + // "gpt-6-luna"), so a new tier needs no code change. A minor version is + // kept too ("gpt-6.1-sol-high" -> "gpt-6.1-sol"). + const gpt6 = normalized.match(/gpt[- ](6(?:\.\d+)?)[- ]([a-z]+)/); + if (gpt6) { + return `gpt-${gpt6[1]}-${gpt6[2]}`; } // 4. GPT-5.6 named tiers, then 5.5 / 5.4 / 5.3 general purpose. @@ -305,7 +306,7 @@ export function getReasoningConfig( const isGpt6 = normalizedName.includes("gpt-6") || normalizedName.includes("gpt 6"); // Sol and Luna accept "none"; Astra rejects it (backend-verified 2026-09-23). - const isGpt6SolOrLuna = /gpt[- ]6[- ](sol|luna)/.test(normalizedName); + const isGpt6SolOrLuna = /gpt[- ]6(?:\.\d+)?[- ](sol|luna)/.test(normalizedName); // GPT 5.2, GPT 5.2 Codex, Codex Max, the GPT 5.6 tiers, and GPT-6 accept // xhigh. Anything missing here is silently downgraded to high below. diff --git a/test/config.test.ts b/test/config.test.ts index bbc9585..3971f66 100644 --- a/test/config.test.ts +++ b/test/config.test.ts @@ -114,6 +114,7 @@ describe('Configuration Parsing', () => { expect(getReasoningConfig('gpt-6-luna', none).effort).toBe('none'); expect(getReasoningConfig('gpt-6-sol', none).effort).toBe('none'); + expect(getReasoningConfig('gpt-6.1-sol', none).effort).toBe('none'); expect(getReasoningConfig('gpt-6-astra', none).effort).toBe('low'); }); diff --git a/test/request-transformer.test.ts b/test/request-transformer.test.ts index 2c56664..abc8ed4 100644 --- a/test/request-transformer.test.ts +++ b/test/request-transformer.test.ts @@ -113,6 +113,9 @@ describe('Request Transformer Module', () => { expect(normalizeModel('gpt-6-sol')).toBe('gpt-6-sol'); expect(normalizeModel('gpt-6-sol-max')).toBe('gpt-6-sol'); expect(normalizeModel('gpt-6-sol-fast')).toBe('gpt-6-sol'); + expect(normalizeModel('gpt-6.1-sol')).toBe('gpt-6.1-sol'); + expect(normalizeModel('openai/gpt-6.1-sol-high')).toBe('gpt-6.1-sol'); + expect(normalizeModel('GPT 6.1 Sol (OAuth)')).toBe('gpt-6.1-sol'); }); it('should normalize gpt-5.1 codex and mini slugs', async () => { From e268334d305ce76ebd8aff106fd29e58b16d1b23 Mon Sep 17 00:00:00 2001 From: Paolo Calvi Date: Sat, 17 Oct 2026 21:15:56 +0000 Subject: [PATCH 16/16] Release 4.5.0 --- CHANGELOG.md | 16 ++++++++++++++++ lib/oauth-success.html | 2 +- package-lock.json | 4 ++-- package.json | 2 +- 4 files changed, 20 insertions(+), 4 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index ec29e07..09e6f8e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,22 @@ All notable changes to this project are documented here. Dates use the ISO format (YYYY-MM-DD). +## [4.5.0] - 2026-10-17 + +**Model release**: GPT-5.3 through GPT-6.1 work with ChatGPT accounts again. + +### Added +- **GPT-5.3 / 5.4 / 5.5** model ids, including `-fast` variants. +- **GPT-5.6 Sol / Terra / Luna** and **GPT-6 Astra** in the model map and installer configs. +- **Any GPT-6 tier** (`gpt-6-sol`, `gpt-6-luna`, `gpt-6.1-sol`, ...) passes through unchanged; new tiers need no code change. + +### Fixed +- **Silent downgrade to `gpt-5.1`**: unknown GPT-6 ids were rewritten to `gpt-5.1`, which the backend rejects for ChatGPT accounts. +- **`-fast` ids** map to their base model (the backend rejects them). +- **Reasoning effort**: `xhigh` kept for 5.6 / 6; `none` kept for GPT-6 Sol and Luna, lifted to `low` for Astra. +- **Prompts**: the 5.6 and GPT-6 families get the 5.2-generation Codex prompt. +- **SSE parsing** hardened for non-standard Codex streams. + ## [4.4.0] - 2026-01-09 **Maintenance release**: OAuth success page version sync. diff --git a/lib/oauth-success.html b/lib/oauth-success.html index 9ab0252..d11c9bd 100644 --- a/lib/oauth-success.html +++ b/lib/oauth-success.html @@ -548,7 +548,7 @@
-
opencode-openai-codex-auth@4.4.0 — OAuth Authentication
+
opencode-openai-codex-auth@4.5.0 — OAuth Authentication
diff --git a/package-lock.json b/package-lock.json index e5219fb..b111dc7 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "opencode-openai-codex-auth", - "version": "4.4.0", + "version": "4.5.0", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "opencode-openai-codex-auth", - "version": "4.4.0", + "version": "4.5.0", "license": "MIT", "dependencies": { "@openauthjs/openauth": "^0.4.3", diff --git a/package.json b/package.json index caf949c..703363d 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "opencode-openai-codex-auth", - "version": "4.4.0", + "version": "4.5.0", "description": "OpenAI ChatGPT (Codex backend) OAuth auth plugin for opencode - use your ChatGPT Plus/Pro subscription instead of API credits", "main": "./dist/index.js", "types": "./dist/index.d.ts",