mirror of
https://github.com/langbot-app/LangBot.git
synced 2026-07-25 05:46:13 +00:00
feat(sidebar): mark Agent entries as Agent or Pipeline
Add a trailing badge (icon + label) to each entry in the sidebar Agent section so users can tell Agent orchestration apart from legacy Pipeline. Thread the agent `kind` field through SidebarEntityItem. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
committed by
huanghuoguoguo
parent
ef344ec8cc
commit
56cd6a74d4
@@ -32,6 +32,8 @@ import {
|
|||||||
Server,
|
Server,
|
||||||
Puzzle,
|
Puzzle,
|
||||||
RefreshCcw,
|
RefreshCcw,
|
||||||
|
Bot,
|
||||||
|
Workflow,
|
||||||
} from 'lucide-react';
|
} from 'lucide-react';
|
||||||
import { useTheme } from '@/components/providers/theme-provider';
|
import { useTheme } from '@/components/providers/theme-provider';
|
||||||
|
|
||||||
@@ -774,6 +776,18 @@ function NavItems({
|
|||||||
/>
|
/>
|
||||||
) : null}
|
) : null}
|
||||||
<span className="truncate">{item.name}</span>
|
<span className="truncate">{item.name}</span>
|
||||||
|
{item.kind && (
|
||||||
|
<span className="ml-auto flex shrink-0 items-center gap-0.5 text-[10px] text-muted-foreground">
|
||||||
|
{item.kind === 'pipeline' ? (
|
||||||
|
<Workflow className="size-3" />
|
||||||
|
) : (
|
||||||
|
<Bot className="size-3" />
|
||||||
|
)}
|
||||||
|
{item.kind === 'pipeline'
|
||||||
|
? t('agents.kindBadgePipeline')
|
||||||
|
: t('agents.kindBadgeAgent')}
|
||||||
|
</span>
|
||||||
|
)}
|
||||||
{item.debug && (
|
{item.debug && (
|
||||||
<Bug className="size-3.5 shrink-0 text-orange-400" />
|
<Bug className="size-3.5 shrink-0 text-orange-400" />
|
||||||
)}
|
)}
|
||||||
|
|||||||
@@ -28,6 +28,8 @@ export interface SidebarEntityItem {
|
|||||||
debug?: boolean;
|
debug?: boolean;
|
||||||
// Set when this item appears in the unified extensions list
|
// Set when this item appears in the unified extensions list
|
||||||
extensionType?: 'plugin' | 'mcp' | 'skill';
|
extensionType?: 'plugin' | 'mcp' | 'skill';
|
||||||
|
// Agent-specific: distinguishes Agent orchestration from legacy Pipeline
|
||||||
|
kind?: 'agent' | 'pipeline';
|
||||||
}
|
}
|
||||||
|
|
||||||
// Plugin page registered by a plugin
|
// Plugin page registered by a plugin
|
||||||
@@ -123,6 +125,7 @@ export function SidebarDataProvider({
|
|||||||
description: p.description,
|
description: p.description,
|
||||||
emoji: p.emoji,
|
emoji: p.emoji,
|
||||||
updatedAt: p.updated_at,
|
updatedAt: p.updated_at,
|
||||||
|
kind: p.kind,
|
||||||
})),
|
})),
|
||||||
);
|
);
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
|
|||||||
@@ -537,6 +537,8 @@ const enUS = {
|
|||||||
agentOrchestrationDescription:
|
agentOrchestrationDescription:
|
||||||
'Event-first handling logic for messages, group members, friends, feedback, and other EBA events.',
|
'Event-first handling logic for messages, group members, friends, feedback, and other EBA events.',
|
||||||
pipelineType: 'Pipeline',
|
pipelineType: 'Pipeline',
|
||||||
|
kindBadgeAgent: 'Agent',
|
||||||
|
kindBadgePipeline: 'Pipeline',
|
||||||
pipelineTypeDescription:
|
pipelineTypeDescription:
|
||||||
'Keep the existing no-code message pipeline for backward compatibility. It only handles message events.',
|
'Keep the existing no-code message pipeline for backward compatibility. It only handles message events.',
|
||||||
allEvents: 'Supports all EBA events',
|
allEvents: 'Supports all EBA events',
|
||||||
|
|||||||
@@ -521,6 +521,8 @@ const jaJP = {
|
|||||||
agentOrchestrationDescription:
|
agentOrchestrationDescription:
|
||||||
'メッセージ、グループメンバー、友だち、フィードバックなどの EBA イベント向けの処理ロジックです。',
|
'メッセージ、グループメンバー、友だち、フィードバックなどの EBA イベント向けの処理ロジックです。',
|
||||||
pipelineType: 'Pipeline',
|
pipelineType: 'Pipeline',
|
||||||
|
kindBadgeAgent: 'Agent',
|
||||||
|
kindBadgePipeline: 'パイプライン',
|
||||||
pipelineTypeDescription:
|
pipelineTypeDescription:
|
||||||
'既存のノーコードメッセージ Pipeline を互換性のため保持します。メッセージイベントのみ処理できます。',
|
'既存のノーコードメッセージ Pipeline を互換性のため保持します。メッセージイベントのみ処理できます。',
|
||||||
allEvents: 'すべての EBA イベントに対応',
|
allEvents: 'すべての EBA イベントに対応',
|
||||||
|
|||||||
@@ -516,6 +516,8 @@ const zhHans = {
|
|||||||
agentOrchestrationDescription:
|
agentOrchestrationDescription:
|
||||||
'面向 EBA 事件的处理逻辑,可用于消息、群成员、好友、反馈等事件。',
|
'面向 EBA 事件的处理逻辑,可用于消息、群成员、好友、反馈等事件。',
|
||||||
pipelineType: 'Pipeline',
|
pipelineType: 'Pipeline',
|
||||||
|
kindBadgeAgent: 'Agent',
|
||||||
|
kindBadgePipeline: '流水线',
|
||||||
pipelineTypeDescription:
|
pipelineTypeDescription:
|
||||||
'保留现有无代码消息流水线,兼容旧配置,只能处理消息事件。',
|
'保留现有无代码消息流水线,兼容旧配置,只能处理消息事件。',
|
||||||
allEvents: '支持全部 EBA 事件',
|
allEvents: '支持全部 EBA 事件',
|
||||||
|
|||||||
Reference in New Issue
Block a user