chore: add gateway:watch

This commit is contained in:
Peter Steinberger
2025-12-25 18:44:23 +00:00
parent 42eb7640f9
commit c9c7354009
3 changed files with 6 additions and 0 deletions

View File

@@ -67,6 +67,9 @@ pnpm clawdis login
# Start the gateway
pnpm clawdis gateway --port 18789 --verbose
# Dev loop (auto-reload on TS changes)
pnpm gateway:watch
# Send a message
pnpm clawdis send --to +1234567890 --message "Hello from Clawdis"

View File

@@ -19,6 +19,8 @@ pnpm clawdis gateway --port 18789
pnpm clawdis gateway --port 18789 --verbose
# if the port is busy, terminate listeners then start:
pnpm clawdis gateway --force
# dev loop (auto-reload on TS changes):
pnpm gateway:watch
```
- Binds WebSocket control plane to `127.0.0.1:<port>` (default 18789).
- Starts a Canvas file server by default on `canvasHost.port` (default `18793`), serving `http://<gateway-host>:18793/__clawdis__/canvas/` from `~/clawd/canvas`. Disable with `canvasHost.enabled=false` or `CLAWDIS_SKIP_CANVAS_HOST=1`.

View File

@@ -42,6 +42,7 @@
"ui:build": "pnpm -C ui build",
"start": "tsx src/index.ts",
"clawdis": "tsx src/index.ts",
"gateway:watch": "tsx watch --clear-screen=false --include 'src/**/*.ts' src/index.ts gateway --force",
"clawdis:rpc": "tsx src/index.ts agent --mode rpc --json",
"lint": "biome check src test && oxlint --type-aware src test --ignore-pattern src/canvas-host/a2ui/a2ui.bundle.js",
"lint:swift": "swiftlint lint --config .swiftlint.yml && (cd apps/ios && swiftlint lint --config .swiftlint.yml)",