Skip to content

Rename Snitch to Bonsai for publication#7

Merged
Cellcote merged 1 commit into
masterfrom
t3code/23a3cdbd
May 16, 2026
Merged

Rename Snitch to Bonsai for publication#7
Cellcote merged 1 commit into
masterfrom
t3code/23a3cdbd

Conversation

@Cellcote
Copy link
Copy Markdown
Owner

Summary

  • Rename every project, namespace, package id, file path, and CLI command from Snitch to Bonsai so we can publish the tool under the new name. Tests still pass (12/12).
  • Preserve attribution to the original Snitch authors. The MIT LICENSE keeps the 2019 Spectre Systems AB copyright and adds a Bonsai-contributors line; README.md, Bonsai.csproj metadata, and a new Credits section all link back to https://github.com/spectresystems/snitch and Patrik Svensson.
  • Reposition the README around what Bonsai actually does — pruning transitive PackageReference cruft — and add a Where it's going section that signals the direction set by the in-flight PRs (bonsai why reverse-dep lookup in Add snitch why reverse dependency lookup #6, --internal package classification in Classify packages as internal vs external #5).
  • Fix a pre-existing typo (namespace Sntich.TestsBonsai.Tests) while renaming the tests.
  • Bump global.json rollForward to latestMajor so the project still builds with the locally installed .NET 10 SDK (target framework stays net8.0).
  • Add 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 in ProjectBuilder.cs.
  • dotnet test src/Bonsai.Tests/Bonsai.Tests.csproj -c Release — all 12 tests pass.
  • Verified no stray Snitch/Sntich references remain anywhere except deliberate attribution lines (LICENSE, README.md credits, Bonsai.csproj Description/Authors/Copyright).
  • Manual: run bonsai against a real .NET solution after publishing locally with dotnet pack to confirm the CLI name change works end-to-end.

🤖 Generated with Claude Code

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>
@Cellcote Cellcote merged commit 2ab6c52 into master May 16, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant