Skip to content

Self-hosted, Self-Improving, Federated Everything App — dev management, agent orchestration, persistent mind, digital twin, second brain, and creative pipeline from a single dashboard over Tailscale to port the user into the OS

475 B
Raw Blame
import { useSocketResource } from './useSocketResource.js';

const EVENTS = ['provider-quota:updated'];

/** The caller owns its entry read; reconcile later cache completions and missed events. */
export function useQuotaUpdates(reload) {
  // Do not pass the resource request object as a legacy load(refresh) argument:
  // it would force another scrape on every completion and loop indefinitely.
  useSocketResource(() => reload(), { events: EVENTS, immediate: false });
}