fix(agent-runner): clean plugin review issues

This commit is contained in:
huanghuoguoguo
2026-06-06 14:34:40 +08:00
parent 754f7197c5
commit cb33bf3260
18 changed files with 71 additions and 73 deletions

View File

@@ -468,7 +468,12 @@ class PluginRuntimeConnector(ManagedRuntimeConnector):
)
file_bytes = download_resp.content
self._extract_deps_metadata(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')