@xyo-network/os-runtime 3.0.2 → 3.0.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/neutral/index.d.ts +2 -1
- package/dist/neutral/index.mjs +9 -2
- package/dist/neutral/index.mjs.map +1 -1
- package/package.json +4 -4
- package/src/XyOs.ts +6 -3
- package/src/adapter/Base.ts +1 -1
package/dist/neutral/index.d.ts
CHANGED
|
@@ -1559,10 +1559,11 @@ interface XyOsParams<TManifest extends PackageManifest = PackageManifest> extend
|
|
|
1559
1559
|
declare class XyOs extends XyOsContextBase<XyOsParams> implements XyOsContext {
|
|
1560
1560
|
protected _exposedNode: NodeInstance | undefined;
|
|
1561
1561
|
protected _exposedNodeOuter: NodeInstance | undefined;
|
|
1562
|
+
protected _kernel: KernelExternal | undefined;
|
|
1562
1563
|
protected _locator: ModuleFactoryLocator;
|
|
1563
1564
|
protected dappRegistrationService: DappRegistrationService;
|
|
1564
1565
|
private stackManager;
|
|
1565
|
-
constructor({ eventBus, ...params }: XyOsParams, dappsConfiguration?: DappRegistrationServiceParams, developmentMode?: boolean);
|
|
1566
|
+
constructor({ eventBus, kernel, locator, ...params }: XyOsParams, dappsConfiguration?: DappRegistrationServiceParams, developmentMode?: boolean);
|
|
1566
1567
|
static get monitoring(): XyOsMonitor | undefined;
|
|
1567
1568
|
static get xyOsGlobal(): XyOsGlobal;
|
|
1568
1569
|
get bios(): KernelExternal['bios'] | undefined;
|
package/dist/neutral/index.mjs
CHANGED
|
@@ -22,6 +22,7 @@ import { Mutex as Mutex2 } from "async-mutex";
|
|
|
22
22
|
|
|
23
23
|
// src/XyOs.ts
|
|
24
24
|
import { assertEx as assertEx12 } from "@xylabs/assert";
|
|
25
|
+
import { Kernel } from "@xyo-network/kernel";
|
|
25
26
|
import { ModuleFactoryLocator as ModuleFactoryLocator5 } from "@xyo-network/module-factory-locator";
|
|
26
27
|
|
|
27
28
|
// src/classes/registration/DappRegistrationService.ts
|
|
@@ -1748,7 +1749,7 @@ var NodeAdapterBase = class extends BaseEmitter4 {
|
|
|
1748
1749
|
});
|
|
1749
1750
|
}
|
|
1750
1751
|
async getEventsArchivist() {
|
|
1751
|
-
const mod = assertEx10(await this.kernel.
|
|
1752
|
+
const mod = assertEx10(await (await this.kernel.getNode()).resolve("KernelNode:ModuleEvents"), () => "KernelNode:ModuleEvents not found");
|
|
1752
1753
|
return asArchivistInstance4(mod, () => `${mod.id} is not an archivist`);
|
|
1753
1754
|
}
|
|
1754
1755
|
validateAndReturnDriver() {
|
|
@@ -1936,18 +1937,24 @@ var OsStackMap = {
|
|
|
1936
1937
|
var XyOs = class _XyOs extends XyOsContextBase {
|
|
1937
1938
|
_exposedNode;
|
|
1938
1939
|
_exposedNodeOuter;
|
|
1940
|
+
_kernel;
|
|
1939
1941
|
_locator;
|
|
1940
1942
|
dappRegistrationService;
|
|
1941
1943
|
stackManager;
|
|
1942
1944
|
constructor({
|
|
1943
1945
|
eventBus = new EventBus(),
|
|
1946
|
+
kernel = new Kernel(),
|
|
1947
|
+
locator = new ModuleFactoryLocator5(),
|
|
1944
1948
|
...params
|
|
1945
1949
|
}, dappsConfiguration, developmentMode) {
|
|
1946
1950
|
super({
|
|
1947
1951
|
eventBus,
|
|
1952
|
+
kernel,
|
|
1953
|
+
locator,
|
|
1948
1954
|
...params
|
|
1949
1955
|
});
|
|
1950
|
-
this._locator =
|
|
1956
|
+
this._locator = locator;
|
|
1957
|
+
this._kernel = kernel;
|
|
1951
1958
|
this.stackManager = new StackManager(OsStackMap);
|
|
1952
1959
|
this.dappRegistrationService = new DappRegistrationService(this, dappsConfiguration, this.locator, developmentMode);
|
|
1953
1960
|
}
|