7b42e404f5f656d7bfb4aa5c7ddbcd1031264a86
7
Commits
| Author | SHA1 | Message | Date | |
|---|---|---|---|---|
|
|
133cd35107 |
agent-office: Settings pickers read their value, keep open on overscroll, and the page's scrollbars are magpie's thin thumb (#778)
The three Settings pickers' buttons are labelled by the label and their
own value (aria-labelledby="lblScene optScene"), so they read "Scene
Office" again as the <select> did. .picker-list gets
overscroll-behavior: contain, so wheeling past a list's end no longer
scrolls #settings and closes it, and a #settings scroll in the frame a
picker opens repositions the list instead of closing it. The page's
scrollbars take magpie's thin thumb (8px, --faint, --muted on hover,
the same as magpie's Mac rule for pages), with --faint read from the
host's --magpie-faint token. Fixes #773. By frederick-wang.
Run on mote at c7ecc7a6 (Bun 1.4.2, HOME=mktemp -d):
packages/agent-office bun test 183 pass, 0 fail; bun scripts/check.mjs
exit 0; packages/agent-office stamp-page.mjs --check exit 0.
A Playwright script of the reviewer's own against the standalone page
(bin/agent-office.mjs --no-open, 600x520, chromium and webkit, light
and dark), run 4 times: the three accessible names are "Language
Auto", "Scene Office", "Quality Medium"; focus+Enter on #optQuality
keeps its list open; four 600px wheels over #optSceneList keep it open;
setting #settings' scrollTop still closes the picker; the list's
scrollbar is 8px with a #b9b9c2 thumb, #56565f under data-theme=dark;
no page errors.
Broken by hand: the same script at the base
|
||
|
|
1301724420 |
agent-office: Settings' Language, Scene and Quality pickers are app menus, not native <select> (#771)
agent-office's Settings menu drew Language, Scene and Quality as native <select>s (#744). Each is now a button (aria-haspopup=listbox) that opens an in-page role=listbox menu, fixed-positioned and clamped to the viewport, flipping above the button when there is less room below. Arrow keys, Home, End, Enter, Space, Tab and Escape work; Escape closes the picker before Settings; an outside pointerdown, a Settings scroll or a resize closes it. Values go through the same view.scene, view.quality and manualLang and the same save() as before, so saved options keep their shape. Asset stamps re-stamped. By frederick-wang. Run at the reviewed head 790a8f21 on mote (Bun 1.4.2, HOME=mktemp -d): - packages/agent-office bun test: 183 pass, 0 fail - repo bun test: 6184 pass, 20 skip, 0 fail - bun scripts/check.mjs: exit 0; stamp-page.mjs --check: 0 - a Playwright harness (Chromium + WebKit, light + dark, 1200x820 and 600x620) serving the page inside a host frame that answers magpie's real pagebridge.js: no <select>; Scene list opens in view with all 11 options hit-testable on top; click pick, keyboard pick (Enter/ArrowDown/ArrowUp/Home/End/Escape/Space/Tab), outside click, Settings toggle; picking Japanese relabels page and pickers; values reach options.set as lang/scene/quality strings and survive a reload; an unknown saved quality is not written over by opening the picker. 72/72 checks, twice. Screenshots looked at in both themes. - Broken by hand: the old index.html, and app.js without role=option, each turn the PR's new unit test red. Not tried: the PR's test/browser.mjs against a live magpie web host (it needs one); a screen reader. Follow-ups filed separately: the button's accessible name leaves out the current value. |
||
|
|
73362966e7 |
agent-office: 0.3.2, with a guard that the hook keeps only local requests
Bumps agent-office to 0.3.2 so #740 (SVG chevrons) and #741 (the remote switch and its empty-office line) reach users, and notes both in the changelog with the asset stamps they fixed (stale since 0.3.0). Adds a guard to "the host part writes what it reads": with no remote option set, a gateway-key request leaves ctx.state.office null, adds no session and counts as dropped. Before this nothing failed when the hook's track() defaulted remote on. Run on mote: HOME=<scratch> bun test packages/agent-office, 183 pass; bun scripts/check.mjs agent-office ok; stamp-page.mjs --check ok. Broken by hand: office.hooks.mjs remote default `!== false` turns the new guard red (1 fail), restored green. Not tried: the page in a real magpie window, a real remote agent. |
||
|
|
5150142eb2 |
agent-office: a Settings switch for agents from other computers and gateway keys (#741)
agent-office: a Settings switch, "Include agents from other computers and gateway keys", sets options.remote, so the gateway hook keeps requests that are not local. It is off by default (package default remote:false, the page reads opts.remote === true, the hook opts?.remote === true). While it is off the hook counts the non-local requests it drops (capped at 9999) into the snapshot, and an empty office says they were ignored and where the switch is, in all nine languages. Adapted by frederick-wang from QingJ01/magpie-agent-office#5. Merged onto #740 with the page stamps taken again (a7a5bce6). Run at the reviewed head a7a5bce6, on mote: - HOME=<scratch> bun test packages/agent-office: 183 pass, 0 fail, 34 more times (20 of them four at a time, load ~30). The first run of this head had 2 fails whose names were lost to tail; not seen again in the 34. - stamp-page.mjs --check: 0 (every ?v= checked against sha256); bun scripts/check.mjs agent-office: 0. - Broken by hand: dropping the dropped++ turns 2 tests red. Turning remote on by default in the hook's track() turned nothing red; a guard test follows in the version bump. - Playwright 1.62.0, Chromium and WebKit, light and dark, stub bridge, live.js with dropped:2 and no sessions: the empty state gives the hint; ticking the switch hides it, options.set receives remote:true after the 2.5s save, and a reload with those options shows the box ticked and no hint. Not tried: a real remote agent or gateway key through a real magpie. |
||
|
|
845fcfea4e |
agent-office: draw the Settings and picker chevrons as SVG (#740)
agent-office: the Settings button's chevron is an inline SVG that turns
over while the menu is open, and the Language, Scene and Quality pickers
draw the same chevron (appearance: none) in light and dark. .btn is
inline-flex so the chevron sits on the label's centre line, and an empty
Today token count no longer leaves a gap. Adapted by frederick-wang from
QingJ01/magpie-agent-office#4. Also re-stamps the page's asset
fingerprints, which were stale on main for model.js, scene.js,
scene3d.js and app.js since 0.3.0.
Run at the reviewed head 625619bb, on mote:
- HOME=<scratch> bun test packages/agent-office: 182 pass, 0 fail
(main
|
||
|
|
7714b617c7 |
agent-office 0.2.0: real 3D office, workbench, incremental session scan
Agent Office 0.2.0 (QingJ01, #551): a real 3D office, the workbench, and the earlier review's fixes. The session scanner now reads growing JSONL logs incrementally. It keeps a saved offset with 128 guard bytes, carries UTF-8 and partial JSON across ticks, applies a record complete at EOF once, and resets on truncation, inode or birthtime change and same-size rewrites. Readers update per kind (Claude response usage replaced, Grok sidecar daily totals replaced, metadata refreshed apart from logs).
Run at the reviewed head 3bf522f, merged on main
|
||
|
|
1e04c1d324 |
agent-office 0.1.0: live agent activity office page (#478)
A new community page plugin by QingJ01: Agent Office, a page in magpie's window that shows each local agent session as a worker in an office (3D/2D) or a list, with status, current step and a resume command.
- Its host part (office.hooks.mjs, an async gateway hook) reads the session files of Claude Code, Codex, dsh, Gemini CLI, Qwen Code, Pi, omp, Qoder, WorkBuddy and CodeBuddy every 1.5 s and writes page/live.js beside the page. It opens no socket and sends nothing off the machine. The page makes no magpie.read calls and loads only its own files.
- Text switch: with text off, the host writes no prompt, reply, error or tool argument (the title falls back to the folder, the step to the tool name), and the page redacts whatever live.js holds.
- Options are read at module load from plugins.json in the host's cwd (magpie's config folder), with the XDG path as a fallback. npm specs are matched with @tag/@version stripped, a path spec by realpath against the package's own folder. It fails closed: text stays off until an install's options or a request's ctx.options turn it on.
- The disclosure (package description, registry summary, root README) says which session files it reads. magpie's install sheet still says "reads nothing" for such a page (yetone/magpie#4187).
Run at the reviewed head e76d1a3, on mote:
- bun test in packages/agent-office: 44 pass, 0 fail.
- The whole repo at origin/main
|