<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
    <modelVersion>4.0.0</modelVersion>

    <parent>
        <groupId>com.vaadin</groupId>
        <artifactId>draiv-parent</artifactId>
        <version>0.0.1-alpha4</version>
    </parent>

    <!--
        The agent surface: the tools an AI agent drives a live Vaadin UI with (inspect, apply,
        navigate, macros), published to outside agents over MCP (draiv.mcp.enabled) and to the
        agent in the user's browser over WebMCP (draiv.webmcp.enabled). No chat model: an
        application whose users bring their own agent needs only this. draiv-ai builds the
        application's own assistant on top of it. All code lives under com.vaadin.draiv.agent.*.
    -->
    <artifactId>draiv-agent</artifactId>
    <packaging>jar</packaging>
    <name>Draiv Agent</name>
    <description>The tools an AI agent drives a live Vaadin Flow UI with, published over MCP and
        WebMCP, with no chat model of its own.</description>

    <dependencies>
        <!-- The reusable core (driver, script model, session, agent keys). -->
        <dependency>
            <groupId>com.vaadin</groupId>
            <artifactId>draiv</artifactId>
            <version>${project.version}</version>
        </dependency>
        <!-- SDK-agnostic LLM tool catalog. -->
        <dependency>
            <groupId>com.vaadin</groupId>
            <artifactId>flow-automation-ai</artifactId>
            <version>${project.version}</version>
        </dependency>
        <!-- Spring AI's tool annotations and its MCP server over Spring MVC. No model SDKs. -->
        <dependency>
            <groupId>org.springframework.ai</groupId>
            <artifactId>spring-ai-starter-mcp-server-webmvc</artifactId>
        </dependency>

        <dependency>
            <groupId>org.springframework.boot</groupId>
            <artifactId>spring-boot-starter-test</artifactId>
            <scope>test</scope>
        </dependency>
        <!-- The core's test fixtures (browserless bootstrap + @Route fixture views). -->
        <dependency>
            <groupId>com.vaadin</groupId>
            <artifactId>draiv</artifactId>
            <version>${project.version}</version>
            <type>test-jar</type>
            <scope>test</scope>
        </dependency>
        <dependency>
            <groupId>com.vaadin</groupId>
            <artifactId>browserless-test-spring</artifactId>
            <scope>test</scope>
        </dependency>
    </dependencies>
</project>
