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

1.0 KB
Raw Blame
import { request } from './apiCore.js';

// macOS Contacts ingestion + Tribe bridge (#2415).
export const getContactsStatus = (options = {}) => request('/contacts/status', options);
export const checkContactsSetup = (options = {}) => request('/contacts/setup-check', options);
export const syncContacts = (options = {}) => request('/contacts/sync', { method: 'POST', ...options });
export const enrichTribeFromContacts = ({ dryRun = false, ...options } = {}) =>
  request('/contacts/enrich-tribe', {
    method: 'POST',
    body: JSON.stringify({ dryRun }),
    ...options,
  });
export const suggestTribeFromContacts = ({ limit, silent } = {}) => {
  const params = new URLSearchParams();
  if (limit) params.set('limit', String(limit));
  const qs = params.toString();
  return request(`/contacts/suggest-tribe${qs ? `?${qs}` : ''}`, { silent });
};
export const importContactToTribe = (data, options = {}) =>
  request('/contacts/import-to-tribe', {
    method: 'POST',
    body: JSON.stringify(data),
    ...options,
  });