#!/usr/bin/env node /** * ModelGrid - AI Infrastructure Management * * Main entry point for Node.js execution. */ import { ModelGridCli } from './cli.ts'; import { logger } from './logger.ts'; import process from 'node:process'; /** * Main entry point for ModelGrid */ async function main() { const cli = new ModelGridCli(); await cli.parseAndExecute(process.argv); } // Run the main function and handle any errors main().catch((error) => { logger.error(`Error: ${error}`); process.exit(1); }); // Export core classes for programmatic use export { ModelGrid } from './modelgrid.ts'; export { ModelGridCli } from './cli.ts'; export { Daemon } from './daemon.ts'; export { Systemd } from './systemd.ts'; // Export modules export * from './interfaces/index.ts'; export * from './hardware/index.ts'; export * from './drivers/index.ts'; export * from './docker/index.ts'; export * from './containers/index.ts'; export * from './models/index.ts'; export * from './api/index.ts';