chore: remove unused agent exports

This commit is contained in:
Peter Steinberger
2026-04-18 20:44:02 +01:00
parent 0195da6b0e
commit a2b093cf6a
5 changed files with 0 additions and 42 deletions

View File

@@ -38,11 +38,6 @@ export type ResolvedCliBackendLiveTest = {
dockerBinaryName?: string;
};
export function normalizeClaudeBackendConfig(config: CliBackendConfig): CliBackendConfig {
const normalizeConfig = resolveFallbackCliBackendPolicy("claude-cli")?.normalizeConfig;
return normalizeConfig ? normalizeConfig(config) : config;
}
type FallbackCliBackendPolicy = {
bundleMcp: boolean;
bundleMcpMode?: CliBundleMcpMode;
@@ -156,18 +151,6 @@ function mergeBackendConfig(base: CliBackendConfig, override?: CliBackendConfig)
};
}
export function resolveCliBackendIds(cfg?: OpenClawConfig): Set<string> {
const ids = new Set<string>();
for (const backend of cliBackendsDeps.resolveRuntimeCliBackends()) {
ids.add(normalizeBackendKey(backend.id));
}
const configured = cfg?.agents?.defaults?.cliBackends ?? {};
for (const key of Object.keys(configured)) {
ids.add(normalizeBackendKey(key));
}
return ids;
}
export function resolveCliBackendLiveTest(provider: string): ResolvedCliBackendLiveTest | null {
const normalized = normalizeBackendKey(provider);
const entry =

View File

@@ -8,14 +8,6 @@ export type FastModeState = {
source: "session" | "agent" | "config" | "default";
};
export function resolveFastModeParam(
extraParams: Record<string, unknown> | undefined,
): boolean | undefined {
return normalizeFastMode(
(extraParams?.fastMode ?? extraParams?.fast_mode) as string | boolean | null | undefined,
);
}
function resolveConfiguredFastModeRaw(params: {
cfg: OpenClawConfig | undefined;
provider: string;
@@ -26,18 +18,6 @@ function resolveConfiguredFastModeRaw(params: {
return modelConfig?.params?.fastMode ?? modelConfig?.params?.fast_mode;
}
export function resolveConfiguredFastMode(params: {
cfg: OpenClawConfig | undefined;
provider: string;
model: string;
}): boolean {
return (
normalizeFastMode(
resolveConfiguredFastModeRaw(params) as string | boolean | null | undefined,
) ?? false
);
}
export function resolveFastModeState(params: {
cfg: OpenClawConfig | undefined;
provider: string;

View File

@@ -1,8 +1,6 @@
export {
isGoogleGemini3FlashModel,
isGoogleGemini3ProModel,
isGoogleGemini3ThinkingLevelModel,
isGoogleThinkingRequiredModel,
resolveGoogleGemini3ThinkingLevel,
stripInvalidGoogleThinkingBudget,
type GoogleThinkingInputLevel,

View File

@@ -9,6 +9,5 @@ export const AGENT_INTERNAL_EVENT_SOURCES = [
export const AGENT_INTERNAL_EVENT_STATUSES = ["ok", "timeout", "error", "unknown"] as const;
export type AgentInternalEventType = typeof AGENT_INTERNAL_EVENT_TYPE_TASK_COMPLETION;
export type AgentInternalEventSource = (typeof AGENT_INTERNAL_EVENT_SOURCES)[number];
export type AgentInternalEventStatus = (typeof AGENT_INTERNAL_EVENT_STATUSES)[number];

View File

@@ -10,8 +10,6 @@ import {
resolveStdioMcpServerLaunchConfig,
} from "./mcp-stdio.js";
export type McpTransportType = "stdio" | HttpMcpTransportType;
type ResolvedBaseMcpTransportConfig = {
description: string;
connectionTimeoutMs: number;