@xdarkicex/openclaw-memory-libravdb 1.8.11 → 1.9.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/dist/context-engine.d.ts +17 -1
- package/dist/context-engine.js +491 -249
- package/dist/index.js +453 -262
- package/dist/types.d.ts +2 -0
- package/openclaw.plugin.json +6 -1
- package/package.json +1 -1
package/dist/context-engine.d.ts
CHANGED
|
@@ -36,6 +36,15 @@ type OpenClawCompatibleCompactResult = {
|
|
|
36
36
|
type KernelContentNormalizationOptions = {
|
|
37
37
|
retainOpenClawContext?: boolean;
|
|
38
38
|
};
|
|
39
|
+
/**
|
|
40
|
+
* Symbol-keyed hook that drains all pending async ingestion queues.
|
|
41
|
+
* Tests import this symbol to access the drain function. Using a
|
|
42
|
+
* Symbol rather than a string-keyed method prevents accidental
|
|
43
|
+
* discovery via property enumeration or duck-typing — production
|
|
44
|
+
* code must explicitly import the symbol to call the hook.
|
|
45
|
+
*/
|
|
46
|
+
export declare const FLUSH_ASYNC_INGESTION: unique symbol;
|
|
47
|
+
export declare function setOptimizationMemoCacheSize(size: number): void;
|
|
39
48
|
/**
|
|
40
49
|
* Normalizes a single kernel message into the kernel-compatible format.
|
|
41
50
|
*/
|
|
@@ -124,11 +133,18 @@ export declare function buildContextEngineFactory(runtime: PluginRuntime, cfg: P
|
|
|
124
133
|
isHeartbeat?: boolean;
|
|
125
134
|
tokenBudget?: number;
|
|
126
135
|
runtimeContext?: Record<string, unknown>;
|
|
127
|
-
}): Promise<
|
|
136
|
+
}): Promise<{
|
|
128
137
|
ok: boolean;
|
|
129
138
|
skipped: boolean;
|
|
130
139
|
reason: string;
|
|
140
|
+
queued?: undefined;
|
|
141
|
+
} | {
|
|
142
|
+
ok: boolean;
|
|
143
|
+
queued: boolean;
|
|
144
|
+
skipped?: undefined;
|
|
145
|
+
reason?: undefined;
|
|
131
146
|
}>;
|
|
147
|
+
[FLUSH_ASYNC_INGESTION]: () => Promise<void>;
|
|
132
148
|
prepareSubagentSpawn(params: {
|
|
133
149
|
parentSessionKey: string;
|
|
134
150
|
childSessionKey: string;
|