@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)}`,
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  MemoryClient
3
- } from "./chunk-RDQIIYAV.mjs";
3
+ } from "./chunk-DLRFLDMJ.mjs";
4
4
 
5
5
  // ../dashboard/src/aggregations/consolidation-analytics.ts
6
6
  function analyzeConsolidationLog(entries) {
@@ -11,8 +11,8 @@ import {
11
11
  toGraphologyFormat,
12
12
  transformGraphData,
13
13
  unreachableHealth
14
- } from "./chunk-A3W2OUCH.mjs";
15
- import "./chunk-RDQIIYAV.mjs";
14
+ } from "./chunk-OTQZKEVS.mjs";
15
+ import "./chunk-DLRFLDMJ.mjs";
16
16
  export {
17
17
  DashboardClient,
18
18
  Poller,
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
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  MemoryClient,
3
3
  MemoryServerError
4
- } from "./chunk-RDQIIYAV.mjs";
4
+ } from "./chunk-DLRFLDMJ.mjs";
5
5
 
6
6
  // ../shared/src/constants/defaults.ts
7
7
  var DEFAULTS = {
package/dist/react.mjs CHANGED
@@ -11,8 +11,8 @@ import {
11
11
  toGraphologyFormat,
12
12
  transformGraphData,
13
13
  unreachableHealth
14
- } from "./chunk-A3W2OUCH.mjs";
15
- import "./chunk-RDQIIYAV.mjs";
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";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pyxmate/memory",
3
- "version": "0.5.9",
3
+ "version": "0.5.11",
4
4
  "type": "module",
5
5
  "description": "SDK for pyx-memory — Memory as a Service for AI agents",
6
6
  "license": "MIT",