AnyBot/docs
王性驊 3e22a4c00b 電腦版的通知也像那個 Bot 傳來的訊息:標題是 Bot 的名字,內容就是那句話(回答的第一行、「需要你允許:修改 Bot 自己:名稱 → 新名字」、問的問題、例行任務「…」暫停、目標達成/暫停),帶著那個 Bot 的頭像。以前標題是「○○ 完成了」「○○ 需要你允許」,圖示是 AnyBot 的貓。
- Linux(notify-send):通知左邊的圖示就是 Bot 的頭像(Jenny 的 jenny-Host 是這種)。
- Mac(AnyBot.app 的 NSUserNotification):頭像在右邊(contentImage);左邊固定是 App 的圖示,系統不讓換。NSImage 用 AnyClass::get("NSImage") 直接叫,不多加 AppKit 的套件。
- 頭像圖:avatar::rgba 用畫面上同一個 paint 畫——egui 把它切成三角形(邊緣已經柔化),一格一格填成 RGBA(預乘 alpha、over),再轉成一般 alpha 存 PNG;avatar::png_file 照形狀、顏色、大小存在資料夾的 avatars/,只畫一次。14 種形狀都畫過(測試會檢查身體的顏色、四角透明、兩隻眼睛、柔化的邊)。
- notify-send 的參數抽成 notify_send_args(可以測);banner_for 多一個 picture。

已驗證: cargo test 841 過(新:avatars_become_pictures_for_notifications——14 種形狀各畫 96px,身體是那個顏色、四角透明、有眼睛、有柔化的邊,另外存出來看過一張總表;a_bots_banner_wears_its_avatar——notify-send 是 -a AnyBot -i <頭像> 名字 內容,沒圖就沒 -i;Mac 上 NSImage 讀得到那張 PNG、讀不存在的檔回 None);clippy 維持 12。
未驗證: 真的跳出來的通知長怎樣——Mac 要 AnyBot.app 才用得到 NSUserNotification(scratch 跑的不是 .app,會改用 display notification、沒圖),使用者真的 App 不能跑;Linux 要 Jenny 的桌面(等她的 AnyBot 更新)。

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Uirha2uBHmbnuWBhNzjbJm
2026-11-21 17:08:11 +08:00
..
demo docs: README 重寫——跟上這一週的功能,圖從現在這版重拍 2026-11-18 08:10:55 +08:00
en version_0_1_1-alpha 2026-11-11 16:19:06 +08:00
feature-map 電腦版的通知也像那個 Bot 傳來的訊息:標題是 Bot 的名字,內容就是那句話(回答的第一行、「需要你允許:修改 Bot 自己:名稱 → 新名字」、問的問題、例行任務「…」暫停、目標達成/暫停),帶著那個 Bot 的頭像。以前標題是「○○ 完成了」「○○ 需要你允許」,圖示是 AnyBot 的貓。 2026-11-21 17:08:11 +08:00
specs Rewrite decompilation comments as behaviour specs; move reverse-engineering docs out of the repo; drop third-party marks from UI strings (i18n tables synced) 2026-11-09 16:37:33 +08:00
architecture.md 傳送: a file or a few words from any device of the account to any other 2026-11-11 10:04:13 +08:00
install.md design: Bot 的電腦的桌面也換成思源黑體(第 14 版),拿掉粉圓 2026-11-16 22:18:32 +08:00
memory.md 記憶: each bot keeps its own, remembers like a person, and decides for itself 2026-11-11 09:35:59 +08:00
multi-device.md feat: 螢幕電腦沒網路照樣能用——直接開副本、訊息和設定排著連上再送、離線只剩一個小標示 2026-11-20 11:03:53 +08:00
plan-2026-11-computer-use.md Plan: smoother computer use and box logins that survive a rebuild 2026-11-06 22:06:49 +08:00
plan-2026-11-engineering.md refactor: 工具呼叫改成 TurnTool trait:28 個工具照原本的順序排成一張清單,不再是一長串 if 2026-11-17 13:43:57 +08:00
plan-2026-11-improvements.md 記憶: a page to see it, a few lines picked while typing, a local model 2026-11-11 07:46:50 +08:00
plan-2026-11-openbot.md 備用模型(計畫 D1:Bot 不屬於任何一家供應商):每個 Bot 最多 8 個,照順序。Bot 自己的模型不能回答——額度用完(402、「已達用量上限」)、太忙或用量到上限(429,供應商自己重試完之後)、金鑰或登入不能用(401、403)、服務出錯(5xx、408、529)、連不上——就換下一個還沒休息的,從同一步接著做(失敗的那一步沒有做任何事),聊天裡那一步前面一行「改用 ○○ 繼續(○○:連不上,10 分鐘內先不用它)」,之後的回答標新的模型。不能用的那個休息 10 分鐘(providers::rest/is_resting):這段時間的新一輪一開始就用備用的(「改用 ○○ 回答(○○ 剛剛不能用,10 分鐘內先不用它)」),之後又先用 Bot 自己的。對話太長、模型不支援工具、模型名稱打錯不換(換了也一樣,或是我們這邊的事)。還沒設定金鑰的供應商跳過,跟自己一樣的不算;換過去不帶思考模式、不用快速模型(那是原本那家的)。 2026-11-21 15:02:07 +08:00
protocol.md 傳送: a file or a few words from any device of the account to any other 2026-11-11 10:04:13 +08:00
readme-style.md Readmes: the shape top-starred projects use, and no more overflow 2026-11-10 14:14:27 +08:00
release.md make, README and docs: build and install from source 2026-11-04 22:16:45 +08:00
skills.md version_0_1_1-alpha 2026-11-11 16:19:06 +08:00