Releases
Changelog
Notable changes to @fluxchat_sdk/sdk. Follows Semantic Versioning.
0.1.82026-06-11
Added
- Widget: quickReplies option — tap-to-send chip row shown below the greeting; chips disappear after first user message.
- Widget: smart input correction — debounced autocorrect chip (900 ms) with ghost-text inline preview; accept with Tab / → / click.
- Widget: modern redesign — glassmorphism panel shadow, gradient header with shimmer, slide-in message animation, per-row bot avatar, refined send button.
- Widget: suggestion chip bar (.fcw-suggestion) — shows corrected text above composer with Accept / Send / Dismiss actions.
- Gateway: public bot prompt respects org strictMode config — non-strict orgs answer from general knowledge when KB is empty.
- Gateway: anti-hallucination rule is now conditional — strict mode forces exact KB answers; non-strict mode allows general knowledge with org-fact guard.
- Gateway: bot config customInstructions field honoured in system prompt for persona override.
0.1.72026-06-11
Added
- Widget: universal API interception — fetch() and XMLHttpRequest GET JSON responses are automatically captured and sent to the bot knowledge base.
- Widget: localStorage snapshot capture on load — user session data (excluding auth/token keys) is captured as context.
- Widget: sendCapture() uses fetch keepalive:true instead of sendBeacon (supports custom X-API-Key header).
- Widget: client-side FNV-1a hash dedup — same-content captures are not re-sent.
- Gateway: auto-KB learning — after each capture, FluxChat AI automatically extracts structured knowledge (title, content, category, keywords) and stores it permanently in bot_knowledge (source='auto').
- Gateway: content-change refresh — when captured content hash changes, stale auto-KB entry is deleted and re-extracted.
- Gateway: extraction concurrency limiter (max 2 per org) prevents FluxChat AI bursts on first visit.
0.1.62026-06-09
Added
- Widget: sessionId persistence in localStorage — bot session memory survives page reloads.
- Widget: follow-up context retention — lastPlatformData reused for short follow-up questions ('which one?', 'tell me more').
- Widget: page link capture — internal <a href> links appended to DOM capture for navigation context.
0.1.52026-06-08
Added
- Widget: autoCapture — passive DOM capture on every page visit via History API interception.
- Widget: platformApi — auto-discover and query host platform REST API for live data.
- Widget: per-org customisable assistant name, greeting, colours, and position.
0.1.42026-06-07
Added
- Gateway: Redis session memory for stateless (public widget) mode — bot remembers the last 10 exchanges across page navigations (TTL 2h).
- Gateway: anti-hallucination prompt reinforcement with few-shot examples.
- Gateway: forceStrict mode for public widget — bot refuses to answer out-of-scope questions.
0.1.32026-06-05
Changed
- SDK & widget now default to API v2 (/api/v2) — required for per-request context (v1 rejects it).
- Documented v1/v2 API versions.
0.1.22026-06-05
Added
- Widget: inline mode (mode: 'inline') — render the chat directly inside a container as a full support chat.
0.1.12026-06-05
Added
- Widget: in-header light/dark toggle (themeToggle) with setTheme() / toggleTheme().
0.1.02026-06-05
Added
- SDK: FluxChat client — ask with per-request context, testKey, knowledge CRUD, persona config.
- CLI: fluxchat (ask, test, kb, config).
- Widget: customizable embeddable chat bubble with Benflux footer.
Full history on GitHub.