@widgetic/creator 0.4.10 → 0.4.12
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/CreatorApp.svelte +11 -6
- package/package.json +1 -1
package/dist/CreatorApp.svelte
CHANGED
|
@@ -3186,18 +3186,19 @@
|
|
|
3186
3186
|
})),
|
|
3187
3187
|
persistWidgetId,
|
|
3188
3188
|
) : [];
|
|
3189
|
+
// The SDK serializes camelCase only. Snake_case keys are dropped, so the
|
|
3190
|
+
// body that arrived was `{}` and the API answered "message_type is required".
|
|
3189
3191
|
const createPayload = {
|
|
3190
|
-
|
|
3191
|
-
|
|
3192
|
-
|
|
3193
|
-
is_commit: false,
|
|
3192
|
+
messageContent: content,
|
|
3193
|
+
messageType: messageType as 'user' | 'assistant',
|
|
3194
|
+
userId,
|
|
3194
3195
|
attachments: apiAttachments.length > 0 ? apiAttachments : undefined,
|
|
3195
3196
|
// Clarification-card suggestions ride the same write as the reply
|
|
3196
3197
|
// they belong to, so a reload re-renders the card with its chips.
|
|
3197
3198
|
...(suggestions && suggestions.length > 0 ? { suggestions } : {}),
|
|
3198
3199
|
// Same for the inline design-control card: one write, so a reload
|
|
3199
3200
|
// re-renders the reply and its controls — not half a turn.
|
|
3200
|
-
...(designControls ? {
|
|
3201
|
+
...(designControls ? { designControls } : {}),
|
|
3201
3202
|
};
|
|
3202
3203
|
const persistMessage = async (payload: typeof createPayload) => {
|
|
3203
3204
|
const response = await messagesClient.createMessageRaw({
|
|
@@ -10461,7 +10462,11 @@ Requirements:
|
|
|
10461
10462
|
modelId: coderModelForRequest || undefined,
|
|
10462
10463
|
plannerModelId: plannerModelIdForRequest,
|
|
10463
10464
|
widgetId: generationWidgetId,
|
|
10464
|
-
conversationId:
|
|
10465
|
+
conversationId:
|
|
10466
|
+
activeConversationId && isUuid(activeConversationId)
|
|
10467
|
+
? activeConversationId
|
|
10468
|
+
: undefined,
|
|
10469
|
+
images: imagesToSend,
|
|
10465
10470
|
attachmentIds: attachmentIdsToSend,
|
|
10466
10471
|
runtimeLogs: runtimeLogsForRequest,
|
|
10467
10472
|
compileFixOnly: options.compileFixOnly === true,
|