feat: add unit tests, Docker polish, and workbench UX improvements

Unit tests: Consumer class (7), recursive-splitter (10), parseJsonResponse (11) — 28 total.
Docker: add 5 commented LLM provider services, dev compose override, .env.example.
Workbench: chat persistence, error boundary, disconnect banner, prompts error handling.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
elpresidank 2026-04-07 03:51:29 -05:00
parent c7eefee607
commit 72870a7e2e
17 changed files with 718 additions and 33 deletions

View file

@ -29,6 +29,19 @@ services:
- ./loki/loki-config.yml:/etc/loki/local-config.yaml
- loki-data:/tmp/loki
# Override text-completion to use Ollama (no API key needed for local dev)
text-completion:
command: ["node", "entrypoints/text-completion-ollama.mjs"]
environment:
- NATS_URL=nats://nats:4222
- OLLAMA_URL=http://ollama:11434
- OLLAMA_MODEL=${OLLAMA_MODEL:-gemma3:4b}
depends_on:
nats:
condition: service_healthy
ollama:
condition: service_started
# NATS CLI tools for debugging
nats-cli:
image: natsio/nats-box:latest