@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 CHANGED
@@ -1,26 +1,28 @@
1
- class Federation {
2
- async discoverPeers() {
3
- return [];
4
- }
5
- async exchangePeers(_peer) {
6
- return [];
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
- //# sourceMappingURL=index.js.map
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"],"names":[],"mappings":"AAmBO,MAAM,WAAW;AAAA,EACtB,MAAM,gBAAsC;AAE1C,WAAO,CAAA;AAAA,EACT;AAAA,EAEA,MAAM,cAAc,OAAwC;AAE1D,WAAO,CAAA;AAAA,EACT;AACF;AChBO,MAAM,kBAAkB;AAAA,EAC7B,aAAa,SAAS,SAAoD;AAGxE,WAAO;AAAA,EACT;AACF;AAEO,MAAM,qBAAqB;AAAA,EAChC,aAAa,SAAS,UAAqC;AAGzD,WAAO,CAAA;AAAA,EACT;AACF;ACjBO,MAAM,UAAU;"}
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"}
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "version": "1.0.0",
3
- "timestamp": 1782792416989,
3
+ "timestamp": 1782936194199,
4
4
  "packageName": "@happyvertical/smrt-gnode",
5
- "packageVersion": "0.37.1",
5
+ "packageVersion": "0.37.3",
6
6
  "objects": {},
7
7
  "moduleType": "smrt",
8
8
  "smrtDependencies": [
@@ -1,13 +1,13 @@
1
1
  {
2
2
  "schemaVersion": 1,
3
- "generatedAt": "2026-06-30T04:07:02.112Z",
3
+ "generatedAt": "2026-07-01T20:03:14.892Z",
4
4
  "packageName": "@happyvertical/smrt-gnode",
5
- "packageVersion": "0.37.1",
5
+ "packageVersion": "0.37.3",
6
6
  "sourceManifestPath": "dist/manifest.json",
7
7
  "agentDocPath": "AGENTS.md",
8
8
  "sourceHashes": {
9
- "manifest": "045aa2aa0e98b4840937e826d86bce697da904c4160f12cca9e7340090e986af",
10
- "packageJson": "73fce37333af2bf531765811f23c3e0cef5e4a3056a25a0266efd31e6351cbb5",
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.0.9",
25
+ "@types/node": "24.13.2",
26
26
  "typescript": "^5.9.3",
27
- "vite": "7.3.6",
28
- "vitest": "^4.0.17"
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.1",
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.10",
24
- "@happyvertical/files": "^0.74.10",
25
- "@happyvertical/logger": "^0.74.10",
26
- "@happyvertical/sql": "^0.74.10",
27
- "@happyvertical/utils": "^0.74.10",
28
- "@happyvertical/smrt-core": "0.37.1"
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": "25.0.9",
31
+ "@types/node": "24.13.2",
32
32
  "typescript": "^5.9.3",
33
- "vite": "7.3.6",
34
- "vitest": "^4.0.17"
33
+ "vite": "8.1.2",
34
+ "vitest": "^4.1.9"
35
35
  },
36
36
  "publishConfig": {
37
37
  "registry": "https://registry.npmjs.org",