Skip to content

armgit / dify

Public Imported from GitHub
0

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.

feat: add Knip configuration for dead code detection and remove unused icon components (#26758)

GuanMu3e5e87930c61
diff --git a/web/app/components/base/icons/assets/vender/knowledge/index.ts b/web/app/components/base/icons/assets/vender/knowledge/index.ts
deleted file mode 100644
index 7ef6f1b8e4a..00000000000
--- a/web/app/components/base/icons/assets/vender/knowledge/index.ts
+++ /dev/null
@@ -1,13 +0,0 @@
-export { default as Chunk } from './Chunk'
-export { default as Collapse } from './Collapse'
-export { default as Divider } from './Divider'
-export { default as File } from './File'
-export { default as GeneralType } from './GeneralType'
-export { default as LayoutRight2LineMod } from './LayoutRight2LineMod'
-export { default as OptionCardEffectBlueLight } from './OptionCardEffectBlueLight'
-export { default as OptionCardEffectBlue } from './OptionCardEffectBlue'
-export { default as OptionCardEffectOrange } from './OptionCardEffectOrange'
-export { default as OptionCardEffectPurple } from './OptionCardEffectPurple'
-export { default as ParentChildType } from './ParentChildType'
-export { default as SelectionMod } from './SelectionMod'
-export { default as Watercrawl } from './Watercrawl'
diff --git a/web/app/components/base/icons/src/image/llm/BaichuanTextCn.module.css b/web/app/components/base/icons/src/image/llm/BaichuanTextCn.module.css
deleted file mode 100644
index 97ab9b22f90..00000000000
--- a/web/app/components/base/icons/src/image/llm/BaichuanTextCn.module.css
+++ /dev/null
@@ -1,5 +0,0 @@
-.wrapper {
- display: inline-flex;
- background: url(~@/app/components/base/icons/assets/image/llm/baichuan-text-cn.png) center center no-repeat;
- background-size: contain;
-}
diff --git a/web/app/components/base/icons/src/image/llm/BaichuanTextCn.tsx b/web/app/components/base/icons/src/image/llm/BaichuanTextCn.tsx
deleted file mode 100644
index be9a407eb22..00000000000
--- a/web/app/components/base/icons/src/image/llm/BaichuanTextCn.tsx
+++ /dev/null
@@ -1,20 +0,0 @@
-// GENERATE BY script
-// DON NOT EDIT IT MANUALLY
-
-import * as React from 'react'
-import cn from '@/utils/classnames'
-import s from './BaichuanTextCn.module.css'
-
-const Icon = (
- {
- ref,
- className,
- ...restProps
- }: React.DetailedHTMLProps<React.HTMLAttributes<HTMLSpanElement>, HTMLSpanElement> & {
- ref?: React.RefObject<HTMLSpanElement>;
- },
-) => <span className={cn(s.wrapper, className)} {...restProps} ref={ref} />
-
-Icon.displayName = 'BaichuanTextCn'
-
-export default Icon
diff --git a/web/app/components/base/icons/src/image/llm/Minimax.module.css b/web/app/components/base/icons/src/image/llm/Minimax.module.css
deleted file mode 100644
index 551ecc3c62e..00000000000
--- a/web/app/components/base/icons/src/image/llm/Minimax.module.css
+++ /dev/null
@@ -1,5 +0,0 @@
-.wrapper {
- display: inline-flex;
- background: url(~@/app/components/base/icons/assets/image/llm/minimax.png) center center no-repeat;
- background-size: contain;
-}
diff --git a/web/app/components/base/icons/src/image/llm/Minimax.tsx b/web/app/components/base/icons/src/image/llm/Minimax.tsx
deleted file mode 100644
index 7df7e3fcbc8..00000000000
--- a/web/app/components/base/icons/src/image/llm/Minimax.tsx
+++ /dev/null
@@ -1,20 +0,0 @@
-// GENERATE BY script
-// DON NOT EDIT IT MANUALLY
-
-import * as React from 'react'
-import cn from '@/utils/classnames'
-import s from './Minimax.module.css'
-
-const Icon = (
- {
- ref,
- className,
- ...restProps
- }: React.DetailedHTMLProps<React.HTMLAttributes<HTMLSpanElement>, HTMLSpanElement> & {
- ref?: React.RefObject<HTMLSpanElement>;
- },
-) => <span className={cn(s.wrapper, className)} {...restProps} ref={ref} />
-
-Icon.displayName = 'Minimax'
-
-export default Icon
diff --git a/web/app/components/base/icons/src/image/llm/MinimaxText.module.css b/web/app/components/base/icons/src/image/llm/MinimaxText.module.css
deleted file mode 100644
index a63be49e8b0..00000000000
--- a/web/app/components/base/icons/src/image/llm/MinimaxText.module.css
+++ /dev/null
@@ -1,5 +0,0 @@
-.wrapper {
- display: inline-flex;
- background: url(~@/app/components/base/icons/assets/image/llm/minimax-text.png) center center no-repeat;
- background-size: contain;
-}
diff --git a/web/app/components/base/icons/src/image/llm/MinimaxText.tsx b/web/app/components/base/icons/src/image/llm/MinimaxText.tsx
deleted file mode 100644
index 840e8cb4395..00000000000
--- a/web/app/components/base/icons/src/image/llm/MinimaxText.tsx
+++ /dev/null
@@ -1,20 +0,0 @@
-// GENERATE BY script
-// DON NOT EDIT IT MANUALLY
-
-import * as React from 'react'
-import cn from '@/utils/classnames'
-import s from './MinimaxText.module.css'
-
-const Icon = (
- {
- ref,
- className,
- ...restProps
- }: React.DetailedHTMLProps<React.HTMLAttributes<HTMLSpanElement>, HTMLSpanElement> & {
- ref?: React.RefObject<HTMLSpanElement>;
- },
-) => <span className={cn(s.wrapper, className)} {...restProps} ref={ref} />
-
-Icon.displayName = 'MinimaxText'
-
-export default Icon
diff --git a/web/app/components/base/icons/src/image/llm/Tongyi.module.css b/web/app/components/base/icons/src/image/llm/Tongyi.module.css
deleted file mode 100644
index 3ca440768ca..00000000000
--- a/web/app/components/base/icons/src/image/llm/Tongyi.module.css
+++ /dev/null
@@ -1,5 +0,0 @@
-.wrapper {
- display: inline-flex;
- background: url(~@/app/components/base/icons/assets/image/llm/tongyi.png) center center no-repeat;
- background-size: contain;
-}
diff --git a/web/app/components/base/icons/src/image/llm/Tongyi.tsx b/web/app/components/base/icons/src/image/llm/Tongyi.tsx
deleted file mode 100644
index 2f62f1a3556..00000000000
--- a/web/app/components/base/icons/src/image/llm/Tongyi.tsx
+++ /dev/null
@@ -1,20 +0,0 @@
-// GENERATE BY script
-// DON NOT EDIT IT MANUALLY
-
-import * as React from 'react'
-import cn from '@/utils/classnames'
-import s from './Tongyi.module.css'
-
-const Icon = (
- {
- ref,
- className,
- ...restProps
- }: React.DetailedHTMLProps<React.HTMLAttributes<HTMLSpanElement>, HTMLSpanElement> & {
- ref?: React.RefObject<HTMLSpanElement>;
- },
-) => <span className={cn(s.wrapper, className)} {...restProps} ref={ref} />
-
-Icon.displayName = 'Tongyi'
-
-export default Icon
diff --git a/web/app/components/base/icons/src/image/llm/TongyiText.module.css b/web/app/components/base/icons/src/image/llm/TongyiText.module.css
deleted file mode 100644
index f7136718080..00000000000
--- a/web/app/components/base/icons/src/image/llm/TongyiText.module.css
+++ /dev/null
@@ -1,5 +0,0 @@
-.wrapper {
- display: inline-flex;
- background: url(~@/app/components/base/icons/assets/image/llm/tongyi-text.png) center center no-repeat;
- background-size: contain;
-}
diff --git a/web/app/components/base/icons/src/image/llm/TongyiText.tsx b/web/app/components/base/icons/src/image/llm/TongyiText.tsx
deleted file mode 100644
index a52f63c248d..00000000000
--- a/web/app/components/base/icons/src/image/llm/TongyiText.tsx
+++ /dev/null
@@ -1,20 +0,0 @@
-// GENERATE BY script
-// DON NOT EDIT IT MANUALLY
-
-import * as React from 'react'
-import cn from '@/utils/classnames'
-import s from './TongyiText.module.css'
-
-const Icon = (
- {
- ref,
- className,
- ...restProps
- }: React.DetailedHTMLProps<React.HTMLAttributes<HTMLSpanElement>, HTMLSpanElement> & {
- ref?: React.RefObject<HTMLSpanElement>;
- },
-) => <span className={cn(s.wrapper, className)} {...restProps} ref={ref} />
-
-Icon.displayName = 'TongyiText'
-
-export default Icon
diff --git a/web/app/components/base/icons/src/image/llm/TongyiTextCn.module.css b/web/app/components/base/icons/src/image/llm/TongyiTextCn.module.css
deleted file mode 100644
index d07e6e8bc4f..00000000000
--- a/web/app/components/base/icons/src/image/llm/TongyiTextCn.module.css
+++ /dev/null
@@ -1,5 +0,0 @@
-.wrapper {
- display: inline-flex;
- background: url(~@/app/components/base/icons/assets/image/llm/tongyi-text-cn.png) center center no-repeat;
- background-size: contain;
-}
diff --git a/web/app/components/base/icons/src/image/llm/TongyiTextCn.tsx b/web/app/components/base/icons/src/image/llm/TongyiTextCn.tsx
deleted file mode 100644
index c982c73aedf..00000000000
--- a/web/app/components/base/icons/src/image/llm/TongyiTextCn.tsx
+++ /dev/null
@@ -1,20 +0,0 @@
-// GENERATE BY script
-// DON NOT EDIT IT MANUALLY
-
-import * as React from 'react'
-import cn from '@/utils/classnames'
-import s from './TongyiTextCn.module.css'
-
-const Icon = (
- {
- ref,
- className,
- ...restProps
- }: React.DetailedHTMLProps<React.HTMLAttributes<HTMLSpanElement>, HTMLSpanElement> & {
- ref?: React.RefObject<HTMLSpanElement>;
- },
-) => <span className={cn(s.wrapper, className)} {...restProps} ref={ref} />
-
-Icon.displayName = 'TongyiTextCn'
-
-export default Icon
diff --git a/web/app/components/base/icons/src/image/llm/Wxyy.module.css b/web/app/components/base/icons/src/image/llm/Wxyy.module.css
deleted file mode 100644
index 44344a495f0..00000000000
--- a/web/app/components/base/icons/src/image/llm/Wxyy.module.css
+++ /dev/null
@@ -1,5 +0,0 @@
-.wrapper {
- display: inline-flex;
- background: url(~@/app/components/base/icons/assets/image/llm/wxyy.png) center center no-repeat;
- background-size: contain;
-}
diff --git a/web/app/components/base/icons/src/image/llm/Wxyy.tsx b/web/app/components/base/icons/src/image/llm/Wxyy.tsx
deleted file mode 100644
index a3c494811e9..00000000000
--- a/web/app/components/base/icons/src/image/llm/Wxyy.tsx
+++ /dev/null
@@ -1,20 +0,0 @@
-// GENERATE BY script
-// DON NOT EDIT IT MANUALLY
-
-import * as React from 'react'
-import cn from '@/utils/classnames'
-import s from './Wxyy.module.css'
-
-const Icon = (
- {
- ref,
- className,
- ...restProps
- }: React.DetailedHTMLProps<React.HTMLAttributes<HTMLSpanElement>, HTMLSpanElement> & {
- ref?: React.RefObject<HTMLSpanElement>;
- },
-) => <span className={cn(s.wrapper, className)} {...restProps} ref={ref} />
-
-Icon.displayName = 'Wxyy'
-
-export default Icon
diff --git a/web/app/components/base/icons/src/image/llm/WxyyText.module.css b/web/app/components/base/icons/src/image/llm/WxyyText.module.css
deleted file mode 100644
index 58a0c62047a..00000000000
--- a/web/app/components/base/icons/src/image/llm/WxyyText.module.css
+++ /dev/null
@@ -1,5 +0,0 @@
-.wrapper {
- display: inline-flex;
- background: url(~@/app/components/base/icons/assets/image/llm/wxyy-text.png) center center no-repeat;
- background-size: contain;
-}
diff --git a/web/app/components/base/icons/src/image/llm/WxyyText.tsx b/web/app/components/base/icons/src/image/llm/WxyyText.tsx
deleted file mode 100644
index e5dd6e8803b..00000000000
--- a/web/app/components/base/icons/src/image/llm/WxyyText.tsx
+++ /dev/null
@@ -1,20 +0,0 @@
-// GENERATE BY script
-// DON NOT EDIT IT MANUALLY
-
-import * as React from 'react'
-import cn from '@/utils/classnames'
-import s from './WxyyText.module.css'
-
-const Icon = (
- {
- ref,
- className,
- ...restProps
- }: React.DetailedHTMLProps<React.HTMLAttributes<HTMLSpanElement>, HTMLSpanElement> & {
- ref?: React.RefObject<HTMLSpanElement>;
- },
-) => <span className={cn(s.wrapper, className)} {...restProps} ref={ref} />
-
-Icon.displayName = 'WxyyText'
-
-export default Icon
diff --git a/web/app/components/base/icons/src/image/llm/WxyyTextCn.module.css b/web/app/components/base/icons/src/image/llm/WxyyTextCn.module.css
deleted file mode 100644
index fb5839ab078..00000000000
--- a/web/app/components/base/icons/src/image/llm/WxyyTextCn.module.css
+++ /dev/null
@@ -1,5 +0,0 @@
-.wrapper {
- display: inline-flex;
- background: url(~@/app/components/base/icons/assets/image/llm/wxyy-text-cn.png) center center no-repeat;
- background-size: contain;
-}
diff --git a/web/app/components/base/icons/src/image/llm/WxyyTextCn.tsx b/web/app/components/base/icons/src/image/llm/WxyyTextCn.tsx
deleted file mode 100644
index 32108adab4f..00000000000
--- a/web/app/components/base/icons/src/image/llm/WxyyTextCn.tsx
+++ /dev/null
@@ -1,20 +0,0 @@
-// GENERATE BY script
-// DON NOT EDIT IT MANUALLY
-
-import * as React from 'react'
-import cn from '@/utils/classnames'
-import s from './WxyyTextCn.module.css'
-
-const Icon = (
- {
- ref,
- className,
- ...restProps
- }: React.DetailedHTMLProps<React.HTMLAttributes<HTMLSpanElement>, HTMLSpanElement> & {
- ref?: React.RefObject<HTMLSpanElement>;
- },
-) => <span className={cn(s.wrapper, className)} {...restProps} ref={ref} />
-
-Icon.displayName = 'WxyyTextCn'
-
-export default Icon
diff --git a/web/app/components/base/icons/src/image/llm/index.ts b/web/app/components/base/icons/src/image/llm/index.ts
deleted file mode 100644
index 3a4e64ac183..00000000000
--- a/web/app/components/base/icons/src/image/llm/index.ts
+++ /dev/null
@@ -1,9 +0,0 @@
-export { default as BaichuanTextCn } from './BaichuanTextCn'
-export { default as MinimaxText } from './MinimaxText'
-export { default as Minimax } from './Minimax'
-export { default as TongyiTextCn } from './TongyiTextCn'
-export { default as TongyiText } from './TongyiText'
-export { default as Tongyi } from './Tongyi'
-export { default as WxyyTextCn } from './WxyyTextCn'
-export { default as WxyyText } from './WxyyText'
-export { default as Wxyy } from './Wxyy'
diff --git a/web/app/components/base/icons/src/public/model/Checked.tsx b/web/app/components/base/icons/src/public/model/Checked.tsx
deleted file mode 100644
index 7854479cd2b..00000000000
--- a/web/app/components/base/icons/src/public/model/Checked.tsx
+++ /dev/null
@@ -1,20 +0,0 @@
-// GENERATE BY script
-// DON NOT EDIT IT MANUALLY
-
-import * as React from 'react'
-import data from './Checked.json'
-import IconBase from '@/app/components/base/icons/IconBase'
-import type { IconData } from '@/app/components/base/icons/IconBase'
-
-const Icon = (
- {
- ref,
- ...props
- }: React.SVGProps<SVGSVGElement> & {
- ref?: React.RefObject<React.RefObject<HTMLOrSVGElement>>;
- },
-) => <IconBase {...props} ref={ref} data={data as IconData} />
-
-Icon.displayName = 'Checked'
-
-export default Icon
diff --git a/web/app/components/base/icons/src/public/model/index.ts b/web/app/components/base/icons/src/public/model/index.ts
deleted file mode 100644
index 719a6f0309a..00000000000
--- a/web/app/components/base/icons/src/public/model/index.ts
+++ /dev/null
@@ -1 +0,0 @@
-export { default as Checked } from './Checked'
diff --git a/web/app/components/base/icons/src/public/plugins/Google.tsx b/web/app/components/base/icons/src/public/plugins/Google.tsx
deleted file mode 100644
index 3e19ecd2f86..00000000000
--- a/web/app/components/base/icons/src/public/plugins/Google.tsx
+++ /dev/null
@@ -1,20 +0,0 @@
-// GENERATE BY script
-// DON NOT EDIT IT MANUALLY
-
-import * as React from 'react'
-import data from './Google.json'
-import IconBase from '@/app/components/base/icons/IconBase'
-import type { IconData } from '@/app/components/base/icons/IconBase'
-
-const Icon = (
- {
- ref,
- ...props
- }: React.SVGProps<SVGSVGElement> & {
- ref?: React.RefObject<React.RefObject<HTMLOrSVGElement>>;
- },
-) => <IconBase {...props} ref={ref} data={data as IconData} />
-
-Icon.displayName = 'Google'
-
-export default Icon
diff --git a/web/app/components/base/icons/src/public/plugins/WebReader.tsx b/web/app/components/base/icons/src/public/plugins/WebReader.tsx
deleted file mode 100644
index 5606e32f88c..00000000000
--- a/web/app/components/base/icons/src/public/plugins/WebReader.tsx
+++ /dev/null
@@ -1,20 +0,0 @@
-// GENERATE BY script
-// DON NOT EDIT IT MANUALLY
-
-import * as React from 'react'
-import data from './WebReader.json'
-import IconBase from '@/app/components/base/icons/IconBase'
-import type { IconData } from '@/app/components/base/icons/IconBase'
-
-const Icon = (
- {
- ref,
- ...props
- }: React.SVGProps<SVGSVGElement> & {
- ref?: React.RefObject<React.RefObject<HTMLOrSVGElement>>;
- },
-) => <IconBase {...props} ref={ref} data={data as IconData} />
-
-Icon.displayName = 'WebReader'
-
-export default Icon
diff --git a/web/app/components/base/icons/src/public/plugins/Wikipedia.tsx b/web/app/components/base/icons/src/public/plugins/Wikipedia.tsx
deleted file mode 100644
index c2fde5c1f8f..00000000000
--- a/web/app/components/base/icons/src/public/plugins/Wikipedia.tsx
+++ /dev/null
@@ -1,20 +0,0 @@
-// GENERATE BY script
-// DON NOT EDIT IT MANUALLY
-
-import * as React from 'react'
-import data from './Wikipedia.json'
-import IconBase from '@/app/components/base/icons/IconBase'
-import type { IconData } from '@/app/components/base/icons/IconBase'
-
-const Icon = (
- {
- ref,
- ...props
- }: React.SVGProps<SVGSVGElement> & {
- ref?: React.RefObject<React.RefObject<HTMLOrSVGElement>>;
- },
-) => <IconBase {...props} ref={ref} data={data as IconData} />
-
-Icon.displayName = 'Wikipedia'
-
-export default Icon
diff --git a/web/app/components/base/icons/src/public/plugins/index.ts b/web/app/components/base/icons/src/public/plugins/index.ts
deleted file mode 100644
index 87dc37167c6..00000000000
--- a/web/app/components/base/icons/src/public/plugins/index.ts
+++ /dev/null
@@ -1,7 +0,0 @@
-export { default as Google } from './Google'
-export { default as PartnerDark } from './PartnerDark'
-export { default as PartnerLight } from './PartnerLight'
-export { default as VerifiedDark } from './VerifiedDark'
-export { default as VerifiedLight } from './VerifiedLight'
-export { default as WebReader } from './WebReader'
-export { default as Wikipedia } from './Wikipedia'
diff --git a/web/app/components/base/icons/src/public/thought/DataSet.tsx b/web/app/components/base/icons/src/public/thought/DataSet.tsx
index f35ff4efbc1..e279c77ec7d 100644
--- a/web/app/components/base/icons/src/public/thought/DataSet.tsx
+++ b/web/app/components/base/icons/src/public/thought/DataSet.tsx
@@ -18,3 +18,4 @@ const Icon = (
Icon.displayName = 'DataSet'
export default Icon
+
diff --git a/web/app/components/base/icons/src/public/thought/Loading.tsx b/web/app/components/base/icons/src/public/thought/Loading.tsx
deleted file mode 100644
index af959fba401..00000000000
--- a/web/app/components/base/icons/src/public/thought/Loading.tsx
+++ /dev/null
@@ -1,20 +0,0 @@
-// GENERATE BY script
-// DON NOT EDIT IT MANUALLY
-
-import * as React from 'react'
-import data from './Loading.json'
-import IconBase from '@/app/components/base/icons/IconBase'
-import type { IconData } from '@/app/components/base/icons/IconBase'
-
-const Icon = (
- {
- ref,
- ...props
- }: React.SVGProps<SVGSVGElement> & {
- ref?: React.RefObject<React.RefObject<HTMLOrSVGElement>>;
- },
-) => <IconBase {...props} ref={ref} data={data as IconData} />
-
-Icon.displayName = 'Loading'
-
-export default Icon
diff --git a/web/app/components/base/icons/src/public/thought/Search.tsx b/web/app/components/base/icons/src/public/thought/Search.tsx
deleted file mode 100644
index ecd98048d51..00000000000
--- a/web/app/components/base/icons/src/public/thought/Search.tsx
+++ /dev/null
@@ -1,20 +0,0 @@
-// GENERATE BY script
-// DON NOT EDIT IT MANUALLY
-
-import * as React from 'react'
-import data from './Search.json'
-import IconBase from '@/app/components/base/icons/IconBase'
-import type { IconData } from '@/app/components/base/icons/IconBase'
-
-const Icon = (
- {
- ref,
- ...props
- }: React.SVGProps<SVGSVGElement> & {
- ref?: React.RefObject<React.RefObject<HTMLOrSVGElement>>;
- },
-) => <IconBase {...props} ref={ref} data={data as IconData} />
-
-Icon.displayName = 'Search'
-
-export default Icon
diff --git a/web/app/components/base/icons/src/public/thought/ThoughtList.tsx b/web/app/components/base/icons/src/public/thought/ThoughtList.tsx
deleted file mode 100644
index e7f0e312ef8..00000000000
--- a/web/app/components/base/icons/src/public/thought/ThoughtList.tsx
+++ /dev/null
@@ -1,20 +0,0 @@
-// GENERATE BY script
-// DON NOT EDIT IT MANUALLY
-
-import * as React from 'react'
-import data from './ThoughtList.json'
-import IconBase from '@/app/components/base/icons/IconBase'
-import type { IconData } from '@/app/components/base/icons/IconBase'
-
-const Icon = (
- {
- ref,
- ...props
- }: React.SVGProps<SVGSVGElement> & {
- ref?: React.RefObject<React.RefObject<HTMLOrSVGElement>>;
- },
-) => <IconBase {...props} ref={ref} data={data as IconData} />
-
-Icon.displayName = 'ThoughtList'
-
-export default Icon
diff --git a/web/app/components/base/icons/src/public/thought/WebReader.tsx b/web/app/components/base/icons/src/public/thought/WebReader.tsx
deleted file mode 100644
index 5606e32f88c..00000000000
--- a/web/app/components/base/icons/src/public/thought/WebReader.tsx
+++ /dev/null
@@ -1,20 +0,0 @@
-// GENERATE BY script
-// DON NOT EDIT IT MANUALLY
-
-import * as React from 'react'
-import data from './WebReader.json'
-import IconBase from '@/app/components/base/icons/IconBase'
-import type { IconData } from '@/app/components/base/icons/IconBase'
-
-const Icon = (
- {
- ref,
- ...props
- }: React.SVGProps<SVGSVGElement> & {
- ref?: React.RefObject<React.RefObject<HTMLOrSVGElement>>;
- },
-) => <IconBase {...props} ref={ref} data={data as IconData} />
-
-Icon.displayName = 'WebReader'
-
-export default Icon
diff --git a/web/app/components/base/icons/src/public/thought/index.ts b/web/app/components/base/icons/src/public/thought/index.ts
index 8a45489dbf7..35adcb50bb0 100644
--- a/web/app/components/base/icons/src/public/thought/index.ts
+++ b/web/app/components/base/icons/src/public/thought/index.ts
@@ -1,5 +1,2 @@
export { default as DataSet } from './DataSet'
-export { default as Loading } from './Loading'
-export { default as Search } from './Search'
-export { default as ThoughtList } from './ThoughtList'
-export { default as WebReader } from './WebReader'
+
diff --git a/web/app/components/base/icons/src/vender/line/layout/AlignLeft01.tsx b/web/app/components/base/icons/src/vender/line/layout/AlignLeft01.tsx
deleted file mode 100644
index 0761e89f568..00000000000
--- a/web/app/components/base/icons/src/vender/line/layout/AlignLeft01.tsx
+++ /dev/null
@@ -1,20 +0,0 @@
-// GENERATE BY script
-// DON NOT EDIT IT MANUALLY
-
-import * as React from 'react'
-import data from './AlignLeft01.json'
-import IconBase from '@/app/components/base/icons/IconBase'
-import type { IconData } from '@/app/components/base/icons/IconBase'
-
-const Icon = (
- {
- ref,
- ...props
- }: React.SVGProps<SVGSVGElement> & {
- ref?: React.RefObject<React.RefObject<HTMLOrSVGElement>>;
- },
-) => <IconBase {...props} ref={ref} data={data as IconData} />
-
-Icon.displayName = 'AlignLeft01'
-
-export default Icon
diff --git a/web/app/components/base/icons/src/vender/line/layout/AlignRight01.tsx b/web/app/components/base/icons/src/vender/line/layout/AlignRight01.tsx
deleted file mode 100644
index ffe1889ff8e..00000000000
--- a/web/app/components/base/icons/src/vender/line/layout/AlignRight01.tsx
+++ /dev/null
@@ -1,20 +0,0 @@
-// GENERATE BY script
-// DON NOT EDIT IT MANUALLY
-
-import * as React from 'react'
-import data from './AlignRight01.json'
-import IconBase from '@/app/components/base/icons/IconBase'
-import type { IconData } from '@/app/components/base/icons/IconBase'
-
-const Icon = (
- {
- ref,
- ...props
- }: React.SVGProps<SVGSVGElement> & {
- ref?: React.RefObject<React.RefObject<HTMLOrSVGElement>>;
- },
-) => <IconBase {...props} ref={ref} data={data as IconData} />
-
-Icon.displayName = 'AlignRight01'
-
-export default Icon
diff --git a/web/app/components/base/icons/src/vender/line/layout/Grid01.tsx b/web/app/components/base/icons/src/vender/line/layout/Grid01.tsx
deleted file mode 100644
index bc9b6115be3..00000000000
--- a/web/app/components/base/icons/src/vender/line/layout/Grid01.tsx
+++ /dev/null
@@ -1,20 +0,0 @@
-// GENERATE BY script
-// DON NOT EDIT IT MANUALLY
-
-import * as React from 'react'
-import data from './Grid01.json'
-import IconBase from '@/app/components/base/icons/IconBase'
-import type { IconData } from '@/app/components/base/icons/IconBase'
-
-const Icon = (
- {
- ref,
- ...props
- }: React.SVGProps<SVGSVGElement> & {
- ref?: React.RefObject<React.RefObject<HTMLOrSVGElement>>;
- },
-) => <IconBase {...props} ref={ref} data={data as IconData} />
-
-Icon.displayName = 'Grid01'
-
-export default Icon
diff --git a/web/app/components/base/icons/src/vender/line/layout/index.ts b/web/app/components/base/icons/src/vender/line/layout/index.ts
index 7c12b1f58f4..a6aa205faa5 100644
--- a/web/app/components/base/icons/src/vender/line/layout/index.ts
+++ b/web/app/components/base/icons/src/vender/line/layout/index.ts
@@ -1,4 +1 @@
-export { default as AlignLeft01 } from './AlignLeft01'
-export { default as AlignRight01 } from './AlignRight01'
-export { default as Grid01 } from './Grid01'
export { default as LayoutGrid02 } from './LayoutGrid02'
diff --git a/web/app/components/base/icons/src/vender/line/mapsAndTravel/Route.tsx b/web/app/components/base/icons/src/vender/line/mapsAndTravel/Route.tsx
deleted file mode 100644
index 9cbde4a15e4..00000000000
--- a/web/app/components/base/icons/src/vender/line/mapsAndTravel/Route.tsx
+++ /dev/null
@@ -1,20 +0,0 @@
-// GENERATE BY script
-// DON NOT EDIT IT MANUALLY
-
-import * as React from 'react'
-import data from './Route.json'
-import IconBase from '@/app/components/base/icons/IconBase'
-import type { IconData } from '@/app/components/base/icons/IconBase'
-
-const Icon = (
- {
- ref,
- ...props
- }: React.SVGProps<SVGSVGElement> & {
- ref?: React.RefObject<React.RefObject<HTMLOrSVGElement>>;
- },
-) => <IconBase {...props} ref={ref} data={data as IconData} />
-
-Icon.displayName = 'Route'
-
-export default Icon
diff --git a/web/app/components/base/icons/src/vender/line/mapsAndTravel/index.ts b/web/app/components/base/icons/src/vender/line/mapsAndTravel/index.ts
deleted file mode 100644
index 82cb320ff20..00000000000
--- a/web/app/components/base/icons/src/vender/line/mapsAndTravel/index.ts
+++ /dev/null
@@ -1 +0,0 @@
-export { default as Route } from './Route'
diff --git a/web/app/components/base/icons/src/vender/line/users/User01.tsx b/web/app/components/base/icons/src/vender/line/users/User01.tsx
deleted file mode 100644
index 42f2144b97f..00000000000
--- a/web/app/components/base/icons/src/vender/line/users/User01.tsx
+++ /dev/null
@@ -1,20 +0,0 @@
-// GENERATE BY script
-// DON NOT EDIT IT MANUALLY
-
-import * as React from 'react'
-import data from './User01.json'
-import IconBase from '@/app/components/base/icons/IconBase'
-import type { IconData } from '@/app/components/base/icons/IconBase'
-
-const Icon = (
- {
- ref,
- ...props
- }: React.SVGProps<SVGSVGElement> & {
- ref?: React.RefObject<React.RefObject<HTMLOrSVGElement>>;
- },
-) => <IconBase {...props} ref={ref} data={data as IconData} />
-
-Icon.displayName = 'User01'
-
-export default Icon
diff --git a/web/app/components/base/icons/src/vender/line/users/Users01.tsx b/web/app/components/base/icons/src/vender/line/users/Users01.tsx
deleted file mode 100644
index b63daf72423..00000000000
--- a/web/app/components/base/icons/src/vender/line/users/Users01.tsx
+++ /dev/null
@@ -1,20 +0,0 @@
-// GENERATE BY script
-// DON NOT EDIT IT MANUALLY
-
-import * as React from 'react'
-import data from './Users01.json'
-import IconBase from '@/app/components/base/icons/IconBase'
-import type { IconData } from '@/app/components/base/icons/IconBase'
-
-const Icon = (
- {
- ref,
- ...props
- }: React.SVGProps<SVGSVGElement> & {
- ref?: React.RefObject<React.RefObject<HTMLOrSVGElement>>;
- },
-) => <IconBase {...props} ref={ref} data={data as IconData} />
-
-Icon.displayName = 'Users01'
-
-export default Icon
diff --git a/web/app/components/base/icons/src/vender/line/users/index.ts b/web/app/components/base/icons/src/vender/line/users/index.ts
deleted file mode 100644
index 9f8a35152fd..00000000000
--- a/web/app/components/base/icons/src/vender/line/users/index.ts
+++ /dev/null
@@ -1,2 +0,0 @@
-export { default as User01 } from './User01'
-export { default as Users01 } from './Users01'
diff --git a/web/app/components/base/icons/src/vender/line/weather/Stars02.tsx b/web/app/components/base/icons/src/vender/line/weather/Stars02.tsx
deleted file mode 100644
index 8a42448c70a..00000000000
--- a/web/app/components/base/icons/src/vender/line/weather/Stars02.tsx
+++ /dev/null
@@ -1,20 +0,0 @@
-// GENERATE BY script
-// DON NOT EDIT IT MANUALLY
-
-import * as React from 'react'
-import data from './Stars02.json'
-import IconBase from '@/app/components/base/icons/IconBase'
-import type { IconData } from '@/app/components/base/icons/IconBase'
-
-const Icon = (
- {
- ref,
- ...props
- }: React.SVGProps<SVGSVGElement> & {
- ref?: React.RefObject<React.RefObject<HTMLOrSVGElement>>;
- },
-) => <IconBase {...props} ref={ref} data={data as IconData} />
-
-Icon.displayName = 'Stars02'
-
-export default Icon
diff --git a/web/app/components/base/icons/src/vender/line/weather/index.ts b/web/app/components/base/icons/src/vender/line/weather/index.ts
deleted file mode 100644
index 1a68bce7659..00000000000
--- a/web/app/components/base/icons/src/vender/line/weather/index.ts
+++ /dev/null
@@ -1 +0,0 @@
-export { default as Stars02 } from './Stars02'
diff --git a/web/app/components/base/icons/src/vender/solid/arrows/ChevronDown.tsx b/web/app/components/base/icons/src/vender/solid/arrows/ChevronDown.tsx
deleted file mode 100644
index 643ddfbf79b..00000000000
--- a/web/app/components/base/icons/src/vender/solid/arrows/ChevronDown.tsx
+++ /dev/null
@@ -1,20 +0,0 @@
-// GENERATE BY script
-// DON NOT EDIT IT MANUALLY
-
-import * as React from 'react'
-import data from './ChevronDown.json'
-import IconBase from '@/app/components/base/icons/IconBase'
-import type { IconData } from '@/app/components/base/icons/IconBase'
-
-const Icon = (
- {
- ref,
- ...props
- }: React.SVGProps<SVGSVGElement> & {
- ref?: React.RefObject<React.RefObject<HTMLOrSVGElement>>;
- },
-) => <IconBase {...props} ref={ref} data={data as IconData} />
-
-Icon.displayName = 'ChevronDown'
-
-export default Icon
diff --git a/web/app/components/base/icons/src/vender/solid/arrows/HighPriority.tsx b/web/app/components/base/icons/src/vender/solid/arrows/HighPriority.tsx
deleted file mode 100644
index af6fa05e5c9..00000000000
--- a/web/app/components/base/icons/src/vender/solid/arrows/HighPriority.tsx
+++ /dev/null
@@ -1,20 +0,0 @@
-// GENERATE BY script
-// DON NOT EDIT IT MANUALLY
-
-import * as React from 'react'
-import data from './HighPriority.json'
-import IconBase from '@/app/components/base/icons/IconBase'
-import type { IconData } from '@/app/components/base/icons/IconBase'
-
-const Icon = (
- {
- ref,
- ...props
- }: React.SVGProps<SVGSVGElement> & {
- ref?: React.RefObject<React.RefObject<HTMLOrSVGElement>>;
- },
-) => <IconBase {...props} ref={ref} data={data as IconData} />
-
-Icon.displayName = 'HighPriority'
-
-export default Icon
diff --git a/web/app/components/base/icons/src/vender/solid/arrows/index.ts b/web/app/components/base/icons/src/vender/solid/arrows/index.ts
deleted file mode 100644
index 468f0e52d92..00000000000
--- a/web/app/components/base/icons/src/vender/solid/arrows/index.ts
+++ /dev/null
@@ -1,2 +0,0 @@
-export { default as ChevronDown } from './ChevronDown'
-export { default as HighPriority } from './HighPriority'
diff --git a/web/app/components/base/icons/src/vender/solid/layout/Grid01.tsx b/web/app/components/base/icons/src/vender/solid/layout/Grid01.tsx
deleted file mode 100644
index bc9b6115be3..00000000000
--- a/web/app/components/base/icons/src/vender/solid/layout/Grid01.tsx
+++ /dev/null
@@ -1,20 +0,0 @@
-// GENERATE BY script
-// DON NOT EDIT IT MANUALLY
-
-import * as React from 'react'
-import data from './Grid01.json'
-import IconBase from '@/app/components/base/icons/IconBase'
-import type { IconData } from '@/app/components/base/icons/IconBase'
-
-const Icon = (
- {
- ref,
- ...props
- }: React.SVGProps<SVGSVGElement> & {
- ref?: React.RefObject<React.RefObject<HTMLOrSVGElement>>;
- },
-) => <IconBase {...props} ref={ref} data={data as IconData} />
-
-Icon.displayName = 'Grid01'
-
-export default Icon
diff --git a/web/app/components/base/icons/src/vender/solid/layout/index.ts b/web/app/components/base/icons/src/vender/solid/layout/index.ts
deleted file mode 100644
index 73a2513d51f..00000000000
--- a/web/app/components/base/icons/src/vender/solid/layout/index.ts
+++ /dev/null
@@ -1 +0,0 @@
-export { default as Grid01 } from './Grid01'
diff --git a/web/knip.config.ts b/web/knip.config.ts
new file mode 100644
index 00000000000..b9fb43f171d
--- /dev/null
+++ b/web/knip.config.ts
@@ -0,0 +1,288 @@
+import type { KnipConfig } from 'knip'
+
+/**
+ * Knip Configuration for Dead Code Detection
+ *
+ * This configuration helps identify unused files, exports, and dependencies
+ * in the Dify web application (Next.js 15 + TypeScript + React 19).
+ *
+ * ⚠️ SAFETY FIRST: This configuration is designed to be conservative and
+ * avoid false positives that could lead to deleting actively used code.
+ *
+ * @see https://knip.dev/reference/configuration
+ */
+const config: KnipConfig = {
+ // ============================================================================
+ // Next.js Framework Configuration
+ // ============================================================================
+ // Configure entry points specific to Next.js application structure.
+ // These files are automatically treated as entry points by the framework.
+ next: {
+ entry: [
+ // Next.js App Router pages (must exist for routing)
+ 'app/**/page.tsx',
+ 'app/**/layout.tsx',
+ 'app/**/loading.tsx',
+ 'app/**/error.tsx',
+ 'app/**/not-found.tsx',
+ 'app/**/template.tsx',
+ 'app/**/default.tsx',
+
+ // Middleware (runs before every route)
+ 'middleware.ts',
+
+ // Configuration files
+ 'next.config.js',
+ 'tailwind.config.js',
+ 'tailwind-common-config.ts',
+ 'postcss.config.js',
+
+ // Testing configuration
+ 'jest.config.ts',
+ 'jest.setup.ts',
+
+ // Linting configuration
+ 'eslint.config.mjs',
+ ],
+ },
+
+ // ============================================================================
+ // Global Entry Points
+ // ============================================================================
+ // Files that serve as entry points for the application.
+ // The '!' suffix means these patterns take precedence and are always included.
+ entry: [
+ // Next.js App Router patterns (high priority)
+ 'app/**/page.tsx!',
+ 'app/**/layout.tsx!',
+ 'app/**/loading.tsx!',
+ 'app/**/error.tsx!',
+ 'app/**/not-found.tsx!',
+ 'app/**/template.tsx!',
+ 'app/**/default.tsx!',
+
+ // Core configuration files
+ 'middleware.ts!',
+ 'next.config.js!',
+ 'tailwind.config.js!',
+ 'tailwind-common-config.ts!',
+ 'postcss.config.js!',
+
+ // Testing setup
+ 'jest.config.ts!',
+ 'jest.setup.ts!',
+
+ // Linting setup
+ 'eslint.config.mjs!',
+
+ // ========================================================================
+ // 🔒 CRITICAL: Global Initializers and Providers
+ // ========================================================================
+ // These files are imported by root layout.tsx and provide global functionality.
+ // Even if not directly imported elsewhere, they are essential for app initialization.
+
+ // Browser initialization (runs on client startup)
+ 'app/components/browser-initializer.tsx!',
+ 'app/components/sentry-initializer.tsx!',
+ 'app/components/swr-initializer.tsx!',
+
+ // i18n initialization (server and client)
+ 'app/components/i18n.tsx!',
+ 'app/components/i18n-server.tsx!',
+
+ // Route prefix handling (used in root layout)
+ 'app/routePrefixHandle.tsx!',
+
+ // ========================================================================
+ // 🔒 CRITICAL: Context Providers
+ // ========================================================================
+ // Context providers might be used via React Context API and imported dynamically.
+ // Protecting all context files to prevent breaking the provider chain.
+ 'context/**/*.ts?(x)!',
+
+ // Component-level contexts (also used via React.useContext)
+ 'app/components/**/*.context.ts?(x)!',
+
+ // ========================================================================
+ // 🔒 CRITICAL: State Management Stores
+ // ========================================================================
+ // Zustand stores might be imported dynamically or via hooks.
+ // These are often imported at module level, so they should be protected.
+ 'app/components/**/*.store.ts?(x)!',
+ 'context/**/*.store.ts?(x)!',
+
+ // ========================================================================
+ // 🔒 CRITICAL: Provider Components
+ // ========================================================================
+ // Provider components wrap the app and provide global state/functionality
+ 'app/components/**/*.provider.ts?(x)!',
+ 'context/**/*.provider.ts?(x)!',
+
+ // ========================================================================
+ // Development tools
+ // ========================================================================
+ // Storybook configuration
+ '.storybook/**/*',
+ ],
+
+ // ============================================================================
+ // Project Files to Analyze
+ // ============================================================================
+ // Glob patterns for files that should be analyzed for unused code.
+ // Excludes test files to avoid false positives.
+ project: [
+ '**/*.{js,jsx,ts,tsx,mjs,cjs}',
+ ],
+
+ // ============================================================================
+ // Ignored Files and Directories
+ // ============================================================================
+ // Files and directories that should be completely excluded from analysis.
+ // These typically contain:
+ // - Test files
+ // - Internationalization files (loaded dynamically)
+ // - Static assets
+ // - Build outputs
+ // - External libraries
+ ignore: [
+ // Test files and directories
+ '**/__tests__/**',
+ '**/*.spec.{ts,tsx}',
+ '**/*.test.{ts,tsx}',
+
+ // ========================================================================
+ // 🔒 CRITICAL: i18n Files (Dynamically Loaded)
+ // ========================================================================
+ // Internationalization files are loaded dynamically at runtime via i18next.
+ // Pattern: import(`@/i18n/${locale}/messages`)
+ // These will NEVER show up in static analysis but are essential!
+ 'i18n/**',
+
+ // ========================================================================
+ // 🔒 CRITICAL: Static Assets
+ // ========================================================================
+ // Static assets are referenced by URL in the browser, not via imports.
+ // Examples: /logo.png, /icons/*, /embed.js
+ 'public/**',
+
+ // Build outputs and caches
+ 'node_modules/**',
+ '.next/**',
+ 'coverage/**',
+
+ // Development tools
+ '**/*.stories.{ts,tsx}',
+
+ // ========================================================================
+ // 🔒 Utility scripts (not part of application runtime)
+ // ========================================================================
+ // These scripts are run manually (e.g., pnpm gen-icons, pnpm check-i18n)
+ // and are not imported by the application code.
+ 'scripts/**',
+ 'bin/**',
+ 'i18n-config/**',
+
+ // Icon generation script (generates components, not used in runtime)
+ 'app/components/base/icons/script.mjs',
+ ],
+
+ // ============================================================================
+ // Ignored Dependencies
+ // ============================================================================
+ // Dependencies that are used but not directly imported in code.
+ // These are typically:
+ // - Build tools
+ // - Plugins loaded by configuration files
+ // - CLI tools
+ ignoreDependencies: [
+ // ========================================================================
+ // Next.js plugins (loaded by next.config.js)
+ // ========================================================================
+ 'next-pwa',
+ '@next/bundle-analyzer',
+ '@next/mdx',
+
+ // ========================================================================
+ // Build tools (used by webpack/next.js build process)
+ // ========================================================================
+ 'code-inspector-plugin',
+
+ // ========================================================================
+ // Development and translation tools (used by scripts)
+ // ========================================================================
+ 'bing-translate-api',
+ 'uglify-js',
+ 'magicast',
+ ],
+
+ // ============================================================================
+ // Export Analysis Configuration
+ // ============================================================================
+ // Configure how exports are analyzed
+
+ // Ignore exports that are only used within the same file
+ // (e.g., helper functions used internally in the same module)
+ ignoreExportsUsedInFile: true,
+
+ // ⚠️ SAFETY: Include exports from entry files in the analysis
+ // This helps find unused public APIs, but be careful with:
+ // - Context exports (useContext hooks)
+ // - Store exports (useStore hooks)
+ // - Type exports (might be used in other files)
+ includeEntryExports: true,
+
+ // ============================================================================
+ // Ignored Binaries
+ // ============================================================================
+ // Binary executables that are used but not listed in package.json
+ ignoreBinaries: [
+ 'only-allow', // Used in preinstall script to enforce pnpm usage
+ ],
+
+ // ============================================================================
+ // Reporting Rules
+ // ============================================================================
+ // Configure what types of issues to report and at what severity level
+ rules: {
+ // ========================================================================
+ // Unused files are ERRORS
+ // ========================================================================
+ // These should definitely be removed or used.
+ // However, always manually verify before deleting!
+ files: 'error',
+
+ // ========================================================================
+ // Unused dependencies are WARNINGS
+ // ========================================================================
+ // Dependencies might be:
+ // - Used in production builds but not in dev
+ // - Peer dependencies
+ // - Used by other tools
+ dependencies: 'warn',
+ devDependencies: 'warn',
+
+ // ========================================================================
+ // Unlisted imports are ERRORS
+ // ========================================================================
+ // Missing from package.json - will break in production!
+ unlisted: 'error',
+
+ // ========================================================================
+ // Unused exports are WARNINGS (not errors!)
+ // ========================================================================
+ // Exports might be:
+ // - Part of public API for future use
+ // - Used by external tools
+ // - Exported for type inference
+ // ⚠️ ALWAYS manually verify before removing exports!
+ exports: 'warn',
+
+ // Unused types are warnings (might be part of type definitions)
+ types: 'warn',
+
+ // Duplicate exports are warnings (could cause confusion but not breaking)
+ duplicates: 'warn',
+ },
+}
+
+export default config