commit 3276994c487629439736e3234aabe89d1882480b Author: Hermes Agent Date: Fri May 15 21:02:55 2026 +0800 chore: initialize autman simadmin plugin repo diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..df50709 --- /dev/null +++ b/.gitignore @@ -0,0 +1,7 @@ +node_modules/ +.env +.env.* +*.log +.DS_Store +.runtime/ +data/ diff --git a/README.md b/README.md new file mode 100644 index 0000000..9d8c94e --- /dev/null +++ b/README.md @@ -0,0 +1,50 @@ +# autman-simadmin-plugin + +Autman 插件仓库,用于后续封装 SimAdmin HTTP API。 + +目标能力: + +- 获取 SimAdmin 运行状态 +- 获取设备 / SIM / 蜂窝网络状态 +- 发送短信 +- 查询短信列表和短信统计 +- 后续按 BOSS 上传的既有 Autman 插件风格补齐实现 + +## 当前状态 + +这是初始仓库骨架,先用于收集参考插件与沉淀实现方案。 + +## 参考 SimAdmin API + +默认地址: + +```text +http://:3000 +``` + +常用接口: + +```text +GET /api/health +GET /api/device +GET /api/sim +GET /api/network +GET /api/data +GET /api/stats +POST /api/sms/send +GET /api/sms/list +GET /api/sms/stats +``` + +短信发送请求体: + +```json +{ + "phone_number": "13800138000", + "content": "测试短信" +} +``` + +## 安全注意 + +SimAdmin 当前接口主要面向内网 Web 管理使用,插件侧应增加 `access_token` 或 Autman 自身权限校验,避免未授权调用短信发送等敏感操作。 diff --git a/docs/.gitkeep b/docs/.gitkeep new file mode 100644 index 0000000..e69de29 diff --git a/plugins/.gitkeep b/plugins/.gitkeep new file mode 100644 index 0000000..e69de29