@vainplex/openclaw-cortex 0.3.0 → 0.3.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/README.md +56 -19
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -206,15 +206,24 @@ cd openclaw-cortex && npm install && npm run build
206
206
 
207
207
  ## Configure
208
208
 
209
- Add to your OpenClaw config:
209
+ Add to your OpenClaw config (`openclaw.json`):
210
210
 
211
211
  ```json
212
212
  {
213
213
  "plugins": {
214
- "openclaw-cortex": {
215
- "enabled": true,
214
+ "entries": {
215
+ "openclaw-cortex": { "enabled": true }
216
+ }
217
+ }
218
+ }
219
+ ```
220
+
221
+ Then create `~/.openclaw/plugins/openclaw-cortex/config.json`:
222
+
223
+ ```json
224
+ {
216
225
  "patterns": {
217
- "language": "both"
226
+ "language": "all"
218
227
  },
219
228
  "threadTracker": {
220
229
  "enabled": true,
@@ -319,15 +328,44 @@ Restart OpenClaw after configuring.
319
328
  └── hot-snapshot.md # Pre-compaction snapshot
320
329
  ```
321
330
 
322
- ### Pattern Languages
331
+ ### Pattern Languages (v0.3.0)
323
332
 
324
- Thread and decision detection supports English, German, or both:
333
+ Thread and decision detection supports **10 languages** out of the box:
325
334
 
326
- - **Decision patterns**: "we decided", "let's do", "the plan is", "wir machen", "beschlossen"
327
- - **Closure patterns**: "is done", "it works", "fixed ✅", "erledigt", "gefixt"
328
- - **Wait patterns**: "waiting for", "blocked by", "warte auf"
329
- - **Topic patterns**: "back to", "now about", "jetzt zu", "bzgl."
330
- - **Mood detection**: frustrated, excited, tense, productive, exploratory
335
+ | Language | Code | Decision | Closure | Wait | Mood |
336
+ |----------|------|----------|---------|------|------|
337
+ | English | `en` | "we decided", "let's do", "the plan is" | "is done", "fixed ✅" | "waiting for", "blocked by" | ✅ |
338
+ | German | `de` | "wir machen", "beschlossen" | "erledigt", "gefixt" | "warte auf" | ✅ |
339
+ | French | `fr` | "nous avons décidé", "on fait" | "c'est fait", "résolu" | "en attente de" | ✅ |
340
+ | Spanish | `es` | "decidimos", "el plan es" | "está hecho", "resuelto" | "esperando" | ✅ |
341
+ | Portuguese | `pt` | "decidimos", "o plano é" | "está feito", "resolvido" | "aguardando" | ✅ |
342
+ | Italian | `it` | "abbiamo deciso", "il piano è" | "è fatto", "risolto" | "in attesa di" | ✅ |
343
+ | Chinese | `zh` | "我们决定", "计划是" | "已完成", "已解决" | "等待", "阻塞" | ✅ |
344
+ | Japanese | `ja` | "決定しました", "方針は" | "完了", "解決済み" | "待ち" | ✅ |
345
+ | Korean | `ko` | "결정했습니다", "계획은" | "완료", "해결" | "대기 중" | ✅ |
346
+ | Russian | `ru` | "мы решили", "план такой" | "готово", "исправлено" | "ждём", "заблокировано" | ✅ |
347
+
348
+ Configure via `patternLanguage`:
349
+ ```jsonc
350
+ "both" // backward-compat: EN + DE
351
+ "all" // all 10 languages
352
+ ["en", "fr", "es"] // specific languages
353
+ "de" // single language
354
+ ```
355
+
356
+ **Custom patterns** — add your own via config:
357
+ ```json
358
+ {
359
+ "patterns": {
360
+ "language": "all",
361
+ "custom": {
362
+ "mode": "extend",
363
+ "decision": ["my custom pattern"],
364
+ "close": ["zakończone"]
365
+ }
366
+ }
367
+ }
368
+ ```
331
369
 
332
370
  ### LLM Enhancement Flow
333
371
 
@@ -359,7 +397,7 @@ The LLM sees a conversation snippet (configurable batch size) and returns:
359
397
 
360
398
  ```bash
361
399
  npm install
362
- npm test # 288 tests
400
+ npm test # 516 tests
363
401
  npm run typecheck # TypeScript strict mode
364
402
  npm run build # Compile to dist/
365
403
  ```
@@ -371,7 +409,7 @@ npm run build # Compile to dist/
371
409
  - LLM enhancement: async, batched, fire-and-forget (never blocks hooks)
372
410
  - Atomic file writes via `.tmp` + rename
373
411
  - Noise filter prevents garbage threads from polluting state
374
- - Tested with 288 unit + integration tests
412
+ - Tested with 516 unit + integration tests
375
413
 
376
414
  ## Architecture
377
415
 
@@ -385,12 +423,11 @@ MIT — see [LICENSE](LICENSE)
385
423
 
386
424
  | # | Plugin | Status | Description |
387
425
  |---|--------|--------|-------------|
388
- | 1 | [@vainplex/nats-eventstore](https://github.com/alberthild/openclaw-nats-eventstore) | ✅ Published | NATS JetStream event persistence |
389
- | 2 | **@vainplex/openclaw-cortex** | ✅ Published | Conversation intelligence — threads, decisions, boot context (this plugin) |
390
- | 3 | [@vainplex/openclaw-knowledge-engine](https://github.com/alberthild/openclaw-knowledge-engine) | ✅ Published | Real-time knowledge extraction |
391
- | 4 | @vainplex/openclaw-governance | 📋 Planned | Policy enforcement + guardrails |
392
- | 5 | @vainplex/openclaw-memory-engine | 📋 Planned | Unified memory layer |
393
- | 6 | @vainplex/openclaw-health-monitor | 📋 Planned | System health + auto-healing |
426
+ | 1 | [@vainplex/nats-eventstore](https://github.com/alberthild/vainplex-openclaw/tree/main/packages/openclaw-nats-eventstore) | ✅ Published | NATS JetStream event persistence |
427
+ | 2 | **@vainplex/openclaw-cortex** | ✅ Published | Conversation intelligence — threads, decisions, boot context, 10 languages (this plugin) |
428
+ | 3 | [@vainplex/openclaw-knowledge-engine](https://github.com/alberthild/vainplex-openclaw/tree/main/packages/openclaw-knowledge-engine) | ✅ Published | Real-time knowledge extraction |
429
+ | 4 | [@vainplex/openclaw-governance](https://github.com/alberthild/vainplex-openclaw/tree/main/packages/openclaw-governance) | Published | Policy-as-code engine trust scoring, audit trail, production safeguards |
430
+ | 5 | @vainplex/openclaw-health-monitor | 📋 Planned | System health + auto-healing |
394
431
 
395
432
  ## License
396
433
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vainplex/openclaw-cortex",
3
- "version": "0.3.0",
3
+ "version": "0.3.1",
4
4
  "description": "OpenClaw plugin: conversation intelligence — thread tracking, decision extraction, boot context, pre-compaction snapshots",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",