MCPcopy Create free account
hub / github.com/amrkmn/x / writeJsonToS3

Function writeJsonToS3

scripts/cache/utils.ts:78–83  ·  view source on GitHub ↗
(key: string, data: any)

Source from the content-addressed store, hash-verified

76
77// Helper to write JSON to S3 file
78export async function writeJsonToS3(key: string, data: any): Promise<void> {
79 const jsonData = JSON.stringify(data, null, 2);
80 await uploadToS3(key, new TextEncoder().encode(jsonData), {
81 contentType: 'application/json'
82 });
83}
84
85function createFileUploadStream(
86 sourcePath: string,

Callers 7

refreshMetadataFunction · 0.90
saveMetadataFunction · 0.90
migrateMetadataFunction · 0.90
updateMetadataAccessTimeFunction · 0.90
saveManifestFunction · 0.90
acquireLockFunction · 0.90
renewLockFunction · 0.90

Calls 1

uploadToS3Function · 0.90

Tested by

no test coverage detected