From c8c84f971a42493cf304f8061f2b4a84592c88c6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=8E=8B=E6=80=A7=E9=A9=8A?= Date: Sun, 22 Nov 2026 09:16:35 +0800 Subject: [PATCH] =?UTF-8?q?=E6=89=8B=E6=A9=9F=E8=A3=9C=E4=B8=8A=E3=80=8C?= =?UTF-8?q?=E6=89=80=E6=9C=89=E6=AA=94=E6=A1=88=E3=80=8D=EF=BC=9A=E9=A6=96?= =?UTF-8?q?=E9=A0=81=E4=B8=8A=E9=9D=A2=E4=B8=80=E6=8E=92=E5=A4=9A=E4=B8=80?= =?UTF-8?q?=E6=A0=BC=E3=80=8C=E6=AA=94=E6=A1=88=E3=80=8D=EF=BC=8C=E8=B7=A8?= =?UTF-8?q?=20Bot=E3=80=81=E8=B7=A8=E5=B0=8D=E8=A9=B1=E7=9A=84=E9=99=84?= =?UTF-8?q?=E4=BB=B6=E6=94=B6=E5=9C=A8=E4=B8=80=E8=B5=B7=EF=BC=9A=E6=90=9C?= =?UTF-8?q?=E5=B0=8B=E6=AA=94=E5=90=8D=E3=80=81=E7=A8=AE=E9=A1=9E=E5=88=86?= =?UTF-8?q?=E9=A0=81=E5=B8=B6=E6=95=B8=E9=87=8F=E3=80=81=E5=9C=96=E7=89=87?= =?UTF-8?q?=E4=B8=89=E6=AC=84=E6=A0=BC=E5=AD=90=E3=80=81=E5=85=B6=E4=BB=96?= =?UTF-8?q?=E4=B8=80=E5=88=97=E4=B8=80=E5=80=8B=EF=BC=8C=E9=BB=9E=E4=B8=80?= =?UTF-8?q?=E5=80=8B=E7=94=A8=E6=89=8B=E6=A9=9F=E7=9A=84=E6=AA=A2=E8=A6=96?= =?UTF-8?q?=E5=99=A8=E6=89=93=E9=96=8B=EF=BC=8C=E4=B8=8D=E8=A6=8B=E4=BA=86?= =?UTF-8?q?=E7=9A=84=E8=AE=8A=E6=B7=A1=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 大腦:phone_act 加 library(讀,管理員也可以;直接連線算不放寬),library_ui::library_json 跟電腦的「所有檔案」同一套收法(每個附件只列一次,最新的 500 個);縮圖用原本的 api/preview/image,打開用原本的 api/preview(都只放行聊天裡的附件)。 - 手機頁面:listFiles/drawFiles,縮圖捲到才載。 - 測試:remote_ui::phone_act_tests::the_phone_reads_all_files。 - 功能地圖 library.md 加 library-phone 和一步手機驗證;FEATURES.md 改掉「手機還沒有」。 已驗證: cargo test 全過;scratch 手機頁面:聊天附一張 png 和 行程.md 送出 → 首頁「檔案」→「全部 2、圖片 1、文件 1」,圖片有縮圖,行程.md 一列「驗證小幫手・剛剛・25 B」,點了打開看到「週末行程」。 未驗證: 很多檔案時(幾百個)的捲動順不順;不見了的檔案(scratch 沒有刪檔)。 Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_01Uirha2uBHmbnuWBhNzjbJm --- FEATURES.md | 2 +- docs/feature-map/library.md | 3 +- mobile/index.html | 55 ++++++++++++++++++++++++++++++++++++- src/app/library_ui.rs | 18 ++++++++++++ src/app/remote_ui.rs | 19 ++++++++++++- src/remote.rs | 6 ++-- 6 files changed, 96 insertions(+), 7 deletions(-) diff --git a/FEATURES.md b/FEATURES.md index feb211d..9883f1f 100644 --- a/FEATURES.md +++ b/FEATURES.md @@ -1597,7 +1597,7 @@ computer_use_screenshot、click、mouse_move、mouse_button(按住/放開) - 從哪裡開:側邊欄最左邊那一欄的資料夾圖示(任務下面);左下角選單「所有檔案…」。截圖用 `ANYBOT_SHOT_VIEW=library`。 - 左欄:搜尋檔名、「所有檔案」、「最近 7 天」、每個有檔案的 Bot(顏色點、數量)。上面種類分頁帶數量:全部、圖片、文件、程式碼、表格、影音、其他(沒有的不列)。右上「格子/清單」:格子是縮圖或副檔名+檔名+「Bot · 日期」,一排幾張撐滿寬度;清單是「Bot · 日期 · 大小」。視窗高度固定,切種類、看法不跳。 - 檔案不在原處(刪掉或搬走):灰字、紅字「不見了」,點不開。其他點一下用 AnyBot 的檢視器打開(Markdown、表格、圖片、PDF、影音、程式碼;用其他 App 打開、下載)。 -- 螢幕電腦看的是從大腦抓過來的副本。手機還沒有(只有每個對話的「資料庫」)。功能地圖新的一區 library.md。 +- 螢幕電腦看的是從大腦抓過來的副本。手機首頁上面一排的「檔案」是同一份(`api/act/library`,最新的 500 個):搜尋檔名、種類分頁帶數量、圖片三欄格子(捲到才載縮圖)、其他一列一個(Bot・多久前・大小),不見了的變淡點不開,點一個用手機的檢視器打開;每個對話的「資料庫」也還在。功能地圖新的一區 library.md。 ### 備用模型(Bot 設定 › AI 供應商與模型) diff --git a/docs/feature-map/library.md b/docs/feature-map/library.md index fba829a..b6e2a1d 100644 --- a/docs/feature-map/library.md +++ b/docs/feature-map/library.md @@ -11,6 +11,7 @@ - `library-gone` 不見了:檔案已經不在原來的地方(刪掉或搬走),檔名變灰、紅字「不見了(檔案已經刪掉或搬走)」(清單寫「不見了」),點不開。 - `library-open` 點一下用 AnyBot 自己的檢視器打開,跟聊天裡的檔案卡片一樣(Markdown 排版、表格、圖片、PDF、錄音影片、程式碼…),右上「用其他 App 打開」、下載、關閉。 +- `library-phone` 手機的所有檔案(首頁上面一排的「檔案」):上面搜尋檔名和種類分頁(全部、圖片、文件、程式碼、表格、影音、其他,只列有的,帶數量),圖片排成三欄格子(捲到才載縮圖),其他一列一個(圖示、檔名、Bot・多久前・大小);不在原處的變淡、寫「不見了」、點不開;點一個用手機的檢視器打開。 ## 使用者怎麼到 - 側邊欄最左邊那一欄第五個(資料夾圖示,滑過寫「所有檔案」),在任務下面。 @@ -28,6 +29,7 @@ - **放七個檔案**(covers `library-gather`):從手機附上七個檔案送出,再刪掉其中一個存在 AnyBot 裡的那份。指令:`D=$(mktemp -d) && cp cat-1.png "$D/貓一.png" && cp cat-2.png "$D/貓二.png" && printf '# 發布計畫\n\n- 11/22 上線\n' > "$D/release-notes-v4.md" && printf '日期,用量\n11/20,3610\n' > "$D/用量.csv" && printf 'print("hello")\n' > "$D/hello.py" && printf 'x' > "$D/舊的.txt" && (cd "$D" && zip -q 封存.zip hello.py) && for f in 貓一.png 貓二.png release-notes-v4.md 用量.csv hello.py 舊的.txt 封存.zip; do $CTL phone upload '#file' "$D/$f" && $CTL phone wait-text "$f" --in '#chips' 20; done && $CTL phone send 這些檔案先放著 && $CTL phone wait-text 'FAKE-MODEL 回答:這些檔案先放著' --in '#msgs' && SCR=$(sed -n 's/^SCR=//p' target/verify-anybot/current/run.env) && rm -f "$(find "$SCR/data/attachments" -name '*舊的.txt' | head -1)" && $CTL api GET /api/bots/1 --jq '[.messages[].attachments[]?.name]'`。看到:API 列出七個檔名;舊的.txt 在 AnyBot 裡的那份刪掉了。 - **格子、分類、不見了**(covers `library-place`、`library-kinds`、`library-view`、`library-gone`):從側邊欄的資料夾按鈕打開。指令:`$CTL phone stop && $CTL stop && ABV_ALLOW_WINDOW=1 $CTL desktop-shot library ANYBOT_SHOT_REAL=1 ANYBOT_SHOT_SIZE=1200x820 ANYBOT_SHOT_FRAMES=520 'ANYBOT_SHOT_CLICK=26,236@440'`。看到:「所有檔案」視窗,左欄「所有檔案 7」「最近 7 天 7」、「Bot」下「驗證小幫手 7」;上面「全部 7、圖片 2、文件 2、程式碼 1、表格 1、其他 1」(沒有影音);三張一排撐滿,兩張貓是縮圖,其他寫 MD、CSV、PY、TXT、ZIP;舊的.txt 灰字、紅字「不見了(檔案已經刪掉或搬走)」。 - **清單、打開**(covers `library-view`、`library-open`、`library-gone`):按「清單」,再按 release-notes-v4.md 那列。指令:`ABV_ALLOW_WINDOW=1 $CTL desktop-shot library-list ANYBOT_SHOT_REAL=1 ANYBOT_SHOT_SIZE=1200x820 ANYBOT_SHOT_FRAMES=500 'ANYBOT_SHOT_CLICK=26,236@440;1033,127@470' && ABV_ALLOW_WINDOW=1 $CTL desktop-shot library-open ANYBOT_SHOT_REAL=1 ANYBOT_SHOT_SIZE=1200x820 ANYBOT_SHOT_FRAMES=540 'ANYBOT_SHOT_CLICK=26,236@440;1033,127@470;450,267@500'`。看到:視窗沒有跳動;每列「名稱……驗證小幫手 · 今天 HH:MM · 31 B」,舊的.txt 右邊紅字「不見了」;release-notes-v4.md 在 AnyBot 的檢視器打開:「發布計畫」「11/22 上線」,右上「用其他 App 打開」、下載、關閉。帳戶選單的「所有檔案…」、搜尋、選某個 Bot:靠自動測試和版面檢查。 +- **手機的所有檔案**(covers `library-phone`):在聊天附一張圖和一個 .md 送出,再到首頁「檔案」。指令:`$CTL phone upload '#file' 圖.png && $CTL phone upload '#file' 行程.md && $CTL phone click '#b-send' && $CTL wait-api /api/bots/1 '.messages[-1].role == "assistant"' && $CTL phone click '[data-back]' && $CTL phone click '#quick [data-q="files"]' && $CTL phone wait '.lib-pic img[src]' && $CTL phone click '[data-lk="doc"]' && $CTL phone click '[data-ln="行程.md"]' && $CTL phone shot library-phone`。看到:「全部 2、圖片 1、文件 1」,圖片在格子裡有縮圖,行程.md 一列「驗證小幫手・剛剛・25 B」,點了打開內容。 - 自動測試:`cargo test app::library_ui::`、`cargo test layout_audit::`(「所有檔案」這一景)。 ## 陷阱 @@ -35,5 +37,4 @@ - 只列聊天裡記下的附件:Bot 在它電腦上做出來、沒有用 `send_file` 交的檔案不在這裡(請它交給你)。刪掉 Bot,它的檔案也不再列。 - 「不見了」只看檔案還在不在,不比內容;內容對不對看檔案卡上的「檔案核對」([deliver](deliver.md))。 - 螢幕電腦上看的是從大腦抓過來的副本:剛連上還沒抓完的暫時顯示「不見了」;大腦那邊刪掉了,這台的副本照樣在。 -- 手機還沒有「所有檔案」,只有每個對話的「資料庫」。 - (驗證)座標是 1200×820 的視窗;視窗大小一換,按鈕位置跟著換。 diff --git a/mobile/index.html b/mobile/index.html index d8d448a..5ed2c5c 100644 --- a/mobile/index.html +++ b/mobile/index.html @@ -580,6 +580,13 @@ textarea.field{min-height:96px;line-height:1.5} .tools .btn.once{background:color-mix(in srgb,var(--accent) 18%,transparent);color:var(--accent-ink)} .tools .btn.lock{background:var(--accent);color:var(--on-color)} .tools .btn.on{background:var(--primary);color:var(--on-primary)} +/* 所有檔案: a search, the kinds with their counts, pictures in a grid, the rest as rows. */ +.lib-top{position:sticky;top:0;z-index:2;background:var(--pane);padding:var(--sp-3) var(--sp-4) var(--sp-2)} +.lib-tabs{padding:0;position:static;background:none;margin-top:var(--sp-2)} +.lib-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:4px;margin:var(--sp-2) var(--sp-4) var(--sp-3)} +.lib-pic{aspect-ratio:1;border-radius:var(--r-m);overflow:hidden;background:var(--hover);padding:0} +.lib-pic img{width:100%;height:100%;object-fit:cover;display:block} +.item.gone{opacity:.5}.item.gone .v{color:var(--danger)} /* 日程: 即將執行, then a group a day — a row a time: when, what, how it went. */ .item.sch .sch-t{width:44px;flex:none;font-size:var(--fs-small);color:var(--text2);font-variant-numeric:tabular-nums;display:flex;align-items:center} .item.sch .av.sm{width:26px;height:26px}.item.sch .av.sm svg{width:26px;height:26px} @@ -1592,6 +1599,7 @@ function renderHome() { ``, ``, ``, + ``, ``, isOwner() ? `` : "", ].join("") : ""; @@ -3307,7 +3315,7 @@ async function settingsChanged() { } let listTimer = null; function stopListTimer() { clearInterval(listTimer); listTimer = null; } -const TITLES = {tasks: "任務", schedule: "日程", workflows: "工作流", routines: "例行任務", pages: "頁面", computers: "電腦", settings: "設定", general: "一般", me: "個人資料與用量", models: "模型", perms: "權限", integrations: "整合", vault: "保險庫", account: "手機與帳號", updates: "更新"}; +const TITLES = {tasks: "任務", files: "所有檔案", schedule: "日程", workflows: "工作流", routines: "例行任務", pages: "頁面", computers: "電腦", settings: "設定", general: "一般", me: "個人資料與用量", models: "模型", perms: "權限", integrations: "整合", vault: "保險庫", account: "手機與帳號", updates: "更新"}; async function renderList(arg) { const kind = arg.kind; $("list-title").textContent = TITLES[kind] || ""; @@ -3320,6 +3328,7 @@ async function renderList(arg) { if (kind === "me") return listMe(el); if (kind === "workflows") return listWorkflows(el, arg.wf); if (kind === "schedule") return listSchedule(el); + if (kind === "files") return listFiles(el); if (SETTINGS_PAGES.includes(kind)) { // (Drawn from what this phone has at once; read again behind it when it may be old.) if (!S.settings) { el.innerHTML = `
載入中…
`; await loadSettings(); } @@ -3330,6 +3339,50 @@ async function renderList(arg) { if (["computers", "integrations"].includes(kind)) listTimer = setInterval(async () => { await loadSettings(); if (cur().v === "list" && cur().arg.kind === kind) drawSettings(kind, true); }, 4000); } } +// ---------- 所有檔案 ---------- +// Every file the bots handed over or were given, across bots and conversations (from the +// attachments the chats keep, as on the computer): by kind, a search, pictures as a grid; a tap +// opens it in the viewer. A file moved or deleted since is greyed out and says 不見了. +const LIB = {kind: "all", q: "", files: null}; +const LIB_KINDS = [["all", "全部"], ["image", "圖片"], ["doc", "文件"], ["code", "程式碼"], ["sheet", "表格"], ["media", "影音"], ["other", "其他"]]; +const LIB_ICON = {image: "image", doc: "file-text", code: "terminal", sheet: "list-checks", media: "play", other: "file"}; +const fsize = (n) => !n ? "" : n < 1024 ? n + " B" : n < 1048576 ? Math.round(n / 1024) + " KB" : (n / 1048576).toFixed(1) + " MB"; +async function listFiles(el) { + const here = () => cur().v === "list" && cur().arg.kind === "files"; + if (LIB.files) drawFiles(el); else el.innerHTML = `
載入中…
`; + const v = await act("library", {}, false); + if (!here() || !v) return; + LIB.files = v.files || []; + drawFiles(el); +} +function drawFiles(el) { + const all = LIB.files || [], q = LIB.q.trim().toLowerCase(); + const byQ = all.filter((f) => !q || f.name.toLowerCase().includes(q)); + const count = (k) => byQ.filter((f) => k === "all" || f.kind === k).length; + if (LIB.kind !== "all" && !count(LIB.kind)) LIB.kind = "all"; + const shown = byQ.filter((f) => LIB.kind === "all" || f.kind === LIB.kind); + let h = `
${LIB_KINDS.filter(([k]) => k === "all" || count(k)).map(([k, l]) => ``).join("")}
`; + if (!all.length) h += `
還沒有檔案。
你傳給 Bot、Bot 交給你的檔案都會收在這裡。
`; + else if (!shown.length) h += `
沒有相符的檔案
`; + else { + const pics = shown.filter((f) => f.image && f.there), rest = shown.filter((f) => !(f.image && f.there)); + if (pics.length) h += `
${pics.slice(0, 120).map((f) => ``).join("")}
`; + if (rest.length) h += group("", rest.slice(0, 300).map((f) => { const b = bot(f.bot) || {}; return ``; }).join("")); + } + h += `
`; + el.innerHTML = h; + const qEl = $("lib-q"); + qEl.oninput = () => { LIB.q = qEl.value; const pos = qEl.selectionStart; drawFiles(el); const n = $("lib-q"); n.focus(); n.setSelectionRange(pos, pos); }; + el.querySelectorAll("[data-lk]").forEach((b) => b.onclick = () => { LIB.kind = b.dataset.lk; drawFiles(el); }); + el.querySelectorAll("[data-lf]").forEach((b) => b.onclick = () => openFile(b.dataset.lf, b.dataset.ln)); + // Thumbnails as they come into view (the brain's own small copies of the pictures). + const io = new IntersectionObserver((es) => es.forEach(async (e) => { + if (!e.isIntersecting) return; + io.unobserve(e.target); + try { const r = await api(base() + "api/preview/image?path=" + encodeURIComponent(e.target.dataset.thumb), {raw: true}); if (r.ok) e.target.src = URL.createObjectURL(await safeBlob(r)); } catch (_) {} + }), {root: el}); + el.querySelectorAll("img[data-thumb]").forEach((i) => io.observe(i)); +} // ---------- 日程 ---------- // What the bots are set to do, as on the computer's 日程: 即將執行 (each routine or workflow once, // at its next time), then day by day from three days back to a week ahead — what ran on its own diff --git a/src/app/library_ui.rs b/src/app/library_ui.rs index 2bcc1e5..f5be264 100644 --- a/src/app/library_ui.rs +++ b/src/app/library_ui.rs @@ -60,6 +60,24 @@ pub(super) fn library_kind(name: &str) -> &'static str { } impl App { + /// 所有檔案 for the phone: the same files, newest first (at most 500). + pub(super) fn library_json(&self) -> serde_json::Value { + let mut seen = std::collections::HashSet::new(); + let mut files = vec![]; + for b in &self.state.bots { + for m in b.messages.iter().chain(b.threads.iter().flat_map(|(_, m)| m.iter())) { + for a in &m.attachments { + if a.path.is_empty() || !seen.insert(a.path.clone()) { + continue; + } + files.push((m.at, serde_json::json!({"name": a.name, "path": a.path, "bot": b.id, "at": m.at, "bytes": a.bytes, "kind": library_kind(&a.name), "there": std::path::Path::new(&a.path).exists(), "image": a.image}))); + } + } + } + files.sort_by_key(|f| std::cmp::Reverse(f.0)); + serde_json::json!({"ok": true, "files": files.into_iter().take(500).map(|f| f.1).collect::>()}) + } + fn library_gather(&mut self) { let mut seen = std::collections::HashSet::new(); let mut files = vec![]; diff --git a/src/app/remote_ui.rs b/src/app/remote_ui.rs index 8a89cb9..44ef337 100644 --- a/src/app/remote_ui.rs +++ b/src/app/remote_ui.rs @@ -1506,7 +1506,7 @@ impl App { // model and computer, a new chat, regenerate) plus looking and small chat things; making, // changing or deleting bots, routines, memories, pages and settings stays the owner's. let admin_ok = match action { - "detail" | "settings" | "pages" | "search" | "export_bot" | "export_transcript" | "restart_bot" | "react" | "reply" | "resume" | "older" | "workflows" | "schedule" => true, + "detail" | "settings" | "pages" | "search" | "export_bot" | "export_transcript" | "restart_bot" | "react" | "reply" | "resume" | "older" | "workflows" | "schedule" | "library" => true, "bot" => b["key"].as_str() == Some("unread"), "box" => matches!(b["op"].as_str(), Some("wake" | "disk")), _ => false, @@ -1531,6 +1531,8 @@ impl App { // 工作流 on the phone: each one's steps in order, what starts it, how its runs went, and // the question it waits on — read here; run, stop, 繼續 and 停止 below. "workflows" => json!({"ok": true, "workflows": self.state.workflows.iter().map(|w| self.workflow_json(w)).collect::>()}), + // 所有檔案 on the phone: every file the chats keep, across bots and conversations. + "library" => self.library_json(), // 日程 on the phone: three days back to a week ahead — what ran on its own and how it // went, what is coming — and 即將執行 (each thing once, soonest first). "schedule" => { @@ -2846,6 +2848,21 @@ mod phone_act_tests { assert!(app.phone_act(&ctx, "workflow", &json!({"wf": 99, "do": "explode"}), "owner")["error"].is_string()); } + /// 所有檔案 on the phone: each attachment once (across bots and past conversations), newest + /// first, with its kind and whether it is still there. + #[test] + fn the_phone_reads_all_files() { + let (ctx, mut app) = demo(); + let b0 = app.state.bots[0].id; + let b1 = app.state.bots[1].id; + let att = |name: &str, path: &str| crate::attach::Attachment { name: name.into(), path: path.into(), ..Default::default() }; + app.state.bot_mut(b0).unwrap().messages.push(Message { at: 100, attachments: vec![att("a.png", "/nowhere/a.png")], ..Message::user("") }); + app.state.bot_mut(b1).unwrap().messages.push(Message { at: 200, attachments: vec![att("b.md", "/nowhere/b.md"), att("a.png", "/nowhere/a.png")], ..Message::user("") }); + let v = app.phone_act(&ctx, "library", &json!({}), "admin"); + let files: Vec<(&str, &str, bool)> = v["files"].as_array().unwrap().iter().filter(|f| f["path"].as_str().unwrap_or("").starts_with("/nowhere/")).map(|f| (f["name"].as_str().unwrap(), f["kind"].as_str().unwrap(), f["there"].as_bool().unwrap())).collect(); + assert_eq!(files, vec![("b.md", "doc", false), ("a.png", "image", false)]); + } + /// 日程 on the phone: the days around today and 即將執行, each thing once there. #[test] fn the_phone_reads_the_schedule() { diff --git a/src/remote.rs b/src/remote.rs index c1cf458..d28e9d9 100644 --- a/src/remote.rs +++ b/src/remote.rs @@ -1284,9 +1284,9 @@ pub(crate) fn lan_guard(action: &str, body: &Value, now: impl FnOnce() -> Value, // Looking; chats, pages and memories; bots made, imported (with no tools, grants, team or // running routines), deleted or restarted; models and keys; skills; signing in to ChatGPT; // signing a phone out; a workflow looked at, run, stopped or answered (its steps run with - // the bots' own settings, as when its schedule starts it); the 日程 — none of these - // moves a guard. - "search" | "detail" | "settings" | "pages" | "export_bot" | "export_transcript" | "import_bot" | "section_move" | "memory" | "app" | "group_chat" | "delete_bot" | "restart_bot" | "react" | "reply" | "resume" | "clear" | "delete_page" | "provider" | "device_remove" | "skill" | "chatgpt" | "workflows" | "workflow" | "schedule" => Guard::Keeps, + // the bots' own settings, as when its schedule starts it); the 日程, 所有檔案 — none of + // these moves a guard. + "search" | "detail" | "settings" | "pages" | "export_bot" | "export_transcript" | "import_bot" | "section_move" | "memory" | "app" | "group_chat" | "delete_bot" | "restart_bot" | "react" | "reply" | "resume" | "clear" | "delete_page" | "provider" | "device_remove" | "skill" | "chatgpt" | "workflows" | "workflow" | "schedule" | "library" => Guard::Keeps, // An action this list doesn't name is refused, not let through (import_bot slipped by // that way with a file's 「team」). A new one has to be put on one side or the other. _ => Guard::Unknown,