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
lint: fix issue of no-unused-vars (#23375)
Matri Qi75f722a959f2
diff --git a/web/app/(commonLayout)/datasets/create/page.tsx b/web/app/(commonLayout)/datasets/create/page.tsxindex 663a830665a..50fd1f5a191 100644--- a/web/app/(commonLayout)/datasets/create/page.tsx+++ b/web/app/(commonLayout)/datasets/create/page.tsx@@ -1,9 +1,7 @@import React from 'react'import DatasetUpdateForm from '@/app/components/datasets/create'-type Props = {}--const DatasetCreation = async (props: Props) => {+const DatasetCreation = async () => {return (<DatasetUpdateForm />)diff --git a/web/app/components/app/annotation/header-opts/index.tsx b/web/app/components/app/annotation/header-opts/index.tsxindex 463ae58ac21..7347caa2f96 100644--- a/web/app/components/app/annotation/header-opts/index.tsx+++ b/web/app/components/app/annotation/header-opts/index.tsx@@ -88,7 +88,8 @@ const HeaderOptions: FC<Props> = ({await clearAllAnnotations(appId)onAdded()}- catch (_) {+ catch (e) {+ console.error(`failed to clear all annotations, ${e}`)}finally {setShowClearConfirm(false)diff --git a/web/app/components/workflow/nodes/answer/utils.ts b/web/app/components/workflow/nodes/answer/utils.tsindex 8c3424815c0..a77faa5c790 100644--- a/web/app/components/workflow/nodes/answer/utils.ts+++ b/web/app/components/workflow/nodes/answer/utils.ts@@ -1,5 +1,5 @@import type { AnswerNodeType } from './types'-export const checkNodeValid = (payload: AnswerNodeType) => {+export const checkNodeValid = (_payload: AnswerNodeType) => {return true}diff --git a/web/app/components/workflow/nodes/assigner/utils.ts b/web/app/components/workflow/nodes/assigner/utils.tsindex c9fe1237792..d5177787bfe 100644--- a/web/app/components/workflow/nodes/assigner/utils.ts+++ b/web/app/components/workflow/nodes/assigner/utils.ts@@ -1,7 +1,7 @@import type { AssignerNodeType } from './types'import { AssignerNodeInputType, WriteMode } from './types'-export const checkNodeValid = (payload: AssignerNodeType) => {+export const checkNodeValid = (_payload: AssignerNodeType) => {return true}diff --git a/web/app/components/workflow/nodes/end/utils.ts b/web/app/components/workflow/nodes/end/utils.tsindex f214d30c521..6ca87aa2358 100644--- a/web/app/components/workflow/nodes/end/utils.ts+++ b/web/app/components/workflow/nodes/end/utils.ts@@ -1,5 +1,5 @@import type { EndNodeType } from './types'-export const checkNodeValid = (payload: EndNodeType) => {+export const checkNodeValid = (_payload: EndNodeType) => {return true}diff --git a/web/app/components/workflow/nodes/if-else/components/condition-list/condition-item.tsx b/web/app/components/workflow/nodes/if-else/components/condition-list/condition-item.tsxindex eabc10b1687..d20bd311250 100644--- a/web/app/components/workflow/nodes/if-else/components/condition-list/condition-item.tsx+++ b/web/app/components/workflow/nodes/if-else/components/condition-list/condition-item.tsx@@ -202,7 +202,7 @@ const ConditionItem = ({onRemoveCondition?.(caseId, condition.id)}, [caseId, condition, conditionId, isSubVariableKey, onRemoveCondition, onRemoveSubVariableCondition])- const handleVarChange = useCallback((valueSelector: ValueSelector, varItem: Var) => {+ const handleVarChange = useCallback((valueSelector: ValueSelector, _varItem: Var) => {const resolvedVarType = getVarType({valueSelector,availableNodes,diff --git a/web/app/components/workflow/nodes/llm/panel.tsx b/web/app/components/workflow/nodes/llm/panel.tsxindex b4754292653..1206e587345 100644--- a/web/app/components/workflow/nodes/llm/panel.tsx+++ b/web/app/components/workflow/nodes/llm/panel.tsx@@ -82,7 +82,7 @@ const Panel: FC<NodePanelProps<LLMNodeType>> = ({Toast.notify({ type: 'warning', message: `${t('common.modelProvider.parametersInvalidRemoved')}: ${keys.map(k => `${k} (${removedDetails[k]})`).join(', ')}` })handleCompletionParamsChange(filtered)}- catch (e) {+ catch {Toast.notify({ type: 'error', message: t('common.error') })handleCompletionParamsChange({})}diff --git a/web/app/components/workflow/nodes/llm/utils.ts b/web/app/components/workflow/nodes/llm/utils.tsindex b29646de66e..fd943d1fa34 100644--- a/web/app/components/workflow/nodes/llm/utils.ts+++ b/web/app/components/workflow/nodes/llm/utils.ts@@ -5,7 +5,7 @@ import { Validator } from 'jsonschema'import produce from 'immer'import { z } from 'zod'-export const checkNodeValid = (payload: LLMNodeType) => {+export const checkNodeValid = (_payload: LLMNodeType) => {return true}@@ -280,7 +280,7 @@ const validator = new Validator()export const validateSchemaAgainstDraft7 = (schemaToValidate: any) => {const schema = produce(schemaToValidate, (draft: any) => {- // Make sure the schema has the $schema property for draft-07+ // Make sure the schema has the $schema property for draft-07if (!draft.$schema)draft.$schema = 'http://json-schema.org/draft-07/schema#'})diff --git a/web/app/components/workflow/nodes/loop/use-config.ts b/web/app/components/workflow/nodes/loop/use-config.tsindex 965fe2b395e..4c6e07c9c07 100644--- a/web/app/components/workflow/nodes/loop/use-config.ts+++ b/web/app/components/workflow/nodes/loop/use-config.ts@@ -6,7 +6,6 @@ import produce from 'immer'import { v4 as uuid4 } from 'uuid'import {useIsChatMode,- useIsNodeInLoop,useNodesReadOnly,useWorkflow,} from '../../hooks'@@ -20,10 +19,8 @@ import type { HandleAddCondition, HandleAddSubVariableCondition, HandleRemoveConimport useIsVarFileAttribute from './use-is-var-file-attribute'import { useStore } from '@/app/components/workflow/store'-const DELIMITER = '@@@@@'const useConfig = (id: string, payload: LoopNodeType) => {const { nodesReadOnly: readOnly } = useNodesReadOnly()- const { isNodeInLoop } = useIsNodeInLoop(id)const isChatMode = useIsChatMode()const conversationVariables = useStore(s => s.conversationVariables)@@ -39,10 +36,8 @@ const useConfig = (id: string, payload: LoopNodeType) => {}, [])// output- const { getLoopNodeChildren, getBeforeNodesInSameBranch } = useWorkflow()- const beforeNodes = getBeforeNodesInSameBranch(id)+ const { getLoopNodeChildren } = useWorkflow()const loopChildrenNodes = [{ id, data: payload } as any, ...getLoopNodeChildren(id)]- const canChooseVarNodes = [...beforeNodes, ...loopChildrenNodes]const childrenNodeVars = toNodeOutputVars(loopChildrenNodes, isChatMode, undefined, [], conversationVariables)const {diff --git a/web/app/components/workflow/nodes/start/utils.ts b/web/app/components/workflow/nodes/start/utils.tsindex 037b52a1639..16743d6178f 100644--- a/web/app/components/workflow/nodes/start/utils.ts+++ b/web/app/components/workflow/nodes/start/utils.ts@@ -1,5 +1,5 @@import type { StartNodeType } from './types'-export const checkNodeValid = (payload: StartNodeType) => {+export const checkNodeValid = (_payload: StartNodeType) => {return true}diff --git a/web/app/components/workflow/nodes/template-transform/utils.ts b/web/app/components/workflow/nodes/template-transform/utils.tsindex 0ca4849a0e6..874ee2c1a15 100644--- a/web/app/components/workflow/nodes/template-transform/utils.ts+++ b/web/app/components/workflow/nodes/template-transform/utils.ts@@ -1,5 +1,5 @@import type { TemplateTransformNodeType } from './types'-export const checkNodeValid = (payload: TemplateTransformNodeType) => {+export const checkNodeValid = (_payload: TemplateTransformNodeType) => {return true}diff --git a/web/app/components/workflow/nodes/tool/utils.ts b/web/app/components/workflow/nodes/tool/utils.tsindex 5ef2c537e59..c55d2f38074 100644--- a/web/app/components/workflow/nodes/tool/utils.ts+++ b/web/app/components/workflow/nodes/tool/utils.ts@@ -1,5 +1,5 @@import type { ToolNodeType } from './types'-export const checkNodeValid = (payload: ToolNodeType) => {+export const checkNodeValid = (_payload: ToolNodeType) => {return true}diff --git a/web/app/components/workflow/store/workflow/debug/inspect-vars-slice.ts b/web/app/components/workflow/store/workflow/debug/inspect-vars-slice.tsindex 51f66bee137..291ed86ba3f 100644--- a/web/app/components/workflow/store/workflow/debug/inspect-vars-slice.ts+++ b/web/app/components/workflow/store/workflow/debug/inspect-vars-slice.ts@@ -23,7 +23,7 @@ type InspectVarsActions = {export type InspectVarsSliceShape = InspectVarsState & InspectVarsActions-export const createInspectVarsSlice: StateCreator<InspectVarsSliceShape> = (set, get) => {+export const createInspectVarsSlice: StateCreator<InspectVarsSliceShape> = (set) => {return ({currentFocusNodeId: null,nodesWithInspectVars: [],@@ -75,11 +75,11 @@ export const createInspectVarsSlice: StateCreator<InspectVarsSliceShape> = (set,if (!targetNode)returnconst targetVar = targetNode.vars.find(varItem => varItem.id === varId)- if(!targetVar)+ if (!targetVar)returntargetVar.value = valuetargetVar.edited = true- },+ },)return {nodesWithInspectVars: nodes,@@ -93,11 +93,11 @@ export const createInspectVarsSlice: StateCreator<InspectVarsSliceShape> = (set,if (!targetNode)returnconst targetVar = targetNode.vars.find(varItem => varItem.id === varId)- if(!targetVar)+ if (!targetVar)returntargetVar.value = valuetargetVar.edited = false- },+ },)return {nodesWithInspectVars: nodes,@@ -111,11 +111,11 @@ export const createInspectVarsSlice: StateCreator<InspectVarsSliceShape> = (set,if (!targetNode)returnconst targetVar = targetNode.vars.find(varItem => varItem.id === varId)- if(!targetVar)+ if (!targetVar)returntargetVar.name = selector[1]targetVar.selector = selector- },+ },)return {nodesWithInspectVars: nodes,@@ -131,7 +131,7 @@ export const createInspectVarsSlice: StateCreator<InspectVarsSliceShape> = (set,const needChangeVarIndex = targetNode.vars.findIndex(varItem => varItem.id === varId)if (needChangeVarIndex !== -1)targetNode.vars.splice(needChangeVarIndex, 1)- },+ },)return {nodesWithInspectVars: nodes,diff --git a/web/eslint.config.mjs b/web/eslint.config.mjsindex 8f1598e8719..dda2beff021 100644--- a/web/eslint.config.mjs+++ b/web/eslint.config.mjs@@ -82,6 +82,7 @@ export default combine('**/.next/','**/public/*','**/*.json',+ '**/*.js',],},{