sqlew 2.1.0 → 2.1.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/CHANGELOG.md CHANGED
@@ -5,6 +5,41 @@ All notable changes to sqlew will be documented in this file.
5
5
  The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
6
6
  and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
7
7
 
8
+ ## [2.1.1] - 2025-10-15
9
+
10
+ ### Fixed
11
+ - **Bin Command Configuration:** Fixed `npx sqlew` to launch MCP server by default instead of CLI
12
+ - Changed `package.json` bin mapping: `sqlew` now points to MCP server (`dist/index.js`)
13
+ - CLI mode moved to `sqlew-cli` command (`dist/cli.js`)
14
+ - **Before:** `npx sqlew` → CLI mode, `npx sqlew-server` → MCP server
15
+ - **After:** `npx sqlew` → MCP server (default), `npx sqlew-cli` → CLI mode (optional)
16
+ - Fixes user experience issue where MCP server launch required non-intuitive command
17
+
18
+ - **Batch Operations Nested Transaction Bug:** Fixed `set_batch` failing with "cannot start a transaction within a transaction" error
19
+ - Root cause: `setDecision()` wraps logic in `transaction()`, but `setDecisionBatch()` also wraps calls in `transaction()` for atomic mode
20
+ - Solution: Created `setDecisionInternal()` helper function with core logic but no transaction wrapper
21
+ - `setDecision()` now calls `setDecisionInternal()` wrapped in transaction
22
+ - `setDecisionBatch()` now calls `setDecisionInternal()` directly (batch manages its own transaction)
23
+ - All batch operations verified working: `set_batch`, `send_batch`, `record_batch`
24
+ - Location: `src/tools/context.ts:40-152` (setDecisionInternal), `context.ts:154-174` (setDecision), `context.ts:883` (setDecisionBatch)
25
+
26
+ ### Changed
27
+ - **Documentation Improvements:**
28
+ - **README Benefits Section:** Rewrote to emphasize organizational memory for AI agents as the core value proposition
29
+ - Added comparison table: Git history (WHAT) vs Code comments (HOW) vs sqlew decisions (WHY)
30
+ - Added real-world example showing cross-session context survival
31
+ - Highlighted 4 key LLM benefits: context survival, prevents regression, historical reasoning, knowledge discovery
32
+ - **README Token Savings:** Replaced internal architecture metrics with honest real-world token reduction analysis
33
+ - Shows concrete scenario: 5 agents, 10 sessions, 20,000 → 7,400 tokens (63% reduction)
34
+ - Explains 4 savings mechanisms: selective retrieval, structured vs unstructured, cross-session persistence, search vs scan
35
+ - Provides realistic ranges: Conservative (50-65%), Realistic (60-75%), Optimal (70-85%)
36
+ - Clarified that 96%/67% metrics are internal v1.0→v2.0 improvements, not usage benefits
37
+
38
+ ### Migration Notes
39
+ - No breaking changes for MCP tool API
40
+ - Users who relied on `npx sqlew` for CLI should update to `npx sqlew-cli`
41
+ - MCP server configuration unchanged (still uses stdio transport)
42
+
8
43
  ## [2.1.0] - 2025-10-14
9
44
 
10
45
  ### 🎉 Feature Release
@@ -437,6 +472,7 @@ First production release of sqlew - MCP server for efficient context sharing bet
437
472
  - Full type safety
438
473
  - Comprehensive error handling
439
474
 
475
+ [2.1.1]: https://github.com/sin5ddd/mcp-sqlew/releases/tag/v2.1.1
440
476
  [2.1.0]: https://github.com/sin5ddd/mcp-sqlew/releases/tag/v2.1.0
441
477
  [2.0.0]: https://github.com/sin5ddd/mcp-sqlew/releases/tag/v2.0.0
442
478
  [1.1.2]: https://github.com/sin5ddd/mcp-sqlew/releases/tag/v1.1.2