@unblocklabs/unblock-memory 0.1.1 → 0.2.0
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 +91 -19
- package/dist/src/analysis.d.ts +2 -6
- package/dist/src/analysis.js +45 -48
- package/dist/src/config.d.ts +16 -2
- package/dist/src/config.js +78 -15
- package/dist/src/contracts.d.ts +18 -0
- package/dist/src/manager.d.ts +16 -8
- package/dist/src/manager.js +175 -25
- package/dist/src/plugin.js +84 -122
- package/dist/src/runtime.d.ts +2 -1
- package/dist/src/runtime.js +30 -7
- package/dist/src/session-projector.d.ts +21 -0
- package/dist/src/session-projector.js +163 -0
- package/dist/src/session-sync.d.ts +43 -0
- package/dist/src/session-sync.js +302 -0
- package/dist/src/sources.d.ts +7 -1
- package/dist/src/sources.js +32 -2
- package/openclaw.plugin.json +48 -8
- package/package.json +5 -3
package/openclaw.plugin.json
CHANGED
|
@@ -1,20 +1,21 @@
|
|
|
1
1
|
{
|
|
2
2
|
"id": "unblock-memory",
|
|
3
3
|
"name": "Unblock Memory",
|
|
4
|
-
"version": "0.
|
|
4
|
+
"version": "0.2.0",
|
|
5
5
|
"description": "Indexes, retrieves, and analyzes configured workspace memory with existing QMD vectors.",
|
|
6
6
|
"kind": "memory",
|
|
7
7
|
"activation": { "onStartup": false },
|
|
8
|
-
"contracts": { "tools": ["memory_search", "memory_get", "memory_recluster", "memory_list_clusters", "memory_fetch_cluster"] },
|
|
8
|
+
"contracts": { "tools": ["memory_search", "memory_get", "memory_sync_sessions", "memory_recluster", "memory_list_clusters", "memory_fetch_cluster"] },
|
|
9
9
|
"toolMetadata": {
|
|
10
|
+
"memory_sync_sessions": { "sideEffecting": true },
|
|
10
11
|
"memory_recluster": { "sideEffecting": true },
|
|
11
12
|
"memory_list_clusters": { "replaySafe": true },
|
|
12
13
|
"memory_fetch_cluster": { "replaySafe": true }
|
|
13
14
|
},
|
|
14
15
|
"uiHints": {
|
|
15
|
-
"
|
|
16
|
-
"label": "Memory
|
|
17
|
-
"help": "
|
|
16
|
+
"corpora": {
|
|
17
|
+
"label": "Memory Corpora",
|
|
18
|
+
"help": "Named groups of exact Markdown files, directories, or globs. Relative paths resolve from each agent workspace."
|
|
18
19
|
},
|
|
19
20
|
"analysis.executable": {
|
|
20
21
|
"label": "Memory Analysis Worker",
|
|
@@ -25,10 +26,49 @@
|
|
|
25
26
|
"type": "object",
|
|
26
27
|
"additionalProperties": false,
|
|
27
28
|
"properties": {
|
|
28
|
-
"
|
|
29
|
+
"corpora": {
|
|
29
30
|
"type": "array",
|
|
30
|
-
"
|
|
31
|
-
"
|
|
31
|
+
"minItems": 1,
|
|
32
|
+
"items": {
|
|
33
|
+
"oneOf": [
|
|
34
|
+
{
|
|
35
|
+
"type": "object",
|
|
36
|
+
"additionalProperties": false,
|
|
37
|
+
"required": ["name", "kind", "paths"],
|
|
38
|
+
"properties": {
|
|
39
|
+
"name": { "type": "string", "pattern": "\\S" },
|
|
40
|
+
"kind": { "const": "files" },
|
|
41
|
+
"paths": {
|
|
42
|
+
"type": "array",
|
|
43
|
+
"minItems": 1,
|
|
44
|
+
"items": { "type": "string", "pattern": "\\S" }
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
},
|
|
48
|
+
{
|
|
49
|
+
"type": "object",
|
|
50
|
+
"additionalProperties": false,
|
|
51
|
+
"required": ["name", "kind"],
|
|
52
|
+
"properties": {
|
|
53
|
+
"name": { "const": "sessions" },
|
|
54
|
+
"kind": { "const": "sessions" },
|
|
55
|
+
"chatTypes": {
|
|
56
|
+
"type": "array",
|
|
57
|
+
"minItems": 1,
|
|
58
|
+
"items": { "enum": ["channel", "group", "direct"] },
|
|
59
|
+
"default": ["channel", "group"]
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
]
|
|
64
|
+
},
|
|
65
|
+
"default": [
|
|
66
|
+
{
|
|
67
|
+
"name": "memory",
|
|
68
|
+
"kind": "files",
|
|
69
|
+
"paths": ["MEMORY.md", "USER.md", "memory/**/*.md"]
|
|
70
|
+
}
|
|
71
|
+
]
|
|
32
72
|
},
|
|
33
73
|
"analysis": {
|
|
34
74
|
"type": "object",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@unblocklabs/unblock-memory",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.2.0",
|
|
4
4
|
"description": "Workspace-native memory for OpenClaw, powered by QMD",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
@@ -22,14 +22,15 @@
|
|
|
22
22
|
"scripts": {
|
|
23
23
|
"build": "tsc -p tsconfig.build.json",
|
|
24
24
|
"typecheck": "tsc -p tsconfig.json --noEmit",
|
|
25
|
+
"knip": "knip --reporter compact",
|
|
25
26
|
"test": "node --import tsx --test --test-concurrency=1 tests/**/*.test.ts",
|
|
26
27
|
"plugin:inspect": "plugin-inspector check --config plugin-inspector.config.json --no-openclaw",
|
|
27
28
|
"plugin:inspect:runtime": "plugin-inspector check --config plugin-inspector.config.json --no-openclaw --runtime --mock-sdk --allow-execute",
|
|
28
29
|
"release:check": "node scripts/check-release-version.mjs",
|
|
29
|
-
"preflight": "npm run build && npm run typecheck && npm test && npm run plugin:inspect && npm run plugin:inspect:runtime && npm pack --dry-run"
|
|
30
|
+
"preflight": "npm run knip && npm run build && npm run typecheck && npm test && npm run plugin:inspect && npm run plugin:inspect:runtime && npm pack --dry-run"
|
|
30
31
|
},
|
|
31
32
|
"dependencies": {
|
|
32
|
-
"@unblocklabs/qmd": "github:unblocklabs-ai/qmd#
|
|
33
|
+
"@unblocklabs/qmd": "github:unblocklabs-ai/qmd#937cd82f9b41818d9eb5f78b94394cb5023b5daf",
|
|
33
34
|
"chokidar": "5.0.0",
|
|
34
35
|
"picomatch": "^4.0.5",
|
|
35
36
|
"typebox": "1.3.6"
|
|
@@ -38,6 +39,7 @@
|
|
|
38
39
|
"@openclaw/plugin-inspector": "^0.3.10",
|
|
39
40
|
"@types/node": "^24.6.0",
|
|
40
41
|
"@types/picomatch": "^4.0.2",
|
|
42
|
+
"knip": "^6.32.2",
|
|
41
43
|
"openclaw": "2026.8.1-beta.3",
|
|
42
44
|
"tsx": "^4.20.6",
|
|
43
45
|
"typescript": "^5.9.3"
|