feat(settings): unify routing rules and model aliases controls

Move model routing management into Settings and add a unified
model alias editor for exact and wildcard remaps.

Sync combo defaults with global routing strategy settings, add
localized combo onboarding copy, and expand routing i18n across
supported locales.

Also fix supporting routing behavior by accepting all strategy
values in settings schemas, preserving connection ids in combo
tests, honoring non-stream JSON requests for CC-compatible
providers, and handling hashed external package subpaths.
This commit is contained in:
diegosouzapw
2026-04-12 18:43:19 -03:00
parent 9944d136e4
commit 25bd04e400
61 changed files with 2036 additions and 492 deletions

View File

@@ -6,15 +6,12 @@
import { NextResponse } from "next/server";
import fs from "fs";
import path from "path";
import { fileURLToPath } from "url";
import yaml from "js-yaml";
let cachedSpec: { data: any; mtime: number } | null = null;
const ROUTE_DIR = path.dirname(fileURLToPath(import.meta.url));
const PROJECT_ROOT = path.resolve(ROUTE_DIR, "../../../../../");
const OPENAPI_SPEC_CANDIDATES = [
path.join(PROJECT_ROOT, "docs", "openapi.yaml"),
path.join(PROJECT_ROOT, "app", "docs", "openapi.yaml"),
path.join(process.cwd(), "docs", "openapi.yaml"),
path.join(process.cwd(), "app", "docs", "openapi.yaml"),
];
export async function GET() {