Skip to main content

mellea.plugins.types

Mellea hook type enum and hook registration.

Functions

FUNC register_mellea_hooks

register_mellea_hooks() -> None

Register all Mellea hook types with the ContextForge HookRegistry.

Idempotent — skips already-registered hook types.

Classes

CLASS PluginMode

Execution modes for Mellea plugins.

Execution order: SEQUENTIAL → TRANSFORM → AUDIT → CONCURRENT → FIRE_AND_FORGET

CLASS HookType

All Mellea hook types.

Hook types are organized by lifecycle stage: session, component, generation pipeline, validation, sampling pipeline, and tool execution.