@pyxmate/memory 1.16.2 → 1.16.3

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.
package/README.md CHANGED
@@ -55,10 +55,14 @@ for the full CLI contract and exit codes.
55
55
 
56
56
  ## Use it programmatically
57
57
 
58
+ `MemoryClient` connects directly to a pyx-memory instance server (self-hosted
59
+ or a sidecar you run). Hosted pyx-memory access uses MCP via `pyx-mem mcp` or
60
+ the `/mcp` endpoint — not this HTTP client.
61
+
58
62
  ```ts
59
63
  import { MemoryClient } from '@pyxmate/memory';
60
64
 
61
- const memory = new MemoryClient('https://memory.api.pyxmate.com', process.env.MEMORY_API_KEY);
65
+ const memory = new MemoryClient('http://localhost:7822', process.env.MEMORY_API_KEY);
62
66
  await memory.initialize();
63
67
 
64
68
  await memory.store({
@@ -1006,6 +1006,12 @@ var MemoryClient = class {
1006
1006
  );
1007
1007
  }
1008
1008
  if (!body?.success || body.data == null) {
1009
+ if (res.ok && body?.error === void 0) {
1010
+ throw new MemoryServerError(
1011
+ `Memory server returned HTTP ${res.status} without the expected { success, data } API envelope. Check that the base URL points to a pyx-memory instance server; hosted pyx-memory access uses MCP.`,
1012
+ res.status
1013
+ );
1014
+ }
1009
1015
  throw new MemoryServerError(body?.error ?? `Memory server error: ${res.status}`, res.status);
1010
1016
  }
1011
1017
  return body.data;
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  MemoryClient
3
- } from "./chunk-672SGW22.mjs";
3
+ } from "./chunk-3QDXACBV.mjs";
4
4
 
5
5
  // ../dashboard/src/aggregations/consolidation-analytics.ts
6
6
  function analyzeConsolidationLog(entries) {
@@ -835,7 +835,7 @@ function createProxyServer(client, version, uploadLocalFile) {
835
835
  return server;
836
836
  }
837
837
  async function runMcpProxyServer(opts) {
838
- const version = opts.version ?? (true ? "1.16.2" : "0.0.0-dev");
838
+ const version = opts.version ?? (true ? "1.16.3" : "0.0.0-dev");
839
839
  const read = await opts.readCredentials();
840
840
  if (!read.ok) {
841
841
  const text = read.result.content.map((c) => c.type === "text" ? c.text : "").join(" ").trim();
@@ -11,8 +11,8 @@ import {
11
11
  toGraphologyFormat,
12
12
  transformGraphData,
13
13
  unreachableHealth
14
- } from "./chunk-425XJ6JV.mjs";
15
- import "./chunk-672SGW22.mjs";
14
+ } from "./chunk-X3QODOJV.mjs";
15
+ import "./chunk-3QDXACBV.mjs";
16
16
  import "./chunk-A3L46P2G.mjs";
17
17
  export {
18
18
  DashboardClient,
package/dist/index.mjs CHANGED
@@ -15,7 +15,7 @@ import {
15
15
  TAXONOMY_MAX_CATEGORIES,
16
16
  VectorProvider,
17
17
  projectSearchResponseForMcp
18
- } from "./chunk-672SGW22.mjs";
18
+ } from "./chunk-3QDXACBV.mjs";
19
19
  import {
20
20
  mergeExtractedEntities,
21
21
  normalizeGraphLabel,
package/dist/react.mjs CHANGED
@@ -11,8 +11,8 @@ import {
11
11
  toGraphologyFormat,
12
12
  transformGraphData,
13
13
  unreachableHealth
14
- } from "./chunk-425XJ6JV.mjs";
15
- import "./chunk-672SGW22.mjs";
14
+ } from "./chunk-X3QODOJV.mjs";
15
+ import "./chunk-3QDXACBV.mjs";
16
16
  import "./chunk-A3L46P2G.mjs";
17
17
 
18
18
  // ../dashboard/src/hooks/use-consolidation-log.ts
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pyxmate/memory",
3
- "version": "1.16.2",
3
+ "version": "1.16.3",
4
4
  "type": "module",
5
5
  "description": "SDK for pyx-memory — Memory as a Service for AI agents",
6
6
  "license": "MIT",