@xyo-network/manifest 2.75.0 → 2.75.3
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/browser/ManifestWrapper.d.cts +22 -0
- package/dist/browser/ManifestWrapper.d.cts.map +1 -0
- package/dist/browser/ManifestWrapper.js +5 -20
- package/dist/browser/ManifestWrapper.js.map +1 -1
- package/dist/browser/index.d.cts +4 -0
- package/dist/browser/index.d.cts.map +1 -0
- package/dist/browser/index.js +2 -97
- package/dist/browser/index.js.map +1 -1
- package/dist/browser/schema.cjs +237 -0
- package/dist/browser/schema.cjs.map +1 -0
- package/dist/browser/schema.js +246 -0
- package/dist/browser/schema.js.map +1 -0
- package/dist/browser/standardCreatableModules.d.cts +3 -0
- package/dist/browser/standardCreatableModules.d.cts.map +1 -0
- package/dist/browser/standardCreatableModules.js +1 -2
- package/dist/browser/standardCreatableModules.js.map +1 -1
- package/dist/docs.json +28494 -0
- package/dist/node/ManifestWrapper.d.cts +22 -0
- package/dist/node/ManifestWrapper.d.cts.map +1 -0
- package/dist/node/ManifestWrapper.js +40 -21
- package/dist/node/ManifestWrapper.js.map +1 -1
- package/dist/node/ManifestWrapper.mjs +30 -12
- package/dist/node/ManifestWrapper.mjs.map +1 -1
- package/dist/node/index.d.cts +4 -0
- package/dist/node/index.d.cts.map +1 -0
- package/dist/node/index.js +105 -4
- package/dist/node/index.js.map +1 -1
- package/dist/node/index.mjs +100 -2
- package/dist/node/index.mjs.map +1 -1
- package/dist/node/schema.js +247 -0
- package/dist/node/schema.js.map +1 -0
- package/dist/node/schema.mjs +247 -0
- package/dist/node/schema.mjs.map +1 -0
- package/dist/node/standardCreatableModules.d.cts +3 -0
- package/dist/node/standardCreatableModules.d.cts.map +1 -0
- package/dist/node/standardCreatableModules.js +3 -1
- package/dist/node/standardCreatableModules.js.map +1 -1
- package/dist/node/standardCreatableModules.mjs +2 -1
- package/dist/node/standardCreatableModules.mjs.map +1 -1
- package/package.json +14 -14
- package/dist/browser/schema.json +0 -228
- package/dist/node/schema.json +0 -228
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { ManifestPayload, ModuleManifest, NodeManifest } from '@xyo-network/manifest-model';
|
|
2
|
+
import { CreatableModuleDictionary, CreatableModuleRegistry, ModuleFactoryLocator, ModuleInstance } from '@xyo-network/module';
|
|
3
|
+
import { MemoryNode } from '@xyo-network/node-memory';
|
|
4
|
+
import { PayloadWrapper } from '@xyo-network/payload-wrapper';
|
|
5
|
+
import { WalletInstance } from '@xyo-network/wallet-model';
|
|
6
|
+
export declare class ManifestWrapper extends PayloadWrapper<ManifestPayload> {
|
|
7
|
+
protected readonly wallet: WalletInstance;
|
|
8
|
+
protected readonly locator: ModuleFactoryLocator;
|
|
9
|
+
constructor(payload: ManifestPayload, wallet: WalletInstance, locator?: ModuleFactoryLocator);
|
|
10
|
+
loadModule(node: MemoryNode, manifest: ModuleManifest, external: boolean, additionalCreatableModules?: CreatableModuleRegistry): Promise<void>;
|
|
11
|
+
loadModule(node: MemoryNode, manifest: ModuleManifest, external: boolean, additionalCreatableModules?: CreatableModuleDictionary): Promise<void>;
|
|
12
|
+
loadNodeFromIndex(index: number, additionalCreatableModules?: CreatableModuleRegistry): Promise<MemoryNode>;
|
|
13
|
+
loadNodeFromIndex(index: number, additionalCreatableModules?: CreatableModuleDictionary): Promise<MemoryNode>;
|
|
14
|
+
loadNodeFromManifest(manifest: NodeManifest, path: string, additionalCreatableModules?: CreatableModuleRegistry): Promise<MemoryNode>;
|
|
15
|
+
loadNodeFromManifest(manifest: NodeManifest, path: string, additionalCreatableModules?: CreatableModuleDictionary): Promise<MemoryNode>;
|
|
16
|
+
loadNodes(node?: MemoryNode, additionalCreatableModules?: CreatableModuleRegistry): Promise<MemoryNode[]>;
|
|
17
|
+
loadNodes(node?: MemoryNode, additionalCreatableModules?: CreatableModuleDictionary): Promise<MemoryNode[]>;
|
|
18
|
+
nodeManifest(index: number): NodeManifest;
|
|
19
|
+
registerModule(node: MemoryNode, manifest: ModuleManifest, creatableModules?: CreatableModuleRegistry): Promise<ModuleInstance>;
|
|
20
|
+
registerModule(node: MemoryNode, manifest: ModuleManifest, creatableModules?: CreatableModuleDictionary): Promise<ModuleInstance>;
|
|
21
|
+
}
|
|
22
|
+
//# sourceMappingURL=ManifestWrapper.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ManifestWrapper.d.ts","sourceRoot":"","sources":["../../src/ManifestWrapper.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,eAAe,EAAE,cAAc,EAAE,YAAY,EAAE,MAAM,6BAA6B,CAAA;AAC3F,OAAO,EAEL,yBAAyB,EACzB,uBAAuB,EACvB,oBAAoB,EACpB,cAAc,EAEf,MAAM,qBAAqB,CAAA;AAC5B,OAAO,EAAE,UAAU,EAAE,MAAM,0BAA0B,CAAA;AAErD,OAAO,EAAE,cAAc,EAAE,MAAM,8BAA8B,CAAA;AAC7D,OAAO,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAA;AAI1D,qBAAa,eAAgB,SAAQ,cAAc,CAAC,eAAe,CAAC;IAGhE,SAAS,CAAC,QAAQ,CAAC,MAAM,EAAE,cAAc;IACzC,SAAS,CAAC,QAAQ,CAAC,OAAO,EAAE,oBAAoB;gBAFhD,OAAO,EAAE,eAAe,EACL,MAAM,EAAE,cAAc,EACtB,OAAO,GAAE,oBAAmD;IAK3E,UAAU,CAAC,IAAI,EAAE,UAAU,EAAE,QAAQ,EAAE,cAAc,EAAE,QAAQ,EAAE,OAAO,EAAE,0BAA0B,CAAC,EAAE,uBAAuB,GAAG,OAAO,CAAC,IAAI,CAAC;IAC9I,UAAU,CACd,IAAI,EAAE,UAAU,EAChB,QAAQ,EAAE,cAAc,EACxB,QAAQ,EAAE,OAAO,EACjB,0BAA0B,CAAC,EAAE,yBAAyB,GACrD,OAAO,CAAC,IAAI,CAAC;IA4BV,iBAAiB,CAAC,KAAK,EAAE,MAAM,EAAE,0BAA0B,CAAC,EAAE,uBAAuB,GAAG,OAAO,CAAC,UAAU,CAAC;IAC3G,iBAAiB,CAAC,KAAK,EAAE,MAAM,EAAE,0BAA0B,CAAC,EAAE,yBAAyB,GAAG,OAAO,CAAC,UAAU,CAAC;IAO7G,oBAAoB,CAAC,QAAQ,EAAE,YAAY,EAAE,IAAI,EAAE,MAAM,EAAE,0BAA0B,CAAC,EAAE,uBAAuB,GAAG,OAAO,CAAC,UAAU,CAAC;IACrI,oBAAoB,CAAC,QAAQ,EAAE,YAAY,EAAE,IAAI,EAAE,MAAM,EAAE,0BAA0B,CAAC,EAAE,yBAAyB,GAAG,OAAO,CAAC,UAAU,CAAC;IAsBvI,SAAS,CAAC,IAAI,CAAC,EAAE,UAAU,EAAE,0BAA0B,CAAC,EAAE,uBAAuB,GAAG,OAAO,CAAC,UAAU,EAAE,CAAC;IACzG,SAAS,CAAC,IAAI,CAAC,EAAE,UAAU,EAAE,0BAA0B,CAAC,EAAE,yBAAyB,GAAG,OAAO,CAAC,UAAU,EAAE,CAAC;IAajH,YAAY,CAAC,KAAK,EAAE,MAAM;IAIpB,cAAc,CAAC,IAAI,EAAE,UAAU,EAAE,QAAQ,EAAE,cAAc,EAAE,gBAAgB,CAAC,EAAE,uBAAuB,GAAG,OAAO,CAAC,cAAc,CAAC;IAC/H,cAAc,CAAC,IAAI,EAAE,UAAU,EAAE,QAAQ,EAAE,cAAc,EAAE,gBAAgB,CAAC,EAAE,yBAAyB,GAAG,OAAO,CAAC,cAAc,CAAC;CAiBxI"}
|
|
@@ -1,28 +1,13 @@
|
|
|
1
|
-
// src/ManifestWrapper.ts
|
|
2
1
|
import { assertEx } from "@xylabs/assert";
|
|
3
2
|
import {
|
|
4
3
|
assignCreatableModuleRegistry,
|
|
5
4
|
ModuleFactoryLocator,
|
|
6
5
|
toCreatableModuleRegistry
|
|
7
6
|
} from "@xyo-network/module";
|
|
8
|
-
import { MemoryNode as MemoryNode2 } from "@xyo-network/node-memory";
|
|
9
|
-
import { PayloadWrapper } from "@xyo-network/payload-wrapper";
|
|
10
|
-
|
|
11
|
-
// src/standardCreatableModules.ts
|
|
12
|
-
import { HttpBridge } from "@xyo-network/http-bridge";
|
|
13
|
-
import { MemoryArchivist } from "@xyo-network/memory-archivist";
|
|
14
|
-
import { ModuleFactory } from "@xyo-network/module";
|
|
15
7
|
import { MemoryNode } from "@xyo-network/node-memory";
|
|
16
|
-
import {
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
"network.xyo.bridge.http.config": ModuleFactory.withParams(HttpBridge, { config: { schema: HttpBridge.configSchema } }),
|
|
20
|
-
"network.xyo.node.config": MemoryNode,
|
|
21
|
-
"network.xyo.sentinel.config": MemorySentinel
|
|
22
|
-
};
|
|
23
|
-
|
|
24
|
-
// src/ManifestWrapper.ts
|
|
25
|
-
var ManifestWrapper = class extends PayloadWrapper {
|
|
8
|
+
import { PayloadWrapper } from "@xyo-network/payload-wrapper";
|
|
9
|
+
import { standardCreatableModules } from "./standardCreatableModules";
|
|
10
|
+
class ManifestWrapper extends PayloadWrapper {
|
|
26
11
|
constructor(payload, wallet, locator = new ModuleFactoryLocator({})) {
|
|
27
12
|
super(payload);
|
|
28
13
|
this.wallet = wallet;
|
|
@@ -53,7 +38,7 @@ var ManifestWrapper = class extends PayloadWrapper {
|
|
|
53
38
|
return await this.loadNodeFromManifest(manifest, manifest.config.accountPath ?? `${index}'`, registry);
|
|
54
39
|
}
|
|
55
40
|
async loadNodeFromManifest(manifest, path, additionalCreatableModules) {
|
|
56
|
-
const node = await
|
|
41
|
+
const node = await MemoryNode.create({ config: manifest.config, wallet: await this.wallet.derivePath(path) });
|
|
57
42
|
const registry = toCreatableModuleRegistry(additionalCreatableModules ?? {});
|
|
58
43
|
const privateModules = manifest.modules?.private?.map(async (moduleManifest) => {
|
|
59
44
|
await this.loadModule(node, moduleManifest, false, registry);
|
|
@@ -88,7 +73,7 @@ var ManifestWrapper = class extends PayloadWrapper {
|
|
|
88
73
|
await node.register(module);
|
|
89
74
|
return module;
|
|
90
75
|
}
|
|
91
|
-
}
|
|
76
|
+
}
|
|
92
77
|
export {
|
|
93
78
|
ManifestWrapper
|
|
94
79
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/ManifestWrapper.ts"
|
|
1
|
+
{"version":3,"sources":["../../src/ManifestWrapper.ts"],"sourcesContent":["import { assertEx } from '@xylabs/assert'\nimport { ManifestPayload, ModuleManifest, NodeManifest } from '@xyo-network/manifest-model'\nimport {\n assignCreatableModuleRegistry,\n CreatableModuleDictionary,\n CreatableModuleRegistry,\n ModuleFactoryLocator,\n ModuleInstance,\n toCreatableModuleRegistry,\n} from '@xyo-network/module'\nimport { MemoryNode } from '@xyo-network/node-memory'\nimport { NodeInstance } from '@xyo-network/node-model'\nimport { PayloadWrapper } from '@xyo-network/payload-wrapper'\nimport { WalletInstance } from '@xyo-network/wallet-model'\n\nimport { standardCreatableModules } from './standardCreatableModules'\n\nexport class ManifestWrapper extends PayloadWrapper<ManifestPayload> {\n constructor(\n payload: ManifestPayload,\n protected readonly wallet: WalletInstance,\n protected readonly locator: ModuleFactoryLocator = new ModuleFactoryLocator({}),\n ) {\n super(payload)\n }\n\n async loadModule(node: MemoryNode, manifest: ModuleManifest, external: boolean, additionalCreatableModules?: CreatableModuleRegistry): Promise<void>\n async loadModule(\n node: MemoryNode,\n manifest: ModuleManifest,\n external: boolean,\n additionalCreatableModules?: CreatableModuleDictionary,\n ): Promise<void>\n async loadModule(\n node: MemoryNode,\n manifest: ModuleManifest,\n external = true,\n additionalCreatableModules?: CreatableModuleDictionary | CreatableModuleRegistry,\n ): Promise<void> {\n const collision = async (node: NodeInstance, name: string, external: boolean) => {\n const externalConflict = external ? (await node.resolve({ name: [name] }, { direction: external ? 'all' : 'down' })).length !== 0 : false\n return externalConflict || (await node.resolve({ name: [name] }, { direction: 'down' })).length !== 0\n }\n\n const creatableModules = assignCreatableModuleRegistry(\n {},\n toCreatableModuleRegistry(standardCreatableModules),\n toCreatableModuleRegistry(additionalCreatableModules ?? {}),\n )\n if (!(await collision(node, manifest.config.name, external))) {\n if (manifest.config.language && manifest.config.language === 'javascript') {\n assertEx(\n (manifest.config.name && (await node.attach(manifest.config.name, external))) ??\n (await node.attach((await this.registerModule(node, manifest, creatableModules)).address, external)),\n `No module with config schema [${manifest.config.name}] registered`,\n )\n }\n }\n }\n\n async loadNodeFromIndex(index: number, additionalCreatableModules?: CreatableModuleRegistry): Promise<MemoryNode>\n async loadNodeFromIndex(index: number, additionalCreatableModules?: CreatableModuleDictionary): Promise<MemoryNode>\n async loadNodeFromIndex(index: number, additionalCreatableModules?: CreatableModuleDictionary | CreatableModuleRegistry): Promise<MemoryNode> {\n const manifest = assertEx(this.nodeManifest(index), 'Failed to find Node Manifest')\n const registry = toCreatableModuleRegistry(additionalCreatableModules ?? {})\n return await this.loadNodeFromManifest(manifest, manifest.config.accountPath ?? `${index}'`, registry)\n }\n\n async loadNodeFromManifest(manifest: NodeManifest, path: string, additionalCreatableModules?: CreatableModuleRegistry): Promise<MemoryNode>\n async loadNodeFromManifest(manifest: NodeManifest, path: string, additionalCreatableModules?: CreatableModuleDictionary): Promise<MemoryNode>\n async loadNodeFromManifest(\n manifest: NodeManifest,\n path: string,\n additionalCreatableModules?: CreatableModuleDictionary | CreatableModuleRegistry,\n ): Promise<MemoryNode> {\n const node = await MemoryNode.create({ config: manifest.config, wallet: await this.wallet.derivePath(path) })\n const registry = toCreatableModuleRegistry(additionalCreatableModules ?? {})\n // Load Private Modules\n const privateModules =\n manifest.modules?.private?.map(async (moduleManifest) => {\n await this.loadModule(node, moduleManifest, false, registry)\n }) ?? []\n // Load Public Modules\n const publicModules =\n manifest.modules?.public?.map(async (moduleManifest) => {\n await this.loadModule(node, moduleManifest, true, registry)\n }) ?? []\n await Promise.all([...privateModules, ...publicModules])\n return node\n }\n\n async loadNodes(node?: MemoryNode, additionalCreatableModules?: CreatableModuleRegistry): Promise<MemoryNode[]>\n async loadNodes(node?: MemoryNode, additionalCreatableModules?: CreatableModuleDictionary): Promise<MemoryNode[]>\n async loadNodes(node?: MemoryNode, additionalCreatableModules?: CreatableModuleDictionary | CreatableModuleRegistry): Promise<MemoryNode[]> {\n const registry = toCreatableModuleRegistry(additionalCreatableModules ?? {})\n const result = await Promise.all(\n this.payload().nodes?.map(async (nodeManifest, index) => {\n const subNode = await this.loadNodeFromManifest(nodeManifest, nodeManifest.config.accountPath ?? `${index}'`, registry)\n await node?.register(subNode)\n return subNode\n }),\n )\n return result\n }\n\n nodeManifest(index: number) {\n return this.payload().nodes?.[index]\n }\n\n async registerModule(node: MemoryNode, manifest: ModuleManifest, creatableModules?: CreatableModuleRegistry): Promise<ModuleInstance>\n async registerModule(node: MemoryNode, manifest: ModuleManifest, creatableModules?: CreatableModuleDictionary): Promise<ModuleInstance>\n async registerModule(\n node: MemoryNode,\n manifest: ModuleManifest,\n creatableModules?: CreatableModuleDictionary | CreatableModuleRegistry,\n ): Promise<ModuleInstance> {\n const registry = toCreatableModuleRegistry(creatableModules ?? {})\n const creatableModule = new ModuleFactoryLocator(this.locator.registry)\n .registerMany(registry)\n .locate(manifest.config.schema, manifest.config.labels)\n const module = await creatableModule.create({\n account: manifest.config.accountPath ? await this.wallet.derivePath(manifest.config.accountPath) : this.wallet,\n config: assertEx(manifest.config, 'Missing config'),\n })\n await node.register(module)\n return module\n }\n}\n"],"mappings":"AAAA,SAAS,gBAAgB;AAEzB;AAAA,EACE;AAAA,EAGA;AAAA,EAEA;AAAA,OACK;AACP,SAAS,kBAAkB;AAE3B,SAAS,sBAAsB;AAG/B,SAAS,gCAAgC;AAElC,MAAM,wBAAwB,eAAgC;AAAA,EACnE,YACE,SACmB,QACA,UAAgC,IAAI,qBAAqB,CAAC,CAAC,GAC9E;AACA,UAAM,OAAO;AAHM;AACA;AAAA,EAGrB;AAAA,EASA,MAAM,WACJ,MACA,UACA,WAAW,MACX,4BACe;AACf,UAAM,YAAY,OAAOA,OAAoB,MAAcC,cAAsB;AAC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;AACF;","names":["node","external"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,mBAAmB,CAAA;AACjC,cAAc,4BAA4B,CAAA;AAC1C,cAAc,6BAA6B,CAAA"}
|
package/dist/browser/index.js
CHANGED
|
@@ -1,99 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
import {
|
|
4
|
-
assignCreatableModuleRegistry,
|
|
5
|
-
ModuleFactoryLocator,
|
|
6
|
-
toCreatableModuleRegistry
|
|
7
|
-
} from "@xyo-network/module";
|
|
8
|
-
import { MemoryNode as MemoryNode2 } from "@xyo-network/node-memory";
|
|
9
|
-
import { PayloadWrapper } from "@xyo-network/payload-wrapper";
|
|
10
|
-
|
|
11
|
-
// src/standardCreatableModules.ts
|
|
12
|
-
import { HttpBridge } from "@xyo-network/http-bridge";
|
|
13
|
-
import { MemoryArchivist } from "@xyo-network/memory-archivist";
|
|
14
|
-
import { ModuleFactory } from "@xyo-network/module";
|
|
15
|
-
import { MemoryNode } from "@xyo-network/node-memory";
|
|
16
|
-
import { MemorySentinel } from "@xyo-network/sentinel";
|
|
17
|
-
var standardCreatableModules = {
|
|
18
|
-
"network.xyo.archivist.config": MemoryArchivist,
|
|
19
|
-
"network.xyo.bridge.http.config": ModuleFactory.withParams(HttpBridge, { config: { schema: HttpBridge.configSchema } }),
|
|
20
|
-
"network.xyo.node.config": MemoryNode,
|
|
21
|
-
"network.xyo.sentinel.config": MemorySentinel
|
|
22
|
-
};
|
|
23
|
-
|
|
24
|
-
// src/ManifestWrapper.ts
|
|
25
|
-
var ManifestWrapper = class extends PayloadWrapper {
|
|
26
|
-
constructor(payload, wallet, locator = new ModuleFactoryLocator({})) {
|
|
27
|
-
super(payload);
|
|
28
|
-
this.wallet = wallet;
|
|
29
|
-
this.locator = locator;
|
|
30
|
-
}
|
|
31
|
-
async loadModule(node, manifest, external = true, additionalCreatableModules) {
|
|
32
|
-
const collision = async (node2, name, external2) => {
|
|
33
|
-
const externalConflict = external2 ? (await node2.resolve({ name: [name] }, { direction: external2 ? "all" : "down" })).length !== 0 : false;
|
|
34
|
-
return externalConflict || (await node2.resolve({ name: [name] }, { direction: "down" })).length !== 0;
|
|
35
|
-
};
|
|
36
|
-
const creatableModules = assignCreatableModuleRegistry(
|
|
37
|
-
{},
|
|
38
|
-
toCreatableModuleRegistry(standardCreatableModules),
|
|
39
|
-
toCreatableModuleRegistry(additionalCreatableModules ?? {})
|
|
40
|
-
);
|
|
41
|
-
if (!await collision(node, manifest.config.name, external)) {
|
|
42
|
-
if (manifest.config.language && manifest.config.language === "javascript") {
|
|
43
|
-
assertEx(
|
|
44
|
-
(manifest.config.name && await node.attach(manifest.config.name, external)) ?? await node.attach((await this.registerModule(node, manifest, creatableModules)).address, external),
|
|
45
|
-
`No module with config schema [${manifest.config.name}] registered`
|
|
46
|
-
);
|
|
47
|
-
}
|
|
48
|
-
}
|
|
49
|
-
}
|
|
50
|
-
async loadNodeFromIndex(index, additionalCreatableModules) {
|
|
51
|
-
const manifest = assertEx(this.nodeManifest(index), "Failed to find Node Manifest");
|
|
52
|
-
const registry = toCreatableModuleRegistry(additionalCreatableModules ?? {});
|
|
53
|
-
return await this.loadNodeFromManifest(manifest, manifest.config.accountPath ?? `${index}'`, registry);
|
|
54
|
-
}
|
|
55
|
-
async loadNodeFromManifest(manifest, path, additionalCreatableModules) {
|
|
56
|
-
const node = await MemoryNode2.create({ config: manifest.config, wallet: await this.wallet.derivePath(path) });
|
|
57
|
-
const registry = toCreatableModuleRegistry(additionalCreatableModules ?? {});
|
|
58
|
-
const privateModules = manifest.modules?.private?.map(async (moduleManifest) => {
|
|
59
|
-
await this.loadModule(node, moduleManifest, false, registry);
|
|
60
|
-
}) ?? [];
|
|
61
|
-
const publicModules = manifest.modules?.public?.map(async (moduleManifest) => {
|
|
62
|
-
await this.loadModule(node, moduleManifest, true, registry);
|
|
63
|
-
}) ?? [];
|
|
64
|
-
await Promise.all([...privateModules, ...publicModules]);
|
|
65
|
-
return node;
|
|
66
|
-
}
|
|
67
|
-
async loadNodes(node, additionalCreatableModules) {
|
|
68
|
-
const registry = toCreatableModuleRegistry(additionalCreatableModules ?? {});
|
|
69
|
-
const result = await Promise.all(
|
|
70
|
-
this.payload().nodes?.map(async (nodeManifest, index) => {
|
|
71
|
-
const subNode = await this.loadNodeFromManifest(nodeManifest, nodeManifest.config.accountPath ?? `${index}'`, registry);
|
|
72
|
-
await node?.register(subNode);
|
|
73
|
-
return subNode;
|
|
74
|
-
})
|
|
75
|
-
);
|
|
76
|
-
return result;
|
|
77
|
-
}
|
|
78
|
-
nodeManifest(index) {
|
|
79
|
-
return this.payload().nodes?.[index];
|
|
80
|
-
}
|
|
81
|
-
async registerModule(node, manifest, creatableModules) {
|
|
82
|
-
const registry = toCreatableModuleRegistry(creatableModules ?? {});
|
|
83
|
-
const creatableModule = new ModuleFactoryLocator(this.locator.registry).registerMany(registry).locate(manifest.config.schema, manifest.config.labels);
|
|
84
|
-
const module = await creatableModule.create({
|
|
85
|
-
account: manifest.config.accountPath ? await this.wallet.derivePath(manifest.config.accountPath) : this.wallet,
|
|
86
|
-
config: assertEx(manifest.config, "Missing config")
|
|
87
|
-
});
|
|
88
|
-
await node.register(module);
|
|
89
|
-
return module;
|
|
90
|
-
}
|
|
91
|
-
};
|
|
92
|
-
|
|
93
|
-
// src/index.ts
|
|
1
|
+
export * from "./ManifestWrapper";
|
|
2
|
+
export * from "./standardCreatableModules";
|
|
94
3
|
export * from "@xyo-network/manifest-model";
|
|
95
|
-
export {
|
|
96
|
-
ManifestWrapper,
|
|
97
|
-
standardCreatableModules
|
|
98
|
-
};
|
|
99
4
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/
|
|
1
|
+
{"version":3,"sources":["../../src/index.ts"],"sourcesContent":["export * from './ManifestWrapper'\nexport * from './standardCreatableModules'\nexport * from '@xyo-network/manifest-model'\n"],"mappings":"AAAA,cAAc;AACd,cAAc;AACd,cAAc;","names":[]}
|
|
@@ -0,0 +1,237 @@
|
|
|
1
|
+
// src/schema.json
|
|
2
|
+
var $schema = "http://json-schema.org/draft-07/schema#";
|
|
3
|
+
var additionalProperties = false;
|
|
4
|
+
var definitions = {
|
|
5
|
+
architecture: {
|
|
6
|
+
description: "Architecture",
|
|
7
|
+
enum: [
|
|
8
|
+
"386",
|
|
9
|
+
"amd64",
|
|
10
|
+
"arm",
|
|
11
|
+
"arm64",
|
|
12
|
+
"loong64",
|
|
13
|
+
"mips",
|
|
14
|
+
"mipsle",
|
|
15
|
+
"mips64",
|
|
16
|
+
"mips64le",
|
|
17
|
+
"ppc64",
|
|
18
|
+
"ppc64le",
|
|
19
|
+
"riscv64",
|
|
20
|
+
"s390x",
|
|
21
|
+
"wasm"
|
|
22
|
+
],
|
|
23
|
+
type: "string"
|
|
24
|
+
},
|
|
25
|
+
config: {
|
|
26
|
+
additionalProperties: true,
|
|
27
|
+
description: "Config for a module",
|
|
28
|
+
id: {
|
|
29
|
+
type: "string"
|
|
30
|
+
},
|
|
31
|
+
properties: {
|
|
32
|
+
accountPath: {
|
|
33
|
+
description: "HDWallet path to derive account",
|
|
34
|
+
type: "string"
|
|
35
|
+
},
|
|
36
|
+
architecture: {
|
|
37
|
+
$ref: "#/definitions/architecture"
|
|
38
|
+
},
|
|
39
|
+
description: {
|
|
40
|
+
type: "string"
|
|
41
|
+
},
|
|
42
|
+
features: {
|
|
43
|
+
items: {
|
|
44
|
+
$ref: "#/definitions/feature"
|
|
45
|
+
},
|
|
46
|
+
type: "array"
|
|
47
|
+
},
|
|
48
|
+
language: {
|
|
49
|
+
$ref: "#/definitions/language"
|
|
50
|
+
},
|
|
51
|
+
name: {
|
|
52
|
+
type: "string"
|
|
53
|
+
},
|
|
54
|
+
os: {
|
|
55
|
+
$ref: "#/definitions/os"
|
|
56
|
+
},
|
|
57
|
+
schema: {
|
|
58
|
+
type: "string"
|
|
59
|
+
}
|
|
60
|
+
},
|
|
61
|
+
required: [
|
|
62
|
+
"accountPath",
|
|
63
|
+
"name",
|
|
64
|
+
"schema"
|
|
65
|
+
],
|
|
66
|
+
type: "object"
|
|
67
|
+
},
|
|
68
|
+
feature: {
|
|
69
|
+
description: "Framework",
|
|
70
|
+
enum: [
|
|
71
|
+
"angular",
|
|
72
|
+
"asp.net",
|
|
73
|
+
"browser",
|
|
74
|
+
"cryengine",
|
|
75
|
+
"corona",
|
|
76
|
+
"django",
|
|
77
|
+
"flutter",
|
|
78
|
+
"ionic",
|
|
79
|
+
"jquery",
|
|
80
|
+
"nodejs",
|
|
81
|
+
"phonegap",
|
|
82
|
+
"react",
|
|
83
|
+
"react-native",
|
|
84
|
+
"spring",
|
|
85
|
+
"unity",
|
|
86
|
+
"unreal",
|
|
87
|
+
"vue",
|
|
88
|
+
"xamarin"
|
|
89
|
+
],
|
|
90
|
+
type: "string"
|
|
91
|
+
},
|
|
92
|
+
language: {
|
|
93
|
+
description: "Language",
|
|
94
|
+
enum: [
|
|
95
|
+
"c",
|
|
96
|
+
"c++",
|
|
97
|
+
"c#",
|
|
98
|
+
"go",
|
|
99
|
+
"java",
|
|
100
|
+
"javascript",
|
|
101
|
+
"kotlin",
|
|
102
|
+
"lua",
|
|
103
|
+
"python",
|
|
104
|
+
"ruby",
|
|
105
|
+
"rust",
|
|
106
|
+
"scala",
|
|
107
|
+
"solidity",
|
|
108
|
+
"swift"
|
|
109
|
+
],
|
|
110
|
+
type: "string"
|
|
111
|
+
},
|
|
112
|
+
module: {
|
|
113
|
+
additionalProperties: false,
|
|
114
|
+
description: "Module Definition",
|
|
115
|
+
properties: {
|
|
116
|
+
config: {
|
|
117
|
+
$ref: "#/definitions/config"
|
|
118
|
+
},
|
|
119
|
+
description: {
|
|
120
|
+
type: "string"
|
|
121
|
+
}
|
|
122
|
+
},
|
|
123
|
+
required: [
|
|
124
|
+
"config"
|
|
125
|
+
],
|
|
126
|
+
type: "object"
|
|
127
|
+
},
|
|
128
|
+
modules: {
|
|
129
|
+
description: "List of Modules",
|
|
130
|
+
items: {
|
|
131
|
+
$ref: "#/definitions/module"
|
|
132
|
+
},
|
|
133
|
+
nullable: true,
|
|
134
|
+
type: "array"
|
|
135
|
+
},
|
|
136
|
+
node: {
|
|
137
|
+
additionalProperties: false,
|
|
138
|
+
description: "Node Definition - Generally loaded into an existing or new Node Module",
|
|
139
|
+
id: {
|
|
140
|
+
type: "string"
|
|
141
|
+
},
|
|
142
|
+
properties: {
|
|
143
|
+
config: {
|
|
144
|
+
$ref: "#/definitions/config"
|
|
145
|
+
},
|
|
146
|
+
description: {
|
|
147
|
+
type: "string"
|
|
148
|
+
},
|
|
149
|
+
modules: {
|
|
150
|
+
additionalProperties: false,
|
|
151
|
+
description: "Modules in the Node",
|
|
152
|
+
properties: {
|
|
153
|
+
private: {
|
|
154
|
+
$ref: "#/definitions/modules"
|
|
155
|
+
},
|
|
156
|
+
public: {
|
|
157
|
+
$ref: "#/definitions/modules"
|
|
158
|
+
}
|
|
159
|
+
},
|
|
160
|
+
required: [],
|
|
161
|
+
type: "object"
|
|
162
|
+
},
|
|
163
|
+
name: {
|
|
164
|
+
type: "string"
|
|
165
|
+
}
|
|
166
|
+
},
|
|
167
|
+
required: [],
|
|
168
|
+
type: "object"
|
|
169
|
+
},
|
|
170
|
+
nodes: {
|
|
171
|
+
description: "List of Node Manifests",
|
|
172
|
+
items: {
|
|
173
|
+
$ref: "#/definitions/node"
|
|
174
|
+
},
|
|
175
|
+
type: "array"
|
|
176
|
+
},
|
|
177
|
+
os: {
|
|
178
|
+
description: "Operating System",
|
|
179
|
+
enum: [
|
|
180
|
+
"aix",
|
|
181
|
+
"android",
|
|
182
|
+
"darwin",
|
|
183
|
+
"dragonfly",
|
|
184
|
+
"freebsd",
|
|
185
|
+
"illumos",
|
|
186
|
+
"ios",
|
|
187
|
+
"linux",
|
|
188
|
+
"netbsd",
|
|
189
|
+
"openbsd",
|
|
190
|
+
"osx",
|
|
191
|
+
"plan9",
|
|
192
|
+
"solaris",
|
|
193
|
+
"windows"
|
|
194
|
+
],
|
|
195
|
+
type: "string"
|
|
196
|
+
},
|
|
197
|
+
payloads: {
|
|
198
|
+
description: "List of Modules",
|
|
199
|
+
items: {
|
|
200
|
+
$ref: "#/definitions/module"
|
|
201
|
+
},
|
|
202
|
+
nullable: true,
|
|
203
|
+
type: "array"
|
|
204
|
+
}
|
|
205
|
+
};
|
|
206
|
+
var description = "Describes an XYO Package which is a collection of XYO Modules";
|
|
207
|
+
var properties = {
|
|
208
|
+
$schema: {
|
|
209
|
+
type: "string"
|
|
210
|
+
},
|
|
211
|
+
description: {
|
|
212
|
+
type: "string"
|
|
213
|
+
},
|
|
214
|
+
nodes: {
|
|
215
|
+
$ref: "#/definitions/nodes",
|
|
216
|
+
description: "The list of Nodes that are defined in the manifest"
|
|
217
|
+
},
|
|
218
|
+
schema: {
|
|
219
|
+
pattern: "^network.xyo.manifest$",
|
|
220
|
+
type: "string"
|
|
221
|
+
}
|
|
222
|
+
};
|
|
223
|
+
var required = [
|
|
224
|
+
"nodes",
|
|
225
|
+
"schema"
|
|
226
|
+
];
|
|
227
|
+
var title = "XYO Manifest";
|
|
228
|
+
var schema_default = {
|
|
229
|
+
$schema,
|
|
230
|
+
additionalProperties,
|
|
231
|
+
definitions,
|
|
232
|
+
description,
|
|
233
|
+
properties,
|
|
234
|
+
required,
|
|
235
|
+
title
|
|
236
|
+
};
|
|
237
|
+
//# sourceMappingURL=schema.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../src/schema.json"],"sourcesContent":["{\n \"$schema\": \"http://json-schema.org/draft-07/schema#\",\n \"additionalProperties\": false,\n \"definitions\": {\n \"architecture\": {\n \"description\": \"Architecture\",\n \"enum\": [\n \"386\",\n \"amd64\",\n \"arm\",\n \"arm64\",\n \"loong64\",\n \"mips\",\n \"mipsle\",\n \"mips64\",\n \"mips64le\",\n \"ppc64\",\n \"ppc64le\",\n \"riscv64\",\n \"s390x\",\n \"wasm\"\n ],\n \"type\": \"string\"\n },\n \"config\": {\n \"additionalProperties\": true,\n \"description\": \"Config for a module\",\n \"id\": {\n \"type\": \"string\"\n },\n \"properties\": {\n \"accountPath\": {\n \"description\": \"HDWallet path to derive account\",\n \"type\": \"string\"\n },\n \"architecture\": {\n \"$ref\": \"#/definitions/architecture\"\n },\n \"description\": {\n \"type\": \"string\"\n },\n \"features\": {\n \"items\": {\n \"$ref\": \"#/definitions/feature\"\n },\n \"type\": \"array\"\n },\n \"language\": {\n \"$ref\": \"#/definitions/language\"\n },\n \"name\": {\n \"type\": \"string\"\n },\n \"os\": {\n \"$ref\": \"#/definitions/os\"\n },\n \"schema\": {\n \"type\": \"string\"\n }\n },\n \"required\": [\n \"accountPath\",\n \"name\",\n \"schema\"\n ],\n \"type\": \"object\"\n },\n \"feature\": {\n \"description\": \"Framework\",\n \"enum\": [\n \"angular\",\n \"asp.net\",\n \"browser\",\n \"cryengine\",\n \"corona\",\n \"django\",\n \"flutter\",\n \"ionic\",\n \"jquery\",\n \"nodejs\",\n \"phonegap\",\n \"react\",\n \"react-native\",\n \"spring\",\n \"unity\",\n \"unreal\",\n \"vue\",\n \"xamarin\"\n ],\n \"type\": \"string\"\n },\n \"language\": {\n \"description\": \"Language\",\n \"enum\": [\n \"c\",\n \"c++\",\n \"c#\",\n \"go\",\n \"java\",\n \"javascript\",\n \"kotlin\",\n \"lua\",\n \"python\",\n \"ruby\",\n \"rust\",\n \"scala\",\n \"solidity\",\n \"swift\"\n ],\n \"type\": \"string\"\n },\n \"module\": {\n \"additionalProperties\": false,\n \"description\": \"Module Definition\",\n \"properties\": {\n \"config\": {\n \"$ref\": \"#/definitions/config\"\n },\n \"description\": {\n \"type\": \"string\"\n }\n },\n \"required\": [\n \"config\"\n ],\n \"type\": \"object\"\n },\n \"modules\": {\n \"description\": \"List of Modules\",\n \"items\": {\n \"$ref\": \"#/definitions/module\"\n },\n \"nullable\": true,\n \"type\": \"array\"\n },\n \"node\": {\n \"additionalProperties\": false,\n \"description\": \"Node Definition - Generally loaded into an existing or new Node Module\",\n \"id\": {\n \"type\": \"string\"\n },\n \"properties\": {\n \"config\": {\n \"$ref\": \"#/definitions/config\"\n },\n \"description\": {\n \"type\": \"string\"\n },\n \"modules\": {\n \"additionalProperties\": false,\n \"description\": \"Modules in the Node\",\n \"properties\": {\n \"private\": {\n \"$ref\": \"#/definitions/modules\"\n },\n \"public\": {\n \"$ref\": \"#/definitions/modules\"\n }\n },\n \"required\": [],\n \"type\": \"object\"\n },\n \"name\": {\n \"type\": \"string\"\n }\n },\n \"required\": [],\n \"type\": \"object\"\n },\n \"nodes\": {\n \"description\": \"List of Node Manifests\",\n \"items\": {\n \"$ref\": \"#/definitions/node\"\n },\n \"type\": \"array\"\n },\n \"os\": {\n \"description\": \"Operating System\",\n \"enum\": [\n \"aix\",\n \"android\",\n \"darwin\",\n \"dragonfly\",\n \"freebsd\",\n \"illumos\",\n \"ios\",\n \"linux\",\n \"netbsd\",\n \"openbsd\",\n \"osx\",\n \"plan9\",\n \"solaris\",\n \"windows\"\n ],\n \"type\": \"string\"\n },\n \"payloads\": {\n \"description\": \"List of Modules\",\n \"items\": {\n \"$ref\": \"#/definitions/module\"\n },\n \"nullable\": true,\n \"type\": \"array\"\n }\n },\n \"description\": \"Describes an XYO Package which is a collection of XYO Modules\",\n \"properties\": {\n \"$schema\": {\n \"type\": \"string\"\n },\n \"description\": {\n \"type\": \"string\"\n },\n \"nodes\": {\n \"$ref\": \"#/definitions/nodes\",\n \"description\": \"The list of Nodes that are defined in the manifest\"\n },\n \"schema\": {\n \"pattern\": \"^network.xyo.manifest$\",\n \"type\": \"string\"\n }\n },\n \"required\": [\n \"nodes\",\n \"schema\"\n ],\n \"title\": \"XYO Manifest\"\n}"],"mappings":";AACE,cAAW;AACX,2BAAwB;AACxB,kBAAe;AAAA,EACb,cAAgB;AAAA,IACd,aAAe;AAAA,IACf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