From 188ab3a5be9909fabcc358f86039e3e132f11dcc Mon Sep 17 00:00:00 2001 From: Peter Steinberger Date: Fri, 1 May 2026 21:33:11 +0100 Subject: [PATCH] refactor: trim live model scan exports --- src/agents/live-cache-regression-runner.ts | 2 +- src/agents/live-model-switch-error.ts | 2 +- src/agents/model-auth-env.ts | 2 +- src/agents/model-scan.ts | 7 ++----- 4 files changed, 5 insertions(+), 8 deletions(-) diff --git a/src/agents/live-cache-regression-runner.ts b/src/agents/live-cache-regression-runner.ts index 7b1ba3feaeb..7f314790516 100644 --- a/src/agents/live-cache-regression-runner.ts +++ b/src/agents/live-cache-regression-runner.ts @@ -53,7 +53,7 @@ type BaselineFindings = { warnings: string[]; }; -export type LiveCacheRegressionResult = { +type LiveCacheRegressionResult = { regressions: string[]; summary: Record>; warnings: string[]; diff --git a/src/agents/live-model-switch-error.ts b/src/agents/live-model-switch-error.ts index 070dd172cff..f6c1c1cc35f 100644 --- a/src/agents/live-model-switch-error.ts +++ b/src/agents/live-model-switch-error.ts @@ -1,4 +1,4 @@ -export type LiveSessionModelSelection = { +type LiveSessionModelSelection = { provider: string; model: string; authProfileId?: string; diff --git a/src/agents/model-auth-env.ts b/src/agents/model-auth-env.ts index 30f8cdb6adb..c3012c5f1ff 100644 --- a/src/agents/model-auth-env.ts +++ b/src/agents/model-auth-env.ts @@ -18,7 +18,7 @@ export type EnvApiKeyResult = { source: string; }; -export type EnvApiKeyLookupOptions = { +type EnvApiKeyLookupOptions = { config?: OpenClawConfig; workspaceDir?: string; aliasMap?: Readonly>; diff --git a/src/agents/model-scan.ts b/src/agents/model-scan.ts index 053e8a91b86..de891ef4ec2 100644 --- a/src/agents/model-scan.ts +++ b/src/agents/model-scan.ts @@ -52,7 +52,7 @@ type OpenRouterModelPricing = { internalReasoning: number; }; -export type ProbeResult = { +type ProbeResult = { ok: boolean; latencyMs: number | null; error?: string; @@ -77,7 +77,7 @@ export type ModelScanResult = { image: ProbeResult; }; -export type OpenRouterScanOptions = { +type OpenRouterScanOptions = { apiKey?: string; fetchImpl?: typeof fetch; timeoutMs?: number; @@ -507,6 +507,3 @@ export async function scanOpenRouterModels( }, ); } - -export { OPENROUTER_MODELS_URL }; -export type { OpenRouterModelMeta, OpenRouterModelPricing };