@vashp2029/glovebox 0.0.0-stage → 0.3.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md ADDED
@@ -0,0 +1,73 @@
1
+ # Changelog
2
+
3
+ ## 0.3.1 (2026-11-03)
4
+
5
+ - Fix: the drawn agent cursor now glides to every action. Its animation never
6
+ moved the window, so it froze after the first action, and launching the helper
7
+ hidden could keep it from appearing at all.
8
+ - Add a demo to the README.
9
+
10
+ ## 0.3.0 (2026-11-03)
11
+
12
+ - First npm release, as `@vashp2029/glovebox`. CI runs the unit tests on every
13
+ push and pull request.
14
+ - A clearer error when the helper was built from different source than the
15
+ running glovebox, including what a rebuild does to macOS permissions.
16
+ - Fix: a read with `{emit: false}` no longer becomes the diff baseline, so
17
+ the next printed read shows every change since the last printed one.
18
+ Before, changes made before a silent read never appeared in a diff.
19
+ - `app.waitForChange()` and `app.settle()`: wait silently for a late update
20
+ instead of polling from the script.
21
+ - Fix: the default window ignores tooltips, popovers, and Finder's rename
22
+ field, so reads and screenshots no longer land on a 50-pixel window.
23
+ - Fix: diffs survive a window title change, a `{frames: true}` read, and
24
+ elements that only moved deeper, instead of reprinting the whole tree.
25
+ - Fix: a read that is also returned or passed to `console.log` prints once.
26
+ - Fix: a raw click on an open menu's item works in the background, and any
27
+ click on a menu item waits for the menu to close before the next action.
28
+ - Fix: keys reach Finder's rename field in the background, and `setValue` on a
29
+ Finder file name fails with the rename steps instead of only relabeling.
30
+ - Fix: horizontal background scroll sets the point and fixed-point deltas
31
+ some apps read.
32
+ - `settleMs` is in the documented defaults; `npm test` works on Node 22;
33
+ the npm package includes `SECURITY.md` and `CHANGELOG.md`.
34
+
35
+ ## 0.2.0 (2026-10-27)
36
+
37
+ - Background input by default: keys, typing, clicks, drags, and scrolls reach
38
+ an app without bringing it forward or moving the real cursor (private
39
+ SkyLight event records and per-process events, with a foreground fallback).
40
+ - A drawn agent cursor shows where each action lands; Hide Agent Cursor in
41
+ the menu-bar item, or `"cursor": false` in the config.
42
+ - `glovebox signing --create`: a local signing certificate so macOS keeps the
43
+ helper's permissions across rebuilds.
44
+ - `glovebox setup` asks for one permission at a time and waits for each.
45
+ - `glovebox smoke --full` checks background click, drag, and scroll in TextEdit
46
+ and that the frontmost app never changed.
47
+ - `input`, `foregroundApps`, and `cursor` config keys; `app.lastRoute`.
48
+
49
+ ### Upgrading
50
+
51
+ If the helper was signed ad hoc (you did not run `glovebox signing --create`),
52
+ rebuilding it makes macOS treat it as a new app. Reset the old grants and run
53
+ setup again:
54
+
55
+ ```bash
56
+ for s in Accessibility ScreenCapture ListenEvent; do
57
+ tccutil reset $s io.github.vpatel9202.glovebox.helper
58
+ done
59
+ glovebox setup
60
+ ```
61
+
62
+ ## 0.1.0 (2026-10-27)
63
+
64
+ First release.
65
+
66
+ - One persistent JavaScript session, reachable over MCP (`js`, `js_reset`) and
67
+ the CLI (`glovebox run`, backed by a daemon).
68
+ - macOS backend: Glovebox Helper.app (Swift, public APIs) with accessibility
69
+ trees, stable element indices, diffs, window screenshots, keyboard and mouse
70
+ input, and background key delivery.
71
+ - Image-pixel coordinates shared by screenshots, frames, and clicks.
72
+ - Per-app approval dialogs enforced in the helper, blocked-by-default apps,
73
+ Escape to stop, and an action log.
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Vash Patel
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md CHANGED
@@ -1,3 +1,241 @@
1
- # Temporary Holding Version
1
+ # glovebox
2
2
 
