WorkflowNodeAssignment (types.py)

hermes-recipes · hermes_recipes/workflows/types.py · python · Apache-2.0
automation, dev-tools

Workflow / Run / Approval shapes. Port of clawrecipes/src/lib/workflows/workflow-types.ts. The TS file is mostly type aliases on top of free-form dicts; we keep the Python port faithful to that by using ``TypedDict`` (so the runtime data stays as plain dicts that JSON round-trips

# 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.
"""Workflow / Run / Approval shapes.

Port of clawrecipes/src/lib/workflows/workflow-types.ts. The TS file is mostly
type aliases on top of free-form dicts; we keep the Python port faithful to
that by using ``TypedDict`` (so the runtime data stays as plain dicts that JSON
round-trips through). Node kinds, edges, and lanes are ``Literal`` aliases.
"""

from typing import Any, Literal, TypedDict

WorkflowLane = Literal["backlog", "in-progress", "testing", "done"]
WorkflowEdgeOn = Literal["success", "error", "always"]
NodeStateStatus = Literal["success", "error", "waiting"]
ApprovalStatu

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

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

Get a free API key