mirror of
https://github.com/langbot-app/LangBot.git
synced 2026-06-02 03:55:55 +00:00
update
This commit is contained in:
@@ -15,8 +15,8 @@ from langbot.pkg.workflow.entities import (
|
||||
NodeStatus,
|
||||
MessageContext,
|
||||
)
|
||||
from langbot.pkg.workflow.executor import WorkflowExecutor, LoopExecutor
|
||||
from langbot.pkg.workflow.node import WorkflowNode, NodePort
|
||||
from langbot.pkg.workflow.executor import WorkflowExecutor
|
||||
from langbot.pkg.workflow.node import WorkflowNode
|
||||
from langbot.pkg.workflow.registry import NodeTypeRegistry
|
||||
|
||||
|
||||
|
||||
@@ -6,7 +6,7 @@ import pytest
|
||||
|
||||
sys.path.insert(0, os.path.join(os.path.dirname(__file__), '..', '..', '..', 'src'))
|
||||
|
||||
from langbot.pkg.workflow.node import WorkflowNode, NodePort
|
||||
from langbot.pkg.workflow.node import WorkflowNode
|
||||
from langbot.pkg.workflow.registry import NodeTypeRegistry
|
||||
|
||||
|
||||
|
||||
@@ -13,7 +13,6 @@ import {
|
||||
import DynamicFormItemComponent from '@/app/home/components/dynamic-form/DynamicFormItemComponent';
|
||||
import { useEffect, useMemo, useRef, useState } from 'react';
|
||||
import { useTranslation } from 'react-i18next';
|
||||
import i18n from 'i18next';
|
||||
import {
|
||||
resolveI18nLabel,
|
||||
maybeTranslateKey,
|
||||
|
||||
@@ -1,20 +1,8 @@
|
||||
import { useState, useEffect } from 'react';
|
||||
import { useTranslation } from 'react-i18next';
|
||||
import {
|
||||
useSidebarData,
|
||||
SidebarEntityItem,
|
||||
} from '../home-sidebar/SidebarDataContext';
|
||||
import { useSidebarData } from '../home-sidebar/SidebarDataContext';
|
||||
import { Label } from '@/components/ui/label';
|
||||
import { Button } from '@/components/ui/button';
|
||||
import {
|
||||
Select,
|
||||
SelectContent,
|
||||
SelectGroup,
|
||||
SelectItem,
|
||||
SelectLabel,
|
||||
SelectTrigger,
|
||||
SelectValue,
|
||||
} from '@/components/ui/select';
|
||||
import {
|
||||
Popover,
|
||||
PopoverContent,
|
||||
|
||||
@@ -40,7 +40,6 @@ export default function WorkflowDetailContent({ id }: { id: string }) {
|
||||
const { refreshWorkflows, workflows, setDetailEntityName } = useSidebarData();
|
||||
|
||||
const {
|
||||
currentWorkflow,
|
||||
setCurrentWorkflow,
|
||||
fromWorkflowDefinition,
|
||||
toWorkflowDefinition,
|
||||
|
||||
@@ -2,7 +2,6 @@ import { useState, useCallback, useEffect, useRef } from 'react';
|
||||
import { useTranslation } from 'react-i18next';
|
||||
import {
|
||||
useWorkflowStore,
|
||||
DebugLog,
|
||||
NodeExecutionResult,
|
||||
} from '../../store/useWorkflowStore';
|
||||
import { backendClient } from '@/app/infra/http';
|
||||
@@ -37,7 +36,6 @@ import {
|
||||
Circle,
|
||||
RefreshCw,
|
||||
Trash2,
|
||||
ChevronDown,
|
||||
ChevronRight,
|
||||
AlertCircle,
|
||||
CheckCircle2,
|
||||
@@ -85,11 +83,10 @@ export default function WorkflowDebugger({
|
||||
const [activeTab, setActiveTab] = useState<string>('context');
|
||||
const [autoScroll, setAutoScroll] = useState(true);
|
||||
const [newVariable, setNewVariable] = useState({ key: '', value: '' });
|
||||
const [expandedNodes, setExpandedNodes] = useState<Set<string>>(new Set());
|
||||
const [, setExpandedNodes] = useState<Set<string>>(new Set());
|
||||
const pollCancelledRef = useRef(false);
|
||||
|
||||
const {
|
||||
debugMode,
|
||||
debugState,
|
||||
debugExecutionId,
|
||||
currentNodeId,
|
||||
@@ -99,7 +96,6 @@ export default function WorkflowDebugger({
|
||||
debugContext,
|
||||
watchedVariables,
|
||||
nodes,
|
||||
setDebugMode,
|
||||
setDebugState,
|
||||
setDebugExecutionId,
|
||||
setCurrentNodeId,
|
||||
|
||||
@@ -28,9 +28,6 @@ import { resolveI18nLabel } from './workflow-i18n';
|
||||
// Use shared icon mapping
|
||||
const nodeIcons = NODE_ICONS;
|
||||
|
||||
// Use shared i18n key mapping
|
||||
const nodeTypeI18nKeys = NODE_TYPE_I18N_KEYS;
|
||||
|
||||
// Use shared category i18n keys
|
||||
const categoryI18nKeys = CATEGORY_I18N_KEYS;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user