fix(agent-runner): clean plugin review issues

This commit is contained in:
huanghuoguoguo
2026-06-06 14:34:40 +08:00
committed by huanghuoguoguo
parent f1a44ea8a8
commit d347df02f6
18 changed files with 71 additions and 73 deletions

View File

@@ -472,7 +472,12 @@ class PluginRuntimeConnector(ManagedRuntimeConnector):
)
file_bytes = download_resp.content
self._inspect_plugin_package(file_bytes, task_context)
plugin_author, plugin_name = self._inspect_plugin_package(
file_bytes,
task_context,
)
if task_context is not None and plugin_author and plugin_name:
task_context.metadata['plugin_name'] = f'{plugin_author}/{plugin_name}'
file_key = await self.handler.send_file(file_bytes, 'lbpkg')
install_info['plugin_file_key'] = file_key
self.ap.logger.info(f'Transfered file {file_key} to plugin runtime')