dsh-mishu 0.6.2 → 0.7.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -65,15 +65,22 @@
65
65
 
66
66
  看板上方可以按来源筛选:全部、GitHub、邮件、交代。
67
67
 
68
- - **要你处理**:现在需要你的事。每张卡片写明**是什么、问题在哪、怎么办**(比如 CI 失败在哪个 job 的哪一步、上次成功是什么时候),主按钮直接打开该看的地方("看失败日志""去关掉 Actions""去审查"),还有办完了、明天再说、忽略。
68
+ - **要你处理**:现在需要你的事。卡片平时是收起的,只显示标题;点标题展开,一次只展开一张,点另一张时前一张自动收起。展开后写明**是什么、问题在哪、怎么办**(比如 CI 失败在哪个 job 的哪一步、上次成功是什么时候),主按钮直接打开该看的地方("看失败日志""去关掉 Actions""去审查"),还有办完了、明天再说、忽略。
69
69
  - **我记着**:说过"明天再说"的事,以及还没到提醒时间的交代。底部可以直接交代新的事,填写时会实时显示小秘书理解成了什么。
70
- - **替你办了**:最近 7 天关掉的事,按理由分组。点"怎么回事"能看到它是什么、为什么关掉(附证据链接)、小秘书做了什么、来自哪几条通知。判错了就点"恢复"。
70
+ - **替你办了**:最近 7 天关掉的事,按理由分组。展开一张卡片就能看到它是什么、为什么关掉(附证据链接)、小秘书做了什么、来自哪几条通知。判错了就点"恢复"。
71
71
 
72
72
  **+AI**:看不明白就点彩色的"+AI"。它会开一个新对话,把这件事的说明、链接和相关通知放进输入框(不会自动发送),你看过、补上自己的问题再按发送。看板上的每张卡片、顶部总结、来源报错、设置页里各邮箱服务商的开通说明都有这个按钮。对话里的 AI 可以用 `mishu_detail` 查一件事的完整记录;要改状态时会先问你。
73
73
 
74
74
  卡片可以拖动:拖到"替你办了"就是办完,拖到"我记着"就是明天再提醒,从"我记着"拖回"要你处理"就是现在处理。三栏之间的分隔条也能拖动调宽度,双击恢复等宽。
75
75
 
76
- **设置**:点页面顶部的"设置":语言、各类别提前几天提醒、GitHub(开关、token 从哪来、测试连接、在 GitHub 上标已读的方式)、邮箱账户(添加、测试连接、现在收一次、编辑、删除)。飞书即将接入。
76
+ **设置**:点页面顶部的"设置",按秘书的活分成四块:① 它看哪里(GitHub、邮箱);② 什么事要告诉你(哪些算急事、各类别提前几天);③ 什么时候、怎么告诉你(主动提醒,见下);④ 能替你办什么(在 GitHub 上标已读的方式;邮件一律只读)。最后是语言和密码存在哪。
77
+
78
+ **主动提醒**:不用打开看板也能知道。
79
+ - 每日简报:每天到点(默认 09:00)发一份"要你处理"和"快到期"的清单;没事就不发。
80
+ - 急事立刻提醒:有人请你 review、@ 你、把事分配给你;会议邀请;你交代的事到了当天或已经过期。每件只提醒一次;刚打开提醒时,看板上已有的不算新消息。
81
+ - 免打扰(默认 22:00 到 08:00):这段时间不发,期间出现的急事等结束后一起发。
82
+ - 时间按你浏览器所在的时区算,DSH 跑在别的时区的服务器上也不会错。
83
+ - 发到:这台电脑的系统通知(macOS、Windows、Linux 桌面;服务器上没有),以及飞书群机器人(建一个只有你的群、加一个自定义机器人,把 Webhook 地址粘贴过来;支持签名校验)。飞书的地址和密钥当密码存;提醒内容会经过飞书的服务器。
77
84
 
78
85
  **重启 DSH**:页面顶部"设置"后面的按键。重装或升级插件后点它,桌面版会按正常方式退出(有任务在跑时会先问你),再自动打开。用 dsh-vps 装在服务器上的 DSH,由 dsh-gate 网关托管:点了之后 DSH 正常退出,网关几秒内把它重新拉起,页面断开一会儿后自动刷新。直接用 `dsh` 命令启动的 DSH 没法从页面重启(新的登录地址只会打印在那个终端里),按键会告诉你回终端按 Ctrl+C 再运行一次。Windows 和 Linux 桌面版的重启还没在真机上测过。
