Skip to content

docs: update spectrum-ts documentation for v2.0.0#82

Merged
Ryan Zhu (underthestars-zhy) merged 1 commit into
mainfrom
docs/update-spectrum-ts-v2.0.0
Jun 9, 2026
Merged

docs: update spectrum-ts documentation for v2.0.0#82
Ryan Zhu (underthestars-zhy) merged 1 commit into
mainfrom
docs/update-spectrum-ts-v2.0.0

Conversation

@photon-action-bot

@photon-action-bot photon-action-bot Bot commented Jun 9, 2026

Copy link
Copy Markdown
Contributor

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

  • defineFusorPlatform is gone. Fusor-backed providers now use the regular definePlatform API with fusor(...); see dfa28de.

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 typed app.<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-ts client, 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


🤖 This PR was auto-generated by Claude Code via the update-docs action in buildspace.


View with Codesmith Autofix with Codesmith
Need help on this PR? Tag /codesmith with what you need. Autofix is disabled.

@mintlify

mintlify Bot commented Jun 9, 2026

Copy link
Copy Markdown

Preview deployment for your docs. Learn more about Mintlify Previews.

Project Status Preview Updated (UTC)
Photon 🟡 Building Jun 9, 2026, 7:55 AM

💡 Tip: Enable Workflows to automatically generate PRs for you.

@underthestars-zhy Ryan Zhu (underthestars-zhy) merged commit 082dbcd into main Jun 9, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant