"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.shouldStartHttpsTunnel = void 0;
/**
 * Claude only needs the HTTPS tunnel when it would otherwise talk directly to a
 * remote HTTPS CLIProxy. Single-provider Codex launches already route Claude
 * through local HTTP proxy layers, so those layers can connect upstream via
 * HTTPS without adding another local tunnel.
 */
function shouldStartHttpsTunnel({ provider, useRemoteProxy, protocol, host, isComposite, }) {
    if (!useRemoteProxy || protocol !== 'https' || !host) {
        return false;
    }
    if (provider === 'codex' && !isComposite) {
        return false;
    }
    return true;
}
exports.shouldStartHttpsTunnel = shouldStartHttpsTunnel;
//# sourceMappingURL=https-tunnel-policy.js.map