Expose registered plugin runtime priority in the management listing
Problem
The authenticated GET /v0/management/plugins listing reports whether a plugin is registered and enabled, but does not report its effective runtime priority. The host already includes the priority in its registered-plugin snapshot. A configured priority is not a substitute: configuration can differ from the snapshot currently in use.
Management clients therefore cannot verify the priorities used to order registered plugins. This makes it difficult to reproduce and diagnose ordering decisions, particularly during configuration changes.
Reproduction
- Register a plugin and query the management plugin listing with an authorized management client.
- Inspect its entry:
registeredistrue, but no runtimepriorityis present. - Compare the listing with the host's registered-plugin snapshot, which contains a numeric priority for that plugin.
Proposed behavior
Add a numeric priority field to each registered plugin entry, taken from the host's RegisteredPlugins() snapshot. Include zero as a valid priority. Omit the field for entries that are discovered or configured but not registered; do not infer runtime priority from configuration. This is an additive response change and does not change plugin ordering or authorization.
Observed on CLIProxyAPI 8.0.57 (c2f402b45643f0740d70b9010fd7d8d0aab7ef65).