-
Notifications
You must be signed in to change notification settings - Fork 365
Expand file tree
/
Copy pathClaudeCode.php
More file actions
64 lines (53 loc) · 1.58 KB
/
Copy pathClaudeCode.php
File metadata and controls
64 lines (53 loc) · 1.58 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
<?php
declare(strict_types=1);
namespace Laravel\Boost\Install\Agents;
use Laravel\Boost\Contracts\SupportsGuidelines;
use Laravel\Boost\Contracts\SupportsMcp;
use Laravel\Boost\Contracts\SupportsSkills;
use Laravel\Boost\Install\Enums\McpInstallationStrategy;
use Laravel\Boost\Install\Enums\Platform;
class ClaudeCode extends Agent implements SupportsGuidelines, SupportsMcp, SupportsSkills
{
public function name(): string
{
return 'claude_code';
}
public function displayName(): string
{
return 'Claude Code';
}
public function systemDetectionConfig(Platform $platform): array
{
return match ($platform) {
Platform::Darwin, Platform::Linux => [
'command' => 'command -v claude',
],
Platform::Windows => [
'command' => 'cmd /c where claude 2>nul',
],
};
}
public function projectDetectionConfig(): array
{
return [
'paths' => ['.claude'],
'files' => ['CLAUDE.md'],
];
}
public function mcpInstallationStrategy(): McpInstallationStrategy
{
return McpInstallationStrategy::FILE;
}
public function mcpConfigPath(): string
{
return config('boost.agents.claude_code.mcp_config_path', '.mcp.json');
}
public function guidelinesPath(): string
{
return config('boost.agents.claude_code.guidelines_path', 'CLAUDE.md');
}
public function skillsPath(): string
{
return config('boost.agents.claude_code.skills_path', '.claude/skills');
}
}