@zzyzxlabs/super-chat-react
v0.1.0
Published
React bindings for superchat: thread state, run control, card actions, and context inspection.
Maintainers
Readme
@zzyzxlabs/super-chat-react
React bindings for @zzyzxlabs/super-chat-core: thread state, run
control, card actions, and context inspection. One AgentClient store per
thread; hooks are fine-grained selectors over it so a component that only
reads status doesn't re-render on every streamed token.
Part of the superchat monorepo. See ../../docs/HANDOFF.md for load-bearing design decisions.
What's in here
client.ts—AgentClient: owns the store, drivesrunAgent(), persists threads/jobs.store.ts— the subscribe/notify primitive the hooks select over.hooks.tsx—useRun,useThread,useCards,useSkills,useTools,useAttachments,useCardAction,useAgentState, and friends.
Install
pnpm add @zzyzxlabs/super-chat-core @zzyzxlabs/super-chat-reactDevelop
pnpm --filter @zzyzxlabs/super-chat-react build # tsup, emits dist/
pnpm --filter @zzyzxlabs/super-chat-react typecheck # tsc --noEmit
pnpm vitest run packages/react # this package's tests