wayfind 2.0.59 → 2.0.60
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/bin/connectors/llm.js +4 -4
- package/package.json +3 -3
package/bin/connectors/llm.js
CHANGED
|
@@ -371,11 +371,11 @@ let _localPipeline = null;
|
|
|
371
371
|
async function generateEmbeddingLocal(text) {
|
|
372
372
|
try {
|
|
373
373
|
if (!_localPipeline) {
|
|
374
|
-
// Dynamic require — optional dep, may not be installed
|
|
375
374
|
const { pipeline, env } = require('@xenova/transformers');
|
|
376
|
-
//
|
|
377
|
-
|
|
378
|
-
|
|
375
|
+
// Use configured cache dir (Docker bakes the model here at build time).
|
|
376
|
+
// If unset, Xenova defaults to ~/.cache/huggingface/hub/.
|
|
377
|
+
if (process.env.WAYFIND_MODEL_CACHE) {
|
|
378
|
+
env.cacheDir = process.env.WAYFIND_MODEL_CACHE;
|
|
379
379
|
}
|
|
380
380
|
process.stderr.write('[wayfind] Loading local embedding model (first use — may take a moment)...\n');
|
|
381
381
|
_localPipeline = await pipeline('feature-extraction', LOCAL_EMBEDDING_MODEL);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "wayfind",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.60",
|
|
4
4
|
"description": "Team decision trail for AI-assisted development. The connective tissue between product, engineering, and strategy.",
|
|
5
5
|
"bin": {
|
|
6
6
|
"wayfind": "./bin/team-context.js",
|
|
@@ -51,10 +51,10 @@
|
|
|
51
51
|
"dependencies": {
|
|
52
52
|
"@modelcontextprotocol/sdk": "^1.28.0",
|
|
53
53
|
"@slack/bolt": "^4.6.0",
|
|
54
|
+
"@xenova/transformers": "^2.17.2",
|
|
54
55
|
"posthog-node": "^5.28.0"
|
|
55
56
|
},
|
|
56
57
|
"optionalDependencies": {
|
|
57
|
-
"better-sqlite3": "^11.0.0"
|
|
58
|
-
"@xenova/transformers": "^2.17.2"
|
|
58
|
+
"better-sqlite3": "^11.0.0"
|
|
59
59
|
}
|
|
60
60
|
}
|