Skip to content

fix(cli): bound index discovery scans - #389

Merged
ASuresh0524 merged 6 commits into
StarTrail-org:mainfrom
Barry2llen:fix/122-bounded-index-discovery
Jul 29, 2026
Merged

fix(cli): bound index discovery scans#389
ASuresh0524 merged 6 commits into
StarTrail-org:mainfrom
Barry2llen:fix/122-bounded-index-discovery

Conversation

@Barry2llen

@Barry2llen Barry2llen commented Jul 28, 2026

Copy link
Copy Markdown
Contributor

Summary

  • replace the unbounded App-format metadata scan in leann list with a bounded, pruned directory traversal
  • add leann list --max-depth N with a default depth of 5 while preserving direct CLI-format index discovery
  • preserve registered App-format projects and full-depth API/HTTP discovery when no CLI depth is supplied
  • avoid hiding or double-counting indexes when registered project roots overlap
  • add regression coverage and a changelog entry

Testing

  • PYTHONPATH=packages/leann-core/src:packages/leann-backend-hnsw python -m pytest tests/test_cli_list_performance.py tests/test_cli_verbosity.py tests/test_ci_minimal.py::test_cli_help -q — 31 passed
  • ruff check packages/leann-core/src/leann/cli.py packages/leann-core/src/leann/registry.py tests/test_cli_list_performance.py
  • ruff format --check packages/leann-core/src/leann/cli.py packages/leann-core/src/leann/registry.py tests/test_cli_list_performance.py

Fixes #122

@ASuresh0524
ASuresh0524 merged commit a60417b into StarTrail-org:main Jul 29, 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.

leann list scans all the things

2 participants