@happyvertical/smrt-gnode 0.51.31 → 0.51.33

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.
@@ -0,0 +1,21 @@
1
+ /**
2
+ * Federation utilities for gnode P2P discovery and communication
3
+ */
4
+ export interface GnodePeer {
5
+ url: string;
6
+ name: string;
7
+ discoveredAt: Date;
8
+ lastSeen?: Date;
9
+ }
10
+ export interface FederationConfig {
11
+ enabled: boolean;
12
+ discoverability: 'public' | 'private';
13
+ peers: string[];
14
+ autodiscovery: boolean;
15
+ peerExchange: boolean;
16
+ }
17
+ export declare class Federation {
18
+ discoverPeers(): Promise<GnodePeer[]>;
19
+ exchangePeers(_peer: GnodePeer): Promise<GnodePeer[]>;
20
+ }
21
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/federation/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,MAAM,WAAW,SAAS;IACxB,GAAG,EAAE,MAAM,CAAC;IACZ,IAAI,EAAE,MAAM,CAAC;IACb,YAAY,EAAE,IAAI,CAAC;IACnB,QAAQ,CAAC,EAAE,IAAI,CAAC;CACjB;AAED,MAAM,WAAW,gBAAgB;IAC/B,OAAO,EAAE,OAAO,CAAC;IACjB,eAAe,EAAE,QAAQ,GAAG,SAAS,CAAC;IACtC,KAAK,EAAE,MAAM,EAAE,CAAC;IAChB,aAAa,EAAE,OAAO,CAAC;IACvB,YAAY,EAAE,OAAO,CAAC;CACvB;AAED,qBAAa,UAAU;IACf,aAAa,IAAI,OAAO,CAAC,SAAS,EAAE,CAAC;IAKrC,aAAa,CAAC,KAAK,EAAE,SAAS,GAAG,OAAO,CAAC,SAAS,EAAE,CAAC;CAI5D"}
package/dist/index.d.ts CHANGED
@@ -1,46 +1,10 @@
1
- export declare class Federation {
2
- discoverPeers(): Promise<GnodePeer[]>;
3
- exchangePeers(_peer: GnodePeer): Promise<GnodePeer[]>;
4
- }
5
-
6
- export declare interface FederationConfig {
7
- enabled: boolean;
8
- discoverability: 'public' | 'private';
9
- peers: string[];
10
- autodiscovery: boolean;
11
- peerExchange: boolean;
12
- }
13
-
14
- /**
15
- * Federation utilities for gnode P2P discovery and communication
16
- */
17
- export declare interface GnodePeer {
18
- url: string;
19
- name: string;
20
- discoveredAt: Date;
21
- lastSeen?: Date;
22
- }
23
-
24
- export declare class PeerExchangeProtocol {
25
- static exchange(_peerUrl: string): Promise<string[]>;
26
- }
27
-
28
- export declare const version = "0.1.0";
29
-
30
- export declare class WebFingerProtocol {
31
- static discover(_domain: string): Promise<WebFingerResponse | null>;
32
- }
33
-
34
- /**
35
- * Federation protocols for gnode discovery and communication
36
- */
37
- export declare interface WebFingerResponse {
38
- subject: string;
39
- links: Array<{
40
- rel: string;
41
- type?: string;
42
- href: string;
43
- }>;
44
- }
45
-
46
- export { }
1
+ /**
2
+ * @have/gnode - SMRT Federation Library
3
+ *
4
+ * Federated local knowledge bases (gnodes) with P2P discovery and protocols.
5
+ * Built on top of @smrt/core for SMRT object federation.
6
+ */
7
+ export * from './federation/index.js';
8
+ export * from './protocols/index.js';
9
+ export declare const version = "0.1.0";
10
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,cAAc,uBAAuB,CAAC;AACtC,cAAc,sBAAsB,CAAC;AAErC,eAAO,MAAM,OAAO,UAAU,CAAC"}
@@ -2,7 +2,7 @@
2
2
  "version": "1.0.0",
3
3
  "timestamp": 0,
4
4
  "packageName": "@happyvertical/smrt-gnode",
5
- "packageVersion": "0.51.31",
5
+ "packageVersion": "0.51.33",
6
6
  "objects": {},
