Repository navigation
飞书:审批和任务(只读)、飞书邮箱进今天页、收件箱和知识库 - #58
Merged
Merged
Conversation
… 今天, the Inbox and the knowledge base - sync_worker.py: the background round shared by the lark-cli caches (looked-at pacing, one owner per open id). - approvals.py: pending approvals and the user's open tasks, a 审批和任务 block on 今天 and counts in 需要我; read-only (never approves, rejects or completes anything). - mail.py / mail_store.py: the inbox, unread and sent lists, bodies read once; important direct unread mail becomes an Inbox item per thread (done when read or replied), important and own mail goes to the knowledge base as "mail" chats (its own archive feed), a 邮件 block with an in-page reader, matefeishu_mail (read) and matefeishu_mail_reply (behind the confirmation card; cards kept in the store across restarts). - Core: a platform hook for extra write tools; the write tools' wording says 确认卡片 instead of 手机上确认. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- 飞书:只读同步待我审批的单子和分给我的飞书任务,今天页加「审批和任务」块,「需要我」那格带上数量;不替你同意、拒绝或完成。 - 飞书:同步飞书邮箱(收件箱、未读、已发送),发给我的重要未读邮件进收件箱(读了或回了就结束),重要邮件和我发的邮件按会话进知识库,今天页加「邮件」块并能在页面里看正文;matefeishu_mail 读邮件,matefeishu_mail_reply 回邮件要在确认卡片上批准。 - 核心:平台写工具钩子;写工具说明里的「在手机上确认」改为「在确认卡片上确认」(微信只改了说明文字)。 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
做了什么
飞书扩展新增「审批和飞书任务」(只读)和「飞书邮箱」,都经你自己的 lark-cli 读取,渲染只读本地缓存。
审批和任务
approval tasks query --topic 1)和分给我的飞书任务(task +get-my-tasks),有人看 5 分钟一轮,没人看 15 分钟一轮。飞书邮箱
mail,每封一条,带发件人邮箱,方便关联到人),和会议各用独立的游标位置。matefeishu_mail(list / read);写工具matefeishu_mail_reply,走确认卡片:卡片上列出发件邮箱、To / Cc、主题、全文,以及「直接发出」还是「只存草稿」。确认卡片的内容存进库里,批准前扩展重启也能核对;同一请求只执行一次;换了账号不发;超时或看不懂的回执当「可能已发出」,明确被拒当「没发出」。approvals、mail、mail_inbox、mail_kb,都默认开。顺手改
没有新增 hub 权限、界面位置或命令行工具,升级不需要批准。
怎么验证的
bash scripts/test.sh和PYTHON=/usr/bin/python3 bash scripts/test.sh全部通过(core、飞书、微信三组)。没做的
--dry-run校验过两条路:只存草稿的请求正确;直接发出需要飞书应用有mail:user_mailbox.message:send权限,目前没有,批准后会明确提示「没发出」并给出授权命令。开不开这个权限由你决定。🤖 Generated with Claude Code