





















@@ -109,6 +109,7 @@ observation-only.
109109**Lifecycle**
110110111111- `gateway_start` / `gateway_stop` — start or stop plugin-owned services with the Gateway
112+- `cron_changed` — observe gateway-owned cron lifecycle changes (added, updated, removed, started, finished, scheduled)
112113- **`before_install`** — inspect skill or plugin install scans and optionally block
113114114115## Tool call policy
@@ -313,6 +314,17 @@ resources.
313314Do not rely on the internal `gateway:startup` hook for plugin-owned runtime
314315services.
315316317+`cron_changed` fires for gateway-owned cron lifecycle events with a typed
318+event payload covering `added`, `updated`, `removed`, `started`, `finished`,
319+and `scheduled` reasons. The event carries a `PluginHookGatewayCronJob`
320+snapshot (including `state.nextRunAtMs`, `state.lastRunStatus`, and
321+`state.lastError` when present) plus a `PluginHookGatewayCronDeliveryStatus`
322+of `not-requested` | `delivered` | `not-delivered` | `unknown`. Removed
323+events still carry the deleted job snapshot so external schedulers can
324+reconcile state. Use `ctx.getCron?.()` and `ctx.config` from the runtime
325+context when syncing external wake schedulers, and keep OpenClaw as the
326+source of truth for due checks and execution.
327+316328## Upcoming deprecations
317329318330A few hook-adjacent surfaces are deprecated but still supported. Migrate
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。