mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-06 08:10:44 +00:00
chore: remove unused agent exports
This commit is contained in:
@@ -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 =
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -1,8 +1,6 @@
|
||||
export {
|
||||
isGoogleGemini3FlashModel,
|
||||
isGoogleGemini3ProModel,
|
||||
isGoogleGemini3ThinkingLevelModel,
|
||||
isGoogleThinkingRequiredModel,
|
||||
resolveGoogleGemini3ThinkingLevel,
|
||||
stripInvalidGoogleThinkingBudget,
|
||||
type GoogleThinkingInputLevel,
|
||||
|
||||
@@ -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];
|
||||
|
||||
@@ -10,8 +10,6 @@ import {
|
||||
resolveStdioMcpServerLaunchConfig,
|
||||
} from "./mcp-stdio.js";
|
||||
|
||||
export type McpTransportType = "stdio" | HttpMcpTransportType;
|
||||
|
||||
type ResolvedBaseMcpTransportConfig = {
|
||||
description: string;
|
||||
connectionTimeoutMs: number;
|
||||
|
||||
Reference in New Issue
Block a user