## Features - Add Cline & Kilo Code tool cards - Tailscale TUN mode for stable Funnel TLS - Sort APIKEY providers by usage, collapse to top 20 ## Improvements - Local Material Symbols font (no Google Fonts) - Docker base: Bun → Node 22-alpine - MITM reads aliases from JSON cache (no native sqlite) - Stream stall timeout (2 min) in open-sse ## Fixes - Fal.ai key test: use stable models endpoint
43 lines
1.3 KiB
JavaScript
43 lines
1.3 KiB
JavaScript
"use server";
|
|
|
|
import { NextResponse } from "next/server";
|
|
import { GET as claudeGet } from "../claude-settings/route";
|
|
import { GET as codexGet } from "../codex-settings/route";
|
|
import { GET as opencodeGet } from "../opencode-settings/route";
|
|
import { GET as droidGet } from "../droid-settings/route";
|
|
import { GET as openclawGet } from "../openclaw-settings/route";
|
|
import { GET as hermesGet } from "../hermes-settings/route";
|
|
import { GET as coworkGet } from "../cowork-settings/route";
|
|
import { GET as copilotGet } from "../copilot-settings/route";
|
|
import { GET as clineGet } from "../cline-settings/route";
|
|
import { GET as kiloGet } from "../kilo-settings/route";
|
|
|
|
const STATUS_GETTERS = {
|
|
claude: claudeGet,
|
|
codex: codexGet,
|
|
opencode: opencodeGet,
|
|
droid: droidGet,
|
|
openclaw: openclawGet,
|
|
hermes: hermesGet,
|
|
cowork: coworkGet,
|
|
copilot: copilotGet,
|
|
cline: clineGet,
|
|
kilo: kiloGet,
|
|
};
|
|
|
|
// Batch endpoint: gather all CLI tool statuses in one round-trip
|
|
export async function GET() {
|
|
const entries = await Promise.all(
|
|
Object.entries(STATUS_GETTERS).map(async ([toolId, getter]) => {
|
|
try {
|
|
const res = await getter();
|
|
const data = await res.json();
|
|
return [toolId, data];
|
|
} catch {
|
|
return [toolId, null];
|
|
}
|
|
})
|
|
);
|
|
return NextResponse.json(Object.fromEntries(entries));
|
|
}
|