docs: update spectrum-ts documentation for v2.0.0#82
Merged
Conversation
|
Preview deployment for your docs. Learn more about Mintlify Previews.
💡 Tip: Enable Workflows to automatically generate PRs for you. |
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.
Documentation Update: spectrum-ts v2.0.0
This PR updates documentation for spectrum-ts based on the v2.0.0 release.
Release Notes
Breaking Changes
defineFusorPlatformis gone. Fusor-backed providers now use the regulardefinePlatformAPI withfusor(...); seedfa28de.New Features
Added a first-class Telegram provider with inbound webhooks through Fusor and outbound Bot API support. It handles text, media, reactions, replies, typing, edits, custom calls, and lazy media downloads.
Added
streamText(...)for sending streaming LLM output as Spectrum content. Remote iMessage can now send the first chunk immediately and edit the message as more text arrives. 🚀Added Fusor custom event channels with
fusorEvent(...). Fusor providers can now emit non-message events like presence or receipts into typedapp.<event>streams.Bug Fixes
Fixed a
Spectrum.stop()deadlock that could happen when provider streams were waiting on pending reads. Shutdown now cancels streams more reliably and has a timeout safety net.Fixed primitive custom event payloads so strings, numbers, and booleans are wrapped safely instead of being spread into broken objects.
Fixed Telegram multipart encoding for array/object fields so Bot API uploads serialize those fields correctly.
Platform narrowing now logs structured warnings on platform mismatches instead of crashing execution.
Improvement
Rebuilt Telegram on the generated
@photon-ai/telegram-tsclient, replacing the hand-written Bot API client with typed generated calls.Telegram can auto-register its Fusor webhook on startup when cloud project metadata is available.
Added CI, typecheck, and test scripts, plus a cleaner
test/layout with shared fixtures.Version: 2.0.0
Need help on this PR? Tag
/codesmithwith what you need. Autofix is disabled.