mirror of
https://github.com/jhd3197/ServerKit.git
synced 2026-11-09 05:24:49 +09:00
Add WordPress lifecycle events to EVENT_CATALOG (wordpress.created / deleted / backup_completed / updated / update_rolled_back / deployed / deploy_failed, joining #27's site_down/up) + a reusable EventService.emit_wp(event_type, site, **extra) helper (best-effort; never breaks the WP op). Emitted at concrete service points: create_site (wordpress.created), the #29 safe-update (wordpress.updated / update_rolled_back), and git deploy (wordpress.deployed / deploy_failed + the pre-deploy backup_completed). The catalog drives the subscription UI and EventSubscription.matches_event supports a wordpress.* wildcard, so these are immediately subscribable as outbound webhooks (HMAC + retry) and fire event-triggered workflows via the existing WorkflowEventBus — the trigger half of the Done-when. Deferred: WordPress workflow ACTION nodes (needs the workflow node-type registry + builder UI) and the serverkit wp CLI binary. Verified: py_compile. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>