From 74a55d7b21824604d560f04361a1399077ce41a2 Mon Sep 17 00:00:00 2001 From: Peter Steinberger Date: Sat, 2 May 2026 08:07:23 +0100 Subject: [PATCH] refactor: hide command internals --- src/agents/codex-native-web-search-core.ts | 6 +++--- src/commands/configure.commands.ts | 4 ++-- src/commands/models/list.manifest-catalog.ts | 2 +- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/agents/codex-native-web-search-core.ts b/src/agents/codex-native-web-search-core.ts index bc2a281a591..c504b3ff2fa 100644 --- a/src/agents/codex-native-web-search-core.ts +++ b/src/agents/codex-native-web-search-core.ts @@ -8,7 +8,7 @@ import { resolveCodexNativeWebSearchConfig, } from "./codex-native-web-search.shared.js"; -export type CodexNativeSearchActivation = { +type CodexNativeSearchActivation = { globalWebSearchEnabled: boolean; codexNativeEnabled: boolean; codexMode: CodexNativeSearchMode; @@ -22,7 +22,7 @@ export type CodexNativeSearchActivation = { | "codex_auth_missing"; }; -export type CodexNativeSearchPayloadPatchResult = { +type CodexNativeSearchPayloadPatchResult = { status: "payload_not_object" | "native_tool_already_present" | "injected"; }; @@ -33,7 +33,7 @@ export function isCodexNativeSearchEligibleModel(params: { return params.modelProvider === "openai-codex" || params.modelApi === "openai-codex-responses"; } -export function hasCodexNativeWebSearchTool(tools: unknown): boolean { +function hasCodexNativeWebSearchTool(tools: unknown): boolean { if (!Array.isArray(tools)) { return false; } diff --git a/src/commands/configure.commands.ts b/src/commands/configure.commands.ts index 036c9845c46..9b08dc36df2 100644 --- a/src/commands/configure.commands.ts +++ b/src/commands/configure.commands.ts @@ -4,11 +4,11 @@ import type { WizardSection } from "./configure.shared.js"; import { CONFIGURE_WIZARD_SECTIONS, parseConfigureWizardSections } from "./configure.shared.js"; import { runConfigureWizard } from "./configure.wizard.js"; -export async function configureCommand(runtime: RuntimeEnv = defaultRuntime) { +async function configureCommand(runtime: RuntimeEnv = defaultRuntime) { await runConfigureWizard({ command: "configure" }, runtime); } -export async function configureCommandWithSections( +async function configureCommandWithSections( sections: WizardSection[], runtime: RuntimeEnv = defaultRuntime, ) { diff --git a/src/commands/models/list.manifest-catalog.ts b/src/commands/models/list.manifest-catalog.ts index 8b44d09a3f7..156e96d3ec2 100644 --- a/src/commands/models/list.manifest-catalog.ts +++ b/src/commands/models/list.manifest-catalog.ts @@ -86,7 +86,7 @@ function resolveDeclaredModelCatalogPluginIds(params: { }); } -export function loadManifestCatalogRowsForList(params: { +function loadManifestCatalogRowsForList(params: { cfg: OpenClawConfig; providerFilter?: string; env?: NodeJS.ProcessEnv;