MCPcopy Create free account
hub / github.com/Roy3838/Observer / getAgentCrop

Function getAgentCrop

app/src/utils/screenCapture.ts:42–46  ·  view source on GitHub ↗
(agentId: string, streamType: 'camera' | 'screen')

Source from the content-addressed store, hash-verified

40}
41
42export 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
48export function removeAgentCrops(agentId: string): void {
49 agentCropConfigs.delete(agentId);

Callers 2

VideoStreamFunction · 0.90
captureFrameMethod · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected