imccyu a8c6dcb180 fix(gui): contain selector failures and key the chain boundary by entry 1 месяц назад
..
src a8c6dcb180 fix(gui): contain selector failures and key the chain boundary by entry 1 месяц назад
tests a8c6dcb180 fix(gui): contain selector failures and key the chain boundary by entry 1 месяц назад
README.md 3826b50b4a feat(gui): chain slot kind with select routing and renderSlotChain 1 месяц назад
package.json 8b3d1ac943 refactor(gui): move the snapshot-store engine into the client runtime 1 месяц назад
tsconfig.json 19e6f7d907 refactor(tsconfig): single root solution graph over host/client aggregates 1 месяц назад
tsdown.config.ts 8b3d1ac943 refactor(gui): move the snapshot-store engine into the client runtime 1 месяц назад

README.md

@deepseek-ai/dsh-client-web-react

Shell-side React glue for the slot terminal design: createSlotRenderer (the SlotRenderer implementation the shell installs into the runtime SlotsService), SessionProvider (framework-wired render prop, also injected as a standard seat to entries declaring session-scope children), bindSnapshotSelector (the one hook constructor — hosts and engines traffic in bare observable sources; every hook binds here, cached per source), useInvoke. Chain-slot outlets run the registered selectors in chain order at render time and mount only the elected entry, its select return joining the props as matched; the renderSlotChain binding is per-entry cached like renderSlot. The snapshot-store engine and defineStore live in runtime (store relocation); business plugins depend on ui-slots types only, never on this package.

Model Experience

None, as the ctx↔React machinery runs entirely in the browser; nothing here reaches a model request.

KV Cache effect

None; this package neither assembles nor sends a provider request.

Known Limitations and Deferred Work

  • The persist middleware corrupts primitive-state stores — it object-spreads state on save, so a SnapshotStore<string> round-trips as a character map; the engine hand-rolls persistence instead (see attachPersistence).
  • UseSession is deliberately wide (object snapshot) — the dependency direction (runtime → web-react, never the reverse) keeps the real ConversationSnapshot type out of reach; session-slot consumers narrow once at their boundary.
  • renderSlot is the single P-I form — no Suspense, no per-entry lazy loading; the progressive-rendering surface returns with its own project.