fix(mac): add tailnet discovery fallback and debug CLI
This commit is contained in:
@@ -90,6 +90,25 @@ Safety:
|
||||
- Package app + CLI: `scripts/package-mac-app.sh`
|
||||
- Switch bundled gateway runtime with `BUNDLED_RUNTIME=node|bun` (default: node).
|
||||
|
||||
## Debug gateway discovery (macOS CLI)
|
||||
|
||||
Use the debug CLI to exercise the same Bonjour + wide‑area discovery code that the
|
||||
macOS app uses, without launching the app.
|
||||
|
||||
```bash
|
||||
cd apps/macos
|
||||
swift run clawdbot-mac-discovery --timeout 3000 --json
|
||||
```
|
||||
|
||||
Options:
|
||||
- `--include-local`: include gateways that would be filtered as “local”
|
||||
- `--timeout <ms>`: overall discovery window (default `2000`)
|
||||
- `--json`: structured output for diffing
|
||||
|
||||
Tip: compare against `pnpm clawdbot gateway discover --json` to see whether the
|
||||
macOS app’s discovery pipeline (NWBrowser + tailnet DNS‑SD fallback) differs from
|
||||
the Node CLI’s `dns-sd` based discovery.
|
||||
|
||||
## Related docs
|
||||
|
||||
- [Gateway runbook](/gateway)
|
||||
|
||||
Reference in New Issue
Block a user