wayfind 2.0.58 → 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
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
|
}
|
|
@@ -2,12 +2,11 @@
|
|
|
2
2
|
#
|
|
3
3
|
# Copy this file to .github/workflows/wayfind-distill.yml in your team-context repo.
|
|
4
4
|
#
|
|
5
|
-
#
|
|
6
|
-
#
|
|
7
|
-
#
|
|
8
|
-
# - Exports distilled entries to .wayfind/distilled.json and commits back
|
|
5
|
+
# Runs nightly (2am UTC) and on manual dispatch. Journal push triggers are intentionally
|
|
6
|
+
# absent — raw journal content is already distributed via git pull + wayfind context pull.
|
|
7
|
+
# This pipeline only produces distilled/merged entries (the LLM summarization layer).
|
|
9
8
|
#
|
|
10
|
-
# Team members get
|
|
9
|
+
# Team members get distilled entries automatically on their next `wayfind context pull`.
|
|
11
10
|
#
|
|
12
11
|
# Required secrets:
|
|
13
12
|
# ANTHROPIC_API_KEY — for LLM merge calls during distillation
|
|
@@ -15,22 +14,18 @@
|
|
|
15
14
|
name: Wayfind Distillation
|
|
16
15
|
|
|
17
16
|
on:
|
|
18
|
-
push:
|
|
19
|
-
paths:
|
|
20
|
-
- 'journals/**'
|
|
21
17
|
schedule:
|
|
22
|
-
- cron: '0
|
|
18
|
+
- cron: '0 2 * * *' # Nightly: 2am UTC
|
|
23
19
|
workflow_dispatch:
|
|
24
20
|
inputs:
|
|
25
21
|
tier:
|
|
26
22
|
description: 'Distillation tier (daily, weekly, archive, all)'
|
|
27
23
|
default: 'all'
|
|
28
24
|
|
|
29
|
-
#
|
|
30
|
-
# Safe because each run indexes all current journals; the latest run is always authoritative.
|
|
25
|
+
# One run at a time — don't cancel in-progress (distillation is expensive).
|
|
31
26
|
concurrency:
|
|
32
27
|
group: wayfind-distill
|
|
33
|
-
cancel-in-progress:
|
|
28
|
+
cancel-in-progress: false
|
|
34
29
|
|
|
35
30
|
jobs:
|
|
36
31
|
distill:
|
|
@@ -59,21 +54,14 @@ jobs:
|
|
|
59
54
|
env:
|
|
60
55
|
TEAM_CONTEXT_STORE_PATH: ${{ github.workspace }}/.wayfind/store
|
|
61
56
|
ANTHROPIC_API_KEY: ${{ secrets.ANTHROPIC_API_KEY }}
|
|
62
|
-
run:
|
|
63
|
-
if [ "${{ github.event_name }}" = "schedule" ]; then
|
|
64
|
-
wayfind distill --tier all
|
|
65
|
-
elif [ "${{ github.event_name }}" = "workflow_dispatch" ]; then
|
|
66
|
-
wayfind distill --tier ${{ github.event.inputs.tier || 'all' }}
|
|
67
|
-
else
|
|
68
|
-
wayfind distill --tier daily
|
|
69
|
-
fi
|
|
57
|
+
run: wayfind distill --tier ${{ github.event.inputs.tier || 'all' }}
|
|
70
58
|
|
|
71
59
|
- name: Export distilled entries
|
|
72
60
|
env:
|
|
73
61
|
TEAM_CONTEXT_STORE_PATH: ${{ github.workspace }}/.wayfind/store
|
|
74
62
|
run: wayfind distill export --output .wayfind/distilled.json
|
|
75
63
|
|
|
76
|
-
- name: Commit
|
|
64
|
+
- name: Commit if changed
|
|
77
65
|
run: |
|
|
78
66
|
git config user.name "github-actions[bot]"
|
|
79
67
|
git config user.email "github-actions[bot]@users.noreply.github.com"
|