superbrain-distributed-sdk 0.7.4 → 0.7.7
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/README.md +2 -2
- package/index.js +11 -6
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
# 🧠 superbrain-distributed-sdk v0.7.
|
|
1
|
+
# 🧠 superbrain-distributed-sdk v0.7.6 — TypeScript/Node.js
|
|
2
2
|
|
|
3
3
|
[](https://badge.fury.io/js/superbrain-distributed-sdk)
|
|
4
4
|
[](https://github.com/anispy211/superbrainSDKDemo)
|
|
5
|
-
[](https://github.com/anispy211/superbrainSdk/blob/main/LICENSE)
|
|
6
6
|
[](https://nodejs.org)
|
|
7
7
|
|
|
8
8
|
> **The Distributed RAM Fabric for AI Agents** — Share terabytes of context across your LLM cluster at microsecond speeds using 36-byte UUID pointers.
|
package/index.js
CHANGED
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function (o, m, k, k2) {
|
|
3
3
|
if (k2 === undefined) k2 = k;
|
|
4
4
|
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
5
|
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
|
|
6
|
+
desc = { enumerable: true, get: function () { return m[k]; } };
|
|
7
7
|
}
|
|
8
8
|
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
9
|
+
}) : (function (o, m, k, k2) {
|
|
10
10
|
if (k2 === undefined) k2 = k;
|
|
11
11
|
o[k2] = m[k];
|
|
12
12
|
}));
|
|
13
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function (o, v) {
|
|
14
14
|
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
-
}) : function(o, v) {
|
|
15
|
+
}) : function (o, v) {
|
|
16
16
|
o["default"] = v;
|
|
17
17
|
});
|
|
18
18
|
var __importStar = (this && this.__importStar) || (function () {
|
|
19
|
-
var ownKeys = function(o) {
|
|
19
|
+
var ownKeys = function (o) {
|
|
20
20
|
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
21
21
|
var ar = [];
|
|
22
22
|
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
@@ -41,6 +41,8 @@ const koffi_1 = __importDefault(require("koffi"));
|
|
|
41
41
|
const os = __importStar(require("os"));
|
|
42
42
|
const path = __importStar(require("path"));
|
|
43
43
|
const fs = __importStar(require("fs"));
|
|
44
|
+
const telemetry_1 = require("./telemetry");
|
|
45
|
+
const telemetry = new telemetry_1.UsageAnalytics();
|
|
44
46
|
class SuperbrainError extends Error {
|
|
45
47
|
constructor(message) {
|
|
46
48
|
super(message);
|
|
@@ -87,6 +89,9 @@ class Client {
|
|
|
87
89
|
throw new SuperbrainError(res);
|
|
88
90
|
}
|
|
89
91
|
this.clientId = res;
|
|
92
|
+
|
|
93
|
+
// Run anonymous usage analytics once per day
|
|
94
|
+
telemetry.runDailySync().catch(() => { });
|
|
90
95
|
}
|
|
91
96
|
register(agentId) {
|
|
92
97
|
const res = SB_Register(this.clientId, agentId);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "superbrain-distributed-sdk",
|
|
3
|
-
"version": "0.7.
|
|
3
|
+
"version": "0.7.7",
|
|
4
4
|
"description": "Premium High-Performance Distributed Memory SDK for AI Agents",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"types": "index.d.ts",
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
"rag"
|
|
27
27
|
],
|
|
28
28
|
"author": "Anispy",
|
|
29
|
-
"license": "
|
|
29
|
+
"license": "BSL-1.1",
|
|
30
30
|
"engines": {
|
|
31
31
|
"node": ">=18.0.0"
|
|
32
32
|
},
|