@ottocode/web-sdk 0.1.303 → 0.1.305

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.
@@ -7414,7 +7414,11 @@ var useAgentsStore = create22((set) => ({
7414
7414
  }),
7415
7415
  setEditorPage: (page) => set({ editorPage: page }),
7416
7416
  openCreateModal: () => set({ isManagerOpen: true, isExpanded: true, isCreateModalOpen: true }),
7417
- closeCreateModal: () => set({ isCreateModalOpen: false })
7417
+ closeCreateModal: () => set({
7418
+ isCreateModalOpen: false,
7419
+ managerMode: "library",
7420
+ editorPage: "overview"
7421
+ })
7418
7422
  }));
7419
7423
 
7420
7424
  // src/hooks/useAgents.ts
@@ -7472,6 +7476,7 @@ function useUpdateAgent() {
7472
7476
  onSuccess: (data, variables) => {
7473
7477
  queryClient.setQueryData(["config", "agents", variables.name], data);
7474
7478
  queryClient.invalidateQueries({ queryKey: ["config", "agents"] });
7479
+ queryClient.invalidateQueries({ queryKey: ["config"] });
7475
7480
  }
7476
7481
  });
7477
7482
  }
@@ -7495,6 +7500,7 @@ function useDeleteAgent() {
7495
7500
  const next = refreshed.agents.find((a) => a.name === refreshed.default)?.name ?? refreshed.agents[0]?.name ?? null;
7496
7501
  selectAgent(next);
7497
7502
  }
7503
+ queryClient.invalidateQueries({ queryKey: ["config"] });
7498
7504
  }
7499
7505
  });
7500
7506
  }
@@ -8040,4 +8046,4 @@ export {
8040
8046
  getAgentToolCount
8041
8047
  };
8042
8048
 
8043
- //# debugId=4BDC1003FDE5765F64756E2164756E21
8049
+ //# debugId=8FAB0E5BAFCB951664756E2164756E21