Skip to content

oab-computer 0.9.0

Choose a tag to compare

@github-actions github-actions released this 09 Nov 01:22
· 46 commits to main since this release
7fdf8ff

⚠ Breaking: tool profiles are now observe and owner (#92, fixes #59)

There are now two tool profiles on macOS and Linux. desktop is removed.

Profile Tools Shell-equivalent
observe (the default) sys_info and screenshot only no
owner every local tool (shell, input, osascript, ui_snapshot, background jobs) and every browser tool yes
  • A POST /attach without a profile now gets observe on macOS too. Linux already did.
  • Unknown names, including sandbox, return 400 {"error":"profile must be one of [owner, observe]"} on both platforms.
  • Grant JSON (POST /attach, GET /attach, GET /attach/{id}) always carries requested_profile, and carries warning when desktop was mapped. Both fields are additive.
  • On a reverse attach under observe, a long exec, osascript or bash call is now reported as an unknown tool, like any other hidden tool.

Upgrading from 0.8.x

Up to 0.8.4 there were three profiles: owner, desktop and observe. desktop hid the exec* tools and allowed 15 browser tools, but it was still shell-equivalent through the GUI. Nothing in the upgrade grants owner: every old desktop input runs as observe, and the change is reported to the granter.

Input Before After
POST /attach {"profile":"desktop"} a desktop grant 202, runs as observe. The grant JSON has "profile":"observe", "requested_profile":"desktop" and a warning. The daemon log and the audit file record the mapping
POST /attach without profile macOS desktop, Linux observe observe on both
POST /attach with sandbox or any other unknown name 400 (two different messages) 400 profile must be one of [owner, observe] on both
A grant stored as desktop (macOS ~/Library/Application Support/oab-instance-mcp/grants.json, Linux grants.json) resumed as desktop kept and re-dialled under its id, as observe. GET /attach shows profile: observe, requested_profile: desktop and the warning. The file is rewritten with profile: observe and the requested name
A grant stored as sandbox or an unknown name dropped dropped (unchanged, #46)
macOS --switchboard-profile desktop (a flag in the LaunchAgent plist) desktop serves observe, prints the warning to the agent log, and logs switchboard: dialling … as observe (requested desktop). Any other unknown value still exits with status 64
macOS ~/.config/oab-instance-mcp/switchboard.profile containing desktop copied into the plist the installer writes --switchboard-profile observe and prints a warning. It does not edit your file
Linux environment and config no profile setting exists nothing to migrate

The warning text is the same on both platforms:

The desktop profile was removed (openab-computer#59). This grant runs as observe: sys_info and screenshot only. Grant owner explicitly for shell and browser access.

A stored row loads as the narrower of profile and requested_profile, so a hand-edited {"profile":"owner","requested_profile":"desktop"} still loads as observe.

Audit file. Every mapping is also appended as one JSON line ("event":"profile_mapped", with source = attach, resume or, on macOS, switchboard) to a mode-600 audit file: macOS ~/Library/Application Support/oab-instance-mcp/audit.jsonl, Linux ~/.local/state/oab-instance-mcp/audit.jsonl ($XDG_STATE_HOME if set; override with MCP_AUDIT_FILE, or MCP_AUDIT_FILE=off to disable). A write failure is logged and never blocks a grant. A resumed desktop grant writes a resume record on every restart while it lives.

Operator steps

  • Existing desktop grants (for example a session lent from OpenAB Connect or OpenAB Remote) resume as observe after the upgrade, so the agent sees only sys_info and screenshot. To restore shell or browser access, grant owner explicitly: pick Owner in OpenAB Connect or OpenAB Remote, or send POST /attach with "profile":"owner". The new grant replaces the old one for the same runtime and session. Until Connect and Remote are updated, picking "Desktop" there gets observe, and the apps do not show the warning.
  • Switchboard with switchboard.profile = desktop. Installing 0.9.0 with the .pkg or install-prebuilt.sh writes --switchboard-profile observe into the LaunchAgent plist and prints the warning. Switchboard callers then see only sys_info and screenshot from that computer; a caller allowed browser_* tools loses them. /mcp and /attach are unaffected.
    • To stay at observe and silence the warning, write observe to ~/.config/oab-instance-mcp/switchboard.profile.
    • To restore browser and input access, write owner there and re-run the installer. The flag lives in the plist, so restarting the agent alone does not apply it. Under owner the computer also exposes exec*, so the switchboard's per-caller allowlist becomes the only limit. To check, look for switchboard: dialling … as owner in the agent log.
  • Rolling back to 0.8.x keeps migrated grants at observe: the old daemon reads profile: observe and ignores the extra field. The grants file version stays 1.

Full details: docs/tool-profiles.md → Upgrading from 0.8.x (#59).

New macOS tool: ui_snapshot (#93, refs #67)

ui_snapshot returns the accessibility tree of a native macOS app's window, read-only: roles, titles, values and frames, with frames in the same display points that screenshot and mouse use. Use it for native apps, browser_snapshot for web pages, and screenshot + mouse for custom-drawn content.

  • It targets the frontmost app's focused window by default. app (bundle id or name), pid, window and all_windows choose another target. Depth, node count and time are capped (max_depth, max_nodes, timeout_ms).
  • It is owner-only, because it reads text a screenshot does not show (scrolled-out rows, collapsed content, other windows).
  • It needs the Accessibility permission for the app.
  • Linux does not have it yet; an AT-SPI version is planned (#67).

The macOS app now shows as "OpenAB Computer" (#94)

Finder, System Settings and the menu bar now show the app as OpenAB Computer instead of oab-instance-mcp. Only the displayed name changes. The bundle id dev.openab.instance-mcp, the executable and .app file name, the LaunchAgent label, the config, log and state paths, and the release asset names are unchanged, so existing Full Disk Access, Screen Recording and Accessibility grants are kept. Older docs call the app oab-instance-mcp.

Linux installer fix (#91, fixes #90)

scripts/install-linux.sh no longer runs bash while writing oab-instance-mcp.service: the backticks in a comment of the unit-file heredoc are now escaped. Installer flags, paths, units and the upgrade path are unchanged. A new CI job checks every unit the installer writes.

Linux

The Linux hands node's behaviour changes only through the profile change above (#92): the shared 400 message, desktop mapped to observe, requested_profile/warning in grant JSON, stored desktop grants resuming as observe, and the audit file. The installer fix (#91) is the only other Linux change; the rest is tests.

What's Changed

Full Changelog: v0.8.4...v0.9.0