From 523f94fa472d5f87ea124651f9aabffee9e18bf4 Mon Sep 17 00:00:00 2001 From: manushak Date: Fri, 9 Aug 2024 13:18:03 +0400 Subject: [PATCH] fix(lib): add explain logic into compute phase --- src/if-run/lib/compute.ts | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/if-run/lib/compute.ts b/src/if-run/lib/compute.ts index 710e15373..b4e0371d9 100644 --- a/src/if-run/lib/compute.ts +++ b/src/if-run/lib/compute.ts @@ -145,6 +145,14 @@ const computeNode = async (node: Node, params: ComputeParams): Promise => { if (isExecute(plugin)) { inputStorage = await plugin.execute(inputStorage, nodeConfig); node.outputs = inputStorage; + + if (params.context.explainer) { + addExplainData({ + pluginName, + metadata: plugin.metadata, + pluginData: params.context.initialize!.plugins[pluginName], + }); + } debugLogger.setExecutingPluginName(); } }