diff --git a/docker/Dockerfile b/docker/Dockerfile index 8697507..1682b65 100644 --- a/docker/Dockerfile +++ b/docker/Dockerfile @@ -19,7 +19,7 @@ # - AIR_GAPPED_FRIENDLY: a production container built from this image # works offline as long as it was built with network access. # -# Forked from andreab67/hermes-hexus (BSD-3-Clause) +# Forked from andreab67/hermes-memory-pgvector (BSD-3-Clause) ARG PYTHON_VERSION=3.11 ARG DEBIAN_RELEASE=bookworm diff --git a/docker/compose.yml b/docker/compose.yml index f8a13d3..aeb66fd 100644 --- a/docker/compose.yml +++ b/docker/compose.yml @@ -6,7 +6,7 @@ # mcp → pg + long-lived MCP server (stdio inside the container; # operators expose it to editors/agents via their own bridge) # -# Forked from andreab67/hermes-hexus (BSD-3-Clause) +# Forked from andreab67/hermes-memory-pgvector (BSD-3-Clause) name: hexus diff --git a/docker/entrypoint.sh b/docker/entrypoint.sh index 2a768a3..5f2aa41 100755 --- a/docker/entrypoint.sh +++ b/docker/entrypoint.sh @@ -9,7 +9,7 @@ # NOTE: shebang is bash (not sh) so /dev/tcp/host/port connectivity checks work. # python:3.11-slim-bookworm ships with bash at /bin/bash. # -# Forked from andreab67/hermes-hexus (BSD-3-Clause) +# Forked from andreab67/hermes-memory-pgvector (BSD-3-Clause) set -eu diff --git a/hexus/__init__.py b/hexus/__init__.py index 6aba047..739d43d 100644 --- a/hexus/__init__.py +++ b/hexus/__init__.py @@ -1,6 +1,6 @@ """hexus — Postgres + hexus memory provider for hermes-agent. # -# Forked from andreab67/hermes-hexus (BSD-3-Clause). +# Forked from andreab67/hermes-memory-pgvector (BSD-3-Clause). # # Mirrors hermes-agent's built-in `memory` tool entries (MEMORY.md / USER.md # in tools/memory_tool.py) into a single Postgres table, adds 384-dim diff --git a/hexus/ccr/cache.py b/hexus/ccr/cache.py index d808744..04218e0 100644 --- a/hexus/ccr/cache.py +++ b/hexus/ccr/cache.py @@ -1,4 +1,4 @@ -# Forked from andreab67/hermes-hexus (BSD-3-Clause) +# Forked from andreab67/hermes-memory-pgvector (BSD-3-Clause) import threading from typing import Dict, Optional diff --git a/hexus/embed.py b/hexus/embed.py index c855231..773704e 100644 --- a/hexus/embed.py +++ b/hexus/embed.py @@ -1,6 +1,6 @@ """embed.py — embedding client for the hexus memory plugin. # -# Forked from andreab67/hermes-hexus (BSD-3-Clause). +# Forked from andreab67/hermes-memory-pgvector (BSD-3-Clause). # # Originally a module-level `embed(text, *, base_url, model)` that posted # to an OpenAI-compatible /v1/embeddings or Ollama /api/embed endpoint diff --git a/hexus/embedder.py b/hexus/embedder.py index c872f6e..e69153e 100644 --- a/hexus/embedder.py +++ b/hexus/embedder.py @@ -1,6 +1,6 @@ """embedder.py — local sentence-transformers embedder for the hexus memory plugin. # -# Forked from andreab67/hermes-hexus (BSD-3-Clause). +# Forked from andreab67/hermes-memory-pgvector (BSD-3-Clause). # # Replaces the upstream HTTP embedder with a local MiniLM-L6-v2 model # loaded once at first use. Produces 384-dim vectors. The whole model diff --git a/hexus/migrations/001_schema.sql b/hexus/migrations/001_schema.sql index 93b0b65..74b42b7 100644 --- a/hexus/migrations/001_schema.sql +++ b/hexus/migrations/001_schema.sql @@ -1,6 +1,6 @@ -- 001_schema.sql — hexus memory plugin schema. -- --- Forked from andreab67/hermes-hexus (BSD-3-Clause). +-- Forked from andreab67/hermes-memory-pgvector (BSD-3-Clause). -- -- TWO tables, both in the existing hermes_memory database: -- memory_entries → mirrors hermes-agent's built-in `memory` tool diff --git a/hexus/pipeline/router.py b/hexus/pipeline/router.py index 1c8895c..7027704 100644 --- a/hexus/pipeline/router.py +++ b/hexus/pipeline/router.py @@ -1,4 +1,4 @@ -# Forked from andreab67/hermes-hexus (BSD-3-Clause) +# Forked from andreab67/hermes-memory-pgvector (BSD-3-Clause) import re import json diff --git a/hexus/store.py b/hexus/store.py index 8ff55c5..70a3b77 100644 --- a/hexus/store.py +++ b/hexus/store.py @@ -1,6 +1,6 @@ """store.py — Postgres ops for the hexus memory plugin. # -# Forked from andreab67/hermes-hexus (BSD-3-Clause). +# Forked from andreab67/hermes-memory-pgvector (BSD-3-Clause). # # Wraps psycopg3 + psycopg_pool. Mirrors hermes-agent's native built-in # memory model (`memory` tool's add/replace/remove on targets 'memory' / diff --git a/hexus/writer.py b/hexus/writer.py index e36e450..1bb8173 100644 --- a/hexus/writer.py +++ b/hexus/writer.py @@ -1,6 +1,6 @@ """writer.py — async write queue for the hexus memory plugin. # -# Forked from andreab67/hermes-hexus (BSD-3-Clause). +# Forked from andreab67/hermes-memory-pgvector (BSD-3-Clause). # # Decouples `on_memory_write` from the (potentially slow) embed + INSERT # path. Built-in memory tool fires the hook → we enqueue → background diff --git a/mcp_server/__init__.py b/mcp_server/__init__.py index 65c3acc..e2676f4 100644 --- a/mcp_server/__init__.py +++ b/mcp_server/__init__.py @@ -1,6 +1,6 @@ """mcp_server — Model Context Protocol server for hexus. -Forked from andreab67/hermes-hexus (BSD-3-Clause). +Forked from andreab67/hermes-memory-pgvector (BSD-3-Clause). Exposes the same Postgres + hexus memory store that the Hermes plugin uses to any MCP client (Claude Desktop, Cursor, custom agents) as a set diff --git a/mcp_server/cli.py b/mcp_server/cli.py index a402e5c..d862ecb 100644 --- a/mcp_server/cli.py +++ b/mcp_server/cli.py @@ -1,6 +1,6 @@ """mcp_server.cli — `hexus-mcp` console script entry point. -Forked from andreab67/hermes-hexus (BSD-3-Clause). +Forked from andreab67/hermes-memory-pgvector (BSD-3-Clause). Usage: hexus-mcp serve --transport stdio --dsn "dbname=... user=... host=..." diff --git a/mcp_server/server.py b/mcp_server/server.py index c5cde9e..e15088f 100644 --- a/mcp_server/server.py +++ b/mcp_server/server.py @@ -1,6 +1,6 @@ """mcp_server.server — FastMCP wiring for hexus. -Forked from andreab67/hermes-hexus (BSD-3-Clause). +Forked from andreab67/hermes-memory-pgvector (BSD-3-Clause). Each `@server.tool()` registers one of the pure functions in `tools.py` as an MCP tool. The MCP transport (stdio or streamable-http) is selected diff --git a/mcp_server/tools.py b/mcp_server/tools.py index 62afdd8..4f139f4 100644 --- a/mcp_server/tools.py +++ b/mcp_server/tools.py @@ -1,6 +1,6 @@ """mcp_server.tools — pure functions implementing the MCP tool surface. -Forked from andreab67/hermes-hexus (BSD-3-Clause). +Forked from andreab67/hermes-memory-pgvector (BSD-3-Clause). These functions are transport-agnostic; `server.py` wraps each one as an MCP tool. They're also the unit-test surface — every tool is testable diff --git a/pyproject.toml b/pyproject.toml index 5ab437e..0045320 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -74,7 +74,7 @@ mcp = [ [project.urls] Homepage = "https://github.com/codenamekt/hexus" Source = "https://github.com/codenamekt/hexus" -Upstream = "https://github.com/andreab67/hermes-hexus" +Upstream = "https://github.com/andreab67/hermes-memory-pgvector" Issues = "https://github.com/codenamekt/hexus/issues" Roadmap = "https://github.com/codenamekt/hexus/blob/main/PLAN.md" diff --git a/tests/test_conformance.py b/tests/test_conformance.py index 93a22e3..ba826e2 100644 --- a/tests/test_conformance.py +++ b/tests/test_conformance.py @@ -1,4 +1,4 @@ -# Forked from andreab67/hermes-hexus (BSD-3-Clause) +# Forked from andreab67/hermes-memory-pgvector (BSD-3-Clause) """Conformance tests to ensure HexusMemoryProvider matches the MemoryProvider plugin interface contract.""" from __future__ import annotations diff --git a/tests/test_mcp_server.py b/tests/test_mcp_server.py index aa81c71..c9269a2 100644 --- a/tests/test_mcp_server.py +++ b/tests/test_mcp_server.py @@ -1,6 +1,6 @@ """tests/test_mcp_server.py — tests for the MCP tool surface. -Forked from andreab67/hermes-hexus (BSD-3-Clause). +Forked from andreab67/hermes-memory-pgvector (BSD-3-Clause). Two layers: 1. **Tool-function tests** — exercise each pure function in