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