Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
58 changes: 58 additions & 0 deletions src/Install/CodeEnvironment/AugmentCode.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
<?php

declare(strict_types=1);

namespace Laravel\Boost\Install\CodeEnvironment;

use Laravel\Boost\Contracts\Agent;
use Laravel\Boost\Install\Enums\Platform;

class AugmentCode extends CodeEnvironment implements Agent
{
public function name(): string
{
return 'augment';
}

public function displayName(): string
{
return 'Augment Code';
}

public function systemDetectionConfig(Platform $platform): array
{
// Detect Auggie CLI installed globally via npm
return match ($platform) {
Platform::Darwin, Platform::Linux => [
'command' => 'which auggie',
],
Platform::Windows => [
'command' => 'where auggie 2>nul',
],
};
}

public function projectDetectionConfig(): array
{
return [
'paths' => ['.augment'],
'files' => ['.augment/rules/guidelines.md'],
];
}

public function detectOnSystem(Platform $platform): bool
{
// Use parent's detection logic which will run the command
return parent::detectOnSystem($platform);
}

public function mcpClientName(): ?string
{
return null;
}

public function guidelinesPath(): string
{
return '.augment/rules/guidelines.md';
}
}
1 change: 1 addition & 0 deletions src/Install/CodeEnvironment/CodeEnvironment.php
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,7 @@ public static function fromName(string $name): ?static
$detectionFactory = app(DetectionStrategyFactory::class);

foreach ([
AugmentCode::class,
ClaudeCode::class,
Codex::class,
Copilot::class,
Expand Down
2 changes: 2 additions & 0 deletions src/Install/CodeEnvironmentsDetector.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@

use Illuminate\Container\Container;
use Illuminate\Support\Collection;
use Laravel\Boost\Install\CodeEnvironment\AugmentCode;
use Laravel\Boost\Install\CodeEnvironment\ClaudeCode;
use Laravel\Boost\Install\CodeEnvironment\CodeEnvironment;
use Laravel\Boost\Install\CodeEnvironment\Codex;
Expand All @@ -25,6 +26,7 @@ class CodeEnvironmentsDetector
'claudecode' => ClaudeCode::class,
'codex' => Codex::class,
'copilot' => Copilot::class,
'augment' => AugmentCode::class,
];

public function __construct(
Expand Down