refactor: hide command internals

This commit is contained in:
Peter Steinberger
2026-05-02 08:07:23 +01:00
parent 44778bc7e2
commit 74a55d7b21
3 changed files with 6 additions and 6 deletions

View File

@@ -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;
}

View File

@@ -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,
) {

View File

@@ -86,7 +86,7 @@ function resolveDeclaredModelCatalogPluginIds(params: {
});
}
export function loadManifestCatalogRowsForList(params: {
function loadManifestCatalogRowsForList(params: {
cfg: OpenClawConfig;
providerFilter?: string;
env?: NodeJS.ProcessEnv;