wayfind 2.0.65 → 2.0.66
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
|
@@ -3669,15 +3669,23 @@ async function contextPull(args) {
|
|
|
3669
3669
|
log('[wayfind] Pulled latest team-context');
|
|
3670
3670
|
// Mark success — doctor checks this to warn on prolonged failures
|
|
3671
3671
|
try { fs.writeFileSync(markerFile, new Date().toISOString()); } catch {}
|
|
3672
|
-
// Index any new team journals into the local content store
|
|
3673
|
-
|
|
3674
|
-
|
|
3675
|
-
|
|
3676
|
-
|
|
3677
|
-
|
|
3678
|
-
|
|
3679
|
-
|
|
3680
|
-
|
|
3672
|
+
// Index any new team journals into the local content store.
|
|
3673
|
+
// Also checks memory/journal/ — some setups (backup hook → team-context repo) land journals there.
|
|
3674
|
+
const journalDirsToIndex = [
|
|
3675
|
+
path.join(teamPath, 'journals'),
|
|
3676
|
+
path.join(teamPath, 'memory', 'journal'),
|
|
3677
|
+
];
|
|
3678
|
+
let totalNewEntries = 0;
|
|
3679
|
+
for (const journalsDir of journalDirsToIndex) {
|
|
3680
|
+
if (fs.existsSync(journalsDir)) {
|
|
3681
|
+
try {
|
|
3682
|
+
const stats = await contentStore.indexJournals({ journalDir: journalsDir });
|
|
3683
|
+
totalNewEntries += stats.newEntries || 0;
|
|
3684
|
+
} catch (_) {}
|
|
3685
|
+
}
|
|
3686
|
+
}
|
|
3687
|
+
if (!quiet && totalNewEntries > 0) {
|
|
3688
|
+
log(`[wayfind] Indexed ${totalNewEntries} new team journal entries`);
|
|
3681
3689
|
}
|
|
3682
3690
|
// Import distilled entries if the team repo has a distilled.json
|
|
3683
3691
|
const distilledJson = path.join(teamPath, '.wayfind', 'distilled.json');
|
package/package.json
CHANGED