AnyBot/docs
王性驊 61d746a064 perf: 帳號伺服器自己壓縮——網頁版不再每次下載 301 KB 等 5–7 秒
正式站前面是 tailscale serve(不壓縮),帳號伺服器卻一直假設前面的 Caddy 會壓:
頁面、狀態、聊天全部原樣傳,又走 Tailscale 的香港中繼,打開一次要 5–7.5 秒。

- 壓縮函式搬到 src/httpd.rs,直接連線和帳號伺服器共用;帳號伺服器的文字回答
  (頁面、狀態、聊天、大腦轉回來的資料)自己用 gzip 壓,頁面 301 KB → 95 KB,只壓一次。
- 連線畫面上的圖示讓瀏覽器留一天(之前每次打開都重新下載)。
- FEATURES.md、docs/feature-map/phone.md 同步。

已驗證: cargo test(主程式 756、帳號伺服器 24,含新的壓縮測試);本機帳號伺服器實測
gzip、內容一字不差、304;verify-anybot 手機區「還沒連上就在外面」「清單和選單」「聊天」
「只傳有變的」;獨立審查無 P0/P1。
未驗證: 正式站的實際秒數(要先 make update-server 部署);主畫面 App、推播(要真的手機)。

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Uirha5JgTkqJjkgMtrEXrn
2026-11-20 01:03:47 +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 perf: 帳號伺服器自己壓縮——網頁版不再每次下載 301 KB 等 5–7 秒 2026-11-20 01:03:47 +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 隧道長連線也走迴圈位址:自己連自己不再绕 tailnet(體感最後一段) 2026-11-19 16:13:04 +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
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