emitter of kernel events
federation module share scope name
kernel version
Send an event to the kernel
event to send
Get the current lifecycle state of a FynApp (mount tracking).
"name" or "name@version"; a bare name resolves to the most recently updated version when several are tracked
the lifecycle state, or undefined if the FynApp is not tracked
List the lifecycle state of every tracked FynApp (bootstrapping, mounted, suspended, or failed).
Load and bootstrap a single remote FynApp.
Error contract (error isolation):
FynApp on success.null when the per-app load/bootstrap fails (the remote
entry fails to import, loadFynAppBasics rejects, or bootstrap throws).
Failures are isolated so one bad FynApp does not abort callers loading
others; the failure is logged and captured via tel
(fynapp.load_failed). Note bootstrapFynApp additionally isolates its
own errors internally (emitting FYNAPP_BOOTSTRAP_FAILED).base URL to the fynapp assets
OptionalloadId: string
id for the load task
the loaded FynApp, or null if the per-app load failed
Load the basics of a fynapp federation entry into a FynApp object
fynapp entry
fynapp object
Load one or more FynApps by name/range using manifests and a dependency graph.
Error contract:
loadFynApp, whose
null result (a failed individual load) does not abort the batch. The
call resolves once every reachable FynApp has been attempted.Progress events, so a host can show what a load is waiting on:
FYNAPP_LOADING once per FynApp the batch will load, as soon as the
dependency graph is known. Apps already loaded get no events.FYNAPP_LOADED when that FynApp's load attempt ends. ok is false if
it failed.
Both carry a FynAppLoadEventDetail. requestedBy names this call's
requests, so a host can tell its own load apart from a concurrent one.FynApps to load, by name and optional semver range
Optionaloptions: LoadFynAppsOptions
batch options (concurrency, preload strategy)
Resume a suspended FynApp: calls resume() on each of its FynUnits, marks it
mounted, and emits FYNAPP_RESUMED. Only a suspended app can be resumed.
"name" or "name@version"
true if the app was resumed, false if not found or not suspended
Set a resolver that maps {name, range} to a concrete manifest URL (and optional dist base)
Shutdown a FynApp - calls shutdown() on its FynUnits and removes from registry
name of the FynApp to shutdown
true if FynApp was found and shutdown, false otherwise
Suspend a mounted FynApp: calls suspend() on each of its FynUnits, marks it
suspended, and emits FYNAPP_SUSPENDED. Only a mounted app can be
suspended. The kernel does not touch the DOM — each FynUnit decides what to
pause.
"name" or "name@version"
true if the app was suspended, false if not found or not mounted
Install an add-on. Installing a name that is already installed is a no-op.
FynMesh client side library types