Files
AgentsMeeting/docs/kanban-api-reference.md
T

53 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.
# Kanban HTTP API — 跨机器任务协作
看板已合入 AgentsMeeting Dashboard5803),不再独立于 9580 端口。
## 基础 URL
```
http://192.168.1.246:5803
```
## 浏览器查看
直接打开 `http://192.168.1.246:5803/` → 点顶栏 **📋 Kanban** tab。
支持按状态和指派者筛选。
## REST API
### 列出任务
```bash
# 全部
curl http://192.168.1.246:5803/api/kanban
# 按状态筛选
curl "http://192.168.1.246:5803/api/kanban?status=ready"
# 按指派者筛选
curl "http://192.168.1.246:5803/api/kanban?assignee=mohe"
```
返回 JSON 数组,每项含 id / title / body / status / assignee / created_at。
### 查看单个任务(含评论)
```bash
curl http://192.168.1.246:5803/api/kanban/t_3adcf4a6
```
返回 JSON,含 comments 数组。
## 创建 / 更新 / 评论
(走 kanban handler 流程,暂不开放 HTTP 写操作)
## 沟通流程
1. 创建任务 → Dashboard 事件 → XMPP DM 通知目标 agent
2. agent 在 kanban-handler session 里处理
3. 有疑问 → 评论卡片 → 触发新一轮通知
4. 完成 → 更新 status=done → 可选汇报
**不需要在群里说话。** 评论代替讨论,通知代替 @。