Commit Graph

5 Commits

Author SHA1 Message Date
ehushubhamshaw
bfc0c01cd5 feat(hardware): enhance tool call parsing and dynamic hardware tool listing 2026-02-26 20:30:05 -05:00
ehushubhamshaw
b46efd37f7 feat(hardware): standardize no device summary string and improve error handling in GPIO tools 2026-02-26 20:17:35 -05:00
ehushubhamshaw
ffa9d12432 feat(hardware): enhance tool handling and improve error reporting in serial communication 2026-02-26 19:56:09 -05:00
ehushubhamshaw
b2dd9ca8e7 Refactor hardware tool integration and improve GPIO handling
- Merged hardware tools from `HardwareBootResult` into the existing tool registry, ensuring deduplication by name.
- Introduced `resolve_gpio_device` method to streamline GPIO device resolution, handling cases with no or multiple devices.
- Updated `GpioWriteTool` and `GpioReadTool` to utilize the new device resolution method, improving error handling for GPIO operations.
- Enhanced error messages for subprocess tool execution and added timeouts for subprocess commands during firmware flashing.
- Improved serial path validation by centralizing allowed prefixes in `util.rs`, ensuring consistent security checks across modules.
- Updated Python firmware to normalize GPIO value inputs, accepting both boolean and integer types.
- Added sorting for connected device aliases in the device registry output for better readability.
- Ensured that tool descriptions are dynamically generated based on registered tools, preventing stale or incorrect information.
2026-02-26 19:18:40 -05:00
ehushubhamshaw
a857444a1d feat(hardware): add Pico firmware flashing support and reconnect functionality 2026-02-19 19:24:33 -05:00