@getmarrow/sdk 3.7.6 → 3.7.8
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 +21 -5
- package/package.json +7 -2
package/README.md
CHANGED
|
@@ -23,6 +23,22 @@ That's fine for a toy. It's a problem for anything real.
|
|
|
23
23
|
|
|
24
24
|
---
|
|
25
25
|
|
|
26
|
+
## Auto-Logging
|
|
27
|
+
|
|
28
|
+
Marrow auto-logs at three layers — transparent to your agent, invisible to you:
|
|
29
|
+
|
|
30
|
+
| Layer | How | Agent effort |
|
|
31
|
+
|-------|-----|-------------|
|
|
32
|
+
| Server-side | Every authenticated API call auto-logged as a decision | Zero |
|
|
33
|
+
| SDK | `marrow.think()` / `marrow.commit()` — explicit control | Minimal |
|
|
34
|
+
| MCP hooks | `npx @getmarrow/mcp setup` — PostToolUse + UserPromptSubmit hooks | Zero |
|
|
35
|
+
|
|
36
|
+
**Passive mode for SDK:** Use `marrow.autoWrap()` to wrap your agent object. Every function call is auto-logged. Or use `marrow.wrapFetch()` to log external API calls. Fail-silent, never blocks your code.
|
|
37
|
+
|
|
38
|
+
Disable passive: skip wrapping. Debug: check `decision_id` on returned objects.
|
|
39
|
+
|
|
40
|
+
---
|
|
41
|
+
|
|
26
42
|
## Improvement Since Onboarding
|
|
27
43
|
|
|
28
44
|
Every dashboard and digest call now returns an `improvement` block comparing your agents' current performance against their day-1 baseline, captured automatically when an account reaches 7 days of activity or 20 decisions, whichever comes first.
|
|
@@ -220,7 +236,7 @@ All metrics are computed from real decision data, no estimates, no heuristics. T
|
|
|
220
236
|
- **Media (1):** `content-publish`
|
|
221
237
|
- **Enterprise (1):** `change-management`
|
|
222
238
|
|
|
223
|
-
Full catalog with descriptions
|
|
239
|
+
Full catalog with descriptions: [https://getmarrow.ai/docs/#template-marketplace](https://getmarrow.ai/docs/#template-marketplace)
|
|
224
240
|
|
|
225
241
|
```typescript
|
|
226
242
|
const templates = await marrow.listTemplates({ industry: 'insurance' });
|
|
@@ -425,8 +441,7 @@ Zero-ceremony wrapper. Handles orient → think → commit automatically.
|
|
|
425
441
|
#### `wrap(meta, fn)`
|
|
426
442
|
Wrap any action to auto-log intent and outcome.
|
|
427
443
|
|
|
428
|
-
**📖 Full API reference with request/response examples:**
|
|
429
|
-
**[getmarrow.ai/docs/#api-reference](https://getmarrow.ai/docs/#api-reference)**
|
|
444
|
+
**📖 Full API reference with request/response examples:** [https://getmarrow.ai/docs/#api-reference](https://getmarrow.ai/docs/#api-reference)
|
|
430
445
|
|
|
431
446
|
### Memory Methods
|
|
432
447
|
|
|
@@ -460,8 +475,7 @@ Import memories with merge (dedup) or replace mode.
|
|
|
460
475
|
#### `retrieveMemories(query, params?)`
|
|
461
476
|
Full-text search with filters.
|
|
462
477
|
|
|
463
|
-
**📖 All memory, query, and operator endpoints:**
|
|
464
|
-
**[getmarrow.ai/docs/#api-reference](https://getmarrow.ai/docs/#api-reference)**
|
|
478
|
+
**📖 All memory, query, and operator endpoints:** [https://getmarrow.ai/docs/#api-reference](https://getmarrow.ai/docs/#api-reference)
|
|
465
479
|
|
|
466
480
|
---
|
|
467
481
|
|
|
@@ -484,3 +498,5 @@ MIT
|
|
|
484
498
|
## Related Packages
|
|
485
499
|
|
|
486
500
|
- **[@getmarrow/mcp](https://www.npmjs.com/package/@getmarrow/mcp)** — MCP server for Claude Code, Claude Desktop, and other MCP-compatible clients. Provides the same memory features through the Model Context Protocol. Includes one-command agent setup for automatic Marrow usage.
|
|
501
|
+
|
|
502
|
+
**📖 Full API reference with all endpoints:** [https://getmarrow.ai/docs/#api-reference](https://getmarrow.ai/docs/#api-reference)
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@getmarrow/sdk",
|
|
3
|
-
"version": "3.7.
|
|
3
|
+
"version": "3.7.8",
|
|
4
4
|
"description": "Your go-to memory provider for all agents, for any AI model.",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -28,7 +28,12 @@
|
|
|
28
28
|
"MCP",
|
|
29
29
|
"Model Context Protocol",
|
|
30
30
|
"TypeScript",
|
|
31
|
-
"Node.js"
|
|
31
|
+
"Node.js",
|
|
32
|
+
"key-management",
|
|
33
|
+
"api-key",
|
|
34
|
+
"multi-key",
|
|
35
|
+
"api-key-management",
|
|
36
|
+
"cli-key-management"
|
|
32
37
|
],
|
|
33
38
|
"repository": {
|
|
34
39
|
"type": "git",
|