Skip to content

Commit 5c20313

Browse files
authored
Merge branch 'main' into sail_guidline_support
2 parents 4337a77 + 25ed9ba commit 5c20313

File tree

3 files changed

+28
-12
lines changed

3 files changed

+28
-12
lines changed

CHANGELOG.md

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,24 @@
11
# Release Notes
22

3-
## [Unreleased](https://github.com/laravel/boost/compare/v1.6.0...main)
3+
## [Unreleased](https://github.com/laravel/boost/compare/v1.7.0...main)
4+
5+
## [v1.7.0](https://github.com/laravel/boost/compare/v1.6.0...v1.7.0) - 2025-11-04
6+
7+
### What's Changed
8+
9+
* feat: add opencode support by [@calebdw](https://github.com/calebdw) in https://github.com/laravel/boost/pull/88
10+
* Fix Invalid Argument Error with MCP tool by [@pushpak1300](https://github.com/pushpak1300) in https://github.com/laravel/boost/pull/323
11+
* [1.x] Refactor to use first-class callable by [@pushpak1300](https://github.com/pushpak1300) in https://github.com/laravel/boost/pull/315
12+
* [1.x] Sail Support for Boost by [@NIAN97](https://github.com/NIAN97) in https://github.com/laravel/boost/pull/303
13+
* Remove duplicate code in GuidelineComposer.php by [@phpfour](https://github.com/phpfour) in https://github.com/laravel/boost/pull/331
14+
* Handle `@volt` directives in GuidelineComposer by [@pushpak1300](https://github.com/pushpak1300) in https://github.com/laravel/boost/pull/333
15+
16+
### New Contributors
17+
18+
* [@NIAN97](https://github.com/NIAN97) made their first contribution in https://github.com/laravel/boost/pull/303
19+
* [@phpfour](https://github.com/phpfour) made their first contribution in https://github.com/laravel/boost/pull/331
20+
21+
**Full Changelog**: https://github.com/laravel/boost/compare/v1.6.0...v1.7.0
422

523
## [v1.6.0](https://github.com/laravel/boost/compare/v1.5.1...v1.6.0) - 2025-10-28
624

src/Install/GuidelineComposer.php

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -183,16 +183,6 @@ protected function find(): Collection
183183
$guidelines->put('.ai/'.$guideline['name'], $guideline);
184184
}
185185

186-
$pathsUsed = $guidelines->pluck('path');
187-
188-
foreach ($userGuidelines as $guideline) {
189-
if ($pathsUsed->contains($guideline['path'])) {
190-
continue; // Don't include this twice if it's an override
191-
}
192-
193-
$guidelines->put('.ai/'.$guideline['name'], $guideline);
194-
}
195-
196186
collect(Composer::packagesDirectoriesWithBoostGuidelines())
197187
->each(function (string $path, string $package) use ($guidelines): void {
198188
$packageGuidelines = $this->guidelinesDir($path, true);
@@ -268,6 +258,8 @@ protected function renderContent(string $content, string $path): string
268258
$placeholders = [
269259
'`' => '___SINGLE_BACKTICK___',
270260
'<?php' => '___OPEN_PHP_TAG___',
261+
'@volt' => '___VOLT_DIRECTIVE___',
262+
'@endvolt' => '___ENDVOLT_DIRECTIVE___',
271263
];
272264

273265
$content = str_replace(array_keys($placeholders), array_values($placeholders), $content);

tests/Feature/Install/GuidelineComposerTest.php

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -433,6 +433,7 @@
433433
test('renderContent handles blade and markdown files correctly', function (): void {
434434
$packages = new PackageCollection([
435435
new Package(Packages::LARAVEL, 'laravel/framework', '11.0.0'),
436+
new Package(Packages::VOLT, 'laravel/volt', '1.0.0'),
436437
]);
437438

438439
$this->roster->shouldReceive('packages')->andReturn($packages);
@@ -469,5 +470,10 @@
469470
// Processes blade variables correctly
470471
->toContain('=== .ai/test-blade-with-assist rules ===')
471472
->toContain('Run `npm install` to install dependencies')
472-
->toContain('Package manager: npm');
473+
->toContain('Package manager: npm')
474+
// Preserves @volt directives in blade templates
475+
->toContain('`@volt`')
476+
->toContain('@endvolt')
477+
->not->toContain('volt-anonymous-fragment')
478+
->not->toContain('@livewire');
473479
});

0 commit comments

Comments
 (0)