手機補上「所有檔案」:首頁上面一排多一格「檔案」,跨 Bot、跨對話的附件收在一起:搜尋檔名、種類分頁帶數量、圖片三欄格子、其他一列一個,點一個用手機的檢視器打開,不見了的變淡。
- 大腦: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 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Uirha2uBHmbnuWBhNzjbJm
This commit is contained in:
parent
89fb6a54d2
commit
c8c84f971a
|
|
@ -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 供應商與模型)
|
||||
|
||||
|
|
|
|||
|
|
@ -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 的視窗;視窗大小一換,按鈕位置跟著換。
|
||||
|
|
|
|||
|
|
@ -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() {
|
|||
`<button data-q="workflows">${ic("workflow", 15)} 工作流</button>`,
|
||||
`<button data-q="routines">${ic("alarm-clock", 15)} 例行任務 <b>${routines}</b></button>`,
|
||||
`<button data-q="pages">${ic("file-text", 15)} 頁面 <b>${S.pages.length}</b></button>`,
|
||||
`<button data-q="files">${ic("folder", 15)} 檔案</button>`,
|
||||
`<button data-q="computers"><span class="st" style="background:${on ? "var(--ok)" : "var(--text4)"}"></span> 電腦 <b>${on}/${comps.length}</b></button>`,
|
||||
isOwner() ? `<button data-q="settings">${ic("settings", 15)} 設定</button>` : "",
|
||||
].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 = `<div class="empty">載入中…</div>`; 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 = `<div class="empty">載入中…</div>`;
|
||||
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 = `<div class="lib-top"><input class="field" id="lib-q" placeholder="搜尋檔案名稱" value="${esc(LIB.q)}" enterkeyhint="search"><div class="tabs lib-tabs">${LIB_KINDS.filter(([k]) => k === "all" || count(k)).map(([k, l]) => `<button data-lk="${k}" class="${LIB.kind === k ? "on" : ""}">${l} ${count(k)}</button>`).join("")}</div></div>`;
|
||||
if (!all.length) h += `<div class="empty">還沒有檔案。<br>你傳給 Bot、Bot 交給你的檔案都會收在這裡。</div>`;
|
||||
else if (!shown.length) h += `<div class="empty">沒有相符的檔案</div>`;
|
||||
else {
|
||||
const pics = shown.filter((f) => f.image && f.there), rest = shown.filter((f) => !(f.image && f.there));
|
||||
if (pics.length) h += `<div class="lib-grid">${pics.slice(0, 120).map((f) => `<button class="lib-pic" data-lf="${esc(f.path)}" data-ln="${esc(f.name)}" title="${esc(f.name)}"><img alt="" loading="lazy" data-thumb="${esc(f.path)}"></button>`).join("")}</div>`;
|
||||
if (rest.length) h += group("", rest.slice(0, 300).map((f) => { const b = bot(f.bot) || {}; return `<button class="item ${f.there ? "" : "gone"}" ${f.there ? `data-lf="${esc(f.path)}" data-ln="${esc(f.name)}"` : "disabled"}>${ic(LIB_ICON[f.kind] || "file", 19)}<div class="mid"><div class="k">${esc(f.name)}</div><div class="v">${f.there ? "" : "不見了 · "}${esc([b.name || "", ago(f.at), fsize(f.bytes)].filter(Boolean).join(" · "))}</div></div></button>`; }).join(""));
|
||||
}
|
||||
h += `<div style="height:calc(var(--safe-b) + 24px)"></div>`;
|
||||
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
|
||||
|
|
|
|||
|
|
@ -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::<Vec<_>>()})
|
||||
}
|
||||
|
||||
fn library_gather(&mut self) {
|
||||
let mut seen = std::collections::HashSet::new();
|
||||
let mut files = vec![];
|
||||
|
|
|
|||
|
|
@ -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::<Vec<_>>()}),
|
||||
// 所有檔案 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() {
|
||||
|
|
|
|||
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Reference in New Issue