Commit Graph

21 Commits

Author SHA1 Message Date
lilong.129
f5f6d177ab fix: optimize report command to avoid creating timestamp directories
- Implement lazy loading for directory creation in config.go
- Add logFile parameter to InitLogger for better control
- Use dynamic directory existence check instead of flags
- Report command now uses console-only logging to prevent directory creation
- Support both JSON and colorized console output formats
- Maintain backward compatibility for all other commands

Changes:
- config.go: Convert directory paths to getter methods with lazy creation
- logger.go: Add logFile parameter and improve logging control
- cmd/root.go: Detect report command and disable file logging
- uixt/*: Update all references to use new getter methods

Fixes the issue where 'hrp report results/' would create unwanted timestamp directories
2025-06-10 12:06:08 +08:00
lilong.129
dd52faef57 refactor: move Call function 2025-06-09 20:52:32 +08:00
lilong.129
d3011d467e feat: enhance signal handling and graceful shutdown for MCP integration 2025-05-29 00:59:17 +08:00
lilong.129
4ea08b0198 feat: integrate MCP tools with UI actions and improve environment variable inheritance 2025-05-28 22:58:59 +08:00
lilong.129
2fe5b14d63 refactor: integrate and optimize MCP tool calling methods 2025-05-27 21:39:17 +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
2e17d9df16 refactor: merge DoAction to mcp server tools 2025-05-25 23:53:07 +08:00
lilong.129
4ff2692f02 refactor: move action options 2025-05-25 00:15:18 +08:00
lilong.129
9c735bd46a feat: save screenshot after action 2025-05-12 18:04:56 +08:00
lilong.129
00a6ca1f61 change: remove options for AppLaunch/AppTerminate/AppClear 2025-05-12 17:27:48 +08:00
lilong.129
d95eec78b0 feat: add WithPreMarkOperation and WithPostMarkOperation to mark UI operation before/after action 2025-05-12 08:58:27 +08:00
lilong.129
7a6890a160 feat: set timeout for Call function 2025-05-12 08:48:54 +08:00
lilong.129
f6ad6c9eff feat: add function call for XTDriver 2025-05-10 09:50:00 +08:00
lilong.129
4a2276c7f0 refactor:
1, add options for AppLaunch/AppTerminate/AppClear;
2, add pre hook and post hook for AppLaunch/AppTerminate action
2025-05-09 23:30:49 +08:00
lilong.129
2a13594e3d feat: add pre hook and post hook for Swipe action 2025-05-09 23:15:27 +08:00
lilong.129
1dfc473d33 feat: add pre hook and post hook for Drag action 2025-05-09 23:10:59 +08:00
lilong.129
f7ec4a06b4 feat: add pre hook and post hook for DoubleTap action 2025-05-09 23:06:45 +08:00
lilong.129
3715cbb432 feat: support pre hook and post hook for actions 2025-05-09 23:01:27 +08:00
lilong.129
032a130418 change: handlerTapAbsXY 2025-05-07 17:15:20 +08:00
lilong.129
5e9fca046a refactor: rename to driver_handler 2025-05-06 00:57:15 +08:00