plex, redis: module runtime containers + declare self-consumed events (ADR 0052/0046)

plex gains a broker-bound tools/events runtime container (mesh-runtime-plex)
alongside its server, and a never-throwing plex_reachable health probe. redis and
postgres subscribe to their own lifecycle events in index.ts but declared no
consumes — so the substrate never made the queue the runtime binds and it crashed
on start (404). Declare the consume, as ADR 0046 requires. Proven end-to-end in the
mesh-lab: assigned-plex and assigned-redis both green.

Claude-Session: https://claude.ai/code/session_01LrgweAeERJYBg88c5cKDzF
This commit is contained in:
2026-09-04 22:29:41 +02:00
parent 67d8d0dcbd
commit 6615b5e3b3
7 changed files with 94 additions and 0 deletions
+6
View File
@@ -20,6 +20,12 @@ export function getPlexTools(plex: PlexClient): ToolDefinition[] {
return { server, libraries, sessions, recentlyAdded: recent };
},
},
{
name: "plex_reachable",
description: "Health probe: whether the Plex server answers, and which server it is. Never fails.",
input: {},
run: async () => plex.reachable(),
},
{
name: "plex_search",
description: "Search across all Plex libraries — movies, shows, episodes, music.",