MCPcopy Create free account
hub / github.com/MagicCube/agentara / useSoulMemoryUpdate

Function useSoulMemoryUpdate

web/src/lib/api/hooks.ts:252–261  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

250 * Updates SOUL.md content.
251 */
252export 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

Callers 1

MemoryPageFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected