- 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
49 lines
1.1 KiB
JSON
49 lines
1.1 KiB
JSON
{
|
|
"name": "@vainplex/openclaw-cortex",
|
|
"version": "0.2.0",
|
|
"description": "OpenClaw plugin: conversation intelligence — thread tracking, decision extraction, boot context, pre-compaction snapshots",
|
|
"type": "module",
|
|
"main": "dist/index.js",
|
|
"types": "dist/index.d.ts",
|
|
"files": [
|
|
"dist",
|
|
"openclaw.plugin.json",
|
|
"README.md",
|
|
"LICENSE"
|
|
],
|
|
"scripts": {
|
|
"build": "tsc",
|
|
"prepublishOnly": "npm run build",
|
|
"test": "vitest run",
|
|
"test:watch": "vitest",
|
|
"typecheck": "tsc --noEmit"
|
|
},
|
|
"dependencies": {},
|
|
"devDependencies": {
|
|
"vitest": "^3.0.0",
|
|
"@types/node": "^22.0.0",
|
|
"typescript": "^5.7.0"
|
|
},
|
|
"openclaw": {
|
|
"extensions": [
|
|
"./dist/index.js"
|
|
],
|
|
"id": "openclaw-cortex"
|
|
},
|
|
"keywords": [
|
|
"openclaw",
|
|
"plugin",
|
|
"cortex",
|
|
"memory",
|
|
"thread-tracking",
|
|
"boot-context",
|
|
"conversation-intelligence"
|
|
],
|
|
"license": "MIT",
|
|
"repository": {
|
|
"type": "git",
|
|
"url": "git+https://github.com/alberthild/openclaw-cortex.git"
|
|
},
|
|
"homepage": "https://github.com/alberthild/openclaw-cortex#readme",
|
|
"author": "Vainplex <hildalbert@gmail.com>"
|
|
}
|