using UnityEngine;
using UnityEditorInternal;
using System.Collections.Generic;

namespace LLM.Editor.Analysis
{
    /// <summary>
    /// Provides a list of all user-defined Tags and Layers in the project.
    /// </summary>
    public class TagsAndLayersProvider : IContextProvider
    {
        public class TagsAndLayersResult
        {
            public List<string> tags;
            public List<string> layers;
        }

        public object GetContext(Object target, string qualifier)
        {
            return new TagsAndLayersResult
            {
                tags = new List<string>(InternalEditorUtility.tags),
                layers = new List<string>(InternalEditorUtility.layers)
            };
        }
    }
}
