mirror of
https://github.com/langgenius/dify.git
synced 2026-10-04 13:47:55 +08:00
Also repoints 4 additional consumers under web/app/components/dify-builder/
(state.ts, types.ts, use-dify-builder-session.ts, and its test) that
imported the contract via a relative path ('./contract/types' /
'../contract/types') rather than the '@/app/...' alias the brief's grep
pattern searched for. Deleting the old generated file without updating
these would have broken the build; a full `pnpm run type-check` confirms
they were the only additional consumers and the fix introduces no new
errors (baseline vs. post-change error sets are identical, both containing
only 27 pre-existing, unrelated .next/ typegen errors).
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
18 lines
686 B
TypeScript
18 lines
686 B
TypeScript
import type { SessionView } from '@dify/contracts/dify-builder'
|
|
import type { ProgressEntry } from './types'
|
|
import { atom } from 'jotai'
|
|
|
|
export const difyBuilderSessionViewAtom = atom<SessionView | null>(null)
|
|
export const difyBuilderSessionBusyAtom = atom(false)
|
|
export const difyBuilderSessionLastRawAtom = atom<unknown>(null)
|
|
export const difyBuilderSessionLastErrorAtom = atom('')
|
|
export const difyBuilderSessionProgressLogAtom = atom<ProgressEntry[]>([])
|
|
|
|
export const difyBuilderSessionScopedAtoms = [
|
|
difyBuilderSessionViewAtom,
|
|
difyBuilderSessionBusyAtom,
|
|
difyBuilderSessionLastRawAtom,
|
|
difyBuilderSessionLastErrorAtom,
|
|
difyBuilderSessionProgressLogAtom,
|
|
] as const
|