feat: enhance agent execution flow with multi-execution view and improved error handling

- Added multi-execution view to display multiple execution statuses.
- Improved error handling in agent triggering to surface failures.
- Updated execution view to support live updates via SSE and added a log panel for node logs.
- Enhanced pipeline canvas to display node statuses during execution.
- Introduced new fields in the build node form for Docker configurations.
- Updated API to support execution streaming and enhanced node catalog descriptions.
This commit is contained in:
patel-lyzr
2026-05-13 22:15:08 +05:30
parent 0a1874e736
commit 0284ff768a
27 changed files with 2598 additions and 203 deletions
+7 -1
View File
@@ -161,10 +161,16 @@ export const api = {
triggerAgent: (id: string) =>
fetch(`${base}/api/agents/${id}/trigger`, { method: "POST" }).then(
handle<{ executionIds: string[] }>
handle<{
executionIds: string[];
failures?: { pipelineId: string; reason: string; error?: string }[];
}>
),
// --- runs ---
/** Returns the EventSource URL for SSE streaming of an execution. */
executionStreamURL: (id: string) => `${base}/api/executions/${id}/stream`,
listRuns: (params?: { pipelineId?: string; limit?: number }) => {
const qs = new URLSearchParams();
if (params?.pipelineId) qs.set("pipeline_id", params.pipelineId);
+9 -1
View File
@@ -58,11 +58,19 @@ export const CATALOG: CatalogEntry[] = [
{
type: "flow-nodes-base.build",
label: "Build",
description: "Clone the agent repo and run a build command (e.g. docker build).",
description: "Clone the agent repo and build an OCI image via BuildKit (or run a shell command).",
icon: Hammer,
color: "bg-amber-500",
outputs: 1,
defaults: {
mode: "docker",
dockerfile: "Dockerfile",
context: ".",
imageName: "",
registry: "registry:5000",
platform: "linux/amd64",
buildArgs: "",
// shell-mode fallback fields:
command: "docker build -t $AGENT_NAME:$COMMIT_SHA .",
workdir: ".",
timeoutSeconds: 600,