import { n as readResponseWithLimit, t as readResponseTextSnippet } from "../read-response-with-limit-S6PVjcFB.js";
import { a as maxBytesForKind, i as MAX_VIDEO_BYTES, n as MAX_DOCUMENT_BYTES, o as mediaKindFromMime, r as MAX_IMAGE_BYTES, t as MAX_AUDIO_BYTES } from "../constants-D9zVCSKe.js";
import { a as imageMimeFromFormat, c as kindFromMime, d as sliceMimeSniffBuffer, i as getFileExtension, l as mimeTypeFromFilePath, n as detectMime, o as isAudioFileName, r as extensionForMime, s as isGifMedia, t as FILE_TYPE_SNIFF_MAX_BYTES, u as normalizeMimeType } from "../mime-TnUOZVhx.js";
import { a as convertHeicToJpeg, c as hasAlphaChannel, d as optimizeImageToPng, h as resizeToPng, i as buildImageResizeSideGrid, l as isImageProcessorUnavailableError, m as resizeToJpeg, n as ImageProcessorUnavailableError, r as MAX_IMAGE_INPUT_PIXELS, s as getImageMetadata, t as IMAGE_REDUCE_QUALITY_STEPS, u as normalizeExifOrientation } from "../image-ops-_p5jM54k.js";
import { n as estimateBase64DecodedBytes, t as canonicalizeBase64 } from "../base64-D03BM6T6.js";
import { a as parseFfprobeCodecAndSampleRate, c as runFfmpeg, d as MEDIA_FFMPEG_MAX_BUFFER_BYTES, f as MEDIA_FFMPEG_TIMEOUT_MS, i as transcodeAudioBufferToOpus, l as runFfprobe, n as probeVideoDimensions, o as parseFfprobeCsvFields, p as MEDIA_FFPROBE_TIMEOUT_MS, r as transcodeAudioBuffer, s as resolveFfmpegBin, t as parseFfprobeVideoDimensions, u as MEDIA_FFMPEG_MAX_AUDIO_DURATION_SECS } from "../media-services-LKy_Jh8A.js";
import { a as ensureMediaDir, c as readMediaBuffer, d as saveMediaSource, f as saveMediaStream, i as deleteMediaBuffer, l as resolveMediaBufferPath, n as SaveMediaSourceError, o as extractOriginalFilename, p as setMediaStoreNetworkDepsForTest, r as cleanOldMedia, s as getMediaDir, t as MEDIA_MAX_BYTES, u as saveMediaBuffer } from "../store-CV_pgWjy.js";
import { a as saveRemoteMedia, i as readRemoteMediaBuffer, n as MediaFetchError, o as saveResponseMedia, r as fetchRemoteMedia, s as parseMediaContentLength, t as DEFAULT_FETCH_MEDIA_MAX_BYTES } from "../fetch-CSVHGRT1.js";
import { i as normalizeInboundPathRoots, n as isValidInboundPathRootPattern, r as mergeInboundPathRoots, t as isInboundPathAllowed } from "../inbound-path-policy-DEbcUBWg.js";
import { a as getDefaultMediaLocalRoots, i as getAgentScopedMediaLocalRootsForSources, n as buildMediaLocalRoots, r as getAgentScopedMediaLocalRoots, t as appendLocalMediaParentRoots } from "../local-roots-BRs4Ij6M.js";
import { n as assertLocalMediaAllowed, r as getDefaultLocalRoots, t as LocalMediaAccessError } from "../local-media-access--1WQiPEd.js";
import { n as normalizePollInput, r as resolvePollMaxSelections, t as normalizePollDurationHours } from "../polls-C-v11_tu.js";
import { n as normalizeMediaProviderId } from "../provider-id-A9AWW5N0.js";
import { i as resolveDocumentMediaModel, n as resolveAutoMediaKeyProviders, r as resolveDefaultMediaModel, t as providerSupportsNativePdfDocument } from "../defaults-DbIJCcgh.js";
import { i as describeImagesWithModelPayloadTransform, n as describeImageWithModelPayloadTransform, r as describeImagesWithModel, t as describeImageWithModel } from "../image-runtime-Dp8ZXhm4.js";
import { a as DEFAULT_MEDIA_CONCURRENCY, c as DEFAULT_VIDEO_MAX_BASE64_BYTES, i as DEFAULT_MAX_CHARS_BY_CAPABILITY, l as MIN_AUDIO_FILE_BYTES, n as DEFAULT_MAX_BYTES, o as DEFAULT_PROMPT, r as DEFAULT_MAX_CHARS, s as DEFAULT_TIMEOUT_SECONDS, t as CLI_OUTPUT_MAX_BUFFER } from "../defaults.constants-0i2_9PQw.js";
import { n as resolveOutboundMediaAccess, r as resolveOutboundMediaLocalRoots, t as buildOutboundMediaLoadOptions } from "../load-options-LnfEFXDj.js";
import { _ as isVoiceMessageCompatibleAudio, a as resolveChannelMediaMaxBytes, c as renderQrPngBase64, d as encodePngRgb, f as encodePngRgba, g as isVoiceCompatibleAudio, h as VOICE_MESSAGE_MIME_TYPES, i as transcribeFirstAudio, l as renderQrPngDataUrl, m as VOICE_MESSAGE_AUDIO_EXTENSIONS, n as createScopedChannelMediaMaxBytesResolver, o as unlinkIfExists, p as fillPixel, r as resolveScopedChannelMediaMaxBytes, s as formatQrPngDataUrl, t as createDirectTextMediaOutbound, u as writeQrPngTempFile } from "../media-runtime-B1Kub7Gz.js";
import { t as resolveOutboundAttachmentFromUrl } from "../outbound-attachment-Cag6O1Hx.js";
import { t as renderQrTerminal } from "../qr-terminal-DKyHHCe4.js";
import { t as readByteStreamWithLimit } from "../read-byte-stream-with-limit-dGylRRsc.js";
import { t as buildAgentMediaPayload } from "../agent-media-payload-CG1xa0Hh.js";
import { a as runCapability, i as resolveMediaAttachmentLocalRoots, n as clearMediaUnderstandingBinaryCacheForTests, o as createMediaAttachmentCache, r as resolveAutoImageModel, s as normalizeMediaAttachments, t as buildProviderRegistry } from "../runner-DMJYWULr.js";
export { CLI_OUTPUT_MAX_BUFFER, DEFAULT_FETCH_MEDIA_MAX_BYTES, DEFAULT_MAX_BYTES, DEFAULT_MAX_CHARS, DEFAULT_MAX_CHARS_BY_CAPABILITY, DEFAULT_MEDIA_CONCURRENCY, DEFAULT_PROMPT, DEFAULT_TIMEOUT_SECONDS, DEFAULT_VIDEO_MAX_BASE64_BYTES, FILE_TYPE_SNIFF_MAX_BYTES, IMAGE_REDUCE_QUALITY_STEPS, ImageProcessorUnavailableError, LocalMediaAccessError, MAX_AUDIO_BYTES, MAX_DOCUMENT_BYTES, MAX_IMAGE_BYTES, MAX_IMAGE_INPUT_PIXELS, MAX_VIDEO_BYTES, MEDIA_FFMPEG_MAX_AUDIO_DURATION_SECS, MEDIA_FFMPEG_MAX_BUFFER_BYTES, MEDIA_FFMPEG_TIMEOUT_MS, MEDIA_FFPROBE_TIMEOUT_MS, MEDIA_MAX_BYTES, MIN_AUDIO_FILE_BYTES, MediaFetchError, SaveMediaSourceError, VOICE_MESSAGE_AUDIO_EXTENSIONS, VOICE_MESSAGE_MIME_TYPES, appendLocalMediaParentRoots, assertLocalMediaAllowed, buildAgentMediaPayload, buildImageResizeSideGrid, buildMediaLocalRoots, buildOutboundMediaLoadOptions, buildProviderRegistry, canonicalizeBase64, cleanOldMedia, clearMediaUnderstandingBinaryCacheForTests, convertHeicToJpeg, createDirectTextMediaOutbound, createMediaAttachmentCache, createScopedChannelMediaMaxBytesResolver, deleteMediaBuffer, describeImageWithModel, describeImageWithModelPayloadTransform, describeImagesWithModel, describeImagesWithModelPayloadTransform, detectMime, encodePngRgb, encodePngRgba, ensureMediaDir, estimateBase64DecodedBytes, extensionForMime, extractOriginalFilename, fetchRemoteMedia, fillPixel, formatQrPngDataUrl, getAgentScopedMediaLocalRoots, getAgentScopedMediaLocalRootsForSources, getDefaultLocalRoots, getDefaultMediaLocalRoots, getFileExtension, getImageMetadata, getMediaDir, hasAlphaChannel, imageMimeFromFormat, isAudioFileName, isGifMedia, isImageProcessorUnavailableError, isInboundPathAllowed, isValidInboundPathRootPattern, isVoiceCompatibleAudio, isVoiceMessageCompatibleAudio, kindFromMime, maxBytesForKind, mediaKindFromMime, mergeInboundPathRoots, mimeTypeFromFilePath, normalizeExifOrientation, normalizeInboundPathRoots, normalizeMediaAttachments, normalizeMediaProviderId, normalizeMimeType, normalizePollDurationHours, normalizePollInput, optimizeImageToPng, parseFfprobeCodecAndSampleRate, parseFfprobeCsvFields, parseFfprobeVideoDimensions, parseMediaContentLength, probeVideoDimensions, providerSupportsNativePdfDocument, readByteStreamWithLimit, readMediaBuffer, readRemoteMediaBuffer, readResponseTextSnippet, readResponseWithLimit, renderQrPngBase64, renderQrPngDataUrl, renderQrTerminal, resizeToJpeg, resizeToPng, resolveAutoImageModel, resolveAutoMediaKeyProviders, resolveChannelMediaMaxBytes, resolveDefaultMediaModel, resolveDocumentMediaModel, resolveFfmpegBin, resolveMediaAttachmentLocalRoots, resolveMediaBufferPath, resolveOutboundAttachmentFromUrl, resolveOutboundMediaAccess, resolveOutboundMediaLocalRoots, resolvePollMaxSelections, resolveScopedChannelMediaMaxBytes, runCapability, runFfmpeg, runFfprobe, saveMediaBuffer, saveMediaSource, saveMediaStream, saveRemoteMedia, saveResponseMedia, setMediaStoreNetworkDepsForTest, sliceMimeSniffBuffer, transcodeAudioBuffer, transcodeAudioBufferToOpus, transcribeFirstAudio, unlinkIfExists, writeQrPngTempFile };
