diff --git a/Docs/ASLM/content/docs/ASLM/Services/AslmApiServer.md b/Docs/ASLM/content/docs/ASLM/Services/AslmApiServer.md index 7ec9055..86e519e 100644 --- a/Docs/ASLM/content/docs/ASLM/Services/AslmApiServer.md +++ b/Docs/ASLM/content/docs/ASLM/Services/AslmApiServer.md @@ -395,7 +395,7 @@ Creates one host info object for the ASLM UI and web index. #### `private static string BuildHostRouteKey(string hostKey)` -**Purpose:** Builds the public route key used for one port-map host. +**Purpose:** Builds the public route key used for one port-map host. Delegates to `PortRegistry.BuildHostRouteKey`. --- diff --git a/Docs/ASLM/content/docs/ASLM/Services/ModuleRunner.md b/Docs/ASLM/content/docs/ASLM/Services/ModuleRunner.md index 41046a6..29c621c 100644 --- a/Docs/ASLM/content/docs/ASLM/Services/ModuleRunner.md +++ b/Docs/ASLM/content/docs/ASLM/Services/ModuleRunner.md @@ -47,6 +47,12 @@ Implements **`IDisposable`**. Subscribes to **`PortRegistry.PortsRedistributed`* --- +#### `public IReadOnlyList GetRunningModuleConfigs()` + +**Purpose:** Returns the module configurations for instances that currently have tracked live processes. The returned configs are the same snapshots stored at process launch time. + +--- + #### `public IReadOnlyList GetRunningModulesSnapshot()` **Purpose:** Id, name, and source path for modules with live processes. diff --git a/Docs/ASLM/content/docs/ASLM/Services/PortRegistry.md b/Docs/ASLM/content/docs/ASLM/Services/PortRegistry.md index a8eed83..59dfb7c 100644 --- a/Docs/ASLM/content/docs/ASLM/Services/PortRegistry.md +++ b/Docs/ASLM/content/docs/ASLM/Services/PortRegistry.md @@ -66,6 +66,30 @@ Internal owners use id prefix **`__`**. --- +#### `public IReadOnlyDictionary? TryGetAssignedPorts(string ownerId)` + +**Purpose:** Returns a read-only copy of all assigned port keys for one owner, or `null` when no assignment exists. Does not allocate new ports. + +--- + +#### `public string? TryGetModulePageUrl(ModuleConfig module)` + +**Purpose:** Returns the loopback root URL for the primary WebView port of a module, or `null` when no assignment exists. Does not allocate new ports. + +--- + +#### `public static string BuildLoopbackUrl(int port)` + +**Purpose:** Builds a loopback root URL for the given port number. + +--- + +#### `public static string BuildHostRouteKey(string hostKey)` + +**Purpose:** Converts a port-map host key to the URL route segment used by the ASLM API mirror. Strips known suffixes (`-port`, `_port`, ` port`) from the key. + +--- + #### `public int? TryGetPort(string moduleId, string portKey = "port")` **Purpose:** Lookup with fallback to **`http`**, then first assigned port.