mirror of
https://github.com/openclaw/openclaw.git
synced 2026-08-12 21:53:00 -06:00
refactor(extensions): remove unused compatibility exports (#121338)
This commit is contained in:
committed by
GitHub
parent
64695e5024
commit
f805ad0354
@@ -1580,13 +1580,4 @@ export function normalizeCodexAppServerBindingModelProvider(params: {
|
||||
return modelProvider;
|
||||
}
|
||||
|
||||
/** Restores the sole provider intentionally omitted from canonical binding rows. */
|
||||
export function resolveCodexAppServerBindingModelProvider(
|
||||
params: CodexAppServerAuthProfileLookup & { modelProvider?: string },
|
||||
): string | undefined {
|
||||
return (
|
||||
params.modelProvider?.trim() ||
|
||||
(isCodexAppServerNativeAuthProfile(params) ? PUBLIC_OPENAI_MODEL_PROVIDER : undefined)
|
||||
);
|
||||
}
|
||||
/* oxlint-disable max-lines -- TODO: split this grandfathered oversized file. */
|
||||
|
||||
@@ -29,5 +29,3 @@ export {
|
||||
} from "./src/thread-bindings.js";
|
||||
export { testing as feishuThreadBindingTesting } from "./src/thread-bindings.js";
|
||||
export { createClackPrompter } from "openclaw/plugin-sdk/setup-runtime";
|
||||
|
||||
export const feishuSessionBindingAdapterChannels = ["feishu"] as const;
|
||||
|
||||
@@ -33,5 +33,3 @@ export {
|
||||
setMatrixThreadBindingMaxAgeBySessionKey,
|
||||
} from "./src/matrix/thread-bindings-shared.js";
|
||||
export { matrixOnboardingAdapter as matrixSetupWizard } from "./src/onboarding.js";
|
||||
|
||||
export const matrixSessionBindingAdapterChannels = ["matrix"] as const;
|
||||
|
||||
@@ -14,6 +14,6 @@ export { openaiMediaUnderstandingProvider } from "./media-understanding-provider
|
||||
export { buildOpenAICodexProvider } from "./openai-chatgpt-catalog.js";
|
||||
export { loginOpenAICodexOAuth } from "./openai-chatgpt-oauth.runtime.js";
|
||||
export { refreshOpenAICodexToken } from "./openai-chatgpt-provider.runtime.js";
|
||||
export { buildOpenAICodexProviderPlugin, buildOpenAIProvider } from "./openai-provider.js";
|
||||
export { buildOpenAIProvider } from "./openai-provider.js";
|
||||
export { buildOpenAIRealtimeTranscriptionProvider } from "./realtime-transcription-provider.js";
|
||||
export { buildOpenAIRealtimeVoiceProvider } from "./realtime-voice-provider.js";
|
||||
|
||||
@@ -1135,14 +1135,6 @@ describe("buildOpenAIProvider", () => {
|
||||
expect(release).toHaveBeenCalledOnce();
|
||||
});
|
||||
|
||||
it("keeps the deprecated Codex provider builder on the public API barrel", async () => {
|
||||
const { buildOpenAICodexProviderPlugin } = await import("./api.js");
|
||||
const provider = buildOpenAICodexProviderPlugin();
|
||||
|
||||
expect(provider.id).toBe("openai");
|
||||
expect(provider.hookAliases).toEqual(["azure-openai", "azure-openai-responses"]);
|
||||
});
|
||||
|
||||
it.each(["gpt-5.5", "gpt-5.6-sol", "gpt-5.6-terra", "gpt-5.6-luna"])(
|
||||
"prefers auth-aware Codex runtime metadata for %s over static OpenAI catalog rows",
|
||||
(modelId) => {
|
||||
|
||||
@@ -579,7 +579,7 @@ async function buildOpenAICodexLiveProviderConfig(params: {
|
||||
fetchGuard: params.fetchGuard,
|
||||
signal: params.signal,
|
||||
ttlMs: OPENAI_CODEX_MODELS_CACHE_TTL_MS,
|
||||
auditContext: "openai-codex-model-discovery",
|
||||
auditContext: "openai-model-discovery",
|
||||
readRows: readCodexModelRows,
|
||||
buildRequestHeaders: ({ discoveryApiKey }) => ({
|
||||
Accept: "application/json",
|
||||
@@ -1127,8 +1127,4 @@ export function buildOpenAIProvider(): ProviderPlugin {
|
||||
};
|
||||
}
|
||||
|
||||
/** @deprecated Use buildOpenAIProvider; OpenAI Codex is now an OpenAI auth/transport mode. */
|
||||
export function buildOpenAICodexProviderPlugin(): ProviderPlugin {
|
||||
return buildOpenAIProvider();
|
||||
}
|
||||
/* oxlint-disable max-lines -- TODO: split this grandfathered oversized file. */
|
||||
|
||||
@@ -48,11 +48,6 @@ function resolveEffortThinkingProfile(
|
||||
return { levels, defaultLevel };
|
||||
}
|
||||
|
||||
export function isOpencodeGoDeepSeekV4ModelId(modelId: unknown): boolean {
|
||||
const normalized = typeof modelId === "string" ? modelId.trim().toLowerCase() : "";
|
||||
return normalized === "deepseek-v4-flash" || normalized === "deepseek-v4-pro";
|
||||
}
|
||||
|
||||
export function isOpencodeGoFixedAnthropicReasoningModelId(modelId: unknown): boolean {
|
||||
return (
|
||||
typeof modelId === "string" &&
|
||||
|
||||
Reference in New Issue
Block a user