@@ -371,7 +371,7 @@ export class ProjectFactory {
371371 * Handles tsconfig.json resolution and project references
372372 */
373373 static createProjectForSingleRepo (
374- projectRoot : string ,
374+ projectRoot : string ,
375375 tsConfigPath ?: string ,
376376 tsConfigCache ?: TsConfigCache
377377 ) : Project {
@@ -492,7 +492,7 @@ export class ProjectFactory {
492492 return false ;
493493 }
494494 } ) ;
495-
495+
496496 if ( existingFiles . length > 0 ) {
497497 try {
498498 project . addSourceFilesAtPaths ( existingFiles ) ;
@@ -523,7 +523,8 @@ export class ProjectFactory {
523523 * Repository Factory - Centralized creation of Repository objects
524524 */
525525export class RepositoryFactory {
526- private static readonly AST_VERSION = 'v0.1.3' ;
526+ private static AST_VERSION = process . env . ABCODER_AST_VERSION || 'unknown' ;
527+ private static TOOL_VERSION = process . env . ABCODER_TOOL_VERSION || 'unknown' ;
527528
528529 /**
529530 * Create a repository for a single project/repository
@@ -532,7 +533,9 @@ export class RepositoryFactory {
532533 const absolutePath = path . resolve ( repoPath ) ;
533534 return {
534535 ASTVersion : RepositoryFactory . AST_VERSION ,
536+ ToolVersion : RepositoryFactory . TOOL_VERSION ,
535537 id : path . basename ( absolutePath ) ,
538+ Path : absolutePath ,
536539 Modules : { } ,
537540 Graph : { } ,
538541 } ;
@@ -544,6 +547,8 @@ export class RepositoryFactory {
544547 static createPackageRepository ( pkg : MonorepoPackage , module : Module ) : Repository {
545548 return {
546549 ASTVersion : RepositoryFactory . AST_VERSION ,
550+ ToolVersion : RepositoryFactory . TOOL_VERSION ,
551+ Path : pkg . absolutePath ,
547552 id : pkg . name || path . basename ( pkg . absolutePath ) ,
548553 Modules : { [ module . Name ] : module } ,
549554 Graph : { } ,
@@ -556,6 +561,8 @@ export class RepositoryFactory {
556561 static createEmptyRepository ( id : string ) : Repository {
557562 return {
558563 ASTVersion : RepositoryFactory . AST_VERSION ,
564+ ToolVersion : RepositoryFactory . TOOL_VERSION ,
565+ Path : '' ,
559566 id,
560567 Modules : { } ,
561568 Graph : { } ,
0 commit comments