A free open source IT asset/license management system
Re-enable scoped guidelines
Marcus Moore21c704a843e6
diff --git a/.ai/rules/index.md b/.ai/rules/index.mdindex 386bd8d539..d3d7a92d67 100644--- a/.ai/rules/index.md+++ b/.ai/rules/index.md@@ -7,6 +7,12 @@ Before planning or editing, find the row whose globs match the file's path and r| app/Actions/** | .ai/rules/actions.md || app/Http/Controllers/Api/** | .ai/rules/api.md || app/** | .ai/rules/app.md |+| app/Http/**, routes/** | .ai/rules/boost/http-routes.md |+| app/Livewire/**, resources/views/** | .ai/rules/boost/livewire-views.md |+| database/migrations/** | .ai/rules/boost/migrations.md |+| app/Models/**, database/migrations/** | .ai/rules/boost/models-migrations.md |+| app/Models/** | .ai/rules/boost/models.md |+| tests/** | .ai/rules/boost/tests.md || app/Http/Controllers/** | .ai/rules/controllers.md || app/Livewire/** | .ai/rules/livewire.md || database/migrations/** | .ai/rules/migrations.md |diff --git a/.gitignore b/.gitignoreindex 04705a850f..0da2cd7988 100755--- a/.gitignore+++ b/.gitignore@@ -77,6 +77,7 @@ storage/ldap_client_tls.key/.phpunit.cache+/.ai/rules/boost/.mcp.json/.agents/.ampdiff --git a/AGENTS.md b/AGENTS.mdindex 2b931a6571..1876b512da 100644--- a/AGENTS.md+++ b/AGENTS.md@@ -242,24 +242,10 @@ This project has domain-specific skills available in `**/skills/**`. You MUST ac- If you're creating a generic PHP class, use `php artisan make:class`.- Pass `--no-interaction` to all Artisan commands to ensure they work without user input. You should also pass the correct `--options` to ensure correct behavior.-### Model Creation--- When creating new models, create useful factories and seeders for them too. Ask the user if they need any other things, using `php artisan make:model --help` to check the available options.--## APIs & Eloquent Resources--- For APIs, default to using Eloquent API Resources and API versioning unless existing API routes do not, then you should follow existing application convention.-## URL Generation- When generating links to other pages, prefer named routes and the `route()` function.-## Testing--- When creating models for tests, use the factories for the models. Check if the factory has custom states that can be used before manually setting up the model.-- Faker: Use methods such as `$this->faker->word()` or `fake()->randomDigit()`. Follow existing conventions whether to use `$this->faker` or `fake()`.-- When creating tests, make use of `php artisan make:test [options] {name}` to create a feature test, and pass `--unit` to create a unit test. Most tests should be feature tests.-## Vite Error- If you receive an "Illuminate\Foundation\ViteException: Unable to locate file in Vite manifest" error, you can run `npm run build` or ask the user to run `npm run dev` or `composer run dev`.@@ -281,24 +267,6 @@ This project has domain-specific skills available in `**/skills/**`. You MUST ac- Console commands and schedule register in `app/Console/Kernel.php`- Rate limits likely exist in `RouteServiceProvider` or `app/Http/Kernel.php`-## Database--- When modifying a column, the migration must include all of the attributes that were previously defined on the column. Otherwise, they will be dropped and lost.--- Laravel 12 allows limiting eagerly loaded records natively, without external packages: `$query->latest()->limit(10);`.--### Models--- Casts can and likely should be set in a `casts()` method on a model rather than the `$casts` property. Follow existing conventions from other models.--=== livewire/core rules ===--# Livewire--- Livewire allow to build dynamic, reactive interfaces in PHP without writing JavaScript.-- You can use Alpine.js for client-side interactions instead of JavaScript frameworks.-- Keep state server-side so the UI reflects it. Validate and authorize in actions as you would in HTTP requests.-=== pint/core rules ===# Laravel Pint Code Formatter@@ -306,22 +274,4 @@ This project has domain-specific skills available in `**/skills/**`. You MUST ac- If you have modified any PHP files, you must run `vendor/bin/pint --dirty --format agent` before finalizing changes to ensure your code matches the project's expected style.- Do not run `vendor/bin/pint --test --format agent`, simply run `vendor/bin/pint --format agent` to fix any formatting issues.-=== phpunit/core rules ===--# PHPUnit--- This application uses PHPUnit for testing. All tests must be written as PHPUnit classes. Use `php artisan make:test --phpunit {name}` to create a new test.-- If you see a test using "Pest", convert it to PHPUnit.-- Every time a test has been updated, run that singular test.-- When the tests relating to your feature are passing, ask the user if they would like to also run the entire test suite to make sure everything is still passing.-- Tests should cover all happy paths, failure paths, and edge cases.-- You must not remove any tests or test files from the tests directory without approval. These are not temporary or helper files; these are core to the application.--## Running Tests--- Run the minimal number of tests, using an appropriate filter, before finalizing.-- To run all tests: `php artisan test --compact`.-- To run all tests in a file: `php artisan test --compact tests/Feature/ExampleTest.php`.-- To filter on a particular test name: `php artisan test --compact --filter=testName` (recommended after making a change to a related file).-</laravel-boost-guidelines>diff --git a/CLAUDE.md b/CLAUDE.mdindex 2b931a6571..1876b512da 100644--- a/CLAUDE.md+++ b/CLAUDE.md@@ -242,24 +242,10 @@ This project has domain-specific skills available in `**/skills/**`. You MUST ac- If you're creating a generic PHP class, use `php artisan make:class`.- Pass `--no-interaction` to all Artisan commands to ensure they work without user input. You should also pass the correct `--options` to ensure correct behavior.-### Model Creation--- When creating new models, create useful factories and seeders for them too. Ask the user if they need any other things, using `php artisan make:model --help` to check the available options.--## APIs & Eloquent Resources--- For APIs, default to using Eloquent API Resources and API versioning unless existing API routes do not, then you should follow existing application convention.-## URL Generation- When generating links to other pages, prefer named routes and the `route()` function.-## Testing--- When creating models for tests, use the factories for the models. Check if the factory has custom states that can be used before manually setting up the model.-- Faker: Use methods such as `$this->faker->word()` or `fake()->randomDigit()`. Follow existing conventions whether to use `$this->faker` or `fake()`.-- When creating tests, make use of `php artisan make:test [options] {name}` to create a feature test, and pass `--unit` to create a unit test. Most tests should be feature tests.-## Vite Error- If you receive an "Illuminate\Foundation\ViteException: Unable to locate file in Vite manifest" error, you can run `npm run build` or ask the user to run `npm run dev` or `composer run dev`.@@ -281,24 +267,6 @@ This project has domain-specific skills available in `**/skills/**`. You MUST ac- Console commands and schedule register in `app/Console/Kernel.php`- Rate limits likely exist in `RouteServiceProvider` or `app/Http/Kernel.php`-## Database--- When modifying a column, the migration must include all of the attributes that were previously defined on the column. Otherwise, they will be dropped and lost.--- Laravel 12 allows limiting eagerly loaded records natively, without external packages: `$query->latest()->limit(10);`.--### Models--- Casts can and likely should be set in a `casts()` method on a model rather than the `$casts` property. Follow existing conventions from other models.--=== livewire/core rules ===--# Livewire--- Livewire allow to build dynamic, reactive interfaces in PHP without writing JavaScript.-- You can use Alpine.js for client-side interactions instead of JavaScript frameworks.-- Keep state server-side so the UI reflects it. Validate and authorize in actions as you would in HTTP requests.-=== pint/core rules ===# Laravel Pint Code Formatter@@ -306,22 +274,4 @@ This project has domain-specific skills available in `**/skills/**`. You MUST ac- If you have modified any PHP files, you must run `vendor/bin/pint --dirty --format agent` before finalizing changes to ensure your code matches the project's expected style.- Do not run `vendor/bin/pint --test --format agent`, simply run `vendor/bin/pint --format agent` to fix any formatting issues.-=== phpunit/core rules ===--# PHPUnit--- This application uses PHPUnit for testing. All tests must be written as PHPUnit classes. Use `php artisan make:test --phpunit {name}` to create a new test.-- If you see a test using "Pest", convert it to PHPUnit.-- Every time a test has been updated, run that singular test.-- When the tests relating to your feature are passing, ask the user if they would like to also run the entire test suite to make sure everything is still passing.-- Tests should cover all happy paths, failure paths, and edge cases.-- You must not remove any tests or test files from the tests directory without approval. These are not temporary or helper files; these are core to the application.--## Running Tests--- Run the minimal number of tests, using an appropriate filter, before finalizing.-- To run all tests: `php artisan test --compact`.-- To run all tests in a file: `php artisan test --compact tests/Feature/ExampleTest.php`.-- To filter on a particular test name: `php artisan test --compact --filter=testName` (recommended after making a change to a related file).-</laravel-boost-guidelines>diff --git a/config/boost.php b/config/boost.phpindex f71601b39a..e238b4c39f 100644--- a/config/boost.php+++ b/config/boost.php@@ -30,7 +30,7 @@ return ['rules' => ['enabled' => true,- 'scoped_guidelines' => false,+ 'scoped_guidelines' => true,],/*