fix(plugins): use hosted catalogue endpoint

This commit is contained in:
yellowcooln committed 2026-09-04 11:00:03 -04:00
1 parent 9150264f49
commit 3e008cac26
4 files changed
+10 -7

No files matched your search

+2 -2
View File
@@ -643,8 +643,8 @@ storage:
# # root: "/var/lib/openhop_repeater/plugins"
# # Unix domain socket used by Repeater HTTP → plugin manager IPC
# # socket: "/var/lib/openhop_repeater/plugin-manager.sock"
# Optional override for the curated catalogue (default: openhop-dev/openhop-plugin-catalogue)
# catalogue_url: "https://raw.githubusercontent.com/openhop-dev/openhop-plugin-catalogue/main/catalogue.json"
# Optional override for the curated catalogue hosted on openHop's R2 endpoint
# catalogue_url: "https://repeater-plugins.openhop.dev/catalogue.json"
+2 -2
View File
@@ -254,14 +254,14 @@ Repeater can browse a curated static catalogue and install plugins from GitHub R
Default catalogue URL:
```text
https://raw.githubusercontent.com/openhop-dev/openhop-plugin-catalogue/main/catalogue.json
https://repeater-plugins.openhop.dev/catalogue.json
```
Override with:
```yaml
plugins:
catalogue_url: "https://raw.githubusercontent.com/openhop-dev/openhop-plugin-catalogue/main/catalogue.json"
catalogue_url: "https://repeater-plugins.openhop.dev/catalogue.json"
```
The catalogue lists plugin **identity and repository only**. Versions and wheel assets come from GitHub Releases on each plugin repo (draft and prerelease tags are ignored by default).
+1 -3
View File
@@ -14,9 +14,7 @@ from typing import Any, Callable, Optional
logger = logging.getLogger("PluginCatalogue")
DEFAULT_CATALOGUE_URL = (
"https://raw.githubusercontent.com/openhop-dev/openhop-plugin-catalogue/main/catalogue.json"
)
DEFAULT_CATALOGUE_URL = "https://repeater-plugins.openhop.dev/catalogue.json"
DEFAULT_CACHE_TTL_SECONDS = 600 # 10 minutes
SUPPORTED_SCHEMA = 1
USER_AGENT = "openhop-repeater-plugin-manager/1.0"
+5
View File
@@ -10,6 +10,7 @@ from urllib.request import Request
import pytest
from repeater.plugins.catalogue import (
DEFAULT_CATALOGUE_URL,
CatalogueClient,
CatalogueError,
parse_catalogue,
@@ -30,6 +31,10 @@ VALID = {
}
def test_default_catalogue_uses_openhop_r2_endpoint():
assert DEFAULT_CATALOGUE_URL == "https://repeater-plugins.openhop.dev/catalogue.json"
def test_parse_valid_catalogue():
cat = parse_catalogue(VALID)
assert cat.schema == 1