File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11{
22 "name" : " codebase-intelligence" ,
3- "version" : " 2.0.0 " ,
3+ "version" : " 2.0.1 " ,
44 "description" : " Codebase analysis engine with MCP integration for LLM-assisted code understanding" ,
55 "type" : " module" ,
66 "main" : " dist/cli.js" ,
Original file line number Diff line number Diff line change @@ -12,7 +12,11 @@ process.on("uncaughtException", (err) => {
1212import fs from "fs" ;
1313import path from "path" ;
1414import { execSync } from "child_process" ;
15+ import { createRequire } from "module" ;
1516import { Command } from "commander" ;
17+
18+ const require = createRequire ( import . meta. url ) ;
19+ const pkg = require ( "../package.json" ) as { version : string } ;
1620import { parseCodebase } from "./parser/index.js" ;
1721import { buildGraph } from "./graph/index.js" ;
1822import { analyzeGraph } from "./analyzer/index.js" ;
@@ -50,7 +54,7 @@ interface CliOptions {
5054program
5155 . name ( "codebase-intelligence" )
5256 . description ( "Codebase analysis engine with MCP integration for LLM-assisted code understanding" )
53- . version ( "1.1.0" )
57+ . version ( pkg . version )
5458 . argument ( "<path>" , "Path to the TypeScript codebase to analyze" )
5559 . option ( "--mcp" , "Start as MCP stdio server (accepted for backward compatibility)" )
5660 . option ( "--index" , "Persist graph index to .code-visualizer/" )
You can’t perform that action at this time.
0 commit comments