react-native-mcp-kit 2.1.0 → 2.2.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/README.md +29 -13
- package/dist/bin/ios-hid +0 -0
- package/dist/client/contexts/McpContext/McpProvider.d.ts.map +1 -1
- package/dist/client/contexts/McpContext/McpProvider.js +6 -3
- package/dist/client/contexts/McpContext/McpProvider.js.map +1 -1
- package/dist/modules/alert/alert.d.ts.map +1 -1
- package/dist/modules/alert/alert.js +6 -5
- package/dist/modules/alert/alert.js.map +1 -1
- package/dist/modules/console/console.d.ts.map +1 -1
- package/dist/modules/console/console.js +18 -13
- package/dist/modules/console/console.js.map +1 -1
- package/dist/modules/device/device.d.ts.map +1 -1
- package/dist/modules/device/device.js +23 -27
- package/dist/modules/device/device.js.map +1 -1
- package/dist/modules/errors/errors.d.ts.map +1 -1
- package/dist/modules/errors/errors.js +92 -11
- package/dist/modules/errors/errors.js.map +1 -1
- package/dist/modules/errors/types.d.ts +8 -0
- package/dist/modules/errors/types.d.ts.map +1 -1
- package/dist/modules/fiberTree/fiberTree.d.ts +4 -0
- package/dist/modules/fiberTree/fiberTree.d.ts.map +1 -1
- package/dist/modules/fiberTree/fiberTree.js +353 -114
- package/dist/modules/fiberTree/fiberTree.js.map +1 -1
- package/dist/modules/fiberTree/index.d.ts +1 -0
- package/dist/modules/fiberTree/index.d.ts.map +1 -1
- package/dist/modules/fiberTree/index.js +14 -1
- package/dist/modules/fiberTree/index.js.map +1 -1
- package/dist/modules/fiberTree/types.d.ts +40 -0
- package/dist/modules/fiberTree/types.d.ts.map +1 -1
- package/dist/modules/fiberTree/utils.d.ts +13 -0
- package/dist/modules/fiberTree/utils.d.ts.map +1 -1
- package/dist/modules/fiberTree/utils.js +195 -23
- package/dist/modules/fiberTree/utils.js.map +1 -1
- package/dist/modules/i18next/i18next.d.ts.map +1 -1
- package/dist/modules/i18next/i18next.js +30 -16
- package/dist/modules/i18next/i18next.js.map +1 -1
- package/dist/modules/index.d.ts +1 -0
- package/dist/modules/index.d.ts.map +1 -1
- package/dist/modules/index.js +3 -1
- package/dist/modules/index.js.map +1 -1
- package/dist/modules/logBox/index.d.ts +2 -0
- package/dist/modules/logBox/index.d.ts.map +1 -0
- package/dist/modules/logBox/index.js +6 -0
- package/dist/modules/logBox/index.js.map +1 -0
- package/dist/modules/logBox/logBox.d.ts +3 -0
- package/dist/modules/logBox/logBox.d.ts.map +1 -0
- package/dist/modules/logBox/logBox.js +234 -0
- package/dist/modules/logBox/logBox.js.map +1 -0
- package/dist/modules/navigation/navigation.d.ts.map +1 -1
- package/dist/modules/navigation/navigation.js +130 -42
- package/dist/modules/navigation/navigation.js.map +1 -1
- package/dist/modules/network/network.d.ts.map +1 -1
- package/dist/modules/network/network.js +262 -67
- package/dist/modules/network/network.js.map +1 -1
- package/dist/modules/network/types.d.ts +35 -3
- package/dist/modules/network/types.d.ts.map +1 -1
- package/dist/modules/reactQuery/reactQuery.d.ts.map +1 -1
- package/dist/modules/reactQuery/reactQuery.js +25 -15
- package/dist/modules/reactQuery/reactQuery.js.map +1 -1
- package/dist/modules/storage/storage.d.ts.map +1 -1
- package/dist/modules/storage/storage.js +23 -16
- package/dist/modules/storage/storage.js.map +1 -1
- package/dist/server/host/hostModule.d.ts.map +1 -1
- package/dist/server/host/hostModule.js +19 -1
- package/dist/server/host/hostModule.js.map +1 -1
- package/dist/server/host/tools/capture.d.ts.map +1 -1
- package/dist/server/host/tools/capture.js +111 -28
- package/dist/server/host/tools/capture.js.map +1 -1
- package/dist/server/host/tools/devices.js +1 -1
- package/dist/server/host/tools/devices.js.map +1 -1
- package/dist/server/host/tools/input.d.ts +3 -0
- package/dist/server/host/tools/input.d.ts.map +1 -1
- package/dist/server/host/tools/input.js +197 -5
- package/dist/server/host/tools/input.js.map +1 -1
- package/dist/server/host/tools/lifecycle.d.ts.map +1 -1
- package/dist/server/host/tools/lifecycle.js +5 -4
- package/dist/server/host/tools/lifecycle.js.map +1 -1
- package/dist/server/host/tools/symbolicate.d.ts +3 -0
- package/dist/server/host/tools/symbolicate.d.ts.map +1 -0
- package/dist/server/host/tools/symbolicate.js +199 -0
- package/dist/server/host/tools/symbolicate.js.map +1 -0
- package/dist/server/host/tools/tapFiber.d.ts +3 -0
- package/dist/server/host/tools/tapFiber.d.ts.map +1 -0
- package/dist/server/host/tools/tapFiber.js +89 -0
- package/dist/server/host/tools/tapFiber.js.map +1 -0
- package/dist/server/host/types.d.ts +14 -0
- package/dist/server/host/types.d.ts.map +1 -1
- package/dist/server/mcpServer.d.ts +6 -0
- package/dist/server/mcpServer.d.ts.map +1 -1
- package/dist/server/mcpServer.js +456 -94
- package/dist/server/mcpServer.js.map +1 -1
- package/package.json +20 -4
package/README.md
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
**See, drive, and debug a running React Native app from an AI agent — or from any other MCP client.**
|
|
4
4
|
|
|
5
|
-
`react-native-mcp-kit` connects a running RN app (on simulator, emulator, or physical device) to any process that speaks the [Model Context Protocol](https://modelcontextprotocol.io). You wrap your app in one provider, add a babel plugin, point your AI tool at a small Node server that ships with the package, and every interesting thing inside the app becomes addressable: component trees, navigation state, network traffic, React Query cache, logs, errors, translations, storage — plus the OS gesture pipeline (taps, swipes, text input, screenshots) via a bundled binary that
|
|
5
|
+
`react-native-mcp-kit` connects a running RN app (on simulator, emulator, or physical device) to any process that speaks the [Model Context Protocol](https://modelcontextprotocol.io). You wrap your app in one provider, add a babel plugin, point your AI tool at a small Node server that ships with the package, and every interesting thing inside the app becomes addressable: component trees, navigation state, network traffic, React Query cache, logs, errors, translations, storage — plus the OS gesture pipeline (taps, swipes, text input, screenshots) via a bundled binary that runs with zero external daemons.
|
|
6
6
|
|
|
7
7
|
```
|
|
8
8
|
AI Agent / Cursor / Claude Code --stdio/MCP--> Node server --WebSocket--> RN app (device)
|
|
@@ -21,6 +21,13 @@ A few concrete scenarios this unlocks:
|
|
|
21
21
|
|
|
22
22
|
Everything the library adds to your bundle is stripped in production builds via the companion babel plugin — so you can wire it up once and leave it in, without shipping it to users.
|
|
23
23
|
|
|
24
|
+
## Example scenarios
|
|
25
|
+
|
|
26
|
+
- **Reproduce a bug from a ticket, fix it, verify the fix.** The agent reads the reproduction steps, drives the app into the failing state through real taps and swipes, confirms the bug, edits the relevant source, then replays the same sequence to verify the fix — all in one editor session, no rebuilds between steps.
|
|
27
|
+
- **End-to-end flow narrated in plain language.** "Sign in, add an item to the cart, go through checkout, verify the total matches the expected value, screenshot the final screen, and give me a network traffic summary." The agent drives real taps, checks state at each step, snapshots the key screens, and hands back captured request counts / durations / errors as evidence.
|
|
28
|
+
- **Cross-platform parity check.** One agent holds two connected clients, runs the same tap sequence on iOS and Android in parallel, captures screenshots, and points out the differences — catches platform-specific regressions after an RN upgrade, shared-component refactor, or native change.
|
|
29
|
+
- **Implement a feature and verify it end-to-end.** Write the code, then hand the finished feature to the agent — it navigates to the affected screen, exercises the new controls, inspects component state and network calls, and confirms the expected behavior without you having to click through the simulator yourself.
|
|
30
|
+
|
|
24
31
|
## Install
|
|
25
32
|
|
|
26
33
|
```bash
|
|
@@ -145,7 +152,7 @@ Wrap your whole app in it — every optional prop opts a module in when supplied
|
|
|
145
152
|
|
|
146
153
|
## MCP server tools
|
|
147
154
|
|
|
148
|
-
The Node server
|
|
155
|
+
The Node server exposes a small set of entry-point tools agents use directly — you don't register or configure them. `call` / `list_tools` / `describe_tool` / `connection_status` / `state_get` / `state_list` cover discovery and dispatch, plus two test-automation helpers: `wait_until` (poll a tool until a predicate holds, replacing screenshot-in-a-loop + sleep) and `assert` (single-shot checkpoint with a standardized diff on failure).
|
|
149
156
|
|
|
150
157
|
## Multi-client
|
|
151
158
|
|
|
@@ -153,16 +160,18 @@ One server can hold multiple RN clients at once — iOS simulator, Android emula
|
|
|
153
160
|
|
|
154
161
|
## Host tools (device-level control)
|
|
155
162
|
|
|
156
|
-
When the `host` module is enabled (the default), the server
|
|
163
|
+
When the `host` module is enabled (the default), the server exposes tools that operate **on the host machine** — they run `adb` / `xcrun simctl` / a bundled `ios-hid` binary. These work even when the RN app is frozen, not launched yet, or between reloads.
|
|
157
164
|
|
|
158
165
|
What you get:
|
|
159
166
|
|
|
160
|
-
- **Real OS input** — tap
|
|
161
|
-
-
|
|
162
|
-
- **
|
|
163
|
-
- **
|
|
167
|
+
- **Real OS input** — `tap`, `long_press`, `swipe`, `drag`, `type_text`, `type_text_batch`, `press_key`. Goes through the real iOS/Android touch pipeline.
|
|
168
|
+
- **`tap_fiber`** — one call to locate a component via fiber_tree and tap its center. No copy-paste of bounds between calls.
|
|
169
|
+
- **Screenshots** — WebP, auto-diffing (`unchanged: true` on identical frames). Pass `region` in physical pixels to crop to a specific element and keep vision-token cost low.
|
|
170
|
+
- **App lifecycle** — launch, terminate, restart.
|
|
171
|
+
- **Device enumeration** — list sims / emulators / devices, annotated with active MCP clients.
|
|
172
|
+
- **Symbolication** — `symbolicate` resolves raw JS stack traces to source paths via Metro.
|
|
164
173
|
|
|
165
|
-
iOS input goes through a bundled `ios-hid` Swift binary
|
|
174
|
+
iOS input goes through a bundled `ios-hid` Swift binary that injects HID events directly into iOS Simulator via private frameworks — no external daemons to install or keep running.
|
|
166
175
|
|
|
167
176
|
## Hooks
|
|
168
177
|
|
|
@@ -201,6 +210,7 @@ const UserProvider = ({ children }) => {
|
|
|
201
210
|
| [errors](#errors) | `errorsModule(options?)` | — |
|
|
202
211
|
| [fiber_tree](#fiber_tree) | `fiberTreeModule({ rootRef })` | root ref (auto-supplied by `McpProvider`) |
|
|
203
212
|
| [i18n](#i18n) | `i18nextModule(i18n)` | i18next instance |
|
|
213
|
+
| [log_box](#log_box) | `logBoxModule()` | — |
|
|
204
214
|
| [navigation](#navigation) | `navigationModule(ref)` | React Navigation ref |
|
|
205
215
|
| [network](#network) | `networkModule(options?)` | — |
|
|
206
216
|
| [query](#query) | `reactQueryModule(queryClient)` | `QueryClient` |
|
|
@@ -230,29 +240,35 @@ Read-only view of platform facts (OS, version, dimensions in DP and physical pix
|
|
|
230
240
|
|
|
231
241
|
### errors
|
|
232
242
|
|
|
233
|
-
Captures unhandled JS errors (via `ErrorUtils.setGlobalHandler`) and unhandled promise rejections
|
|
243
|
+
Captures unhandled JS errors (via `ErrorUtils.setGlobalHandler`) and unhandled promise rejections. Each entry has parsed `stackFrames` designed to feed into `host__symbolicate` — one call resolves bundle paths back to `src/components/Foo.tsx:42:10`.
|
|
234
244
|
|
|
235
245
|
### fiber_tree
|
|
236
246
|
|
|
237
|
-
The heart of UI inspection.
|
|
247
|
+
The heart of UI inspection. Search the component tree via a chained `query`: each step narrows the result with criteria (name / testID / mcpId / text / props matcher / not / any) and a scope (descendants / ancestors / siblings / screen / nearest_host / …). Wrapper cascades (`PressableView → Pressable → View → RCTView`) collapse to the topmost by default. `bounds` come back in physical pixels and pair directly with `host__tap` — or use `host__tap_fiber` for the locate-and-tap shortcut.
|
|
238
248
|
|
|
239
249
|
### i18n
|
|
240
250
|
|
|
241
251
|
Inspect and manipulate an `i18next` instance: list keys, dump a whole translation resource, run a substring search, translate with interpolation, switch language at runtime.
|
|
242
252
|
|
|
253
|
+
### log_box
|
|
254
|
+
|
|
255
|
+
Control the React Native LogBox overlay: inspect current rows, dismiss or clear them, add ignore patterns (substring or `/regex/flags`), globally mute. Useful for clearing warning toasts that block automated UI flows. Dev-only — no-op in production.
|
|
256
|
+
|
|
243
257
|
### navigation
|
|
244
258
|
|
|
245
|
-
Drive React Navigation from outside — navigate, push, pop, replace, reset — and read the current route, nested state, and the last 100 transitions
|
|
259
|
+
Drive React Navigation from outside — navigate, push, pop, replace, reset — and read the current route, nested state, and the last 100 transitions. Current-route responses include a `screen` field identifying the rendering component (`componentName`, `mcpId`, `filePath`, `line`). Needs a `createNavigationContainerRef()` passed to both `<NavigationContainer ref={…}>` and `<McpProvider navigationRef={…}>`.
|
|
246
260
|
|
|
247
261
|
### network
|
|
248
262
|
|
|
249
|
-
Intercepts `fetch` and `XMLHttpRequest` into a ring buffer — method, URL, status, duration, headers, bodies.
|
|
263
|
+
Intercepts `fetch` and `XMLHttpRequest` into a ring buffer — method, URL, status, duration, headers, bodies. Bodies are capped per-entry (default 20KB) and sensitive headers / body keys are redacted at capture time (`Authorization`, `Cookie`, `password`, `token`, etc. — configurable). Query tools strip body data by default; fetch a specific body via `get_body({ id })`. WebSocket, Metro, and symbolicate traffic are auto-ignored.
|
|
250
264
|
|
|
251
265
|
```ts
|
|
252
266
|
networkModule({
|
|
253
267
|
maxEntries: 200,
|
|
254
|
-
|
|
268
|
+
bodyMaxBytes: 10_000,
|
|
255
269
|
ignoreUrls: ['https://analytics.example.com', /\.png$/],
|
|
270
|
+
redactHeaders: ['authorization'], // or false to disable
|
|
271
|
+
redactBodyKeys: ['password'], // or false to disable
|
|
256
272
|
});
|
|
257
273
|
```
|
|
258
274
|
|
package/dist/bin/ios-hid
CHANGED
|
Binary file
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"McpProvider.d.ts","sourceRoot":"","sources":["../../../../src/client/contexts/McpContext/McpProvider.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"McpProvider.d.ts","sourceRoot":"","sources":["../../../../src/client/contexts/McpContext/McpProvider.ts"],"names":[],"mappings":"AAgBA,OAAO,EAAE,KAAK,eAAe,EAAE,KAAK,gBAAgB,EAAE,MAAM,SAAS,CAAC;AAiBtE,eAAO,MAAM,WAAW,8EAQrB,gBAAgB,oGAsElB,CAAC"}
|
|
@@ -9,6 +9,7 @@ const device_1 = require("../../../modules/device");
|
|
|
9
9
|
const errors_1 = require("../../../modules/errors");
|
|
10
10
|
const fiberTree_1 = require("../../../modules/fiberTree");
|
|
11
11
|
const i18next_1 = require("../../../modules/i18next");
|
|
12
|
+
const logBox_1 = require("../../../modules/logBox");
|
|
12
13
|
const navigation_1 = require("../../../modules/navigation");
|
|
13
14
|
const network_1 = require("../../../modules/network");
|
|
14
15
|
const reactQuery_1 = require("../../../modules/reactQuery");
|
|
@@ -31,17 +32,19 @@ const McpProvider = ({ children, debug, i18n, modules, navigationRef, queryClien
|
|
|
31
32
|
}, [debug]);
|
|
32
33
|
const rootRef = (0, react_1.useRef)(null);
|
|
33
34
|
// Always-on modules — fiberTree picks up the internal root ref so apps no
|
|
34
|
-
// longer need to manage one manually.
|
|
35
|
+
// longer need to manage one manually. When navigationRef is provided, it's
|
|
36
|
+
// forwarded too so `scope: "screen"` can resolve the focused screen fiber.
|
|
35
37
|
(0, react_1.useEffect)(() => {
|
|
36
38
|
client.registerModules([
|
|
37
39
|
(0, alert_1.alertModule)(),
|
|
38
40
|
(0, console_1.consoleModule)(),
|
|
39
41
|
(0, device_1.deviceModule)(),
|
|
40
42
|
(0, errors_1.errorsModule)(),
|
|
43
|
+
(0, logBox_1.logBoxModule)(),
|
|
41
44
|
(0, network_1.networkModule)(),
|
|
42
|
-
(0, fiberTree_1.fiberTreeModule)({ rootRef }),
|
|
45
|
+
(0, fiberTree_1.fiberTreeModule)({ navigationRef, rootRef }),
|
|
43
46
|
]);
|
|
44
|
-
}, [client]);
|
|
47
|
+
}, [client, navigationRef]);
|
|
45
48
|
(0, react_1.useEffect)(() => {
|
|
46
49
|
if (!navigationRef)
|
|
47
50
|
return;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"McpProvider.js","sourceRoot":"","sources":["../../../../src/client/contexts/McpContext/McpProvider.ts"],"names":[],"mappings":";;;AAAA,iCAAsF;AAEtF,uDAAoD;AACpD,2CAA8C;AAC9C,+CAAkD;AAClD,6CAAgD;AAChD,6CAAgD;AAChD,mDAAsD;AACtD,+CAAkD;AAClD,qDAAwD;AACxD,+CAAkD;AAClD,qDAAwD;AACxD,+CAAkD;AAElD,6CAA0C;AAM1C,6EAA6E;AAC7E,8EAA8E;AAC9E,sCAAsC;AACtC,IAAI,aAAuC,CAAC;AAC5C,MAAM,OAAO,GAAG,GAAiB,EAAE;IACjC,IAAI,CAAC,aAAa,EAAE,CAAC;QACnB,iFAAiF;QACjF,aAAa,GAAG,OAAO,CAAC,cAAc,CAAC,CAAC,IAAoB,CAAC;IAC/D,CAAC;IACD,OAAO,aAAa,CAAC;AACvB,CAAC,CAAC;AAEK,MAAM,WAAW,GAAG,CAAC,EAC1B,QAAQ,EACR,KAAK,EACL,IAAI,EACJ,OAAO,EACP,aAAa,EACb,WAAW,EACX,QAAQ,GACS,EAAE,EAAE;IACrB,MAAM,MAAM,GAAG,IAAA,eAAO,EAAC,GAAG,EAAE;QAC1B,OAAO,qBAAS,CAAC,UAAU,CAAC,EAAE,KAAK,EAAE,CAAC,CAAC;IACzC,CAAC,EAAE,CAAC,KAAK,CAAC,CAAC,CAAC;IAEZ,MAAM,OAAO,GAAG,IAAA,cAAM,EAAU,IAAI,CAAC,CAAC;IAEtC,0EAA0E;IAC1E,
|
|
1
|
+
{"version":3,"file":"McpProvider.js","sourceRoot":"","sources":["../../../../src/client/contexts/McpContext/McpProvider.ts"],"names":[],"mappings":";;;AAAA,iCAAsF;AAEtF,uDAAoD;AACpD,2CAA8C;AAC9C,+CAAkD;AAClD,6CAAgD;AAChD,6CAAgD;AAChD,mDAAsD;AACtD,+CAAkD;AAClD,6CAAgD;AAChD,qDAAwD;AACxD,+CAAkD;AAClD,qDAAwD;AACxD,+CAAkD;AAElD,6CAA0C;AAM1C,6EAA6E;AAC7E,8EAA8E;AAC9E,sCAAsC;AACtC,IAAI,aAAuC,CAAC;AAC5C,MAAM,OAAO,GAAG,GAAiB,EAAE;IACjC,IAAI,CAAC,aAAa,EAAE,CAAC;QACnB,iFAAiF;QACjF,aAAa,GAAG,OAAO,CAAC,cAAc,CAAC,CAAC,IAAoB,CAAC;IAC/D,CAAC;IACD,OAAO,aAAa,CAAC;AACvB,CAAC,CAAC;AAEK,MAAM,WAAW,GAAG,CAAC,EAC1B,QAAQ,EACR,KAAK,EACL,IAAI,EACJ,OAAO,EACP,aAAa,EACb,WAAW,EACX,QAAQ,GACS,EAAE,EAAE;IACrB,MAAM,MAAM,GAAG,I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AK,EAAE,GAAG,EAAE,OAAO,EAAE,KAAK,EAAE,EAAE,IAAI,EAAE,CAAC,EAAE,EAAE,EAAE,QAAQ,CAAC,CAC7F,CAAC;AACJ,CAAC,CAAC;AA9EW,QAAA,WAAW,eA8EtB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"alert.d.ts","sourceRoot":"","sources":["../../../src/modules/alert/alert.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,SAAS,EAAE,MAAM,uBAAuB,CAAC;AAWvD,eAAO,MAAM,WAAW,QAAO,
|
|
1
|
+
{"version":3,"file":"alert.d.ts","sourceRoot":"","sources":["../../../src/modules/alert/alert.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,SAAS,EAAE,MAAM,uBAAuB,CAAC;AAWvD,eAAO,MAAM,WAAW,QAAO,SAkD9B,CAAC"}
|
|
@@ -8,11 +8,11 @@ const alertModule = () => {
|
|
|
8
8
|
return require('react-native');
|
|
9
9
|
};
|
|
10
10
|
return {
|
|
11
|
-
description: 'Show native alert dialogs
|
|
11
|
+
description: 'Show native Alert.alert dialogs and get back which button was pressed.',
|
|
12
12
|
name: 'alert',
|
|
13
13
|
tools: {
|
|
14
14
|
show: {
|
|
15
|
-
description: 'Show an alert dialog
|
|
15
|
+
description: 'Show an alert dialog; returns { button, index }.',
|
|
16
16
|
handler: (args) => {
|
|
17
17
|
const { Alert } = getRN();
|
|
18
18
|
const rawButtons = args.buttons;
|
|
@@ -35,11 +35,12 @@ const alertModule = () => {
|
|
|
35
35
|
},
|
|
36
36
|
inputSchema: {
|
|
37
37
|
buttons: {
|
|
38
|
-
description: '
|
|
38
|
+
description: 'Buttons — string or { text, style? }. style: default|cancel|destructive.',
|
|
39
|
+
examples: [['OK'], ['Cancel', 'OK'], [{ style: 'destructive', text: 'Delete' }]],
|
|
39
40
|
type: 'array',
|
|
40
41
|
},
|
|
41
|
-
message: { description: 'Alert
|
|
42
|
-
title: { description: 'Alert title', type: 'string' },
|
|
42
|
+
message: { description: 'Alert body.', type: 'string' },
|
|
43
|
+
title: { description: 'Alert title.', type: 'string' },
|
|
43
44
|
},
|
|
44
45
|
timeout: ALERT_TIMEOUT,
|
|
45
46
|
},
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"alert.js","sourceRoot":"","sources":["../../../src/modules/alert/alert.ts"],"names":[],"mappings":";;;AAEA,MAAM,aAAa,GAAG,MAAM,CAAC;AAStB,MAAM,WAAW,GAAG,GAAc,EAAE;IACzC,MAAM,KAAK,GAAG,GAAG,EAAE;QACjB,qGAAqG;QACrG,OAAO,OAAO,CAAC,cAAc,CAAC,CAAC;IACjC,CAAC,CAAC;IAEF,OAAO;QACL,WAAW,EAAE,
|
|
1
|
+
{"version":3,"file":"alert.js","sourceRoot":"","sources":["../../../src/modules/alert/alert.ts"],"names":[],"mappings":";;;AAEA,MAAM,aAAa,GAAG,MAAM,CAAC;AAStB,MAAM,WAAW,GAAG,GAAc,EAAE;IACzC,MAAM,KAAK,GAAG,GAAG,EAAE;QACjB,qGAAqG;QACrG,OAAO,OAAO,CAAC,cAAc,CAAC,CAAC;IACjC,CAAC,CAAC;IAEF,OAAO;QACL,WAAW,EAAE,wEAAwE;QACrF,IAAI,EAAE,OAAO;QACb,KAAK,EAAE;YACL,IAAI,EAAE;gBACJ,WAAW,EAAE,kDAAkD;gBAC/D,OAAO,EAAE,CAAC,IAAI,EAAE,EAAE;oBAChB,MAAM,EAAE,KAAK,EAAE,GAAG,KAAK,EAAE,CAAC;oBAC1B,MAAM,UAAU,GAAG,IAAI,CAAC,OAAkD,CAAC;oBAC3E,MAAM,OAAO,GAAkB,UAAU;wBACvC,CAAC,CAAC,UAAU,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE;4BACnB,OAAO,OAAO,CAAC,KAAK,QAAQ,CAAC,CAAC,CAAC,EAAE,IAAI,EAAE,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC;wBACjD,CAAC,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K,SAAS,EAAE,MAAM,uBAAuB,CAAC;AAEvD,OAAO,EAAE,KAAK,oBAAoB,EAAgC,MAAM,SAAS,CAAC;AAoElF,eAAO,MAAM,aAAa,aAAc,oBAAoB,KAAG,
|
|
1
|
+
{"version":3,"file":"console.d.ts","sourceRoot":"","sources":["../../../src/modules/console/console.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,SAAS,EAAE,MAAM,uBAAuB,CAAC;AAEvD,OAAO,EAAE,KAAK,oBAAoB,EAAgC,MAAM,SAAS,CAAC;AAoElF,eAAO,MAAM,aAAa,aAAc,oBAAoB,KAAG,SAkI9D,CAAC"}
|
|
@@ -101,45 +101,49 @@ const consoleModule = (options) => {
|
|
|
101
101
|
return filtered;
|
|
102
102
|
};
|
|
103
103
|
return {
|
|
104
|
-
description:
|
|
104
|
+
description: `Ring buffer of console.log/warn/error/info/debug.
|
|
105
|
+
|
|
106
|
+
Complex values (Errors, Dates, class instances, cyclic refs, functions,
|
|
107
|
+
Symbols) are serialized safely. Stack traces can be captured per level.
|
|
108
|
+
Buffer size and captured levels are configurable via consoleModule options.`,
|
|
105
109
|
name: 'console',
|
|
106
110
|
tools: {
|
|
107
111
|
clear_logs: {
|
|
108
|
-
description: 'Clear
|
|
112
|
+
description: 'Clear the log buffer.',
|
|
109
113
|
handler: () => {
|
|
110
114
|
buffer.length = 0;
|
|
111
115
|
return { success: true };
|
|
112
116
|
},
|
|
113
117
|
},
|
|
114
118
|
get_debug: {
|
|
115
|
-
description: '
|
|
119
|
+
description: 'Return console.debug entries.',
|
|
116
120
|
handler: (args) => {
|
|
117
121
|
return filterByLevel('debug', args.limit);
|
|
118
122
|
},
|
|
119
123
|
inputSchema: {
|
|
120
|
-
limit: { description: 'Max
|
|
124
|
+
limit: { description: 'Max entries to return.', type: 'number' },
|
|
121
125
|
},
|
|
122
126
|
},
|
|
123
127
|
get_errors: {
|
|
124
|
-
description: '
|
|
128
|
+
description: 'Return console.error entries.',
|
|
125
129
|
handler: (args) => {
|
|
126
130
|
return filterByLevel('error', args.limit);
|
|
127
131
|
},
|
|
128
132
|
inputSchema: {
|
|
129
|
-
limit: { description: 'Max
|
|
133
|
+
limit: { description: 'Max entries to return.', type: 'number' },
|
|
130
134
|
},
|
|
131
135
|
},
|
|
132
136
|
get_info: {
|
|
133
|
-
description: '
|
|
137
|
+
description: 'Return console.info entries.',
|
|
134
138
|
handler: (args) => {
|
|
135
139
|
return filterByLevel('info', args.limit);
|
|
136
140
|
},
|
|
137
141
|
inputSchema: {
|
|
138
|
-
limit: { description: 'Max
|
|
142
|
+
limit: { description: 'Max entries to return.', type: 'number' },
|
|
139
143
|
},
|
|
140
144
|
},
|
|
141
145
|
get_logs: {
|
|
142
|
-
description: '
|
|
146
|
+
description: 'Return all log entries, optionally filtered by level and limit.',
|
|
143
147
|
handler: (args) => {
|
|
144
148
|
let result = [...buffer];
|
|
145
149
|
if (args.level) {
|
|
@@ -154,19 +158,20 @@ const consoleModule = (options) => {
|
|
|
154
158
|
},
|
|
155
159
|
inputSchema: {
|
|
156
160
|
level: {
|
|
157
|
-
description: 'Filter by
|
|
161
|
+
description: 'Filter by level.',
|
|
162
|
+
examples: ['log', 'warn', 'error', 'info', 'debug'],
|
|
158
163
|
type: 'string',
|
|
159
164
|
},
|
|
160
|
-
limit: { description: 'Max
|
|
165
|
+
limit: { description: 'Max entries to return.', type: 'number' },
|
|
161
166
|
},
|
|
162
167
|
},
|
|
163
168
|
get_warnings: {
|
|
164
|
-
description: '
|
|
169
|
+
description: 'Return console.warn entries.',
|
|
165
170
|
handler: (args) => {
|
|
166
171
|
return filterByLevel('warn', args.limit);
|
|
167
172
|
},
|
|
168
173
|
inputSchema: {
|
|
169
|
-
limit: { description: 'Max
|
|
174
|
+
limit: { description: 'Max entries to return.', type: 'number' },
|
|
170
175
|
},
|
|
171
176
|
},
|
|
172
177
|
},
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"console.js","sourceRoot":"","sources":["../../../src/modules/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ACD,WAAW,EAAE;oBACX,KAAK,EAAE;wBACL,WAAW,EAAE,kBAAkB;wBAC/B,QAAQ,EAAE,CAAC,KAAK,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,EAAE,OAAO,CAAC;wBACnD,IAAI,EAAE,QAAQ;qBACf;oBACD,KAAK,EAAE,EAAE,WAAW,EAAE,wBAAwB,EAAE,IAAI,EAAE,QAAQ,EAAE;iBACjE;aACF;YACD,YAAY,EAAE;gBACZ,WAAW,EAAE,8BAA8B;gBAC3C,OAAO,EAAE,CAAC,IAAI,EAAE,EAAE;oBAChB,OAAO,aAAa,CAAC,MAAM,EAAE,IAAI,CAAC,KAA2B,CAAC,CAAC;gBACjE,CAAC;gBACD,WAAW,EAAE;oBACX,KAAK,EAAE,EAAE,WAAW,EAAE,wBAAwB,EAAE,IAAI,EAAE,QAAQ,EAAE;iBACjE;aACF;SACF;KACF,CAAC;AACJ,CAAC,CAAC;AAlIW,QAAA,aAAa,iBAkIxB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"device.d.ts","sourceRoot":"","sources":["../../../src/modules/device/device.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,SAAS,EAAE,MAAM,uBAAuB,CAAC;AAEvD,eAAO,MAAM,YAAY,QAAO,
|
|
1
|
+
{"version":3,"file":"device.d.ts","sourceRoot":"","sources":["../../../src/modules/device/device.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,SAAS,EAAE,MAAM,uBAAuB,CAAC;AAEvD,eAAO,MAAM,YAAY,QAAO,SAoM/B,CAAC"}
|
|
@@ -8,33 +8,34 @@ const deviceModule = () => {
|
|
|
8
8
|
return require('react-native');
|
|
9
9
|
};
|
|
10
10
|
return {
|
|
11
|
-
description:
|
|
11
|
+
description: `Device + platform introspection, plus a few imperative actions (open URL, dismiss keyboard, reload, vibrate).
|
|
12
|
+
|
|
13
|
+
Dimension helpers return values in both logical DP and physical pixels —
|
|
14
|
+
physical pixel helpers (screenPixels / windowPixels in get_dimensions)
|
|
15
|
+
match what host__tap / adb input tap consume.`,
|
|
12
16
|
name: 'device',
|
|
13
17
|
tools: {
|
|
14
|
-
// === Linking ===
|
|
15
18
|
can_open_url: {
|
|
16
|
-
description: 'Check if a URL can be opened by an installed app',
|
|
19
|
+
description: 'Check if a URL can be opened by an installed app.',
|
|
17
20
|
handler: async (args) => {
|
|
18
21
|
const { Linking } = getRN();
|
|
19
22
|
const canOpen = await Linking.canOpenURL(args.url);
|
|
20
23
|
return { canOpen, url: args.url };
|
|
21
24
|
},
|
|
22
25
|
inputSchema: {
|
|
23
|
-
url: { description: 'URL to check', type: 'string' },
|
|
26
|
+
url: { description: 'URL to check.', type: 'string' },
|
|
24
27
|
},
|
|
25
28
|
},
|
|
26
|
-
// === Keyboard ===
|
|
27
29
|
dismiss_keyboard: {
|
|
28
|
-
description: 'Dismiss the currently visible keyboard',
|
|
30
|
+
description: 'Dismiss the currently visible keyboard.',
|
|
29
31
|
handler: () => {
|
|
30
32
|
const { Keyboard } = getRN();
|
|
31
33
|
Keyboard.dismiss();
|
|
32
34
|
return { success: true };
|
|
33
35
|
},
|
|
34
36
|
},
|
|
35
|
-
// === Accessibility ===
|
|
36
37
|
get_accessibility_info: {
|
|
37
|
-
description: '
|
|
38
|
+
description: 'Screen reader / reduce motion / bold text settings.',
|
|
38
39
|
handler: async () => {
|
|
39
40
|
const { AccessibilityInfo } = getRN();
|
|
40
41
|
const [isScreenReaderEnabled, isReduceMotionEnabled] = await Promise.all([
|
|
@@ -47,25 +48,22 @@ const deviceModule = () => {
|
|
|
47
48
|
};
|
|
48
49
|
},
|
|
49
50
|
},
|
|
50
|
-
// === App State ===
|
|
51
51
|
get_app_state: {
|
|
52
|
-
description: '
|
|
52
|
+
description: 'App lifecycle state: active / background / inactive.',
|
|
53
53
|
handler: () => {
|
|
54
54
|
const { AppState } = getRN();
|
|
55
55
|
return { state: AppState.currentState };
|
|
56
56
|
},
|
|
57
57
|
},
|
|
58
|
-
// === Appearance ===
|
|
59
58
|
get_appearance: {
|
|
60
|
-
description: '
|
|
59
|
+
description: 'Current color scheme: light / dark / null.',
|
|
61
60
|
handler: () => {
|
|
62
61
|
const { Appearance } = getRN();
|
|
63
62
|
return { colorScheme: Appearance.getColorScheme() };
|
|
64
63
|
},
|
|
65
64
|
},
|
|
66
|
-
// === Device Info ===
|
|
67
65
|
get_device_info: {
|
|
68
|
-
description: '
|
|
66
|
+
description: 'Platform, OS version, dimensions, pixel ratio, appearance, dev flag.',
|
|
69
67
|
handler: () => {
|
|
70
68
|
const { Appearance, Dimensions, PixelRatio, Platform } = getRN();
|
|
71
69
|
return {
|
|
@@ -86,7 +84,7 @@ const deviceModule = () => {
|
|
|
86
84
|
},
|
|
87
85
|
},
|
|
88
86
|
get_dimensions: {
|
|
89
|
-
description: '
|
|
87
|
+
description: 'Screen + window dimensions in both DP (raw RN) and physical pixels.',
|
|
90
88
|
handler: () => {
|
|
91
89
|
const { Dimensions, PixelRatio } = getRN();
|
|
92
90
|
const ratio = PixelRatio.get();
|
|
@@ -108,7 +106,7 @@ const deviceModule = () => {
|
|
|
108
106
|
},
|
|
109
107
|
},
|
|
110
108
|
get_initial_url: {
|
|
111
|
-
description: '
|
|
109
|
+
description: 'Deep link that launched the app, if any.',
|
|
112
110
|
handler: async () => {
|
|
113
111
|
const { Linking } = getRN();
|
|
114
112
|
const url = await Linking.getInitialURL();
|
|
@@ -116,7 +114,7 @@ const deviceModule = () => {
|
|
|
116
114
|
},
|
|
117
115
|
},
|
|
118
116
|
get_keyboard_state: {
|
|
119
|
-
description: '
|
|
117
|
+
description: 'Keyboard visibility + metrics.',
|
|
120
118
|
handler: () => {
|
|
121
119
|
const { Keyboard } = getRN();
|
|
122
120
|
return {
|
|
@@ -126,7 +124,7 @@ const deviceModule = () => {
|
|
|
126
124
|
},
|
|
127
125
|
},
|
|
128
126
|
get_pixel_ratio: {
|
|
129
|
-
description: '
|
|
127
|
+
description: 'Pixel density + font scale.',
|
|
130
128
|
handler: () => {
|
|
131
129
|
const { PixelRatio } = getRN();
|
|
132
130
|
return {
|
|
@@ -136,7 +134,7 @@ const deviceModule = () => {
|
|
|
136
134
|
},
|
|
137
135
|
},
|
|
138
136
|
get_platform: {
|
|
139
|
-
description: '
|
|
137
|
+
description: 'OS, version, native constants (model/brand/manufacturer on Android).',
|
|
140
138
|
handler: () => {
|
|
141
139
|
const { Platform } = getRN();
|
|
142
140
|
return {
|
|
@@ -147,7 +145,7 @@ const deviceModule = () => {
|
|
|
147
145
|
},
|
|
148
146
|
},
|
|
149
147
|
open_settings: {
|
|
150
|
-
description: 'Open the app settings page in device settings',
|
|
148
|
+
description: 'Open the app settings page in device settings.',
|
|
151
149
|
handler: async () => {
|
|
152
150
|
const { Linking } = getRN();
|
|
153
151
|
await Linking.openSettings();
|
|
@@ -155,28 +153,26 @@ const deviceModule = () => {
|
|
|
155
153
|
},
|
|
156
154
|
},
|
|
157
155
|
open_url: {
|
|
158
|
-
description: 'Open a URL with the appropriate installed app
|
|
156
|
+
description: 'Open a URL with the appropriate installed app.',
|
|
159
157
|
handler: async (args) => {
|
|
160
158
|
const { Linking } = getRN();
|
|
161
159
|
await Linking.openURL(args.url);
|
|
162
160
|
return { success: true, url: args.url };
|
|
163
161
|
},
|
|
164
162
|
inputSchema: {
|
|
165
|
-
url: { description: 'URL to open', type: 'string' },
|
|
163
|
+
url: { description: 'URL to open.', type: 'string' },
|
|
166
164
|
},
|
|
167
165
|
},
|
|
168
|
-
// === App Control ===
|
|
169
166
|
reload: {
|
|
170
|
-
description: 'Reload the app (dev mode only
|
|
167
|
+
description: 'Reload the app (dev mode only — like pressing R in Metro).',
|
|
171
168
|
handler: () => {
|
|
172
169
|
const { DevSettings } = getRN();
|
|
173
170
|
DevSettings.reload();
|
|
174
171
|
return { success: true };
|
|
175
172
|
},
|
|
176
173
|
},
|
|
177
|
-
// === Vibration ===
|
|
178
174
|
vibrate: {
|
|
179
|
-
description: 'Vibrate the device',
|
|
175
|
+
description: 'Vibrate the device.',
|
|
180
176
|
handler: (args) => {
|
|
181
177
|
const { Vibration } = getRN();
|
|
182
178
|
const duration = args.duration || 400;
|
|
@@ -184,7 +180,7 @@ const deviceModule = () => {
|
|
|
184
180
|
return { success: true };
|
|
185
181
|
},
|
|
186
182
|
inputSchema: {
|
|
187
|
-
duration: { description: '
|
|
183
|
+
duration: { description: 'Duration in ms (default: 400).', type: 'number' },
|
|
188
184
|
},
|
|
189
185
|
},
|
|
190
186
|
},
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"device.js","sourceRoot":"","sources":["../../../src/modules/device/device.ts"],"names":[],"mappings":";;;AAEO,MAAM,YAAY,GAAG,GAAc,EAAE;IAC1C,8DAA8D;IAC9D,MAAM,KAAK,GAAG,GAAG,EAAE;QACjB,qGAAqG;QACrG,OAAO,OAAO,CAAC,cAAc,CAAC,CAAC;IACjC,CAAC,CAAC;IAEF,OAAO;QACL,WAAW,EAAE
|
|
1
|
+
{"version":3,"file":"device.js","sourceRoot":"","sources":["../../../src/modules/device/device.ts"],"names":[],"mappings":";;;AAEO,MAAM,YAAY,GAAG,GAAc,EAAE;IAC1C,8DAA8D;IAC9D,MAAM,KAAK,GAAG,GAAG,EAAE;QACjB,qGAAqG;QACrG,OAAO,OAAO,CAAC,cAAc,CAAC,CAAC;IACjC,CAAC,CAAC;IAEF,OAAO;QACL,WAAW,EAAE;;;;8CAI6B;QAC1C,IAAI,EAAE,QAAQ;QACd,KAAK,EAAE;YACL,YAAY,EAAE;gBACZ,WAAW,EAAE,mDAAmD;gBAChE,OAAO,EAAE,KAAK,EAAE,IAAI,EAAE,EAAE;oBACtB,MAAM,EAAE,OAAO,EAAE,GAAG,KAAK,EAAE,CAAC;oBAC5B,MAAM,OAAO,GAAG,MAAM,OAAO,CAAC,UAAU,CAAC,IAAI,CAAC,GAAa,CAAC,CAAC;oBAC7D,OAAO,EAAE,OAAO,EAAE,GAAG,EAAE,IAAI,CAAC,GAAG,EAAE,CA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AE,CAAC;gBAC3B,CAAC;gBACD,WAAW,EAAE;oBACX,QAAQ,EAAE,EAAE,WAAW,EAAE,gCAAgC,EAAE,IAAI,EAAE,QAAQ,EAAE;iBAC5E;aACF;SACF;KACF,CAAC;AACJ,CAAC,CAAC;AApMW,QAAA,YAAY,gBAoMvB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"errors.d.ts","sourceRoot":"","sources":["../../../src/modules/errors/errors.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,SAAS,EAAE,MAAM,uBAAuB,CAAC;AAEvD,OAAO,
|
|
1
|
+
{"version":3,"file":"errors.d.ts","sourceRoot":"","sources":["../../../src/modules/errors/errors.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,SAAS,EAAE,MAAM,uBAAuB,CAAC;AAEvD,OAAO,EAGL,KAAK,mBAAmB,EAEzB,MAAM,SAAS,CAAC;AAoCjB,eAAO,MAAM,YAAY,aAAc,mBAAmB,KAAG,SAwL5D,CAAC"}
|