wayfind 2.0.55 → 2.0.57

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/distill.js CHANGED
@@ -154,7 +154,7 @@ Format: A compact markdown summary, max 500 words.`,
154
154
  * @returns {Promise<{content: string, title: string}>}
155
155
  */
156
156
  async function mergeEntries(entries, llmConfig, tier) {
157
- const storePath = contentStore.DEFAULT_STORE_PATH;
157
+ const storePath = contentStore.resolveStorePath();
158
158
  const journalDir = contentStore.DEFAULT_JOURNAL_DIR;
159
159
  const signalsDir = contentStore.DEFAULT_SIGNALS_DIR;
160
160
 
@@ -195,7 +195,7 @@ async function mergeEntries(entries, llmConfig, tier) {
195
195
  async function distillEntries(options = {}) {
196
196
  const tierName = options.tier || 'daily';
197
197
  const dryRun = options.dryRun || false;
198
- const storePath = options.storePath || contentStore.DEFAULT_STORE_PATH;
198
+ const storePath = options.storePath || contentStore.resolveStorePath();
199
199
 
200
200
  const tiersToRun = tierName === 'all'
201
201
  ? ['daily', 'weekly', 'archive']
@@ -212,10 +212,10 @@ async function distillEntries(options = {}) {
212
212
 
213
213
  // Calculate date range for this tier
214
214
  const now = new Date();
215
- const sinceDate = new Date(now);
216
- sinceDate.setDate(sinceDate.getDate() - tierDef.maxAgeDays);
217
- const untilDate = new Date(now);
218
- untilDate.setDate(untilDate.getDate() - tierDef.minAgeDays);
215
+ const sinceDate = tierDef.maxAgeDays === Infinity
216
+ ? new Date(0)
217
+ : new Date(now.getTime() - tierDef.maxAgeDays * 86400000);
218
+ const untilDate = new Date(now.getTime() - tierDef.minAgeDays * 86400000);
219
219
 
220
220
  const since = sinceDate.toISOString().split('T')[0];
221
221
  const until = untilDate.toISOString().split('T')[0];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "wayfind",
3
- "version": "2.0.55",
3
+ "version": "2.0.57",
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",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "wayfind",
3
- "version": "2.0.55",
3
+ "version": "2.0.57",
4
4
  "description": "Team decision trail for AI-assisted development. Session memory, decision journals, and team digests.",
5
5
  "author": {
6
6
  "name": "Wayfind",
@@ -24,6 +24,12 @@ on:
24
24
  - 'journals/**'
25
25
  workflow_dispatch:
26
26
 
27
+ # Serialize runs — cancel in-progress when a newer push comes in.
28
+ # Safe because each run indexes all current journals; the latest run is always authoritative.
29
+ concurrency:
30
+ group: wayfind-distill
31
+ cancel-in-progress: true
32
+
27
33
  jobs:
28
34
  distill:
29
35
  runs-on: ubuntu-latest