+ {#if selectedNode?.startsWith(AI_TOOL_MESSAGE_PREFIX)}
+
+ {:else if selectedNode?.startsWith(AI_MCP_TOOL_CALL_PREFIX)}
+ {@const [, agentModuleId, toolCallIndex] = selectedNode.split('-')}
+ {@const agentNode = localModuleStates?.[agentModuleId]}
+ {@const agentActions = agentNode?.agent_actions}
+ {@const mcpActionIndex = parseInt(toolCallIndex)}
+ {@const mcpAction =
+ agentActions &&
+ mcpActionIndex >= 0 &&
+ mcpActionIndex < agentActions.length
+ ? agentActions[mcpActionIndex]
+ : undefined}
+ {#if mcpAction?.type === 'mcp_tool_call' && agentNode?.result?.messages}
+ {@const message = agentNode.result.messages.find(
+ (m: { agent_action?: { call_id?: string }; content?: any }) =>
+ m.agent_action?.call_id === mcpAction.call_id
+ )}
+
+ {/if}
+ {:else if selectedNode?.startsWith(AI_WEBSEARCH_PREFIX)}
-
- {:else if selectedNode?.startsWith(AI_MCP_TOOL_CALL_PREFIX)}
- {@const [, agentModuleId, toolCallIndex] = selectedNode.split('-')}
- {@const agentNode = localModuleStates?.[agentModuleId]}
- {@const agentActions = agentNode?.agent_actions}
- {@const mcpActionIndex = parseInt(toolCallIndex)}
- {@const mcpAction =
- agentActions && mcpActionIndex >= 0 && mcpActionIndex < agentActions.length
- ? agentActions[mcpActionIndex]
- : undefined}
- {#if mcpAction?.type === 'mcp_tool_call' && agentNode?.result?.messages}
- {@const message = agentNode.result.messages.find(
- (m: { agent_action?: { call_id?: string }; content?: any }) =>
- m.agent_action?.call_id === mcpAction.call_id
- )}
-
- {#if node.flow_jobs_results}
-
Selected subflow
+ {:else if selectedNode == 'start'}
+ {#if job.args}
+
+ {:else}
+
No arguments
{/if}
-
-
-
-
+ Result of step as collection of all subflows
+
+
- {#if node.duration_ms}
-
-
- {msToSec(node.duration_ms)} s
-
- {/if}
- {#if node.job_id && !isReplay}
-
+ {/if}
+
+ {#if node.flow_jobs_results}
+
Selected subflow
+ {/if}
+
+
+
+
+ {#if node.duration_ms}
+
+
+ {msToSec(node.duration_ms)} s
+
+ {/if}
+ {#if node.job_id && !isReplay}
+
+ {/if}
+
+ {#if !node.isListJob}
+
+
Inputs
- {truncateRev(node.job_id ?? '', 10)}
-
-
+
+
+ {/if}
+ {#if node.workflow_as_code_status}
+
{/if}
- {#if !node.isListJob}
-
- {/if}
- {#if node.workflow_as_code_status}
-
- {/if}
-
-
{
- if (module) {
- const storeKey = parentLoopsPrefix + module.id + '-' + idx
- toolCallStore?.setStoredToolCallJob(storeKey, job)
+ {
+ if (module) {
+ const storeKey = parentLoopsPrefix + module.id + '-' + idx
+ toolCallStore?.setStoredToolCallJob(storeKey, job)
+ }
}
}
- }
- : undefined}
- />
+ : undefined}
+ />
+
-
- {:else}
-
The execution of this node has no information attached to it. The job
- likely did not run yet
- {/if}
- {:else}
Select a node to see its details here
{/if}
-
- {:else if rightColumnSelect == 'node_definition'}
- {@const node = selectedNode ? localModuleStates[selectedNode] : undefined}
-
- {:else if rightColumnSelect == 'user_states'}
-
-
-
- {:else if rightColumnSelect == 'tracing'}
- {@const node = selectedNode ? localModuleStates[selectedNode] : undefined}
- {#if node?.job_id}
-
- {:else}
-
Select a node with a job to see HTTP request traces
+ {:else}
+
The execution of this node has no information attached to it. The job
+ likely did not run yet
+ {/if}
+ {:else}
Select a node to see its details here
{/if}
+
+ {:else if rightColumnSelect == 'node_definition'}
+ {@const node = selectedNode ? localModuleStates[selectedNode] : undefined}
+
+ {:else if rightColumnSelect == 'user_states'}
+
+
+
+ {:else if rightColumnSelect == 'tracing'}
+ {@const node = selectedNode ? localModuleStates[selectedNode] : undefined}
+ {#if node?.job_id}
+
+ {:else}
+
Select a node with a job to see HTTP request traces
+ {/if}
{/if}
- {/if}
+