/**
 * Transport factory — selects the appropriate AgentTransport based on configuration.
 *
 * @task T5671
 */
import { ClaudeCodeTransport } from './claude-code-transport.js';
import { SignalDockTransport } from './signaldock-transport.js';
/**
 * Create an AgentTransport instance based on configuration.
 *
 * Returns SignalDockTransport if signaldock is enabled,
 * otherwise returns ClaudeCodeTransport as the default.
 */
export function createTransport(config) {
    if (!config?.enabled) {
        return new ClaudeCodeTransport();
    }
    const sdConfig = {
        endpoint: config.endpoint,
        agentPrefix: config.agentPrefix,
        privacyTier: config.privacyTier,
    };
    return new SignalDockTransport(sdConfig);
}
//# sourceMappingURL=factory.js.map