@xyo-network/kernel-model 4.3.0 → 5.0.1

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.
Files changed (41) hide show
  1. package/package.json +12 -12
  2. package/dist/neutral/driver/NodeDriver.d.ts +0 -12
  3. package/dist/neutral/driver/NodeDriver.d.ts.map +0 -1
  4. package/dist/neutral/driver/index.d.ts +0 -2
  5. package/dist/neutral/driver/index.d.ts.map +0 -1
  6. package/dist/neutral/index.d.ts +0 -5
  7. package/dist/neutral/index.d.ts.map +0 -1
  8. package/dist/neutral/kernel/KernelExternal.d.ts +0 -51
  9. package/dist/neutral/kernel/KernelExternal.d.ts.map +0 -1
  10. package/dist/neutral/kernel/index.d.ts +0 -2
  11. package/dist/neutral/kernel/index.d.ts.map +0 -1
  12. package/dist/neutral/manifest/ManifestReplacementDictionary.d.ts +0 -5
  13. package/dist/neutral/manifest/ManifestReplacementDictionary.d.ts.map +0 -1
  14. package/dist/neutral/manifest/index.d.ts +0 -2
  15. package/dist/neutral/manifest/index.d.ts.map +0 -1
  16. package/dist/neutral/networks/Payload.d.ts +0 -10
  17. package/dist/neutral/networks/Payload.d.ts.map +0 -1
  18. package/dist/neutral/networks/Remote.d.ts +0 -4
  19. package/dist/neutral/networks/Remote.d.ts.map +0 -1
  20. package/dist/neutral/networks/index.d.ts +0 -3
  21. package/dist/neutral/networks/index.d.ts.map +0 -1
  22. /package/dist/{browser → types}/driver/NodeDriver.d.ts +0 -0
  23. /package/dist/{browser → types}/driver/NodeDriver.d.ts.map +0 -0
  24. /package/dist/{browser → types}/driver/index.d.ts +0 -0
  25. /package/dist/{browser → types}/driver/index.d.ts.map +0 -0
  26. /package/dist/{browser → types}/index.d.ts +0 -0
  27. /package/dist/{browser → types}/index.d.ts.map +0 -0
  28. /package/dist/{browser → types}/kernel/KernelExternal.d.ts +0 -0
  29. /package/dist/{browser → types}/kernel/KernelExternal.d.ts.map +0 -0
  30. /package/dist/{browser → types}/kernel/index.d.ts +0 -0
  31. /package/dist/{browser → types}/kernel/index.d.ts.map +0 -0
  32. /package/dist/{browser → types}/manifest/ManifestReplacementDictionary.d.ts +0 -0
  33. /package/dist/{browser → types}/manifest/ManifestReplacementDictionary.d.ts.map +0 -0
  34. /package/dist/{browser → types}/manifest/index.d.ts +0 -0
  35. /package/dist/{browser → types}/manifest/index.d.ts.map +0 -0
  36. /package/dist/{browser → types}/networks/Payload.d.ts +0 -0
  37. /package/dist/{browser → types}/networks/Payload.d.ts.map +0 -0
  38. /package/dist/{browser → types}/networks/Remote.d.ts +0 -0
  39. /package/dist/{browser → types}/networks/Remote.d.ts.map +0 -0
  40. /package/dist/{browser → types}/networks/index.d.ts +0 -0
  41. /package/dist/{browser → types}/networks/index.d.ts.map +0 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xyo-network/kernel-model",
3
- "version": "4.3.0",
3
+ "version": "5.0.1",
4
4
  "description": "Primary SDK for using XYO Protocol 2.0",
5
5
  "homepage": "https://xyo.network",
