import chalk from 'chalk';
const VALID_MODES = ['backtest', 'paper', 'live'];
function isStrategyMode(mode) {
    return VALID_MODES.includes(mode);
}
export function strategyRunCommand(strategyName, options) {
    const mode = options.mode ?? 'backtest';
    if (!isStrategyMode(mode)) {
        console.error(chalk.red(`Unknown strategy mode: ${mode}`));
        console.error(`Valid modes: ${VALID_MODES.join(', ')}`);
        process.exitCode = 1;
        return;
    }
    console.error(chalk.yellow('Strategy runner is M1 roadmap work and is not available yet.'));
    console.error(`Received strategy "${strategyName}" in ${mode} mode` +
        `${options.from ? ` from ${options.from}` : ''}` +
        `${options.to ? ` to ${options.to}` : ''}.`);
    console.error('Today, author artifacts with @blockrun/franklin-trading/strategy and use the interactive paper-trading tools from franklin-trading.');
    process.exitCode = 1;
}
