@midscene/computer 1.12.4-beta-20260904065253.0 → 1.12.4

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 CHANGED
@@ -523,10 +523,8 @@ async function captureScreenshot(options) {
523
523
  }
524
524
  const SMOOTH_MOVE_STEPS_TAP = 8;
525
525
  const SMOOTH_MOVE_STEPS_MOUSE_MOVE = 10;
526
- const SMOOTH_MOVE_STEPS_DRAG = 20;
527
526
  const SMOOTH_MOVE_DELAY_TAP = 8;
528
527
  const SMOOTH_MOVE_DELAY_MOUSE_MOVE = 10;
529
- const SMOOTH_MOVE_DELAY_DRAG = 10;
530
528
  const MOUSE_MOVE_EFFECT_WAIT = 300;
531
529
  const CLICK_SETTLE_DELAY = 50;
532
530
  const CLICK_HOLD_DURATION = 100;
@@ -1153,7 +1151,7 @@ Available Displays: ${displays.length > 0 ? displays.map((d)=>d.name).join(', ')
1153
1151
  }
1154
1152
  async healthCheck(displays) {
1155
1153
  console.log('[HealthCheck] Starting health check...');
1156
- console.log("[HealthCheck] @midscene/computer v1.12.4-beta-20260904065253.0");
1154
+ console.log("[HealthCheck] @midscene/computer v1.12.4");
1157
1155
  console.log('[HealthCheck] Taking screenshot...');
1158
1156
  const screenshotTimeout = 15000;
1159
1157
  let timeoutId;
@@ -1630,10 +1628,7 @@ $g.Dispose(); $bmp.Dispose(); $ms.Dispose()
1630
1628
  await this.moveDisplayPointer(from, 'Mouse did not reach the drag start target');
1631
1629
  await this.inputDriver.withMouseButton('left', async ()=>{
1632
1630
  await this.inputDriver.delay(100);
1633
- await this.moveDisplayPointer(to, 'Mouse did not reach the drag end target', {
1634
- smoothSteps: SMOOTH_MOVE_STEPS_DRAG,
1635
- smoothDelay: SMOOTH_MOVE_DELAY_DRAG
1636
- });
1631
+ await this.moveDisplayPointer(to, 'Mouse did not reach the drag end target');
1637
1632
  await this.inputDriver.delay(100);
1638
1633
  });
1639
1634
  }
