feat(collab): live collaboration — relay client, IPC bridge, self-hosting settings#90
Merged
Conversation
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.
Summary
Wires the desktop shell (Electron main process) to the live collaboration relay server introduced in
OpenConduit/relay-server.Changes
packages/desktop/src/main/collaboration/(new)client.ts— WebSocket relay client:create,join,leave,send, lock request/release, streaming event forwarding. All URLs resolved dynamically from settings at call time (falls back tohttps://share.openconduit.ai).types.ts— Shared types for the collaboration IPC channel.packages/desktop/src/main/ipc.tscollab:*IPC handlers:create,join,leave,send,lockRequest,lockRelease,onEvent,onInvite.SHARE_BASEis now dynamic — readsselfHosting.shareServerUrlfrom electron-store on each call so self-hosters don't need to restart.packages/desktop/src/main/store/settings.tsselfHostingblock toAppSettings:shareServerUrl(optional string).packages/desktop/src/preload.ts+src/renderer/env.d.tswindow.api.collabwith full TypeScript types for all collab IPC channels.packages/desktop/src/main.tsopenconduit://join?roomId=…deep-link protocol handler; forwards invite events to the renderer viacollab:invite.Depends on
feat/live-collab) —CollaborationBar,StatusBar,useCollaboration, self-hosting settings UI.OpenConduit/relay-server— deployable via Docker or self-hosted.