From dc564baf87760e3854c57f244fb82b3282e3e84f Mon Sep 17 00:00:00 2001 From: Worph Date: Sun, 4 Oct 2026 18:14:33 +0000 Subject: [PATCH] remove refreshes the plugin pipeline; spawned plugins advertise their container name (HOSTNAME) --- packages/meta-sort-core/src/api/UnifiedAPIServer.ts | 3 +++ .../meta-sort-core/src/container-plugins/ContainerManager.ts | 3 +++ 2 files changed, 6 insertions(+) diff --git a/packages/meta-sort-core/src/api/UnifiedAPIServer.ts b/packages/meta-sort-core/src/api/UnifiedAPIServer.ts index 93df230..492e1e2 100644 --- a/packages/meta-sort-core/src/api/UnifiedAPIServer.ts +++ b/packages/meta-sort-core/src/api/UnifiedAPIServer.ts @@ -1247,6 +1247,9 @@ export class UnifiedAPIServer { try { await this.containerManager.removePlugin(pluginId); + // Drop it from the processing pipeline too (else it lingers in + // /api/plugins until the next rescan or restart). + await this.getPluginManager?.()?.loadContainerPlugins(); return { success: true, message: `Plugin '${pluginId}' removed successfully` diff --git a/packages/meta-sort-core/src/container-plugins/ContainerManager.ts b/packages/meta-sort-core/src/container-plugins/ContainerManager.ts index cb47e7e..3472961 100644 --- a/packages/meta-sort-core/src/container-plugins/ContainerManager.ts +++ b/packages/meta-sort-core/src/container-plugins/ContainerManager.ts @@ -468,6 +468,9 @@ export class ContainerManager extends EventEmitter { // Scan shows it as bound elsewhere, never addable). BEACON_ADVERTISE_URL: `http://${containerName}:8080`, BEACON_BINDS: hostname(), + // Docker's own HOSTNAME is the container id; advertise a name + // an operator can read in the Scan card. + HOSTNAME: containerName, }, // Docker Desktop grouping stackName: this.stackName,