sqlew 3.6.2 → 3.6.5

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.
Files changed (57) hide show
  1. package/CHANGELOG.md +489 -403
  2. package/README.md +44 -3
  3. package/assets/config.example.toml +69 -0
  4. package/assets/sample-agents/README.md +38 -0
  5. package/assets/sample-agents/sqlew-architect.md +431 -0
  6. package/assets/sample-agents/sqlew-researcher.md +339 -0
  7. package/assets/sample-agents/sqlew-scrum-master.md +239 -0
  8. package/dist/config/loader.d.ts.map +1 -1
  9. package/dist/config/loader.js +13 -0
  10. package/dist/config/loader.js.map +1 -1
  11. package/dist/config/minimal-generator.d.ts +25 -0
  12. package/dist/config/minimal-generator.d.ts.map +1 -0
  13. package/dist/config/minimal-generator.js +103 -0
  14. package/dist/config/minimal-generator.js.map +1 -0
  15. package/dist/config/types.d.ts +13 -0
  16. package/dist/config/types.d.ts.map +1 -1
  17. package/dist/config/types.js +5 -0
  18. package/dist/config/types.js.map +1 -1
  19. package/dist/database.d.ts +6 -9
  20. package/dist/database.d.ts.map +1 -1
  21. package/dist/database.js +30 -106
  22. package/dist/database.js.map +1 -1
  23. package/dist/index.js +5 -2
  24. package/dist/index.js.map +1 -1
  25. package/dist/init-agents.d.ts +7 -0
  26. package/dist/init-agents.d.ts.map +1 -0
  27. package/dist/init-agents.js +207 -0
  28. package/dist/init-agents.js.map +1 -0
  29. package/dist/migrations/knex/enhancements/20251028000000_simplify_agent_system.d.ts +23 -0
  30. package/dist/migrations/knex/enhancements/20251028000000_simplify_agent_system.d.ts.map +1 -0
  31. package/dist/migrations/knex/enhancements/20251028000000_simplify_agent_system.js +44 -0
  32. package/dist/migrations/knex/enhancements/20251028000000_simplify_agent_system.js.map +1 -0
  33. package/dist/sync-agents.d.ts +13 -0
  34. package/dist/sync-agents.d.ts.map +1 -0
  35. package/dist/sync-agents.js +112 -0
  36. package/dist/sync-agents.js.map +1 -0
  37. package/dist/tests/migrations/test-all-versions.js +210 -210
  38. package/dist/tools/messaging.d.ts +4 -0
  39. package/dist/tools/messaging.d.ts.map +1 -1
  40. package/dist/tools/messaging.js +38 -0
  41. package/dist/tools/messaging.js.map +1 -1
  42. package/dist/tools/tasks.js +2 -2
  43. package/dist/tools/tasks.js.map +1 -1
  44. package/dist/utils/task-stale-detection.d.ts.map +1 -1
  45. package/dist/utils/task-stale-detection.js +79 -4
  46. package/dist/utils/task-stale-detection.js.map +1 -1
  47. package/dist/watcher/file-watcher.d.ts +11 -5
  48. package/dist/watcher/file-watcher.d.ts.map +1 -1
  49. package/dist/watcher/file-watcher.js +43 -10
  50. package/dist/watcher/file-watcher.js.map +1 -1
  51. package/docs/MIGRATION_CHAIN.md +293 -293
  52. package/docs/SPECIALIZED_AGENTS.md +576 -0
  53. package/package.json +86 -85
  54. package/dist/tests/agent-reuse.test.d.ts +0 -6
  55. package/dist/tests/agent-reuse.test.d.ts.map +0 -1
  56. package/dist/tests/agent-reuse.test.js +0 -242
  57. package/dist/tests/agent-reuse.test.js.map +0 -1
