using System.Collections.Generic;
using System.Threading;
using System.Threading.Tasks;
using AxCopilot.SDK;

namespace AxCopilot.Handlers;

public class StarInfoHandler : IActionHandler
{
	private readonly SystemInfoHandler _inner = new SystemInfoHandler();

	public string? Prefix => "*";

	public PluginMetadata Metadata => new PluginMetadata("StarInfo", "시스템 정보 빠른 조회 — * 단축키 (info와 동일)", "1.0", "AX");

	public Task<IEnumerable<LauncherItem>> GetItemsAsync(string query, CancellationToken ct)
	{
		return _inner.GetItemsAsync(query, ct);
	}

	public Task ExecuteAsync(LauncherItem item, CancellationToken ct)
	{
		return _inner.ExecuteAsync(item, ct);
	}
}
