Watch deploy
watch_deployWait for a deploy to finish: call it right after deploy_project, with the project_id it returned. It returns when the deploy settles: status running (give the user url), or error. A static site settles at once, since nothing boots (read error_explained and get_project_logs, fix the files, and call deploy_project again under the same name). It streams each step (machine booting, SSH ready, pushing files, app live) as a progress notification; relay them so a two minute deploy does not look like a hang. If the deploy is still going after wait_seconds (default 180), it returns status spawning: call it again to keep waiting. A harness that cuts a tool call short (jcode stops one at 30 seconds) can pass a smaller wait_seconds, such as 20, and call again until it settles; that timeout is the harness's, not a failed deploy. Give the user url: the share link, which survives redeploys unless the app's address is changed, and works whether the project is public or restricted. Never hand out machine_url, the machine underneath: a restricted project refuses viewers there.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| project_id | Yes | the id of the project to watch, as returned by deploy_project | |
| wait_seconds | No | how long to follow the deploy before returning, in seconds. The call returns as soon as the deploy settles, so this only bounds a deploy that is still going. Default 180, maximum 300 |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | No | ||
| note | Yes | ||
| error | No | ||
| steps | No | ||
| status | Yes | ||
| settled | Yes | ||
| retryable | No | ||
| share_url | No | ||
| project_id | Yes | ||
| machine_url | No | ||
| error_explained | No |