package/CHANGELOG.md CHANGED
@@ -1,403 +1,489 @@
1
- # Changelog
2
-
3
- All notable changes to sqlew will be documented in this file.
4
-
5
- The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
6
- and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
7
-
8
- ## [3.6.2] - 2025-10-27
9
-
10
- ### Changed - Migration System Modernization
11
-
12
- **Simplified to Knex-only migrations with organized directory structure**
13
-
14
- #### Migration System Cleanup
15
- - **Removed custom migration system** (14 obsolete files from `src/migrations/`)
16
- - **Pure Knex migrations** - Standardized on Knex.js migration framework
17
- - **Organized structure** - 22 migrations grouped into 3 logical subdirectories:
18
- - `upgrades/` (7 files) - Version upgrade paths (v1.0 v3.6)
19
- - `bootstrap/` (5 files) - Fresh install foundation
20
- - `enhancements/` (10 files) - v3.6.0+ feature additions
21
-
22
- #### Testing & CI/CD
23
- - **Migration tests updated** - Converted to use Knex migrations exclusively
24
- - **Comprehensive test coverage** - 8/9 versions migrate successfully (89% backward compatibility)
25
- - **Husky git hooks** - Pre-commit (build + tests), pre-push (migration tests)
26
- - **GitHub Actions workflow** - CI/CD pipeline for Node 18.x/20.x
27
-
28
- #### Benefits
29
- - **Better maintainability** - Clear organization, standard tooling
30
- - **Easier onboarding** - Knex is industry-standard
31
- - **Faster development** - 56% time efficiency via parallel execution
32
-
33
- ---
34
-
35
- ## [3.6.0] - 2025-10-25
36
-
37
- ### Added - Help System Optimization
38
-
39
- **Database-driven help system with 60-70% token efficiency improvement**
40
-
41
- #### Key Achievements
42
- - **60-70% Token Reduction** - Average help query: ~200 tokens (vs ~2,150 legacy)
43
- - **95.8% Schema Reduction** - MCP InputSchemas: 350 tokens (vs 8,400 legacy)
44
- - **6 New Help Actions** - Granular queries for actions, parameters, tools, use-cases
45
- - **41 Use-Cases** - Comprehensive workflow examples across 6 categories
46
- - **100% Test Coverage** - 38/38 tests passing
47
-
48
- #### New MCP Actions (stats tool)
49
- - `help_action` - Query single action with parameters and examples
50
- - `help_params` - Query parameter list for an action
51
- - `help_tool` - Query tool overview + all actions
52
- - `help_use_case` - Get single use-case with full workflow
53
- - `help_list_use_cases` - List/filter use-cases by category/complexity
54
- - `help_next_actions` - Suggest common next actions
55
-
56
- #### Database Schema
57
- 7 new tables: `m_help_tools`, `m_help_actions`, `m_help_use_case_categories`, `t_help_action_params`, `t_help_action_examples`, `t_help_use_cases`, `t_help_action_sequences`
58
-
59
- #### Migration from v3.5.x
60
- - Automatic migration on startup
61
- - Backward compatible - all existing MCP actions unchanged
62
- - Zero downtime
63
-
64
- ---
65
-
66
- ## [3.5.2] - 2025-10-24
67
-
68
- ### Added - Two-Step Git-Aware Task Workflow
69
-
70
- **Automatic task completion and archiving based on Git staging and committing**
71
-
72
- #### Features
73
- - **Step 1 - Staging** (`git add`): `waiting_review` → `done` (work complete)
74
- - **Step 2 - Committing** (`git commit`): `done` `archived` (work finalized)
75
- - **VCS Support**: Git, Mercurial, and SVN
76
- - **Zero Token Cost**: Fully automated, no manual MCP calls needed
77
-
78
- #### Configuration
79
- - `git_auto_complete_on_stage` (default: `'1'`)
80
- - `git_auto_archive_on_commit` (default: `'1'`)
81
- - `require_all_files_staged` (default: `'1'`)
82
- - `require_all_files_committed_for_archive` (default: `'1'`)
83
-
84
- ---
85
-
86
- ## [3.5.1] - 2025-10-24
87
-
88
- ### Fixed - File Watcher WSL Compatibility
89
-
90
- **Upgraded chokidar from v3 to v4 + Fixed path normalization bug**
91
-
92
- #### Changes
93
- - **chokidar**: `^3.6.0` → `^4.0.3` (automatic WSL support)
94
- - Fixed path normalization: chokidar reports absolute paths, database stores relative
95
- - Removed manual WSL detection and polling configuration
96
-
97
- ---
98
-
99
- ## [3.5.0] - 2025-10-22
100
-
101
- ### Added - Non-Existent File Auto-Pruning
102
-
103
- **Automatic removal of non-existent watched files with audit trail**
104
-
105
- #### Features
106
- - New table: `t_task_pruned_files` - Audit trail for pruned files
107
- - Auto-pruning during `in_progress → waiting_review` transition
108
- - Safety check: blocks if ALL files non-existent
109
- - New MCP actions: `get_pruned_files`, `link_pruned_file`
110
-
111
- #### Documentation
112
- - `TASK_PRUNING.md` - Comprehensive guide with examples and best practices
113
-
114
- ---
115
-
116
- ## [3.4.1] - 2025-10-22
117
-
118
- ### Fixed - File Watcher Immediate Detection
119
-
120
- **Fixed chokidar configuration for instant file change detection**
121
-
122
- #### Changes
123
- - Removed 5-second aggregation delay
124
- - Added `awaitWriteFinish` for write completion detection
125
- - Immediate auto-transition on file save
126
-
127
- ---
128
-
129
- ## [3.4.0] - 2025-10-22
130
-
131
- ### Added - VCS-Aware File Watching
132
-
133
- **Automatic task transitions based on Git commit detection**
134
-
135
- #### Features
136
- - Auto-transition: `waiting_review` `done` when watched files committed
137
- - Multi-VCS support: Git, Mercurial, SVN
138
- - VCS adapter pattern with pluggable implementations
139
- - Whitelist exemption: Skip auto-transition for critical files (package.json, migrations)
140
- - Configuration: `git_auto_complete_tasks`, `git_require_all_files_committed`, `git_file_whitelist`
141
-
142
- #### Database Schema
143
- - New table: `m_git_file_whitelist` - Exempt files from auto-completion
144
-
145
- ---
146
-
147
- ## [3.2.6] - 2025-10-21
148
-
149
- ### Fixed - File Watcher Test Stability
150
-
151
- **Improved debouncing and async handling in file watcher tests**
152
-
153
- ---
154
-
155
- ## [3.2.5] - 2025-10-21
156
-
157
- ### Fixed - File Watcher Error Handling
158
-
159
- **Enhanced error handling and logging for file watcher operations**
160
-
161
- ---
162
-
163
- ## [3.2.4] - 2025-10-20
164
-
165
- ### Fixed - File Watcher Path Resolution
166
-
167
- **Fixed absolute path resolution for file watching**
168
-
169
- ---
170
-
171
- ## [3.2.3] - 2025-10-20 [DEPRECATED]
172
-
173
- ### Changed - File Watcher Implementation (Deprecated)
174
-
175
- This version was replaced by v3.2.4. Use v3.2.4 or later.
176
-
177
- ---
178
-
179
- ## [3.2.2] - 2025-10-18
180
-
181
- ### Added - Decision Context
182
-
183
- **Rich decision documentation with rationale, alternatives, tradeoffs**
184
-
185
- #### Features
186
- - New table: `t_decision_context` - Attach context to decisions
187
- - New actions: `add_decision_context`, `list_decision_contexts`
188
- - Enhanced `get` action with `include_context` parameter
189
-
190
- #### Documentation
191
- - `DECISION_CONTEXT.md` - Comprehensive guide for decision documentation
192
-
193
- ---
194
-
195
- ## [3.2.0] - 2025-10-18
196
-
197
- ### Added - Task Dependencies
198
-
199
- **Task dependency management with blocking relationships**
200
-
201
- #### Features
202
- - New table: `t_task_dependencies` - Track blocking relationships
203
- - Circular dependency detection
204
- - New actions: `add_dependency`, `remove_dependency`, `get_dependencies`
205
-
206
- ---
207
-
208
- ## [3.1.2] - 2025-10-18
209
-
210
- ### Fixed - Task Linking Validation
211
-
212
- **Fixed validation for task-decision-constraint-file links**
213
-
214
- ---
215
-
216
- ## [3.1.1] - 2025-10-18
217
-
218
- ### Fixed - File Watcher Initialization
219
-
220
- **Fixed file watcher startup sequence and error handling**
221
-
222
- ---
223
-
224
- ## [3.0.2] - 2025-10-17
225
-
226
- ### Fixed - Task State Machine
227
-
228
- **Enhanced task status transition validation**
229
-
230
- #### Changes
231
- - Fixed state machine transitions for task lifecycle
232
- - Improved validation for blocked/unblocked transitions
233
-
234
- ---
235
-
236
- ## [3.0.1] - 2025-10-17
237
-
238
- ### Fixed - Task Timestamps
239
-
240
- **Fixed task timestamp updates on status changes**
241
-
242
- ---
243
-
244
- ## [3.0.0] - 2025-10-17
245
-
246
- ### Added - Kanban Task Watcher
247
-
248
- **AI-optimized task management with auto-stale detection**
249
-
250
- #### Features
251
- - Task management with metadata: status, priority, assignee, tags, layer
252
- - Auto-stale detection: `in_progress` >2h → `waiting_review`, `waiting_review` >24h → `todo`
253
- - File watching with `chokidar`: auto-transition `todo` → `in_progress` on file edit
254
- - Link tasks to decisions, constraints, files
255
- - 70% token reduction vs decision tool (~100 bytes/task vs ~332 bytes/decision)
256
- - Flat hierarchy (no subtasks) for AI simplicity
257
-
258
- #### Database Schema
259
- - New tables: `t_tasks`, `t_task_details`, `t_task_tags`, `t_task_decision_links`, `t_task_constraint_links`, `t_task_file_links`
260
- - New triggers: `trg_log_task_create`, `trg_log_task_status_change`, `trg_update_task_timestamp`
261
-
262
- #### MCP Actions (task tool)
263
- - `create`, `update`, `get`, `list`, `move`, `link`, `archive`, `batch_create`
264
- - `watch_files` - Start file watching for auto-transitions
265
-
266
- #### Documentation
267
- - `TASK_OVERVIEW.md` - Lifecycle, status transitions
268
- - `TASK_ACTIONS.md` - All action references with examples
269
- - `TASK_LINKING.md` - Link tasks to decisions/constraints/files
270
- - `TASK_MIGRATION.md` - Migrate from decision-based tracking
271
-
272
- ---
273
-
274
- ## [2.1.4] - 2025-10-15
275
-
276
- ### Fixed - Action Validation
277
-
278
- **Enhanced parameter validation for all MCP actions**
279
-
280
- ---
281
-
282
- ## [2.1.3] - 2025-10-15
283
-
284
- ### Fixed - Message Priority Handling
285
-
286
- **Fixed message priority enum conversion**
287
-
288
- ---
289
-
290
- ## [2.1.2] - 2025-10-15
291
-
292
- ### Fixed - File Change Tracking
293
-
294
- **Fixed file change timestamp handling**
295
-
296
- ---
297
-
298
- ## [2.1.1] - 2025-10-15
299
-
300
- ### Fixed - Constraint Deactivation
301
-
302
- **Fixed constraint soft delete logic**
303
-
304
- ---
305
-
306
- ## [2.1.0] - 2025-10-14
307
-
308
- ### Added - Template System
309
-
310
- **Decision and batch operation templates**
311
-
312
- #### Features
313
- - New actions: `set_from_template`, `create_template`, `list_templates`
314
- - Template-based decision creation
315
- - Batch operation support with `set_batch`, `send_batch`, `record_batch`
316
-
317
- ---
318
-
319
- ## [2.0.0] - 2025-10-11
320
-
321
- ### Changed - Action-Based Tool Consolidation
322
-
323
- **96% token reduction through action-based API**
324
-
325
- #### Breaking Changes
326
- - 20 tools 6 tools (action-based routing)
327
- - All tools use `action` parameter for routing
328
- - Tool names changed: `context` → `decision`, `utils` → `stats`
329
-
330
- #### Token Efficiency
331
- - Tool definitions: 12,848 → 481 tokens (96% reduction)
332
- - MCP context: ~13,730 ~4,482 tokens (67% reduction)
333
- - Help actions provide on-demand documentation
334
-
335
- #### New Tool Structure
336
- - `decision` - Context Management (9 actions)
337
- - `message` - Agent Messaging (4 actions)
338
- - `file` - File Change Tracking (4 actions)
339
- - `constraint` - Constraint Management (4 actions)
340
- - `stats` - Statistics & Utilities (4 actions)
341
- - `config` - Configuration (3 actions)
342
-
343
- ---
344
-
345
- ## [1.1.2] - 2025-10-11
346
-
347
- ### Fixed - Database Migration
348
-
349
- **Fixed v1.2.0 v1.3.0 table prefix migration**
350
-
351
- ---
352
-
353
- ## [1.1.1] - 2025-10-11
354
-
355
- ### Fixed - Auto-Cleanup
356
-
357
- **Fixed weekend-aware cleanup trigger timing**
358
-
359
- ---
360
-
361
- ## [1.1.0] - 2025-10-11
362
-
363
- ### Added - Weekend-Aware Auto-Deletion
364
-
365
- **Configurable retention with weekend-aware logic**
366
-
367
- #### Features
368
- - Configuration keys: `autodelete_ignore_weekend`, `autodelete_message_hours`, `autodelete_file_history_days`
369
- - CLI arguments for startup override
370
- - Manual cleanup via `clear_old_data` action
371
-
372
- ---
373
-
374
- ## [1.0.1] - 2025-10-11
375
-
376
- ### Fixed - Schema Initialization
377
-
378
- **Fixed initial database schema creation**
379
-
380
- ---
381
-
382
- ## [1.0.0] - 2025-01-10
383
-
384
- ### Added - Initial Release
385
-
386
- **MCP Shared Context Server for efficient context sharing**
387
-
388
- #### Core Features
389
- - Decision tracking with metadata (tags, layers, scopes, versions)
390
- - Agent messaging with priority levels
391
- - File change tracking with layer integration
392
- - Constraint management with priorities
393
- - Statistics and utilities
394
- - SQLite-based persistence with better-sqlite3
395
-
396
- #### Database Schema
397
- - Master tables: agents, files, context_keys, layers, tags, scopes, etc.
398
- - Transaction tables: decisions, messages, file_changes, constraints
399
- - Views for token-efficient queries
400
- - Automatic version history tracking
401
-
402
- #### MCP Tools
403
- Initial implementation with 20 separate tools (consolidated to 6 in v2.0.0)
1
+ # Changelog
2
+
3
+ All notable changes to sqlew will be documented in this file.
4
+
5
+ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
6
+ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
7
+
8
+ ## [3.6.5] - 2025-10-28
9
+
10
+ ### Changed - Agent System Simplification & CI/CD Fix
11
+
12
+ **Removed messaging system and eliminated agent pooling complexity**
13
+
14
+ #### Agent System Cleanup
15
+ - **Removed messaging system** - `t_agent_messages` table dropped, `message` MCP tool deprecated
16
+ - Messaging system was unused and added unnecessary complexity
17
+ - Simplified agent architecture to single-purpose registry
18
+ - **Eliminated agent pooling** - Code no longer uses `in_use` and `is_reusable` columns
19
+ - Removed race conditions and UNIQUE constraint errors
20
+ - Each agent name creates one permanent record (no reuse/pooling)
21
+ - Generic agents (`generic-N`) auto-allocated for empty names
22
+ - **6 MCP Tools** - Down from 7 (messaging removed)
23
+ - `decision`, `file`, `constraint`, `stats`, `config`, `task`
24
+
25
+ #### Infrastructure
26
+ - **CI/CD Workflow** - Removed npm publish step from GitHub Actions
27
+ - npm publish requires 2FA authentication
28
+ - Publishing must be done manually to prevent workflow failures
29
+
30
+ #### Impact
31
+ - Simplified agent management (no pooling overhead)
32
+ - ✅ Reduced complexity (messaging system removed)
33
+ - ✅ CI/CD workflow no longer fails on npm publish
34
+
35
+ ---
36
+
37
+ ## [3.6.4] - 2025-10-28
38
+
39
+ ### Fixed - WSL Git Add Detection
40
+
41
+ **WSL-specific polling workaround for chokidar file watcher**
42
+
43
+ #### Changes
44
+ - **1-second polling for WSL** - Added platform-specific chokidar configuration
45
+ - WSL filesystem events are unreliable with native watching
46
+ - Polling ensures git add operations are detected consistently
47
+ - **Platform detection** - Automatic WSL detection via `/proc/version`
48
+ - **Backward compatible** - Non-WSL platforms use native file watching (no polling)
49
+
50
+ #### Impact
51
+ - Git add detection now works reliably on WSL
52
+ - VCS-aware auto-complete functional across all platforms
53
+
54
+ ---
55
+
56
+ ## [3.6.3] - 2025-10-27
57
+
58
+ ### Fixed - Critical Bug Fixes & Git Add Detection
59
+
60
+ **Transaction pool exhaustion and VCS-aware auto-complete implementation**
61
+
62
+ #### Bug Fixes
63
+ - **Task Move Transaction Bug** - Fixed `moveTask` using base `knex` instead of transaction `trx` (line 880)
64
+ - Caused "Knex: Timeout acquiring a connection" errors
65
+ - Now properly uses transaction object for `logTaskStatusChange`
66
+ - **Task Link Transaction Bug** - Fixed `linkTask` using base `knex` instead of transaction `trx` (line 948)
67
+ - Same connection pool exhaustion issue
68
+ - Now properly uses transaction object for decision link insertion
69
+
70
+ #### Features
71
+ - **Git Add Detection** - Implemented `detectAndCompleteOnStaging()` for VCS-aware workflow
72
+ - Detects `git add` operations and auto-completes tasks (`waiting_review` → `done`)
73
+ - Supports Git, Mercurial, and SVN
74
+ - Configurable via `git_auto_complete_on_stage` and `require_all_files_staged`
75
+ - **VCS Configuration** - Added comprehensive settings documentation to `config.example.toml`
76
+ - `git_auto_complete_on_stage` (default: true)
77
+ - `git_auto_archive_on_commit` (default: true)
78
+ - `require_all_files_staged` (default: true)
79
+ - `require_all_files_committed_for_archive` (default: true)
80
+
81
+ #### Infrastructure
82
+ - **Line Ending Fix** - Added `.gitattributes` to enforce LF endings for shell scripts
83
+ - Prevents CRLF issues in Husky hooks on Windows/WSL
84
+ - Applies to `*.sh` and `.husky/*` files
85
+ - **Husky Hooks** - Fixed pre-commit/pre-push hooks (added shebang, normalized line endings)
86
+
87
+ #### Impact
88
+ - Task operations no longer fail with connection pool timeouts
89
+ - ✅ Git add detection now functional (was stubbed in v3.5.2)
90
+ - Cross-platform compatibility for git hooks (Windows/WSL/Linux/macOS)
91
+
92
+ ---
93
+
94
+ ## [3.6.2] - 2025-10-27
95
+
96
+ ### Changed - Migration System Modernization
97
+
98
+ **Simplified to Knex-only migrations with organized directory structure**
99
+
100
+ #### Migration System Cleanup
101
+ - **Removed custom migration system** (14 obsolete files from `src/migrations/`)
102
+ - **Pure Knex migrations** - Standardized on Knex.js migration framework
103
+ - **Organized structure** - 22 migrations grouped into 3 logical subdirectories:
104
+ - `upgrades/` (7 files) - Version upgrade paths (v1.0 → v3.6)
105
+ - `bootstrap/` (5 files) - Fresh install foundation
106
+ - `enhancements/` (10 files) - v3.6.0+ feature additions
107
+
108
+ #### Testing & CI/CD
109
+ - **Migration tests updated** - Converted to use Knex migrations exclusively
110
+ - **Comprehensive test coverage** - 8/9 versions migrate successfully (89% backward compatibility)
111
+ - **Husky git hooks** - Pre-commit (build + tests), pre-push (migration tests)
112
+ - **GitHub Actions workflow** - CI/CD pipeline for Node 18.x/20.x
113
+
114
+ #### Benefits
115
+ - **Better maintainability** - Clear organization, standard tooling
116
+ - **Easier onboarding** - Knex is industry-standard
117
+ - **Faster development** - 56% time efficiency via parallel execution
118
+
119
+ ---
120
+
121
+ ## [3.6.0] - 2025-10-25
122
+
123
+ ### Added - Help System Optimization
124
+
125
+ **Database-driven help system with 60-70% token efficiency improvement**
126
+
127
+ #### Key Achievements
128
+ - **60-70% Token Reduction** - Average help query: ~200 tokens (vs ~2,150 legacy)
129
+ - **95.8% Schema Reduction** - MCP InputSchemas: 350 tokens (vs 8,400 legacy)
130
+ - **6 New Help Actions** - Granular queries for actions, parameters, tools, use-cases
131
+ - **41 Use-Cases** - Comprehensive workflow examples across 6 categories
132
+ - **100% Test Coverage** - 38/38 tests passing
133
+
134
+ #### New MCP Actions (stats tool)
135
+ - `help_action` - Query single action with parameters and examples
136
+ - `help_params` - Query parameter list for an action
137
+ - `help_tool` - Query tool overview + all actions
138
+ - `help_use_case` - Get single use-case with full workflow
139
+ - `help_list_use_cases` - List/filter use-cases by category/complexity
140
+ - `help_next_actions` - Suggest common next actions
141
+
142
+ #### Database Schema
143
+ 7 new tables: `m_help_tools`, `m_help_actions`, `m_help_use_case_categories`, `t_help_action_params`, `t_help_action_examples`, `t_help_use_cases`, `t_help_action_sequences`
144
+
145
+ #### Migration from v3.5.x
146
+ - Automatic migration on startup
147
+ - Backward compatible - all existing MCP actions unchanged
148
+ - Zero downtime
149
+
150
+ ---
151
+
152
+ ## [3.5.2] - 2025-10-24
153
+
154
+ ### Added - Two-Step Git-Aware Task Workflow
155
+
156
+ **Automatic task completion and archiving based on Git staging and committing**
157
+
158
+ #### Features
159
+ - **Step 1 - Staging** (`git add`): `waiting_review` `done` (work complete)
160
+ - **Step 2 - Committing** (`git commit`): `done` → `archived` (work finalized)
161
+ - **VCS Support**: Git, Mercurial, and SVN
162
+ - **Zero Token Cost**: Fully automated, no manual MCP calls needed
163
+
164
+ #### Configuration
165
+ - `git_auto_complete_on_stage` (default: `'1'`)
166
+ - `git_auto_archive_on_commit` (default: `'1'`)
167
+ - `require_all_files_staged` (default: `'1'`)
168
+ - `require_all_files_committed_for_archive` (default: `'1'`)
169
+
170
+ ---
171
+
172
+ ## [3.5.1] - 2025-10-24
173
+
174
+ ### Fixed - File Watcher WSL Compatibility
175
+
176
+ **Upgraded chokidar from v3 to v4 + Fixed path normalization bug**
177
+
178
+ #### Changes
179
+ - **chokidar**: `^3.6.0` `^4.0.3` (automatic WSL support)
180
+ - Fixed path normalization: chokidar reports absolute paths, database stores relative
181
+ - Removed manual WSL detection and polling configuration
182
+
183
+ ---
184
+
185
+ ## [3.5.0] - 2025-10-22
186
+
187
+ ### Added - Non-Existent File Auto-Pruning
188
+
189
+ **Automatic removal of non-existent watched files with audit trail**
190
+
191
+ #### Features
192
+ - New table: `t_task_pruned_files` - Audit trail for pruned files
193
+ - Auto-pruning during `in_progress → waiting_review` transition
194
+ - Safety check: blocks if ALL files non-existent
195
+ - New MCP actions: `get_pruned_files`, `link_pruned_file`
196
+
197
+ #### Documentation
198
+ - `TASK_PRUNING.md` - Comprehensive guide with examples and best practices
199
+
200
+ ---
201
+
202
+ ## [3.4.1] - 2025-10-22
203
+
204
+ ### Fixed - File Watcher Immediate Detection
205
+
206
+ **Fixed chokidar configuration for instant file change detection**
207
+
208
+ #### Changes
209
+ - Removed 5-second aggregation delay
210
+ - Added `awaitWriteFinish` for write completion detection
211
+ - Immediate auto-transition on file save
212
+
213
+ ---
214
+
215
+ ## [3.4.0] - 2025-10-22
216
+
217
+ ### Added - VCS-Aware File Watching
218
+
219
+ **Automatic task transitions based on Git commit detection**
220
+
221
+ #### Features
222
+ - Auto-transition: `waiting_review` → `done` when watched files committed
223
+ - Multi-VCS support: Git, Mercurial, SVN
224
+ - VCS adapter pattern with pluggable implementations
225
+ - Whitelist exemption: Skip auto-transition for critical files (package.json, migrations)
226
+ - Configuration: `git_auto_complete_tasks`, `git_require_all_files_committed`, `git_file_whitelist`
227
+
228
+ #### Database Schema
229
+ - New table: `m_git_file_whitelist` - Exempt files from auto-completion
230
+
231
+ ---
232
+
233
+ ## [3.2.6] - 2025-10-21
234
+
235
+ ### Fixed - File Watcher Test Stability
236
+
237
+ **Improved debouncing and async handling in file watcher tests**
238
+
239
+ ---
240
+
241
+ ## [3.2.5] - 2025-10-21
242
+
243
+ ### Fixed - File Watcher Error Handling
244
+
245
+ **Enhanced error handling and logging for file watcher operations**
246
+
247
+ ---
248
+
249
+ ## [3.2.4] - 2025-10-20
250
+
251
+ ### Fixed - File Watcher Path Resolution
252
+
253
+ **Fixed absolute path resolution for file watching**
254
+
255
+ ---
256
+
257
+ ## [3.2.3] - 2025-10-20 [DEPRECATED]
258
+
259
+ ### Changed - File Watcher Implementation (Deprecated)
260
+
261
+ This version was replaced by v3.2.4. Use v3.2.4 or later.
262
+
263
+ ---
264
+
265
+ ## [3.2.2] - 2025-10-18
266
+
267
+ ### Added - Decision Context
268
+
269
+ **Rich decision documentation with rationale, alternatives, tradeoffs**
270
+
271
+ #### Features
272
+ - New table: `t_decision_context` - Attach context to decisions
273
+ - New actions: `add_decision_context`, `list_decision_contexts`
274
+ - Enhanced `get` action with `include_context` parameter
275
+
276
+ #### Documentation
277
+ - `DECISION_CONTEXT.md` - Comprehensive guide for decision documentation
278
+
279
+ ---
280
+
281
+ ## [3.2.0] - 2025-10-18
282
+
283
+ ### Added - Task Dependencies
284
+
285
+ **Task dependency management with blocking relationships**
286
+
287
+ #### Features
288
+ - New table: `t_task_dependencies` - Track blocking relationships
289
+ - Circular dependency detection
290
+ - New actions: `add_dependency`, `remove_dependency`, `get_dependencies`
291
+
292
+ ---
293
+
294
+ ## [3.1.2] - 2025-10-18
295
+
296
+ ### Fixed - Task Linking Validation
297
+
298
+ **Fixed validation for task-decision-constraint-file links**
299
+
300
+ ---
301
+
302
+ ## [3.1.1] - 2025-10-18
303
+
304
+ ### Fixed - File Watcher Initialization
305
+
306
+ **Fixed file watcher startup sequence and error handling**
307
+
308
+ ---
309
+
310
+ ## [3.0.2] - 2025-10-17
311
+
312
+ ### Fixed - Task State Machine
313
+
314
+ **Enhanced task status transition validation**
315
+
316
+ #### Changes
317
+ - Fixed state machine transitions for task lifecycle
318
+ - Improved validation for blocked/unblocked transitions
319
+
320
+ ---
321
+
322
+ ## [3.0.1] - 2025-10-17
323
+
324
+ ### Fixed - Task Timestamps
325
+
326
+ **Fixed task timestamp updates on status changes**
327
+
328
+ ---
329
+
330
+ ## [3.0.0] - 2025-10-17
331
+
332
+ ### Added - Kanban Task Watcher
333
+
334
+ **AI-optimized task management with auto-stale detection**
335
+
336
+ #### Features
337
+ - Task management with metadata: status, priority, assignee, tags, layer
338
+ - Auto-stale detection: `in_progress` >2h `waiting_review`, `waiting_review` >24h → `todo`
339
+ - File watching with `chokidar`: auto-transition `todo` `in_progress` on file edit
340
+ - Link tasks to decisions, constraints, files
341
+ - 70% token reduction vs decision tool (~100 bytes/task vs ~332 bytes/decision)
342
+ - Flat hierarchy (no subtasks) for AI simplicity
343
+
344
+ #### Database Schema
345
+ - New tables: `t_tasks`, `t_task_details`, `t_task_tags`, `t_task_decision_links`, `t_task_constraint_links`, `t_task_file_links`
346
+ - New triggers: `trg_log_task_create`, `trg_log_task_status_change`, `trg_update_task_timestamp`
347
+
348
+ #### MCP Actions (task tool)
349
+ - `create`, `update`, `get`, `list`, `move`, `link`, `archive`, `batch_create`
350
+ - `watch_files` - Start file watching for auto-transitions
351
+
352
+ #### Documentation
353
+ - `TASK_OVERVIEW.md` - Lifecycle, status transitions
354
+ - `TASK_ACTIONS.md` - All action references with examples
355
+ - `TASK_LINKING.md` - Link tasks to decisions/constraints/files
356
+ - `TASK_MIGRATION.md` - Migrate from decision-based tracking
357
+
358
+ ---
359
+
360
+ ## [2.1.4] - 2025-10-15
361
+
362
+ ### Fixed - Action Validation
363
+
364
+ **Enhanced parameter validation for all MCP actions**
365
+
366
+ ---
367
+
368
+ ## [2.1.3] - 2025-10-15
369
+
370
+ ### Fixed - Message Priority Handling
371
+
372
+ **Fixed message priority enum conversion**
373
+
374
+ ---
375
+
376
+ ## [2.1.2] - 2025-10-15
377
+
378
+ ### Fixed - File Change Tracking
379
+
380
+ **Fixed file change timestamp handling**
381
+
382
+ ---
383
+
384
+ ## [2.1.1] - 2025-10-15
385
+
386
+ ### Fixed - Constraint Deactivation
387
+
388
+ **Fixed constraint soft delete logic**
389
+
390
+ ---
391
+
392
+ ## [2.1.0] - 2025-10-14
393
+
394
+ ### Added - Template System
395
+
396
+ **Decision and batch operation templates**
397
+
398
+ #### Features
399
+ - New actions: `set_from_template`, `create_template`, `list_templates`
400
+ - Template-based decision creation
401
+ - Batch operation support with `set_batch`, `send_batch`, `record_batch`
402
+
403
+ ---
404
+
405
+ ## [2.0.0] - 2025-10-11
406
+
407
+ ### Changed - Action-Based Tool Consolidation
408
+
409
+ **96% token reduction through action-based API**
410
+
411
+ #### Breaking Changes
412
+ - 20 tools → 6 tools (action-based routing)
413
+ - All tools use `action` parameter for routing
414
+ - Tool names changed: `context` → `decision`, `utils` → `stats`
415
+
416
+ #### Token Efficiency
417
+ - Tool definitions: 12,848 → 481 tokens (96% reduction)
418
+ - MCP context: ~13,730 → ~4,482 tokens (67% reduction)
419
+ - Help actions provide on-demand documentation
420
+
421
+ #### New Tool Structure
422
+ - `decision` - Context Management (9 actions)
423
+ - `message` - Agent Messaging (4 actions)
424
+ - `file` - File Change Tracking (4 actions)
425
+ - `constraint` - Constraint Management (4 actions)
426
+ - `stats` - Statistics & Utilities (4 actions)
427
+ - `config` - Configuration (3 actions)
428
+
429
+ ---
430
+
431
+ ## [1.1.2] - 2025-10-11
432
+
433
+ ### Fixed - Database Migration
434
+
435
+ **Fixed v1.2.0 → v1.3.0 table prefix migration**
436
+
437
+ ---
438
+
439
+ ## [1.1.1] - 2025-10-11
440
+
441
+ ### Fixed - Auto-Cleanup
442
+
443
+ **Fixed weekend-aware cleanup trigger timing**
444
+
445
+ ---
446
+
447
+ ## [1.1.0] - 2025-10-11
448
+
449
+ ### Added - Weekend-Aware Auto-Deletion
450
+
451
+ **Configurable retention with weekend-aware logic**
452
+
453
+ #### Features
454
+ - Configuration keys: `autodelete_ignore_weekend`, `autodelete_message_hours`, `autodelete_file_history_days`
455
+ - CLI arguments for startup override
456
+ - Manual cleanup via `clear_old_data` action
457
+
458
+ ---
459
+
460
+ ## [1.0.1] - 2025-10-11
461
+
462
+ ### Fixed - Schema Initialization
463
+
464
+ **Fixed initial database schema creation**
465
+
466
+ ---
467
+
468
+ ## [1.0.0] - 2025-01-10
469
+
470
+ ### Added - Initial Release
471
+
472
+ **MCP Shared Context Server for efficient context sharing**
473
+
474
+ #### Core Features
475
+ - Decision tracking with metadata (tags, layers, scopes, versions)
476
+ - Agent messaging with priority levels
477
+ - File change tracking with layer integration
478
+ - Constraint management with priorities
479
+ - Statistics and utilities
480
+ - SQLite-based persistence with better-sqlite3
481
+
482
+ #### Database Schema
483
+ - Master tables: agents, files, context_keys, layers, tags, scopes, etc.
484
+ - Transaction tables: decisions, messages, file_changes, constraints
485
+ - Views for token-efficient queries
486
+ - Automatic version history tracking
487
+
488
+ #### MCP Tools
489
+ Initial implementation with 20 separate tools (consolidated to 6 in v2.0.0)