"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.createCommunicationConfig = createCommunicationConfig;
function createCommunicationConfig(command) {
    const type = command === 'python' && process.platform === 'win32' ? 'rpc' : 'ipc';
    const spawnOptions = {
        stdio: type === 'rpc'
            ? ['pipe', 'pipe', 'inherit'] // RPC: capture stdout
            : ['inherit', 'inherit', 'inherit', 'ipc'] // IPC: include IPC channel
    };
    return { type, spawnOptions };
}
