Cursor Agent
|
4b4f87515d
|
Phase 7: Directory restructuring (messaging/ and tests/)
- Create messaging/platforms/ (base, discord, telegram, factory)
- Create messaging/rendering/ (discord_markdown, telegram_markdown)
- Create messaging/trees/ (data, repository, processor, queue_manager)
- Organize tests/ into api/, providers/, messaging/, cli/, config/
- Add backward-compatible re-exports at old locations
- Update handler.py and test_messaging_factory.py imports
- Fix Telegram type hints for TELEGRAM_AVAILABLE=False case
- Fix Python 3 except syntax in discord_markdown
Co-authored-by: Ali Khokhar <alishahryar2@gmail.com>
|
2026-02-17 02:25:42 +00:00 |
|
Cursor Agent
|
959d1bdf5b
|
Phase 5: Encapsulation - Repository and MessageTree API
TreeRepository:
- Add has_node(node_id) -> bool
- Add tree_count() -> int
MessageTree:
- Add cancel_current_task() -> bool
- Add drain_queue_and_mark_cancelled() -> List[MessageNode]
- Add reset_processing_state()
- Add current_node_id property
TreeQueueManager:
- Remove _trees and _node_to_tree properties
- add_to_tree: use has_node() and get_tree_for_node()
- get_tree_count: use repository.tree_count()
- cancel_tree: use tree.cancel_current_task(), drain_queue_and_mark_cancelled(), reset_processing_state()
TreeQueueProcessor:
- cancel_current: delegate to tree.cancel_current_task()
Tests: update to use get_tree_count(), has_node(), get_tree_for_node()
Co-authored-by: Ali Khokhar <alishahryar2@gmail.com>
|
2026-02-15 01:38:35 +00:00 |
|