<?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.hxh.apboa</groupId>
        <artifactId>biz</artifactId>
        <version>1.0.0</version>
        <relativePath>../pom.xml</relativePath>
    </parent>

    <artifactId>workflow</artifactId>
    <packaging>jar</packaging>

    <name>workflow</name>

    <properties>
        <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
    </properties>

    <dependencies>
        <!-- APBOA common module -->
        <dependency>
            <groupId>com.hxh.apboa</groupId>
            <artifactId>common</artifactId>
        </dependency>

        <!-- APBOA biz modules for Model/MCP/KnowledgeBase services -->
        <dependency>
            <groupId>com.hxh.apboa</groupId>
            <artifactId>model</artifactId>
        </dependency>
        <dependency>
            <groupId>com.hxh.apboa</groupId>
            <artifactId>mcp</artifactId>
        </dependency>
        <dependency>
            <groupId>com.hxh.apboa</groupId>
            <artifactId>knowledge</artifactId>
        </dependency>
        <dependency>
            <groupId>com.hxh.apboa</groupId>
            <artifactId>agent</artifactId>
        </dependency>

        <!-- APBOA core for McpClientFactory, EmbeddingService, VectorStore -->
        <dependency>
            <groupId>com.hxh.apboa</groupId>
            <artifactId>core</artifactId>
        </dependency>

        <!-- DAG graph -->
        <dependency>
            <groupId>org.jgrapht</groupId>
            <artifactId>jgrapht-core</artifactId>
            <version>1.5.2</version>
        </dependency>

        <!-- OGNL for workflow variable expression evaluation -->
        <dependency>
            <groupId>ognl</groupId>
            <artifactId>ognl</artifactId>
            <version>3.4.7</version>
        </dependency>

        <!-- Spring AI OpenAI for LLM node -->
        <dependency>
            <groupId>org.springframework.ai</groupId>
            <artifactId>spring-ai-openai-spring-boot-starter</artifactId>
        </dependency>

        <!-- Apache HttpClient for API node -->
        <dependency>
            <groupId>org.apache.httpcomponents</groupId>
            <artifactId>httpclient</artifactId>
            <version>4.5.14</version>
            <exclusions>
                <exclusion>
                    <groupId>commons-logging</groupId>
                    <artifactId>commons-logging</artifactId>
                </exclusion>
            </exclusions>
        </dependency>

        <!-- Reactor Core for Flux/Mono -->
        <dependency>
            <groupId>io.projectreactor</groupId>
            <artifactId>reactor-core</artifactId>
        </dependency>

        <!-- GraalVM Polyglot for Python sandbox -->
        <dependency>
            <groupId>org.graalvm.polyglot</groupId>
            <artifactId>polyglot</artifactId>
        </dependency>

        <!-- Nashorn for JavaScript sandbox -->
        <dependency>
            <groupId>org.openjdk.nashorn</groupId>
            <artifactId>nashorn-core</artifactId>
        </dependency>

        <!-- Lombok -->
        <dependency>
            <groupId>org.projectlombok</groupId>
            <artifactId>lombok</artifactId>
            <optional>true</optional>
        </dependency>
        <dependency>
            <groupId>com.hxh.apboa</groupId>
            <artifactId>account</artifactId>
        </dependency>
        <dependency>
            <groupId>com.hxh.apboa</groupId>
            <artifactId>flow</artifactId>
        </dependency>
    </dependencies>
</project>
