Files
agent_admin/README.md
T

34 lines
1.2 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# AutoAgent
独立的原生 Kotlin Android 任务 Agent。项目标识:
- 项目名:`AutoAgent`
- 包名:`cn.auto.agent`
- 应用名:`Auto Agent`
- 无障碍服务名:`autoagent`
## 当前提取范围
- 类型化任务协议:`WAIT`、`CLICK`、`INPUT`、`BACK`、`EXTRACT_TEXT`
- 基于 `AccessibilityService` 的包名、Activity 和唯一节点操作驱动
- 外部服务适配接口 `TaskGateway`
- 按 `assignedAgentName` 与本地设备名进行区分大小写的精确匹配
- 不属于本设备和格式无效的任务不写入本地数据库
- SQLite `task_inbox`,以 `task_id + revision` 幂等保存
- 单进程任务互斥和可单元测试的执行器
## 重要边界
当前外部服务端接口尚未提供,因此项目只定义 `TaskGateway`,没有臆造 API 地址、认证和轮询协议。设备名过滤是当前需求的兼容机制;正式多设备调度仍建议增加不可变 `agentId`、服务端原子 claim、任务租约和幂等结果提交。
当前版本不会自动开始任务,也未实现后台轮询、结果 Outbox、任意脚本、Shell、坐标盲点、订单或支付动作。
## 验证
```powershell
.\gradlew.bat test
.\gradlew.bat assembleDebug
```
APK:`app/build/outputs/apk/debug/app-debug.apk`