()
| 250 | * Updates SOUL.md content. |
| 251 | */ |
| 252 | export function useSoulMemoryUpdate() { |
| 253 | const queryClient = useQueryClient(); |
| 254 | return useMutation({ |
| 255 | mutationFn: (content: string) => |
| 256 | api.memory.soul.$put({ json: { content } }).then((res) => res.json()), |
| 257 | onSuccess: () => { |
| 258 | void queryClient.invalidateQueries({ queryKey: ["memory", "soul"] }); |
| 259 | }, |
| 260 | }); |
| 261 | } |
| 262 | |
| 263 | // --- Usage --- |
| 264 |