refactor: align skills and loaders with moltbot rename

This commit is contained in:
Peter Steinberger
2026-01-27 12:20:41 +00:00
parent 6d16a658e5
commit 735aea9efa
53 changed files with 101 additions and 101 deletions

View File

@@ -1,6 +1,6 @@
# Canvas Skill
Display HTML content on connected Clawdbot nodes (Mac app, iOS, Android).
Display HTML content on connected Moltbot nodes (Mac app, iOS, Android).
## Overview
@@ -38,7 +38,7 @@ The canvas host server binds based on `gateway.bind` setting:
**Key insight:** The `canvasHostHostForBridge` is derived from `bridgeHost`. When bound to Tailscale, nodes receive URLs like:
```
http://<tailscale-hostname>:18793/__clawdbot__/canvas/<file>.html
http://<tailscale-hostname>:18793/__moltbot__/canvas/<file>.html
```
This is why localhost URLs don't work - the node receives the Tailscale hostname from the bridge!
@@ -55,7 +55,7 @@ This is why localhost URLs don't work - the node receives the Tailscale hostname
## Configuration
In `~/.clawdbot/clawdbot.json`:
In `~/.clawdbot/moltbot.json`:
```json
{
@@ -102,12 +102,12 @@ HTML
Check how your gateway is bound:
```bash
cat ~/.clawdbot/clawdbot.json | jq '.gateway.bind'
cat ~/.clawdbot/moltbot.json | jq '.gateway.bind'
```
Then construct the URL:
- **loopback**: `http://127.0.0.1:18793/__clawdbot__/canvas/<file>.html`
- **lan/tailnet/auto**: `http://<hostname>:18793/__clawdbot__/canvas/<file>.html`
- **loopback**: `http://127.0.0.1:18793/__moltbot__/canvas/<file>.html`
- **lan/tailnet/auto**: `http://<hostname>:18793/__moltbot__/canvas/<file>.html`
Find your Tailscale hostname:
```bash
@@ -117,7 +117,7 @@ tailscale status --json | jq -r '.Self.DNSName' | sed 's/\.$//'
### 3. Find connected nodes
```bash
clawdbot nodes list
moltbot nodes list
```
Look for Mac/iOS/Android nodes with canvas capability.
@@ -130,7 +130,7 @@ canvas action:present node:<node-id> target:<full-url>
**Example:**
```
canvas action:present node:mac-63599bc4-b54d-4392-9048-b97abd58343a target:http://peters-mac-studio-1.sheep-coho.ts.net:18793/__clawdbot__/canvas/snake.html
canvas action:present node:mac-63599bc4-b54d-4392-9048-b97abd58343a target:http://peters-mac-studio-1.sheep-coho.ts.net:18793/__moltbot__/canvas/snake.html
```
### 5. Navigate, snapshot, or hide
@@ -148,9 +148,9 @@ canvas action:hide node:<node-id>
**Cause:** URL mismatch between server bind and node expectation.
**Debug steps:**
1. Check server bind: `cat ~/.clawdbot/clawdbot.json | jq '.gateway.bind'`
1. Check server bind: `cat ~/.clawdbot/moltbot.json | jq '.gateway.bind'`
2. Check what port canvas is on: `lsof -i :18793`
3. Test URL directly: `curl http://<hostname>:18793/__clawdbot__/canvas/<file>.html`
3. Test URL directly: `curl http://<hostname>:18793/__moltbot__/canvas/<file>.html`
**Solution:** Use the full hostname matching your bind mode, not localhost.
@@ -160,7 +160,7 @@ Always specify `node:<node-id>` parameter.
### "node not connected" error
Node is offline. Use `clawdbot nodes list` to find online nodes.
Node is offline. Use `moltbot nodes list` to find online nodes.
### Content not updating
@@ -171,14 +171,14 @@ If live reload isn't working:
## URL Path Structure
The canvas host serves from `/__clawdbot__/canvas/` prefix:
The canvas host serves from `/__moltbot__/canvas/` prefix:
```
http://<host>:18793/__clawdbot__/canvas/index.html → ~/clawd/canvas/index.html
http://<host>:18793/__clawdbot__/canvas/games/snake.html → ~/clawd/canvas/games/snake.html
http://<host>:18793/__moltbot__/canvas/index.html → ~/clawd/canvas/index.html
http://<host>:18793/__moltbot__/canvas/games/snake.html → ~/clawd/canvas/games/snake.html
```
The `/__clawdbot__/canvas/` prefix is defined by `CANVAS_HOST_PATH` constant.
The `/__moltbot__/canvas/` prefix is defined by `CANVAS_HOST_PATH` constant.
## Tips