ProtectedapiProtected ReadonlybannerProtected ReadonlyenvProtected ReadonlyloadProtected ReadonlylocalizationProtected ReadonlypluginProtected ReadonlyrpcProtectedcreateProtectedcreateCreate the PluginHost that is required by my plugin manager ext interface to delegate critical behaviour such as loading and initializing plugins to me.
ProtectedgetProtectedinitInitialize the end of the given provided extension API applicable to the current plugin host. Errors should be propagated to the caller.
the extension API to initialize, if appropriate
ProtectedisDetermine whether a plugin should be loaded via ESM import() instead of
CommonJS require(). Mirrors Node's own rules:
.mjs is always ESM.cjs is always CJSpackage.json type fieldProtectedregister
The RPC handler for headless plugins.