Skip to content

Releases: smaramwbc/statewave-chat

@statewavedev/chat-widget@0.1.1

17 Jun 08:57

Choose a tag to compare

Patch Changes

  • Updated dependencies [883c676]
    • @statewavedev/chat-core@0.1.2
    • @statewavedev/chat-react@0.1.1

@statewavedev/chat-react@0.1.1

17 Jun 08:57

Choose a tag to compare

Patch Changes

  • Updated dependencies [883c676]
    • @statewavedev/chat-core@0.1.2

@statewavedev/chat-core@0.1.2

17 Jun 08:57

Choose a tag to compare

Patch Changes

  • 883c676: Fix StatewaveRetrievalAdapter to match real SDK ContextBundle shape

    The internal stub expected response.memories but the SDK returns response.facts + response.procedures, causing retrieve() to always return 0 items. Also fixes mem.content (was mem.text), mem.subjectId (was mem.subject), and updates StatewavePersistenceAdapter.createEpisode to use type/payload:{text} instead of kind/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

17 Jun 08:50

Choose a tag to compare

@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

16 Jun 17:45

Choose a tag to compare

@statewavedev/chat-widget 0.1.0

Initial release. Drop-in chat widget for any website.

  • StatewaveChat — React component composing @statewavedev/chat-react into a ready-to-use widget; accepts all provider props plus className overrides for every layer
  • mountStatewaveChat — 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/server must be imported only in server-side code

@statewavedev/chat-react@0.1.0

16 Jun 17:44

Choose a tag to compare

@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 abort
  • useStatewaveChat, useChatMessages, useChatLoading, useSendMessage — consumer hooks
  • ChatComposer — textarea + send button with Enter-to-send and disabled states
  • Citations — renders citation list; unsafe URLs (javascript:, data:) rendered as plain spans
  • ContextInspector — collapsible debug panel showing retrieved context bundle
  • MessageItem — message bubble with role, error alerts, and citation delegation
  • MessageThread — scrollable message list with auto-scroll and typing indicator
  • SuggestedQuestions — chip list shown only before first message
  • TypingIndicator — animated loading state
  • safeUrl — XSS-safe URL filter exported for custom rendering

@statewavedev/chat-core@0.1.0

16 Jun 17:44

Choose a tag to compare

@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