@pyxmate/memory 0.5.9 → 0.5.11
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.
|
@@ -168,6 +168,11 @@ var MemoryClient = class {
|
|
|
168
168
|
enrichRes.status
|
|
169
169
|
);
|
|
170
170
|
}
|
|
171
|
+
const enrichData = await this.parseApiResponse(enrichRes);
|
|
172
|
+
const enrichCharacters = descriptions.reduce((sum, d) => sum + d.description.length, 0);
|
|
173
|
+
result.entryIds.push(...enrichData.entryIds);
|
|
174
|
+
result.chunks += descriptions.length;
|
|
175
|
+
result.totalCharacters += enrichCharacters;
|
|
171
176
|
}
|
|
172
177
|
return result;
|
|
173
178
|
}
|
|
@@ -250,6 +255,12 @@ var MemoryClient = class {
|
|
|
250
255
|
async reindex() {
|
|
251
256
|
await this.fetchApi("/api/memory/reindex", { method: "POST" });
|
|
252
257
|
}
|
|
258
|
+
async clearGraph() {
|
|
259
|
+
const result = await this.fetchApi("/api/memory/graph/clear", {
|
|
260
|
+
method: "POST"
|
|
261
|
+
});
|
|
262
|
+
return result.deleted;
|
|
263
|
+
}
|
|
253
264
|
async deleteBySource(source) {
|
|
254
265
|
const result = await this.fetchApi(
|
|
255
266
|
`/api/memory/source/${this.encodePathSegment(source)}`,
|
package/dist/dashboard.mjs
CHANGED
package/dist/index.d.ts
CHANGED
|
@@ -139,6 +139,7 @@ declare class MemoryClient implements ExtendedMemoryInterface {
|
|
|
139
139
|
summarizeSession(sessionId: string): Promise<MemoryEntry$1 | null>;
|
|
140
140
|
runDecay(): Promise<number>;
|
|
141
141
|
reindex(): Promise<void>;
|
|
142
|
+
clearGraph(): Promise<number>;
|
|
142
143
|
deleteBySource(source: string): Promise<number>;
|
|
143
144
|
queryAsOf(asOfDate: string, filters?: TemporalQueryFilters): Promise<MemoryEntry$1[]>;
|
|
144
145
|
queryByEventTime(startTime: string, endTime: string, filters?: TemporalQueryFilters): Promise<MemoryEntry$1[]>;
|
package/dist/index.mjs
CHANGED
package/dist/react.mjs
CHANGED
|
@@ -11,8 +11,8 @@ import {
|
|
|
11
11
|
toGraphologyFormat,
|
|
12
12
|
transformGraphData,
|
|
13
13
|
unreachableHealth
|
|
14
|
-
} from "./chunk-
|
|
15
|
-
import "./chunk-
|
|
14
|
+
} from "./chunk-OTQZKEVS.mjs";
|
|
15
|
+
import "./chunk-DLRFLDMJ.mjs";
|
|
16
16
|
|
|
17
17
|
// ../dashboard/src/hooks/use-consolidation-log.ts
|
|
18
18
|
import { useCallback as useCallback2, useMemo } from "react";
|