Rename Snitch to Bonsai for publication#7
Merged
Merged
Conversation
Rename every project, namespace, file path, package id, and CLI command from Snitch to Bonsai so the tool can be published under the new name. Tests stay green (23/23 across the analyzer, --vulnerable, --internal, why, slnx, and CPM paths). `dotnet format --verify-no-changes` is clean. Preserve attribution to the original Snitch authors: - LICENSE keeps the 2019 Spectre Systems AB copyright and adds a Bonsai-contributors line. - Bonsai.csproj credits "Patrik Svensson (original Snitch author), Bonsai contributors" in Authors/Copyright and links the fork in Description. - README opens with the same attribution paragraph and links back to github.com/spectresystems/snitch. The README is rewritten around what the tool does today — dependency- tree pruning, OSV.dev vulnerability cross-referencing, --internal classification, the `why` reverse-dep walker, slnx and Central Package Management support — and credits the bonsai logo. Replace the inherited Hollow icon with a bespoke bonsai mark generated with Nano Banana (Gemini 2.5 Flash Image): a bonsai in a terracotta pot with a cleanly-cut branch and pruning shears, tying the visual back to what the tool does to a dependency tree. CI workflow (.github/workflows/ci.yaml): rename the Snitch self-check job to bonsai, update all sln/csproj paths, and update the step labels. Drive-by fixes: - Fix the pre-existing namespace typo Sntich.Tests -> Bonsai.Tests in the two test source files. - Reorder usings in ProjectBuilder.cs after the namespace rename so StyleCop SA1210 stays clean (Bonsai.Analysis.Utilities sorts before Buildalyzer). - Update the OSV.dev HTTP User-Agent to identify Bonsai and link to the current repo URL. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
SnitchtoBonsaiso we can publish the tool under the new name. Tests still pass (12/12).LICENSEkeeps the 2019 Spectre Systems AB copyright and adds a Bonsai-contributors line;README.md,Bonsai.csprojmetadata, and a newCreditssection all link back to https://github.com/spectresystems/snitch and Patrik Svensson.PackageReferencecruft — and add a Where it's going section that signals the direction set by the in-flight PRs (bonsai whyreverse-dep lookup in Addsnitch whyreverse dependency lookup #6,--internalpackage classification in Classify packages as internal vs external #5).namespace Sntich.Tests→Bonsai.Tests) while renaming the tests.global.jsonrollForwardtolatestMajorso the project still builds with the locally installed .NET 10 SDK (target framework staysnet8.0).docs/logo-prompt.md— a structured Nano Banana prompt for a bespoke bonsai-themed logo, with style guidance and variants, ready to iterate on.Test plan
dotnet build src/Bonsai.sln -c Release— clean (0 warnings, 0 errors) after fixing the using-order regression inProjectBuilder.cs.dotnet test src/Bonsai.Tests/Bonsai.Tests.csproj -c Release— all 12 tests pass.Snitch/Sntichreferences remain anywhere except deliberate attribution lines (LICENSE,README.mdcredits,Bonsai.csprojDescription/Authors/Copyright).bonsaiagainst a real .NET solution after publishing locally withdotnet packto confirm the CLI name change works end-to-end.🤖 Generated with Claude Code