/**
 * Configuration shape for the anthropic-interactive-pool adapter.
 */
export function configFromEnv(env = process.env) {
    return {
        claudePath: env['CLAUDE_PATH'] || '/opt/homebrew/bin/claude',
        tmuxPath: env['TMUX_PATH'] || '/opt/homebrew/bin/tmux',
        poolSize: parseInt(env['INTERACTIVE_POOL_SIZE'] || '2', 10),
        maxMessagesPerSession: parseInt(env['INTERACTIVE_POOL_MAX_MESSAGES'] || '50', 10),
        maxIdleMinutes: parseInt(env['INTERACTIVE_POOL_MAX_IDLE_MINUTES'] || '30', 10),
        allocateTimeoutMs: 60_000,
        credential: env['CLAUDE_CODE_OAUTH_TOKEN'] || env['ANTHROPIC_API_KEY'],
        apiBaseUrl: env['ANTHROPIC_BASE_URL'],
        model: env['INTERACTIVE_POOL_MODEL'] || undefined,
        idleMarkers: ['? for shortcuts', 'bypass permissions on', 'shift+tab to cycle'],
        stabilitySeconds: 4,
        maxPromptWaitSeconds: 120,
        paneWidth: 200,
        paneHeight: 50,
        canaryIntervalMs: parseInt(env['INTERACTIVE_POOL_CANARY_INTERVAL_MS'] || '3600000', 10),
    };
}
//# sourceMappingURL=config.js.map