diff --git a/FEATURES.md b/FEATURES.md index 4a74fe1..ced7e94 100644 --- a/FEATURES.md +++ b/FEATURES.md @@ -1371,6 +1371,16 @@ computer_use_screenshot、click、mouse_move、mouse_button(按住/放開) - **權限不變**:要你核准的步驟照樣停下來等;要放著讓它自己做完,Bot 要開「直接操作」或「自動審核」(Claude Code 也要配 auto mode)。 - **終端機**:`anybot --ask "/goal …"` 會一直做到達成、做不到或暫停才結束(像 `claude -p "/goal …"`),最長 ANYBOT_ASK_SECS 秒(預設 900)。 - 實測(假的 OpenAI 相容模型,獨立的大腦):「兩步」的目標第一輪檢查說還差第二步,AnyBot 自己開第二輪,第二輪後判定達成;永遠沒進展的目標在第 3 輪暫停;要登入的目標判定在等使用者而暫停,回一句「我登入了」後接著做並達成;目標的那幾行沒有出現在任何一次送給模型的內容裡。 +- **外觀(Bot 是主角)**:介面本身安靜(黑、白、灰),顏色和動作都留給 Bot。 + - **字型**:預設思源黑體(Noto Sans TC,Regular 和 Bold 兩種粗細都包在 App 裡,每台電腦看起來一樣);標題、選中的項目、回覆裡的粗體和標題用真的粗體。設定 › 一般可以換成系統字型或粉圓體(這兩種只有一種粗細)。 + - **聊天跟著 Bot 的顏色**(預設;設定 › 一般 › 聊天的顏色可以改成只用黑色):你的訊息泡泡、送出鈕、側邊欄選中的那格(淡淡一層)。Bot 的回覆不用泡泡,像文件一樣排在頁面上,只有錯誤訊息有泡泡。 + - **輸入框上方的臉**:Bot 的臉從輸入框後面探出來,旁邊一句話說它在做什麼(原本對話最後的轉圈那一行搬到這裡)。眼睛就是狀態:待命時往下看輸入框;在想時往上、慢慢左右飄;有步驟在跑時看著旁邊那句「正在…」;需要你時看著你,臉上多一個黃點,旁邊寫「等你決定」;做完笑兩秒;上一輪出錯時眼睛變兩條橫線。新對話時沒有這張小臉(臉是中間那張大的)。 + - **需要你允許**:不再是蓋住整個視窗的彈出視窗,改成固定在輸入框上方的黃色卡片,上面的聊天照樣看得到,下面的輸入框照樣可以打字告訴它怎麼改。輸入框空著時 Enter 允許、Esc 拒絕(卡片出現 0.6 秒後才算,免得原本要按的 Enter 誤答)。要你親自處理的步驟(接管畫面)還是聊天裡的卡片。 + - **黃色只代表「需要你」**:允許卡片、臉上的黃點、側邊欄 Bot 上的黃點、設定裡「更新」旁的黃點(有新版)。有新訊息還是藍色小點。 + - **標題列**:Bot 的名字在左邊(按一下開對話詳細資訊),右邊「分享」和「⋯」不再有圓框;圖示線條粗一點(2.25)。 + - **新對話**:Bot 的臉放大、一句「嗨,我是 …」和它的描述,下面三個可以直接點的開頭(點了把字放進輸入框)。 + - **設定**:左邊分頁只有文字,選中的黑底白字;每組設定一張白色細框卡片,一列一件事(左邊名稱、右邊控制項,名稱下最多一行小字,其餘說明在「?」裡);選項是分段按鈕,開關是黑軌白鈕。「一般」的名稱改成白話(聊天的顏色、用意思找記憶、Bot 可以翻的資料夾)。「整合」分成三頁(訊息管道、連接器、技能);訊息管道先列「已連接」(標記、名稱 · 種類、誰回覆、狀態、開關、⋯ 裡移除),「新增管道」是八個方塊,點了才在下面打開那一種的表單。權限頁的「直接操作」「自動審核」也是開關。 + - **手機**:聊天跟著 Bot 的顏色、Bot 的回覆不用泡泡、允許卡片是黃色、輸入框是墨色框線;工作中在對話最後顯示 Bot 的小臉和跟電腦上一樣的那句「正在…」。 - **自己進化**:一件事做了 5 步以上(操作電腦、網頁、指令,不算記憶和設定),回答完後在背景回頭看一次:這是在網站或程式上動手操作的事(填表、發文、回留言、上傳下載、改設定),就把這次真的成功的最短做法存成技能(用畫面上的名字,不寫編號和座標;繞路和失敗寫成「注意」;使用者說過的偏好寫進去);已經有同一件事的技能就合併成更好的一版,照著做而且很順就不動。回覆下面會多一行「(學會了新做法「…」)」或「(把做法「…」更新了)」。系統指示要 Bot 開始做事前先看技能清單、有符合的先 use_skill。實測(httpbin 訂 pizza,真的 Grok):第一次 11 步學到技能;第二次先讀技能、10 步 24 秒一次做完,回頭看後判斷不用改。 - **重播學會的做法**(replay_skill):存技能時,模型會挑出這次真的成功、必要、會改變東西的步驟(不含截圖、讀取這類只是看的步驟、不含繞路和失敗),連同每一步點的是哪個東西(「勾選框「自動更新」」,不是編號)一起存下來;內容每次不同的工作(發文的文字、回覆的留言)不存步驟。技能清單裡標「可重播,N 步」。 - 要做的事和技能一模一樣時,Bot 叫 replay_skill,AnyBot 就一步一步照做,中間不問模型:畫面上的步驟在最近的畫面清單裡找同一種、同名的東西換成現在的編號(值和勾選狀態不算),網頁上的步驟改用字找;找不到時先自動截一次圖再找,還是找不到就停下來,告訴 Bot 停在第幾步、找不到什麼,由它接手。 diff --git a/mobile/index.html b/mobile/index.html index cad501f..538bc68 100644 --- a/mobile/index.html +++ b/mobile/index.html @@ -21,7 +21,7 @@ --primary:#1c1c1c;--on-primary:#fff;--text:#1c1c1c;--text2:#1c1c1cad;--text3:#1c1c1c8f;--text4:#1c1c1c66; --line:#1c1c1c1f;--line2:#1c1c1c14;--focus:#1e86fc;--accent:#1680f3;--accent-ink:#0b6dd3; --danger:#e72e3b;--ok:#10ab61;--warn:#da830e; - --bubble-user:#1c1c1c;--bubble-user-ink:#fff;--bubble-bot:#1c1c1c0f;--card:#fff; + --bubble-user:#1c1c1c;--bubble-user-ink:#fff;--bubble-bot:#1c1c1c0f;--card:#fff;--attention:#ffc83d;--attention-bg:#fff6d6; --spec:#ffffff59;--shadow:0 2px 8px -1px #0000000d,0 1px 2px #00000008,0 0 0 1px #e4e4e40a; --font:-apple-system,BlinkMacSystemFont,"SF Pro Text","PingFang TC","Noto Sans TC","Segoe UI",system-ui,sans-serif; --mono:ui-monospace,SFMono-Regular,Menlo,monospace; @@ -31,14 +31,14 @@ --pane:#161616;--chrome:#121212;--side:#0e0e0e;--elev:#1f1f1f;--hover:#f5f5f50f;--active:#f5f5f514; --primary:#f5f5f5;--on-primary:#121212;--text:#f5f5f5;--text2:#f5f5f5a8;--text3:#f5f5f58a;--text4:#f5f5f566; --line:#f5f5f51a;--line2:#f5f5f514;--focus:#1884fc;--accent:#1884fc;--accent-ink:#4d9bff; - --danger:#fc2c3e;--bubble-user:#f5f5f52e;--bubble-user-ink:#f5f5f5;--bubble-bot:#f5f5f50a;--card:#252525; + --danger:#fc2c3e;--bubble-user:#f5f5f52e;--bubble-user-ink:#f5f5f5;--bubble-bot:#f5f5f50a;--card:#252525;--attention:#ffc83d;--attention-bg:#3a3212; --spec:#ffffff0d;--shadow:none; }} :root[data-theme="dark"]{ --pane:#161616;--chrome:#121212;--side:#0e0e0e;--elev:#1f1f1f;--hover:#f5f5f50f;--active:#f5f5f514; --primary:#f5f5f5;--on-primary:#121212;--text:#f5f5f5;--text2:#f5f5f5a8;--text3:#f5f5f58a;--text4:#f5f5f566; --line:#f5f5f51a;--line2:#f5f5f514;--focus:#1884fc;--accent:#1884fc;--accent-ink:#4d9bff; - --danger:#fc2c3e;--bubble-user:#f5f5f52e;--bubble-user-ink:#f5f5f5;--bubble-bot:#f5f5f50a;--card:#252525; + --danger:#fc2c3e;--bubble-user:#f5f5f52e;--bubble-user-ink:#f5f5f5;--bubble-bot:#f5f5f50a;--card:#252525;--attention:#ffc83d;--attention-bg:#3a3212; --spec:#ffffff0d;--shadow:none; } *{box-sizing:border-box;-webkit-tap-highlight-color:transparent} @@ -116,9 +116,11 @@ a{color:var(--accent-ink)} .m.bot{align-items:flex-start} .bub{max-width:min(86%,560px);padding:7px 12px;border-radius:18px;font-size:15px;line-height:22px;word-wrap:break-word;overflow-wrap:anywhere; background-image:linear-gradient(to bottom,var(--spec),transparent);box-shadow:inset 0 .5px 0 var(--spec),inset 0 0 0 .5px var(--line2)} -.m.user .bub{background-color:var(--bubble-user);color:var(--bubble-user-ink);white-space:pre-wrap} -.m.bot .bub{background-color:var(--bubble-bot)} -.m.err .bub{color:var(--danger)} +/* The chat takes its bot's colour (--bot, set when the chat opens; a black bot keeps the plain bubble). */ +.m.user .bub{background-color:var(--bot,var(--bubble-user));color:var(--bot-ink,var(--bubble-user-ink));white-space:pre-wrap;border-radius:20px 20px 6px 20px} +/* The bot's words sit on the page like a document; only an error gets a bubble. */ +.m.bot .bub{background-color:transparent;padding:2px 2px;max-width:min(100%,640px);box-shadow:none;background-image:none} +.m.err .bub{color:var(--danger);background-color:var(--bubble-bot);padding:7px 12px} .bub p{margin:0 0 8px}.bub p:last-child{margin-bottom:0} .bub ul,.bub ol{margin:4px 0 8px;padding-left:22px} .bub li{margin:2px 0} @@ -163,7 +165,8 @@ a{color:var(--accent-ink)} .typing i{width:5px;height:5px;border-radius:50%;background:var(--text3);animation:blink 1.2s infinite} .typing i:nth-child(2){animation-delay:.2s}.typing i:nth-child(3){animation-delay:.4s} @keyframes blink{0%,80%,100%{opacity:.3}40%{opacity:1}} -.presence{font-size:12.5px;color:var(--text3);margin:6px 4px;background:linear-gradient(90deg,var(--text3) 30%,var(--text) 50%,var(--text3) 70%);background-size:200% 100%;-webkit-background-clip:text;background-clip:text;color:transparent;animation:shimmer 2s linear infinite} +.working{display:flex;align-items:center;gap:8px;margin:6px 0} +.presence{font-size:13px;color:var(--text3);margin:6px 4px;background:linear-gradient(90deg,var(--text3) 30%,var(--text) 50%,var(--text3) 70%);background-size:200% 100%;-webkit-background-clip:text;background-clip:text;color:transparent;animation:shimmer 2s linear infinite} @keyframes shimmer{to{background-position:-200% 0}} .summary{align-self:stretch;margin:8px 0;padding:10px 12px;border-radius:12px;background:var(--hover);font-size:13px;color:var(--text2)} .summary b{display:flex;align-items:center;gap:6px;color:var(--text);font-weight:500} @@ -196,7 +199,8 @@ a{color:var(--accent-ink)} .sug .tt{font-size:14px;font-weight:500}.sug .dd{font-size:12px;color:var(--text3)} /* the dock: approvals, queued steering, attachments, the composer */ .dock{flex:none;padding:6px 10px calc(var(--safe-b) + 8px);background:linear-gradient(to bottom,transparent,var(--chrome) 40%)} -.ask{max-width:560px;margin:0 auto 8px;padding:14px 16px;border-radius:16px;background:var(--elev);box-shadow:inset 0 0 0 .5px var(--line),0 6px 24px -6px #0000002e} +/* 需要你: yellow is the one colour for what waits for the person. */ +.ask{max-width:560px;margin:0 auto 8px;padding:14px 16px;border-radius:20px;background:var(--attention-bg);box-shadow:inset 0 0 0 2px var(--attention)} .ask .q{font-weight:600;font-size:15px} .ask .why{font-size:13px;color:var(--text2);margin:4px 0 10px;white-space:pre-wrap;max-height:30vh;overflow:auto} .ask .thumb{width:100%;border-radius:10px;margin:2px 0 10px;display:block;background:var(--hover);min-height:60px} @@ -264,12 +268,13 @@ a{color:var(--accent-ink)} .memmore button{color:var(--accent-ink);font-size:13px} .quoting{max-width:760px;margin:0 auto 6px;display:flex;align-items:center;gap:8px;font-size:12.5px;color:var(--text2);border-left:3px solid var(--line);padding-left:8px} .quoting span{flex:1;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis} -.composer{max-width:760px;margin:0 auto;display:flex;align-items:flex-end;gap:6px;background:var(--elev);border-radius:22px;padding:8px 8px 8px 8px;box-shadow:inset 0 0 0 .5px var(--line),var(--shadow)} +.composer{max-width:760px;margin:0 auto;display:flex;align-items:flex-end;gap:6px;background:var(--elev);border-radius:20px;padding:8px 8px 8px 8px;box-shadow:inset 0 0 0 1.5px var(--text3)} +.composer:focus-within{box-shadow:inset 0 0 0 1.5px var(--text)} .composer.tall{border-radius:18px} .composer textarea{flex:1;border:0;outline:0;background:none;resize:none;font-size:16px;line-height:22px;max-height:140px;min-height:28px;padding:3px 4px} -.cbtn{width:28px;height:28px;border-radius:50%;display:grid;place-items:center;flex:none;color:var(--text2)} +.cbtn{width:28px;height:28px;border-radius:10px;display:grid;place-items:center;flex:none;color:var(--text2)} .cbtn.plus{background:var(--hover);box-shadow:inset 0 0 0 .5px var(--line)} -.cbtn.go{background:var(--primary);color:var(--on-primary)} +.cbtn.go{background:var(--bot,var(--primary));color:var(--bot-ink,var(--on-primary))} .cbtn.go:disabled{opacity:.35} .cbtn.rec{color:var(--danger)} .cbtn .ic{vertical-align:0} @@ -1048,6 +1053,10 @@ $("island").onclick = () => go("details", {bot: S.open}); function openChat(id) { if (S.open !== id) { S.msgs = []; S.pending = []; S.quote = null; S.unfold = {}; S.openSteps = {}; $("msgs").innerHTML = ""; } S.open = id; + // The chat takes its bot's colour: the person's bubble and the send button. + const ob = bot(id) || {}, chat = $("v-chat"); + if (ob.color && ob.color_key !== "black") { chat.style.setProperty("--bot", ob.color); chat.style.setProperty("--bot-ink", "#fff"); } + else { chat.style.removeProperty("--bot"); chat.style.removeProperty("--bot-ink"); } chatHead(); renderChips(); renderQuote(); loadChat(true); renderDock(); api(base() + `api/bots/${id}/read`, {json: {}}).catch(() => {}); } @@ -1173,7 +1182,7 @@ function renderMsgs() { }); // Still working: what it is doing now; a message nobody answered yet can be sent again. if (busy) h += (lastMsg && lastMsg.role !== "user" && !lastMsg.text && !(lastMsg.tools || []).length) || lastMsg?.role === "user" ? `