@musnows/scriverse 1.1.0 → 1.1.2
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/ai.js +23 -5
- package/dist/ai.js.map +1 -1
- package/dist/app.js +14 -0
- package/dist/app.js.map +1 -1
- package/dist/public/ai-skill-menu.js +25 -5
- package/dist/public/app.js +325 -101
- package/dist/public/chapter-directory.d.ts +22 -0
- package/dist/public/chapter-directory.js +22 -0
- package/dist/public/index.html +3 -2
- package/dist/public/mobile-app-runtime.js +662 -0
- package/dist/public/mobile-app.css +19 -0
- package/dist/public/mobile-offline-api.js +196 -0
- package/dist/public/mobile-service-worker.js +82 -0
- package/dist/public/mobile-sync-client.js +292 -0
- package/dist/public/mobile-sync-store.js +1004 -0
- package/dist/public/styles.css +6 -3
- package/dist/store.js +15 -8
- package/dist/store.js.map +1 -1
- package/dist/version.js +1 -1
- package/package.json +1 -1
package/dist/app.js
CHANGED
|
@@ -3475,6 +3475,19 @@ export function createRuntime(options) {
|
|
|
3475
3475
|
const permissions = requestPermissions(request, String(conversation.workId));
|
|
3476
3476
|
data(response, redactAiConversation(conversation, permissions));
|
|
3477
3477
|
});
|
|
3478
|
+
app.get("/api/ai-conversations/:conversationId/title", async (request, response) => {
|
|
3479
|
+
const conversationId = request.params.conversationId;
|
|
3480
|
+
const current = store.getAiConversationSummary(conversationId);
|
|
3481
|
+
requestPermissions(request, String(current.workId));
|
|
3482
|
+
await ai.waitForConversationTitle(conversationId);
|
|
3483
|
+
const updated = store.getAiConversationSummary(conversationId);
|
|
3484
|
+
requestPermissions(request, String(updated.workId));
|
|
3485
|
+
data(response, {
|
|
3486
|
+
id: updated.id,
|
|
3487
|
+
title: updated.title,
|
|
3488
|
+
updatedAt: updated.updatedAt
|
|
3489
|
+
});
|
|
3490
|
+
});
|
|
3478
3491
|
app.get("/api/ai-conversations/:conversationId/export", (request, response) => {
|
|
3479
3492
|
const conversation = store.getAiConversation(request.params.conversationId);
|
|
3480
3493
|
const permissions = requestPermissions(request, String(conversation.workId));
|
|
@@ -4248,6 +4261,7 @@ export function createRuntime(options) {
|
|
|
4248
4261
|
contextUsage: result.contextUsage,
|
|
4249
4262
|
conversationId,
|
|
4250
4263
|
conversationTitle: result.conversationTitle,
|
|
4264
|
+
conversationTitleGenerationStarted: result.conversationTitleGenerationStarted,
|
|
4251
4265
|
messageId: typeof result.conversationMessage === "object" && result.conversationMessage !== null
|
|
4252
4266
|
? result.conversationMessage.id
|
|
4253
4267
|
: undefined,
|