chore: 纳入本地 Dify 1.19.0 源码及品牌与免登改动

演示目录只保留可重建的源码。运行密钥、数据卷、依赖和带口令的本地配置不进入仓库。

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
wuzilongandCursor committed 2026-11-18 13:59:25 +08:00
1 parent 60158935f4
commit 6519682885
15831 files changed
+3063428

No files matched your search

@@ -0,0 +1,7 @@
import { consoleQuery } from '@/service/console'
// Deployment configuration: it changes only with a redeploy, so the snapshot never goes stale.
export const knowledgeFsFeaturesQueryOptions = () =>
consoleQuery.knowledgeFs.features.get.queryOptions({
staleTime: Infinity,
})
@@ -0,0 +1,18 @@
'use client'
import { atom } from 'jotai'
import { atomWithQuery } from 'jotai-tanstack-query'
import { knowledgeFsFeaturesQueryOptions } from './client'
const knowledgeFsFeaturesQueryAtom = atomWithQuery(() => knowledgeFsFeaturesQueryOptions())
// Every capability stays unavailable until the authenticated query resolves, and after it fails.
const knowledgeFsFeaturesAtom = atom((get) => get(knowledgeFsFeaturesQueryAtom).data)
export const knowledgeFsUploadEnabledAtom = atom(
(get) => get(knowledgeFsFeaturesAtom)?.upload_enabled ?? false,
)
export const agentKnowledgeFsEnabledAtom = atom(
(get) => get(knowledgeFsFeaturesAtom)?.agent_enabled ?? false,
)