@overmap-ai/core 1.0.55 → 1.0.57-fix-agent-responses.0

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.
@@ -8327,13 +8327,16 @@ var __publicField = (obj, key, value) => {
8327
8327
  queryParams: { conversation_id: conversationId }
8328
8328
  }).then((response) => {
8329
8329
  const conversation = store.getState().agentsReducer.conversations[conversationId];
8330
- if (!conversation) {
8330
+ if (!(conversation == null ? void 0 : conversation.offline_id)) {
8331
8331
  throw new Error("Conversation not found");
8332
8332
  }
8333
+ if (!Array.isArray(response)) {
8334
+ response = [response];
8335
+ }
8333
8336
  store.dispatch(
8334
8337
  updateConversation({
8335
- offline_id: conversationId,
8336
- tiptap_content: [...conversation.tiptap_content || [], response.response]
8338
+ ...conversation,
8339
+ tiptap_content: [...conversation.tiptap_content || [], ...response]
8337
8340
  })
8338
8341
  );
8339
8342
  });
@@ -16934,6 +16937,7 @@ var __publicField = (obj, key, value) => {
16934
16937
  exports2.getLocalDateString = getLocalDateString;
16935
16938
  exports2.getLocalRelativeDateString = getLocalRelativeDateString;
16936
16939
  exports2.getMarkerCoordinates = getMarkerCoordinates;
16940
+ exports2.getOutboxCoordinator = getOutboxCoordinator;
16937
16941
  exports2.getRenamedFile = getRenamedFile;
16938
16942
  exports2.getStageColor = getStageColor;
16939
16943
  exports2.hashFile = hashFile;