Expand description
Repository context, ported for parity with wcgw’s repo_context.py.
The flow mirrors wcgw exactly:
- Walk the workspace (gitignore-aware) collecting candidate files.
- For git repos, pull recently-changed files from history (topological).
- Rank every file with the embedded path-probability model.
- Build the shown set: active files first, then recent git files, then the statistically-ranked remainder, up to a size that scales with the repo.
- Render it as a partially-expanded directory tree.
Functions§
- get_
repo_ context - Build the workspace context string and the list of shown files.
- walk_
workspace_ files - Walk
rootfor files, gitignore-aware (only inside a git repo), keeping dotfiles but always pruning.gitand Winx’s reserved.winxartifact directory, capped atMAX_ENTRIES_CHECKentries andMAX_WALK_DEPTHdeep. Returns absolute paths. Shared by the read-only code-navigation paths (CodeMapoutline/references).