Files
Web_BLS_ProjectConsole/openspec/changes/update-command-control-api/tasks.md

28 lines
1005 B
Markdown
Raw Normal View History

## 1. OpenSpec
- [ ] 1.1 Add command spec delta for HTTP control (remove Redis control queue)
- [ ] 1.2 Add design notes for baseUrl mapping + request format
- [ ] 1.3 Run `openspec validate update-command-control-api --strict`
## 2. Backend
- [ ] 2.1 Add Redis heartbeat parsing (apiBaseUrl + lastActiveAt) and offline detection (10s)
- [ ] 2.2 Update POST `/api/commands` to parse `apiName` + args and call target HTTP API using heartbeat apiBaseUrl
- [ ] 2.3 Return structured result to frontend (success/failed + upstream status/body)
## 3. Frontend
- [ ] 3.1 Update Console send behavior + UI copy to reflect API control
- [ ] 3.2 Validate input format (needs at least apiName)
## 4. Docs
- [ ] 4.1 Update docs/redis-integration-protocol.md: remove control queue; add HTTP control API section
- [ ] 4.2 Update .env.example with new optional variables (timeouts/offline threshold)
## 5. Verify
- [ ] 5.1 Run `npm run lint`
- [ ] 5.2 Run `npm run build`
- [ ] 5.3 Smoke test backend endpoints