@happyvertical/smrt-gnode 0.37.1 → 0.37.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/index.js +27 -25
- package/dist/index.js.map +1 -1
- package/dist/manifest.json +2 -2
- package/dist/smrt-knowledge.json +7 -7
- package/package.json +10 -10
package/dist/index.js
CHANGED
|
@@ -1,26 +1,28 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
}
|
|
9
|
-
class WebFingerProtocol {
|
|
10
|
-
static async discover(_domain) {
|
|
11
|
-
return null;
|
|
12
|
-
}
|
|
13
|
-
}
|
|
14
|
-
class PeerExchangeProtocol {
|
|
15
|
-
static async exchange(_peerUrl) {
|
|
16
|
-
return [];
|
|
17
|
-
}
|
|
18
|
-
}
|
|
19
|
-
const version = "0.1.0";
|
|
20
|
-
export {
|
|
21
|
-
Federation,
|
|
22
|
-
PeerExchangeProtocol,
|
|
23
|
-
WebFingerProtocol,
|
|
24
|
-
version
|
|
1
|
+
//#region src/federation/index.ts
|
|
2
|
+
var Federation = class {
|
|
3
|
+
async discoverPeers() {
|
|
4
|
+
return [];
|
|
5
|
+
}
|
|
6
|
+
async exchangePeers(_peer) {
|
|
7
|
+
return [];
|
|
8
|
+
}
|
|
25
9
|
};
|
|
26
|
-
//#
|
|
10
|
+
//#endregion
|
|
11
|
+
//#region src/protocols/index.ts
|
|
12
|
+
var WebFingerProtocol = class {
|
|
13
|
+
static async discover(_domain) {
|
|
14
|
+
return null;
|
|
15
|
+
}
|
|
16
|
+
};
|
|
17
|
+
var PeerExchangeProtocol = class {
|
|
18
|
+
static async exchange(_peerUrl) {
|
|
19
|
+
return [];
|
|
20
|
+
}
|
|
21
|
+
};
|
|
22
|
+
//#endregion
|
|
23
|
+
//#region src/index.ts
|
|
24
|
+
var version = "0.1.0";
|
|
25
|
+
//#endregion
|
|
26
|
+
export { Federation, PeerExchangeProtocol, WebFingerProtocol, version };
|
|
27
|
+
|
|
28
|
+
//# sourceMappingURL=index.js.map
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../src/federation/index.ts","../src/protocols/index.ts","../src/index.ts"],"sourcesContent":["/**\n * Federation utilities for gnode P2P discovery and communication\n */\n\nexport interface GnodePeer {\n url: string;\n name: string;\n discoveredAt: Date;\n lastSeen?: Date;\n}\n\nexport interface FederationConfig {\n enabled: boolean;\n discoverability: 'public' | 'private';\n peers: string[];\n autodiscovery: boolean;\n peerExchange: boolean;\n}\n\nexport class Federation {\n async discoverPeers(): Promise<GnodePeer[]> {\n // TODO: Implement peer discovery via WebFinger, DNS, etc.\n return [];\n }\n\n async exchangePeers(_peer: GnodePeer): Promise<GnodePeer[]> {\n // TODO: Implement peer exchange protocol\n return [];\n }\n}\n","/**\n * Federation protocols for gnode discovery and communication\n */\n\nexport interface WebFingerResponse {\n subject: string;\n links: Array<{\n rel: string;\n type?: string;\n href: string;\n }>;\n}\n\nexport class WebFingerProtocol {\n static async discover(_domain: string): Promise<WebFingerResponse | null> {\n // TODO: Implement WebFinger discovery\n // GET https://example.com/.well-known/gnode\n return null;\n }\n}\n\nexport class PeerExchangeProtocol {\n static async exchange(_peerUrl: string): Promise<string[]> {\n // TODO: Implement peer list exchange\n // GET /api/federation/peers\n return [];\n }\n}\n","/**\n * @have/gnode - SMRT Federation Library\n *\n * Federated local knowledge bases (gnodes) with P2P discovery and protocols.\n * Built on top of @smrt/core for SMRT object federation.\n */\n\nexport * from './federation/index.js';\nexport * from './protocols/index.js';\n\nexport const version = '0.1.0';\n"],"
|
|
1
|
+
{"version":3,"file":"index.js","names":[],"sources":["../src/federation/index.ts","../src/protocols/index.ts","../src/index.ts"],"sourcesContent":["/**\n * Federation utilities for gnode P2P discovery and communication\n */\n\nexport interface GnodePeer {\n url: string;\n name: string;\n discoveredAt: Date;\n lastSeen?: Date;\n}\n\nexport interface FederationConfig {\n enabled: boolean;\n discoverability: 'public' | 'private';\n peers: string[];\n autodiscovery: boolean;\n peerExchange: boolean;\n}\n\nexport class Federation {\n async discoverPeers(): Promise<GnodePeer[]> {\n // TODO: Implement peer discovery via WebFinger, DNS, etc.\n return [];\n }\n\n async exchangePeers(_peer: GnodePeer): Promise<GnodePeer[]> {\n // TODO: Implement peer exchange protocol\n return [];\n }\n}\n","/**\n * Federation protocols for gnode discovery and communication\n */\n\nexport interface WebFingerResponse {\n subject: string;\n links: Array<{\n rel: string;\n type?: string;\n href: string;\n }>;\n}\n\nexport class WebFingerProtocol {\n static async discover(_domain: string): Promise<WebFingerResponse | null> {\n // TODO: Implement WebFinger discovery\n // GET https://example.com/.well-known/gnode\n return null;\n }\n}\n\nexport class PeerExchangeProtocol {\n static async exchange(_peerUrl: string): Promise<string[]> {\n // TODO: Implement peer list exchange\n // GET /api/federation/peers\n return [];\n }\n}\n","/**\n * @have/gnode - SMRT Federation Library\n *\n * Federated local knowledge bases (gnodes) with P2P discovery and protocols.\n * Built on top of @smrt/core for SMRT object federation.\n */\n\nexport * from './federation/index.js';\nexport * from './protocols/index.js';\n\nexport const version = '0.1.0';\n"],"mappings":";AAmBO,IAAM,aAAN,MAAiB;CACtB,MAAM,gBAAsC;EAE1C,OAAO,CAAC;CACV;CAEA,MAAM,cAAc,OAAwC;EAE1D,OAAO,CAAC;CACV;AACF;;;AChBO,IAAM,oBAAN,MAAwB;CAC7B,aAAa,SAAS,SAAoD;EAGxE,OAAO;CACT;AACF;AAEO,IAAM,uBAAN,MAA2B;CAChC,aAAa,SAAS,UAAqC;EAGzD,OAAO,CAAC;CACV;AACF;;;ACjBO,IAAM,UAAU"}
|
package/dist/manifest.json
CHANGED
package/dist/smrt-knowledge.json
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"schemaVersion": 1,
|
|
3
|
-
"generatedAt": "2026-
|
|
3
|
+
"generatedAt": "2026-07-01T20:03:14.892Z",
|
|
4
4
|
"packageName": "@happyvertical/smrt-gnode",
|
|
5
|
-
"packageVersion": "0.37.
|
|
5
|
+
"packageVersion": "0.37.3",
|
|
6
6
|
"sourceManifestPath": "dist/manifest.json",
|
|
7
7
|
"agentDocPath": "AGENTS.md",
|
|
8
8
|
"sourceHashes": {
|
|
9
|
-
"manifest": "
|
|
10
|
-
"packageJson": "
|
|
9
|
+
"manifest": "771f45f7e36048e06d8875777aca6aae809fcbdefaa551d25120762126c165b9",
|
|
10
|
+
"packageJson": "1104dafa82340bc980a96799c67bffcd042ef8b5fd41736f0eb6392ea5253817",
|
|
11
11
|
"agents": "5e2c6b06a89d78b8d44ff45304477228895406f96f2c067e9926d8d6870ca268"
|
|
12
12
|
},
|
|
13
13
|
"exports": [
|
|
@@ -22,10 +22,10 @@
|
|
|
22
22
|
"@happyvertical/smrt-core": "workspace:*",
|
|
23
23
|
"@happyvertical/sql": "catalog:",
|
|
24
24
|
"@happyvertical/utils": "catalog:",
|
|
25
|
-
"@types/node": "
|
|
25
|
+
"@types/node": "24.13.2",
|
|
26
26
|
"typescript": "^5.9.3",
|
|
27
|
-
"vite": "
|
|
28
|
-
"vitest": "^4.
|
|
27
|
+
"vite": "8.1.2",
|
|
28
|
+
"vitest": "^4.1.9"
|
|
29
29
|
},
|
|
30
30
|
"smrtDependencies": [
|
|
31
31
|
"@happyvertical/smrt-core"
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@happyvertical/smrt-gnode",
|
|
3
|
-
"version": "0.37.
|
|
3
|
+
"version": "0.37.3",
|
|
4
4
|
"description": "SMRT federation library for building federated local knowledge bases (gnodes)",
|
|
5
5
|
"author": "HappyVertical",
|
|
6
6
|
"type": "module",
|
|
@@ -20,18 +20,18 @@
|
|
|
20
20
|
"./manifest.json": "./dist/manifest.json"
|
|
21
21
|
},
|
|
22
22
|
"dependencies": {
|
|
23
|
-
"@happyvertical/ai": "^0.74.
|
|
24
|
-
"@happyvertical/files": "^0.74.
|
|
25
|
-
"@happyvertical/logger": "^0.74.
|
|
26
|
-
"@happyvertical/sql": "^0.74.
|
|
27
|
-
"@happyvertical/utils": "^0.74.
|
|
28
|
-
"@happyvertical/smrt-core": "0.37.
|
|
23
|
+
"@happyvertical/ai": "^0.74.11",
|
|
24
|
+
"@happyvertical/files": "^0.74.11",
|
|
25
|
+
"@happyvertical/logger": "^0.74.11",
|
|
26
|
+
"@happyvertical/sql": "^0.74.11",
|
|
27
|
+
"@happyvertical/utils": "^0.74.11",
|
|
28
|
+
"@happyvertical/smrt-core": "0.37.3"
|
|
29
29
|
},
|
|
30
30
|
"devDependencies": {
|
|
31
|
-
"@types/node": "
|
|
31
|
+
"@types/node": "24.13.2",
|
|
32
32
|
"typescript": "^5.9.3",
|
|
33
|
-
"vite": "
|
|
34
|
-
"vitest": "^4.
|
|
33
|
+
"vite": "8.1.2",
|
|
34
|
+
"vitest": "^4.1.9"
|
|
35
35
|
},
|
|
36
36
|
"publishConfig": {
|
|
37
37
|
"registry": "https://registry.npmjs.org",
|