Add Tlon/Urbit channel plugin #1544
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Summary
Adds built-in Tlon (Urbit) channel plugin to support decentralized messaging on the Urbit network. This makes Tlon a first-class channel alongside Telegram, Signal, Slack, etc.
Motivation
Currently using Tlon as an external plugin (
~/.clawdbot/extensions/tlon/) causes cron delivery to fail with:Regular messages work fine, but cron's
loadChannelOutboundAdapter()doesn't resolve external plugins properly. Making Tlon a built-in plugin should resolve this issue (see #1530).Features
✅ Direct Messages - Send/receive DMs with Urbit ships
✅ Group Chats - Support for Urbit group channels
✅ Real-time Monitoring - SSE-based event streaming
✅ Auto-discovery - Automatically finds and subscribes to channels
✅ Thread Replies - Support for threaded conversations
✅ Reactions - Message reactions support
✅ Cron Delivery - Works with
clawdbot crondelivery (the key fix!)Implementation
Plugin Structure
extensions/tlon/index.ts- Plugin registration via ClawdbotPluginApiextensions/tlon/src/channel.js- Main channel plugin with outbound/config/gateway adaptersextensions/tlon/src/monitor.js- Inbound message handler and Urbit integrationextensions/tlon/src/urbit-sse-client.js- SSE client for Urbit event streamingextensions/tlon/src/core-bridge.js- Runtime bridge for clawdbot integrationKey Components
Outbound Delivery:
Gateway Adapter:
Configuration:
{ "channels": { "tlon": { "enabled": true, "ship": "your-ship", "code": "your-+code", "url": "https://your-ship.tlon.network", "groupChannels": ["chat/~ship/channel-id", "dm/~ship"] } } }Testing
Tested with:
Dependencies
Added to
extensions/tlon/package.json:{ "dependencies": { "@urbit/http-api": "^3.0.0", "@urbit/aura": "^2.0.0", "eventsource": "^2.0.2" } }Configuration Example
Documentation
Full documentation included in
extensions/tlon/README.mdcovering:Related Issues
Closes #1530
Checklist
sendTextandsendMediafor deliveryNotes
This plugin has been tested extensively as an external plugin and works perfectly for regular message flow. The only issue was with cron delivery, which should be resolved by making it a built-in plugin.
Original plugin repo: https://github.com/wca4a/clawdbot-tlon-plugin