import { AgentHost } from './agentHost.js';
export async function createUniversalRuntime(options) {
    const env = options.env ? { ...options.env } : { ...process.env };
    const host = new AgentHost({
        profile: options.profile,
        workspaceContext: options.workspaceContext,
        workingDir: options.workingDir,
        toolObserver: options.toolObserver,
        env,
    });
    const additionalModules = options.additionalModules ?? [];
    if (additionalModules.length) {
        await host.loadModules(additionalModules);
    }
    const session = await host.getSession();
    return {
        host,
        session,
    };
}
//# sourceMappingURL=universal.js.map