AnyBot/docs
王性驊 7889705c07 refactor: 工具呼叫改成 TurnTool trait:28 個工具照原本的順序排成一張清單,不再是一長串 if
- src/agent/steps.rs:Step(一個呼叫:這一輪的狀態+這個呼叫)帶 finish、started、what、ask_person 方法,取代原本的兩個閉包;TurnTool 有 takes 和 run;TOOLS 是照原本 if 的順序排的清單,第一個 takes 的就 run。
- 原本夾在中間的拒絕(看不懂的動作、沒有這個能力、技能的 allowed-tools、別人傳來的訊息)也是清單的一項,位置不變;最後一項 OnComputer(選電腦、開關、安全規則、自動審核、hook、每次問、螢幕租用、執行)收下其他的。
- 檢查過舊的每一塊都以 return 結束,所以每個 run 一定回來不會改行為;AnyBot 瀏覽器在哪裡只算一次(takes 和 run 用同一個答案)。
- run_call 從 1432 行變 146 行(只剩任何工具之前的檢查和分派);debug 紀錄寫是哪個工具處理的。

已驗證:cargo test 607 通過(多一個 each_call_finds_its_tool:順序、名字不重複、OnComputer 在最後、各種呼叫找到對的工具、別人傳來的訊息不能用瀏覽器但 web_fetch 可以、沒有能力的被擋)、clippy -D warnings 乾淨。

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-17 13:43:57 +08:00
..
demo One computer-and-phone still, and the README stops advertising its style guide 2026-11-10 14:21:06 +08:00
en version_0_1_1-alpha 2026-11-11 16:19:06 +08:00
feature-map feat: 連接器可以用帳號登入(MCP 的 OAuth:PKCE、自己註冊、resource),在大腦上、Token 加密存 2026-11-17 13:08:45 +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 傳送: a file or a few words from any device of the account to any other 2026-11-11 10:04:13 +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