1
0

index.ts 1.7 KB

12345678910111213141516171819202122232425262728293031323334
  1. /**
  2. * Shell-side React glue (slot terminal design §8): createSlotRenderer (the
  3. * install-seam implementation), SessionProvider (framework-wired render
  4. * prop, also delivered as a standard seat to session-area entries),
  5. * bindSnapshotSelector (the one hook constructor), and useInvoke. The
  6. * snapshot-store engine and defineStore live in runtime (store relocation);
  7. * contract types are ui-slots authority — this face re-exports only what its
  8. * own values traffic in. React contexts stay in-package: business components
  9. * see none.
  10. */
  11. import type { SnapshotSelectorHook } from '@deepseek-ai/dsh-client-ui-slots'
  12. export { bindSnapshotSelector } from './bind.ts'
  13. /**
  14. * Selector hook over a session's conversation snapshot. Wide (`object`) by
  15. * default inside this dependency-inverted package; runtime narrows it once at
  16. * its export surface (`UseSession<ConversationSnapshot>`) — the snapshot type
  17. * never flows back into web-react.
  18. */
  19. export type UseSession<Snap extends object = object> = SnapshotSelectorHook<Snap>
  20. // -- renderer: the install-seam implementation; contract lives in ui-slots --
  21. export type {
  22. ChainRenderOpts, HostObservable, RenderOpts, SessionCell, SnapshotSelectorHook,
  23. SlotRenderer, SlotRendererHost, StoreInstanceLike,
  24. } from '@deepseek-ai/dsh-client-ui-slots'
  25. export { SlotOwnershipError, StaleAuthorizationError } from '@deepseek-ai/dsh-client-ui-slots'
  26. export { createSlotRenderer } from './scoped-slots.tsx'
  27. // -- session area: the framework-wired provider; binding contexts stay internal --
  28. export { SessionProvider, SlotAssemblyError, type SessionProviderProps } from './session-provider.tsx'
  29. export { useInvoke } from './use-invoke.ts'