mirror of
https://github.com/langbot-app/LangBot.git
synced 2026-10-26 18:35:38 +08:00
feat(runner): unify plugin execution across agents and event processors
This commit is contained in:
@@ -7,7 +7,6 @@ import {
|
||||
FileText,
|
||||
PanelTop,
|
||||
Bot,
|
||||
Zap,
|
||||
} from 'lucide-react';
|
||||
import { Badge } from '@/components/ui/badge';
|
||||
|
||||
@@ -33,8 +32,7 @@ export default function PluginComponentList({
|
||||
KnowledgeEngine: <Book className="w-5 h-5" />,
|
||||
Parser: <FileText className="w-5 h-5" />,
|
||||
Page: <PanelTop className="w-5 h-5" />,
|
||||
AgentRunner: <Bot className="w-5 h-5" />,
|
||||
EventProcessor: <Zap className="w-5 h-5" />,
|
||||
Runner: <Bot className="w-5 h-5" />,
|
||||
};
|
||||
|
||||
const componentKindList = Object.keys(components || {});
|
||||
|
||||
@@ -5,7 +5,6 @@ import {
|
||||
Book,
|
||||
FileText,
|
||||
Hash,
|
||||
Zap,
|
||||
Wrench,
|
||||
type LucideIcon,
|
||||
} from 'lucide-react';
|
||||
@@ -17,6 +16,5 @@ export const pluginComponentIconMap: Record<string, LucideIcon> = {
|
||||
KnowledgeEngine: Book,
|
||||
Parser: FileText,
|
||||
Page: AppWindow,
|
||||
AgentRunner: Bot,
|
||||
EventProcessor: Zap,
|
||||
Runner: Bot,
|
||||
};
|
||||
|
||||
@@ -18,7 +18,6 @@ import { ToggleGroup, ToggleGroupItem } from '@/components/ui/toggle-group';
|
||||
import {
|
||||
Search,
|
||||
Puzzle,
|
||||
Zap,
|
||||
Server,
|
||||
Sparkles,
|
||||
Wrench,
|
||||
@@ -72,8 +71,7 @@ const MARKET_COMPONENT_VALUES = [
|
||||
'KnowledgeEngine',
|
||||
'Parser',
|
||||
'Page',
|
||||
'AgentRunner',
|
||||
'EventProcessor',
|
||||
'Runner',
|
||||
];
|
||||
|
||||
function getComponentFilterFromQuery(
|
||||
@@ -242,15 +240,10 @@ function MarketPageContent({
|
||||
icon: AppWindow,
|
||||
},
|
||||
{
|
||||
value: 'AgentRunner',
|
||||
label: t('market.componentName.AgentRunner'),
|
||||
value: 'Runner',
|
||||
label: t('market.componentName.Runner'),
|
||||
icon: Bot,
|
||||
},
|
||||
{
|
||||
value: 'EventProcessor',
|
||||
label: t('market.componentName.EventProcessor'),
|
||||
icon: Zap,
|
||||
},
|
||||
];
|
||||
|
||||
// 获取当前排序参数
|
||||
|
||||
Reference in New Issue
Block a user