Merge pull request #711 from flightphp/feat/ai-generate-agents-md

feat(ai): generate AGENTS.md in ai:generate-instructions command
master
n0nag0n 17 hours ago committed by GitHub
commit eb24cff886
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -167,7 +167,7 @@ class AiGenerateInstructionsCommand extends AbstractBaseCommand
$io->info( $io->info(
'Updating .github/copilot-instructions.md, ' 'Updating .github/copilot-instructions.md, '
. '.cursor/rules/project-overview.mdc, ' . '.cursor/rules/project-overview.mdc, '
. '.gemini/GEMINI.md and .windsurfrules...', . '.gemini/GEMINI.md, .windsurfrules and AGENTS.md...',
true true
); );
@ -184,6 +184,7 @@ class AiGenerateInstructionsCommand extends AbstractBaseCommand
file_put_contents($this->projectRoot . '.cursor/rules/project-overview.mdc', $instructions); file_put_contents($this->projectRoot . '.cursor/rules/project-overview.mdc', $instructions);
file_put_contents($this->projectRoot . '.gemini/GEMINI.md', $instructions); file_put_contents($this->projectRoot . '.gemini/GEMINI.md', $instructions);
file_put_contents($this->projectRoot . '.windsurfrules', $instructions); file_put_contents($this->projectRoot . '.windsurfrules', $instructions);
file_put_contents($this->projectRoot . 'AGENTS.md', $instructions);
$io->ok('AI instructions updated successfully.', true); $io->ok('AI instructions updated successfully.', true);
return 0; return 0;
} }

@ -167,6 +167,7 @@ class AiGenerateInstructionsCommandTest extends TestCase
$this->assertFileExists($this->baseDir . '.cursor/rules/project-overview.mdc'); $this->assertFileExists($this->baseDir . '.cursor/rules/project-overview.mdc');
$this->assertFileExists($this->baseDir . '.gemini/GEMINI.md'); $this->assertFileExists($this->baseDir . '.gemini/GEMINI.md');
$this->assertFileExists($this->baseDir . '.windsurfrules'); $this->assertFileExists($this->baseDir . '.windsurfrules');
$this->assertFileExists($this->baseDir . 'AGENTS.md');
} }
public function testNoInstructionsReturnedFromLlm() public function testNoInstructionsReturnedFromLlm()

Loading…
Cancel
Save