Connection Guide
Use the computer bridge when a local widget folder needs live sync with Await, or when an agent needs app commands for preview and debugging.
Project Shape
Use the workspace layout from Create A Widget. Start the bridge from the widget folder you want to preview.
Start And Connect
- Start the bridge:
sh
cd YourWidget
npx await-widget- Open the matching widget detail page in Await.
- Choose
Connect Computerfrom the detail menu. - Paste the primary URL printed by the terminal.
- Keep Await app foreground while you edit.
Run npx await-widget --help for the current command list and schemas.
Agent Loop
- Edit widget files in the local workspace.
- Open the connected detail page with
open-syncing-widget-detail. - Wait after sync or preview changes with
wait-for-widget-ready --widget-id <id>. - Inspect failures with
get-build-errors --widget-id <id>. - Use
get-recent-widget-logs --widget-id <id>to viewprint()output. Requires Lifetime Pro. - Set widget preview mode with
set-preview-mode --mode <small|medium|large|extraLarge> --widget-id <id>. - Capture the result with
capture-current-preview --widget-id <id>.
Sync Behavior
- The connected computer widget folder is the source of truth.
- Sync is one-to-one: one computer widget folder to one Await widget. Connecting another widget detail page replaces the current binding.
- Sync replaces the connected widget directory in Await. It does not merge files, preserve old widget files, resolve conflicts, or create a copy.
AwaitStoredata are not deleted.node_modules,.git,.build,dist,build, and hidden items are not synced.
Stop
- Stop the computer bridge with
Ctrl+Cin the terminal. - Use
Disconnect Computerin the connected widget detail menu to stop sync from the app. - If Await is fully closed or killed by the system, connect again from the widget detail page.