/**
 * Version Command
 *
 * Displays detailed version information for Shep AI CLI.
 * Provides more context than the --version flag.
 *
 * Usage: shep version
 *
 * @example
 * $ shep version
 * @shepai/cli v0.1.0
 * Autonomous AI Native SDLC Platform
 *
 * Node:     v20.10.0
 * Platform: linux x64
 */
import { Command } from 'commander';
import { container } from '../../../../packages/core/src/infrastructure/di/container.js';
import { colors, fmt, messages } from '../ui/index.js';
import { getCliI18n } from '../i18n.js';
/**
 * Create the version command
 */
export function createVersionCommand() {
    const t = getCliI18n().t;
    return new Command('version').description(t('cli:commands.version.description')).action(() => {
        const versionService = container.resolve('IVersionService');
        const info = versionService.getVersion();
        messages.newline();
        console.log(`${fmt.heading(info.name)} ${fmt.version(info.version)}`);
        console.log(colors.muted(info.description));
        messages.newline();
        console.log(`${fmt.label(t('cli:commands.version.nodeLabel'))}     ${process.version}`);
        console.log(`${fmt.label(t('cli:commands.version.platformLabel'))} ${process.platform} ${process.arch}`);
        messages.newline();
    });
}
