harper-knowledge 0.1.2 → 0.1.3

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.
@@ -152,9 +152,10 @@ export async function initEmbeddingModel(config) {
152
152
  return;
153
153
  }
154
154
  const modelPath = await downloadModelIfNeeded(modelName);
155
- // Load the model with node-llama-cpp
155
+ // Load the model with node-llama-cpp (use prebuilt binaries only —
156
+ // build: "never" avoids requiring cmake/make on deployment targets)
156
157
  const { getLlama } = (await import("node-llama-cpp"));
157
- llama = await getLlama({ progressLogs: false });
158
+ llama = await getLlama({ progressLogs: false, build: "never" });
158
159
  embeddingModel = await llama.loadModel({ modelPath });
159
160
  embeddingContext = await embeddingModel.createEmbeddingContext({
160
161
  contextSize: "auto",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "harper-knowledge",
3
- "version": "0.1.2",
3
+ "version": "0.1.3",
4
4
  "description": "Knowledge base plugin for Harper with MCP server integration",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -55,6 +55,9 @@
55
55
  "prettier": "3.8.1",
56
56
  "typescript": "5.9.3"
57
57
  },
58
+ "optionalDependencies": {
59
+ "@node-llama-cpp/linux-x64": "^3.15.1"
60
+ },
58
61
  "peerDependencies": {
59
62
  "harperdb": ">=4.7.0"
60
63
  },