@getmarrow/sdk 3.0.0 → 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 +31 -50
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -23,67 +23,48 @@ That's fine for a toy. It's a problem for anything real.
|
|
|
23
23
|
|
|
24
24
|
---
|
|
25
25
|
|
|
26
|
-
## What's New in
|
|
26
|
+
## What's New in v3.0.0
|
|
27
27
|
|
|
28
|
-
**
|
|
28
|
+
**Active Intelligence — Marrow Now Intervenes Before Mistakes**
|
|
29
29
|
|
|
30
|
-
###
|
|
31
|
-
|
|
32
|
-
```typescript
|
|
33
|
-
// After creating a memory, share it with another agent
|
|
34
|
-
await marrow.memories.share(memoryId, { agentIds: ['darvis', 'barvis'] });
|
|
35
|
-
|
|
36
|
-
// List now includes memories shared with your agents
|
|
37
|
-
const memories = await marrow.memories.list({ agentId: 'jarvis' });
|
|
38
|
-
```
|
|
30
|
+
### Auto-Warn on Orient
|
|
31
|
+
When you call `orient({autoWarn: true})`, Marrow scans your recent decisions and warns you BEFORE you start a task that recently failed:
|
|
39
32
|
|
|
40
|
-
### Memory Export/Import
|
|
41
|
-
Backup and restore memories across sessions or accounts:
|
|
42
33
|
```typescript
|
|
43
|
-
|
|
44
|
-
|
|
34
|
+
const result = await marrow.orient({
|
|
35
|
+
task: "Fix Neutron API authentication",
|
|
36
|
+
autoWarn: true
|
|
37
|
+
});
|
|
45
38
|
|
|
46
|
-
//
|
|
47
|
-
|
|
39
|
+
// Returns warnings like:
|
|
40
|
+
// "⚠️ HIGH: This task type failed 4x with method='internal'.
|
|
41
|
+
// Try method='neutronpay' (89% success rate)"
|
|
48
42
|
```
|
|
49
43
|
|
|
50
|
-
###
|
|
51
|
-
|
|
44
|
+
### Loop Detection on Think
|
|
45
|
+
When you call `think({checkLoop: true})`, Marrow detects if you're about to retry a failed approach and interrupts:
|
|
46
|
+
|
|
52
47
|
```typescript
|
|
53
|
-
const
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
to: '2026-04-08',
|
|
57
|
-
tags: ['security', 'marrow'],
|
|
58
|
-
source: 'session_bootstrap',
|
|
59
|
-
status: 'active',
|
|
48
|
+
const decision = await marrow.think({
|
|
49
|
+
action: "Retry auth with method='internal'",
|
|
50
|
+
checkLoop: true
|
|
60
51
|
});
|
|
52
|
+
|
|
53
|
+
// Returns loop warnings:
|
|
54
|
+
// "🚨 LOOP DETECTED: You're retrying a failed approach.
|
|
55
|
+
// Previous failure: 'internal' method not supported.
|
|
56
|
+
// Suggested: Use method='neutronpay' instead."
|
|
61
57
|
```
|
|
62
58
|
|
|
63
|
-
###
|
|
64
|
-
- `
|
|
65
|
-
- `
|
|
66
|
-
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
-
|
|
70
|
-
- `
|
|
71
|
-
-
|
|
72
|
-
- `POST /v1/memories/:id/share` — Share with agents
|
|
73
|
-
- `GET /v1/memories/retrieve` — FTS search with filters
|
|
74
|
-
|
|
75
|
-
### Security Hardening
|
|
76
|
-
- Account isolation enforced (no cross-account leakage)
|
|
77
|
-
- Agent ID validation on all endpoints
|
|
78
|
-
- Audit logging for export/import operations
|
|
79
|
-
- Rate limiting on export (5/hour)
|
|
80
|
-
- SHA-256 dedup on import (checks ALL memories, not just first 200)
|
|
81
|
-
|
|
82
|
-
### Privacy & PII Protection
|
|
83
|
-
- **Automatic PII stripping** — Sensitive data (emails, phone numbers, API keys, tokens) is detected and stripped before storage
|
|
84
|
-
- **Export verification** — Export your data anytime to verify what's stored and confirm PII is stripped
|
|
85
|
-
- **Data ownership** — You own all your data; export and delete anytime
|
|
86
|
-
- **All features free** — No paywalls on security or privacy features
|
|
59
|
+
### Rate Limiting
|
|
60
|
+
- `orient`: 30 requests/minute per account
|
|
61
|
+
- `think`: 60 requests/minute per account
|
|
62
|
+
- Automatic 429 responses when limit exceeded
|
|
63
|
+
|
|
64
|
+
### Enhanced PII Protection
|
|
65
|
+
- Automatic stripping of emails, phone numbers, API keys from all responses
|
|
66
|
+
- Applied to `recentLessons`, `warnings`, and `outcome` fields
|
|
67
|
+
- Deep object stripping for complex data structures
|
|
87
68
|
|
|
88
69
|
---
|
|
89
70
|
|