Skip to content

refactor: nostr behind the channel registry (#44 step 3) - #52

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

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

Conversation

@melvincarvalho

Copy link
Copy Markdown
Contributor

Step 3 of the agreed sequence: the nostr special case moves out of bin/jsclaw.js into a CHANNEL_FACTORIES entry; the gateway boots channels generically via startChannels (registry + bindings routing from #51). Config now matches openclaw's universal names — allowFrom, dmPolicy, enabled — with clear migration errors for the short-lived allowed/open/agentId fields. Banner prints each started channel. Tests 135/135. Step 4 (telegram via grammy) remains.

The hardcoded channels.nostr block in bin/jsclaw.js becomes a
registry factory; the gateway calls startChannels() generically.
Config speaks openclaw field names: allowed -> allowFrom, open ->
dmPolicy 'open' (+ allowFrom ['*']), agentId removed in favor of
bindings — legacy fields get explicit migration errors.
@melvincarvalho
melvincarvalho merged commit 7a6752b into gh-pages Jun 11, 2026
@melvincarvalho
melvincarvalho deleted the issue-44-nostr-registry branch June 11, 2026 19:39
@melvincarvalho melvincarvalho mentioned this pull request Jun 11, 2026
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