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.
@@ -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((historyMessage) => ({
11219
- ...historyMessage,
11220
- chat_id: historyMessage.chat_id ?? chatId
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((historyMessage) => ({
11232
- message_id: historyMessage.message_id,
11233
- chat_id: chatId,
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
@@ -13,7 +13,7 @@ import {
13
13
  serializeToYaml,
14
14
  shouldRequireTrustedAccountGuard,
15
15
  waitForWorkflowRun
16
- } from "./chunk-43YGX6HY.js";
16
+ } from "./chunk-2D4QF4PT.js";
17
17
  import "./chunk-IWKP55ZB.js";
18
18
  import "./chunk-BBKJZ23O.js";
19
19
  export {
package/dist/index.js CHANGED
@@ -42,7 +42,7 @@ import {
42
42
  selectAssistantMessagesForSpeech,
43
43
  serializeToYaml,
44
44
  summarizeAssistantSpeech
45
- } from "./chunk-43YGX6HY.js";
45
+ } from "./chunk-2D4QF4PT.js";
46
46
  import "./chunk-IWKP55ZB.js";
47
47
  import "./chunk-BBKJZ23O.js";
48
48
  export {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "openmates",
3
- "version": "0.18.0-alpha.56",
3
+ "version": "0.18.0-alpha.57",
4
4
  "description": "OpenMates CLI and SDK",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",