From 888be71639f5c29f9b31ae0a177e7777f4ef7423 Mon Sep 17 00:00:00 2001 From: Harry Date: Wed, 7 Jan 2026 11:15:52 +0800 Subject: [PATCH] feat: command node output variables --- web/app/components/workflow/block-icon.tsx | 3 +- web/app/components/workflow/constants.ts | 20 +++++++++++++ .../nodes/_base/components/variable/utils.ts | 26 +++++++++++++++++ .../workflow/nodes/command/panel.tsx | 28 +++++++++++++++++++ web/i18n/en-US/workflow.json | 4 +++ 5 files changed, 80 insertions(+), 1 deletion(-) diff --git a/web/app/components/workflow/block-icon.tsx b/web/app/components/workflow/block-icon.tsx index 67ab961725..9f9dbdbc83 100644 --- a/web/app/components/workflow/block-icon.tsx +++ b/web/app/components/workflow/block-icon.tsx @@ -25,6 +25,7 @@ import { TemplatingTransform, VariableX, WebhookLine, + WindowCursor, } from '@/app/components/base/icons/src/vender/workflow' import { cn } from '@/utils/classnames' import { BlockEnum } from './types' @@ -45,7 +46,7 @@ const DEFAULT_ICON_MAP: Record> = ({ /> + +
+ + <> + + + + + + +
) } diff --git a/web/i18n/en-US/workflow.json b/web/i18n/en-US/workflow.json index 8846039bbf..10299ddec3 100644 --- a/web/i18n/en-US/workflow.json +++ b/web/i18n/en-US/workflow.json @@ -410,6 +410,10 @@ "nodes.code.syncFunctionSignature": "Sync function signature to code", "nodes.command.command": "Command", "nodes.command.commandPlaceholder": "Enter the command to execute, e.g., ls -la", + "nodes.command.outputVars.exitCode": "Exit code of the command", + "nodes.command.outputVars.pid": "Process ID of the command", + "nodes.command.outputVars.stderr": "Standard error from command execution", + "nodes.command.outputVars.stdout": "Standard output from command execution", "nodes.command.seconds": "seconds", "nodes.command.timeout": "Timeout", "nodes.command.workingDirectory": "Working Directory",