@xyo-network/os-runtime 3.0.3 → 3.0.5
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 +5 -2
- package/dist/neutral/index.mjs +12 -3
- package/dist/neutral/index.mjs.map +1 -1
- package/package.json +28 -28
- package/src/XyOs.ts +12 -5
- package/src/adapter/Base.ts +1 -1
package/dist/neutral/index.d.ts
CHANGED
|
@@ -1554,15 +1554,18 @@ declare class XyOsContextBase<TParams extends XyOsContextParams | void = void> e
|
|
|
1554
1554
|
}
|
|
1555
1555
|
|
|
1556
1556
|
interface XyOsParams<TManifest extends PackageManifest = PackageManifest> extends XyOsContextParams<TManifest> {
|
|
1557
|
-
|
|
1557
|
+
dappsConfiguration?: DappRegistrationServiceParams;
|
|
1558
|
+
developmentMode?: boolean;
|
|
1559
|
+
kernel?: XyOsContext['kernel'];
|
|
1558
1560
|
}
|
|
1559
1561
|
declare class XyOs extends XyOsContextBase<XyOsParams> implements XyOsContext {
|
|
1560
1562
|
protected _exposedNode: NodeInstance | undefined;
|
|
1561
1563
|
protected _exposedNodeOuter: NodeInstance | undefined;
|
|
1564
|
+
protected _kernel: KernelExternal | undefined;
|
|
1562
1565
|
protected _locator: ModuleFactoryLocator;
|
|
1563
1566
|
protected dappRegistrationService: DappRegistrationService;
|
|
1564
1567
|
private stackManager;
|
|
1565
|
-
constructor({ eventBus,
|
|
1568
|
+
constructor({ eventBus, kernel, locator, dappsConfiguration, developmentMode, ...params }?: XyOsParams);
|
|
1566
1569
|
static get monitoring(): XyOsMonitor | undefined;
|
|
1567
1570
|
static get xyOsGlobal(): XyOsGlobal;
|
|
1568
1571
|
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,26 @@ 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(),
|
|
1948
|
+
dappsConfiguration,
|
|
1949
|
+
developmentMode,
|
|
1944
1950
|
...params
|
|
1945
|
-
}
|
|
1951
|
+
} = {}) {
|
|
1946
1952
|
super({
|
|
1947
1953
|
eventBus,
|
|
1954
|
+
kernel,
|
|
1955
|
+
locator,
|
|
1948
1956
|
...params
|
|
1949
1957
|
});
|
|
1950
|
-
this._locator =
|
|
1958
|
+
this._locator = locator;
|
|
1959
|
+
this._kernel = kernel;
|
|
1951
1960
|
this.stackManager = new StackManager(OsStackMap);
|
|
1952
1961
|
this.dappRegistrationService = new DappRegistrationService(this, dappsConfiguration, this.locator, developmentMode);
|
|
1953
1962
|
}
|