Skip to content

Feature/llm compactor#21

Merged
ivncmp merged 6 commits into
mainfrom
feature/llm-compactor
May 27, 2026
Merged

Feature/llm compactor#21
ivncmp merged 6 commits into
mainfrom
feature/llm-compactor

Conversation

@ivncmp
Copy link
Copy Markdown
Owner

@ivncmp ivncmp commented May 27, 2026

No description provided.

ivncmp added 6 commits May 27, 2026 18:30
Add llm.ts module that uses DProxyClient from @dtoolkit/sdk to make LLM
calls without coupling to any specific provider. Config section (llm.dproxyUrl,
dproxyToken, provider, model) added to schema, configure wizard, status,
and start banner. Calls run clean (no memory/context injection) with
configurable defaults for compact Phase 2.

Also: silence Fastify request logs (banner covers it), remove duplicate
dashboard log.
Add process.ts that reads unprocessed conversation messages, sends them
to the LLM via dproxy SDK, extracts entities + facts, and stores them
in the database. Integrates into compact as a new 'process' step that
runs before dedup and tiers.

- CLI: --process flag for dbrain compact, detailed dry-run output
- Cron: auto-includes process step when LLM is configured
- MCP: compact tool accepts 'process' step
- REST: POST /compact accepts 'process' step
- API: conversations endpoint now returns processed_count
- Dashboard: progress bar on conversation cards + processed badges on messages
Init now asks for cron schedule (default 0 3 * * *) and dproxy
connection (URL, token, provider, model). Non-interactive mode
supports DBRAIN_COMPACT_SCHEDULE, DBRAIN_DPROXY_URL,
DBRAIN_DPROXY_TOKEN, DBRAIN_LLM_PROVIDER, DBRAIN_LLM_MODEL env vars.
…n prompt

Add delete/merge modal to entity cards and detail view — when deleting
an entity with facts, choose another entity to absorb them.

DELETE /entities/:id?mergeInto=<targetId> moves facts before archiving.

Also: stricter entity extraction rules in process prompt (no minor
mentions, no sensitive data), fix api() sending Content-Type on
bodyless requests (Fastify 400).
Accent-insensitive search: "ivan" now matches "Iván", "cafe" matches
"café". Migration v3 rebuilds the FTS index for existing brains.
@vercel
Copy link
Copy Markdown

vercel Bot commented May 27, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
dtoolkit Ready Ready Preview, Comment May 27, 2026 5:45pm

@ivncmp ivncmp merged commit c4fb887 into main May 27, 2026
3 checks passed
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