execbro 1.10.24 → 1.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 +1 -1
- package/build/__tests__/helpers/fake-cdp-server.d.ts +9 -0
- package/build/__tests__/helpers/fake-cdp-server.d.ts.map +1 -1
- package/build/__tests__/helpers/fake-cdp-server.js +20 -2
- package/build/__tests__/helpers/fake-cdp-server.js.map +1 -1
- package/build/__tests__/integration/connection-health.test.js +8 -1
- package/build/__tests__/integration/connection-health.test.js.map +1 -1
- package/build/__tests__/integration/native-logs.test.d.ts +2 -0
- package/build/__tests__/integration/native-logs.test.d.ts.map +1 -0
- package/build/__tests__/integration/native-logs.test.js +39 -0
- package/build/__tests__/integration/native-logs.test.js.map +1 -0
- package/build/__tests__/integration/socket-close-midflight.test.d.ts +2 -0
- package/build/__tests__/integration/socket-close-midflight.test.d.ts.map +1 -0
- package/build/__tests__/integration/socket-close-midflight.test.js +106 -0
- package/build/__tests__/integration/socket-close-midflight.test.js.map +1 -0
- package/build/__tests__/integration/stale-target-probe.test.d.ts +2 -0
- package/build/__tests__/integration/stale-target-probe.test.d.ts.map +1 -0
- package/build/__tests__/integration/stale-target-probe.test.js +85 -0
- package/build/__tests__/integration/stale-target-probe.test.js.map +1 -0
- package/build/__tests__/unit/clearLogsNative.test.d.ts +2 -0
- package/build/__tests__/unit/clearLogsNative.test.d.ts.map +1 -0
- package/build/__tests__/unit/clearLogsNative.test.js +43 -0
- package/build/__tests__/unit/clearLogsNative.test.js.map +1 -0
- package/build/__tests__/unit/componentFormatNaming.test.d.ts +2 -0
- package/build/__tests__/unit/componentFormatNaming.test.d.ts.map +1 -0
- package/build/__tests__/unit/componentFormatNaming.test.js +32 -0
- package/build/__tests__/unit/componentFormatNaming.test.js.map +1 -0
- package/build/__tests__/unit/deviceResolution.test.d.ts +2 -0
- package/build/__tests__/unit/deviceResolution.test.d.ts.map +1 -0
- package/build/__tests__/unit/deviceResolution.test.js +108 -0
- package/build/__tests__/unit/deviceResolution.test.js.map +1 -0
- package/build/__tests__/unit/executor.test.js +48 -12
- package/build/__tests__/unit/executor.test.js.map +1 -1
- package/build/__tests__/unit/getLogsEmptyContract.test.d.ts +2 -0
- package/build/__tests__/unit/getLogsEmptyContract.test.d.ts.map +1 -0
- package/build/__tests__/unit/getLogsEmptyContract.test.js +112 -0
- package/build/__tests__/unit/getLogsEmptyContract.test.js.map +1 -0
- package/build/__tests__/unit/getLogsNativeSource.test.d.ts +2 -0
- package/build/__tests__/unit/getLogsNativeSource.test.d.ts.map +1 -0
- package/build/__tests__/unit/getLogsNativeSource.test.js +138 -0
- package/build/__tests__/unit/getLogsNativeSource.test.js.map +1 -0
- package/build/__tests__/unit/jsLogEvents.test.d.ts +2 -0
- package/build/__tests__/unit/jsLogEvents.test.d.ts.map +1 -0
- package/build/__tests__/unit/jsLogEvents.test.js +58 -0
- package/build/__tests__/unit/jsLogEvents.test.js.map +1 -0
- package/build/__tests__/unit/logDiagnosis.test.d.ts +2 -0
- package/build/__tests__/unit/logDiagnosis.test.d.ts.map +1 -0
- package/build/__tests__/unit/logDiagnosis.test.js +81 -0
- package/build/__tests__/unit/logDiagnosis.test.js.map +1 -0
- package/build/__tests__/unit/logEventFormat.test.d.ts +2 -0
- package/build/__tests__/unit/logEventFormat.test.d.ts.map +1 -0
- package/build/__tests__/unit/logEventFormat.test.js +210 -0
- package/build/__tests__/unit/logEventFormat.test.js.map +1 -0
- package/build/__tests__/unit/logEvents.test.d.ts +2 -0
- package/build/__tests__/unit/logEvents.test.d.ts.map +1 -0
- package/build/__tests__/unit/logEvents.test.js +118 -0
- package/build/__tests__/unit/logEvents.test.js.map +1 -0
- package/build/__tests__/unit/logGrouping.test.d.ts +2 -0
- package/build/__tests__/unit/logGrouping.test.d.ts.map +1 -0
- package/build/__tests__/unit/logGrouping.test.js +104 -0
- package/build/__tests__/unit/logGrouping.test.js.map +1 -0
- package/build/__tests__/unit/logOwnership.test.d.ts +2 -0
- package/build/__tests__/unit/logOwnership.test.d.ts.map +1 -0
- package/build/__tests__/unit/logOwnership.test.js +118 -0
- package/build/__tests__/unit/logOwnership.test.js.map +1 -0
- package/build/__tests__/unit/logRelevance.test.d.ts +2 -0
- package/build/__tests__/unit/logRelevance.test.d.ts.map +1 -0
- package/build/__tests__/unit/logRelevance.test.js +30 -0
- package/build/__tests__/unit/logRelevance.test.js.map +1 -0
- package/build/__tests__/unit/logSourceAndroid.test.d.ts +2 -0
- package/build/__tests__/unit/logSourceAndroid.test.d.ts.map +1 -0
- package/build/__tests__/unit/logSourceAndroid.test.js +61 -0
- package/build/__tests__/unit/logSourceAndroid.test.js.map +1 -0
- package/build/__tests__/unit/logSourceIos.test.d.ts +2 -0
- package/build/__tests__/unit/logSourceIos.test.d.ts.map +1 -0
- package/build/__tests__/unit/logSourceIos.test.js +64 -0
- package/build/__tests__/unit/logSourceIos.test.js.map +1 -0
- package/build/__tests__/unit/logs.test.js +23 -0
- package/build/__tests__/unit/logs.test.js.map +1 -1
- package/build/__tests__/unit/nativeLogs.test.d.ts +2 -0
- package/build/__tests__/unit/nativeLogs.test.d.ts.map +1 -0
- package/build/__tests__/unit/nativeLogs.test.js +230 -0
- package/build/__tests__/unit/nativeLogs.test.js.map +1 -0
- package/build/__tests__/unit/pendingExecutions.test.d.ts +2 -0
- package/build/__tests__/unit/pendingExecutions.test.d.ts.map +1 -0
- package/build/__tests__/unit/pendingExecutions.test.js +70 -0
- package/build/__tests__/unit/pendingExecutions.test.js.map +1 -0
- package/build/__tests__/unit/reloadAppAutoConnect.test.d.ts +2 -0
- package/build/__tests__/unit/reloadAppAutoConnect.test.d.ts.map +1 -0
- package/build/__tests__/unit/reloadAppAutoConnect.test.js +63 -0
- package/build/__tests__/unit/reloadAppAutoConnect.test.js.map +1 -0
- package/build/__tests__/unit/toolsJson.test.js +11 -0
- package/build/__tests__/unit/toolsJson.test.js.map +1 -1
- package/build/__tests__/unit/transportClassify.test.js +108 -7
- package/build/__tests__/unit/transportClassify.test.js.map +1 -1
- package/build/core/componentSearch.d.ts +1 -1
- package/build/core/componentSearch.d.ts.map +1 -1
- package/build/core/componentSearch.js +8 -8
- package/build/core/componentSearch.js.map +1 -1
- package/build/core/componentTree.d.ts +1 -1
- package/build/core/componentTree.d.ts.map +1 -1
- package/build/core/componentTree.js +8 -8
- package/build/core/componentTree.js.map +1 -1
- package/build/core/connection.d.ts +30 -0
- package/build/core/connection.d.ts.map +1 -1
- package/build/core/connection.js +97 -28
- package/build/core/connection.js.map +1 -1
- package/build/core/debugGlobals.d.ts.map +1 -1
- package/build/core/debugGlobals.js +89 -32
- package/build/core/debugGlobals.js.map +1 -1
- package/build/core/errors.d.ts +7 -1
- package/build/core/errors.d.ts.map +1 -1
- package/build/core/errors.js +8 -1
- package/build/core/errors.js.map +1 -1
- package/build/core/guides.d.ts.map +1 -1
- package/build/core/guides.js +25 -0
- package/build/core/guides.js.map +1 -1
- package/build/core/index.d.ts +0 -2
- package/build/core/index.d.ts.map +1 -1
- package/build/core/index.js +0 -2
- package/build/core/index.js.map +1 -1
- package/build/core/jsExecute.d.ts +76 -1
- package/build/core/jsExecute.d.ts.map +1 -1
- package/build/core/jsExecute.js +193 -32
- package/build/core/jsExecute.js.map +1 -1
- package/build/core/jsLogEvents.d.ts +13 -0
- package/build/core/jsLogEvents.d.ts.map +1 -0
- package/build/core/jsLogEvents.js +65 -0
- package/build/core/jsLogEvents.js.map +1 -0
- package/build/core/logDiagnosis.d.ts +65 -0
- package/build/core/logDiagnosis.d.ts.map +1 -0
- package/build/core/logDiagnosis.js +51 -0
- package/build/core/logDiagnosis.js.map +1 -0
- package/build/core/logEventFormat.d.ts +14 -0
- package/build/core/logEventFormat.d.ts.map +1 -0
- package/build/core/logEventFormat.js +85 -0
- package/build/core/logEventFormat.js.map +1 -0
- package/build/core/logEvents.d.ts +115 -0
- package/build/core/logEvents.d.ts.map +1 -0
- package/build/core/logEvents.js +146 -0
- package/build/core/logEvents.js.map +1 -0
- package/build/core/logGrouping.d.ts +17 -0
- package/build/core/logGrouping.d.ts.map +1 -0
- package/build/core/logGrouping.js +134 -0
- package/build/core/logGrouping.js.map +1 -0
- package/build/core/logOwnership.d.ts +29 -0
- package/build/core/logOwnership.d.ts.map +1 -0
- package/build/core/logOwnership.js +83 -0
- package/build/core/logOwnership.js.map +1 -0
- package/build/core/logRelevance.d.ts +13 -0
- package/build/core/logRelevance.d.ts.map +1 -0
- package/build/core/logRelevance.js +23 -0
- package/build/core/logRelevance.js.map +1 -0
- package/build/core/logSourceAndroid.d.ts +27 -0
- package/build/core/logSourceAndroid.d.ts.map +1 -0
- package/build/core/logSourceAndroid.js +89 -0
- package/build/core/logSourceAndroid.js.map +1 -0
- package/build/core/logSourceIos.d.ts +26 -0
- package/build/core/logSourceIos.d.ts.map +1 -0
- package/build/core/logSourceIos.js +119 -0
- package/build/core/logSourceIos.js.map +1 -0
- package/build/core/logs.d.ts +5 -1
- package/build/core/logs.d.ts.map +1 -1
- package/build/core/logs.js +8 -1
- package/build/core/logs.js.map +1 -1
- package/build/core/nativeLogs.d.ts +75 -0
- package/build/core/nativeLogs.d.ts.map +1 -0
- package/build/core/nativeLogs.js +260 -0
- package/build/core/nativeLogs.js.map +1 -0
- package/build/core/register.d.ts.map +1 -1
- package/build/core/register.js +22 -6
- package/build/core/register.js.map +1 -1
- package/build/core/screenLayout.d.ts +1 -1
- package/build/core/screenLayout.d.ts.map +1 -1
- package/build/core/screenLayout.js +3 -3
- package/build/core/screenLayout.js.map +1 -1
- package/build/core/state.d.ts +10 -0
- package/build/core/state.d.ts.map +1 -1
- package/build/core/state.js +21 -0
- package/build/core/state.js.map +1 -1
- package/build/core/types.d.ts +11 -2
- package/build/core/types.d.ts.map +1 -1
- package/build/tools/componentTools.js +6 -6
- package/build/tools/componentTools.js.map +1 -1
- package/build/tools/connectionTools.d.ts.map +1 -1
- package/build/tools/connectionTools.js +7 -3
- package/build/tools/connectionTools.js.map +1 -1
- package/build/tools/executionTools.js +7 -7
- package/build/tools/executionTools.js.map +1 -1
- package/build/tools/logTools.d.ts +25 -0
- package/build/tools/logTools.d.ts.map +1 -1
- package/build/tools/logTools.js +316 -132
- package/build/tools/logTools.js.map +1 -1
- package/build/tools/networkTools.d.ts.map +1 -1
- package/build/tools/networkTools.js +65 -54
- package/build/tools/networkTools.js.map +1 -1
- package/package.json +5 -4
- package/tools.json +447 -0
- package/build/core/format.d.ts +0 -8
- package/build/core/format.d.ts.map +0 -1
- package/build/core/format.js +0 -34
- package/build/core/format.js.map +0 -1
package/tools.json
ADDED
|
@@ -0,0 +1,447 @@
|
|
|
1
|
+
{
|
|
2
|
+
"generatedFrom": "toolRegistry",
|
|
3
|
+
"count": 70,
|
|
4
|
+
"tools": [
|
|
5
|
+
"activate_license",
|
|
6
|
+
"android_get_screen_size",
|
|
7
|
+
"android_input_text",
|
|
8
|
+
"android_install_app",
|
|
9
|
+
"android_key_event",
|
|
10
|
+
"android_launch_app",
|
|
11
|
+
"android_list_packages",
|
|
12
|
+
"android_long_press",
|
|
13
|
+
"android_screenshot",
|
|
14
|
+
"clear_bundle_errors",
|
|
15
|
+
"clear_flowpoints",
|
|
16
|
+
"clear_focused_input",
|
|
17
|
+
"clear_logs",
|
|
18
|
+
"clear_network",
|
|
19
|
+
"connect_metro",
|
|
20
|
+
"delete_account",
|
|
21
|
+
"disconnect_metro",
|
|
22
|
+
"dismiss_keyboard",
|
|
23
|
+
"ensure_connection",
|
|
24
|
+
"execute_in_app",
|
|
25
|
+
"find_components",
|
|
26
|
+
"get_apps",
|
|
27
|
+
"get_bundle_errors",
|
|
28
|
+
"get_bundle_status",
|
|
29
|
+
"get_component_tree",
|
|
30
|
+
"get_connection_status",
|
|
31
|
+
"get_flowpoints",
|
|
32
|
+
"get_images",
|
|
33
|
+
"get_inspector_selection",
|
|
34
|
+
"get_license_status",
|
|
35
|
+
"get_log_details",
|
|
36
|
+
"get_logs",
|
|
37
|
+
"get_network_requests",
|
|
38
|
+
"get_network_stats",
|
|
39
|
+
"get_pressable_elements",
|
|
40
|
+
"get_refresh_status",
|
|
41
|
+
"get_request_details",
|
|
42
|
+
"get_screen_layout",
|
|
43
|
+
"get_screen_state",
|
|
44
|
+
"get_usage_guide",
|
|
45
|
+
"inspect_at_point",
|
|
46
|
+
"inspect_component",
|
|
47
|
+
"inspect_global",
|
|
48
|
+
"ios_boot_simulator",
|
|
49
|
+
"ios_button",
|
|
50
|
+
"ios_input_text",
|
|
51
|
+
"ios_install_app",
|
|
52
|
+
"ios_launch_app",
|
|
53
|
+
"ios_open_url",
|
|
54
|
+
"ios_screenshot",
|
|
55
|
+
"ios_terminate_app",
|
|
56
|
+
"list_android_devices",
|
|
57
|
+
"list_debug_globals",
|
|
58
|
+
"list_devices",
|
|
59
|
+
"list_ios_simulators",
|
|
60
|
+
"logbox",
|
|
61
|
+
"measure",
|
|
62
|
+
"ocr_screenshot",
|
|
63
|
+
"redux_dispatch",
|
|
64
|
+
"redux_get_state",
|
|
65
|
+
"reload_app",
|
|
66
|
+
"scan_metro",
|
|
67
|
+
"search_logs",
|
|
68
|
+
"search_network",
|
|
69
|
+
"send_feedback",
|
|
70
|
+
"swipe",
|
|
71
|
+
"tap",
|
|
72
|
+
"toggle_element_inspector",
|
|
73
|
+
"verify_flow",
|
|
74
|
+
"wait_for_flowpoint"
|
|
75
|
+
],
|
|
76
|
+
"params": {
|
|
77
|
+
"activate_license": [
|
|
78
|
+
"token"
|
|
79
|
+
],
|
|
80
|
+
"android_get_screen_size": [
|
|
81
|
+
"deviceId"
|
|
82
|
+
],
|
|
83
|
+
"android_input_text": [
|
|
84
|
+
"device",
|
|
85
|
+
"deviceId",
|
|
86
|
+
"replace",
|
|
87
|
+
"text"
|
|
88
|
+
],
|
|
89
|
+
"android_install_app": [
|
|
90
|
+
"apkPath",
|
|
91
|
+
"deviceId",
|
|
92
|
+
"grantPermissions",
|
|
93
|
+
"replace"
|
|
94
|
+
],
|
|
95
|
+
"android_key_event": [
|
|
96
|
+
"deviceId",
|
|
97
|
+
"key"
|
|
98
|
+
],
|
|
99
|
+
"android_launch_app": [
|
|
100
|
+
"activityName",
|
|
101
|
+
"deviceId",
|
|
102
|
+
"packageName"
|
|
103
|
+
],
|
|
104
|
+
"android_list_packages": [
|
|
105
|
+
"deviceId",
|
|
106
|
+
"filter"
|
|
107
|
+
],
|
|
108
|
+
"android_long_press": [
|
|
109
|
+
"deviceId",
|
|
110
|
+
"durationMs",
|
|
111
|
+
"x",
|
|
112
|
+
"y"
|
|
113
|
+
],
|
|
114
|
+
"android_screenshot": [
|
|
115
|
+
"deviceId",
|
|
116
|
+
"outputPath"
|
|
117
|
+
],
|
|
118
|
+
"clear_bundle_errors": [],
|
|
119
|
+
"clear_flowpoints": [
|
|
120
|
+
"device",
|
|
121
|
+
"name"
|
|
122
|
+
],
|
|
123
|
+
"clear_focused_input": [
|
|
124
|
+
"device"
|
|
125
|
+
],
|
|
126
|
+
"clear_logs": [
|
|
127
|
+
"device"
|
|
128
|
+
],
|
|
129
|
+
"clear_network": [
|
|
130
|
+
"device"
|
|
131
|
+
],
|
|
132
|
+
"connect_metro": [
|
|
133
|
+
"port"
|
|
134
|
+
],
|
|
135
|
+
"delete_account": [
|
|
136
|
+
"confirm"
|
|
137
|
+
],
|
|
138
|
+
"disconnect_metro": [
|
|
139
|
+
"device"
|
|
140
|
+
],
|
|
141
|
+
"dismiss_keyboard": [
|
|
142
|
+
"device"
|
|
143
|
+
],
|
|
144
|
+
"ensure_connection": [
|
|
145
|
+
"forceRefresh",
|
|
146
|
+
"healthCheck",
|
|
147
|
+
"port"
|
|
148
|
+
],
|
|
149
|
+
"execute_in_app": [
|
|
150
|
+
"awaitPromise",
|
|
151
|
+
"device",
|
|
152
|
+
"expression",
|
|
153
|
+
"maxResultLength",
|
|
154
|
+
"timeoutMs",
|
|
155
|
+
"verbose"
|
|
156
|
+
],
|
|
157
|
+
"find_components": [
|
|
158
|
+
"device",
|
|
159
|
+
"format",
|
|
160
|
+
"includeLayout",
|
|
161
|
+
"maxResults",
|
|
162
|
+
"pattern",
|
|
163
|
+
"shortPath",
|
|
164
|
+
"summary",
|
|
165
|
+
"timeoutMs",
|
|
166
|
+
"visibleOnly"
|
|
167
|
+
],
|
|
168
|
+
"get_apps": [],
|
|
169
|
+
"get_bundle_errors": [
|
|
170
|
+
"deviceId",
|
|
171
|
+
"maxErrors",
|
|
172
|
+
"platform"
|
|
173
|
+
],
|
|
174
|
+
"get_bundle_status": [],
|
|
175
|
+
"get_component_tree": [
|
|
176
|
+
"device",
|
|
177
|
+
"format",
|
|
178
|
+
"hideInternals",
|
|
179
|
+
"includeProps",
|
|
180
|
+
"includeStyles",
|
|
181
|
+
"maxDepth",
|
|
182
|
+
"structureOnly",
|
|
183
|
+
"timeoutMs"
|
|
184
|
+
],
|
|
185
|
+
"get_connection_status": [
|
|
186
|
+
"eventAppKey",
|
|
187
|
+
"eventLimit",
|
|
188
|
+
"events"
|
|
189
|
+
],
|
|
190
|
+
"get_flowpoints": [
|
|
191
|
+
"device",
|
|
192
|
+
"level",
|
|
193
|
+
"limit",
|
|
194
|
+
"metaIncludes",
|
|
195
|
+
"name",
|
|
196
|
+
"run",
|
|
197
|
+
"since",
|
|
198
|
+
"step"
|
|
199
|
+
],
|
|
200
|
+
"get_images": [
|
|
201
|
+
"clear",
|
|
202
|
+
"frameIndex",
|
|
203
|
+
"groupId",
|
|
204
|
+
"id",
|
|
205
|
+
"last",
|
|
206
|
+
"list",
|
|
207
|
+
"source"
|
|
208
|
+
],
|
|
209
|
+
"get_inspector_selection": [
|
|
210
|
+
"device",
|
|
211
|
+
"history",
|
|
212
|
+
"limit",
|
|
213
|
+
"source",
|
|
214
|
+
"x",
|
|
215
|
+
"y"
|
|
216
|
+
],
|
|
217
|
+
"get_license_status": [],
|
|
218
|
+
"get_log_details": [
|
|
219
|
+
"id",
|
|
220
|
+
"maxLength",
|
|
221
|
+
"verbose"
|
|
222
|
+
],
|
|
223
|
+
"get_logs": [
|
|
224
|
+
"device",
|
|
225
|
+
"kind",
|
|
226
|
+
"level",
|
|
227
|
+
"maxLogs",
|
|
228
|
+
"maxMessageLength",
|
|
229
|
+
"minLevel",
|
|
230
|
+
"since",
|
|
231
|
+
"source",
|
|
232
|
+
"startFromText",
|
|
233
|
+
"summary",
|
|
234
|
+
"verbose"
|
|
235
|
+
],
|
|
236
|
+
"get_network_requests": [
|
|
237
|
+
"device",
|
|
238
|
+
"maxRequests",
|
|
239
|
+
"method",
|
|
240
|
+
"status",
|
|
241
|
+
"summary",
|
|
242
|
+
"urlPattern"
|
|
243
|
+
],
|
|
244
|
+
"get_network_stats": [
|
|
245
|
+
"device"
|
|
246
|
+
],
|
|
247
|
+
"get_pressable_elements": [
|
|
248
|
+
"device"
|
|
249
|
+
],
|
|
250
|
+
"get_refresh_status": [
|
|
251
|
+
"device",
|
|
252
|
+
"since",
|
|
253
|
+
"sincePath"
|
|
254
|
+
],
|
|
255
|
+
"get_request_details": [
|
|
256
|
+
"device",
|
|
257
|
+
"maxBodyLength",
|
|
258
|
+
"requestId",
|
|
259
|
+
"verbose"
|
|
260
|
+
],
|
|
261
|
+
"get_screen_layout": [
|
|
262
|
+
"device",
|
|
263
|
+
"extended",
|
|
264
|
+
"summary",
|
|
265
|
+
"timeoutMs"
|
|
266
|
+
],
|
|
267
|
+
"get_screen_state": [
|
|
268
|
+
"device",
|
|
269
|
+
"fullText",
|
|
270
|
+
"pressablesOnly"
|
|
271
|
+
],
|
|
272
|
+
"get_usage_guide": [
|
|
273
|
+
"topic"
|
|
274
|
+
],
|
|
275
|
+
"inspect_at_point": [
|
|
276
|
+
"device",
|
|
277
|
+
"includeFrame",
|
|
278
|
+
"includeProps",
|
|
279
|
+
"source",
|
|
280
|
+
"x",
|
|
281
|
+
"y"
|
|
282
|
+
],
|
|
283
|
+
"inspect_component": [
|
|
284
|
+
"childrenDepth",
|
|
285
|
+
"componentName",
|
|
286
|
+
"device",
|
|
287
|
+
"includeChildren",
|
|
288
|
+
"includeState",
|
|
289
|
+
"includeStyle",
|
|
290
|
+
"index",
|
|
291
|
+
"shortPath",
|
|
292
|
+
"simplifyHooks",
|
|
293
|
+
"timeoutMs"
|
|
294
|
+
],
|
|
295
|
+
"inspect_global": [
|
|
296
|
+
"device",
|
|
297
|
+
"objectName"
|
|
298
|
+
],
|
|
299
|
+
"ios_boot_simulator": [
|
|
300
|
+
"udid"
|
|
301
|
+
],
|
|
302
|
+
"ios_button": [
|
|
303
|
+
"button",
|
|
304
|
+
"duration",
|
|
305
|
+
"udid"
|
|
306
|
+
],
|
|
307
|
+
"ios_input_text": [
|
|
308
|
+
"device",
|
|
309
|
+
"replace",
|
|
310
|
+
"text",
|
|
311
|
+
"udid"
|
|
312
|
+
],
|
|
313
|
+
"ios_install_app": [
|
|
314
|
+
"appPath",
|
|
315
|
+
"udid"
|
|
316
|
+
],
|
|
317
|
+
"ios_launch_app": [
|
|
318
|
+
"bundleId",
|
|
319
|
+
"udid"
|
|
320
|
+
],
|
|
321
|
+
"ios_open_url": [
|
|
322
|
+
"udid",
|
|
323
|
+
"url"
|
|
324
|
+
],
|
|
325
|
+
"ios_screenshot": [
|
|
326
|
+
"device",
|
|
327
|
+
"outputPath",
|
|
328
|
+
"udid"
|
|
329
|
+
],
|
|
330
|
+
"ios_terminate_app": [
|
|
331
|
+
"bundleId",
|
|
332
|
+
"udid"
|
|
333
|
+
],
|
|
334
|
+
"list_android_devices": [],
|
|
335
|
+
"list_debug_globals": [
|
|
336
|
+
"device"
|
|
337
|
+
],
|
|
338
|
+
"list_devices": [
|
|
339
|
+
"refresh"
|
|
340
|
+
],
|
|
341
|
+
"list_ios_simulators": [
|
|
342
|
+
"onlyBooted"
|
|
343
|
+
],
|
|
344
|
+
"logbox": [
|
|
345
|
+
"action",
|
|
346
|
+
"device",
|
|
347
|
+
"expanded",
|
|
348
|
+
"level",
|
|
349
|
+
"message",
|
|
350
|
+
"patterns",
|
|
351
|
+
"subtitle",
|
|
352
|
+
"target"
|
|
353
|
+
],
|
|
354
|
+
"measure": [
|
|
355
|
+
"componentName",
|
|
356
|
+
"device",
|
|
357
|
+
"index"
|
|
358
|
+
],
|
|
359
|
+
"ocr_screenshot": [
|
|
360
|
+
"deviceId",
|
|
361
|
+
"platform"
|
|
362
|
+
],
|
|
363
|
+
"redux_dispatch": [
|
|
364
|
+
"action",
|
|
365
|
+
"device",
|
|
366
|
+
"returnPath",
|
|
367
|
+
"storeIndex"
|
|
368
|
+
],
|
|
369
|
+
"redux_get_state": [
|
|
370
|
+
"device",
|
|
371
|
+
"path",
|
|
372
|
+
"storeIndex"
|
|
373
|
+
],
|
|
374
|
+
"reload_app": [
|
|
375
|
+
"device"
|
|
376
|
+
],
|
|
377
|
+
"scan_metro": [
|
|
378
|
+
"endPort",
|
|
379
|
+
"startPort"
|
|
380
|
+
],
|
|
381
|
+
"search_logs": [
|
|
382
|
+
"device",
|
|
383
|
+
"maxMessageLength",
|
|
384
|
+
"maxResults",
|
|
385
|
+
"text",
|
|
386
|
+
"verbose"
|
|
387
|
+
],
|
|
388
|
+
"search_network": [
|
|
389
|
+
"device",
|
|
390
|
+
"maxResults",
|
|
391
|
+
"urlPattern"
|
|
392
|
+
],
|
|
393
|
+
"send_feedback": [
|
|
394
|
+
"description",
|
|
395
|
+
"title",
|
|
396
|
+
"type",
|
|
397
|
+
"workflow_context"
|
|
398
|
+
],
|
|
399
|
+
"swipe": [
|
|
400
|
+
"burst",
|
|
401
|
+
"delta",
|
|
402
|
+
"device",
|
|
403
|
+
"direction",
|
|
404
|
+
"distance",
|
|
405
|
+
"durationMs",
|
|
406
|
+
"endX",
|
|
407
|
+
"endY",
|
|
408
|
+
"screenshot",
|
|
409
|
+
"startX",
|
|
410
|
+
"startY",
|
|
411
|
+
"verify"
|
|
412
|
+
],
|
|
413
|
+
"tap": [
|
|
414
|
+
"burst",
|
|
415
|
+
"component",
|
|
416
|
+
"device",
|
|
417
|
+
"index",
|
|
418
|
+
"maxTraversalDepth",
|
|
419
|
+
"native",
|
|
420
|
+
"screenshot",
|
|
421
|
+
"strategy",
|
|
422
|
+
"testID",
|
|
423
|
+
"text",
|
|
424
|
+
"verify",
|
|
425
|
+
"x",
|
|
426
|
+
"y"
|
|
427
|
+
],
|
|
428
|
+
"toggle_element_inspector": [
|
|
429
|
+
"device"
|
|
430
|
+
],
|
|
431
|
+
"verify_flow": [
|
|
432
|
+
"allowErrors",
|
|
433
|
+
"device",
|
|
434
|
+
"expect",
|
|
435
|
+
"name",
|
|
436
|
+
"run"
|
|
437
|
+
],
|
|
438
|
+
"wait_for_flowpoint": [
|
|
439
|
+
"device",
|
|
440
|
+
"level",
|
|
441
|
+
"metaIncludes",
|
|
442
|
+
"name",
|
|
443
|
+
"step",
|
|
444
|
+
"timeoutMs"
|
|
445
|
+
]
|
|
446
|
+
}
|
|
447
|
+
}
|
package/build/core/format.d.ts
DELETED
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { LogEntry } from "./types.js";
|
|
2
|
-
import { NetworkRequest } from "./types.js";
|
|
3
|
-
export type OutputFormat = "text" | "tonl";
|
|
4
|
-
export declare function formatLogsAsTonl(logs: LogEntry[], options?: {
|
|
5
|
-
maxMessageLength?: number;
|
|
6
|
-
}): string;
|
|
7
|
-
export declare function formatNetworkAsTonl(requests: NetworkRequest[]): string;
|
|
8
|
-
//# sourceMappingURL=format.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"format.d.ts","sourceRoot":"","sources":["../../src/core/format.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AACtC,OAAO,EAAE,cAAc,EAAE,MAAM,YAAY,CAAC;AAG5C,MAAM,MAAM,YAAY,GAAG,MAAM,GAAG,MAAM,CAAC;AAc3C,wBAAgB,gBAAgB,CAC5B,IAAI,EAAE,QAAQ,EAAE,EAChB,OAAO,GAAE;IAAE,gBAAgB,CAAC,EAAE,MAAM,CAAA;CAAO,GAC5C,MAAM,CAUR;AAGD,wBAAgB,mBAAmB,CAAC,QAAQ,EAAE,cAAc,EAAE,GAAG,MAAM,CAYtE"}
|
package/build/core/format.js
DELETED
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
import { encodeTONL } from "tonl";
|
|
2
|
-
// TONL format hint to include in responses
|
|
3
|
-
const TONL_HINT = "[Format: TONL - compact token-optimized format. Fields in header, values in rows.]\n";
|
|
4
|
-
// Truncate message helper
|
|
5
|
-
function truncateMessage(message, maxLength) {
|
|
6
|
-
if (maxLength <= 0 || message.length <= maxLength) {
|
|
7
|
-
return message;
|
|
8
|
-
}
|
|
9
|
-
return message.slice(0, maxLength) + `...[${message.length}ch]`;
|
|
10
|
-
}
|
|
11
|
-
// Format logs as TONL
|
|
12
|
-
export function formatLogsAsTonl(logs, options = {}) {
|
|
13
|
-
const { maxMessageLength = 500 } = options;
|
|
14
|
-
const data = logs.map((log) => ({
|
|
15
|
-
time: log.timestamp.toLocaleTimeString(),
|
|
16
|
-
level: log.level.toUpperCase(),
|
|
17
|
-
msg: truncateMessage(log.message, maxMessageLength)
|
|
18
|
-
}));
|
|
19
|
-
return TONL_HINT + encodeTONL({ logs: data });
|
|
20
|
-
}
|
|
21
|
-
// Format network requests as TONL (compact list view)
|
|
22
|
-
export function formatNetworkAsTonl(requests) {
|
|
23
|
-
const data = requests.map((req) => ({
|
|
24
|
-
id: req.requestId,
|
|
25
|
-
time: req.timestamp.toLocaleTimeString(),
|
|
26
|
-
method: req.method,
|
|
27
|
-
status: req.status ?? "pending",
|
|
28
|
-
duration: req.timing?.duration ? `${req.timing.duration}ms` : "-",
|
|
29
|
-
url: req.url,
|
|
30
|
-
error: req.error || undefined
|
|
31
|
-
}));
|
|
32
|
-
return TONL_HINT + encodeTONL({ requests: data });
|
|
33
|
-
}
|
|
34
|
-
//# sourceMappingURL=format.js.map
|
package/build/core/format.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"format.js","sourceRoot":"","sources":["../../src/core/format.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,MAAM,CAAC;AAOlC,2CAA2C;AAC3C,MAAM,SAAS,GAAG,sFAAsF,CAAC;AAEzG,0BAA0B;AAC1B,SAAS,eAAe,CAAC,OAAe,EAAE,SAAiB;IACvD,IAAI,SAAS,IAAI,CAAC,IAAI,OAAO,CAAC,MAAM,IAAI,SAAS,EAAE,CAAC;QAChD,OAAO,OAAO,CAAC;IACnB,CAAC;IACD,OAAO,OAAO,CAAC,KAAK,CAAC,CAAC,EAAE,SAAS,CAAC,GAAG,OAAO,OAAO,CAAC,MAAM,KAAK,CAAC;AACpE,CAAC;AAED,sBAAsB;AACtB,MAAM,UAAU,gBAAgB,CAC5B,IAAgB,EAChB,UAAyC,EAAE;IAE3C,MAAM,EAAE,gBAAgB,GAAG,GAAG,EAAE,GAAG,OAAO,CAAC;IAE3C,MAAM,IAAI,GAAG,IAAI,CAAC,GAAG,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,CAAC;QAC5B,IAAI,EAAE,GAAG,CAAC,SAAS,CAAC,kBAAkB,EAAE;QACxC,KAAK,EAAE,GAAG,CAAC,KAAK,CAAC,WAAW,EAAE;QAC9B,GAAG,EAAE,eAAe,CAAC,GAAG,CAAC,OAAO,EAAE,gBAAgB,CAAC;KACtD,CAAC,CAAC,CAAC;IAEJ,OAAO,SAAS,GAAG,UAAU,CAAC,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC,CAAC;AAClD,CAAC;AAED,sDAAsD;AACtD,MAAM,UAAU,mBAAmB,CAAC,QAA0B;IAC1D,MAAM,IAAI,GAAG,QAAQ,CAAC,GAAG,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,CAAC;QAChC,EAAE,EAAE,GAAG,CAAC,SAAS;QACjB,IAAI,EAAE,GAAG,CAAC,SAAS,CAAC,kBAAkB,EAAE;QACxC,MAAM,EAAE,GAAG,CAAC,MAAM;QAClB,MAAM,EAAE,GAAG,CAAC,MAAM,IAAI,SAAS;QAC/B,QAAQ,EAAE,GAAG,CAAC,MAAM,EAAE,QAAQ,CAAC,CAAC,CAAC,GAAG,GAAG,CAAC,MAAM,CAAC,QAAQ,IAAI,CAAC,CAAC,CAAC,GAAG;QACjE,GAAG,EAAE,GAAG,CAAC,GAAG;QACZ,KAAK,EAAE,GAAG,CAAC,KAAK,IAAI,SAAS;KAChC,CAAC,CAAC,CAAC;IAEJ,OAAO,SAAS,GAAG,UAAU,CAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC,CAAC;AACtD,CAAC"}
|