diff --git a/README.md b/README.md index bf31798..bb54e2f 100644 --- a/README.md +++ b/README.md @@ -76,10 +76,10 @@ Oder manuell: ```bash # .txz von Gitea laden -curl -O http://192.168.1.2:4000/michael/MUA-Mikes-Unraid-Agent/raw/branch/main/dist/mua-2026.08.21.r013-x86_64-1.txz +curl -O http://192.168.1.2:4000/michael/MUA-Mikes-Unraid-Agent/raw/branch/main/dist/mua-2026.08.21.r014-x86_64-1.txz # Installieren -upgradepkg --install-new mua-2026.08.21.r013-x86_64-1.txz +upgradepkg --install-new mua-2026.08.21.r014-x86_64-1.txz ``` ### 2. Service starten @@ -94,7 +94,7 @@ Der Service startet automatisch bei jedem Boot (SysVinit). ```bash curl http://192.168.1.2:3002/health -# → {"status":"ok","version":"2026.08.21.r013","auth":"required"} +# → {"status":"ok","version":"2026.08.21.r014","auth":"required"} ``` --- diff --git a/dist/mua-2026.08.21.r014-x86_64-1.txz b/dist/mua-2026.08.21.r014-x86_64-1.txz new file mode 100644 index 0000000..5b4a087 Binary files /dev/null and b/dist/mua-2026.08.21.r014-x86_64-1.txz differ diff --git a/package.json b/package.json index 94e9741..1e0b930 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "mua", - "version": "2026.08.21.r013", + "version": "2026.08.21.r014", "description": "Mikes Unraid Agent - MCP over HTTP (Streamable HTTP) for Unraid", "type": "module", "main": "src/index.ts", diff --git a/plugin/mua.plg b/plugin/mua.plg index 93ccb08..a0f7704 100644 --- a/plugin/mua.plg +++ b/plugin/mua.plg @@ -2,13 +2,13 @@ - + - - + + ]> +### 2026.08.21.r014 +- CA-Template-Normalisierung: Fehlende Mode-Attribute werden ergänzt, damit Unraids Docker-Manager Community-Apps ohne PHP-Warnungen einliest. ### 2026.08.21.r013 - CA-Port-Override-Fix: Numerische XML-Ziele wie Port 8080 werden nach PHPs JSON-Dekodierung sicher als Text normalisiert. ### 2026.08.21.r012 @@ -109,7 +111,7 @@ Das .txz enthält: install/doinst.sh (läuft nach Installation) =========================================== --> - + &txzURL; &txzSHA256; diff --git a/plugin/plugin.json b/plugin/plugin.json index e1df735..a20cc33 100644 --- a/plugin/plugin.json +++ b/plugin/plugin.json @@ -1,7 +1,7 @@ { "name": "mua", "author": "Michael", - "version": "2026.08.21.r013", + "version": "2026.08.21.r014", "minver": "7.0.0", "pluginDirectory": "/usr/local/emhttp/plugins/mua", "configDirectory": "/boot/config/plugins/mua", diff --git a/scripts/unraid-docker-mcp-helper.php b/scripts/unraid-docker-mcp-helper.php index 0644331..98aea1d 100644 --- a/scripts/unraid-docker-mcp-helper.php +++ b/scripts/unraid-docker-mcp-helper.php @@ -312,6 +312,15 @@ function ca_install(string $template_url, string $name, string $overrides_json, if (!$found) fail("Override target not present in template: $target"); } + // Some CA templates omit Mode on variables. Unraid's Docker manager reads + // the attribute unconditionally, so normalize it before saving the user's + // template to avoid PHP warnings while preserving an empty mode. + foreach ($dom->getElementsByTagName('Config') as $config) { + if (!$config->hasAttribute('Mode')) { + $config->setAttribute('Mode', ''); + } + } + $dom->formatOutput = true; if ($dom->save($template_path) === false) fail('Unable to write Unraid user template'); chmod($template_path, 0600); diff --git a/src/helpers.ts b/src/helpers.ts index 09ef556..abaf14c 100644 --- a/src/helpers.ts +++ b/src/helpers.ts @@ -14,7 +14,7 @@ import { createHash, randomUUID } from "node:crypto"; // ── Konstanten ────────────────────────────────────────────────────────── export const MUA_SERVER_NAME = "mua"; -export const MUA_VERSION = "2026.08.21.r013"; +export const MUA_VERSION = "2026.08.21.r014"; export const MUA_PROTOCOL_VERSION = "2025-03-26"; export const PHP_HELPER = "/usr/local/bin/unraid-docker-mcp-helper.php"; export const STATUS_HELPER = "/usr/local/bin/unraid-mcp-status-helper.php";