mirror of
https://github.com/InvoiceShelf/InvoiceShelf.git
synced 2026-09-06 23:24:13 +00:00
* chore: drop laravel/boost, make AGENTS.md the source of truth The two agent files were inverted here relative to 3.x. AGENTS.md held nothing but Laravel Boost's generated guidelines, while CLAUDE.md carried the actual project guide — so an agent reading AGENTS.md, the file the convention points at, got generic Laravel advice and none of the specifics for this repository. Boost is not used, so it goes rather than being worked around: the dependency, the boost:update hook on post-update-cmd, the .cursor MCP config that existed only to launch boost:mcp, and the three skill packages it installed there. AGENTS.md now carries the project guide and is the committed source of truth. CLAUDE.md, GEMINI.md and .github/copilot-instructions.md become gitignored symlinks to it, created by bin/ai-docs.php from post-autoload-dump — the same arrangement, and the same script, as 3.x. * chore: regenerate .phpstorm.meta.php Removes every boost.* entry now that the package is gone. Most of the diff is unrelated churn — the file had not been regenerated in a while, so it also picks up drift in routes and config. Kept separate so the boost removal stays readable.
32 lines
842 B
PHP
32 lines
842 B
PHP
<?php
|
|
|
|
/*
|
|
* Creates the per-tool agent docs as symlinks to the canonical AGENTS.md.
|
|
* These symlinks are gitignored; this runs from composer's post-autoload-dump
|
|
* (and can be run manually via `composer run ai-docs`).
|
|
*/
|
|
|
|
chdir(__DIR__.'/..');
|
|
|
|
$links = [
|
|
'CLAUDE.md' => 'AGENTS.md',
|
|
'GEMINI.md' => 'AGENTS.md',
|
|
'.github/copilot-instructions.md' => '../AGENTS.md',
|
|
];
|
|
|
|
@mkdir('.github');
|
|
|
|
foreach ($links as $link => $target) {
|
|
if (is_link($link)) {
|
|
continue;
|
|
}
|
|
if (file_exists($link)) {
|
|
@unlink($link); // replace a stale regular file (e.g. the old committed CLAUDE.md)
|
|
}
|
|
if (@symlink($target, $link)) {
|
|
echo "ai-docs: linked {$link} -> {$target}\n";
|
|
} else {
|
|
fwrite(STDERR, "ai-docs: could not symlink {$link} (symlinks may require privileges on Windows)\n");
|
|
}
|
|
}
|