@@ -2072,10 +2067,10 @@ function rdp_device_define_property(obj, key, value) {
2072
2067
  const device_debug = getDebug('rdp:device');
2073
2068
  const device_SMOOTH_MOVE_STEPS_TAP = 8;
2074
2069
  const device_SMOOTH_MOVE_STEPS_MOUSE_MOVE = 10;
2075
- const device_SMOOTH_MOVE_STEPS_DRAG = 12;
2070
+ const SMOOTH_MOVE_STEPS_DRAG = 12;
2076
2071
  const device_SMOOTH_MOVE_DELAY_TAP = 8;
2077
2072
  const device_SMOOTH_MOVE_DELAY_MOUSE_MOVE = 10;
2078
- const device_SMOOTH_MOVE_DELAY_DRAG = 10;
2073
+ const SMOOTH_MOVE_DELAY_DRAG = 10;
2079
2074
  const device_MOUSE_MOVE_EFFECT_WAIT = 300;
2080
2075
  const device_CLICK_HOLD_DURATION = 50;
2081
2076
  const DRAG_HOLD_DURATION = 100;
@@ -2278,8 +2273,8 @@ class RDPDevice {
2278
2273
  await this.backend.mouseButton('left', 'down');
2279
2274
  await sleep(DRAG_HOLD_DURATION);
2280
2275
  await this.movePointer(Math.round(to.x), Math.round(to.y), {
2281
- steps: device_SMOOTH_MOVE_STEPS_DRAG,
2282
- stepDelayMs: device_SMOOTH_MOVE_DELAY_DRAG
2276
+ steps: SMOOTH_MOVE_STEPS_DRAG,
2277
+ stepDelayMs: SMOOTH_MOVE_DELAY_DRAG
2283
2278
  });
2284
2279
  await sleep(DRAG_HOLD_DURATION);
2285
2280
  await this.backend.mouseButton('left', 'up');
@@ -2606,7 +2601,7 @@ const tools = new ComputerMidsceneTools({
2606
2601
  });
2607
2602
  runToolsCLI(tools, 'midscene-computer', {
2608
2603
  stripPrefix: 'computer_',
2609
- version: "1.12.4-beta-20260904065253.0",
2604
+ version: "1.12.4",
2610
2605
  extraCommands: createReportCliCommands()
2611
2606
  }).catch((e)=>{
2612
2607
  process.exit(reportCLIError(e));
package/dist/es/index.mjs CHANGED
@@ -523,10 +523,8 @@ async function captureScreenshot(options) {
523
523
  }
524
524
  const SMOOTH_MOVE_STEPS_TAP = 8;
525
525
  const SMOOTH_MOVE_STEPS_MOUSE_MOVE = 10;
526
- const SMOOTH_MOVE_STEPS_DRAG = 20;
527
526
  const SMOOTH_MOVE_DELAY_TAP = 8;
528
527
  const SMOOTH_MOVE_DELAY_MOUSE_MOVE = 10;
529
- const SMOOTH_MOVE_DELAY_DRAG = 10;
530
528
  const MOUSE_MOVE_EFFECT_WAIT = 300;
531
529
  const CLICK_SETTLE_DELAY = 50;
532
530
  const CLICK_HOLD_DURATION = 100;
@@ -1153,7 +1151,7 @@ Available Displays: ${displays.length > 0 ? displays.map((d)=>d.name).join(', ')
1153
1151
  }
1154
1152
  async healthCheck(displays) {
1155
1153
  console.log('[HealthCheck] Starting health check...');
1156
- console.log("[HealthCheck] @midscene/computer v1.12.4-beta-20260904065253.0");
1154
+ console.log("[HealthCheck] @midscene/computer v1.12.4");
1157
1155
  console.log('[HealthCheck] Taking screenshot...');
1158
1156
  const screenshotTimeout = 15000;
1159
1157
  let timeoutId;
@@ -1630,10 +1628,7 @@ $g.Dispose(); $bmp.Dispose(); $ms.Dispose()
1630
1628
  await this.moveDisplayPointer(from, 'Mouse did not reach the drag start target');
1631
1629
  await this.inputDriver.withMouseButton('left', async ()=>{
1632
1630
  await this.inputDriver.delay(100);
1633
- await this.moveDisplayPointer(to, 'Mouse did not reach the drag end target', {
1634
- smoothSteps: SMOOTH_MOVE_STEPS_DRAG,
1635
- smoothDelay: SMOOTH_MOVE_DELAY_DRAG
1636
- });
1631
+ await this.moveDisplayPointer(to, 'Mouse did not reach the drag end target');
1637
1632
  await this.inputDriver.delay(100);
1638
1633
  });
1639
1634
  }
@@ -2115,10 +2110,10 @@ function rdp_device_define_property(obj, key, value) {
2115
2110
  const device_debug = getDebug('rdp:device');
2116
2111
  const device_SMOOTH_MOVE_STEPS_TAP = 8;
2117
2112
  const device_SMOOTH_MOVE_STEPS_MOUSE_MOVE = 10;
2118
- const device_SMOOTH_MOVE_STEPS_DRAG = 12;
2113
+ const SMOOTH_MOVE_STEPS_DRAG = 12;
2119
2114
  const device_SMOOTH_MOVE_DELAY_TAP = 8;
2120
2115
  const device_SMOOTH_MOVE_DELAY_MOUSE_MOVE = 10;
2121
- const device_SMOOTH_MOVE_DELAY_DRAG = 10;
2116
+ const SMOOTH_MOVE_DELAY_DRAG = 10;
2122
2117
  const device_MOUSE_MOVE_EFFECT_WAIT = 300;
2123
2118
  const device_CLICK_HOLD_DURATION = 50;
2124
2119
  const DRAG_HOLD_DURATION = 100;
@@ -2321,8 +2316,8 @@ class RDPDevice {
2321
2316
  await this.backend.mouseButton('left', 'down');
2322
2317
  await sleep(DRAG_HOLD_DURATION);
2323
2318
  await this.movePointer(Math.round(to.x), Math.round(to.y), {
2324
- steps: device_SMOOTH_MOVE_STEPS_DRAG,
2325
- stepDelayMs: device_SMOOTH_MOVE_DELAY_DRAG
2319
+ steps: SMOOTH_MOVE_STEPS_DRAG,
2320
+ stepDelayMs: SMOOTH_MOVE_DELAY_DRAG
2326
2321
  });
2327
2322
  await sleep(DRAG_HOLD_DURATION);
2328
2323
  await this.backend.mouseButton('left', 'up');
@@ -2645,7 +2640,7 @@ class ComputerMidsceneTools extends BaseMidsceneTools {
2645
2640
  }
2646
2641
  }
2647
2642
  function version() {
2648
- const currentVersion = "1.12.4-beta-20260904065253.0";
2643
+ const currentVersion = "1.12.4";
2649
2644
  console.log(`@midscene/computer v${currentVersion}`);
2650
2645
  return currentVersion;
2651
2646
  }
package/dist/lib/cli.js CHANGED
@@ -549,10 +549,8 @@ async function captureScreenshot(options) {
549
549
  }
550
550
  const SMOOTH_MOVE_STEPS_TAP = 8;
551
551
  const SMOOTH_MOVE_STEPS_MOUSE_MOVE = 10;
552
- const SMOOTH_MOVE_STEPS_DRAG = 20;
553
552
  const SMOOTH_MOVE_DELAY_TAP = 8;
554
553
  const SMOOTH_MOVE_DELAY_MOUSE_MOVE = 10;
555
- const SMOOTH_MOVE_DELAY_DRAG = 10;
556
554
  const MOUSE_MOVE_EFFECT_WAIT = 300;
557
555
  const CLICK_SETTLE_DELAY = 50;
558
556
  const CLICK_HOLD_DURATION = 100;
@@ -1179,7 +1177,7 @@ Available Displays: ${displays.length > 0 ? displays.map((d)=>d.name).join(', ')
1179
1177
  }
1180
1178
  async healthCheck(displays) {
1181
1179
  console.log('[HealthCheck] Starting health check...');
1182
- console.log("[HealthCheck] @midscene/computer v1.12.4-beta-20260904065253.0");
1180
+ console.log("[HealthCheck] @midscene/computer v1.12.4");
1183
1181
  console.log('[HealthCheck] Taking screenshot...');
1184
1182
  const screenshotTimeout = 15000;
1185
1183
  let timeoutId;
@@ -1656,10 +1654,7 @@ $g.Dispose(); $bmp.Dispose(); $ms.Dispose()
1656
1654
  await this.moveDisplayPointer(from, 'Mouse did not reach the drag start target');
1657
1655
  await this.inputDriver.withMouseButton('left', async ()=>{
1658
1656
  await this.inputDriver.delay(100);
1659
- await this.moveDisplayPointer(to, 'Mouse did not reach the drag end target', {
1660
- smoothSteps: SMOOTH_MOVE_STEPS_DRAG,
1661
- smoothDelay: SMOOTH_MOVE_DELAY_DRAG
1662
- });
1657
+ await this.moveDisplayPointer(to, 'Mouse did not reach the drag end target');
1663
1658
  await this.inputDriver.delay(100);
1664
1659
  });
1665
1660
  }
@@ -2099,10 +2094,10 @@ function rdp_device_define_property(obj, key, value) {
2099
2094
  const device_debug = (0, logger_namespaceObject.getDebug)('rdp:device');
2100
2095
  const device_SMOOTH_MOVE_STEPS_TAP = 8;
2101
2096
  const device_SMOOTH_MOVE_STEPS_MOUSE_MOVE = 10;
2102
- const device_SMOOTH_MOVE_STEPS_DRAG = 12;
2097
+ const SMOOTH_MOVE_STEPS_DRAG = 12;
2103
2098
  const device_SMOOTH_MOVE_DELAY_TAP = 8;
2104
2099
  const device_SMOOTH_MOVE_DELAY_MOUSE_MOVE = 10;
2105
- const device_SMOOTH_MOVE_DELAY_DRAG = 10;
2100
+ const SMOOTH_MOVE_DELAY_DRAG = 10;
2106
2101
  const device_MOUSE_MOVE_EFFECT_WAIT = 300;
2107
2102
  const device_CLICK_HOLD_DURATION = 50;
2108
2103
  const DRAG_HOLD_DURATION = 100;
@@ -2305,8 +2300,8 @@ class RDPDevice {
2305
2300
  await this.backend.mouseButton('left', 'down');
2306
2301
  await (0, utils_namespaceObject.sleep)(DRAG_HOLD_DURATION);
2307
2302
  await this.movePointer(Math.round(to.x), Math.round(to.y), {
2308
- steps: device_SMOOTH_MOVE_STEPS_DRAG,
2309
- stepDelayMs: device_SMOOTH_MOVE_DELAY_DRAG
2303
+ steps: SMOOTH_MOVE_STEPS_DRAG,
2304
+ stepDelayMs: SMOOTH_MOVE_DELAY_DRAG
2310
2305
  });
2311
2306
  await (0, utils_namespaceObject.sleep)(DRAG_HOLD_DURATION);
2312
2307
  await this.backend.mouseButton('left', 'up');
@@ -2633,7 +2628,7 @@ const tools = new ComputerMidsceneTools({
2633
2628
  });
2634
2629
  (0, cli_namespaceObject.runToolsCLI)(tools, 'midscene-computer', {
2635
2630
  stripPrefix: 'computer_',
2636
- version: "1.12.4-beta-20260904065253.0",
2631
+ version: "1.12.4",
2637
2632
  extraCommands: (0, core_namespaceObject.createReportCliCommands)()
2638
2633
  }).catch((e)=>{
2639
2634
  process.exit((0, cli_namespaceObject.reportCLIError)(e));
package/dist/lib/index.js CHANGED
@@ -575,10 +575,8 @@ async function captureScreenshot(options) {
575
575
  }
576
576
  const SMOOTH_MOVE_STEPS_TAP = 8;
577
577
  const SMOOTH_MOVE_STEPS_MOUSE_MOVE = 10;
578
- const SMOOTH_MOVE_STEPS_DRAG = 20;
579
578
  const SMOOTH_MOVE_DELAY_TAP = 8;
580
579
  const SMOOTH_MOVE_DELAY_MOUSE_MOVE = 10;
581
- const SMOOTH_MOVE_DELAY_DRAG = 10;
582
580
  const MOUSE_MOVE_EFFECT_WAIT = 300;
583
581
  const CLICK_SETTLE_DELAY = 50;
584
582
  const CLICK_HOLD_DURATION = 100;
@@ -1205,7 +1203,7 @@ Available Displays: ${displays.length > 0 ? displays.map((d)=>d.name).join(', ')
1205
1203
  }
1206
1204
  async healthCheck(displays) {
1207
1205
  console.log('[HealthCheck] Starting health check...');
1208
- console.log("[HealthCheck] @midscene/computer v1.12.4-beta-20260904065253.0");
1206
+ console.log("[HealthCheck] @midscene/computer v1.12.4");
1209
1207
  console.log('[HealthCheck] Taking screenshot...');
1210
1208
  const screenshotTimeout = 15000;
1211
1209
  let timeoutId;
@@ -1682,10 +1680,7 @@ $g.Dispose(); $bmp.Dispose(); $ms.Dispose()
1682
1680
  await this.moveDisplayPointer(from, 'Mouse did not reach the drag start target');
1683
1681
  await this.inputDriver.withMouseButton('left', async ()=>{
1684
1682
  await this.inputDriver.delay(100);
1685
- await this.moveDisplayPointer(to, 'Mouse did not reach the drag end target', {
1686
- smoothSteps: SMOOTH_MOVE_STEPS_DRAG,
1687
- smoothDelay: SMOOTH_MOVE_DELAY_DRAG
1688
- });
1683
+ await this.moveDisplayPointer(to, 'Mouse did not reach the drag end target');
1689
1684
  await this.inputDriver.delay(100);
1690
1685
  });
1691
1686
  }
@@ -2169,10 +2164,10 @@ function rdp_device_define_property(obj, key, value) {
2169
2164
  const device_debug = (0, logger_namespaceObject.getDebug)('rdp:device');
2170
2165
  const device_SMOOTH_MOVE_STEPS_TAP = 8;
2171
2166
  const device_SMOOTH_MOVE_STEPS_MOUSE_MOVE = 10;
2172
- const device_SMOOTH_MOVE_STEPS_DRAG = 12;
2167
+ const SMOOTH_MOVE_STEPS_DRAG = 12;
2173
2168
  const device_SMOOTH_MOVE_DELAY_TAP = 8;
2174
2169
  const device_SMOOTH_MOVE_DELAY_MOUSE_MOVE = 10;
2175
- const device_SMOOTH_MOVE_DELAY_DRAG = 10;
2170
+ const SMOOTH_MOVE_DELAY_DRAG = 10;
2176
2171
  const device_MOUSE_MOVE_EFFECT_WAIT = 300;
2177
2172
  const device_CLICK_HOLD_DURATION = 50;
2178
2173
  const DRAG_HOLD_DURATION = 100;
@@ -2375,8 +2370,8 @@ class RDPDevice {
2375
2370
  await this.backend.mouseButton('left', 'down');
2376
2371
  await (0, utils_namespaceObject.sleep)(DRAG_HOLD_DURATION);
2377
2372
  await this.movePointer(Math.round(to.x), Math.round(to.y), {
2378
- steps: device_SMOOTH_MOVE_STEPS_DRAG,
2379
- stepDelayMs: device_SMOOTH_MOVE_DELAY_DRAG
2373
+ steps: SMOOTH_MOVE_STEPS_DRAG,
2374
+ stepDelayMs: SMOOTH_MOVE_DELAY_DRAG
2380
2375
  });
2381
2376
  await (0, utils_namespaceObject.sleep)(DRAG_HOLD_DURATION);
2382
2377
  await this.backend.mouseButton('left', 'up');
@@ -2703,7 +2698,7 @@ class ComputerMidsceneTools extends base_tools_namespaceObject.BaseMidsceneTools
2703
2698
  }
2704
2699
  const env_namespaceObject = require("@midscene/shared/env");
2705
2700
  function version() {
2706
- const currentVersion = "1.12.4-beta-20260904065253.0";
2701
+ const currentVersion = "1.12.4";
2707
2702
  console.log(`@midscene/computer v${currentVersion}`);
2708
2703
  return currentVersion;
2709
2704
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@midscene/computer",
3
- "version": "1.12.4-beta-20260904065253.0",
3
+ "version": "1.12.4",
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.4-beta-20260904065253.0",
37
- "@midscene/shared": "1.12.4-beta-20260904065253.0"
36
+ "@midscene/core": "1.12.4",
37
+ "@midscene/shared": "1.12.4"
38
38
  },
39
39
  "optionalDependencies": {
40
40
  "node-mac-permissions": "2.5.0"