Stabilize directory resource listings

KL
14d ago
+75-5

Summary

  • Return sorted relative file paths with / separators from DirectoryResource.
  • Keep all filesystem operations in the worker thread and cover glob modes and error cases.
  • Document the listing order and path format.

Fixes #3589

Checks

  • ./scripts/test (6,101 passed; 100% coverage)
  • UV_FROZEN=1 uv run --frozen strict-no-cover
  • uv run --frozen pyright
  • Claude Code CLI review

AI Disclaimer

This PR was developed with the assistance of either Claude or Codex. I've reviewed and verified the changes.