env_gc
Remove expired test environments by TTL or missing VirtualBox VMs, with a dry-run option to preview cleanup before deleting.
Instructions
Remove environments that have outlived the TTL set at fork time (ttl_seconds), plus any whose VM has vanished from VirtualBox. Environments forked without a TTL are never removed by age. Pass dry_run to see what would go without removing it. Good to call before finishing a session so short-lived envs do not pile up.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dry_run | No | list what would be removed without removing it |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dry_run | Yes | ||
| removed | Yes |