wayfind 2.0.65 → 2.0.67
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/content-store.js
CHANGED
|
@@ -156,8 +156,11 @@ function isRepoExcluded(repo) {
|
|
|
156
156
|
if (!repo) return (INCLUDE_REPOS.length > 0); // exclude null repo only when allowlist active
|
|
157
157
|
const lower = repo.toLowerCase();
|
|
158
158
|
|
|
159
|
-
// Allowlist takes priority — if set, only matching repos pass
|
|
159
|
+
// Allowlist takes priority — if set, only matching repos pass.
|
|
160
|
+
// Unqualified repo names (no '/') are always allowed — they're team member journals
|
|
161
|
+
// written without an org prefix and are almost certainly internal team work.
|
|
160
162
|
if (INCLUDE_REPOS.length > 0) {
|
|
163
|
+
if (!lower.includes('/')) return false; // unqualified names pass through
|
|
161
164
|
return !INCLUDE_REPOS.some(pattern => {
|
|
162
165
|
if (pattern.endsWith('/*')) {
|
|
163
166
|
// org/* wildcard — match org prefix
|
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