@kodelyth/memory-lancedb 2026.5.39
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/api.js +7 -0
- package/cli-metadata.js +7 -0
- package/config.js +7 -0
- package/index.js +7 -0
- package/klaw.plugin.json +156 -0
- package/lancedb-runtime.js +7 -0
- package/package.json +39 -0
- package/test-helpers.js +7 -0
package/api.js
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export * from "../../../dist/extensions/memory-lancedb/api.js";
|
|
2
|
+
import * as module from "../../../dist/extensions/memory-lancedb/api.js";
|
|
3
|
+
let defaultExport = "default" in module ? module.default : module;
|
|
4
|
+
for (let index = 0; index < 4 && defaultExport && typeof defaultExport === "object" && "default" in defaultExport; index += 1) {
|
|
5
|
+
defaultExport = defaultExport.default;
|
|
6
|
+
}
|
|
7
|
+
export { defaultExport as default };
|
package/cli-metadata.js
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export * from "../../../dist/extensions/memory-lancedb/cli-metadata.js";
|
|
2
|
+
import defaultModule from "../../../dist/extensions/memory-lancedb/cli-metadata.js";
|
|
3
|
+
let defaultExport = defaultModule;
|
|
4
|
+
for (let index = 0; index < 4 && defaultExport && typeof defaultExport === "object" && "default" in defaultExport; index += 1) {
|
|
5
|
+
defaultExport = defaultExport.default;
|
|
6
|
+
}
|
|
7
|
+
export { defaultExport as default };
|
package/config.js
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export * from "../../../dist/extensions/memory-lancedb/config.js";
|
|
2
|
+
import * as module from "../../../dist/extensions/memory-lancedb/config.js";
|
|
3
|
+
let defaultExport = "default" in module ? module.default : module;
|
|
4
|
+
for (let index = 0; index < 4 && defaultExport && typeof defaultExport === "object" && "default" in defaultExport; index += 1) {
|
|
5
|
+
defaultExport = defaultExport.default;
|
|
6
|
+
}
|
|
7
|
+
export { defaultExport as default };
|
package/index.js
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export * from "../../../dist/extensions/memory-lancedb/index.js";
|
|
2
|
+
import defaultModule from "../../../dist/extensions/memory-lancedb/index.js";
|
|
3
|
+
let defaultExport = defaultModule;
|
|
4
|
+
for (let index = 0; index < 4 && defaultExport && typeof defaultExport === "object" && "default" in defaultExport; index += 1) {
|
|
5
|
+
defaultExport = defaultExport.default;
|
|
6
|
+
}
|
|
7
|
+
export { defaultExport as default };
|
package/klaw.plugin.json
ADDED
|
@@ -0,0 +1,156 @@
|
|
|
1
|
+
{
|
|
2
|
+
"id": "memory-lancedb",
|
|
3
|
+
"commandAliases": [
|
|
4
|
+
{
|
|
5
|
+
"name": "ltm"
|
|
6
|
+
}
|
|
7
|
+
],
|
|
8
|
+
"activation": {
|
|
9
|
+
"onStartup": false,
|
|
10
|
+
"onCommands": [
|
|
11
|
+
"ltm"
|
|
12
|
+
]
|
|
13
|
+
},
|
|
14
|
+
"kind": "memory",
|
|
15
|
+
"contracts": {
|
|
16
|
+
"tools": [
|
|
17
|
+
"memory_forget",
|
|
18
|
+
"memory_recall",
|
|
19
|
+
"memory_store"
|
|
20
|
+
]
|
|
21
|
+
},
|
|
22
|
+
"uiHints": {
|
|
23
|
+
"embedding.apiKey": {
|
|
24
|
+
"label": "Embedding API Key",
|
|
25
|
+
"sensitive": true,
|
|
26
|
+
"placeholder": "sk-proj-...",
|
|
27
|
+
"help": "Optional API key override for OpenAI-compatible embeddings; omit to use configured provider auth"
|
|
28
|
+
},
|
|
29
|
+
"embedding.provider": {
|
|
30
|
+
"label": "Embedding Provider",
|
|
31
|
+
"placeholder": "openai",
|
|
32
|
+
"help": "Memory embedding provider adapter to use (for example openai, github-copilot, ollama)"
|
|
33
|
+
},
|
|
34
|
+
"embedding.model": {
|
|
35
|
+
"label": "Embedding Model",
|
|
36
|
+
"placeholder": "text-embedding-3-small",
|
|
37
|
+
"help": "OpenAI embedding model to use"
|
|
38
|
+
},
|
|
39
|
+
"embedding.baseUrl": {
|
|
40
|
+
"label": "Base URL",
|
|
41
|
+
"placeholder": "https://api.openai.com/v1",
|
|
42
|
+
"help": "Optional provider or OpenAI-compatible embedding endpoint base URL",
|
|
43
|
+
"advanced": true
|
|
44
|
+
},
|
|
45
|
+
"embedding.dimensions": {
|
|
46
|
+
"label": "Dimensions",
|
|
47
|
+
"placeholder": "1536",
|
|
48
|
+
"help": "Vector dimensions for custom models (required for non-standard models)",
|
|
49
|
+
"advanced": true
|
|
50
|
+
},
|
|
51
|
+
"dbPath": {
|
|
52
|
+
"label": "Database Path",
|
|
53
|
+
"placeholder": "~/.klaw/memory/lancedb",
|
|
54
|
+
"advanced": true
|
|
55
|
+
},
|
|
56
|
+
"autoCapture": {
|
|
57
|
+
"label": "Auto-Capture",
|
|
58
|
+
"help": "Automatically capture important information from conversations"
|
|
59
|
+
},
|
|
60
|
+
"autoRecall": {
|
|
61
|
+
"label": "Auto-Recall",
|
|
62
|
+
"help": "Automatically inject relevant memories into context"
|
|
63
|
+
},
|
|
64
|
+
"dreaming": {
|
|
65
|
+
"label": "Dreaming",
|
|
66
|
+
"help": "Optional dreaming config consumed when this plugin owns the memory slot"
|
|
67
|
+
},
|
|
68
|
+
"captureMaxChars": {
|
|
69
|
+
"label": "Capture Max Chars",
|
|
70
|
+
"help": "Maximum message length eligible for auto-capture",
|
|
71
|
+
"advanced": true,
|
|
72
|
+
"placeholder": "500"
|
|
73
|
+
},
|
|
74
|
+
"customTriggers": {
|
|
75
|
+
"label": "Custom Triggers",
|
|
76
|
+
"help": "Literal phrases that should make auto-capture consider a message memory-worthy",
|
|
77
|
+
"advanced": true
|
|
78
|
+
},
|
|
79
|
+
"recallMaxChars": {
|
|
80
|
+
"label": "Recall Query Max Chars",
|
|
81
|
+
"help": "Maximum prompt/query length embedded for memory recall. Lower for small local embedding models.",
|
|
82
|
+
"advanced": true,
|
|
83
|
+
"placeholder": "1000"
|
|
84
|
+
},
|
|
85
|
+
"storageOptions": {
|
|
86
|
+
"label": "Storage Options",
|
|
87
|
+
"advanced": true,
|
|
88
|
+
"help": "Storage configuration options (access_key, secret_key, endpoint, etc.); supports ${ENV_VAR} values"
|
|
89
|
+
}
|
|
90
|
+
},
|
|
91
|
+
"configSchema": {
|
|
92
|
+
"type": "object",
|
|
93
|
+
"additionalProperties": false,
|
|
94
|
+
"properties": {
|
|
95
|
+
"embedding": {
|
|
96
|
+
"type": "object",
|
|
97
|
+
"minProperties": 1,
|
|
98
|
+
"additionalProperties": false,
|
|
99
|
+
"properties": {
|
|
100
|
+
"apiKey": {
|
|
101
|
+
"type": "string"
|
|
102
|
+
},
|
|
103
|
+
"provider": {
|
|
104
|
+
"type": "string"
|
|
105
|
+
},
|
|
106
|
+
"model": {
|
|
107
|
+
"type": "string"
|
|
108
|
+
},
|
|
109
|
+
"baseUrl": {
|
|
110
|
+
"type": "string"
|
|
111
|
+
},
|
|
112
|
+
"dimensions": {
|
|
113
|
+
"type": "number"
|
|
114
|
+
}
|
|
115
|
+
}
|
|
116
|
+
},
|
|
117
|
+
"dbPath": {
|
|
118
|
+
"type": "string"
|
|
119
|
+
},
|
|
120
|
+
"autoCapture": {
|
|
121
|
+
"type": "boolean"
|
|
122
|
+
},
|
|
123
|
+
"autoRecall": {
|
|
124
|
+
"type": "boolean"
|
|
125
|
+
},
|
|
126
|
+
"dreaming": {
|
|
127
|
+
"type": "object"
|
|
128
|
+
},
|
|
129
|
+
"captureMaxChars": {
|
|
130
|
+
"type": "number",
|
|
131
|
+
"minimum": 100,
|
|
132
|
+
"maximum": 10000
|
|
133
|
+
},
|
|
134
|
+
"customTriggers": {
|
|
135
|
+
"type": "array",
|
|
136
|
+
"maxItems": 50,
|
|
137
|
+
"items": {
|
|
138
|
+
"type": "string",
|
|
139
|
+
"minLength": 1,
|
|
140
|
+
"maxLength": 100
|
|
141
|
+
}
|
|
142
|
+
},
|
|
143
|
+
"recallMaxChars": {
|
|
144
|
+
"type": "number",
|
|
145
|
+
"minimum": 100,
|
|
146
|
+
"maximum": 10000
|
|
147
|
+
},
|
|
148
|
+
"storageOptions": {
|
|
149
|
+
"type": "object",
|
|
150
|
+
"additionalProperties": {
|
|
151
|
+
"type": "string"
|
|
152
|
+
}
|
|
153
|
+
}
|
|
154
|
+
}
|
|
155
|
+
}
|
|
156
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export * from "../../../dist/extensions/memory-lancedb/lancedb-runtime.js";
|
|
2
|
+
import * as module from "../../../dist/extensions/memory-lancedb/lancedb-runtime.js";
|
|
3
|
+
let defaultExport = "default" in module ? module.default : module;
|
|
4
|
+
for (let index = 0; index < 4 && defaultExport && typeof defaultExport === "object" && "default" in defaultExport; index += 1) {
|
|
5
|
+
defaultExport = defaultExport.default;
|
|
6
|
+
}
|
|
7
|
+
export { defaultExport as default };
|
package/package.json
ADDED
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@kodelyth/memory-lancedb",
|
|
3
|
+
"version": "2026.5.39",
|
|
4
|
+
"description": "Klaw LanceDB-backed long-term memory plugin with auto-recall/capture",
|
|
5
|
+
"repository": {
|
|
6
|
+
"type": "git",
|
|
7
|
+
"url": "https://github.com/kodelyth/klaw"
|
|
8
|
+
},
|
|
9
|
+
"type": "module",
|
|
10
|
+
"dependencies": {
|
|
11
|
+
"@lancedb/lancedb": "0.27.2",
|
|
12
|
+
"apache-arrow": "18.1.0",
|
|
13
|
+
"openai": "6.37.0",
|
|
14
|
+
"typebox": "1.1.38"
|
|
15
|
+
},
|
|
16
|
+
"devDependencies": {
|
|
17
|
+
"@kodelyth/plugin-sdk": "1.0.1"
|
|
18
|
+
},
|
|
19
|
+
"klaw": {
|
|
20
|
+
"extensions": [
|
|
21
|
+
"./index.js"
|
|
22
|
+
],
|
|
23
|
+
"install": {
|
|
24
|
+
"npmSpec": "@kodelyth/memory-lancedb",
|
|
25
|
+
"defaultChoice": "npm",
|
|
26
|
+
"minHostVersion": ">=2026.4.10"
|
|
27
|
+
},
|
|
28
|
+
"compat": {
|
|
29
|
+
"pluginApi": ">=2026.5.39"
|
|
30
|
+
},
|
|
31
|
+
"build": {
|
|
32
|
+
"klawVersion": "2026.5.39"
|
|
33
|
+
},
|
|
34
|
+
"release": {
|
|
35
|
+
"publishToClawHub": true,
|
|
36
|
+
"publishToNpm": true
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
}
|
package/test-helpers.js
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export * from "../../../dist/extensions/memory-lancedb/test-helpers.js";
|
|
2
|
+
import * as module from "../../../dist/extensions/memory-lancedb/test-helpers.js";
|
|
3
|
+
let defaultExport = "default" in module ? module.default : module;
|
|
4
|
+
for (let index = 0; index < 4 && defaultExport && typeof defaultExport === "object" && "default" in defaultExport; index += 1) {
|
|
5
|
+
defaultExport = defaultExport.default;
|
|
6
|
+
}
|
|
7
|
+
export { defaultExport as default };
|