@overmap-ai/core 1.0.57-project-view-only-flag.0 → 1.0.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/LICENSE +1 -0
- package/README.md +4 -4
- package/dist/overmap-core.js +6 -3
- package/dist/overmap-core.js.map +1 -1
- package/dist/overmap-core.umd.cjs +6 -3
- package/dist/overmap-core.umd.cjs.map +1 -1
- package/dist/sdk/services/AgentService.d.ts +2 -21
- package/package.json +153 -153
package/LICENSE
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
UNLICENSED (ALL RIGHTS RESERVED)
|
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# @overmap-ai/core
|
|
2
|
-
|
|
3
|
-
The `core` package contains core functionality for the Overmap platform. It is a peer dependency of all other overmap
|
|
4
|
-
packages.
|
|
1
|
+
# @overmap-ai/core
|
|
2
|
+
|
|
3
|
+
The `core` package contains core functionality for the Overmap platform. It is a peer dependency of all other overmap
|
|
4
|
+
packages.
|
package/dist/overmap-core.js
CHANGED
|
@@ -8288,13 +8288,16 @@ class AgentService extends BaseApiService {
|
|
|
8288
8288
|
queryParams: { conversation_id: conversationId }
|
|
8289
8289
|
}).then((response) => {
|
|
8290
8290
|
const conversation = store.getState().agentsReducer.conversations[conversationId];
|
|
8291
|
-
if (!conversation) {
|
|
8291
|
+
if (!(conversation == null ? void 0 : conversation.offline_id)) {
|
|
8292
8292
|
throw new Error("Conversation not found");
|
|
8293
8293
|
}
|
|
8294
|
+
if (!Array.isArray(response)) {
|
|
8295
|
+
response = [response];
|
|
8296
|
+
}
|
|
8294
8297
|
store.dispatch(
|
|
8295
8298
|
updateConversation({
|
|
8296
|
-
|
|
8297
|
-
tiptap_content: [...conversation.tiptap_content || [], response
|
|
8299
|
+
...conversation,
|
|
8300
|
+
tiptap_content: [...conversation.tiptap_content || [], ...response]
|
|
8298
8301
|
})
|
|
8299
8302
|
);
|
|
8300
8303
|
});
|