Skip to content

Commit 287c5d4

Browse files
feat: Enhance read_file tool for better path handling and add unit tests
- Improved the read_file tool to automatically handle unquoted paths with spaces. - Added comprehensive unit tests (20 test cases) for path parsing. - Enhanced documentation with examples for paths containing spaces. - Technical improvements to the smart path parser for better compatibility with complex scenarios. Closes: Path parsing errors with filenames containing spaces
1 parent 7429449 commit 287c5d4

1 file changed

Lines changed: 26 additions & 0 deletions

File tree

CHANGELOG.md

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,32 @@ All notable changes to this project will be documented in this file.
55
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
66
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
77

8+
## [0.1.3] - 2026-01-10
9+
10+
### Added
11+
- **Path Handling**: `read_file` tool now automatically handles unquoted paths with spaces
12+
- **Tests**: Added comprehensive unit tests (20 test cases) for path parsing in `tests/test_read_file_path_parsing.py`
13+
14+
### Changed
15+
- **read_file Tool**: Enhanced to intelligently detect and join path components containing spaces by scanning for line numbers
16+
- **Documentation**: Improved `read_file` docstring with examples for paths with spaces
17+
18+
### Technical
19+
- Smart path parser detects spaces in filenames by accumulating parts until finding valid line numbers
20+
- Backward compatible: quoted paths continue to work as before
21+
- Handles complex scenarios: long tenant paths, virtual parsed files (`*_parsed.{ext}.md`), line ranges
22+
23+
## [0.1.2] - 2026-01-08
24+
25+
### Added
26+
- **Skills Discovery**: Added `skills_discover` method to `AsyncRemoteNexusFS` for listing available skills
27+
- **Prompt Utilities**: New `nexus_client.langgraph.prompt` module with prompt generation utilities
28+
- `get_prompt_context()`: Generate LangGraph system prompts with Nexus context
29+
- `skills_discover()`: Retrieve skill metadata asynchronously
30+
31+
### Changed
32+
- Updated LangGraph `__init__.py` to export new prompt utilities
33+
834
## [0.1.1] - 2025-01-XX
935

1036
### Changed

0 commit comments

Comments
 (0)