You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
refactor: move llm setup/teardown orchestration to pkg/llm #5091
`runLLMSetup` and `runLLMTeardown` in `cmd/thv/app/llm.go` are ~100 lines each of orchestration logic: login injection, rollback, atomic persistence, and tool patching sequencing. Per `.claude/rules/cli-commands.md` the CLI layer should be a thin wrapper with business logic in `pkg/`.
CLI `runLLMSetup`/`runLLMTeardown` become thin wrappers calling `pkg/llm.Setup()` / `pkg/llm.Teardown()`
Why
Before HTTP API or operator callers need the same flow, the business logic needs to be importable without pulling in cobra. Moving it to `pkg/llm/` makes it reusable and independently testable.
Activity
Move llm setup/teardown orchestration to pkg/llm
Move llm setup/teardown orchestration to pkg/llm (stacklok#5112)