@getmarrow/sdk 3.0.0 → 3.0.1
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 +46 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -23,7 +23,52 @@ 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
|
+
|
|
28
|
+
**Active Intelligence — Marrow Now Intervenes Before Mistakes**
|
|
29
|
+
|
|
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:
|
|
32
|
+
|
|
33
|
+
```typescript
|
|
34
|
+
const result = await marrow.orient({
|
|
35
|
+
task: "Fix Neutron API authentication",
|
|
36
|
+
autoWarn: true
|
|
37
|
+
});
|
|
38
|
+
|
|
39
|
+
// Returns warnings like:
|
|
40
|
+
// "⚠️ HIGH: This task type failed 4x with method='internal'.
|
|
41
|
+
// Try method='neutronpay' (89% success rate)"
|
|
42
|
+
```
|
|
43
|
+
|
|
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
|
+
|
|
47
|
+
```typescript
|
|
48
|
+
const decision = await marrow.think({
|
|
49
|
+
action: "Retry auth with method='internal'",
|
|
50
|
+
checkLoop: true
|
|
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."
|
|
57
|
+
```
|
|
58
|
+
|
|
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
|
|
68
|
+
|
|
69
|
+
---
|
|
70
|
+
|
|
71
|
+
## What's New in v2.9.4
|
|
27
72
|
|
|
28
73
|
**Backend API Enhancements** — Full memory lifecycle management now available:
|
|
29
74
|
|