mirror of
https://github.com/agessaman/meshcore-bot.git
synced 2026-03-30 20:15:40 +00:00
- Introduced `extract_path_node_ids_from_message` to streamline extraction of node IDs from mesh messages, prioritizing `routing_info.path_nodes` and supporting multi-byte comma parsing. - Updated `calculate_path_distances` to accept an optional message parameter, enhancing its functionality by allowing it to derive node IDs from messages. - Added `node_ids_from_path_string` to handle parsing of path strings into node IDs, improving the handling of both legacy and multi-byte formats. - Refactored `TestCommand` to utilize the new extraction function, ensuring consistent behavior across commands. - Expanded test coverage for new utility functions to validate their correctness and robustness. These changes improve the clarity and maintainability of path-related utilities, enhancing overall functionality in message processing.