feat: implement sync and sync-reset commands for shared channel management
- Add GetRemoteID() method to Bridge interface for cursor operations - Update bridge constructors to accept and store remoteID parameter - Implement executeSyncCommand handler for forcing shared channel sync - Implement executeSyncResetCommand handler for resetting sync cursor - Add command registration for 'sync' and 'sync-reset' subcommands - Enhance command handler with direct plugin API access for shared channel operations - Add comprehensive validation and error handling for unmapped channels - Support both SyncSharedChannel and UpdateSharedChannelCursor API methods 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
parent
5d81ca2154
commit
d21dcd2dd1
5 changed files with 139 additions and 6 deletions
|
@ -161,6 +161,9 @@ type Bridge interface {
|
|||
SendMessage(msg *BridgeMessage) error
|
||||
GetMessageHandler() MessageHandler
|
||||
GetUserResolver() UserResolver
|
||||
|
||||
// GetRemoteID returns the remote ID used for shared channels registration
|
||||
GetRemoteID() string
|
||||
}
|
||||
|
||||
// BridgeUser represents a user connected to any bridge service
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue