feat: Human Input Node (#32060)

The frontend and backend implementation for the human input node.

Co-authored-by: twwu <twwu@dify.ai>
Co-authored-by: JzoNg <jzongcode@gmail.com>
Co-authored-by: yyh <92089059+lyzno1@users.noreply.github.com>
Co-authored-by: zhsama <torvalds@linux.do>
This commit is contained in:
QuantumGhost
2026-02-09 14:57:23 +08:00
committed by GitHub
parent 56e3a55023
commit a1fc280102
474 changed files with 32667 additions and 2050 deletions

View File

@ -50,6 +50,9 @@ const MetaData: FC<Props> = ({
{status === 'stopped' && (
<span>STOP</span>
)}
{status === 'paused' && (
<span>PENDING</span>
)}
</div>
</div>
<div className="flex">
@ -88,10 +91,10 @@ const MetaData: FC<Props> = ({
<div className="flex">
<div className="system-xs-regular w-[104px] shrink-0 truncate px-2 py-1.5 text-text-tertiary">{t('meta.tokens', { ns: 'runLog' })}</div>
<div className="system-xs-regular grow px-2 py-1.5 text-text-secondary">
{status === 'running' && (
<div className="my-1 h-2 w-[48px] rounded-sm bg-text-quaternary" />
{['running', 'paused'].includes(status) && (
<div className="my-1 h-2 w-[48px] animate-pulse rounded-sm bg-text-quaternary" />
)}
{status !== 'running' && (
{!['running', 'paused'].includes(status) && (
<span>{`${tokens || 0} Tokens`}</span>
)}
</div>