sqlew 4.0.5 → 4.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.
Files changed (217) hide show
  1. package/CHANGELOG.md +1817 -1782
  2. package/README.md +409 -468
  3. package/assets/claude-md-snippets/plan-mode-integration.md +17 -6
  4. package/assets/config.example.toml +282 -284
  5. package/assets/sample-agents/README.md +36 -40
  6. package/assets/sample-agents/sqlew-architect.md +321 -322
  7. package/assets/sample-agents/sqlew-researcher.md +292 -293
  8. package/assets/sample-agents/sqlew-scrum-master.md +286 -287
  9. package/assets/sample-commands/README.md +56 -57
  10. package/assets/sample-skills/sqlew-plan-guidance/SKILL.md +33 -26
  11. package/dist/cli/hooks/check-completion.d.ts +19 -0
  12. package/dist/cli/hooks/check-completion.d.ts.map +1 -0
  13. package/dist/cli/hooks/check-completion.js +104 -0
  14. package/dist/cli/hooks/check-completion.js.map +1 -0
  15. package/dist/cli/hooks/init-hooks.d.ts +35 -0
  16. package/dist/cli/hooks/init-hooks.d.ts.map +1 -0
  17. package/dist/cli/hooks/init-hooks.js +425 -0
  18. package/dist/cli/hooks/init-hooks.js.map +1 -0
  19. package/dist/cli/hooks/mark-done.d.ts +25 -0
  20. package/dist/cli/hooks/mark-done.d.ts.map +1 -0
  21. package/dist/cli/hooks/mark-done.js +128 -0
  22. package/dist/cli/hooks/mark-done.js.map +1 -0
  23. package/dist/cli/hooks/plan-id-utils.d.ts +83 -0
  24. package/dist/cli/hooks/plan-id-utils.d.ts.map +1 -0
  25. package/dist/cli/hooks/plan-id-utils.js +183 -0
  26. package/dist/cli/hooks/plan-id-utils.js.map +1 -0
  27. package/dist/cli/hooks/save.d.ts +23 -0
  28. package/dist/cli/hooks/save.d.ts.map +1 -0
  29. package/dist/cli/hooks/save.js +90 -0
  30. package/dist/cli/hooks/save.js.map +1 -0
  31. package/dist/cli/hooks/stdin-parser.d.ts +139 -0
  32. package/dist/cli/hooks/stdin-parser.d.ts.map +1 -0
  33. package/dist/cli/hooks/stdin-parser.js +127 -0
  34. package/dist/cli/hooks/stdin-parser.js.map +1 -0
  35. package/dist/cli/hooks/suggest.d.ts +19 -0
  36. package/dist/cli/hooks/suggest.d.ts.map +1 -0
  37. package/dist/cli/hooks/suggest.js +157 -0
  38. package/dist/cli/hooks/suggest.js.map +1 -0
  39. package/dist/cli/hooks/track-plan.d.ts +36 -0
  40. package/dist/cli/hooks/track-plan.d.ts.map +1 -0
  41. package/dist/cli/hooks/track-plan.js +152 -0
  42. package/dist/cli/hooks/track-plan.js.map +1 -0
  43. package/dist/cli.d.ts.map +1 -1
  44. package/dist/cli.js +56 -16
  45. package/dist/cli.js.map +1 -1
  46. package/dist/config/global-config.d.ts +187 -0
  47. package/dist/config/global-config.d.ts.map +1 -0
  48. package/dist/config/global-config.js +206 -0
  49. package/dist/config/global-config.js.map +1 -0
  50. package/dist/config/loader.d.ts +42 -0
  51. package/dist/config/loader.d.ts.map +1 -1
  52. package/dist/config/loader.js +96 -0
  53. package/dist/config/loader.js.map +1 -1
  54. package/dist/constants.d.ts +4 -0
  55. package/dist/constants.d.ts.map +1 -1
  56. package/dist/constants.js +10 -0
  57. package/dist/constants.js.map +1 -1
  58. package/dist/database/migrations/v4/20251126000000_v4_bootstrap.js +59 -59
  59. package/dist/database/migrations/v4/20251126000000_v4_bootstrap.js.map +1 -1
  60. package/dist/database/migrations/v4/20251126000001_v4_migrate_data.js +33 -33
  61. package/dist/database/migrations/v4/20251126000001_v4_migrate_data.js.map +1 -1
  62. package/dist/database/migrations/v4/20251127000000_add_rejected_status.js +7 -7
  63. package/dist/database/migrations/v4/20251127000000_add_rejected_status.js.map +1 -1
  64. package/dist/database/migrations/v4/20251127000001_update_task_move_help.js +11 -11
  65. package/dist/database/migrations/v4/20251127000001_update_task_move_help.js.map +1 -1
  66. package/dist/database/migrations/v4/20251127000002_v4_seed_help_system.js +10 -10
  67. package/dist/database/migrations/v4/20251127000002_v4_seed_help_system.js.map +1 -1
  68. package/dist/database/migrations/v4/20251127000003_add_task_notes_column.js +7 -7
  69. package/dist/database/migrations/v4/20251127000003_add_task_notes_column.js.map +1 -1
  70. package/dist/database/migrations/v4/20251128000000_drop_all_views.js +8 -8
  71. package/dist/database/migrations/v4/20251128000000_drop_all_views.js.map +1 -1
  72. package/dist/database/operations/queries.d.ts.map +1 -1
  73. package/dist/database/operations/queries.js +11 -2
  74. package/dist/database/operations/queries.js.map +1 -1
  75. package/dist/index.js +4 -1
  76. package/dist/index.js.map +1 -1
  77. package/dist/init-agents.js +0 -1
  78. package/dist/init-agents.js.map +1 -1
  79. package/dist/init-skills.d.ts +4 -3
  80. package/dist/init-skills.d.ts.map +1 -1
  81. package/dist/init-skills.js +10 -3
  82. package/dist/init-skills.js.map +1 -1
  83. package/dist/server/setup.d.ts +8 -0
  84. package/dist/server/setup.d.ts.map +1 -1
  85. package/dist/server/setup.js +141 -21
  86. package/dist/server/setup.js.map +1 -1
  87. package/dist/sync-agents.d.ts.map +1 -1
  88. package/dist/sync-agents.js +48 -3
  89. package/dist/sync-agents.js.map +1 -1
  90. package/dist/sync-commands.d.ts.map +1 -1
  91. package/dist/sync-commands.js +43 -3
  92. package/dist/sync-commands.js.map +1 -1
  93. package/dist/tools/constraints/actions/get.d.ts.map +1 -1
  94. package/dist/tools/constraints/actions/get.js +5 -8
  95. package/dist/tools/constraints/actions/get.js.map +1 -1
  96. package/dist/tools/constraints/help/help.d.ts.map +1 -1
  97. package/dist/tools/constraints/help/help.js +1 -6
  98. package/dist/tools/constraints/help/help.js.map +1 -1
  99. package/dist/tools/context/actions/get.d.ts.map +1 -1
  100. package/dist/tools/context/actions/get.js.map +1 -1
  101. package/dist/tools/context/actions/search-layer.d.ts.map +1 -1
  102. package/dist/tools/context/actions/search-layer.js +5 -3
  103. package/dist/tools/context/actions/search-layer.js.map +1 -1
  104. package/dist/tools/context/actions/set-from-policy.d.ts +2 -1
  105. package/dist/tools/context/actions/set-from-policy.d.ts.map +1 -1
  106. package/dist/tools/context/actions/set-from-policy.js.map +1 -1
  107. package/dist/tools/context/help/help.d.ts.map +1 -1
  108. package/dist/tools/context/help/help.js +1 -7
  109. package/dist/tools/context/help/help.js.map +1 -1
  110. package/dist/tools/context/internal/queries.d.ts.map +1 -1
  111. package/dist/tools/context/internal/queries.js +5 -2
  112. package/dist/tools/context/internal/queries.js.map +1 -1
  113. package/dist/tools/context/types.d.ts +1 -1
  114. package/dist/tools/context/types.d.ts.map +1 -1
  115. package/dist/tools/files/actions/get.d.ts.map +1 -1
  116. package/dist/tools/files/actions/get.js +4 -6
  117. package/dist/tools/files/actions/get.js.map +1 -1
  118. package/dist/tools/files/help/help.d.ts.map +1 -1
  119. package/dist/tools/files/help/help.js +1 -6
  120. package/dist/tools/files/help/help.js.map +1 -1
  121. package/dist/tools/suggest/help/constraint-help.d.ts.map +1 -1
  122. package/dist/tools/suggest/help/constraint-help.js +0 -2
  123. package/dist/tools/suggest/help/constraint-help.js.map +1 -1
  124. package/dist/tools/suggest/internal/constraint-queries.d.ts.map +1 -1
  125. package/dist/tools/suggest/internal/constraint-queries.js +12 -5
  126. package/dist/tools/suggest/internal/constraint-queries.js.map +1 -1
  127. package/dist/tools/suggest/internal/queries.js +2 -2
  128. package/dist/tools/suggest/internal/queries.js.map +1 -1
  129. package/dist/tools/tasks/help/help.d.ts.map +1 -1
  130. package/dist/tools/tasks/help/help.js +0 -6
  131. package/dist/tools/tasks/help/help.js.map +1 -1
  132. package/dist/tools/tasks/help/use-case.d.ts.map +1 -1
  133. package/dist/tools/tasks/help/use-case.js +0 -1
  134. package/dist/tools/tasks/help/use-case.js.map +1 -1
  135. package/dist/tools/tasks/watcher/status.d.ts.map +1 -1
  136. package/dist/tools/tasks/watcher/status.js +5 -1
  137. package/dist/tools/tasks/watcher/status.js.map +1 -1
  138. package/dist/types/decision/params.d.ts +7 -6
  139. package/dist/types/decision/params.d.ts.map +1 -1
  140. package/dist/types/decision/templates.d.ts +3 -2
  141. package/dist/types/decision/templates.d.ts.map +1 -1
  142. package/dist/types/view-entities.d.ts +2 -1
  143. package/dist/types/view-entities.d.ts.map +1 -1
  144. package/dist/types.d.ts +19 -11
  145. package/dist/types.d.ts.map +1 -1
  146. package/dist/types.js +4 -1
  147. package/dist/types.js.map +1 -1
  148. package/dist/utils/enum-converter.d.ts +72 -0
  149. package/dist/utils/enum-converter.d.ts.map +1 -0
  150. package/dist/utils/enum-converter.js +76 -0
  151. package/dist/utils/enum-converter.js.map +1 -0
  152. package/dist/utils/hook-queue.d.ts +81 -0
  153. package/dist/utils/hook-queue.d.ts.map +1 -0
  154. package/dist/utils/hook-queue.js +156 -0
  155. package/dist/utils/hook-queue.js.map +1 -0
  156. package/dist/utils/project-root.d.ts +9 -2
  157. package/dist/utils/project-root.d.ts.map +1 -1
  158. package/dist/utils/project-root.js +16 -2
  159. package/dist/utils/project-root.js.map +1 -1
  160. package/dist/utils/tag-parser.d.ts.map +1 -1
  161. package/dist/utils/tag-parser.js +6 -0
  162. package/dist/utils/tag-parser.js.map +1 -1
  163. package/dist/utils/universal-knex.js +3 -3
  164. package/dist/utils/universal-knex.js.map +1 -1
  165. package/dist/utils/validators.d.ts +1 -1
  166. package/dist/utils/validators.d.ts.map +1 -1
  167. package/dist/utils/validators.js +1 -1
  168. package/dist/utils/validators.js.map +1 -1
  169. package/dist/utils/vcs-adapter.d.ts +44 -0
  170. package/dist/utils/vcs-adapter.d.ts.map +1 -1
  171. package/dist/utils/vcs-adapter.js +88 -0
  172. package/dist/utils/vcs-adapter.js.map +1 -1
  173. package/dist/utils/view-queries.d.ts.map +1 -1
  174. package/dist/utils/view-queries.js +9 -19
  175. package/dist/utils/view-queries.js.map +1 -1
  176. package/dist/watcher/base-watcher.d.ts +69 -0
  177. package/dist/watcher/base-watcher.d.ts.map +1 -0
  178. package/dist/watcher/base-watcher.js +130 -0
  179. package/dist/watcher/base-watcher.js.map +1 -0
  180. package/dist/watcher/index.d.ts +3 -0
  181. package/dist/watcher/index.d.ts.map +1 -1
  182. package/dist/watcher/index.js +2 -0
  183. package/dist/watcher/index.js.map +1 -1
  184. package/dist/watcher/queue-watcher.d.ts +64 -0
  185. package/dist/watcher/queue-watcher.d.ts.map +1 -0
  186. package/dist/watcher/queue-watcher.js +187 -0
  187. package/dist/watcher/queue-watcher.js.map +1 -0
  188. package/docs/ADR_CONCEPTS.md +140 -0
  189. package/docs/CONFIGURATION.md +922 -925
  190. package/docs/CROSS_DATABASE.md +153 -0
  191. package/docs/DATABASE_AUTH.md +70 -356
  192. package/docs/HOOKS_GUIDE.md +159 -0
  193. package/docs/SLASH_COMMANDS.md +329 -337
  194. package/docs/TASK_SYSTEM_DEPRECATED.md +88 -0
  195. package/docs/changelogs/CHANGELOG_ARCHIVE_v3.4_and_older.md +293 -296
  196. package/docs/cli/DATA_EXPORT_IMPORT.md +699 -700
  197. package/docs/cli/README.md +276 -277
  198. package/package.json +123 -124
  199. package/docs/ACCEPTANCE_CRITERIA.md +0 -625
  200. package/docs/AI_AGENT_GUIDE.md +0 -299
  201. package/docs/ARCHITECTURE.md +0 -167
  202. package/docs/AUTO_FILE_TRACKING.md +0 -841
  203. package/docs/BATCH_VALIDATION.md +0 -617
  204. package/docs/BEST_PRACTICES.md +0 -168
  205. package/docs/CONSTRAINT_INTELLIGENCE.md +0 -339
  206. package/docs/DECISION_CONTEXT.md +0 -697
  207. package/docs/DECISION_INTELLIGENCE.md +0 -605
  208. package/docs/GIT_AWARE_AUTO_COMPLETE.md +0 -646
  209. package/docs/MIGRATION_GUIDE_V3.9.0.md +0 -371
  210. package/docs/SHARED_CONCEPTS.md +0 -225
  211. package/docs/SPECIALIZED_AGENTS.md +0 -126
  212. package/docs/TASK_ACTIONS.md +0 -1177
  213. package/docs/TASK_OVERVIEW.md +0 -452
  214. package/docs/TASK_PRUNING.md +0 -594
  215. package/docs/TOOL_REFERENCE.md +0 -1077
  216. package/docs/TOOL_SELECTION.md +0 -83
  217. package/docs/WORKFLOWS.md +0 -941
