mirror of
https://github.com/open-gitagent/langship.sh.git
synced 2026-08-03 07:21:04 +02:00
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:
+7
-1
@@ -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);
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user