Commit Graph

3 Commits

Author SHA1 Message Date
王性驊 45c529d7f4 修手機接管電腦後回不去;新增「風格」(8 套:紙、夜、墨、苔、海、糖、夕陽、終端機,一套顏色加聊天背景花紋,電腦和手機一起換,也能請 Bot 換);設定每一列都有圖示(電腦和手機)。
- 接管回不去(mobile/index.html newBoxFrame):以前每次打開/關掉都改同一個 iframe 的網址,iframe 換頁會加進上一頁紀錄;第二次之後按 ✕ 或返回,退的是框裡那一頁,接管畫面卡著。現在每次換一個新的框,關掉就拿掉。舊版重現:第 2、3 次關不掉;新版連續 3 次都回到首頁。
- 風格(src/theme.rs TEMPLATES、palette_for、backdrop):每套有淺色和深色的墨、紙、強調色(同一個產生器長出整個殼),加聊天背景 dots/grid/waves。State 新欄位 shell_template(空=自訂)。電腦:設定 › 一般 › 外觀最上面一排小圖(kit::style_gallery,每張是那個風格的縮小畫面),聊天區後面畫花紋(chat_backdrop);點強調色、動底色或重設回到自訂。手機:palettes 帶 backdrop,聊天背景用 CSS 畫;設定 › 一般最上面同一排小圖(api/settings 的 styles、style)。Bot:update_settings 多 `style`(appctl;不在 tools::specs 的鎖檔裡,鎖檔沒變)。截圖:ANYBOT_SHOT_STYLE=ocean。
- 設定圖示:icons::setting_icon 照名字的字配圖示(主題月亮、風格和顏色調色盤、通知鈴鐺、時區地球、權限盾牌、電腦螢幕…,沒對到是滑桿),card_row 和 setting_title 都畫;新 Lucide 圖示 palette、moon、globe、sliders-horizontal、volume-2、hard-drive。手機設定頁、Bot 設定、電腦頁的列用 sitem(同一套規則,SET_ICON)。
- 測試:theme::template_tests::every_template_reads_in_light_and_dark(每套淺深色都讀得清楚、紙就是原本的預設);appctl 的 update_settings 測試加 style。
- 功能地圖 appearance.md 加 appearance-style 和一步驗證、settings.md(Bot 能改四樣)、box.md 陷阱;FEATURES.md。

已驗證: cargo test 881 個全過;clippy 沒有新警告;scratch 手機:接管開關 3 次都回首頁(舊版第 2 次就卡住);設定 › 一般點「海」→ state shell_template=ocean、聊天背景波浪;聊天請 Bot `update_settings {"style":"terminal"}` → 手機強調色 #2d8a3e、格線;Bot 設定 36 列都有圖示。桌面截圖:外觀的 8 張小圖、海、終端機(深色)、糖的聊天,電腦設定一般/電腦頁每列有圖示。
未驗證: 在真的 iPhone 上滑返回手勢(接管開著時本來就停用,靠 ✕);花紋在很大的螢幕上的耗電(電腦版每幀畫點點/線,沒量)。

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Uirha2uBHmbnuWBhNzjbJm
2026-11-22 09:38:00 +08:00
王性驊 2867c8e822 Remove what nothing uses and keep one copy of what was written several times
Unused (found by taking away the dead-code allowances; nothing else used them, tests aside):
computer::specs, quiet_button, the never-made Poke::Spin, ten icons and their SVGs, the
theme's chrome/bubble_agent colours, ImportRow.line, voice's multipart/transcribe/speak
wrappers, and the old keychain writers vault::save/remove/index_add with their live test
(the vault store replaced them; reading old keychain entries for the import stays).

One copy each: percent-encoding (httpd::url_encode, was four), tool arguments (tools::args_of,
was three), the WebSocket handshake (httpd::accept_websocket, was three), the read pacing
(wire::Pace, was two: relay and app), docker with input and a time limit (dk_with_input, was
two). Docs: FEATURES §看畫面 (VNC), protocol (v* frames, /screen, tickets), architecture.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-05 23:21:47 +08:00
王性驊 d7ee3f5db9 AnyBot: first commit of the working desktop app
Rust/egui rebuild of Grok Bot as of 2026-11-04: chat with streaming
providers (xAI, OpenAI, Claude, Gemini, OpenRouter, OpenCode Go, Ollama,
custom), tools and approvals, the bot's Docker computer, computer use on
macOS / Linux X11 / Wayland, AnyBot's browser with a full DevTools-based
toolset, the encrypted vault, pinned grid and sidebar sections, Markdown
with Mermaid diagrams, phone access through the relay, and the Linux
build and test scripts.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Uirha3oEtWeHh58zA7ErHa
2026-11-04 16:51:51 +08:00