@midscene/computer 1.17.4-beta-20261030030502.0 → 1.17.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
@@ -1237,7 +1237,7 @@ Available Displays: ${displays.length > 0 ? displays.map((d)=>d.name).join(', ')
1237
1237
  }
1238
1238
  async healthCheck(displays) {
1239
1239
  console.log('[HealthCheck] Starting health check...');
1240
- console.log("[HealthCheck] @midscene/computer v1.17.4-beta-20261030030502.0");
1240
+ console.log("[HealthCheck] @midscene/computer v1.17.4");
1241
1241
  console.log('[HealthCheck] Taking screenshot...');
1242
1242
  const screenshotTimeout = 15000;
1243
1243
  let timeoutId;
@@ -1707,6 +1707,13 @@ $g.Dispose(); $bmp.Dispose(); $ms.Dispose()
1707
1707
  }, 'Mouse did not reach the right-click target');
1708
1708
  this.inputDriver.mouseClick('right');
1709
1709
  },
1710
+ middleClick: async ({ x, y })=>{
1711
+ await this.moveDisplayPointer({
1712
+ x,
1713
+ y
1714
+ }, 'Mouse did not reach the middle-click target');
1715
+ this.inputDriver.mouseClick('middle');
1716
+ },
1710
1717
  hover: async ({ x, y })=>{
1711
1718
  await this.moveDisplayPointer({
1712
1719
  x,
@@ -2376,6 +2383,13 @@ class RDPDevice {
2376
2383
  });
2377
2384
  await this.backend.mouseButton('right', 'click');
2378
2385
  },
2386
+ middleClick: async ({ x, y })=>{
2387
+ await this.movePointer(Math.round(x), Math.round(y), {
2388
+ steps: device_SMOOTH_MOVE_STEPS_TAP,
2389
+ stepDelayMs: device_SMOOTH_MOVE_DELAY_TAP
2390
+ });
2391
+ await this.backend.mouseButton('middle', 'click');
2392
+ },
2379
2393
  hover: async ({ x, y })=>{
2380
2394
  await this.movePointer(Math.round(x), Math.round(y), {
2381
2395
  steps: device_SMOOTH_MOVE_STEPS_MOUSE_MOVE,
@@ -2728,7 +2742,7 @@ const tools = new ComputerMidsceneTools({
2728
2742
  });
2729
2743
  runToolsCLI(tools, 'midscene-computer', {
2730
2744
  stripPrefix: 'computer_',
2731
- version: "1.17.4-beta-20261030030502.0",
2745
+ version: "1.17.4",
2732
2746
  extraCommands: createReportCliCommands()
2733
2747
  }).catch((e)=>{
2734
2748
  process.exit(reportCLIError(e));
package/dist/es/index.mjs CHANGED
@@ -1237,7 +1237,7 @@ Available Displays: ${displays.length > 0 ? displays.map((d)=>d.name).join(', ')
1237
1237
  }
1238
1238
  async healthCheck(displays) {
1239
1239
  console.log('[HealthCheck] Starting health check...');
1240
- console.log("[HealthCheck] @midscene/computer v1.17.4-beta-20261030030502.0");
1240
+ console.log("[HealthCheck] @midscene/computer v1.17.4");
1241
1241
  console.log('[HealthCheck] Taking screenshot...');
1242
1242
  const screenshotTimeout = 15000;
1243
1243
  let timeoutId;
@@ -1707,6 +1707,13 @@ $g.Dispose(); $bmp.Dispose(); $ms.Dispose()
1707
1707
  }, 'Mouse did not reach the right-click target');
1708
1708
  this.inputDriver.mouseClick('right');
1709
1709
  },
1710
+ middleClick: async ({ x, y })=>{
1711
+ await this.moveDisplayPointer({
1712
+ x,
1713
+ y
1714
+ }, 'Mouse did not reach the middle-click target');
1715
+ this.inputDriver.mouseClick('middle');
1716
+ },
1710
1717
  hover: async ({ x, y })=>{
1711
1718
  await this.moveDisplayPointer({
1712
1719
  x,
@@ -2419,6 +2426,13 @@ class RDPDevice {
2419
2426
  });
2420
2427
  await this.backend.mouseButton('right', 'click');
2421
2428
  },
2429
+ middleClick: async ({ x, y })=>{
2430
+ await this.movePointer(Math.round(x), Math.round(y), {
2431
+ steps: device_SMOOTH_MOVE_STEPS_TAP,
2432
+ stepDelayMs: device_SMOOTH_MOVE_DELAY_TAP
2433
+ });
2434
+ await this.backend.mouseButton('middle', 'click');
2435
+ },
2422
2436
  hover: async ({ x, y })=>{
2423
2437
  await this.movePointer(Math.round(x), Math.round(y), {
2424
2438
  steps: device_SMOOTH_MOVE_STEPS_MOUSE_MOVE,
@@ -2767,7 +2781,7 @@ class ComputerMidsceneTools extends BaseMidsceneTools {
2767
2781
  }
2768
2782
  }
2769
2783
  function version() {
2770
- const currentVersion = "1.17.4-beta-20261030030502.0";
2784
+ const currentVersion = "1.17.4";
2771
2785
  console.log(`@midscene/computer v${currentVersion}`);
2772
2786
  return currentVersion;
2773
2787
  }
package/dist/lib/cli.js CHANGED
@@ -1263,7 +1263,7 @@ Available Displays: ${displays.length > 0 ? displays.map((d)=>d.name).join(', ')
1263
1263
  }
1264
1264
  async healthCheck(displays) {
1265
1265
  console.log('[HealthCheck] Starting health check...');
1266
- console.log("[HealthCheck] @midscene/computer v1.17.4-beta-20261030030502.0");
1266
+ console.log("[HealthCheck] @midscene/computer v1.17.4");
1267
1267
  console.log('[HealthCheck] Taking screenshot...');
1268
1268
  const screenshotTimeout = 15000;
1269
1269
  let timeoutId;
@@ -1733,6 +1733,13 @@ $g.Dispose(); $bmp.Dispose(); $ms.Dispose()
1733
1733
  }, 'Mouse did not reach the right-click target');
1734
1734
  this.inputDriver.mouseClick('right');
1735
1735
  },
1736
+ middleClick: async ({ x, y })=>{
1737
+ await this.moveDisplayPointer({
1738
+ x,
1739
+ y
1740
+ }, 'Mouse did not reach the middle-click target');
1741
+ this.inputDriver.mouseClick('middle');
1742
+ },
1736
1743
  hover: async ({ x, y })=>{
1737
1744
  await this.moveDisplayPointer({
1738
1745
  x,
@@ -2403,6 +2410,13 @@ class RDPDevice {
2403
2410
  });
2404
2411
  await this.backend.mouseButton('right', 'click');
2405
2412
  },
2413
+ middleClick: async ({ x, y })=>{
2414
+ await this.movePointer(Math.round(x), Math.round(y), {
2415
+ steps: device_SMOOTH_MOVE_STEPS_TAP,
2416
+ stepDelayMs: device_SMOOTH_MOVE_DELAY_TAP
2417
+ });
2418
+ await this.backend.mouseButton('middle', 'click');
2419
+ },
2406
2420
  hover: async ({ x, y })=>{
2407
2421
  await this.movePointer(Math.round(x), Math.round(y), {
2408
2422
  steps: device_SMOOTH_MOVE_STEPS_MOUSE_MOVE,
@@ -2755,7 +2769,7 @@ const tools = new ComputerMidsceneTools({
2755
2769
  });
2756
2770
  (0, cli_namespaceObject.runToolsCLI)(tools, 'midscene-computer', {
2757
2771
  stripPrefix: 'computer_',
2758
- version: "1.17.4-beta-20261030030502.0",
2772
+ version: "1.17.4",
2759
2773
  extraCommands: (0, core_namespaceObject.createReportCliCommands)()
2760
2774
  }).catch((e)=>{
2761
2775
  process.exit((0, cli_namespaceObject.reportCLIError)(e));
package/dist/lib/index.js CHANGED
@@ -1289,7 +1289,7 @@ Available Displays: ${displays.length > 0 ? displays.map((d)=>d.name).join(', ')
1289
1289
  }
1290
1290
  async healthCheck(displays) {
1291
1291
  console.log('[HealthCheck] Starting health check...');
1292
- console.log("[HealthCheck] @midscene/computer v1.17.4-beta-20261030030502.0");
1292
+ console.log("[HealthCheck] @midscene/computer v1.17.4");
1293
1293
  console.log('[HealthCheck] Taking screenshot...');
1294
1294
  const screenshotTimeout = 15000;
1295
1295
  let timeoutId;
@@ -1759,6 +1759,13 @@ $g.Dispose(); $bmp.Dispose(); $ms.Dispose()
1759
1759
  }, 'Mouse did not reach the right-click target');
1760
1760
  this.inputDriver.mouseClick('right');
1761
1761
  },
1762
+ middleClick: async ({ x, y })=>{
1763
+ await this.moveDisplayPointer({
1764
+ x,
1765
+ y
1766
+ }, 'Mouse did not reach the middle-click target');
1767
+ this.inputDriver.mouseClick('middle');
1768
+ },
1762
1769
  hover: async ({ x, y })=>{
1763
1770
  await this.moveDisplayPointer({
1764
1771
  x,
@@ -2473,6 +2480,13 @@ class RDPDevice {
2473
2480
  });
2474
2481
  await this.backend.mouseButton('right', 'click');
2475
2482
  },
2483
+ middleClick: async ({ x, y })=>{
2484
+ await this.movePointer(Math.round(x), Math.round(y), {
2485
+ steps: device_SMOOTH_MOVE_STEPS_TAP,
2486
+ stepDelayMs: device_SMOOTH_MOVE_DELAY_TAP
2487
+ });
2488
+ await this.backend.mouseButton('middle', 'click');
2489
+ },
2476
2490
  hover: async ({ x, y })=>{
2477
2491
  await this.movePointer(Math.round(x), Math.round(y), {
2478
2492
  steps: device_SMOOTH_MOVE_STEPS_MOUSE_MOVE,
@@ -2825,7 +2839,7 @@ class ComputerMidsceneTools extends base_tools_namespaceObject.BaseMidsceneTools
2825
2839
  }
2826
2840
  const env_namespaceObject = require("@midscene/shared/env");
2827
2841
  function version() {
2828
- const currentVersion = "1.17.4-beta-20261030030502.0";
2842
+ const currentVersion = "1.17.4";
2829
2843
  console.log(`@midscene/computer v${currentVersion}`);
2830
2844
  return currentVersion;
2831
2845
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@midscene/computer",
3
- "version": "1.17.4-beta-20261030030502.0",
3
+ "version": "1.17.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.17.4-beta-20261030030502.0",
37
- "@midscene/shared": "1.17.4-beta-20261030030502.0"
36
+ "@midscene/core": "1.17.4",
37
+ "@midscene/shared": "1.17.4"
38
38
  },
39
39
  "optionalDependencies": {
40
40
  "node-mac-permissions": "2.5.0"