79
86
 
@@ -200,15 +207,24 @@ A thread of replies is one item. Once you read it in your mail client, its item
200
207
 
201
208
  Filter the board by source: All, GitHub, Mail, Noted.
202
209
 
203
- - **To handle**: what needs you now. Every card says **what it is, where the problem is and what to do** (for a failing CI: which job and step, when it last passed), and its main button opens the right place ("Open the failing log", "Turn off Actions", "Review it"), next to done, tomorrow and dismiss.
210
+ - **To handle**: what needs you now. Cards stay folded and show only the title; click a title to unfold it — one at a time, so opening another folds the first. Unfolded, a card says **what it is, where the problem is and what to do** (for a failing CI: which job and step, when it last passed), and its main button opens the right place ("Open the failing log", "Turn off Actions", "Review it"), next to done, tomorrow and dismiss.
204
211
  - **Keeping for you**: things you put off until tomorrow, and things you told it that are not due for a reminder yet. Add a new one at the bottom, with a live preview of what was understood.
205
- - **Done for you**: what was closed in the last 7 days, grouped by reason. "What happened" shows what it was, why it was closed (with the evidence link), what the secretary did and which notifications it came from. Reopen any that are wrong.
212
+ - **Done for you**: what was closed in the last 7 days, grouped by reason. Unfold a card to see what it was, why it was closed (with the evidence link), what the secretary did and which notifications it came from. Reopen any that are wrong.
206
213
 
207
214
  **+AI**: when something is unclear, press the colourful "+AI". It opens a new chat with the item's explanation, link and related notifications in the input box — unsent — so you can read it, add your question and press send. Every card, the summary, source errors and each mail provider's setup note have one. In that chat the AI can use `mishu_detail` to look an item up in full, and asks you before changing anything.
208
215
 
209
216
  Cards can be dragged: onto "Done for you" to mark done, onto "Keeping for you" to snooze until tomorrow, from "Keeping for you" back to "To handle" to handle it now. The dividers between the columns can be dragged too; double-click one to make the columns equal.
210
217
 
211
- **Settings**: the "Settings" tab at the top of the page: language, warning days per category, GitHub (on/off, where the token comes from, connection test, how to mark read), mail accounts (add, test, check now, edit, delete). Feishu / Lark is coming.
218
+ **Settings**: the "Settings" tab at the top of the page: language, warning days per category, GitHub (on/off, where the token comes from, connection test, how to mark read), mail accounts (add, test, check now, edit, delete).
219
+
220
+ The settings follow the secretary's job in four parts: 1. where it looks (GitHub, mail); 2. what to tell you about (what counts as urgent, warning days per category); 3. when and how to tell you (reminders, below); 4. what it may do for you (marking read on GitHub; mail is always read-only). Then language and where secrets are kept.
221
+
222
+ **Reminders**, without opening the board:
223
+ - Daily brief: at its time (09:00 by default) a list of what needs you and what is coming up; nothing is sent when there is nothing.
224
+ - Urgent items right away: a review requested, a mention, an assignment; a meeting invitation; something you told it that is due today or overdue. Each is sent once; what is already on the board when reminders start is not news.
225
+ - Quiet hours (22:00 to 08:00 by default): nothing is sent; urgent items from then come when they end.
226
+ - Times follow your browser's time zone, so DSH on a server in another zone still gets them right.
227
+ - Sent to this computer's notifications (macOS, Windows, a Linux desktop; a server has none) and to a Feishu / Lark group bot (a group of just you, a custom bot, its webhook address pasted in; signature verification supported). The bot's address and secret are kept like passwords; what reminders say passes through Feishu's servers.
212
228
 
213
229
  **Restart DSH**: the button after "Settings" at the top of the page. After reinstalling or upgrading plugins, click it: the desktop app quits the normal way (asking first if a task is running) and opens again. On a server set up with dsh-vps, DSH runs under the dsh-gate gateway: DSH exits cleanly, the gateway starts it again within seconds, and the page reloads once it is back. DSH started directly with the `dsh` command cannot be restarted from the page (its new sign-in address is printed only in that terminal), so the button tells you to press Ctrl+C there and run it again. Restarting the Windows and Linux desktop apps is not yet tested on real machines.
214
230