module AiChatCore

AiChatCore context — channel log, chat history, and plan prompt assembly. Public: build_plan_prompt, build_context_lines, build_chat_history_lines, channel_log_entries, format_context_line, truncate_context_line, chat_history_snapshot, append_chat_history, sanitize_text Depends: ai_agent, ai_channel_log, ai_chat_history, ai_context, ai_plugin_storage, rabbot_db Tests: test/lib/ai_chat_core_test.rb

AiChatCore plan — !aip gatekeeping, async dispatch, agent run, and finalize. Public: resolve_cooldown_sec, cooldown_message, request_preview, build_execute_plan, build_continuation_plan, process_plan_request, process_plan_answer, finalize_plan!, resolve_model, failure_outcome Depends: ai_access, ai_guard, ai_model, ai_plan_agent, ai_plan_session, ai_rate_limit, aip_report, bot_options, rabbot_db, ai_chat_core/context Tests: test/lib/ai_chat_core_test.rb, test/plugins/aip_test.rb