@vainplex/openclaw-cortex 0.2.1 → 0.2.2
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.
- package/README.md +13 -3
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +3 -2
- package/dist/index.js.map +1 -1
- package/dist/src/config-loader.d.ts +23 -0
- package/dist/src/config-loader.d.ts.map +1 -0
- package/dist/src/config-loader.js +105 -0
- package/dist/src/config-loader.js.map +1 -0
- package/openclaw.plugin.json +6 -2
- package/package.json +4 -3
package/README.md
CHANGED
|
@@ -381,7 +381,17 @@ See [docs/ARCHITECTURE.md](docs/ARCHITECTURE.md) for the full design document in
|
|
|
381
381
|
|
|
382
382
|
MIT — see [LICENSE](LICENSE)
|
|
383
383
|
|
|
384
|
-
##
|
|
384
|
+
## Part of the Vainplex Plugin Suite
|
|
385
385
|
|
|
386
|
-
|
|
387
|
-
|
|
386
|
+
| # | Plugin | Status | Description |
|
|
387
|
+
|---|--------|--------|-------------|
|
|
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 |
|
|
394
|
+
|
|
395
|
+
## License
|
|
396
|
+
|
|
397
|
+
MIT — see [LICENSE](LICENSE)
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../index.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,iBAAiB,EAAe,MAAM,gBAAgB,CAAC;AAErE,QAAA,MAAM,MAAM;;;;;kBAOI,iBAAiB;CA8ChC,CAAC;AAEF,eAAe,MAAM,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { registerCortexHooks } from "./src/hooks.js";
|
|
2
|
-
import {
|
|
2
|
+
import { resolveWorkspace } from "./src/config.js";
|
|
3
|
+
import { loadConfig } from "./src/config-loader.js";
|
|
3
4
|
import { loadJson, rebootDir } from "./src/storage.js";
|
|
4
5
|
const plugin = {
|
|
5
6
|
id: "openclaw-cortex",
|
|
@@ -7,7 +8,7 @@ const plugin = {
|
|
|
7
8
|
description: "Conversation intelligence — thread tracking, decision extraction, boot context, pre-compaction snapshots",
|
|
8
9
|
version: "0.1.0",
|
|
9
10
|
register(api) {
|
|
10
|
-
const config =
|
|
11
|
+
const { config } = loadConfig(api.pluginConfig, api.logger);
|
|
11
12
|
if (!config.enabled) {
|
|
12
13
|
api.logger.info("[cortex] Disabled via config");
|
|
13
14
|
return;
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,gBAAgB,CAAC;AACrD,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,gBAAgB,CAAC;AACrD,OAAO,EAAE,gBAAgB,EAAE,MAAM,iBAAiB,CAAC;AACnD,OAAO,EAAE,UAAU,EAAE,MAAM,wBAAwB,CAAC;AACpD,OAAO,EAAE,QAAQ,EAAE,SAAS,EAAE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AC;oBAC5C,MAAM,OAAO,GAAG,IAAI,CAAC,OAAO,IAAI,OAAO,CAAC;oBAExC,OAAO;wBACL,IAAI,EAAE;4BACJ,mBAAmB;4BACnB,YAAY,SAAS,UAAU,WAAW,SAAS;4BACnD,SAAS,IAAI,EAAE;4BACf,YAAY,OAAO,EAAE;yBACtB,CAAC,IAAI,CAAC,IAAI,CAAC;qBACb,CAAC;gBACJ,CAAC;gBAAC,MAAM,CAAC;oBACP,OAAO,EAAE,IAAI,EAAE,4CAA4C,EAAE,CAAC;gBAChE,CAAC;YACH,CAAC;SACF,CAAC,CAAC;QAEH,GAAG,CAAC,MAAM,CAAC,IAAI,CAAC,gBAAgB,CAAC,CAAC;IACpC,CAAC;CACF,CAAC;AAEF,eAAe,MAAM,CAAC"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import type { CortexConfig, PluginLogger } from "./types.js";
|
|
2
|
+
/** Minimal inline config that lives in openclaw.json */
|
|
3
|
+
export interface InlineConfig {
|
|
4
|
+
readonly enabled?: boolean;
|
|
5
|
+
/** Override path to external config file */
|
|
6
|
+
readonly configPath?: string;
|
|
7
|
+
}
|
|
8
|
+
export interface ConfigLoadResult {
|
|
9
|
+
readonly config: CortexConfig;
|
|
10
|
+
readonly source: "inline" | "file" | "defaults";
|
|
11
|
+
readonly filePath?: string;
|
|
12
|
+
}
|
|
13
|
+
/**
|
|
14
|
+
* Load cortex config with the following priority:
|
|
15
|
+
*
|
|
16
|
+
* 1. Legacy inline config (full config in openclaw.json) → use it directly
|
|
17
|
+
* 2. External file (configPath or default location) → read + resolve
|
|
18
|
+
* 3. Graceful defaults → everything enabled, fail-open
|
|
19
|
+
*
|
|
20
|
+
* NEVER throws. Worst case: returns defaults with a warning.
|
|
21
|
+
*/
|
|
22
|
+
export declare function loadConfig(pluginConfig: Record<string, unknown> | undefined, logger: PluginLogger): ConfigLoadResult;
|
|
23
|
+
//# sourceMappingURL=config-loader.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"config-loader.d.ts","sourceRoot":"","sources":["../../src/config-loader.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,YAAY,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC;AAG7D,wDAAwD;AACxD,MAAM,WAAW,YAAY;IAC3B,QAAQ,CAAC,OAAO,CAAC,EAAE,OAAO,CAAC;IAC3B,4CAA4C;IAC5C,QAAQ,CAAC,UAAU,CAAC,EAAE,MAAM,CAAC;CAC9B;AAsFD,MAAM,WAAW,gBAAgB;IAC/B,QAAQ,CAAC,MAAM,EAAE,YAAY,CAAC;IAC9B,QAAQ,CAAC,MAAM,EAAE,QAAQ,GAAG,MAAM,GAAG,UAAU,CAAC;IAChD,QAAQ,CAAC,QAAQ,CAAC,EAAE,MAAM,CAAC;CAC5B;AAED;;;;;;;;GAQG;AACH,wBAAgB,UAAU,CACxB,YAAY,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS,EACjD,MAAM,EAAE,YAAY,GACnB,gBAAgB,CAkClB"}
|
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
import { readFileSync, existsSync, mkdirSync, writeFileSync } from "node:fs";
|
|
2
|
+
import { join, dirname } from "node:path";
|
|
3
|
+
import { resolveConfig, DEFAULTS } from "./config.js";
|
|
4
|
+
const DEFAULT_CONFIG_DIR = join(process.env["HOME"] ?? "/tmp", ".openclaw", "plugins", "openclaw-cortex");
|
|
5
|
+
const DEFAULT_CONFIG_FILENAME = "config.json";
|
|
6
|
+
function isRecord(v) {
|
|
7
|
+
return typeof v === "object" && v !== null && !Array.isArray(v);
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Determine whether pluginConfig is a full (legacy) inline config
|
|
11
|
+
* or just the minimal inline pointer.
|
|
12
|
+
*
|
|
13
|
+
* Heuristic: if it has keys beyond `enabled` and `configPath`,
|
|
14
|
+
* treat it as legacy inline config.
|
|
15
|
+
*/
|
|
16
|
+
function isLegacyInlineConfig(raw) {
|
|
17
|
+
const inlineOnlyKeys = new Set(["enabled", "configPath"]);
|
|
18
|
+
return Object.keys(raw).some((k) => !inlineOnlyKeys.has(k));
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
* Read and parse a JSON file. Returns null on any error.
|
|
22
|
+
*/
|
|
23
|
+
function readJsonFile(path, logger) {
|
|
24
|
+
try {
|
|
25
|
+
if (!existsSync(path))
|
|
26
|
+
return null;
|
|
27
|
+
const raw = readFileSync(path, "utf-8");
|
|
28
|
+
const parsed = JSON.parse(raw);
|
|
29
|
+
if (!isRecord(parsed)) {
|
|
30
|
+
logger.warn(`[cortex] Config file is not an object: ${path}`);
|
|
31
|
+
return null;
|
|
32
|
+
}
|
|
33
|
+
return parsed;
|
|
34
|
+
}
|
|
35
|
+
catch (e) {
|
|
36
|
+
logger.warn(`[cortex] Failed to read config file ${path}: ${e instanceof Error ? e.message : String(e)}`);
|
|
37
|
+
return null;
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
/**
|
|
41
|
+
* Apply inline `enabled` override to a file-loaded config (immutably).
|
|
42
|
+
*/
|
|
43
|
+
function applyInlineOverrides(fileConfig, inline) {
|
|
44
|
+
if (typeof inline["enabled"] === "boolean") {
|
|
45
|
+
return { ...fileConfig, enabled: inline["enabled"] };
|
|
46
|
+
}
|
|
47
|
+
return fileConfig;
|
|
48
|
+
}
|
|
49
|
+
/**
|
|
50
|
+
* Bootstrap a default config file and return its contents.
|
|
51
|
+
* Returns null if writing or reading back fails.
|
|
52
|
+
*/
|
|
53
|
+
function bootstrapConfig(path, logger) {
|
|
54
|
+
try {
|
|
55
|
+
const dir = dirname(path);
|
|
56
|
+
if (!existsSync(dir))
|
|
57
|
+
mkdirSync(dir, { recursive: true });
|
|
58
|
+
writeFileSync(path, JSON.stringify(DEFAULTS, null, 2) + "\n", "utf-8");
|
|
59
|
+
logger.info(`[cortex] Created default config at ${path}`);
|
|
60
|
+
return readJsonFile(path, logger);
|
|
61
|
+
}
|
|
62
|
+
catch (e) {
|
|
63
|
+
logger.warn(`[cortex] Failed to write default config: ${e instanceof Error ? e.message : String(e)}`);
|
|
64
|
+
return null;
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
/**
|
|
68
|
+
* Load cortex config with the following priority:
|
|
69
|
+
*
|
|
70
|
+
* 1. Legacy inline config (full config in openclaw.json) → use it directly
|
|
71
|
+
* 2. External file (configPath or default location) → read + resolve
|
|
72
|
+
* 3. Graceful defaults → everything enabled, fail-open
|
|
73
|
+
*
|
|
74
|
+
* NEVER throws. Worst case: returns defaults with a warning.
|
|
75
|
+
*/
|
|
76
|
+
export function loadConfig(pluginConfig, logger) {
|
|
77
|
+
const raw = pluginConfig ?? {};
|
|
78
|
+
// Priority 1: Legacy inline config (backward compatible)
|
|
79
|
+
if (isLegacyInlineConfig(raw)) {
|
|
80
|
+
logger.info("[cortex] Using inline config from openclaw.json");
|
|
81
|
+
return { config: resolveConfig(raw), source: "inline" };
|
|
82
|
+
}
|
|
83
|
+
// Priority 2: External config file
|
|
84
|
+
const configPath = typeof raw["configPath"] === "string"
|
|
85
|
+
? raw["configPath"]
|
|
86
|
+
: join(DEFAULT_CONFIG_DIR, DEFAULT_CONFIG_FILENAME);
|
|
87
|
+
const fileConfig = readJsonFile(configPath, logger);
|
|
88
|
+
if (fileConfig !== null) {
|
|
89
|
+
const merged = applyInlineOverrides(fileConfig, raw);
|
|
90
|
+
logger.info(`[cortex] Loaded config from ${configPath}`);
|
|
91
|
+
return { config: resolveConfig(merged), source: "file", filePath: configPath };
|
|
92
|
+
}
|
|
93
|
+
// File missing → bootstrap with defaults
|
|
94
|
+
if (!existsSync(configPath)) {
|
|
95
|
+
const bootstrapped = bootstrapConfig(configPath, logger);
|
|
96
|
+
if (bootstrapped !== null) {
|
|
97
|
+
const merged = applyInlineOverrides(bootstrapped, raw);
|
|
98
|
+
return { config: resolveConfig(merged), source: "file", filePath: configPath };
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
// Priority 3: Graceful defaults (file broken or unwritable)
|
|
102
|
+
logger.warn("[cortex] Falling back to default config");
|
|
103
|
+
return { config: resolveConfig(undefined), source: "defaults" };
|
|
104
|
+
}
|
|
105
|
+
//# sourceMappingURL=config-loader.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"config-loader.js","sourceRoot":"","sources":["../../src/config-loader.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,UAAU,EAAE,SAAS,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AAC7E,OAAO,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAE1C,OAAO,EAAE,aAAa,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAStD,MAAM,kBAAkB,GAAG,IAAI,CAC7B,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,IAAI,MAAM,EAC7B,WAAW,EACX,SAAS,EACT,iBAAiB,CAClB,CAAC;AACF,MAAM,uBAAuB,GAAG,aAAa,CAAC;AAE9C,SAAS,QAAQ,CAAC,CAAU;IAC1B,OAAO,OAAO,CAAC,KAAK,QAAQ,IAAI,CAAC,KAAK,IAAI,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC;AAClE,CAAC;AAED;;;;;;GAMG;AACH,SAAS,oBAAoB,CAAC,GAA4B;IACxD,MAAM,cAAc,GAAG,IAAI,GAAG,CAAC,CAAC,SAAS,EAAE,YAAY,CAAC,CAAC,CAAC;IAC1D,OAAO,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,cAAc,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC;AAC9D,CAAC;AAED;;GAEG;AACH,SAAS,YAAY,CACnB,IAAY,EACZ,MAAoB;IAEpB,IAAI,CAAC;QACH,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC;YA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AED,yCAAyC;IACzC,IAAI,CAAC,UAAU,CAAC,UAAU,CAAC,EAAE,CAAC;QAC5B,MAAM,YAAY,GAAG,eAAe,CAAC,UAAU,EAAE,MAAM,CAAC,CAAC;QACzD,IAAI,YAAY,KAAK,IAAI,EAAE,CAAC;YAC1B,MAAM,MAAM,GAAG,oBAAoB,CAAC,YAAY,EAAE,GAAG,CAAC,CAAC;YACvD,OAAO,EAAE,MAAM,EAAE,aAAa,CAAC,MAAM,CAAC,EAAE,MAAM,EAAE,MAAM,EAAE,QAAQ,EAAE,UAAU,EAAE,CAAC;QACjF,CAAC;IACH,CAAC;IAED,4DAA4D;IAC5D,MAAM,CAAC,IAAI,CAAC,yCAAyC,CAAC,CAAC;IACvD,OAAO,EAAE,MAAM,EAAE,aAAa,CAAC,SAAS,CAAC,EAAE,MAAM,EAAE,UAAU,EAAE,CAAC;AAClE,CAAC"}
|
package/openclaw.plugin.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"id": "openclaw-cortex",
|
|
3
3
|
"configSchema": {
|
|
4
4
|
"type": "object",
|
|
5
|
-
"additionalProperties":
|
|
5
|
+
"additionalProperties": true,
|
|
6
6
|
"properties": {
|
|
7
7
|
"enabled": {
|
|
8
8
|
"type": "boolean",
|
|
@@ -143,7 +143,11 @@
|
|
|
143
143
|
"properties": {
|
|
144
144
|
"language": {
|
|
145
145
|
"type": "string",
|
|
146
|
-
"enum": [
|
|
146
|
+
"enum": [
|
|
147
|
+
"en",
|
|
148
|
+
"de",
|
|
149
|
+
"both"
|
|
150
|
+
],
|
|
147
151
|
"default": "both",
|
|
148
152
|
"description": "Language for regex pattern matching: English, German, or both"
|
|
149
153
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vainplex/openclaw-cortex",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.2",
|
|
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",
|
|
@@ -42,8 +42,9 @@
|
|
|
42
42
|
"license": "MIT",
|
|
43
43
|
"repository": {
|
|
44
44
|
"type": "git",
|
|
45
|
-
"url": "
|
|
45
|
+
"url": "https://github.com/alberthild/vainplex-openclaw.git",
|
|
46
|
+
"directory": "packages/openclaw-cortex"
|
|
46
47
|
},
|
|
47
48
|
"homepage": "https://github.com/alberthild/openclaw-cortex#readme",
|
|
48
|
-
"author": "
|
|
49
|
+
"author": "Albert Hild <a.hild@vainplex.de>"
|
|
49
50
|
}
|