Commit Graph

80 Commits

Author SHA1 Message Date
lilong.129
ea26d7c1c3 Merge branch 'master' into merge-wings 2025-06-22 00:04:29 +08:00
lilong.129
912f82255f feat: implement graceful shutdown for HTTP server with signal handling 2025-06-21 22:14:58 +08:00
lilong.129
a1c8b7fab3 refactor: remove unused handlers and related files to streamline the server codebase 2025-06-21 22:08:54 +08:00
lilong.129
ec4f1eb68a refactor: unify action execution interface and merge AI action handling 2025-06-07 23:59:07 +08:00
lilong.129
c204542f1f feat: optimize UI-TARS parser with coordinate conversion and action mapping
- Add action mapping for UI-TARS parser to convert action names to option.ActionName
- Implement bounding box to center point coordinate conversion for better accuracy
- Update coordinate normalization to handle coordinates > 1000 properly
- Enhance test cases to verify coordinate scaling and center point conversion
- Improve action argument processing with proper coordinate transformation
- Add comprehensive test coverage for coordinate conversion edge cases

Key improvements:
- Bounding box [x1,y1,x2,y2] now converts to center point [cx,cy] for actions
- Coordinate scaling properly handles different screen resolutions
- Action names are mapped through doubao_1_5_ui_tars_action_mapping
- Enhanced error handling for invalid coordinate formats
2025-06-04 23:16:14 +08:00
lilong.129
bd8cb5abf4 refactor: move MobileAction to option package and update imports
- Move MobileAction struct from uixt package to uixt/option package
- Delete uixt/driver_action.go file as MobileAction is now in option package
- Update all import statements across the codebase to use option.MobileAction
- Update ActionTool interface to use option.MobileAction in ConvertActionToCallToolRequest method
- Maintain backward compatibility while improving package organization
- Clean up code structure by consolidating action-related types in option package

Files affected:
- server/uixt.go: Updated imports and type references
- step.go: Updated imports and ActionResult struct
- step_ui.go: Updated all MobileAction references to option.MobileAction
- uixt/mcp_server.go: Updated ActionTool interface and removed detailed comments
- uixt/mcp_server_test.go: Updated all test cases to use option.MobileAction
- uixt/mcp_tools_*.go: Updated ConvertActionToCallToolRequest method signatures
- uixt/option/action.go: Added MobileAction struct definition
- uixt/sdk.go: Updated ExecuteAction method signature
2025-06-03 18:15:28 +08:00
lilong.129
229fd4678c fix: use localhost instead of 127.0.0.1 2025-05-27 20:16:10 +08:00
lilong.129
866cc0e4d2 feat: implement MCP hooks integration with anti_risk option 2025-05-27 19:46:08 +08:00
lilong.129
404865ba6b refactor: complete ActionOptions unification and pointer type optimization 2025-05-27 13:34:12 +08:00
lilong.129
7fb966b7ba refactor: improve ActionMethod type safety and eliminate type conversions 2025-05-27 11:49:30 +08:00
lilong.129
1bd2b1ba5e change: move code 2025-05-26 16:08:27 +08:00
lilong.129
7986c4899f refactor: move DoAction to MCP tools call 2025-05-25 08:10:57 +08:00
lilong.129
97dad38b7b refactor: move tool request types to option 2025-05-24 23:51:58 +08:00
lilong.129
f65d8aebbd refactor: move model struct to types 2025-05-24 23:32:10 +08:00
lilong.129
02611d3d5a refactor: uixt MCP Server 2025-05-24 23:22:00 +08:00
lilong.129
0d6a37ecef feat: add uixt tool terminate_app 2025-05-21 16:42:53 +08:00
lilong.129
03553a4962 feat: add uixt tool launch_app 2025-05-21 16:37:42 +08:00
lilong.129
0c20fe7b02 feat: add argument --with-uixt to start built-in uixt MCP server 2025-05-20 22:36:46 +08:00
lilong.129
5066c64368 refactor: move server models to uixt/types 2025-05-20 14:21:18 +08:00
lilong.129
2f48a92f7f feat: add mcp server for uixt tap/swipe/screenshot actions 2025-05-20 13:26:55 +08:00
lilong.129
e35d644acf docs: update docs 2025-05-17 12:20:45 +08:00
lilong.129
e94dacb5b2 refactor: move mcphost package to top level 2025-05-17 11:55:26 +08:00
lilong.129
a4cff1c98a feat: chat with mcp tools 2025-05-16 23:05:40 +08:00
lilong.129
e333ba380a refactor: move mcp to pkg/mcphost 2025-05-16 14:14:56 +08:00
徐聪
2b06e4a280 update: fucntion call 2025-05-07 21:39:22 +08:00
lilong.129
0e9389c796 refactor: NewXTDriver api, return error if init failed 2025-04-30 14:31:36 +08:00
lilong.129
5385556b66 fix: mcp test json 2025-04-25 17:55:24 +08:00
lilong.129
fdcdd246b9 Merge branch 'master' into mcp-client 2025-04-25 17:28:03 +08:00
徐聪
382aad2d9f fix: 修复浏览器驱动的一些问题 2025-04-24 22:57:08 +08:00
lilong.129
1659e47927 fix: add platform and serial to tool invoke args 2025-04-24 20:30:41 +08:00
lilong.129
f8a5c25f4b change: mcp tool invoke url path 2025-04-10 11:20:00 +08:00
lilong.129
f49ee37055 change: ToolRequest 2025-04-01 22:33:13 +08:00
lilong.129
86d0555074 feat: invoke tool in hrp server 2025-04-01 21:55:58 +08:00
lilong.129
b412fa193b refactor: move uixt ext to EvalTools 2025-03-14 10:55:46 +08:00
lilong.129
cc81c00a82 feat: add adb screen record 2025-03-06 16:57:51 +08:00
lilong.129
e107389d6e refactor: move uixt pkg 2025-03-05 11:04:02 +08:00
lilong.129
7539e456d7 fix: tap handler 2025-03-04 20:40:10 +08:00
lilong.129
65564b958f change: convertToAbsolutePoint, convertToAbsoluteCoordinates 2025-03-04 20:02:59 +08:00
lilong.129
d50b1f9855 fix: format 2025-03-04 18:18:24 +08:00
lilong.129
7f837c9e36 refactor & fix: stub driver and server 2025-03-04 17:26:55 +08:00
lilong.129
b69f5d5b25 refactor: BrowserDevice & BrowserDriver 2025-03-03 22:03:42 +08:00
lilong.129
b687abb3c8 refactor: move browser device options to pkg/uixt/option pkg 2025-03-03 21:40:50 +08:00
lilong.129
69d06a7215 fix: rename browser_web_driver to browser_driver 2025-03-03 21:27:32 +08:00
lilong.129
94e906ff62 refactor: replace with builtin locker 2025-03-03 20:25:37 +08:00
lilong.129
359199a485 refactor: use WithRelative to set relative coordinate, absolute by default 2025-03-03 20:09:24 +08:00
余泓铮
337f87bcc6 Merge 'feature/huangin/right_click' into 'wings'
feat: add right clcik and webid

See merge request: !67
2025-02-26 07:45:23 +00:00
余泓铮
a374056b4a fix: 优化获取控件信息为空 2025-02-25 17:54:47 +08:00
余泓铮
1094d1d95e feat: 优化ext getDriver和GetDevice策略 2025-02-25 17:53:11 +08:00
huangbin.beal@163.com
e50454512f feat: add right clcik and webid 2025-02-25 16:22:31 +08:00
余泓铮
165aab0dc8 DoubleTap支持绝对坐标 2025-02-24 11:50:36 +08:00