wayfind 2.0.33 → 2.0.34

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.
@@ -569,8 +569,38 @@ function searchText(query, options = {}) {
569
569
  ...(entry.tags || []),
570
570
  ].filter(Boolean).join(' ').toLowerCase().replace(/[-_]/g, ' ');
571
571
 
572
+ // For signal entries, read content directly from the signal file
573
+ if (entry.source === 'signal') {
574
+ const signalsDir = options.signalsDir || DEFAULT_SIGNALS_DIR;
575
+ if (signalsDir) {
576
+ // Signal files live at signalsDir/<channel>/<date>.md or signalsDir/<channel>/<owner>/<repo>/<date>.md
577
+ // The repo field tells us the path: "signals/<channel>" or "<owner>/<repo>"
578
+ const repo = entry.repo || '';
579
+ const candidates = [];
580
+ if (repo.startsWith('signals/')) {
581
+ const channel = repo.replace('signals/', '');
582
+ candidates.push(path.join(signalsDir, channel, `${entry.date}.md`));
583
+ candidates.push(path.join(signalsDir, channel, `${entry.date}-summary.md`));
584
+ } else if (repo.includes('/')) {
585
+ // owner/repo format — find which channel it's under
586
+ for (const channel of ['github', 'intercom', 'notion']) {
587
+ candidates.push(path.join(signalsDir, channel, repo, `${entry.date}.md`));
588
+ }
589
+ }
590
+ for (const fp of candidates) {
591
+ try {
592
+ const content = fs.readFileSync(fp, 'utf8').toLowerCase();
593
+ searchable += ' ' + content.replace(/[-_]/g, ' ');
594
+ break;
595
+ } catch {
596
+ // Try next candidate
597
+ }
598
+ }
599
+ }
600
+ }
601
+
572
602
  // Also include the full journal entry content if available
573
- const journalContent = getJournalContent(entry.date, entry.user);
603
+ const journalContent = entry.source !== 'signal' ? getJournalContent(entry.date, entry.user) : null;
574
604
  if (journalContent) {
575
605
  // Find this entry's section in the journal file.
576
606
  // Try exact match first, then normalize hyphens/spaces for fuzzy match.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "wayfind",
3
- "version": "2.0.33",
3
+ "version": "2.0.34",
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"