mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-06 09:30:43 +00:00
refactor: hide command internals
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
@@ -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,
|
||||
) {
|
||||
|
||||
@@ -86,7 +86,7 @@ function resolveDeclaredModelCatalogPluginIds(params: {
|
||||
});
|
||||
}
|
||||
|
||||
export function loadManifestCatalogRowsForList(params: {
|
||||
function loadManifestCatalogRowsForList(params: {
|
||||
cfg: OpenClawConfig;
|
||||
providerFilter?: string;
|
||||
env?: NodeJS.ProcessEnv;
|
||||
|
||||
Reference in New Issue
Block a user