Releases: smaramwbc/statewave-chat
@statewavedev/chat-widget@0.1.1
Patch Changes
- Updated dependencies [883c676]
- @statewavedev/chat-core@0.1.2
- @statewavedev/chat-react@0.1.1
@statewavedev/chat-react@0.1.1
Patch Changes
- Updated dependencies [883c676]
- @statewavedev/chat-core@0.1.2
@statewavedev/chat-core@0.1.2
Patch Changes
-
883c676: Fix StatewaveRetrievalAdapter to match real SDK ContextBundle shape
The internal stub expected
response.memoriesbut the SDK returnsresponse.facts+response.procedures, causing retrieve() to always return 0 items. Also fixesmem.content(wasmem.text),mem.subjectId(wasmem.subject), and updates StatewavePersistenceAdapter.createEpisode to usetype/payload:{text}instead ofkind/text.Fix buildSystemPrompt to respect groundedOnly=false so the model can answer from general knowledge when evidence is insufficient, instead of always returning the insufficientContextMessage.
@statewavedev/chat-core@0.1.1
@statewavedev/chat-core
0.1.0
Minor Changes
Initial release. Headless chat engine for Statewave-powered applications.
- Multi-subject context retrieval with global token budget and round-robin interleave
- Structured grounded completion with JSON schema enforcement
- Citation validation: model returns only IDs (
S1,S2, …); source metadata resolved server-side from context bundle - Prompt injection barrier: retrieved evidence framed separately from system instructions
- AbortSignal cancellation throughout the retrieval–completion–persistence pipeline
createStatewaveChatAdapter(server-only,@statewavedev/chat-core/server) for wiring Statewave API keys server-side
@statewavedev/chat-widget@0.1.0
@statewavedev/chat-widget 0.1.0
Initial release. Drop-in chat widget for any website.
StatewaveChat— React component composing@statewavedev/chat-reactinto a ready-to-use widget; accepts all provider props plus className overrides for every layermountStatewaveChat— imperative mount for non-React applications; returns an{ unmount }handle for cleanup- Server-only APIs (
createStatewaveChatAdapter) are absent from the browser entry point;@statewavedev/chat-core/servermust be imported only in server-side code
@statewavedev/chat-react@0.1.0
@statewavedev/chat-react 0.1.0
Initial release. React provider and prebuilt components for Statewave chat.
StatewaveChatProvider— context provider with session management, stale-response guard, and abortuseStatewaveChat,useChatMessages,useChatLoading,useSendMessage— consumer hooksChatComposer— textarea + send button with Enter-to-send and disabled statesCitations— renders citation list; unsafe URLs (javascript:,data:) rendered as plain spansContextInspector— collapsible debug panel showing retrieved context bundleMessageItem— message bubble with role, error alerts, and citation delegationMessageThread— scrollable message list with auto-scroll and typing indicatorSuggestedQuestions— chip list shown only before first messageTypingIndicator— animated loading statesafeUrl— XSS-safe URL filter exported for custom rendering
@statewavedev/chat-core@0.1.0
@statewavedev/chat-core 0.1.0
Initial release. Headless chat engine for Statewave-powered applications.
- Multi-subject context retrieval with global token budget and round-robin interleave
- Structured grounded completion with JSON schema enforcement
- Citation validation: model returns only IDs (
S1,S2, …); source metadata resolved server-side from context bundle - Prompt injection barrier: retrieved evidence framed separately from system instructions
- AbortSignal cancellation throughout the retrieval–completion–persistence pipeline
createStatewaveChatAdapter(server-only,@statewavedev/chat-core/server) for wiring Statewave API keys server-side