@happyvertical/smrt-gnode 0.51.32 → 0.51.34
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/federation/index.d.ts +21 -0
- package/dist/federation/index.d.ts.map +1 -0
- package/dist/index.d.ts +10 -46
- package/dist/index.d.ts.map +1 -0
- package/dist/manifest.json +1 -1
- package/dist/protocols/index.d.ts +18 -0
- package/dist/protocols/index.d.ts.map +1 -0
- package/dist/smrt-knowledge.json +4 -4
- package/package.json +3 -3
|
@@ -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
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
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"}
|
package/dist/manifest.json
CHANGED
|
@@ -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"}
|
package/dist/smrt-knowledge.json
CHANGED
|
@@ -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.
|
|
6
|
+
"packageVersion": "0.51.34",
|
|
7
7
|
"sourceManifestPath": "dist/manifest.json",
|
|
8
8
|
"agentDocPath": "AGENTS.md",
|
|
9
9
|
"sourceHashes": {
|
|
10
|
-
"manifest": "
|
|
11
|
-
"packageJson": "
|
|
10
|
+
"manifest": "1e5073ef5331efcefd6082c8c2ef4749afa5c7d21ec6eb8b9447d7d8dd32d715",
|
|
11
|
+
"packageJson": "ffb681abca704de2f83267ebfba5892b46ae038bf4ddf42849ff48c2a24bfad0",
|
|
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": "
|
|
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.
|
|
3
|
+
"version": "0.51.34",
|
|
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.
|
|
26
|
+
"@happyvertical/smrt-core": "0.51.34",
|
|
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": "
|
|
32
|
+
"typescript": "6.0.3",
|
|
33
33
|
"vite": "8.1.4",
|
|
34
34
|
"vitest": "4.1.10"
|
|
35
35
|
},
|