From 73c0fbe3a5d45c6349ac3e11987f5c9eed236add Mon Sep 17 00:00:00 2001 From: Hermes Agent Date: Sun, 25 Oct 2026 23:34:50 +1100 Subject: [PATCH] fix: resolve Ollama plugin dependencies cross-platform --- README.md | 2 ++ dashboard/manifest.json | 2 +- plugin.yaml | 4 ++-- requirements.txt | 2 +- 4 files changed, 6 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 444564b..f7d1452 100644 --- a/README.md +++ b/README.md @@ -129,6 +129,8 @@ https://gitea.beyondcloud.solutions/dennii/Hermes-Ollama_Models.git In Hermes Dashboard, open **Plugins**, choose **Install from repository**, enter the URL above, and install. The repository contains the root `plugin.yaml`, dashboard manifest, backend API, compiled frontend bundle, stylesheet, and an opt-in prerequisite declaration. On Linux, the Hermes installer will verify Ollama, install it with the official Ollama installer when missing, and install the plugin's `pypdf` dependency before committing the plugin into `~/.hermes/plugins/`. Ollama installation requires the Hermes container to run as root, which is the expected configuration for a privileged ZimaOS deployment. If the container is not running as root, the plugin install stops without enabling a partially configured plugin. After installation or an update, restart only the Hermes dashboard service if requested by the installer. +The manifest excludes `psycopg[binary]` on Android targets because Psycopg publishes no Android wheels; Hermes resolves plugin dependencies across platform markers even when running on Linux. PostgreSQL support remains available on supported platforms. The plugin version is 1.7.12. + The dashboard now includes a connection panel in the header. Enter an Ollama base URL, choose **Local** or **Remote**, and use **Test** before **Save**. Saved URLs are stored in Hermes plugin data with file permissions restricted to the Hermes account. Credential-bearing URLs are rejected. The plugin probes the configured local endpoint and known Docker endpoints, and tests a configured remote endpoint. A successful connection reports the Ollama version and installed model count. The active local endpoint continues to drive chat, status, load, and runtime telemetry. A URL saved from the dashboard takes precedence over the initial `OLLAMA_HOST` environment fallback, so the field can correct or replace an inherited container setting. diff --git a/dashboard/manifest.json b/dashboard/manifest.json index 3ececa9..060e684 100644 --- a/dashboard/manifest.json +++ b/dashboard/manifest.json @@ -3,7 +3,7 @@ "label": "Ollama Models", "description": "Inspect, manage, and chat with local Ollama models, including shared persistent conversations, performance metrics, images, PDFs, URLs, and live memory telemetry.", "icon": "Cpu", - "version": "1.7.11", + "version": "1.7.12", "tab": {"path": "/ollama-manager", "position": "after:models"}, "entry": "dist/index.js", "css": "dist/style.css", diff --git a/plugin.yaml b/plugin.yaml index b1278e5..f245ccd 100644 --- a/plugin.yaml +++ b/plugin.yaml @@ -1,10 +1,10 @@ name: ollama-manager -version: 1.7.11 +version: 1.7.12 description: Native dashboard manager and chat interface for local Ollama models, attachments, URLs, shared persistent conversations, performance metrics, and live runtime telemetry. auto_install_dependencies: true python_dependencies: - "pypdf>=6.0,<7.0" - - "psycopg[binary]>=3.2,<4.0" + - "psycopg[binary]>=3.2,<4.0; sys_platform != 'android'" external_dependencies: - name: Ollama check: bash scripts/install_ollama.sh --check diff --git a/requirements.txt b/requirements.txt index 990a5fd..8db67da 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,3 +1,3 @@ # PDF text extraction for Ollama Chat attachments pypdf>=6.0,<7.0 -psycopg[binary]>=3.2,<4.0 +psycopg[binary]>=3.2,<4.0; sys_platform != 'android'