platform.ts 840 B

123456789101112131415161718192021
  1. /**
  2. * Shared browser platform modules. Seeding, bundling externals, and Vite
  3. * aliases consume this list so their module identities cannot drift.
  4. * @module @deepseek-ai/dsh-client-web/src/platform
  5. */
  6. /** The module specifiers the shell shares into the frozen module table. */
  7. export const PLATFORM_MODULES = [
  8. 'react', 'react/jsx-runtime', 'react-dom', 'react-dom/client', '@deepseek-ai/cordis',
  9. '@deepseek-ai/dsh-client-store',
  10. '@deepseek-ai/dsh-client-ui-slots',
  11. '@deepseek-ai/dsh-client-ui-primitives',
  12. '@deepseek-ai/dsh-client-ui-dockkit',
  13. ] as const
  14. /** Client-bundle specifiers whose factories the parser preloads before the shell starts. */
  15. export const PRELOADED_CLIENT_EXTERNALS = [
  16. ] as const
  17. /** One platform module specifier (a seed-table key). */
  18. export type PlatformModule = (typeof PLATFORM_MODULES)[number]