Alishahryar1
b05d0d2703
new linter rules and fixes
2026-02-18 04:13:41 -08:00
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
Alishahryar1
6abcdb4017
Add clear command functionality to message handler
...
- Implemented handling of the `/clear` command to clear specific branches or entire trees based on message replies.
- Added tests for various scenarios of the clear command, including clearing branches, handling unknown replies, and clearing entire trees.
- Enhanced `TreeQueueManager` with methods to cancel branches and remove subtrees, ensuring proper state management in the session store.
- Updated `SessionStore` and `TreeRepository` to support removal of node mappings and trees, improving data integrity during clear operations.
2026-02-16 16:23:26 -08:00
Alishahryar1
539854fe7b
Refactor done using GLM-5
2026-02-15 21:58:03 -08:00
Alishahryar1
7259b1def8
Optimized code in hot paths with z-ai/glm5
2026-02-14 19:59:46 -08:00
Alishahryar1
64e5b10612
Refactor done by z-ai/glm5
2026-02-14 18:47:26 -08: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
Alishahryar1
fabca59f5c
lint
2026-02-13 17:24:18 -08:00
Alishahryar1
459ce6e8fd
introduced per reply /stop command to stop just that task and fixed context leakage in reply session forking
2026-02-13 14:53:48 -08:00
Alishahryar1
ff22e9baa2
lint
2026-02-08 04:10:57 -08:00
Alishahryar1
697bc37faf
Upon dequeue the current request immediately displays processing state instead of position 1 waiting
2026-02-08 04:06:41 -08:00
Alishahryar1
6d8f13d84e
Added feature to update queue positions on telegram when messages are dequeued and added new tests
2026-02-08 04:00:58 -08:00
Alishahryar1
fcbe204f44
Major refactor done with kimi-k2.5 in claude code
2026-02-05 10:51:33 -08:00
Alishahryar1
78d0276d03
fixed /stop
2026-01-31 14:39:24 -08:00
Alishahryar1
5bc978c545
Implemented fixes using test case errors
2026-01-30 17:11:35 -08:00
Alishahryar1
5d26bdbb9f
fixed /stop race condition
2026-01-30 17:01:41 -08:00
Alishahryar1
3b037932d7
refactor to reduce coupling
2026-01-30 13:39:40 -08:00
Alishahryar1
7a25c967b0
moved rate limiting to the api level
2026-01-29 18:59:25 -08:00
Alishahryar1
5fd7268d3f
added tree based session handler
2026-01-29 18:17:42 -08:00