Skip to content

refactor: code cleanup — merge modules, consolidate constants#67

Merged
vraspar merged 2 commits intomainfrom
refactor/code-cleanup
Mar 27, 2026
Merged

refactor: code cleanup — merge modules, consolidate constants#67
vraspar merged 2 commits intomainfrom
refactor/code-cleanup

Conversation

@vraspar
Copy link
Copy Markdown
Owner

@vraspar vraspar commented Mar 27, 2026

Architect-recommended cleanup:

  1. Merged freshness-stats.ts into freshness.ts
  2. Consolidated constants into src/utils/constants.ts
  3. Created src/intelligence/ scaffold for TF-IDF tagging
  4. Unexported internal-only functions
  5. 16 files changed, build clean, all tests pass

vraspar and others added 2 commits March 27, 2026 16:27
Technical blog post covering why Brain exists, architecture decisions
(git storage, FTS5 search, MCP agent interface), the tagging problem
and RAKE + TF-IDF solution, Obsidian compatibility, and what's next.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
…ld intelligence

1. Merged freshness-stats.ts into freshness.ts (one module for all freshness logic)
2. Consolidated constants into src/utils/constants.ts (KNOWN_TECH_TERMS, META_FILES,
   EXCLUDED_DIRS, VOLATILE_TAGS, STABLE_TAGS)
3. Created src/intelligence/ scaffold (index.ts, types.ts) for upcoming TF-IDF tagging
4. Unexported internal-only functions (ensureBrainDir, removeObsidianLinks)
5. Updated all imports across 14 files

Build clean, all tests pass.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@vraspar vraspar merged commit 173c90f into main Mar 27, 2026
4 checks passed
@vraspar vraspar deleted the refactor/code-cleanup branch March 27, 2026 23:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant