@midscene/computer 1.7.10 → 1.7.11-beta-20260511095540.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 +4 -3
- package/dist/es/index.mjs +5 -4
- package/dist/es/mcp-server.mjs +4 -3
- package/dist/lib/cli.js +4 -3
- package/dist/lib/index.js +7 -3
- package/dist/lib/mcp-server.js +4 -3
- package/dist/types/index.d.ts +6 -1
- package/package.json +3 -3
package/dist/es/cli.mjs
CHANGED
|
@@ -411,7 +411,7 @@ Available Displays: ${displays.length > 0 ? displays.map((d)=>d.name).join(', ')
|
|
|
411
411
|
}
|
|
412
412
|
async healthCheck() {
|
|
413
413
|
console.log('[HealthCheck] Starting health check...');
|
|
414
|
-
console.log("[HealthCheck] @midscene/computer v1.7.
|
|
414
|
+
console.log("[HealthCheck] @midscene/computer v1.7.11-beta-20260511095540.0");
|
|
415
415
|
console.log('[HealthCheck] Taking screenshot...');
|
|
416
416
|
const screenshotTimeout = 15000;
|
|
417
417
|
let timeoutId;
|
|
@@ -823,11 +823,12 @@ function createLocalComputerDevice(opts) {
|
|
|
823
823
|
xvfbResolution: opts?.xvfbResolution
|
|
824
824
|
});
|
|
825
825
|
}
|
|
826
|
-
async function
|
|
826
|
+
async function agentForComputer(opts) {
|
|
827
827
|
const device = createLocalComputerDevice(opts);
|
|
828
828
|
await device.connect();
|
|
829
829
|
return new ComputerAgent(device, opts);
|
|
830
830
|
}
|
|
831
|
+
const agentFromComputer = agentForComputer;
|
|
831
832
|
function mcp_tools_define_property(obj, key, value) {
|
|
832
833
|
if (key in obj) Object.defineProperty(obj, key, {
|
|
833
834
|
value: value,
|
|
@@ -947,7 +948,7 @@ class ComputerMidsceneTools extends BaseMidsceneTools {
|
|
|
947
948
|
const tools = new ComputerMidsceneTools();
|
|
948
949
|
runToolsCLI(tools, 'midscene-computer', {
|
|
949
950
|
stripPrefix: 'computer_',
|
|
950
|
-
version: "1.7.
|
|
951
|
+
version: "1.7.11-beta-20260511095540.0",
|
|
951
952
|
extraCommands: createReportCliCommands()
|
|
952
953
|
}).catch((e)=>{
|
|
953
954
|
process.exit(reportCLIError(e));
|
package/dist/es/index.mjs
CHANGED
|
@@ -411,7 +411,7 @@ Available Displays: ${displays.length > 0 ? displays.map((d)=>d.name).join(', ')
|
|
|
411
411
|
}
|
|
412
412
|
async healthCheck() {
|
|
413
413
|
console.log('[HealthCheck] Starting health check...');
|
|
414
|
-
console.log("[HealthCheck] @midscene/computer v1.7.
|
|
414
|
+
console.log("[HealthCheck] @midscene/computer v1.7.11-beta-20260511095540.0");
|
|
415
415
|
console.log('[HealthCheck] Taking screenshot...');
|
|
416
416
|
const screenshotTimeout = 15000;
|
|
417
417
|
let timeoutId;
|
|
@@ -1473,11 +1473,12 @@ function createRDPComputerDevice(opts) {
|
|
|
1473
1473
|
customActions: opts.customActions
|
|
1474
1474
|
});
|
|
1475
1475
|
}
|
|
1476
|
-
async function
|
|
1476
|
+
async function agentForComputer(opts) {
|
|
1477
1477
|
const device = createLocalComputerDevice(opts);
|
|
1478
1478
|
await device.connect();
|
|
1479
1479
|
return new ComputerAgent(device, opts);
|
|
1480
1480
|
}
|
|
1481
|
+
const agentFromComputer = agentForComputer;
|
|
1481
1482
|
async function agentForRDPComputer(opts) {
|
|
1482
1483
|
const device = createRDPComputerDevice(opts);
|
|
1483
1484
|
await device.connect();
|
|
@@ -1600,7 +1601,7 @@ class ComputerMidsceneTools extends BaseMidsceneTools {
|
|
|
1600
1601
|
}
|
|
1601
1602
|
}
|
|
1602
1603
|
function version() {
|
|
1603
|
-
const currentVersion = "1.7.
|
|
1604
|
+
const currentVersion = "1.7.11-beta-20260511095540.0";
|
|
1604
1605
|
console.log(`@midscene/computer v${currentVersion}`);
|
|
1605
1606
|
return currentVersion;
|
|
1606
1607
|
}
|
|
@@ -1669,4 +1670,4 @@ async function checkComputerEnvironment() {
|
|
|
1669
1670
|
async function getConnectedDisplays() {
|
|
1670
1671
|
return ComputerDevice.listDisplays();
|
|
1671
1672
|
}
|
|
1672
|
-
export { ComputerAgent, ComputerDevice, ComputerMidsceneTools, HelperProcessRDPBackendClient, RDPDevice, UnsupportedRDPBackendClient, agentForRDPComputer, agentFromComputer, checkAccessibilityPermission, checkComputerEnvironment, checkXvfbInstalled, createDefaultRDPBackendClient, getConnectedDisplays, needsXvfb, overrideAIConfig, version };
|
|
1673
|
+
export { ComputerAgent, ComputerDevice, ComputerMidsceneTools, HelperProcessRDPBackendClient, RDPDevice, UnsupportedRDPBackendClient, agentForComputer, agentForRDPComputer, agentFromComputer, checkAccessibilityPermission, checkComputerEnvironment, checkXvfbInstalled, createDefaultRDPBackendClient, getConnectedDisplays, needsXvfb, overrideAIConfig, version };
|
package/dist/es/mcp-server.mjs
CHANGED
|
@@ -411,7 +411,7 @@ Available Displays: ${displays.length > 0 ? displays.map((d)=>d.name).join(', ')
|
|
|
411
411
|
}
|
|
412
412
|
async healthCheck() {
|
|
413
413
|
console.log('[HealthCheck] Starting health check...');
|
|
414
|
-
console.log("[HealthCheck] @midscene/computer v1.7.
|
|
414
|
+
console.log("[HealthCheck] @midscene/computer v1.7.11-beta-20260511095540.0");
|
|
415
415
|
console.log('[HealthCheck] Taking screenshot...');
|
|
416
416
|
const screenshotTimeout = 15000;
|
|
417
417
|
let timeoutId;
|
|
@@ -823,11 +823,12 @@ function createLocalComputerDevice(opts) {
|
|
|
823
823
|
xvfbResolution: opts?.xvfbResolution
|
|
824
824
|
});
|
|
825
825
|
}
|
|
826
|
-
async function
|
|
826
|
+
async function agentForComputer(opts) {
|
|
827
827
|
const device = createLocalComputerDevice(opts);
|
|
828
828
|
await device.connect();
|
|
829
829
|
return new ComputerAgent(device, opts);
|
|
830
830
|
}
|
|
831
|
+
const agentFromComputer = agentForComputer;
|
|
831
832
|
function mcp_tools_define_property(obj, key, value) {
|
|
832
833
|
if (key in obj) Object.defineProperty(obj, key, {
|
|
833
834
|
value: value,
|
|
@@ -951,7 +952,7 @@ class ComputerMCPServer extends BaseMCPServer {
|
|
|
951
952
|
constructor(toolsManager){
|
|
952
953
|
super({
|
|
953
954
|
name: '@midscene/computer-mcp',
|
|
954
|
-
version: "1.7.
|
|
955
|
+
version: "1.7.11-beta-20260511095540.0",
|
|
955
956
|
description: 'Control the computer desktop using natural language commands'
|
|
956
957
|
}, toolsManager);
|
|
957
958
|
}
|
package/dist/lib/cli.js
CHANGED
|
@@ -437,7 +437,7 @@ Available Displays: ${displays.length > 0 ? displays.map((d)=>d.name).join(', ')
|
|
|
437
437
|
}
|
|
438
438
|
async healthCheck() {
|
|
439
439
|
console.log('[HealthCheck] Starting health check...');
|
|
440
|
-
console.log("[HealthCheck] @midscene/computer v1.7.
|
|
440
|
+
console.log("[HealthCheck] @midscene/computer v1.7.11-beta-20260511095540.0");
|
|
441
441
|
console.log('[HealthCheck] Taking screenshot...');
|
|
442
442
|
const screenshotTimeout = 15000;
|
|
443
443
|
let timeoutId;
|
|
@@ -851,11 +851,12 @@ function createLocalComputerDevice(opts) {
|
|
|
851
851
|
xvfbResolution: opts?.xvfbResolution
|
|
852
852
|
});
|
|
853
853
|
}
|
|
854
|
-
async function
|
|
854
|
+
async function agentForComputer(opts) {
|
|
855
855
|
const device = createLocalComputerDevice(opts);
|
|
856
856
|
await device.connect();
|
|
857
857
|
return new ComputerAgent(device, opts);
|
|
858
858
|
}
|
|
859
|
+
const agentFromComputer = agentForComputer;
|
|
859
860
|
function mcp_tools_define_property(obj, key, value) {
|
|
860
861
|
if (key in obj) Object.defineProperty(obj, key, {
|
|
861
862
|
value: value,
|
|
@@ -975,7 +976,7 @@ class ComputerMidsceneTools extends base_tools_namespaceObject.BaseMidsceneTools
|
|
|
975
976
|
const tools = new ComputerMidsceneTools();
|
|
976
977
|
(0, cli_namespaceObject.runToolsCLI)(tools, 'midscene-computer', {
|
|
977
978
|
stripPrefix: 'computer_',
|
|
978
|
-
version: "1.7.
|
|
979
|
+
version: "1.7.11-beta-20260511095540.0",
|
|
979
980
|
extraCommands: (0, core_namespaceObject.createReportCliCommands)()
|
|
980
981
|
}).catch((e)=>{
|
|
981
982
|
process.exit((0, cli_namespaceObject.reportCLIError)(e));
|
package/dist/lib/index.js
CHANGED
|
@@ -41,6 +41,7 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
41
41
|
needsXvfb: ()=>needsXvfb,
|
|
42
42
|
HelperProcessRDPBackendClient: ()=>HelperProcessRDPBackendClient,
|
|
43
43
|
ComputerMidsceneTools: ()=>ComputerMidsceneTools,
|
|
44
|
+
agentForComputer: ()=>agentForComputer,
|
|
44
45
|
createDefaultRDPBackendClient: ()=>createDefaultRDPBackendClient,
|
|
45
46
|
checkComputerEnvironment: ()=>checkComputerEnvironment,
|
|
46
47
|
RDPDevice: ()=>RDPDevice,
|
|
@@ -463,7 +464,7 @@ Available Displays: ${displays.length > 0 ? displays.map((d)=>d.name).join(', ')
|
|
|
463
464
|
}
|
|
464
465
|
async healthCheck() {
|
|
465
466
|
console.log('[HealthCheck] Starting health check...');
|
|
466
|
-
console.log("[HealthCheck] @midscene/computer v1.7.
|
|
467
|
+
console.log("[HealthCheck] @midscene/computer v1.7.11-beta-20260511095540.0");
|
|
467
468
|
console.log('[HealthCheck] Taking screenshot...');
|
|
468
469
|
const screenshotTimeout = 15000;
|
|
469
470
|
let timeoutId;
|
|
@@ -1527,11 +1528,12 @@ function createRDPComputerDevice(opts) {
|
|
|
1527
1528
|
customActions: opts.customActions
|
|
1528
1529
|
});
|
|
1529
1530
|
}
|
|
1530
|
-
async function
|
|
1531
|
+
async function agentForComputer(opts) {
|
|
1531
1532
|
const device = createLocalComputerDevice(opts);
|
|
1532
1533
|
await device.connect();
|
|
1533
1534
|
return new ComputerAgent(device, opts);
|
|
1534
1535
|
}
|
|
1536
|
+
const agentFromComputer = agentForComputer;
|
|
1535
1537
|
async function agentForRDPComputer(opts) {
|
|
1536
1538
|
const device = createRDPComputerDevice(opts);
|
|
1537
1539
|
await device.connect();
|
|
@@ -1656,7 +1658,7 @@ class ComputerMidsceneTools extends base_tools_namespaceObject.BaseMidsceneTools
|
|
|
1656
1658
|
}
|
|
1657
1659
|
const env_namespaceObject = require("@midscene/shared/env");
|
|
1658
1660
|
function version() {
|
|
1659
|
-
const currentVersion = "1.7.
|
|
1661
|
+
const currentVersion = "1.7.11-beta-20260511095540.0";
|
|
1660
1662
|
console.log(`@midscene/computer v${currentVersion}`);
|
|
1661
1663
|
return currentVersion;
|
|
1662
1664
|
}
|
|
@@ -1731,6 +1733,7 @@ exports.ComputerMidsceneTools = __webpack_exports__.ComputerMidsceneTools;
|
|
|
1731
1733
|
exports.HelperProcessRDPBackendClient = __webpack_exports__.HelperProcessRDPBackendClient;
|
|
1732
1734
|
exports.RDPDevice = __webpack_exports__.RDPDevice;
|
|
1733
1735
|
exports.UnsupportedRDPBackendClient = __webpack_exports__.UnsupportedRDPBackendClient;
|
|
1736
|
+
exports.agentForComputer = __webpack_exports__.agentForComputer;
|
|
1734
1737
|
exports.agentForRDPComputer = __webpack_exports__.agentForRDPComputer;
|
|
1735
1738
|
exports.agentFromComputer = __webpack_exports__.agentFromComputer;
|
|
1736
1739
|
exports.checkAccessibilityPermission = __webpack_exports__.checkAccessibilityPermission;
|
|
@@ -1748,6 +1751,7 @@ for(var __rspack_i in __webpack_exports__)if (-1 === [
|
|
|
1748
1751
|
"HelperProcessRDPBackendClient",
|
|
1749
1752
|
"RDPDevice",
|
|
1750
1753
|
"UnsupportedRDPBackendClient",
|
|
1754
|
+
"agentForComputer",
|
|
1751
1755
|
"agentForRDPComputer",
|
|
1752
1756
|
"agentFromComputer",
|
|
1753
1757
|
"checkAccessibilityPermission",
|
package/dist/lib/mcp-server.js
CHANGED
|
@@ -452,7 +452,7 @@ Available Displays: ${displays.length > 0 ? displays.map((d)=>d.name).join(', ')
|
|
|
452
452
|
}
|
|
453
453
|
async healthCheck() {
|
|
454
454
|
console.log('[HealthCheck] Starting health check...');
|
|
455
|
-
console.log("[HealthCheck] @midscene/computer v1.7.
|
|
455
|
+
console.log("[HealthCheck] @midscene/computer v1.7.11-beta-20260511095540.0");
|
|
456
456
|
console.log('[HealthCheck] Taking screenshot...');
|
|
457
457
|
const screenshotTimeout = 15000;
|
|
458
458
|
let timeoutId;
|
|
@@ -866,11 +866,12 @@ function createLocalComputerDevice(opts) {
|
|
|
866
866
|
xvfbResolution: opts?.xvfbResolution
|
|
867
867
|
});
|
|
868
868
|
}
|
|
869
|
-
async function
|
|
869
|
+
async function agentForComputer(opts) {
|
|
870
870
|
const device = createLocalComputerDevice(opts);
|
|
871
871
|
await device.connect();
|
|
872
872
|
return new ComputerAgent(device, opts);
|
|
873
873
|
}
|
|
874
|
+
const agentFromComputer = agentForComputer;
|
|
874
875
|
const base_tools_namespaceObject = require("@midscene/shared/mcp/base-tools");
|
|
875
876
|
function mcp_tools_define_property(obj, key, value) {
|
|
876
877
|
if (key in obj) Object.defineProperty(obj, key, {
|
|
@@ -995,7 +996,7 @@ class ComputerMCPServer extends mcp_namespaceObject.BaseMCPServer {
|
|
|
995
996
|
constructor(toolsManager){
|
|
996
997
|
super({
|
|
997
998
|
name: '@midscene/computer-mcp',
|
|
998
|
-
version: "1.7.
|
|
999
|
+
version: "1.7.11-beta-20260511095540.0",
|
|
999
1000
|
description: 'Control the computer desktop using natural language commands'
|
|
1000
1001
|
}, toolsManager);
|
|
1001
1002
|
}
|
package/dist/types/index.d.ts
CHANGED
|
@@ -17,9 +17,14 @@ declare interface AccessibilityCheckResult {
|
|
|
17
17
|
error?: string;
|
|
18
18
|
}
|
|
19
19
|
|
|
20
|
+
export declare function agentForComputer(opts?: LocalComputerAgentOpt): Promise<ComputerAgent<ComputerDevice>>;
|
|
21
|
+
|
|
20
22
|
export declare function agentForRDPComputer(opts: RDPComputerAgentOpt): Promise<ComputerAgent<RDPDevice>>;
|
|
21
23
|
|
|
22
|
-
|
|
24
|
+
/**
|
|
25
|
+
* @deprecated Use `agentForComputer` instead.
|
|
26
|
+
*/
|
|
27
|
+
export declare const agentFromComputer: typeof agentForComputer;
|
|
23
28
|
|
|
24
29
|
export declare type BaseComputerAgentOpt = AgentOpt & ComputerAgentSharedDeviceOpt;
|
|
25
30
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@midscene/computer",
|
|
3
|
-
"version": "1.7.
|
|
3
|
+
"version": "1.7.11-beta-20260511095540.0",
|
|
4
4
|
"description": "Midscene.js Computer Desktop Automation",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
@@ -38,8 +38,8 @@
|
|
|
38
38
|
"@computer-use/libnut": "^4.2.0",
|
|
39
39
|
"clipboardy": "^4.0.0",
|
|
40
40
|
"screenshot-desktop": "^1.15.3",
|
|
41
|
-
"@midscene/core": "1.7.
|
|
42
|
-
"@midscene/shared": "1.7.
|
|
41
|
+
"@midscene/core": "1.7.11-beta-20260511095540.0",
|
|
42
|
+
"@midscene/shared": "1.7.11-beta-20260511095540.0"
|
|
43
43
|
},
|
|
44
44
|
"optionalDependencies": {
|
|
45
45
|
"node-mac-permissions": "2.5.0"
|