diff --git a/src/commands/agent-via-gateway.ts b/src/commands/agent-via-gateway.ts index a4925ab61d9..4bfe3a0d758 100644 --- a/src/commands/agent-via-gateway.ts +++ b/src/commands/agent-via-gateway.ts @@ -39,7 +39,7 @@ const EMBEDDED_FALLBACK_META = { } as const; const GATEWAY_TIMEOUT_FALLBACK_SESSION_PREFIX = "gateway-fallback-"; -export type AgentCliOpts = { +type AgentCliOpts = { message: string; agent?: string; model?: string; diff --git a/src/commands/cleanup-utils.ts b/src/commands/cleanup-utils.ts index f7ddd16d2d0..7dc08bd1003 100644 --- a/src/commands/cleanup-utils.ts +++ b/src/commands/cleanup-utils.ts @@ -18,7 +18,7 @@ type CleanupResolvedPaths = { oauthInsideState: boolean; }; -export function collectWorkspaceDirs(cfg: OpenClawConfig | undefined): string[] { +function collectWorkspaceDirs(cfg: OpenClawConfig | undefined): string[] { const dirs = new Set(); const defaults = cfg?.agents?.defaults; if (typeof defaults?.workspace === "string" && defaults.workspace.trim()) { diff --git a/src/commands/daemon-install-helpers.ts b/src/commands/daemon-install-helpers.ts index 5da786c9323..7e38938e73e 100644 --- a/src/commands/daemon-install-helpers.ts +++ b/src/commands/daemon-install-helpers.ts @@ -35,7 +35,7 @@ import type { GatewayDaemonRuntime } from "./daemon-runtime.js"; export { resolveGatewayDevMode } from "./daemon-install-plan.shared.js"; -export type GatewayInstallPlan = { +type GatewayInstallPlan = { programArguments: string[]; workingDirectory?: string; environment: Record; diff --git a/src/commands/doctor-service-repair-policy.ts b/src/commands/doctor-service-repair-policy.ts index 683fe6cdfe0..1f534caf8a6 100644 --- a/src/commands/doctor-service-repair-policy.ts +++ b/src/commands/doctor-service-repair-policy.ts @@ -1,6 +1,6 @@ import type { DoctorPrompter } from "./doctor-prompter.js"; -export type ServiceRepairPolicy = "auto" | "external"; +type ServiceRepairPolicy = "auto" | "external"; export const SERVICE_REPAIR_POLICY_ENV = "OPENCLAW_SERVICE_REPAIR_POLICY"; diff --git a/src/commands/onboard-custom-config.ts b/src/commands/onboard-custom-config.ts index 210d4ad5c18..89bcdb465b7 100644 --- a/src/commands/onboard-custom-config.ts +++ b/src/commands/onboard-custom-config.ts @@ -322,7 +322,7 @@ function buildAnthropicHeaders(apiKey: string) { return headers; } -export type VerificationRequest = { +type VerificationRequest = { endpoint: string; headers: Record; body: Record; diff --git a/src/commands/sessions-cleanup.ts b/src/commands/sessions-cleanup.ts index 710efef554d..4fac3a16010 100644 --- a/src/commands/sessions-cleanup.ts +++ b/src/commands/sessions-cleanup.ts @@ -34,7 +34,7 @@ import { toSessionDisplayRows, } from "./sessions-table.js"; -export type SessionsCleanupOptions = { +type SessionsCleanupOptions = { store?: string; agent?: string; allAgents?: boolean;