@midscene/computer 1.5.4-beta-20260310084708.0 → 1.5.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
@@ -88,6 +88,15 @@ function _define_property(obj, key, value) {
88
88
  else obj[key] = value;
89
89
  return obj;
90
90
  }
91
+ const computerInputParamSchema = z.object({
92
+ value: z.string().describe('The text to input'),
93
+ mode: z["enum"]([
94
+ 'replace',
95
+ 'clear',
96
+ 'append'
97
+ ]).default('replace').optional().describe('Input mode: replace, clear, or append'),
98
+ locate: getMidsceneLocationSchema().describe('The input field to be filled').optional()
99
+ });
91
100
  const SMOOTH_MOVE_STEPS_TAP = 8;
92
101
  const SMOOTH_MOVE_STEPS_MOUSE_MOVE = 10;
93
102
  const SMOOTH_MOVE_DELAY_TAP = 8;
@@ -290,7 +299,7 @@ Available Displays: ${displays.length > 0 ? displays.map((d)=>d.name).join(', ')
290
299
  }
291
300
  async healthCheck() {
292
301
  console.log('[HealthCheck] Starting health check...');
293
- console.log("[HealthCheck] @midscene/computer v1.5.4-beta-20260310084708.0");
302
+ console.log("[HealthCheck] @midscene/computer v1.5.4");
294
303
  console.log('[HealthCheck] Taking screenshot...');
295
304
  const screenshotTimeout = 15000;
296
305
  let timeoutId;
@@ -442,6 +451,11 @@ Available Displays: ${displays.length > 0 ? displays.map((d)=>d.name).join(', ')
442
451
  description: 'Move the mouse to the element',
443
452
  interfaceAlias: 'aiHover',
444
453
  paramSchema: actionHoverParamSchema,
454
+ sample: {
455
+ locate: {
456
+ prompt: 'the navigation menu item "Products"'
457
+ }
458
+ },
445
459
  call: async (param)=>{
446
460
  node_assert(libnut, 'libnut not initialized');
447
461
  const element = param.locate;
@@ -457,15 +471,13 @@ Available Displays: ${displays.length > 0 ? displays.map((d)=>d.name).join(', ')
457
471
  name: 'Input',
458
472
  description: 'Input text into the input field',
459
473
  interfaceAlias: 'aiInput',
460
- paramSchema: z.object({
461
- value: z.string().describe('The text to input'),
462
- mode: z["enum"]([
463
- 'replace',
464
- 'clear',
465
- 'append'
466
- ]).default('replace').optional().describe('Input mode: replace, clear, or append'),
467
- locate: getMidsceneLocationSchema().describe('The input field to be filled').optional()
468
- }),
474
+ paramSchema: computerInputParamSchema,
475
+ sample: {
476
+ value: 'test@example.com',
477
+ locate: {
478
+ prompt: 'the email input field'
479
+ }
480
+ },
469
481
  call: async (param)=>{
470
482
  node_assert(libnut, 'libnut not initialized');
471
483
  const element = param.locate;
@@ -760,7 +772,7 @@ class ComputerMidsceneTools extends BaseMidsceneTools {
760
772
  const tools = new ComputerMidsceneTools();
761
773
  runToolsCLI(tools, 'midscene-computer', {
762
774
  stripPrefix: 'computer_',
763
- version: "1.5.4-beta-20260310084708.0"
775
+ version: "1.5.4"
764
776
  }).catch((e)=>{
765
777
  if (!(e instanceof CLIError)) console.error(e);
766
778
  process.exit(e instanceof CLIError ? e.exitCode : 1);
package/dist/es/index.mjs CHANGED
@@ -88,6 +88,15 @@ function _define_property(obj, key, value) {
88
88
  else obj[key] = value;
89
89
  return obj;
90
90
  }
91
+ const computerInputParamSchema = z.object({
92
+ value: z.string().describe('The text to input'),
93
+ mode: z["enum"]([
94
+ 'replace',
95
+ 'clear',
96
+ 'append'
97
+ ]).default('replace').optional().describe('Input mode: replace, clear, or append'),
98
+ locate: getMidsceneLocationSchema().describe('The input field to be filled').optional()
99
+ });
91
100
  const SMOOTH_MOVE_STEPS_TAP = 8;
92
101
  const SMOOTH_MOVE_STEPS_MOUSE_MOVE = 10;
93
102
  const SMOOTH_MOVE_DELAY_TAP = 8;
@@ -290,7 +299,7 @@ Available Displays: ${displays.length > 0 ? displays.map((d)=>d.name).join(', ')
290
299
  }
291
300
  async healthCheck() {
292
301
  console.log('[HealthCheck] Starting health check...');
293
- console.log("[HealthCheck] @midscene/computer v1.5.4-beta-20260310084708.0");
302
+ console.log("[HealthCheck] @midscene/computer v1.5.4");
294
303
  console.log('[HealthCheck] Taking screenshot...');
295
304
  const screenshotTimeout = 15000;
296
305
  let timeoutId;
@@ -442,6 +451,11 @@ Available Displays: ${displays.length > 0 ? displays.map((d)=>d.name).join(', ')
442
451
  description: 'Move the mouse to the element',
443
452
  interfaceAlias: 'aiHover',
444
453
  paramSchema: actionHoverParamSchema,
454
+ sample: {
455
+ locate: {
456
+ prompt: 'the navigation menu item "Products"'
457
+ }
458
+ },
445
459
  call: async (param)=>{
446
460
  node_assert(device_libnut, 'libnut not initialized');
447
461
  const element = param.locate;
@@ -457,15 +471,13 @@ Available Displays: ${displays.length > 0 ? displays.map((d)=>d.name).join(', ')
457
471
  name: 'Input',
458
472
  description: 'Input text into the input field',
459
473
  interfaceAlias: 'aiInput',
460
- paramSchema: z.object({
461
- value: z.string().describe('The text to input'),
462
- mode: z["enum"]([
463
- 'replace',
464
- 'clear',
465
- 'append'
466
- ]).default('replace').optional().describe('Input mode: replace, clear, or append'),
467
- locate: getMidsceneLocationSchema().describe('The input field to be filled').optional()
468
- }),
474
+ paramSchema: computerInputParamSchema,
475
+ sample: {
476
+ value: 'test@example.com',
477
+ locate: {
478
+ prompt: 'the email input field'
479
+ }
480
+ },
469
481
  call: async (param)=>{
470
482
  node_assert(device_libnut, 'libnut not initialized');
471
483
  const element = param.locate;
@@ -758,7 +770,7 @@ class ComputerMidsceneTools extends BaseMidsceneTools {
758
770
  }
759
771
  }
760
772
  function version() {
761
- const currentVersion = "1.5.4-beta-20260310084708.0";
773
+ const currentVersion = "1.5.4";
762
774
  console.log(`@midscene/computer v${currentVersion}`);
763
775
  return currentVersion;
764
776
  }
@@ -87,6 +87,15 @@ function _define_property(obj, key, value) {
87
87
  else obj[key] = value;
88
88
  return obj;
89
89
  }
90
+ const computerInputParamSchema = z.object({
91
+ value: z.string().describe('The text to input'),
92
+ mode: z["enum"]([
93
+ 'replace',
94
+ 'clear',
95
+ 'append'
96
+ ]).default('replace').optional().describe('Input mode: replace, clear, or append'),
97
+ locate: getMidsceneLocationSchema().describe('The input field to be filled').optional()
98
+ });
90
99
  const SMOOTH_MOVE_STEPS_TAP = 8;
91
100
  const SMOOTH_MOVE_STEPS_MOUSE_MOVE = 10;
92
101
  const SMOOTH_MOVE_DELAY_TAP = 8;
@@ -289,7 +298,7 @@ Available Displays: ${displays.length > 0 ? displays.map((d)=>d.name).join(', ')
289
298
  }
290
299
  async healthCheck() {
291
300
  console.log('[HealthCheck] Starting health check...');
292
- console.log("[HealthCheck] @midscene/computer v1.5.4-beta-20260310084708.0");
301
+ console.log("[HealthCheck] @midscene/computer v1.5.4");
293
302
  console.log('[HealthCheck] Taking screenshot...');
294
303
  const screenshotTimeout = 15000;
295
304
  let timeoutId;
@@ -441,6 +450,11 @@ Available Displays: ${displays.length > 0 ? displays.map((d)=>d.name).join(', ')
441
450
  description: 'Move the mouse to the element',
442
451
  interfaceAlias: 'aiHover',
443
452
  paramSchema: actionHoverParamSchema,
453
+ sample: {
454
+ locate: {
455
+ prompt: 'the navigation menu item "Products"'
456
+ }
457
+ },
444
458
  call: async (param)=>{
445
459
  node_assert(libnut, 'libnut not initialized');
446
460
  const element = param.locate;
@@ -456,15 +470,13 @@ Available Displays: ${displays.length > 0 ? displays.map((d)=>d.name).join(', ')
456
470
  name: 'Input',
457
471
  description: 'Input text into the input field',
458
472
  interfaceAlias: 'aiInput',
459
- paramSchema: z.object({
460
- value: z.string().describe('The text to input'),
461
- mode: z["enum"]([
462
- 'replace',
463
- 'clear',
464
- 'append'
465
- ]).default('replace').optional().describe('Input mode: replace, clear, or append'),
466
- locate: getMidsceneLocationSchema().describe('The input field to be filled').optional()
467
- }),
473
+ paramSchema: computerInputParamSchema,
474
+ sample: {
475
+ value: 'test@example.com',
476
+ locate: {
477
+ prompt: 'the email input field'
478
+ }
479
+ },
468
480
  call: async (param)=>{
469
481
  node_assert(libnut, 'libnut not initialized');
470
482
  const element = param.locate;
@@ -763,7 +775,7 @@ class ComputerMCPServer extends BaseMCPServer {
763
775
  constructor(toolsManager){
764
776
  super({
765
777
  name: '@midscene/computer-mcp',
766
- version: "1.5.4-beta-20260310084708.0",
778
+ version: "1.5.4",
767
779
  description: 'Control the computer desktop using natural language commands'
768
780
  }, toolsManager);
769
781
  }
package/dist/lib/cli.js CHANGED
@@ -116,6 +116,15 @@ function _define_property(obj, key, value) {
116
116
  else obj[key] = value;
117
117
  return obj;
118
118
  }
119
+ const computerInputParamSchema = core_namespaceObject.z.object({
120
+ value: core_namespaceObject.z.string().describe('The text to input'),
121
+ mode: core_namespaceObject.z["enum"]([
122
+ 'replace',
123
+ 'clear',
124
+ 'append'
125
+ ]).default('replace').optional().describe('Input mode: replace, clear, or append'),
126
+ locate: (0, core_namespaceObject.getMidsceneLocationSchema)().describe('The input field to be filled').optional()
127
+ });
119
128
  const SMOOTH_MOVE_STEPS_TAP = 8;
120
129
  const SMOOTH_MOVE_STEPS_MOUSE_MOVE = 10;
121
130
  const SMOOTH_MOVE_DELAY_TAP = 8;
@@ -318,7 +327,7 @@ Available Displays: ${displays.length > 0 ? displays.map((d)=>d.name).join(', ')
318
327
  }
319
328
  async healthCheck() {
320
329
  console.log('[HealthCheck] Starting health check...');
321
- console.log("[HealthCheck] @midscene/computer v1.5.4-beta-20260310084708.0");
330
+ console.log("[HealthCheck] @midscene/computer v1.5.4");
322
331
  console.log('[HealthCheck] Taking screenshot...');
323
332
  const screenshotTimeout = 15000;
324
333
  let timeoutId;
@@ -470,6 +479,11 @@ Available Displays: ${displays.length > 0 ? displays.map((d)=>d.name).join(', ')
470
479
  description: 'Move the mouse to the element',
471
480
  interfaceAlias: 'aiHover',
472
481
  paramSchema: device_namespaceObject.actionHoverParamSchema,
482
+ sample: {
483
+ locate: {
484
+ prompt: 'the navigation menu item "Products"'
485
+ }
486
+ },
473
487
  call: async (param)=>{
474
488
  external_node_assert_default()(libnut, 'libnut not initialized');
475
489
  const element = param.locate;
@@ -485,15 +499,13 @@ Available Displays: ${displays.length > 0 ? displays.map((d)=>d.name).join(', ')
485
499
  name: 'Input',
486
500
  description: 'Input text into the input field',
487
501
  interfaceAlias: 'aiInput',
488
- paramSchema: core_namespaceObject.z.object({
489
- value: core_namespaceObject.z.string().describe('The text to input'),
490
- mode: core_namespaceObject.z["enum"]([
491
- 'replace',
492
- 'clear',
493
- 'append'
494
- ]).default('replace').optional().describe('Input mode: replace, clear, or append'),
495
- locate: (0, core_namespaceObject.getMidsceneLocationSchema)().describe('The input field to be filled').optional()
496
- }),
502
+ paramSchema: computerInputParamSchema,
503
+ sample: {
504
+ value: 'test@example.com',
505
+ locate: {
506
+ prompt: 'the email input field'
507
+ }
508
+ },
497
509
  call: async (param)=>{
498
510
  external_node_assert_default()(libnut, 'libnut not initialized');
499
511
  const element = param.locate;
@@ -788,7 +800,7 @@ class ComputerMidsceneTools extends mcp_namespaceObject.BaseMidsceneTools {
788
800
  const tools = new ComputerMidsceneTools();
789
801
  (0, cli_namespaceObject.runToolsCLI)(tools, 'midscene-computer', {
790
802
  stripPrefix: 'computer_',
791
- version: "1.5.4-beta-20260310084708.0"
803
+ version: "1.5.4"
792
804
  }).catch((e)=>{
793
805
  if (!(e instanceof cli_namespaceObject.CLIError)) console.error(e);
794
806
  process.exit(e instanceof cli_namespaceObject.CLIError ? e.exitCode : 1);
package/dist/lib/index.js CHANGED
@@ -137,6 +137,15 @@ function _define_property(obj, key, value) {
137
137
  else obj[key] = value;
138
138
  return obj;
139
139
  }
140
+ const computerInputParamSchema = core_namespaceObject.z.object({
141
+ value: core_namespaceObject.z.string().describe('The text to input'),
142
+ mode: core_namespaceObject.z["enum"]([
143
+ 'replace',
144
+ 'clear',
145
+ 'append'
146
+ ]).default('replace').optional().describe('Input mode: replace, clear, or append'),
147
+ locate: (0, core_namespaceObject.getMidsceneLocationSchema)().describe('The input field to be filled').optional()
148
+ });
140
149
  const SMOOTH_MOVE_STEPS_TAP = 8;
141
150
  const SMOOTH_MOVE_STEPS_MOUSE_MOVE = 10;
142
151
  const SMOOTH_MOVE_DELAY_TAP = 8;
@@ -339,7 +348,7 @@ Available Displays: ${displays.length > 0 ? displays.map((d)=>d.name).join(', ')
339
348
  }
340
349
  async healthCheck() {
341
350
  console.log('[HealthCheck] Starting health check...');
342
- console.log("[HealthCheck] @midscene/computer v1.5.4-beta-20260310084708.0");
351
+ console.log("[HealthCheck] @midscene/computer v1.5.4");
343
352
  console.log('[HealthCheck] Taking screenshot...');
344
353
  const screenshotTimeout = 15000;
345
354
  let timeoutId;
@@ -491,6 +500,11 @@ Available Displays: ${displays.length > 0 ? displays.map((d)=>d.name).join(', ')
491
500
  description: 'Move the mouse to the element',
492
501
  interfaceAlias: 'aiHover',
493
502
  paramSchema: device_namespaceObject.actionHoverParamSchema,
503
+ sample: {
504
+ locate: {
505
+ prompt: 'the navigation menu item "Products"'
506
+ }
507
+ },
494
508
  call: async (param)=>{
495
509
  external_node_assert_default()(device_libnut, 'libnut not initialized');
496
510
  const element = param.locate;
@@ -506,15 +520,13 @@ Available Displays: ${displays.length > 0 ? displays.map((d)=>d.name).join(', ')
506
520
  name: 'Input',
507
521
  description: 'Input text into the input field',
508
522
  interfaceAlias: 'aiInput',
509
- paramSchema: core_namespaceObject.z.object({
510
- value: core_namespaceObject.z.string().describe('The text to input'),
511
- mode: core_namespaceObject.z["enum"]([
512
- 'replace',
513
- 'clear',
514
- 'append'
515
- ]).default('replace').optional().describe('Input mode: replace, clear, or append'),
516
- locate: (0, core_namespaceObject.getMidsceneLocationSchema)().describe('The input field to be filled').optional()
517
- }),
523
+ paramSchema: computerInputParamSchema,
524
+ sample: {
525
+ value: 'test@example.com',
526
+ locate: {
527
+ prompt: 'the email input field'
528
+ }
529
+ },
518
530
  call: async (param)=>{
519
531
  external_node_assert_default()(device_libnut, 'libnut not initialized');
520
532
  const element = param.locate;
@@ -810,7 +822,7 @@ class ComputerMidsceneTools extends mcp_namespaceObject.BaseMidsceneTools {
810
822
  }
811
823
  const env_namespaceObject = require("@midscene/shared/env");
812
824
  function version() {
813
- const currentVersion = "1.5.4-beta-20260310084708.0";
825
+ const currentVersion = "1.5.4";
814
826
  console.log(`@midscene/computer v${currentVersion}`);
815
827
  return currentVersion;
816
828
  }
@@ -131,6 +131,15 @@ function _define_property(obj, key, value) {
131
131
  else obj[key] = value;
132
132
  return obj;
133
133
  }
134
+ const computerInputParamSchema = core_namespaceObject.z.object({
135
+ value: core_namespaceObject.z.string().describe('The text to input'),
136
+ mode: core_namespaceObject.z["enum"]([
137
+ 'replace',
138
+ 'clear',
139
+ 'append'
140
+ ]).default('replace').optional().describe('Input mode: replace, clear, or append'),
141
+ locate: (0, core_namespaceObject.getMidsceneLocationSchema)().describe('The input field to be filled').optional()
142
+ });
134
143
  const SMOOTH_MOVE_STEPS_TAP = 8;
135
144
  const SMOOTH_MOVE_STEPS_MOUSE_MOVE = 10;
136
145
  const SMOOTH_MOVE_DELAY_TAP = 8;
@@ -333,7 +342,7 @@ Available Displays: ${displays.length > 0 ? displays.map((d)=>d.name).join(', ')
333
342
  }
334
343
  async healthCheck() {
335
344
  console.log('[HealthCheck] Starting health check...');
336
- console.log("[HealthCheck] @midscene/computer v1.5.4-beta-20260310084708.0");
345
+ console.log("[HealthCheck] @midscene/computer v1.5.4");
337
346
  console.log('[HealthCheck] Taking screenshot...');
338
347
  const screenshotTimeout = 15000;
339
348
  let timeoutId;
@@ -485,6 +494,11 @@ Available Displays: ${displays.length > 0 ? displays.map((d)=>d.name).join(', ')
485
494
  description: 'Move the mouse to the element',
486
495
  interfaceAlias: 'aiHover',
487
496
  paramSchema: device_namespaceObject.actionHoverParamSchema,
497
+ sample: {
498
+ locate: {
499
+ prompt: 'the navigation menu item "Products"'
500
+ }
501
+ },
488
502
  call: async (param)=>{
489
503
  external_node_assert_default()(libnut, 'libnut not initialized');
490
504
  const element = param.locate;
@@ -500,15 +514,13 @@ Available Displays: ${displays.length > 0 ? displays.map((d)=>d.name).join(', ')
500
514
  name: 'Input',
501
515
  description: 'Input text into the input field',
502
516
  interfaceAlias: 'aiInput',
503
- paramSchema: core_namespaceObject.z.object({
504
- value: core_namespaceObject.z.string().describe('The text to input'),
505
- mode: core_namespaceObject.z["enum"]([
506
- 'replace',
507
- 'clear',
508
- 'append'
509
- ]).default('replace').optional().describe('Input mode: replace, clear, or append'),
510
- locate: (0, core_namespaceObject.getMidsceneLocationSchema)().describe('The input field to be filled').optional()
511
- }),
517
+ paramSchema: computerInputParamSchema,
518
+ sample: {
519
+ value: 'test@example.com',
520
+ locate: {
521
+ prompt: 'the email input field'
522
+ }
523
+ },
512
524
  call: async (param)=>{
513
525
  external_node_assert_default()(libnut, 'libnut not initialized');
514
526
  const element = param.locate;
@@ -807,7 +819,7 @@ class ComputerMCPServer extends mcp_namespaceObject.BaseMCPServer {
807
819
  constructor(toolsManager){
808
820
  super({
809
821
  name: '@midscene/computer-mcp',
810
- version: "1.5.4-beta-20260310084708.0",
822
+ version: "1.5.4",
811
823
  description: 'Control the computer desktop using natural language commands'
812
824
  }, toolsManager);
813
825
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@midscene/computer",
3
- "version": "1.5.4-beta-20260310084708.0",
3
+ "version": "1.5.4",
4
4
  "description": "Midscene.js Computer Desktop Automation",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -36,8 +36,8 @@
36
36
  "@computer-use/libnut": "^4.2.0",
37
37
  "clipboardy": "^4.0.0",
38
38
  "screenshot-desktop": "^1.15.3",
39
- "@midscene/shared": "1.5.4-beta-20260310084708.0",
40
- "@midscene/core": "1.5.4-beta-20260310084708.0"
39
+ "@midscene/shared": "1.5.4",
40
+ "@midscene/core": "1.5.4"
41
41
  },
42
42
  "optionalDependencies": {
43
43
  "node-mac-permissions": "2.5.0"