π¦ New version release#14
Merged
Merged
Conversation
d36253a to
ace25f3
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR was opened by the Changesets release GitHub action. When you're ready to do a release, you can merge this and the packages will be published to npm automatically. If you're not ready to do a release yet, that's fine, whenever you add more changesets to main, this PR will be updated.
Releases
@smooai/[email protected]
Minor Changes
586003c: Render sanitized Markdown in assistant replies and citation snippets, and smooth out the streaming reveal.
Sanitized Markdown rendering. Assistant responses and citation snippets previously showed Markdown literally (
**bold**, numbered lists,[links](url)rendered as raw text). They now render to formatted HTML through a tiny, safe-by-default renderer (markdown.ts) that:<script>,<img onerror=β¦>,<iframe>etc. render as inert text, never markup;becomes its alt text;http(s)links (javascript:/data:/relative fall back to plain text) withtarget="_blank"+rel="noopener noreferrer nofollow";p,br,strong,em,ul/ol/li,code/pre,a,blockquote) and downgrades headings to bold lines so they fit a chat bubble.User bubbles stay plain text; mid-stream text stays plain (partial Markdown renders ugly) and only the final assistant turn is rendered as Markdown. Citation snippets are also cleaned first β leading page boilerplate (logo image/link, nav, whitespace) is trimmed and the excerpt is truncated to ~260 chars at a word boundary.
Smooth streaming reveal. The assistant bubble no longer jumps in jerky, uneven chunks as
stream_tokenbursts arrive. Incoming token text is buffered and revealed via arequestAnimationFrametypewriter at an adaptive rate (chars-per-frame scales with the pending backlog, so it never falls behind the network); only the single streaming bubble is updated per frame (no full list rebuild), and the final turn snaps to the full Markdown render. Respectsprefers-reduced-motion(snaps instantly) and keeps auto-scroll without fighting a visitor who has scrolled up.