fix: add backwards compatibility exports for augmentation system
- Added deprecated augmentation type exports for compatibility - Added WebRTCConduitAugmentation stub (deprecated) - Fixed createConduitAugmentation export - Maintained backwards compatibility while using new unified system
This commit is contained in:
parent
994276f09f
commit
a0dca5651f
4 changed files with 67 additions and 3 deletions
|
|
@ -46,6 +46,31 @@ abstract class BaseConduitAugmentation extends BaseAugmentation {
|
|||
): Promise<WebSocketConnection | null>
|
||||
}
|
||||
|
||||
/**
|
||||
* WebRTC Conduit Augmentation (placeholder for backwards compatibility)
|
||||
* @deprecated Use WebSocketConduitAugmentation instead
|
||||
*/
|
||||
export class WebRTCConduitAugmentation extends BaseConduitAugmentation {
|
||||
readonly name = 'webrtc-conduit'
|
||||
|
||||
async execute<T = any>(
|
||||
operation: string,
|
||||
params: any,
|
||||
context?: AugmentationContext
|
||||
): Promise<T | void> {
|
||||
// Placeholder - WebRTC not yet implemented
|
||||
this.log('WebRTC conduit not yet implemented, use WebSocket instead', 'warn')
|
||||
}
|
||||
|
||||
async establishConnection(
|
||||
targetSystemId: string,
|
||||
config?: Record<string, unknown>
|
||||
): Promise<WebSocketConnection | null> {
|
||||
this.log('WebRTC conduit not yet implemented, use WebSocket instead', 'warn')
|
||||
return null
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* WebSocket Conduit Augmentation
|
||||
* Syncs data between Brainy instances using WebSockets
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue