"""BloomOS v0 Runtime - Task Router with Helix64 Position 4 Gates

Kernel Mode:
    Set BLOOMOS_MODE=kernel to enable the kernel ABI.

    from helix_cdc.bloomos.kernel import get_kernel

    kernel = get_kernel()
    result, receipt = kernel.registry.invoke("cdna.decode.v1", "actor", inputs)
"""

__version__ = "0.1.0"

# Lazy import kernel to avoid circular imports
def get_kernel():
    """Get the BloomOS kernel singleton."""
    from .kernel import get_kernel as _get_kernel
    return _get_kernel()

def is_kernel_mode():
    """Check if BloomOS is running in kernel mode."""
    from .kernel import is_kernel_mode as _is_kernel_mode
    return _is_kernel_mode()
