feat: add CLI message center commands

This commit is contained in:
gitea committed 2026-09-05 14:05:05 +08:00
1 parent 0be1365289
commit 621c8cb7dc
11 files changed
+242 -4

No files matched your search

+10 -3
View File
@@ -36,7 +36,8 @@ metadata:
| 单据 Web 详情直达链接生成 | `hose bill link <单号|ID>` | [references/bill.md](references/bill.md) |
| 单据实体模型与字段元数据查询 | `hose bill schema` | [references/bill.md](references/bill.md) |
| 企业通讯录检索 / 员工档案 / 防爆保护 | `hose contact search`, `hose contact list`, `hose contact get` | [references/contact.md](references/contact.md) |
| 待办中心 / 已审批 / 审批记录 | `hose task todo`, `hose task approved`, `hose task records` | [references/task.md](references/task.md) |
| 待办中心 / 已审批 / 我发起的 / 审批记录 / 抄送 | `hose task todo`, `hose task submitted`, `hose task records`, `hose task cc` | [references/task.md](references/task.md) |
| 消息中心 / 未读统计 / 标记已读 / 类型过滤 | `hose message list`, `hose message count`, `hose message read` | [references/message.md](references/message.md) |
| 跨自建应用工作流聚合检索 | `hose workflow list`, `hose platform list` | [references/workflow.md](references/workflow.md) |
| 特定任务节点扫描 (如脚本/Webhook) | `hose workflow find --task=code-js2` | [references/workflow.md](references/workflow.md) |
| 工作流详情与开通切换 | `hose workflow get`, `hose workflow toggle` | [references/workflow.md](references/workflow.md) |
@@ -71,13 +72,19 @@ hose bill list --json -o /tmp/bills.json # 导出全量单据报文
hose bill get n0GMIM0dkQmKbS # 精准查询单据详情 (中文字段映射)
hose bill schema # 查询单据实体元数据字典
# 4. 自建应用与工作流
# 4. 待办与消息
hose task submitted # 查看我发起的单据
hose message list --unread # 查看未读消息
hose message count # 查看未读数量
hose message read <messageId> # 标记单条消息已读
# 5. 自建应用与工作流
hose platform list # 查看自建应用列表
hose workflow list # 聚合扫描全部应用下的工作流
hose workflow find --task=code-js2 # 查找部署了代码节点的工作流
hose workflow get wf_01k83y... # 查看指定工作流节点拓扑
# 5. 服务与守护进程
# 6. 服务与守护进程
hose http --port=8888 # 启动前台 HTTP 服务与交互式文档
hose service start # 后台启动常驻守护进程服务
hose service status # 查看常驻守护进程运行状态与端点
+14
View File
@@ -0,0 +1,14 @@
# 消息中心
消息中心是 CLI-only 能力,不新增 MCP tool。命令默认查询未读消息。
```bash
hose message list --unread
hose message list --read
hose message list --type=Approve
hose message count
hose message read <messageId>
hose message read-all
```
`message list --json` 返回消息 ID、标题、内容、消息类型、已读状态和原始字段;`--type` 在 CLI 层按 `messageType`、`msgType`、`msgTypeName` 或 `msgName` 做兼容过滤。