refactor: reuse codex search config types

This commit is contained in:
Peter Steinberger
2026-04-19 04:25:12 +01:00
parent bcbb3de760
commit c63d6bf508

View File

@@ -2,30 +2,17 @@ import type { OpenClawConfig } from "../config/types.openclaw.js";
import { isRecord } from "../utils.js";
import { ensureAuthProfileStore, listProfilesForProvider } from "./auth-profiles.js";
import { resolveCodexNativeWebSearchConfig } from "./codex-native-web-search.shared.js";
import type { CodexNativeSearchMode } from "./codex-native-web-search.shared.js";
import { resolveDefaultModelForAgent } from "./model-selection.js";
export {
type CodexNativeSearchContextSize,
type CodexNativeSearchMode,
type CodexNativeSearchUserLocation,
describeCodexNativeWebSearch,
type ResolvedCodexNativeWebSearchConfig,
resolveCodexNativeWebSearchConfig,
} from "./codex-native-web-search.shared.js";
export type CodexNativeSearchMode = "cached" | "live";
export type CodexNativeSearchContextSize = "low" | "medium" | "high";
export type CodexNativeSearchUserLocation = {
country?: string;
region?: string;
city?: string;
timezone?: string;
};
export type ResolvedCodexNativeWebSearchConfig = {
enabled: boolean;
mode: CodexNativeSearchMode;
allowedDomains?: string[];
contextSize?: CodexNativeSearchContextSize;
userLocation?: CodexNativeSearchUserLocation;
};
export type CodexNativeSearchActivation = {
globalWebSearchEnabled: boolean;
codexNativeEnabled: boolean;