Commit Graph

497 Commits

Author SHA1 Message Date
王性驊 12c9944dee Server voice service: Whisper on the brain's own server, checked for real
`make server` now asks whether to run a voice service there (and the
kept-setup menu can add or remove it): speaches, Whisper
large-v3-turbo on the CPU, behind the brain only (no published port),
enabled with COMPOSE_PROFILES=voice so it composes with the Tailscale
and LAN files. The brain sees ANYBOT_VOICE_URL, fills 設定 › 語音 › 聽
with it once (what is changed later stays), and asks the service for
its model at each start: this build downloads only when asked (it has
no PRELOAD_MODELS, and the 0.8.2-cpu tag is older still, so the image
is pinned by the digest that was tested).

Tested end to end on 12 CPU cores with the compose file itself: first
start 404 s to download the model, later starts 1 s; 11 s of Mandarin
mixed with English (Chrome, Tesla FSD) in 3.4–3.6 s, every word right.
small is three times faster and slipped a character. Reading aloud
stays with another service: speaches can't say Chinese (its espeak has
no "zh"), English works.

From the same test: a service that answers 200 with no sound is now an
error said in words (it was played as silence), Whisper's ASCII
punctuation in Chinese becomes full-width (,?!), and speaches'
"not installed locally" says the model is still on its way.
2026-11-11 00:14:50 +08:00
王性驊 40d1d9707a Voice: its own 設定 › 語音, run by the brain for every screen and the phone
Voice was three implementations that broke on their own: speech to text
borrowed the OpenAI key (so with only Grok set up the mic recorded,
then failed), OpenAI's models it hard-coded stop on 2027-02-26, read
aloud was macOS `say` or espeak-ng (silently nothing on Windows, where
espeak isn't installed), and the phone used the browser's own
recognition. Now:

- 設定 › 語音 has 聽 and 說, each a service: off, OpenAI-compatible
  (OpenAI, Groq, a Whisper server of your own: the address decides),
  xAI or ElevenLabs. An empty key borrows 設定 › 模型's for the same
  service. Each side says 可以用 or what it lacks; 聽 has 試試看
  (record a sentence, show what was heard), 說 has 試聽 and the voice
  list. speech.rs does the calls; xAI's both ways were checked for real
  (Mandarin read, then heard back, in Traditional characters).
- The brain does it all: the phone POSTs its recording (MediaRecorder)
  to /api/voice/transcribe, screens to /api/sync/voice/transcribe;
  answers come back as MP3 from …/voice/speech and are played on the
  device (rodio; an <audio> on the phone, 「唸出來」 in a message's
  menu). Keys stay on the brain (the voice keys are redacted for
  screens like the others).
- No service, no voice anywhere: the mic, 語音聊天, 會議錄音 and 朗讀
  only appear once 聽 (and 說) can be called; the phone's state says
  which. Without voice the send arrow just rests where 語音聊天 was.
- 會議錄音 is uploaded to the brain, which turns it into text in the
  background and hands it to the bot itself: a meeting is longer than
  the 35 s the account lets a request wait, and a brain on a server has
  no window (the jobs are polled in background()).
- Recognisers answer Mandarin in Simplified: in a Traditional Chinese
  window or phone the text becomes Traditional with Taiwan wording.
- Older saves: whoever had an OpenAI key keeps voice input (聽 =
  OpenAI); everyone else starts with it off. Bots' macOS voice names
  are cleared. 對話詳細資訊's 加入會議 started plain voice input; it
  starts a meeting now.
2026-11-10 22:58:18 +08:00
王性驊 70b208e1bd Voice input: xAI when there's no OpenAI key, and in Traditional Chinese
Speech to text only knew OpenAI's key, borrowed from the AI providers,
so with Grok alone set up the mic recorded and then failed for a key
nobody had. Now OpenAI's key is used when there is one, else xAI's
POST /v1/stt (options before the file, the file last; checked with a
real Mandarin clip). Without either, the mic and 語音聊天 say so before
recording instead of after.

xAI answers Mandarin in Simplified characters ("zh-cn") and OpenAI
often does too: in a Traditional Chinese window the text becomes
Traditional with Taiwan wording (zhconv, like the bots' replies).
Japanese, which has kana, keeps its own kanji.

A stopgap: voice moves to the server next (one engine for every
screen, set up in its own 語音 settings).
2026-11-10 22:38:41 +08:00
王性驊 04e744aa14 make update: pull, rebuild and restart what this computer runs
Updating meant knowing which of three ways applied: run install.sh
again (app, hands), anybot setup --refresh-service (the background
service), or git pull plus docker compose up --build in deploy/server.
deploy/update.sh does it per part, and make has a target for each:

  make update          whatever is installed here (server, app, hands)
  make update-app      swap the app; restart its background service
  make update-hands    Linux: swap, restart the systemd unit, check it
                       is still up 3 s later (a crash loop looks active
                       for a moment)
  make update-server   docker compose up -d --build, as .env sets it up

Each pulls first (--ff-only; a conflict stops it rather than installing
the old version), and carries on with the new deploy/update.sh when the
pull changed it. PULL=0 installs this checkout as it is. Small Linux
machines compile one crate per 2 GB, like install.sh. An open app
window is told to reopen; it keeps the old copy until then.
2026-11-10 22:00:48 +08:00
王性驊 81ba110ca5 指示: last in the prompt, under its own heading
A bot's 指示 went into the system prompt bare, in the middle, with
several paragraphs of the app's own rules after it, so the model gave
it little weight. It now comes last, after the language line, as
「使用者給你的指示(優先遵守):」 followed by the text.

The field's help said 「Bot 應該記得的事、說話風格…」, the same as
記得的事 below it, and its example was 「用繁體中文回答」, which the
language setting already does better (it also converts the replies).
It now says what it is for — the bot's role, rules and way of talking
— and points to 記得的事 and 設定 › 一般 › 語言; the example is about
style instead.
2026-11-10 22:00:40 +08:00
王性驊 89dbb243dc Chat: a 回到底部 button once you've scrolled far up
The desktop transcript only followed new messages while it was already
at the bottom; scrolled up through a long chat, the way back was the
wheel. Past 400 points above the newest message (the phone's
threshold), a round ↓ fades in over the bottom middle of the chat, just
above the composer. A press scrolls smoothly to the end and keeps
pulling for up to a second, so words streaming in meanwhile don't leave
it short; then stick-to-bottom takes over again and the button fades
out.

ANYBOT_SHOT_VIEW=longchat fills the chat with 60 messages, to check it
with ANYBOT_SHOT_SCROLL / ANYBOT_SHOT_CLICK.
2026-11-10 22:00:34 +08:00
王性驊 7edc05ba9b setup --refresh-service: keep the launcher executable
systemd starts ~/.local/bin/anybot-run directly. install_systemd set 0755,
the refresh path rewrote the file without it, and the unit then died with
status=203/EXEC in a restart loop (seen on a Ubuntu hands box: service
enabled, binary fresh, nothing running). One make_executable for both.
2026-11-10 14:46:30 +08:00
王性驊 983a2c2f02 install.sh: stop dying on macOS at the compile step
"$RUST_HOST;" is one variable name to macOS /bin/sh (bash 3.2): it
swallows the first byte of the full-width punctuation, so with set -u a
plain \`sh install.sh app\` aborted at [3/4] with "RUST_HOST\*: unbound
variable". Four such lines in install.sh, one in the server setup.
Brace them, add make lint-sh (sh -n for every shipped script plus a
check for this pattern) so it stays fixed.
2026-11-10 14:32:56 +08:00
王性驊 818e551e6b One computer-and-phone still, and the README stops advertising its style guide
The phone shot stood alone as a 300px column, so it read as cut off at
one side. The desktop approval card and the phone sign-in are now one
composite (docs/demo/composite.py), and every README still is dark and
2x-captured, so the page reads as one product.

The document table lists user-facing documents; the README style notes
stay in docs/ for whoever edits the README.
2026-11-10 14:21:06 +08:00
王性驊 81449be33d Readmes: the shape top-starred projects use, and no more overflow
Studied OpenClaw, ollama, Dify, AnythingLLM, Meetily, LobeHub, n8n:
logo, one-line pitch, language bar, badges, hero shot, install in the
first third as fenced blocks, quick start, architecture, a two-column
document table, short closing sections.

Both READMEs now follow that. What was breaking the page: a three-column
install table holding a 90-character URL (URLs cannot wrap, so the table
pushed the page sideways) and a 1414px PowerShell line inside a code
block. Install moved to code fences, the long line is wrapped, the
Windows hands snippet is one statement per line, and screenshots are
re-taken at 2x and downscaled to 960 px so they fit the ~980 px document
column and stay sharp on Retina. docs/readme-style.md records the rules
and how to check the render locally (marked + headless Chrome, measure
scrollWidth and pre.scrollWidth).
2026-11-10 14:14:27 +08:00
王性驊 5cdf54cdc4 Quick install: app, server, and headless hands, one line each
The top block now gives the three roles their own paste line (Windows
included), matching what install.sh --print reports. Hands takes the URL
and the one-time code from "Add a computer".
2026-11-10 14:10:52 +08:00
王性驊 9443a55d90 Lead with one line you can paste
Both READMEs now open with a quick install: curl… | sh on Mac and Linux,
irm… | iex on Windows, then where the key goes. The role table moved
below it for the server, hands, and agent paths.
2026-11-10 14:10:38 +08:00
王性驊 dba6df198e Readmes: lead with the picture, and take the pictures fresh
Both languages now open with what AnyBot does, in plain words, before
the install table and the flow diagram. The four stills are re-taken
from this build (shots/readme/) and tracked, since the READMEs point at
them; the old shots/ stayed ignored.
2026-11-10 14:07:02 +08:00
王性驊 f006aeee35 One installer for every platform, first run included
install.sh now covers every common Linux distro (apt, dnf, yum, pacman,
zypper, apk, xbps), macOS on arm64/x86_64, and hands off to install.ps1
under Git Bash. install.ps1 + install.cmd give Windows a double-click.
Autostart: systemd user unit on Linux, launchd on macOS, Task Scheduler
on Windows. A terminal guides the role choice and the first key or bot;
agents get --print JSON and ANYBOT_NONINTERACTIVE=1 with env seeding.
`加一台電腦` shows the Windows and the Mac/Linux line together.
2026-11-10 14:07:01 +08:00
王性驊 a514b33fb3 Bug sweep: gates, relay 2FA, Windows input, snapshots, encodings
Permissions and reach
- a file leaving a computer passes the same questions as reading it;
  "looking" shell commands that do more than look ask first
- a symlink out of the work/sealed folder counts as outside it
  (real paths, not just lexical ones); the search walk skips links
- web_fetch and skill_install read the public web only: localhost, the
  LAN and cloud metadata are refused, at every redirect
- preview shows a file without running it; browser_upload may ask
- vault: logins no longer match across shared suffixes (pages.dev,
  com.tw, ...); registrable_domain knows public suffixes
- axwrite: found elements are retained (use-after-free)

Relay
- replacing or turning off 2FA needs the current code (rate-limited);
  new recovery codes only count once enrollment is verified
- a removed computer loses its socket and its `call` access
- a site name taken by another account answers 409
- RELAY_TRUST_PROXY: the login lock counts the caller's address, not
  the proxy's (compose files and README)
- httpd: half a body is not a request

Desktop
- sign-in, join and restore work with 2FA on (code field; --serve reads
  ANYBOT_ACCOUNT_CODE; the setup wizard points to a pairing code)
- Windows: text was typed twice; modifiers are held through click, drag
  and scroll; horizontal scroll; screen control is no longer refused
- a recording that hits the limit is transcribed, not thrown away
- bot's computer: a new home volume restores the snapshot; a snapshot
  is read through before the home is wiped; a failed volume removal
  stops reset/restore
- events of a stopped turn no longer land in the next one; each channel
  message gets a turn of its own
- saving a bot's settings keeps what it got meanwhile (three-way merge);
  a save file that cannot be read is kept
- pages in Big5/GBK/Shift_JIS are read in their own encoding
  (encoding_rs); osascript output past 64 KB no longer stalls
- pick_tab keeps a job's own non-http tab; pictures larger than the
  texture limit are fitted; the auto-update time field takes typing
- skills live in <data>/skills; memories are unnumbered in the prompt;
  the phone may skillify and skill_install

CI
- the test step fails when the tests fail (it piped into tail)

Tests: anybot 268 passed, 27 ignored; relay 16 passed; clippy unchanged.
Not run: Windows on a real machine (win.rs type-checked alone), the
Docker paths of the bot's computer, the live accessibility writes.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-11-10 11:46:17 +08:00
AnyBot Dev cf1d4d618c No job gets stranded on a blank tab
- pick_tab: a page that went somewhere (http) beats about:blank at every
  rank — own live tab > free live tab > own blank > free blank. Headless
  Chrome boots on about:blank and a job that claims it was pinned there;
  desktop behaviour unchanged (the front tab is a live page anyway)
- the tabs list shows a page's url when its title is empty, so the model
  never reads a faceless '1. (current)' line

Live proof (headless Chrome + qwen brain, same scenario that failed
before): reads the number through the browser path, 172s -> 92s, and the
model now flags the page's own link as untrusted (S3 working)
2026-11-09 21:17:12 +08:00
AnyBot Dev 61c38dca66 Live e2e wiring: real-brain shell + browser turns (env-gated test, ANYBOT_BROWSER_FLAGS dev flags)
- agent live test drives real OpenAI-compatible endpoints (ANYBOT_LIVE_BASE/KEY/MODEL/PROMPT)
- specs assembled like the app (web::specs_for) so the model truly sees the browser tool
- botbrowser honors ANYBOT_BROWSER_FLAGS (containers: --no-sandbox --headless=new)
2026-11-09 21:11:11 +08:00
AnyBot Dev 6f8568d16b A live-model e2e: any OpenAI-compatible brain must drive a shell turn (gated by env) 2026-11-09 20:57:32 +08:00
AnyBot Dev ef44db4645 Plan: M5 complete (C6, P5, C5, P7+C8, C9 engine) 2026-11-09 20:51:33 +08:00
daniel wang 861bc59c54 Merge c9/windows: Win32 input + screenshot engine (C9, engine) 2026-11-09 20:50:44 +08:00
AnyBot Dev f829957b75 Windows has hands now (C9, engine)
- src/win.rs: the same mac:: API the harness drives, on Win32 —
  SendInput mouse (absolute, multi-click, drag, wheel), keyboard
  (macOS key codes mapped to VK, unicode text, modifiers), GDI BitBlt
  screenshot, WindowFromPoint/GetForegroundWindow for window_at and
  front_app; compiles clean against the windows crate for
  x86_64-pc-windows-msvc (API-checked, no hardware here)
- the control tree was already speaking agent-desktop-windows
- intents answer honestly on Windows ("捷徑目前是 macOS/Linux 的")
  and don't advertise themselves from the facts line
- CI: a report-only Windows compile job for wherever a Windows runner lives
- needs a real machine: multi-monitor coordinates, high-DPI, UIA-number
  clicks, Chinese input
2026-11-09 20:50:44 +08:00
daniel wang b79dbe7501 Merge p7/skills: skill files + install + skillify (P7+C8), restored prompt lines 2026-11-09 20:46:03 +08:00
AnyBot Dev 7d61de83a8 Skills you can hold in your hand: skill files, install, 示範即教學 (P7+C8)
- a skill is now a .md file (front matter + instructions + an optional
  steps fence): <data>/skills/ is read at every start, files win;
  install from the CLI (anybot --install-skill <path|url>) or from the
  phone (設定 › 整合 › 技能 › 從網址安裝), delete takes the file with it
- skillify (C8): long-press your own message in the chat → 教我做 —
  the last turn that answered it becomes a replayable skill from the
  oplog: only steps that succeeded, looking steps and numbered clicks
  filtered (numbers die with their screenshot)
- a browser replay step that doesn't fit gets one fresh page read
  before the bot takes over, same courtesy the screen steps had (C8)
- three example skills in skills/, the format guide in docs/skills.md
- the prompt lines that merges had eaten: menu_click/fill_form/wait_for
  (C3), memory recall + search_documents (P6) — the tools were there,
  the model just wasn't told about them
2026-11-09 20:46:02 +08:00
daniel wang d9732821cf Merge c5/fast: parallel look + remote-lane ladder (C5) 2026-11-09 20:37:27 +08:00
AnyBot Dev 0f78150a1a Seconds and bytes on the environment lane (C5)
- look() runs the picture and the control tree at once (two doors of
  the system, about the same wait): a third of a second back on every
  Mac step; the AX retry path keeps its one-more-look behaviour
- the device lane (this computer serving a remote brain through the
  relay) encodes screenshots on a tighter ladder (70/60/50 where the
  local one starts at 85): a quarter less to carry, and the test
  proves the same picture really comes out smaller
- no wire format changes: same JPEG bytes, just lighter
2026-11-09 20:37:27 +08:00
daniel wang b6d38aca74 Merge p5/security: SECURITY.md + threat model, state.json 0600 (P5) 2026-11-09 20:34:01 +08:00
AnyBot Dev 410aa75690 Say what the walls are: SECURITY.md + threat model (P5)
- SECURITY.md (zh) + docs/en/security.md: trust boundaries (app /
  box / Docker API / relay / providers), where every secret lives and
  what a thief holding that thing actually gets, the injection layers
  with an honest limit (no absolute defense — the human at the gate
  is the last line), the network surface, the known-limits list and
  hardening advice
- state.json is written 0600: it carries model keys, and now says so
  with its permissions like the vault's key file
- README (zh + en) link it; reporting = private security advisory
2026-11-09 20:33:56 +08:00
daniel wang ce1ed6aea2 Merge c6/intents: shortcuts before GUI (C6) 2026-11-09 20:30:38 +08:00
AnyBot Dev 0884ec736c Shortcuts before GUI (C6): the one-step doors, registered
- intents.rs: volume / wifi / lock / dark / trash / eject as named
  shortcuts — the model picks a name, the script is built from
  constants and checked numbers ("volume set 40; rm -rf /" is not a
  thing: args are grammar-checked before any shell sees them)
- the computer tool gains action=intent {intent_name, intent_arg}:
  one call where the bench measured 9 steps and 2 minutes of GUI
- the computer's facts line advertises the shortcuts each machine
  really has (Mac 6, Linux desktop 5, headless box 0 — nobody hears
  a box's volume), so the prompt cache carries the knowledge for free
- scripts self-dispatch (uname): osascript/networksetup/pmset on Mac,
  pactl/amixer/nmcli/loginctl/gsettings on Linux, honest failure text
- system prompt: 有捷徑先捷徑,捷徑失敗才回 GUI
- tests: the injection grammar, the availability matrix, a real run
2026-11-09 20:30:38 +08:00
AnyBot Dev 5f7efd7dba Plan: P6 complete (step 2: embeddings + document shelf) 2026-11-09 20:23:38 +08:00
daniel wang 9d14a369e2 Merge p6/embed: local embeddings + document shelf (P6 step 2) 2026-11-09 20:23:38 +08:00
AnyBot Dev f7eb5dbcab Meaning beside the words: local embeddings + a document shelf (P6, step 2)
- embed.rs: vectors from the person's own Ollama (/api/embed), model
  auto-found among installed ones (bge-m3, nomic-embed-text…), off by
  absence — no Ollama is a normal state: every search still answers
  with words, the toggle lives in 設定 › 一般
- memories grow a vec column; recall() is now hybrid: trigram FTS,
  two-character windows for Chinese, cosine over the shelf, merged by
  reciprocal rank — 「那篇講語法的筆記」 finds text that never says 筆記
- docindex.rs: the person's folders (their 文件 by default, add more in
  設定 › 一般), text-shaped files chunked into SQLite + FTS, refreshed
  by mtime, gone files leave; one background thread does it all — the
  turn never waits on embeddings
- one tool for it: search_documents {query, limit} — reads, no approval
- 251 tests: a real temp folder swept, answered, and swept again after
  deletion; offline Ollama tested as the normal state it is
2026-11-09 20:23:35 +08:00
AnyBot Dev 9ec47d2067 Plan: M4.5 done (P6 step 1) 2026-11-09 18:15:24 +08:00
daniel wang 58e8a299af Merge p6/memory: searchable memory + event log (P6 step 1) 2026-11-09 18:15:24 +08:00
AnyBot Dev bbd677b050 Memory, searched not carried: FTS index + event log (P6, step 1)
- store.rs grows a memories table + FTS5 (trigram) index: bot facts and
  the person's shared lines (bot 0), no cap — state.json's 200-item list
  stays the source that mirrors sync and the 設定 list; the index is its
  searchable superset, best-effort as always
- queries answer in Chinese: phrase hits (FTS), then words inside lines —
  CJK queries cut into two-character windows, lines scored by how many
  they contain (「有没有靠窗」 finds 「我喜歡靠窗的座位」)
- every finished turn writes one event line (ask → answer) nobody's
  asked to write: 「我上個月說的那個報表」 answers from months back
- the turn's prompt carries the 14 memories that answer *this* request
  (no index yet: the list itself, the old behavior); remember/forget and
  the UI's 忘記 keep the index in step with the list
- embedding (Ollama) and document indexing land on this same table next
2026-11-09 18:15:24 +08:00
daniel wang 6b5c9ccf49 Merge h2/browser-tools: prompt speaks the one-tool shape (H2/H3) 2026-11-09 18:12:18 +08:00
AnyBot Dev 9b68017a19 System prompt speaks the one-tool shape (H2 follow-up)
- 「網頁上的事一律用 browser 一個工具」: the guidance lines now name
  action=open/read/click/type/table/find/wait/download and action=profiles —
  the model reads one vocabulary in the system prompt, the schema and the
  loop-guard messages (browser_read/browser_open mentions gone from those)
- H3, light: usage rules were already in the system prompt (and C1 caches
  the tools block too, so moving descriptions there saves little) — the
  browser schema shed its duplicated safety sentence to the click line;
  wholesale description-slimming deliberately not done: the guidance that
  reads as noise is what keeps a small model out of trouble
2026-11-09 18:12:18 +08:00
daniel wang 4f3f096e37 Merge h2/browser-tools: one browser tool (H2) 2026-11-09 18:11:36 +08:00
AnyBot Dev 6f660dd15d One browser tool: 25 schemas → 2, actions like the CUA prior (H2)
- browser {action: open|read|elements|find|table|screenshot|click|hover|
  type|press|select|scroll|wait|tabs|back|upload|download|pdf|dialog|eval|
  profiles|fill} — the shape models are trained on (Anthropic CUA, OpenAI CUA)
- vault fills ride on it: fill {kind: login|card|contact, id}; vault_list
  stays its own tool; the fills' approvals (every use asks, the model never
  sees the secret) are untouched — expand happens at the model-output
  boundary, so oplog, approvals, replay, remote limbs keep internal names
- web keeps {web_fetch, browser}; the eighteen browser_* and the three
  fill_* schemas leave the model's view (−48% schema text, −58% counting
  the old web trio; 25 tools → 2)
- tests: every action maps to a real internal tool, every internal tool is
  reachable from the one schema
2026-11-09 18:11:36 +08:00
daniel wang 151084f858 Merge c/phone-account: device list + 2FA setup on the phone 2026-11-09 18:08:51 +08:00
AnyBot Dev b4e4bf67e7 Phone: device list with per-device kick, 2FA setup sheet (C finish)
- 帳號 › 登入的裝置: every signed-in device with its last use; tap a device's
  id to sign just that one out; 全部登出 ends every session, this phone
  included — the stolen-session story ends on one page, on the phone
- 帳號 › 兩步驗證: enroll (secret + recovery codes shown once, code confirms),
  disable (proves the code); the login screen's second step landed with S2
- relay: POST /relay/sessions/drop {id} — a session is named by the first 8
  hash characters its row shows; kicking the phone you hold tells the app to
  sign itself out (was_self)
2026-11-09 18:08:51 +08:00
AnyBot Dev 4acfd39551 Plan: M4 done (P2/S2/S5 ✅, P4 step 1) 2026-11-09 18:03:46 +08:00
daniel wang 86f193e76d Merge p4/sqlite: SQLite audit trail, queryable history (P4 step 1) 2026-11-09 18:02:56 +08:00
AnyBot Dev bbbe494dae SQLite layer: the audit trail becomes queryable history (P4, step 1)
- src/store.rs: bundled SQLite (WAL) in the data folder; every oplog record
  is mirrored into an audit table — turns, model calls, tools with their
  arguments and end statuses, queued messages, stops
- side-car by design: state.json stays the app's truth (one struct, written
  atomically); the mirror is best-effort — an audit that never breaks a turn,
  and a timeline that answers for 30 days, not just for the running turn
- /api/bots/<id>/audit now reads the trail (phone's 稽核 tab gains history)
- retention: rows older than KEEP_DAYS are deleted on open
- groundwork for memory/RAG (P6) on the same layer; state.json itself moves
  in step 2 with the memory tables (the app keeps reading State as a struct)
2026-11-09 18:02:56 +08:00
AnyBot Dev 38707ccd72 wip: sqlite audit trail 2026-11-09 18:00:56 +08:00
daniel wang d490b9d94d Merge s5/audit: audit timeline on the phone (S5) 2026-11-09 17:59:26 +08:00
AnyBot Dev f4c135a98b Audit timeline: what this turn did, on the phone (S5)
- oplog gets wall-clock times on tool records (serde-default: old logs read
  fine), and OpLog::timeline turns the machine log into a story: per turn —
  the prompt, model calls (retries counted into one line), every tool with
  the arguments it ran with and its status (等核准/進行中/完成/被拒絕/失敗),
  messages typed mid-turn, stop, outcome
- GET /api/bots/<id>/audit (owner/admin; members' allow-list untouched)
- 對話詳細資訊 gains a 稽核 tab: newest turn first, running tool shows
  進行中…, an approval gate shows as 等核准 — the phone can answer the question
  'what is my bot doing right now, exactly', step by step
- the log stays the machine format recovery reads; the timeline is derived
2026-11-09 17:59:26 +08:00
daniel wang f2bf838e6d Merge p2/english: English entry point (P2) 2026-11-09 17:56:16 +08:00
AnyBot Dev 7cf8e00fdf English entry point: README.en.md, docs/en/*, demo recording guide (P2)
- README.en.md: full English front door (install table, quick start,
  deployment, security-in-one-paragraph, license) + a positioning table
  against OpenClaw / OpenHands / Khoj / UI-TARS
- docs/en/{architecture,install,multi-device,protocol}.md: faithful English
  summaries of the Chinese docs, each linking to the canonical version
- docs/demo/README.md: how to record the GIF/MP4 the README reserves space for
- language switch line at the top of the Chinese README
2026-11-09 17:56:16 +08:00
daniel wang 0ca55e695d Merge s2/relay: relay 2FA + argon2id (S2) 2026-11-09 17:52:42 +08:00