@xdarkicex/openclaw-memory-libravdb 1.8.12 → 1.9.1

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.
@@ -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<import("@xdarkicex/libravdb-contracts").AfterTurnKernelResponse | {
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;