@xdarkicex/openclaw-memory-libravdb 1.4.48 → 1.4.49

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
@@ -38292,6 +38292,9 @@ var IngestQueue = class {
38292
38292
  }
38293
38293
  };
38294
38294
  function splitIntoChunks(text, maxTokens) {
38295
+ if (!(maxTokens > 0)) {
38296
+ return [{ text, ordinal: 0 }];
38297
+ }
38295
38298
  const maxChars = maxTokens * 4;
38296
38299
  if (text.length <= maxChars) {
38297
38300
  return [{ text, ordinal: 0 }];
@@ -39427,6 +39430,7 @@ var SidecarSupervisor = class {
39427
39430
  async start() {
39428
39431
  const endpoint = await this.runtime.resolveEndpoint(this.cfg);
39429
39432
  const socket = await this.connectEndpointWithRetry(endpoint);
39433
+ this.retries = 0;
39430
39434
  this.reconnectScheduled = false;
39431
39435
  if (this.socket instanceof SupervisorSocket) {
39432
39436
  this.socket.bind(socket);
@@ -56,6 +56,11 @@ export class IngestQueue {
56
56
  }
57
57
  function splitIntoChunks(text, maxTokens) {
58
58
  // Approximate: 4 chars per token for typical English text
59
+ // Guard: zero/negative budget would make maxChars <= 0, causing an infinite
60
+ // loop because the offset never advances past an empty slice.
61
+ if (!(maxTokens > 0)) {
62
+ return [{ text, ordinal: 0 }];
63
+ }
59
64
  const maxChars = maxTokens * 4;
60
65
  if (text.length <= maxChars) {
61
66
  return [{ text, ordinal: 0 }];
package/dist/sidecar.js CHANGED
@@ -207,6 +207,7 @@ class SidecarSupervisor {
207
207
  async start() {
208
208
  const endpoint = await this.runtime.resolveEndpoint(this.cfg);
209
209
  const socket = await this.connectEndpointWithRetry(endpoint);
210
+ this.retries = 0;
210
211
  this.reconnectScheduled = false;
211
212
  if (this.socket instanceof SupervisorSocket) {
212
213
  this.socket.bind(socket);
@@ -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.48",
5
+ "version": "1.4.49",
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.48",
3
+ "version": "1.4.49",
4
4
  "type": "module",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",