//#region extensions/codex/src/app-server/client-factory.ts
let sharedClientModulePromise = null;
const loadSharedClientModule = async () => {
	sharedClientModulePromise ??= import("./shared-client-DkH4U48W.js");
	return await sharedClientModulePromise;
};
const defaultLeasedCodexAppServerClientFactory = (startOptions, authProfileId, agentDir, config, options) => loadSharedClientModule().then(({ getLeasedSharedCodexAppServerClient }) => getLeasedSharedCodexAppServerClient({
	startOptions,
	authProfileId,
	agentDir,
	config,
	onStartedClient: options?.onStartedClient,
	abandonSignal: options?.abandonSignal
}));
//#endregion
export { defaultLeasedCodexAppServerClientFactory as t };
