Skip to content

Commit 523f94f

Browse files
committed
fix(lib): add explain logic into compute phase
1 parent cd19917 commit 523f94f

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/if-run/lib/compute.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -145,6 +145,14 @@ const computeNode = async (node: Node, params: ComputeParams): Promise<any> => {
145145
if (isExecute(plugin)) {
146146
inputStorage = await plugin.execute(inputStorage, nodeConfig);
147147
node.outputs = inputStorage;
148+
149+
if (params.context.explainer) {
150+
addExplainData({
151+
pluginName,
152+
metadata: plugin.metadata,
153+
pluginData: params.context.initialize!.plugins[pluginName],
154+
});
155+
}
148156
debugLogger.setExecutingPluginName();
149157
}
150158
}

0 commit comments

Comments
 (0)