sqlew 3.6.0 → 3.6.2

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 (242) hide show
  1. package/CHANGELOG.md +403 -376
  2. package/assets/config.example.toml +9 -0
  3. package/dist/config/types.d.ts +2 -0
  4. package/dist/config/types.d.ts.map +1 -1
  5. package/dist/config/types.js.map +1 -1
  6. package/dist/database.d.ts +14 -1
  7. package/dist/database.d.ts.map +1 -1
  8. package/dist/database.js +128 -5
  9. package/dist/database.js.map +1 -1
  10. package/dist/index.js +136 -82
  11. package/dist/index.js.map +1 -1
  12. package/dist/knexfile.d.ts.map +1 -1
  13. package/dist/knexfile.js +15 -3
  14. package/dist/knexfile.js.map +1 -1
  15. package/dist/migrations/knex/bootstrap/20251025020452_create_master_tables.d.ts.map +1 -0
  16. package/dist/migrations/knex/{20251025020452_create_master_tables.js → bootstrap/20251025020452_create_master_tables.js} +15 -12
  17. package/dist/migrations/knex/bootstrap/20251025020452_create_master_tables.js.map +1 -0
  18. package/dist/migrations/knex/bootstrap/20251025021152_create_transaction_tables.d.ts.map +1 -0
  19. package/dist/migrations/knex/{20251025021152_create_transaction_tables.js → bootstrap/20251025021152_create_transaction_tables.js} +19 -19
  20. package/dist/migrations/knex/bootstrap/20251025021152_create_transaction_tables.js.map +1 -0
  21. package/dist/migrations/knex/bootstrap/20251025021351_create_indexes.d.ts.map +1 -0
  22. package/dist/migrations/knex/bootstrap/20251025021351_create_indexes.js +93 -0
  23. package/dist/migrations/knex/bootstrap/20251025021351_create_indexes.js.map +1 -0
  24. package/dist/migrations/knex/bootstrap/20251025021416_seed_master_data.d.ts.map +1 -0
  25. package/dist/migrations/knex/bootstrap/20251025021416_seed_master_data.js +64 -0
  26. package/dist/migrations/knex/bootstrap/20251025021416_seed_master_data.js.map +1 -0
  27. package/dist/migrations/knex/bootstrap/20251025070349_create_views.d.ts.map +1 -0
  28. package/dist/migrations/knex/bootstrap/20251025070349_create_views.js.map +1 -0
  29. package/dist/migrations/knex/enhancements/20251025081221_add_link_type_to_task_decision_links.d.ts.map +1 -0
  30. package/dist/migrations/knex/enhancements/20251025081221_add_link_type_to_task_decision_links.js.map +1 -0
  31. package/dist/migrations/knex/enhancements/20251025082220_fix_task_dependencies_columns.d.ts.map +1 -0
  32. package/dist/migrations/knex/enhancements/20251025082220_fix_task_dependencies_columns.js.map +1 -0
  33. package/dist/migrations/knex/enhancements/20251025090000_create_help_system_tables.d.ts.map +1 -0
  34. package/dist/migrations/knex/enhancements/20251025090000_create_help_system_tables.js.map +1 -0
  35. package/dist/migrations/knex/enhancements/20251025090100_seed_help_categories_and_use_cases.d.ts.map +1 -0
  36. package/dist/migrations/knex/enhancements/20251025090100_seed_help_categories_and_use_cases.js.map +1 -0
  37. package/dist/migrations/knex/enhancements/20251025100000_seed_help_metadata.d.ts.map +1 -0
  38. package/dist/migrations/knex/enhancements/20251025100000_seed_help_metadata.js.map +1 -0
  39. package/dist/migrations/knex/enhancements/20251025100100_seed_remaining_use_cases.d.ts.map +1 -0
  40. package/dist/migrations/knex/enhancements/20251025100100_seed_remaining_use_cases.js.map +1 -0
  41. package/dist/migrations/knex/enhancements/20251025120000_add_cascade_to_task_dependencies.d.ts.map +1 -0
  42. package/dist/migrations/knex/enhancements/20251025120000_add_cascade_to_task_dependencies.js.map +1 -0
  43. package/dist/migrations/knex/enhancements/20251027000000_add_agent_reuse_system.d.ts +14 -0
  44. package/dist/migrations/knex/enhancements/20251027000000_add_agent_reuse_system.d.ts.map +1 -0
  45. package/dist/migrations/knex/enhancements/20251027000000_add_agent_reuse_system.js +34 -0
  46. package/dist/migrations/knex/enhancements/20251027000000_add_agent_reuse_system.js.map +1 -0
  47. package/dist/migrations/knex/enhancements/20251027010000_add_task_constraint_to_decision_context.d.ts +4 -0
  48. package/dist/migrations/knex/enhancements/20251027010000_add_task_constraint_to_decision_context.d.ts.map +1 -0
  49. package/dist/migrations/knex/enhancements/20251027010000_add_task_constraint_to_decision_context.js +24 -0
  50. package/dist/migrations/knex/enhancements/20251027010000_add_task_constraint_to_decision_context.js.map +1 -0
  51. package/dist/migrations/knex/enhancements/20251027020000_update_agent_reusability.d.ts +16 -0
  52. package/dist/migrations/knex/enhancements/20251027020000_update_agent_reusability.d.ts.map +1 -0
  53. package/dist/migrations/knex/enhancements/20251027020000_update_agent_reusability.js +27 -0
  54. package/dist/migrations/knex/enhancements/20251027020000_update_agent_reusability.js.map +1 -0
  55. package/dist/migrations/knex/upgrades/20251024010000_upgrade_v1_0_to_v1_1.d.ts +13 -0
  56. package/dist/migrations/knex/upgrades/20251024010000_upgrade_v1_0_to_v1_1.d.ts.map +1 -0
  57. package/dist/migrations/knex/upgrades/20251024010000_upgrade_v1_0_to_v1_1.js +70 -0
  58. package/dist/migrations/knex/upgrades/20251024010000_upgrade_v1_0_to_v1_1.js.map +1 -0
  59. package/dist/migrations/knex/upgrades/20251024020000_upgrade_v2_0_to_v2_1.d.ts +11 -0
  60. package/dist/migrations/knex/upgrades/20251024020000_upgrade_v2_0_to_v2_1.d.ts.map +1 -0
  61. package/dist/migrations/knex/upgrades/20251024020000_upgrade_v2_0_to_v2_1.js +36 -0
  62. package/dist/migrations/knex/upgrades/20251024020000_upgrade_v2_0_to_v2_1.js.map +1 -0
  63. package/dist/migrations/knex/upgrades/20251024030000_upgrade_v2_1_to_v3_0.d.ts +14 -0
  64. package/dist/migrations/knex/upgrades/20251024030000_upgrade_v2_1_to_v3_0.d.ts.map +1 -0
  65. package/dist/migrations/knex/upgrades/20251024030000_upgrade_v2_1_to_v3_0.js +84 -0
  66. package/dist/migrations/knex/upgrades/20251024030000_upgrade_v2_1_to_v3_0.js.map +1 -0
  67. package/dist/migrations/knex/upgrades/20251024040000_upgrade_v3_0_to_v3_2.d.ts +9 -0
  68. package/dist/migrations/knex/upgrades/20251024040000_upgrade_v3_0_to_v3_2.d.ts.map +1 -0
  69. package/dist/migrations/knex/upgrades/20251024040000_upgrade_v3_0_to_v3_2.js +37 -0
  70. package/dist/migrations/knex/upgrades/20251024040000_upgrade_v3_0_to_v3_2.js.map +1 -0
  71. package/dist/migrations/knex/upgrades/20251024050000_upgrade_v3_2_0_to_v3_2_2.d.ts +9 -0
  72. package/dist/migrations/knex/upgrades/20251024050000_upgrade_v3_2_0_to_v3_2_2.d.ts.map +1 -0
  73. package/dist/migrations/knex/upgrades/20251024050000_upgrade_v3_2_0_to_v3_2_2.js +41 -0
  74. package/dist/migrations/knex/upgrades/20251024050000_upgrade_v3_2_0_to_v3_2_2.js.map +1 -0
  75. package/dist/migrations/knex/upgrades/20251024060000_upgrade_v3_4_to_v3_5.d.ts +9 -0
  76. package/dist/migrations/knex/upgrades/20251024060000_upgrade_v3_4_to_v3_5.d.ts.map +1 -0
  77. package/dist/migrations/knex/upgrades/20251024060000_upgrade_v3_4_to_v3_5.js +36 -0
  78. package/dist/migrations/knex/upgrades/20251024060000_upgrade_v3_4_to_v3_5.js.map +1 -0
  79. package/dist/migrations/knex/upgrades/20251024070000_upgrade_v3_5_to_v3_6.d.ts +10 -0
  80. package/dist/migrations/knex/upgrades/20251024070000_upgrade_v3_5_to_v3_6.d.ts.map +1 -0
  81. package/dist/migrations/knex/upgrades/20251024070000_upgrade_v3_5_to_v3_6.js +28 -0
  82. package/dist/migrations/knex/upgrades/20251024070000_upgrade_v3_5_to_v3_6.js.map +1 -0
  83. package/dist/tests/agent-reuse.test.d.ts +6 -0
  84. package/dist/tests/agent-reuse.test.d.ts.map +1 -0
  85. package/dist/tests/agent-reuse.test.js +242 -0
  86. package/dist/tests/agent-reuse.test.js.map +1 -0
  87. package/dist/tests/all-features.test.d.ts +7 -0
  88. package/dist/tests/all-features.test.d.ts.map +1 -0
  89. package/dist/tests/all-features.test.js +514 -0
  90. package/dist/tests/all-features.test.js.map +1 -0
  91. package/dist/tests/migrations/test-all-versions-real.d.ts +8 -0
  92. package/dist/tests/migrations/test-all-versions-real.d.ts.map +1 -0
  93. package/dist/tests/migrations/test-all-versions-real.js +234 -0
  94. package/dist/tests/migrations/test-all-versions-real.js.map +1 -0
  95. package/dist/tests/migrations/test-all-versions.d.ts +14 -0
  96. package/dist/tests/migrations/test-all-versions.d.ts.map +1 -0
  97. package/dist/tests/migrations/test-all-versions.js +521 -0
  98. package/dist/tests/migrations/test-all-versions.js.map +1 -0
  99. package/dist/tools/constraints.d.ts.map +1 -1
  100. package/dist/tools/constraints.js +11 -7
  101. package/dist/tools/constraints.js.map +1 -1
  102. package/dist/tools/context.d.ts.map +1 -1
  103. package/dist/tools/context.js +73 -16
  104. package/dist/tools/context.js.map +1 -1
  105. package/dist/tools/messaging.d.ts.map +1 -1
  106. package/dist/tools/messaging.js +23 -1
  107. package/dist/tools/messaging.js.map +1 -1
  108. package/dist/tools/tasks.d.ts.map +1 -1
  109. package/dist/tools/tasks.js +8 -5
  110. package/dist/tools/tasks.js.map +1 -1
  111. package/dist/tools/utils.d.ts.map +1 -1
  112. package/dist/tools/utils.js +4 -1
  113. package/dist/tools/utils.js.map +1 -1
  114. package/dist/types.d.ts +1 -0
  115. package/dist/types.d.ts.map +1 -1
  116. package/dist/utils/cleanup.d.ts +3 -1
  117. package/dist/utils/cleanup.d.ts.map +1 -1
  118. package/dist/utils/cleanup.js +6 -3
  119. package/dist/utils/cleanup.js.map +1 -1
  120. package/dist/utils/debug-logger.d.ts +57 -2
  121. package/dist/utils/debug-logger.d.ts.map +1 -1
  122. package/dist/utils/debug-logger.js +155 -4
  123. package/dist/utils/debug-logger.js.map +1 -1
  124. package/dist/utils/error-handler.d.ts +28 -0
  125. package/dist/utils/error-handler.d.ts.map +1 -0
  126. package/dist/utils/error-handler.js +121 -0
  127. package/dist/utils/error-handler.js.map +1 -0
  128. package/dist/utils/help-tracking.d.ts +3 -3
  129. package/dist/utils/help-tracking.d.ts.map +1 -1
  130. package/dist/utils/help-tracking.js.map +1 -1
  131. package/dist/utils/param-parser.d.ts +23 -0
  132. package/dist/utils/param-parser.d.ts.map +1 -0
  133. package/dist/utils/param-parser.js +52 -0
  134. package/dist/utils/param-parser.js.map +1 -0
  135. package/dist/utils/retention.d.ts +10 -0
  136. package/dist/utils/retention.d.ts.map +1 -1
  137. package/dist/utils/retention.js +19 -0
  138. package/dist/utils/retention.js.map +1 -1
  139. package/docs/MIGRATION_CHAIN.md +293 -280
  140. package/package.json +85 -81
  141. package/dist/migrations/add-decision-context.d.ts +0 -28
  142. package/dist/migrations/add-decision-context.d.ts.map +0 -1
  143. package/dist/migrations/add-decision-context.js +0 -125
  144. package/dist/migrations/add-decision-context.js.map +0 -1
  145. package/dist/migrations/add-help-system-tables.d.ts +0 -35
  146. package/dist/migrations/add-help-system-tables.d.ts.map +0 -1
  147. package/dist/migrations/add-help-system-tables.js +0 -206
  148. package/dist/migrations/add-help-system-tables.js.map +0 -1
  149. package/dist/migrations/add-table-prefixes.d.ts +0 -29
  150. package/dist/migrations/add-table-prefixes.d.ts.map +0 -1
  151. package/dist/migrations/add-table-prefixes.js +0 -150
  152. package/dist/migrations/add-table-prefixes.js.map +0 -1
  153. package/dist/migrations/add-task-dependencies.d.ts +0 -26
  154. package/dist/migrations/add-task-dependencies.d.ts.map +0 -1
  155. package/dist/migrations/add-task-dependencies.js +0 -94
  156. package/dist/migrations/add-task-dependencies.js.map +0 -1
  157. package/dist/migrations/add-task-tables.d.ts +0 -47
  158. package/dist/migrations/add-task-tables.d.ts.map +0 -1
  159. package/dist/migrations/add-task-tables.js +0 -285
  160. package/dist/migrations/add-task-tables.js.map +0 -1
  161. package/dist/migrations/add-token-tracking.d.ts +0 -28
  162. package/dist/migrations/add-token-tracking.d.ts.map +0 -1
  163. package/dist/migrations/add-token-tracking.js +0 -108
  164. package/dist/migrations/add-token-tracking.js.map +0 -1
  165. package/dist/migrations/add-v2.1.0-features.d.ts +0 -29
  166. package/dist/migrations/add-v2.1.0-features.d.ts.map +0 -1
  167. package/dist/migrations/add-v2.1.0-features.js +0 -198
  168. package/dist/migrations/add-v2.1.0-features.js.map +0 -1
  169. package/dist/migrations/add-v3.5.0-pruned-files.d.ts +0 -26
  170. package/dist/migrations/add-v3.5.0-pruned-files.d.ts.map +0 -1
  171. package/dist/migrations/add-v3.5.0-pruned-files.js +0 -107
  172. package/dist/migrations/add-v3.5.0-pruned-files.js.map +0 -1
  173. package/dist/migrations/index.d.ts +0 -112
  174. package/dist/migrations/index.d.ts.map +0 -1
  175. package/dist/migrations/index.js +0 -411
  176. package/dist/migrations/index.js.map +0 -1
  177. package/dist/migrations/knex/20251025020452_create_master_tables.d.ts.map +0 -1
  178. package/dist/migrations/knex/20251025020452_create_master_tables.js.map +0 -1
  179. package/dist/migrations/knex/20251025021152_create_transaction_tables.d.ts.map +0 -1
  180. package/dist/migrations/knex/20251025021152_create_transaction_tables.js.map +0 -1
  181. package/dist/migrations/knex/20251025021351_create_indexes.d.ts.map +0 -1
  182. package/dist/migrations/knex/20251025021351_create_indexes.js +0 -62
  183. package/dist/migrations/knex/20251025021351_create_indexes.js.map +0 -1
  184. package/dist/migrations/knex/20251025021416_seed_master_data.d.ts.map +0 -1
  185. package/dist/migrations/knex/20251025021416_seed_master_data.js +0 -58
  186. package/dist/migrations/knex/20251025021416_seed_master_data.js.map +0 -1
  187. package/dist/migrations/knex/20251025070349_create_views.d.ts.map +0 -1
  188. package/dist/migrations/knex/20251025070349_create_views.js.map +0 -1
  189. package/dist/migrations/knex/20251025081221_add_link_type_to_task_decision_links.d.ts.map +0 -1
  190. package/dist/migrations/knex/20251025081221_add_link_type_to_task_decision_links.js.map +0 -1
  191. package/dist/migrations/knex/20251025082220_fix_task_dependencies_columns.d.ts.map +0 -1
  192. package/dist/migrations/knex/20251025082220_fix_task_dependencies_columns.js.map +0 -1
  193. package/dist/migrations/knex/20251025090000_create_help_system_tables.d.ts.map +0 -1
  194. package/dist/migrations/knex/20251025090000_create_help_system_tables.js.map +0 -1
  195. package/dist/migrations/knex/20251025090100_seed_help_categories_and_use_cases.d.ts.map +0 -1
  196. package/dist/migrations/knex/20251025090100_seed_help_categories_and_use_cases.js.map +0 -1
  197. package/dist/migrations/knex/20251025100000_seed_help_metadata.d.ts.map +0 -1
  198. package/dist/migrations/knex/20251025100000_seed_help_metadata.js.map +0 -1
  199. package/dist/migrations/knex/20251025100100_seed_remaining_use_cases.d.ts.map +0 -1
  200. package/dist/migrations/knex/20251025100100_seed_remaining_use_cases.js.map +0 -1
  201. package/dist/migrations/knex/20251025120000_add_cascade_to_task_dependencies.d.ts.map +0 -1
  202. package/dist/migrations/knex/20251025120000_add_cascade_to_task_dependencies.js.map +0 -1
  203. package/dist/migrations/migrate-decisions-to-tasks.d.ts +0 -61
  204. package/dist/migrations/migrate-decisions-to-tasks.d.ts.map +0 -1
  205. package/dist/migrations/migrate-decisions-to-tasks.js +0 -442
  206. package/dist/migrations/migrate-decisions-to-tasks.js.map +0 -1
  207. package/dist/migrations/seed-help-data.d.ts +0 -48
  208. package/dist/migrations/seed-help-data.d.ts.map +0 -1
  209. package/dist/migrations/seed-help-data.js +0 -1466
  210. package/dist/migrations/seed-help-data.js.map +0 -1
  211. package/dist/migrations/seed-tool-metadata.d.ts +0 -24
  212. package/dist/migrations/seed-tool-metadata.d.ts.map +0 -1
  213. package/dist/migrations/seed-tool-metadata.js +0 -392
  214. package/dist/migrations/seed-tool-metadata.js.map +0 -1
  215. package/dist/migrations/v3.6.0-help-system-refactor.d.ts +0 -46
  216. package/dist/migrations/v3.6.0-help-system-refactor.d.ts.map +0 -1
  217. package/dist/migrations/v3.6.0-help-system-refactor.js +0 -223
  218. package/dist/migrations/v3.6.0-help-system-refactor.js.map +0 -1
  219. package/dist/tests/migrations/test-v3.2-migration.d.ts +0 -6
  220. package/dist/tests/migrations/test-v3.2-migration.d.ts.map +0 -1
  221. package/dist/tests/migrations/test-v3.2-migration.js +0 -191
  222. package/dist/tests/migrations/test-v3.2-migration.js.map +0 -1
  223. /package/dist/migrations/knex/{20251025020452_create_master_tables.d.ts → bootstrap/20251025020452_create_master_tables.d.ts} +0 -0
  224. /package/dist/migrations/knex/{20251025021152_create_transaction_tables.d.ts → bootstrap/20251025021152_create_transaction_tables.d.ts} +0 -0
  225. /package/dist/migrations/knex/{20251025021351_create_indexes.d.ts → bootstrap/20251025021351_create_indexes.d.ts} +0 -0
  226. /package/dist/migrations/knex/{20251025021416_seed_master_data.d.ts → bootstrap/20251025021416_seed_master_data.d.ts} +0 -0
  227. /package/dist/migrations/knex/{20251025070349_create_views.d.ts → bootstrap/20251025070349_create_views.d.ts} +0 -0
  228. /package/dist/migrations/knex/{20251025070349_create_views.js → bootstrap/20251025070349_create_views.js} +0 -0
  229. /package/dist/migrations/knex/{20251025081221_add_link_type_to_task_decision_links.d.ts → enhancements/20251025081221_add_link_type_to_task_decision_links.d.ts} +0 -0
  230. /package/dist/migrations/knex/{20251025081221_add_link_type_to_task_decision_links.js → enhancements/20251025081221_add_link_type_to_task_decision_links.js} +0 -0
  231. /package/dist/migrations/knex/{20251025082220_fix_task_dependencies_columns.d.ts → enhancements/20251025082220_fix_task_dependencies_columns.d.ts} +0 -0
  232. /package/dist/migrations/knex/{20251025082220_fix_task_dependencies_columns.js → enhancements/20251025082220_fix_task_dependencies_columns.js} +0 -0
  233. /package/dist/migrations/knex/{20251025090000_create_help_system_tables.d.ts → enhancements/20251025090000_create_help_system_tables.d.ts} +0 -0
  234. /package/dist/migrations/knex/{20251025090000_create_help_system_tables.js → enhancements/20251025090000_create_help_system_tables.js} +0 -0
  235. /package/dist/migrations/knex/{20251025090100_seed_help_categories_and_use_cases.d.ts → enhancements/20251025090100_seed_help_categories_and_use_cases.d.ts} +0 -0
  236. /package/dist/migrations/knex/{20251025090100_seed_help_categories_and_use_cases.js → enhancements/20251025090100_seed_help_categories_and_use_cases.js} +0 -0
  237. /package/dist/migrations/knex/{20251025100000_seed_help_metadata.d.ts → enhancements/20251025100000_seed_help_metadata.d.ts} +0 -0
  238. /package/dist/migrations/knex/{20251025100000_seed_help_metadata.js → enhancements/20251025100000_seed_help_metadata.js} +0 -0
  239. /package/dist/migrations/knex/{20251025100100_seed_remaining_use_cases.d.ts → enhancements/20251025100100_seed_remaining_use_cases.d.ts} +0 -0
  240. /package/dist/migrations/knex/{20251025100100_seed_remaining_use_cases.js → enhancements/20251025100100_seed_remaining_use_cases.js} +0 -0
  241. /package/dist/migrations/knex/{20251025120000_add_cascade_to_task_dependencies.d.ts → enhancements/20251025120000_add_cascade_to_task_dependencies.d.ts} +0 -0
  242. /package/dist/migrations/knex/{20251025120000_add_cascade_to_task_dependencies.js → enhancements/20251025120000_add_cascade_to_task_dependencies.js} +0 -0
