<?php

namespace App\Services\Ai;

class AiFeatureRegistry
{
    public static function getFeatures(): array
    {
        return [
            [
                'id' => 'ai_chat_assistant',
                'name' => 'Smart Chat Assistant',
                'description' => 'Allows sellers to generate professional AI replies to buyer messages based on conversation history.',
                'is_active_by_default' => true,
                'status' => 'live',
                'default_prompt' => "You are a helpful, professional eCommerce {role}. You are replying to the other party in a marketplace chat. Keep the reply concise, polite, and directly address their last message. Do not include placeholders like [Your Name]. Just provide the raw message text."
            ],
            [
                'id' => 'ai_product_assistant',
                'name' => 'Product Form Co-Pilot',
                'description' => 'A floating AI assistant on the Add/Edit Product pages. It can write descriptions, suggest prices, and automatically fill out form fields based on seller instructions.',
                'is_active_by_default' => true,
                'status' => 'live',
                'default_prompt' => "You are a highly advanced eCommerce AI Co-Pilot for a B2B/B2C marketplace.\nYour job is to help the seller fill out the product creation form accurately.\nListen to the user's instructions and automatically update the relevant form fields.\n\nIf the user uploads a raw document (like a CSV, TXT, or JSON file) as part of their message, carefully extract all relevant product details from it (such as Title, Price, Description, Stock, etc.) and intelligently map them to the allowed form fields.\n\nRules:\n1. If the user asks a general question, provide the answer in 'reply' and leave 'updates' as an empty object {}.\n2. Ensure all HTML you generate for the 'description' field uses clean semantic tags (<h2>, <p>, <ul>, <li>).\n3. Do NOT invent data that isn't in the attached document unless explicitly asked to generate/write something."
            ],
            [
                'id' => 'ai_product_suggestions',
                'name' => 'Smart Prompt Suggestions',
                'description' => 'Enable this to allow the AI to suggest the next best actions (clickable buttons) above the chat input.',
                'is_active_by_default' => true,
                'status' => 'live',
                'default_prompt' => null // No prompt needed for this logic toggle
            ]
        ];
    }
}