#!/usr/bin/env -S node --no-deprecation
/**
 * @license
 * Copyright 2025 Vybestack LLC
 * SPDX-License-Identifier: Apache-2.0
 */
// Note: Using --no-deprecation in shebang to suppress deprecation warnings from dependencies
/**
 * @license
 * Copyright 2025 Google LLC
 * SPDX-License-Identifier: Apache-2.0
 */
import './src/gemini.js';
import { main } from './src/gemini.js';
import { FatalError } from '@vybestack/llxprt-code-core';
// --- Global Entry Point ---
main().catch((error) => {
    if (error instanceof FatalError) {
        let errorMessage = error.message;
        if (!process.env['NO_COLOR']) {
            errorMessage = `\x1b[31m${errorMessage}\x1b[0m`;
        }
        console.error(errorMessage);
        process.exit(error.exitCode);
    }
    console.error('An unexpected critical error occurred:');
    if (error instanceof Error) {
        console.error(error.stack);
    }
    else {
        console.error(String(error));
    }
    process.exit(1);
});
//# sourceMappingURL=index.js.map