@pyxmate/memory 0.20.5 → 0.21.2

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/LICENSE CHANGED
@@ -1,6 +1,6 @@
1
1
  MIT License
2
2
 
3
- Copyright (c) 2025 Pyxmate
3
+ Copyright (c) 2025-2026 Pyx-Corp
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  of this software and associated documentation files (the "Software"), to deal
package/README.md CHANGED
@@ -1,69 +1,98 @@
1
1
  # @pyxmate/memory
2
2
 
3
- SDK for **pyx-memory** — Memory as a Service for AI agents.
3
+ SDK + CLI for **pyx-memory** — Memory as a Service for AI agents.
4
4
 
5
- Provides an HTTP client, shared types, and optional dashboard + React hooks for interacting with the pyx-memory managed cloud.
5
+ This package ships:
6
+
7
+ - **`pyx-mem` CLI** — log in once, install the MCP server into Claude Code (or any
8
+ MCP-aware host), inspect status, diagnose problems. Credentials live in the OS
9
+ credential store; no plaintext token files.
10
+ - **`MemoryClient` HTTP SDK** — programmatic Node/Bun client for pyx-memory.
11
+ - **Headless dashboard + React hooks** — `@pyxmate/memory/dashboard`,
12
+ `@pyxmate/memory/react`.
6
13
 
7
14
  ## Install
8
15
 
9
16
  ```bash
17
+ npm install -g @pyxmate/memory
18
+ # or, in a project:
10
19
  npm install @pyxmate/memory
11
20
  ```
12
21
 
13
- ## Setup Claude Code Skills
22
+ ESM-only. Node 18. Native credential storage via
23
+ [`@napi-rs/keyring`](https://www.npmjs.com/package/@napi-rs/keyring) (macOS
24
+ Keychain, Linux libsecret / Secret Service, Windows Credential Manager). If a
25
+ package manager omitted optional binaries, re-install with
26
+ `npm install --include=optional`.
14
27
 
