grepmax 0.26.6 → 0.26.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.
@@ -10,7 +10,7 @@
10
10
  "name": "grepmax",
11
11
  "source": "./plugins/grepmax",
12
12
  "description": "Semantic code search for Claude Code. Automatically indexes your project and provides intelligent search capabilities.",
13
- "version": "0.26.6",
13
+ "version": "0.26.7",
14
14
  "author": {
15
15
  "name": "Robert Owens",
16
16
  "email": "robowens@me.com"
@@ -37,7 +37,7 @@ exports.maxSim = maxSim;
37
37
  exports.cosineSim = cosineSim;
38
38
  const fs = __importStar(require("node:fs"));
39
39
  const path = __importStar(require("node:path"));
40
- const simsimd_1 = require("simsimd");
40
+ const numkong_1 = require("numkong");
41
41
  const config_1 = require("../../config");
42
42
  const SKIP_IDS = new Map();
43
43
  function loadSkipIds(modelId) {
@@ -89,7 +89,7 @@ function maxSim(queryEmbeddings, docEmbeddings, docTokenIds, modelId = config_1.
89
89
  continue;
90
90
  const dVec = dVecs[idx];
91
91
  const dim = Math.min(qVec.length, dVec.length);
92
- const dot = (0, simsimd_1.inner)(qVec.subarray(0, dim), dVec.subarray(0, dim));
92
+ const dot = (0, numkong_1.inner)(qVec.subarray(0, dim), dVec.subarray(0, dim));
93
93
  if (dot > maxDotProduct)
94
94
  maxDotProduct = dot;
95
95
  }
@@ -104,7 +104,7 @@ function cosineSim(a, b) {
104
104
  const bVec = b instanceof Float32Array ? b : new Float32Array(b);
105
105
  const dim = Math.min(aVec.length, bVec.length);
106
106
  if (aVec.length !== bVec.length) {
107
- return (0, simsimd_1.inner)(aVec.subarray(0, dim), bVec.subarray(0, dim));
107
+ return (0, numkong_1.inner)(aVec.subarray(0, dim), bVec.subarray(0, dim));
108
108
  }
109
- return (0, simsimd_1.inner)(aVec, bVec);
109
+ return (0, numkong_1.inner)(aVec, bVec);
110
110
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "grepmax",
3
- "version": "0.26.6",
3
+ "version": "0.26.7",
4
4
  "author": "Robert Owens <78518764+reowens@users.noreply.github.com>",
5
5
  "homepage": "https://github.com/reowens/grepmax",
6
6
  "bugs": {
@@ -90,11 +90,11 @@
90
90
  "fast-glob": "^3.3.3",
91
91
  "ignore": "^7.0.5",
92
92
  "lmdb": "^3.5.6",
93
+ "numkong": "^7.7.1",
93
94
  "onnxruntime-node": "1.24.3",
94
95
  "openai": "^6.45.0",
95
96
  "ora": "^9.4.1",
96
97
  "proper-lockfile": "^4.1.2",
97
- "simsimd": "^6.5.5",
98
98
  "uuid": "^14.0.1",
99
99
  "web-tree-sitter": "^0.26.9",
100
100
  "zod": "^4.4.3"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "grepmax",
3
- "version": "0.26.6",
3
+ "version": "0.26.7",
4
4
  "description": "Semantic code search for Claude Code. Automatically indexes your project and provides intelligent search capabilities.",
5
5
  "author": {
6
6
  "name": "Robert Owens",