6
6
  "bugs": {
@@ -21,25 +21,25 @@
21
21
  "type": "module",
22
22
  "exports": {
23
23
  ".": {
24
- "types": "./dist/neutral/index.d.ts",
24
+ "types": "./dist/types/index.d.ts",
25
25
  "default": "./dist/neutral/index.mjs"
26
26
  },
27
27
  "./package.json": "./package.json"
28
28
  },
29
29
  "module": "dist/neutral/index.mjs",
30
- "types": "dist/neutral/index.d.ts",
30
+ "types": "dist/types/index.d.ts",
31
31
  "dependencies": {
32
- "@xyo-network/bios-model": "^4.3.0",
33
- "@xyo-network/manifest-model": "^3.7.0",
34
- "@xyo-network/module-factory-locator": "^3.7.0",
35
- "@xyo-network/node-model": "^3.7.0",
36
- "@xyo-network/payload-model": "^3.7.0",
37
- "@xyo-network/wallet-model": "^3.7.0"
32
+ "@xyo-network/bios-model": "^5.0.1",
33
+ "@xyo-network/manifest-model": "^3.9.37",
34
+ "@xyo-network/module-factory-locator": "^3.9.37",
35
+ "@xyo-network/node-model": "^3.9.37",
36
+ "@xyo-network/payload-model": "^3.9.37",
37
+ "@xyo-network/wallet-model": "^3.9.37"
38
38
  },
39
39
  "devDependencies": {
40
- "@xylabs/ts-scripts-yarn3": "^4.2.6",
41
- "@xylabs/tsconfig": "^4.2.6",
42
- "typescript": "^5.7.3"
40
+ "@xylabs/ts-scripts-yarn3": "^6.0.9",
41
+ "@xylabs/tsconfig": "^6.0.9",
42
+ "typescript": "^5.8.2"
43
43
  },
44
44
  "publishConfig": {
45
45
  "access": "public"
@@ -1,12 +0,0 @@
1
- import type { PackageManifestPayload } from '@xyo-network/manifest-model';
2
- import type { ModuleFactoryLocator } from '@xyo-network/module-factory-locator';
3
- import type { AttachableNodeInstance } from '@xyo-network/node-model';
4
- import type { WalletInstance } from '@xyo-network/wallet-model';
5
- export interface NodeDriver {
6
- locator: ModuleFactoryLocator;
7
- manifest: PackageManifestPayload;
8
- name: string;
9
- walletPath: string | undefined;
10
- initialize(wallet: WalletInstance): Promise<AttachableNodeInstance>;
11
- }
12
- //# sourceMappingURL=NodeDriver.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"NodeDriver.d.ts","sourceRoot":"","sources":["../../../src/driver/NodeDriver.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,6BAA6B,CAAA;AACzE,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,qCAAqC,CAAA;AAC/E,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,yBAAyB,CAAA;AACrE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAA;AAE/D,MAAM,WAAW,UAAU;IACzB,OAAO,EAAE,oBAAoB,CAAA;IAC7B,QAAQ,EAAE,sBAAsB,CAAA;IAChC,IAAI,EAAE,MAAM,CAAA;IACZ,UAAU,EAAE,MAAM,GAAG,SAAS,CAAA;IAC9B,UAAU,CAAC,MAAM,EAAE,cAAc,GAAG,OAAO,CAAC,sBAAsB,CAAC,CAAA;CACpE"}
@@ -1,2 +0,0 @@
1
- export * from './NodeDriver.ts';
2
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/driver/index.ts"],"names":[],"mappings":"AAAA,cAAc,iBAAiB,CAAA"}
@@ -1,5 +0,0 @@
1
- export * from './driver/index.ts';
2
- export * from './kernel/index.ts';
3
- export * from './manifest/index.ts';
4
- export * from './networks/index.ts';
5
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,mBAAmB,CAAA;AACjC,cAAc,mBAAmB,CAAA;AACjC,cAAc,qBAAqB,CAAA;AACnC,cAAc,qBAAqB,CAAA"}
@@ -1,51 +0,0 @@
1
- import type { BiosExternalInterface } from '@xyo-network/bios-model';
2
- import type { ModuleFactoryLocator } from '@xyo-network/module-factory-locator';
3
- import type { AttachableNodeInstance, NodeInstance } from '@xyo-network/node-model';
4
- import type { NodeDriver } from '../driver/index.ts';
5
- export type KernelStatus = 'created' | 'booting' | 'booted' | 'errored';
6
- export type NativeKernelDrivers = 'pubsub' | 'xyo-public-bridge' | 'exposed' | 'os-settings' | 'http-host';
7
- export declare const DefaultKernelDrivers: NativeKernelDrivers[];
8
- export type DriverFactory = (params?: KernelBootParams) => NodeDriver;
9
- export interface KernelNetworkParams {
10
- mainNetwork?: string;
11
- mainNetworkUrl?: string;
12
- xnsNetwork?: string;
13
- xnsNodeUrl?: string;
14
- }
15
- export interface KernelBootParams extends KernelNetworkParams {
16
- additionalDrivers?: NodeDriver[];
17
- kernelDrivers?: NativeKernelDrivers[];
18
- locator?: ModuleFactoryLocator;
19
- }
20
- export interface KernelExternal {
21
- bios?: BiosExternalInterface;
22
- /**
23
- * The drivers that have been attempted to be initialized but errored
24
- */
25
- errored: Readonly<Record<string, Readonly<NodeDriver>>>;
26
- /**
27
- * The drivers that have been initialized
28
- */
29
- initialized: Readonly<Record<string, Readonly<AttachableNodeInstance>>>;
30
- /**
31
- * The drivers that have been registered with the kernel
32
- */
33
- registered: Readonly<Record<string, Readonly<NodeDriver>>>;
34
- /**
35
- * The boot or other status of the kernel
36
- */
37
- status: KernelStatus;
38
- /**
39
- * Boots the kernel
40
- */
41
- boot(bios: BiosExternalInterface, params?: KernelBootParams): Promise<NodeInstance>;
42
- /**
43
- * The memory node that the kernel is running
44
- */
45
- getNode(): Promise<Readonly<NodeInstance>>;
46
- /**
47
- * Loads a driver
48
- */
49
- loadDriver(driver: NodeDriver): Promise<void> | void;
50
- }
51
- //# sourceMappingURL=KernelExternal.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"KernelExternal.d.ts","sourceRoot":"","sources":["../../../src/kernel/KernelExternal.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,yBAAyB,CAAA;AACpE,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,qCAAqC,CAAA;AAC/E,OAAO,KAAK,EAAE,sBAAsB,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAA;AAEnF,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAA;AAEpD,MAAM,MAAM,YAAY,GAAG,SAAS,GAAG,SAAS,GAAG,QAAQ,GAAG,SAAS,CAAA;AACvE,MAAM,MAAM,mBAAmB,GAAG,QAAQ,GAAG,mBAAmB,GAAG,SAAS,GAAG,aAAa,GAAG,WAAW,CAAA;AAE1G,eAAO,MAAM,oBAAoB,EAAE,mBAAmB,EAItC,CAAA;AAEhB,MAAM,MAAM,aAAa,GAAG,CAAC,MAAM,CAAC,EAAE,gBAAgB,KAAK,UAAU,CAAA;AAErE,MAAM,WAAW,mBAAmB;IAClC,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,cAAc,CAAC,EAAE,MAAM,CAAA;IACvB,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,UAAU,CAAC,EAAE,MAAM,CAAA;CACpB;AAED,MAAM,WAAW,gBAAiB,SAAQ,mBAAmB;IAC3D,iBAAiB,CAAC,EAAE,UAAU,EAAE,CAAA;IAChC,aAAa,CAAC,EAAE,mBAAmB,EAAE,CAAA;IACrC,OAAO,CAAC,EAAE,oBAAoB,CAAA;CAC/B;AAED,MAAM,WAAW,cAAc;IAC7B,IAAI,CAAC,EAAE,qBAAqB,CAAA;IAC5B;;OAEG;IACH,OAAO,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,QAAQ,CAAC,UAAU,CAAC,CAAC,CAAC,CAAA;IACvD;;OAEG;IACH,WAAW,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,QAAQ,CAAC,sBAAsB,CAAC,CAAC,CAAC,CAAA;IACvE;;OAEG;IACH,UAAU,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,QAAQ,CAAC,UAAU,CAAC,CAAC,CAAC,CAAA;IAE1D;;OAEG;IACH,MAAM,EAAE,YAAY,CAAA;IAEpB;;OAEG;IACH,IAAI,CACF,IAAI,EAAE,qBAAqB,EAC3B,MAAM,CAAC,EAAE,gBAAgB,GACxB,OAAO,CAAC,YAAY,CAAC,CAAA;IAExB;;OAEG;IACH,OAAO,IAAI,OAAO,CAAC,QAAQ,CAAC,YAAY,CAAC,CAAC,CAAA;IAE1C;;OAEG;IACH,UAAU,CAAC,MAAM,EAAE,UAAU,GAAG,OAAO,CAAC,IAAI,CAAC,GAAG,IAAI,CAAA;CACrD"}
@@ -1,2 +0,0 @@
1
- export * from './KernelExternal.ts';
2
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/kernel/index.ts"],"names":[],"mappings":"AAAA,cAAc,qBAAqB,CAAA"}
@@ -1,5 +0,0 @@
1
- /**
2
- * A dictionary of replacements to be made in a manifest file.
3
- */
4
- export type ManifestReplacementDictionary = Record<string, string>;
5
- //# sourceMappingURL=ManifestReplacementDictionary.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ManifestReplacementDictionary.d.ts","sourceRoot":"","sources":["../../../src/manifest/ManifestReplacementDictionary.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,MAAM,MAAM,6BAA6B,GAAG,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAA"}
@@ -1,2 +0,0 @@
1
- export * from './ManifestReplacementDictionary.ts';
2
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/manifest/index.ts"],"names":[],"mappings":"AAAA,cAAc,oCAAoC,CAAA"}
@@ -1,10 +0,0 @@
1
- import type { Payload } from '@xyo-network/payload-model';
2
- export declare const RemoteNetworkSchema = "network.xyo.remote.network";
3
- export type RemoteNetworkSchema = typeof RemoteNetworkSchema;
4
- export type RemoteNetwork = Payload<{
5
- name: string;
6
- schema: RemoteNetworkSchema;
7
- slug: string;
8
- url: string;
9
- }, RemoteNetworkSchema>;
10
- //# sourceMappingURL=Payload.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Payload.d.ts","sourceRoot":"","sources":["../../../src/networks/Payload.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,4BAA4B,CAAA;AAEzD,eAAO,MAAM,mBAAmB,+BAA+B,CAAA;AAC/D,MAAM,MAAM,mBAAmB,GAAG,OAAO,mBAAmB,CAAA;AAE5D,MAAM,MAAM,aAAa,GAAG,OAAO,CACjC;IACE,IAAI,EAAE,MAAM,CAAA;IACZ,MAAM,EAAE,mBAAmB,CAAA;IAC3B,IAAI,EAAE,MAAM,CAAA;IACZ,GAAG,EAAE,MAAM,CAAA;CACZ,EACD,mBAAmB,CACpB,CAAA"}
@@ -1,4 +0,0 @@
1
- import type { RemoteNetwork } from './Payload.ts';
2
- export declare const IntersectNetworks: RemoteNetwork[];
3
- export declare const XyoPublicNetworks: RemoteNetwork[];
4
- //# sourceMappingURL=Remote.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Remote.d.ts","sourceRoot":"","sources":["../../../src/networks/Remote.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,cAAc,CAAA;AAGjD,eAAO,MAAM,iBAAiB,EAAE,aAAa,EAmB5C,CAAA;AAED,eAAO,MAAM,iBAAiB,EAAE,aAAa,EAmB5C,CAAA"}
@@ -1,3 +0,0 @@
1
- export * from './Payload.ts';
2
- export * from './Remote.ts';
3
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/networks/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAA;AAC5B,cAAc,aAAa,CAAA"}
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes