@pyxmate/memory 0.18.2 → 0.19.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.
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  MemoryClient
3
- } from "./chunk-SHT5FPV6.mjs";
3
+ } from "./chunk-D5PMQYZM.mjs";
4
4
 
5
5
  // ../dashboard/src/aggregations/consolidation-analytics.ts
6
6
  function analyzeConsolidationLog(entries) {
@@ -574,6 +574,19 @@ var MemoryClient = class {
574
574
  );
575
575
  return result.entries;
576
576
  }
577
+ async summarizeEntity(name) {
578
+ return this.fetchApi("/api/memory/synthesis/entity", {
579
+ method: "POST",
580
+ body: JSON.stringify({ name })
581
+ });
582
+ }
583
+ async getEntitySynthesis(name) {
584
+ const params = new URLSearchParams({ name });
585
+ const result = await this.fetchApi(
586
+ `/api/memory/synthesis/entity?${params}`
587
+ );
588
+ return result.entry;
589
+ }
577
590
  async fetchApi(path, options) {
578
591
  const signal = options?.signal ?? AbortSignal.timeout(this._requestTimeoutMs);
579
592
  let res;
@@ -11,8 +11,8 @@ import {
11
11
  toGraphologyFormat,
12
12
  transformGraphData,
13
13
  unreachableHealth
14
- } from "./chunk-HV6A2WTS.mjs";
15
- import "./chunk-SHT5FPV6.mjs";
14
+ } from "./chunk-4DRKAXJE.mjs";
15
+ import "./chunk-D5PMQYZM.mjs";
16
16
  export {
17
17
  DashboardClient,
18
18
  Poller,
package/dist/index.d.ts CHANGED
@@ -107,6 +107,18 @@ interface ExtendedMemoryInterface extends MemoryInterface {
107
107
  * Cursor-based via `since` (created_at lower bound). No totalCount.
108
108
  */
109
109
  log(filters?: MemoryLogFilters): Promise<MemoryEntry$1[]>;
110
+ /**
111
+ * Synthesize a per-entity profile (Karpathy-wiki "wiki page" primitive).
112
+ * LLM-driven, caller-triggered. Stores a pinned `_kind:'entity-summary'`
113
+ * entry with `_search_visibility:'on-demand'` so it never enters the
114
+ * default retrieval pool. Re-running replaces the prior synthesis.
115
+ */
116
+ summarizeEntity(name: string): Promise<MemoryEntry$1>;
117
+ /**
118
+ * Fetch a previously-synthesized entity profile. Returns `null` when no
119
+ * synthesis exists yet. O(1) — the read side of the amortized pattern.
120
+ */
121
+ getEntitySynthesis(name: string): Promise<MemoryEntry$1 | null>;
110
122
  }
111
123
 
112
124
  /**
@@ -278,6 +290,8 @@ declare class MemoryClient implements ExtendedMemoryInterface {
278
290
  queryAsOf(asOfDate: string, filters?: TemporalQueryFilters): Promise<MemoryEntry$1[]>;
279
291
  log(filters?: MemoryLogFilters): Promise<MemoryEntry$1[]>;
280
292
  queryByEventTime(startTime: string, endTime: string, filters?: TemporalQueryFilters): Promise<MemoryEntry$1[]>;
293
+ summarizeEntity(name: string): Promise<MemoryEntry$1>;
294
+ getEntitySynthesis(name: string): Promise<MemoryEntry$1 | null>;
281
295
  protected fetchApi<T>(path: string, options?: RequestInit): Promise<T>;
282
296
  /**
283
297
  * Map fetch-layer rejections into a typed `MemoryServerError` so callers
package/dist/index.mjs CHANGED
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  MemoryClient,
3
3
  MemoryServerError
4
- } from "./chunk-SHT5FPV6.mjs";
4
+ } from "./chunk-D5PMQYZM.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-HV6A2WTS.mjs";
15
- import "./chunk-SHT5FPV6.mjs";
14
+ } from "./chunk-4DRKAXJE.mjs";
15
+ import "./chunk-D5PMQYZM.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.18.2",
3
+ "version": "0.19.0",
4
4
  "type": "module",
5
5
  "description": "SDK for pyx-memory — Memory as a Service for AI agents",
6
6
  "license": "MIT",