Expand description
Utility modules for the Winx application.
This module contains various utility functions and types used throughout the application, such as file and path handling, repository analysis, etc.
Modules§
- agent_
temp - Managed workspace-local temporary artifacts for model-driven helpers.
- bash_
parser - display_
tree - Directory-tree renderer, ported from wcgw’s
display_tree.DirectoryTree. - encoder
- Claude-compatible token counting.
- executable
- Portable executable discovery.
- mmap
- Race-safe bounded file reads.
- mode_
prompts - Behavioral prompts injected per operating mode, ported from wcgw’s
modes.py. - orchestration
- output_
compress - Conscious compression of noisy shell output.
- path
- path_
prob - File-path relevance ranking, ported from wcgw’s
FastPathAnalyzer. - redact
- Secret redaction for outgoing tool output.
- repo
- Repository context, ported for parity with wcgw’s
repo_context.py. - scratch_
file - Offload the dropped head of an over-long PTY output to a scratch file.
- symbols
- Symbol/outline extraction via
tree-sitter-tagsand each grammar’s embeddedTAGS_QUERY— the same engine GitHub uses for code navigation. We surface only definitions (functions, types, methods, …), not references. - syntax
- workspace_
stats
Functions§
- floor_
char_ boundary - Largest index
<= idxthat is a char boundary ofs. - test_
json_ parsing - Debug helper to test JSON parsing of an Initialize request