@overmap-ai/core 1.0.48-add-agent-service.2 → 1.0.48-few-bug-fixes.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.
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.
@@ -3540,9 +3540,6 @@ const selectLatestFormRevision = restructureCreateSelectorWithArgs(
3540
3540
  createSelector(
3541
3541
  [(state) => state.userFormReducer.revisions, (_state, formId2) => formId2],
3542
3542
  (revisions, formId2) => {
3543
- if (!formId2) {
3544
- throw new Error("formId is required");
3545
- }
3546
3543
  return _selectLatestFormRevision(revisions, formId2);
3547
3544
  }
3548
3545
  )
@@ -6105,7 +6102,6 @@ class ProjectAccessService extends BaseApiService {
6105
6102
  async remove(projectAccess) {
6106
6103
  const { store } = this.client;
6107
6104
  store.dispatch(removeProjectAccess(projectAccess));
6108
- store.dispatch(removeUser(projectAccess.user));
6109
6105
  return this.enqueueRequest({
6110
6106
  description: "Delete project access",
6111
6107
  method: HttpMethod.DELETE,
@@ -7486,27 +7482,10 @@ class DocumentService extends BaseApiService {
7486
7482
  store.dispatch(setDocuments(result));
7487
7483
  }
7488
7484
  }
7489
- class AgentService extends BaseApiService {
7490
- prompt(request2) {
7491
- const activeProjectId = this.client.store.getState().projectReducer.activeProjectId;
7492
- return this.enqueueRequest({
7493
- description: "Prompt agent",
7494
- method: HttpMethod.POST,
7495
- url: "/agents/prompt/",
7496
- payload: {
7497
- prompt: request2,
7498
- active_project: activeProjectId
7499
- },
7500
- blockers: ["prompt"],
7501
- blocks: ["prompt"]
7502
- });
7503
- }
7504
- }
7505
7485
  class OvermapSDK {
7506
7486
  constructor(apiUrl, store) {
7507
7487
  __publicField(this, "API_URL");
7508
7488
  __publicField(this, "store");
7509
- __publicField(this, "agent", new AgentService(this));
7510
7489
  __publicField(this, "files", new FileService(this));
7511
7490
  __publicField(this, "attachments", new AttachmentService(this));
7512
7491
  __publicField(this, "auth", new AuthService(this));
@@ -15195,7 +15174,6 @@ const index = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.definePropert
15195
15174
  }, Symbol.toStringTag, { value: "Module" }));
15196
15175
  export {
15197
15176
  APIError,
15198
- AgentService,
15199
15177
  AttachmentService,
15200
15178
  AuthService,
15201
15179
  BaseApiService,