feat(agents-cleanup): reverse an agents-init scaffold and opt a project out #183

Merged
rootiest merged 11 commits from feat/agents-cleanup into main 2026-09-30 21:46:51 +00:00
11 Commits
Author SHA1 Message Date
rootiest 88b43d582f docs(manual): agents-cleanup nested repos, link edge cases, non-git root
CI / test (pull_request) Successful in 2m36s
CI / github-mirror (pull_request) Skipped
CI / docs (pull_request) Successful in 1m18s
2026-09-30 17:29:07 -04:00
rootiest 5e4d0fa4c8 fix(agents-cleanup): address final review findings
- keep the verbose log intact: awk writes /dev/stderr itself instead of a
  fish-level reopen that truncates a log-file stderr
- refuse nested git repositories in AGENTS/ even with --drop-extras
- drop a link to AGENTS/ itself instead of moving the whole repository
- inventory links even when AGENTS/ is already gone (inside git only)
- never overwrite a same-second bundle; report a failed link restore
- quiet summary includes the restore command
- tests: hermetic git config, skip chmod cases as root, .gitignore order
2026-09-30 17:28:50 -04:00
rootiest e7683d1379 fix(agents-repo-sync): refuse a .git that is not a valid gitdir
A half-removed AGENTS/.git passed the test -d guard, so git walked up and
committed (and bundled) the enclosing repository. Require rev-parse
--git-dir to report .git; agents-cleanup uses the same test.
2026-09-30 17:25:28 -04:00
rootiest d3b8bc59bb docs(manual): document agents-cleanup and the agents-init opt-out 2026-09-30 17:11:17 -04:00
rootiest 45005ff71e fix(agents-cleanup): keep links on failed moves, check rewrites, refuse symlinked AGENTS/ 2026-09-30 17:07:08 -04:00
rootiest beb6518ab9 feat(agents-cleanup): archive, materialize links, remove AGENTS/, strip .gitignore 2026-09-30 17:01:47 -04:00
rootiest 0f9e9e81fa fix(agents-cleanup): cover rebase refusal and marker paths; prune .git by name 2026-09-30 16:59:23 -04:00
rootiest ae45339d6a feat(agents-cleanup): add preflight, dry run and opt-out marker 2026-09-30 16:55:54 -04:00
rootiest 6ff5546f09 feat(agents-init): honor agents-init.disabled / .agents-disabled, add --enable 2026-09-30 16:52:01 -04:00
rootiest a90b1ad923 refactor(agents-init): extract stub AGENTS.md into _agents_init_stub 2026-09-30 16:48:56 -04:00
rootiest 0b17fd1300 refactor(agents-init): extract discovery prune set into _agents_init_find 2026-09-30 16:46:16 -04:00