Skip to content

Expose typed composition fetch and discovery #384

Open

Description

@renan628

S2a · 1 point

Implementation

  • Update src/slot.ts, src/component.ts, src/plug.ts and src/api/fetchContent.ts to consume generated address/reference/content contracts.
  • Add/export typed findSlots beside fetchContent using S1b transport and generated component metadata/filter types.

Acceptance

  • Literal IDs/paths/aliases and runtime references infer expected content; discovery retains versioned IDs/metadata.
  • Type/runtime fixtures cover composition/renderer maps and existing non-composition APIs against actual SDK transport.

Spec coverage

Reference: Composition specification — PR #40.

  • Implements — Addressing by path: Infer literal path and alias content through unversioned slot-ID mappings, keep runtime references open, and preserve discovery-returned id@major references as separate selected-version pins.
  • Implements — The metadata and filter types: Expose typed discovery using generated component attributes and filter contracts while retaining versioned result identities and address or locale metadata.
  • Supports — The component map: Connect generated composition content and renderer maps to public Plug APIs and the actual SDK transport.

Depends on: S1a, S1b, L4b, L4c

References: Full acceptance, spec.

Activity

  1. changed the title [-]Expose typed composition content APIs[/-] [+]Expose typed composition APIs and fallbacks[/+] on Oct 7, 2026
  2. changed the title [-]Expose typed composition APIs and fallbacks[/-] [+]Expose typed composition fetch and discovery[/+] on Oct 8, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions