refactor: hide command internals · openclaw/openclaw@74a55d7
steipete
·
2026-05-02
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -8,7 +8,7 @@ import {
|
8 | 8 | resolveCodexNativeWebSearchConfig, |
9 | 9 | } from "./codex-native-web-search.shared.js"; |
10 | 10 | |
11 | | -export type CodexNativeSearchActivation = { |
| 11 | +type CodexNativeSearchActivation = { |
12 | 12 | globalWebSearchEnabled: boolean; |
13 | 13 | codexNativeEnabled: boolean; |
14 | 14 | codexMode: CodexNativeSearchMode; |
@@ -22,7 +22,7 @@ export type CodexNativeSearchActivation = {
|
22 | 22 | | "codex_auth_missing"; |
23 | 23 | }; |
24 | 24 | |
25 | | -export type CodexNativeSearchPayloadPatchResult = { |
| 25 | +type CodexNativeSearchPayloadPatchResult = { |
26 | 26 | status: "payload_not_object" | "native_tool_already_present" | "injected"; |
27 | 27 | }; |
28 | 28 | |
@@ -33,7 +33,7 @@ export function isCodexNativeSearchEligibleModel(params: {
|
33 | 33 | return params.modelProvider === "openai-codex" || params.modelApi === "openai-codex-responses"; |
34 | 34 | } |
35 | 35 | |
36 | | -export function hasCodexNativeWebSearchTool(tools: unknown): boolean { |
| 36 | +function hasCodexNativeWebSearchTool(tools: unknown): boolean { |
37 | 37 | if (!Array.isArray(tools)) { |
38 | 38 | return false; |
39 | 39 | } |
|
| Original file line number | Diff line number | Diff line change |
|---|
@@ -4,11 +4,11 @@ import type { WizardSection } from "./configure.shared.js";
|
4 | 4 | import { CONFIGURE_WIZARD_SECTIONS, parseConfigureWizardSections } from "./configure.shared.js"; |
5 | 5 | import { runConfigureWizard } from "./configure.wizard.js"; |
6 | 6 | |
7 | | -export async function configureCommand(runtime: RuntimeEnv = defaultRuntime) { |
| 7 | +async function configureCommand(runtime: RuntimeEnv = defaultRuntime) { |
8 | 8 | await runConfigureWizard({ command: "configure" }, runtime); |
9 | 9 | } |
10 | 10 | |
11 | | -export async function configureCommandWithSections( |
| 11 | +async function configureCommandWithSections( |
12 | 12 | sections: WizardSection[], |
13 | 13 | runtime: RuntimeEnv = defaultRuntime, |
14 | 14 | ) { |
|
| Original file line number | Diff line number | Diff line change |
|---|
@@ -86,7 +86,7 @@ function resolveDeclaredModelCatalogPluginIds(params: {
|
86 | 86 | }); |
87 | 87 | } |
88 | 88 | |
89 | | -export function loadManifestCatalogRowsForList(params: { |
| 89 | +function loadManifestCatalogRowsForList(params: { |
90 | 90 | cfg: OpenClawConfig; |
91 | 91 | providerFilter?: string; |
92 | 92 | env?: NodeJS.ProcessEnv; |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。