-
Notifications
You must be signed in to change notification settings - Fork 810
feat(computer): add @midscene/computer package for PC desktop automation #1734
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
✅ Deploy Preview for midscene ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
2 . Is @computer-use/libnut open source? If not, we have to use the community version. |
4dcece2 to
7ed1fed
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Copilot encountered an error and was unable to review this pull request. You can try again by re-requesting a review.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull request overview
Copilot reviewed 31 out of 33 changed files in this pull request and generated 2 comments.
Files not reviewed (1)
- pnpm-lock.yaml: Language not supported
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
d1275f1 to
1540b3b
Compare
9c690bd to
26750f3
Compare
This package provides AI-driven automation for desktop computers (Windows/macOS/Linux) using: - @computer-use/libnut for mouse/keyboard control - screenshot-desktop for screen capture - Multi-display support with displayId selection Features: - Mouse operations: tap, double-click, right-click, hover, drag-and-drop - Keyboard operations: key press, text input, shortcuts - Screen operations: screenshot, scroll, multi-display listing - MCP server for AI assistant integration
Add normalizeKeyName function to map common key names to libnut-compatible names: - Windows/win -> win - Cmd -> command - Ctrl -> control - Esc -> escape - Arrow keys -> up/down/left/right This fixes "Invalid key code specified" error when pressing Windows key on Windows.
…fier key handling
…ndling and cross-platform compatibility
…board and mouse control
…th utility function
…consistency across documentation and codebase
… unused properties
- Rename scrollToEventName to scrollType for consistency with parameter name - Add delay after backspace in ClearInput action to ensure operation completes
…date related interfaces
…ce and introduction
…links in Chinese showcases
…yground for desktop automation
26750f3 to
203cd6c
Compare
Summary
@midscene/computerpackage for AI-driven desktop automation on Windows/macOS/LinuxImplementation Details
@computer-use/libnutfor native mouse/keyboard control with lazy loadingscreenshot-desktopfor cross-platform screen capturedisplayIdconfigurationTest Plan