MCPcopy Index your code
hub / github.com/callstack/agent-device / uploadOnce

Function uploadOnce

src/remote/upload-client.ts:105–114  ·  view source on GitHub ↗
(
    preflight: Extract<UploadPreflightResult, { kind: 'direct-upload' }>,
  )

Source from the content-addressed store, hash-verified

103 onProgress?: UploadProgressSink;
104}): Promise<string | undefined> {
105 const uploadOnce = async (
106 preflight: Extract<UploadPreflightResult, { kind: 'direct-upload' }>,
107 ): Promise<string> => {
108 await uploadDirectArtifact(options.artifact, preflight, options.onProgress);
109 return await finalizeDirectUpload({
110 normalizedBase: options.normalizedBase,
111 token: options.token,
112 uploadId: preflight.uploadId,
113 });
114 };
115
116 try {
117 return await uploadOnce(options.preflight);

Callers 1

Calls 2

uploadDirectArtifactFunction · 0.85
finalizeDirectUploadFunction · 0.85

Tested by

no test coverage detected