Repository navigation
Visual overhaul, Pages site, and fixes for #3 and the web UI dropping tokens - #7
Merged
Merged
Conversation
…b UI dropping tokens and spaces - Fix #3: web UI and --json-stream keep the whitespace between words (carried onto the next token's text and original); tests updated and added - Web UI: tokens of a fast stream were discarded when [DONE] arrived before the render loop drained; now the queue is flushed first - Web UI: provider=mock was silently mapped to OpenAI; add Mock (no API key) to the provider menu - --json-stream no longer prints the human header/footer into its JSONL output - New --no-open flag for --web - Mock fixture reads as one sentence and echoes the whole prompt (up to 40 chars) instead of starting mid-sentence - Terminal header/footer and web UI restyled around one palette; confidence shown as an underline per token - README: animated SVG hero from real mock output, real terminal captures, collapsible reference; GitHub Pages site in docs/ - Social preview card at .github/social-preview.png
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.
Makes the repo look like what it is (a token-stream tool), and fixes the bugs that showed up while capturing real output.
Fixes #3.
Bugs fixed
--json-stream: whitespace between words is now carried onto the next token'stextandoriginal. Index, counting and transform selection are unchanged. New tests:test_web_events_keep_whitespace,test_web_deleted_token_keeps_whitespace_pending.[DONE]handler cleared the render queue before it was drawn, so a stream that arrives in one burst (the mock provider, cached replies) rendered zero tokens. It now drains the queue, then finishes.provider=mockin the web UI silently became OpenAI (both/streamand/ab-stream). Fixed, and the provider menu gains Mock (no API key).--json-streamstdout was not valid JSONL: the human header and footer were printed into it. Now suppressed in that mode.--no-openflag so--webcan run without opening a browser tab.Visuals (all from real runs today)
assets/hero.svg: animated SVG replaying the real/streamoutput of the mock provider, token by token, with the confidence of each token. Text is converted to glyph paths (Cascadia Mono) so it renders identically everywhere; respectsprefers-reduced-motion.assets/terminal-visual.svg,assets/terminal-table.svg: real ANSI output of--provider mock --visualandcargo run --example mock_stream.assets/web-ui.png: the restyled web UI in split view.docs/index.html: GitHub Pages site with a replay of five real recorded streams (reverse, uppercase, mock, noise, delete)..github/social-preview.png(1280x640).Before / after
Web UI, mock provider, after clicking Stream. Before: nothing rendered (and the menu had no mock option).
Terminal, before:
After:
Site:
Checks
cargo test: all suites pass locally (lib 1565 passed, 0 failed).