openclaw-cortex/test
Claudia 0d592b8f2b feat: optional LLM enhancement + noise filter for topic detection
- Add llm-enhance.ts: optional OpenAI-compatible LLM for deeper analysis
  - Supports any provider: Ollama, OpenAI, OpenRouter, vLLM, etc.
  - Batched calls (configurable batchSize, default 3 messages)
  - Cooldown + timeout + graceful degradation (falls back to regex)
  - JSON structured output: threads, decisions, closures, mood

- Add noise filter (isNoiseTopic):
  - Rejects short/blacklisted/pronoun-starting fragments
  - Fixes 'nichts gepostet habe' type garbage threads

- Improve patterns:
  - Topic regex: min 3 chars, max 40 (was 2-30)
  - Add 'let's talk/discuss/look at' and 'lass uns über/mal' triggers
  - German patterns handle optional articles (dem/die/das)

- Wire LLM into hooks:
  - Regex runs first (zero cost, always)
  - LLM batches and enhances on top (async, fire-and-forget)
  - ThreadTracker.applyLlmAnalysis() merges LLM findings
  - DecisionTracker.addDecision() for direct LLM-detected decisions

- Config: new 'llm' section (disabled by default)
- 288 tests passing (18 new)
- Version 0.2.0

BREAKING: None — LLM is opt-in, regex behavior unchanged
2026-02-17 14:04:43 +01:00
..
boot-context.test.ts feat: openclaw-cortex v0.1.0 — conversation intelligence plugin 2026-02-17 12:16:49 +01:00
config.test.ts feat: openclaw-cortex v0.1.0 — conversation intelligence plugin 2026-02-17 12:16:49 +01:00
decision-tracker.test.ts feat: openclaw-cortex v0.1.0 — conversation intelligence plugin 2026-02-17 12:16:49 +01:00
hooks.test.ts feat: openclaw-cortex v0.1.0 — conversation intelligence plugin 2026-02-17 12:16:49 +01:00
llm-enhance.test.ts feat: optional LLM enhancement + noise filter for topic detection 2026-02-17 14:04:43 +01:00
narrative-generator.test.ts feat: openclaw-cortex v0.1.0 — conversation intelligence plugin 2026-02-17 12:16:49 +01:00
noise-filter.test.ts feat: optional LLM enhancement + noise filter for topic detection 2026-02-17 14:04:43 +01:00
patterns.test.ts feat: optional LLM enhancement + noise filter for topic detection 2026-02-17 14:04:43 +01:00
pre-compaction.test.ts feat: openclaw-cortex v0.1.0 — conversation intelligence plugin 2026-02-17 12:16:49 +01:00
storage.test.ts feat: openclaw-cortex v0.1.0 — conversation intelligence plugin 2026-02-17 12:16:49 +01:00
thread-tracker.test.ts feat: openclaw-cortex v0.1.0 — conversation intelligence plugin 2026-02-17 12:16:49 +01:00