(agentId: string, streamType: 'camera' | 'screen')
| 40 | } |
| 41 | |
| 42 | export function getAgentCrop(agentId: string, streamType: 'camera' | 'screen'): CropConfig | null { |
| 43 | const agentConfig = agentCropConfigs.get(agentId); |
| 44 | if (!agentConfig) return null; |
| 45 | return streamType === 'camera' ? agentConfig.camera || null : agentConfig.screen || null; |
| 46 | } |
| 47 | |
| 48 | export function removeAgentCrops(agentId: string): void { |
| 49 | agentCropConfigs.delete(agentId); |
no outgoing calls
no test coverage detected