1212use Aion \Features \Authentication \ApiTokensFeature ;
1313use Aion \Features \Authentication \OAuthFeature ;
1414use Aion \Features \ExternalTools \ECSLoggingFeature ;
15+ use Aion \Features \System \AgenticAiSystemFeature ;
1516use Aion \Features \System \DatabaseSystemFeature ;
1617use Aion \Features \System \LogSystemFeature ;
1718use Aion \Features \System \PhpStanSystemFeature ;
@@ -70,6 +71,7 @@ private function bootstrapFeatureRegistry(): void
7071 LogSystemFeature::class,
7172 DatabaseSystemFeature::class,
7273 PhpStanSystemFeature::class,
74+ AgenticAiSystemFeature::class,
7375 ]);
7476 }
7577
@@ -108,7 +110,7 @@ protected function execute(InputInterface $input, OutputInterface $output): int
108110 );
109111
110112 if (! $ input ->getOption ('dry-run ' )) {
111- $ this ->installDependencies ($ output );
113+ $ this ->installDependencies ($ output, $ aionConfig );
112114 }
113115
114116 info ('>_ ✨ Setup is complete. Enjoy your new Aion-backed project! ' .($ input ->getOption ('dry-run ' ) ? ' (Dry Run Complete) ' : '' ));
@@ -199,7 +201,7 @@ private function runEngine(
199201 $ output ->writeln ('' );
200202 }
201203
202- private function installDependencies (OutputInterface $ output ): void
204+ private function installDependencies (OutputInterface $ output, AionConfig $ config ): void
203205 {
204206 if ($ this ->isInteractive && ! confirm ('Would you like to install the composer dependencies now? ' )) {
205207 return ;
@@ -212,7 +214,7 @@ private function installDependencies(OutputInterface $output): void
212214 passthru ('composer install --no-scripts ' );
213215 passthru ('php artisan key:generate ' );
214216
215- if ($ this ->isInteractive ) {
217+ if ($ this ->isInteractive && $ config -> bool (ConfigKeyEnum::AgenticAi, true ) ) {
216218 passthru ('php artisan boost:install ' );
217219 }
218220
0 commit comments