INNER CODE UNIT · TypeScript
imageRef
Core-Mate/OpenGUI · deepseek-harness-plugin/src/index.ts:376
function imageRef(image: PhoneObservation['image'] | BrowserImage): ImageAttachmentRef {
return {
attachmentId: AttachmentId(image.attachmentId),
mediaType: 'image/jpeg',
bytes: image.bytes,
width: image.width,
height: image.height,
name: image.name,
}
}
function isCoremateExecutionProvider(provider: string | undefined): boolean {
return provider === PROVIDER || provider === INHERITED_PROVIDER
}
interface PhoneObservation {
observationId: ObservationId
unchangedFromObservationId?: ObservationId