chore(web): migrate lodash-es to es-toolkit compat (#30126)

This commit is contained in:
yyh
2025-12-25 09:44:57 +08:00
committed by GitHub
parent fdaeec7f7d
commit 3cbbb06dc4
202 changed files with 222 additions and 230 deletions

View File

@ -1,5 +1,5 @@
import type { AgentLogItem, AgentLogItemWithChildren, NodeTracing } from '@/types/workflow'
import { cloneDeep } from 'lodash-es'
import { cloneDeep } from 'es-toolkit/compat'
import { BlockEnum } from '@/app/components/workflow/types'
const supportedAgentLogNodes = [BlockEnum.Agent, BlockEnum.Tool]

View File

@ -1,5 +1,5 @@
import type { NodeTracing } from '@/types/workflow'
import { cloneDeep } from 'lodash-es'
import { cloneDeep } from 'es-toolkit/compat'
import { BlockEnum } from '../../../types'
import formatAgentNode from './agent'
import { addChildrenToIterationNode } from './iteration'

View File

@ -1,4 +1,4 @@
import { noop } from 'lodash-es'
import { noop } from 'es-toolkit/compat'
import format from '.'
import graphToLogStruct from '../graph-to-log-struct'

View File

@ -1,4 +1,4 @@
import { noop } from 'lodash-es'
import { noop } from 'es-toolkit/compat'
import format from '.'
import graphToLogStruct from '../graph-to-log-struct'