Skip to content

fix: fully gate llama behind BRAIN_EMBED_ENABLE — postinstall, build, runtime logging #122 - #123

Merged
four-bytes-robby merged 1 commit into
mainfrom
fix/122-gate-llama-behind-env
Jun 10, 2026
Merged

four-bytes-robby merged 1 commit into
mainfrom
fix/122-gate-llama-behind-env

Conversation

@four-bytes-robby

Copy link
Copy Markdown
Member

Closes #122

Changes

  • postinstall: gated behind BRAIN_EMBED_ENABLE — no binary copy without opt-in
  • build.ts: @node-llama-cpp/* external only when BRAIN_EMBED_ENABLE is set
  • embeddingService.ts: defensive logging at initialize() entry, env bail-out, and successful init

Verification

  • bun run build succeeds
  • Without BRAIN_EMBED_ENABLE, postinstall is a no-op
  • initialize() logs env var state + caller for debugging

@four-bytes-robby four-bytes-robby self-assigned this Jun 10, 2026
@four-bytes-robby
four-bytes-robby merged commit cff15ce into main Jun 10, 2026
3 checks passed
@four-bytes-robby
four-bytes-robby deleted the fix/122-gate-llama-behind-env branch June 10, 2026 16:01
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.

fix: fully gate llama behind BRAIN_EMBED_ENABLE — postinstall, build, runtime logging

1 participant