@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 +52 -7
- package/dist/cli/index.cjs +567 -26
- package/dist/cli/index.cjs.map +1 -1
- package/dist/cli/index.js +565 -25
- package/dist/cli/index.js.map +1 -1
- package/dist/daemon/index.cjs +728 -159
- package/dist/daemon/index.cjs.map +1 -1
- package/dist/daemon/index.js +697 -150
- package/dist/daemon/index.js.map +1 -1
- package/dist/index.cjs +214 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +34 -1
- package/dist/index.d.ts +34 -1
- package/dist/index.js +213 -1
- package/dist/index.js.map +1 -1
- package/dist/mcp/index.cjs +957 -0
- package/dist/mcp/index.cjs.map +1 -0
- package/dist/mcp/index.d.cts +1 -0
- package/dist/mcp/index.d.ts +1 -0
- package/dist/mcp/index.js +934 -0
- package/dist/mcp/index.js.map +1 -0
- package/package.json +8 -3
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** -
|
|
9
|
+
**Status**: โ
**Production Ready** - Full Feature Set with MCP Server + Interactive Mode
|
|
10
10
|
|
|
11
|
-
**Version**: 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**
|
|
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
|
-
- โ
**
|
|
48
|
-
-
|
|
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
|
-
- ๐ **
|
|
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
|