@getmarrow/sdk 3.0.1 → 3.0.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/README.md +0 -64
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -68,70 +68,6 @@ const decision = await marrow.think({
|
|
|
68
68
|
|
|
69
69
|
---
|
|
70
70
|
|
|
71
|
-
## What's New in v2.9.4
|
|
72
|
-
|
|
73
|
-
**Backend API Enhancements** — Full memory lifecycle management now available:
|
|
74
|
-
|
|
75
|
-
### Cross-Agent Memory Sharing
|
|
76
|
-
Share memories with specific agents or all agents in your account:
|
|
77
|
-
```typescript
|
|
78
|
-
// After creating a memory, share it with another agent
|
|
79
|
-
await marrow.memories.share(memoryId, { agentIds: ['darvis', 'barvis'] });
|
|
80
|
-
|
|
81
|
-
// List now includes memories shared with your agents
|
|
82
|
-
const memories = await marrow.memories.list({ agentId: 'jarvis' });
|
|
83
|
-
```
|
|
84
|
-
|
|
85
|
-
### Memory Export/Import
|
|
86
|
-
Backup and restore memories across sessions or accounts:
|
|
87
|
-
```typescript
|
|
88
|
-
// Export all memories to JSON
|
|
89
|
-
const exportData = await marrow.memories.export({ format: 'json', status: 'active' });
|
|
90
|
-
|
|
91
|
-
// Import with merge (dedup) or replace mode
|
|
92
|
-
await marrow.memories.import({ memories: exportData.memories, mode: 'merge' });
|
|
93
|
-
```
|
|
94
|
-
|
|
95
|
-
### Advanced FTS Filters
|
|
96
|
-
Precision search with multiple filters:
|
|
97
|
-
```typescript
|
|
98
|
-
const results = await marrow.memories.retrieve({
|
|
99
|
-
query: 'auth fix',
|
|
100
|
-
from: '2026-04-01',
|
|
101
|
-
to: '2026-04-08',
|
|
102
|
-
tags: ['security', 'marrow'],
|
|
103
|
-
source: 'session_bootstrap',
|
|
104
|
-
status: 'active',
|
|
105
|
-
});
|
|
106
|
-
```
|
|
107
|
-
|
|
108
|
-
### New Memory Management Endpoints
|
|
109
|
-
- `GET /v1/memories` — List memories with pagination and filters
|
|
110
|
-
- `GET /v1/memories/:id` — Get single memory by ID
|
|
111
|
-
- `PATCH /v1/memories/:id` — Update memory text, tags, or metadata
|
|
112
|
-
- `POST /v1/memories/:id/outdated` — Mark memory as outdated
|
|
113
|
-
- `POST /v1/memories/:id/supersede` — Atomically replace with new version
|
|
114
|
-
- `DELETE /v1/memories/:id` — Soft delete
|
|
115
|
-
- `GET /v1/memories/export` — Export to JSON or CSV
|
|
116
|
-
- `POST /v1/memories/import` — Import with merge/replace mode
|
|
117
|
-
- `POST /v1/memories/:id/share` — Share with agents
|
|
118
|
-
- `GET /v1/memories/retrieve` — FTS search with filters
|
|
119
|
-
|
|
120
|
-
### Security Hardening
|
|
121
|
-
- Account isolation enforced (no cross-account leakage)
|
|
122
|
-
- Agent ID validation on all endpoints
|
|
123
|
-
- Audit logging for export/import operations
|
|
124
|
-
- Rate limiting on export (5/hour)
|
|
125
|
-
- SHA-256 dedup on import (checks ALL memories, not just first 200)
|
|
126
|
-
|
|
127
|
-
### Privacy & PII Protection
|
|
128
|
-
- **Automatic PII stripping** — Sensitive data (emails, phone numbers, API keys, tokens) is detected and stripped before storage
|
|
129
|
-
- **Export verification** — Export your data anytime to verify what's stored and confirm PII is stripped
|
|
130
|
-
- **Data ownership** — You own all your data; export and delete anytime
|
|
131
|
-
- **All features free** — No paywalls on security or privacy features
|
|
132
|
-
|
|
133
|
-
---
|
|
134
|
-
|
|
135
71
|
## The Problem
|
|
136
72
|
|
|
137
73
|
Without durable decision memory:
|