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.
- package/CHANGELOG.md +489 -403
- package/README.md +44 -3
- package/assets/config.example.toml +69 -0
- package/assets/sample-agents/README.md +38 -0
- package/assets/sample-agents/sqlew-architect.md +431 -0
- package/assets/sample-agents/sqlew-researcher.md +339 -0
- package/assets/sample-agents/sqlew-scrum-master.md +239 -0
- package/dist/config/loader.d.ts.map +1 -1
- package/dist/config/loader.js +13 -0
- package/dist/config/loader.js.map +1 -1
- package/dist/config/minimal-generator.d.ts +25 -0
- package/dist/config/minimal-generator.d.ts.map +1 -0
- package/dist/config/minimal-generator.js +103 -0
- package/dist/config/minimal-generator.js.map +1 -0
- package/dist/config/types.d.ts +13 -0
- package/dist/config/types.d.ts.map +1 -1
- package/dist/config/types.js +5 -0
- package/dist/config/types.js.map +1 -1
- package/dist/database.d.ts +6 -9
- package/dist/database.d.ts.map +1 -1
- package/dist/database.js +30 -106
- package/dist/database.js.map +1 -1
- package/dist/index.js +5 -2
- package/dist/index.js.map +1 -1
- package/dist/init-agents.d.ts +7 -0
- package/dist/init-agents.d.ts.map +1 -0
- package/dist/init-agents.js +207 -0
- package/dist/init-agents.js.map +1 -0
- package/dist/migrations/knex/enhancements/20251028000000_simplify_agent_system.d.ts +23 -0
- package/dist/migrations/knex/enhancements/20251028000000_simplify_agent_system.d.ts.map +1 -0
- package/dist/migrations/knex/enhancements/20251028000000_simplify_agent_system.js +44 -0
- package/dist/migrations/knex/enhancements/20251028000000_simplify_agent_system.js.map +1 -0
- package/dist/sync-agents.d.ts +13 -0
- package/dist/sync-agents.d.ts.map +1 -0
- package/dist/sync-agents.js +112 -0
- package/dist/sync-agents.js.map +1 -0
- package/dist/tests/migrations/test-all-versions.js +210 -210
- package/dist/tools/messaging.d.ts +4 -0
- package/dist/tools/messaging.d.ts.map +1 -1
- package/dist/tools/messaging.js +38 -0
- package/dist/tools/messaging.js.map +1 -1
- package/dist/tools/tasks.js +2 -2
- package/dist/tools/tasks.js.map +1 -1
- package/dist/utils/task-stale-detection.d.ts.map +1 -1
- package/dist/utils/task-stale-detection.js +79 -4
- package/dist/utils/task-stale-detection.js.map +1 -1
- package/dist/watcher/file-watcher.d.ts +11 -5
- package/dist/watcher/file-watcher.d.ts.map +1 -1
- package/dist/watcher/file-watcher.js +43 -10
- package/dist/watcher/file-watcher.js.map +1 -1
- package/docs/MIGRATION_CHAIN.md +293 -293
- package/docs/SPECIALIZED_AGENTS.md +576 -0
- package/package.json +86 -85
- package/dist/tests/agent-reuse.test.d.ts +0 -6
- package/dist/tests/agent-reuse.test.d.ts.map +0 -1
- package/dist/tests/agent-reuse.test.js +0 -242
- 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.
|
|
9
|
-
|
|
10
|
-
### Changed -
|
|
11
|
-
|
|
12
|
-
**
|
|
13
|
-
|
|
14
|
-
####
|
|
15
|
-
- **Removed
|
|
16
|
-
-
|
|
17
|
-
-
|
|
18
|
-
|
|
19
|
-
-
|
|
20
|
-
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
- **
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
- **
|
|
45
|
-
-
|
|
46
|
-
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
-
|
|
52
|
-
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
-
|
|
74
|
-
-
|
|
75
|
-
- **VCS
|
|
76
|
-
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
- `
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
- `
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
**
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
-
|
|
137
|
-
-
|
|
138
|
-
-
|
|
139
|
-
-
|
|
140
|
-
-
|
|
141
|
-
|
|
142
|
-
#### Database Schema
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
**
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
-
|
|
338
|
-
- `
|
|
339
|
-
- `
|
|
340
|
-
-
|
|
341
|
-
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
-
|
|
400
|
-
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
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)
|