ConstInside a service function: who is calling. Null outside a service call, and in pages.
Connects to a package's service, by the package's id. Resolves once the provider runs
(it waits up to 10 seconds for one that is starting); rejects with the reason when the
package is not installed, offers no service, or is switched off. Add the package to
your rednode-app.json's requires, such as { "edgebuilder": ">=0.4" }, so the Mod
Manager shows it as missing before your package runs.
What a package's service offers, described from its JSDoc (REDnode 0.35.0 or later):
each function's description, its parameters with their types as JSON Schema, what it
returns, and whether it is a @tool or @readonly. Waits for a provider that is starting.
Calls the handler with the whole list from service.providers whenever it changes: a provider installed or removed, switched on or off, its service starting or stopping, or its manifest changed by a hot reload. It is called once at the start with the list as it is, and then within a second of each change. Returns a function that stops it.
Every installed package that provides a role, switched on or not, sorted by name, without
the caller itself (#58; REDnode 0.71.0 or later). Unlike use, nothing is chosen and
nothing is called: it is for a package that shows something for each provider, such as a
button per tool. enabled says whether the player switched it on, running whether its
service answers now, and manifest is its rednode-app.json, so a role can define its own
block there.
Inside a service function: a signal that aborts when the caller gives up (its own
AbortSignal, or its timeout). Pass it on to long work, such as fetch.
Other packages' services, and the tools to offer one.