mirror of
https://github.com/langbot-app/LangBot.git
synced 2026-07-22 12:26:08 +00:00
chore(agent-runner): keep base package dependency inspection
This commit is contained in:
@@ -469,9 +469,10 @@ class PluginRuntimeConnector(ManagedRuntimeConnector):
|
|||||||
if download_resp.status_code != 200:
|
if download_resp.status_code != 200:
|
||||||
raise Exception(
|
raise Exception(
|
||||||
f'Failed to download plugin {plugin_author}/{plugin_name}: {download_resp.status_code}'
|
f'Failed to download plugin {plugin_author}/{plugin_name}: {download_resp.status_code}'
|
||||||
)
|
)
|
||||||
|
|
||||||
file_bytes = download_resp.content
|
file_bytes = download_resp.content
|
||||||
|
self._inspect_plugin_package(file_bytes, task_context)
|
||||||
file_key = await self.handler.send_file(file_bytes, 'lbpkg')
|
file_key = await self.handler.send_file(file_bytes, 'lbpkg')
|
||||||
install_info['plugin_file_key'] = file_key
|
install_info['plugin_file_key'] = file_key
|
||||||
self.ap.logger.info(f'Transfered file {file_key} to plugin runtime')
|
self.ap.logger.info(f'Transfered file {file_key} to plugin runtime')
|
||||||
|
|||||||
Reference in New Issue
Block a user