Loads packs defined in the manifest, registering their descriptors in the
appropriate registries. Supports factory-based packs as well as resolving
packs from package and module manifest entries.
Optional context: ExtensionLifecycleContextRegisters a listener for extension lifecycle events.
Directly loads a pack instance (typically produced by an inline factory) and registers all of its descriptors.
Optional identifier: stringOptional options: Record<string, unknown>Optional lifecycleContext: ExtensionLifecycleContextLoad a single manifest entry at runtime, applying the same resolution, secret hydration, registration, and event emission logic as loadManifest.
This enables schema-on-demand / lazy-loading flows where an agent can enable an extension pack mid-session.
Optional lifecycleContext: ExtensionLifecycleContextConvenience: load an extension pack by npm package name at runtime.
Optional options: Record<string, unknown>Optional identifier: stringOptional lifecycleContext: ExtensionLifecycleContextConvenience: load an extension pack by local module specifier at runtime.
Optional options: Record<string, unknown>Optional identifier: stringOptional lifecycleContext: ExtensionLifecycleContextList pack metadata for packs loaded during this process lifetime.
Provides the registry for a particular kind, creating it if necessary.
Deactivates all loaded descriptors and extension packs.
This is intentionally best-effort: one failing deactivation should not prevent other packs/descriptors from shutting down.
Optional context: ExtensionLifecycleContext
Coordinates discovery and lifecycle management for extension packs. Packs emit descriptors which are registered into kind-specific registries.