mobile-debug-mcp 0.10.0 → 0.11.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 CHANGED
@@ -2,6 +2,8 @@
2
2
 
3
3
  A minimal, secure MCP server for AI-assisted mobile development. Build, install, and inspect Android/iOS apps from an MCP-compatible client.
4
4
 
5
+ > **Note:** iOS support is currently an untested Work In Progress (WIP). Please use with caution and report any issues.
6
+
5
7
  ## Requirements
6
8
 
7
9
  - Node.js >= 18
@@ -23,7 +25,7 @@ A minimal, secure MCP server for AI-assisted mobile development. Build, install,
23
25
  }
24
26
  ```
25
27
  ## Usage
26
- //TODO add examples
28
+ I have a crash on the app, can you diagnose it, fix and validate using the mcp tools available
27
29
 
28
30
  ## Docs
29
31
 
@@ -1,10 +1,5 @@
1
- import { execAdb, getAndroidDeviceMetadata, getDeviceInfo, spawnAdb } from "./utils.js";
2
- import { detectJavaHome } from "../utils/java.js";
1
+ import { execAdb, getAndroidDeviceMetadata, getDeviceInfo } from "./utils.js";
3
2
  import { AndroidObserve } from "./observe.js";
4
- import { promises as fs } from "fs";
5
- import { spawn } from "child_process";
6
- import path from "path";
7
- import { existsSync } from "fs";
8
3
  export class AndroidInteract {
9
4
  observe = new AndroidObserve();
10
5
  async waitForElement(text, timeout, deviceId) {
@@ -81,143 +76,4 @@ export class AndroidInteract {
81
76
  return { device: deviceInfo, success: false, error: e instanceof Error ? e.message : String(e) };
82
77
  }
83
78
  }
84
- async installApp(apkPath, deviceId) {
85
- const metadata = await getAndroidDeviceMetadata("", deviceId);
86
- const deviceInfo = getDeviceInfo(deviceId || 'default', metadata);
87
- // Helper to recursively find first APK under a directory
88
- async function findApk(dir) {
89
- const entries = await fs.readdir(dir, { withFileTypes: true }).catch(() => []);
90
- for (const e of entries) {
91
- const full = path.join(dir, e.name);
92
- if (e.isDirectory()) {
93
- const found = await findApk(full);
94
- if (found)
95
- return found;
96
- }
97
- else if (e.isFile() && full.endsWith('.apk')) {
98
- return full;
99
- }
100
- }
101
- return undefined;
102
- }
103
- try {
104
- let apkToInstall = apkPath;
105
- // If a directory is provided, attempt to build via Gradle
106
- const stat = await fs.stat(apkPath).catch(() => null);
107
- if (stat && stat.isDirectory()) {
108
- const gradlewPath = path.join(apkPath, 'gradlew');
109
- const gradleCmd = existsSync(gradlewPath) ? './gradlew' : 'gradle';
110
- await new Promise(async (resolve, reject) => {
111
- // Auto-detect and set JAVA_HOME (prefer JDK 17) so builds don't require manual environment setup
112
- const detectedJavaHome = await detectJavaHome().catch(() => undefined);
113
- const env = Object.assign({}, process.env);
114
- if (detectedJavaHome) {
115
- // Override existing JAVA_HOME if detection found a preferably compatible JDK (e.g., JDK 17).
116
- if (env.JAVA_HOME !== detectedJavaHome) {
117
- env.JAVA_HOME = detectedJavaHome;
118
- // Also ensure the JDK bin is on PATH so tools like jlink/javac are resolved from the detected JDK
119
- env.PATH = `${path.join(detectedJavaHome, 'bin')}${path.delimiter}${env.PATH || ''}`;
120
- console.debug('[android] Overriding JAVA_HOME with detected path:', detectedJavaHome);
121
- }
122
- }
123
- // Sanitize environment so user shell init scripts are less likely to override our JAVA_HOME.
124
- try {
125
- // Remove obvious shell profile hints; avoid touching SDKMAN symlinks or on-disk state.
126
- delete env.SHELL;
127
- }
128
- catch { }
129
- // If we detected a compatible JDK, instruct Gradle to use it and avoid daemon reuse
130
- // Prepare gradle invocation
131
- const gradleArgs = ['assembleDebug'];
132
- if (detectedJavaHome) {
133
- gradleArgs.push(`-Dorg.gradle.java.home=${detectedJavaHome}`);
134
- gradleArgs.push('--no-daemon');
135
- env.GRADLE_JAVA_HOME = detectedJavaHome;
136
- }
137
- // Prefer invoking the wrapper directly without a shell to avoid user profile shims (sdkman) re-setting JAVA_HOME
138
- const wrapperPath = path.join(apkPath, 'gradlew');
139
- const useWrapper = existsSync(wrapperPath);
140
- const execCmd = useWrapper ? wrapperPath : gradleCmd;
141
- const spawnOpts = { cwd: apkPath, env };
142
- // When using wrapper, ensure it's executable and invoke directly (no shell)
143
- if (useWrapper) {
144
- // Ensure the wrapper is executable; swallow errors from chmod (best-effort).
145
- await fs.chmod(wrapperPath, 0o755).catch(() => { });
146
- spawnOpts.shell = false;
147
- }
148
- else {
149
- // if using system 'gradle' allow shell to resolve platform PATH
150
- spawnOpts.shell = true;
151
- }
152
- const proc = spawn(execCmd, gradleArgs, spawnOpts);
153
- let stderr = '';
154
- proc.stderr?.on('data', d => stderr += d.toString());
155
- proc.on('close', code => {
156
- if (code === 0)
157
- resolve();
158
- else
159
- reject(new Error(stderr || `Gradle build failed with code ${code}`));
160
- });
161
- proc.on('error', err => reject(err));
162
- });
163
- const built = await findApk(apkPath);
164
- if (!built)
165
- throw new Error('Could not locate built APK after running Gradle');
166
- apkToInstall = built;
167
- }
168
- // Try normal adb install with streaming attempt
169
- try {
170
- const res = await spawnAdb(['install', '-r', apkToInstall], deviceId);
171
- if (res.code === 0) {
172
- return { device: deviceInfo, installed: true, output: res.stdout };
173
- }
174
- // fallthrough to fallback
175
- }
176
- catch (e) {
177
- // Log and continue to fallback
178
- console.debug('[android] adb install failed, attempting push+pm fallback:', e instanceof Error ? e.message : String(e));
179
- }
180
- // Fallback: push APK to device and use pm install -r
181
- const basename = path.basename(apkToInstall);
182
- const remotePath = `/data/local/tmp/${basename}`;
183
- await execAdb(['push', apkToInstall, remotePath], deviceId);
184
- const pmOut = await execAdb(['shell', 'pm', 'install', '-r', remotePath], deviceId);
185
- // cleanup remote file
186
- try {
187
- await execAdb(['shell', 'rm', remotePath], deviceId);
188
- }
189
- catch { }
190
- return { device: deviceInfo, installed: true, output: pmOut };
191
- }
192
- catch (e) {
193
- return { device: deviceInfo, installed: false, error: e instanceof Error ? e.message : String(e) };
194
- }
195
- }
196
- async startApp(appId, deviceId) {
197
- const metadata = await getAndroidDeviceMetadata(appId, deviceId);
198
- const deviceInfo = getDeviceInfo(deviceId || 'default', metadata);
199
- await execAdb(['shell', 'monkey', '-p', appId, '-c', 'android.intent.category.LAUNCHER', '1'], deviceId);
200
- return { device: deviceInfo, appStarted: true, launchTimeMs: 1000 };
201
- }
202
- async terminateApp(appId, deviceId) {
203
- const metadata = await getAndroidDeviceMetadata(appId, deviceId);
204
- const deviceInfo = getDeviceInfo(deviceId || 'default', metadata);
205
- await execAdb(['shell', 'am', 'force-stop', appId], deviceId);
206
- return { device: deviceInfo, appTerminated: true };
207
- }
208
- async restartApp(appId, deviceId) {
209
- await this.terminateApp(appId, deviceId);
210
- const startResult = await this.startApp(appId, deviceId);
211
- return {
212
- device: startResult.device,
213
- appRestarted: startResult.appStarted,
214
- launchTimeMs: startResult.launchTimeMs
215
- };
216
- }
217
- async resetAppData(appId, deviceId) {
218
- const metadata = await getAndroidDeviceMetadata(appId, deviceId);
219
- const deviceInfo = getDeviceInfo(deviceId || 'default', metadata);
220
- const output = await execAdb(['shell', 'pm', 'clear', appId], deviceId);
221
- return { device: deviceInfo, dataCleared: output === 'Success' };
222
- }
223
79
  }
@@ -0,0 +1,137 @@
1
+ import { promises as fs } from 'fs';
2
+ import { spawn } from 'child_process';
3
+ import path from 'path';
4
+ import { existsSync } from 'fs';
5
+ import { execAdb, spawnAdb, getAndroidDeviceMetadata, getDeviceInfo, findApk } from './utils.js';
6
+ import { detectJavaHome } from '../utils/java.js';
7
+ export class AndroidManage {
8
+ async build(projectPath, _variant) {
9
+ void _variant;
10
+ try {
11
+ // Always use the shared prepareGradle utility for consistent env/setup
12
+ const { execCmd, gradleArgs, spawnOpts } = await (await import('./utils.js')).prepareGradle(projectPath);
13
+ await new Promise((resolve, reject) => {
14
+ const proc = spawn(execCmd, gradleArgs, spawnOpts);
15
+ let stderr = '';
16
+ proc.stderr?.on('data', d => stderr += d.toString());
17
+ proc.on('close', code => {
18
+ if (code === 0)
19
+ resolve();
20
+ else
21
+ reject(new Error(stderr || `Gradle failed with code ${code}`));
22
+ });
23
+ proc.on('error', err => reject(err));
24
+ });
25
+ const apk = await findApk(projectPath);
26
+ if (!apk)
27
+ return { error: 'Could not find APK after build' };
28
+ return { artifactPath: apk };
29
+ }
30
+ catch (e) {
31
+ return { error: e instanceof Error ? e.message : String(e) };
32
+ }
33
+ }
34
+ async installApp(apkPath, deviceId) {
35
+ const metadata = await getAndroidDeviceMetadata('', deviceId);
36
+ const deviceInfo = getDeviceInfo(deviceId || 'default', metadata);
37
+ try {
38
+ let apkToInstall = apkPath;
39
+ const stat = await fs.stat(apkPath).catch(() => null);
40
+ if (stat && stat.isDirectory()) {
41
+ const detectedJavaHome = await detectJavaHome().catch(() => undefined);
42
+ const env = Object.assign({}, process.env);
43
+ if (detectedJavaHome) {
44
+ if (env.JAVA_HOME !== detectedJavaHome) {
45
+ env.JAVA_HOME = detectedJavaHome;
46
+ env.PATH = `${path.join(detectedJavaHome, 'bin')}${path.delimiter}${env.PATH || ''}`;
47
+ console.debug('[android-run] Overriding JAVA_HOME with detected path:', detectedJavaHome);
48
+ }
49
+ }
50
+ try {
51
+ delete env.SHELL;
52
+ }
53
+ catch { }
54
+ const gradleArgs = ['assembleDebug'];
55
+ if (detectedJavaHome) {
56
+ gradleArgs.push(`-Dorg.gradle.java.home=${detectedJavaHome}`);
57
+ gradleArgs.push('--no-daemon');
58
+ env.GRADLE_JAVA_HOME = detectedJavaHome;
59
+ }
60
+ const wrapperPath = path.join(apkPath, 'gradlew');
61
+ const useWrapper = existsSync(wrapperPath);
62
+ const execCmd = useWrapper ? wrapperPath : 'gradle';
63
+ const spawnOpts = { cwd: apkPath, env };
64
+ if (useWrapper) {
65
+ await fs.chmod(wrapperPath, 0o755).catch(() => { });
66
+ spawnOpts.shell = false;
67
+ }
68
+ else
69
+ spawnOpts.shell = true;
70
+ const proc = spawn(execCmd, gradleArgs, spawnOpts);
71
+ let stderr = '';
72
+ await new Promise((resolve, reject) => {
73
+ proc.stderr?.on('data', d => stderr += d.toString());
74
+ proc.on('close', code => {
75
+ if (code === 0)
76
+ resolve();
77
+ else
78
+ reject(new Error(stderr || `Gradle build failed with code ${code}`));
79
+ });
80
+ proc.on('error', err => reject(err));
81
+ });
82
+ const built = await findApk(apkPath);
83
+ if (!built)
84
+ throw new Error('Could not locate built APK after running Gradle');
85
+ apkToInstall = built;
86
+ }
87
+ try {
88
+ const res = await spawnAdb(['install', '-r', apkToInstall], deviceId);
89
+ if (res.code === 0) {
90
+ return { device: deviceInfo, installed: true, output: res.stdout };
91
+ }
92
+ }
93
+ catch (e) {
94
+ console.debug('[android-run] adb install failed, attempting push+pm fallback:', e instanceof Error ? e.message : String(e));
95
+ }
96
+ const basename = path.basename(apkToInstall);
97
+ const remotePath = `/data/local/tmp/${basename}`;
98
+ await execAdb(['push', apkToInstall, remotePath], deviceId);
99
+ const pmOut = await execAdb(['shell', 'pm', 'install', '-r', remotePath], deviceId);
100
+ try {
101
+ await execAdb(['shell', 'rm', remotePath], deviceId);
102
+ }
103
+ catch { }
104
+ return { device: deviceInfo, installed: true, output: pmOut };
105
+ }
106
+ catch (e) {
107
+ return { device: deviceInfo, installed: false, error: e instanceof Error ? e.message : String(e) };
108
+ }
109
+ }
110
+ async startApp(appId, deviceId) {
111
+ const metadata = await getAndroidDeviceMetadata(appId, deviceId);
112
+ const deviceInfo = getDeviceInfo(deviceId || 'default', metadata);
113
+ await execAdb(['shell', 'monkey', '-p', appId, '-c', 'android.intent.category.LAUNCHER', '1'], deviceId);
114
+ return { device: deviceInfo, appStarted: true, launchTimeMs: 1000 };
115
+ }
116
+ async terminateApp(appId, deviceId) {
117
+ const metadata = await getAndroidDeviceMetadata(appId, deviceId);
118
+ const deviceInfo = getDeviceInfo(deviceId || 'default', metadata);
119
+ await execAdb(['shell', 'am', 'force-stop', appId], deviceId);
120
+ return { device: deviceInfo, appTerminated: true };
121
+ }
122
+ async restartApp(appId, deviceId) {
123
+ await this.terminateApp(appId, deviceId);
124
+ const startResult = await this.startApp(appId, deviceId);
125
+ return {
126
+ device: startResult.device,
127
+ appRestarted: startResult.appStarted,
128
+ launchTimeMs: startResult.launchTimeMs
129
+ };
130
+ }
131
+ async resetAppData(appId, deviceId) {
132
+ const metadata = await getAndroidDeviceMetadata(appId, deviceId);
133
+ const deviceInfo = getDeviceInfo(deviceId || 'default', metadata);
134
+ const output = await execAdb(['shell', 'pm', 'clear', appId], deviceId);
135
+ return { device: deviceInfo, dataCleared: output === 'Success' };
136
+ }
137
+ }
@@ -1,91 +1,10 @@
1
1
  import { spawn } from "child_process";
2
2
  import { XMLParser } from "fast-xml-parser";
3
- import { ADB, execAdb, getAndroidDeviceMetadata, getDeviceInfo } from "./utils.js";
4
- // --- Helper Functions Specific to Observe ---
5
- const delay = (ms) => new Promise(resolve => setTimeout(resolve, ms));
6
- function parseBounds(bounds) {
7
- const match = bounds.match(/\[(\d+),(\d+)\]\[(\d+),(\d+)\]/);
8
- if (match) {
9
- return [parseInt(match[1]), parseInt(match[2]), parseInt(match[3]), parseInt(match[4])];
10
- }
11
- return [0, 0, 0, 0];
12
- }
13
- function getCenter(bounds) {
14
- const [x1, y1, x2, y2] = bounds;
15
- return [Math.floor((x1 + x2) / 2), Math.floor((y1 + y2) / 2)];
16
- }
17
- async function getScreenResolution(deviceId) {
18
- try {
19
- const output = await execAdb(['shell', 'wm', 'size'], deviceId);
20
- const match = output.match(/Physical size: (\d+)x(\d+)/);
21
- if (match) {
22
- return { width: parseInt(match[1]), height: parseInt(match[2]) };
23
- }
24
- }
25
- catch {
26
- // ignore
27
- }
28
- return { width: 0, height: 0 };
29
- }
30
- function traverseNode(node, elements, parentIndex = -1, depth = 0) {
31
- if (!node)
32
- return -1;
33
- let currentIndex = -1;
34
- // Check if it's a valid node with attributes we care about
35
- if (node['@_class']) {
36
- const text = node['@_text'] || null;
37
- const contentDescription = node['@_content-desc'] || null;
38
- const clickable = node['@_clickable'] === 'true';
39
- const bounds = parseBounds(node['@_bounds'] || '[0,0][0,0]');
40
- // Filtering Logic:
41
- // Keep if clickable OR has visible text OR has content description
42
- const isUseful = clickable || (text && text.length > 0) || (contentDescription && contentDescription.length > 0);
43
- if (isUseful) {
44
- const element = {
45
- text,
46
- contentDescription,
47
- type: node['@_class'] || 'unknown',
48
- resourceId: node['@_resource-id'] || null,
49
- clickable,
50
- enabled: node['@_enabled'] === 'true',
51
- visible: true,
52
- bounds,
53
- center: getCenter(bounds),
54
- depth
55
- };
56
- if (parentIndex !== -1) {
57
- element.parentId = parentIndex;
58
- }
59
- elements.push(element);
60
- currentIndex = elements.length - 1;
61
- }
62
- }
63
- // If current node was skipped (not useful or no class), children inherit parentIndex
64
- // If current node was added, children use currentIndex
65
- const nextParentIndex = currentIndex !== -1 ? currentIndex : parentIndex;
66
- const nextDepth = currentIndex !== -1 ? depth + 1 : depth;
67
- const childrenIndices = [];
68
- // Traverse children
69
- if (node.node) {
70
- if (Array.isArray(node.node)) {
71
- node.node.forEach((child) => {
72
- const childIndex = traverseNode(child, elements, nextParentIndex, nextDepth);
73
- if (childIndex !== -1)
74
- childrenIndices.push(childIndex);
75
- });
76
- }
77
- else {
78
- const childIndex = traverseNode(node.node, elements, nextParentIndex, nextDepth);
79
- if (childIndex !== -1)
80
- childrenIndices.push(childIndex);
81
- }
82
- }
83
- // Update current element with children if it was added
84
- if (currentIndex !== -1 && childrenIndices.length > 0) {
85
- elements[currentIndex].children = childrenIndices;
86
- }
87
- return currentIndex;
88
- }
3
+ import { ADB, execAdb, getAndroidDeviceMetadata, getDeviceInfo, delay, getScreenResolution, traverseNode, parseLogLine } from "./utils.js";
4
+ import { createWriteStream } from "fs";
5
+ import { promises as fsPromises } from "fs";
6
+ import path from "path";
7
+ const activeLogStreams = new Map();
89
8
  export class AndroidObserve {
90
9
  async getDeviceMetadata(appId, deviceId) {
91
10
  return getAndroidDeviceMetadata(appId, deviceId);
@@ -310,4 +229,130 @@ export class AndroidObserve {
310
229
  };
311
230
  }
312
231
  }
232
+ async startLogStream(packageName, level = 'error', deviceId, sessionId = 'default') {
233
+ try {
234
+ const pidOutput = await execAdb(['shell', 'pidof', packageName], deviceId).catch(() => '');
235
+ const pid = (pidOutput || '').trim();
236
+ if (!pid)
237
+ return { success: false, error: 'app_not_running' };
238
+ const levelMap = { error: '*:E', warn: '*:W', info: '*:I', debug: '*:D' };
239
+ const filter = levelMap[level] || levelMap['error'];
240
+ if (activeLogStreams.has(sessionId)) {
241
+ try {
242
+ activeLogStreams.get(sessionId).proc.kill();
243
+ }
244
+ catch { }
245
+ activeLogStreams.delete(sessionId);
246
+ }
247
+ const args = ['logcat', `--pid=${pid}`, filter];
248
+ const proc = spawn(ADB, args);
249
+ const tmpDir = process.env.TMPDIR || '/tmp';
250
+ const file = path.join(tmpDir, `mobile-debug-log-${sessionId}.ndjson`);
251
+ const stream = createWriteStream(file, { flags: 'a' });
252
+ proc.stdout.on('data', (chunk) => {
253
+ const text = chunk.toString();
254
+ const lines = text.split(/\r?\n/).filter(Boolean);
255
+ for (const l of lines) {
256
+ const entry = parseLogLine(l);
257
+ stream.write(JSON.stringify(entry) + '\n');
258
+ }
259
+ });
260
+ proc.stderr.on('data', (chunk) => {
261
+ const text = chunk.toString();
262
+ const lines = text.split(/\r?\n/).filter(Boolean);
263
+ for (const l of lines) {
264
+ const entry = { timestamp: '', level: 'E', tag: 'adb', message: l };
265
+ stream.write(JSON.stringify(entry) + '\n');
266
+ }
267
+ });
268
+ proc.on('close', () => {
269
+ stream.end();
270
+ activeLogStreams.delete(sessionId);
271
+ });
272
+ activeLogStreams.set(sessionId, { proc, file });
273
+ return { success: true, stream_started: true };
274
+ }
275
+ catch (e) {
276
+ return { success: false, error: e instanceof Error ? e.message : String(e) };
277
+ }
278
+ }
279
+ async stopLogStream(sessionId = 'default') {
280
+ const entry = activeLogStreams.get(sessionId);
281
+ if (!entry)
282
+ return { success: true };
283
+ try {
284
+ entry.proc.kill();
285
+ }
286
+ catch { }
287
+ activeLogStreams.delete(sessionId);
288
+ return { success: true };
289
+ }
290
+ async readLogStream(sessionId = 'default', limit = 100, since) {
291
+ // Prefer active stream if present, otherwise fall back to a well-known NDJSON file for the session
292
+ const entry = activeLogStreams.get(sessionId);
293
+ let file;
294
+ if (entry && entry.file)
295
+ file = entry.file;
296
+ else {
297
+ const tmpDir = process.env.TMPDIR || '/tmp';
298
+ const candidate = path.join(tmpDir, `mobile-debug-log-${sessionId}.ndjson`);
299
+ file = candidate;
300
+ }
301
+ try {
302
+ const data = await fsPromises.readFile(file, 'utf8').catch(() => '');
303
+ if (!data)
304
+ return { entries: [], crash_summary: { crash_detected: false } };
305
+ const lines = data.split(/\r?\n/).filter(Boolean);
306
+ const parsed = lines.map(l => {
307
+ try {
308
+ const obj = JSON.parse(l);
309
+ if (typeof obj._iso === 'undefined') {
310
+ let iso = null;
311
+ if (obj.timestamp) {
312
+ const d = new Date(obj.timestamp);
313
+ if (!isNaN(d.getTime()))
314
+ iso = d.toISOString();
315
+ }
316
+ obj._iso = iso;
317
+ }
318
+ if (typeof obj.crash === 'undefined') {
319
+ const msg = (obj.message || '').toString();
320
+ const exMatch = msg.match(/\b([A-Za-z0-9_$.]+Exception)\b/);
321
+ if (/FATAL EXCEPTION/i.test(msg) || exMatch) {
322
+ obj.crash = true;
323
+ if (exMatch)
324
+ obj.exception = exMatch[1];
325
+ }
326
+ else {
327
+ obj.crash = false;
328
+ }
329
+ }
330
+ return obj;
331
+ }
332
+ catch {
333
+ return { message: l, _iso: null, crash: false };
334
+ }
335
+ });
336
+ let filtered = parsed;
337
+ if (since) {
338
+ let sinceMs = null;
339
+ if (/^\d+$/.test(since))
340
+ sinceMs = Number(since);
341
+ else {
342
+ const sDate = new Date(since);
343
+ if (!isNaN(sDate.getTime()))
344
+ sinceMs = sDate.getTime();
345
+ }
346
+ if (sinceMs !== null)
347
+ filtered = parsed.filter(p => p._iso && (new Date(p._iso).getTime() >= sinceMs));
348
+ }
349
+ const entries = filtered.slice(-Math.max(0, limit));
350
+ const crashEntry = entries.find(e => e.crash);
351
+ const crash_summary = crashEntry ? { crash_detected: true, exception: crashEntry.exception, sample: crashEntry.message } : { crash_detected: false };
352
+ return { entries, crash_summary };
353
+ }
354
+ catch {
355
+ return { entries: [], crash_summary: { crash_detected: false } };
356
+ }
357
+ }
313
358
  }