feat(server): wire Discord DM pairing notifications

This commit is contained in:
nav
2026-04-09 04:06:06 +00:00
parent b67166fd12
commit 2972c4750e
4 changed files with 257 additions and 43 deletions

View File

@@ -13,7 +13,7 @@ It runs on the main OpenClaw instance and is responsible for:
## Status
Current state: **scaffold + core runtime MVP**
Current state: **core runtime MVP with Discord DM transport wired via REST API**
Implemented in this repository today:
@@ -25,14 +25,13 @@ Implemented in this repository today:
- auth proof validation flow
- heartbeat receive + liveness sweep
- rule registry + send-to-client APIs
- notification service stub/mock for pairing DM flow
- Discord DM pairing notifications via Discord REST API (`notifyBotToken` + `adminUserId`)
Still pending before production use:
- automated Server unit/integration tests
- real Discord DM transport wiring
- operator hardening / troubleshooting docs
- broader lifecycle integration with real OpenClaw plugin hooks
- more operator-facing hardening / troubleshooting polish
- expanded edge-case and live-environment validation beyond the current automated suite
## Install Layout
@@ -133,11 +132,11 @@ npm run check
Current known limitations:
- pairing DM sending is still a stub/mock abstraction
- DM delivery depends on Discord bot permissions and the target user's DM settings
- no offline message queueing
- no multi-server topology
- no management UI
- no server-side unit/integration test suite yet
- transport is covered mainly by automated tests rather than live Discord end-to-end validation
## Related Repos