Skip to content

refactor(roots): extract root resolution into internal/roots#61

Open
sm-stripe wants to merge 1 commit into
perplexityai:mainfrom
sm-stripe:refactor-roots
Open

refactor(roots): extract root resolution into internal/roots#61
sm-stripe wants to merge 1 commit into
perplexityai:mainfrom
sm-stripe:refactor-roots

Conversation

@sm-stripe

Copy link
Copy Markdown

Summary and Motivation

Making bumblebee's logic importable will enable new capabilities such as creating a bumblebee osquery extension without duplicating code.

This PR moves profile-aware root resolution logic from cmd/bumblebee/roots.go into the importable internal/roots package. cmd/bumblebee/roots.go becomes a thin delegate. cmd/bumblebee/roots_compat.go forwards unexported names for existing test compatibility

cmd/bumblebee behavior is unchanged — roots.go delegates to the new package and roots_compat.go forwards unexported names for existing tests.

Test plan

  • go build ./cmd/bumblebee — unchanged
  • go test -race ./... — all pass
  • go vet ./... — clean
  • gofmt -l . — no output
  • bumblebee selftest — passes

Move profile-aware root resolution logic from cmd/bumblebee/roots.go
into the importable internal/roots package so other binaries in this
repo can share it without duplicating code.

cmd/bumblebee behavior is unchanged — roots.go delegates to the new
package and roots_compat.go forwards unexported names for existing
tests.
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