@midscene/ios 1.8.6-beta-20260527035358.0 → 1.8.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/es/bin.mjs +7 -21
- package/dist/es/cli.mjs +8 -22
- package/dist/es/index.mjs +7 -21
- package/dist/es/mcp-server.mjs +8 -22
- package/dist/lib/bin.js +7 -21
- package/dist/lib/cli.js +8 -22
- package/dist/lib/index.js +7 -21
- package/dist/lib/mcp-server.js +8 -22
- package/dist/types/index.d.ts +1 -3
- package/package.json +5 -5
- package/static/index.html +1 -1
- package/static/static/js/{index.b35b9336.js → index.42764323.js} +22 -22
- package/static/static/js/index.42764323.js.map +1 -0
- package/static/static/js/index.b35b9336.js.map +0 -1
- /package/static/static/js/{index.b35b9336.js.LICENSE.txt → index.42764323.js.LICENSE.txt} +0 -0
package/dist/es/bin.mjs
CHANGED
|
@@ -398,25 +398,14 @@ class IOSWebDriverClient extends WebDriverClient {
|
|
|
398
398
|
return false;
|
|
399
399
|
}
|
|
400
400
|
}
|
|
401
|
-
async typeText(text
|
|
401
|
+
async typeText(text) {
|
|
402
402
|
this.ensureSession();
|
|
403
|
-
const cleanText = text.trim();
|
|
404
|
-
if (!cleanText) return;
|
|
405
|
-
const chars = Array.from(cleanText);
|
|
406
|
-
const delayMs = options?.delayMs ?? 0;
|
|
407
403
|
try {
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
chars[i]
|
|
412
|
-
]
|
|
413
|
-
});
|
|
414
|
-
if (i < chars.length - 1) await sleep(delayMs);
|
|
415
|
-
}
|
|
416
|
-
else await this.makeRequest('POST', `/session/${this.sessionId}/wda/keys`, {
|
|
417
|
-
value: chars
|
|
404
|
+
const cleanText = text.trim();
|
|
405
|
+
await this.makeRequest('POST', `/session/${this.sessionId}/wda/keys`, {
|
|
406
|
+
value: cleanText.split('')
|
|
418
407
|
});
|
|
419
|
-
debugIOS(`Typed text: "${text}"
|
|
408
|
+
debugIOS(`Typed text: "${text}"`);
|
|
420
409
|
} catch (error) {
|
|
421
410
|
debugIOS(`Failed to type text "${text}": ${error}`);
|
|
422
411
|
throw new Error(`Failed to type text: ${error}`);
|
|
@@ -879,13 +868,10 @@ ScreenSize: ${size.width}x${size.height} (DPR: ${size.scale})
|
|
|
879
868
|
async typeText(text, options) {
|
|
880
869
|
if (!text) return;
|
|
881
870
|
const shouldAutoDismissKeyboard = options?.autoDismissKeyboard ?? this.options?.autoDismissKeyboard ?? true;
|
|
882
|
-
|
|
883
|
-
debugDevice(`Typing text: "${text}" (delayMs=${delayMs})`);
|
|
871
|
+
debugDevice(`Typing text: "${text}"`);
|
|
884
872
|
try {
|
|
885
873
|
await sleep(200);
|
|
886
|
-
await this.wdaBackend.typeText(text
|
|
887
|
-
delayMs
|
|
888
|
-
});
|
|
874
|
+
await this.wdaBackend.typeText(text);
|
|
889
875
|
await sleep(300);
|
|
890
876
|
} catch (error) {
|
|
891
877
|
debugDevice(`Failed to type text with WDA: ${error}`);
|
package/dist/es/cli.mjs
CHANGED
|
@@ -397,25 +397,14 @@ class IOSWebDriverClient extends WebDriverClient {
|
|
|
397
397
|
return false;
|
|
398
398
|
}
|
|
399
399
|
}
|
|
400
|
-
async typeText(text
|
|
400
|
+
async typeText(text) {
|
|
401
401
|
this.ensureSession();
|
|
402
|
-
const cleanText = text.trim();
|
|
403
|
-
if (!cleanText) return;
|
|
404
|
-
const chars = Array.from(cleanText);
|
|
405
|
-
const delayMs = options?.delayMs ?? 0;
|
|
406
402
|
try {
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
chars[i]
|
|
411
|
-
]
|
|
412
|
-
});
|
|
413
|
-
if (i < chars.length - 1) await sleep(delayMs);
|
|
414
|
-
}
|
|
415
|
-
else await this.makeRequest('POST', `/session/${this.sessionId}/wda/keys`, {
|
|
416
|
-
value: chars
|
|
403
|
+
const cleanText = text.trim();
|
|
404
|
+
await this.makeRequest('POST', `/session/${this.sessionId}/wda/keys`, {
|
|
405
|
+
value: cleanText.split('')
|
|
417
406
|
});
|
|
418
|
-
debugIOS(`Typed text: "${text}"
|
|
407
|
+
debugIOS(`Typed text: "${text}"`);
|
|
419
408
|
} catch (error) {
|
|
420
409
|
debugIOS(`Failed to type text "${text}": ${error}`);
|
|
421
410
|
throw new Error(`Failed to type text: ${error}`);
|
|
@@ -878,13 +867,10 @@ ScreenSize: ${size.width}x${size.height} (DPR: ${size.scale})
|
|
|
878
867
|
async typeText(text, options) {
|
|
879
868
|
if (!text) return;
|
|
880
869
|
const shouldAutoDismissKeyboard = options?.autoDismissKeyboard ?? this.options?.autoDismissKeyboard ?? true;
|
|
881
|
-
|
|
882
|
-
debugDevice(`Typing text: "${text}" (delayMs=${delayMs})`);
|
|
870
|
+
debugDevice(`Typing text: "${text}"`);
|
|
883
871
|
try {
|
|
884
872
|
await sleep(200);
|
|
885
|
-
await this.wdaBackend.typeText(text
|
|
886
|
-
delayMs
|
|
887
|
-
});
|
|
873
|
+
await this.wdaBackend.typeText(text);
|
|
888
874
|
await sleep(300);
|
|
889
875
|
} catch (error) {
|
|
890
876
|
debugDevice(`Failed to type text with WDA: ${error}`);
|
|
@@ -1467,7 +1453,7 @@ class IOSMidsceneTools extends BaseMidsceneTools {
|
|
|
1467
1453
|
const tools = new IOSMidsceneTools();
|
|
1468
1454
|
runToolsCLI(tools, 'midscene-ios', {
|
|
1469
1455
|
stripPrefix: 'ios_',
|
|
1470
|
-
version: "1.8.6
|
|
1456
|
+
version: "1.8.6",
|
|
1471
1457
|
extraCommands: createReportCliCommands()
|
|
1472
1458
|
}).catch((e)=>{
|
|
1473
1459
|
process.exit(reportCLIError(e));
|
package/dist/es/index.mjs
CHANGED
|
@@ -218,25 +218,14 @@ class IOSWebDriverClient extends WebDriverClient {
|
|
|
218
218
|
return false;
|
|
219
219
|
}
|
|
220
220
|
}
|
|
221
|
-
async typeText(text
|
|
221
|
+
async typeText(text) {
|
|
222
222
|
this.ensureSession();
|
|
223
|
-
const cleanText = text.trim();
|
|
224
|
-
if (!cleanText) return;
|
|
225
|
-
const chars = Array.from(cleanText);
|
|
226
|
-
const delayMs = options?.delayMs ?? 0;
|
|
227
223
|
try {
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
chars[i]
|
|
232
|
-
]
|
|
233
|
-
});
|
|
234
|
-
if (i < chars.length - 1) await sleep(delayMs);
|
|
235
|
-
}
|
|
236
|
-
else await this.makeRequest('POST', `/session/${this.sessionId}/wda/keys`, {
|
|
237
|
-
value: chars
|
|
224
|
+
const cleanText = text.trim();
|
|
225
|
+
await this.makeRequest('POST', `/session/${this.sessionId}/wda/keys`, {
|
|
226
|
+
value: cleanText.split('')
|
|
238
227
|
});
|
|
239
|
-
debugIOS(`Typed text: "${text}"
|
|
228
|
+
debugIOS(`Typed text: "${text}"`);
|
|
240
229
|
} catch (error) {
|
|
241
230
|
debugIOS(`Failed to type text "${text}": ${error}`);
|
|
242
231
|
throw new Error(`Failed to type text: ${error}`);
|
|
@@ -699,13 +688,10 @@ ScreenSize: ${size.width}x${size.height} (DPR: ${size.scale})
|
|
|
699
688
|
async typeText(text, options) {
|
|
700
689
|
if (!text) return;
|
|
701
690
|
const shouldAutoDismissKeyboard = options?.autoDismissKeyboard ?? this.options?.autoDismissKeyboard ?? true;
|
|
702
|
-
|
|
703
|
-
debugDevice(`Typing text: "${text}" (delayMs=${delayMs})`);
|
|
691
|
+
debugDevice(`Typing text: "${text}"`);
|
|
704
692
|
try {
|
|
705
693
|
await sleep(200);
|
|
706
|
-
await this.wdaBackend.typeText(text
|
|
707
|
-
delayMs
|
|
708
|
-
});
|
|
694
|
+
await this.wdaBackend.typeText(text);
|
|
709
695
|
await sleep(300);
|
|
710
696
|
} catch (error) {
|
|
711
697
|
debugDevice(`Failed to type text with WDA: ${error}`);
|
package/dist/es/mcp-server.mjs
CHANGED
|
@@ -397,25 +397,14 @@ class IOSWebDriverClient extends WebDriverClient {
|
|
|
397
397
|
return false;
|
|
398
398
|
}
|
|
399
399
|
}
|
|
400
|
-
async typeText(text
|
|
400
|
+
async typeText(text) {
|
|
401
401
|
this.ensureSession();
|
|
402
|
-
const cleanText = text.trim();
|
|
403
|
-
if (!cleanText) return;
|
|
404
|
-
const chars = Array.from(cleanText);
|
|
405
|
-
const delayMs = options?.delayMs ?? 0;
|
|
406
402
|
try {
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
chars[i]
|
|
411
|
-
]
|
|
412
|
-
});
|
|
413
|
-
if (i < chars.length - 1) await sleep(delayMs);
|
|
414
|
-
}
|
|
415
|
-
else await this.makeRequest('POST', `/session/${this.sessionId}/wda/keys`, {
|
|
416
|
-
value: chars
|
|
403
|
+
const cleanText = text.trim();
|
|
404
|
+
await this.makeRequest('POST', `/session/${this.sessionId}/wda/keys`, {
|
|
405
|
+
value: cleanText.split('')
|
|
417
406
|
});
|
|
418
|
-
debugIOS(`Typed text: "${text}"
|
|
407
|
+
debugIOS(`Typed text: "${text}"`);
|
|
419
408
|
} catch (error) {
|
|
420
409
|
debugIOS(`Failed to type text "${text}": ${error}`);
|
|
421
410
|
throw new Error(`Failed to type text: ${error}`);
|
|
@@ -878,13 +867,10 @@ ScreenSize: ${size.width}x${size.height} (DPR: ${size.scale})
|
|
|
878
867
|
async typeText(text, options) {
|
|
879
868
|
if (!text) return;
|
|
880
869
|
const shouldAutoDismissKeyboard = options?.autoDismissKeyboard ?? this.options?.autoDismissKeyboard ?? true;
|
|
881
|
-
|
|
882
|
-
debugDevice(`Typing text: "${text}" (delayMs=${delayMs})`);
|
|
870
|
+
debugDevice(`Typing text: "${text}"`);
|
|
883
871
|
try {
|
|
884
872
|
await sleep(200);
|
|
885
|
-
await this.wdaBackend.typeText(text
|
|
886
|
-
delayMs
|
|
887
|
-
});
|
|
873
|
+
await this.wdaBackend.typeText(text);
|
|
888
874
|
await sleep(300);
|
|
889
875
|
} catch (error) {
|
|
890
876
|
debugDevice(`Failed to type text with WDA: ${error}`);
|
|
@@ -1471,7 +1457,7 @@ class IOSMCPServer extends BaseMCPServer {
|
|
|
1471
1457
|
constructor(toolsManager){
|
|
1472
1458
|
super({
|
|
1473
1459
|
name: '@midscene/ios-mcp',
|
|
1474
|
-
version: "1.8.6
|
|
1460
|
+
version: "1.8.6",
|
|
1475
1461
|
description: 'Control the iOS device using natural language commands'
|
|
1476
1462
|
}, toolsManager);
|
|
1477
1463
|
}
|
package/dist/lib/bin.js
CHANGED
|
@@ -423,25 +423,14 @@ class IOSWebDriverClient extends webdriver_namespaceObject.WebDriverClient {
|
|
|
423
423
|
return false;
|
|
424
424
|
}
|
|
425
425
|
}
|
|
426
|
-
async typeText(text
|
|
426
|
+
async typeText(text) {
|
|
427
427
|
this.ensureSession();
|
|
428
|
-
const cleanText = text.trim();
|
|
429
|
-
if (!cleanText) return;
|
|
430
|
-
const chars = Array.from(cleanText);
|
|
431
|
-
const delayMs = options?.delayMs ?? 0;
|
|
432
428
|
try {
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
chars[i]
|
|
437
|
-
]
|
|
438
|
-
});
|
|
439
|
-
if (i < chars.length - 1) await (0, core_utils_namespaceObject.sleep)(delayMs);
|
|
440
|
-
}
|
|
441
|
-
else await this.makeRequest('POST', `/session/${this.sessionId}/wda/keys`, {
|
|
442
|
-
value: chars
|
|
429
|
+
const cleanText = text.trim();
|
|
430
|
+
await this.makeRequest('POST', `/session/${this.sessionId}/wda/keys`, {
|
|
431
|
+
value: cleanText.split('')
|
|
443
432
|
});
|
|
444
|
-
debugIOS(`Typed text: "${text}"
|
|
433
|
+
debugIOS(`Typed text: "${text}"`);
|
|
445
434
|
} catch (error) {
|
|
446
435
|
debugIOS(`Failed to type text "${text}": ${error}`);
|
|
447
436
|
throw new Error(`Failed to type text: ${error}`);
|
|
@@ -904,13 +893,10 @@ ScreenSize: ${size.width}x${size.height} (DPR: ${size.scale})
|
|
|
904
893
|
async typeText(text, options) {
|
|
905
894
|
if (!text) return;
|
|
906
895
|
const shouldAutoDismissKeyboard = options?.autoDismissKeyboard ?? this.options?.autoDismissKeyboard ?? true;
|
|
907
|
-
|
|
908
|
-
debugDevice(`Typing text: "${text}" (delayMs=${delayMs})`);
|
|
896
|
+
debugDevice(`Typing text: "${text}"`);
|
|
909
897
|
try {
|
|
910
898
|
await (0, core_utils_namespaceObject.sleep)(200);
|
|
911
|
-
await this.wdaBackend.typeText(text
|
|
912
|
-
delayMs
|
|
913
|
-
});
|
|
899
|
+
await this.wdaBackend.typeText(text);
|
|
914
900
|
await (0, core_utils_namespaceObject.sleep)(300);
|
|
915
901
|
} catch (error) {
|
|
916
902
|
debugDevice(`Failed to type text with WDA: ${error}`);
|
package/dist/lib/cli.js
CHANGED
|
@@ -421,25 +421,14 @@ class IOSWebDriverClient extends webdriver_namespaceObject.WebDriverClient {
|
|
|
421
421
|
return false;
|
|
422
422
|
}
|
|
423
423
|
}
|
|
424
|
-
async typeText(text
|
|
424
|
+
async typeText(text) {
|
|
425
425
|
this.ensureSession();
|
|
426
|
-
const cleanText = text.trim();
|
|
427
|
-
if (!cleanText) return;
|
|
428
|
-
const chars = Array.from(cleanText);
|
|
429
|
-
const delayMs = options?.delayMs ?? 0;
|
|
430
426
|
try {
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
chars[i]
|
|
435
|
-
]
|
|
436
|
-
});
|
|
437
|
-
if (i < chars.length - 1) await (0, core_utils_namespaceObject.sleep)(delayMs);
|
|
438
|
-
}
|
|
439
|
-
else await this.makeRequest('POST', `/session/${this.sessionId}/wda/keys`, {
|
|
440
|
-
value: chars
|
|
427
|
+
const cleanText = text.trim();
|
|
428
|
+
await this.makeRequest('POST', `/session/${this.sessionId}/wda/keys`, {
|
|
429
|
+
value: cleanText.split('')
|
|
441
430
|
});
|
|
442
|
-
debugIOS(`Typed text: "${text}"
|
|
431
|
+
debugIOS(`Typed text: "${text}"`);
|
|
443
432
|
} catch (error) {
|
|
444
433
|
debugIOS(`Failed to type text "${text}": ${error}`);
|
|
445
434
|
throw new Error(`Failed to type text: ${error}`);
|
|
@@ -902,13 +891,10 @@ ScreenSize: ${size.width}x${size.height} (DPR: ${size.scale})
|
|
|
902
891
|
async typeText(text, options) {
|
|
903
892
|
if (!text) return;
|
|
904
893
|
const shouldAutoDismissKeyboard = options?.autoDismissKeyboard ?? this.options?.autoDismissKeyboard ?? true;
|
|
905
|
-
|
|
906
|
-
debugDevice(`Typing text: "${text}" (delayMs=${delayMs})`);
|
|
894
|
+
debugDevice(`Typing text: "${text}"`);
|
|
907
895
|
try {
|
|
908
896
|
await (0, core_utils_namespaceObject.sleep)(200);
|
|
909
|
-
await this.wdaBackend.typeText(text
|
|
910
|
-
delayMs
|
|
911
|
-
});
|
|
897
|
+
await this.wdaBackend.typeText(text);
|
|
912
898
|
await (0, core_utils_namespaceObject.sleep)(300);
|
|
913
899
|
} catch (error) {
|
|
914
900
|
debugDevice(`Failed to type text with WDA: ${error}`);
|
|
@@ -1491,7 +1477,7 @@ class IOSMidsceneTools extends base_tools_namespaceObject.BaseMidsceneTools {
|
|
|
1491
1477
|
const tools = new IOSMidsceneTools();
|
|
1492
1478
|
(0, cli_namespaceObject.runToolsCLI)(tools, 'midscene-ios', {
|
|
1493
1479
|
stripPrefix: 'ios_',
|
|
1494
|
-
version: "1.8.6
|
|
1480
|
+
version: "1.8.6",
|
|
1495
1481
|
extraCommands: (0, core_namespaceObject.createReportCliCommands)()
|
|
1496
1482
|
}).catch((e)=>{
|
|
1497
1483
|
process.exit((0, cli_namespaceObject.reportCLIError)(e));
|
package/dist/lib/index.js
CHANGED
|
@@ -254,25 +254,14 @@ class IOSWebDriverClient extends webdriver_namespaceObject.WebDriverClient {
|
|
|
254
254
|
return false;
|
|
255
255
|
}
|
|
256
256
|
}
|
|
257
|
-
async typeText(text
|
|
257
|
+
async typeText(text) {
|
|
258
258
|
this.ensureSession();
|
|
259
|
-
const cleanText = text.trim();
|
|
260
|
-
if (!cleanText) return;
|
|
261
|
-
const chars = Array.from(cleanText);
|
|
262
|
-
const delayMs = options?.delayMs ?? 0;
|
|
263
259
|
try {
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
chars[i]
|
|
268
|
-
]
|
|
269
|
-
});
|
|
270
|
-
if (i < chars.length - 1) await (0, utils_namespaceObject.sleep)(delayMs);
|
|
271
|
-
}
|
|
272
|
-
else await this.makeRequest('POST', `/session/${this.sessionId}/wda/keys`, {
|
|
273
|
-
value: chars
|
|
260
|
+
const cleanText = text.trim();
|
|
261
|
+
await this.makeRequest('POST', `/session/${this.sessionId}/wda/keys`, {
|
|
262
|
+
value: cleanText.split('')
|
|
274
263
|
});
|
|
275
|
-
debugIOS(`Typed text: "${text}"
|
|
264
|
+
debugIOS(`Typed text: "${text}"`);
|
|
276
265
|
} catch (error) {
|
|
277
266
|
debugIOS(`Failed to type text "${text}": ${error}`);
|
|
278
267
|
throw new Error(`Failed to type text: ${error}`);
|
|
@@ -735,13 +724,10 @@ ScreenSize: ${size.width}x${size.height} (DPR: ${size.scale})
|
|
|
735
724
|
async typeText(text, options) {
|
|
736
725
|
if (!text) return;
|
|
737
726
|
const shouldAutoDismissKeyboard = options?.autoDismissKeyboard ?? this.options?.autoDismissKeyboard ?? true;
|
|
738
|
-
|
|
739
|
-
debugDevice(`Typing text: "${text}" (delayMs=${delayMs})`);
|
|
727
|
+
debugDevice(`Typing text: "${text}"`);
|
|
740
728
|
try {
|
|
741
729
|
await (0, utils_namespaceObject.sleep)(200);
|
|
742
|
-
await this.wdaBackend.typeText(text
|
|
743
|
-
delayMs
|
|
744
|
-
});
|
|
730
|
+
await this.wdaBackend.typeText(text);
|
|
745
731
|
await (0, utils_namespaceObject.sleep)(300);
|
|
746
732
|
} catch (error) {
|
|
747
733
|
debugDevice(`Failed to type text with WDA: ${error}`);
|
package/dist/lib/mcp-server.js
CHANGED
|
@@ -436,25 +436,14 @@ class IOSWebDriverClient extends webdriver_namespaceObject.WebDriverClient {
|
|
|
436
436
|
return false;
|
|
437
437
|
}
|
|
438
438
|
}
|
|
439
|
-
async typeText(text
|
|
439
|
+
async typeText(text) {
|
|
440
440
|
this.ensureSession();
|
|
441
|
-
const cleanText = text.trim();
|
|
442
|
-
if (!cleanText) return;
|
|
443
|
-
const chars = Array.from(cleanText);
|
|
444
|
-
const delayMs = options?.delayMs ?? 0;
|
|
445
441
|
try {
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
chars[i]
|
|
450
|
-
]
|
|
451
|
-
});
|
|
452
|
-
if (i < chars.length - 1) await (0, core_utils_namespaceObject.sleep)(delayMs);
|
|
453
|
-
}
|
|
454
|
-
else await this.makeRequest('POST', `/session/${this.sessionId}/wda/keys`, {
|
|
455
|
-
value: chars
|
|
442
|
+
const cleanText = text.trim();
|
|
443
|
+
await this.makeRequest('POST', `/session/${this.sessionId}/wda/keys`, {
|
|
444
|
+
value: cleanText.split('')
|
|
456
445
|
});
|
|
457
|
-
debugIOS(`Typed text: "${text}"
|
|
446
|
+
debugIOS(`Typed text: "${text}"`);
|
|
458
447
|
} catch (error) {
|
|
459
448
|
debugIOS(`Failed to type text "${text}": ${error}`);
|
|
460
449
|
throw new Error(`Failed to type text: ${error}`);
|
|
@@ -917,13 +906,10 @@ ScreenSize: ${size.width}x${size.height} (DPR: ${size.scale})
|
|
|
917
906
|
async typeText(text, options) {
|
|
918
907
|
if (!text) return;
|
|
919
908
|
const shouldAutoDismissKeyboard = options?.autoDismissKeyboard ?? this.options?.autoDismissKeyboard ?? true;
|
|
920
|
-
|
|
921
|
-
debugDevice(`Typing text: "${text}" (delayMs=${delayMs})`);
|
|
909
|
+
debugDevice(`Typing text: "${text}"`);
|
|
922
910
|
try {
|
|
923
911
|
await (0, core_utils_namespaceObject.sleep)(200);
|
|
924
|
-
await this.wdaBackend.typeText(text
|
|
925
|
-
delayMs
|
|
926
|
-
});
|
|
912
|
+
await this.wdaBackend.typeText(text);
|
|
927
913
|
await (0, core_utils_namespaceObject.sleep)(300);
|
|
928
914
|
} catch (error) {
|
|
929
915
|
debugDevice(`Failed to type text with WDA: ${error}`);
|
|
@@ -1511,7 +1497,7 @@ class IOSMCPServer extends mcp_namespaceObject.BaseMCPServer {
|
|
|
1511
1497
|
constructor(toolsManager){
|
|
1512
1498
|
super({
|
|
1513
1499
|
name: '@midscene/ios-mcp',
|
|
1514
|
-
version: "1.8.6
|
|
1500
|
+
version: "1.8.6",
|
|
1515
1501
|
description: 'Control the iOS device using natural language commands'
|
|
1516
1502
|
}, toolsManager);
|
|
1517
1503
|
}
|
package/dist/types/index.d.ts
CHANGED
|
@@ -227,9 +227,7 @@ export declare class IOSWebDriverClient extends WebDriverClient {
|
|
|
227
227
|
clearActiveElement(): Promise<boolean>;
|
|
228
228
|
private normalizeKeyName;
|
|
229
229
|
dismissKeyboard(keyNames?: string[]): Promise<boolean>;
|
|
230
|
-
typeText(text: string
|
|
231
|
-
delayMs?: number;
|
|
232
|
-
}): Promise<void>;
|
|
230
|
+
typeText(text: string): Promise<void>;
|
|
233
231
|
tap(x: number, y: number): Promise<void>;
|
|
234
232
|
swipe(fromX: number, fromY: number, toX: number, toY: number, duration?: number): Promise<void>;
|
|
235
233
|
pinch(centerX: number, centerY: number, startDistance: number, endDistance: number, duration?: number): Promise<void>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@midscene/ios",
|
|
3
|
-
"version": "1.8.6
|
|
3
|
+
"version": "1.8.6",
|
|
4
4
|
"repository": {
|
|
5
5
|
"type": "git",
|
|
6
6
|
"url": "https://github.com/web-infra-dev/midscene.git",
|
|
@@ -48,10 +48,10 @@
|
|
|
48
48
|
"dependencies": {
|
|
49
49
|
"@inquirer/prompts": "^7.8.6",
|
|
50
50
|
"open": "10.1.0",
|
|
51
|
-
"@midscene/core": "1.8.6
|
|
52
|
-
"@midscene/shared": "1.8.6
|
|
53
|
-
"@midscene/playground": "1.8.6
|
|
54
|
-
"@midscene/webdriver": "1.8.6
|
|
51
|
+
"@midscene/core": "1.8.6",
|
|
52
|
+
"@midscene/shared": "1.8.6",
|
|
53
|
+
"@midscene/playground": "1.8.6",
|
|
54
|
+
"@midscene/webdriver": "1.8.6"
|
|
55
55
|
},
|
|
56
56
|
"devDependencies": {
|
|
57
57
|
"@rslib/core": "^0.18.3",
|
package/static/index.html
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
<!doctype html><html><head><link rel="icon" href="/favicon.ico"><title>Midscene Playground</title><meta charset="UTF-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><script defer src="/static/js/lib-react.7b1abe58.js"></script><script defer src="/static/js/596.5426be9e.js"></script><script defer src="/static/js/index.
|
|
1
|
+
<!doctype html><html><head><link rel="icon" href="/favicon.ico"><title>Midscene Playground</title><meta charset="UTF-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><script defer src="/static/js/lib-react.7b1abe58.js"></script><script defer src="/static/js/596.5426be9e.js"></script><script defer src="/static/js/index.42764323.js"></script><link href="/static/css/index.75cf2c82.css" rel="stylesheet"></head><body><div id="root"></div></body></html>
|