| import pkg from "../../../package.json" with { type: "json" }; |
|
|
| |
| export const APP_CONFIG = { |
| name: "9Router Proxy", |
| description: "AI Infrastructure Management", |
| version: pkg.version, |
| }; |
|
|
| |
| export const GITHUB_CONFIG = { |
| changelogUrl: "https://raw.githubusercontent.com/decolua/9router/refs/heads/master/CHANGELOG.md", |
| donateUrl: "https://9router.com/api/donate", |
| }; |
|
|
| |
| export const UPDATER_CONFIG = { |
| npmPackageName: "9router", |
| installCmd: "npm i -g 9router", |
| installCmdLatest: "npm i -g 9router@latest --prefer-online", |
| shutdownCountdownSec: 3, |
| exitDelayMs: 500, |
| statusPort: 20129, |
| statusPollIntervalMs: 1000, |
| statusLogTailLines: 8, |
| installRetries: 3, |
| installRetryDelayMs: 5000, |
| lingerAfterDoneMs: 30000, |
| waitForExitMinMs: 5000, |
| waitForExitMaxMs: 20000, |
| waitForExitCheckMs: 500, |
| appPort: 20128, |
| }; |
|
|
| |
| export const THEME_CONFIG = { |
| storageKey: "theme", |
| defaultTheme: "system", |
| }; |
|
|
| |
| export const SUBSCRIPTION_CONFIG = { |
| price: 1.0, |
| currency: "USD", |
| interval: "month", |
| planName: "Pro Plan", |
| }; |
|
|
| |
| export const API_ENDPOINTS = { |
| users: "/api/users", |
| providers: "/api/providers", |
| payments: "/api/payments", |
| auth: "/api/auth", |
| }; |
|
|
| export const CONSOLE_LOG_CONFIG = { |
| maxLines: 200, |
| pollIntervalMs: 1000, |
| }; |
|
|
| |
| export const CLIENT_STORE_TTL_MS = 60000; |
|
|
| |
| export const CLAUDE_AUTOPING_CONFIG = { |
| settingsKey: "claudeAutoPing", |
| tickIntervalMs: 60000, |
| pingLeadMs: 5000, |
| pingModel: "claude-haiku-4-5-20251001", |
| pingText: "hi", |
| pingMaxTokens: 1, |
| refreshAheadMs: 300000, |
| fiveHourKey: "session (5h)", |
| }; |
|
|
| |
| export { |
| FREE_PROVIDERS, |
| OAUTH_PROVIDERS, |
| APIKEY_PROVIDERS, |
| WEB_COOKIE_PROVIDERS, |
| AI_PROVIDERS, |
| AUTH_METHODS, |
| } from "./providers.js"; |
|
|
| |
| export { |
| PROVIDER_MODELS, |
| AI_MODELS, |
| } from "./models.js"; |
|
|