learning_ai_clock/backend/src/lib
saravanakumardb1 229ce4f00f feat(backend): wire Ollama LLM for context messages (TODO-005)
Dual-path LLM enrichment for AI context prep messages:
1. extraction-service (if EXTRACTION_SERVICE_URL set)
2. Ollama direct (if OLLAMA_URL set) — non-streaming /api/generate
3. Keyword rules fallback
4. Generic fallback

New env vars: OLLAMA_URL, OLLAMA_MODEL (default: gemma3:4b)
Both LLM paths use 5s timeout and null-return-on-error pattern.
Feature-gated behind ai_context_messages.enabled flag.
2026-04-13 17:00:24 -07:00
..
ai-context.ts feat(backend): wire Ollama LLM for context messages (TODO-005) 2026-04-13 17:00:24 -07:00
auth.test.ts fix(auth): JWKS URL-tracking singleton + expanded test coverage 2026-03-12 11:22:03 -07:00
auth.ts refactor(backend): migrate auth.ts + request-context.ts to @bytelyst/fastify-auth 2026-03-20 07:45:58 -07:00
config.ts feat(backend): wire Ollama LLM for context messages (TODO-005) 2026-04-13 17:00:24 -07:00
cosmos-init.ts feat(agent-actions): Phase A.2 — agent action audit trail module + tests 2026-03-31 23:38:03 -07:00
datastore.ts fix(backend): use config.DB_PROVIDER instead of process.env.DB_PROVIDER in datastore.ts 2026-03-20 08:29:36 -07:00
ecosystem-phase2.test.ts fix(backend): convert ecosystem-phase2 test to Vitest, fix .ts extension + hardcoded productId 2026-04-13 15:51:58 -07:00
ecosystem-phase2.ts fix(backend): convert ecosystem-phase2 test to Vitest, fix .ts extension + hardcoded productId 2026-04-13 15:51:58 -07:00
event-bus.test.ts fix(backend): fix sync throw isolation in event bus + add 6 tests 2026-04-13 11:42:14 -07:00
event-bus.ts fix(backend): fix sync throw isolation in event bus + add 6 tests 2026-04-13 11:42:14 -07:00
feature-flags.ts feat(ecosystem): Phase 0 — kill-switch, feedback, accessibility, feature flags, telemetry events 2026-03-31 23:26:37 -07:00
field-encrypt.ts feat(backend): admin-panel encryption toggle via initEncryption() 2026-03-21 15:24:58 -07:00
product-config.ts refactor(backend): load product identity from shared/product.json 2026-03-20 07:23:31 -07:00
request-context.ts refactor(backend): migrate auth.ts + request-context.ts to @bytelyst/fastify-auth 2026-03-20 07:45:58 -07:00
telemetry-events.ts docs(todos): standardize all TODOs with running numbers and delegatable instructions 2026-04-01 01:05:25 -07:00
telemetry.ts feat(backend): add @bytelyst/backend-flags + backend-telemetry, fix config defaults 2026-03-20 17:31:01 -07:00
webhook-subscriber.ts feat(backend): add domain event bus + webhook dispatch 2026-04-13 11:28:38 -07:00