Skip to content

Commit 7fcdf31

Browse files
committed
feat: remove windsurf implementation
1 parent 649aa4c commit 7fcdf31

File tree

5 files changed

+4
-77
lines changed

5 files changed

+4
-77
lines changed

.vscode/settings.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"php.version": "8.1"
3+
}

src/Console/InstallCommand.php

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -293,7 +293,6 @@ private function discoverProjectAgents(): array
293293
'phpstorm' => 'junie',
294294
'claudecode' => 'claudecode',
295295
'cursor' => 'cursor',
296-
'windsurf' => 'windsurf',
297296
'copilot' => 'copilot',
298297
];
299298

@@ -398,12 +397,6 @@ private function agentsToInstallTo(): Collection
398397

399398
ksort($agents);
400399

401-
// Filter agents to only show those that are installed (for Windsurf)
402-
$filteredAgents = $agents;
403-
if (! in_array('windsurf', $this->systemInstalledCodeEnvironments) && ! in_array('windsurf', $this->projectInstalledAgents)) {
404-
unset($filteredAgents['Laravel\\Boost\\Install\\Agents\\Windsurf']);
405-
}
406-
407400
// Map detected agent keys to class names
408401
$detectedClasses = [];
409402
foreach ($this->projectInstalledAgents as $agentKey) {
@@ -417,7 +410,7 @@ private function agentsToInstallTo(): Collection
417410

418411
$selectedAgentClasses = collect(multiselect(
419412
label: sprintf('Which agents need AI guidelines for %s?', $this->projectName),
420-
options: $filteredAgents,
413+
options: $agents,
421414
default: $detectedClasses,
422415
scroll: 4,
423416
))->sort();

src/Install/CodeEnvironment/Windsurf.php

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

src/Install/CodeEnvironmentsDetector.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@
1212
use Laravel\Boost\Install\CodeEnvironment\Cursor;
1313
use Laravel\Boost\Install\CodeEnvironment\PhpStorm;
1414
use Laravel\Boost\Install\CodeEnvironment\VSCode;
15-
use Laravel\Boost\Install\CodeEnvironment\Windsurf;
1615
use Laravel\Boost\Install\CodeEnvironment\Zed;
1716
use Laravel\Boost\Install\Enums\Platform;
1817

@@ -23,7 +22,6 @@ class CodeEnvironmentsDetector
2322
'phpstorm' => PhpStorm::class,
2423
'vscode' => VSCode::class,
2524
'cursor' => Cursor::class,
26-
'windsurf' => Windsurf::class,
2725
'claudecode' => ClaudeCode::class,
2826
'zed' => Zed::class,
2927
'copilot' => Copilot::class,

tests/Unit/Install/CodeEnvironmentsDetectorTest.php

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,6 @@
3939
$container->bind(\Laravel\Boost\Install\CodeEnvironment\PhpStorm::class, fn () => $program1);
4040
$container->bind(\Laravel\Boost\Install\CodeEnvironment\VSCode::class, fn () => $program2);
4141
$container->bind(\Laravel\Boost\Install\CodeEnvironment\Cursor::class, fn () => $program3);
42-
$container->bind(\Laravel\Boost\Install\CodeEnvironment\Windsurf::class, fn () => $otherProgram);
4342
$container->bind(\Laravel\Boost\Install\CodeEnvironment\ClaudeCode::class, fn () => $otherProgram);
4443
$container->bind(\Laravel\Boost\Install\CodeEnvironment\Zed::class, fn () => $otherProgram);
4544
$container->bind(\Laravel\Boost\Install\CodeEnvironment\Copilot::class, fn () => $otherProgram);
@@ -65,7 +64,6 @@
6564
$container->bind(\Laravel\Boost\Install\CodeEnvironment\PhpStorm::class, fn () => $program1);
6665
$container->bind(\Laravel\Boost\Install\CodeEnvironment\VSCode::class, fn () => $otherProgram);
6766
$container->bind(\Laravel\Boost\Install\CodeEnvironment\Cursor::class, fn () => $otherProgram);
68-
$container->bind(\Laravel\Boost\Install\CodeEnvironment\Windsurf::class, fn () => $otherProgram);
6967
$container->bind(\Laravel\Boost\Install\CodeEnvironment\ClaudeCode::class, fn () => $otherProgram);
7068
$container->bind(\Laravel\Boost\Install\CodeEnvironment\Zed::class, fn () => $otherProgram);
7169
$container->bind(\Laravel\Boost\Install\CodeEnvironment\Copilot::class, fn () => $otherProgram);
@@ -134,20 +132,6 @@
134132
rmdir($tempDir);
135133
});
136134

137-
test('discoverProjectInstalledCodeEnvironments detects applications by file', function () {
138-
$tempDir = sys_get_temp_dir().'/boost_test_'.uniqid();
139-
mkdir($tempDir);
140-
file_put_contents($tempDir.'/.windsurfrules.md', 'test');
141-
142-
$detected = $this->detector->discoverProjectInstalledCodeEnvironments($tempDir);
143-
144-
expect($detected)->toContain('windsurf');
145-
146-
// Cleanup
147-
unlink($tempDir.'/.windsurfrules.md');
148-
rmdir($tempDir);
149-
});
150-
151135
test('discoverProjectInstalledCodeEnvironments detects applications with mixed type', function () {
152136
$tempDir = sys_get_temp_dir().'/boost_test_'.uniqid();
153137
mkdir($tempDir);

0 commit comments

Comments
 (0)