import { getOAuthApiKey as getOAuthApiKeyFromPi, refreshOpenAICodexToken as refreshOpenAICodexTokenFromPi, } from "@mariozechner/pi-ai/oauth"; import { ensureGlobalUndiciEnvProxyDispatcher } from "openclaw/plugin-sdk/runtime-env"; export async function getOAuthApiKey( ...args: Parameters ): Promise>> { ensureGlobalUndiciEnvProxyDispatcher(); return await getOAuthApiKeyFromPi(...args); } export async function refreshOpenAICodexToken( ...args: Parameters ): Promise>> { ensureGlobalUndiciEnvProxyDispatcher(); return await refreshOpenAICodexTokenFromPi(...args); }