@ulrichc1/sparn 1.1.1 โ†’ 1.2.0

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 CHANGED
@@ -6,9 +6,9 @@
6
6
 
7
7
  > ๐Ÿง  Neuroscience-inspired context optimization for AI coding agents
8
8
 
9
- **Status**: โœ… **Production Ready** - All Core Features Complete + Real-Time Optimization
9
+ **Status**: โœ… **Production Ready** - Full Feature Set with MCP Server + Interactive Mode
10
10
 
11
- **Version**: 1.1.1
11
+ **Version**: 1.2.0
12
12
 
13
13
  ---
14
14
 
@@ -38,14 +38,26 @@ Sparn is an npm CLI package that applies 6 neuroscience principles to intelligen
38
38
  - GenericAdapter + ClaudeCodeAdapter (Agent-Agnostic)
39
39
  - SleepCompressor (Sleep Replay)
40
40
  - โœ… **Context Optimization** - 60-90% token reduction pipeline
41
- - โœ… **Real-Time Optimization** (NEW!) - Always-on background daemon and hooks
41
+ - โœ… **Real-Time Optimization** - Always-on background daemon and hooks
42
42
  - Background daemon with auto-optimization at 80K token threshold
43
+ - Automated consolidation scheduler (configurable intervals)
43
44
  - Claude Code hooks (pre-prompt & post-tool-result)
44
45
  - Incremental optimization with <50ms delta processing
45
46
  - Budget-aware pruning targeting specific token counts
46
47
  - Tool output compression (npm, docker, tests, git diffs)
47
- - โœ… **CLI Commands** - init, optimize, stats, relay, consolidate, config, daemon, hooks
48
- - โœ… **Programmatic API** - Full TypeScript support, JSDoc, standalone modules
48
+ - โœ… **MCP Server** (NEW!) - Model Context Protocol integration
49
+ - Expose Sparn as MCP tools for Claude Desktop and other MCP clients
50
+ - Three tools: sparn_optimize, sparn_stats, sparn_consolidate
51
+ - Full SDK integration with stdio transport
52
+ - Comprehensive configuration guide
53
+ - โœ… **Interactive Mode** (NEW!) - Conversational CLI interface
54
+ - Configuration wizard with guided prompts
55
+ - Optimization preview with file browsing
56
+ - Stats dashboard with multiple views
57
+ - Memory consolidation with confirmation
58
+ - Quick actions and shortcuts
59
+ - โœ… **CLI Commands** - init, optimize, stats, relay, consolidate, config, daemon, hooks, interactive
60
+ - โœ… **Programmatic API** - Full TypeScript support, JSDoc, standalone modules, MCP server factory
49
61
  - โœ… **Database** - SQLite with dual index/value tables, corruption detection
50
62
  - โœ… **Configuration** - YAML config with runtime modification
51
63
  - โœ… **Metrics & Telemetry** - P50/P95/P99 latency tracking, cache hit rates, token savings
@@ -59,10 +71,10 @@ Sparn is an npm CLI package that applies 6 neuroscience principles to intelligen
59
71
  - โœจ **Lazy Loading** - Fast startup (<200ms for --help/--version)
60
72
 
61
73
  ### ๐Ÿ“Š Quality & CI/CD
62
- - ๐Ÿ“Š **176 Tests** - Comprehensive unit + integration test coverage, all passing
74
+ - ๐Ÿ“Š **230 Tests** - Comprehensive unit + integration test coverage, 230 passing
63
75
  - ๐Ÿ“Š **Performance Benchmarks** - Validates <50ms incremental optimization target
64
76
  - ๐Ÿ“Š **CI Pipeline** - GitHub Actions with cross-platform tests (Ubuntu, macOS, Windows)
65
- - ๐Ÿ“Š **Documentation** - NEUROSCIENCE.md, CONTRIBUTING.md, CHANGELOG.md, comprehensive README
77
+ - ๐Ÿ“Š **Documentation** - NEUROSCIENCE.md, CONTRIBUTING.md, CHANGELOG.md, MCP.md, comprehensive README
66
78
  - ๐Ÿ“Š **NPM Ready** - Package validated with publish --dry-run
67
79
 
68
80
  ---
@@ -286,6 +298,39 @@ sparn config set pruning.threshold 10
286
298
  # Output: Config updated: pruning.threshold = 10
287
299
  ```
288
300
 
301
+ ### 7. Interactive Mode (NEW!)
302
+
303
+ Launch conversational interface for exploration and configuration:
304
+
305
+ ```bash
306
+ sparn interactive
307
+ # or short alias
308
+ sparn i
309
+ ```
310
+
311
+ **Features:**
312
+ - **Configuration Wizard** - Guided prompts for all settings
313
+ - **Optimization Preview** - Test optimization with file preview and confirmation
314
+ - **Stats Dashboard** - Beautiful metrics display with multiple views
315
+ - **Memory Consolidation** - Interactive cleanup with confirmation
316
+ - **Quick Actions** - Common tasks and shortcuts
317
+
318
+ **Output:**
319
+ ```
320
+ โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”
321
+ ๐Ÿง  Sparn Interactive Mode
322
+ โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”
323
+ Conversational configuration and exploration
324
+
325
+ ? What would you like to do?
326
+ โš™๏ธ Configure Settings
327
+ ๐Ÿ” Optimize Preview
328
+ ๐Ÿ“Š Stats Dashboard
329
+ ๐Ÿงน Memory Consolidation
330
+ ๐Ÿš€ Quick Actions
331
+ โฏ โŒ Exit
332
+ ```
333
+
289
334
  ---
290
335
 
291
336
  ## Programmatic API