Consider it done. The open-source AI agent that works out of the box · 想到,就能做到。开源、开箱即用的 AI Agent。
TypeScript agentai-agentai-assistantandroidclaude-codecodexelectroniosllmmacosreact-nativetypescriptwindows
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); };
}