@xdarkicex/openclaw-memory-libravdb 1.4.55 → 1.4.56

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.
@@ -3,6 +3,7 @@ export interface GrpcClientOptions {
3
3
  secret?: string;
4
4
  timeoutMs?: number;
5
5
  }
6
+ export declare function resolveGrpcTarget(endpoint: string): string;
6
7
  export declare class GrpcKernelClient {
7
8
  private client;
8
9
  private readonly secret;
@@ -7,6 +7,9 @@ const __dirname = path.dirname(fileURLToPath(import.meta.url));
7
7
  // The proto file is expected to be copied to dist/proto/ at build time.
8
8
  // In source, it's at api/proto/.
9
9
  const PROTO_PATH = path.resolve(__dirname, "./proto/intelligence_kernel/v1/kernel.proto");
10
+ export function resolveGrpcTarget(endpoint) {
11
+ return endpoint.startsWith("tcp:") ? endpoint.substring(4) : endpoint;
12
+ }
10
13
  export class GrpcKernelClient {
11
14
  client;
12
15
  secret;
@@ -24,11 +27,7 @@ export class GrpcKernelClient {
24
27
  });
25
28
  const protoDescriptor = grpc.loadPackageDefinition(packageDefinition);
26
29
  const kernelService = protoDescriptor.intelligence_kernel.v1.IntelligenceKernel;
27
- const target = options.endpoint.startsWith("tcp:")
28
- ? options.endpoint.substring(4)
29
- : options.endpoint.startsWith("unix:")
30
- ? options.endpoint.substring(5)
31
- : options.endpoint;
30
+ const target = resolveGrpcTarget(options.endpoint);
32
31
  this.client = new kernelService(target, grpc.credentials.createInsecure());
33
32
  }
34
33
  getMetadata(signed = true) {
package/dist/index.js CHANGED
@@ -39260,6 +39260,9 @@ import path3 from "node:path";
39260
39260
  import { fileURLToPath } from "node:url";
39261
39261
  var __dirname2 = path3.dirname(fileURLToPath(import.meta.url));
39262
39262
  var PROTO_PATH = path3.resolve(__dirname2, "./proto/intelligence_kernel/v1/kernel.proto");
39263
+ function resolveGrpcTarget(endpoint) {
39264
+ return endpoint.startsWith("tcp:") ? endpoint.substring(4) : endpoint;
39265
+ }
39263
39266
  var GrpcKernelClient = class {
39264
39267
  client;
39265
39268
  secret;
@@ -39277,7 +39280,7 @@ var GrpcKernelClient = class {
39277
39280
  });
39278
39281
  const protoDescriptor = grpc.loadPackageDefinition(packageDefinition);
39279
39282
  const kernelService = protoDescriptor.intelligence_kernel.v1.IntelligenceKernel;
39280
- const target = options.endpoint.startsWith("tcp:") ? options.endpoint.substring(4) : options.endpoint.startsWith("unix:") ? options.endpoint.substring(5) : options.endpoint;
39283
+ const target = resolveGrpcTarget(options.endpoint);
39281
39284
  this.client = new kernelService(target, grpc.credentials.createInsecure());
39282
39285
  }
39283
39286
  getMetadata(signed = true) {
@@ -2,7 +2,7 @@
2
2
  "id": "libravdb-memory",
3
3
  "name": "LibraVDB Memory",
4
4
  "description": "Persistent vector memory with three-tier hybrid scoring",
5
- "version": "1.4.55",
5
+ "version": "1.4.56",
6
6
  "kind": [
7
7
  "memory",
8
8
  "context-engine"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xdarkicex/openclaw-memory-libravdb",
3
- "version": "1.4.55",
3
+ "version": "1.4.56",
4
4
  "type": "module",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",