mobile-debug-mcp 0.24.5 → 0.24.6
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/dist/observe/index.js +2 -2
- package/docs/CHANGELOG.md +3 -0
- package/docs/tools/observe.md +2 -2
- package/package.json +1 -1
- package/src/observe/index.ts +2 -2
package/dist/observe/index.js
CHANGED
|
@@ -66,7 +66,7 @@ function deriveSnapshotSemantic(raw) {
|
|
|
66
66
|
return null;
|
|
67
67
|
const hasErrorLogs = raw.logs.some((entry) => /error|fatal exception|exception|failed/i.test(entry.message));
|
|
68
68
|
const hasLoadingSignals = texts.some((text) => /loading|please wait|spinner|progress/i.test(text));
|
|
69
|
-
const hasPrimaryText = texts.some((text) => /sign in|log in|
|
|
69
|
+
const hasPrimaryText = texts.some((text) => /sign in|log in|login|home|checkout|settings|menu|profile|search/i.test(text));
|
|
70
70
|
const hasScreenshot = typeof raw.screenshot === 'string' && raw.screenshot.length > 0;
|
|
71
71
|
const hasUiTree = !!tree && Array.isArray(tree.elements);
|
|
72
72
|
const signals = {
|
|
@@ -105,7 +105,7 @@ function deriveSnapshotSemantic(raw) {
|
|
|
105
105
|
signals,
|
|
106
106
|
actions_available: actionables.length > 0 ? actionables.slice(0, 10) : null,
|
|
107
107
|
confidence,
|
|
108
|
-
warnings
|
|
108
|
+
warnings
|
|
109
109
|
};
|
|
110
110
|
}
|
|
111
111
|
export class ToolsObserve {
|
package/docs/CHANGELOG.md
CHANGED
package/docs/tools/observe.md
CHANGED
|
@@ -147,7 +147,7 @@ Response (example):
|
|
|
147
147
|
"fingerprint": "abc123",
|
|
148
148
|
"screenshot": "<base64 PNG string>",
|
|
149
149
|
"ui_tree": { ... },
|
|
150
|
-
"logs": [ { "timestamp":
|
|
150
|
+
"logs": [ { "timestamp": "2024-03-09T12:00:00.000Z", "level": "ERROR", "tag": "CheckoutViewModel", "pid": 1234, "message": "NullPointerException at CheckoutViewModel" } ]
|
|
151
151
|
},
|
|
152
152
|
"semantic": {
|
|
153
153
|
"screen": "Checkout",
|
|
@@ -203,5 +203,5 @@ Start a background adb logcat stream and retrieve parsed NDJSON entries.
|
|
|
203
203
|
read_log_stream response example:
|
|
204
204
|
|
|
205
205
|
```json
|
|
206
|
-
{ "entries": [ { "timestamp": "2026-03-20T...Z", "level": "
|
|
206
|
+
{ "entries": [ { "timestamp": "2026-03-20T...Z", "level": "ERROR", "tag": "AppTag", "pid": 1234, "message": "FATAL EXCEPTION" } ], "crash_summary": { "crash_detected": true } }
|
|
207
207
|
```
|
package/package.json
CHANGED
package/src/observe/index.ts
CHANGED
|
@@ -95,7 +95,7 @@ function deriveSnapshotSemantic(raw: CaptureDebugSnapshotRawResponse): SnapshotS
|
|
|
95
95
|
|
|
96
96
|
const hasErrorLogs = raw.logs.some((entry) => /error|fatal exception|exception|failed/i.test(entry.message))
|
|
97
97
|
const hasLoadingSignals = texts.some((text) => /loading|please wait|spinner|progress/i.test(text))
|
|
98
|
-
const hasPrimaryText = texts.some((text) => /sign in|log in|
|
|
98
|
+
const hasPrimaryText = texts.some((text) => /sign in|log in|login|home|checkout|settings|menu|profile|search/i.test(text))
|
|
99
99
|
const hasScreenshot = typeof raw.screenshot === 'string' && raw.screenshot.length > 0
|
|
100
100
|
const hasUiTree = !!tree && Array.isArray(tree.elements)
|
|
101
101
|
|
|
@@ -137,7 +137,7 @@ function deriveSnapshotSemantic(raw: CaptureDebugSnapshotRawResponse): SnapshotS
|
|
|
137
137
|
signals,
|
|
138
138
|
actions_available: actionables.length > 0 ? actionables.slice(0, 10) : null,
|
|
139
139
|
confidence,
|
|
140
|
-
warnings
|
|
140
|
+
warnings
|
|
141
141
|
}
|
|
142
142
|
}
|
|
143
143
|
|