15
- If you use [Claude Code](https://docs.anthropic.com/en/docs/claude-code), run this command to install pyx-memory integration skills:
28
+ ## Use it from Claude Code
16
29
 
17
30
  ```bash
18
- npx @pyxmate/memory init
31
+ pyx-mem login
32
+ pyx-mem mcp install claude-code --scope user
19
33
  ```
20
34
 
21
- This copies skill files into `.claude/skills/pyx-memory/` so Claude Code auto-discovers pyx-memory patterns, types, and API reference when working in your project.
35
+ Restart Claude Code. The 7 memory tools (`search_memories`, `store_memory`,
36
+ `get_memory`, `list_memories`, `delete_memory`, `ingest_memory_file`,
37
+ `summarize_memory_entity`) are auto-discovered via MCP Tool Search.
22
38
 
23
- ## Usage
39
+ Drop the [agent-template snippet](https://github.com/pyx-corp/pyx-memory-v1/blob/main/docs/agent-template.md)
40
+ into your project's `CLAUDE.md` / `AGENTS.md` to tell the agent WHEN to search
41
+ vs store.
24
42
 
25
- ```ts
26
- import { MemoryClient } from '@pyxmate/memory';
27
- import type { MemoryEntry } from '@pyxmate/memory';
43
+ See the [getting-started guide](https://github.com/pyx-corp/pyx-memory-v1/blob/main/packages/sdk/docs/getting-started.md)
44
+ for the full CLI contract and exit codes.
28
45
 
29
- // Simple: URL + API key
30
- const client = new MemoryClient('https://your-pyx-memory-endpoint', process.env.MEMORY_API_KEY);
46
+ ## Use it programmatically
31
47
 
32
- // Multi-tenant: URL + options with default headers
33
- const client = new MemoryClient('https://your-pyx-memory-endpoint', {
34
- apiKey: process.env.MEMORY_API_KEY,
35
- defaultHeaders: { 'X-Tenant-Id': 'tenant-abc' },
36
- });
48
+ ```ts
49
+ import { MemoryClient } from '@pyxmate/memory';
37
50
 
38
- await client.initialize();
51
+ const memory = new MemoryClient('https://memory.api.pyxmate.com', process.env.MEMORY_API_KEY);
52
+ await memory.initialize();
39
53
 
40
- // Store a memory
41
- await client.store({
42
- content: 'The project deadline is March 15th',
43
- agentId: 'my-agent',
54
+ await memory.store({
55
+ content: 'The project deadline is 2026-03-15',
56
+ metadata: { topic: 'planning', project: 'orca', source: 'agent' },
44
57
  });
45
58
 
46
- // Search memories smart retrieval picks the best strategy
47
- const results = await client.search({ query: 'deadline', limit: 5 });
59
+ const results = await memory.search({ query: 'deadline', limit: 5 });
48
60
  ```
49
61
 
50
62
  ## Entry Points
51
63
 
52
- | Import | Description |
64
+ | Import | What you get |
53
65
  |--------|-------------|
54
- | `@pyxmate/memory` | Core SDK — `MemoryClient`, shared types, constants |
55
- | `@pyxmate/memory/dashboard` | Headless dashboard utilities — `DashboardClient`, aggregations, graph transforms (no React) |
56
- | `@pyxmate/memory/react` | React hooks — `useMemoryStats`, `useMemoryHealth`, `useKnowledgeGraph`, etc. (requires React >= 18) |
66
+ | `@pyxmate/memory` | `MemoryClient`, shared types, constants |
67
+ | `@pyxmate/memory/dashboard` | Headless dashboard utilities — aggregations, graph transforms (no React) |
68
+ | `@pyxmate/memory/react` | React hooks — `useMemoryStats`, `useMemoryHealth`, `useKnowledgeGraph` (requires React 18) |
57
69
 
58
- ## Managed Cloud
70
+ Bin entry: `pyx-mem`.
71
+
72
+ ## Docs
59
73
 
60
- pyx-memory is deployed exclusively as a managed cloud service at **[memory.pyxmate.com](https://memory.pyxmate.com)**.
74
+ These links point at the source repo because the npm tarball ships only the
75
+ built `dist/` (no markdown docs):
61
76
 
62
- ## Requirements
77
+ - [getting-started](https://github.com/pyx-corp/pyx-memory-v1/blob/main/packages/sdk/docs/getting-started.md) — CLI + SDK quickstart, exit codes
78
+ - [advanced](https://github.com/pyx-corp/pyx-memory-v1/blob/main/packages/sdk/docs/advanced.md) — RAG strategies, bi-temporal queries, confidence/abstention
79
+ - [types](https://github.com/pyx-corp/pyx-memory-v1/blob/main/packages/sdk/docs/types.md) — public TypeScript types
80
+ - [consumer-patterns](https://github.com/pyx-corp/pyx-memory-v1/blob/main/packages/sdk/docs/consumer-patterns.md) — how to wire `MemoryClient` into a consumer project
81
+ - [parity](https://github.com/pyx-corp/pyx-memory-v1/blob/main/packages/sdk/docs/parity.md) — embedded vs sidecar feature parity
82
+ - [agent-template](https://github.com/pyx-corp/pyx-memory-v1/blob/main/docs/agent-template.md) — `CLAUDE.md` / `AGENTS.md` snippet
83
+ - [file-ingestion](https://github.com/pyx-corp/pyx-memory-v1/blob/main/docs/file-ingestion.md) — file/image ingest caveats
84
+ - [access-control](https://github.com/pyx-corp/pyx-memory-v1/blob/main/docs/access-control.md) — multi-tenant, ReBAC, sensitivity
85
+ - [http-api](https://github.com/pyx-corp/pyx-memory-v1/blob/main/docs/http-api.md) — HTTP endpoints reference
86
+
87
+ ## Managed Cloud
63
88
 
64
- - ESM only (`"type": "module"`)
65
- - React >= 18 (optional, only for `@pyxmate/memory/react`)
89
+ pyx-memory is deployed as a managed cloud service at
90
+ **[memory.pyxmate.com](https://memory.pyxmate.com)**.
66
91
 
67
92
  ## License
68
93
 
69
- MIT
94
+ MIT. This SDK package and its bundled `client`/`shared`/`dashboard` code are
95
+ MIT-licensed; see [LICENSE](./LICENSE). The repository as a whole is a
96
+ mixed-license monorepo — server, engine, and internal apps are proprietary. See
97
+ the [per-package license map](https://github.com/pyx-corp/pyx-memory-v1/blob/main/LICENSES/README.md)
98
+ for the full mapping.
@@ -0,0 +1,9 @@
1
+ var __defProp = Object.defineProperty;
2
+ var __export = (target, all) => {
3
+ for (var name in all)
4
+ __defProp(target, name, { get: all[name], enumerable: true });
5
+ };
6
+
7
+ export {
8
+ __export
9
+ };