package/CHANGELOG.md CHANGED
@@ -1,376 +1,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.0] - 2025-10-25
9
-
10
- ### Added - Help System Optimization
11
-
12
- **Database-driven help system with 60-70% token efficiency improvement**
13
-
14
- #### Key Achievements
15
- - **60-70% Token Reduction** - Average help query: ~200 tokens (vs ~2,150 legacy)
16
- - **95.8% Schema Reduction** - MCP InputSchemas: 350 tokens (vs 8,400 legacy)
17
- - **6 New Help Actions** - Granular queries for actions, parameters, tools, use-cases
18
- - **41 Use-Cases** - Comprehensive workflow examples across 6 categories
19
- - **100% Test Coverage** - 38/38 tests passing
20
-
21
- #### New MCP Actions (stats tool)
22
- - `help_action` - Query single action with parameters and examples
23
- - `help_params` - Query parameter list for an action
24
- - `help_tool` - Query tool overview + all actions
25
- - `help_use_case` - Get single use-case with full workflow
26
- - `help_list_use_cases` - List/filter use-cases by category/complexity
27
- - `help_next_actions` - Suggest common next actions
28
-
29
- #### Database Schema
30
- 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`
31
-
32
- #### Migration from v3.5.x
33
- - Automatic migration on startup
34
- - Backward compatible - all existing MCP actions unchanged
35
- - Zero downtime
36
-
37
- ---
38
-
39
- ## [3.5.2] - 2025-10-24
40
-
41
- ### Added - Two-Step Git-Aware Task Workflow
42
-
43
- **Automatic task completion and archiving based on Git staging and committing**
44
-
45
- #### Features
46
- - **Step 1 - Staging** (`git add`): `waiting_review` → `done` (work complete)
47
- - **Step 2 - Committing** (`git commit`): `done` → `archived` (work finalized)
48
- - **VCS Support**: Git, Mercurial, and SVN
49
- - **Zero Token Cost**: Fully automated, no manual MCP calls needed
50
-
51
- #### Configuration
52
- - `git_auto_complete_on_stage` (default: `'1'`)
53
- - `git_auto_archive_on_commit` (default: `'1'`)
54
- - `require_all_files_staged` (default: `'1'`)
55
- - `require_all_files_committed_for_archive` (default: `'1'`)
56
-
57
- ---
58
-
59
- ## [3.5.1] - 2025-10-24
60
-
61
- ### Fixed - File Watcher WSL Compatibility
62
-
63
- **Upgraded chokidar from v3 to v4 + Fixed path normalization bug**
64
-
65
- #### Changes
66
- - **chokidar**: `^3.6.0` `^4.0.3` (automatic WSL support)
67
- - Fixed path normalization: chokidar reports absolute paths, database stores relative
68
- - Removed manual WSL detection and polling configuration
69
-
70
- ---
71
-
72
- ## [3.5.0] - 2025-10-22
73
-
74
- ### Added - Non-Existent File Auto-Pruning
75
-
76
- **Automatic removal of non-existent watched files with audit trail**
77
-
78
- #### Features
79
- - New table: `t_task_pruned_files` - Audit trail for pruned files
80
- - Auto-pruning during `in_progress waiting_review` transition
81
- - Safety check: blocks if ALL files non-existent
82
- - New MCP actions: `get_pruned_files`, `link_pruned_file`
83
-
84
- #### Documentation
85
- - `TASK_PRUNING.md` - Comprehensive guide with examples and best practices
86
-
87
- ---
88
-
89
- ## [3.4.1] - 2025-10-22
90
-
91
- ### Fixed - File Watcher Immediate Detection
92
-
93
- **Fixed chokidar configuration for instant file change detection**
94
-
95
- #### Changes
96
- - Removed 5-second aggregation delay
97
- - Added `awaitWriteFinish` for write completion detection
98
- - Immediate auto-transition on file save
99
-
100
- ---
101
-
102
- ## [3.4.0] - 2025-10-22
103
-
104
- ### Added - VCS-Aware File Watching
105
-
106
- **Automatic task transitions based on Git commit detection**
107
-
108
- #### Features
109
- - Auto-transition: `waiting_review` `done` when watched files committed
110
- - Multi-VCS support: Git, Mercurial, SVN
111
- - VCS adapter pattern with pluggable implementations
112
- - Whitelist exemption: Skip auto-transition for critical files (package.json, migrations)
113
- - Configuration: `git_auto_complete_tasks`, `git_require_all_files_committed`, `git_file_whitelist`
114
-
115
- #### Database Schema
116
- - New table: `m_git_file_whitelist` - Exempt files from auto-completion
117
-
118
- ---
119
-
120
- ## [3.2.6] - 2025-10-21
121
-
122
- ### Fixed - File Watcher Test Stability
123
-
124
- **Improved debouncing and async handling in file watcher tests**
125
-
126
- ---
127
-
128
- ## [3.2.5] - 2025-10-21
129
-
130
- ### Fixed - File Watcher Error Handling
131
-
132
- **Enhanced error handling and logging for file watcher operations**
133
-
134
- ---
135
-
136
- ## [3.2.4] - 2025-10-20
137
-
138
- ### Fixed - File Watcher Path Resolution
139
-
140
- **Fixed absolute path resolution for file watching**
141
-
142
- ---
143
-
144
- ## [3.2.3] - 2025-10-20 [DEPRECATED]
145
-
146
- ### Changed - File Watcher Implementation (Deprecated)
147
-
148
- This version was replaced by v3.2.4. Use v3.2.4 or later.
149
-
150
- ---
151
-
152
- ## [3.2.2] - 2025-10-18
153
-
154
- ### Added - Decision Context
155
-
156
- **Rich decision documentation with rationale, alternatives, tradeoffs**
157
-
158
- #### Features
159
- - New table: `t_decision_context` - Attach context to decisions
160
- - New actions: `add_decision_context`, `list_decision_contexts`
161
- - Enhanced `get` action with `include_context` parameter
162
-
163
- #### Documentation
164
- - `DECISION_CONTEXT.md` - Comprehensive guide for decision documentation
165
-
166
- ---
167
-
168
- ## [3.2.0] - 2025-10-18
169
-
170
- ### Added - Task Dependencies
171
-
172
- **Task dependency management with blocking relationships**
173
-
174
- #### Features
175
- - New table: `t_task_dependencies` - Track blocking relationships
176
- - Circular dependency detection
177
- - New actions: `add_dependency`, `remove_dependency`, `get_dependencies`
178
-
179
- ---
180
-
181
- ## [3.1.2] - 2025-10-18
182
-
183
- ### Fixed - Task Linking Validation
184
-
185
- **Fixed validation for task-decision-constraint-file links**
186
-
187
- ---
188
-
189
- ## [3.1.1] - 2025-10-18
190
-
191
- ### Fixed - File Watcher Initialization
192
-
193
- **Fixed file watcher startup sequence and error handling**
194
-
195
- ---
196
-
197
- ## [3.0.2] - 2025-10-17
198
-
199
- ### Fixed - Task State Machine
200
-
201
- **Enhanced task status transition validation**
202
-
203
- #### Changes
204
- - Fixed state machine transitions for task lifecycle
205
- - Improved validation for blocked/unblocked transitions
206
-
207
- ---
208
-
209
- ## [3.0.1] - 2025-10-17
210
-
211
- ### Fixed - Task Timestamps
212
-
213
- **Fixed task timestamp updates on status changes**
214
-
215
- ---
216
-
217
- ## [3.0.0] - 2025-10-17
218
-
219
- ### Added - Kanban Task Watcher
220
-
221
- **AI-optimized task management with auto-stale detection**
222
-
223
- #### Features
224
- - Task management with metadata: status, priority, assignee, tags, layer
225
- - Auto-stale detection: `in_progress` >2h → `waiting_review`, `waiting_review` >24h → `todo`
226
- - File watching with `chokidar`: auto-transition `todo` `in_progress` on file edit
227
- - Link tasks to decisions, constraints, files
228
- - 70% token reduction vs decision tool (~100 bytes/task vs ~332 bytes/decision)
229
- - Flat hierarchy (no subtasks) for AI simplicity
230
-
231
- #### Database Schema
232
- - New tables: `t_tasks`, `t_task_details`, `t_task_tags`, `t_task_decision_links`, `t_task_constraint_links`, `t_task_file_links`
233
- - New triggers: `trg_log_task_create`, `trg_log_task_status_change`, `trg_update_task_timestamp`
234
-
235
- #### MCP Actions (task tool)
236
- - `create`, `update`, `get`, `list`, `move`, `link`, `archive`, `batch_create`
237
- - `watch_files` - Start file watching for auto-transitions
238
-
239
- #### Documentation
240
- - `TASK_OVERVIEW.md` - Lifecycle, status transitions
241
- - `TASK_ACTIONS.md` - All action references with examples
242
- - `TASK_LINKING.md` - Link tasks to decisions/constraints/files
243
- - `TASK_MIGRATION.md` - Migrate from decision-based tracking
244
-
245
- ---
246
-
247
- ## [2.1.4] - 2025-10-15
248
-
249
- ### Fixed - Action Validation
250
-
251
- **Enhanced parameter validation for all MCP actions**
252
-
253
- ---
254
-
255
- ## [2.1.3] - 2025-10-15
256
-
257
- ### Fixed - Message Priority Handling
258
-
259
- **Fixed message priority enum conversion**
260
-
261
- ---
262
-
263
- ## [2.1.2] - 2025-10-15
264
-
265
- ### Fixed - File Change Tracking
266
-
267
- **Fixed file change timestamp handling**
268
-
269
- ---
270
-
271
- ## [2.1.1] - 2025-10-15
272
-
273
- ### Fixed - Constraint Deactivation
274
-
275
- **Fixed constraint soft delete logic**
276
-
277
- ---
278
-
279
- ## [2.1.0] - 2025-10-14
280
-
281
- ### Added - Template System
282
-
283
- **Decision and batch operation templates**
284
-
285
- #### Features
286
- - New actions: `set_from_template`, `create_template`, `list_templates`
287
- - Template-based decision creation
288
- - Batch operation support with `set_batch`, `send_batch`, `record_batch`
289
-
290
- ---
291
-
292
- ## [2.0.0] - 2025-10-11
293
-
294
- ### Changed - Action-Based Tool Consolidation
295
-
296
- **96% token reduction through action-based API**
297
-
298
- #### Breaking Changes
299
- - 20 tools → 6 tools (action-based routing)
300
- - All tools use `action` parameter for routing
301
- - Tool names changed: `context` → `decision`, `utils` → `stats`
302
-
303
- #### Token Efficiency
304
- - Tool definitions: 12,848 → 481 tokens (96% reduction)
305
- - MCP context: ~13,730 → ~4,482 tokens (67% reduction)
306
- - Help actions provide on-demand documentation
307
-
308
- #### New Tool Structure
309
- - `decision` - Context Management (9 actions)
310
- - `message` - Agent Messaging (4 actions)
311
- - `file` - File Change Tracking (4 actions)
312
- - `constraint` - Constraint Management (4 actions)
313
- - `stats` - Statistics & Utilities (4 actions)
314
- - `config` - Configuration (3 actions)
315
-
316
- ---
317
-
318
- ## [1.1.2] - 2025-10-11
319
-
320
- ### Fixed - Database Migration
321
-
322
- **Fixed v1.2.0 → v1.3.0 table prefix migration**
323
-
324
- ---
325
-
326
- ## [1.1.1] - 2025-10-11
327
-
328
- ### Fixed - Auto-Cleanup
329
-
330
- **Fixed weekend-aware cleanup trigger timing**
331
-
332
- ---
333
-
334
- ## [1.1.0] - 2025-10-11
335
-
336
- ### Added - Weekend-Aware Auto-Deletion
337
-
338
- **Configurable retention with weekend-aware logic**
339
-
340
- #### Features
341
- - Configuration keys: `autodelete_ignore_weekend`, `autodelete_message_hours`, `autodelete_file_history_days`
342
- - CLI arguments for startup override
343
- - Manual cleanup via `clear_old_data` action
344
-
345
- ---
346
-
347
- ## [1.0.1] - 2025-10-11
348
-
349
- ### Fixed - Schema Initialization
350
-
351
- **Fixed initial database schema creation**
352
-
353
- ---
354
-
355
- ## [1.0.0] - 2025-01-10
356
-
357
- ### Added - Initial Release
358
-
359
- **MCP Shared Context Server for efficient context sharing**
360
-
361
- #### Core Features
362
- - Decision tracking with metadata (tags, layers, scopes, versions)
363
- - Agent messaging with priority levels
364
- - File change tracking with layer integration
365
- - Constraint management with priorities
366
- - Statistics and utilities
367
- - SQLite-based persistence with better-sqlite3
368
-
369
- #### Database Schema
370
- - Master tables: agents, files, context_keys, layers, tags, scopes, etc.
371
- - Transaction tables: decisions, messages, file_changes, constraints
372
- - Views for token-efficient queries
373
- - Automatic version history tracking
374
-
375
- #### MCP Tools
376
- 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.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)