chore: update version and enhance provider model configurations.

This commit is contained in:
decolua
2026-02-22 11:30:43 +07:00
parent ea67742f2a
commit 930e917092
7 changed files with 46 additions and 53 deletions
+5 -5
View File
@@ -128,14 +128,14 @@ export const CLI_TOOLS = {
color: "#4285F4",
description: "Google Antigravity IDE with MITM",
configType: "mitm",
modelAliases: ["claude-opus-4-6-thinking", "claude-sonnet-4-6-thinking", "gemini-3-pro-high"],
modelAliases: ["claude-opus-4-6-thinking", "claude-sonnet-4-6", "gemini-3-flash", "gpt-oss-120b-medium", "gemini-3-pro-high", "gemini-3-pro-low"],
defaultModels: [
{ id: "claude-opus-4-6-thinking", name: "Claude Opus 4.6 Thinking", alias: "claude-opus-4-6-thinking" },
{ id: "claude-sonnet-4-6", name: "Claude Sonnet 4.6", alias: "claude-sonnet-4-6" },
{ id: "gemini-3-1-pro-high", name: "Gemini 3.1 Pro High", alias: "gemini-3-1-pro-high" },
{ id: "gemini-3-1-pro-low", name: "Gemini 3.1 Pro Low", alias: "gemini-3-1-pro-low" },
{ id: "gemini-3-pro-high", name: "Gemini 3 Pro High", alias: "gemini-3-pro-high" },
{ id: "gemini-3-pro-low", name: "Gemini 3 Pro Low", alias: "gemini-3-pro-low" },
{ id: "gemini-3-flash", name: "Gemini 3 Flash", alias: "gemini-3-flash" },
{ id: "claude-sonnet-4-6", name: "Claude Sonnet 4.6", alias: "claude-sonnet-4-6" },
{ id: "claude-opus-4-6-thinking", name: "Claude Opus 4.6 Thinking", alias: "claude-opus-4-6-thinking" },
{ id: "gpt-oss-120b-medium", name: "GPT OSS 120B Medium", alias: "gpt-oss-120b-medium" },
],
},
// HIDDEN: gemini-cli
+7
View File
@@ -355,6 +355,13 @@ export const DEFAULT_PRICING = {
cached: 0.50,
reasoning: 37.50,
cache_creation: 5.00
},
"gpt-oss-120b-medium": {
input: 0.50,
output: 2.00,
cached: 0.25,
reasoning: 3.00,
cache_creation: 0.50
}
},
+15 -7
View File
@@ -2,6 +2,11 @@ import { cleanupProviderConnections, getSettings } from "@/lib/localDb";
import { enableTunnel } from "@/lib/tunnel/tunnelManager";
import { killCloudflared, isCloudflaredRunning, ensureCloudflared } from "@/lib/tunnel/cloudflared";
// Multiple modules register SIGINT/SIGTERM handlers legitimately
process.setMaxListeners(20);
let signalHandlersRegistered = false;
/**
* Initialize app on startup
* - Cleanup stale data
@@ -24,13 +29,16 @@ export async function initializeApp() {
}
}
// Kill cloudflared on process exit
const cleanup = () => {
killCloudflared();
process.exit();
};
process.on("SIGINT", cleanup);
process.on("SIGTERM", cleanup);
// Kill cloudflared on process exit (register once only)
if (!signalHandlersRegistered) {
const cleanup = () => {
killCloudflared();
process.exit();
};
process.on("SIGINT", cleanup);
process.on("SIGTERM", cleanup);
signalHandlersRegistered = true;
}
// Pre-download cloudflared binary in background
ensureCloudflared().catch(() => {});