"""Permission system - app-layer wiring.

Business logic lives in kollabor-agent and kollabor-events packages.
This module provides the PermissionHook (event bus integration) and
re-exports for backward compatibility.
"""

from .hook import PermissionHook

# Re-export from packages for convenience
from kollabor_agent.permissions import (
    PermissionManager,
    RiskAssessor,
    handle_confirmation_response,
    PERMISSION_CONFIG_DEFAULTS,
)
from kollabor_events.permissions_models import (
    ApprovalMode,
    ToolRiskLevel,
    ConfirmationType,
    ConfirmationResponse,
    PermissionDecision,
    ApprovalRecord,
    RiskAssessmentResult,
    PermissionAuditEntry,
    RiskAssessmentRules,
    ToolData,
)

__all__ = [
    "PermissionHook",
    "PermissionManager",
    "RiskAssessor",
    "handle_confirmation_response",
    "PERMISSION_CONFIG_DEFAULTS",
    "ApprovalMode",
    "ToolRiskLevel",
    "ConfirmationType",
    "ConfirmationResponse",
    "PermissionDecision",
    "ApprovalRecord",
    "RiskAssessmentResult",
    "PermissionAuditEntry",
    "RiskAssessmentRules",
    "ToolData",
]
