"""
LogicLock: Resilient Inter-Process Communication (IPC) for Python
===================================================================

LogicLock is an infrastructure library designed for maximum stability in 
critical systems by solving the problem of reliable data transfer between 
isolated processes (Guardians).

It uses a primitive, yet highly reliable, method: transferring data payload 
via the stable File System (temporary files) and synchronizing the file path 
via low-latency shared memory (multiprocessing.Array).

This design ensures:
1. Stability: High resistance to process failure, especially on Windows kernels.
2. Isolation: User logic runs completely isolated in a Guardian process.
3. Cleanup: Guaranteed resource cleanup (file and shared memory) on success or failure.

Core API:
- @isolate_export(key): Decorator to mark a function for isolated execution.
- exports.KEY: Access point (synchronous lock) to wait for and retrieve the result.
"""

# ----------------------------------------------------
# public api
# ----------------------------------------------------

from .logiclock_core import isolate_export, exports, set_log_level # <-- Exponiendo la API
from .logiclock_core import _ACTIVE_EVENTS, _ACTIVE_FLAGS # <-- Exponiendo el estado (para debug avanzado)

__all__ = [
    'isolate_export',
    'exports',
    'set_log_level',
    '_ACTIVE_EVENTS',
    '_ACTIVE_FLAGS',
]

__version__ = '0.1.0'