AnyBot/docs
王性驊 33b3fb8cab 手機操作電腦補上虛擬觸控板和按鍵列:一指移游標、點一下按、點兩下按住拖曳、兩指捲動或右鍵;Ctrl/Alt/Shift/❖(Mac 是 ⌘⌥⌃⇧)點一下按住、點兩下鎖住;「快捷鍵」面板一格一個名字(下一個分頁、切換視窗、拷貝…);手機「接管」真的讓 Bot 停手。
- mobile/trackpad.js(新):觸控板手勢和按鍵列的狀態,Bot 的電腦(mobile/screen.html,noVNC)和「這台 Mac」(mobile/index.html #v-screen)共用一份;大腦(src/remote.rs)和帳號伺服器(relay/)都在 /trackpad.js 給它。手勢參考 OpenBot 手機 App 的觸控板模式(只借做法,不抄程式碼)。
- Bot 的電腦:接管後下方一排「觸控板|Ctrl Alt Shift ❖|Esc Tab ← ↑ ↓ → ⌫ Del ⏎ Home End PgUp PgDn|快捷鍵 ⌨ 打字」;觸控板經 noVNC 自己的 _handleMouse*(游標自己畫);關掉觸控板回到 noVNC 原本的點哪裡按哪裡。修飾鍵按著時打一個字=那組快捷鍵。
- 接管會鎖住螢幕(新 POST api/box/hold,跟螢幕電腦的 api/sync/screen hold 同一件事):交還、關畫面、手機鎖住或切走就放開,回來再鎖上。以前手機的接管只有點擊或按鍵後 8 秒 Bot 才停。
- 小畫面(GET api/box/thumb?bot=)是那個 Bot 自己的螢幕,對話詳細資訊和需要處理卡帶上 bot(以前一律是共用的)。
- 這台 Mac:大腦的 api/screen/mac 多了 move(移游標)、drag(整條路徑)和點擊的 modifiers(只收 cmd/shift/option/ctrl/alt),組合鍵照用 press_key 的「cmd+tab」;手機頁面換成同一套觸控板、⌘⌥⌃⇧、Mac 版快捷鍵;拿掉「右鍵:開」(兩指點就是右鍵),修好快點兩下會多送一兩下點擊。
- 測試:mobile/trackpad.test.mjs(點一下、滑動、兩指點、兩指捲動、點兩下拖曳、連點、長按、修飾鍵一次/鎖住、快捷鍵的字),cargo test 有 node 時跑它(remote::tests::the_touchpad_turns_fingers_into_mouse_and_keys)。
- 功能地圖 box.md 加 box-phone-drive 和一步驗證;FEATURES.md 加「手機接手:觸控板和按鍵列」。

已驗證: cargo test 877 個全過;relay 的 cargo test 27 個全過;clippy 沒有新警告;node mobile/trackpad.test.mjs 13 項 OK;scratch 手機頁面打開 screen#…&control=1:按鍵列、快捷鍵面板(Alt+Tab 等 18 格)、Ctrl 點一下變亮;「這台 Mac」頁面:⌘ 點兩下鎖住、Mac 版快捷鍵面板。
未驗證: 觸控板動到真的畫面——Bot 的電腦要 Docker(scratch 沒有、不准碰使用者的),這台 Mac 會動到使用者正在用的螢幕,所以兩邊的實際點擊、拖曳、捲動、鎖住都沒有實機跑;這碰到 computer 的路徑(新的 move/drag/修飾鍵),照規定要實機測試加你簽名才能發佈。帳號伺服器要 make update-server 才有 /trackpad.js(沒更新前經帳號開的畫面頁會載不到觸控板)。

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Uirha2uBHmbnuWBhNzjbJm
2026-11-22 08:48:31 +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 手機操作電腦補上虛擬觸控板和按鍵列:一指移游標、點一下按、點兩下按住拖曳、兩指捲動或右鍵;Ctrl/Alt/Shift/❖(Mac 是 ⌘⌥⌃⇧)點一下按住、點兩下鎖住;「快捷鍵」面板一格一個名字(下一個分頁、切換視窗、拷貝…);手機「接管」真的讓 Bot 停手。 2026-11-22 08:48:31 +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