feat: support latest package identifier

This commit is contained in:
Yeuoly 2024-10-28 15:56:15 +08:00
parent c657378d06
commit 5bf86ff66d
No known key found for this signature in database
GPG Key ID: A66E7E320FB19F61
2 changed files with 2 additions and 0 deletions

View File

@ -106,6 +106,7 @@ class PluginEntity(BasePluginEntity):
runtime_type: str
version: str
latest_version: Optional[str] = None
latest_unique_identifier: Optional[str] = None
source: PluginInstallationSource
meta: Mapping[str, Any]

View File

@ -35,6 +35,7 @@ class PluginService:
if plugin.plugin_id in manifests:
# set latest_version
plugin.latest_version = manifests[plugin.plugin_id].latest_version
plugin.latest_unique_identifier = manifests[plugin.plugin_id].latest_package_identifier
return plugins