814e2ca73a
Creates an AI-controlled NPC named "Claude" that: - Listens to nearby player chat and responds via LiteLLM (GLM-4.7-Flash) - Can be controlled via HTTP API endpoints - Provides world perception data for external AI control Components: - ClaudeNpcPlugin: Main plugin entry point - ClaudeNpc: NPC entity management - ClaudeController: Behavior state machine - LiteLlmClient: HTTP client for LiteLLM API - WorldView: Perception system - ClaudeApiHandler: HTTP endpoint handlers API endpoints: - POST /spawn, /move, /chat, /look, /emote - GET /status, /world Includes Ansible role updates for deployment.
138 lines
5.1 KiB
XML
138 lines
5.1 KiB
XML
<?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>
|
|
|
|
<groupId>at.subnet.hytale</groupId>
|
|
<artifactId>claude-npc</artifactId>
|
|
<version>1.0.0</version>
|
|
<packaging>jar</packaging>
|
|
|
|
<name>Claude NPC Plugin</name>
|
|
<description>An AI-controlled NPC for Hytale that responds to player chat via LiteLLM</description>
|
|
|
|
<properties>
|
|
<maven.compiler.source>25</maven.compiler.source>
|
|
<maven.compiler.target>25</maven.compiler.target>
|
|
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
|
</properties>
|
|
|
|
<repositories>
|
|
<!-- Hytale plugin API repo (placeholder - use local JAR if not available) -->
|
|
<repository>
|
|
<id>hytale-plugins</id>
|
|
<url>https://maven.hytale.com/plugins</url>
|
|
</repository>
|
|
</repositories>
|
|
|
|
<dependencies>
|
|
<!-- Hytale Server API - provided at runtime -->
|
|
<dependency>
|
|
<groupId>com.hytale</groupId>
|
|
<artifactId>server-api</artifactId>
|
|
<version>1.0.0</version>
|
|
<scope>provided</scope>
|
|
</dependency>
|
|
|
|
<!-- Nitrado WebServer Plugin API - for registering HTTP endpoints -->
|
|
<dependency>
|
|
<groupId>com.nitrado.hytale</groupId>
|
|
<artifactId>webserver-api</artifactId>
|
|
<version>1.0.0</version>
|
|
<scope>provided</scope>
|
|
</dependency>
|
|
|
|
<!-- JSON processing -->
|
|
<dependency>
|
|
<groupId>com.google.code.gson</groupId>
|
|
<artifactId>gson</artifactId>
|
|
<version>2.11.0</version>
|
|
</dependency>
|
|
|
|
<!-- HTTP client for LiteLLM -->
|
|
<dependency>
|
|
<groupId>com.squareup.okhttp3</groupId>
|
|
<artifactId>okhttp</artifactId>
|
|
<version>4.12.0</version>
|
|
</dependency>
|
|
|
|
<!-- Annotations -->
|
|
<dependency>
|
|
<groupId>org.jetbrains</groupId>
|
|
<artifactId>annotations</artifactId>
|
|
<version>26.0.1</version>
|
|
<scope>provided</scope>
|
|
</dependency>
|
|
</dependencies>
|
|
|
|
<build>
|
|
<finalName>SubNet_ClaudeNpc</finalName>
|
|
<plugins>
|
|
<plugin>
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
<artifactId>maven-compiler-plugin</artifactId>
|
|
<version>3.13.0</version>
|
|
<configuration>
|
|
<source>25</source>
|
|
<target>25</target>
|
|
<release>25</release>
|
|
</configuration>
|
|
</plugin>
|
|
|
|
<plugin>
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
<artifactId>maven-shade-plugin</artifactId>
|
|
<version>3.6.0</version>
|
|
<executions>
|
|
<execution>
|
|
<phase>package</phase>
|
|
<goals>
|
|
<goal>shade</goal>
|
|
</goals>
|
|
<configuration>
|
|
<minimizeJar>true</minimizeJar>
|
|
<relocations>
|
|
<relocation>
|
|
<pattern>com.google.gson</pattern>
|
|
<shadedPattern>at.subnet.hytale.claude.shaded.gson</shadedPattern>
|
|
</relocation>
|
|
<relocation>
|
|
<pattern>okhttp3</pattern>
|
|
<shadedPattern>at.subnet.hytale.claude.shaded.okhttp3</shadedPattern>
|
|
</relocation>
|
|
<relocation>
|
|
<pattern>okio</pattern>
|
|
<shadedPattern>at.subnet.hytale.claude.shaded.okio</shadedPattern>
|
|
</relocation>
|
|
</relocations>
|
|
</configuration>
|
|
</execution>
|
|
</executions>
|
|
</plugin>
|
|
|
|
<plugin>
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
<artifactId>maven-jar-plugin</artifactId>
|
|
<version>3.4.2</version>
|
|
<configuration>
|
|
<archive>
|
|
<manifestEntries>
|
|
<Plugin-Name>SubNet:ClaudeNpc</Plugin-Name>
|
|
<Plugin-Version>${project.version}</Plugin-Version>
|
|
<Plugin-Author>Sub-Net</Plugin-Author>
|
|
</manifestEntries>
|
|
</archive>
|
|
</configuration>
|
|
</plugin>
|
|
</plugins>
|
|
|
|
<resources>
|
|
<resource>
|
|
<directory>src/main/resources</directory>
|
|
<filtering>true</filtering>
|
|
</resource>
|
|
</resources>
|
|
</build>
|
|
</project>
|