@midscene/computer 1.12.3 → 1.12.4-beta-20260902110647.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/dist/es/cli.mjs +93 -3
- package/dist/es/index.mjs +93 -3
- package/dist/lib/cli.js +93 -3
- package/dist/lib/index.js +93 -3
- package/package.json +3 -3
package/dist/es/cli.mjs
CHANGED
|
@@ -541,6 +541,92 @@ const LIBNUT_FALLBACK_PIXELS_PER_DETENT = 100;
|
|
|
541
541
|
const LIBNUT_FALLBACK_TICK_DELAY_MS = 30;
|
|
542
542
|
const LIBNUT_FALLBACK_MAX_DETENTS = 200;
|
|
543
543
|
const LIBNUT_FALLBACK_DETENT_AMOUNT = 'win32' === process.platform ? 120 : 1;
|
|
544
|
+
const LINUX_SHIFTED_CHARACTER_KEYS = new Map([
|
|
545
|
+
[
|
|
546
|
+
'~',
|
|
547
|
+
'`'
|
|
548
|
+
],
|
|
549
|
+
[
|
|
550
|
+
'!',
|
|
551
|
+
'1'
|
|
552
|
+
],
|
|
553
|
+
[
|
|
554
|
+
'@',
|
|
555
|
+
'2'
|
|
556
|
+
],
|
|
557
|
+
[
|
|
558
|
+
'#',
|
|
559
|
+
'3'
|
|
560
|
+
],
|
|
561
|
+
[
|
|
562
|
+
'$',
|
|
563
|
+
'4'
|
|
564
|
+
],
|
|
565
|
+
[
|
|
566
|
+
'%',
|
|
567
|
+
'5'
|
|
568
|
+
],
|
|
569
|
+
[
|
|
570
|
+
'^',
|
|
571
|
+
'6'
|
|
572
|
+
],
|
|
573
|
+
[
|
|
574
|
+
'&',
|
|
575
|
+
'7'
|
|
576
|
+
],
|
|
577
|
+
[
|
|
578
|
+
'*',
|
|
579
|
+
'8'
|
|
580
|
+
],
|
|
581
|
+
[
|
|
582
|
+
'(',
|
|
583
|
+
'9'
|
|
584
|
+
],
|
|
585
|
+
[
|
|
586
|
+
')',
|
|
587
|
+
'0'
|
|
588
|
+
],
|
|
589
|
+
[
|
|
590
|
+
'_',
|
|
591
|
+
'-'
|
|
592
|
+
],
|
|
593
|
+
[
|
|
594
|
+
'+',
|
|
595
|
+
'='
|
|
596
|
+
],
|
|
597
|
+
[
|
|
598
|
+
'{',
|
|
599
|
+
'['
|
|
600
|
+
],
|
|
601
|
+
[
|
|
602
|
+
'}',
|
|
603
|
+
']'
|
|
604
|
+
],
|
|
605
|
+
[
|
|
606
|
+
'|',
|
|
607
|
+
'\\'
|
|
608
|
+
],
|
|
609
|
+
[
|
|
610
|
+
':',
|
|
611
|
+
';'
|
|
612
|
+
],
|
|
613
|
+
[
|
|
614
|
+
'"',
|
|
615
|
+
"'"
|
|
616
|
+
],
|
|
617
|
+
[
|
|
618
|
+
'<',
|
|
619
|
+
','
|
|
620
|
+
],
|
|
621
|
+
[
|
|
622
|
+
'>',
|
|
623
|
+
'.'
|
|
624
|
+
],
|
|
625
|
+
[
|
|
626
|
+
'?',
|
|
627
|
+
'/'
|
|
628
|
+
]
|
|
629
|
+
]);
|
|
544
630
|
const LIBNUT_FALLBACK_EDGE_DETENTS = Math.min(LIBNUT_FALLBACK_MAX_DETENTS, Math.max(1, Math.ceil(EDGE_SCROLL_TOTAL_PX / LIBNUT_FALLBACK_PIXELS_PER_DETENT)));
|
|
545
631
|
const DEFAULT_SCROLL_VIEWPORT_RATIO = 0.7;
|
|
546
632
|
const EDGE_SCROLL_SPEC = {
|
|
@@ -1065,7 +1151,7 @@ Available Displays: ${displays.length > 0 ? displays.map((d)=>d.name).join(', ')
|
|
|
1065
1151
|
}
|
|
1066
1152
|
async healthCheck(displays) {
|
|
1067
1153
|
console.log('[HealthCheck] Starting health check...');
|
|
1068
|
-
console.log("[HealthCheck] @midscene/computer v1.12.
|
|
1154
|
+
console.log("[HealthCheck] @midscene/computer v1.12.4-beta-20260902110647.0");
|
|
1069
1155
|
console.log('[HealthCheck] Taking screenshot...');
|
|
1070
1156
|
const screenshotTimeout = 15000;
|
|
1071
1157
|
let timeoutId;
|
|
@@ -1260,10 +1346,14 @@ $g.Dispose(); $bmp.Dispose(); $ms.Dispose()
|
|
|
1260
1346
|
async typeStringWithDelay(text, keyboardTypeDelay) {
|
|
1261
1347
|
await sendTextSequentially(text.replace(/\r\n?/g, '\n'), {
|
|
1262
1348
|
sendCharacter: (character)=>{
|
|
1263
|
-
|
|
1349
|
+
const linuxShiftedKey = 'linux' === process.platform ? LINUX_SHIFTED_CHARACTER_KEYS.get(character) : void 0;
|
|
1350
|
+
if ('\n' === character) this.inputDriver.sendKey('return');
|
|
1264
1351
|
else if ('\t' === character) this.inputDriver.sendKey('tab');
|
|
1265
1352
|
else if (' ' === character) this.inputDriver.sendKey('space');
|
|
1266
1353
|
else if (this.useAppleScript) this.inputDriver.sendKeyViaAppleScript(character);
|
|
1354
|
+
else if (void 0 !== linuxShiftedKey) this.inputDriver.keyTap(linuxShiftedKey, [
|
|
1355
|
+
'shift'
|
|
1356
|
+
]);
|
|
1267
1357
|
else this.inputDriver.typeString(character);
|
|
1268
1358
|
},
|
|
1269
1359
|
wait: (delayMs)=>this.inputDriver.delay(delayMs)
|
|
@@ -2511,7 +2601,7 @@ const tools = new ComputerMidsceneTools({
|
|
|
2511
2601
|
});
|
|
2512
2602
|
runToolsCLI(tools, 'midscene-computer', {
|
|
2513
2603
|
stripPrefix: 'computer_',
|
|
2514
|
-
version: "1.12.
|
|
2604
|
+
version: "1.12.4-beta-20260902110647.0",
|
|
2515
2605
|
extraCommands: createReportCliCommands()
|
|
2516
2606
|
}).catch((e)=>{
|
|
2517
2607
|
process.exit(reportCLIError(e));
|
package/dist/es/index.mjs
CHANGED
|
@@ -541,6 +541,92 @@ const LIBNUT_FALLBACK_PIXELS_PER_DETENT = 100;
|
|
|
541
541
|
const LIBNUT_FALLBACK_TICK_DELAY_MS = 30;
|
|
542
542
|
const LIBNUT_FALLBACK_MAX_DETENTS = 200;
|
|
543
543
|
const LIBNUT_FALLBACK_DETENT_AMOUNT = 'win32' === process.platform ? 120 : 1;
|
|
544
|
+
const LINUX_SHIFTED_CHARACTER_KEYS = new Map([
|
|
545
|
+
[
|
|
546
|
+
'~',
|
|
547
|
+
'`'
|
|
548
|
+
],
|
|
549
|
+
[
|
|
550
|
+
'!',
|
|
551
|
+
'1'
|
|
552
|
+
],
|
|
553
|
+
[
|
|
554
|
+
'@',
|
|
555
|
+
'2'
|
|
556
|
+
],
|
|
557
|
+
[
|
|
558
|
+
'#',
|
|
559
|
+
'3'
|
|
560
|
+
],
|
|
561
|
+
[
|
|
562
|
+
'$',
|
|
563
|
+
'4'
|
|
564
|
+
],
|
|
565
|
+
[
|
|
566
|
+
'%',
|
|
567
|
+
'5'
|
|
568
|
+
],
|
|
569
|
+
[
|
|
570
|
+
'^',
|
|
571
|
+
'6'
|
|
572
|
+
],
|
|
573
|
+
[
|
|
574
|
+
'&',
|
|
575
|
+
'7'
|
|
576
|
+
],
|
|
577
|
+
[
|
|
578
|
+
'*',
|
|
579
|
+
'8'
|
|
580
|
+
],
|
|
581
|
+
[
|
|
582
|
+
'(',
|
|
583
|
+
'9'
|
|
584
|
+
],
|
|
585
|
+
[
|
|
586
|
+
')',
|
|
587
|
+
'0'
|
|
588
|
+
],
|
|
589
|
+
[
|
|
590
|
+
'_',
|
|
591
|
+
'-'
|
|
592
|
+
],
|
|
593
|
+
[
|
|
594
|
+
'+',
|
|
595
|
+
'='
|
|
596
|
+
],
|
|
597
|
+
[
|
|
598
|
+
'{',
|
|
599
|
+
'['
|
|
600
|
+
],
|
|
601
|
+
[
|
|
602
|
+
'}',
|
|
603
|
+
']'
|
|
604
|
+
],
|
|
605
|
+
[
|
|
606
|
+
'|',
|
|
607
|
+
'\\'
|
|
608
|
+
],
|
|
609
|
+
[
|
|
610
|
+
':',
|
|
611
|
+
';'
|
|
612
|
+
],
|
|
613
|
+
[
|
|
614
|
+
'"',
|
|
615
|
+
"'"
|
|
616
|
+
],
|
|
617
|
+
[
|
|
618
|
+
'<',
|
|
619
|
+
','
|
|
620
|
+
],
|
|
621
|
+
[
|
|
622
|
+
'>',
|
|
623
|
+
'.'
|
|
624
|
+
],
|
|
625
|
+
[
|
|
626
|
+
'?',
|
|
627
|
+
'/'
|
|
628
|
+
]
|
|
629
|
+
]);
|
|
544
630
|
const LIBNUT_FALLBACK_EDGE_DETENTS = Math.min(LIBNUT_FALLBACK_MAX_DETENTS, Math.max(1, Math.ceil(EDGE_SCROLL_TOTAL_PX / LIBNUT_FALLBACK_PIXELS_PER_DETENT)));
|
|
545
631
|
const DEFAULT_SCROLL_VIEWPORT_RATIO = 0.7;
|
|
546
632
|
const EDGE_SCROLL_SPEC = {
|
|
@@ -1065,7 +1151,7 @@ Available Displays: ${displays.length > 0 ? displays.map((d)=>d.name).join(', ')
|
|
|
1065
1151
|
}
|
|
1066
1152
|
async healthCheck(displays) {
|
|
1067
1153
|
console.log('[HealthCheck] Starting health check...');
|
|
1068
|
-
console.log("[HealthCheck] @midscene/computer v1.12.
|
|
1154
|
+
console.log("[HealthCheck] @midscene/computer v1.12.4-beta-20260902110647.0");
|
|
1069
1155
|
console.log('[HealthCheck] Taking screenshot...');
|
|
1070
1156
|
const screenshotTimeout = 15000;
|
|
1071
1157
|
let timeoutId;
|
|
@@ -1260,10 +1346,14 @@ $g.Dispose(); $bmp.Dispose(); $ms.Dispose()
|
|
|
1260
1346
|
async typeStringWithDelay(text, keyboardTypeDelay) {
|
|
1261
1347
|
await sendTextSequentially(text.replace(/\r\n?/g, '\n'), {
|
|
1262
1348
|
sendCharacter: (character)=>{
|
|
1263
|
-
|
|
1349
|
+
const linuxShiftedKey = 'linux' === process.platform ? LINUX_SHIFTED_CHARACTER_KEYS.get(character) : void 0;
|
|
1350
|
+
if ('\n' === character) this.inputDriver.sendKey('return');
|
|
1264
1351
|
else if ('\t' === character) this.inputDriver.sendKey('tab');
|
|
1265
1352
|
else if (' ' === character) this.inputDriver.sendKey('space');
|
|
1266
1353
|
else if (this.useAppleScript) this.inputDriver.sendKeyViaAppleScript(character);
|
|
1354
|
+
else if (void 0 !== linuxShiftedKey) this.inputDriver.keyTap(linuxShiftedKey, [
|
|
1355
|
+
'shift'
|
|
1356
|
+
]);
|
|
1267
1357
|
else this.inputDriver.typeString(character);
|
|
1268
1358
|
},
|
|
1269
1359
|
wait: (delayMs)=>this.inputDriver.delay(delayMs)
|
|
@@ -2550,7 +2640,7 @@ class ComputerMidsceneTools extends BaseMidsceneTools {
|
|
|
2550
2640
|
}
|
|
2551
2641
|
}
|
|
2552
2642
|
function version() {
|
|
2553
|
-
const currentVersion = "1.12.
|
|
2643
|
+
const currentVersion = "1.12.4-beta-20260902110647.0";
|
|
2554
2644
|
console.log(`@midscene/computer v${currentVersion}`);
|
|
2555
2645
|
return currentVersion;
|
|
2556
2646
|
}
|
package/dist/lib/cli.js
CHANGED
|
@@ -567,6 +567,92 @@ const LIBNUT_FALLBACK_PIXELS_PER_DETENT = 100;
|
|
|
567
567
|
const LIBNUT_FALLBACK_TICK_DELAY_MS = 30;
|
|
568
568
|
const LIBNUT_FALLBACK_MAX_DETENTS = 200;
|
|
569
569
|
const LIBNUT_FALLBACK_DETENT_AMOUNT = 'win32' === process.platform ? 120 : 1;
|
|
570
|
+
const LINUX_SHIFTED_CHARACTER_KEYS = new Map([
|
|
571
|
+
[
|
|
572
|
+
'~',
|
|
573
|
+
'`'
|
|
574
|
+
],
|
|
575
|
+
[
|
|
576
|
+
'!',
|
|
577
|
+
'1'
|
|
578
|
+
],
|
|
579
|
+
[
|
|
580
|
+
'@',
|
|
581
|
+
'2'
|
|
582
|
+
],
|
|
583
|
+
[
|
|
584
|
+
'#',
|
|
585
|
+
'3'
|
|
586
|
+
],
|
|
587
|
+
[
|
|
588
|
+
'$',
|
|
589
|
+
'4'
|
|
590
|
+
],
|
|
591
|
+
[
|
|
592
|
+
'%',
|
|
593
|
+
'5'
|
|
594
|
+
],
|
|
595
|
+
[
|
|
596
|
+
'^',
|
|
597
|
+
'6'
|
|
598
|
+
],
|
|
599
|
+
[
|
|
600
|
+
'&',
|
|
601
|
+
'7'
|
|
602
|
+
],
|
|
603
|
+
[
|
|
604
|
+
'*',
|
|
605
|
+
'8'
|
|
606
|
+
],
|
|
607
|
+
[
|
|
608
|
+
'(',
|
|
609
|
+
'9'
|
|
610
|
+
],
|
|
611
|
+
[
|
|
612
|
+
')',
|
|
613
|
+
'0'
|
|
614
|
+
],
|
|
615
|
+
[
|
|
616
|
+
'_',
|
|
617
|
+
'-'
|
|
618
|
+
],
|
|
619
|
+
[
|
|
620
|
+
'+',
|
|
621
|
+
'='
|
|
622
|
+
],
|
|
623
|
+
[
|
|
624
|
+
'{',
|
|
625
|
+
'['
|
|
626
|
+
],
|
|
627
|
+
[
|
|
628
|
+
'}',
|
|
629
|
+
']'
|
|
630
|
+
],
|
|
631
|
+
[
|
|
632
|
+
'|',
|
|
633
|
+
'\\'
|
|
634
|
+
],
|
|
635
|
+
[
|
|
636
|
+
':',
|
|
637
|
+
';'
|
|
638
|
+
],
|
|
639
|
+
[
|
|
640
|
+
'"',
|
|
641
|
+
"'"
|
|
642
|
+
],
|
|
643
|
+
[
|
|
644
|
+
'<',
|
|
645
|
+
','
|
|
646
|
+
],
|
|
647
|
+
[
|
|
648
|
+
'>',
|
|
649
|
+
'.'
|
|
650
|
+
],
|
|
651
|
+
[
|
|
652
|
+
'?',
|
|
653
|
+
'/'
|
|
654
|
+
]
|
|
655
|
+
]);
|
|
570
656
|
const LIBNUT_FALLBACK_EDGE_DETENTS = Math.min(LIBNUT_FALLBACK_MAX_DETENTS, Math.max(1, Math.ceil(EDGE_SCROLL_TOTAL_PX / LIBNUT_FALLBACK_PIXELS_PER_DETENT)));
|
|
571
657
|
const DEFAULT_SCROLL_VIEWPORT_RATIO = 0.7;
|
|
572
658
|
const EDGE_SCROLL_SPEC = {
|
|
@@ -1091,7 +1177,7 @@ Available Displays: ${displays.length > 0 ? displays.map((d)=>d.name).join(', ')
|
|
|
1091
1177
|
}
|
|
1092
1178
|
async healthCheck(displays) {
|
|
1093
1179
|
console.log('[HealthCheck] Starting health check...');
|
|
1094
|
-
console.log("[HealthCheck] @midscene/computer v1.12.
|
|
1180
|
+
console.log("[HealthCheck] @midscene/computer v1.12.4-beta-20260902110647.0");
|
|
1095
1181
|
console.log('[HealthCheck] Taking screenshot...');
|
|
1096
1182
|
const screenshotTimeout = 15000;
|
|
1097
1183
|
let timeoutId;
|
|
@@ -1286,10 +1372,14 @@ $g.Dispose(); $bmp.Dispose(); $ms.Dispose()
|
|
|
1286
1372
|
async typeStringWithDelay(text, keyboardTypeDelay) {
|
|
1287
1373
|
await (0, device_namespaceObject.sendTextSequentially)(text.replace(/\r\n?/g, '\n'), {
|
|
1288
1374
|
sendCharacter: (character)=>{
|
|
1289
|
-
|
|
1375
|
+
const linuxShiftedKey = 'linux' === process.platform ? LINUX_SHIFTED_CHARACTER_KEYS.get(character) : void 0;
|
|
1376
|
+
if ('\n' === character) this.inputDriver.sendKey('return');
|
|
1290
1377
|
else if ('\t' === character) this.inputDriver.sendKey('tab');
|
|
1291
1378
|
else if (' ' === character) this.inputDriver.sendKey('space');
|
|
1292
1379
|
else if (this.useAppleScript) this.inputDriver.sendKeyViaAppleScript(character);
|
|
1380
|
+
else if (void 0 !== linuxShiftedKey) this.inputDriver.keyTap(linuxShiftedKey, [
|
|
1381
|
+
'shift'
|
|
1382
|
+
]);
|
|
1293
1383
|
else this.inputDriver.typeString(character);
|
|
1294
1384
|
},
|
|
1295
1385
|
wait: (delayMs)=>this.inputDriver.delay(delayMs)
|
|
@@ -2538,7 +2628,7 @@ const tools = new ComputerMidsceneTools({
|
|
|
2538
2628
|
});
|
|
2539
2629
|
(0, cli_namespaceObject.runToolsCLI)(tools, 'midscene-computer', {
|
|
2540
2630
|
stripPrefix: 'computer_',
|
|
2541
|
-
version: "1.12.
|
|
2631
|
+
version: "1.12.4-beta-20260902110647.0",
|
|
2542
2632
|
extraCommands: (0, core_namespaceObject.createReportCliCommands)()
|
|
2543
2633
|
}).catch((e)=>{
|
|
2544
2634
|
process.exit((0, cli_namespaceObject.reportCLIError)(e));
|
package/dist/lib/index.js
CHANGED
|
@@ -593,6 +593,92 @@ const LIBNUT_FALLBACK_PIXELS_PER_DETENT = 100;
|
|
|
593
593
|
const LIBNUT_FALLBACK_TICK_DELAY_MS = 30;
|
|
594
594
|
const LIBNUT_FALLBACK_MAX_DETENTS = 200;
|
|
595
595
|
const LIBNUT_FALLBACK_DETENT_AMOUNT = 'win32' === process.platform ? 120 : 1;
|
|
596
|
+
const LINUX_SHIFTED_CHARACTER_KEYS = new Map([
|
|
597
|
+
[
|
|
598
|
+
'~',
|
|
599
|
+
'`'
|
|
600
|
+
],
|
|
601
|
+
[
|
|
602
|
+
'!',
|
|
603
|
+
'1'
|
|
604
|
+
],
|
|
605
|
+
[
|
|
606
|
+
'@',
|
|
607
|
+
'2'
|
|
608
|
+
],
|
|
609
|
+
[
|
|
610
|
+
'#',
|
|
611
|
+
'3'
|
|
612
|
+
],
|
|
613
|
+
[
|
|
614
|
+
'$',
|
|
615
|
+
'4'
|
|
616
|
+
],
|
|
617
|
+
[
|
|
618
|
+
'%',
|
|
619
|
+
'5'
|
|
620
|
+
],
|
|
621
|
+
[
|
|
622
|
+
'^',
|
|
623
|
+
'6'
|
|
624
|
+
],
|
|
625
|
+
[
|
|
626
|
+
'&',
|
|
627
|
+
'7'
|
|
628
|
+
],
|
|
629
|
+
[
|
|
630
|
+
'*',
|
|
631
|
+
'8'
|
|
632
|
+
],
|
|
633
|
+
[
|
|
634
|
+
'(',
|
|
635
|
+
'9'
|
|
636
|
+
],
|
|
637
|
+
[
|
|
638
|
+
')',
|
|
639
|
+
'0'
|
|
640
|
+
],
|
|
641
|
+
[
|
|
642
|
+
'_',
|
|
643
|
+
'-'
|
|
644
|
+
],
|
|
645
|
+
[
|
|
646
|
+
'+',
|
|
647
|
+
'='
|
|
648
|
+
],
|
|
649
|
+
[
|
|
650
|
+
'{',
|
|
651
|
+
'['
|
|
652
|
+
],
|
|
653
|
+
[
|
|
654
|
+
'}',
|
|
655
|
+
']'
|
|
656
|
+
],
|
|
657
|
+
[
|
|
658
|
+
'|',
|
|
659
|
+
'\\'
|
|
660
|
+
],
|
|
661
|
+
[
|
|
662
|
+
':',
|
|
663
|
+
';'
|
|
664
|
+
],
|
|
665
|
+
[
|
|
666
|
+
'"',
|
|
667
|
+
"'"
|
|
668
|
+
],
|
|
669
|
+
[
|
|
670
|
+
'<',
|
|
671
|
+
','
|
|
672
|
+
],
|
|
673
|
+
[
|
|
674
|
+
'>',
|
|
675
|
+
'.'
|
|
676
|
+
],
|
|
677
|
+
[
|
|
678
|
+
'?',
|
|
679
|
+
'/'
|
|
680
|
+
]
|
|
681
|
+
]);
|
|
596
682
|
const LIBNUT_FALLBACK_EDGE_DETENTS = Math.min(LIBNUT_FALLBACK_MAX_DETENTS, Math.max(1, Math.ceil(EDGE_SCROLL_TOTAL_PX / LIBNUT_FALLBACK_PIXELS_PER_DETENT)));
|
|
597
683
|
const DEFAULT_SCROLL_VIEWPORT_RATIO = 0.7;
|
|
598
684
|
const EDGE_SCROLL_SPEC = {
|
|
@@ -1117,7 +1203,7 @@ Available Displays: ${displays.length > 0 ? displays.map((d)=>d.name).join(', ')
|
|
|
1117
1203
|
}
|
|
1118
1204
|
async healthCheck(displays) {
|
|
1119
1205
|
console.log('[HealthCheck] Starting health check...');
|
|
1120
|
-
console.log("[HealthCheck] @midscene/computer v1.12.
|
|
1206
|
+
console.log("[HealthCheck] @midscene/computer v1.12.4-beta-20260902110647.0");
|
|
1121
1207
|
console.log('[HealthCheck] Taking screenshot...');
|
|
1122
1208
|
const screenshotTimeout = 15000;
|
|
1123
1209
|
let timeoutId;
|
|
@@ -1312,10 +1398,14 @@ $g.Dispose(); $bmp.Dispose(); $ms.Dispose()
|
|
|
1312
1398
|
async typeStringWithDelay(text, keyboardTypeDelay) {
|
|
1313
1399
|
await (0, device_namespaceObject.sendTextSequentially)(text.replace(/\r\n?/g, '\n'), {
|
|
1314
1400
|
sendCharacter: (character)=>{
|
|
1315
|
-
|
|
1401
|
+
const linuxShiftedKey = 'linux' === process.platform ? LINUX_SHIFTED_CHARACTER_KEYS.get(character) : void 0;
|
|
1402
|
+
if ('\n' === character) this.inputDriver.sendKey('return');
|
|
1316
1403
|
else if ('\t' === character) this.inputDriver.sendKey('tab');
|
|
1317
1404
|
else if (' ' === character) this.inputDriver.sendKey('space');
|
|
1318
1405
|
else if (this.useAppleScript) this.inputDriver.sendKeyViaAppleScript(character);
|
|
1406
|
+
else if (void 0 !== linuxShiftedKey) this.inputDriver.keyTap(linuxShiftedKey, [
|
|
1407
|
+
'shift'
|
|
1408
|
+
]);
|
|
1319
1409
|
else this.inputDriver.typeString(character);
|
|
1320
1410
|
},
|
|
1321
1411
|
wait: (delayMs)=>this.inputDriver.delay(delayMs)
|
|
@@ -2608,7 +2698,7 @@ class ComputerMidsceneTools extends base_tools_namespaceObject.BaseMidsceneTools
|
|
|
2608
2698
|
}
|
|
2609
2699
|
const env_namespaceObject = require("@midscene/shared/env");
|
|
2610
2700
|
function version() {
|
|
2611
|
-
const currentVersion = "1.12.
|
|
2701
|
+
const currentVersion = "1.12.4-beta-20260902110647.0";
|
|
2612
2702
|
console.log(`@midscene/computer v${currentVersion}`);
|
|
2613
2703
|
return currentVersion;
|
|
2614
2704
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@midscene/computer",
|
|
3
|
-
"version": "1.12.
|
|
3
|
+
"version": "1.12.4-beta-20260902110647.0",
|
|
4
4
|
"description": "Midscene.js Computer Desktop Automation",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
@@ -33,8 +33,8 @@
|
|
|
33
33
|
"@computer-use/libnut": "^4.2.0",
|
|
34
34
|
"clipboardy": "^4.0.0",
|
|
35
35
|
"screenshot-desktop": "^1.15.3",
|
|
36
|
-
"@midscene/core": "1.12.
|
|
37
|
-
"@midscene/shared": "1.12.
|
|
36
|
+
"@midscene/core": "1.12.4-beta-20260902110647.0",
|
|
37
|
+
"@midscene/shared": "1.12.4-beta-20260902110647.0"
|
|
38
38
|
},
|
|
39
39
|
"optionalDependencies": {
|
|
40
40
|
"node-mac-permissions": "2.5.0"
|