openmates 0.18.0-alpha.56 → 0.18.0-alpha.57
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/{chunk-43YGX6HY.js → chunk-2D4QF4PT.js} +20 -18
- package/dist/cli.js +1 -1
- package/dist/index.js +1 -1
- package/package.json +1 -1
|
@@ -8147,6 +8147,17 @@ function reconcileAuthoritativeChats(chats, evidence) {
|
|
|
8147
8147
|
return (!authoritativeIds || authoritativeIds.has(chatId)) && !deletedIds.has(chatId);
|
|
8148
8148
|
});
|
|
8149
8149
|
}
|
|
8150
|
+
function buildInferenceHistoryMessage(historyMessage, chatId) {
|
|
8151
|
+
return {
|
|
8152
|
+
message_id: historyMessage.message_id,
|
|
8153
|
+
chat_id: chatId,
|
|
8154
|
+
role: historyMessage.role,
|
|
8155
|
+
sender_name: historyMessage.sender_name ?? historyMessage.role,
|
|
8156
|
+
content: historyMessage.content,
|
|
8157
|
+
created_at: historyMessage.created_at,
|
|
8158
|
+
category: historyMessage.role === "assistant" ? historyMessage.category : void 0
|
|
8159
|
+
};
|
|
8160
|
+
}
|
|
8150
8161
|
var MATE_NAMES = {
|
|
8151
8162
|
software_development: "Sophia",
|
|
8152
8163
|
business_development: "Burton",
|
|
@@ -11215,10 +11226,9 @@ var OpenMatesClient = class _OpenMatesClient {
|
|
|
11215
11226
|
};
|
|
11216
11227
|
}
|
|
11217
11228
|
if (params.incognito) {
|
|
11218
|
-
const providedHistory = (params.messageHistory ?? []).map(
|
|
11219
|
-
|
|
11220
|
-
|
|
11221
|
-
}));
|
|
11229
|
+
const providedHistory = (params.messageHistory ?? []).map(
|
|
11230
|
+
(historyMessage) => buildInferenceHistoryMessage(historyMessage, historyMessage.chat_id ?? chatId)
|
|
11231
|
+
);
|
|
11222
11232
|
messagePayload.message_history = [...providedHistory, {
|
|
11223
11233
|
message_id: messageId,
|
|
11224
11234
|
chat_id: chatId,
|
|
@@ -11228,14 +11238,9 @@ var OpenMatesClient = class _OpenMatesClient {
|
|
|
11228
11238
|
created_at: createdAt
|
|
11229
11239
|
}];
|
|
11230
11240
|
} else if (messageHistoryForRequest && messageHistoryForRequest.length > 0) {
|
|
11231
|
-
messagePayload.message_history = messageHistoryForRequest.map(
|
|
11232
|
-
|
|
11233
|
-
|
|
11234
|
-
role: historyMessage.role,
|
|
11235
|
-
sender_name: historyMessage.sender_name ?? historyMessage.role,
|
|
11236
|
-
content: historyMessage.content,
|
|
11237
|
-
created_at: historyMessage.created_at
|
|
11238
|
-
}));
|
|
11241
|
+
messagePayload.message_history = messageHistoryForRequest.map(
|
|
11242
|
+
(historyMessage) => buildInferenceHistoryMessage(historyMessage, chatId)
|
|
11243
|
+
);
|
|
11239
11244
|
}
|
|
11240
11245
|
if (params.preparedEmbeds && params.preparedEmbeds.length > 0) {
|
|
11241
11246
|
messagePayload.embeds = params.preparedEmbeds.map((embed) => ({
|
|
@@ -69512,6 +69517,9 @@ As of mid-2026, the severe supply shocks from the 2024\u20132025 avian flu have
|
|
|
69512
69517
|
confirmation_body: {
|
|
69513
69518
|
text: "We have received your report and will look into it. You can reference your issue using the ID below."
|
|
69514
69519
|
},
|
|
69520
|
+
confirmation_summary_title: {
|
|
69521
|
+
text: "Report summary"
|
|
69522
|
+
},
|
|
69515
69523
|
confirmation_submit_another: {
|
|
69516
69524
|
text: "Submit another report"
|
|
69517
69525
|
},
|
|
@@ -69554,12 +69562,6 @@ As of mid-2026, the severe supply shocks from the 2024\u20132025 avian flu have
|
|
|
69554
69562
|
screenshot_upload_failed: {
|
|
69555
69563
|
text: "Failed to read the uploaded image."
|
|
69556
69564
|
},
|
|
69557
|
-
add_to_linear_label: {
|
|
69558
|
-
text: "Add to Linear"
|
|
69559
|
-
},
|
|
69560
|
-
add_to_linear_hint: {
|
|
69561
|
-
text: "Create a Linear issue to track this report on the project board."
|
|
69562
|
-
},
|
|
69563
69565
|
send_email_notification_label: {
|
|
69564
69566
|
text: "Send email notification"
|
|
69565
69567
|
},
|
package/dist/cli.js
CHANGED
package/dist/index.js
CHANGED