plex: full nox module — client, tools and events (ADR 0044/0046)

Moves plex's API client and tools out of the shared hal sdk into the module,
so a Plex API change rebuilds only plex. Tools: status, search, sessions,
recently-added, refresh. And a real event design: it emits playback
started/stopped and item.added by watching the server, and consumes
module.*.download.completed to rescan so a downloader's fetch becomes a
visible item. Typechecks against the sdk; manifest parses with its emits/
consumes and broker own-secret.

Claude-Session: https://claude.ai/code/session_01LrgweAeERJYBg88c5cKDzF
This commit is contained in:
2026-09-04 02:23:23 +02:00
parent c2c26a29a9
commit 2526955712
6 changed files with 304 additions and 0 deletions
+11
View File
@@ -4,6 +4,17 @@
"capabilities": [
"container-runtime"
],
"emits": [
"module.plex.playback.started",
"module.plex.playback.stopped",
"module.plex.item.added"
],
"consumes": [
"module.*.download.completed"
],
"own-secrets": {
"broker": "/var/lib/plex/broker"
},
"listens": [
{
"port": 32400,