Skip to content

docs: update spectrum-ts documentation for v9.0.0#109

Closed
photon-action-bot[bot] wants to merge 2 commits into
mainfrom
docs/update-spectrum-ts-v9.0.0
Closed

docs: update spectrum-ts documentation for v9.0.0#109
photon-action-bot[bot] wants to merge 2 commits into
mainfrom
docs/update-spectrum-ts-v9.0.0

Conversation

@photon-action-bot

@photon-action-bot photon-action-bot Bot commented Jul 6, 2026

Copy link
Copy Markdown
Contributor

Documentation Update: spectrum-ts v9.0.0

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

Release Notes

Breaking Changes

  • Space now reserves getMembers, getAvatar, add, remove, and leave. If a custom platform used those names in space.actions, rename them because Spectrum now owns them as universal methods.
  • Content now includes addMember, removeMember, and leaveSpace, so exhaustive switch statements over message.content.type may need new cases.

New Features

  • Added group membership APIs: addMember(), removeMember(), and leaveSpace(), plus the friendlier space.add(), space.remove(), and space.leave() helpers.
  • Added space.getMembers() and space.getAvatar() so apps can read a group roster or fetch the current group icon when the provider supports it.
  • iMessage remote/dedicated mode now supports adding members, removing members, leaving groups, reading members, and reading group avatars.
  • iMessage group changes from other people now arrive on app.messages as normal inbound messages, including membership changes, renames, and avatar updates. ✨
  • Webhook deserialization now understands membership, rename, and avatar content instead of falling back to custom content.

Bug Fixes

  • getMembers() now validates provider results and throws a clear error if a provider returns something other than an array.
  • Telegram now explicitly reports membership operations as unsupported instead of letting them fall through the generic send path.

Improvement

  • Group membership, avatar reads, inbound group events, and nullable message.sender behavior are now documented with iMessage-specific guidance.

Version: 9.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.

@cursor

cursor Bot commented Jul 6, 2026

Copy link
Copy Markdown

Bugbot is not enabled for this team, so this pull request was not reviewed.

Enable Bugbot in the Cursor dashboard to get automatic reviews on future PRs.

…ts-v9.0.0

# Conflicts:
#	docs-src/spectrum-ts/content.mdx.vel
#	docs-src/spectrum-ts/content/avatar.mdx.vel
#	docs-src/spectrum-ts/content/rename.mdx.vel
#	docs-src/spectrum-ts/custom-platforms.mdx.vel
#	docs-src/spectrum-ts/messages.mdx.vel
#	docs-src/spectrum-ts/nav.json
#	docs-src/spectrum-ts/providers/imessage.mdx.vel
#	docs-src/spectrum-ts/providers/imessage/connection-and-routing.mdx.vel
#	docs-src/spectrum-ts/providers/imessage/messaging-features.mdx.vel
#	docs-src/spectrum-ts/spaces-and-users.mdx.vel
@cursor

cursor Bot commented Jul 7, 2026

Copy link
Copy Markdown

Bugbot is not enabled for this team, so this pull request was not reviewed.

Enable Bugbot in the Cursor dashboard to get automatic reviews on future PRs.

@github-actions

github-actions Bot commented Jul 7, 2026

Copy link
Copy Markdown
Contributor

Resolved merge conflicts with main (the branch was DIRTY/CONFLICTING after #103, #108, #111 landed).

Root cause: main restructured spectrum-ts docs to be sourced from the photon-hq/spectrum-ts repo's docs/ directory at ref: main (git-only), and #111 removed the local: docs-src/spectrum-ts fallback in scripts/sources.json. This deleted the entire docs-src/spectrum-ts/ tree, which this PR had modified — producing 10 modify/delete conflicts (plus the rest of the tree already staged as deletions).

Resolution:

  • Content files (docs-src/spectrum-ts/**/*.mdx.vel, nav.json) — accepted main's deletion. Under the new architecture the build no longer reads docs-src/spectrum-ts/; authored prose is pulled from the source repo. The v9.0.0 prose changes (incl. the new content/membership.mdx.vel page) belong in photon-hq/spectrum-ts's docs/ dir and should be landed there instead — they'd be dead files here.
  • package.json — kept this PR's bump of spectrum-ts to 9.0.0 (merged cleanly; main didn't touch it). This is the meaningful surviving change: it drives Vellum's type extraction and selects the doc source revision.
  • pnpm-lock.yaml — kept this PR's lockfile update to 9.0.0 (@spectrum-ts/*@9.0.0); merged cleanly.
  • scripts/sources.json, .github/workflows/{deploy-dist,typecheck-docs}.yml — took main's versions (auto-merged; the git-source switch).

Verification: pnpm install --frozen-lockfile ✅ (spectrum-ts 9.0.0), pnpm lint ✅, pnpm typecheck:docs ✅ (all code blocks type-check and format-check).

⚠️ Note: this PR now effectively only bumps the package to v9.0.0 + lockfile. The doc content updates it contained are no longer applied here and need to go to the spectrum-ts source repo.

@github-actions

github-actions Bot commented Jul 9, 2026

Copy link
Copy Markdown
Contributor

Superseded by #113 which targets a newer version.

@github-actions github-actions Bot closed this Jul 9, 2026
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.

0 participants