We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b93476f commit eff873eCopy full SHA for eff873e
src/Console/InstallCommand.php
@@ -353,10 +353,20 @@ protected function selectTargetAgents(): Collection
353
return collect();
354
}
355
356
+ $defaults = $this->config->getAgents();
357
+
358
+ if ($this->selectedTargetMcpClient->isNotEmpty()) {
359
+ $defaults = $this->selectedTargetMcpClient
360
+ ->filter(fn (McpClient $client): bool => $client instanceof Agent)
361
+ ->map(fn (McpClient $client): string => $client->name())
362
+ ->values()
363
+ ->toArray();
364
+ }
365
366
return $this->selectCodeEnvironments(
367
Agent::class,
368
sprintf('Which agents need AI guidelines for %s?', $this->projectName),
- $this->config->getAgents(),
369
+ $defaults,
370
);
371
372
0 commit comments