Catalog, defaults, window bindings, and shared mock options.
The intent mock service.
const intent = createMockIntentService({ windows: { w1: 'catalog-distro-tracker' } });
intent.handleMessage('w1', { type: 'intent.invoke', id: 'i1', request: { archetype: 'profile', action: 'open', convention: 'napplet:profile/open', payload: { pubkey: 'abc' } } }, send);
// → { type: 'intent.invoke.result', id: 'i1', result: { ok: true, archetype: 'profile', action: 'open', convention: 'napplet:profile/open', handler: 'catalog-profile-viewer' } }
Create the NAP-INTENT mock backed by
MOCK_NAPPLETS(or a custom catalog).