Skip to content

feat: channel registry with openclaw config shapes (#44 step 2) - #51

Merged
melvincarvalho merged 1 commit into
gh-pagesfrom
issue-44-channel-registry
Jun 11, 2026
Merged

melvincarvalho merged 1 commit into
gh-pagesfrom
issue-44-channel-registry

Conversation

@melvincarvalho

Copy link
Copy Markdown
Contributor

Step 2 of the channel-strategy refactor agreed on #44: a tested registry module (src/channels.js) speaking openclaw's exact universal fields (enabled, dmPolicy, allowFrom — schema read from openclaw's own bundled channel config schemas), routing inbound messages through resolveBinding with main as fallback, per-(channel, peer) sessions, channel-delivered replies and failure apologies. Deliberately NOT wired into the gateway yet — step 3 moves the Nostr block from bin/jsclaw.js behind this registry (renaming allowed→allowFrom, open→dmPolicy, dropping agentId in favor of bindings); step 4 adds Telegram via grammy. PoC scope: 'pairing' dmPolicy and multi-account deferred. Tests 134/134 (5 new).

channels.<name> blocks share openclaw's universal fields — enabled,
dmPolicy ('allowlist' default, 'open' requires allowFrom ['*'],
'pairing' rejected as not yet supported), allowFrom — with
channel-specific fields passed to a registry factory. Inbound
messages route through bindings (most-specific-wins, default main);
one session per (channel, peer); replies and failure apologies go
back via the channel. Mock-channel tests only — nothing is wired
into the gateway yet (step 3 moves nostr behind this).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant