react-native-mcp-kit 2.1.0 → 2.2.0
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 +20 -11
- 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 +440 -93
- package/dist/server/mcpServer.js.map +1 -1
- package/package.json +1 -1
|
@@ -2,9 +2,41 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.errorsModule = void 0;
|
|
4
4
|
const DEFAULT_MAX_ENTRIES = 50;
|
|
5
|
+
// Match both the V8 ` at method (file:line:col)` and Hermes / JSC
|
|
6
|
+
// `method@file:line:col` stack formats. Keep parsing lightweight — full
|
|
7
|
+
// symbolication lives in host__symbolicate so the agent can resolve frames
|
|
8
|
+
// back to source paths against Metro's sourcemaps on demand.
|
|
9
|
+
const parseStack = (stack) => {
|
|
10
|
+
if (!stack)
|
|
11
|
+
return undefined;
|
|
12
|
+
const frames = [];
|
|
13
|
+
const v8Regex = /^\s*at\s+(?:(.+?)\s+\()?(.+?):(\d+):(\d+)\)?\s*$/gm;
|
|
14
|
+
let match;
|
|
15
|
+
while ((match = v8Regex.exec(stack)) !== null) {
|
|
16
|
+
frames.push({
|
|
17
|
+
column: Number.parseInt(match[4], 10),
|
|
18
|
+
file: match[2],
|
|
19
|
+
lineNumber: Number.parseInt(match[3], 10),
|
|
20
|
+
methodName: match[1]?.trim() || undefined,
|
|
21
|
+
});
|
|
22
|
+
}
|
|
23
|
+
if (frames.length > 0)
|
|
24
|
+
return frames;
|
|
25
|
+
const hermesRegex = /^(.*?)@(.+?):(\d+):(\d+)$/gm;
|
|
26
|
+
while ((match = hermesRegex.exec(stack)) !== null) {
|
|
27
|
+
frames.push({
|
|
28
|
+
column: Number.parseInt(match[4], 10),
|
|
29
|
+
file: match[2],
|
|
30
|
+
lineNumber: Number.parseInt(match[3], 10),
|
|
31
|
+
methodName: match[1]?.trim() || undefined,
|
|
32
|
+
});
|
|
33
|
+
}
|
|
34
|
+
return frames.length > 0 ? frames : undefined;
|
|
35
|
+
};
|
|
5
36
|
const errorsModule = (options) => {
|
|
6
37
|
const maxEntries = options?.maxEntries ?? DEFAULT_MAX_ENTRIES;
|
|
7
38
|
const buffer = [];
|
|
39
|
+
let nextId = 1;
|
|
8
40
|
const addEntry = (entry) => {
|
|
9
41
|
// Deduplicate by message + timestamp proximity (within 100ms)
|
|
10
42
|
const lastEntry = buffer[buffer.length - 1];
|
|
@@ -13,7 +45,7 @@ const errorsModule = (options) => {
|
|
|
13
45
|
if (Math.abs(timeDiff) < 100)
|
|
14
46
|
return;
|
|
15
47
|
}
|
|
16
|
-
buffer.push(entry);
|
|
48
|
+
buffer.push({ ...entry, id: nextId++ });
|
|
17
49
|
if (buffer.length > maxEntries) {
|
|
18
50
|
buffer.splice(0, buffer.length - maxEntries);
|
|
19
51
|
}
|
|
@@ -30,6 +62,7 @@ const errorsModule = (options) => {
|
|
|
30
62
|
message: error.message,
|
|
31
63
|
source,
|
|
32
64
|
stack: error.stack,
|
|
65
|
+
stackFrames: parseStack(error.stack),
|
|
33
66
|
timestamp: new Date().toISOString(),
|
|
34
67
|
});
|
|
35
68
|
if (originalHandler) {
|
|
@@ -50,6 +83,7 @@ const errorsModule = (options) => {
|
|
|
50
83
|
message: error.message,
|
|
51
84
|
source: 'promise',
|
|
52
85
|
stack: error.stack,
|
|
86
|
+
stackFrames: parseStack(error.stack),
|
|
53
87
|
timestamp: new Date().toISOString(),
|
|
54
88
|
});
|
|
55
89
|
}
|
|
@@ -57,18 +91,22 @@ const errorsModule = (options) => {
|
|
|
57
91
|
originalConsoleError.apply(console, args);
|
|
58
92
|
};
|
|
59
93
|
return {
|
|
60
|
-
description:
|
|
94
|
+
description: `Unhandled JS errors + promise rejections, with stack traces.
|
|
95
|
+
|
|
96
|
+
Captures via ErrorUtils.setGlobalHandler + console.error sniffing.
|
|
97
|
+
Deduplicates within a 100ms window. Buffer size configurable via
|
|
98
|
+
errorsModule options.`,
|
|
61
99
|
name: 'errors',
|
|
62
100
|
tools: {
|
|
63
101
|
clear_errors: {
|
|
64
|
-
description: 'Clear
|
|
102
|
+
description: 'Clear the error buffer.',
|
|
65
103
|
handler: () => {
|
|
66
104
|
buffer.length = 0;
|
|
67
105
|
return { success: true };
|
|
68
106
|
},
|
|
69
107
|
},
|
|
70
108
|
get_errors: {
|
|
71
|
-
description: '
|
|
109
|
+
description: 'Captured errors; filterable by source / fatal / time range. Default: omits raw `stack` string (keeps `stackFrames`). Pass includeStack: true to get both. Use `host__symbolicate` on stackFrames to resolve bundled paths back to source.',
|
|
72
110
|
handler: (args) => {
|
|
73
111
|
let result = [...buffer];
|
|
74
112
|
if (args.source) {
|
|
@@ -81,19 +119,62 @@ const errorsModule = (options) => {
|
|
|
81
119
|
return e.isFatal === args.fatal;
|
|
82
120
|
});
|
|
83
121
|
}
|
|
122
|
+
if (typeof args.since === 'string') {
|
|
123
|
+
const sinceMs = Date.parse(args.since);
|
|
124
|
+
if (Number.isFinite(sinceMs)) {
|
|
125
|
+
result = result.filter((e) => {
|
|
126
|
+
return Date.parse(e.timestamp) >= sinceMs;
|
|
127
|
+
});
|
|
128
|
+
}
|
|
129
|
+
}
|
|
130
|
+
if (typeof args.until === 'string') {
|
|
131
|
+
const untilMs = Date.parse(args.until);
|
|
132
|
+
if (Number.isFinite(untilMs)) {
|
|
133
|
+
result = result.filter((e) => {
|
|
134
|
+
return Date.parse(e.timestamp) <= untilMs;
|
|
135
|
+
});
|
|
136
|
+
}
|
|
137
|
+
}
|
|
138
|
+
if (typeof args.offset === 'number') {
|
|
139
|
+
result = result.slice(args.offset);
|
|
140
|
+
}
|
|
84
141
|
if (args.limit) {
|
|
85
142
|
result = result.slice(-args.limit);
|
|
86
143
|
}
|
|
87
|
-
|
|
144
|
+
const includeStack = args.includeStack === true;
|
|
145
|
+
return result.map((entry) => {
|
|
146
|
+
if (includeStack)
|
|
147
|
+
return entry;
|
|
148
|
+
const { stack, ...rest } = entry;
|
|
149
|
+
return { ...rest, hasRawStack: typeof stack === 'string' };
|
|
150
|
+
});
|
|
88
151
|
},
|
|
89
152
|
inputSchema: {
|
|
90
|
-
fatal: { description: 'Filter by fatal flag
|
|
91
|
-
|
|
92
|
-
|
|
153
|
+
fatal: { description: 'Filter by fatal flag.', type: 'boolean' },
|
|
154
|
+
includeStack: {
|
|
155
|
+
description: 'Include the raw `stack` string alongside parsed `stackFrames`. Default false — stackFrames already carries the structured form for host__symbolicate.',
|
|
156
|
+
type: 'boolean',
|
|
157
|
+
},
|
|
158
|
+
limit: { description: 'Max entries to return (applied last).', type: 'number' },
|
|
159
|
+
offset: { description: 'Skip the first N entries.', type: 'number' },
|
|
160
|
+
since: {
|
|
161
|
+
description: 'ISO timestamp — only entries at or after this point.',
|
|
162
|
+
examples: ['2026-04-19T22:00:00.000Z'],
|
|
163
|
+
type: 'string',
|
|
164
|
+
},
|
|
165
|
+
source: {
|
|
166
|
+
description: 'Filter by source.',
|
|
167
|
+
examples: ['global', 'promise'],
|
|
168
|
+
type: 'string',
|
|
169
|
+
},
|
|
170
|
+
until: {
|
|
171
|
+
description: 'ISO timestamp — only entries at or before this point.',
|
|
172
|
+
type: 'string',
|
|
173
|
+
},
|
|
93
174
|
},
|
|
94
175
|
},
|
|
95
176
|
get_fatal: {
|
|
96
|
-
description: '
|
|
177
|
+
description: 'Fatal errors only.',
|
|
97
178
|
handler: (args) => {
|
|
98
179
|
let result = buffer.filter((e) => {
|
|
99
180
|
return e.isFatal;
|
|
@@ -104,11 +185,11 @@ const errorsModule = (options) => {
|
|
|
104
185
|
return result;
|
|
105
186
|
},
|
|
106
187
|
inputSchema: {
|
|
107
|
-
limit: { description: 'Max
|
|
188
|
+
limit: { description: 'Max entries to return.', type: 'number' },
|
|
108
189
|
},
|
|
109
190
|
},
|
|
110
191
|
get_stats: {
|
|
111
|
-
description: '
|
|
192
|
+
description: 'Error counts — total, by source, fatal.',
|
|
112
193
|
handler: () => {
|
|
113
194
|
return {
|
|
114
195
|
bySource: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"errors.js","sourceRoot":"","sources":["../../../src/modules/errors/errors.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"errors.js","sourceRoot":"","sources":["../../../src/modules/errors/errors.ts"],"names":[],"mappings":";;;AASA,MAAM,mBAAmB,GAAG,EAAE,CAAC;AAE/B,qEAAqE;AACrE,wEAAwE;AACxE,2EAA2E;AAC3E,6DAA6D;AAC7D,MAAM,UAAU,GAAG,CAAC,KAAyB,EAA4B,EAAE;IACzE,IAAI,CAAC,KAAK;QAAE,OAAO,SAAS,CAAC;IAC7B,MAAM,MAAM,GAAiB,EAAE,CAAC;IAEhC,MAAM,OAAO,GAAG,oDAAoD,CAAC;IACrE,IAAI,KAA6B,CAAC;IAClC,OAAO,CAAC,KAAK,GAAG,OAAO,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,KAAK,IAAI,EAAE,CAAC;QAC9C,MAAM,CAAC,IAAI,CAAC;YACV,MAAM,EAAE,MAAM,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC,CAAE,EAAE,EAAE,CAAC;YACtC,IAAI,EAAE,KAAK,CAAC,CAAC,CAAE;YACf,UAAU,EAAE,MAAM,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC,CAAE,EAAE,EAAE,CAAC;YAC1C,UAAU,EAAE,KAAK,CAAC,CAAC,CAAC,EAAE,IAAI,EAAE,IAAI,SAAS;SAC1C,CAAC,CAAC;IACL,CAAC;IACD,IAAI,MAAM,CAAC,MAAM,GAAG,CA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AAC,CAAC,EAAE,EAAE;wBAC/B,OAAO,CAAC,CAAC,OAAO,CAAC;oBACnB,CAAC,CAAC,CAAC;oBACH,IAAI,IAAI,CAAC,KAAK,EAAE,CAAC;wBACf,MAAM,GAAG,MAAM,CAAC,KAAK,CAAC,CAAE,IAAI,CAAC,KAAgB,CAAC,CAAC;oBACjD,CAAC;oBACD,OAAO,MAAM,CAAC;gBAChB,CAAC;gBACD,WAAW,EAAE;oBACX,KAAK,EAAE,EAAE,WAAW,EAAE,wBAAwB,EAAE,IAAI,EAAE,QAAQ,EAAE;iBACjE;aACF;YACD,SAAS,EAAE;gBACT,WAAW,EAAE,yCAAyC;gBACtD,OAAO,EAAE,GAAG,EAAE;oBACZ,OAAO;wBACL,QAAQ,EAAE;4BACR,MAAM,EAAE,MAAM,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,EAAE;gCAC1B,OAAO,CAAC,CAAC,MAAM,KAAK,QAAQ,CAAC;4BAC/B,CAAC,CAAC,CAAC,MAAM;4BACT,OAAO,EAAE,MAAM,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,EAAE;gCAC3B,OAAO,CAAC,CAAC,MAAM,KAAK,SAAS,CAAC;4BAChC,CAAC,CAAC,CAAC,MAAM;yBACV;wBACD,KAAK,EAAE,MAAM,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,EAAE;4BACzB,OAAO,CAAC,CAAC,OAAO,CAAC;wBACnB,CAAC,CAAC,CAAC,MAAM;wBACT,KAAK,EAAE,MAAM,CAAC,MAAM;qBACrB,CAAC;gBACJ,CAAC;aACF;SACF;KACF,CAAC;AACJ,CAAC,CAAC;AAxLW,QAAA,YAAY,gBAwLvB"}
|
|
@@ -1,10 +1,18 @@
|
|
|
1
1
|
export type ErrorSource = 'global' | 'promise';
|
|
2
|
+
export interface StackFrame {
|
|
3
|
+
column?: number;
|
|
4
|
+
file?: string;
|
|
5
|
+
lineNumber?: number;
|
|
6
|
+
methodName?: string;
|
|
7
|
+
}
|
|
2
8
|
export interface ErrorEntry {
|
|
9
|
+
id: number;
|
|
3
10
|
isFatal: boolean;
|
|
4
11
|
message: string;
|
|
5
12
|
source: ErrorSource;
|
|
6
13
|
timestamp: string;
|
|
7
14
|
stack?: string;
|
|
15
|
+
stackFrames?: StackFrame[];
|
|
8
16
|
}
|
|
9
17
|
export interface ErrorsModuleOptions {
|
|
10
18
|
maxEntries?: number;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/modules/errors/types.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,WAAW,GAAG,QAAQ,GAAG,SAAS,CAAC;AAE/C,MAAM,WAAW,UAAU;IACzB,OAAO,EAAE,OAAO,CAAC;IACjB,OAAO,EAAE,MAAM,CAAC;IAChB,MAAM,EAAE,WAAW,CAAC;IACpB,SAAS,EAAE,MAAM,CAAC;IAClB,KAAK,CAAC,EAAE,MAAM,CAAC;
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/modules/errors/types.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,WAAW,GAAG,QAAQ,GAAG,SAAS,CAAC;AAE/C,MAAM,WAAW,UAAU;IACzB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB;AAED,MAAM,WAAW,UAAU;IACzB,EAAE,EAAE,MAAM,CAAC;IACX,OAAO,EAAE,OAAO,CAAC;IACjB,OAAO,EAAE,MAAM,CAAC;IAChB,MAAM,EAAE,WAAW,CAAC;IACpB,SAAS,EAAE,MAAM,CAAC;IAClB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,WAAW,CAAC,EAAE,UAAU,EAAE,CAAC;CAC5B;AAED,MAAM,WAAW,mBAAmB;IAClC,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB"}
|
|
@@ -1,6 +1,10 @@
|
|
|
1
1
|
import { type RefObject } from 'react';
|
|
2
2
|
import { type McpModule } from '../../client/models/types';
|
|
3
|
+
interface FiberTreeNavigationRef {
|
|
4
|
+
getCurrentRoute?: () => unknown;
|
|
5
|
+
}
|
|
3
6
|
interface FiberTreeModuleOptions {
|
|
7
|
+
navigationRef?: FiberTreeNavigationRef | null;
|
|
4
8
|
rootRef?: RefObject<unknown>;
|
|
5
9
|
}
|
|
6
10
|
export declare const fiberTreeModule: (options?: FiberTreeModuleOptions) => McpModule;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fiberTree.d.ts","sourceRoot":"","sources":["../../../src/modules/fiberTree/fiberTree.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AAEvC,OAAO,EAAE,KAAK,SAAS,EAAE,MAAM,uBAAuB,CAAC;
|
|
1
|
+
{"version":3,"file":"fiberTree.d.ts","sourceRoot":"","sources":["../../../src/modules/fiberTree/fiberTree.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AAEvC,OAAO,EAAE,KAAK,SAAS,EAAE,MAAM,uBAAuB,CAAC;AAkDvD,UAAU,sBAAsB;IAC9B,eAAe,CAAC,EAAE,MAAM,OAAO,CAAC;CACjC;AAED,UAAU,sBAAsB;IAC9B,aAAa,CAAC,EAAE,sBAAsB,GAAG,IAAI,CAAC;IAC9C,OAAO,CAAC,EAAE,SAAS,CAAC,OAAO,CAAC,CAAC;CAC9B;AAmJD,eAAO,MAAM,eAAe,aAAc,sBAAsB,KAAG,SA+flE,CAAC"}
|