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.
|
|
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.
|
|
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 =
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
untilDate
|
|
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
|
@@ -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
|