"""Compatibility facade for execution runtime helpers."""

from __future__ import annotations

from kabot.agent.loop_core.execution_runtime_parts.artifacts import (
    _extract_file_uri_path,
    _extract_path_candidates_from_string,
    _extract_path_candidates_from_value,
    _extract_single_result_path,
    _is_result_path_key,
    _looks_like_local_result_path,
    _looks_like_short_context_value,
    _normalize_result_path_candidate,
    _pick_primary_tool_argument,
    _resolve_completion_artifact_path,
    _resolve_followup_source_from_execution,
    _sanitize_tool_args_snapshot,
    _stringify_tool_arg_value,
    _unique_preserve_order,
    _update_completion_evidence,
    _update_followup_context_from_tool_execution,
    _verify_completion_artifact_path,
)
from kabot.agent.loop_core.execution_runtime_parts.intent import (
    _extract_direct_fetch_url_candidate,
    _extract_primary_intent_text,
    _is_image_like_tool,
    _is_low_information_turn,
    _is_tts_like_tool,
    _looks_like_direct_page_fetch_request,
    _looks_like_live_research_query,
    _looks_like_short_confirmation,
    _normalize_text,
    _query_has_explicit_payload_for_tool,
    _resolve_expected_tool_for_query,
    _resolve_query_text_from_message,
    _skill_creation_guard_reason,
    _skill_creation_status_phase,
    _tool_call_intent_mismatch_reason,
    _tools_has,
)
from kabot.agent.loop_core.execution_runtime_parts.observability import (
    _apply_channel_tool_result_hard_cap,
    _apply_response_quota_usage,
    _check_quota_guard,
    _classify_runtime_error,
    _emit_runtime_event,
    _estimate_message_tokens,
    _extract_status_code,
    _quota_bucket,
    _resolve_token_mode,
    _runtime_observability_cfg,
    _runtime_performance_cfg,
    _runtime_quotas_cfg,
    _runtime_resilience_cfg,
    _sanitize_error,
    _should_skip_memory_persistence,
)
from kabot.agent.loop_core.execution_runtime_parts.persistence import (
    _build_pending_interrupt_note,
    _interrupt_preview_text,
    _prune_expiring_cache,
    _schedule_memory_write,
    _should_defer_memory_write,
    _stable_tool_payload_hash,
    _take_pending_interrupt_messages,
)

__all__ = [
    "_apply_channel_tool_result_hard_cap",
    "_apply_response_quota_usage",
    "_build_pending_interrupt_note",
    "_check_quota_guard",
    "_classify_runtime_error",
    "_emit_runtime_event",
    "_estimate_message_tokens",
    "_extract_direct_fetch_url_candidate",
    "_extract_file_uri_path",
    "_extract_path_candidates_from_string",
    "_extract_path_candidates_from_value",
    "_extract_primary_intent_text",
    "_extract_single_result_path",
    "_extract_status_code",
    "_interrupt_preview_text",
    "_is_image_like_tool",
    "_is_low_information_turn",
    "_is_result_path_key",
    "_is_tts_like_tool",
    "_looks_like_direct_page_fetch_request",
    "_looks_like_live_research_query",
    "_looks_like_local_result_path",
    "_looks_like_short_confirmation",
    "_looks_like_short_context_value",
    "_normalize_result_path_candidate",
    "_normalize_text",
    "_pick_primary_tool_argument",
    "_prune_expiring_cache",
    "_query_has_explicit_payload_for_tool",
    "_quota_bucket",
    "_resolve_completion_artifact_path",
    "_resolve_expected_tool_for_query",
    "_resolve_followup_source_from_execution",
    "_resolve_query_text_from_message",
    "_resolve_token_mode",
    "_runtime_observability_cfg",
    "_runtime_performance_cfg",
    "_runtime_quotas_cfg",
    "_runtime_resilience_cfg",
    "_sanitize_error",
    "_sanitize_tool_args_snapshot",
    "_schedule_memory_write",
    "_should_defer_memory_write",
    "_should_skip_memory_persistence",
    "_skill_creation_guard_reason",
    "_skill_creation_status_phase",
    "_stable_tool_payload_hash",
    "_stringify_tool_arg_value",
    "_take_pending_interrupt_messages",
    "_tool_call_intent_mismatch_reason",
    "_tools_has",
    "_unique_preserve_order",
    "_update_completion_evidence",
    "_update_followup_context_from_tool_execution",
    "_verify_completion_artifact_path",
]
