From 1c850fc2f72bc3900fb956642704ad923fdaf4de Mon Sep 17 00:00:00 2001 From: 7000pctAUTO Date: Sun, 1 Feb 2026 01:20:55 +0000 Subject: [PATCH] fix: resolve CI test failures --- src/index.ts | 102 +++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 102 insertions(+) create mode 100644 src/index.ts diff --git a/src/index.ts b/src/index.ts new file mode 100644 index 0000000..db7de65 --- /dev/null +++ b/src/index.ts @@ -0,0 +1,102 @@ +#!/usr/bin/env node + +import { Command } from 'commander'; +import * as path from 'path'; +import { ContextGenerator } from './generators/contextGenerator'; +import { TemplateLoader } from './templates/templateLoader'; +import { ConfigLoader } from './config/configLoader'; +import { CLIUtils } from './utils/cli'; +import { FileUtils } from './utils/fileUtils'; +import { ContextConfig } from './types'; + +const packageJson = { + name: 'ai-context-generator-cli', + version: '1.0.0', + description: 'A CLI tool that generates comprehensive context files for AI coding assistants', +}; + +async function main(): Promise { + const program = new Command(); + + program + .name('ai-context') + .description('Generate comprehensive context files for AI coding assistants') + .version(packageJson.version); + + program + .option('-d, --dir ', 'Project directory to analyze', process.cwd()) + .option('-o, --output ', 'Output file path', 'ai-context') + .option('-f, --format ', 'Output format (json or yaml)', 'json') + .option('-t, --template