' . esc_html(__('The conversation history entry was deleted.', 'ai-webmaster-studio')) . '
'; } if ($action === 'approve_chat') { $chat_id = AIWEST_Security::post_int('chat_id'); if ($chat_id > 0 && method_exists('AIWEST_History', 'approve_chat')) { $apply_result = class_exists('AIWEST_Chat_Executor') ? AIWEST_Chat_Executor::apply_chat($chat_id) : ['applied' => false, 'note' => __('The technical executor is unavailable. No website changes were made.', 'ai-webmaster-studio')]; if (is_wp_error($apply_result)) { if (!in_array($apply_result->get_error_code(), ['aiwest_chat_decision','aiwest_chat_busy'], true)) AIWEST_History::record_chat_decision($chat_id, 'failed', __('Could not apply:', 'ai-webmaster-studio') . ' ' . $apply_result->get_error_message()); $notice = '' . esc_html(__('The command was approved but could not be applied:', 'ai-webmaster-studio')) . ' ' . esc_html($apply_result->get_error_message()) . '
' . esc_html($note) . '
' . esc_html(__('The command was approved and applied.', 'ai-webmaster-studio')) . ' ' . esc_html($note) . $extra . '
' . esc_html(__('The command was accepted by AI Webmaster Studio. Conversation ID:', 'ai-webmaster-studio')) . ' ' . intval($chat_id) . '
' . esc_html(__('AI responded successfully. The conversation was saved in history. Conversation ID:', 'ai-webmaster-studio')) . ' ' . intval($chat_id) . '
| ID | |||||||
|---|---|---|---|---|---|---|---|
| id); ?> | created_at); ?> | mode)); ?>target_post_id)): ?> target_post_id)); ?> ยท command_action)); ?> |
user_message), 18, '...')); ?>
user_message)): ?>
user_message); ?> |
status)); ?>
model)): ?> model); ?> |
status === 'error'): ?>
error_message); ?>
ai_response), 24, '...')); ?>
ai_response)): ?>
ai_response); ?> |
mode, ['page_prompt', 'site_builder_prompt'], true)): ?> |
|