MCPcopy Index your code
hub / github.com/simstudioai/sim / stubOrSkipBySize

Function stubOrSkipBySize

apps/sim/connectors/utils.ts:175–181  ·  view source on GitHub ↗
(
  stub: ExternalDocument,
  size: number | undefined,
  maxBytes: number
)

Source from the content-addressed store, hash-verified

173 * at fetch time via `ConnectorFileTooLargeError`).
174 */
175export function stubOrSkipBySize(
176 stub: ExternalDocument,
177 size: number | undefined,
178 maxBytes: number
179): ExternalDocument {
180 return size && size > maxBytes ? markSkipped(stub, sizeLimitSkipReason(maxBytes)) : stub
181}
182
183/** True when a stub has been flagged as skipped (e.g. oversized) via `markSkipped`. */
184export function isSkippedDocument(doc: ExternalDocument): boolean {

Callers 6

sharepoint.tsFile · 0.90
dropbox.tsFile · 0.90
s3.tsFile · 0.90
github.tsFile · 0.90
onedrive.tsFile · 0.90
zoom.tsFile · 0.90

Calls 2

markSkippedFunction · 0.85
sizeLimitSkipReasonFunction · 0.85

Tested by

no test coverage detected