UNPKG

histoire

Version:

A fast story book powered by Vite

14 lines (13 loc) • 574 B
/** Weak identity keeps unsupported first-party service handoff out of public snapshots. */ const projects = new WeakMap(); /** Registers service identity without acquiring external resources. */ export function registerProjectServices(project, services) { projects.set(project, services); } /** Internal execution/source adapter boundary consumed by later SDK capture integration. */ export function getProjectServices(project) { const services = projects.get(project); if (!services) throw new Error('Unknown Histoire project'); return services; }