Skip to content

refactor(engine): drop 21 re-export shims - #317

Merged
Patel230 merged 1 commit into
mainfrom
refactor/engine-reexports-batch
Sep 15, 2026
Merged

Patel230 merged 1 commit into
mainfrom
refactor/engine-reexports-batch

Conversation

@Patel230

Copy link
Copy Markdown
Contributor

Removes 21 of the 22 remaining internal/engine/*_reexports.go shims (the earlier PR removed planning). Callers now import the sub-package directly instead of going through the flattened engine namespace.

Examples: engine.PlannedCallplanning.PlannedCall, engine.Costcost.Cost, engine.EstimateTokenstoken.EstimateTokens, engine.NewFewShotStorescaffold.NewFewShotStore.

The last shim, safety_reexports.go, has 217 external references across 32 files and is left for a separate PR.

Verified: go build ./..., go vet, golangci-lint (0 issues), full go test ./..., make boundaries.

Remove all engine re-export shims except safety_reexports.go (which has 217
external references and is a separate migration). Callers now import the
sub-package directly (e.g. planning.PlannedCall, cost.Cost, token.EstimateTokens)
instead of going through the engine namespace.

Verified: go build ./..., go vet, golangci-lint (0 issues), full go test ./...,
make boundaries.
@Patel230
Patel230 merged commit 69f0be5 into main Sep 15, 2026
25 checks passed
@Patel230
Patel230 deleted the refactor/engine-reexports-batch branch September 15, 2026 17:26
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