Files
orca/docs
Neil 0cd490186d feat(cloud): run the repo's orca.yaml archive hook in the VM before archiving or deleting a cloud workspace
Archive and delete stop the VM but nothing it started elsewhere (a preview
database branch keeps billing). The control plane now runs scripts.archive
on the still-running VM: bash with set -e, as the user, with the session's
env and secrets, 2 min for all checkouts, output per checkout and in
~/.orca-sandbox/archive-hook/archive.log.

- POST/GET /v1/sandboxes/:id/archive-hook; migration 0062 remembers whether
  the repo has a hook (learned at each sleep) so an asleep archive/delete can
  offer a wake for it, and never wakes one without a hook.
- Desktop archive runs it before the Sleep; a failure shows the output with
  Archive anyway / Keep it. Asleep: the Undo toast says it wakes first and
  offers Skip hook.
- Asleep/unreachable delete runs it through the control plane; a failure
  refuses with the usual Delete anyway waiver.
- Unattended archives (public API, team list) run it on a running VM and
  archive even if it fails (logged).
- Docs: orca.yaml scripts.archive for Orca Cloud workspaces.
2026-11-15 14:57:51 -08:00
..