Reconcile recipe-declared cron jobs with the host cron system. Port of the reconciliation algorithm from clawrecipes/src/handlers/cron.ts. The OpenClaw plugin shells out to ``openclaw cron add/edit/list``; the Hermes port hands the same algorithm a ``CronApi`` protocol that Phase
# Source: https://github.com/JIGGAI/hermes-recipes | License: Apache-2.0 | Copyright You must retain, in the Source form of any Derivative Works
# Provided via justclaw.it.com; keep this notice with the code.
"""Reconcile recipe-declared cron jobs with the host cron system.
Port of the reconciliation algorithm from clawrecipes/src/handlers/cron.ts.
The OpenClaw plugin shells out to ``openclaw cron add/edit/list``; the
Hermes port hands the same algorithm a ``CronApi`` protocol that Phase 6
wires to ``hermes_agent.cron.jobs``.
"""
import time
from dataclasses import dataclass, field
from typing import Any, Literal, Optional, Protocol
from hermes_recipes.cron_translate import HermesCronPayload, translate_recipe_cron
from hermes_recipes.cron_utils import (
CronMappingEntry,
CronSco
... (truncated -- full source via MCP)
See the full source, get the GitHub permalink, and search 40K more like it.
Get a free API key