AnyBot/docs
王性驊 1fcc251b0a 修手機聊天整個畫不出來(日程新加的 dayLabel 蓋掉聊天的同名函式);加測試擋住手機頁面重複的名字;聊天裡的流程圖畫成圖;手機的圖表(SVG)不再破圖。
- 嚴重:89fb6a5(手機日程)在 mobile/index.html 新加了 function dayLabel(d, today),跟聊天畫「今天/昨天」分隔線的 dayLabel(ms) 同名;同一個全域、後宣告的蓋掉前面,renderMsgs 一碰到有時間的訊息就丟例外,聊天只剩空白(之後幾輪的截圖沒抓到:看到的是本機先畫的那一則)。改名 schedDay。
- 防再犯:remote::tests::the_phone_page_names_each_thing_once 掃 mobile/index.html 頂層的 function/const/let,同一個名字只准一次(把 schedDay 改回 dayLabel 會失敗:declared more than once: ["dayLabel"])。
- 聊天的流程圖:新 POST api/diagram {src, dark}(用 diagram::svg,跟頁面的圖同一個畫法;空的或超過 2 萬字回 400;團隊成員也可以,只畫圖不讀任何東西);手機的 pageMd 遇到 ```mermaid(聊天裡 id 是 0)放一格,畫好換成圖,畫不出來顯示原始碼;renderMsgs 畫完有圖就叫 loadCharts。
- 圖表破圖:safeBlob 為了安全把 SVG 當成下載檔,<img> 顯示不出來——頁面的圖原本就這樣。新 chartUrl:SVG 只做成 <img> 用的 SVG 圖片(<img> 裡不跑任何程式),其他照 safeBlob。

已驗證: cargo test 883 個、relay 27 個全過;scratch 手機:打開聊天,7 則訊息、1 條「今天」分隔線都畫出來;Bot 回一張 ```mermaid,聊天裡出現 266×337 的圖(之前是破圖、再之前是整個聊天空白)。
未驗證: 頁面裡的圖在手機上(同一個 chartUrl,沒有另外建頁面看)。經帳號連的手機要 make update-server 才是新頁面——在那之前它用的是帳號伺服器上的舊頁面,沒有這個 bug(bug 只在這個分支)。

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Uirha2uBHmbnuWBhNzjbJm
2026-11-22 09:56:10 +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 修手機聊天整個畫不出來(日程新加的 dayLabel 蓋掉聊天的同名函式);加測試擋住手機頁面重複的名字;聊天裡的流程圖畫成圖;手機的圖表(SVG)不再破圖。 2026-11-22 09:56:10 +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 工作流:照 OpenBot 工作流畫布的排版(它公開的程式沒有畫布,照截圖做),風格是 AnyBot 自己的。可以畫、加註解、執行,也可以在聊天裡用一般的話請 Bot 做和改——畫布開在那個 Bot 的聊天旁邊,看著它改。 2026-11-21 18:37:31 +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