@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('
|
|
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;
|
package/dist/cli/pyx-mem.mjs
CHANGED
|
@@ -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.
|
|
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();
|
package/dist/dashboard.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-X3QODOJV.mjs";
|
|
15
|
+
import "./chunk-3QDXACBV.mjs";
|
|
16
16
|
import "./chunk-A3L46P2G.mjs";
|
|
17
17
|
export {
|
|
18
18
|
DashboardClient,
|
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-X3QODOJV.mjs";
|
|
15
|
+
import "./chunk-3QDXACBV.mjs";
|
|
16
16
|
import "./chunk-A3L46P2G.mjs";
|
|
17
17
|
|
|
18
18
|
// ../dashboard/src/hooks/use-consolidation-log.ts
|