Skip to content

armgit / cindy

Public Imported from GitHub
0

Consider it done. The open-source AI agent that works out of the box · 想到,就能做到。开源、开箱即用的 AI Agent。

403 B
Raw Blame
const listeners = new Set<() => void>();

/** Rereads the shared-task directory now, e.g. after joining or leaving on this phone. */
export function notifySharedTaskMembershipChanged(): void {
  for (const listener of listeners) listener();
}

export function onSharedTaskMembershipChanged(listener: () => void): () => void {
  listeners.add(listener);
  return () => { listeners.delete(listener); };
}