execbro 1.10.16 → 1.10.17

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/README.md CHANGED
@@ -1,10 +1,5 @@
1
1
  # ExecBro
2
2
 
3
- > [!IMPORTANT]
4
- > **Already using ExecBro?** `npx` caches packages indefinitely, so you may be stuck on an old version without realizing it. Update your MCP config to use `npx -y execbro@latest` (see [Setup](#setup)) so every session pulls the latest release with new tools and bug fixes. New installs after this change auto-update automatically.
5
-
6
- > Ships as the npm package `execbro`. Legacy `react-native-ai-devtools` and `react-native-ai-debugger` packages keep receiving identical builds via mirror-publish.
7
-
8
3
  **Give your AI assistant eyes and hands into your running React Native app.** Like Chrome DevTools — but for AI agents.
9
4
 
10
5
  Build, debug, and verify features end-to-end — without leaving the chat.
@@ -18,20 +13,12 @@ ExecBro is the runtime bridge between your AI coding assistant and your running
18
13
  ## Get started
19
14
 
20
15
  1. [Setup ExecBro as an MCP server for your agent of choice](#setup)
21
- 2. [Setup UI automation helpers](#ios-simulator--ui-automation-setup)
16
+ 2. [Setup UI automation helpers](docs/setup.md#ios-simulator--ui-automation-setup)
22
17
  3. [Install the SDK for richer capture](#install-the-sdk-recommended) — optional, but recommended for the most robust log, network, and state experience
23
18
 
24
- ## Feedback & Feature Requests
25
-
26
- **Please run this at the end of your session to help me make the tools better.** ExecBro is built for AI agents, so the most valuable feedback comes from the agent itself — paste this prompt to your agent:
19
+ ## See your usage — [execbro.com](https://execbro.com)
27
20
 
28
- > Write a report about your experience with the ExecBro tools — where you were struggling and what could be improved. Save it as a Markdown file for me, then submit it using the `send_feedback` tool (type `"feedback"`) so it becomes a GitHub issue.
29
-
30
- It takes 30 seconds: your agent runs `send_feedback`, hands you a pre-filled GitHub issue URL (environment info already attached), and you click submit — no GitHub setup, no copy-pasting. Real friction logs from real sessions are what shape the roadmap and get fixed first, so please send one. 🙏 And if you just have a quick idea or question, drop into [GitHub Discussions](https://github.com/igorzheludkov/execbro/discussions) to share feedback, request features, and vote on what gets built next.
31
-
32
- ## Pricing
33
-
34
- ExecBro is **free and open** — every feature, no usage limits, no account required. Use it as much as you like. The tools you run locally stay free; that's the model.
21
+ Log in at **[execbro.com](https://execbro.com)** to see your ExecBro activity rendered back to you: which tools you use most, tool **error rates**, and your **session history** — so you can spot flaky tools, track usage over time, and understand how your agent drives the app across sessions. It's built from the same anonymous telemetry described in [Telemetry & Privacy](#telemetry--privacy), tied to your installation ID.
35
22
 
36
23
  ## Features
37
24
 
@@ -70,222 +57,20 @@ ExecBro is **free and open** — every feature, no usage limits, no account requ
70
57
 
71
58
  ## Setup
72
59
 
73
- No installation required — every client below uses `npx` to fetch the latest version on demand. Pick your agent:
74
-
75
- - [Claude Code](#claude-code) · [Claude Desktop](#claude-desktop) · [Codex CLI](#codex-cli-openai) · [Cursor](#cursor) · [VS Code Copilot](#vs-code-copilot) · [Windsurf](#windsurf) · [Zed](#zed) · [Gemini CLI](#gemini-cli)
76
-
77
- After adding the server, fully restart the client (quit and relaunch, not just reload) so it picks up the new configuration.
78
-
79
- ### Legacy package names
80
-
81
- The npm package was previously published as `react-native-ai-devtools` and before that as `react-native-ai-debugger`. Both legacy names continue to receive identical builds via mirror-publish — existing installations and MCP configs keep working unchanged. New installs should use `execbro`.
82
-
83
- ### Claude Code
60
+ Add ExecBro to Claude Code in one command — no installation, `npx` fetches the latest version on demand:
84
61
 
85
62
  ```bash
86
- # Global (all projects)
87
63
  claude mcp add execbro --scope user -- npx -y execbro@latest
88
-
89
- # Project-specific
90
- claude mcp add execbro --scope project -- npx -y execbro@latest
91
- ```
92
-
93
- Or edit `~/.claude.json` (user) / `.mcp.json` (project) manually:
94
-
95
- ```json
96
- {
97
- "mcpServers": {
98
- "execbro": {
99
- "type": "stdio",
100
- "command": "npx",
101
- "args": ["-y", "execbro@latest"]
102
- }
103
- }
104
- }
105
- ```
106
-
107
- ### Claude Desktop
108
-
109
- Edit the config at:
110
-
111
- - macOS: `~/Library/Application Support/Claude/claude_desktop_config.json`
112
- - Windows: `%APPDATA%\Claude\claude_desktop_config.json`
113
-
114
- ```json
115
- {
116
- "mcpServers": {
117
- "execbro": {
118
- "command": "npx",
119
- "args": ["-y", "execbro@latest"]
120
- }
121
- }
122
- }
123
- ```
124
-
125
- You can also open this file from **Settings → Developer → Edit Config**. Fully quit and relaunch Claude Desktop after saving.
126
-
127
- ### Codex CLI (OpenAI)
128
-
129
- ```bash
130
- codex mcp add execbro -- npx -y execbro@latest
131
- ```
132
-
133
- Or edit `~/.codex/config.toml` directly:
134
-
135
- ```toml
136
- [mcp_servers.execbro]
137
- command = "npx"
138
- args = ["-y", "execbro@latest"]
139
- ```
140
-
141
- ### Cursor
142
-
143
- [Docs](https://docs.cursor.com/context/model-context-protocol). Add via `Cmd+Shift+P` → "View: Open MCP Settings", or edit `.cursor/mcp.json` (project) / `~/.cursor/mcp.json` (global):
144
-
145
- ```json
146
- {
147
- "mcpServers": {
148
- "execbro": {
149
- "command": "npx",
150
- "args": ["-y", "execbro@latest"]
151
- }
152
- }
153
- }
154
- ```
155
-
156
- ### VS Code Copilot
157
-
158
- Requires VS Code 1.102+ with Copilot ([docs](https://code.visualstudio.com/docs/copilot/customization/mcp-servers)). Add via `Cmd+Shift+P` → "MCP: Add Server", or edit `.vscode/mcp.json`:
159
-
160
- ```json
161
- {
162
- "servers": {
163
- "execbro": {
164
- "type": "stdio",
165
- "command": "npx",
166
- "args": ["-y", "execbro@latest"]
167
- }
168
- }
169
- }
170
- ```
171
-
172
- ### Windsurf
173
-
174
- [Docs](https://docs.windsurf.com/windsurf/cascade/mcp). Edit `~/.codeium/windsurf/mcp_config.json`:
175
-
176
- ```json
177
- {
178
- "mcpServers": {
179
- "execbro": {
180
- "command": "npx",
181
- "args": ["-y", "execbro@latest"]
182
- }
183
- }
184
- }
185
- ```
186
-
187
- ### Zed
188
-
189
- [Docs](https://zed.dev/docs/ai/mcp). Open the Agent Panel settings → "Add Custom Server", or add to `settings.json`:
190
-
191
- ```json
192
- {
193
- "context_servers": {
194
- "execbro": {
195
- "command": "npx",
196
- "args": ["-y", "execbro@latest"],
197
- "env": {}
198
- }
199
- }
200
- }
201
- ```
202
-
203
- ### Gemini CLI
204
-
205
- Edit `~/.gemini/settings.json` (user) or `.gemini/settings.json` (project):
206
-
207
- ```json
208
- {
209
- "mcpServers": {
210
- "execbro": {
211
- "command": "npx",
212
- "args": ["-y", "execbro@latest"]
213
- }
214
- }
215
- }
216
- ```
217
-
218
- ### Android
219
-
220
- Android works out of the box — all device control tools use ADB, which ships with Android Studio. Verify it's available:
221
-
222
- ```bash
223
- adb devices
224
- ```
225
-
226
- ### iOS Simulator — UI Automation Setup
227
-
228
- iOS UI automation tools (tap, swipe, text input, accessibility queries) require a UI driver. Install one of the following:
229
-
230
- **Option A: AXe CLI (default)**
231
-
232
- [AXe](https://github.com/cameroncooke/AXe) is a standalone CLI for iOS simulator automation. No daemon required — single binary, simple setup. Used by default; no `IOS_DRIVER` env var needed.
233
-
234
- ```bash
235
- brew install cameroncooke/axe/axe
236
- ```
237
-
238
- Verify: `axe --version`
239
-
240
- > **Note:** AXe text input only supports US keyboard layout characters.
241
-
242
- **Option B: IDB (alternative)**
243
-
244
- [IDB (iOS Development Bridge)](https://github.com/facebook/idb) is a tool built by Meta for automating iOS Simulators. Requires a background daemon. Use this if you prefer IDB or hit AXe limitations.
245
-
246
- ```bash
247
- brew install idb-companion
248
- ```
249
-
250
- Verify: `idb_companion --list 1`
251
-
252
- Opt in by setting `IOS_DRIVER=idb` in your MCP server configuration:
253
-
254
- ```json
255
- {
256
- "mcpServers": {
257
- "execbro": {
258
- "type": "stdio",
259
- "command": "npx",
260
- "args": ["-y", "execbro@latest"],
261
- "env": { "IOS_DRIVER": "idb" }
262
- }
263
- }
264
- }
265
64
  ```
266
65
 
267
- **What works without a UI driver:**
268
-
269
- | Capability | Without AXe/IDB | With AXe/IDB |
270
- | --------------------------------- | --------------- | ------------ |
271
- | Screenshots | Yes (simctl) | Yes |
272
- | App install/launch/terminate | Yes (simctl) | Yes |
273
- | URL opening | Yes (simctl) | Yes |
274
- | Boot simulator | Yes (simctl) | Yes |
275
- | **Tap / swipe / gestures** | **No** | Yes |
276
- | **Text input** | **No** | Yes |
277
- | **Accessibility tree queries** | **No** | Yes |
278
- | **Element finding / waiting** | **No** | Yes |
279
- | **Hardware buttons (Home, Lock)** | **No** | Yes |
66
+ Then fully restart the client (quit and relaunch) so it picks up the new server.
280
67
 
281
- > **Troubleshooting**: If you see errors like `"IDB is not installed"` or `"AXe is not installed"` in tap results, install the appropriate driver with the commands above and retry.
68
+ **Using a different client or need platform setup?** The [full setup guide](docs/setup.md) covers Claude Desktop, Codex CLI, Cursor, VS Code Copilot, Windsurf, Zed, and Gemini CLI, plus [Android](docs/setup.md#android) and [iOS simulator UI automation](docs/setup.md#ios-simulator--ui-automation-setup) requirements.
282
69
 
283
70
  ## Install the SDK (recommended)
284
71
 
285
72
  ExecBro works with zero app changes, but installing the companion [`execbro-sdk`](https://www.npmjs.com/package/execbro-sdk) package is the single biggest upgrade to debugging quality. It lets you **wire up the important parts of your app — your state stores and your network layer — directly into the agent's reach**, so the AI inspects real Redux/TanStack Query state and full request/response bodies instead of guessing from the outside.
286
73
 
287
- Under the hood, the MCP server connects over Chrome DevTools Protocol (CDP), which misses events that fire before it attaches and can't read request/response bodies on newer architectures. The SDK patches `fetch` and `console` at import time and buffers everything in-app from the very first line — the MCP server auto-detects it and reads from it, no extra config.
288
-
289
74
  | | Without SDK | With SDK |
290
75
  | ---------------------------------------- | ----------------------- | ------------------------------ |
291
76
  | State stores (Redux, TanStack Query, …) | Manual via `execute_in_app` | **Wired up — direct references** |
@@ -294,31 +79,7 @@ Under the hood, the MCP server connects over Chrome DevTools Protocol (CDP), whi
294
79
  | Console logs from startup | May miss early logs | Captured from first log |
295
80
  | Works on Bridgeless (Expo SDK 52+) | Partial | Full |
296
81
 
297
- **Install:**
298
-
299
- ```bash
300
- npm install execbro-sdk
301
- ```
302
-
303
- **Initialize** — add to your app's entry file (`index.js`, `App.tsx`, or `app/_layout.tsx` for Expo Router) as the **first import**, and pass in the stores and references you want the agent to reach:
304
-
305
- ```js
306
- import { init } from 'execbro-sdk';
307
- import { store } from './store'; // Redux store
308
- import { queryClient } from './queryClient'; // TanStack Query
309
- import { navigationRef } from './navigation';
310
-
311
- if (__DEV__) {
312
- init({
313
- stores: { redux: store, queryClient },
314
- navigation: navigationRef,
315
- });
316
- }
317
-
318
- // ... rest of your imports
319
- ```
320
-
321
- `init()` alone (no arguments) already unlocks full log and network capture. Wiring `stores`, `navigation`, or `custom` references is what makes the agent able to read and reason about your app's state directly. See the [SDK README](https://github.com/igorzheludkov/execbro-sdk#readme) for every config option.
82
+ It's one `npm install` plus a single `init()` call in your app's entry file. See the [SDK guide](docs/sdk.md) for install, initialization, and every config option.
322
83
 
323
84
  ## Requirements
324
85
 
@@ -326,7 +87,7 @@ if (__DEV__) {
326
87
  - React Native app running with Metro bundler
327
88
  - **Recommended**: [`execbro-sdk`](#install-the-sdk-recommended) in your app — wires stores and the network layer into the agent for dramatically better debugging (optional; ExecBro works without it)
328
89
  - **iOS UI automation**: [AXe CLI](https://github.com/cameroncooke/AXe) (`brew install cameroncooke/axe/axe`, default) or [Facebook IDB](https://fbidb.io/) (`brew install idb-companion`, opt in via `IOS_DRIVER=idb`) — required for tap, swipe, text input, accessibility on iOS Simulator
329
- - **Optional for offline OCR fallback**: Python 3.6+ (only needed when cloud OCR is unavailable, see [OCR Setup](#ocr-text-extraction))
90
+ - **Optional for offline OCR fallback**: Python 3.6+ (only needed when cloud OCR is unavailable, see [OCR guide](docs/ocr.md))
330
91
 
331
92
  ## Claude Code Skills
332
93
 
@@ -341,6 +102,7 @@ See the [full tool reference](docs/tools.md) for all tools with descriptions. Ke
341
102
  | `scan_metro` | **Start here** — scan for Metro servers and auto-connect |
342
103
  | `get_logs` / `search_logs` | Capture and search console logs with filtering and summaries |
343
104
  | `get_network_requests` | Monitor HTTP requests with method/status filtering |
105
+ | `get_flowpoints` / `verify_flow` | Flow tracing + factual verification: query, wait on, and assert `flowpoint()` breadcrumbs (SDK) |
344
106
  | `get_screen_layout` | Screen map of visible components with positions, sizes, and text content |
345
107
  | `tap` | **Unified tap** — auto-detects platform, tries fiber → accessibility → OCR → coordinates |
346
108
  | `ios_input_text` / `android_input_text` | Type text into the focused field. `replace:true` clears pre-filled values first (Fabric) |
@@ -359,21 +121,32 @@ See the [full tool reference](docs/tools.md) for all tools with descriptions. Ke
359
121
  expo start
360
122
  ```
361
123
 
362
- 2. In Claude Code, scan for Metro:
124
+ 2. Just describe what you want in plain language — the agent picks the right tools. You don't need to know tool names or ask for a specific one. For example:
363
125
 
364
126
  ```
365
- Use scan_metro to find and connect to Metro
127
+ Check the network logs and investigate why this error is happening
128
+ ```
129
+ ```
130
+ Why is the current screen empty? Take a look and figure it out
131
+ ```
132
+ ```
133
+ Tap the "Sign in" button and tell me what happens
134
+ ```
135
+ ```
136
+ The list won't scroll — scroll it down and check what's going on
366
137
  ```
367
-
368
- 3. Get logs:
369
138
  ```
370
- Use get_logs to see recent console output
139
+ Instrument the checkout flow with flowpoints, run it, and verify the steps fire in order
371
140
  ```
372
141
 
142
+ The agent connects to Metro, reads logs and network, inspects the screen, and drives the UI as needed to answer.
143
+
373
144
  ## Detailed Guides
374
145
 
375
146
  | Guide | Description |
376
147
  | ---------------------------------------------------------- | ------------------------------------------------------------------------------- |
148
+ | [Setup](docs/setup.md) | Per-client MCP config (Claude, Codex, Cursor, VS Code, …), Android & iOS setup |
149
+ | [SDK Setup](docs/sdk.md) | Install & `init()` the in-app SDK to wire stores + network layer into the agent |
377
150
  | [Console Logging](docs/logging.md) | `get_logs` parameters, filtering, summary mode, TONL format, token optimization |
378
151
  | [Network Tracking](docs/network.md) | SDK setup for full capture, filtering, request details, statistics |
379
152
  | [App Inspection](docs/app-inspection.md) | Debug globals (Apollo, Redux, Expo Router), `execute_in_app`, limitations |
@@ -383,16 +156,6 @@ See the [full tool reference](docs/tools.md) for all tools with descriptions. Ke
383
156
  | [Claude Code Skills](docs/skills.md) | Pre-built skills for session setup, debugging, and automation |
384
157
  | [Full Tool Reference](docs/tools.md) | Complete list of all 40+ tools with descriptions |
385
158
 
386
- ## Supported React Native Versions
387
-
388
- | Version | Architecture | Engine | Status |
389
- | -------------- | --------------------- | ------------ | ------------------------------------------------ |
390
- | Expo SDK 54+ | Bridgeless (New Arch) | Hermes | ✓ Fully supported |
391
- | RN 0.76+ | Bridgeless (New Arch) | Hermes | ✓ Fully supported |
392
- | RN 0.73 - 0.75 | Bridge (Old Arch) | Hermes | ✓ Fully supported (best network capture via CDP) |
393
- | RN 0.70 - 0.72 | Bridge (Old Arch) | Hermes / JSC | ✓ Supported |
394
- | RN < 0.70 | Bridge | JSC | Not tested |
395
-
396
159
  ## How It Works
397
160
 
398
161
  1. Fetches device list from Metro's `/json` endpoint
@@ -405,45 +168,10 @@ See the [full tool reference](docs/tools.md) for all tools with descriptions. Ke
405
168
 
406
169
  ## Connection Management
407
170
 
408
- ### Explicit Connection
409
-
410
- The server does **not** auto-connect on startup. Call `scan_metro` to discover and connect to Metro servers. This prevents multiple MCP server instances (from parallel agent sessions) from competing for the single CDP WebSocket slot, which would cause connection thrashing and dropped tools.
411
-
412
- ### Graceful Shutdown
413
-
414
- When the MCP server process is terminated (`SIGINT`/`SIGTERM`), it closes all CDP WebSocket connections and cancels reconnection timers, freeing the CDP slot immediately for other sessions.
415
-
416
- ### Reconnection on Disconnect
417
-
418
- When the connection to Metro is lost (e.g., app restart, Metro restart, or network issues):
419
-
420
- 1. The server automatically attempts to reconnect
421
- 2. Uses exponential backoff: 500ms, 1s, 2s, 4s, 8s (up to 8 attempts)
422
- 3. Re-fetches device list to handle new WebSocket URLs
423
- 4. Preserves existing log and network buffers
424
-
425
- ### Connection Gap Warnings
426
-
427
- If there was a recent disconnect, `get_logs` and `get_network_requests` will include a warning:
428
-
429
- ```
430
- [WARNING] Connection was restored 5s ago. Some logs may have been missed during the 3s gap.
431
- ```
432
-
433
- ### Monitor Connection Health
434
-
435
- Use `get_connection_status` to see detailed connection information:
436
-
437
- ```
438
- === Connection Status ===
439
-
440
- --- React Native (Port 8081) ---
441
- Status: CONNECTED
442
- Connected since: 2:45:30 PM
443
- Uptime: 5m 23s
444
- Recent gaps: 1
445
- - 2:43:15 PM (2s): Connection closed
446
- ```
171
+ - **One server per session** — each agent session (each terminal or IDE window) runs its own ExecBro MCP server instance.
172
+ - **Connects on request, not on startup** — the server never auto-connects. It only attaches to your running React Native app when you ask it to (e.g. `scan_metro`), so it stays out of the way until you actually need a device.
173
+ - **One driver per device** — if two or more sessions in the same project point at the same Metro/device, they'll compete to control it, like a car with two steering wheels. Keep interaction to a single session per device.
174
+ - **Want parallel sessions? Give each its own device + port** — run separate work in a [git worktree](https://git-scm.com/docs/git-worktree) with its own Metro instance on a different port, and connect a second device (simulator/emulator) to it. For example, keep `main` on the default `8081` and start the worktree's Metro on `8082` (`npx react-native start --port 8082`, or `npx expo start --port 8082`), then launch that worktree's app pointed at `8082`. Each agent session then `scan_metro`s and drives its own device, so the two never fight over the connection.
447
175
 
448
176
  ## Troubleshooting
449
177
 
@@ -452,14 +180,6 @@ Use `get_connection_status` to see detailed connection information:
452
180
  - Make sure the app is running on a simulator/device
453
181
  - Check that Metro bundler is running (`npm start`)
454
182
 
455
- ### Wrong device connected
456
-
457
- The server prioritizes devices in this order:
458
-
459
- 1. React Native Bridgeless (SDK 54+)
460
- 2. Hermes React Native
461
- 3. Any React Native (excluding Reanimated/Experimental)
462
-
463
183
  ### Logs not appearing
464
184
 
465
185
  - Ensure the app is actively running (not just Metro)
@@ -467,71 +187,40 @@ The server prioritizes devices in this order:
467
187
  - Check `get_apps` to verify connection status
468
188
  - **On cold start (first launch):** The CDP connection is established after the app's early initialization code has already run, so startup logs and network requests are missed. Once connected, use `reload_app` — the subsequent reload captures everything from the beginning because the connection is already in place. To capture startup events on every launch, install the optional [SDK](https://www.npmjs.com/package/execbro-sdk)
469
189
 
470
- ## Telemetry & Data Collection
471
-
472
- This package collects anonymous usage telemetry to help improve the product. No personal information is collected.
473
-
474
- ### What is collected
475
-
476
- | Data | Purpose |
477
- | ----------------- | ---------------------------------------- |
478
- | Tool names | Which MCP tools are used most |
479
- | Success/failure | Error rates for reliability improvements |
480
- | Duration (ms) | Performance monitoring |
481
- | Session start/end | Retention analysis |
482
- | Platform | macOS/Linux/Windows distribution |
483
- | Server version | Adoption of new versions |
484
-
485
- **Not collected**: No file paths, code content, network data, or personally identifiable information.
486
-
487
- ### Auto-registration
488
-
489
- On first tool use, the package automatically registers your installation with our backend. No account or login is required — the Tool works fully out of the box.
490
-
491
- **Why we do this:** The product roadmap includes features that build on installation identity — project memory (your AI assistant gets smarter with every session by remembering navigation maps, element signatures, and debug patterns), cloud sync across machines, team collaboration with shared debugging context, and a dashboard for managing your installations. Auto-registration lays the groundwork so these features work seamlessly when they ship, without requiring a disruptive setup step later.
492
-
493
- **What is sent:**
190
+ ## Telemetry & Privacy
494
191
 
495
- - A random installation ID (UUID)
496
- - A device fingerprint (one-way SHA-256 hash — cannot be reversed to recover its components)
497
- - Platform, hostname, OS version, and server version
192
+ ExecBro collects anonymous usage telemetry — tool names, success/failure, and durations — to improve the product. **No source code, file paths, or app content is ever sent.** This is what powers your [usage dashboard](#see-your-usage--execbrocom).
498
193
 
499
- **What is NOT sent:** No source code, file paths, console logs, network data, component names, or any content from your app. The fingerprint exists solely to prevent installation hijacking — it ties your installation to your physical machine so no one else can claim it.
194
+ See the [Telemetry & Data Collection guide](docs/telemetry.md) for the full breakdown of what's collected, auto-registration, and how to opt out, and [PRIVACY.md](./PRIVACY.md) for the complete privacy policy.
500
195
 
501
- Registration is fire-and-forget — it never blocks your work, fails silently if the network is unavailable, and can be disabled entirely (see Opt-out below). See [PRIVACY.md](./PRIVACY.md) for full details on data handling, storage, and your rights.
196
+ ## Supported React Native Versions
502
197
 
503
- ### Opt-out
198
+ | Version | Architecture | Engine | Status |
199
+ | -------------- | --------------------- | ------------ | ------------------------------------------------ |
200
+ | Expo SDK 54+ | Bridgeless (New Arch) | Hermes | ✓ Fully supported |
201
+ | RN 0.76+ | Bridgeless (New Arch) | Hermes | ✓ Fully supported |
202
+ | RN 0.73 - 0.75 | Bridge (Old Arch) | Hermes | ✓ Fully supported (best network capture via CDP) |
203
+ | RN 0.70 - 0.72 | Bridge (Old Arch) | Hermes / JSC | ✓ Supported |
204
+ | RN < 0.70 | Bridge | JSC | Not tested |
504
205
 
505
- To disable telemetry and auto-registration, add `RN_DEBUGGER_TELEMETRY` to the `env` field in your MCP server configuration:
206
+ ## Pricing
506
207
 
507
- ```json
508
- {
509
- "mcpServers": {
510
- "execbro": {
511
- "type": "stdio",
512
- "command": "npx",
513
- "args": ["-y", "execbro@latest"],
514
- "env": { "RN_DEBUGGER_TELEMETRY": "false" }
515
- }
516
- }
517
- }
518
- ```
208
+ ExecBro is **free and open** — every feature, no usage limits, no account required. Use it as much as you like. The tools you run locally stay free; that's the model.
519
209
 
520
- All debugging tools work normally with telemetry disabled. For the complete privacy policy, see [PRIVACY.md](./PRIVACY.md).
210
+ ## Feedback & Feature Requests
521
211
 
522
- ### Tap failure artifacts
212
+ **Please run this at the end of your session to help me make the tools better.** ExecBro is built for AI agents, so the most valuable feedback comes from the agent itself — paste this prompt to your agent:
523
213
 
524
- When the `tap` tool fails or produces no visible change on screen, the package uploads a small JSON bundle and up to three downscaled PNG screenshots (before, after, and after-with-marker showing exactly where the tap landed) to a 10-day-retention store so we can diagnose and fix tap reliability issues. We do **not** use this data to train AI models and do **not** share it with third parties. See [PRIVACY.md](./PRIVACY.md#4-tap-failure-diagnostic-artifacts) for details.
214
+ > Write a report about your experience with the ExecBro tools — where you were struggling and what could be improved. Save it as a Markdown file for me, then submit it using the `send_feedback` tool (type `"feedback"`) so it becomes a GitHub issue.
525
215
 
526
- To opt out while keeping the rest of the package working:
216
+ It takes 30 seconds: your agent runs `send_feedback`, hands you a pre-filled GitHub issue URL (environment info already attached), and you click submit — no GitHub setup, no copy-pasting. Real friction logs from real sessions are what shape the roadmap and get fixed first, so please send one. 🙏 And if you just have a quick idea or question, drop into [GitHub Discussions](https://github.com/igorzheludkov/execbro/discussions) to share feedback, request features, and vote on what gets built next.
527
217
 
528
- ```json
529
- "env": { "RN_AI_DEVTOOLS_DISABLE_FAILURE_ARTIFACTS": "1" }
530
- ```
218
+ ## Package names & staying up to date
531
219
 
532
- ### Build attestation
220
+ Ships as the npm package `execbro`. The package was previously published as `react-native-ai-devtools` and before that as `react-native-ai-debugger` — both legacy names keep receiving identical builds via mirror-publish, so existing installations and MCP configs keep working unchanged. New installs should use `execbro`.
533
221
 
534
- Official npm builds are stamped with a secret build token at publish time (via `npm run inject-token` in CI, which requires the `BUILD_TOKEN` secret). Builds from a source checkout carry an inert placeholder and are labeled "fork" in our telemetry dashboard. The token is never committed to source.
222
+ > [!IMPORTANT]
223
+ > **Already using ExecBro?** `npx` caches packages indefinitely, so you may be stuck on an old version without realizing it. Update your MCP config to use `npx -y execbro@latest` (see [Setup](#setup)) so every session pulls the latest release with new tools and bug fixes. New installs after this change auto-update automatically.
535
224
 
536
225
  ## License
537
226
 
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=flowpoints.test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"flowpoints.test.d.ts","sourceRoot":"","sources":["../../../src/__tests__/unit/flowpoints.test.ts"],"names":[],"mappings":""}
@@ -0,0 +1,126 @@
1
+ import { describe, expect, it } from "@jest/globals";
2
+ import { FLOWPOINT_STORE_CAP, createFlowpointStore, applyDrain, buildDrainExpression, buildClearExpression, parseDrainResult, clearFlowpointStores, getFlowpointStore, } from "../../pro/flowpoints.js";
3
+ function makeEntry(seq, overrides = {}) {
4
+ return { seq, t: 1000 + seq, name: "add-to-cart", step: `step-${seq}`, run: "r1", level: "info", ...overrides };
5
+ }
6
+ describe("applyDrain", () => {
7
+ it("appends everything on first drain and sets cursor/contextId", () => {
8
+ const store = createFlowpointStore();
9
+ const added = applyDrain(store, { contextId: "ctx-a", entries: [makeEntry(1), makeEntry(2)] });
10
+ expect(added).toBe(2);
11
+ expect(store.entries).toHaveLength(2);
12
+ expect(store.cursor).toBe(2);
13
+ expect(store.contextId).toBe("ctx-a");
14
+ });
15
+ it("is idempotent for the same snapshot and incremental for grown snapshots", () => {
16
+ const store = createFlowpointStore();
17
+ applyDrain(store, { contextId: "ctx-a", entries: [makeEntry(1)] });
18
+ expect(applyDrain(store, { contextId: "ctx-a", entries: [makeEntry(1)] })).toBe(0);
19
+ expect(applyDrain(store, { contextId: "ctx-a", entries: [makeEntry(1), makeEntry(2)] })).toBe(1);
20
+ expect(store.entries.map((e) => e.seq)).toEqual([1, 2]);
21
+ });
22
+ it("treats a changed contextId as a reload: all snapshot entries are fresh", () => {
23
+ const store = createFlowpointStore();
24
+ applyDrain(store, { contextId: "ctx-a", entries: [makeEntry(1), makeEntry(2), makeEntry(3)] });
25
+ // reload: seq restarts, MORE entries than the old cursor — heuristics would miss this
26
+ const added = applyDrain(store, {
27
+ contextId: "ctx-b",
28
+ entries: [makeEntry(1), makeEntry(2), makeEntry(3), makeEntry(4)],
29
+ });
30
+ expect(added).toBe(4);
31
+ expect(store.entries).toHaveLength(7);
32
+ expect(store.cursor).toBe(4);
33
+ expect(store.contextId).toBe("ctx-b");
34
+ });
35
+ it("caps the store at FLOWPOINT_STORE_CAP, dropping oldest", () => {
36
+ const store = createFlowpointStore();
37
+ const entries = Array.from({ length: FLOWPOINT_STORE_CAP + 10 }, (_, i) => makeEntry(i + 1));
38
+ applyDrain(store, { contextId: "ctx-a", entries });
39
+ expect(store.entries).toHaveLength(FLOWPOINT_STORE_CAP);
40
+ expect(store.entries[0].seq).toBe(11);
41
+ });
42
+ });
43
+ describe("expression builders", () => {
44
+ it("drain expression is an IIFE reading getFlowpointSnapshot with dual-global fallback", () => {
45
+ const expr = buildDrainExpression();
46
+ expect(expr).toContain("__EXECBRO__");
47
+ expect(expr).toContain("__RN_AI_DEVTOOLS__");
48
+ expect(expr).toContain("getFlowpointSnapshot");
49
+ expect(expr).toContain("__missing");
50
+ expect(expr).toContain("meta not JSON-serializable");
51
+ expect(expr).toContain("__EXECBRO_FLOWPOINT_WARNED__");
52
+ expect(expr).toContain("console.warn");
53
+ expect(expr).toContain("outdated");
54
+ expect(expr).toContain("execbro-sdk@latest");
55
+ });
56
+ it("clear expression calls clearFlowpoints", () => {
57
+ expect(buildClearExpression()).toContain("clearFlowpoints");
58
+ });
59
+ });
60
+ describe("parseDrainResult", () => {
61
+ it("parses a snapshot", () => {
62
+ const parsed = parseDrainResult(JSON.stringify({ contextId: "c", entries: [makeEntry(1)] }));
63
+ expect(parsed).toEqual({ contextId: "c", entries: [makeEntry(1)] });
64
+ });
65
+ it("detects the SDK-missing marker, defaulting to uninitialized when no reason is given", () => {
66
+ expect(parseDrainResult(JSON.stringify({ __missing: true }))).toEqual({
67
+ missing: true,
68
+ reason: "uninitialized",
69
+ });
70
+ });
71
+ it("detects the outdated-SDK marker", () => {
72
+ expect(parseDrainResult(JSON.stringify({ __missing: true, __reason: "outdated" }))).toEqual({
73
+ missing: true,
74
+ reason: "outdated",
75
+ });
76
+ });
77
+ it("returns null on garbage", () => {
78
+ expect(parseDrainResult("not json")).toBeNull();
79
+ });
80
+ });
81
+ describe("clearFlowpointStores", () => {
82
+ it("device-scoped clear touches only that device's store", () => {
83
+ const deviceA = getFlowpointStore("clear-test-device-a");
84
+ const deviceB = getFlowpointStore("clear-test-device-b");
85
+ applyDrain(deviceA, { contextId: "ctx-a", entries: [makeEntry(1), makeEntry(2)] });
86
+ applyDrain(deviceB, { contextId: "ctx-b", entries: [makeEntry(1), makeEntry(2), makeEntry(3)] });
87
+ const removed = clearFlowpointStores(undefined, "clear-test-device-a");
88
+ expect(removed).toBe(2);
89
+ expect(deviceA.entries).toHaveLength(0);
90
+ expect(deviceB.entries).toHaveLength(3);
91
+ // cursor/contextId retained so cleared entries never re-drain
92
+ expect(deviceA.cursor).toBe(2);
93
+ expect(deviceA.contextId).toBe("ctx-a");
94
+ });
95
+ it("undefined deviceName clears all stores", () => {
96
+ // Reset any state left by other stores/tests sharing the module-level map.
97
+ clearFlowpointStores(undefined, undefined);
98
+ const deviceC = getFlowpointStore("clear-test-device-c");
99
+ const deviceD = getFlowpointStore("clear-test-device-d");
100
+ applyDrain(deviceC, { contextId: "ctx-c", entries: [makeEntry(1)] });
101
+ applyDrain(deviceD, { contextId: "ctx-d", entries: [makeEntry(1), makeEntry(2)] });
102
+ const removed = clearFlowpointStores(undefined, undefined);
103
+ expect(removed).toBe(3);
104
+ expect(deviceC.entries).toHaveLength(0);
105
+ expect(deviceD.entries).toHaveLength(0);
106
+ });
107
+ it("combines name filter with device scoping", () => {
108
+ const deviceE = getFlowpointStore("clear-test-device-e");
109
+ applyDrain(deviceE, {
110
+ contextId: "ctx-e",
111
+ entries: [
112
+ makeEntry(1, { name: "checkout" }),
113
+ makeEntry(2, { name: "onboarding" }),
114
+ makeEntry(3, { name: "checkout" }),
115
+ ],
116
+ });
117
+ const deviceF = getFlowpointStore("clear-test-device-f");
118
+ applyDrain(deviceF, { contextId: "ctx-f", entries: [makeEntry(1, { name: "checkout" })] });
119
+ const removed = clearFlowpointStores("checkout", "clear-test-device-e");
120
+ expect(removed).toBe(2);
121
+ expect(deviceE.entries.map((e) => e.name)).toEqual(["onboarding"]);
122
+ // other device's "checkout" entries untouched since deviceName scoped the clear
123
+ expect(deviceF.entries).toHaveLength(1);
124
+ });
125
+ });
126
+ //# sourceMappingURL=flowpoints.test.js.map