wayfind 2.0.57 → 2.0.59
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/team-context.js
CHANGED
|
@@ -1411,7 +1411,7 @@ async function runDistill(args) {
|
|
|
1411
1411
|
|
|
1412
1412
|
console.log(`Distilling content (tier: ${tier}${dryRun ? ', dry run' : ''})...`);
|
|
1413
1413
|
|
|
1414
|
-
// Build LLM config from connectors
|
|
1414
|
+
// Build LLM config from connectors, falling back to env vars (for GHA / CI)
|
|
1415
1415
|
let llmConfig = null;
|
|
1416
1416
|
if (!dryRun) {
|
|
1417
1417
|
const config = readConnectorsConfig();
|
|
@@ -1421,6 +1421,8 @@ async function runDistill(args) {
|
|
|
1421
1421
|
model: config.digest.llm.intelligence?.model || 'claude-haiku-4-5-20251001',
|
|
1422
1422
|
api_key_env: config.digest.llm.api_key_env,
|
|
1423
1423
|
};
|
|
1424
|
+
} else if (process.env.ANTHROPIC_API_KEY) {
|
|
1425
|
+
llmConfig = { provider: 'anthropic', model: 'claude-haiku-4-5-20251001', api_key_env: 'ANTHROPIC_API_KEY' };
|
|
1424
1426
|
}
|
|
1425
1427
|
}
|
|
1426
1428
|
|
package/package.json
CHANGED
|
@@ -2,33 +2,30 @@
|
|
|
2
2
|
#
|
|
3
3
|
# Copy this file to .github/workflows/wayfind-distill.yml in your team-context repo.
|
|
4
4
|
#
|
|
5
|
-
#
|
|
6
|
-
#
|
|
7
|
-
#
|
|
8
|
-
# - Runs the distillation pipeline (dedup + LLM merge for daily/weekly/archive tiers)
|
|
9
|
-
# - Exports distilled entries to .wayfind/distilled.json
|
|
10
|
-
# - Commits the result back to the repo
|
|
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).
|
|
11
8
|
#
|
|
12
|
-
# Team members get
|
|
9
|
+
# Team members get distilled entries automatically on their next `wayfind context pull`.
|
|
13
10
|
#
|
|
14
11
|
# Required secrets:
|
|
15
12
|
# ANTHROPIC_API_KEY — for LLM merge calls during distillation
|
|
16
|
-
#
|
|
17
|
-
# Optional: set WAYFIND_DISTILL_TIER to 'daily', 'weekly', 'archive', or 'all' (default: all)
|
|
18
13
|
|
|
19
14
|
name: Wayfind Distillation
|
|
20
15
|
|
|
21
16
|
on:
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
- 'journals/**'
|
|
17
|
+
schedule:
|
|
18
|
+
- cron: '0 2 * * *' # Nightly: 2am UTC
|
|
25
19
|
workflow_dispatch:
|
|
20
|
+
inputs:
|
|
21
|
+
tier:
|
|
22
|
+
description: 'Distillation tier (daily, weekly, archive, all)'
|
|
23
|
+
default: 'all'
|
|
26
24
|
|
|
27
|
-
#
|
|
28
|
-
# 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).
|
|
29
26
|
concurrency:
|
|
30
27
|
group: wayfind-distill
|
|
31
|
-
cancel-in-progress:
|
|
28
|
+
cancel-in-progress: false
|
|
32
29
|
|
|
33
30
|
jobs:
|
|
34
31
|
distill:
|
|
@@ -51,21 +48,20 @@ jobs:
|
|
|
51
48
|
- name: Index journals
|
|
52
49
|
env:
|
|
53
50
|
TEAM_CONTEXT_STORE_PATH: ${{ github.workspace }}/.wayfind/store
|
|
54
|
-
ANTHROPIC_API_KEY: ${{ secrets.ANTHROPIC_API_KEY }}
|
|
55
51
|
run: wayfind index-journals --dir ./journals --no-embeddings
|
|
56
52
|
|
|
57
53
|
- name: Distill
|
|
58
54
|
env:
|
|
59
55
|
TEAM_CONTEXT_STORE_PATH: ${{ github.workspace }}/.wayfind/store
|
|
60
56
|
ANTHROPIC_API_KEY: ${{ secrets.ANTHROPIC_API_KEY }}
|
|
61
|
-
run: wayfind distill --tier ${{
|
|
57
|
+
run: wayfind distill --tier ${{ github.event.inputs.tier || 'all' }}
|
|
62
58
|
|
|
63
59
|
- name: Export distilled entries
|
|
64
60
|
env:
|
|
65
61
|
TEAM_CONTEXT_STORE_PATH: ${{ github.workspace }}/.wayfind/store
|
|
66
62
|
run: wayfind distill export --output .wayfind/distilled.json
|
|
67
63
|
|
|
68
|
-
- name: Commit
|
|
64
|
+
- name: Commit if changed
|
|
69
65
|
run: |
|
|
70
66
|
git config user.name "github-actions[bot]"
|
|
71
67
|
git config user.email "github-actions[bot]@users.noreply.github.com"
|