3
- This version is a temporary placeholder for this package. An operational version to replace this has been submitted for review and is awaiting a staged release.
3
+ [![CI](https://github.com/vpatel9202/glovebox/actions/workflows/test.yml/badge.svg)](https://github.com/vpatel9202/glovebox/actions/workflows/test.yml)
4
+ [![npm](https://img.shields.io/npm/v/@vashp2029/glovebox.svg)](https://www.npmjs.com/package/@vashp2029/glovebox)
5
+ [![License: MIT](https://img.shields.io/badge/license-MIT-blue.svg)](LICENSE)
6
+ [![Platform: macOS](https://img.shields.io/badge/platform-macOS-lightgrey.svg)](#status)
7
+
8
+ **Computer use for coding agents on macOS: one JavaScript call per step,
9
+ accessibility diffs instead of screenshots, and your screen stays yours.**
10
+
11
+ ![Someone browses Wikipedia in Safari while an agent works Calculator and types the result into TextEdit in the background](https://raw.githubusercontent.com/vpatel9202/glovebox/main/media/demo.gif)
12
+
13
+ ```js
14
+ const calc = await gb.getApp("Calculator");
15
+ await calc.pressKey("Escape");
16
+ await calc.typeText("6*7=");
17
+ await calc.getAXState();
18
+ ```
19
+
20
+ ```
21
+ Calculator — window 0 "Calculator" — image 460x816 — changes since last read (~ changed, + added):
22
+ ~ 8 scroll area id=StandardInputView;value:42
23
+ ~ 9 text "Edit field" value="42"
24
+ ```
25
+
26
+ On the next call, `calc` is still bound. An agent writes a few lines per step
27
+ instead of making one tool call per click, and reads what changed instead of a
28
+ fresh picture of the window.
29
+
30
+ - **A script per step, not a tool call per click.** Bindings and helper
31
+ functions persist across calls, so one call can click, type, loop, and read.
32
+ - **Diffs, not screenshots.** The default read is the accessibility tree as
33
+ text, and later reads show only changes. Screenshots and pixel clicks are
34
+ there when the tree is empty (Citrix, canvases).
35
+ - **Background by default.** Keys, clicks, drags, and scrolls reach the app
36
+ while you keep working in another one. Your cursor stays put, and a drawn
37
+ cursor shows what the agent is doing.
38
+
39
+ In an [author-run test](#benchmark) of six setups on 12 tasks (2 runs each),
40
+ glovebox had the lowest total cost, $0.57 against $1.41 to $5.67, and the
41
+ fewest round trips and the most passes.
42
+
43
+ **What to know first:** macOS only, tested on macOS 27 on Apple silicon. You
44
+ need the Xcode command line tools to build a small helper app, and you grant it
45
+ Accessibility and Screen Recording. Background input uses two private macOS
46
+ calls, with a foreground fallback. Only Claude Code has been tested end to end.
47
+ Despite the name, this is not a sandbox, and it is unrelated to
48
+ [glovebox-mcp](https://github.com/segentic-lab/glovebox-mcp).
49
+
50
+ ## Quickstart
51
+
52
+ Requires Node 20.10+ and the Xcode command line tools (`xcode-select --install`).
53
+
54
+ ```bash
55
+ npm install -g @vashp2029/glovebox
56
+ glovebox signing --create # optional: macOS keeps the grants across helper rebuilds
57
+ glovebox setup # builds the helper, walks through permissions
58
+ glovebox doctor # every line should say ok
59
+ glovebox smoke # a real end-to-end test on Calculator
60
+ claude mcp add --scope user glovebox -- glovebox mcp
61
+ ```
62
+
63
+ `setup` builds **Glovebox Helper.app** into `~/.glovebox/` and asks you to turn
64
+ it on under System Settings > Privacy & Security > **Accessibility** and
65
+ **Screen & System Audio Recording**. **Input Monitoring** is optional and only
66
+ enables Escape-to-stop. The helper is its own app, so one grant covers every
67
+ agent and terminal. `signing --create` makes a self-signed certificate in your
68
+ login keychain that signs only the helper. Without it, macOS treats each
69
+ rebuild as a new app; see the [upgrade note](CHANGELOG.md#upgrading).
70
+
71
+ **Works with:** Claude Code (tested end to end). Codex, Grok CLI, OpenCode,
72
+ Gemini CLI, and Cursor have documented configs that have not been exercised.
73
+ Any agent that can run shell commands can use `glovebox run`.
74
+ See [docs/agents.md](docs/agents.md).
75
+
76
+ ## Why not Claude Code's built-in computer use?
77
+
78
+ If it fits your setup, it is the easier choice: nothing to install, supported
79
+ by Anthropic, and it keeps your terminal out of screenshots. glovebox is for
80
+ the cases where it does not fit. From [Anthropic's docs](https://code.claude.com/docs/en/computer-use),
81
+ checked 2026-11-03:
82
+
83
+ | | Claude Code built-in | glovebox |
84
+ |---|---|---|
85
+ | Your other apps | Hidden while Claude works | Stay visible; input goes to the target app in the background |
86
+ | Default read | Downscaled screenshot | Accessibility text diff |
87
+ | Who can use it | Pro, Max, or Ultra through claude.ai; not Team, Enterprise, Bedrock, Google Cloud, or Foundry | Anyone; it never talks to a model or an account |
88
+ | Scripted runs | Not in `-p` mode | The benchmark drives it unattended from a script; `claude -p` itself not yet tested |
89
+ | Sessions | One at a time, enforced by a lock file | No global lock; named sessions run side by side |
90
+ | Remembering approvals | This session only | Allow for This Session or Always Allow |
91
+ | Browsers | View-only | Full control once you approve the browser, which is more power and more risk |
92
+
93
+ **Claude Code's built-in tool was not in the benchmark below**, so this table
94
+ compares documented behavior, not measured results.
95
+
96
+ ## Benchmark
97
+
98
+ Twelve macOS tasks, six setups, two runs each, 2026-11-03. Same model (Claude
99
+ Sonnet 5.5, medium effort), prompt, and agent loop for every setup; only the
100
+ tool changes. Task prompts name no tool, and a separate check that doesn't use
101
+ the tool under test decides each result.
102
+
103
+ | Setup | Passed | Round trips | Images returned | Cost at list price |
104
+ |---|---|---|---|---|
105
+ | glovebox | 24/24 | 128 | 21 | $0.57 |
106
+ | Codex `cua_repl`, driven by Claude | 20/24 | 166 | 30 | $1.41 |
107
+ | Anthropic toolset, run by glovebox | 22/24 | 187 | 179 | $1.65 |
108
+ | agent-desktop | 22/24 | 204 | 22 | $2.32 |
109
+ | open-computer-use | 21/24 | 244 | 385 | $2.76 |
110
+ | Peekaboo | 20/24 | 359 | 183 | $5.67 |
111
+
112
+ ![Median round trips and cost per task for each setup](bench/results/v2/chart.svg)
113
+
114
+ **Where glovebox did not win.** It was not cheapest on `finder-rename`
115
+ ($0.061 against $0.041 for Codex `cua_repl`). It did not have the fewest round
116
+ trips on 3 of the 12 tasks, or the fastest time on 3 of the 12. On
117
+ `remote-desktop` it took 36 seconds against 22 and 23 for two others.
118
+
119
+ **How much to trust this:**
120
+
121
+ - I wrote the tasks and ran the test, on one Mac, in one sitting. Several tasks
122
+ (`bulk-entry`, `remote-desktop`, `coexistence`) were designed around things
123
+ glovebox set out to do.
124
+ - With two runs per task, pass counts mean little: 24/24 against 20/24 is not
125
+ statistically significant. The cost gap is the sturdier result, because it
126
+ holds task by task: glovebox cost less than each other setup on at least 11
127
+ of 12 tasks.
128
+ - The glovebox tested is the code released as 0.3.0. Result files say 0.2.0,
129
+ because the version had not been bumped yet.
130
+ - "Anthropic toolset" is Anthropic's API computer-use toolset, executed through
131
+ glovebox's foreground route. It failed `coexistence` because of that route,
132
+ so that result doesn't describe a shipping product. "Codex `cua_repl`" measures
133
+ the tool shape under Claude, not Codex with its own model.
134
+ - Peekaboo's first pass was rerun with foreground input allowed, which helped
135
+ it. Its two `bulk-entry` failures were my $0.75 per-run budget cap stopping
136
+ the run. agent-desktop ran through its CLI, not its MCP mode.
137
+
138
+ Method, per-task numbers, and raw results: [bench/](bench/README.md) and
139
+ [bench/results/v2/summary.md](bench/results/v2/summary.md).
140
+
141
+ ## How it compares
142
+
143
+ Checked against each project's README and docs on 2026-11-03. "—" means I could
144
+ not confirm it from those.
145
+
146
+ | | Platforms | Actions per call | State between calls | Default read | Diffed reads | Background input | Needs |
147
+ |---|---|---|---|---|---|---|---|
148
+ | **glovebox** | macOS | many (one script) | persistent JS session | accessibility text | yes | yes | Xcode CLT to build the helper |
149
+ | Claude Code built-in | macOS (CLI) | — | — | screenshot | — | no, hides other apps | Pro, Max, or Ultra |
150
+ | Codex computer use | macOS, Windows | many (one script) | persistent JS session | accessibility text | yes | yes on macOS | ChatGPT app and plugin |
151
+ | [lcu](https://github.com/amontlabs/lcu) | macOS (Apple silicon), Linux | as Codex; it runs Codex's runtime | as Codex | as Codex | as Codex | — | ChatGPT app installed |
152
+ | [agent-desktop](https://github.com/vercel-labs/agent-desktop) | macOS, Windows, Linux | one per command, plus `batch` | refs tied to a snapshot | accessibility tree JSON | — | yes | Homebrew or npm |
153
+ | [Peekaboo](https://github.com/openclaw/Peekaboo) | macOS 15+ | one per command | element IDs from a snapshot | screenshot or JSON UI map | — | yes | Homebrew or npm |
154
+ | [open-computer-use](https://github.com/iFurySt/open-computer-use) | macOS, Linux, Windows | one per MCP call; CLI has sequences | — | app state | — | — | npm |
155
+ | [computer-use-mcp](https://github.com/minghinmatthewlam/computer-use-mcp) | macOS 14+ | one per call | element IDs | screenshot and tree per action | — | yes | notarized binary |
156
+ | [cua-driver](https://github.com/trycua/cua) | macOS, Windows, Linux | — | — | — | — | yes | see its docs |
157
+
158
+ **Pick something else if** you need Windows or Linux (agent-desktop, cua-driver,
159
+ lcu), a notarized binary with no build step (computer-use-mcp), or want
160
+ OpenAI's actual runtime and already have the ChatGPT app (lcu).
161
+
162
+ ## Safety
163
+
164
+ The first time a session touches an app, you get a dialog: Allow for This
165
+ Session, Always Allow, or Deny. Terminals, password managers, System Settings,
166
+ and a few others are blocked unless you run `glovebox allow <bundle id>`; the
167
+ list is in [SECURITY.md](SECURITY.md#blocked-apps). A script that had to bring
168
+ an app forward stops if you switch away. Scripts running in the background keep
169
+ going while you use other apps, and Escape stops any script if you grant Input
170
+ Monitoring. Every action is
171
+ logged to `~/.glovebox/actions.log`.
172
+
173
+ An approved app is approved for everything in it: allowing a browser lets the
174
+ agent use every site you are signed in to. glovebox does not screen page
175
+ content for prompt injection. Treat it like giving someone remote control of
176
+ that app. Details: [SECURITY.md](SECURITY.md).
177
+
178
+ **Known issue:** while a background app's pop-up menu is open, macOS sends your
179
+ keystrokes to that app, so a word you type can land in it
180
+ ([details](docs/api.md#known-limits)).
181
+
182
+ ## How it works
183
+
184
+ ```
185
+ agent ──MCP stdio──▶ glovebox mcp ──▶ kernel (persistent JS session)
186
+ agent ──shell──▶ glovebox run ──▶ daemon ──▶ kernel │
187
+ ▼ Unix socket
188
+ Glovebox Helper.app (Swift: AX, CGEvent,
189
+ ScreenCaptureKit, approval dialogs)
190
+ ```
191
+
192
+ Background input uses two private macOS (SkyLight) functions, looked up at
193
+ runtime with a foreground fallback; `glovebox doctor` reports which route you
194
+ have. Everything else is public API. No OpenAI, Anthropic, or other vendor
195
+ binaries.
196
+
197
+ ## Status
198
+
199
+ | Platform | Status |
200
+ |---|---|
201
+ | macOS | Works. Built for macOS 14+; tested only on macOS 27 (Apple silicon). |
202
+ | Windows | Planned (UI Automation). See [roadmap](docs/roadmap.md). |
203
+ | Linux | Planned (AT-SPI; Wayland limited). See [roadmap](docs/roadmap.md). |
204
+
205
+ Run for real, not mocked: `glovebox smoke` and `smoke --full` over MCP (batched
206
+ steps, persistent bindings, diffs, pixel clicks, and background click, drag, and
207
+ scroll with another app frontmost), and Claude Code attached through
208
+ `glovebox mcp`. Full list: [docs/testing.md](docs/testing.md).
209
+
210
+ ## The API in one screen
211
+
212
+ - `gb.getApp(name)` launches or finds an app without stealing focus. `gb.listApps()`.
213
+ - `app.getAXState()` returns the accessibility tree as text; later reads are
214
+ diffs. `{frames: true}` adds element boxes, `{disableDiffing: true}` the full tree.
215
+ - `app.getScreenshot()` is the only way to get an image.
216
+ - `app.click(target)`, `doubleClick`, `rightClick`, `scroll`, `drag`,
217
+ `setValue`, `focus`, `selectText`, `performSecondaryAction`.
218
+ - `app.pressKey("ctrl+a")` uses xdotool names (`super` is Cmd). `app.typeText("text\n")`.
219
+ - `app.waitForChange()` and `app.settle()` wait for a late update.
220
+ - A target is an element index from the tree or `[x, y]` pixels in the
221
+ window image, which is the screenshot's pixel space.
222
+
223
+ Full reference: [docs/api.md](docs/api.md), or `help()` inside a session.
224
+
225
+ ## Docs
226
+
227
+ - [docs/api.md](docs/api.md): the scripting API, for agents and script authors.
228
+ - [docs/agents.md](docs/agents.md): attaching each MCP client or a shell-only agent.
229
+ - [docs/cli.md](docs/cli.md): every subcommand, flag, config key, and environment variable.
230
+ - [docs/recipes.md](docs/recipes.md): short scripts to paste into one `js` call.
231
+ - [docs/design.md](docs/design.md): decisions and their reasons, for contributors and evaluators.
232
+ - [docs/backend-protocol.md](docs/backend-protocol.md): the helper protocol, for porting to a new platform.
233
+ - [docs/testing.md](docs/testing.md): unit and smoke tests, and what has been run on real hardware.
234
+ - [docs/roadmap.md](docs/roadmap.md): planned work; nothing there is shipped.
235
+ - [SECURITY.md](SECURITY.md): what protects you, what does not, and how to report a vulnerability.
236
+ - [CONTRIBUTING.md](CONTRIBUTING.md): setup from a clone, tests, and pull request rules.
237
+ - [CHANGELOG.md](CHANGELOG.md): changes per release and upgrade notes.
238
+
239
+ ## License
240
+
241
+ MIT
package/SECURITY.md ADDED
@@ -0,0 +1,83 @@
1
+ # Security
2
+
3
+ glovebox lets an AI agent click, type, and read the screen in apps on your
4
+ computer. Treat it with the same care as giving someone remote control.
5
+
6
+ ## What protects you
7
+
8
+ - **Per-app approval.** By default, the first action a session takes in an app
9
+ shows a dialog: Allow for This Session, Always Allow, or Deny. The check runs
10
+ inside Glovebox Helper, the process that holds the macOS permissions, so
11
+ scripts cannot skip it.
12
+ - **Blocked apps.** Apps that can run commands or hold secrets are refused,
13
+ and never offered in a dialog, unless you add them with `glovebox allow`
14
+ (see the list below). An agent with terminal access could otherwise use the
15
+ GUI to run commands its sandbox would not allow. An app on the `deny` list
16
+ is refused even if it is also allowed.
17
+ - **Taking over stops a script.** If a script had to bring an app forward and
18
+ you switch away, the script stops instead of taking focus back. A script
19
+ working in the background keeps running while you use other apps, so switching
20
+ apps does not stop it. With the optional Input Monitoring permission, pressing
21
+ Escape stops any script (glovebox marks its own key events, so its own Escapes
22
+ do not count).
23
+ - **Menu-bar item.** While an agent is connected, Glovebox Helper shows a
24
+ menu-bar item listing each session and its approved apps. Stop Running
25
+ Scripts stops every running script. Revoke Session Approvals clears the
26
+ per-session approvals, so apps must be approved again; it does not touch
27
+ `allow` entries in `config.json`. Quit Glovebox Helper exits the helper; the
28
+ next agent call starts it again.
29
+ - **Action log.** `~/.glovebox/actions.log` has one JSON object per action:
30
+ `ts`, `client` (the agent's name), `step` (the call's title, when given),
31
+ then the action's own fields (`app`, `action`, and for example `target`,
32
+ `keys`, or `length`). Typed text is recorded as a length only, unless you
33
+ set `"log": {"text": true}`.
34
+ - **Local only.** Nothing is sent over the network. The helper listens on a
35
+ Unix socket that only your user can open.
36
+
37
+ ## Blocked apps
38
+
39
+ This is the full default list, from `blockedByDefault` in
40
+ `native/macos/GloveboxHelper.swift`. Bundle ids are matched case-insensitively.
41
+ `glovebox allow <name or bundle id>` unlocks one.
42
+
43
+ | Kind | Bundle ids |
44
+ |---|---|
45
+ | Terminals | `com.apple.terminal`, `com.googlecode.iterm2`, `com.mitchellh.ghostty`, `dev.warp.warp-stable`, `com.github.wez.wezterm`, `org.alacritty`, `net.kovidgoyal.kitty`, `org.tabby`, `co.zeit.hyper` |
46
+ | System settings | `com.apple.systempreferences` |
47
+ | Password managers | `com.apple.keychainaccess`, `com.apple.passwords`, `com.1password.1password`, `com.agilebits.onepassword7`, `com.bitwarden.desktop`, `com.lastpass.lastpassmacdesktop` |
48
+ | Scripting | `com.apple.scripteditor2`, `com.apple.automator` |
49
+ | Glovebox itself | `io.github.vpatel9202.glovebox.helper` |
50
+
51
+ Order of checks for each app: `deny`, then `allow`, then this list, then the
52
+ `approval` mode.
53
+
54
+ ## What does not
55
+
56
+ - Code running as your user can edit `~/.glovebox/config.json` and approve
57
+ apps for itself, or talk to the helper directly. glovebox does not defend
58
+ against malware already running as you.
59
+ - `approval: "allow-all"` removes the dialogs for every non-blocked app.
60
+ Use it only when you trust every agent you attach.
61
+ - An approved app is approved for everything in it. Allowing a browser lets
62
+ the agent use every site you are signed in to.
63
+ - Background input uses two private macOS (SkyLight) functions, the same
64
+ approach as yabai, cua-driver, and Peekaboo. They are looked up at runtime;
65
+ if a macOS update removes them, glovebox falls back to bringing the app
66
+ forward. They do not bypass any permission: the helper still needs
67
+ Accessibility.
68
+ - Scripts have no `require`, `fs`, or dynamic `import`, and see an empty
69
+ `process.env`. That limits a script to the `gb` API and approved apps, but an
70
+ approved app can still reach whatever that app can reach. Finder is not on the
71
+ blocked list, and approving it lets an agent read or change any file Finder
72
+ can.
73
+ - glovebox does not screen app or page content for prompt injection. Text an
74
+ agent reads in an approved app can try to steer it.
75
+ - The optional "glovebox local signing" certificate lives in your login
76
+ keychain and signs only the helper you build. Without it, macOS ties
77
+ privacy grants to an ad-hoc signature and a rebuild means granting again.
78
+
79
+ ## Reporting a vulnerability
80
+
81
+ Please open a private security advisory at
82
+ https://github.com/vpatel9202/glovebox/security/advisories/new rather than a
83
+ public issue.