@pyxmate/memory 0.5.10 → 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.
|
@@ -255,6 +255,12 @@ var MemoryClient = class {
|
|
|
255
255
|
async reindex() {
|
|
256
256
|
await this.fetchApi("/api/memory/reindex", { method: "POST" });
|
|
257
257
|
}
|
|
258
|
+
async clearGraph() {
|
|
259
|
+
const result = await this.fetchApi("/api/memory/graph/clear", {
|
|
260
|
+
method: "POST"
|
|
261
|
+
});
|
|
262
|
+
return result.deleted;
|
|
263
|
+
}
|
|
258
264
|
async deleteBySource(source) {
|
|
259
265
|
const result = await this.fetchApi(
|
|
260
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";
|