HermesCronApi (hermes_cron.py)

hermes-recipes · automation

Bridge :class:`hermes_recipes.cron_reconcile.CronApi` to Hermes's cron module. The :class:`HermesCronApi` adapter loads ``hermes_agent.cron.jobs`` (or the hermes-agent equivalent — Hermes Agent's package layout exposes ``cron.jobs``) and surfaces the four operations the reconcile

# 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.
"""Bridge :class:`hermes_recipes.cron_reconcile.CronApi` to Hermes's cron module.

The :class:`HermesCronApi` adapter loads ``hermes_agent.cron.jobs`` (or the
hermes-agent equivalent — Hermes Agent's package layout exposes ``cron.jobs``)
and surfaces the four operations the reconciler needs. Tests use
:class:`InMemoryCronApi` to avoid touching the real cron store.
"""

from dataclasses import dataclass, field
from typing import Any, Callable, Optional


class HermesCronApi:
    """Adapter that wraps the Hermes cron module behind the :class:`CronApi` shape.

    Hermes exposes :mod:`cr

... (truncated -- full source via MCP)

See the full source, get the GitHub permalink, and search 40K more like it.

Get a free API key