- internal/hooks: Runner finds <mount>/.devbox/hooks/<event>, runs via bash (or .ps1->pwsh), injects DEVBOX_EVENT/MOUNT/SHARE/HOST/REMOTE/SNAPSHOT/CHANGED_FILES, 60s timeout (WaitDelay bounds post-kill cleanup), pre-* non-zero exit = veto - syncer fires pre-push/post-push (in Push) + pre-pull/post-pull/on-conflict (in Pull); pre-* veto -> PullResult/Result.Vetoed -> Sync skips, waits for next nudge - daemon builds a Runner per mount; cmd mount/publish pass nil (daemon drives hooks) - tests: env+changed-files injection, absent=no-op, pre-* veto, 60s timeout kill, post-pull fires with changed list, pre-push vetoes (head not advanced) |
||
|---|---|---|
| .. | ||
| devbox | ||
| devbox-hub | ||