7
7
  "moduleType": "smrt",
8
8
  "smrtDependencies": [
@@ -0,0 +1,18 @@
1
+ /**
2
+ * Federation protocols for gnode discovery and communication
3
+ */
4
+ export interface WebFingerResponse {
5
+ subject: string;
6
+ links: Array<{
7
+ rel: string;
8
+ type?: string;
9
+ href: string;
10
+ }>;
11
+ }
12
+ export declare class WebFingerProtocol {
13
+ static discover(_domain: string): Promise<WebFingerResponse | null>;
14
+ }
15
+ export declare class PeerExchangeProtocol {
16
+ static exchange(_peerUrl: string): Promise<string[]>;
17
+ }
18
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/protocols/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,MAAM,WAAW,iBAAiB;IAChC,OAAO,EAAE,MAAM,CAAC;IAChB,KAAK,EAAE,KAAK,CAAC;QACX,GAAG,EAAE,MAAM,CAAC;QACZ,IAAI,CAAC,EAAE,MAAM,CAAC;QACd,IAAI,EAAE,MAAM,CAAC;KACd,CAAC,CAAC;CACJ;AAED,qBAAa,iBAAiB;WACf,QAAQ,CAAC,OAAO,EAAE,MAAM,GAAG,OAAO,CAAC,iBAAiB,GAAG,IAAI,CAAC;CAK1E;AAED,qBAAa,oBAAoB;WAClB,QAAQ,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,EAAE,CAAC;CAK3D"}
@@ -3,12 +3,12 @@
3
3
  "sensitiveFieldsExcluded": true,
4
4
  "generatedAt": "1970-01-01T00:00:00.000Z",
5
5
  "packageName": "@happyvertical/smrt-gnode",
6
- "packageVersion": "0.51.31",
6
+ "packageVersion": "0.51.33",
7
7
  "sourceManifestPath": "dist/manifest.json",
8
8
  "agentDocPath": "AGENTS.md",
9
9
  "sourceHashes": {
10
- "manifest": "ba803eeb9c2cc900ee5fdfa6a13a3b655b5d8fbd0b6b540fdcfc3e0db5e6da81",
11
- "packageJson": "203304d8e3fc42a4dde9ed837d261070ea7c6e249897b6901f179ce59435f099",
10
+ "manifest": "3012efe390f669d89b5c9bb29532ff220f6a5f355ca6012ec73162471e5a6491",
11
+ "packageJson": "fe31b8c9f67ac6d91e4c7886bb5a805c8c435d64f769a3a4d4d102a04d38c174",
12
12
  "agents": "5e2c6b06a89d78b8d44ff45304477228895406f96f2c067e9926d8d6870ca268"
13
13
  },
14
14
  "exports": [
@@ -24,7 +24,7 @@
24
24
  "@happyvertical/sql": "catalog:",
25
25
  "@happyvertical/utils": "catalog:",
26
26
  "@types/node": "24.13.6",
27
- "typescript": "5.9.3",
27
+ "typescript": "6.0.3",
28
28
  "vite": "8.1.4",
29
29
  "vitest": "4.1.10"
30
30
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@happyvertical/smrt-gnode",
3
- "version": "0.51.31",
3
+ "version": "0.51.33",
4
4
  "description": "SMRT federation library for building federated local knowledge bases (gnodes)",
5
5
  "author": "HappyVertical",
6
6
  "type": "module",
@@ -23,13 +23,13 @@
23
23
  "@happyvertical/ai": "^0.94.1",
24
24
  "@happyvertical/files": "^0.94.1",
25
25
  "@happyvertical/logger": "^0.94.1",
26
- "@happyvertical/smrt-core": "0.51.31",
26
+ "@happyvertical/smrt-core": "0.51.33",
27
27
  "@happyvertical/sql": "^0.94.1",
28
28
  "@happyvertical/utils": "^0.94.1"
29
29
  },
30
30
  "devDependencies": {
31
31
  "@types/node": "24.13.6",
32
- "typescript": "5.9.3",
32
+ "typescript": "6.0.3",
33
33
  "vite": "8.1.4",
34
34
  "vitest": "4.1.10"
35
35
  },