feat: taibai conversations command (Milestone 6b) #3
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Add DM management commands:
taibai conversations— list direct message conversationstaibai conversations read CONV_ID— mark a conversation as readtaibai conversations delete CONV_ID— delete a conversationRelevant longwei methods:
get_conversations(limit=20) -> list[Conversation]read_conversation(conv_id) -> Conversationdelete_conversation(conv_id) -> NoneConversation model:
id,unread,accounts: list[Account],last_status: Status|NoneExploration findings:
get_conversations(limit=20)returnslist[Conversation]; model fields:id,unread,accounts: list[Account],last_status: Status|None.read_conversation(conv_id)anddelete_conversation(conv_id)both available in longwei.ActivityPubErrorfor graceful failure on unsupported platforms.lists.py) with.default(list),.command("read"),.command("delete").Plan of attack:
tests/test_conversations.py) — CLI layer + async layer.src/taibai/commands/conversations.py:conversations_app = App(name="conversations")with default (list, renders Rich table: ID, unread flag, participants, last message snippet) andread/deletesubcommands.src/taibai/cli.pyviaapp.command(conversations_app).docs/conversations.md+mkdocs.ymlnav entry.