Skip to content

Commit 447a5dc

Browse files
committed
refactor: integrate CodingAgent contract in InstallCommand and enhance agent name handling logic
1 parent ca6a45e commit 447a5dc

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/Console/InstallCommand.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
use Illuminate\Support\Arr;
1010
use Illuminate\Support\Collection;
1111
use Illuminate\Support\Str;
12+
use Laravel\Boost\Contracts\CodingAgent;
1213
use Laravel\Boost\Install\Cli\DisplayHelper;
1314
use Laravel\Boost\Install\CodeEnvironment\CodeEnvironment;
1415
use Laravel\Boost\Install\CodeEnvironmentsDetector;
@@ -366,6 +367,7 @@ protected function enactGuidelines(): void
366367
$composedAiGuidelines = $composer->compose();
367368

368369
$longestAgentName = max(1, ...$this->selectedTargetAgents->map(fn ($agent) => Str::length($agent->agentName()))->toArray());
370+
/** @var CodingAgent $agent */
369371
foreach ($this->selectedTargetAgents as $agent) {
370372
$agentName = $agent->agentName();
371373
$displayAgentName = str_pad($agentName, $longestAgentName);

0 commit comments

Comments
 (0)