@openclaw/memory-lancedb 2026.10.2 → 2026.10.5-beta.2

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.
@@ -1,5 +1,5 @@
1
1
  import { a as __toCommonJS, i as __require, n as __esmMin, r as __exportAll, t as __commonJSMin } from "./rolldown-runtime-BMI-E3GI.mjs";
2
- //#region node_modules/.pnpm/@lancedb+lancedb@0.39.0_@types+node@26.6.2_apache-arrow@21.2.0/node_modules/@lancedb/lancedb/dist/arrow_type.js
2
+ //#region node_modules/.pnpm/@lancedb+lancedb@0.39.0_@types+node@26.6.4_apache-arrow@21.2.0/node_modules/@lancedb/lancedb/dist/arrow_type.js
3
3
  var require_arrow_type = /* @__PURE__ */ __commonJSMin(((exports) => {
4
4
  Object.defineProperty(exports, "__esModule", { value: true });
5
5
  exports.typedArrayToArrowType = typedArrayToArrowType;
@@ -44,7 +44,7 @@ var require_arrow_type = /* @__PURE__ */ __commonJSMin(((exports) => {
44
44
  }
45
45
  }));
46
46
  //#endregion
47
- //#region node_modules/.pnpm/@lancedb+lancedb@0.39.0_@types+node@26.6.2_apache-arrow@21.2.0/node_modules/@lancedb/lancedb/dist/native.js
47
+ //#region node_modules/.pnpm/@lancedb+lancedb@0.39.0_@types+node@26.6.4_apache-arrow@21.2.0/node_modules/@lancedb/lancedb/dist/native.js
48
48
  var require_native = /* @__PURE__ */ __commonJSMin(((exports, module) => {
49
49
  const { readFileSync } = __require("node:fs");
50
50
  let nativeBinding = null;
@@ -544,7 +544,7 @@ var require_native = /* @__PURE__ */ __commonJSMin(((exports, module) => {
544
544
  module.exports.tokenize = nativeBinding.tokenize;
545
545
  }));
546
546
  //#endregion
547
- //#region node_modules/.pnpm/@lancedb+lancedb@0.39.0_@types+node@26.6.2_apache-arrow@21.2.0/node_modules/@lancedb/lancedb/dist/blob.js
547
+ //#region node_modules/.pnpm/@lancedb+lancedb@0.39.0_@types+node@26.6.4_apache-arrow@21.2.0/node_modules/@lancedb/lancedb/dist/blob.js
548
548
  var require_blob = /* @__PURE__ */ __commonJSMin(((exports) => {
549
549
  Object.defineProperty(exports, "__esModule", { value: true });
550
550
  exports.BlobFile = void 0;
@@ -1904,7 +1904,7 @@ var require_Reflect = /* @__PURE__ */ __commonJSMin((() => {
1904
1904
  })(Reflect || (Reflect = {}));
1905
1905
  }));
1906
1906
  //#endregion
1907
- //#region node_modules/.pnpm/@lancedb+lancedb@0.39.0_@types+node@26.6.2_apache-arrow@21.2.0/node_modules/@lancedb/lancedb/dist/embedding/registry.js
1907
+ //#region node_modules/.pnpm/@lancedb+lancedb@0.39.0_@types+node@26.6.4_apache-arrow@21.2.0/node_modules/@lancedb/lancedb/dist/embedding/registry.js
1908
1908
  var require_registry = /* @__PURE__ */ __commonJSMin(((exports) => {
1909
1909
  Object.defineProperty(exports, "__esModule", { value: true });
1910
1910
  exports.EmbeddingFunctionRegistry = void 0;
@@ -2096,7 +2096,7 @@ var require_registry = /* @__PURE__ */ __commonJSMin(((exports) => {
2096
2096
  }
2097
2097
  }));
2098
2098
  //#endregion
2099
- //#region node_modules/.pnpm/@lancedb+lancedb@0.39.0_@types+node@26.6.2_apache-arrow@21.2.0/node_modules/@lancedb/lancedb/dist/sanitize.js
2099
+ //#region node_modules/.pnpm/@lancedb+lancedb@0.39.0_@types+node@26.6.4_apache-arrow@21.2.0/node_modules/@lancedb/lancedb/dist/sanitize.js
2100
2100
  var require_sanitize = /* @__PURE__ */ __commonJSMin(((exports) => {
2101
2101
  Object.defineProperty(exports, "__esModule", { value: true });
2102
2102
  exports.sanitizeMetadata = sanitizeMetadata;
@@ -2438,7 +2438,7 @@ var require_sanitize = /* @__PURE__ */ __commonJSMin(((exports) => {
2438
2438
  }
2439
2439
  }));
2440
2440
  //#endregion
2441
- //#region node_modules/.pnpm/@lancedb+lancedb@0.39.0_@types+node@26.6.2_apache-arrow@21.2.0/node_modules/@lancedb/lancedb/dist/schema.js
2441
+ //#region node_modules/.pnpm/@lancedb+lancedb@0.39.0_@types+node@26.6.4_apache-arrow@21.2.0/node_modules/@lancedb/lancedb/dist/schema.js
2442
2442
  var require_schema = /* @__PURE__ */ __commonJSMin(((exports) => {
2443
2443
  Object.defineProperty(exports, "__esModule", { value: true });
2444
2444
  exports.inferSchema = inferSchema;
@@ -2695,7 +2695,7 @@ var require_schema = /* @__PURE__ */ __commonJSMin(((exports) => {
2695
2695
  }
2696
2696
  }));
2697
2697
  //#endregion
2698
- //#region node_modules/.pnpm/@lancedb+lancedb@0.39.0_@types+node@26.6.2_apache-arrow@21.2.0/node_modules/@lancedb/lancedb/dist/arrow.js
2698
+ //#region node_modules/.pnpm/@lancedb+lancedb@0.39.0_@types+node@26.6.4_apache-arrow@21.2.0/node_modules/@lancedb/lancedb/dist/arrow.js
2699
2699
  var require_arrow = /* @__PURE__ */ __commonJSMin(((exports) => {
2700
2700
  var __createBinding = exports && exports.__createBinding || (Object.create ? (function(o, m, k, k2) {
2701
2701
  if (k2 === void 0) k2 = k;
@@ -3539,7 +3539,7 @@ var require_arrow = /* @__PURE__ */ __commonJSMin(((exports) => {
3539
3539
  }
3540
3540
  }));
3541
3541
  //#endregion
3542
- //#region node_modules/.pnpm/@lancedb+lancedb@0.39.0_@types+node@26.6.2_apache-arrow@21.2.0/node_modules/@lancedb/lancedb/dist/job.js
3542
+ //#region node_modules/.pnpm/@lancedb+lancedb@0.39.0_@types+node@26.6.4_apache-arrow@21.2.0/node_modules/@lancedb/lancedb/dist/job.js
3543
3543
  var require_job = /* @__PURE__ */ __commonJSMin(((exports) => {
3544
3544
  Object.defineProperty(exports, "__esModule", { value: true });
3545
3545
  exports.Job = void 0;
@@ -3679,7 +3679,7 @@ var require_job = /* @__PURE__ */ __commonJSMin(((exports) => {
3679
3679
  }
3680
3680
  }));
3681
3681
  //#endregion
3682
- //#region node_modules/.pnpm/@lancedb+lancedb@0.39.0_@types+node@26.6.2_apache-arrow@21.2.0/node_modules/@lancedb/lancedb/dist/materialized_view.js
3682
+ //#region node_modules/.pnpm/@lancedb+lancedb@0.39.0_@types+node@26.6.4_apache-arrow@21.2.0/node_modules/@lancedb/lancedb/dist/materialized_view.js
3683
3683
  var require_materialized_view = /* @__PURE__ */ __commonJSMin(((exports) => {
3684
3684
  Object.defineProperty(exports, "__esModule", { value: true });
3685
3685
  exports.MaterializedView = exports.DEFINITION_META_KEY = void 0;
@@ -3771,7 +3771,7 @@ var require_materialized_view = /* @__PURE__ */ __commonJSMin(((exports) => {
3771
3771
  exports.MaterializedView = MaterializedView;
3772
3772
  }));
3773
3773
  //#endregion
3774
- //#region node_modules/.pnpm/@lancedb+lancedb@0.39.0_@types+node@26.6.2_apache-arrow@21.2.0/node_modules/@lancedb/lancedb/dist/merge.js
3774
+ //#region node_modules/.pnpm/@lancedb+lancedb@0.39.0_@types+node@26.6.4_apache-arrow@21.2.0/node_modules/@lancedb/lancedb/dist/merge.js
3775
3775
  var require_merge = /* @__PURE__ */ __commonJSMin(((exports) => {
3776
3776
  Object.defineProperty(exports, "__esModule", { value: true });
3777
3777
  exports.MergeInsertBuilder = void 0;
@@ -3885,7 +3885,7 @@ var require_merge = /* @__PURE__ */ __commonJSMin(((exports) => {
3885
3885
  };
3886
3886
  }));
3887
3887
  //#endregion
3888
- //#region node_modules/.pnpm/@lancedb+lancedb@0.39.0_@types+node@26.6.2_apache-arrow@21.2.0/node_modules/@lancedb/lancedb/dist/query.js
3888
+ //#region node_modules/.pnpm/@lancedb+lancedb@0.39.0_@types+node@26.6.4_apache-arrow@21.2.0/node_modules/@lancedb/lancedb/dist/query.js
3889
3889
  var require_query = /* @__PURE__ */ __commonJSMin(((exports) => {
3890
3890
  Object.defineProperty(exports, "__esModule", { value: true });
3891
3891
  exports.BooleanQuery = exports.MultiMatchQuery = exports.BoostQuery = exports.PhraseQuery = exports.MatchQuery = exports.Occur = exports.Operator = exports.FullTextQueryType = exports.Query = exports.AutoQuery = exports.TakeQuery = exports.VectorQuery = exports.StandardQueryBase = exports.QueryBase = void 0;
@@ -4771,7 +4771,7 @@ var require_query = /* @__PURE__ */ __commonJSMin(((exports) => {
4771
4771
  exports.BooleanQuery = BooleanQuery;
4772
4772
  }));
4773
4773
  //#endregion
4774
- //#region node_modules/.pnpm/@lancedb+lancedb@0.39.0_@types+node@26.6.2_apache-arrow@21.2.0/node_modules/@lancedb/lancedb/dist/util.js
4774
+ //#region node_modules/.pnpm/@lancedb+lancedb@0.39.0_@types+node@26.6.4_apache-arrow@21.2.0/node_modules/@lancedb/lancedb/dist/util.js
4775
4775
  var require_util = /* @__PURE__ */ __commonJSMin(((exports) => {
4776
4776
  Object.defineProperty(exports, "__esModule", { value: true });
4777
4777
  exports.TTLCache = void 0;
@@ -4829,7 +4829,7 @@ var require_util = /* @__PURE__ */ __commonJSMin(((exports) => {
4829
4829
  exports.TTLCache = TTLCache;
4830
4830
  }));
4831
4831
  //#endregion
4832
- //#region node_modules/.pnpm/@lancedb+lancedb@0.39.0_@types+node@26.6.2_apache-arrow@21.2.0/node_modules/@lancedb/lancedb/dist/table.js
4832
+ //#region node_modules/.pnpm/@lancedb+lancedb@0.39.0_@types+node@26.6.4_apache-arrow@21.2.0/node_modules/@lancedb/lancedb/dist/table.js
4833
4833
  var require_table = /* @__PURE__ */ __commonJSMin(((exports) => {
4834
4834
  Object.defineProperty(exports, "__esModule", { value: true });
4835
4835
  exports.Branches = exports.LocalTable = exports.Table = void 0;
@@ -5253,7 +5253,7 @@ var require_table = /* @__PURE__ */ __commonJSMin(((exports) => {
5253
5253
  }
5254
5254
  }));
5255
5255
  //#endregion
5256
- //#region node_modules/.pnpm/@lancedb+lancedb@0.39.0_@types+node@26.6.2_apache-arrow@21.2.0/node_modules/@lancedb/lancedb/dist/connection.js
5256
+ //#region node_modules/.pnpm/@lancedb+lancedb@0.39.0_@types+node@26.6.4_apache-arrow@21.2.0/node_modules/@lancedb/lancedb/dist/connection.js
5257
5257
  var require_connection = /* @__PURE__ */ __commonJSMin(((exports) => {
5258
5258
  Object.defineProperty(exports, "__esModule", { value: true });
5259
5259
  exports.LocalConnection = exports.Connection = void 0;
@@ -6997,7 +6997,7 @@ var init_esm = __esmMin((() => {
6997
6997
  };
6998
6998
  }));
6999
6999
  //#endregion
7000
- //#region node_modules/.pnpm/@lancedb+lancedb@0.39.0_@types+node@26.6.2_apache-arrow@21.2.0/node_modules/@lancedb/lancedb/dist/otel.js
7000
+ //#region node_modules/.pnpm/@lancedb+lancedb@0.39.0_@types+node@26.6.4_apache-arrow@21.2.0/node_modules/@lancedb/lancedb/dist/otel.js
7001
7001
  var require_otel = /* @__PURE__ */ __commonJSMin(((exports) => {
7002
7002
  Object.defineProperty(exports, "__esModule", { value: true });
7003
7003
  exports.instrumentLanceDbMetrics = instrumentLanceDbMetrics;
@@ -7081,7 +7081,7 @@ var require_otel = /* @__PURE__ */ __commonJSMin(((exports) => {
7081
7081
  }
7082
7082
  }));
7083
7083
  //#endregion
7084
- //#region node_modules/.pnpm/@lancedb+lancedb@0.39.0_@types+node@26.6.2_apache-arrow@21.2.0/node_modules/@lancedb/lancedb/dist/indices.js
7084
+ //#region node_modules/.pnpm/@lancedb+lancedb@0.39.0_@types+node@26.6.4_apache-arrow@21.2.0/node_modules/@lancedb/lancedb/dist/indices.js
7085
7085
  var require_indices = /* @__PURE__ */ __commonJSMin(((exports) => {
7086
7086
  Object.defineProperty(exports, "__esModule", { value: true });
7087
7087
  exports.Index = void 0;
@@ -7247,7 +7247,7 @@ var require_indices = /* @__PURE__ */ __commonJSMin(((exports) => {
7247
7247
  };
7248
7248
  }));
7249
7249
  //#endregion
7250
- //#region node_modules/.pnpm/@lancedb+lancedb@0.39.0_@types+node@26.6.2_apache-arrow@21.2.0/node_modules/@lancedb/lancedb/dist/header.js
7250
+ //#region node_modules/.pnpm/@lancedb+lancedb@0.39.0_@types+node@26.6.4_apache-arrow@21.2.0/node_modules/@lancedb/lancedb/dist/header.js
7251
7251
  var require_header = /* @__PURE__ */ __commonJSMin(((exports) => {
7252
7252
  Object.defineProperty(exports, "__esModule", { value: true });
7253
7253
  exports.OAuthHeaderProvider = exports.StaticHeaderProvider = exports.HeaderProvider = void 0;
@@ -7437,7 +7437,7 @@ var require_header = /* @__PURE__ */ __commonJSMin(((exports) => {
7437
7437
  exports.OAuthHeaderProvider = OAuthHeaderProvider;
7438
7438
  }));
7439
7439
  //#endregion
7440
- //#region node_modules/.pnpm/@lancedb+lancedb@0.39.0_@types+node@26.6.2_apache-arrow@21.2.0/node_modules/@lancedb/lancedb/dist/oauth.js
7440
+ //#region node_modules/.pnpm/@lancedb+lancedb@0.39.0_@types+node@26.6.4_apache-arrow@21.2.0/node_modules/@lancedb/lancedb/dist/oauth.js
7441
7441
  var require_oauth = /* @__PURE__ */ __commonJSMin(((exports) => {
7442
7442
  Object.defineProperty(exports, "__esModule", { value: true });
7443
7443
  exports.OAuthFlowType = void 0;
@@ -7453,7 +7453,7 @@ var require_oauth = /* @__PURE__ */ __commonJSMin(((exports) => {
7453
7453
  })(OAuthFlowType || (exports.OAuthFlowType = OAuthFlowType = {}));
7454
7454
  }));
7455
7455
  //#endregion
7456
- //#region node_modules/.pnpm/@lancedb+lancedb@0.39.0_@types+node@26.6.2_apache-arrow@21.2.0/node_modules/@lancedb/lancedb/dist/embedding/embedding_function.js
7456
+ //#region node_modules/.pnpm/@lancedb+lancedb@0.39.0_@types+node@26.6.4_apache-arrow@21.2.0/node_modules/@lancedb/lancedb/dist/embedding/embedding_function.js
7457
7457
  var require_embedding_function = /* @__PURE__ */ __commonJSMin(((exports) => {
7458
7458
  Object.defineProperty(exports, "__esModule", { value: true });
7459
7459
  exports.TextEmbeddingFunction = exports.EmbeddingFunction = void 0;
@@ -7601,7 +7601,7 @@ var require_embedding_function = /* @__PURE__ */ __commonJSMin(((exports) => {
7601
7601
  exports.TextEmbeddingFunction = TextEmbeddingFunction;
7602
7602
  }));
7603
7603
  //#endregion
7604
- //#region node_modules/.pnpm/@lancedb+lancedb@0.39.0_@types+node@26.6.2_apache-arrow@21.2.0/node_modules/@lancedb/lancedb/dist/embedding/openai.js
7604
+ //#region node_modules/.pnpm/@lancedb+lancedb@0.39.0_@types+node@26.6.4_apache-arrow@21.2.0/node_modules/@lancedb/lancedb/dist/embedding/openai.js
7605
7605
  var require_openai = /* @__PURE__ */ __commonJSMin(((exports) => {
7606
7606
  Object.defineProperty(exports, "__esModule", { value: true });
7607
7607
  exports.OpenAIEmbeddingFunction = void 0;
@@ -7665,7 +7665,7 @@ var require_openai = /* @__PURE__ */ __commonJSMin(((exports) => {
7665
7665
  (0, registry_1.registerBuiltIn)("openai", OpenAIEmbeddingFunction);
7666
7666
  }));
7667
7667
  //#endregion
7668
- //#region node_modules/.pnpm/@lancedb+lancedb@0.39.0_@types+node@26.6.2_apache-arrow@21.2.0/node_modules/@lancedb/lancedb/dist/embedding/transformers.js
7668
+ //#region node_modules/.pnpm/@lancedb+lancedb@0.39.0_@types+node@26.6.4_apache-arrow@21.2.0/node_modules/@lancedb/lancedb/dist/embedding/transformers.js
7669
7669
  var require_transformers = /* @__PURE__ */ __commonJSMin(((exports) => {
7670
7670
  Object.defineProperty(exports, "__esModule", { value: true });
7671
7671
  exports.TransformersEmbeddingFunction = void 0;
@@ -7752,7 +7752,7 @@ var require_transformers = /* @__PURE__ */ __commonJSMin(((exports) => {
7752
7752
  };
7753
7753
  }));
7754
7754
  //#endregion
7755
- //#region node_modules/.pnpm/@lancedb+lancedb@0.39.0_@types+node@26.6.2_apache-arrow@21.2.0/node_modules/@lancedb/lancedb/dist/embedding/index.js
7755
+ //#region node_modules/.pnpm/@lancedb+lancedb@0.39.0_@types+node@26.6.4_apache-arrow@21.2.0/node_modules/@lancedb/lancedb/dist/embedding/index.js
7756
7756
  var require_embedding = /* @__PURE__ */ __commonJSMin(((exports) => {
7757
7757
  Object.defineProperty(exports, "__esModule", { value: true });
7758
7758
  exports.register = exports.parseEmbeddingMetadata = exports.EmbeddingFunctionRegistry = exports.TextEmbeddingFunction = exports.EmbeddingFunction = void 0;
@@ -7872,7 +7872,7 @@ var require_embedding = /* @__PURE__ */ __commonJSMin(((exports) => {
7872
7872
  }
7873
7873
  }));
7874
7874
  //#endregion
7875
- //#region node_modules/.pnpm/@lancedb+lancedb@0.39.0_@types+node@26.6.2_apache-arrow@21.2.0/node_modules/@lancedb/lancedb/dist/permutation.js
7875
+ //#region node_modules/.pnpm/@lancedb+lancedb@0.39.0_@types+node@26.6.4_apache-arrow@21.2.0/node_modules/@lancedb/lancedb/dist/permutation.js
7876
7876
  var require_permutation = /* @__PURE__ */ __commonJSMin(((exports) => {
7877
7877
  Object.defineProperty(exports, "__esModule", { value: true });
7878
7878
  exports.PermutationBuilder = void 0;
@@ -8052,7 +8052,7 @@ var require_permutation = /* @__PURE__ */ __commonJSMin(((exports) => {
8052
8052
  }
8053
8053
  }));
8054
8054
  //#endregion
8055
- //#region node_modules/.pnpm/@lancedb+lancedb@0.39.0_@types+node@26.6.2_apache-arrow@21.2.0/node_modules/@lancedb/lancedb/dist/scannable.js
8055
+ //#region node_modules/.pnpm/@lancedb+lancedb@0.39.0_@types+node@26.6.4_apache-arrow@21.2.0/node_modules/@lancedb/lancedb/dist/scannable.js
8056
8056
  var require_scannable = /* @__PURE__ */ __commonJSMin(((exports) => {
8057
8057
  Object.defineProperty(exports, "__esModule", { value: true });
8058
8058
  exports.Scannable = void 0;
@@ -8187,7 +8187,7 @@ var require_scannable = /* @__PURE__ */ __commonJSMin(((exports) => {
8187
8187
  }
8188
8188
  }));
8189
8189
  //#endregion
8190
- //#region node_modules/.pnpm/@lancedb+lancedb@0.39.0_@types+node@26.6.2_apache-arrow@21.2.0/node_modules/@lancedb/lancedb/dist/rerankers/rrf.js
8190
+ //#region node_modules/.pnpm/@lancedb+lancedb@0.39.0_@types+node@26.6.4_apache-arrow@21.2.0/node_modules/@lancedb/lancedb/dist/rerankers/rrf.js
8191
8191
  var require_rrf = /* @__PURE__ */ __commonJSMin(((exports) => {
8192
8192
  Object.defineProperty(exports, "__esModule", { value: true });
8193
8193
  exports.RRFReranker = void 0;
@@ -8209,7 +8209,7 @@ var require_rrf = /* @__PURE__ */ __commonJSMin(((exports) => {
8209
8209
  };
8210
8210
  }));
8211
8211
  //#endregion
8212
- //#region node_modules/.pnpm/@lancedb+lancedb@0.39.0_@types+node@26.6.2_apache-arrow@21.2.0/node_modules/@lancedb/lancedb/dist/rerankers/index.js
8212
+ //#region node_modules/.pnpm/@lancedb+lancedb@0.39.0_@types+node@26.6.4_apache-arrow@21.2.0/node_modules/@lancedb/lancedb/dist/rerankers/index.js
8213
8213
  var require_rerankers = /* @__PURE__ */ __commonJSMin(((exports) => {
8214
8214
  var __createBinding = exports && exports.__createBinding || (Object.create ? (function(o, m, k, k2) {
8215
8215
  if (k2 === void 0) k2 = k;
@@ -8232,7 +8232,7 @@ var require_rerankers = /* @__PURE__ */ __commonJSMin(((exports) => {
8232
8232
  __exportStar(require_rrf(), exports);
8233
8233
  }));
8234
8234
  //#endregion
8235
- //#region node_modules/.pnpm/@lancedb+lancedb@0.39.0_@types+node@26.6.2_apache-arrow@21.2.0/node_modules/@lancedb/lancedb/dist/index.js
8235
+ //#region node_modules/.pnpm/@lancedb+lancedb@0.39.0_@types+node@26.6.4_apache-arrow@21.2.0/node_modules/@lancedb/lancedb/dist/index.js
8236
8236
  var require_dist = /* @__PURE__ */ __commonJSMin(((exports) => {
8237
8237
  Object.defineProperty(exports, "__esModule", { value: true });
8238
8238
  exports.packBits = exports.rerankers = exports.Scannable = exports.PermutationBuilder = exports.permutationBuilder = exports.embedding = exports.MergeInsertBuilder = exports.OAuthFlowType = exports.OAuthHeaderProvider = exports.StaticHeaderProvider = exports.HeaderProvider = exports.Branches = exports.Table = exports.Index = exports.Occur = exports.Operator = exports.FullTextQueryType = exports.BooleanQuery = exports.MultiMatchQuery = exports.BoostQuery = exports.PhraseQuery = exports.MatchQuery = exports.RecordBatchIterator = exports.TakeQuery = exports.VectorQuery = exports.QueryBase = exports.Query = exports.AutoQuery = exports.Job = exports.Session = exports.Connection = exports.BlobFile = exports.isBlobField = exports.blob = exports.VectorColumnOptions = exports.MakeArrowTableOptions = exports.makeArrowTable = exports.BranchContents = exports.TagContents = exports.Tags = exports.instrumentLanceDbMetrics = exports.NativeJsHeaderProvider = exports.MaterializedView = void 0;
package/dist/config.js CHANGED
@@ -47,9 +47,9 @@ function resolveEmbeddingModel(embedding, dimensions) {
47
47
  if (dimensions === void 0) vectorDimsForModel(model);
48
48
  return model;
49
49
  }
50
- function resolveBoundedIntegerConfig(params) {
51
- const resolved = resolveOptionalIntegerOption(params.value) ?? params.fallback;
52
- if (resolved < params.min || resolved > params.max) throw new Error(`${params.label} must be between ${params.min} and ${params.max}`);
50
+ function resolveTextLimit(value, fallback, label) {
51
+ const resolved = resolveOptionalIntegerOption(value) ?? fallback;
52
+ if (resolved < 100 || resolved > 1e4) throw new Error(`${label} must be between 100 and 10000`);
53
53
  return resolved;
54
54
  }
55
55
  function resolveEmbeddingDimensions(embedding) {
@@ -80,20 +80,8 @@ const memoryConfigSchema = { parse(value) {
80
80
  const model = resolveEmbeddingModel(embedding, dimensions);
81
81
  const provider = typeof embedding.provider === "string" ? embedding.provider.trim() : "openai";
82
82
  if (!provider) throw new Error("embedding.provider must not be empty");
83
- const captureMaxChars = resolveBoundedIntegerConfig({
84
- value: cfg.captureMaxChars,
85
- fallback: 500,
86
- min: 100,
87
- max: 1e4,
88
- label: "captureMaxChars"
89
- });
90
- const recallMaxChars = resolveBoundedIntegerConfig({
91
- value: cfg.recallMaxChars,
92
- fallback: DEFAULT_RECALL_MAX_CHARS,
93
- min: 100,
94
- max: 1e4,
95
- label: "recallMaxChars"
96
- });
83
+ const captureMaxChars = resolveTextLimit(cfg.captureMaxChars, 500, "captureMaxChars");
84
+ const recallMaxChars = resolveTextLimit(cfg.recallMaxChars, DEFAULT_RECALL_MAX_CHARS, "recallMaxChars");
97
85
  let customTriggers;
98
86
  if (cfg.customTriggers !== void 0) {
99
87
  if (!Array.isArray(cfg.customTriggers)) throw new Error("customTriggers must be an array of strings");
@@ -79,7 +79,7 @@ async function openMemoryTable(params) {
79
79
  table: null,
80
80
  dbPath
81
81
  };
82
- const lancedb = await import("./.setup/dist-A24Sj2xJ.mjs").then((m) => /* @__PURE__ */ __toESM(m.default, 1));
82
+ const lancedb = await import("./.setup/dist-BC5z2Tai.mjs").then((m) => /* @__PURE__ */ __toESM(m.default, 1));
83
83
  const storageOptions = resolveStorageOptions(params.config, params.env);
84
84
  const connection = await lancedb.connect(dbPath, storageOptions ? { storageOptions } : {});
85
85
  try {
@@ -53,34 +53,28 @@ var OpenAiCompatibleEmbeddings = class {
53
53
  baseURL: baseUrl
54
54
  }));
55
55
  }
56
- async embed(text, options) {
56
+ async embed(text, timeoutMs) {
57
57
  const dimensions = this.dimensions;
58
- const startedAtMs = options?.timeoutMs && Number.isFinite(options.timeoutMs) ? Date.now() : null;
58
+ const startedAtMs = timeoutMs && Number.isFinite(timeoutMs) ? Date.now() : null;
59
59
  try {
60
- return normalizeEmbeddingVector((await this.postEmbedding(text, {
61
- includeDimensions: true,
62
- options
63
- })).data?.[0]?.embedding);
60
+ return normalizeEmbeddingVector((await this.postEmbedding(text, dimensions, timeoutMs)).data?.[0]?.embedding);
64
61
  } catch (error) {
65
62
  if (typeof dimensions !== "number" || !isEmbeddingDimensionsRejectedError(error)) throw error;
66
63
  }
67
- const fallbackOptions = startedAtMs === null || options?.timeoutMs === void 0 ? options : { timeoutMs: Math.max(1, options.timeoutMs - (Date.now() - startedAtMs)) };
68
- return truncateEmbeddingVector(normalizeEmbeddingVector((await this.postEmbedding(text, {
69
- includeDimensions: false,
70
- options: fallbackOptions
71
- })).data?.[0]?.embedding), dimensions, this.model);
64
+ const fallbackTimeoutMs = startedAtMs === null || timeoutMs === void 0 ? timeoutMs : Math.max(1, timeoutMs - (Date.now() - startedAtMs));
65
+ return truncateEmbeddingVector(normalizeEmbeddingVector((await this.postEmbedding(text, void 0, fallbackTimeoutMs)).data?.[0]?.embedding), dimensions, this.model);
72
66
  }
73
- async postEmbedding(text, request) {
67
+ async postEmbedding(text, dimensions, timeoutMs) {
74
68
  const params = {
75
69
  model: this.model,
76
70
  input: text,
77
- ...request.includeDimensions && typeof this.dimensions === "number" ? { dimensions: this.dimensions } : {}
71
+ ...typeof dimensions === "number" ? { dimensions } : {}
78
72
  };
79
73
  ensureGlobalUndiciEnvProxyDispatcher();
80
74
  return await (await this.clientPromise).post("/embeddings", {
81
75
  body: params,
82
- ...request.options?.timeoutMs ? {
83
- timeout: request.options.timeoutMs,
76
+ ...timeoutMs ? {
77
+ timeout: timeoutMs,
84
78
  maxRetries: 0
85
79
  } : {}
86
80
  });
@@ -323,7 +317,7 @@ function createEmbeddings(api) {
323
317
  fingerprint,
324
318
  client: new OpenAiCompatibleEmbeddings(embedding.apiKey, embedding.model, embedding.baseUrl, embedding.dimensions)
325
319
  };
326
- return await direct.client.embed(text, timeoutMs ? { timeoutMs } : void 0);
320
+ return await direct.client.embed(text, timeoutMs);
327
321
  }
328
322
  direct = void 0;
329
323
  return await provider.embed(agentId, text, embedding, timeoutMs);
@@ -4,7 +4,7 @@ const platform = process.platform;
4
4
  const arch = process.arch;
5
5
  let loadPromise = null;
6
6
  async function loadLanceDbModule() {
7
- if (!loadPromise) loadPromise = import("./.setup/dist-A24Sj2xJ.mjs").then((m) => /* @__PURE__ */ __toESM(m.default, 1)).catch((error) => {
7
+ if (!loadPromise) loadPromise = import("./.setup/dist-BC5z2Tai.mjs").then((m) => /* @__PURE__ */ __toESM(m.default, 1)).catch((error) => {
8
8
  loadPromise = null;
9
9
  if (platform === "darwin" && arch === "x64") throw new Error(`memory-lancedb: LanceDB runtime is unavailable on ${platform}-${arch}. The bundled @lancedb/lancedb dependency does not publish a native package for this platform. Disable memory-lancedb or switch to a supported memory backend/platform.`, { cause: error });
10
10
  throw new Error(`memory-lancedb: bundled @lancedb/lancedb dependency is unavailable. Install or repair the memory-lancedb plugin package dependencies, then restart OpenClaw. ${String(error)}`, { cause: error });
@@ -77,15 +77,13 @@ function stripLeadingMessageToolDeliveryHints(text) {
77
77
  }
78
78
  return stripped ? lines.slice(index).join("\n") : text;
79
79
  }
80
- function findFirstInboundEnvelopeIndex(text, options) {
80
+ function findFirstInboundEnvelopeIndex(text) {
81
81
  for (const match of text.matchAll(BRACKETED_PREFIX_RE)) {
82
82
  const index = match.index;
83
- if (options?.skipReplyQuoteLine) {
84
- const lineStart = text.lastIndexOf("\n", index - 1) + 1;
85
- if (text.slice(lineStart, index).includes("[Replying to:")) continue;
86
- }
83
+ const lineStart = text.lastIndexOf("\n", index - 1) + 1;
84
+ if (text.slice(lineStart, index).includes("[Replying to:")) continue;
87
85
  const candidate = text.slice(index);
88
- if (INBOUND_ENVELOPE_PREFIX_RE.test(candidate) || matchKnownChannelMarkerFreeEnvelopePrefix(candidate, { allowAmbiguousDirect: options?.allowAmbiguousMarkerFree })) return index;
86
+ if (INBOUND_ENVELOPE_PREFIX_RE.test(candidate) || matchKnownChannelMarkerFreeEnvelopePrefix(candidate, { allowAmbiguousDirect: true })) return index;
89
87
  }
90
88
  return -1;
91
89
  }
@@ -113,10 +111,7 @@ function findLastContextMarker(text, markers) {
113
111
  function stripLeadingCurrentMessageContextBeforeEnvelope(text) {
114
112
  const candidateText = text.trimStart();
115
113
  if (!LEADING_CURRENT_MESSAGE_CONTEXT_RE.test(candidateText)) return text;
116
- const envelopeIndex = findFirstInboundEnvelopeIndex(candidateText, {
117
- allowAmbiguousMarkerFree: true,
118
- skipReplyQuoteLine: true
119
- });
114
+ const envelopeIndex = findFirstInboundEnvelopeIndex(candidateText);
120
115
  if (envelopeIndex === -1) {
121
116
  let plainBody = candidateText.replace(LEADING_CURRENT_MESSAGE_CONTEXT_RE, "").trimStart();
122
117
  for (let pass = 0; pass < 4; pass += 1) {
@@ -157,15 +152,9 @@ function stripLeadingChronologicalContextBlocks(text) {
157
152
  if (bodyStart === -1) return "";
158
153
  const bodyLineEnd = afterLabel.indexOf("\n", bodyStart);
159
154
  const firstBodyLine = bodyLineEnd === -1 ? afterLabel.slice(bodyStart) : afterLabel.slice(bodyStart, bodyLineEnd);
160
- let lineEnvelopeIndex = firstBodyLine.trimStart().startsWith("[") ? findFirstInboundEnvelopeIndex(firstBodyLine, {
161
- allowAmbiguousMarkerFree: true,
162
- skipReplyQuoteLine: true
163
- }) : -1;
155
+ let lineEnvelopeIndex = firstBodyLine.trimStart().startsWith("[") ? findFirstInboundEnvelopeIndex(firstBodyLine) : -1;
164
156
  if (lineEnvelopeIndex === -1 && match[0].includes("selected for current message")) {
165
- const inlineEnvelopeIndex = findFirstInboundEnvelopeIndex(firstBodyLine, {
166
- allowAmbiguousMarkerFree: true,
167
- skipReplyQuoteLine: true
168
- });
157
+ const inlineEnvelopeIndex = findFirstInboundEnvelopeIndex(firstBodyLine);
169
158
  const prefix = inlineEnvelopeIndex === -1 ? "" : firstBodyLine.slice(0, inlineEnvelopeIndex);
170
159
  lineEnvelopeIndex = /^#\d+\s/.test(prefix.trimStart()) ? inlineEnvelopeIndex : -1;
171
160
  }
@@ -4,10 +4,10 @@ import { isMemoryMachineOutput } from "./cli-output-mode.js";
4
4
  import { parseStrictPositiveInteger } from "openclaw/plugin-sdk/number-runtime";
5
5
  import { defaultRuntime } from "openclaw/plugin-sdk/runtime";
6
6
  //#region extensions/memory-lancedb/memory-cli.ts
7
- function parsePositiveIntegerOption(value, flag) {
7
+ function parseLimit(value) {
8
8
  if (value === void 0) return;
9
9
  const parsed = parseStrictPositiveInteger(value);
10
- if (parsed === void 0) throw new Error(`${flag} must be a positive integer`);
10
+ if (parsed === void 0) throw new Error("--limit must be a positive integer");
11
11
  return parsed;
12
12
  }
13
13
  function parseMemoryCliColumns(value) {
@@ -56,7 +56,7 @@ function registerMemoryCli(api, db, embeddings, resolveCliAgentId, resolveConfig
56
56
  const memory = program.command("ltm").description("LanceDB memory plugin commands");
57
57
  memory.command("list").description("List memories").option("--agent <id>", "Agent id (default: configured default agent)").option("--limit <n>", "Max results").option("--order-by-created-at", "Order memories by createdAt descending", false).action(async (opts) => {
58
58
  const agentId = resolveCliAgentId(opts.agent);
59
- const limit = parsePositiveIntegerOption(opts.limit, "--limit");
59
+ const limit = parseLimit(opts.limit);
60
60
  const entries = await db.list(agentId, limit, { orderByCreatedAt: Boolean(opts.orderByCreatedAt) });
61
61
  defaultRuntime.writeJson(entries);
62
62
  });
@@ -64,7 +64,7 @@ function registerMemoryCli(api, db, embeddings, resolveCliAgentId, resolveConfig
64
64
  let failure;
65
65
  try {
66
66
  const agentId = resolveCliAgentId(opts.agent);
67
- const limit = parsePositiveIntegerOption(opts.limit, "--limit");
67
+ const limit = parseLimit(opts.limit);
68
68
  const config = resolveConfig();
69
69
  const vector = await embeddings.embed(agentId, normalizeRecallQuery(query, config.recallMaxChars), config.embedding);
70
70
  const results = await db.search(agentId, vector, limit, .3);
@@ -85,7 +85,7 @@ function registerMemoryCli(api, db, embeddings, resolveCliAgentId, resolveConfig
85
85
  const order = parseMemoryCliOrder(opts.orderBy);
86
86
  const selectedColumns = [...outputColumns];
87
87
  if (order && !selectedColumns.includes(order.column)) selectedColumns.push(order.column);
88
- const limit = parsePositiveIntegerOption(opts.limit, "--limit") ?? 10;
88
+ const limit = parseLimit(opts.limit) ?? 10;
89
89
  let rows = await db.query(agentId, {
90
90
  columns: selectedColumns,
91
91
  filter: parseMemoryCliFilter(opts.filter),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openclaw/memory-lancedb",
3
- "version": "2026.10.2",
3
+ "version": "2026.10.5-beta.2",
4
4
  "description": "OpenClaw LanceDB-backed long-term memory plugin with auto-recall, auto-capture, and vector search.",
5
5
  "repository": {
6
6
  "type": "git",
@@ -9,7 +9,7 @@
9
9
  "type": "module",
10
10
  "dependencies": {
11
11
  "apache-arrow": "21.2.0",
12
- "openai": "7.23.0",
12
+ "openai": "7.27.0",
13
13
  "typebox": "1.3.34"
14
14
  },
15
15
  "devDependencies": {
@@ -36,10 +36,10 @@
36
36
  "minHostVersion": ">=2026.5.31"
37
37
  },
38
38
  "compat": {
39
- "pluginApi": ">=2026.10.2"
39
+ "pluginApi": ">=2026.10.5-beta.2"
40
40
  },
41
41
  "build": {
42
- "openclawVersion": "2026.10.2",
42
+ "openclawVersion": "2026.10.5-beta.2",
43
43
  "workerEntries": [
44
44
  "./lancedb-runtime.ts"
45
45
  ]
@@ -62,7 +62,7 @@
62
62
  "assets/activity/*.svg"
63
63
  ],
64
64
  "peerDependencies": {
65
- "openclaw": ">=2026.10.2"
65
+ "openclaw": ">=2026.10.5-beta.2"
66
66
  },
67
67
  "peerDependenciesMeta": {
68
68
  "openclaw": {