Metadata-Version: 2.4
Name: automas_notification_onebot
Version: 0.0.1
Summary: Notification OneBot 11 HTTP API channel
Requires-Python: >=3.10
Description-Content-Type: text/markdown
Requires-Dist: pydantic>=2.0
Requires-Dist: httpx>=0.27

# notification_onebot

AUTO-MAS 通知插件 - OneBot 11 HTTP API 通道

## 功能

通过 OneBot 11 标准 HTTP API 发送通知消息，支持：

- 私聊消息（`send_private_msg`）
- 群消息（`send_group_msg`）
- 多目标同时推送
- Access Token 鉴权
- 文本 / CQ 码 消息格式

## 配置说明

| 字段 | 类型 | 说明 |
|------|------|------|
| `enabled` | bool | 是否启用 |
| `api_url` | string | OneBot HTTP API 地址，如 `http://127.0.0.1:5700` |
| `access_token` | string | Access Token（可留空） |
| `targets` | list | 通知目标列表 |

### 目标配置

| 字段 | 类型 | 说明 |
|------|------|------|
| `name` | string | 目标名称 |
| `enabled` | bool | 是否启用 |
| `target_type` | `private` / `group` | 私聊或群聊 |
| `target_id` | int | QQ 号或群号 |
| `message_format` | `text` / `json` | 消息格式 |

## 兼容的 OneBot 实现

- go-cqhttp
- OpenShamrock
- Lagrange
- LLOneBot
- NapCat
- 其他兼容 OneBot 11 标准的实现

## 依赖

- `notification` 主插件（提供 `notify` 服务）
- `httpx`
