feat(db): migrate from lowdb to SQLite with repos pattern
- Add modular DB layer (adapters, migrations, repos, helpers) - Replace localDb/usageDb/requestDetailsDb monoliths with repos - Add Tailscale tunnel integration & status check API - Add /api/cli-tools/all-statuses aggregated endpoint - Add settingsStore (Zustand) and mitm/dbReader - Add DB unit tests (benchmark, concurrent, migration, vs-lowdb)
This commit is contained in:
parent
145f588cc0
commit
bee8dad946
63 changed files with 4223 additions and 2330 deletions
|
|
@ -2,7 +2,7 @@ import pkg from "../../../package.json" with { type: "json" };
|
|||
|
||||
// App configuration
|
||||
export const APP_CONFIG = {
|
||||
name: "9Router proxy",
|
||||
name: "9Router Proxy",
|
||||
description: "AI Infrastructure Management",
|
||||
version: pkg.version,
|
||||
};
|
||||
|
|
@ -56,6 +56,9 @@ export const CONSOLE_LOG_CONFIG = {
|
|||
pollIntervalMs: 1000,
|
||||
};
|
||||
|
||||
// Client-side store TTL: how long fetched data stays fresh before re-fetching
|
||||
export const CLIENT_STORE_TTL_MS = 60000;
|
||||
|
||||
// Provider API endpoints (for display only)
|
||||
export const PROVIDER_ENDPOINTS = {
|
||||
openrouter: "https://openrouter.ai/api/v1/chat/completions",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue