@musnows/scriverse 0.7.9 → 0.7.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/app.js +10 -0
- package/dist/app.js.map +1 -1
- package/dist/database.js +34 -2
- package/dist/database.js.map +1 -1
- package/dist/public/app.js +181 -15
- package/dist/public/index.html +10 -2
- package/dist/public/styles.css +7 -0
- package/dist/s3-backup.js +47 -10
- package/dist/s3-backup.js.map +1 -1
- package/dist/store.js +33 -2
- package/dist/store.js.map +1 -1
- package/dist/version.js +1 -1
- package/dist/version.js.map +1 -1
- package/package.json +1 -1
package/dist/app.js
CHANGED
|
@@ -2324,6 +2324,16 @@ export function createRuntime(options) {
|
|
|
2324
2324
|
response.setHeader("Content-Disposition", aiConversationExportContentDisposition(readableConversation));
|
|
2325
2325
|
response.send(exportAiConversationMarkdown(readableConversation));
|
|
2326
2326
|
});
|
|
2327
|
+
app.patch("/api/ai-conversations/:conversationId/favorite", (request, response) => {
|
|
2328
|
+
const input = parse(z.object({ isFavorite: z.boolean() }).strict(), request.body);
|
|
2329
|
+
const updated = store.setAiConversationFavorite(request.params.conversationId, input.isFavorite);
|
|
2330
|
+
const permissions = requestPermissions(request, String(updated.workId));
|
|
2331
|
+
data(response, redactAiConversation(updated, permissions));
|
|
2332
|
+
});
|
|
2333
|
+
app.delete("/api/ai-conversations/:conversationId", (request, response) => {
|
|
2334
|
+
store.deleteAiConversation(request.params.conversationId);
|
|
2335
|
+
data(response, { deleted: true });
|
|
2336
|
+
});
|
|
2327
2337
|
app.post("/api/ai-conversations/:conversationId/fork", (request, response) => {
|
|
2328
2338
|
const input = parse(z.object({
|
|
2329
2339
|
messageId: identifier,
|