TicketRow (tickets.py)

hermes-recipes · automation

Ticket handler-level operations — list / move / assign / dispatch / complete. Port of clawrecipes/src/handlers/tickets.ts plus the dispatch handler from clawrecipes/index.ts. OpenClaw-specific hooks (``api.runtime.system.enqueueSystemEvent``, ``scheduleManifestRegeneration``) are

# 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.
"""Ticket handler-level operations — list / move / assign / dispatch / complete.

Port of clawrecipes/src/handlers/tickets.ts plus the dispatch handler from
clawrecipes/index.ts. OpenClaw-specific hooks (``api.runtime.system.enqueueSystemEvent``,
``scheduleManifestRegeneration``) are exposed as optional callbacks so the
file-first work is testable in isolation.
"""

import re
import shutil
from dataclasses import dataclass
from datetime import datetime, timezone
from pathlib import Path
from typing import Callable, Iterable, Literal, Optional

from hermes_recipes.constants import VALI

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

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

Get a free API key