"""Tags plugin — CRUD, assign, bulk-assign, entity counts, cascade delete."""

from __future__ import annotations

from app.plugins.base import BasePlugin
from app.plugins.manifest import PluginManifest, PluginRouteDef


class TagsPlugin(BasePlugin):
    """Tags plugin for managing tags and tag assignments across entities."""

    manifest = PluginManifest(
        name="tags",
        version="1.0.0",
        display_name="Tags",
        description="Tag management with CRUD, assignment, bulk-assign, and entity counts.",
        dependencies=[],
        routes=[
            PluginRouteDef(
                path="/api/v1/tags",
                module="app.plugins.builtins.tags.routes",
                router_attr="router",
            ),
        ],
        events=[],
        migrations=["0001_initial.sql"],
        permissions=[],
        is_core=True,
    )
