@xdarkicex/openclaw-memory-libravdb 1.6.7 → 1.6.8
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/dist/index.js +16 -1
- package/dist/markdown-ingest.js +16 -1
- package/docs/configuration.md +2 -2
- package/docs/features.md +2 -2
- package/openclaw.plugin.json +31 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -32672,6 +32672,21 @@ var DEFAULT_TOKENIZER_ID = "markdown-ingest:v1";
|
|
|
32672
32672
|
var MARKDOWN_INGEST_VERSION = 3;
|
|
32673
32673
|
var HASH_BACKEND = "wasm-fnv1a64";
|
|
32674
32674
|
var STREAM_CHUNK_BYTES = 64 * 1024;
|
|
32675
|
+
var DEFAULT_MARKDOWN_INGEST_EXCLUDES = [
|
|
32676
|
+
"**/node_modules/**",
|
|
32677
|
+
"**/.git/**",
|
|
32678
|
+
"**/dist/**",
|
|
32679
|
+
"**/build/**",
|
|
32680
|
+
"**/coverage/**",
|
|
32681
|
+
"**/.next/**",
|
|
32682
|
+
"**/.nuxt/**",
|
|
32683
|
+
"**/.svelte-kit/**",
|
|
32684
|
+
"**/.turbo/**",
|
|
32685
|
+
"**/.cache/**",
|
|
32686
|
+
"**/.venv/**",
|
|
32687
|
+
"**/venv/**",
|
|
32688
|
+
"**/__pycache__/**"
|
|
32689
|
+
];
|
|
32675
32690
|
function createMarkdownIngestionHandle(cfg, getClient, logger = console, fsApi = createRealFsApi2()) {
|
|
32676
32691
|
const adapters = [];
|
|
32677
32692
|
const genericRoots = normalizeMarkdownRoots(cfg.markdownIngestionRoots);
|
|
@@ -32790,7 +32805,7 @@ var DirectoryMarkdownSourceAdapter = class {
|
|
|
32790
32805
|
this.kind = kind;
|
|
32791
32806
|
this.roots = config.roots;
|
|
32792
32807
|
this.includePatterns = config.include?.length ? config.include : [];
|
|
32793
|
-
this.excludePatterns = config.exclude?.length ? config.exclude :
|
|
32808
|
+
this.excludePatterns = config.exclude?.length ? config.exclude : DEFAULT_MARKDOWN_INGEST_EXCLUDES;
|
|
32794
32809
|
this.debounceMs = config.debounceMs ?? DEFAULT_DEBOUNCE_MS2;
|
|
32795
32810
|
this.fsApi = fsApi;
|
|
32796
32811
|
this.getClient = getClient;
|
package/dist/markdown-ingest.js
CHANGED
|
@@ -9,6 +9,21 @@ const DEFAULT_TOKENIZER_ID = "markdown-ingest:v1";
|
|
|
9
9
|
const MARKDOWN_INGEST_VERSION = 3;
|
|
10
10
|
const HASH_BACKEND = "wasm-fnv1a64";
|
|
11
11
|
const STREAM_CHUNK_BYTES = 64 * 1024;
|
|
12
|
+
const DEFAULT_MARKDOWN_INGEST_EXCLUDES = [
|
|
13
|
+
"**/node_modules/**",
|
|
14
|
+
"**/.git/**",
|
|
15
|
+
"**/dist/**",
|
|
16
|
+
"**/build/**",
|
|
17
|
+
"**/coverage/**",
|
|
18
|
+
"**/.next/**",
|
|
19
|
+
"**/.nuxt/**",
|
|
20
|
+
"**/.svelte-kit/**",
|
|
21
|
+
"**/.turbo/**",
|
|
22
|
+
"**/.cache/**",
|
|
23
|
+
"**/.venv/**",
|
|
24
|
+
"**/venv/**",
|
|
25
|
+
"**/__pycache__/**",
|
|
26
|
+
];
|
|
12
27
|
export function createMarkdownIngestionHandle(cfg, getClient, logger = console, fsApi = createRealFsApi()) {
|
|
13
28
|
const adapters = [];
|
|
14
29
|
const genericRoots = normalizeMarkdownRoots(cfg.markdownIngestionRoots);
|
|
@@ -108,7 +123,7 @@ class DirectoryMarkdownSourceAdapter {
|
|
|
108
123
|
this.kind = kind;
|
|
109
124
|
this.roots = config.roots;
|
|
110
125
|
this.includePatterns = config.include?.length ? config.include : [];
|
|
111
|
-
this.excludePatterns = config.exclude?.length ? config.exclude :
|
|
126
|
+
this.excludePatterns = config.exclude?.length ? config.exclude : DEFAULT_MARKDOWN_INGEST_EXCLUDES;
|
|
112
127
|
this.debounceMs = config.debounceMs ?? DEFAULT_DEBOUNCE_MS;
|
|
113
128
|
this.fsApi = fsApi;
|
|
114
129
|
this.getClient = getClient;
|
package/docs/configuration.md
CHANGED
|
@@ -140,12 +140,12 @@ The plugin exposes `ingestionGateThreshold` for host-side gating decisions:
|
|
|
140
140
|
| `markdownIngestionEnabled` | boolean | `false` | Watch markdown roots for changes |
|
|
141
141
|
| `markdownIngestionRoots` | string[] | — | Directories to watch |
|
|
142
142
|
| `markdownIngestionInclude` | string[] | — | Glob patterns to include |
|
|
143
|
-
| `markdownIngestionExclude` | string[] |
|
|
143
|
+
| `markdownIngestionExclude` | string[] | dependency/build dirs | Glob patterns to exclude; when empty, defaults exclude `node_modules`, `.git`, `dist`, `build`, `coverage`, `.next`, `.nuxt`, `.svelte-kit`, `.turbo`, `.cache`, `.venv`, `venv`, `__pycache__` at any depth |
|
|
144
144
|
| `markdownIngestionDebounceMs` | number | `150` | Debounce window for file change events |
|
|
145
145
|
| `markdownIngestionObsidianEnabled` | boolean | `false` | Watch Obsidian vault roots |
|
|
146
146
|
| `markdownIngestionObsidianRoots` | string[] | — | Obsidian vault directories |
|
|
147
147
|
| `markdownIngestionObsidianInclude` | string[] | — | Obsidian glob include patterns |
|
|
148
|
-
| `markdownIngestionObsidianExclude` | string[] |
|
|
148
|
+
| `markdownIngestionObsidianExclude` | string[] | same defaults as above | Obsidian glob exclude patterns; defaults to the same set as generic markdown ingestion |
|
|
149
149
|
| `markdownIngestionObsidianDebounceMs` | number | `150` | Obsidian debounce window |
|
|
150
150
|
|
|
151
151
|
Configured markdown roots are ignored unless the matching enable flag is set to
|
package/docs/features.md
CHANGED
|
@@ -53,12 +53,12 @@ Relevant config fields:
|
|
|
53
53
|
| `markdownIngestionEnabled` | Enables or disables generic markdown ingestion. |
|
|
54
54
|
| `markdownIngestionRoots` | Generic markdown roots to watch. |
|
|
55
55
|
| `markdownIngestionInclude` | Optional include globs for generic roots. |
|
|
56
|
-
| `markdownIngestionExclude` | Optional exclude globs for generic roots. |
|
|
56
|
+
| `markdownIngestionExclude` | Optional exclude globs for generic roots; defaults to common dependency/build directories (`**/node_modules/**`, `**/.git/**`, `**/dist/**`, and more) when not set. Setting an explicit list replaces the defaults entirely. |
|
|
57
57
|
| `markdownIngestionDebounceMs` | Watch debounce window, default `150`. |
|
|
58
58
|
| `markdownIngestionObsidianEnabled` | Enables Obsidian ingestion when vault roots exist. |
|
|
59
59
|
| `markdownIngestionObsidianRoots` | Obsidian vault roots to watch. |
|
|
60
60
|
| `markdownIngestionObsidianInclude` | Optional include globs for Obsidian roots. |
|
|
61
|
-
| `markdownIngestionObsidianExclude` | Optional exclude globs for Obsidian roots. |
|
|
61
|
+
| `markdownIngestionObsidianExclude` | Optional exclude globs for Obsidian roots; same defaults as generic markdown ingestion. |
|
|
62
62
|
| `markdownIngestionObsidianDebounceMs` | Obsidian watch debounce window, default `150`. |
|
|
63
63
|
|
|
64
64
|
By default, the Obsidian adapter auto-ingests notes that look like memory notes,
|
package/openclaw.plugin.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"id": "libravdb-memory",
|
|
3
3
|
"name": "LibraVDB Memory",
|
|
4
4
|
"description": "Persistent vector memory with three-tier hybrid scoring",
|
|
5
|
-
"version": "1.6.
|
|
5
|
+
"version": "1.6.8",
|
|
6
6
|
"kind": [
|
|
7
7
|
"memory",
|
|
8
8
|
"context-engine"
|
|
@@ -239,6 +239,21 @@
|
|
|
239
239
|
},
|
|
240
240
|
"markdownIngestionObsidianExclude": {
|
|
241
241
|
"type": "array",
|
|
242
|
+
"default": [
|
|
243
|
+
"**/node_modules/**",
|
|
244
|
+
"**/.git/**",
|
|
245
|
+
"**/dist/**",
|
|
246
|
+
"**/build/**",
|
|
247
|
+
"**/coverage/**",
|
|
248
|
+
"**/.next/**",
|
|
249
|
+
"**/.nuxt/**",
|
|
250
|
+
"**/.svelte-kit/**",
|
|
251
|
+
"**/.turbo/**",
|
|
252
|
+
"**/.cache/**",
|
|
253
|
+
"**/.venv/**",
|
|
254
|
+
"**/venv/**",
|
|
255
|
+
"**/__pycache__/**"
|
|
256
|
+
],
|
|
242
257
|
"items": {
|
|
243
258
|
"type": "string"
|
|
244
259
|
}
|
|
@@ -255,6 +270,21 @@
|
|
|
255
270
|
},
|
|
256
271
|
"markdownIngestionExclude": {
|
|
257
272
|
"type": "array",
|
|
273
|
+
"default": [
|
|
274
|
+
"**/node_modules/**",
|
|
275
|
+
"**/.git/**",
|
|
276
|
+
"**/dist/**",
|
|
277
|
+
"**/build/**",
|
|
278
|
+
"**/coverage/**",
|
|
279
|
+
"**/.next/**",
|
|
280
|
+
"**/.nuxt/**",
|
|
281
|
+
"**/.svelte-kit/**",
|
|
282
|
+
"**/.turbo/**",
|
|
283
|
+
"**/.cache/**",
|
|
284
|
+
"**/.venv/**",
|
|
285
|
+
"**/venv/**",
|
|
286
|
+
"**/__pycache__/**"
|
|
287
|
+
],
|
|
258
288
|
"items": {
|
|
259
289
|
"type": "string"
|
|
260
290
|
}
|