1
0

platform.ts 918 B

1234567891011121314151617181920
  1. /**
  2. * Platform singletons the shell shares into the module table.
  3. * Single source of truth (design §3.3, contract C1): seed keys = tsdown
  4. * client externals = the shared surface. The three projections import this
  5. * module — the seed table ({@link ../seed.ts}), the tsdown client preset's
  6. * external judgement (packages/client/tsdown.client.ts), and the vite alias
  7. * check — so the list cannot drift between them.
  8. * @module @deepseek-ai/dsh-client-web/src/platform
  9. */
  10. /** The module specifiers the shell shares into the frozen module table. */
  11. export const PLATFORM_MODULES = [
  12. 'react', 'react/jsx-runtime', 'react-dom', 'react-dom/client', 'cordis',
  13. '@deepseek-ai/dsh-client-ui-slots',
  14. '@deepseek-ai/dsh-client-web-react',
  15. '@deepseek-ai/dsh-client-ui-primitives',
  16. ] as const
  17. /** One platform module specifier (a seed-table key). */
  18. export type PlatformModule = (typeof PLATFORM_MODULES)[number]