Skip to content

docs: update spectrum-ts documentation for v3.0.0#83

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

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

Conversation

@photon-action-bot

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

Copy link
Copy Markdown
Contributor

Documentation Update: spectrum-ts v3.0.0

This PR updates documentation for spectrum-ts based on the v3.0.0 release.

Release Notes

Breaking Changes

  • platform.space(...) is now platform.space.create(...) for creating a space, and platform.space.get(id) for looking up an existing one.
  • streamText() was removed from the public API. Pass streams directly to text(source, options) or markdown(source, options) instead; StreamTextOptions is now TextStreamOptions.
  • resumableOrderedStream replaced isRetryableError with isCursorRejectedError. Other stream errors now retry automatically.

New Features

  • Added markdown() for outbound styled text using CommonMark/GFM. Telegram and remote iMessage render it natively, while unsupported platforms fall back to readable plain text.
  • Streaming text now works through text() and markdown(), including native Telegram private-chat drafts and existing iMessage streaming behavior. Platforms without streaming support wait for the stream to finish and send the full text.
  • Added unsend() plus message.unsend() and space.unsend(), with iMessage support for retracting outbound messages.
  • Reactions now return a Message handle instead of undefined, so you can keep that handle and unsend the reaction later. ✨

Bug Fixes

  • effect() now accepts markdown content correctly, so markdown can be wrapped in supported iMessage effects.

Improvement

  • Resumable streams are more resilient: reconnects keep retrying, backoff has a safer jitter floor, persistent failures get louder logs, and cursor rejection is handled separately from normal stream errors.

Version: 3.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 11, 2026

Copy link
Copy Markdown

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

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

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

@underthestars-zhy Ryan Zhu (underthestars-zhy) merged commit ce08b7f into main Jun 11, 2026
4 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