Enable streaming, adds setup script, other improvements#1
Merged
Conversation
Contributor
steookk
commented
Feb 23, 2026
- adds .env.example
- improves interactive cli client
- Wire onPartialReply in dispatchReplyWithBufferedBlockDispatcher to enable preview streaming: tokens now arrive progressively instead of all at once - Pre-create placeholder message before dispatch (onPartialReply is fire-and-forget) - Replace all hand-rolled loadEnv() functions with dotenv library - Add .env.example with placeholder values (safe to commit) - Add setup-app.ts for provisioning a new Stream Chat app - Fix test-client.ts streaming display: track lastSeenText per message to print only delta characters instead of repeating cumulative text - Print message IDs in test-client.ts for easier thread/quote testing - Update CLAUDE.md with accurate inbound flow and key design decisions Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
0136129 to
4a1897b
Compare
- All scripts now load dotenv from their own directory via
config({ path: new URL(".env", import.meta.url).pathname })
- setup-app.ts writes scripts/.env instead of project root .env
- Remove BOT_USER_ID from .env.example (not needed by scripts at runtime)
- Update .gitignore to match new paths
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
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.