@overmap-ai/core 1.0.53-add-agent-conversations.12 → 1.0.53-add-agent-conversations.14

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.
@@ -5582,7 +5582,7 @@ var __publicField = (obj, key, value) => {
5582
5582
  });
5583
5583
  return promise;
5584
5584
  }
5585
- async refreshStore(replace) {
5585
+ async refreshStore() {
5586
5586
  const { store } = this.client;
5587
5587
  const result = await this.enqueueRequest({
5588
5588
  description: "Get components",
@@ -5591,11 +5591,7 @@ var __publicField = (obj, key, value) => {
5591
5591
  blockers: [],
5592
5592
  blocks: []
5593
5593
  });
5594
- if (replace) {
5595
- store.dispatch(setComponents(result));
5596
- } else {
5597
- store.dispatch(addComponentsInBatches(result));
5598
- }
5594
+ store.dispatch(setComponents(result));
5599
5595
  }
5600
5596
  }
5601
5597
  class ComponentStageCompletionService extends BaseApiService {
@@ -6595,7 +6591,7 @@ var __publicField = (obj, key, value) => {
6595
6591
  if (replaceExisting) {
6596
6592
  this.client.store.dispatch(setIsFetchingInitialData(true));
6597
6593
  }
6598
- return this.enqueueRequest({
6594
+ const result = await this.enqueueRequest({
6599
6595
  uuid: uuid2,
6600
6596
  description: "Get initial data",
6601
6597
  method: HttpMethod.GET,
@@ -6604,10 +6600,8 @@ var __publicField = (obj, key, value) => {
6604
6600
  isAuthNeeded: true,
6605
6601
  blockers: [],
6606
6602
  blocks: []
6607
- }).then((result) => {
6608
- void this._processInitialData(result, replaceExisting);
6609
- return result;
6610
6603
  });
6604
+ void this._processInitialData(result, replaceExisting);
6611
6605
  }
6612
6606
  async fetchProjectUsers() {
6613
6607
  const projectId = this.client.store.getState().projectReducer.activeProjectId;
@@ -6663,7 +6657,6 @@ var __publicField = (obj, key, value) => {
6663
6657
  isProjectIdValid = true;
6664
6658
  for (const workspaceData of projectData.workspaces) {
6665
6659
  const workspace = { ...workspaceData, project: projectData.id };
6666
- delete workspace.categories;
6667
6660
  workspaces[workspace.offline_id] = workspace;
6668
6661
  }
6669
6662
  }
@@ -6721,42 +6714,6 @@ var __publicField = (obj, key, value) => {
6721
6714
  if (currentWorkspaceId) {
6722
6715
  store.dispatch(setActiveWorkspaceId(currentWorkspaceId));
6723
6716
  }
6724
- if (currentProjectId) {
6725
- void this.client.projectAccesses.refreshStore();
6726
- void this.client.projectFiles.refreshStore();
6727
- void this.client.projectAttachments.refreshStore();
6728
- let issuesPromise;
6729
- void Promise.allSettled([
6730
- this.client.categories.refreshStore(),
6731
- this.client.issueTypes.refreshStore()
6732
- ]).then(() => {
6733
- issuesPromise = this.client.issues.refreshStore();
6734
- });
6735
- void Promise.allSettled([
6736
- this.client.componentTypes.refreshStore(),
6737
- this.client.componentStages.refreshStore()
6738
- ]).then(() => {
6739
- void this.client.components.refreshStore(overwrite).then(() => {
6740
- void this.client.componentStageCompletions.refreshStore();
6741
- void this.client.componentTypeAttachments.refreshStore();
6742
- void this.client.componentAttachments.refreshStore();
6743
- });
6744
- });
6745
- void this.client.documents.refreshStore().then(() => {
6746
- void this.client.documentAttachments.refreshStore();
6747
- });
6748
- void this.client.userForms.refreshStore().then(() => {
6749
- void this.client.userFormSubmissions.refreshStore();
6750
- });
6751
- void this.client.agent.refreshStore();
6752
- void this.fetchProjectUsers();
6753
- await issuesPromise;
6754
- void this.client.issueAttachments.refreshStore();
6755
- void this.client.issueComments.refreshStore();
6756
- void this.client.issueUpdates.refreshStore();
6757
- }
6758
- void this.client.teams.refreshStore();
6759
- store.dispatch(setIsFetchingInitialData(false));
6760
6717
  if (overwrite) {
6761
6718
  console.log("Overwriting data");
6762
6719
  store.dispatch(setProjects(projects));
@@ -6767,6 +6724,31 @@ var __publicField = (obj, key, value) => {
6767
6724
  store.dispatch(addOrReplaceProjects(projects));
6768
6725
  store.dispatch(addOrReplaceWorkspaces(workspaces));
6769
6726
  }
6727
+ await this.client.projectFiles.refreshStore();
6728
+ store.dispatch(setIsFetchingInitialData(false));
6729
+ if (currentProjectId) {
6730
+ void this.client.componentTypes.refreshStore();
6731
+ void this.client.componentStages.refreshStore();
6732
+ void this.client.components.refreshStore();
6733
+ void this.client.componentStageCompletions.refreshStore();
6734
+ void this.client.categories.refreshStore();
6735
+ void this.client.issueTypes.refreshStore();
6736
+ void this.client.issues.refreshStore();
6737
+ void this.fetchProjectUsers();
6738
+ void this.client.documents.refreshStore();
6739
+ void this.client.userForms.refreshStore();
6740
+ void this.client.documentAttachments.refreshStore();
6741
+ void this.client.userFormSubmissions.refreshStore();
6742
+ void this.client.agent.refreshStore();
6743
+ void this.client.issueAttachments.refreshStore();
6744
+ void this.client.issueComments.refreshStore();
6745
+ void this.client.issueUpdates.refreshStore();
6746
+ void this.client.projectAccesses.refreshStore();
6747
+ void this.client.projectAttachments.refreshStore();
6748
+ void this.client.componentTypeAttachments.refreshStore();
6749
+ void this.client.componentAttachments.refreshStore();
6750
+ }
6751
+ void this.client.teams.refreshStore();
6770
6752
  }
6771
6753
  }
6772
6754
  class ProjectAccessService extends BaseApiService {