feat(cli): add leann rebuild for re-running a build with stored config (#123)#326
Merged
ASuresh0524 merged 4 commits intoJun 4, 2026
Merged
Conversation
7728af1 to
2c457c9
Compare
Collaborator
|
@raoabinav thanks for the pr! fix CI error before I can merge please |
…fig (StarTrail-org#123) Closes StarTrail-org#123. Adds `leann rebuild <index>` which re-runs the original build using the config recorded in the index's `.meta.json` + `sync_roots.json`. By default it's an incremental delta (because `leann build` is already idempotent), and `--force` does a full rebuild from scratch. Errors clearly when sync config is missing — that case only comes up for indexes built via the Python API which don't record their docs roots, so there's nothing to replay. The arg-reconstruction logic that was previously duplicated between this and `_watch_trigger_build` is now in a shared `_reconstruct_build_args()` helper with a `verbose` knob: rebuild prints why it can't proceed, watch stays silent (since it polls and shouldn't spam logs).
3db8905 to
a2f19b8
Compare
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.
Evaluator Summary
leann rebuild <index>, letting users rerun a build from stored sync metadata instead of reconstructing the original command manually.--forcefor full rebuilds when needed.