AnyBot/docs
王性驊 14727cd226 fix: 直接連線再補三個放寬的路:/always-approve、匯入帶團隊分享、關機的電腦被算進「每一台」
複審 36420f3 用測試證明的三個繞過,和幾個小的:

1. 在聊天打「/always-approve」(/yolo):直接連線的 api/bots/:id/send 從沒問過檢查,
   擁有者身分就開了直接操作和一律放行。現在 remote.rs 在門口先看這句話是不是會放寬的
   AnyBot 指令(commands.rs 的 AppCommand::loosens,每個指令都要列在其中一邊,新的指令
   一定得決定),是就 403、什麼都不送;status、off 照常。只有門口知道是不是直接連線
   (帳號那條路送進來的 Cmd 一模一樣),所以擋在那裡。順便:`--ask` 跑 AnyBot 自己的
   指令(沒開一輪)以前結束碼是 1,現在是 0——地圖改在這台電腦上打「/always-approve」。
2. api/act/import_bot 帶著檔案裡的 team:true 就分享給團隊:share 的匯出不寫、匯入不收
   team(也清 branch_of、branches),電腦版一樣;lan_guard 把每個 api/act 動作都列在
   一邊,沒列到的一律 400,不再默默放行。
3. 可以用的電腦:帳號裡關機的電腦不在清單上,全勾就存成 None(每一台),被排除的那台
   開機又能用。現在沒列出的電腦維持原狀,有清單的 Bot 從手機上不會變成「每一台」(帳號
   那條路也一樣)。能力沒有這個問題:11 類永遠都列出來,None 只多出以後新版加的類別。
P2:支線的瀏覽器步驟指名 profile 只用在那一步(不再 set_current);支線換掉技能庫已有
   技能的檢查跟寫資料夾一樣忽略大小寫;直接連線把 Bot 加進分享給團隊的群組算放寬
   (phone_detail 多帶 team);SECURITY.md、account.md、autonomy.md 寫明打開「從手機看
   這台電腦的螢幕並操作」時這個保證不成立;autonomy.md「手機用擁有者身分打也可以」改成
   帳號連線才行。
P3:phone_act 照原字讀名字的那一半有自己的測試了。

已驗證: env -u 金鑰… DOCKER_HOST=unix:///nonexistent cargo test(683 過、46 ignored)、
cargo clippy --bin anybot --all-targets -D warnings、sh deploy/ci/lint-sh.sh、
verify-approval-routing run.sh --replay(沒有漂移,10 個重走都過);新的測試在放回
36420f3 的程式時都失敗(/always-approve 403、沒分類的動作、匯入的 team、關機的電腦、
phone_act 去空白、技能大小寫、支線的瀏覽器步驟、分享群組加成員);verify-anybot:
autonomy 照新步驟跑(手機打 /always-approve 被擋、字放回輸入框,--ask 打開),另外
手機打 /yolo 被擋、status 照答、直接連線匯入帶 team:true 的檔案後新 Bot 沒分享、沒分類的
動作 400;branch、browser、profile、phone、market 照地圖跑。
未驗證: --ignored 的實機瀏覽器測試(botbrowser 的 reads_a_real_page、a_persons_firefox_profile、
a_finished_job_quits_its_firefox、a_finished_job_quits_its_chrome,browser 的
lines_go_in_whole_and_numbers_stay_put、a_send_is_seen_with_the_post_it_answers_and_its_own_address、
numbers_controls_inside_web_components、drives_a_dashboard,vault 的 fill_live——open 的
參數改了)要人在實機跑、簽名;帳號裡的電腦關機那條要帳號伺服器(只有單元測試);分享
群組要帳號(只有單元測試)。

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Uirha5sXAsDLzxz6UZJgoC
2026-11-18 20:09:52 +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 fix: 直接連線再補三個放寬的路:/always-approve、匯入帶團隊分享、關機的電腦被算進「每一台」 2026-11-18 20:09:52 +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