Class ExtensionRegistry<TPayload>

Maintains layered stacks of descriptors for a particular extension kind. New registrations push onto the stack, allowing later descriptors to override earlier ones while maintaining history for fallbacks or debugging.

Type Parameters

  • TPayload = unknown

Constructors

Methods

  • Calls listener after every successful register, whoever made it: a direct registration through ToolExecutor, or an extension pack registering a descriptor. Returns a function that removes the listener.

    Parameters

    Returns (() => void)

      • (): void
      • Returns void