@@ -0,0 +1,88 @@
1
+ # Task System (Deprecated)
2
+
3
+ > **Status**: Deprecated as of v4.1.0
4
+ >
5
+ > AI agents have evolved to become sophisticated enough to manage their own task orchestration through Claude Code's native TodoWrite tool and Plan Mode. The sqlew Task System has fulfilled its mission as a bridge technology and is now retired with honor.
6
+ >
7
+ > This document is preserved for historical reference and for users who wish to understand the original design.
8
+
9
+ ---
10
+
11
+ ## Historical Overview
12
+
13
+ The sqlew Task System (v3.0.0 - v4.0.x) provided:
14
+
15
+ - **Kanban-style task management** with status transitions (todo, in_progress, waiting_review, blocked, done, archived)
16
+ - **File tracking** linking tasks to source files with action types (create, modify, delete)
17
+ - **Dependency management** with circular dependency detection
18
+ - **Auto-stale detection** transitioning abandoned tasks automatically
19
+ - **Git-aware auto-complete** using VCS events to advance task status
20
+ - **Acceptance criteria validation** for automated task completion checks
21
+
22
+ ## Why Deprecated?
23
+
24
+ ### The Original Problem (2025-06)
25
+
26
+ When sqlew was designed, AI agents lacked:
27
+ - Persistent memory across sessions
28
+ - Native task tracking capabilities
29
+ - Structured planning workflows
30
+
31
+ The Task System bridged this gap by providing database-backed task persistence.
32
+
33
+ ### What Changed (2025-11)
34
+
35
+ Claude Code introduced:
36
+ - **TodoWrite tool** - Native task tracking within conversations
37
+ - **Plan Mode** - Structured planning with user approval workflow
38
+ - **Claude Code Hooks** - Automatic decision capture from Plan Mode
39
+
40
+ These native capabilities now handle what the Task System was designed to do, but with:
41
+ - Zero configuration required
42
+ - Seamless integration with Claude Code
43
+ - No database overhead for task state
44
+
45
+ ## Migration Path
46
+
47
+ **Before (Task System)**:
48
+ ```typescript
49
+ task({ action: "create", title: "Implement auth", layer: "business" })
50
+ task({ action: "move", task_id: 1, status: "in_progress" })
51
+ task({ action: "move", task_id: 1, status: "done" })
52
+ ```
53
+
54
+ **After (Native Claude Code)**:
55
+ ```
56
+ // Just use Plan Mode - tasks are tracked automatically via TodoWrite
57
+ // Decisions are captured automatically via Hooks
58
+ ```
59
+
60
+ ## Preserved Features
61
+
62
+ The following sqlew features remain active and are enhanced in v4.1.0:
63
+
64
+ | Feature | Status | Notes |
65
+ |---------|--------|-------|
66
+ | **Decisions** | Active | Core ADR functionality |
67
+ | **Constraints** | Active | Architectural rules |
68
+ | **File Tracking** | Active | For decisions, not tasks |
69
+ | **Similarity Detection** | Active | Three-tier duplicate prevention |
70
+ | **Hooks Integration** | New | Auto-capture from Plan Mode |
71
+
72
+ ## Original Documentation
73
+
74
+ The following documentation was consolidated into this file:
75
+
76
+ - TASK_OVERVIEW.md - Lifecycle and status transitions
77
+ - TASK_ACTIONS.md - All action references
78
+ - AUTO_FILE_TRACKING.md - File watching system
79
+ - GIT_AWARE_AUTO_COMPLETE.md - VCS integration
80
+ - TASK_PRUNING.md - Automatic cleanup
81
+
82
+ For historical implementation details, refer to:
83
+ - `src/tools/tasks/` - Task tool implementation
84
+ - `src/database/migrations/v4/` - Schema definitions
85
+
86
+ ---
87
+
88
+ *The Task System served the AI agent community well from v3.0.0 to v4.0.x. Its design principles live on in Claude Code's native capabilities.*
@@ -1,296 +1,293 @@
1
- # Changelog Archive (v3.4.1 and older)
2
-
3
- This archive contains changelog entries for sqlew versions **v3.4.1 and older**.
4
-
5
- For current changelog, see: [../../CHANGELOG.md](../../CHANGELOG.md)
6
-
7
- ---
8
-
9
- ## [3.4.1] - 2025-10-22
10
-
11
- ### Fixed - File Watcher Immediate Detection
12
-
13
- **Fixed chokidar configuration for instant file change detection**
14
-
15
- #### Changes
16
- - Removed 5-second aggregation delay
17
- - Added `awaitWriteFinish` for write completion detection
18
- - Immediate auto-transition on file save
19
-
20
- ---
21
-
22
- ## [3.4.0] - 2025-10-22
23
-
24
- ### Added - VCS-Aware File Watching
25
-
26
- **Automatic task transitions based on Git commit detection**
27
-
28
- #### Features
29
- - Auto-transition: `waiting_review` → `done` when watched files committed
30
- - Multi-VCS support: Git, Mercurial, SVN
31
- - VCS adapter pattern with pluggable implementations
32
- - Whitelist exemption: Skip auto-transition for critical files (package.json, migrations)
33
- - Configuration: `git_auto_complete_tasks`, `git_require_all_files_committed`, `git_file_whitelist`
34
-
35
- #### Database Schema
36
- - New table: `m_git_file_whitelist` - Exempt files from auto-completion
37
-
38
- ---
39
-
40
- ## [3.2.6] - 2025-10-21
41
-
42
- ### Fixed - File Watcher Test Stability
43
-
44
- **Improved debouncing and async handling in file watcher tests**
45
-
46
- ---
47
-
48
- ## [3.2.5] - 2025-10-21
49
-
50
- ### Fixed - File Watcher Error Handling
51
-
52
- **Enhanced error handling and logging for file watcher operations**
53
-
54
- ---
55
-
56
- ## [3.2.4] - 2025-10-20
57
-
58
- ### Fixed - File Watcher Path Resolution
59
-
60
- **Fixed absolute path resolution for file watching**
61
-
62
- ---
63
-
64
- ## [3.2.3] - 2025-10-20 [DEPRECATED]
65
-
66
- ### Changed - File Watcher Implementation (Deprecated)
67
-
68
- This version was replaced by v3.2.4. Use v3.2.4 or later.
69
-
70
- ---
71
-
72
- ## [3.2.2] - 2025-10-18
73
-
74
- ### Added - Decision Context
75
-
76
- **Rich decision documentation with rationale, alternatives, tradeoffs**
77
-
78
- #### Features
79
- - New table: `t_decision_context` - Attach context to decisions
80
- - New actions: `add_decision_context`, `list_decision_contexts`
81
- - Enhanced `get` action with `include_context` parameter
82
-
83
- #### Documentation
84
- - `DECISION_CONTEXT.md` - Comprehensive guide for decision documentation
85
-
86
- ---
87
-
88
- ## [3.2.0] - 2025-10-18
89
-
90
- ### Added - Task Dependencies
91
-
92
- **Task dependency management with blocking relationships**
93
-
94
- #### Features
95
- - New table: `t_task_dependencies` - Track blocking relationships
96
- - Circular dependency detection
97
- - New actions: `add_dependency`, `remove_dependency`, `get_dependencies`
98
-
99
- ---
100
-
101
- ## [3.1.2] - 2025-10-18
102
-
103
- ### Fixed - Task Linking Validation
104
-
105
- **Fixed validation for task-decision-constraint-file links**
106
-
107
- ---
108
-
109
- ## [3.1.1] - 2025-10-18
110
-
111
- ### Fixed - File Watcher Initialization
112
-
113
- **Fixed file watcher startup sequence and error handling**
114
-
115
- ---
116
-
117
- ## [3.0.2] - 2025-10-17
118
-
119
- ### Fixed - Task State Machine
120
-
121
- **Enhanced task status transition validation**
122
-
123
- #### Changes
124
- - Fixed state machine transitions for task lifecycle
125
- - Improved validation for blocked/unblocked transitions
126
-
127
- ---
128
-
129
- ## [3.0.1] - 2025-10-17
130
-
131
- ### Fixed - Task Timestamps
132
-
133
- **Fixed task timestamp updates on status changes**
134
-
135
- ---
136
-
137
- ## [3.0.0] - 2025-10-17
138
-
139
- ### Added - Kanban Task Watcher
140
-
141
- **AI-optimized task management with auto-stale detection**
142
-
143
- #### Features
144
- - Task management with metadata: status, priority, assignee, tags, layer
145
- - Auto-stale detection: `in_progress` >2h → `waiting_review`, `waiting_review` >24h `todo`
146
- - File watching with `chokidar`: auto-transition `todo` → `in_progress` on file edit
147
- - Link tasks to decisions, constraints, files
148
- - 70% token reduction vs decision tool (~100 bytes/task vs ~332 bytes/decision)
149
- - Flat hierarchy (no subtasks) for AI simplicity
150
-
151
- #### Database Schema
152
- - New tables: `t_tasks`, `t_task_details`, `t_task_tags`, `t_task_decision_links`, `t_task_constraint_links`, `t_task_file_links`
153
- - New triggers: `trg_log_task_create`, `trg_log_task_status_change`, `trg_update_task_timestamp`
154
-
155
- #### MCP Actions (task tool)
156
- - `create`, `update`, `get`, `list`, `move`, `link`, `archive`, `create_batch`
157
- - `watch_files` - Start file watching for auto-transitions
158
-
159
- #### Documentation
160
- - `TASK_OVERVIEW.md` - Lifecycle, status transitions
161
- - `TASK_ACTIONS.md` - All action references with examples
162
- - `TASK_LINKING.md` - Link tasks to decisions/constraints/files
163
- - `TASK_MIGRATION.md` - Migrate from decision-based tracking
164
-
165
- ---
166
-
167
- ## [2.1.4] - 2025-10-15
168
-
169
- ### Fixed - Action Validation
170
-
171
- **Enhanced parameter validation for all MCP actions**
172
-
173
- ---
174
-
175
- ## [2.1.3] - 2025-10-15
176
-
177
- ### Fixed - Message Priority Handling
178
-
179
- **Fixed message priority enum conversion**
180
-
181
- ---
182
-
183
- ## [2.1.2] - 2025-10-15
184
-
185
- ### Fixed - File Change Tracking
186
-
187
- **Fixed file change timestamp handling**
188
-
189
- ---
190
-
191
- ## [2.1.1] - 2025-10-15
192
-
193
- ### Fixed - Constraint Deactivation
194
-
195
- **Fixed constraint soft delete logic**
196
-
197
- ---
198
-
199
- ## [2.1.0] - 2025-10-14
200
-
201
- ### Added - Template System
202
-
203
- **Decision and batch operation templates**
204
-
205
- #### Features
206
- - New actions: `set_from_template`, `create_template`, `list_templates`
207
- - Template-based decision creation
208
- - Batch operation support with `set_batch`, `send_batch`, `record_batch`
209
-
210
- ---
211
-
212
- ## [2.0.0] - 2025-10-11
213
-
214
- ### Changed - Action-Based Tool Consolidation
215
-
216
- **96% token reduction through action-based API**
217
-
218
- #### Breaking Changes
219
- - 20 tools → 6 tools (action-based routing)
220
- - All tools use `action` parameter for routing
221
- - Tool names changed: `context``decision`, `utils` `stats`
222
-
223
- #### Token Efficiency
224
- - Tool definitions: 12,848 → 481 tokens (96% reduction)
225
- - MCP context: ~13,730 → ~4,482 tokens (67% reduction)
226
- - Help actions provide on-demand documentation
227
-
228
- #### New Tool Structure
229
- - `decision` - Context Management (9 actions)
230
- - `message` - Agent Messaging (4 actions)
231
- - `file` - File Change Tracking (4 actions)
232
- - `constraint` - Constraint Management (4 actions)
233
- - `stats` - Statistics & Utilities (4 actions)
234
- - `config` - Configuration (3 actions)
235
-
236
- ---
237
-
238
- ## [1.1.2] - 2025-10-11
239
-
240
- ### Fixed - Database Migration
241
-
242
- **Fixed v1.2.0 → v1.3.0 table prefix migration**
243
-
244
- ---
245
-
246
- ## [1.1.1] - 2025-10-11
247
-
248
- ### Fixed - Auto-Cleanup
249
-
250
- **Fixed weekend-aware cleanup trigger timing**
251
-
252
- ---
253
-
254
- ## [1.1.0] - 2025-10-11
255
-
256
- ### Added - Weekend-Aware Auto-Deletion
257
-
258
- **Configurable retention with weekend-aware logic**
259
-
260
- #### Features
261
- - Configuration keys: `autodelete_ignore_weekend`, `autodelete_message_hours`, `autodelete_file_history_days`
262
- - CLI arguments for startup override
263
- - Manual cleanup via `clear_old_data` action
264
-
265
- ---
266
-
267
- ## [1.0.1] - 2025-10-11
268
-
269
- ### Fixed - Schema Initialization
270
-
271
- **Fixed initial database schema creation**
272
-
273
- ---
274
-
275
- ## [1.0.0] - 2025-01-10
276
-
277
- ### Added - Initial Release
278
-
279
- **MCP Shared Context Server for efficient context sharing**
280
-
281
- #### Core Features
282
- - Decision tracking with metadata (tags, layers, scopes, versions)
283
- - Agent messaging with priority levels
284
- - File change tracking with layer integration
285
- - Constraint management with priorities
286
- - Statistics and utilities
287
- - SQLite-based persistence with better-sqlite3
288
-
289
- #### Database Schema
290
- - Master tables: agents, files, context_keys, layers, tags, scopes, etc.
291
- - Transaction tables: decisions, messages, file_changes, constraints
292
- - Views for token-efficient queries
293
- - Automatic version history tracking
294
-
295
- #### MCP Tools
296
- Initial implementation with 20 separate tools (consolidated to 6 in v2.0.0)
1
+ # Changelog Archive (v3.4.1 and older)
2
+
3
+ This archive contains changelog entries for sqlew versions **v3.4.1 and older**.
4
+
5
+ For current changelog, see: [../../CHANGELOG.md](../../CHANGELOG.md)
6
+
7
+ ---
8
+
9
+ ## [3.4.1] - 2025-10-22
10
+
11
+ ### Fixed - File Watcher Immediate Detection
12
+
13
+ **Fixed chokidar configuration for instant file change detection**
14
+
15
+ #### Changes
16
+ - Removed 5-second aggregation delay
17
+ - Added `awaitWriteFinish` for write completion detection
18
+ - Immediate auto-transition on file save
19
+
20
+ ---
21
+
22
+ ## [3.4.0] - 2025-10-22
23
+
24
+ ### Added - VCS-Aware File Watching
25
+
26
+ **Automatic task transitions based on Git commit detection**
27
+
28
+ #### Features
29
+ - Auto-transition: `waiting_review` → `done` when watched files committed
30
+ - Multi-VCS support: Git, Mercurial, SVN
31
+ - VCS adapter pattern with pluggable implementations
32
+ - Whitelist exemption: Skip auto-transition for critical files (package.json, migrations)
33
+ - Configuration: `git_auto_complete_tasks`, `git_require_all_files_committed`, `git_file_whitelist`
34
+
35
+ #### Database Schema
36
+ - New table: `m_git_file_whitelist` - Exempt files from auto-completion
37
+
38
+ ---
39
+
40
+ ## [3.2.6] - 2025-10-21
41
+
42
+ ### Fixed - File Watcher Test Stability
43
+
44
+ **Improved debouncing and async handling in file watcher tests**
45
+
46
+ ---
47
+
48
+ ## [3.2.5] - 2025-10-21
49
+
50
+ ### Fixed - File Watcher Error Handling
51
+
52
+ **Enhanced error handling and logging for file watcher operations**
53
+
54
+ ---
55
+
56
+ ## [3.2.4] - 2025-10-20
57
+
58
+ ### Fixed - File Watcher Path Resolution
59
+
60
+ **Fixed absolute path resolution for file watching**
61
+
62
+ ---
63
+
64
+ ## [3.2.3] - 2025-10-20 [DEPRECATED]
65
+
66
+ ### Changed - File Watcher Implementation (Deprecated)
67
+
68
+ This version was replaced by v3.2.4. Use v3.2.4 or later.
69
+
70
+ ---
71
+
72
+ ## [3.2.2] - 2025-10-18
73
+
74
+ ### Added - Decision Context
75
+
76
+ **Rich decision documentation with rationale, alternatives, tradeoffs**
77
+
78
+ #### Features
79
+ - New table: `t_decision_context` - Attach context to decisions
80
+ - New actions: `add_decision_context`, `list_decision_contexts`
81
+ - Enhanced `get` action with `include_context` parameter
82
+
83
+ #### Documentation
84
+
85
+ ---
86
+
87
+ ## [3.2.0] - 2025-10-18
88
+
89
+ ### Added - Task Dependencies
90
+
91
+ **Task dependency management with blocking relationships**
92
+
93
+ #### Features
94
+ - New table: `t_task_dependencies` - Track blocking relationships
95
+ - Circular dependency detection
96
+ - New actions: `add_dependency`, `remove_dependency`, `get_dependencies`
97
+
98
+ ---
99
+
100
+ ## [3.1.2] - 2025-10-18
101
+
102
+ ### Fixed - Task Linking Validation
103
+
104
+ **Fixed validation for task-decision-constraint-file links**
105
+
106
+ ---
107
+
108
+ ## [3.1.1] - 2025-10-18
109
+
110
+ ### Fixed - File Watcher Initialization
111
+
112
+ **Fixed file watcher startup sequence and error handling**
113
+
114
+ ---
115
+
116
+ ## [3.0.2] - 2025-10-17
117
+
118
+ ### Fixed - Task State Machine
119
+
120
+ **Enhanced task status transition validation**
121
+
122
+ #### Changes
123
+ - Fixed state machine transitions for task lifecycle
124
+ - Improved validation for blocked/unblocked transitions
125
+
126
+ ---
127
+
128
+ ## [3.0.1] - 2025-10-17
129
+
130
+ ### Fixed - Task Timestamps
131
+
132
+ **Fixed task timestamp updates on status changes**
133
+
134
+ ---
135
+
136
+ ## [3.0.0] - 2025-10-17
137
+
138
+ ### Added - Kanban Task Watcher
139
+
140
+ **AI-optimized task management with auto-stale detection**
141
+
142
+ #### Features
143
+ - Task management with metadata: status, priority, assignee, tags, layer
144
+ - Auto-stale detection: `in_progress` >2h `waiting_review`, `waiting_review` >24h → `todo`
145
+ - File watching with `chokidar`: auto-transition `todo` → `in_progress` on file edit
146
+ - Link tasks to decisions, constraints, files
147
+ - 70% token reduction vs decision tool (~100 bytes/task vs ~332 bytes/decision)
148
+ - Flat hierarchy (no subtasks) for AI simplicity
149
+
150
+ #### Database Schema
151
+ - New tables: `t_tasks`, `t_task_details`, `t_task_tags`, `t_task_decision_links`, `t_task_constraint_links`, `t_task_file_links`
152
+ - New triggers: `trg_log_task_create`, `trg_log_task_status_change`, `trg_update_task_timestamp`
153
+
154
+ #### MCP Actions (task tool)
155
+ - `create`, `update`, `get`, `list`, `move`, `link`, `archive`, `create_batch`
156
+ - `watch_files` - Start file watching for auto-transitions
157
+
158
+ #### Documentation
159
+ - `TASK_LINKING.md` - Link tasks to decisions/constraints/files
160
+ - `TASK_MIGRATION.md` - Migrate from decision-based tracking
161
+
162
+ ---
163
+
164
+ ## [2.1.4] - 2025-10-15
165
+
166
+ ### Fixed - Action Validation
167
+
168
+ **Enhanced parameter validation for all MCP actions**
169
+
170
+ ---
171
+
172
+ ## [2.1.3] - 2025-10-15
173
+
174
+ ### Fixed - Message Priority Handling
175
+
176
+ **Fixed message priority enum conversion**
177
+
178
+ ---
179
+
180
+ ## [2.1.2] - 2025-10-15
181
+
182
+ ### Fixed - File Change Tracking
183
+
184
+ **Fixed file change timestamp handling**
185
+
186
+ ---
187
+
188
+ ## [2.1.1] - 2025-10-15
189
+
190
+ ### Fixed - Constraint Deactivation
191
+
192
+ **Fixed constraint soft delete logic**
193
+
194
+ ---
195
+
196
+ ## [2.1.0] - 2025-10-14
197
+
198
+ ### Added - Template System
199
+
200
+ **Decision and batch operation templates**
201
+
202
+ #### Features
203
+ - New actions: `set_from_template`, `create_template`, `list_templates`
204
+ - Template-based decision creation
205
+ - Batch operation support with `set_batch`, `send_batch`, `record_batch`
206
+
207
+ ---
208
+
209
+ ## [2.0.0] - 2025-10-11
210
+
211
+ ### Changed - Action-Based Tool Consolidation
212
+
213
+ **96% token reduction through action-based API**
214
+
215
+ #### Breaking Changes
216
+ - 20 tools 6 tools (action-based routing)
217
+ - All tools use `action` parameter for routing
218
+ - Tool names changed: `context` → `decision`, `utils` → `stats`
219
+
220
+ #### Token Efficiency
221
+ - Tool definitions: 12,848481 tokens (96% reduction)
222
+ - MCP context: ~13,730 → ~4,482 tokens (67% reduction)
223
+ - Help actions provide on-demand documentation
224
+
225
+ #### New Tool Structure
226
+ - `decision` - Context Management (9 actions)
227
+ - `message` - Agent Messaging (4 actions)
228
+ - `file` - File Change Tracking (4 actions)
229
+ - `constraint` - Constraint Management (4 actions)
230
+ - `stats` - Statistics & Utilities (4 actions)
231
+ - `config` - Configuration (3 actions)
232
+
233
+ ---
234
+
235
+ ## [1.1.2] - 2025-10-11
236
+
237
+ ### Fixed - Database Migration
238
+
239
+ **Fixed v1.2.0 → v1.3.0 table prefix migration**
240
+
241
+ ---
242
+
243
+ ## [1.1.1] - 2025-10-11
244
+
245
+ ### Fixed - Auto-Cleanup
246
+
247
+ **Fixed weekend-aware cleanup trigger timing**
248
+
249
+ ---
250
+
251
+ ## [1.1.0] - 2025-10-11
252
+
253
+ ### Added - Weekend-Aware Auto-Deletion
254
+
255
+ **Configurable retention with weekend-aware logic**
256
+
257
+ #### Features
258
+ - Configuration keys: `autodelete_ignore_weekend`, `autodelete_message_hours`, `autodelete_file_history_days`
259
+ - CLI arguments for startup override
260
+ - Manual cleanup via `clear_old_data` action
261
+
262
+ ---
263
+
264
+ ## [1.0.1] - 2025-10-11
265
+
266
+ ### Fixed - Schema Initialization
267
+
268
+ **Fixed initial database schema creation**
269
+
270
+ ---
271
+
272
+ ## [1.0.0] - 2025-01-10
273
+
274
+ ### Added - Initial Release
275
+
276
+ **MCP Shared Context Server for efficient context sharing**
277
+
278
+ #### Core Features
279
+ - Decision tracking with metadata (tags, layers, scopes, versions)
280
+ - Agent messaging with priority levels
281
+ - File change tracking with layer integration
282
+ - Constraint management with priorities
283
+ - Statistics and utilities
284
+ - SQLite-based persistence with better-sqlite3
285
+
286
+ #### Database Schema
287
+ - Master tables: agents, files, context_keys, layers, tags, scopes, etc.
288
+ - Transaction tables: decisions, messages, file_changes, constraints
289
+ - Views for token-efficient queries
290
+ - Automatic version history tracking
291
+
292
+ #### MCP Tools
293
+ Initial implementation with 20 separate tools (consolidated to 6 in v2.0.0)