Documentation
    Preparing search index...

    Function manifestToIntentCatalogEntry

    • Map a resolved napplet manifest's archetype data into an IntentCatalogEntry.

      Repeated slugs group into one support record; action and convention arrays remain stable and deduplicated.

      Parameters

      Returns IntentCatalogEntry

      The IntentCatalogEntry for createCatalogIntentResolver.

      manifestToIntentCatalogEntry({
      dTag: 'profile-viewer',
      title: 'Profile',
      archetypes: [{ slug: 'profile', convention: 'napplet:profile/open' }],
      });
      // → { dTag: 'profile-viewer', title: 'Profile',
      // archetypes: { profile: {
      // actions: ['open'],
      // conventions: ['napplet:profile/open'],
      // } } }