@stackmemoryai/stackmemory 0.3.15 → 0.3.17
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 +80 -8
- package/dist/cli/commands/context-rehydrate.js +747 -0
- package/dist/cli/commands/context-rehydrate.js.map +7 -0
- package/dist/cli/commands/context.js +2 -0
- package/dist/cli/commands/context.js.map +2 -2
- package/dist/core/context/enhanced-rehydration.js +644 -0
- package/dist/core/context/enhanced-rehydration.js.map +7 -0
- package/dist/core/context/frame-database.js +2 -6
- package/dist/core/context/frame-database.js.map +2 -2
- package/dist/skills/claude-skills.js.map +2 -2
- package/dist/skills/recursive-agent-orchestrator.js +4 -1
- package/dist/skills/recursive-agent-orchestrator.js.map +2 -2
- package/dist/skills/unified-rlm-orchestrator.js.map +2 -2
- package/package.json +1 -1
- package/templates/claude-hooks/on-compact-detected +57 -0
package/README.md
CHANGED
|
@@ -1,14 +1,19 @@
|
|
|
1
1
|
# StackMemory
|
|
2
2
|
|
|
3
|
-
**Lossless, project-scoped memory for AI tools** • v0.3.
|
|
3
|
+
**Lossless, project-scoped memory for AI tools** • v0.3.16
|
|
4
4
|
|
|
5
|
-
StackMemory is a **production-ready memory runtime** for AI coding tools that preserves full project context across sessions. With **Phases 1-
|
|
5
|
+
StackMemory is a **production-ready memory runtime** for AI coding tools that preserves full project context across sessions. With **Phases 1-4 complete**, it delivers:
|
|
6
6
|
|
|
7
7
|
- ✅ **89-98% faster** task operations than manual tracking
|
|
8
8
|
- ✅ **10,000+ frame depth** support with hierarchical organization
|
|
9
9
|
- ✅ **Full Linear integration** with bidirectional sync
|
|
10
10
|
- ✅ **20+ MCP tools** for Claude Code
|
|
11
11
|
- ✅ **Context persistence** that survives /clear operations
|
|
12
|
+
- ✅ **Two-tier storage system** with local tiers and infinite remote storage
|
|
13
|
+
- ✅ **Smart compression** (LZ4/ZSTD) with 2.5-3.5x ratios
|
|
14
|
+
- ✅ **Background migration** with configurable triggers
|
|
15
|
+
- ✅ **296 tests passing** with improved error handling
|
|
16
|
+
- ✅ **npm v0.3.16** published with production-ready improvements
|
|
12
17
|
|
|
13
18
|
Instead of a linear chat log, StackMemory organizes memory as a **call stack** of scoped work (frames), with intelligent LLM-driven retrieval and team collaboration features.
|
|
14
19
|
|
|
@@ -89,6 +94,30 @@ The editor never manages memory directly; it asks StackMemory for the **context
|
|
|
89
94
|
|
|
90
95
|
---
|
|
91
96
|
|
|
97
|
+
## Product Health Metrics
|
|
98
|
+
|
|
99
|
+
### Current Status (v0.3.16)
|
|
100
|
+
|
|
101
|
+
| Metric | Current | Target | Status |
|
|
102
|
+
|--------|---------|--------|--------|
|
|
103
|
+
| **Test Coverage** | 80% | 90% | 🟡 |
|
|
104
|
+
| **Performance (p50)** | TBD | <50ms | 🔄 |
|
|
105
|
+
| **Documentation** | 60% | 100% | 🟡 |
|
|
106
|
+
| **Active Issues** | 13 high | 0 high | 🟡 |
|
|
107
|
+
| **Code Quality** | 296 tests | 350+ | ✅ |
|
|
108
|
+
| **npm Downloads** | Growing | 1K+/week | 🚀 |
|
|
109
|
+
|
|
110
|
+
### Quality Score: 72/100
|
|
111
|
+
|
|
112
|
+
**Formula:** (Test Coverage × 0.3) + (Performance × 0.3) + (Documentation × 0.2) + (Issues Resolution × 0.2)
|
|
113
|
+
|
|
114
|
+
### Next Sprint Priorities
|
|
115
|
+
|
|
116
|
+
1. **[STA-289] Performance Optimization** - Achieve SLA targets
|
|
117
|
+
2. **[STA-291] Code Cleanup** - Zero TODOs, 90% coverage
|
|
118
|
+
|
|
119
|
+
---
|
|
120
|
+
|
|
92
121
|
# QuickStart
|
|
93
122
|
|
|
94
123
|
## 1. Hosted (Recommended)
|
|
@@ -107,6 +136,8 @@ This creates a **project-scoped memory space** tied to the repo.
|
|
|
107
136
|
### Step 2: Install StackMemory
|
|
108
137
|
|
|
109
138
|
```bash
|
|
139
|
+
npm install -g @stackmemoryai/stackmemory@0.3.16
|
|
140
|
+
# or latest
|
|
110
141
|
npm install -g @stackmemoryai/stackmemory@latest
|
|
111
142
|
```
|
|
112
143
|
|
|
@@ -251,18 +282,33 @@ Each interaction: ingests events → updates indices → retrieves relevant cont
|
|
|
251
282
|
|
|
252
283
|
## Storage & limits
|
|
253
284
|
|
|
285
|
+
### Two-Tier Storage System (v0.3.15+)
|
|
286
|
+
|
|
287
|
+
StackMemory implements an intelligent two-tier storage architecture:
|
|
288
|
+
|
|
289
|
+
#### Local Storage Tiers
|
|
290
|
+
- **Young (<24h)**: Uncompressed, complete retention in memory/Redis
|
|
291
|
+
- **Mature (1-7d)**: LZ4 compression (~2.5x), selective retention
|
|
292
|
+
- **Old (7-30d)**: ZSTD compression (~3.5x), critical data only
|
|
293
|
+
|
|
294
|
+
#### Remote Storage
|
|
295
|
+
- **Archive (>30d)**: Infinite retention in S3 + TimeSeries DB
|
|
296
|
+
- **Migration**: Automatic background migration based on age, size, and importance
|
|
297
|
+
- **Offline Queue**: Persistent retry logic for failed uploads
|
|
298
|
+
|
|
254
299
|
### Free tier (hosted)
|
|
255
300
|
|
|
256
301
|
- 1 project
|
|
257
|
-
- Up to **
|
|
258
|
-
- Up to **
|
|
302
|
+
- Up to **2GB local storage**
|
|
303
|
+
- Up to **100GB retrieval egress / month**
|
|
259
304
|
|
|
260
305
|
### Paid tiers
|
|
261
306
|
|
|
262
307
|
- Per-project pricing
|
|
263
|
-
-
|
|
308
|
+
- Unlimited storage + retrieval
|
|
264
309
|
- Team sharing
|
|
265
310
|
- Org controls
|
|
311
|
+
- Custom retention policies
|
|
266
312
|
|
|
267
313
|
**No seat-based pricing.**
|
|
268
314
|
|
|
@@ -391,6 +437,12 @@ stackmemory linear sync [--direction from_linear]
|
|
|
391
437
|
stackmemory linear auto-sync --start
|
|
392
438
|
stackmemory linear update ENG-123 --status done
|
|
393
439
|
|
|
440
|
+
# Storage Management
|
|
441
|
+
stackmemory storage status # Show tier distribution
|
|
442
|
+
stackmemory storage migrate [--tier young] # Trigger migration
|
|
443
|
+
stackmemory storage cleanup --force # Clean old data
|
|
444
|
+
stackmemory storage config --show # Show configuration
|
|
445
|
+
|
|
394
446
|
# Analytics & Server
|
|
395
447
|
stackmemory analytics [--view|--port 3000]
|
|
396
448
|
stackmemory mcp-server [--port 3001]
|
|
@@ -401,15 +453,35 @@ stackmemory mcp-server [--port 3001]
|
|
|
401
453
|
## Status
|
|
402
454
|
|
|
403
455
|
- Hosted: **Private beta**
|
|
404
|
-
- OSS mirror: **
|
|
456
|
+
- OSS mirror: **Production ready**
|
|
405
457
|
- MCP integration: **Stable**
|
|
406
|
-
- CLI: **v0.3.
|
|
458
|
+
- CLI: **v0.3.16** - Full task, context, Linear, and storage management
|
|
459
|
+
- Two-tier storage: **Complete**
|
|
460
|
+
- Test Suite: **296 tests passing**
|
|
461
|
+
|
|
462
|
+
---
|
|
463
|
+
|
|
464
|
+
## Changelog
|
|
465
|
+
|
|
466
|
+
### v0.3.16 (2026-01-15)
|
|
467
|
+
- ✅ Fixed critical error handling - getFrame() returns undefined instead of throwing
|
|
468
|
+
- ✅ Improved test coverage and fixed StackMemoryError constructor usage
|
|
469
|
+
- ✅ Removed dangerous secret-cleaning scripts from repository
|
|
470
|
+
- ✅ All tests passing, lint clean, build successful
|
|
471
|
+
- ✅ Published to npm with production-ready improvements
|
|
472
|
+
|
|
473
|
+
### v0.3.15 (2026-01-14)
|
|
474
|
+
- ✅ Two-tier storage system implementation complete
|
|
475
|
+
- ✅ Smart compression with LZ4/ZSTD support
|
|
476
|
+
- ✅ Background migration with configurable triggers
|
|
477
|
+
- ✅ Improved Linear integration with bidirectional sync
|
|
407
478
|
|
|
408
479
|
---
|
|
409
480
|
|
|
410
481
|
## Roadmap
|
|
411
482
|
|
|
412
|
-
**Phase
|
|
483
|
+
**Phase 4 (Completed):** Two-tier storage system with local tiers and infinite remote storage
|
|
484
|
+
**Phase 5 (Next):** PostgreSQL production adapter, enhanced team collaboration, advanced analytics
|
|
413
485
|
**Phase 3:** Team collaboration, shared stacks, frame handoff
|
|
414
486
|
**Phase 4:** Two-tier storage, enterprise features, cost optimization
|
|
415
487
|
|