Build Agentic workflows, RAG pipelines, with rich AI model and tool support on one collaborative workspace. Deploy on cloud, VPC, or self-hosted, so teams move from prototype to production without rebuilding the stack.
Python agentagentic-aiagentic-frameworkagentic-workflowaiautomationclaudedeepseekgenaigptllmlow-codemcpnextjsno-codeopenaipythonskillsworkflow
feat(web): migrate from es-toolkit/compat to native es-toolkit (#30244) (#30246)
yyh2aaaa4bd3468
diff --git a/web/__mocks__/provider-context.ts b/web/__mocks__/provider-context.tsindex c69a2ad1d23..373c2f86d3a 100644--- a/web/__mocks__/provider-context.ts+++ b/web/__mocks__/provider-context.ts@@ -1,6 +1,7 @@import type { Plan, UsagePlanInfo } from '@/app/components/billing/type'import type { ProviderContextState } from '@/context/provider-context'-import { merge, noop } from 'es-toolkit/compat'+import { merge } from 'es-toolkit/compat'+import { noop } from 'es-toolkit/function'import { defaultPlan } from '@/app/components/billing/config'// Avoid being mocked in testsdiff --git a/web/app/(commonLayout)/app/(appDetailLayout)/[appId]/overview/time-range-picker/date-picker.tsx b/web/app/(commonLayout)/app/(appDetailLayout)/[appId]/overview/time-range-picker/date-picker.tsxindex 5f72e7df636..368c3dcfc38 100644--- a/web/app/(commonLayout)/app/(appDetailLayout)/[appId]/overview/time-range-picker/date-picker.tsx+++ b/web/app/(commonLayout)/app/(appDetailLayout)/[appId]/overview/time-range-picker/date-picker.tsx@@ -4,7 +4,7 @@ import type { FC } from 'react'import type { TriggerProps } from '@/app/components/base/date-and-time-picker/types'import { RiCalendarLine } from '@remixicon/react'import dayjs from 'dayjs'-import { noop } from 'es-toolkit/compat'+import { noop } from 'es-toolkit/function'import * as React from 'react'import { useCallback } from 'react'import Picker from '@/app/components/base/date-and-time-picker/date-picker'diff --git a/web/app/(shareLayout)/webapp-reset-password/page.tsx b/web/app/(shareLayout)/webapp-reset-password/page.tsxindex ec75e15a009..9b9a853cddd 100644--- a/web/app/(shareLayout)/webapp-reset-password/page.tsx+++ b/web/app/(shareLayout)/webapp-reset-password/page.tsx@@ -1,6 +1,6 @@'use client'import { RiArrowLeftLine, RiLockPasswordLine } from '@remixicon/react'-import { noop } from 'es-toolkit/compat'+import { noop } from 'es-toolkit/function'import Link from 'next/link'import { useRouter, useSearchParams } from 'next/navigation'import { useState } from 'react'diff --git a/web/app/(shareLayout)/webapp-signin/components/mail-and-code-auth.tsx b/web/app/(shareLayout)/webapp-signin/components/mail-and-code-auth.tsxindex f79911099f9..5aa9d9f1419 100644--- a/web/app/(shareLayout)/webapp-signin/components/mail-and-code-auth.tsx+++ b/web/app/(shareLayout)/webapp-signin/components/mail-and-code-auth.tsx@@ -1,4 +1,4 @@-import { noop } from 'es-toolkit/compat'+import { noop } from 'es-toolkit/function'import { useRouter, useSearchParams } from 'next/navigation'import { useState } from 'react'import { useTranslation } from 'react-i18next'diff --git a/web/app/(shareLayout)/webapp-signin/components/mail-and-password-auth.tsx b/web/app/(shareLayout)/webapp-signin/components/mail-and-password-auth.tsxindex ae70675e7a3..23ac83e76c7 100644--- a/web/app/(shareLayout)/webapp-signin/components/mail-and-password-auth.tsx+++ b/web/app/(shareLayout)/webapp-signin/components/mail-and-password-auth.tsx@@ -1,5 +1,5 @@'use client'-import { noop } from 'es-toolkit/compat'+import { noop } from 'es-toolkit/function'import Link from 'next/link'import { useRouter, useSearchParams } from 'next/navigation'import { useCallback, useState } from 'react'diff --git a/web/app/account/(commonLayout)/account-page/email-change-modal.tsx b/web/app/account/(commonLayout)/account-page/email-change-modal.tsxindex e74ca9ed414..87ca6a689cc 100644--- a/web/app/account/(commonLayout)/account-page/email-change-modal.tsx+++ b/web/app/account/(commonLayout)/account-page/email-change-modal.tsx@@ -1,6 +1,6 @@import type { ResponseError } from '@/service/fetch'import { RiCloseLine } from '@remixicon/react'-import { noop } from 'es-toolkit/compat'+import { noop } from 'es-toolkit/function'import { useRouter } from 'next/navigation'import * as React from 'react'import { useState } from 'react'diff --git a/web/app/components/app/annotation/batch-add-annotation-modal/index.tsx b/web/app/components/app/annotation/batch-add-annotation-modal/index.tsxindex ab487d9b916..be1518b7085 100644--- a/web/app/components/app/annotation/batch-add-annotation-modal/index.tsx+++ b/web/app/components/app/annotation/batch-add-annotation-modal/index.tsx@@ -1,7 +1,7 @@'use client'import type { FC } from 'react'import { RiCloseLine } from '@remixicon/react'-import { noop } from 'es-toolkit/compat'+import { noop } from 'es-toolkit/function'import * as React from 'react'import { useEffect, useState } from 'react'import { useTranslation } from 'react-i18next'diff --git a/web/app/components/app/configuration/base/operation-btn/index.tsx b/web/app/components/app/configuration/base/operation-btn/index.tsxindex d78d9e81ccd..d33b6320713 100644--- a/web/app/components/app/configuration/base/operation-btn/index.tsx+++ b/web/app/components/app/configuration/base/operation-btn/index.tsx@@ -4,7 +4,7 @@ import {RiAddLine,RiEditLine,} from '@remixicon/react'-import { noop } from 'es-toolkit/compat'+import { noop } from 'es-toolkit/function'import * as React from 'react'import { useTranslation } from 'react-i18next'import { cn } from '@/utils/classnames'diff --git a/web/app/components/app/configuration/config-prompt/simple-prompt-input.tsx b/web/app/components/app/configuration/config-prompt/simple-prompt-input.tsxindex c5c63279f68..bc94f878386 100644--- a/web/app/components/app/configuration/config-prompt/simple-prompt-input.tsx+++ b/web/app/components/app/configuration/config-prompt/simple-prompt-input.tsx@@ -4,7 +4,7 @@ import type { ExternalDataTool } from '@/models/common'import type { PromptVariable } from '@/models/debug'import type { GenRes } from '@/service/debug'import { useBoolean } from 'ahooks'-import { noop } from 'es-toolkit/compat'+import { noop } from 'es-toolkit/function'import { produce } from 'immer'import * as React from 'react'import { useState } from 'react'diff --git a/web/app/components/app/configuration/config/agent/prompt-editor.tsx b/web/app/components/app/configuration/config/agent/prompt-editor.tsxindex 49a80aed6d1..e9e3b608594 100644--- a/web/app/components/app/configuration/config/agent/prompt-editor.tsx+++ b/web/app/components/app/configuration/config/agent/prompt-editor.tsx@@ -2,7 +2,7 @@import type { FC } from 'react'import type { ExternalDataTool } from '@/models/common'import copy from 'copy-to-clipboard'-import { noop } from 'es-toolkit/compat'+import { noop } from 'es-toolkit/function'import * as React from 'react'import { useTranslation } from 'react-i18next'import { useContext } from 'use-context-selector'diff --git a/web/app/components/app/configuration/dataset-config/params-config/weighted-score.tsx b/web/app/components/app/configuration/dataset-config/params-config/weighted-score.tsxindex 9522d1263aa..40beef52e82 100644--- a/web/app/components/app/configuration/dataset-config/params-config/weighted-score.tsx+++ b/web/app/components/app/configuration/dataset-config/params-config/weighted-score.tsx@@ -1,4 +1,4 @@-import { noop } from 'es-toolkit/compat'+import { noop } from 'es-toolkit/function'import { memo } from 'react'import { useTranslation } from 'react-i18next'import Slider from '@/app/components/base/slider'diff --git a/web/app/components/app/configuration/dataset-config/settings-modal/index.tsx b/web/app/components/app/configuration/dataset-config/settings-modal/index.tsxindex 557eef3ed5b..32ca4f99cd3 100644--- a/web/app/components/app/configuration/dataset-config/settings-modal/index.tsx+++ b/web/app/components/app/configuration/dataset-config/settings-modal/index.tsx@@ -3,7 +3,7 @@ import type { Member } from '@/models/common'import type { DataSet } from '@/models/datasets'import type { RetrievalConfig } from '@/types/app'import { RiCloseLine } from '@remixicon/react'-import { isEqual } from 'es-toolkit/compat'+import { isEqual } from 'es-toolkit/predicate'import { useEffect, useMemo, useRef, useState } from 'react'import { useTranslation } from 'react-i18next'import Button from '@/app/components/base/button'diff --git a/web/app/components/app/configuration/debug/debug-with-multiple-model/context.tsx b/web/app/components/app/configuration/debug/debug-with-multiple-model/context.tsxindex 3f0381074f5..38f803f8abc 100644--- a/web/app/components/app/configuration/debug/debug-with-multiple-model/context.tsx+++ b/web/app/components/app/configuration/debug/debug-with-multiple-model/context.tsx@@ -1,7 +1,7 @@'use client'import type { ModelAndParameter } from '../types'-import { noop } from 'es-toolkit/compat'+import { noop } from 'es-toolkit/function'import { createContext, useContext } from 'use-context-selector'export type DebugWithMultipleModelContextType = {diff --git a/web/app/components/app/configuration/debug/debug-with-multiple-model/text-generation-item.tsx b/web/app/components/app/configuration/debug/debug-with-multiple-model/text-generation-item.tsxindex 9113f782d92..d7918e7ad6e 100644--- a/web/app/components/app/configuration/debug/debug-with-multiple-model/text-generation-item.tsx+++ b/web/app/components/app/configuration/debug/debug-with-multiple-model/text-generation-item.tsx@@ -4,7 +4,8 @@ import type {OnSend,TextGenerationConfig,} from '@/app/components/base/text-generation/types'-import { cloneDeep, noop } from 'es-toolkit/compat'+import { noop } from 'es-toolkit/function'+import { cloneDeep } from 'es-toolkit/object'import { memo } from 'react'import TextGeneration from '@/app/components/app/text-generate/item'import { TransferMethod } from '@/app/components/base/chat/types'diff --git a/web/app/components/app/configuration/debug/hooks.tsx b/web/app/components/app/configuration/debug/hooks.tsxindex e66185e2841..e5dba3640db 100644--- a/web/app/components/app/configuration/debug/hooks.tsx+++ b/web/app/components/app/configuration/debug/hooks.tsx@@ -6,7 +6,7 @@ import type {ChatConfig,ChatItem,} from '@/app/components/base/chat/types'-import { cloneDeep } from 'es-toolkit/compat'+import { cloneDeep } from 'es-toolkit/object'import {useCallback,useRef,diff --git a/web/app/components/app/configuration/debug/index.tsx b/web/app/components/app/configuration/debug/index.tsxindex 7144d38470c..b97bd68c5d1 100644--- a/web/app/components/app/configuration/debug/index.tsx+++ b/web/app/components/app/configuration/debug/index.tsx@@ -11,7 +11,8 @@ import {RiSparklingFill,} from '@remixicon/react'import { useBoolean } from 'ahooks'-import { cloneDeep, noop } from 'es-toolkit/compat'+import { noop } from 'es-toolkit/function'+import { cloneDeep } from 'es-toolkit/object'import { produce, setAutoFreeze } from 'immer'import * as React from 'react'import { useCallback, useEffect, useRef, useState } from 'react'diff --git a/web/app/components/app/configuration/hooks/use-advanced-prompt-config.ts b/web/app/components/app/configuration/hooks/use-advanced-prompt-config.tsindex 3e8f7c5b3a7..55b44653c9d 100644--- a/web/app/components/app/configuration/hooks/use-advanced-prompt-config.ts+++ b/web/app/components/app/configuration/hooks/use-advanced-prompt-config.ts@@ -1,6 +1,6 @@import type { FormValue } from '@/app/components/header/account-setting/model-provider-page/declarations'import type { ChatPromptConfig, CompletionPromptConfig, ConversationHistoriesRole, PromptItem } from '@/models/debug'-import { clone } from 'es-toolkit/compat'+import { clone } from 'es-toolkit/object'import { produce } from 'immer'import { useState } from 'react'import { checkHasContextBlock, checkHasHistoryBlock, checkHasQueryBlock, PRE_PROMPT_PLACEHOLDER_TEXT } from '@/app/components/base/prompt-editor/constants'diff --git a/web/app/components/app/configuration/index.tsx b/web/app/components/app/configuration/index.tsxindex 8a53d9b328f..919b7c355ad 100644--- a/web/app/components/app/configuration/index.tsx+++ b/web/app/components/app/configuration/index.tsx@@ -20,7 +20,8 @@ import type {import type { ModelConfig as BackendModelConfig, UserInputFormItem, VisionSettings } from '@/types/app'import { CodeBracketIcon } from '@heroicons/react/20/solid'import { useBoolean, useGetState } from 'ahooks'-import { clone, isEqual } from 'es-toolkit/compat'+import { clone } from 'es-toolkit/object'+import { isEqual } from 'es-toolkit/predicate'import { produce } from 'immer'import { usePathname } from 'next/navigation'import * as React from 'react'diff --git a/web/app/components/app/configuration/tools/external-data-tool-modal.tsx b/web/app/components/app/configuration/tools/external-data-tool-modal.tsxindex 57145cc2237..71827c4e0de 100644--- a/web/app/components/app/configuration/tools/external-data-tool-modal.tsx+++ b/web/app/components/app/configuration/tools/external-data-tool-modal.tsx@@ -3,7 +3,7 @@ import type {CodeBasedExtensionItem,ExternalDataTool,} from '@/models/common'-import { noop } from 'es-toolkit/compat'+import { noop } from 'es-toolkit/function'import { useState } from 'react'import { useTranslation } from 'react-i18next'import AppIcon from '@/app/components/base/app-icon'diff --git a/web/app/components/app/create-from-dsl-modal/index.tsx b/web/app/components/app/create-from-dsl-modal/index.tsxindex 05873b85a7b..838e9cc03f8 100644--- a/web/app/components/app/create-from-dsl-modal/index.tsx+++ b/web/app/components/app/create-from-dsl-modal/index.tsx@@ -3,7 +3,7 @@import type { MouseEventHandler } from 'react'import { RiCloseLine, RiCommandLine, RiCornerDownLeftLine } from '@remixicon/react'import { useDebounceFn, useKeyPress } from 'ahooks'-import { noop } from 'es-toolkit/compat'+import { noop } from 'es-toolkit/function'import { useRouter } from 'next/navigation'import { useEffect, useMemo, useRef, useState } from 'react'import { useTranslation } from 'react-i18next'diff --git a/web/app/components/app/duplicate-modal/index.tsx b/web/app/components/app/duplicate-modal/index.tsxindex 315d871178a..7d5b122f699 100644--- a/web/app/components/app/duplicate-modal/index.tsx+++ b/web/app/components/app/duplicate-modal/index.tsx@@ -1,7 +1,7 @@'use client'import type { AppIconType } from '@/types/app'import { RiCloseLine } from '@remixicon/react'-import { noop } from 'es-toolkit/compat'+import { noop } from 'es-toolkit/function'import * as React from 'react'import { useState } from 'react'import { useTranslation } from 'react-i18next'diff --git a/web/app/components/app/log/index.tsx b/web/app/components/app/log/index.tsxindex d282d61d4e7..e96c9ce0c9a 100644--- a/web/app/components/app/log/index.tsx+++ b/web/app/components/app/log/index.tsx@@ -3,7 +3,7 @@ import type { FC } from 'react'import type { App } from '@/types/app'import { useDebounce } from 'ahooks'import dayjs from 'dayjs'-import { omit } from 'es-toolkit/compat'+import { omit } from 'es-toolkit/object'import { usePathname, useRouter, useSearchParams } from 'next/navigation'import * as React from 'react'import { useCallback, useEffect, useState } from 'react'diff --git a/web/app/components/app/log/list.tsx b/web/app/components/app/log/list.tsxindex c2605685822..a17177bf7e5 100644--- a/web/app/components/app/log/list.tsx+++ b/web/app/components/app/log/list.tsx@@ -12,7 +12,8 @@ import { RiCloseLine, RiEditFill } from '@remixicon/react'import dayjs from 'dayjs'import timezone from 'dayjs/plugin/timezone'import utc from 'dayjs/plugin/utc'-import { get, noop } from 'es-toolkit/compat'+import { get } from 'es-toolkit/compat'+import { noop } from 'es-toolkit/function'import { usePathname, useRouter, useSearchParams } from 'next/navigation'import * as React from 'react'import { useCallback, useEffect, useRef, useState } from 'react'diff --git a/web/app/components/app/overview/apikey-info-panel/apikey-info-panel.test-utils.tsx b/web/app/components/app/overview/apikey-info-panel/apikey-info-panel.test-utils.tsxindex 5cffa1143bf..17857ec702d 100644--- a/web/app/components/app/overview/apikey-info-panel/apikey-info-panel.test-utils.tsx+++ b/web/app/components/app/overview/apikey-info-panel/apikey-info-panel.test-utils.tsx@@ -2,7 +2,7 @@ import type { RenderOptions } from '@testing-library/react'import type { Mock, MockedFunction } from 'vitest'import type { ModalContextState } from '@/context/modal-context'import { fireEvent, render } from '@testing-library/react'-import { noop } from 'es-toolkit/compat'+import { noop } from 'es-toolkit/function'import { defaultPlan } from '@/app/components/billing/config'import { useModalContext as actualUseModalContext } from '@/context/modal-context'diff --git a/web/app/components/app/switch-app-modal/index.tsx b/web/app/components/app/switch-app-modal/index.tsxindex 259f8da0b0c..30d7877ed01 100644--- a/web/app/components/app/switch-app-modal/index.tsx+++ b/web/app/components/app/switch-app-modal/index.tsx@@ -2,7 +2,7 @@import type { App } from '@/types/app'import { RiCloseLine } from '@remixicon/react'-import { noop } from 'es-toolkit/compat'+import { noop } from 'es-toolkit/function'import { useRouter } from 'next/navigation'import { useEffect, useState } from 'react'import { useTranslation } from 'react-i18next'diff --git a/web/app/components/app/workflow-log/index.tsx b/web/app/components/app/workflow-log/index.tsxindex ae7b08320e9..79ae2ed83cd 100644--- a/web/app/components/app/workflow-log/index.tsx+++ b/web/app/components/app/workflow-log/index.tsx@@ -5,7 +5,7 @@ import { useDebounce } from 'ahooks'import dayjs from 'dayjs'import timezone from 'dayjs/plugin/timezone'import utc from 'dayjs/plugin/utc'-import { omit } from 'es-toolkit/compat'+import { omit } from 'es-toolkit/object'import * as React from 'react'import { useState } from 'react'import { useTranslation } from 'react-i18next'diff --git a/web/app/components/base/agent-log-modal/detail.tsx b/web/app/components/base/agent-log-modal/detail.tsxindex fff2c3920d6..a82a3207b19 100644--- a/web/app/components/base/agent-log-modal/detail.tsx+++ b/web/app/components/base/agent-log-modal/detail.tsx@@ -2,7 +2,8 @@import type { FC } from 'react'import type { IChatItem } from '@/app/components/base/chat/chat/type'import type { AgentIteration, AgentLogDetailResponse } from '@/models/log'-import { flatten, uniq } from 'es-toolkit/compat'+import { uniq } from 'es-toolkit/array'+import { flatten } from 'es-toolkit/compat'import * as React from 'react'import { useCallback, useEffect, useMemo, useState } from 'react'import { useTranslation } from 'react-i18next'diff --git a/web/app/components/base/app-icon-picker/index.tsx b/web/app/components/base/app-icon-picker/index.tsxindex 9b9c642d519..4dfad1f6eb0 100644--- a/web/app/components/base/app-icon-picker/index.tsx+++ b/web/app/components/base/app-icon-picker/index.tsx@@ -3,7 +3,7 @@ import type { Area } from 'react-easy-crop'import type { OnImageInput } from './ImageInput'import type { AppIconType, ImageFile } from '@/types/app'import { RiImageCircleAiLine } from '@remixicon/react'-import { noop } from 'es-toolkit/compat'+import { noop } from 'es-toolkit/function'import { useCallback, useState } from 'react'import { useTranslation } from 'react-i18next'import { DISABLE_UPLOAD_IMAGE_AS_ICON } from '@/config'diff --git a/web/app/components/base/chat/chat-with-history/context.tsx b/web/app/components/base/chat/chat-with-history/context.tsxindex d1496f82780..49dd06ca527 100644--- a/web/app/components/base/chat/chat-with-history/context.tsx+++ b/web/app/components/base/chat/chat-with-history/context.tsx@@ -14,7 +14,7 @@ import type {AppMeta,ConversationItem,} from '@/models/share'-import { noop } from 'es-toolkit/compat'+import { noop } from 'es-toolkit/function'import { createContext, useContext } from 'use-context-selector'export type ChatWithHistoryContextValue = {diff --git a/web/app/components/base/chat/chat-with-history/hooks.tsx b/web/app/components/base/chat/chat-with-history/hooks.tsxindex 154729ded0f..5ff8e61ff61 100644--- a/web/app/components/base/chat/chat-with-history/hooks.tsx+++ b/web/app/components/base/chat/chat-with-history/hooks.tsx@@ -10,7 +10,7 @@ import type {ConversationItem,} from '@/models/share'import { useLocalStorageState } from 'ahooks'-import { noop } from 'es-toolkit/compat'+import { noop } from 'es-toolkit/function'import { produce } from 'immer'import {useCallback,diff --git a/web/app/components/base/chat/chat/hooks.ts b/web/app/components/base/chat/chat/hooks.tsindex 50704d9a0dd..9b8a9b11dc8 100644--- a/web/app/components/base/chat/chat/hooks.ts+++ b/web/app/components/base/chat/chat/hooks.ts@@ -8,7 +8,8 @@ import type { InputForm } from './type'import type AudioPlayer from '@/app/components/base/audio-btn/audio'import type { FileEntity } from '@/app/components/base/file-uploader/types'import type { Annotation } from '@/models/log'-import { noop, uniqBy } from 'es-toolkit/compat'+import { uniqBy } from 'es-toolkit/compat'+import { noop } from 'es-toolkit/function'import { produce, setAutoFreeze } from 'immer'import { useParams, usePathname } from 'next/navigation'import {diff --git a/web/app/components/base/chat/embedded-chatbot/context.tsx b/web/app/components/base/chat/embedded-chatbot/context.tsxindex 97d3dd53cf2..d690c28dd3d 100644--- a/web/app/components/base/chat/embedded-chatbot/context.tsx+++ b/web/app/components/base/chat/embedded-chatbot/context.tsx@@ -13,7 +13,7 @@ import type {AppMeta,ConversationItem,} from '@/models/share'-import { noop } from 'es-toolkit/compat'+import { noop } from 'es-toolkit/function'import { createContext, useContext } from 'use-context-selector'export type EmbeddedChatbotContextValue = {diff --git a/web/app/components/base/chat/embedded-chatbot/hooks.tsx b/web/app/components/base/chat/embedded-chatbot/hooks.tsxindex 7a7cf4ffd30..803e9058370 100644--- a/web/app/components/base/chat/embedded-chatbot/hooks.tsx+++ b/web/app/components/base/chat/embedded-chatbot/hooks.tsx@@ -9,7 +9,7 @@ import type {ConversationItem,} from '@/models/share'import { useLocalStorageState } from 'ahooks'-import { noop } from 'es-toolkit/compat'+import { noop } from 'es-toolkit/function'import { produce } from 'immer'import {useCallback,diff --git a/web/app/components/base/emoji-picker/index.tsx b/web/app/components/base/emoji-picker/index.tsxindex 99e1cfb7b41..9356efbfebf 100644--- a/web/app/components/base/emoji-picker/index.tsx+++ b/web/app/components/base/emoji-picker/index.tsx@@ -1,6 +1,6 @@'use client'import type { FC } from 'react'-import { noop } from 'es-toolkit/compat'+import { noop } from 'es-toolkit/function'import * as React from 'react'import { useCallback, useState } from 'react'import { useTranslation } from 'react-i18next'diff --git a/web/app/components/base/features/new-feature-panel/conversation-opener/modal.tsx b/web/app/components/base/features/new-feature-panel/conversation-opener/modal.tsxindex 6eb31d7476c..79520134a4b 100644--- a/web/app/components/base/features/new-feature-panel/conversation-opener/modal.tsx+++ b/web/app/components/base/features/new-feature-panel/conversation-opener/modal.tsx@@ -3,7 +3,7 @@ import type { InputVar } from '@/app/components/workflow/types'import type { PromptVariable } from '@/models/debug'import { RiAddLine, RiAsterisk, RiCloseLine, RiDeleteBinLine, RiDraggable } from '@remixicon/react'import { useBoolean } from 'ahooks'-import { noop } from 'es-toolkit/compat'+import { noop } from 'es-toolkit/function'import { produce } from 'immer'import * as React from 'react'import { useCallback, useEffect, useMemo, useState } from 'react'diff --git a/web/app/components/base/features/new-feature-panel/moderation/moderation-setting-modal.tsx b/web/app/components/base/features/new-feature-panel/moderation/moderation-setting-modal.tsxindex c352913e300..59b62d0bfdb 100644--- a/web/app/components/base/features/new-feature-panel/moderation/moderation-setting-modal.tsx+++ b/web/app/components/base/features/new-feature-panel/moderation/moderation-setting-modal.tsx@@ -2,7 +2,7 @@ import type { ChangeEvent, FC } from 'react'import type { CodeBasedExtensionItem } from '@/models/common'import type { ModerationConfig, ModerationContentConfig } from '@/models/debug'import { RiCloseLine } from '@remixicon/react'-import { noop } from 'es-toolkit/compat'+import { noop } from 'es-toolkit/function'import { useState } from 'react'import { useTranslation } from 'react-i18next'import Button from '@/app/components/base/button'diff --git a/web/app/components/base/file-uploader/hooks.ts b/web/app/components/base/file-uploader/hooks.tsindex 95a775f3bb8..14e46548d86 100644--- a/web/app/components/base/file-uploader/hooks.ts+++ b/web/app/components/base/file-uploader/hooks.ts@@ -2,7 +2,7 @@ import type { ClipboardEvent } from 'react'import type { FileEntity } from './types'import type { FileUpload } from '@/app/components/base/features/types'import type { FileUploadConfigResponse } from '@/models/common'-import { noop } from 'es-toolkit/compat'+import { noop } from 'es-toolkit/function'import { produce } from 'immer'import { useParams } from 'next/navigation'import {diff --git a/web/app/components/base/file-uploader/pdf-preview.tsx b/web/app/components/base/file-uploader/pdf-preview.tsxindex 25644d024ec..aab8bcd9d18 100644--- a/web/app/components/base/file-uploader/pdf-preview.tsx+++ b/web/app/components/base/file-uploader/pdf-preview.tsx@@ -1,6 +1,6 @@import type { FC } from 'react'import { RiCloseLine, RiZoomInLine, RiZoomOutLine } from '@remixicon/react'-import { noop } from 'es-toolkit/compat'+import { noop } from 'es-toolkit/function'import { t } from 'i18next'import * as React from 'react'import { useState } from 'react'diff --git a/web/app/components/base/file-uploader/store.tsx b/web/app/components/base/file-uploader/store.tsxindex 2172733f20b..24015df5cff 100644--- a/web/app/components/base/file-uploader/store.tsx+++ b/web/app/components/base/file-uploader/store.tsx@@ -1,7 +1,7 @@import type {FileEntity,} from './types'-import { isEqual } from 'es-toolkit/compat'+import { isEqual } from 'es-toolkit/predicate'import {createContext,useContext,diff --git a/web/app/components/base/fullscreen-modal/index.tsx b/web/app/components/base/fullscreen-modal/index.tsxindex cad91b24524..fb2d2fa79be 100644--- a/web/app/components/base/fullscreen-modal/index.tsx+++ b/web/app/components/base/fullscreen-modal/index.tsx@@ -1,6 +1,6 @@import { Dialog, DialogPanel, Transition, TransitionChild } from '@headlessui/react'import { RiCloseLargeLine } from '@remixicon/react'-import { noop } from 'es-toolkit/compat'+import { noop } from 'es-toolkit/function'import { cn } from '@/utils/classnames'type IModal = {diff --git a/web/app/components/base/image-uploader/image-preview.tsx b/web/app/components/base/image-uploader/image-preview.tsxindex 794152804ee..b6a07c60aa2 100644--- a/web/app/components/base/image-uploader/image-preview.tsx+++ b/web/app/components/base/image-uploader/image-preview.tsx@@ -1,6 +1,6 @@import type { FC } from 'react'import { RiAddBoxLine, RiCloseLine, RiDownloadCloud2Line, RiFileCopyLine, RiZoomInLine, RiZoomOutLine } from '@remixicon/react'-import { noop } from 'es-toolkit/compat'+import { noop } from 'es-toolkit/function'import { t } from 'i18next'import * as React from 'react'import { useCallback, useEffect, useRef, useState } from 'react'diff --git a/web/app/components/base/input/index.tsx b/web/app/components/base/input/index.tsxindex b529702a65c..27adbb3973a 100644--- a/web/app/components/base/input/index.tsx+++ b/web/app/components/base/input/index.tsx@@ -2,7 +2,7 @@ import type { VariantProps } from 'class-variance-authority'import type { ChangeEventHandler, CSSProperties, FocusEventHandler } from 'react'import { RiCloseCircleFill, RiErrorWarningLine, RiSearchLine } from '@remixicon/react'import { cva } from 'class-variance-authority'-import { noop } from 'es-toolkit/compat'+import { noop } from 'es-toolkit/function'import * as React from 'react'import { useTranslation } from 'react-i18next'import { cn } from '@/utils/classnames'diff --git a/web/app/components/base/modal/index.tsx b/web/app/components/base/modal/index.tsxindex 7270af1c775..e38254b27a3 100644--- a/web/app/components/base/modal/index.tsx+++ b/web/app/components/base/modal/index.tsx@@ -1,6 +1,6 @@import { Dialog, DialogPanel, DialogTitle, Transition, TransitionChild } from '@headlessui/react'import { RiCloseLine } from '@remixicon/react'-import { noop } from 'es-toolkit/compat'+import { noop } from 'es-toolkit/function'import { Fragment } from 'react'import { cn } from '@/utils/classnames'// https://headlessui.com/react/dialogdiff --git a/web/app/components/base/modal/modal.tsx b/web/app/components/base/modal/modal.tsxindex 1e606f125a7..a24ca1765eb 100644--- a/web/app/components/base/modal/modal.tsx+++ b/web/app/components/base/modal/modal.tsx@@ -1,6 +1,6 @@import type { ButtonProps } from '@/app/components/base/button'import { RiCloseLine } from '@remixicon/react'-import { noop } from 'es-toolkit/compat'+import { noop } from 'es-toolkit/function'import { memo } from 'react'import { useTranslation } from 'react-i18next'import Button from '@/app/components/base/button'diff --git a/web/app/components/base/pagination/pagination.tsx b/web/app/components/base/pagination/pagination.tsxindex dafe0e4ab95..0eb06b594c7 100644--- a/web/app/components/base/pagination/pagination.tsx+++ b/web/app/components/base/pagination/pagination.tsx@@ -4,7 +4,7 @@ import type {IPaginationProps,PageButtonProps,} from './type'-import { noop } from 'es-toolkit/compat'+import { noop } from 'es-toolkit/function'import * as React from 'react'import { cn } from '@/utils/classnames'import usePagination from './hook'diff --git a/web/app/components/base/prompt-editor/plugins/context-block/context-block-replacement-block.tsx b/web/app/components/base/prompt-editor/plugins/context-block/context-block-replacement-block.tsxindex c4a246c40d3..36e0d7f17b3 100644--- a/web/app/components/base/prompt-editor/plugins/context-block/context-block-replacement-block.tsx+++ b/web/app/components/base/prompt-editor/plugins/context-block/context-block-replacement-block.tsx@@ -1,7 +1,7 @@import type { ContextBlockType } from '../../types'import { useLexicalComposerContext } from '@lexical/react/LexicalComposerContext'import { mergeRegister } from '@lexical/utils'-import { noop } from 'es-toolkit/compat'+import { noop } from 'es-toolkit/function'import { $applyNodeReplacement } from 'lexical'import {memo,diff --git a/web/app/components/base/prompt-editor/plugins/context-block/index.tsx b/web/app/components/base/prompt-editor/plugins/context-block/index.tsxindex ce3ed4c210d..e3382c011de 100644--- a/web/app/components/base/prompt-editor/plugins/context-block/index.tsx+++ b/web/app/components/base/prompt-editor/plugins/context-block/index.tsx@@ -1,7 +1,7 @@import type { ContextBlockType } from '../../types'import { useLexicalComposerContext } from '@lexical/react/LexicalComposerContext'import { mergeRegister } from '@lexical/utils'-import { noop } from 'es-toolkit/compat'+import { noop } from 'es-toolkit/function'import {$insertNodes,COMMAND_PRIORITY_EDITOR,diff --git a/web/app/components/base/prompt-editor/plugins/history-block/history-block-replacement-block.tsx b/web/app/components/base/prompt-editor/plugins/history-block/history-block-replacement-block.tsxindex f62fb6886b9..759e654c02b 100644--- a/web/app/components/base/prompt-editor/plugins/history-block/history-block-replacement-block.tsx+++ b/web/app/components/base/prompt-editor/plugins/history-block/history-block-replacement-block.tsx@@ -1,7 +1,7 @@import type { HistoryBlockType } from '../../types'import { useLexicalComposerContext } from '@lexical/react/LexicalComposerContext'import { mergeRegister } from '@lexical/utils'-import { noop } from 'es-toolkit/compat'+import { noop } from 'es-toolkit/function'import { $applyNodeReplacement } from 'lexical'import {useCallback,diff --git a/web/app/components/base/prompt-editor/plugins/history-block/index.tsx b/web/app/components/base/prompt-editor/plugins/history-block/index.tsxindex dc75fc230d2..a1d788c8cd5 100644--- a/web/app/components/base/prompt-editor/plugins/history-block/index.tsx+++ b/web/app/components/base/prompt-editor/plugins/history-block/index.tsx@@ -1,7 +1,7 @@import type { HistoryBlockType } from '../../types'import { useLexicalComposerContext } from '@lexical/react/LexicalComposerContext'import { mergeRegister } from '@lexical/utils'-import { noop } from 'es-toolkit/compat'+import { noop } from 'es-toolkit/function'import {$insertNodes,COMMAND_PRIORITY_EDITOR,diff --git a/web/app/components/base/radio-card/index.tsx b/web/app/components/base/radio-card/index.tsxindex 678d5b6deea..c349d08a96b 100644--- a/web/app/components/base/radio-card/index.tsx+++ b/web/app/components/base/radio-card/index.tsx@@ -1,6 +1,6 @@'use client'import type { FC } from 'react'-import { noop } from 'es-toolkit/compat'+import { noop } from 'es-toolkit/function'import * as React from 'react'import { cn } from '@/utils/classnames'diff --git a/web/app/components/base/tag-management/panel.tsx b/web/app/components/base/tag-management/panel.tsxindex 50f92989630..adf750580fd 100644--- a/web/app/components/base/tag-management/panel.tsx+++ b/web/app/components/base/tag-management/panel.tsx@@ -3,7 +3,7 @@ import type { HtmlContentProps } from '@/app/components/base/popover'import type { Tag } from '@/app/components/base/tag-management/constant'import { RiAddLine, RiPriceTag3Line } from '@remixicon/react'import { useUnmount } from 'ahooks'-import { noop } from 'es-toolkit/compat'+import { noop } from 'es-toolkit/function'import * as React from 'react'import { useMemo, useState } from 'react'import { useTranslation } from 'react-i18next'diff --git a/web/app/components/base/tag-management/tag-remove-modal.tsx b/web/app/components/base/tag-management/tag-remove-modal.tsxindex a0fdf056d5b..6ce52e9dd60 100644--- a/web/app/components/base/tag-management/tag-remove-modal.tsx+++ b/web/app/components/base/tag-management/tag-remove-modal.tsx@@ -2,7 +2,7 @@import type { Tag } from '@/app/components/base/tag-management/constant'import { RiCloseLine } from '@remixicon/react'-import { noop } from 'es-toolkit/compat'+import { noop } from 'es-toolkit/function'import { useTranslation } from 'react-i18next'import Button from '@/app/components/base/button'import { AlertTriangle } from '@/app/components/base/icons/src/vender/solid/alertsAndFeedback'diff --git a/web/app/components/base/toast/index.spec.tsx b/web/app/components/base/toast/index.spec.tsxindex 59314063dd2..cc5a1e7c6d7 100644--- a/web/app/components/base/toast/index.spec.tsx+++ b/web/app/components/base/toast/index.spec.tsx@@ -1,6 +1,6 @@import type { ReactNode } from 'react'import { act, render, screen, waitFor } from '@testing-library/react'-import { noop } from 'es-toolkit/compat'+import { noop } from 'es-toolkit/function'import * as React from 'react'import Toast, { ToastProvider, useToastContext } from '.'diff --git a/web/app/components/base/toast/index.tsx b/web/app/components/base/toast/index.tsxindex cf9e1cd909b..0ab636efc18 100644--- a/web/app/components/base/toast/index.tsx+++ b/web/app/components/base/toast/index.tsx@@ -7,7 +7,7 @@ import {RiErrorWarningFill,RiInformation2Fill,} from '@remixicon/react'-import { noop } from 'es-toolkit/compat'+import { noop } from 'es-toolkit/function'import * as React from 'react'import { useEffect, useState } from 'react'import { createRoot } from 'react-dom/client'diff --git a/web/app/components/base/with-input-validation/index.spec.tsx b/web/app/components/base/with-input-validation/index.spec.tsxindex b2e67ce056b..daf3fd9a746 100644--- a/web/app/components/base/with-input-validation/index.spec.tsx+++ b/web/app/components/base/with-input-validation/index.spec.tsx@@ -1,5 +1,5 @@import { render, screen } from '@testing-library/react'-import { noop } from 'es-toolkit/compat'+import { noop } from 'es-toolkit/function'import { z } from 'zod'import withValidation from '.'diff --git a/web/app/components/datasets/common/document-status-with-action/index-failed.tsx b/web/app/components/datasets/common/document-status-with-action/index-failed.tsxindex a97b74cf2eb..b691f4e8c5b 100644--- a/web/app/components/datasets/common/document-status-with-action/index-failed.tsx+++ b/web/app/components/datasets/common/document-status-with-action/index-failed.tsx@@ -1,7 +1,7 @@'use client'import type { FC } from 'react'import type { IndexingStatusResponse } from '@/models/datasets'-import { noop } from 'es-toolkit/compat'+import { noop } from 'es-toolkit/function'import * as React from 'react'import { useEffect, useReducer } from 'react'import { useTranslation } from 'react-i18next'diff --git a/web/app/components/datasets/create-from-pipeline/create-options/create-from-dsl-modal/index.tsx b/web/app/components/datasets/create-from-pipeline/create-options/create-from-dsl-modal/index.tsxindex 38481f757fb..2d187010b88 100644--- a/web/app/components/datasets/create-from-pipeline/create-options/create-from-dsl-modal/index.tsx+++ b/web/app/components/datasets/create-from-pipeline/create-options/create-from-dsl-modal/index.tsx@@ -1,6 +1,6 @@'use client'import { useDebounceFn, useKeyPress } from 'ahooks'-import { noop } from 'es-toolkit/compat'+import { noop } from 'es-toolkit/function'import { useRouter } from 'next/navigation'import { useMemo, useRef, useState } from 'react'import { useTranslation } from 'react-i18next'diff --git a/web/app/components/datasets/create/step-two/index.tsx b/web/app/components/datasets/create/step-two/index.tsxindex ecc517ed484..51b5c151782 100644--- a/web/app/components/datasets/create/step-two/index.tsx+++ b/web/app/components/datasets/create/step-two/index.tsx@@ -9,7 +9,7 @@ import {RiArrowLeftLine,RiSearchEyeLine,} from '@remixicon/react'-import { noop } from 'es-toolkit/compat'+import { noop } from 'es-toolkit/function'import Image from 'next/image'import Link from 'next/link'import { useCallback, useEffect, useMemo, useState } from 'react'diff --git a/web/app/components/datasets/documents/detail/batch-modal/index.tsx b/web/app/components/datasets/documents/detail/batch-modal/index.tsxindex 080b631bae4..8917d85ee74 100644--- a/web/app/components/datasets/documents/detail/batch-modal/index.tsx+++ b/web/app/components/datasets/documents/detail/batch-modal/index.tsx@@ -2,7 +2,7 @@import type { FC } from 'react'import type { ChunkingMode, FileItem } from '@/models/datasets'import { RiCloseLine } from '@remixicon/react'-import { noop } from 'es-toolkit/compat'+import { noop } from 'es-toolkit/function'import * as React from 'react'import { useEffect, useState } from 'react'import { useTranslation } from 'react-i18next'diff --git a/web/app/components/datasets/documents/detail/completed/common/full-screen-drawer.tsx b/web/app/components/datasets/documents/detail/completed/common/full-screen-drawer.tsxindex 73b5cbdef9e..de817b8d079 100644--- a/web/app/components/datasets/documents/detail/completed/common/full-screen-drawer.tsx+++ b/web/app/components/datasets/documents/detail/completed/common/full-screen-drawer.tsx@@ -1,4 +1,4 @@-import { noop } from 'es-toolkit/compat'+import { noop } from 'es-toolkit/function'import * as React from 'react'import { cn } from '@/utils/classnames'import Drawer from './drawer'diff --git a/web/app/components/datasets/documents/detail/completed/common/regeneration-modal.tsx b/web/app/components/datasets/documents/detail/completed/common/regeneration-modal.tsxindex 11f8b9fc655..23c1e826b70 100644--- a/web/app/components/datasets/documents/detail/completed/common/regeneration-modal.tsx+++ b/web/app/components/datasets/documents/detail/completed/common/regeneration-modal.tsx@@ -1,7 +1,7 @@import type { FC } from 'react'import { RiLoader2Line } from '@remixicon/react'import { useCountDown } from 'ahooks'-import { noop } from 'es-toolkit/compat'+import { noop } from 'es-toolkit/function'import * as React from 'react'import { useRef, useState } from 'react'import { useTranslation } from 'react-i18next'diff --git a/web/app/components/datasets/documents/detail/completed/index.tsx b/web/app/components/datasets/documents/detail/completed/index.tsxindex 531603a1cf7..40c70e34f68 100644--- a/web/app/components/datasets/documents/detail/completed/index.tsx+++ b/web/app/components/datasets/documents/detail/completed/index.tsx@@ -4,7 +4,7 @@ import type { Item } from '@/app/components/base/select'import type { FileEntity } from '@/app/components/datasets/common/image-uploader/types'import type { ChildChunkDetail, SegmentDetailModel, SegmentUpdater } from '@/models/datasets'import { useDebounceFn } from 'ahooks'-import { noop } from 'es-toolkit/compat'+import { noop } from 'es-toolkit/function'import { usePathname } from 'next/navigation'import * as React from 'react'import { useCallback, useEffect, useMemo, useRef, useState } from 'react'diff --git a/web/app/components/datasets/documents/detail/settings/pipeline-settings/index.tsx b/web/app/components/datasets/documents/detail/settings/pipeline-settings/index.tsxindex 76c9e2da967..08e13765e53 100644--- a/web/app/components/datasets/documents/detail/settings/pipeline-settings/index.tsx+++ b/web/app/components/datasets/documents/detail/settings/pipeline-settings/index.tsx@@ -1,7 +1,7 @@import type { NotionPage } from '@/models/common'import type { CrawlResultItem, CustomFile, FileIndexingEstimateResponse } from '@/models/datasets'import type { OnlineDriveFile, PublishedPipelineRunPreviewResponse } from '@/models/pipeline'-import { noop } from 'es-toolkit/compat'+import { noop } from 'es-toolkit/function'import { useRouter } from 'next/navigation'import { useCallback, useMemo, useRef, useState } from 'react'import { useTranslation } from 'react-i18next'diff --git a/web/app/components/datasets/documents/list.tsx b/web/app/components/datasets/documents/list.tsxindex 0e039bba1a0..5fd6cd3a70f 100644--- a/web/app/components/datasets/documents/list.tsx+++ b/web/app/components/datasets/documents/list.tsx@@ -9,7 +9,8 @@ import {RiGlobalLine,} from '@remixicon/react'import { useBoolean } from 'ahooks'-import { pick, uniq } from 'es-toolkit/compat'+import { uniq } from 'es-toolkit/array'+import { pick } from 'es-toolkit/object'import { useRouter } from 'next/navigation'import * as React from 'react'import { useCallback, useEffect, useMemo, useState } from 'react'diff --git a/web/app/components/datasets/documents/operations.tsx b/web/app/components/datasets/documents/operations.tsxindex a873fcd96d8..93afec6f8e0 100644--- a/web/app/components/datasets/documents/operations.tsx+++ b/web/app/components/datasets/documents/operations.tsx@@ -11,7 +11,7 @@ import {RiPlayCircleLine,} from '@remixicon/react'import { useBoolean, useDebounceFn } from 'ahooks'-import { noop } from 'es-toolkit/compat'+import { noop } from 'es-toolkit/function'import { useRouter } from 'next/navigation'import * as React from 'react'import { useCallback, useState } from 'react'diff --git a/web/app/components/datasets/metadata/metadata-dataset/create-content.tsx b/web/app/components/datasets/metadata/metadata-dataset/create-content.tsxindex b130267236c..ee1b9cbcdc5 100644--- a/web/app/components/datasets/metadata/metadata-dataset/create-content.tsx+++ b/web/app/components/datasets/metadata/metadata-dataset/create-content.tsx@@ -1,7 +1,7 @@'use client'import type { FC } from 'react'import { RiArrowLeftLine } from '@remixicon/react'-import { noop } from 'es-toolkit/compat'+import { noop } from 'es-toolkit/function'import * as React from 'react'import { useCallback, useState } from 'react'import { useTranslation } from 'react-i18next'diff --git a/web/app/components/datasets/rename-modal/index.tsx b/web/app/components/datasets/rename-modal/index.tsxindex 589b5a918ea..106e35c4acb 100644--- a/web/app/components/datasets/rename-modal/index.tsx+++ b/web/app/components/datasets/rename-modal/index.tsx@@ -4,7 +4,7 @@ import type { MouseEventHandler } from 'react'import type { AppIconSelection } from '../../base/app-icon-picker'import type { DataSet } from '@/models/datasets'import { RiCloseLine } from '@remixicon/react'-import { noop } from 'es-toolkit/compat'+import { noop } from 'es-toolkit/function'import { useCallback, useRef, useState } from 'react'import { useTranslation } from 'react-i18next'import Button from '@/app/components/base/button'diff --git a/web/app/components/explore/create-app-modal/index.tsx b/web/app/components/explore/create-app-modal/index.tsxindex 1137ae9e74c..9bffcc6c695 100644--- a/web/app/components/explore/create-app-modal/index.tsx+++ b/web/app/components/explore/create-app-modal/index.tsx@@ -2,7 +2,7 @@import type { AppIconType } from '@/types/app'import { RiCloseLine, RiCommandLine, RiCornerDownLeftLine } from '@remixicon/react'import { useDebounceFn, useKeyPress } from 'ahooks'-import { noop } from 'es-toolkit/compat'+import { noop } from 'es-toolkit/function'import * as React from 'react'import { useCallback, useState } from 'react'import { useTranslation } from 'react-i18next'diff --git a/web/app/components/header/account-setting/api-based-extension-page/modal.tsx b/web/app/components/header/account-setting/api-based-extension-page/modal.tsxindex e12ecbe756d..d857b5fe1fd 100644--- a/web/app/components/header/account-setting/api-based-extension-page/modal.tsx+++ b/web/app/components/header/account-setting/api-based-extension-page/modal.tsx@@ -1,6 +1,6 @@import type { FC } from 'react'import type { ApiBasedExtension } from '@/models/common'-import { noop } from 'es-toolkit/compat'+import { noop } from 'es-toolkit/function'import { useState } from 'react'import { useTranslation } from 'react-i18next'import Button from '@/app/components/base/button'diff --git a/web/app/components/header/account-setting/data-source-page/data-source-notion/index.tsx b/web/app/components/header/account-setting/data-source-page/data-source-notion/index.tsxindex 8f6120c8267..0959383f293 100644--- a/web/app/components/header/account-setting/data-source-page/data-source-notion/index.tsx+++ b/web/app/components/header/account-setting/data-source-page/data-source-notion/index.tsx@@ -1,7 +1,7 @@'use client'import type { FC } from 'react'import type { DataSourceNotion as TDataSourceNotion } from '@/models/common'-import { noop } from 'es-toolkit/compat'+import { noop } from 'es-toolkit/function'import * as React from 'react'import { useEffect, useState } from 'react'import { useTranslation } from 'react-i18next'diff --git a/web/app/components/header/account-setting/data-source-page/panel/config-item.tsx b/web/app/components/header/account-setting/data-source-page/panel/config-item.tsxindex 06c311ef56b..f62c5e147da 100644--- a/web/app/components/header/account-setting/data-source-page/panel/config-item.tsx+++ b/web/app/components/header/account-setting/data-source-page/panel/config-item.tsx@@ -3,7 +3,7 @@ import type { FC } from 'react'import {RiDeleteBinLine,} from '@remixicon/react'-import { noop } from 'es-toolkit/compat'+import { noop } from 'es-toolkit/function'import * as React from 'react'import { useTranslation } from 'react-i18next'import { cn } from '@/utils/classnames'diff --git a/web/app/components/header/account-setting/members-page/edit-workspace-modal/index.tsx b/web/app/components/header/account-setting/members-page/edit-workspace-modal/index.tsxindex 411c437a75a..76f04382bd5 100644--- a/web/app/components/header/account-setting/members-page/edit-workspace-modal/index.tsx+++ b/web/app/components/header/account-setting/members-page/edit-workspace-modal/index.tsx@@ -1,6 +1,6 @@'use client'import { RiCloseLine } from '@remixicon/react'-import { noop } from 'es-toolkit/compat'+import { noop } from 'es-toolkit/function'import { useState } from 'react'import { useTranslation } from 'react-i18next'import { useContext } from 'use-context-selector'diff --git a/web/app/components/header/account-setting/members-page/invite-modal/index.tsx b/web/app/components/header/account-setting/members-page/invite-modal/index.tsxindex 964d25e1cbf..2d8d138af55 100644--- a/web/app/components/header/account-setting/members-page/invite-modal/index.tsx+++ b/web/app/components/header/account-setting/members-page/invite-modal/index.tsx@@ -3,7 +3,7 @@ import type { RoleKey } from './role-selector'import type { InvitationResult } from '@/models/common'import { RiCloseLine, RiErrorWarningFill } from '@remixicon/react'import { useBoolean } from 'ahooks'-import { noop } from 'es-toolkit/compat'+import { noop } from 'es-toolkit/function'import { useCallback, useEffect, useState } from 'react'import { useTranslation } from 'react-i18next'import { ReactMultiEmail } from 'react-multi-email'diff --git a/web/app/components/header/account-setting/members-page/invited-modal/index.tsx b/web/app/components/header/account-setting/members-page/invited-modal/index.tsxindex 3f756ab10d8..389db4a42d2 100644--- a/web/app/components/header/account-setting/members-page/invited-modal/index.tsx+++ b/web/app/components/header/account-setting/members-page/invited-modal/index.tsx@@ -2,7 +2,7 @@ import type { InvitationResult } from '@/models/common'import { XMarkIcon } from '@heroicons/react/24/outline'import { CheckCircleIcon } from '@heroicons/react/24/solid'import { RiQuestionLine } from '@remixicon/react'-import { noop } from 'es-toolkit/compat'+import { noop } from 'es-toolkit/function'import { useMemo } from 'react'import { useTranslation } from 'react-i18next'import Button from '@/app/components/base/button'diff --git a/web/app/components/header/account-setting/members-page/transfer-ownership-modal/index.tsx b/web/app/components/header/account-setting/members-page/transfer-ownership-modal/index.tsxindex 1d54167458c..be7220da5e0 100644--- a/web/app/components/header/account-setting/members-page/transfer-ownership-modal/index.tsx+++ b/web/app/components/header/account-setting/members-page/transfer-ownership-modal/index.tsx@@ -1,5 +1,5 @@import { RiCloseLine } from '@remixicon/react'-import { noop } from 'es-toolkit/compat'+import { noop } from 'es-toolkit/function'import * as React from 'react'import { useState } from 'react'import { Trans, useTranslation } from 'react-i18next'diff --git a/web/app/components/header/account-setting/menu-dialog.tsx b/web/app/components/header/account-setting/menu-dialog.tsxindex cc5adbc18f8..847634ed83e 100644--- a/web/app/components/header/account-setting/menu-dialog.tsx+++ b/web/app/components/header/account-setting/menu-dialog.tsx@@ -1,6 +1,6 @@import type { ReactNode } from 'react'import { Dialog, DialogPanel, Transition, TransitionChild } from '@headlessui/react'-import { noop } from 'es-toolkit/compat'+import { noop } from 'es-toolkit/function'import { Fragment, useCallback, useEffect } from 'react'import { cn } from '@/utils/classnames'diff --git a/web/app/components/header/app-selector/index.tsx b/web/app/components/header/app-selector/index.tsxindex c1b9cd1b83a..13677ef7abb 100644--- a/web/app/components/header/app-selector/index.tsx+++ b/web/app/components/header/app-selector/index.tsx@@ -2,7 +2,7 @@import type { AppDetailResponse } from '@/models/app'import { Menu, MenuButton, MenuItem, MenuItems, Transition } from '@headlessui/react'import { ChevronDownIcon, PlusIcon } from '@heroicons/react/24/solid'-import { noop } from 'es-toolkit/compat'+import { noop } from 'es-toolkit/function'import { useRouter } from 'next/navigation'import { Fragment, useState } from 'react'import { useTranslation } from 'react-i18next'diff --git a/web/app/components/plugins/base/deprecation-notice.tsx b/web/app/components/plugins/base/deprecation-notice.tsxindex 7e321330457..c2ddfa69757 100644--- a/web/app/components/plugins/base/deprecation-notice.tsx+++ b/web/app/components/plugins/base/deprecation-notice.tsx@@ -1,6 +1,6 @@import type { FC } from 'react'import { RiAlertFill } from '@remixicon/react'-import { camelCase } from 'es-toolkit/compat'+import { camelCase } from 'es-toolkit/string'import Link from 'next/link'import * as React from 'react'import { useMemo } from 'react'diff --git a/web/app/components/plugins/marketplace/context.tsx b/web/app/components/plugins/marketplace/context.tsxindex 97144630a6c..31b6a7f592e 100644--- a/web/app/components/plugins/marketplace/context.tsx+++ b/web/app/components/plugins/marketplace/context.tsx@@ -11,7 +11,8 @@ import type {SearchParams,SearchParamsFromCollection,} from './types'-import { debounce, noop } from 'es-toolkit/compat'+import { debounce } from 'es-toolkit/compat'+import { noop } from 'es-toolkit/function'import {useCallback,useEffect,diff --git a/web/app/components/plugins/plugin-detail-panel/subscription-list/edit/apikey-edit-modal.tsx b/web/app/components/plugins/plugin-detail-panel/subscription-list/edit/apikey-edit-modal.tsxindex 18896b1f509..a4093ed00ba 100644--- a/web/app/components/plugins/plugin-detail-panel/subscription-list/edit/apikey-edit-modal.tsx+++ b/web/app/components/plugins/plugin-detail-panel/subscription-list/edit/apikey-edit-modal.tsx@@ -2,7 +2,7 @@import type { FormRefObject, FormSchema } from '@/app/components/base/form/types'import type { ParametersSchema, PluginDetail } from '@/app/components/plugins/types'import type { TriggerSubscription } from '@/app/components/workflow/block-selector/types'-import { isEqual } from 'es-toolkit/compat'+import { isEqual } from 'es-toolkit/predicate'import { useMemo, useRef, useState } from 'react'import { useTranslation } from 'react-i18next'import { EncryptedBottom } from '@/app/components/base/encrypted-bottom'diff --git a/web/app/components/plugins/plugin-detail-panel/subscription-list/edit/manual-edit-modal.tsx b/web/app/components/plugins/plugin-detail-panel/subscription-list/edit/manual-edit-modal.tsxindex 75ffff781ff..262235e6ed9 100644--- a/web/app/components/plugins/plugin-detail-panel/subscription-list/edit/manual-edit-modal.tsx+++ b/web/app/components/plugins/plugin-detail-panel/subscription-list/edit/manual-edit-modal.tsx@@ -2,7 +2,7 @@import type { FormRefObject, FormSchema } from '@/app/components/base/form/types'import type { ParametersSchema, PluginDetail } from '@/app/components/plugins/types'import type { TriggerSubscription } from '@/app/components/workflow/block-selector/types'-import { isEqual } from 'es-toolkit/compat'+import { isEqual } from 'es-toolkit/predicate'import { useMemo, useRef } from 'react'import { useTranslation } from 'react-i18next'import { BaseForm } from '@/app/components/base/form/components/base'diff --git a/web/app/components/plugins/plugin-detail-panel/subscription-list/edit/oauth-edit-modal.tsx b/web/app/components/plugins/plugin-detail-panel/subscription-list/edit/oauth-edit-modal.tsxindex 3332cd6b032..e57b9c0151a 100644--- a/web/app/components/plugins/plugin-detail-panel/subscription-list/edit/oauth-edit-modal.tsx+++ b/web/app/components/plugins/plugin-detail-panel/subscription-list/edit/oauth-edit-modal.tsx@@ -2,7 +2,7 @@import type { FormRefObject, FormSchema } from '@/app/components/base/form/types'import type { ParametersSchema, PluginDetail } from '@/app/components/plugins/types'import type { TriggerSubscription } from '@/app/components/workflow/block-selector/types'-import { isEqual } from 'es-toolkit/compat'+import { isEqual } from 'es-toolkit/predicate'import { useMemo, useRef } from 'react'import { useTranslation } from 'react-i18next'import { BaseForm } from '@/app/components/base/form/components/base'diff --git a/web/app/components/plugins/plugin-page/context.tsx b/web/app/components/plugins/plugin-page/context.tsxindex 3d420ca1abb..fea78ae181e 100644--- a/web/app/components/plugins/plugin-page/context.tsx+++ b/web/app/components/plugins/plugin-page/context.tsx@@ -2,7 +2,7 @@import type { ReactNode, RefObject } from 'react'import type { FilterState } from './filter-management'-import { noop } from 'es-toolkit/compat'+import { noop } from 'es-toolkit/function'import { useQueryState } from 'nuqs'import {useMemo,diff --git a/web/app/components/plugins/plugin-page/empty/index.tsx b/web/app/components/plugins/plugin-page/empty/index.tsxindex 019dc9ec24a..7149423d5f3 100644--- a/web/app/components/plugins/plugin-page/empty/index.tsx+++ b/web/app/components/plugins/plugin-page/empty/index.tsx@@ -1,5 +1,5 @@'use client'-import { noop } from 'es-toolkit/compat'+import { noop } from 'es-toolkit/function'import * as React from 'react'import { useEffect, useMemo, useRef, useState } from 'react'import { useTranslation } from 'react-i18next'diff --git a/web/app/components/plugins/plugin-page/index.tsx b/web/app/components/plugins/plugin-page/index.tsxindex 6d8542f5c9f..b8fc8912541 100644--- a/web/app/components/plugins/plugin-page/index.tsx+++ b/web/app/components/plugins/plugin-page/index.tsx@@ -7,7 +7,7 @@ import {RiEqualizer2Line,} from '@remixicon/react'import { useBoolean } from 'ahooks'-import { noop } from 'es-toolkit/compat'+import { noop } from 'es-toolkit/function'import Link from 'next/link'import { useEffect, useMemo, useState } from 'react'import { useTranslation } from 'react-i18next'diff --git a/web/app/components/plugins/plugin-page/install-plugin-dropdown.tsx b/web/app/components/plugins/plugin-page/install-plugin-dropdown.tsxindex 7dbd3e30269..322591a3631 100644--- a/web/app/components/plugins/plugin-page/install-plugin-dropdown.tsx+++ b/web/app/components/plugins/plugin-page/install-plugin-dropdown.tsx@@ -1,7 +1,7 @@'use client'import { RiAddLine, RiArrowDownSLine } from '@remixicon/react'-import { noop } from 'es-toolkit/compat'+import { noop } from 'es-toolkit/function'import { useEffect, useRef, useState } from 'react'import { useTranslation } from 'react-i18next'import Button from '@/app/components/base/button'diff --git a/web/app/components/rag-pipeline/components/panel/input-field/field-list/field-list-container.tsx b/web/app/components/rag-pipeline/components/panel/input-field/field-list/field-list-container.tsxindex 108f3a642f4..a14af1f7046 100644--- a/web/app/components/rag-pipeline/components/panel/input-field/field-list/field-list-container.tsx+++ b/web/app/components/rag-pipeline/components/panel/input-field/field-list/field-list-container.tsx@@ -1,6 +1,6 @@import type { SortableItem } from './types'import type { InputVar } from '@/models/pipeline'-import { isEqual } from 'es-toolkit/compat'+import { isEqual } from 'es-toolkit/predicate'import {memo,useCallback,diff --git a/web/app/components/rag-pipeline/components/publish-as-knowledge-pipeline-modal.tsx b/web/app/components/rag-pipeline/components/publish-as-knowledge-pipeline-modal.tsxindex 4c607810bb4..8d8c7f1088a 100644--- a/web/app/components/rag-pipeline/components/publish-as-knowledge-pipeline-modal.tsx+++ b/web/app/components/rag-pipeline/components/publish-as-knowledge-pipeline-modal.tsx@@ -2,7 +2,7 @@import type { AppIconSelection } from '@/app/components/base/app-icon-picker'import type { IconInfo } from '@/models/datasets'import { RiCloseLine } from '@remixicon/react'-import { noop } from 'es-toolkit/compat'+import { noop } from 'es-toolkit/function'import { useCallback, useState } from 'react'import { useTranslation } from 'react-i18next'import AppIcon from '@/app/components/base/app-icon'diff --git a/web/app/components/tools/labels/selector.tsx b/web/app/components/tools/labels/selector.tsxindex f95ebed72ee..08c1216700e 100644--- a/web/app/components/tools/labels/selector.tsx+++ b/web/app/components/tools/labels/selector.tsx@@ -2,7 +2,7 @@ import type { FC } from 'react'import type { Label } from '@/app/components/tools/labels/constant'import { RiArrowDownSLine } from '@remixicon/react'import { useDebounceFn } from 'ahooks'-import { noop } from 'es-toolkit/compat'+import { noop } from 'es-toolkit/function'import { useMemo, useState } from 'react'import { useTranslation } from 'react-i18next'import Checkbox from '@/app/components/base/checkbox'diff --git a/web/app/components/tools/mcp/modal.tsx b/web/app/components/tools/mcp/modal.tsxindex 9bf4b351b48..413a2d39488 100644--- a/web/app/components/tools/mcp/modal.tsx+++ b/web/app/components/tools/mcp/modal.tsx@@ -5,7 +5,7 @@ import type { ToolWithProvider } from '@/app/components/workflow/types'import type { AppIconType } from '@/types/app'import { RiCloseLine, RiEditLine } from '@remixicon/react'import { useHover } from 'ahooks'-import { noop } from 'es-toolkit/compat'+import { noop } from 'es-toolkit/function'import * as React from 'react'import { useCallback, useRef, useState } from 'react'import { useTranslation } from 'react-i18next'diff --git a/web/app/components/tools/setting/build-in/config-credentials.tsx b/web/app/components/tools/setting/build-in/config-credentials.tsxindex cb11c5cf160..863b3ba352a 100644--- a/web/app/components/tools/setting/build-in/config-credentials.tsx+++ b/web/app/components/tools/setting/build-in/config-credentials.tsx@@ -1,7 +1,7 @@'use client'import type { FC } from 'react'import type { Collection } from '../../types'-import { noop } from 'es-toolkit/compat'+import { noop } from 'es-toolkit/function'import * as React from 'react'import { useEffect, useState } from 'react'import { useTranslation } from 'react-i18next'diff --git a/web/app/components/tools/workflow-tool/confirm-modal/index.tsx b/web/app/components/tools/workflow-tool/confirm-modal/index.tsxindex 2abee055bbb..0c7e083a566 100644--- a/web/app/components/tools/workflow-tool/confirm-modal/index.tsx+++ b/web/app/components/tools/workflow-tool/confirm-modal/index.tsx@@ -1,7 +1,7 @@'use client'import { RiCloseLine } from '@remixicon/react'-import { noop } from 'es-toolkit/compat'+import { noop } from 'es-toolkit/function'import { useTranslation } from 'react-i18next'import Button from '@/app/components/base/button'import { AlertTriangle } from '@/app/components/base/icons/src/vender/solid/alertsAndFeedback'diff --git a/web/app/components/workflow-app/hooks/use-workflow-run.ts b/web/app/components/workflow-app/hooks/use-workflow-run.tsindex 031e2949cb9..49c5d20dde5 100644--- a/web/app/components/workflow-app/hooks/use-workflow-run.ts+++ b/web/app/components/workflow-app/hooks/use-workflow-run.ts@@ -2,7 +2,7 @@ import type AudioPlayer from '@/app/components/base/audio-btn/audio'import type { Node } from '@/app/components/workflow/types'import type { IOtherOptions } from '@/service/base'import type { VersionHistory } from '@/types/workflow'-import { noop } from 'es-toolkit/compat'+import { noop } from 'es-toolkit/function'import { produce } from 'immer'import { usePathname } from 'next/navigation'import { useCallback, useRef } from 'react'diff --git a/web/app/components/workflow/block-selector/market-place-plugin/list.tsx b/web/app/components/workflow/block-selector/market-place-plugin/list.tsxindex 9927df500db..29f1e77e149 100644--- a/web/app/components/workflow/block-selector/market-place-plugin/list.tsx+++ b/web/app/components/workflow/block-selector/market-place-plugin/list.tsx@@ -2,7 +2,7 @@import type { RefObject } from 'react'import type { Plugin, PluginCategoryEnum } from '@/app/components/plugins/types'import { RiArrowRightUpLine, RiSearchLine } from '@remixicon/react'-import { noop } from 'es-toolkit/compat'+import { noop } from 'es-toolkit/function'import Link from 'next/link'import { useEffect, useImperativeHandle, useMemo, useRef } from 'react'import { useTranslation } from 'react-i18next'diff --git a/web/app/components/workflow/custom-edge.tsx b/web/app/components/workflow/custom-edge.tsxindex 6427520d817..0440ca0c3e7 100644--- a/web/app/components/workflow/custom-edge.tsx+++ b/web/app/components/workflow/custom-edge.tsx@@ -3,7 +3,7 @@ import type {Edge,OnSelectBlock,} from './types'-import { intersection } from 'es-toolkit/compat'+import { intersection } from 'es-toolkit/array'import {memo,useCallback,diff --git a/web/app/components/workflow/dsl-export-confirm-modal.tsx b/web/app/components/workflow/dsl-export-confirm-modal.tsxindex 72f8c5857dd..e698de722e3 100644--- a/web/app/components/workflow/dsl-export-confirm-modal.tsx+++ b/web/app/components/workflow/dsl-export-confirm-modal.tsx@@ -1,7 +1,7 @@'use client'import type { EnvironmentVariable } from '@/app/components/workflow/types'import { RiCloseLine, RiLock2Line } from '@remixicon/react'-import { noop } from 'es-toolkit/compat'+import { noop } from 'es-toolkit/function'import * as React from 'react'import { useState } from 'react'import { useTranslation } from 'react-i18next'diff --git a/web/app/components/workflow/hooks-store/store.ts b/web/app/components/workflow/hooks-store/store.tsindex 3aa4ba3d912..44014fc0d7e 100644--- a/web/app/components/workflow/hooks-store/store.ts+++ b/web/app/components/workflow/hooks-store/store.ts@@ -10,9 +10,7 @@ import type { IOtherOptions } from '@/service/base'import type { SchemaTypeDefinition } from '@/service/use-common'import type { FlowType } from '@/types/common'import type { VarInInspect } from '@/types/workflow'-import {- noop,-} from 'es-toolkit/compat'+import { noop } from 'es-toolkit/function'import { useContext } from 'react'import {useStore as useZustandStore,diff --git a/web/app/components/workflow/hooks/use-nodes-layout.ts b/web/app/components/workflow/hooks/use-nodes-layout.tsindex 2ad89ff1005..07387037919 100644--- a/web/app/components/workflow/hooks/use-nodes-layout.ts+++ b/web/app/components/workflow/hooks/use-nodes-layout.ts@@ -3,7 +3,7 @@ import type {Node,} from '../types'import ELK from 'elkjs/lib/elk.bundled.js'-import { cloneDeep } from 'es-toolkit/compat'+import { cloneDeep } from 'es-toolkit/object'import { useCallback } from 'react'import {useReactFlow,diff --git a/web/app/components/workflow/index.tsx b/web/app/components/workflow/index.tsxindex 8eeab43d7e5..1543bce7147 100644--- a/web/app/components/workflow/index.tsx+++ b/web/app/components/workflow/index.tsx@@ -13,7 +13,7 @@ import type { VarInInspect } from '@/types/workflow'import {useEventListener,} from 'ahooks'-import { isEqual } from 'es-toolkit/compat'+import { isEqual } from 'es-toolkit/predicate'import { setAutoFreeze } from 'immer'import dynamic from 'next/dynamic'import {diff --git a/web/app/components/workflow/nodes/_base/components/agent-strategy.tsx b/web/app/components/workflow/nodes/_base/components/agent-strategy.tsxindex 8ea786ffb41..cc58176fb6f 100644--- a/web/app/components/workflow/nodes/_base/components/agent-strategy.tsx+++ b/web/app/components/workflow/nodes/_base/components/agent-strategy.tsx@@ -4,7 +4,7 @@ import type { NodeOutPutVar } from '../../../types'import type { ToolVarInputs } from '../../tool/types'import type { CredentialFormSchema, CredentialFormSchemaNumberInput, CredentialFormSchemaTextInput } from '@/app/components/header/account-setting/model-provider-page/declarations'import type { PluginMeta } from '@/app/components/plugins/types'-import { noop } from 'es-toolkit/compat'+import { noop } from 'es-toolkit/function'import Link from 'next/link'import { memo } from 'react'import { useTranslation } from 'react-i18next'diff --git a/web/app/components/workflow/nodes/_base/components/editor/code-editor/index.tsx b/web/app/components/workflow/nodes/_base/components/editor/code-editor/index.tsxindex ad5410986c2..47141395412 100644--- a/web/app/components/workflow/nodes/_base/components/editor/code-editor/index.tsx+++ b/web/app/components/workflow/nodes/_base/components/editor/code-editor/index.tsx@@ -1,7 +1,7 @@'use client'import type { FC } from 'react'import Editor, { loader } from '@monaco-editor/react'-import { noop } from 'es-toolkit/compat'+import { noop } from 'es-toolkit/function'import * as React from 'react'import { useEffect, useMemo, useRef, useState } from 'react'import {diff --git a/web/app/components/workflow/nodes/_base/components/file-type-item.tsx b/web/app/components/workflow/nodes/_base/components/file-type-item.tsxindex cef2f76da6e..aa73260af6c 100644--- a/web/app/components/workflow/nodes/_base/components/file-type-item.tsx+++ b/web/app/components/workflow/nodes/_base/components/file-type-item.tsx@@ -1,6 +1,6 @@'use client'import type { FC } from 'react'-import { noop } from 'es-toolkit/compat'+import { noop } from 'es-toolkit/function'import * as React from 'react'import { useCallback } from 'react'import { useTranslation } from 'react-i18next'diff --git a/web/app/components/workflow/nodes/_base/components/input-support-select-var.tsx b/web/app/components/workflow/nodes/_base/components/input-support-select-var.tsxindex 5a1c467be54..8880aedf801 100644--- a/web/app/components/workflow/nodes/_base/components/input-support-select-var.tsx+++ b/web/app/components/workflow/nodes/_base/components/input-support-select-var.tsx@@ -5,7 +5,7 @@ import type {NodeOutPutVar,} from '@/app/components/workflow/types'import { useBoolean } from 'ahooks'-import { noop } from 'es-toolkit/compat'+import { noop } from 'es-toolkit/function'import * as React from 'react'import { useEffect } from 'react'import { useTranslation } from 'react-i18next'diff --git a/web/app/components/workflow/nodes/_base/components/next-step/index.tsx b/web/app/components/workflow/nodes/_base/components/next-step/index.tsxindex 686c2a17c61..0b22d44aaca 100644--- a/web/app/components/workflow/nodes/_base/components/next-step/index.tsx+++ b/web/app/components/workflow/nodes/_base/components/next-step/index.tsx@@ -1,7 +1,7 @@import type {Node,} from '../../../../types'-import { isEqual } from 'es-toolkit/compat'+import { isEqual } from 'es-toolkit/predicate'import { memo, useMemo } from 'react'import { useTranslation } from 'react-i18next'import {diff --git a/web/app/components/workflow/nodes/_base/components/next-step/operator.tsx b/web/app/components/workflow/nodes/_base/components/next-step/operator.tsxindex 9b4de96f9f1..84840288688 100644--- a/web/app/components/workflow/nodes/_base/components/next-step/operator.tsx+++ b/web/app/components/workflow/nodes/_base/components/next-step/operator.tsx@@ -3,7 +3,7 @@ import type {OnSelectBlock,} from '@/app/components/workflow/types'import { RiMoreFill } from '@remixicon/react'-import { intersection } from 'es-toolkit/compat'+import { intersection } from 'es-toolkit/array'import {useCallback,} from 'react'diff --git a/web/app/components/workflow/nodes/_base/components/panel-operator/change-block.tsx b/web/app/components/workflow/nodes/_base/components/panel-operator/change-block.tsxindex 6652ce58ec2..32f9e9a1748 100644--- a/web/app/components/workflow/nodes/_base/components/panel-operator/change-block.tsx+++ b/web/app/components/workflow/nodes/_base/components/panel-operator/change-block.tsx@@ -2,7 +2,7 @@ import type {Node,OnSelectBlock,} from '@/app/components/workflow/types'-import { intersection } from 'es-toolkit/compat'+import { intersection } from 'es-toolkit/array'import {memo,useCallback,diff --git a/web/app/components/workflow/nodes/_base/components/variable/utils.ts b/web/app/components/workflow/nodes/_base/components/variable/utils.tsindex 9f033f9b277..9f77be0ce22 100644--- a/web/app/components/workflow/nodes/_base/components/variable/utils.ts+++ b/web/app/components/workflow/nodes/_base/components/variable/utils.ts@@ -33,7 +33,8 @@ import type {import type { PromptItem } from '@/models/debug'import type { RAGPipelineVariable } from '@/models/pipeline'import type { SchemaTypeDefinition } from '@/service/use-common'-import { isArray, uniq } from 'es-toolkit/compat'+import { uniq } from 'es-toolkit/array'+import { isArray } from 'es-toolkit/compat'import { produce } from 'immer'import {AGENT_OUTPUT_STRUCT,diff --git a/web/app/components/workflow/nodes/_base/components/variable/var-reference-picker.tsx b/web/app/components/workflow/nodes/_base/components/variable/var-reference-picker.tsxindex 86ec5c3c098..6dfcbaf4d81 100644--- a/web/app/components/workflow/nodes/_base/components/variable/var-reference-picker.tsx+++ b/web/app/components/workflow/nodes/_base/components/variable/var-reference-picker.tsx@@ -11,7 +11,7 @@ import {RiLoader4Line,RiMoreLine,} from '@remixicon/react'-import { noop } from 'es-toolkit/compat'+import { noop } from 'es-toolkit/function'import { produce } from 'immer'import * as React from 'react'import { useCallback, useEffect, useMemo, useRef, useState } from 'react'diff --git a/web/app/components/workflow/nodes/_base/components/variable/var-reference-vars.tsx b/web/app/components/workflow/nodes/_base/components/variable/var-reference-vars.tsxindex a8c1073d934..d44f560e08e 100644--- a/web/app/components/workflow/nodes/_base/components/variable/var-reference-vars.tsx+++ b/web/app/components/workflow/nodes/_base/components/variable/var-reference-vars.tsx@@ -4,7 +4,7 @@ import type { StructuredOutput } from '../../../llm/types'import type { Field } from '@/app/components/workflow/nodes/llm/types'import type { NodeOutPutVar, ValueSelector, Var } from '@/app/components/workflow/types'import { useHover } from 'ahooks'-import { noop } from 'es-toolkit/compat'+import { noop } from 'es-toolkit/function'import * as React from 'react'import { useEffect, useMemo, useRef, useState } from 'react'import { useTranslation } from 'react-i18next'diff --git a/web/app/components/workflow/nodes/_base/components/variable/variable-label/base/variable-label.tsx b/web/app/components/workflow/nodes/_base/components/variable/variable-label/base/variable-label.tsxindex 828f7e5ebee..55d6a14d371 100644--- a/web/app/components/workflow/nodes/_base/components/variable/variable-label/base/variable-label.tsx+++ b/web/app/components/workflow/nodes/_base/components/variable/variable-label/base/variable-label.tsx@@ -3,7 +3,7 @@ import {RiErrorWarningFill,RiMoreLine,} from '@remixicon/react'-import { capitalize } from 'es-toolkit/compat'+import { capitalize } from 'es-toolkit/string'import { memo } from 'react'import Tooltip from '@/app/components/base/tooltip'import { cn } from '@/utils/classnames'diff --git a/web/app/components/workflow/nodes/_base/hooks/use-one-step-run.ts b/web/app/components/workflow/nodes/_base/hooks/use-one-step-run.tsindex d8fd4d2c57e..d2d7b6b6d99 100644--- a/web/app/components/workflow/nodes/_base/hooks/use-one-step-run.ts+++ b/web/app/components/workflow/nodes/_base/hooks/use-one-step-run.ts@@ -1,7 +1,8 @@import type { CommonNodeType, InputVar, TriggerNodeType, ValueSelector, Var, Variable } from '@/app/components/workflow/types'import type { FlowType } from '@/types/common'import type { NodeRunResult, NodeTracing } from '@/types/workflow'-import { noop, unionBy } from 'es-toolkit/compat'+import { unionBy } from 'es-toolkit/compat'+import { noop } from 'es-toolkit/function'import { produce } from 'immer'import { useCallback, useEffect, useRef, useState } from 'react'diff --git a/web/app/components/workflow/nodes/assigner/components/var-list/index.tsx b/web/app/components/workflow/nodes/assigner/components/var-list/index.tsxindex 0fd735abbb0..202d7469aa6 100644--- a/web/app/components/workflow/nodes/assigner/components/var-list/index.tsx+++ b/web/app/components/workflow/nodes/assigner/components/var-list/index.tsx@@ -3,7 +3,7 @@ import type { FC } from 'react'import type { AssignerNodeOperation } from '../../types'import type { ValueSelector, Var } from '@/app/components/workflow/types'import { RiDeleteBinLine } from '@remixicon/react'-import { noop } from 'es-toolkit/compat'+import { noop } from 'es-toolkit/function'import { produce } from 'immer'import * as React from 'react'import { useCallback } from 'react'diff --git a/web/app/components/workflow/nodes/if-else/components/condition-number-input.tsx b/web/app/components/workflow/nodes/if-else/components/condition-number-input.tsxindex ee81d70106e..ed538618e30 100644--- a/web/app/components/workflow/nodes/if-else/components/condition-number-input.tsx+++ b/web/app/components/workflow/nodes/if-else/components/condition-number-input.tsx@@ -4,7 +4,7 @@ import type {} from '@/app/components/workflow/types'import { RiArrowDownSLine } from '@remixicon/react'import { useBoolean } from 'ahooks'-import { capitalize } from 'es-toolkit/compat'+import { capitalize } from 'es-toolkit/string'import {memo,useCallback,diff --git a/web/app/components/workflow/nodes/if-else/components/condition-wrap.tsx b/web/app/components/workflow/nodes/if-else/components/condition-wrap.tsxindex 5554696480f..7ac76dd9363 100644--- a/web/app/components/workflow/nodes/if-else/components/condition-wrap.tsx+++ b/web/app/components/workflow/nodes/if-else/components/condition-wrap.tsx@@ -7,7 +7,7 @@ import {RiDeleteBinLine,RiDraggable,} from '@remixicon/react'-import { noop } from 'es-toolkit/compat'+import { noop } from 'es-toolkit/function'import * as React from 'react'import { useCallback, useState } from 'react'import { useTranslation } from 'react-i18next'diff --git a/web/app/components/workflow/nodes/iteration/use-config.ts b/web/app/components/workflow/nodes/iteration/use-config.tsindex 31065770859..79df4094749 100644--- a/web/app/components/workflow/nodes/iteration/use-config.ts+++ b/web/app/components/workflow/nodes/iteration/use-config.ts@@ -2,7 +2,7 @@ import type { ErrorHandleMode, ValueSelector, Var } from '../../types'import type { IterationNodeType } from './types'import type { Item } from '@/app/components/base/select'import type { VarType as VarKindType } from '@/app/components/workflow/nodes/tool/types'-import { isEqual } from 'es-toolkit/compat'+import { isEqual } from 'es-toolkit/predicate'import { produce } from 'immer'import { useCallback } from 'react'import {diff --git a/web/app/components/workflow/nodes/knowledge-retrieval/components/metadata/condition-list/condition-value-method.tsx b/web/app/components/workflow/nodes/knowledge-retrieval/components/metadata/condition-list/condition-value-method.tsxindex 574501a27dc..08a316c82a3 100644--- a/web/app/components/workflow/nodes/knowledge-retrieval/components/metadata/condition-list/condition-value-method.tsx+++ b/web/app/components/workflow/nodes/knowledge-retrieval/components/metadata/condition-list/condition-value-method.tsx@@ -1,5 +1,5 @@import { RiArrowDownSLine } from '@remixicon/react'-import { capitalize } from 'es-toolkit/compat'+import { capitalize } from 'es-toolkit/string'import { useState } from 'react'import Button from '@/app/components/base/button'import {diff --git a/web/app/components/workflow/nodes/knowledge-retrieval/components/metadata/metadata-filter/index.tsx b/web/app/components/workflow/nodes/knowledge-retrieval/components/metadata/metadata-filter/index.tsxindex 3394c1f7a7e..88b7ff303c5 100644--- a/web/app/components/workflow/nodes/knowledge-retrieval/components/metadata/metadata-filter/index.tsx+++ b/web/app/components/workflow/nodes/knowledge-retrieval/components/metadata/metadata-filter/index.tsx@@ -1,5 +1,5 @@import type { MetadataShape } from '@/app/components/workflow/nodes/knowledge-retrieval/types'-import { noop } from 'es-toolkit/compat'+import { noop } from 'es-toolkit/function'import {useCallback,useState,diff --git a/web/app/components/workflow/nodes/knowledge-retrieval/use-config.ts b/web/app/components/workflow/nodes/knowledge-retrieval/use-config.tsindex 5208200b252..a1662a1e1cd 100644--- a/web/app/components/workflow/nodes/knowledge-retrieval/use-config.ts+++ b/web/app/components/workflow/nodes/knowledge-retrieval/use-config.ts@@ -9,7 +9,7 @@ import type {MultipleRetrievalConfig,} from './types'import type { DataSet } from '@/models/datasets'-import { isEqual } from 'es-toolkit/compat'+import { isEqual } from 'es-toolkit/predicate'import { produce } from 'immer'import {useCallback,diff --git a/web/app/components/workflow/nodes/knowledge-retrieval/utils.ts b/web/app/components/workflow/nodes/knowledge-retrieval/utils.tsindex d6cd69b39ac..a30ec8e7356 100644--- a/web/app/components/workflow/nodes/knowledge-retrieval/utils.ts+++ b/web/app/components/workflow/nodes/knowledge-retrieval/utils.ts@@ -3,10 +3,8 @@ import type {DataSet,SelectedDatasetsMode,} from '@/models/datasets'-import {- uniq,- xorBy,-} from 'es-toolkit/compat'+import { uniq } from 'es-toolkit/array'+import { xorBy } from 'es-toolkit/compat'import { DATASET_DEFAULT } from '@/config'import {DEFAULT_WEIGHTED_SCORE,diff --git a/web/app/components/workflow/nodes/llm/components/json-schema-config-modal/visual-editor/context.tsx b/web/app/components/workflow/nodes/llm/components/json-schema-config-modal/visual-editor/context.tsxindex 557cddfb61c..82a3c27a981 100644--- a/web/app/components/workflow/nodes/llm/components/json-schema-config-modal/visual-editor/context.tsx+++ b/web/app/components/workflow/nodes/llm/components/json-schema-config-modal/visual-editor/context.tsx@@ -1,4 +1,4 @@-import { noop } from 'es-toolkit/compat'+import { noop } from 'es-toolkit/function'import {createContext,useContext,diff --git a/web/app/components/workflow/nodes/llm/components/json-schema-config-modal/visual-editor/hooks.ts b/web/app/components/workflow/nodes/llm/components/json-schema-config-modal/visual-editor/hooks.tsindex 1673c80f4f6..6159028c215 100644--- a/web/app/components/workflow/nodes/llm/components/json-schema-config-modal/visual-editor/hooks.ts+++ b/web/app/components/workflow/nodes/llm/components/json-schema-config-modal/visual-editor/hooks.ts@@ -1,7 +1,7 @@import type { VisualEditorProps } from '.'import type { Field } from '../../../types'import type { EditData } from './edit-card'-import { noop } from 'es-toolkit/compat'+import { noop } from 'es-toolkit/function'import { produce } from 'immer'import Toast from '@/app/components/base/toast'import { ArrayType, Type } from '../../../types'diff --git a/web/app/components/workflow/nodes/llm/use-single-run-form-params.ts b/web/app/components/workflow/nodes/llm/use-single-run-form-params.tsindex 580a5d44ad0..e0c4c97fad0 100644--- a/web/app/components/workflow/nodes/llm/use-single-run-form-params.ts+++ b/web/app/components/workflow/nodes/llm/use-single-run-form-params.ts@@ -2,7 +2,7 @@ import type { RefObject } from 'react'import type { LLMNodeType } from './types'import type { Props as FormProps } from '@/app/components/workflow/nodes/_base/components/before-run-form/form'import type { InputVar, PromptItem, Var, Variable } from '@/app/components/workflow/types'-import { noop } from 'es-toolkit/compat'+import { noop } from 'es-toolkit/function'import { useCallback } from 'react'import { useTranslation } from 'react-i18next'import { InputVarType, VarType } from '@/app/components/workflow/types'diff --git a/web/app/components/workflow/nodes/loop/components/condition-number-input.tsx b/web/app/components/workflow/nodes/loop/components/condition-number-input.tsxindex ee81d70106e..ed538618e30 100644--- a/web/app/components/workflow/nodes/loop/components/condition-number-input.tsx+++ b/web/app/components/workflow/nodes/loop/components/condition-number-input.tsx@@ -4,7 +4,7 @@ import type {} from '@/app/components/workflow/types'import { RiArrowDownSLine } from '@remixicon/react'import { useBoolean } from 'ahooks'-import { capitalize } from 'es-toolkit/compat'+import { capitalize } from 'es-toolkit/string'import {memo,useCallback,diff --git a/web/app/components/workflow/nodes/parameter-extractor/use-single-run-form-params.ts b/web/app/components/workflow/nodes/parameter-extractor/use-single-run-form-params.tsindex e736ee6e79b..52a44621538 100644--- a/web/app/components/workflow/nodes/parameter-extractor/use-single-run-form-params.ts+++ b/web/app/components/workflow/nodes/parameter-extractor/use-single-run-form-params.ts@@ -2,7 +2,7 @@ import type { RefObject } from 'react'import type { ParameterExtractorNodeType } from './types'import type { Props as FormProps } from '@/app/components/workflow/nodes/_base/components/before-run-form/form'import type { InputVar, Var, Variable } from '@/app/components/workflow/types'-import { noop } from 'es-toolkit/compat'+import { noop } from 'es-toolkit/function'import { useCallback } from 'react'import { useTranslation } from 'react-i18next'import { InputVarType, VarType } from '@/app/components/workflow/types'diff --git a/web/app/components/workflow/nodes/question-classifier/components/class-list.tsx b/web/app/components/workflow/nodes/question-classifier/components/class-list.tsxindex 724de571b69..5e41b5ee1c4 100644--- a/web/app/components/workflow/nodes/question-classifier/components/class-list.tsx+++ b/web/app/components/workflow/nodes/question-classifier/components/class-list.tsx@@ -3,7 +3,7 @@ import type { FC } from 'react'import type { Topic } from '@/app/components/workflow/nodes/question-classifier/types'import type { ValueSelector, Var } from '@/app/components/workflow/types'import { RiDraggable } from '@remixicon/react'-import { noop } from 'es-toolkit/compat'+import { noop } from 'es-toolkit/function'import { produce } from 'immer'import * as React from 'react'import { useCallback, useEffect, useRef, useState } from 'react'diff --git a/web/app/components/workflow/nodes/question-classifier/use-single-run-form-params.ts b/web/app/components/workflow/nodes/question-classifier/use-single-run-form-params.tsindex 2bea1f83182..9b4b05367e7 100644--- a/web/app/components/workflow/nodes/question-classifier/use-single-run-form-params.ts+++ b/web/app/components/workflow/nodes/question-classifier/use-single-run-form-params.ts@@ -2,7 +2,7 @@ import type { RefObject } from 'react'import type { QuestionClassifierNodeType } from './types'import type { Props as FormProps } from '@/app/components/workflow/nodes/_base/components/before-run-form/form'import type { InputVar, Var, Variable } from '@/app/components/workflow/types'-import { noop } from 'es-toolkit/compat'+import { noop } from 'es-toolkit/function'import { useCallback } from 'react'import { useTranslation } from 'react-i18next'import { InputVarType, VarType } from '@/app/components/workflow/types'diff --git a/web/app/components/workflow/nodes/start/components/var-item.tsx b/web/app/components/workflow/nodes/start/components/var-item.tsxindex fdb07d0be98..64fd1804b05 100644--- a/web/app/components/workflow/nodes/start/components/var-item.tsx+++ b/web/app/components/workflow/nodes/start/components/var-item.tsx@@ -5,7 +5,7 @@ import {RiDeleteBinLine,} from '@remixicon/react'import { useBoolean, useHover } from 'ahooks'-import { noop } from 'es-toolkit/compat'+import { noop } from 'es-toolkit/function'import * as React from 'react'import { useCallback, useRef } from 'react'import { useTranslation } from 'react-i18next'diff --git a/web/app/components/workflow/nodes/tool/components/input-var-list.tsx b/web/app/components/workflow/nodes/tool/components/input-var-list.tsxindex 9bd01ac74e7..96a878b506b 100644--- a/web/app/components/workflow/nodes/tool/components/input-var-list.tsx+++ b/web/app/components/workflow/nodes/tool/components/input-var-list.tsx@@ -4,7 +4,7 @@ import type { ToolVarInputs } from '../types'import type { CredentialFormSchema } from '@/app/components/header/account-setting/model-provider-page/declarations'import type { Tool } from '@/app/components/tools/types'import type { ToolWithProvider, ValueSelector, Var } from '@/app/components/workflow/types'-import { noop } from 'es-toolkit/compat'+import { noop } from 'es-toolkit/function'import { produce } from 'immer'import * as React from 'react'import { useCallback, useState } from 'react'diff --git a/web/app/components/workflow/nodes/variable-assigner/components/var-list/index.tsx b/web/app/components/workflow/nodes/variable-assigner/components/var-list/index.tsxindex c2f289b7d15..1f45a8a0e1d 100644--- a/web/app/components/workflow/nodes/variable-assigner/components/var-list/index.tsx+++ b/web/app/components/workflow/nodes/variable-assigner/components/var-list/index.tsx@@ -1,7 +1,7 @@'use client'import type { FC } from 'react'import type { ValueSelector, Var } from '@/app/components/workflow/types'-import { noop } from 'es-toolkit/compat'+import { noop } from 'es-toolkit/function'import { produce } from 'immer'import * as React from 'react'import { useCallback } from 'react'diff --git a/web/app/components/workflow/note-node/note-editor/plugins/link-editor-plugin/component.tsx b/web/app/components/workflow/note-node/note-editor/plugins/link-editor-plugin/component.tsxindex 20027f37a10..b66827da459 100644--- a/web/app/components/workflow/note-node/note-editor/plugins/link-editor-plugin/component.tsx+++ b/web/app/components/workflow/note-node/note-editor/plugins/link-editor-plugin/component.tsx@@ -11,7 +11,7 @@ import {RiLinkUnlinkM,} from '@remixicon/react'import { useClickAway } from 'ahooks'-import { escape } from 'es-toolkit/compat'+import { escape } from 'es-toolkit/string'import {memo,useEffect,diff --git a/web/app/components/workflow/note-node/note-editor/plugins/link-editor-plugin/hooks.ts b/web/app/components/workflow/note-node/note-editor/plugins/link-editor-plugin/hooks.tsindex 5248680d89a..3a084ef0afc 100644--- a/web/app/components/workflow/note-node/note-editor/plugins/link-editor-plugin/hooks.ts+++ b/web/app/components/workflow/note-node/note-editor/plugins/link-editor-plugin/hooks.ts@@ -5,7 +5,7 @@ import { useLexicalComposerContext } from '@lexical/react/LexicalComposerContextimport {mergeRegister,} from '@lexical/utils'-import { escape } from 'es-toolkit/compat'+import { escape } from 'es-toolkit/string'import {CLICK_COMMAND,COMMAND_PRIORITY_LOW,diff --git a/web/app/components/workflow/panel/chat-variable-panel/components/variable-item.tsx b/web/app/components/workflow/panel/chat-variable-panel/components/variable-item.tsxindex 9fec4f7d014..58548e30844 100644--- a/web/app/components/workflow/panel/chat-variable-panel/components/variable-item.tsx+++ b/web/app/components/workflow/panel/chat-variable-panel/components/variable-item.tsx@@ -1,6 +1,6 @@import type { ConversationVariable } from '@/app/components/workflow/types'import { RiDeleteBinLine, RiEditLine } from '@remixicon/react'-import { capitalize } from 'es-toolkit/compat'+import { capitalize } from 'es-toolkit/string'import { memo, useState } from 'react'import { BubbleX } from '@/app/components/base/icons/src/vender/line/others'import { cn } from '@/utils/classnames'diff --git a/web/app/components/workflow/panel/debug-and-preview/conversation-variable-modal.tsx b/web/app/components/workflow/panel/debug-and-preview/conversation-variable-modal.tsxindex 4e9b72f6e5a..0f6a4c081d4 100644--- a/web/app/components/workflow/panel/debug-and-preview/conversation-variable-modal.tsx+++ b/web/app/components/workflow/panel/debug-and-preview/conversation-variable-modal.tsx@@ -5,7 +5,8 @@ import type {import { RiCloseLine } from '@remixicon/react'import { useMount } from 'ahooks'import copy from 'copy-to-clipboard'-import { capitalize, noop } from 'es-toolkit/compat'+import { noop } from 'es-toolkit/function'+import { capitalize } from 'es-toolkit/string'import * as React from 'react'import { useCallback } from 'react'import { useTranslation } from 'react-i18next'diff --git a/web/app/components/workflow/panel/debug-and-preview/index.tsx b/web/app/components/workflow/panel/debug-and-preview/index.tsxindex b42d4205fa5..bc5116bc65a 100644--- a/web/app/components/workflow/panel/debug-and-preview/index.tsx+++ b/web/app/components/workflow/panel/debug-and-preview/index.tsx@@ -1,7 +1,8 @@import type { StartNodeType } from '../../nodes/start/types'import { RiCloseLine, RiEqualizer2Line } from '@remixicon/react'-import { debounce, noop } from 'es-toolkit/compat'+import { debounce } from 'es-toolkit/compat'+import { noop } from 'es-toolkit/function'import {memo,useCallback,diff --git a/web/app/components/workflow/panel/env-panel/env-item.tsx b/web/app/components/workflow/panel/env-panel/env-item.tsxindex 582539b85b8..26696daad04 100644--- a/web/app/components/workflow/panel/env-panel/env-item.tsx+++ b/web/app/components/workflow/panel/env-panel/env-item.tsx@@ -1,6 +1,6 @@import type { EnvironmentVariable } from '@/app/components/workflow/types'import { RiDeleteBinLine, RiEditLine, RiLock2Line } from '@remixicon/react'-import { capitalize } from 'es-toolkit/compat'+import { capitalize } from 'es-toolkit/string'import { memo, useState } from 'react'import { Env } from '@/app/components/base/icons/src/vender/line/others'import { useStore } from '@/app/components/workflow/store'diff --git a/web/app/components/workflow/panel/global-variable-panel/item.tsx b/web/app/components/workflow/panel/global-variable-panel/item.tsxindex 458dd276923..83c0df77586 100644--- a/web/app/components/workflow/panel/global-variable-panel/item.tsx+++ b/web/app/components/workflow/panel/global-variable-panel/item.tsx@@ -1,5 +1,5 @@import type { GlobalVariable } from '@/app/components/workflow/types'-import { capitalize } from 'es-toolkit/compat'+import { capitalize } from 'es-toolkit/string'import { memo } from 'react'import { GlobalVariable as GlobalVariableIcon } from '@/app/components/base/icons/src/vender/line/others'diff --git a/web/app/components/workflow/run/utils/format-log/agent/index.ts b/web/app/components/workflow/run/utils/format-log/agent/index.tsindex f86e4b33bb8..19acd8c1201 100644--- a/web/app/components/workflow/run/utils/format-log/agent/index.ts+++ b/web/app/components/workflow/run/utils/format-log/agent/index.ts@@ -1,5 +1,5 @@import type { AgentLogItem, AgentLogItemWithChildren, NodeTracing } from '@/types/workflow'-import { cloneDeep } from 'es-toolkit/compat'+import { cloneDeep } from 'es-toolkit/object'import { BlockEnum } from '@/app/components/workflow/types'const supportedAgentLogNodes = [BlockEnum.Agent, BlockEnum.Tool]diff --git a/web/app/components/workflow/run/utils/format-log/index.ts b/web/app/components/workflow/run/utils/format-log/index.tsindex 1dbe8f16823..c152a5156ab 100644--- a/web/app/components/workflow/run/utils/format-log/index.ts+++ b/web/app/components/workflow/run/utils/format-log/index.ts@@ -1,5 +1,5 @@import type { NodeTracing } from '@/types/workflow'-import { cloneDeep } from 'es-toolkit/compat'+import { cloneDeep } from 'es-toolkit/object'import { BlockEnum } from '../../../types'import formatAgentNode from './agent'import { addChildrenToIterationNode } from './iteration'diff --git a/web/app/components/workflow/run/utils/format-log/iteration/index.spec.ts b/web/app/components/workflow/run/utils/format-log/iteration/index.spec.tsindex 8b4416f5299..f984dbea761 100644--- a/web/app/components/workflow/run/utils/format-log/iteration/index.spec.ts+++ b/web/app/components/workflow/run/utils/format-log/iteration/index.spec.ts@@ -1,4 +1,4 @@-import { noop } from 'es-toolkit/compat'+import { noop } from 'es-toolkit/function'import format from '.'import graphToLogStruct from '../graph-to-log-struct'diff --git a/web/app/components/workflow/run/utils/format-log/loop/index.spec.ts b/web/app/components/workflow/run/utils/format-log/loop/index.spec.tsindex 3d31e43ba3e..d2a2fd24bbc 100644--- a/web/app/components/workflow/run/utils/format-log/loop/index.spec.ts+++ b/web/app/components/workflow/run/utils/format-log/loop/index.spec.ts@@ -1,4 +1,4 @@-import { noop } from 'es-toolkit/compat'+import { noop } from 'es-toolkit/function'import format from '.'import graphToLogStruct from '../graph-to-log-struct'diff --git a/web/app/components/workflow/utils/elk-layout.ts b/web/app/components/workflow/utils/elk-layout.tsindex 1a4bbf2d502..c3b37c8f16d 100644--- a/web/app/components/workflow/utils/elk-layout.ts+++ b/web/app/components/workflow/utils/elk-layout.ts@@ -5,7 +5,7 @@ import type {Node,} from '@/app/components/workflow/types'import ELK from 'elkjs/lib/elk.bundled.js'-import { cloneDeep } from 'es-toolkit/compat'+import { cloneDeep } from 'es-toolkit/object'import {CUSTOM_NODE,NODE_LAYOUT_HORIZONTAL_PADDING,diff --git a/web/app/components/workflow/utils/workflow-init.ts b/web/app/components/workflow/utils/workflow-init.tsindex fa211934e48..77a2ccefaca 100644--- a/web/app/components/workflow/utils/workflow-init.ts+++ b/web/app/components/workflow/utils/workflow-init.ts@@ -7,9 +7,7 @@ import type {Edge,Node,} from '../types'-import {- cloneDeep,-} from 'es-toolkit/compat'+import { cloneDeep } from 'es-toolkit/object'import {getConnectedEdges,} from 'reactflow'diff --git a/web/app/components/workflow/workflow-history-store.tsx b/web/app/components/workflow/workflow-history-store.tsxindex 6729fe50e39..5d10f81b27b 100644--- a/web/app/components/workflow/workflow-history-store.tsx+++ b/web/app/components/workflow/workflow-history-store.tsx@@ -3,7 +3,7 @@ import type { TemporalState } from 'zundo'import type { StoreApi } from 'zustand'import type { WorkflowHistoryEventT } from './hooks'import type { Edge, Node } from './types'-import { noop } from 'es-toolkit/compat'+import { noop } from 'es-toolkit/function'import isDeepEqual from 'fast-deep-equal'import { createContext, useContext, useMemo, useState } from 'react'import { temporal } from 'zundo'diff --git a/web/app/education-apply/education-apply-page.tsx b/web/app/education-apply/education-apply-page.tsxindex f9ab2b4646e..0be88091dc7 100644--- a/web/app/education-apply/education-apply-page.tsx+++ b/web/app/education-apply/education-apply-page.tsx@@ -1,7 +1,7 @@'use client'import { RiExternalLinkLine } from '@remixicon/react'-import { noop } from 'es-toolkit/compat'+import { noop } from 'es-toolkit/function'import {useRouter,useSearchParams,diff --git a/web/app/reset-password/page.tsx b/web/app/reset-password/page.tsxindex 6be429960c2..9fdccdfd870 100644--- a/web/app/reset-password/page.tsx+++ b/web/app/reset-password/page.tsx@@ -1,6 +1,6 @@'use client'import { RiArrowLeftLine, RiLockPasswordLine } from '@remixicon/react'-import { noop } from 'es-toolkit/compat'+import { noop } from 'es-toolkit/function'import Link from 'next/link'import { useRouter, useSearchParams } from 'next/navigation'import { useState } from 'react'diff --git a/web/app/signin/components/mail-and-password-auth.tsx b/web/app/signin/components/mail-and-password-auth.tsxindex 4a18e884ad8..101ddf559aa 100644--- a/web/app/signin/components/mail-and-password-auth.tsx+++ b/web/app/signin/components/mail-and-password-auth.tsx@@ -1,5 +1,5 @@import type { ResponseError } from '@/service/fetch'-import { noop } from 'es-toolkit/compat'+import { noop } from 'es-toolkit/function'import Link from 'next/link'import { useRouter, useSearchParams } from 'next/navigation'import { useState } from 'react'diff --git a/web/app/signin/invite-settings/page.tsx b/web/app/signin/invite-settings/page.tsxindex 360f305cbd4..1e386383604 100644--- a/web/app/signin/invite-settings/page.tsx+++ b/web/app/signin/invite-settings/page.tsx@@ -1,7 +1,7 @@'use client'import type { Locale } from '@/i18n-config'import { RiAccountCircleLine } from '@remixicon/react'-import { noop } from 'es-toolkit/compat'+import { noop } from 'es-toolkit/function'import Link from 'next/link'import { useRouter, useSearchParams } from 'next/navigation'import { useCallback, useState } from 'react'diff --git a/web/app/signup/components/input-mail.tsx b/web/app/signup/components/input-mail.tsxindex a1730b90c9e..6342e7909ca 100644--- a/web/app/signup/components/input-mail.tsx+++ b/web/app/signup/components/input-mail.tsx@@ -1,6 +1,6 @@'use client'import type { MailSendResponse } from '@/service/use-common'-import { noop } from 'es-toolkit/compat'+import { noop } from 'es-toolkit/function'import Link from 'next/link'import { useCallback, useState } from 'react'import { useTranslation } from 'react-i18next'diff --git a/web/context/app-context.tsx b/web/context/app-context.tsxindex cb4cab65b77..335f96fcce0 100644--- a/web/context/app-context.tsx+++ b/web/context/app-context.tsx@@ -3,7 +3,7 @@import type { FC, ReactNode } from 'react'import type { ICurrentWorkspace, LangGeniusVersionResponse, UserProfileResponse } from '@/models/common'import { useQueryClient } from '@tanstack/react-query'-import { noop } from 'es-toolkit/compat'+import { noop } from 'es-toolkit/function'import { useCallback, useEffect, useMemo } from 'react'import { createContext, useContext, useContextSelector } from 'use-context-selector'import { setUserId, setUserProperties } from '@/app/components/base/amplitude'diff --git a/web/context/datasets-context.tsx b/web/context/datasets-context.tsxindex f35767bc215..d309a8ef3fd 100644--- a/web/context/datasets-context.tsx+++ b/web/context/datasets-context.tsx@@ -1,7 +1,7 @@'use client'import type { DataSet } from '@/models/datasets'-import { noop } from 'es-toolkit/compat'+import { noop } from 'es-toolkit/function'import { createContext, useContext } from 'use-context-selector'export type DatasetsContextValue = {diff --git a/web/context/debug-configuration.ts b/web/context/debug-configuration.tsindex 2518af62600..ba157e1bf7a 100644--- a/web/context/debug-configuration.ts+++ b/web/context/debug-configuration.ts@@ -22,7 +22,7 @@ import type {TextToSpeechConfig,} from '@/models/debug'import type { VisionSettings } from '@/types/app'-import { noop } from 'es-toolkit/compat'+import { noop } from 'es-toolkit/function'import { createContext, useContext } from 'use-context-selector'import { ANNOTATION_DEFAULT, DEFAULT_AGENT_SETTING, DEFAULT_CHAT_PROMPT_CONFIG, DEFAULT_COMPLETION_PROMPT_CONFIG } from '@/config'import { PromptMode } from '@/models/debug'diff --git a/web/context/explore-context.ts b/web/context/explore-context.tsindex 1a7b35a09b1..fc446c04536 100644--- a/web/context/explore-context.ts+++ b/web/context/explore-context.ts@@ -1,5 +1,5 @@import type { InstalledApp } from '@/models/explore'-import { noop } from 'es-toolkit/compat'+import { noop } from 'es-toolkit/function'import { createContext } from 'use-context-selector'type IExplore = {diff --git a/web/context/mitt-context.tsx b/web/context/mitt-context.tsxindex 0fc160613a2..4317fc56603 100644--- a/web/context/mitt-context.tsx+++ b/web/context/mitt-context.tsx@@ -1,4 +1,4 @@-import { noop } from 'es-toolkit/compat'+import { noop } from 'es-toolkit/function'import { createContext, useContext, useContextSelector } from 'use-context-selector'import { useMitt } from '@/hooks/use-mitt'diff --git a/web/context/modal-context.tsx b/web/context/modal-context.tsxindex dce7b9f6e10..293970259a7 100644--- a/web/context/modal-context.tsx+++ b/web/context/modal-context.tsx@@ -22,7 +22,7 @@ import type {ExternalDataTool,} from '@/models/common'import type { ModerationConfig, PromptVariable } from '@/models/debug'-import { noop } from 'es-toolkit/compat'+import { noop } from 'es-toolkit/function'import dynamic from 'next/dynamic'import { useCallback, useEffect, useRef, useState } from 'react'import { createContext, useContext, useContextSelector } from 'use-context-selector'diff --git a/web/context/provider-context.tsx b/web/context/provider-context.tsxindex e6a2a1c5af7..7eca72e3221 100644--- a/web/context/provider-context.tsx+++ b/web/context/provider-context.tsx@@ -5,7 +5,7 @@ import type { Model, ModelProvider } from '@/app/components/header/account-settiimport type { RETRIEVE_METHOD } from '@/types/app'import { useQueryClient } from '@tanstack/react-query'import dayjs from 'dayjs'-import { noop } from 'es-toolkit/compat'+import { noop } from 'es-toolkit/function'import { useEffect, useState } from 'react'import { useTranslation } from 'react-i18next'import { createContext, useContext, useContextSelector } from 'use-context-selector'diff --git a/web/i18n-config/i18next-config.ts b/web/i18n-config/i18next-config.tsindex 107954a3846..09974859675 100644--- a/web/i18n-config/i18next-config.ts+++ b/web/i18n-config/i18next-config.ts@@ -1,6 +1,6 @@'use client'import type { Locale } from '.'-import { camelCase, kebabCase } from 'es-toolkit/compat'+import { camelCase, kebabCase } from 'es-toolkit/string'import i18n from 'i18next'import { initReactI18next } from 'react-i18next'import appAnnotation from '../i18n/en-US/app-annotation.json'diff --git a/web/package.json b/web/package.jsonindex 300b9b450ad..1d6812b8203 100644--- a/web/package.json+++ b/web/package.json@@ -206,7 +206,6 @@"jsdom-testing-mocks": "^1.16.0","knip": "^5.66.1","lint-staged": "^15.5.2",- "lodash": "^4.17.21","nock": "^14.0.10","postcss": "^8.5.6","react-scan": "^0.4.3",diff --git a/web/pnpm-lock.yaml b/web/pnpm-lock.yamlindex 3c4f881fdfa..d5cb16cd4ce 100644--- a/web/pnpm-lock.yaml+++ b/web/pnpm-lock.yaml@@ -529,9 +529,6 @@ importers:lint-staged:specifier: ^15.5.2version: 15.5.2- lodash:- specifier: ^4.17.21- version: 4.17.21nock:specifier: ^14.0.10version: 14.0.10diff --git a/web/service/use-plugins.ts b/web/service/use-plugins.tsindex 32ea4f35fd2..5c10bac5d2e 100644--- a/web/service/use-plugins.ts+++ b/web/service/use-plugins.ts@@ -33,7 +33,7 @@ import {useQuery,useQueryClient,} from '@tanstack/react-query'-import { cloneDeep } from 'es-toolkit/compat'+import { cloneDeep } from 'es-toolkit/object'import { useCallback, useEffect, useState } from 'react'import useRefreshPluginList from '@/app/components/plugins/install-plugin/hooks/use-refresh-plugin-list'import { getFormattedPlugin } from '@/app/components/plugins/marketplace/utils'diff --git a/web/utils/index.ts b/web/utils/index.tsindex 5704e82d87d..fe6463c18e5 100644--- a/web/utils/index.ts+++ b/web/utils/index.ts@@ -1,4 +1,4 @@-import { escape } from 'es-toolkit/compat'+import { escape } from 'es-toolkit/string'export const sleep = (ms: number) => {return new Promise(resolve => setTimeout(resolve, ms))