v0.0.62
Tool Execution
- All tools now return structured JSON errors (
error+message). - Confirmation prompts (
confirm?) added toOllamaChat::FollowChat. infobardisplays a busy indicator and status messages during tool runs.- Tool methods accept
config:andchat:keyword arguments.
Tool Registration
- Centralized logic via
OllamaChat::Tools::Concernto prevent duplicate
registrations.
File Context Tool (file_context)
- Supports an exact
path:argument in addition todirectory:+pattern:. - Uses
blank?for argument validation. - YARD documentation added.
Directory Structure Tool (directory_structure)
- Delegates to
OllamaChat::Utils::AnalyzeDirectory.generate_structure. - Excludes hidden files, symlinks, and the
pkgdirectory by default. excludeoption configurable indefault_config.yml.
Utility Module
- New
OllamaChat::Utils::AnalyzeDirectorycontaining thegenerate_structure
method.
Error Handling
CVE,EndOfLife,Grep, andWeathertools now catch all exceptions and return structured JSON errors.
Testing
- Added comprehensive specs for
AnalyzeDirectory(traversal, exclusions,
error handling). - Tests for exact
pathusage infile_contextwith conflict detection. - Updated
test_fileslist in the gemspec.
Configuration
directory_structureaccepts anexcludeoption viadefault_config.yml.- Tool signatures updated to accept
config:andchat:.
Gem Specification
- Updated
test_files,extra_rdoc_files, andfilesarrays to include new
utilities, tests, and documentation.