@xyo-network/os-runtime 7.1.1 → 7.2.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.
- package/dist/neutral/Caller.d.ts +18 -20
- package/dist/neutral/Caller.d.ts.map +1 -1
- package/dist/neutral/DappCallerBase.d.ts.map +1 -1
- package/dist/neutral/PubSubBridgeCaller.d.ts +1 -1
- package/dist/neutral/PubSubBridgeCaller.d.ts.map +1 -1
- package/dist/neutral/XyOs.d.ts +1 -1
- package/dist/neutral/XyOs.d.ts.map +1 -1
- package/dist/neutral/XyOsBase.d.ts +2 -4
- package/dist/neutral/XyOsBase.d.ts.map +1 -1
- package/dist/neutral/XyOsDapp.d.ts.map +1 -1
- package/dist/neutral/access/Caller.d.ts +1 -1
- package/dist/neutral/access/Caller.d.ts.map +1 -1
- package/dist/neutral/adapter/Base.d.ts +2 -2
- package/dist/neutral/adapter/Base.d.ts.map +1 -1
- package/dist/neutral/classes/menu/Caller.d.ts +1 -2
- package/dist/neutral/classes/menu/Caller.d.ts.map +1 -1
- package/dist/neutral/classes/settings/Caller.d.ts +2 -2
- package/dist/neutral/classes/settings/badge/Caller.d.ts +2 -2
- package/dist/neutral/classes/settings/badge/Resource.d.ts +1 -1
- package/dist/neutral/classes/settings/badge/Resource.d.ts.map +1 -1
- package/dist/neutral/event/bus/Connection.d.ts +3 -4
- package/dist/neutral/event/bus/Connection.d.ts.map +1 -1
- package/dist/neutral/event/bus/EventBus.d.ts.map +1 -1
- package/dist/neutral/event/bus/PubSubConnection.d.ts +1 -1
- package/dist/neutral/helpers/monitor/types.d.ts +1 -1
- package/dist/neutral/index.mjs +1000 -658
- package/dist/neutral/index.mjs.map +1 -1
- package/dist/neutral/intent/Caller.d.ts +5 -5
- package/dist/neutral/lib/PayloadStore.d.ts +1 -2
- package/dist/neutral/lib/PayloadStore.d.ts.map +1 -1
- package/dist/neutral/lib/isPayload.d.ts +1 -1
- package/dist/neutral/profileModuleEvents.d.ts +1 -1
- package/dist/neutral/profileModuleEvents.d.ts.map +1 -1
- package/dist/neutral/registration/DappRegistrationService.d.ts.map +1 -1
- package/dist/neutral/registration/DappRegistry.d.ts +4 -6
- package/dist/neutral/registration/DappRegistry.d.ts.map +1 -1
- package/dist/neutral/registration/ValidateDappAccessDiviner/Config.d.ts +6 -2
- package/dist/neutral/registration/ValidateDappAccessDiviner/Config.d.ts.map +1 -1
- package/dist/neutral/registration/ValidateDappAccessDiviner/Diviner.d.ts +3 -1
- package/dist/neutral/registration/ValidateDappAccessDiviner/Diviner.d.ts.map +1 -1
- package/dist/neutral/stack/Base.d.ts +2 -2
- package/dist/neutral/stack/Base.d.ts.map +1 -1
- package/dist/neutral/system/ManageSystemDapps.d.ts +1 -1
- package/dist/neutral/utils/buildWalletSeedPhrasePayload.d.ts +1 -1
- package/dist/neutral/utils/buildWalletSeedPhrasePayload.d.ts.map +1 -1
- package/dist/neutral/wallet/SeedPhraseRepository.d.ts +3 -4
- package/dist/neutral/wallet/SeedPhraseRepository.d.ts.map +1 -1
- package/dist/node/Caller.d.ts +18 -20
- package/dist/node/Caller.d.ts.map +1 -1
- package/dist/node/DappCallerBase.d.ts.map +1 -1
- package/dist/node/PubSubBridgeCaller.d.ts +1 -1
- package/dist/node/PubSubBridgeCaller.d.ts.map +1 -1
- package/dist/node/XyOs.d.ts +1 -1
- package/dist/node/XyOs.d.ts.map +1 -1
- package/dist/node/XyOsBase.d.ts +2 -4
- package/dist/node/XyOsBase.d.ts.map +1 -1
- package/dist/node/XyOsDapp.d.ts.map +1 -1
- package/dist/node/access/Caller.d.ts +1 -1
- package/dist/node/access/Caller.d.ts.map +1 -1
- package/dist/node/adapter/Base.d.ts +2 -2
- package/dist/node/adapter/Base.d.ts.map +1 -1
- package/dist/node/classes/menu/Caller.d.ts +1 -2
- package/dist/node/classes/menu/Caller.d.ts.map +1 -1
- package/dist/node/classes/settings/Caller.d.ts +2 -2
- package/dist/node/classes/settings/badge/Caller.d.ts +2 -2
- package/dist/node/classes/settings/badge/Resource.d.ts +1 -1
- package/dist/node/classes/settings/badge/Resource.d.ts.map +1 -1
- package/dist/node/event/bus/Connection.d.ts +3 -4
- package/dist/node/event/bus/Connection.d.ts.map +1 -1
- package/dist/node/event/bus/EventBus.d.ts.map +1 -1
- package/dist/node/event/bus/PubSubConnection.d.ts +1 -1
- package/dist/node/helpers/monitor/types.d.ts +1 -1
- package/dist/node/index.mjs +1000 -658
- package/dist/node/index.mjs.map +1 -1
- package/dist/node/intent/Caller.d.ts +5 -5
- package/dist/node/lib/PayloadStore.d.ts +1 -2
- package/dist/node/lib/PayloadStore.d.ts.map +1 -1
- package/dist/node/lib/isPayload.d.ts +1 -1
- package/dist/node/profileModuleEvents.d.ts +1 -1
- package/dist/node/profileModuleEvents.d.ts.map +1 -1
- package/dist/node/registration/DappRegistrationService.d.ts.map +1 -1
- package/dist/node/registration/DappRegistry.d.ts +4 -6
- package/dist/node/registration/DappRegistry.d.ts.map +1 -1
- package/dist/node/registration/ValidateDappAccessDiviner/Config.d.ts +6 -2
- package/dist/node/registration/ValidateDappAccessDiviner/Config.d.ts.map +1 -1
- package/dist/node/registration/ValidateDappAccessDiviner/Diviner.d.ts +3 -1
- package/dist/node/registration/ValidateDappAccessDiviner/Diviner.d.ts.map +1 -1
- package/dist/node/scripts/xyos/index.mjs +493 -360
- package/dist/node/scripts/xyos/index.mjs.map +1 -1
- package/dist/node/stack/Base.d.ts +2 -2
- package/dist/node/stack/Base.d.ts.map +1 -1
- package/dist/node/system/ManageSystemDapps.d.ts +1 -1
- package/dist/node/utils/buildWalletSeedPhrasePayload.d.ts +1 -1
- package/dist/node/utils/buildWalletSeedPhrasePayload.d.ts.map +1 -1
- package/dist/node/wallet/SeedPhraseRepository.d.ts +3 -4
- package/dist/node/wallet/SeedPhraseRepository.d.ts.map +1 -1
- package/package.json +39 -46
- package/src/Caller.ts +19 -21
- package/src/DappCallerBase.ts +1 -2
- package/src/OsCallerBase.ts +1 -1
- package/src/PubSubBridgeCaller.ts +2 -2
- package/src/RunningDappCache.ts +1 -1
- package/src/XyOs.ts +2 -2
- package/src/XyOsBase.ts +4 -5
- package/src/XyOsDapp.ts +6 -3
- package/src/access/Caller.ts +2 -2
- package/src/access/Resource.ts +1 -1
- package/src/access/interfaces/registered-names/helpers/AccessNodeQueries.ts +1 -1
- package/src/access/interfaces/registered-names/helpers/resource/AbstractXnsCaller.ts +1 -1
- package/src/access/interfaces/registered-names/helpers/resource/RegistrationsResource.ts +1 -1
- package/src/adapter/Base.ts +11 -9
- package/src/classes/dapp/DefaultsResource.ts +1 -1
- package/src/classes/menu/Caller.ts +1 -2
- package/src/classes/menu/Resource.ts +1 -1
- package/src/classes/settings/Caller.ts +3 -3
- package/src/classes/settings/CallerBase.ts +1 -1
- package/src/classes/settings/Resource.ts +1 -1
- package/src/classes/settings/badge/Caller.ts +2 -2
- package/src/classes/settings/badge/Resource.ts +2 -2
- package/src/dapp/context/creator/Creator.ts +1 -1
- package/src/dapp/context/creator/DefaultPayloads/NodeInfoPayload.ts +1 -1
- package/src/event/bus/Connection.ts +3 -5
- package/src/event/bus/EventBus.ts +5 -4
- package/src/event/bus/PubSubConnection.ts +1 -1
- package/src/helpers/monitor/types.ts +1 -1
- package/src/initializer/DappInitializer.ts +1 -1
- package/src/intent/Caller.ts +5 -5
- package/src/intent/Resource.ts +1 -1
- package/src/lib/PayloadStore.ts +1 -2
- package/src/lib/isEqual.ts +1 -1
- package/src/lib/isPayload.ts +1 -1
- package/src/lib/tokenPlacesSplit.ts +1 -1
- package/src/loadOsNode.ts +1 -1
- package/src/profileModuleEvents.ts +1 -1
- package/src/registration/DappRegistrationService.ts +4 -3
- package/src/registration/DappRegistry.ts +4 -6
- package/src/registration/ValidateDappAccessDiviner/Config.ts +3 -3
- package/src/registration/ValidateDappAccessDiviner/Diviner.ts +1 -1
- package/src/scripts/xyos/index.ts +0 -1
- package/src/signer/Signer.spec.ts +1 -3
- package/src/signer/Signers.ts +1 -1
- package/src/stack/Base.ts +5 -6
- package/src/stack/OsPubSubNetworkStack.ts +1 -1
- package/src/system/ManageSystemDapps.ts +1 -1
- package/src/utils/buildWalletSeedPhrasePayload.ts +1 -1
- package/src/wallet/SeedPhraseRepository.ts +3 -4
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { BaseParams } from '@xylabs/
|
|
2
|
-
import { BaseEmitter } from '@xylabs/
|
|
1
|
+
import type { BaseParams } from '@xylabs/sdk-js';
|
|
2
|
+
import { BaseEmitter } from '@xylabs/sdk-js';
|
|
3
3
|
import type { ModuleIdentifier } from '@xyo-network/module-model';
|
|
4
4
|
import type { AttachableNodeInstance } from '@xyo-network/node-model';
|
|
5
5
|
import type { AdapterSetCreator, NodeAdapter, StackBaseEvents, StackInitializer, XyOsContext } from '@xyo-network/os-model';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Base.d.ts","sourceRoot":"","sources":["../../../src/stack/Base.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Base.d.ts","sourceRoot":"","sources":["../../../src/stack/Base.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAc,MAAM,gBAAgB,CAAA;AAC5D,OAAO,EACK,WAAW,EACtB,MAAM,gBAAgB,CAAA;AACvB,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,2BAA2B,CAAA;AAEjE,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,yBAAyB,CAAA;AAErE,OAAO,KAAK,EACV,iBAAiB,EAAE,WAAW,EAAyB,eAAe,EAAE,gBAAgB,EAAE,WAAW,EACtG,MAAM,uBAAuB,CAAA;AAE9B;;;;GAIG;AACH,qBAAa,SAAU,SAAQ,WAAW,CAAC,UAAU,EAAE,eAAe,CAAE,YAAW,gBAAgB;IAEjG,WAAW,UAAQ;IAGnB,OAAO,CAAC,WAAW,CAAe;IAElC,OAAO,CAAC,QAAQ,CAAa;IAG7B,OAAO,CAAC,MAAM,CAAoC;IAGlD,OAAO,CAAC,kBAAkB,CAAkB;IAG5C,OAAO,CAAC,gBAAgB,CAA+B;IAIvD,OAAO,CAAC,SAAS,CAKT;gBAEI,OAAO,EAAE,WAAW,EAAE,UAAU,EAAE,iBAAiB,EAAE,iBAAiB,EAAE,gBAAgB;IAOpG,IAAI,UAAU,IAAI,WAAW,EAAE,CAE9B;IAED,IAAI,OAAO,IAAI,WAAW,CAEzB;IAED,IAAI,KAAK,IAAI,sBAAsB,CAElC;IAED,IAAI,iBAAiB,IAAI,gBAAgB,CAExC;IAED,UAAU;IA2BV;;OAEG;IACH,IAAI;IASJ;;;;;OAKG;YACW,kBAAkB;IAahC,OAAO,CAAC,WAAW;YAQL,YAAY;YAKZ,iBAAiB;YAcjB,yBAAyB;CAYxC"}
|
|
@@ -19,7 +19,7 @@ export declare class ManageSystemDapps extends OsCallerBase {
|
|
|
19
19
|
constructor(context: XyOsContext, defaultSystemNames: string[], defaultSystemDapps: PayloadWithVersion[], defaultSystemDappParams: Record<string, DappParams>, locator?: ModuleFactoryLocatorInstance, developmentMode?: boolean);
|
|
20
20
|
/**
|
|
21
21
|
* Add a callback to listen for errors throwing during system dapp registration
|
|
22
|
-
* @param
|
|
22
|
+
* @param errorListener
|
|
23
23
|
*/
|
|
24
24
|
addErrorListener(errorListener: ErrorListener): void;
|
|
25
25
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"buildWalletSeedPhrasePayload.d.ts","sourceRoot":"","sources":["../../../src/utils/buildWalletSeedPhrasePayload.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"buildWalletSeedPhrasePayload.d.ts","sourceRoot":"","sources":["../../../src/utils/buildWalletSeedPhrasePayload.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,gBAAgB,CAAA;AAC1C,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAA;AAO7D;;GAEG;AACH,eAAO,MAAM,eAAe,eAAe,CAAA;AAE3C;;GAEG;AACH,MAAM,MAAM,WAAW,GAAG,OAAO,eAAe,CAAA;AAEhD;;;;;GAKG;AACH,eAAO,MAAM,4BAA4B,GAAU,UAAU,MAAM,EAAE,QAAQ,WAAW,KAAG,OAAO,CAAC;IACjG,OAAO,EAAE,gBAAgB,CAAA;IACzB,QAAQ,EAAE,IAAI,CAAA;CACf,CAWA,CAAA;AAED;;;;GAIG;AACH,eAAO,MAAM,gCAAgC,GAAI,UAAU,MAAM,KAAG,OAAO,CAAC;IAC1E,OAAO,EAAE,gBAAgB,CAAA;IACzB,QAAQ,EAAE,IAAI,CAAA;CACf,CAEA,CAAA"}
|
|
@@ -8,20 +8,19 @@ export type SeedPhrase = string;
|
|
|
8
8
|
export interface SeedPhraseRepository {
|
|
9
9
|
/**
|
|
10
10
|
* Add a seed phrase for a given SeedPhraseId
|
|
11
|
-
* @param
|
|
11
|
+
* @param id
|
|
12
12
|
* @returns Promise
|
|
13
13
|
*/
|
|
14
14
|
add(id: SeedPhraseId): Promise<string>;
|
|
15
15
|
/**
|
|
16
16
|
* For a given DappId, find its wallet or create a new wallet and return its walletId
|
|
17
|
-
* @param
|
|
17
|
+
* @param dappName
|
|
18
18
|
* @returns Promise
|
|
19
19
|
*/
|
|
20
20
|
findOrCreate(dappName: SeedPhraseId): Promise<WalletId>;
|
|
21
21
|
/**
|
|
22
22
|
* Request a seed phrase by supplying a walletId. Note: In the future, the OS might require verification along side the walletId
|
|
23
|
-
*
|
|
24
|
-
* @param {WalletId} walletId
|
|
23
|
+
* @param walletId
|
|
25
24
|
* @returns DappWalletSeedPhrase
|
|
26
25
|
*/
|
|
27
26
|
request(walletId: WalletId): Promise<SeedPhrase | undefined>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SeedPhraseRepository.d.ts","sourceRoot":"","sources":["../../../src/wallet/SeedPhraseRepository.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAA;AAErD,uDAAuD;AACvD,MAAM,MAAM,YAAY,GAAG,MAAM,CAAA;AACjC,MAAM,MAAM,UAAU,GAAG,MAAM,CAAA;AAE/B;;GAEG;AACH,MAAM,WAAW,oBAAoB;IACnC;;;;OAIG;IACH,GAAG,CAAC,EAAE,EAAE,YAAY,GAAG,OAAO,CAAC,MAAM,CAAC,CAAA;IAEtC;;;;OAIG;IACH,YAAY,CAAC,QAAQ,EAAE,YAAY,GAAG,OAAO,CAAC,QAAQ,CAAC,CAAA;IAEvD
|
|
1
|
+
{"version":3,"file":"SeedPhraseRepository.d.ts","sourceRoot":"","sources":["../../../src/wallet/SeedPhraseRepository.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAA;AAErD,uDAAuD;AACvD,MAAM,MAAM,YAAY,GAAG,MAAM,CAAA;AACjC,MAAM,MAAM,UAAU,GAAG,MAAM,CAAA;AAE/B;;GAEG;AACH,MAAM,WAAW,oBAAoB;IACnC;;;;OAIG;IACH,GAAG,CAAC,EAAE,EAAE,YAAY,GAAG,OAAO,CAAC,MAAM,CAAC,CAAA;IAEtC;;;;OAIG;IACH,YAAY,CAAC,QAAQ,EAAE,YAAY,GAAG,OAAO,CAAC,QAAQ,CAAC,CAAA;IAEvD;;;;OAIG;IACH,OAAO,CAAC,QAAQ,EAAE,QAAQ,GAAG,OAAO,CAAC,UAAU,GAAG,SAAS,CAAC,CAAA;CAC7D"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@xyo-network/os-runtime",
|
|
3
|
-
"version": "7.
|
|
3
|
+
"version": "7.2.1",
|
|
4
4
|
"description": "Primary SDK for using XYO Protocol 2.0",
|
|
5
5
|
"homepage": "https://xyo.network",
|
|
6
6
|
"bugs": {
|
|
@@ -40,66 +40,59 @@
|
|
|
40
40
|
"src"
|
|
41
41
|
],
|
|
42
42
|
"dependencies": {
|
|
43
|
-
"@xylabs/
|
|
44
|
-
"@
|
|
45
|
-
"@
|
|
46
|
-
"@
|
|
47
|
-
"@
|
|
48
|
-
"@
|
|
49
|
-
"@
|
|
50
|
-
"@
|
|
51
|
-
"@xyo-network/
|
|
52
|
-
"@xyo-network/
|
|
53
|
-
"@xyo-network/
|
|
54
|
-
"@xyo-network/
|
|
55
|
-
"@xyo-network/
|
|
56
|
-
"@xyo-network/
|
|
57
|
-
"@xyo-network/
|
|
58
|
-
"@xyo-network/
|
|
59
|
-
"@xyo-network/
|
|
60
|
-
"@xyo-network/
|
|
61
|
-
"@xyo-network/
|
|
62
|
-
"@xyo-network/
|
|
63
|
-
"@xyo-network/
|
|
64
|
-
"@xyo-network/
|
|
65
|
-
"@xyo-network/
|
|
66
|
-
"@xyo-network/
|
|
67
|
-
"@xyo-network/
|
|
68
|
-
"@xyo-network/
|
|
69
|
-
"@xyo-network/
|
|
70
|
-
"@xyo-network/
|
|
71
|
-
"@xyo-network/node-model": "~5.1.6",
|
|
72
|
-
"@xyo-network/os-model": "~7.1.1",
|
|
73
|
-
"@xyo-network/payload-builder": "~5.1.6",
|
|
74
|
-
"@xyo-network/payload-model": "~5.1.6",
|
|
75
|
-
"@xyo-network/storage-model": "~7.1.1",
|
|
76
|
-
"@xyo-network/wallet": "~5.1.6",
|
|
77
|
-
"@xyo-network/wallet-model": "~5.1.6",
|
|
43
|
+
"@xylabs/sdk-js": "~5.0.64",
|
|
44
|
+
"@xyo-network/account-model": "~5.3.2",
|
|
45
|
+
"@xyo-network/archivist": "~5.3.2",
|
|
46
|
+
"@xyo-network/archivist-indexeddb": "~5.3.2",
|
|
47
|
+
"@xyo-network/archivist-memory": "~5.3.2",
|
|
48
|
+
"@xyo-network/archivist-model": "~5.3.2",
|
|
49
|
+
"@xyo-network/bios": "~7.2.1",
|
|
50
|
+
"@xyo-network/bridge-model": "~5.3.2",
|
|
51
|
+
"@xyo-network/diviner-abstract": "~5.3.2",
|
|
52
|
+
"@xyo-network/diviner-model": "~5.3.2",
|
|
53
|
+
"@xyo-network/diviner-payload-generic": "~5.3.2",
|
|
54
|
+
"@xyo-network/diviner-payload-indexeddb": "~5.3.2",
|
|
55
|
+
"@xyo-network/diviner-payload-model": "~5.3.2",
|
|
56
|
+
"@xyo-network/diviner-temporal-indexing-model": "~5.3.2",
|
|
57
|
+
"@xyo-network/kernel": "~7.2.1",
|
|
58
|
+
"@xyo-network/kernel-model": "~7.2.1",
|
|
59
|
+
"@xyo-network/manifest": "~5.3.2",
|
|
60
|
+
"@xyo-network/manifest-wrapper": "~5.3.2",
|
|
61
|
+
"@xyo-network/module-factory-locator": "~5.3.2",
|
|
62
|
+
"@xyo-network/module-model": "~5.3.2",
|
|
63
|
+
"@xyo-network/module-resolver": "~5.3.2",
|
|
64
|
+
"@xyo-network/node-model": "~5.3.2",
|
|
65
|
+
"@xyo-network/os-model": "~7.2.1",
|
|
66
|
+
"@xyo-network/payload-builder": "~5.3.2",
|
|
67
|
+
"@xyo-network/payload-model": "~5.3.2",
|
|
68
|
+
"@xyo-network/storage-model": "~7.2.1",
|
|
69
|
+
"@xyo-network/wallet": "~5.3.2",
|
|
70
|
+
"@xyo-network/wallet-model": "~5.3.2",
|
|
78
71
|
"async-mutex": "~0.5.0",
|
|
79
72
|
"chalk": "~5.6.2",
|
|
80
73
|
"cosmiconfig": "~9.0.0",
|
|
81
74
|
"cosmiconfig-typescript-loader": "~6.2.0",
|
|
82
|
-
"ethers": "~6.
|
|
75
|
+
"ethers": "~6.16.0",
|
|
83
76
|
"semver": "~7.7.3",
|
|
84
77
|
"terminal-kit": "~3.1.2",
|
|
85
78
|
"uuid": "~13.0.0",
|
|
86
79
|
"yargs": "~18.0.0"
|
|
87
80
|
},
|
|
88
81
|
"devDependencies": {
|
|
89
|
-
"@types/node": "~
|
|
82
|
+
"@types/node": "~25.0.10",
|
|
90
83
|
"@types/semver": "~7.7.1",
|
|
91
84
|
"@types/terminal-kit": "~2.5.7",
|
|
92
85
|
"@types/uuid": "~11.0.0",
|
|
93
|
-
"@types/yargs": "~17.0.
|
|
94
|
-
"@xylabs/ts-scripts-yarn3": "~7.
|
|
95
|
-
"@xylabs/tsconfig": "~7.
|
|
96
|
-
"@xyo-network/archivist-memory": "~5.
|
|
97
|
-
"@xyo-network/bios-model": "~7.
|
|
98
|
-
"@xyo-network/bios-nodejs": "~7.
|
|
86
|
+
"@types/yargs": "~17.0.35",
|
|
87
|
+
"@xylabs/ts-scripts-yarn3": "~7.3.2",
|
|
88
|
+
"@xylabs/tsconfig": "~7.3.2",
|
|
89
|
+
"@xyo-network/archivist-memory": "~5.3.2",
|
|
90
|
+
"@xyo-network/bios-model": "~7.2.1",
|
|
91
|
+
"@xyo-network/bios-nodejs": "~7.2.1",
|
|
99
92
|
"typescript": "~5.9.3",
|
|
100
|
-
"vitest": "~
|
|
93
|
+
"vitest": "~4.0.18"
|
|
101
94
|
},
|
|
102
95
|
"publishConfig": {
|
|
103
96
|
"access": "public"
|
|
104
97
|
}
|
|
105
|
-
}
|
|
98
|
+
}
|
package/src/Caller.ts
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import
|
|
3
|
-
import type { Promisable } from '@xylabs/promise'
|
|
1
|
+
import type { Hash, Promisable } from '@xylabs/sdk-js'
|
|
2
|
+
import { assertEx } from '@xylabs/sdk-js'
|
|
4
3
|
import type { AccountInstance } from '@xyo-network/account-model'
|
|
5
4
|
import type { PayloadDivinerQueryPayload } from '@xyo-network/diviner-payload-model'
|
|
6
5
|
import { PayloadDivinerQuerySchema } from '@xyo-network/diviner-payload-model'
|
|
@@ -33,8 +32,8 @@ export class DappCaller extends DappCallerBase {
|
|
|
33
32
|
|
|
34
33
|
/**
|
|
35
34
|
* Add payloads to the dapp archivist
|
|
36
|
-
* @param
|
|
37
|
-
* @param
|
|
35
|
+
* @param payloads
|
|
36
|
+
* @param force
|
|
38
37
|
*/
|
|
39
38
|
async addPayloadsToDappArchivist(payloads: Payload[] = [], force: boolean = false) {
|
|
40
39
|
const dappArchivist = await this.getDappArchivist()
|
|
@@ -52,10 +51,10 @@ export class DappCaller extends DappCallerBase {
|
|
|
52
51
|
|
|
53
52
|
/**
|
|
54
53
|
* Build Access Request
|
|
55
|
-
* @param
|
|
56
|
-
* @param
|
|
57
|
-
* @param
|
|
58
|
-
* @param
|
|
54
|
+
* @param mode
|
|
55
|
+
* @param registeredDappAccessHash
|
|
56
|
+
* @param requestingDappId
|
|
57
|
+
* @param destinationArchivist
|
|
59
58
|
*/
|
|
60
59
|
buildAccessRequest(mode: DappAccessRequest['mode'], registeredDappAccessHash: Hash, requestingDappId: string, destinationArchivist?: string) {
|
|
61
60
|
const accessRequest: DappAccessRequest = {
|
|
@@ -95,7 +94,7 @@ export class DappCaller extends DappCallerBase {
|
|
|
95
94
|
|
|
96
95
|
/**
|
|
97
96
|
* Get the most recent dapp intent
|
|
98
|
-
* @param
|
|
97
|
+
* @param name
|
|
99
98
|
*/
|
|
100
99
|
async getRegisteredDappAccessByName(name: string) {
|
|
101
100
|
const diviner = await this.getDappArchivistPayloadDiviner()
|
|
@@ -133,10 +132,10 @@ export class DappCaller extends DappCallerBase {
|
|
|
133
132
|
|
|
134
133
|
/**
|
|
135
134
|
* Make Dapp Access Request
|
|
136
|
-
* @param
|
|
137
|
-
* @param
|
|
138
|
-
* @param
|
|
139
|
-
* @param
|
|
135
|
+
* @param requestingDappId
|
|
136
|
+
* @param registeredDappAccessHash
|
|
137
|
+
* @param mode
|
|
138
|
+
* @param destinationArchivist
|
|
140
139
|
*/
|
|
141
140
|
async makeDappAccessRequest(
|
|
142
141
|
requestingDappId: DappAccessRequest['requestingDappId'],
|
|
@@ -155,10 +154,10 @@ export class DappCaller extends DappCallerBase {
|
|
|
155
154
|
|
|
156
155
|
/**
|
|
157
156
|
* Make Dapp Intent Request
|
|
158
|
-
* @param
|
|
159
|
-
* @param
|
|
160
|
-
* @param
|
|
161
|
-
* @param
|
|
157
|
+
* @param sourceDappId
|
|
158
|
+
* @param targetDappId
|
|
159
|
+
* @param intent
|
|
160
|
+
* @param mode
|
|
162
161
|
*/
|
|
163
162
|
async makeDappIntentRequest(
|
|
164
163
|
sourceDappId: DappId,
|
|
@@ -177,9 +176,8 @@ export class DappCaller extends DappCallerBase {
|
|
|
177
176
|
|
|
178
177
|
/**
|
|
179
178
|
* Set the dapp injectable params
|
|
180
|
-
*
|
|
181
|
-
* @param
|
|
182
|
-
* @param {string} pathname
|
|
179
|
+
* @param searchParams
|
|
180
|
+
* @param pathname
|
|
183
181
|
*/
|
|
184
182
|
async setDappInjectableRouteParams(searchParams: URLSearchParams = new URLSearchParams(), pathname: string): Promise<void> {
|
|
185
183
|
const dappArchivist = await this.getDappArchivist()
|
package/src/DappCallerBase.ts
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import { assertEx } from '@xylabs/
|
|
2
|
-
import { toSafeJsonString } from '@xylabs/object'
|
|
1
|
+
import { assertEx, toSafeJsonString } from '@xylabs/sdk-js'
|
|
3
2
|
import { asArchivistInstance } from '@xyo-network/archivist-model'
|
|
4
3
|
import { asDivinerInstance } from '@xyo-network/diviner-model'
|
|
5
4
|
import type { XyOsContext } from '@xyo-network/os-model'
|
package/src/OsCallerBase.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { assertEx } from '@xylabs/
|
|
1
|
+
import { assertEx } from '@xylabs/sdk-js'
|
|
2
2
|
import { asArchivistInstance } from '@xyo-network/archivist-model'
|
|
3
3
|
import { asDivinerInstance } from '@xyo-network/diviner-model'
|
|
4
4
|
import type { XyOsContext } from '@xyo-network/os-model'
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import
|
|
1
|
+
import type { Address } from '@xylabs/sdk-js'
|
|
2
|
+
import { assertEx } from '@xylabs/sdk-js'
|
|
3
3
|
import type { BridgeExposeOptions } from '@xyo-network/bridge-model'
|
|
4
4
|
import { asBridgeInstance } from '@xyo-network/bridge-model'
|
|
5
5
|
import type { NodeInstance } from '@xyo-network/node-model'
|
package/src/RunningDappCache.ts
CHANGED
package/src/XyOs.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import
|
|
1
|
+
import type { Promisable } from '@xylabs/sdk-js'
|
|
2
|
+
import { assertEx } from '@xylabs/sdk-js'
|
|
3
3
|
import { boot } from '@xyo-network/bios'
|
|
4
4
|
import { Kernel } from '@xyo-network/kernel'
|
|
5
5
|
import type { KernelExternal } from '@xyo-network/kernel-model'
|
package/src/XyOsBase.ts
CHANGED
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
import
|
|
5
|
-
import type { Promisable } from '@xylabs/promise'
|
|
1
|
+
import type {
|
|
2
|
+
BaseParams, JsonObject, Promisable,
|
|
3
|
+
} from '@xylabs/sdk-js'
|
|
4
|
+
import { assertEx, BaseEmitter } from '@xylabs/sdk-js'
|
|
6
5
|
import type { KernelExternal } from '@xyo-network/kernel-model'
|
|
7
6
|
import type { PackageManifest } from '@xyo-network/manifest'
|
|
8
7
|
import { ModuleFactoryLocator } from '@xyo-network/module-factory-locator'
|
package/src/XyOsDapp.ts
CHANGED
|
@@ -1,4 +1,6 @@
|
|
|
1
|
-
import { assertEx } from '@xylabs/
|
|
1
|
+
import { assertEx } from '@xylabs/sdk-js'
|
|
2
|
+
import type { PackageManifestPayload } from '@xyo-network/manifest'
|
|
3
|
+
import { NodeManifestPayload } from '@xyo-network/manifest'
|
|
2
4
|
import { ManifestWrapper } from '@xyo-network/manifest-wrapper'
|
|
3
5
|
import { ModuleFactoryLocator } from '@xyo-network/module-factory-locator'
|
|
4
6
|
import type { ModuleFactoryLocatorInstance } from '@xyo-network/module-model'
|
|
@@ -74,13 +76,14 @@ export class XyOsDapp extends XyOsContextBase<XyOsDappContextParams> implements
|
|
|
74
76
|
|
|
75
77
|
const dappNodesWrapper = new ManifestWrapper({ ...this.manifest, schema: DappPackageManifestPayloadSchema }, wallet, finalLocator)
|
|
76
78
|
const dappNodes = await dappNodesWrapper.loadNodes()
|
|
79
|
+
const manifest = DappWindowManifest as unknown as PackageManifestPayload
|
|
77
80
|
|
|
78
81
|
// Derive a specific wallet for the dappManifestWrapper.
|
|
79
82
|
// If the dappNodes and dappManifest wrappers get the same wallet, there will be collisions.
|
|
80
83
|
const dappManifestWallet = await wallet.derivePath('99999')
|
|
81
|
-
|
|
84
|
+
manifest.nodes[0].config.name = this.dapp.name + 'Root'
|
|
82
85
|
const wrapper = new ManifestWrapper<DappPackageManifestPayload>(
|
|
83
|
-
{ ...
|
|
86
|
+
{ ...manifest, schema: DappPackageManifestPayloadSchema },
|
|
84
87
|
dappManifestWallet,
|
|
85
88
|
finalLocator,
|
|
86
89
|
)
|
package/src/access/Caller.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { assertEx } from '@xylabs/
|
|
1
|
+
import { assertEx } from '@xylabs/sdk-js'
|
|
2
2
|
import { ModuleFactoryLocator } from '@xyo-network/module-factory-locator'
|
|
3
3
|
import type { ModuleFactoryLocatorInstance } from '@xyo-network/module-model'
|
|
4
4
|
import { asNodeInstance } from '@xyo-network/node-model'
|
|
@@ -22,7 +22,7 @@ import { RunningDappAccessCache } from './RunningAccessDappCache.ts'
|
|
|
22
22
|
* Grab their Access Node(s)
|
|
23
23
|
* Put RegisteredDappAccess payloads in RegisteredDappInterfacesArchivist
|
|
24
24
|
* Keep Service running that can service requests for Access Nodes
|
|
25
|
-
|
|
25
|
+
*/
|
|
26
26
|
export class DappAccessCaller extends OsCallerBase implements PostRegistrationHandler {
|
|
27
27
|
private allowedNames: string[]
|
|
28
28
|
private platformLocator: ModuleFactoryLocatorInstance
|
package/src/access/Resource.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { assertEx } from '@xylabs/
|
|
1
|
+
import { assertEx } from '@xylabs/sdk-js'
|
|
2
2
|
import { asArchivistInstance } from '@xyo-network/archivist-model'
|
|
3
3
|
import { asDivinerInstance } from '@xyo-network/diviner-model'
|
|
4
4
|
import type { XyOsContext } from '@xyo-network/os-model'
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { assertEx } from '@xylabs/
|
|
1
|
+
import { assertEx } from '@xylabs/sdk-js'
|
|
2
2
|
import { isTemporalIndexingDivinerResultIndex } from '@xyo-network/diviner-temporal-indexing-model'
|
|
3
3
|
import type { TemporalIndexRegistrationResults, XyOsContext } from '@xyo-network/os-model'
|
|
4
4
|
import type { WithSources } from '@xyo-network/payload-model'
|
package/src/adapter/Base.ts
CHANGED
|
@@ -1,19 +1,21 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
import type { BaseParams } from '@xylabs/sdk-js'
|
|
2
|
+
import {
|
|
3
|
+
assertEx, BaseEmitter, forget,
|
|
4
|
+
} from '@xylabs/sdk-js'
|
|
5
5
|
import type { ArchivistModuleEventData } from '@xyo-network/archivist'
|
|
6
6
|
import { asArchivistInstance } from '@xyo-network/archivist'
|
|
7
7
|
import type { KernelExternal } from '@xyo-network/kernel-model'
|
|
8
8
|
import { asAttachableNodeInstance } from '@xyo-network/node-model'
|
|
9
9
|
import type { NodeAdapter, NodeAdapterBaseEvents } from '@xyo-network/os-model'
|
|
10
|
-
import
|
|
10
|
+
import {
|
|
11
|
+
asSchema, type Payload, type Schema,
|
|
12
|
+
} from '@xyo-network/payload-model'
|
|
11
13
|
import { v4 as uuid } from 'uuid'
|
|
12
14
|
|
|
13
15
|
type ModuleEventPayload = {
|
|
14
16
|
event: string
|
|
15
17
|
name: string | undefined
|
|
16
|
-
schema: 'network.xyo.kernel.module.event'
|
|
18
|
+
schema: Schema<'network.xyo.kernel.module.event'>
|
|
17
19
|
}
|
|
18
20
|
|
|
19
21
|
export class NodeAdapterBase extends BaseEmitter<BaseParams, NodeAdapterBaseEvents> implements NodeAdapter {
|
|
@@ -74,10 +76,10 @@ export class NodeAdapterBase extends BaseEmitter<BaseParams, NodeAdapterBaseEven
|
|
|
74
76
|
}
|
|
75
77
|
|
|
76
78
|
private findModuleEventPayloads(payloads: Payload[]) {
|
|
77
|
-
return payloads.filter((payload) => {
|
|
79
|
+
return payloads.filter((payload): payload is ModuleEventPayload => {
|
|
78
80
|
const payloadToTest = payload as ModuleEventPayload
|
|
79
|
-
return payloadToTest.event === 'driverReady' && payloadToTest.schema === 'network.xyo.kernel.module.event'
|
|
80
|
-
})
|
|
81
|
+
return payloadToTest.event === 'driverReady' && payloadToTest.schema === asSchema('network.xyo.kernel.module.event', true)
|
|
82
|
+
})
|
|
81
83
|
}
|
|
82
84
|
|
|
83
85
|
private async getEventsArchivist() {
|
|
@@ -20,8 +20,7 @@ export class DappMenuCaller extends DappCaller {
|
|
|
20
20
|
|
|
21
21
|
/**
|
|
22
22
|
* Add new Payloads to the dappArchivist if they haven't already
|
|
23
|
-
*
|
|
24
|
-
* @param {Payload[]} payloads
|
|
23
|
+
* @param payloads
|
|
25
24
|
*/
|
|
26
25
|
async add(payloads: Payload[], force = false) {
|
|
27
26
|
const dappArchivist = await this.getDappArchivist()
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { assertEx } from '@xylabs/
|
|
1
|
+
import { assertEx } from '@xylabs/sdk-js'
|
|
2
2
|
import type {
|
|
3
3
|
NodeBackground, WalletSeedPhrase, XyOsContext,
|
|
4
4
|
} from '@xyo-network/os-model'
|
|
@@ -15,7 +15,7 @@ export class OsSettingsCaller extends OsSettingsCallerBase {
|
|
|
15
15
|
|
|
16
16
|
/**
|
|
17
17
|
* Add a node background to the settings
|
|
18
|
-
* @param
|
|
18
|
+
* @param payload
|
|
19
19
|
*/
|
|
20
20
|
async addNodeBackground(payload: NodeBackground) {
|
|
21
21
|
const archivist = await this.getOsSettingsArchivist()
|
|
@@ -24,7 +24,7 @@ export class OsSettingsCaller extends OsSettingsCallerBase {
|
|
|
24
24
|
|
|
25
25
|
/**
|
|
26
26
|
* Add a wallet seed phrase to the settings
|
|
27
|
-
* @param
|
|
27
|
+
* @param payload
|
|
28
28
|
*/
|
|
29
29
|
async addWalletSeedPhrase(payload: WalletSeedPhrase) {
|
|
30
30
|
// NOTE: Since setting the seed phrase in OS takes precedence
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { assertEx } from '@xylabs/
|
|
1
|
+
import { assertEx } from '@xylabs/sdk-js'
|
|
2
2
|
import { asArchivistInstance } from '@xyo-network/archivist-model'
|
|
3
3
|
import { asDivinerInstance } from '@xyo-network/diviner-model'
|
|
4
4
|
import type { XyOsContext } from '@xyo-network/os-model'
|
|
@@ -6,7 +6,7 @@ import { OsBadgeQueries } from './Queries.ts'
|
|
|
6
6
|
|
|
7
7
|
export class OsBadgeCaller extends OsSettingsCallerBase {
|
|
8
8
|
/**
|
|
9
|
-
* @param
|
|
9
|
+
* @param achievement
|
|
10
10
|
*/
|
|
11
11
|
async getBadge(achievement: ValidOsAchievements) {
|
|
12
12
|
const diviner = await this.getOsSettingsPayloadDiviner()
|
|
@@ -15,7 +15,7 @@ export class OsBadgeCaller extends OsSettingsCallerBase {
|
|
|
15
15
|
}
|
|
16
16
|
|
|
17
17
|
/**
|
|
18
|
-
* @param
|
|
18
|
+
* @param achievement
|
|
19
19
|
*/
|
|
20
20
|
async saveBadge(achievement: ValidOsAchievements) {
|
|
21
21
|
const badge = {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { assertEx } from '@xylabs/
|
|
1
|
+
import { assertEx } from '@xylabs/sdk-js'
|
|
2
2
|
import type { OsBadge, XyOsContext } from '@xyo-network/os-model'
|
|
3
3
|
import { isBadgeWithMeta } from '@xyo-network/os-model'
|
|
4
4
|
|
|
@@ -36,7 +36,7 @@ export class OsBadgeResource extends OsSettingsCallerBase implements ResourceSto
|
|
|
36
36
|
|
|
37
37
|
/**
|
|
38
38
|
* start listeners
|
|
39
|
-
|
|
39
|
+
*/
|
|
40
40
|
async start() {
|
|
41
41
|
const diviner = await this.getOsSettingsPayloadDiviner()
|
|
42
42
|
const archivist = await this.getOsSettingsArchivist()
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { assertEx } from '@xylabs/
|
|
1
|
+
import { assertEx } from '@xylabs/sdk-js'
|
|
2
2
|
import { asArchivistInstance } from '@xyo-network/archivist-model'
|
|
3
3
|
import { replaceManifestTokens } from '@xyo-network/kernel'
|
|
4
4
|
import { DappPackageManifestPayloadSchema } from '@xyo-network/manifest'
|
|
@@ -1,14 +1,12 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import
|
|
3
|
-
import type { EventData } from '@xylabs/events'
|
|
4
|
-
import { BaseEmitter } from '@xylabs/events'
|
|
1
|
+
import type { BaseParams, EventData } from '@xylabs/sdk-js'
|
|
2
|
+
import { assertEx, BaseEmitter } from '@xylabs/sdk-js'
|
|
5
3
|
import type {
|
|
6
4
|
EventBusConnectionInterface, EventBusConnectionRequest, EventBusConnectionType,
|
|
7
5
|
} from '@xyo-network/os-model'
|
|
8
6
|
|
|
9
7
|
/**
|
|
10
8
|
* A Generic Connection to add to an EventBus
|
|
11
|
-
* @param
|
|
9
|
+
* @param request
|
|
12
10
|
*/
|
|
13
11
|
export class EventBusConnection<TEventData extends EventData = EventData>
|
|
14
12
|
extends BaseEmitter<BaseParams, TEventData>
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
import {
|
|
2
|
+
assertEx, findAs, forget,
|
|
3
|
+
} from '@xylabs/sdk-js'
|
|
4
4
|
import type { ArchivistModuleEventData } from '@xyo-network/archivist'
|
|
5
5
|
import { asArchivistInstance } from '@xyo-network/archivist'
|
|
6
6
|
import { MemoryArchivist, MemoryArchivistConfigSchema } from '@xyo-network/archivist-memory'
|
|
@@ -16,6 +16,7 @@ import {
|
|
|
16
16
|
isPubSubConnections,
|
|
17
17
|
} from '@xyo-network/os-model'
|
|
18
18
|
import { PayloadBuilder } from '@xyo-network/payload-builder'
|
|
19
|
+
import { asSchema } from '@xyo-network/payload-model'
|
|
19
20
|
import { Mutex } from 'async-mutex'
|
|
20
21
|
import { v4 as uuid } from 'uuid'
|
|
21
22
|
|
|
@@ -126,7 +127,7 @@ export class EventBus implements EventBusInterface {
|
|
|
126
127
|
// Create publisher callback
|
|
127
128
|
const connectionPublisherCallback: PublisherEventListener = async ({ payloads }) => {
|
|
128
129
|
// build the event payload
|
|
129
|
-
const event: EventBusEvent = { name: eventName, schema: 'network.xyo.event.bus.event' }
|
|
130
|
+
const event: EventBusEvent = { name: eventName, schema: asSchema('network.xyo.event.bus.event', true) }
|
|
130
131
|
const eventPayloads = payloads ?? []
|
|
131
132
|
event.sources = await PayloadBuilder.dataHashes(eventPayloads)
|
|
132
133
|
// Sync events to archivist
|
|
@@ -9,7 +9,7 @@ import { EventBusConnection } from './Connection.ts'
|
|
|
9
9
|
|
|
10
10
|
/**
|
|
11
11
|
* A PubSub Connection to add to an EventBus
|
|
12
|
-
* @param
|
|
12
|
+
* @param request
|
|
13
13
|
*/
|
|
14
14
|
export class EventBusPubSubConnection<TPublisherEventData extends PublisherEventListenerEventData = PublisherEventListenerEventData>
|
|
15
15
|
extends EventBusConnection<TPublisherEventData>
|