Skip to content

Commit be37f15

Browse files
authored
Merge pull request #29 from laravel/ai-53-cleaner-agentide-management-in-installcommand-pair
refactor: simplify InstallCommand by consolidating CodeEnvironment handling and removing legacy agents
2 parents 98597f6 + e69581a commit be37f15

25 files changed

+811
-465
lines changed

src/Console/InstallCommand.php

Lines changed: 130 additions & 145 deletions
Large diffs are not rendered by default.

src/Contracts/Agent.php

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,29 @@
44

55
namespace Laravel\Boost\Contracts;
66

7-
// We give Agents AI Rules
7+
/**
8+
* Agent contract for AI coding assistants that receive guidelines.
9+
*/
810
interface Agent
911
{
12+
/**
13+
* Get the display name of the Agent.
14+
*
15+
* @return string|null
16+
*/
17+
public function agentName(): ?string;
18+
19+
/**
20+
* Get the file path where AI guidelines should be written.
21+
*
22+
* @return string The relative or absolute path to the guideline file
23+
*/
1024
public function guidelinesPath(): string;
1125

26+
/**
27+
* Determine if the guideline file requires frontmatter.
28+
*
29+
* @return bool
30+
*/
1231
public function frontmatter(): bool;
1332
}

src/Contracts/Ide.php

Lines changed: 0 additions & 17 deletions
This file was deleted.

src/Contracts/McpClient.php

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
<?php
2+
3+
declare(strict_types=1);
4+
5+
namespace Laravel\Boost\Contracts;
6+
7+
/**
8+
* Contract for code editors that support MCP (Model Context Protocol).
9+
*/
10+
interface McpClient
11+
{
12+
/**
13+
* Get the display name of the MCP (Model Context Protocol) client.
14+
*
15+
* @return string|null
16+
*/
17+
public function mcpClientName(): ?string;
18+
19+
/**
20+
* Install an MCP server configuration in this IDE.
21+
*
22+
* @param string $key Server identifier/name
23+
* @param string $command Executable command to run the MCP server
24+
* @param array<int, string> $args Command line arguments
25+
* @param array<string, string> $env Environment variables
26+
* @return bool True if installation succeeded, false otherwise
27+
*/
28+
public function installMcp(string $key, string $command, array $args = [], array $env = []): bool;
29+
}

src/Install/Agents/ClaudeCode.php

Lines changed: 0 additions & 22 deletions
This file was deleted.

src/Install/Agents/Copilot.php

Lines changed: 0 additions & 25 deletions
This file was deleted.

src/Install/Agents/Cursor.php

Lines changed: 0 additions & 25 deletions
This file was deleted.

src/Install/Agents/FileMcpIde.php

Lines changed: 0 additions & 68 deletions
This file was deleted.

src/Install/Agents/Junie.php

Lines changed: 0 additions & 20 deletions
This file was deleted.

src/Install/Agents/PhpStormJunie.php

Lines changed: 0 additions & 13 deletions
This file was deleted.

0 commit comments

Comments
 (0)