@mrc2204/agent-smart-memo 5.1.12 → 5.1.14
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/bin/opencode-mcp-server.mjs +3 -5
- package/dist/cli/platform-installers.d.ts +1 -1
- package/dist/cli/platform-installers.d.ts.map +1 -1
- package/dist/cli/platform-installers.js +156 -43
- package/dist/cli/platform-installers.js.map +1 -1
- package/dist/hooks/auto-capture.js +3 -3
- package/dist/hooks/auto-capture.js.map +1 -1
- package/dist/index.d.ts +204 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +122 -26
- package/dist/index.js.map +1 -1
- package/package.json +81 -81
- package/scripts/init-openclaw.mjs +10 -16
package/package.json
CHANGED
|
@@ -1,83 +1,83 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
2
|
+
"name": "@mrc2204/agent-smart-memo",
|
|
3
|
+
"version": "5.1.14",
|
|
4
|
+
"description": "Smart Memory Plugin for OpenClaw — structured slot memory with auto-capture, auto-recall, essence distillation, and Qdrant vector search",
|
|
5
|
+
"keywords": [
|
|
6
|
+
"agent",
|
|
7
|
+
"ai",
|
|
8
|
+
"auto-capture",
|
|
9
|
+
"memory",
|
|
10
|
+
"openclaw",
|
|
11
|
+
"plugin",
|
|
12
|
+
"qdrant",
|
|
13
|
+
"smart-memo"
|
|
14
|
+
],
|
|
15
|
+
"license": "MIT",
|
|
16
|
+
"author": "mrc2204",
|
|
17
|
+
"repository": {
|
|
18
|
+
"type": "git",
|
|
19
|
+
"url": "git+https://github.com/cong91/agent-smart-memo.git"
|
|
20
|
+
},
|
|
21
|
+
"bin": {
|
|
22
|
+
"agent-smart-memo": "bin/asm.mjs",
|
|
23
|
+
"asm": "bin/asm.mjs"
|
|
24
|
+
},
|
|
25
|
+
"files": [
|
|
26
|
+
"dist/",
|
|
27
|
+
"bin/",
|
|
28
|
+
"scripts/init-openclaw.mjs",
|
|
29
|
+
"openclaw.plugin.json",
|
|
30
|
+
"CONFIG.example.json",
|
|
31
|
+
"README.md",
|
|
32
|
+
"LICENSE"
|
|
33
|
+
],
|
|
34
|
+
"type": "module",
|
|
35
|
+
"main": "dist/index.js",
|
|
36
|
+
"publishConfig": {
|
|
37
|
+
"access": "public"
|
|
38
|
+
},
|
|
39
|
+
"scripts": {
|
|
40
|
+
"build": "npm run build:openclaw && npm run sync:openclaw:dist",
|
|
41
|
+
"build:all": "npm run build:openclaw && npm run build:paperclip && npm run build:core",
|
|
42
|
+
"build:openclaw": "tsc -p tsconfig.openclaw.json",
|
|
43
|
+
"build:paperclip": "tsc -p tsconfig.paperclip.json",
|
|
44
|
+
"build:core": "tsc -p tsconfig.core.json",
|
|
45
|
+
"sync:openclaw:dist": "node scripts/sync-openclaw-dist.mjs",
|
|
46
|
+
"package:openclaw": "npm run build:openclaw && node scripts/prepare-package-target.mjs openclaw",
|
|
47
|
+
"package:paperclip": "npm run build:paperclip && node scripts/prepare-package-target.mjs paperclip",
|
|
48
|
+
"package:core": "npm run build:core && node scripts/prepare-package-target.mjs core",
|
|
49
|
+
"pack:openclaw": "npm run package:openclaw && (cd artifacts/npm/openclaw && npm pack)",
|
|
50
|
+
"pack:paperclip": "npm run package:paperclip && (cd artifacts/npm/paperclip && npm pack)",
|
|
51
|
+
"package:paperclip:plugin-local": "npm run build:paperclip && node scripts/prepare-paperclip-plugin-local.mjs",
|
|
52
|
+
"pack:paperclip:plugin-local": "npm run package:paperclip:plugin-local && (cd artifacts/paperclip-plugin-local && npm pack)",
|
|
53
|
+
"pack:core": "npm run package:core && (cd artifacts/npm/core && npm pack)",
|
|
54
|
+
"publish:openclaw": "npm run package:openclaw && node scripts/publish-target.mjs openclaw",
|
|
55
|
+
"publish:paperclip": "npm run package:paperclip && node scripts/publish-target.mjs paperclip",
|
|
56
|
+
"publish:core": "npm run package:core && node scripts/publish-target.mjs core",
|
|
57
|
+
"test": "npx tsx tests/test.ts && npx tsx tests/test-auto-recall.ts && npx tsx tests/test-memory-config.ts",
|
|
58
|
+
"test:openclaw": "npx tsx tests/test-openclaw-adapter-contract.ts && npx tsx tests/test-openclaw-semantic-tools-integration.ts",
|
|
59
|
+
"test:paperclip": "npx tsx tests/test-paperclip-contracts.ts && npx tsx tests/test-paperclip-runtime-e2e.ts",
|
|
60
|
+
"test:asm-cli": "npx tsx tests/test-asm-cli.ts",
|
|
61
|
+
"smoke:paperclip:local": "npm run build:paperclip && node scripts/paperclip-local-smoke-debug.mjs",
|
|
62
|
+
"clean": "rm -rf dist dist-openclaw dist-paperclip dist-core artifacts/npm",
|
|
63
|
+
"migrate:namespaces": "npx tsx scripts/migrate-namespaces.ts",
|
|
64
|
+
"distill:namespaces": "npx tsx scripts/distill-by-namespace.ts",
|
|
65
|
+
"validate:ab": "npx tsx scripts/validate-ab.ts",
|
|
66
|
+
"init-openclaw": "node scripts/init-openclaw.mjs",
|
|
67
|
+
"asm": "node bin/asm.mjs"
|
|
68
|
+
},
|
|
69
|
+
"dependencies": {
|
|
70
|
+
"dotenv": "^17.3.1"
|
|
71
|
+
},
|
|
72
|
+
"devDependencies": {
|
|
73
|
+
"@sinclair/typebox": "^0.34.0",
|
|
74
|
+
"@types/node": "^22.0.0",
|
|
75
|
+
"openclaw": "*",
|
|
76
|
+
"typescript": "^5.0.0"
|
|
77
|
+
},
|
|
78
|
+
"openclaw": {
|
|
79
|
+
"extensions": [
|
|
80
|
+
"./dist/index.js"
|
|
81
|
+
]
|
|
82
|
+
}
|
|
83
83
|
}
|
|
@@ -633,23 +633,17 @@ export async function runInitOpenClaw({ env = process.env, interactive = true, a
|
|
|
633
633
|
const sharedCore = asObj(shared.core);
|
|
634
634
|
|
|
635
635
|
const defaults = {
|
|
636
|
-
qdrantHost: String(sharedCore.qdrantHost || "
|
|
637
|
-
qdrantPort: toIntOrDefault(sharedCore.qdrantPort,
|
|
638
|
-
qdrantCollection: String(sharedCore.qdrantCollection || "
|
|
639
|
-
llmBaseUrl: String(sharedCore.llmBaseUrl || "
|
|
640
|
-
llmModel: String(sharedCore.llmModel || "
|
|
636
|
+
qdrantHost: String(sharedCore.qdrantHost || ""),
|
|
637
|
+
qdrantPort: toIntOrDefault(sharedCore.qdrantPort, 0),
|
|
638
|
+
qdrantCollection: String(sharedCore.qdrantCollection || ""),
|
|
639
|
+
llmBaseUrl: String(sharedCore.llmBaseUrl || ""),
|
|
640
|
+
llmModel: String(sharedCore.llmModel || ""),
|
|
641
641
|
llmApiKey: String(sharedCore.llmApiKey || ""),
|
|
642
|
-
embedBackend: String(sharedCore.embedBackend || "
|
|
643
|
-
embedModel: String(sharedCore.embedModel || "
|
|
644
|
-
embedDimensions: toIntOrDefault(sharedCore.embedDimensions,
|
|
645
|
-
slotDbDir: String(sharedCore.storage?.slotDbDir ||
|
|
646
|
-
projectWorkspaceRoot: String(
|
|
647
|
-
sharedCore.projectWorkspaceRoot ||
|
|
648
|
-
env.AGENT_MEMO_PROJECT_WORKSPACE_ROOT ||
|
|
649
|
-
env.AGENT_MEMO_REPO_CLONE_ROOT ||
|
|
650
|
-
`${env.HOME}/Work/projects` ||
|
|
651
|
-
`${env.HOME}/.openclaw/workspace/projects`,
|
|
652
|
-
),
|
|
642
|
+
embedBackend: String(sharedCore.embedBackend || ""),
|
|
643
|
+
embedModel: String(sharedCore.embedModel || ""),
|
|
644
|
+
embedDimensions: toIntOrDefault(sharedCore.embedDimensions, 0),
|
|
645
|
+
slotDbDir: String(sharedCore.storage?.slotDbDir || ""),
|
|
646
|
+
projectWorkspaceRoot: String(sharedCore.projectWorkspaceRoot || ""),
|
|
653
647
|
asmConfigPath,
|
|
654
648
|
mapMemorySlot: asObj(asObj(current.plugins).slots).memory === PLUGIN_ID,
|
|
655
649
|
telegramOnboardingCommands: dedupeStringArray([
|