Write conversation package manifests
This commit is contained in:
@@ -44,6 +44,21 @@ export function createMindSpaceServiceFacade({ storageAdapter, publicBaseUrl } =
|
||||
return buildConversationPackageManifest(input);
|
||||
},
|
||||
|
||||
async putConversationManifest({ packageRecord, artifacts = [] }) {
|
||||
const manifest = buildConversationPackageManifest({ packageRecord, artifacts });
|
||||
const body = `${JSON.stringify(manifest, null, 2)}\n`;
|
||||
const writeResult = await this.putPackageObject({
|
||||
packageRecord: manifest,
|
||||
relativePath: 'manifest.json',
|
||||
body,
|
||||
});
|
||||
return {
|
||||
manifest,
|
||||
storageKey: writeResult.key,
|
||||
writeResult,
|
||||
};
|
||||
},
|
||||
|
||||
buildConversationStoragePrefix(input) {
|
||||
return buildConversationStoragePrefix(input);
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user