11import { PlanResponseData } from 'codify-schemas' ;
22
3+ import { CommonOrchestrator } from '../common/orchestrator.js' ;
34import { Project } from '../entities/project.js' ;
45import { ctx , ProcessName , SubProcessName } from '../events/context.js' ;
56import { Parser } from '../parser/index.js' ;
6- import { PluginCollection } from '../plugins/plugin-collection .js' ;
7+ import { PluginManager } from '../plugins/plugin-manager .js' ;
78import { createStartupShellScriptsIfNotExists } from '../utils/file.js' ;
8- import { CommonOrchestrator } from '../common/orchestrator.js' ;
99
1010export interface PlanOrchestratorResponse {
1111 plan : PlanResponseData [ ] ,
12- pluginCollection : PluginCollection ;
12+ pluginManager : PluginManager ;
1313 project : Project ;
1414}
1515
@@ -24,27 +24,27 @@ export const PlanOrchestrator = {
2424 project . addXCodeToolsConfig ( ) ;
2525 ctx . subprocessFinished ( SubProcessName . PARSE ) ;
2626
27- const { dependencyMap, pluginCollection } = await CommonOrchestrator . initializePlugins ( project , secureMode ) ;
27+ const { dependencyMap, pluginManager } = await CommonOrchestrator . initializePlugins ( project , secureMode ) ;
2828 await createStartupShellScriptsIfNotExists ( ) ;
2929
3030 ctx . subprocessStarted ( SubProcessName . VALIDATE )
3131 project . validateWithResourceMap ( dependencyMap ) ;
3232 project . resolveResourceDependencies ( dependencyMap ) ;
3333
34- const validationResults = await pluginCollection . validate ( project ) ;
34+ const validationResults = await pluginManager . validate ( project ) ;
3535 project . handlePluginResourceValidationResults ( validationResults ) ;
3636 project . calculateEvaluationOrder ( ) ;
3737 ctx . subprocessFinished ( SubProcessName . VALIDATE )
3838
3939 ctx . subprocessStarted ( SubProcessName . GENERATE_PLAN )
40- const plan = await pluginCollection . getPlan ( project ) ;
40+ const plan = await pluginManager . getPlan ( project ) ;
4141 ctx . subprocessFinished ( SubProcessName . GENERATE_PLAN )
4242
4343 ctx . processFinished ( ProcessName . PLAN )
4444
4545 return {
4646 plan,
47- pluginCollection ,
47+ pluginManager ,
4848 project,
4949 } ;
5050 } ,
0 commit comments