@overmap-ai/core 1.0.48-add-agent-service.1 → 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 +4 -4
- package/dist/overmap-core.js +0 -22
- package/dist/overmap-core.js.map +1 -1
- package/dist/overmap-core.umd.cjs +0 -22
- package/dist/overmap-core.umd.cjs.map +1 -1
- package/dist/sdk/sdk.d.ts +1 -2
- package/dist/sdk/services/index.d.ts +0 -1
- package/package.json +150 -150
- package/dist/sdk/services/AgentService.d.ts +0 -5
|
@@ -3531,9 +3531,6 @@ var __publicField = (obj, key, value) => {
|
|
|
3531
3531
|
toolkit.createSelector(
|
|
3532
3532
|
[(state) => state.userFormReducer.revisions, (_state, formId2) => formId2],
|
|
3533
3533
|
(revisions, formId2) => {
|
|
3534
|
-
if (!formId2) {
|
|
3535
|
-
throw new Error("formId is required");
|
|
3536
|
-
}
|
|
3537
3534
|
return _selectLatestFormRevision(revisions, formId2);
|
|
3538
3535
|
}
|
|
3539
3536
|
)
|
|
@@ -6096,7 +6093,6 @@ var __publicField = (obj, key, value) => {
|
|
|
6096
6093
|
async remove(projectAccess) {
|
|
6097
6094
|
const { store } = this.client;
|
|
6098
6095
|
store.dispatch(removeProjectAccess(projectAccess));
|
|
6099
|
-
store.dispatch(removeUser(projectAccess.user));
|
|
6100
6096
|
return this.enqueueRequest({
|
|
6101
6097
|
description: "Delete project access",
|
|
6102
6098
|
method: HttpMethod.DELETE,
|
|
@@ -7477,27 +7473,10 @@ var __publicField = (obj, key, value) => {
|
|
|
7477
7473
|
store.dispatch(setDocuments(result));
|
|
7478
7474
|
}
|
|
7479
7475
|
}
|
|
7480
|
-
class AgentService extends BaseApiService {
|
|
7481
|
-
prompt(request2) {
|
|
7482
|
-
const activeProjectId = this.client.store.getState().projectReducer.activeProjectId;
|
|
7483
|
-
return this.enqueueRequest({
|
|
7484
|
-
description: "Prompt agent",
|
|
7485
|
-
method: HttpMethod.POST,
|
|
7486
|
-
url: "/agents/prompt/",
|
|
7487
|
-
payload: {
|
|
7488
|
-
prompt: request2,
|
|
7489
|
-
active_project: activeProjectId
|
|
7490
|
-
},
|
|
7491
|
-
blockers: ["prompt"],
|
|
7492
|
-
blocks: ["prompt"]
|
|
7493
|
-
});
|
|
7494
|
-
}
|
|
7495
|
-
}
|
|
7496
7476
|
class OvermapSDK {
|
|
7497
7477
|
constructor(apiUrl, store) {
|
|
7498
7478
|
__publicField(this, "API_URL");
|
|
7499
7479
|
__publicField(this, "store");
|
|
7500
|
-
__publicField(this, "agent", new AgentService(this));
|
|
7501
7480
|
__publicField(this, "files", new FileService(this));
|
|
7502
7481
|
__publicField(this, "attachments", new AttachmentService(this));
|
|
7503
7482
|
__publicField(this, "auth", new AuthService(this));
|
|
@@ -15185,7 +15164,6 @@ var __publicField = (obj, key, value) => {
|
|
|
15185
15164
|
valueIsFile
|
|
15186
15165
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
15187
15166
|
exports2.APIError = APIError;
|
|
15188
|
-
exports2.AgentService = AgentService;
|
|
15189
15167
|
exports2.AttachmentService = AttachmentService;
|
|
15190
15168
|
exports2.AuthService = AuthService;
|
|
15191
15169
|
exports2.BaseApiService = BaseApiService;
|