@specpow/framework 0.5.9 โ†’ 0.5.11

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 (164) hide show
  1. package/CHANGELOG.md +623 -623
  2. package/LICENSE +21 -21
  3. package/bin/specpow.js +9 -9
  4. package/dist/cli/index.d.ts.map +1 -1
  5. package/dist/cli/index.js +4 -2
  6. package/dist/cli/index.js.map +1 -1
  7. package/dist/commands/apply.d.ts.map +1 -1
  8. package/dist/commands/apply.js +12 -11
  9. package/dist/commands/apply.js.map +1 -1
  10. package/dist/commands/archive.d.ts.map +1 -1
  11. package/dist/commands/archive.js +30 -3
  12. package/dist/commands/archive.js.map +1 -1
  13. package/dist/commands/config.d.ts.map +1 -1
  14. package/dist/commands/config.js +5 -1
  15. package/dist/commands/config.js.map +1 -1
  16. package/dist/commands/doctor.d.ts.map +1 -1
  17. package/dist/commands/doctor.js +29 -10
  18. package/dist/commands/doctor.js.map +1 -1
  19. package/dist/commands/execute.d.ts.map +1 -1
  20. package/dist/commands/execute.js +5 -2
  21. package/dist/commands/execute.js.map +1 -1
  22. package/dist/commands/explore.d.ts.map +1 -1
  23. package/dist/commands/explore.js +8 -10
  24. package/dist/commands/explore.js.map +1 -1
  25. package/dist/commands/init.d.ts.map +1 -1
  26. package/dist/commands/init.js +6 -3
  27. package/dist/commands/init.js.map +1 -1
  28. package/dist/commands/propose.d.ts.map +1 -1
  29. package/dist/commands/propose.js +4 -3
  30. package/dist/commands/propose.js.map +1 -1
  31. package/dist/commands/schema.d.ts.map +1 -1
  32. package/dist/commands/schema.js +5 -2
  33. package/dist/commands/schema.js.map +1 -1
  34. package/dist/commands/status.d.ts.map +1 -1
  35. package/dist/commands/status.js +17 -11
  36. package/dist/commands/status.js.map +1 -1
  37. package/dist/commands/store.d.ts.map +1 -1
  38. package/dist/commands/store.js +8 -6
  39. package/dist/commands/store.js.map +1 -1
  40. package/dist/commands/update.d.ts.map +1 -1
  41. package/dist/commands/update.js +3 -1
  42. package/dist/commands/update.js.map +1 -1
  43. package/dist/commands/validate-specs.d.ts.map +1 -1
  44. package/dist/commands/validate-specs.js +8 -5
  45. package/dist/commands/validate-specs.js.map +1 -1
  46. package/dist/commands/verify.d.ts.map +1 -1
  47. package/dist/commands/verify.js +17 -19
  48. package/dist/commands/verify.js.map +1 -1
  49. package/dist/commands/workflow/index.d.ts.map +1 -1
  50. package/dist/commands/workflow/index.js +18 -10
  51. package/dist/commands/workflow/index.js.map +1 -1
  52. package/dist/core/archive/engine.d.ts.map +1 -1
  53. package/dist/core/archive/engine.js +10 -6
  54. package/dist/core/archive/engine.js.map +1 -1
  55. package/dist/core/artifact-graph/resolver.d.ts.map +1 -1
  56. package/dist/core/artifact-graph/resolver.js +5 -2
  57. package/dist/core/artifact-graph/resolver.js.map +1 -1
  58. package/dist/core/config/config-schema.d.ts +104 -0
  59. package/dist/core/config/config-schema.d.ts.map +1 -1
  60. package/dist/core/config/config-schema.js +15 -1
  61. package/dist/core/config/config-schema.js.map +1 -1
  62. package/dist/core/hooks/session-start-hook.d.ts.map +1 -1
  63. package/dist/core/hooks/session-start-hook.js +76 -45
  64. package/dist/core/hooks/session-start-hook.js.map +1 -1
  65. package/dist/core/hooks/workflow-state-hook.d.ts.map +1 -1
  66. package/dist/core/hooks/workflow-state-hook.js +3 -1
  67. package/dist/core/hooks/workflow-state-hook.js.map +1 -1
  68. package/dist/core/init/codegraph-step.d.ts +36 -0
  69. package/dist/core/init/codegraph-step.d.ts.map +1 -0
  70. package/dist/core/init/codegraph-step.js +109 -0
  71. package/dist/core/init/codegraph-step.js.map +1 -0
  72. package/dist/core/init/engine.d.ts +2 -2
  73. package/dist/core/init/engine.d.ts.map +1 -1
  74. package/dist/core/init/engine.js +28 -14
  75. package/dist/core/init/engine.js.map +1 -1
  76. package/dist/core/memory/adapters/sqlite-adapter.js +55 -55
  77. package/dist/core/migration/index.d.ts.map +1 -1
  78. package/dist/core/migration/index.js +128 -4
  79. package/dist/core/migration/index.js.map +1 -1
  80. package/dist/core/store/index.d.ts +4 -3
  81. package/dist/core/store/index.d.ts.map +1 -1
  82. package/dist/core/store/index.js +7 -7
  83. package/dist/core/store/index.js.map +1 -1
  84. package/dist/core/task-parser.d.ts +17 -0
  85. package/dist/core/task-parser.d.ts.map +1 -0
  86. package/dist/core/task-parser.js +59 -0
  87. package/dist/core/task-parser.js.map +1 -0
  88. package/dist/core/templates/index.d.ts +1 -1
  89. package/dist/core/templates/index.d.ts.map +1 -1
  90. package/dist/core/templates/index.js +11 -6
  91. package/dist/core/templates/index.js.map +1 -1
  92. package/dist/core/workflow-state.d.ts +1 -1
  93. package/dist/core/workflow-state.d.ts.map +1 -1
  94. package/dist/core/workflow-state.js +10 -5
  95. package/dist/core/workflow-state.js.map +1 -1
  96. package/dist/templates/claude-commands/specpow-apply.md +23 -23
  97. package/dist/templates/claude-commands/specpow-archive.md +22 -22
  98. package/dist/templates/claude-commands/specpow-propose.md +27 -27
  99. package/dist/templates/claude-commands/specpow-status.md +22 -22
  100. package/dist/templates/claude-commands/specpow-validate-specs.md +28 -28
  101. package/dist/templates/claude-commands/specpow-verify.md +21 -21
  102. package/dist/templates/claude-commands/specpow.md +34 -34
  103. package/package.json +121 -122
  104. package/.specpow/agents/controller/sdd-controller.md +0 -55
  105. package/.specpow/agents/execution/java-codegen-agent.md +0 -39
  106. package/.specpow/agents/execution/ui-codegen-agent.md +0 -32
  107. package/.specpow/agents/ops/deploy-agent.md +0 -181
  108. package/.specpow/agents/planning/db-designer-agent.md +0 -30
  109. package/.specpow/agents/planning/prd-agent.md +0 -31
  110. package/.specpow/agents/quality/review-agent.md +0 -36
  111. package/.specpow/agents/quality/test-agent.md +0 -33
  112. package/.specpow/hooks/hooks.json +0 -30
  113. package/.specpow/hooks/run-hook.cmd +0 -19
  114. package/.specpow/hooks/session-start +0 -62
  115. package/.specpow/hooks/workflow-state +0 -150
  116. package/.specpow/schemas/bug-fix/schema.yaml +0 -64
  117. package/.specpow/schemas/bug-fix/templates/analysis.md +0 -43
  118. package/.specpow/schemas/bug-fix/templates/fix-plan.md +0 -19
  119. package/.specpow/schemas/bug-fix/templates/proposal.md +0 -30
  120. package/.specpow/schemas/crud-module/schema.yaml +0 -65
  121. package/.specpow/schemas/crud-module/templates/design.md +0 -36
  122. package/.specpow/schemas/crud-module/templates/proposal.md +0 -30
  123. package/.specpow/schemas/crud-module/templates/spec.md +0 -38
  124. package/.specpow/schemas/crud-module/templates/tasks.md +0 -57
  125. package/.specpow/schemas/spec-driven/schema.yaml +0 -87
  126. package/.specpow/schemas/spec-driven/templates/design.md +0 -54
  127. package/.specpow/schemas/spec-driven/templates/proposal.md +0 -31
  128. package/.specpow/schemas/spec-driven/templates/spec.md +0 -42
  129. package/.specpow/schemas/spec-driven/templates/tasks.md +0 -98
  130. package/.specpow/skills/business-code-review/SKILL.md +0 -78
  131. package/.specpow/skills/business-db-design/SKILL.md +0 -74
  132. package/.specpow/skills/business-deploy-check/SKILL.md +0 -72
  133. package/.specpow/skills/business-doc-sync/SKILL.md +0 -72
  134. package/.specpow/skills/business-java-codegen/SKILL.md +0 -97
  135. package/.specpow/skills/business-menu-register/SKILL.md +0 -63
  136. package/.specpow/skills/business-prd-writer/SKILL.md +0 -80
  137. package/.specpow/skills/business-test-gen/SKILL.md +0 -82
  138. package/.specpow/skills/business-ui-codegen/SKILL.md +0 -104
  139. package/.specpow/skills/cli-router/SKILL.md +0 -108
  140. package/.specpow/skills/execution-finish-branch/SKILL.md +0 -58
  141. package/.specpow/skills/execution-git-worktrees/SKILL.md +0 -48
  142. package/.specpow/skills/execution-parallel-agents/SKILL.md +0 -46
  143. package/.specpow/skills/execution-receiving-review/SKILL.md +0 -47
  144. package/.specpow/skills/execution-requesting-review/SKILL.md +0 -51
  145. package/.specpow/skills/execution-sdd-orchestrator/SKILL.md +0 -366
  146. package/.specpow/skills/execution-subagent-dispatch/SKILL.md +0 -295
  147. package/.specpow/skills/execution-subagent-driven-dev/SKILL.md +0 -143
  148. package/.specpow/skills/execution-systematic-debugging/SKILL.md +0 -95
  149. package/.specpow/skills/execution-tdd/SKILL.md +0 -74
  150. package/.specpow/skills/execution-verification-before-completion/SKILL.md +0 -75
  151. package/.specpow/skills/meta-create-skill/SKILL.md +0 -374
  152. package/.specpow/skills/meta-using-skills/SKILL.md +0 -97
  153. package/.specpow/skills/meta-writing-skills/SKILL.md +0 -66
  154. package/.specpow/skills/planning-apply-change/SKILL.md +0 -194
  155. package/.specpow/skills/planning-archive-change/SKILL.md +0 -43
  156. package/.specpow/skills/planning-explore/SKILL.md +0 -103
  157. package/.specpow/skills/planning-onboard/SKILL.md +0 -61
  158. package/.specpow/skills/planning-propose/SKILL.md +0 -140
  159. package/.specpow/skills/planning-update-change/SKILL.md +0 -45
  160. package/.specpow/skills/planning-verify-change/SKILL.md +0 -58
  161. package/.specpow/skills/planning-write-design/SKILL.md +0 -59
  162. package/.specpow/skills/planning-write-plans/SKILL.md +0 -55
  163. package/.specpow/skills/planning-write-specs/SKILL.md +0 -91
  164. package/.specpow/skills/using-specpow/SKILL.md +0 -232
package/CHANGELOG.md CHANGED
@@ -1,623 +1,623 @@
1
- # Changelog
2
-
3
- All notable changes to this project 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
- ## [0.5.1] - 2026-08-23
9
-
10
- ### โœจ Delta Spec ๅ็งฐไธ€่‡ดๆ€งไผ˜ๅŒ–
11
-
12
- - **ไธป่ง„่Œƒๅ็งฐๆธ…ๅ•ๆณจๅ…ฅ**๏ผˆ`src/core/templates/index.ts`๏ผ‰
13
- - ้—ฎ้ข˜: ไธป่ง„่Œƒ่ถ…่ฟ‡ 2000 ๅญ—็ฌฆๆ—ถๆˆชๆ–ญ๏ผŒAI ็œ‹ไธๅˆฐๆˆชๆ–ญ็‚นๅŽ็š„้œ€ๆฑ‚ๅ็งฐ
14
- - ไฟฎๅค: ๆˆชๆ–ญๅ‰ๆๅ–ๆ‰€ๆœ‰้œ€ๆฑ‚ๅ็งฐๆธ…ๅ•๏ผŒๅง‹็ปˆๆณจๅ…ฅๅˆฐ AI prompt
15
-
16
- - **่ทฏ็”ฑๅคฑ่ดฅ่ญฆๅ‘Š**๏ผˆ`src/core/archive/engine.ts`๏ผ‰
17
- - ้—ฎ้ข˜: MODIFIED/REMOVED ๅ็งฐไธๅŒน้…ๆ—ถๆ“ไฝœ่ขซ้™้ป˜ไธขๅผƒ
18
- - ไฟฎๅค: `routeDeltaOperations()` ๆ”ถ้›†ๆœช่ทฏ็”ฑๆ“ไฝœ๏ผŒ็”Ÿๆˆ `ๅ็งฐๆœชๅŒน้…` ่ญฆๅ‘Š
19
-
20
- - **ๆ–ฐๅขž `validate-specs` ๅ‘ฝไปค**๏ผˆ`src/commands/validate-specs.ts`๏ผ‰
21
- - ๆๅ‰้ชŒ่ฏ delta spec ไธญ MODIFIED/REMOVED/RENAMED ๅ็งฐไธŽไธป่ง„่ŒƒๅŒน้…
22
- - ๅŸบไบŽ็ผ–่พ‘่ท็ฆปๆไพ›่ฟ‘ไผผๅ็งฐๅปบ่ฎฎ๏ผˆ้˜ˆๅ€ผ โ‰ค 3๏ผ‰
23
- - ๆ”ฏๆŒ `--change` ๅ’Œ `--json` ้€‰้กน
24
-
25
- - **apply ้ข„้ชŒ่ฏ**๏ผˆ`src/commands/apply.ts`๏ผ‰
26
- - ๆ‰ง่กŒๅ‰่‡ชๅŠจๆฃ€ๆต‹ delta spec ๅ็งฐไธๅŒน้…ๅนถ่ญฆๅ‘Š
27
-
28
- - **SKILL.md ๅ็งฐๆ ก้ชŒ่ง„ๅˆ™**๏ผˆ`.specpow/skills/planning-write-specs/SKILL.md`๏ผ‰
29
- - ๆ–ฐๅขž"ๅ็งฐๆ ก้ชŒ๏ผˆ้“ๅพ‹๏ผ‰"ๆฎต่ฝ๏ผŒๆŒ‡ๅฏผ AI ็ฒพ็กฎๅŒน้…้œ€ๆฑ‚ๅ็งฐ
30
-
31
- - **RENAMED ๆจกๆฟๆ ผๅผไฟฎๆญฃ**๏ผˆ`.specpow/schemas/spec-driven/templates/spec.md`๏ผ‰
32
- - ไปŽ่กจๆ ผๆ ผๅผๆ”นไธบ็ฎญๅคดๆ ผๅผ: `### <ๆ—งๅ็งฐ> โ†’ <ๆ–ฐๅ็งฐ>`
33
-
34
- ## [0.5.0] - 2026-08-20
35
-
36
- ### ๐Ÿ”„ ๅฝ’ๆกฃๅผ•ๆ“Žๅ็งฐๅŒน้…่ทฏ็”ฑ๏ผˆBreaking Fix๏ผ‰
37
-
38
- - **findSpecMutations ไปŽ่ทฏๅพ„ๅŒน้…ๆ”นไธบๅ็งฐๅŒน้…**
39
- - File: `src/core/archive/engine.ts`
40
- - ้—ฎ้ข˜: propose ็”Ÿๆˆ็š„ delta ๆ–‡ไปถ่ทฏๅพ„ (`specs/<capability>/spec.md`) ๆฐธ่ฟœๆ— ๆณ•ๅŒน้…ไธป่ง„่Œƒ่ทฏๅพ„
41
- - ไฟฎๅค: ๆ–ฐๅขž `buildSpecNameIndex()` ๆ‰ซๆไธป่ง„่Œƒๆๅ–้œ€ๆฑ‚ๅ็งฐ็ดขๅผ•
42
- - ไฟฎๅค: ๆ–ฐๅขž `routeDeltaOperations()` ๆŒ‰้œ€ๆฑ‚ๅ็งฐ่ทฏ็”ฑๆ“ไฝœๅˆฐ็›ฎๆ ‡ๆ–‡ไปถ
43
- - ไฟฎๅค: ๆ–ฐๅขž `buildSubDeltaContent()` ไธบๆฏไธช็›ฎๆ ‡ๆ–‡ไปถๆž„ๅปบๅญ delta
44
- - ไฟฎๅค: RENAMED ๅค„็†ๅŽ่‡ชๅŠจๅฐ†ๆ–ฐๅ็งฐๅŠ ๅ…ฅ็ดขๅผ•๏ผŒๆ”ฏๆŒๅŽ็ปญ MODIFIED/REMOVED ๆŒ‰ๆ–ฐๅ็งฐๆŸฅๆ‰พ
45
-
46
- - **็ฒพ็กฎ้€€ไผ‘ๅˆคๆ–ญ**
47
- - File: `src/core/archive/engine.ts`
48
- - ้—ฎ้ข˜: ๆ—ง้€ป่พ‘ "delta ๆ–‡ไปถๅชๅซ REMOVED โ†’ ๆ•ดไธชๆ–‡ไปถ retire" ไผš้”™่ฏฏ้€€ไผ‘ๆœช่ขซ็งป้™ค็š„้œ€ๆฑ‚
49
- - ไฟฎๅค: ๅขžๅŠ  `fileReqCount` ็ดขๅผ•๏ผŒๅชๆœ‰ๅฝ“ REMOVED ่ฆ†็›–็›ฎๆ ‡ๆ–‡ไปถๅ…จ้ƒจ้œ€ๆฑ‚ๆ—ถๆ‰ retire
50
- - ้ƒจๅˆ†้€€ไผ‘: ไป…ๆ ‡่ฎฐ่ขซ็งป้™ค็š„้œ€ๆฑ‚ไธบ `[RETIRED]`๏ผŒๅ…ถไป–้œ€ๆฑ‚ไฟ็•™
51
-
52
- ## [0.4.9] - 2026-08-20
53
-
54
- ### ๐Ÿ› ๅฝ’ๆกฃๅผ•ๆ“Ž Delta ๆฃ€ๆต‹ๆญฃๅˆ™ไฟฎๅค
55
-
56
- - **BUG-5 findSpecMutations ๆฃ€ๆต‹ๆญฃๅˆ™ๅผบๅˆถๅ†’ๅท**
57
- - File: `src/core/archive/engine.ts`
58
- - Fix: `/##\s+REMOVED:/i` โ†’ `/##\s+REMOVED[:\s]/i`๏ผˆๅ†’ๅทๅฏ้€‰๏ผ‰๏ผŒไธŽ delta-parser ไธ€่‡ด
59
- - Fix: ๆ–ฐๅขž `hasRenamed` ๆฃ€ๆต‹๏ผŒๆ”ฏๆŒ็บฏ RENAMED ๆ“ไฝœ่งฆๅ‘ๅˆๅนถ
60
-
61
- ## [0.4.8] - 2026-08-20
62
-
63
- ### ๐Ÿ› Delta Spec ็ณป็ปŸไฟฎๅค โ€” 4 ไธช Bug + 1 ไธชๆžถๆž„ไฟฎๅค
64
-
65
- - **GAP-6 propose ้˜ถๆฎต AI ๆ— ๆณ•็œ‹ๅˆฐๅทฒๆœ‰ไธป่ง„่Œƒ**
66
- - Files: `src/commands/propose.ts`, `src/core/templates/index.ts`
67
- - Fix: propose ๆ‰ซๆ `.specpow/openspec/specs/` ๆณจๅ…ฅๅˆฐ specs ๅทฅไปถไธŠไธ‹ๆ–‡
68
-
69
- - **BUG-1 Scenario ๆˆชๆ–ญ Requirement ๅ—**
70
- - Files: `src/core/archive/delta-parser.ts`, `src/core/archive/delta-merger.ts`
71
- - Fix: ๆทปๅŠ  `(?!Scenario:\s*)` ่ดŸๅ‘ๅ‰็žป๏ผŒ้˜ฒๆญข `### Scenario:` ็ปˆๆญข `## Requirement:` ๅ—ๆๅ–
72
-
73
- - **BUG-2 --force ๆ— ๆณ•่ฆ†็›–ๅทฒๅญ˜ๅœจ็š„ ADDED ๅ—**
74
- - File: `src/core/archive/delta-merger.ts`
75
- - Fix: ไฟฎๆญฃ ADDED ้˜ถๆฎต้€ป่พ‘๏ผšidenticalโ†’่ทณ่ฟ‡ / forceโ†’ๆ›ฟๆข / ๅฆๅˆ™โ†’ๅ†ฒ็ช
76
-
77
- - **BUG-2b ๅน‚็ญ‰ๆ€งๆฏ”่พƒๅคฑๆ•ˆ๏ผˆbody vs fullBlock๏ผ‰**
78
- - File: `src/core/archive/delta-merger.ts`
79
- - Fix: ๆ–ฐๅขž `extractBlockBody()` ่พ…ๅŠฉๅ‡ฝๆ•ฐ๏ผŒMODIFIED ๅ’Œ ADDED ้˜ถๆฎต็”จ body ๆฏ”่พƒ
80
-
81
- - **BUG-3 [RETIRED] ้‡ๅคๅ ๅŠ  + ๆ— ๆณ•ๆŸฅๆ‰พๅทฒ้€€ไผ‘ๅ—**
82
- - Files: `src/core/archive/delta-parser.ts`, `src/core/archive/delta-merger.ts`
83
- - Fix: ๆ‰€ๆœ‰ header ๅŒน้…ๆญฃๅˆ™ๆ”ฏๆŒ `[RETIRED]` ๅ‰็ผ€๏ผˆๅ…ผๅฎนๆ–ฐๆ—งๆ ผๅผ๏ผ‰๏ผŒREMOVED ้˜ถๆฎตๆทปๅŠ ๅน‚็ญ‰ๆฃ€ๆŸฅ
84
-
85
- - **ISSUE-4 formatBlock ๅ›บๅฎš ## ็บงๅˆซ**
86
- - File: `src/core/archive/delta-merger.ts`
87
- - Fix: formatBlock ๆŽฅๅ— headerLevel ๅ‚ๆ•ฐ๏ผŒMODIFIED ไปŽ็Žฐๆœ‰ๅ—ๆฃ€ๆต‹็บงๅˆซ๏ผŒADDED ้ป˜่ฎค ##
88
-
89
- ## [0.3.1] - 2026-08-18
90
-
91
- ### ๐Ÿ› Comprehensive Bug Fix Release โ€” 21 Issues Resolved
92
-
93
- This patch release addresses 21 verified issues discovered during a comprehensive review of functional runnability and usability. Every fix was verified against actual code before implementation. Build passes, all 849 tests pass.
94
-
95
- ### ๐Ÿ”ด IMPORTANT Fixes (4 items)
96
-
97
- - **#1 `init --force` ้€‰้กน็ผบๅคฑ**
98
- - File: `src/cli/index.ts`
99
- - Fix: ๆทปๅŠ  `--force` Commander.js ้€‰้กนๅฎšไน‰๏ผŒ้…ๅˆ `TemplateHashManager.reset()` ๅฎž็Žฐๅผบๅˆถ่ฆ†็›–
100
-
101
- - **#2 `review --diff-file` ๆœชๅฎž้™…่งฃๆž diff ๆ–‡ไปถ**
102
- - File: `src/commands/review.ts`
103
- - Fix: ๆทปๅŠ  diff ๆ–‡ไปถ่ฏปๅ–ไธŽๆญฃๅˆ™่งฃๆž๏ผˆ`+++ b/` ๅ‰็ผ€ๅŒน้…๏ผ‰๏ผŒๆๅ–ๅ˜ๆ›ดๆ–‡ไปถ่ทฏๅพ„ๅˆ—่กจ
104
-
105
- - **#3 `review --model` ้€‰้กนๆ— ๆ•ˆไฝ†ๆ— ่ญฆๅ‘Š**
106
- - File: `src/commands/review.ts`
107
- - Fix: ๅฝ“ไผ ๅ…ฅ `--model` ๆ—ถ่พ“ๅ‡บ้ป„่‰ฒ่ญฆๅ‘Š๏ผšๅฎกๆŸฅไธบ้™ๆ€ๅˆ†ๆž๏ผŒไธๆถ‰ๅŠ AI ๆจกๅž‹่ฐƒ็”จ
108
-
109
- - **#4 Hook ๅคฑ่ดฅ่ขซ้™้ป˜ๅžๆމ**
110
- - File: `src/core/hooks/hook-registry.ts`
111
- - Fix: `mergeResults` ไธญๆ•่Žทๅคฑ่ดฅ hook ็š„ error ไฟกๆฏไฝœไธบ warning ่พ“ๅ‡บ
112
-
113
- ### ๐ŸŸก MODERATE Fixes (8 items)
114
-
115
- - **#5 `formatForPlatform` ๅฟฝ็•ฅ platform ๅ‚ๆ•ฐ**
116
- - File: `src/core/hooks/hook-registry.ts`
117
- - Fix: ๆ นๆฎ platform ๅ‚ๆ•ฐ่ฟ”ๅ›žๅฏนๅบ”ๆ ผๅผ๏ผˆclaude/cursor/generic๏ผ‰๏ผŒ่€Œ้žๅง‹็ปˆ่ฟ”ๅ›ž claude ๆ ผๅผ
118
- - Breaking: `PlatformOutput` ๆŽฅๅฃๅญ—ๆฎตๆ”นไธบ optional๏ผŒๆ”ฏๆŒๅนณๅฐ็‰นๅฎš่ฟ”ๅ›ž
119
-
120
- - **#6 `migrate` ๅคฑ่ดฅๆ—ถ้™้ป˜้€€ๅ‡บ็  0**
121
- - File: `src/cli/index.ts`
122
- - Fix: ่ฟ็งปๅคฑ่ดฅๆ—ถ่พ“ๅ‡บๅคฑ่ดฅๆญฅ้ชค่ฏฆๆƒ…ๅนถ่ฐƒ็”จ `process.exit(1)`
123
-
124
- - **#7 `debug` ๆ็คบไธๅญ˜ๅœจ็š„ `--report` ้€‰้กน**
125
- - File: `src/commands/debug.ts`
126
- - Fix: ็งป้™ค `console.log` ไธญๅ…ณไบŽ `debug --report` ็š„่ฏฏๅฏผๆ€งๆ็คบ
127
-
128
- - **#8 `channel send` ๆ— ๆถˆๆฏ็ฑปๅž‹้ชŒ่ฏ**
129
- - File: `src/commands/channel.ts`
130
- - Fix: ๆทปๅŠ  MessageType ็™ฝๅๅ•ๆ ก้ชŒ๏ผŒๆ— ๆ•ˆ็ฑปๅž‹่พ“ๅ‡บๆœ‰ๆ•ˆๅ€ผๅˆ—่กจๅนถ้€€ๅ‡บ
131
-
132
- - **#9 `status` ไปปๅŠกๆญฃๅˆ™ไป…ๅŒน้…ๅฐๅ†™ `[x]`**
133
- - File: `src/commands/status.ts`
134
- - Fix: ๆญฃๅˆ™ๆทปๅŠ  `gi` ๆ ‡ๅฟ—๏ผŒๆ”ฏๆŒ `[X]` ๅคงๅ†™ๅฎŒๆˆๆ ‡่ฎฐ
135
-
136
- - **#10 `verify` ๆ— ๅ˜ๆ›ดๆ—ถ็›ดๆŽฅๆŠฅ้”™้€€ๅ‡บ**
137
- - File: `src/commands/verify.ts`
138
- - Fix: ่‡ชๅŠจๆฃ€ๆต‹ๅ”ฏไธ€ๆดป่ทƒๅ˜ๆ›ด๏ผˆๅ•ๅ˜ๆ›ดๅ… `--change`๏ผ‰๏ผŒๅคšๅ˜ๆ›ดๆ—ถๅˆ—ๅ‡บ้€‰้กน
139
-
140
- - **#11/#12 `init` ๅ†…็ฝฎ Schema/Skill ็›ฎๅฝ•ไธๅญ˜ๅœจๆ—ถ้™้ป˜่ฟ”ๅ›ž**
141
- - File: `src/commands/init.ts`
142
- - Fix: ๆทปๅŠ  `console.warn` ่ญฆๅ‘Š่พ“ๅ‡บ๏ผŒๆ็คบๅŒ…ๅฎ‰่ฃ…ๅฏ่ƒฝไธๅฎŒๆ•ด
143
-
144
- ### ๐ŸŸข MINOR Fixes (9 items)
145
-
146
- - **#13/#14 `channel` ๆ็คบ้”™่ฏฏๅญๅ‘ฝไปคๅ**
147
- - File: `src/commands/channel.ts`
148
- - Fix: `workers add` โ†’ `add-worker`๏ผŒ`tasks create` โ†’ `create-task`
149
-
150
- - **#15 session-start ๆŠ€่ƒฝๅˆ—่กจไป… 22/34**
151
- - File: `src/core/hooks/session-start-hook.ts`
152
- - Fix: ่กฅๅ…จๅ…จ้ƒจ 34 ไธชๆŠ€่ƒฝ๏ผŒๆ–ฐๅขž Meta ๅˆ†็ฑป๏ผˆusing-specpowใ€meta-using-skills ็ญ‰๏ผ‰
153
-
154
- - **#16 `apply` host-driven ๅ†™ๆ–‡ไปถๅคฑ่ดฅ่ฟ”ๅ›ž็  0**
155
- - File: `src/commands/apply.ts`
156
- - Fix: `return` โ†’ `process.exit(1)`๏ผŒ็กฎไฟ task-manifest.json ๅ†™ๅ…ฅๅคฑ่ดฅๆ—ถ่ฟ›็จ‹ๅผ‚ๅธธ้€€ๅ‡บ
157
-
158
- - **#17 `parseProposal` ็ผบๅฐ‘ risks ่งฃๆž**
159
- - File: `src/core/parsers/index.ts`
160
- - Fix: ๆทปๅŠ  Markdown ่กจๆ ผ่งฃๆž้€ป่พ‘๏ผŒๆ”ฏๆŒ `| ้ฃŽ้™ฉ | ๅฝฑๅ“ | ๆฆ‚็އ | ๅบ”ๅฏน |` ๆ ผๅผ
161
-
162
- - **#18 `runTests()` ๅŒๆญฅ้˜ปๅกžไบ‹ไปถๅพช็Žฏ**
163
- - File: `src/core/sdd-engine/controller.ts`
164
- - Fix: `execFileSync` โ†’ ๅผ‚ๆญฅ `execFile` + Promise๏ผŒ้ฟๅ…ๆœ€ๅคš 14 ๅˆ†้’Ÿ็š„ไบ‹ไปถๅพช็Žฏ้˜ปๅกž
165
-
166
- - **#19 `detectActiveChanges` ้‡ๅค่ฐƒ็”จ**
167
- - File: `src/core/hooks/session-start-hook.ts`
168
- - Fix: `detectWorkflowStage` ๆŽฅๆ”ถๅทฒ่ฎก็ฎ—็š„ `activeChanges` ๅ‚ๆ•ฐ๏ผŒ้ฟๅ…้‡ๅคๆ–‡ไปถ็ณป็ปŸๆ‰ซๆ
169
-
170
- - **#20 PostToolCall ๆฏๆฌกๅทฅๅ…ท่ฐƒ็”จๆณจๅ…ฅๆ— ็”จไธŠไธ‹ๆ–‡**
171
- - File: `src/core/hooks/post-tool-call-hook.ts`
172
- - Fix: ไป…ๅœจๆœ‰้˜ถๆฎต่ฝฌๆขไฟกๅทๆ—ถๆณจๅ…ฅ `additionalContext`๏ผŒๆ™ฎ้€šๅทฅๅ…ท่ฐƒ็”จไธๅ†ๆถˆ่€— token
173
-
174
- - **#21 `initialize()` ๅŒๆญฅๅ‡ฝๆ•ฐ่ฏฏ็”จ `await`**
175
- - File: `src/commands/init.ts`
176
- - Fix: ็งป้™ค่ฏฏๅฏผๆ€ง `await`๏ผŒ`engine.initialize()` ไธบๅŒๆญฅๆ–นๆณ•
177
-
178
- ### ๐Ÿงช Testing
179
-
180
- - 849 tests pass across 37 test files
181
- - 3 tests updated to match new PostToolCallHook behavior (no context injection without transition signal)
182
- - Added `readFileSync` import to `test/hook-system.test.ts`
183
-
184
- ### ๐Ÿ“ Documentation
185
-
186
- - CHANGELOG.md: ๆ–ฐๅขž v0.3.1 ็‰ˆๆœฌ่ฎฐๅฝ•
187
- - README.md: ็‰ˆๆœฌๅކๅฒๆ–ฐๅขž v0.3.1 ไฟฎๅคๆ‘˜่ฆ
188
- - docs/guide.md: CLI ๅ‘ฝไปคๅ‚่€ƒๆ›ดๆ–ฐ๏ผˆinit --forceใ€reviewใ€verifyใ€channelใ€migrate๏ผ‰
189
-
190
- ---
191
-
192
- ## [0.3.0] - 2026-08-15
193
-
194
- ### ๐Ÿš€ Superpowers Pattern Transformation โ€” Host-Driven Mode
195
-
196
- This release introduces **dual-mode execution**: the existing TypeScript SDD Engine (Mode A) now coexists with a new **Host-Driven mode** (Mode B), where the host AI agent orchestrates the SDD workflow using its native subagent tools.
197
-
198
- ### โœจ New Features
199
-
200
- - **Host-Driven Mode (`--host-driven`)**: New execution mode for `specpow apply` that generates a `task-manifest.json` and delegates orchestration to the host AI agent via SKILL.md instructions. No TypeScript AI-caller subprocess needed.
201
- - **Bootstrap Meta-Skill (`using-specpow`)**: New skill injected via `SessionStart` hook that teaches the host agent the full SDD workflow, trigger discipline, and iron rules.
202
- - **SDD Orchestrator Skill (`execution-sdd-orchestrator`)**: Skill file encoding the implementโ†’reviewโ†’fix loop logic, replacing `controller.ts` orchestration in Host-Driven mode. Includes parallel execution guidance.
203
- - **Subagent Dispatch Skill (`execution-subagent-dispatch`)**: Skill file encoding implementer/reviewer/re-reviewer prompt templates, replacing `ai-caller.ts` prompt construction in Host-Driven mode.
204
- - **`init` Copies Builtin Skills**: `specpow init` now uses `copyBuiltinSkillsWithHash` to incrementally copy all 34 builtin skill files to target projects, with template-hash protection for user modifications.
205
-
206
- ### ๐Ÿ—๏ธ Architecture Changes
207
-
208
- - **Dual-Mode Execution Layer**: Architecture diagram updated to show Mode A (SDD Engine) and Mode B (Host-Driven) side-by-side. Both modes share Ledger, Git ops, and review-loop infrastructure.
209
- - **Skills Count**: 31 โ†’ 34 (added `using-specpow`, `execution-sdd-orchestrator`, `execution-subagent-dispatch`)
210
-
211
- ### ๐Ÿ“ฆ Deprecation Markers
212
-
213
- - `src/core/sdd-engine/controller.ts` โ€” marked `@deprecated`, only used by SDD Engine mode
214
- - `src/core/sdd-engine/ai-caller.ts` โ€” marked `@deprecated`, only used by SDD Engine mode
215
- - `src/core/sdd-engine/model-selector.ts` โ€” marked `@deprecated`, model selection guidance now in SKILL.md
216
-
217
- ### ๐Ÿ”ง Bug Fixes
218
-
219
- - **CLI `--host-driven` flag registration**: Flag was implemented in `apply.ts` but not registered in Commander.js โ€” fixed.
220
- - **`copyBuiltinSkillsWithHash` missing definition**: Function was called but never defined in `init.ts` โ€” implemented with same pattern as `copyBuiltinSchemasWithHash`.
221
-
222
- ### ๐Ÿ“ Documentation
223
-
224
- - README.md architecture diagram updated for dual-mode execution layer
225
- - README.md skills table updated from 31 to 34
226
- - README.md quick-start section documents `--host-driven` flag
227
-
228
- ## [0.2.2] - 2026-08-15
229
-
230
- ### ๐Ÿ› Bug Fix: AI Tool Detection
231
-
232
- - **ไฟฎๅค `specpow init` ๆฃ€ๆต‹ๅˆฐ 0 ไธช AI ๅทฅๅ…ท็š„้—ฎ้ข˜**
233
- - File: `src/core/init/engine.ts`
234
- - Root cause: `SUPPORTED_TOOLS` ไธญ Claude Code ็š„ๆฃ€ๆต‹่ทฏๅพ„ไธบ `.claude-plugin/plugin.json`๏ผŒ่ฏฅๆ–‡ไปถๅœจๅฎž้™… Claude Code ้กน็›ฎไธญไธๅญ˜ๅœจ
235
- - Fix: ๆ›ดๆ–ฐๆ‰€ๆœ‰ๅทฅๅ…ท็š„ `detectionPaths` ไธบ็œŸๅฎžๅญ˜ๅœจ็š„ๆ ‡่ฎฐๆ–‡ไปถ๏ผš
236
- - Claude Code: `.claude/settings.json`, `.claude/commands`, `.claude/CLAUDE.md`, `CLAUDE.md`
237
- - Cursor: `.cursor/rules`, `.cursor/mcp.json`
238
- - GitHub Copilot: `.github/copilot-instructions.md`
239
- - Gemini CLI: `.gemini/settings.json`, `gemini-extension.json`
240
- - Codex App: `.codex/instructions.md`
241
- - OpenCode: `opencode.json`
242
- - Kimi Code: `.kimi/instructions.md`
243
- - Pi: `.pi/extensions`
244
- - Impact: `specpow init` ็Žฐๅœจ่ƒฝๆญฃ็กฎๆฃ€ๆต‹ๅˆฐๅทฒๅฎ‰่ฃ…็š„ AI ๅทฅๅ…ท
245
-
246
- ---
247
-
248
- ## [0.2.1] - 2026-08-15
249
-
250
- ### ๐Ÿ› Bug Fixes & Code Cleanup (9 items from comprehensive review)
251
-
252
- This patch release addresses issues discovered during a comprehensive code review of the v0.2.0 codebase. All fixes have been verified with the existing test suite (854 tests, 37 files).
253
-
254
- #### P0: Critical Fixes (1 item)
255
-
256
- - **#19 Controller ๆœชไผ ้€’ commit SHA ็ป™ ai-caller**
257
- - File: `src/core/sdd-engine/controller.ts`
258
- - Fix: `callImplementer()` now passes `headCommit` and `baseCommit` to `aiCaller.call()`, ensuring implementer agents receive correct git context
259
- - Impact: Without commit SHAs, implementer agents could not accurately diff changes during review loops
260
-
261
- #### P1: High-Value Fixes (2 items)
262
-
263
- - **#20 Ledger fix-round ๆ•ฐๆฎไธขๅคฑ**
264
- - File: `src/core/sdd-engine/ledger.ts`
265
- - Fix: `recordFixRound()` now appends fix-round entries instead of overwriting previous rounds
266
- - Impact: Multi-round fix history was lost, making it impossible to track iterative improvements
267
-
268
- - **#21 design.md ๆœชไผ ้€’็ป™ SDD ๅผ•ๆ“Ž**
269
- - File: `src/commands/apply.ts`
270
- - Fix: `design.md` content is now included in `specConstraints` alongside specs content
271
- - Impact: Implementer agents were missing design context, leading to implementations that deviated from design
272
-
273
- #### P2: Medium-Priority Fixes (4 items)
274
-
275
- - **#22 ๆจกๅž‹้…็ฝฎๆญปไปฃ็ ๆธ…็†**
276
- - Files: `src/core/sdd-engine/controller.ts`, `src/core/sdd-engine/types.ts`
277
- - Fix: Removed unused `modelTier` field and dead code paths that referenced hardcoded model values
278
- - Impact: Config `sdd.modelTier` was documented but never actually read; cleanup removes confusion
279
-
280
- - **#23 ไธฒ่กŒ apply --json ่พ“ๅ‡บๅฎž็Žฐ**
281
- - File: `src/commands/apply.ts`
282
- - Fix: Serial (non-parallel) mode now supports `--json` flag, outputting `ApplyData` in Agent Contract format
283
- - Impact: `specpow apply --json` previously only worked in `--parallel` mode; now consistent across both modes
284
-
285
- - **#24 projectContext ไผ ้€’ๅŽŸๅง‹่ทฏๅพ„่€Œ้ž้กน็›ฎๅ**
286
- - Files: `src/commands/apply.ts`, `src/commands/execute.ts`
287
- - Fix: Changed from passing `projectRoot` (absolute path) to `basename(projectRoot)` (project name) as `projectContext`
288
- - Impact: SDD engine was receiving `/home/user/my-project` instead of `my-project`, causing context pollution in prompts
289
-
290
- - **#25 ParallelDispatcher ๅฟฝ็•ฅๆจกๅž‹้…็ฝฎ**
291
- - File: `src/core/sdd-engine/parallel-dispatcher.ts`
292
- - Fix: Added `ModelSelector` initialization from `config.modelConfig` and passed selected model to `dispatchImplementer`
293
- - Impact: Parallel mode always used default model regardless of `config.json` settings
294
-
295
- #### P3: Low-Priority Cleanup (2 items)
296
-
297
- - **#26 execute.ts ๅ†—ไฝ™ initialize() ่ฐƒ็”จๆธ…็†**
298
- - File: `src/commands/execute.ts`
299
- - Fix: Removed redundant `await controller.initialize()` calls (constructor already handles initialization)
300
- - Impact: Minor performance improvement and code clarity
301
-
302
- - **#27 store ้€‰้กนๆญปไปฃ็ ๆธ…็†**
303
- - Files: `src/commands/apply.ts`, `src/commands/propose.ts`, `src/commands/status.ts`, `src/cli/index.ts`
304
- - Fix: Removed `--store <store-id>` option from propose/status/apply commands (option was defined but never used)
305
- - Impact: CLI surface reduced; removed confusing option that had no effect
306
-
307
- ### ๐Ÿงช Testing
308
-
309
- - All 854 tests pass across 37 test files
310
- - No new test failures introduced
311
- - Infrastructure layer verified: hook-system (77), memory-manager (69), memory-adapters (17), channel-runtime (77), migration (19) โ€” 259 tests
312
-
313
- ### ๐Ÿ“š Documentation
314
-
315
- - **CHANGELOG.md**: Added v0.2.1 section documenting all 9 fixes
316
- - **docs/guide.md**: Updated CLI command reference to reflect removed `--store` option
317
-
318
- ---
319
-
320
- ## [0.2.0] - 2026-08-14
321
-
322
- ### ๐ŸŽ‰ Major Release: 26 Optimization Items from OpenSpec/Superpowers/Trellis
323
-
324
- This release represents a comprehensive optimization of SpecPow, incorporating best practices from OpenSpec (spec-driven planning), Superpowers (SDD execution engine), and Trellis (workflow automation).
325
-
326
- **Key Highlights:**
327
- - **860 tests** (up from 422, +104% coverage)
328
- - **22 AI tool adapters** (up from 6, +267% support)
329
- - **31 skills** (added meta-create-skill)
330
- - **11 second-round optimizations** (performance, defense, extensibility)
331
-
332
- ### โœจ Added
333
-
334
- #### P0: Core Fixes (4 items)
335
-
336
- - **Model Configuration** (#1): Model selection now reads from `config.json` instead of hardcoded values
337
- - Modified: `src/commands/apply.ts`, `src/core/sdd-engine/controller.ts`
338
- - Config field: `sdd.modelTier`
339
-
340
- - **Parallel Dispatcher Integration** (#2): Exposed `ParallelDispatcher` to CLI with `--parallel` flag
341
- - Modified: `src/commands/apply.ts`
342
- - Usage: `specpow apply --parallel`
343
-
344
- - **Test Framework Auto-Detection** (#3): Extended `runTests()` to support any test framework
345
- - Modified: `src/core/sdd-engine/controller.ts`
346
- - Auto-detects test script from `package.json`
347
-
348
- - **Three-Layer Schema Resolution** (#4): Added user-level schema layer
349
- - Modified: `src/core/artifact-graph/resolver.ts`
350
- - Resolution order: project โ†’ user (`~/.specpow/schemas/`) โ†’ package
351
-
352
- #### P1: High-Value Features (6 items)
353
-
354
- - **Delta Spec Structured Merge** (#5): OpenSpec-style merge algorithm
355
- - New: `src/core/archive/delta-parser.ts`, `src/core/archive/delta-merger.ts`
356
- - Modified: `src/core/archive/engine.ts`
357
- - Supports: ADDED/MODIFIED/REMOVED/RENAMED operations
358
- - Features: Conflict detection, idempotency, merge order enforcement
359
-
360
- - **Agent Contract** (#6): JSON output support for all CLI commands
361
- - Modified: All `src/commands/*.ts` files
362
- - Usage: `specpow status --json`, `specpow schemas --json`
363
- - Format: `{ status, data, diagnostics, nextSteps }`
364
-
365
- - **Context & Rules Injection** (#7): Project-level context and rules configuration
366
- - Modified: `src/core/config/config-schema.ts`, `src/core/artifact-graph/instruction-loader.ts`
367
- - New fields in `.specpow/config.yaml`: `context`, `rules`
368
- - Template placeholders: `{{context}}`, `{{rules}}`
369
-
370
- - **Interactive Explore Mode** (#8): Socratic requirement exploration
371
- - Modified: `src/commands/explore.ts`, `skills/planning-explore/SKILL.md`
372
- - Features: Curiosity-driven, visual (ASCII diagrams), adaptive, non-committal
373
-
374
- - **Extended AI Tool Adapters** (#9): **22 AI tool adapters** (was 6)
375
- - Modified: `src/core/command-generation/`
376
- - New adapters: Amazon Q, Cline, Continue, Kiro, Trae, Qwen, Kimi, GitHub Copilot Workspace, Roo Code, Auggie, Bob, Crush, Devin, Junie, Qoder
377
- - Features: Unified `AdapterRegistry`, invocation styles (namespaced/flat/prefix)
378
-
379
- - **Template Hash Incremental Update** (#10): Protect user modifications during `specpow init`
380
- - New: `src/core/init/template-hash.ts`
381
- - Modified: `src/commands/init.ts`
382
- - Storage: `.specpow/.template-hashes.json`
383
- - Logic: Skip unchanged, create `.new` for user-modified, overwrite for framework-updated
384
-
385
- #### P2: Innovative Features (5 items)
386
-
387
- - **Hook Auto-Context Injection** (#11): 4-hook pipeline for automatic context injection
388
- - New: `src/core/hooks/` module
389
- - Hooks: `SessionStart`, `UserPromptSubmit`, `PreToolCall`, `PostToolCall`
390
- - Configuration: `.specpow/hooks/hooks.json`
391
-
392
- - **Cross-Session Memory System** (#12): Event-sourced memory with keyword extraction
393
- - New: `src/core/memory/` module
394
- - Features: Keyword extraction, phase detection, relevance scoring, inverted index
395
- - **Adapters**: SQLite (WAL mode, prepared statements), Sharded JSON (incremental updates, atomic writes)
396
- - API: `createMemoryManager()`, `indexSession()`, `search()`, `getRecent()`
397
-
398
- - **Channel Multi-Agent Collaboration** (#13): Event-sourced multi-agent runtime
399
- - New: `src/core/channel/` module
400
- - Features: Supervisor pattern, worker lifecycle management, task assignment strategies
401
- - Strategies: round_robin, least_busy, priority
402
- - API: `createChannelRuntime()`, `Supervisor`, `registerWorker()`, `assignTask()`
403
-
404
- - **Workflow State Tags** (#14): Trellis-style `[workflow-state:xxx]` tags
405
- - New: `src/core/workflow-state.ts`
406
- - Features: Tag generation, parsing, stage inference, transition hooks
407
- - API: `stageToTag()`, `parseWorkflowStateTag()`, `inferStageFromPath()`, `onStageTransition()`
408
-
409
- - **Core SDK Subpath Exports** (#15): Modular imports via package.json exports
410
- - Modified: `package.json` (added `exports` field)
411
- - New: `src/core/archive/index.ts`, `src/core/config/index.ts`
412
- - 10 subpath exports: `/sdd`, `/artifact-graph`, `/archive`, `/hooks`, `/memory`, `/channel`, `/workflow-state`, `/config`, `/command-generation`
413
-
414
- #### Second-Round Optimizations (11 items)
415
-
416
- - **Four-Module Test Coverage** (#16): Comprehensive tests for Memory, Channel, Hook, WorkflowState
417
- - New: `test/memory-manager.test.ts`, `test/channel-runtime.test.ts`, `test/hook-system.test.ts`, `test/workflow-state.test.ts`
418
- - Tests: ~300 new test cases
419
-
420
- - **Delta Spec Four Enhancements** (#17): Advanced OpenSpec features
421
- - Modified: `src/core/archive/engine.ts`, `src/core/archive/delta-merger.ts`
422
- - Features: Scenario-loss guard, capability retirement, unaccounted content detection, code fence masking
423
- - Tests: ~150 new test cases
424
-
425
- - **Rationalization Defense System** (#18): Extended defense tables + red flags + pressure testing
426
- - Modified: `skills/execution-tdd/SKILL.md`, `skills/execution-systematic-debugging/SKILL.md`, `skills/execution-verification-before-completion/SKILL.md`
427
- - Added: 11+ row defense tables, 13 red flags, pressure testing checklists
428
- - Fixed: Duplicate YAML frontmatter bugs
429
-
430
- - **AI Adapter Extension to 22** (#19): 8 new adapters
431
- - Modified: `src/core/command-generation/index.ts`
432
- - New: GitHub Copilot Workspace, Roo Code, Auggie, Bob, Crush, Devin, Junie, Qoder
433
- - Tests: ~50 new test cases
434
-
435
- - **Hook System Completion** (#20): PreToolCall + PostToolCall implementation
436
- - New: `src/core/hooks/pre-tool-call-hook.ts`, `src/core/hooks/post-tool-call-hook.ts`
437
- - Modified: `src/core/hooks/hook-registry.ts`, `src/core/hooks/index.ts`
438
- - Features: Tool call interception, workflow context injection, result logging
439
-
440
- - **Hook + WorkflowState Deep Integration** (#21): Stage transition hooks + state recovery
441
- - Modified: `src/core/hooks/workflow-state-hook.ts`, `src/core/workflow-state.ts`
442
- - Features: Auto-inject stage tags, detect stage transitions, recover last workflow state on session start
443
- - Tests: ~80 new test cases
444
-
445
- - **Meta-Create-Skill** (#22): Skill for creating new skills
446
- - New: `skills/meta-create-skill/SKILL.md`
447
- - Features: Guided skill creation, auto-generate SKILL.md skeleton, auto-register to skill directory
448
- - Tests: 12 test cases
449
-
450
- - **Version Migration System** (#23): Safe version upgrades with automatic backup
451
- - New: `src/core/migration/`, `src/commands/migrate.ts`
452
- - Features: Migration manifests, dry-run preview, automatic backup
453
- - Tests: ~60 test cases
454
-
455
- - **Memory Platform Adapter Extension** (#24): SQLite + Sharded JSON adapters
456
- - New: `src/core/memory/adapters/sqlite-adapter.ts`, `src/core/memory/adapters/json-adapter.ts`
457
- - SQLite: WAL mode, prepared statements, transaction support
458
- - JSON: Multi-file sharding, incremental updates, atomic writes
459
- - Tests: 17 test cases
460
-
461
- - **Memory Adapter Performance Optimization** (#25): Prepared statement caching + incremental updates
462
- - Modified: `src/core/memory/adapters/sqlite-adapter.ts`, `src/core/memory/adapters/json-adapter.ts`
463
- - SQLite: 11 cached prepared statements, explicit timeline sorting
464
- - JSON: Incremental shard updates (compare old vs new), atomic writes (temp + rename)
465
- - Performance: ~30% faster save/load operations
466
-
467
- - **Pre-existing Defect Fixes** (#26): Fixed 714 โ†’ 860 test cases
468
- - Fixed: 4 pre-existing test failures
469
- - Added: 146 new test cases across all modules
470
-
471
- ### ๐Ÿ”ง Fixed
472
-
473
- - **Memory Module Bug**: Fixed `calculateRelevance()` crash when `keywords` parameter is undefined
474
- - File: `src/core/memory/memory-indexer.ts`
475
- - Fix: Added null-safe handling with `?? []`
476
-
477
- - **Command Generation Bug**: Added missing `AdapterRegistry.getAll()` method
478
- - File: `src/core/command-generation/index.ts`
479
- - Fix: Implemented static method to return all adapter instances
480
-
481
- - **TypeScript Compilation Errors**: Fixed 6 type errors in channel module
482
- - Files: `channel-types.ts`, `channel-supervisor.ts`, `channel-event-log.ts`
483
- - Fixes: Added missing event types, removed unused imports, fixed async return types
484
-
485
- - **Pre-existing Test Failures**: Fixed 4 failing tests
486
- - Fixed: Memory adapter edge cases
487
- - Fixed: Hook registration race conditions
488
- - Fixed: WorkflowState tag parsing
489
- - Result: 714 โ†’ 860 passing tests
490
-
491
- ### ๐Ÿ“š Documentation
492
-
493
- - **README.md**: Comprehensive update with all v0.2.0 features
494
- - Added: SDK subpath exports guide
495
- - Added: Context & Rules injection examples
496
- - Added: Hook system documentation (4-hook pipeline)
497
- - Added: Memory system API guide (SQLite + JSON adapters)
498
- - Added: Channel multi-agent examples
499
- - Added: Workflow state tag usage (with transition hooks)
500
- - Added: Delta spec merge format (with 4 enhancements)
501
- - Added: Template hash update logic
502
- - Added: Migration system documentation
503
- - Added: Meta-create-skill documentation
504
- - Updated: Architecture diagram with new "Intelligence Layer"
505
- - Updated: AI tool support table (6 โ†’ 22 tools)
506
- - Updated: Project structure with new modules
507
- - Updated: Test count (422 โ†’ 860)
508
-
509
- - **CHANGELOG.md**: Comprehensive v0.2.0 changelog
510
- - Documented all 26 optimization items
511
- - Added migration guide
512
- - Added statistics and performance improvements
513
-
514
- ### ๐Ÿงช Testing
515
-
516
- - **Integration Testing**: All 10 subpath exports verified
517
- - Main entry: 12 exports โœ…
518
- - SDD engine: 17 exports โœ…
519
- - Artifact Graph: 5 exports โœ…
520
- - Archive: Delta parsing โœ…
521
- - Hooks: 8 exports โœ…
522
- - Memory: Keyword extraction, phase detection, relevance scoring โœ…
523
- - Channel: Multi-agent runtime โœ…
524
- - Workflow State: Tag generation/parsing โœ…
525
- - Config: 14 exports โœ…
526
- - Command Generation: 14 adapters โœ…
527
-
528
- ### ๐Ÿ“ฆ Package
529
-
530
- - Version bump: 0.1.0 โ†’ 0.2.0
531
- - Added `exports` field to `package.json` for subpath imports
532
- - All modules compiled successfully with TypeScript strict mode
533
-
534
- ### ๐ŸŽฏ Migration Guide
535
-
536
- #### From v0.1.0 to v0.2.0
537
-
538
- 1. **Update dependencies**:
539
- ```bash
540
- pnpm install
541
- pnpm build
542
- ```
543
-
544
- 2. **Re-initialize project** (optional, to get new templates):
545
- ```bash
546
- specpow init
547
- ```
548
- Note: User modifications will be preserved (template hash feature)
549
-
550
- 3. **Use new SDK imports** (optional):
551
- ```typescript
552
- // Old way (still works)
553
- import { SDDController } from '@specpow/framework';
554
-
555
- // New way (recommended for tree-shaking)
556
- import { SDDController } from '@specpow/framework/sdd';
557
- ```
558
-
559
- 4. **Configure context/rules** (optional):
560
- ```yaml
561
- # .specpow/config.yaml
562
- context: |
563
- Project description...
564
- rules:
565
- proposal:
566
- - Rule 1
567
- - Rule 2
568
- ```
569
-
570
- 5. **Set up hooks** (optional):
571
- ```json
572
- // .specpow/hooks/hooks.json
573
- {
574
- "hooks": {
575
- "SessionStart": [{ "matcher": "", "command": "node hooks/session-start.js" }]
576
- }
577
- }
578
- ```
579
-
580
- ### ๐Ÿ“Š Statistics
581
-
582
- - **Files Modified**: 35+
583
- - **New Files**: 25+
584
- - **New Features**: 26 (15 first-round + 11 second-round)
585
- - **Bug Fixes**: 7 (3 first-round + 4 pre-existing)
586
- - **Test Coverage**: 860 tests across 37 files (+104%)
587
- - **AI Tool Support**: 6 โ†’ 22 adapters (+267%)
588
- - **Skills**: 30 โ†’ 31 skills (added meta-create-skill)
589
- - **Breaking Changes**: None (fully backward compatible)
590
-
591
- ### ๐Ÿ™ Acknowledgments
592
-
593
- This release incorporates best practices from:
594
- - **OpenSpec**: Spec-driven planning, Delta Spec format, Agent Contract
595
- - **Superpowers**: SDD execution engine, TDD enforcement, review cycles
596
- - **Trellis**: Hook system, cross-session memory, channel collaboration, workflow state tags
597
-
598
- ---
599
-
600
- ## [0.1.0] - Initial Release
601
-
602
- ### โœจ Added
603
-
604
- - OpenSpec artifact graph engine
605
- - Superpowers SDD execution engine
606
- - 30 skills (planning, execution, quality, business)
607
- - 8 agents (PRD, DB design, codegen, testing, review, deployment)
608
- - 6 AI tool adapters (Claude, Cursor, Copilot, CodeBuddy, Codex, Gemini)
609
- - 3 workflow schemas (spec-driven, crud-module, bug-fix)
610
- - 19 CLI commands
611
- - TDD enforcement (RED-GREEN-REFACTOR)
612
- - 5-round review cycle with circuit breaker
613
- - Progress ledger with resume support
614
- - Template engine with AI instruction generation
615
- - Configuration management with Zod validation
616
- - Git worktree support for parallel execution
617
-
618
- [0.3.1]: https://github.com/specpow/framework/compare/v0.3.0...v0.3.1
619
- [0.3.0]: https://github.com/specpow/framework/compare/v0.2.2...v0.3.0
620
- [0.2.2]: https://github.com/specpow/framework/compare/v0.2.1...v0.2.2
621
- [0.2.1]: https://github.com/specpow/framework/compare/v0.2.0...v0.2.1
622
- [0.2.0]: https://github.com/specpow/framework/compare/v0.1.0...v0.2.0
623
- [0.1.0]: https://github.com/specpow/framework/releases/tag/v0.1.0
1
+ # Changelog
2
+
3
+ All notable changes to this project 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
+ ## [0.5.1] - 2026-08-23
9
+
10
+ ### โœจ Delta Spec ๅ็งฐไธ€่‡ดๆ€งไผ˜ๅŒ–
11
+
12
+ - **ไธป่ง„่Œƒๅ็งฐๆธ…ๅ•ๆณจๅ…ฅ**๏ผˆ`src/core/templates/index.ts`๏ผ‰
13
+ - ้—ฎ้ข˜: ไธป่ง„่Œƒ่ถ…่ฟ‡ 2000 ๅญ—็ฌฆๆ—ถๆˆชๆ–ญ๏ผŒAI ็œ‹ไธๅˆฐๆˆชๆ–ญ็‚นๅŽ็š„้œ€ๆฑ‚ๅ็งฐ
14
+ - ไฟฎๅค: ๆˆชๆ–ญๅ‰ๆๅ–ๆ‰€ๆœ‰้œ€ๆฑ‚ๅ็งฐๆธ…ๅ•๏ผŒๅง‹็ปˆๆณจๅ…ฅๅˆฐ AI prompt
15
+
16
+ - **่ทฏ็”ฑๅคฑ่ดฅ่ญฆๅ‘Š**๏ผˆ`src/core/archive/engine.ts`๏ผ‰
17
+ - ้—ฎ้ข˜: MODIFIED/REMOVED ๅ็งฐไธๅŒน้…ๆ—ถๆ“ไฝœ่ขซ้™้ป˜ไธขๅผƒ
18
+ - ไฟฎๅค: `routeDeltaOperations()` ๆ”ถ้›†ๆœช่ทฏ็”ฑๆ“ไฝœ๏ผŒ็”Ÿๆˆ `ๅ็งฐๆœชๅŒน้…` ่ญฆๅ‘Š
19
+
20
+ - **ๆ–ฐๅขž `validate-specs` ๅ‘ฝไปค**๏ผˆ`src/commands/validate-specs.ts`๏ผ‰
21
+ - ๆๅ‰้ชŒ่ฏ delta spec ไธญ MODIFIED/REMOVED/RENAMED ๅ็งฐไธŽไธป่ง„่ŒƒๅŒน้…
22
+ - ๅŸบไบŽ็ผ–่พ‘่ท็ฆปๆไพ›่ฟ‘ไผผๅ็งฐๅปบ่ฎฎ๏ผˆ้˜ˆๅ€ผ โ‰ค 3๏ผ‰
23
+ - ๆ”ฏๆŒ `--change` ๅ’Œ `--json` ้€‰้กน
24
+
25
+ - **apply ้ข„้ชŒ่ฏ**๏ผˆ`src/commands/apply.ts`๏ผ‰
26
+ - ๆ‰ง่กŒๅ‰่‡ชๅŠจๆฃ€ๆต‹ delta spec ๅ็งฐไธๅŒน้…ๅนถ่ญฆๅ‘Š
27
+
28
+ - **SKILL.md ๅ็งฐๆ ก้ชŒ่ง„ๅˆ™**๏ผˆ`.specpow/skills/planning-write-specs/SKILL.md`๏ผ‰
29
+ - ๆ–ฐๅขž"ๅ็งฐๆ ก้ชŒ๏ผˆ้“ๅพ‹๏ผ‰"ๆฎต่ฝ๏ผŒๆŒ‡ๅฏผ AI ็ฒพ็กฎๅŒน้…้œ€ๆฑ‚ๅ็งฐ
30
+
31
+ - **RENAMED ๆจกๆฟๆ ผๅผไฟฎๆญฃ**๏ผˆ`.specpow/schemas/spec-driven/templates/spec.md`๏ผ‰
32
+ - ไปŽ่กจๆ ผๆ ผๅผๆ”นไธบ็ฎญๅคดๆ ผๅผ: `### <ๆ—งๅ็งฐ> โ†’ <ๆ–ฐๅ็งฐ>`
33
+
34
+ ## [0.5.0] - 2026-08-20
35
+
36
+ ### ๐Ÿ”„ ๅฝ’ๆกฃๅผ•ๆ“Žๅ็งฐๅŒน้…่ทฏ็”ฑ๏ผˆBreaking Fix๏ผ‰
37
+
38
+ - **findSpecMutations ไปŽ่ทฏๅพ„ๅŒน้…ๆ”นไธบๅ็งฐๅŒน้…**
39
+ - File: `src/core/archive/engine.ts`
40
+ - ้—ฎ้ข˜: propose ็”Ÿๆˆ็š„ delta ๆ–‡ไปถ่ทฏๅพ„ (`specs/<capability>/spec.md`) ๆฐธ่ฟœๆ— ๆณ•ๅŒน้…ไธป่ง„่Œƒ่ทฏๅพ„
41
+ - ไฟฎๅค: ๆ–ฐๅขž `buildSpecNameIndex()` ๆ‰ซๆไธป่ง„่Œƒๆๅ–้œ€ๆฑ‚ๅ็งฐ็ดขๅผ•
42
+ - ไฟฎๅค: ๆ–ฐๅขž `routeDeltaOperations()` ๆŒ‰้œ€ๆฑ‚ๅ็งฐ่ทฏ็”ฑๆ“ไฝœๅˆฐ็›ฎๆ ‡ๆ–‡ไปถ
43
+ - ไฟฎๅค: ๆ–ฐๅขž `buildSubDeltaContent()` ไธบๆฏไธช็›ฎๆ ‡ๆ–‡ไปถๆž„ๅปบๅญ delta
44
+ - ไฟฎๅค: RENAMED ๅค„็†ๅŽ่‡ชๅŠจๅฐ†ๆ–ฐๅ็งฐๅŠ ๅ…ฅ็ดขๅผ•๏ผŒๆ”ฏๆŒๅŽ็ปญ MODIFIED/REMOVED ๆŒ‰ๆ–ฐๅ็งฐๆŸฅๆ‰พ
45
+
46
+ - **็ฒพ็กฎ้€€ไผ‘ๅˆคๆ–ญ**
47
+ - File: `src/core/archive/engine.ts`
48
+ - ้—ฎ้ข˜: ๆ—ง้€ป่พ‘ "delta ๆ–‡ไปถๅชๅซ REMOVED โ†’ ๆ•ดไธชๆ–‡ไปถ retire" ไผš้”™่ฏฏ้€€ไผ‘ๆœช่ขซ็งป้™ค็š„้œ€ๆฑ‚
49
+ - ไฟฎๅค: ๅขžๅŠ  `fileReqCount` ็ดขๅผ•๏ผŒๅชๆœ‰ๅฝ“ REMOVED ่ฆ†็›–็›ฎๆ ‡ๆ–‡ไปถๅ…จ้ƒจ้œ€ๆฑ‚ๆ—ถๆ‰ retire
50
+ - ้ƒจๅˆ†้€€ไผ‘: ไป…ๆ ‡่ฎฐ่ขซ็งป้™ค็š„้œ€ๆฑ‚ไธบ `[RETIRED]`๏ผŒๅ…ถไป–้œ€ๆฑ‚ไฟ็•™
51
+
52
+ ## [0.4.9] - 2026-08-20
53
+
54
+ ### ๐Ÿ› ๅฝ’ๆกฃๅผ•ๆ“Ž Delta ๆฃ€ๆต‹ๆญฃๅˆ™ไฟฎๅค
55
+
56
+ - **BUG-5 findSpecMutations ๆฃ€ๆต‹ๆญฃๅˆ™ๅผบๅˆถๅ†’ๅท**
57
+ - File: `src/core/archive/engine.ts`
58
+ - Fix: `/##\s+REMOVED:/i` โ†’ `/##\s+REMOVED[:\s]/i`๏ผˆๅ†’ๅทๅฏ้€‰๏ผ‰๏ผŒไธŽ delta-parser ไธ€่‡ด
59
+ - Fix: ๆ–ฐๅขž `hasRenamed` ๆฃ€ๆต‹๏ผŒๆ”ฏๆŒ็บฏ RENAMED ๆ“ไฝœ่งฆๅ‘ๅˆๅนถ
60
+
61
+ ## [0.4.8] - 2026-08-20
62
+
63
+ ### ๐Ÿ› Delta Spec ็ณป็ปŸไฟฎๅค โ€” 4 ไธช Bug + 1 ไธชๆžถๆž„ไฟฎๅค
64
+
65
+ - **GAP-6 propose ้˜ถๆฎต AI ๆ— ๆณ•็œ‹ๅˆฐๅทฒๆœ‰ไธป่ง„่Œƒ**
66
+ - Files: `src/commands/propose.ts`, `src/core/templates/index.ts`
67
+ - Fix: propose ๆ‰ซๆ `.specpow/openspec/specs/` ๆณจๅ…ฅๅˆฐ specs ๅทฅไปถไธŠไธ‹ๆ–‡
68
+
69
+ - **BUG-1 Scenario ๆˆชๆ–ญ Requirement ๅ—**
70
+ - Files: `src/core/archive/delta-parser.ts`, `src/core/archive/delta-merger.ts`
71
+ - Fix: ๆทปๅŠ  `(?!Scenario:\s*)` ่ดŸๅ‘ๅ‰็žป๏ผŒ้˜ฒๆญข `### Scenario:` ็ปˆๆญข `## Requirement:` ๅ—ๆๅ–
72
+
73
+ - **BUG-2 --force ๆ— ๆณ•่ฆ†็›–ๅทฒๅญ˜ๅœจ็š„ ADDED ๅ—**
74
+ - File: `src/core/archive/delta-merger.ts`
75
+ - Fix: ไฟฎๆญฃ ADDED ้˜ถๆฎต้€ป่พ‘๏ผšidenticalโ†’่ทณ่ฟ‡ / forceโ†’ๆ›ฟๆข / ๅฆๅˆ™โ†’ๅ†ฒ็ช
76
+
77
+ - **BUG-2b ๅน‚็ญ‰ๆ€งๆฏ”่พƒๅคฑๆ•ˆ๏ผˆbody vs fullBlock๏ผ‰**
78
+ - File: `src/core/archive/delta-merger.ts`
79
+ - Fix: ๆ–ฐๅขž `extractBlockBody()` ่พ…ๅŠฉๅ‡ฝๆ•ฐ๏ผŒMODIFIED ๅ’Œ ADDED ้˜ถๆฎต็”จ body ๆฏ”่พƒ
80
+
81
+ - **BUG-3 [RETIRED] ้‡ๅคๅ ๅŠ  + ๆ— ๆณ•ๆŸฅๆ‰พๅทฒ้€€ไผ‘ๅ—**
82
+ - Files: `src/core/archive/delta-parser.ts`, `src/core/archive/delta-merger.ts`
83
+ - Fix: ๆ‰€ๆœ‰ header ๅŒน้…ๆญฃๅˆ™ๆ”ฏๆŒ `[RETIRED]` ๅ‰็ผ€๏ผˆๅ…ผๅฎนๆ–ฐๆ—งๆ ผๅผ๏ผ‰๏ผŒREMOVED ้˜ถๆฎตๆทปๅŠ ๅน‚็ญ‰ๆฃ€ๆŸฅ
84
+
85
+ - **ISSUE-4 formatBlock ๅ›บๅฎš ## ็บงๅˆซ**
86
+ - File: `src/core/archive/delta-merger.ts`
87
+ - Fix: formatBlock ๆŽฅๅ— headerLevel ๅ‚ๆ•ฐ๏ผŒMODIFIED ไปŽ็Žฐๆœ‰ๅ—ๆฃ€ๆต‹็บงๅˆซ๏ผŒADDED ้ป˜่ฎค ##
88
+
89
+ ## [0.3.1] - 2026-08-18
90
+
91
+ ### ๐Ÿ› Comprehensive Bug Fix Release โ€” 21 Issues Resolved
92
+
93
+ This patch release addresses 21 verified issues discovered during a comprehensive review of functional runnability and usability. Every fix was verified against actual code before implementation. Build passes, all 849 tests pass.
94
+
95
+ ### ๐Ÿ”ด IMPORTANT Fixes (4 items)
96
+
97
+ - **#1 `init --force` ้€‰้กน็ผบๅคฑ**
98
+ - File: `src/cli/index.ts`
99
+ - Fix: ๆทปๅŠ  `--force` Commander.js ้€‰้กนๅฎšไน‰๏ผŒ้…ๅˆ `TemplateHashManager.reset()` ๅฎž็Žฐๅผบๅˆถ่ฆ†็›–
100
+
101
+ - **#2 `review --diff-file` ๆœชๅฎž้™…่งฃๆž diff ๆ–‡ไปถ**
102
+ - File: `src/commands/review.ts`
103
+ - Fix: ๆทปๅŠ  diff ๆ–‡ไปถ่ฏปๅ–ไธŽๆญฃๅˆ™่งฃๆž๏ผˆ`+++ b/` ๅ‰็ผ€ๅŒน้…๏ผ‰๏ผŒๆๅ–ๅ˜ๆ›ดๆ–‡ไปถ่ทฏๅพ„ๅˆ—่กจ
104
+
105
+ - **#3 `review --model` ้€‰้กนๆ— ๆ•ˆไฝ†ๆ— ่ญฆๅ‘Š**
106
+ - File: `src/commands/review.ts`
107
+ - Fix: ๅฝ“ไผ ๅ…ฅ `--model` ๆ—ถ่พ“ๅ‡บ้ป„่‰ฒ่ญฆๅ‘Š๏ผšๅฎกๆŸฅไธบ้™ๆ€ๅˆ†ๆž๏ผŒไธๆถ‰ๅŠ AI ๆจกๅž‹่ฐƒ็”จ
108
+
109
+ - **#4 Hook ๅคฑ่ดฅ่ขซ้™้ป˜ๅžๆމ**
110
+ - File: `src/core/hooks/hook-registry.ts`
111
+ - Fix: `mergeResults` ไธญๆ•่Žทๅคฑ่ดฅ hook ็š„ error ไฟกๆฏไฝœไธบ warning ่พ“ๅ‡บ
112
+
113
+ ### ๐ŸŸก MODERATE Fixes (8 items)
114
+
115
+ - **#5 `formatForPlatform` ๅฟฝ็•ฅ platform ๅ‚ๆ•ฐ**
116
+ - File: `src/core/hooks/hook-registry.ts`
117
+ - Fix: ๆ นๆฎ platform ๅ‚ๆ•ฐ่ฟ”ๅ›žๅฏนๅบ”ๆ ผๅผ๏ผˆclaude/cursor/generic๏ผ‰๏ผŒ่€Œ้žๅง‹็ปˆ่ฟ”ๅ›ž claude ๆ ผๅผ
118
+ - Breaking: `PlatformOutput` ๆŽฅๅฃๅญ—ๆฎตๆ”นไธบ optional๏ผŒๆ”ฏๆŒๅนณๅฐ็‰นๅฎš่ฟ”ๅ›ž
119
+
120
+ - **#6 `migrate` ๅคฑ่ดฅๆ—ถ้™้ป˜้€€ๅ‡บ็  0**
121
+ - File: `src/cli/index.ts`
122
+ - Fix: ่ฟ็งปๅคฑ่ดฅๆ—ถ่พ“ๅ‡บๅคฑ่ดฅๆญฅ้ชค่ฏฆๆƒ…ๅนถ่ฐƒ็”จ `process.exit(1)`
123
+
124
+ - **#7 `debug` ๆ็คบไธๅญ˜ๅœจ็š„ `--report` ้€‰้กน**
125
+ - File: `src/commands/debug.ts`
126
+ - Fix: ็งป้™ค `console.log` ไธญๅ…ณไบŽ `debug --report` ็š„่ฏฏๅฏผๆ€งๆ็คบ
127
+
128
+ - **#8 `channel send` ๆ— ๆถˆๆฏ็ฑปๅž‹้ชŒ่ฏ**
129
+ - File: `src/commands/channel.ts`
130
+ - Fix: ๆทปๅŠ  MessageType ็™ฝๅๅ•ๆ ก้ชŒ๏ผŒๆ— ๆ•ˆ็ฑปๅž‹่พ“ๅ‡บๆœ‰ๆ•ˆๅ€ผๅˆ—่กจๅนถ้€€ๅ‡บ
131
+
132
+ - **#9 `status` ไปปๅŠกๆญฃๅˆ™ไป…ๅŒน้…ๅฐๅ†™ `[x]`**
133
+ - File: `src/commands/status.ts`
134
+ - Fix: ๆญฃๅˆ™ๆทปๅŠ  `gi` ๆ ‡ๅฟ—๏ผŒๆ”ฏๆŒ `[X]` ๅคงๅ†™ๅฎŒๆˆๆ ‡่ฎฐ
135
+
136
+ - **#10 `verify` ๆ— ๅ˜ๆ›ดๆ—ถ็›ดๆŽฅๆŠฅ้”™้€€ๅ‡บ**
137
+ - File: `src/commands/verify.ts`
138
+ - Fix: ่‡ชๅŠจๆฃ€ๆต‹ๅ”ฏไธ€ๆดป่ทƒๅ˜ๆ›ด๏ผˆๅ•ๅ˜ๆ›ดๅ… `--change`๏ผ‰๏ผŒๅคšๅ˜ๆ›ดๆ—ถๅˆ—ๅ‡บ้€‰้กน
139
+
140
+ - **#11/#12 `init` ๅ†…็ฝฎ Schema/Skill ็›ฎๅฝ•ไธๅญ˜ๅœจๆ—ถ้™้ป˜่ฟ”ๅ›ž**
141
+ - File: `src/commands/init.ts`
142
+ - Fix: ๆทปๅŠ  `console.warn` ่ญฆๅ‘Š่พ“ๅ‡บ๏ผŒๆ็คบๅŒ…ๅฎ‰่ฃ…ๅฏ่ƒฝไธๅฎŒๆ•ด
143
+
144
+ ### ๐ŸŸข MINOR Fixes (9 items)
145
+
146
+ - **#13/#14 `channel` ๆ็คบ้”™่ฏฏๅญๅ‘ฝไปคๅ**
147
+ - File: `src/commands/channel.ts`
148
+ - Fix: `workers add` โ†’ `add-worker`๏ผŒ`tasks create` โ†’ `create-task`
149
+
150
+ - **#15 session-start ๆŠ€่ƒฝๅˆ—่กจไป… 22/34**
151
+ - File: `src/core/hooks/session-start-hook.ts`
152
+ - Fix: ่กฅๅ…จๅ…จ้ƒจ 34 ไธชๆŠ€่ƒฝ๏ผŒๆ–ฐๅขž Meta ๅˆ†็ฑป๏ผˆusing-specpowใ€meta-using-skills ็ญ‰๏ผ‰
153
+
154
+ - **#16 `apply` host-driven ๅ†™ๆ–‡ไปถๅคฑ่ดฅ่ฟ”ๅ›ž็  0**
155
+ - File: `src/commands/apply.ts`
156
+ - Fix: `return` โ†’ `process.exit(1)`๏ผŒ็กฎไฟ task-manifest.json ๅ†™ๅ…ฅๅคฑ่ดฅๆ—ถ่ฟ›็จ‹ๅผ‚ๅธธ้€€ๅ‡บ
157
+
158
+ - **#17 `parseProposal` ็ผบๅฐ‘ risks ่งฃๆž**
159
+ - File: `src/core/parsers/index.ts`
160
+ - Fix: ๆทปๅŠ  Markdown ่กจๆ ผ่งฃๆž้€ป่พ‘๏ผŒๆ”ฏๆŒ `| ้ฃŽ้™ฉ | ๅฝฑๅ“ | ๆฆ‚็އ | ๅบ”ๅฏน |` ๆ ผๅผ
161
+
162
+ - **#18 `runTests()` ๅŒๆญฅ้˜ปๅกžไบ‹ไปถๅพช็Žฏ**
163
+ - File: `src/core/sdd-engine/controller.ts`
164
+ - Fix: `execFileSync` โ†’ ๅผ‚ๆญฅ `execFile` + Promise๏ผŒ้ฟๅ…ๆœ€ๅคš 14 ๅˆ†้’Ÿ็š„ไบ‹ไปถๅพช็Žฏ้˜ปๅกž
165
+
166
+ - **#19 `detectActiveChanges` ้‡ๅค่ฐƒ็”จ**
167
+ - File: `src/core/hooks/session-start-hook.ts`
168
+ - Fix: `detectWorkflowStage` ๆŽฅๆ”ถๅทฒ่ฎก็ฎ—็š„ `activeChanges` ๅ‚ๆ•ฐ๏ผŒ้ฟๅ…้‡ๅคๆ–‡ไปถ็ณป็ปŸๆ‰ซๆ
169
+
170
+ - **#20 PostToolCall ๆฏๆฌกๅทฅๅ…ท่ฐƒ็”จๆณจๅ…ฅๆ— ็”จไธŠไธ‹ๆ–‡**
171
+ - File: `src/core/hooks/post-tool-call-hook.ts`
172
+ - Fix: ไป…ๅœจๆœ‰้˜ถๆฎต่ฝฌๆขไฟกๅทๆ—ถๆณจๅ…ฅ `additionalContext`๏ผŒๆ™ฎ้€šๅทฅๅ…ท่ฐƒ็”จไธๅ†ๆถˆ่€— token
173
+
174
+ - **#21 `initialize()` ๅŒๆญฅๅ‡ฝๆ•ฐ่ฏฏ็”จ `await`**
175
+ - File: `src/commands/init.ts`
176
+ - Fix: ็งป้™ค่ฏฏๅฏผๆ€ง `await`๏ผŒ`engine.initialize()` ไธบๅŒๆญฅๆ–นๆณ•
177
+
178
+ ### ๐Ÿงช Testing
179
+
180
+ - 849 tests pass across 37 test files
181
+ - 3 tests updated to match new PostToolCallHook behavior (no context injection without transition signal)
182
+ - Added `readFileSync` import to `test/hook-system.test.ts`
183
+
184
+ ### ๐Ÿ“ Documentation
185
+
186
+ - CHANGELOG.md: ๆ–ฐๅขž v0.3.1 ็‰ˆๆœฌ่ฎฐๅฝ•
187
+ - README.md: ็‰ˆๆœฌๅކๅฒๆ–ฐๅขž v0.3.1 ไฟฎๅคๆ‘˜่ฆ
188
+ - docs/guide.md: CLI ๅ‘ฝไปคๅ‚่€ƒๆ›ดๆ–ฐ๏ผˆinit --forceใ€reviewใ€verifyใ€channelใ€migrate๏ผ‰
189
+
190
+ ---
191
+
192
+ ## [0.3.0] - 2026-08-15
193
+
194
+ ### ๐Ÿš€ Superpowers Pattern Transformation โ€” Host-Driven Mode
195
+
196
+ This release introduces **dual-mode execution**: the existing TypeScript SDD Engine (Mode A) now coexists with a new **Host-Driven mode** (Mode B), where the host AI agent orchestrates the SDD workflow using its native subagent tools.
197
+
198
+ ### โœจ New Features
199
+
200
+ - **Host-Driven Mode (`--host-driven`)**: New execution mode for `specpow apply` that generates a `task-manifest.json` and delegates orchestration to the host AI agent via SKILL.md instructions. No TypeScript AI-caller subprocess needed.
201
+ - **Bootstrap Meta-Skill (`using-specpow`)**: New skill injected via `SessionStart` hook that teaches the host agent the full SDD workflow, trigger discipline, and iron rules.
202
+ - **SDD Orchestrator Skill (`execution-sdd-orchestrator`)**: Skill file encoding the implementโ†’reviewโ†’fix loop logic, replacing `controller.ts` orchestration in Host-Driven mode. Includes parallel execution guidance.
203
+ - **Subagent Dispatch Skill (`execution-subagent-dispatch`)**: Skill file encoding implementer/reviewer/re-reviewer prompt templates, replacing `ai-caller.ts` prompt construction in Host-Driven mode.
204
+ - **`init` Copies Builtin Skills**: `specpow init` now uses `copyBuiltinSkillsWithHash` to incrementally copy all 34 builtin skill files to target projects, with template-hash protection for user modifications.
205
+
206
+ ### ๐Ÿ—๏ธ Architecture Changes
207
+
208
+ - **Dual-Mode Execution Layer**: Architecture diagram updated to show Mode A (SDD Engine) and Mode B (Host-Driven) side-by-side. Both modes share Ledger, Git ops, and review-loop infrastructure.
209
+ - **Skills Count**: 31 โ†’ 34 (added `using-specpow`, `execution-sdd-orchestrator`, `execution-subagent-dispatch`)
210
+
211
+ ### ๐Ÿ“ฆ Deprecation Markers
212
+
213
+ - `src/core/sdd-engine/controller.ts` โ€” marked `@deprecated`, only used by SDD Engine mode
214
+ - `src/core/sdd-engine/ai-caller.ts` โ€” marked `@deprecated`, only used by SDD Engine mode
215
+ - `src/core/sdd-engine/model-selector.ts` โ€” marked `@deprecated`, model selection guidance now in SKILL.md
216
+
217
+ ### ๐Ÿ”ง Bug Fixes
218
+
219
+ - **CLI `--host-driven` flag registration**: Flag was implemented in `apply.ts` but not registered in Commander.js โ€” fixed.
220
+ - **`copyBuiltinSkillsWithHash` missing definition**: Function was called but never defined in `init.ts` โ€” implemented with same pattern as `copyBuiltinSchemasWithHash`.
221
+
222
+ ### ๐Ÿ“ Documentation
223
+
224
+ - README.md architecture diagram updated for dual-mode execution layer
225
+ - README.md skills table updated from 31 to 34
226
+ - README.md quick-start section documents `--host-driven` flag
227
+
228
+ ## [0.2.2] - 2026-08-15
229
+
230
+ ### ๐Ÿ› Bug Fix: AI Tool Detection
231
+
232
+ - **ไฟฎๅค `specpow init` ๆฃ€ๆต‹ๅˆฐ 0 ไธช AI ๅทฅๅ…ท็š„้—ฎ้ข˜**
233
+ - File: `src/core/init/engine.ts`
234
+ - Root cause: `SUPPORTED_TOOLS` ไธญ Claude Code ็š„ๆฃ€ๆต‹่ทฏๅพ„ไธบ `.claude-plugin/plugin.json`๏ผŒ่ฏฅๆ–‡ไปถๅœจๅฎž้™… Claude Code ้กน็›ฎไธญไธๅญ˜ๅœจ
235
+ - Fix: ๆ›ดๆ–ฐๆ‰€ๆœ‰ๅทฅๅ…ท็š„ `detectionPaths` ไธบ็œŸๅฎžๅญ˜ๅœจ็š„ๆ ‡่ฎฐๆ–‡ไปถ๏ผš
236
+ - Claude Code: `.claude/settings.json`, `.claude/commands`, `.claude/CLAUDE.md`, `CLAUDE.md`
237
+ - Cursor: `.cursor/rules`, `.cursor/mcp.json`
238
+ - GitHub Copilot: `.github/copilot-instructions.md`
239
+ - Gemini CLI: `.gemini/settings.json`, `gemini-extension.json`
240
+ - Codex App: `.codex/instructions.md`
241
+ - OpenCode: `opencode.json`
242
+ - Kimi Code: `.kimi/instructions.md`
243
+ - Pi: `.pi/extensions`
244
+ - Impact: `specpow init` ็Žฐๅœจ่ƒฝๆญฃ็กฎๆฃ€ๆต‹ๅˆฐๅทฒๅฎ‰่ฃ…็š„ AI ๅทฅๅ…ท
245
+
246
+ ---
247
+
248
+ ## [0.2.1] - 2026-08-15
249
+
250
+ ### ๐Ÿ› Bug Fixes & Code Cleanup (9 items from comprehensive review)
251
+
252
+ This patch release addresses issues discovered during a comprehensive code review of the v0.2.0 codebase. All fixes have been verified with the existing test suite (854 tests, 37 files).
253
+
254
+ #### P0: Critical Fixes (1 item)
255
+
256
+ - **#19 Controller ๆœชไผ ้€’ commit SHA ็ป™ ai-caller**
257
+ - File: `src/core/sdd-engine/controller.ts`
258
+ - Fix: `callImplementer()` now passes `headCommit` and `baseCommit` to `aiCaller.call()`, ensuring implementer agents receive correct git context
259
+ - Impact: Without commit SHAs, implementer agents could not accurately diff changes during review loops
260
+
261
+ #### P1: High-Value Fixes (2 items)
262
+
263
+ - **#20 Ledger fix-round ๆ•ฐๆฎไธขๅคฑ**
264
+ - File: `src/core/sdd-engine/ledger.ts`
265
+ - Fix: `recordFixRound()` now appends fix-round entries instead of overwriting previous rounds
266
+ - Impact: Multi-round fix history was lost, making it impossible to track iterative improvements
267
+
268
+ - **#21 design.md ๆœชไผ ้€’็ป™ SDD ๅผ•ๆ“Ž**
269
+ - File: `src/commands/apply.ts`
270
+ - Fix: `design.md` content is now included in `specConstraints` alongside specs content
271
+ - Impact: Implementer agents were missing design context, leading to implementations that deviated from design
272
+
273
+ #### P2: Medium-Priority Fixes (4 items)
274
+
275
+ - **#22 ๆจกๅž‹้…็ฝฎๆญปไปฃ็ ๆธ…็†**
276
+ - Files: `src/core/sdd-engine/controller.ts`, `src/core/sdd-engine/types.ts`
277
+ - Fix: Removed unused `modelTier` field and dead code paths that referenced hardcoded model values
278
+ - Impact: Config `sdd.modelTier` was documented but never actually read; cleanup removes confusion
279
+
280
+ - **#23 ไธฒ่กŒ apply --json ่พ“ๅ‡บๅฎž็Žฐ**
281
+ - File: `src/commands/apply.ts`
282
+ - Fix: Serial (non-parallel) mode now supports `--json` flag, outputting `ApplyData` in Agent Contract format
283
+ - Impact: `specpow apply --json` previously only worked in `--parallel` mode; now consistent across both modes
284
+
285
+ - **#24 projectContext ไผ ้€’ๅŽŸๅง‹่ทฏๅพ„่€Œ้ž้กน็›ฎๅ**
286
+ - Files: `src/commands/apply.ts`, `src/commands/execute.ts`
287
+ - Fix: Changed from passing `projectRoot` (absolute path) to `basename(projectRoot)` (project name) as `projectContext`
288
+ - Impact: SDD engine was receiving `/home/user/my-project` instead of `my-project`, causing context pollution in prompts
289
+
290
+ - **#25 ParallelDispatcher ๅฟฝ็•ฅๆจกๅž‹้…็ฝฎ**
291
+ - File: `src/core/sdd-engine/parallel-dispatcher.ts`
292
+ - Fix: Added `ModelSelector` initialization from `config.modelConfig` and passed selected model to `dispatchImplementer`
293
+ - Impact: Parallel mode always used default model regardless of `config.json` settings
294
+
295
+ #### P3: Low-Priority Cleanup (2 items)
296
+
297
+ - **#26 execute.ts ๅ†—ไฝ™ initialize() ่ฐƒ็”จๆธ…็†**
298
+ - File: `src/commands/execute.ts`
299
+ - Fix: Removed redundant `await controller.initialize()` calls (constructor already handles initialization)
300
+ - Impact: Minor performance improvement and code clarity
301
+
302
+ - **#27 store ้€‰้กนๆญปไปฃ็ ๆธ…็†**
303
+ - Files: `src/commands/apply.ts`, `src/commands/propose.ts`, `src/commands/status.ts`, `src/cli/index.ts`
304
+ - Fix: Removed `--store <store-id>` option from propose/status/apply commands (option was defined but never used)
305
+ - Impact: CLI surface reduced; removed confusing option that had no effect
306
+
307
+ ### ๐Ÿงช Testing
308
+
309
+ - All 854 tests pass across 37 test files
310
+ - No new test failures introduced
311
+ - Infrastructure layer verified: hook-system (77), memory-manager (69), memory-adapters (17), channel-runtime (77), migration (19) โ€” 259 tests
312
+
313
+ ### ๐Ÿ“š Documentation
314
+
315
+ - **CHANGELOG.md**: Added v0.2.1 section documenting all 9 fixes
316
+ - **docs/guide.md**: Updated CLI command reference to reflect removed `--store` option
317
+
318
+ ---
319
+
320
+ ## [0.2.0] - 2026-08-14
321
+
322
+ ### ๐ŸŽ‰ Major Release: 26 Optimization Items from OpenSpec/Superpowers/Trellis
323
+
324
+ This release represents a comprehensive optimization of SpecPow, incorporating best practices from OpenSpec (spec-driven planning), Superpowers (SDD execution engine), and Trellis (workflow automation).
325
+
326
+ **Key Highlights:**
327
+ - **860 tests** (up from 422, +104% coverage)
328
+ - **22 AI tool adapters** (up from 6, +267% support)
329
+ - **31 skills** (added meta-create-skill)
330
+ - **11 second-round optimizations** (performance, defense, extensibility)
331
+
332
+ ### โœจ Added
333
+
334
+ #### P0: Core Fixes (4 items)
335
+
336
+ - **Model Configuration** (#1): Model selection now reads from `config.json` instead of hardcoded values
337
+ - Modified: `src/commands/apply.ts`, `src/core/sdd-engine/controller.ts`
338
+ - Config field: `sdd.modelTier`
339
+
340
+ - **Parallel Dispatcher Integration** (#2): Exposed `ParallelDispatcher` to CLI with `--parallel` flag
341
+ - Modified: `src/commands/apply.ts`
342
+ - Usage: `specpow apply --parallel`
343
+
344
+ - **Test Framework Auto-Detection** (#3): Extended `runTests()` to support any test framework
345
+ - Modified: `src/core/sdd-engine/controller.ts`
346
+ - Auto-detects test script from `package.json`
347
+
348
+ - **Three-Layer Schema Resolution** (#4): Added user-level schema layer
349
+ - Modified: `src/core/artifact-graph/resolver.ts`
350
+ - Resolution order: project โ†’ user (`~/.specpow/schemas/`) โ†’ package
351
+
352
+ #### P1: High-Value Features (6 items)
353
+
354
+ - **Delta Spec Structured Merge** (#5): OpenSpec-style merge algorithm
355
+ - New: `src/core/archive/delta-parser.ts`, `src/core/archive/delta-merger.ts`
356
+ - Modified: `src/core/archive/engine.ts`
357
+ - Supports: ADDED/MODIFIED/REMOVED/RENAMED operations
358
+ - Features: Conflict detection, idempotency, merge order enforcement
359
+
360
+ - **Agent Contract** (#6): JSON output support for all CLI commands
361
+ - Modified: All `src/commands/*.ts` files
362
+ - Usage: `specpow status --json`, `specpow schemas --json`
363
+ - Format: `{ status, data, diagnostics, nextSteps }`
364
+
365
+ - **Context & Rules Injection** (#7): Project-level context and rules configuration
366
+ - Modified: `src/core/config/config-schema.ts`, `src/core/artifact-graph/instruction-loader.ts`
367
+ - New fields in `.specpow/config.yaml`: `context`, `rules`
368
+ - Template placeholders: `{{context}}`, `{{rules}}`
369
+
370
+ - **Interactive Explore Mode** (#8): Socratic requirement exploration
371
+ - Modified: `src/commands/explore.ts`, `skills/planning-explore/SKILL.md`
372
+ - Features: Curiosity-driven, visual (ASCII diagrams), adaptive, non-committal
373
+
374
+ - **Extended AI Tool Adapters** (#9): **22 AI tool adapters** (was 6)
375
+ - Modified: `src/core/command-generation/`
376
+ - New adapters: Amazon Q, Cline, Continue, Kiro, Trae, Qwen, Kimi, GitHub Copilot Workspace, Roo Code, Auggie, Bob, Crush, Devin, Junie, Qoder
377
+ - Features: Unified `AdapterRegistry`, invocation styles (namespaced/flat/prefix)
378
+
379
+ - **Template Hash Incremental Update** (#10): Protect user modifications during `specpow init`
380
+ - New: `src/core/init/template-hash.ts`
381
+ - Modified: `src/commands/init.ts`
382
+ - Storage: `.specpow/.template-hashes.json`
383
+ - Logic: Skip unchanged, create `.new` for user-modified, overwrite for framework-updated
384
+
385
+ #### P2: Innovative Features (5 items)
386
+
387
+ - **Hook Auto-Context Injection** (#11): 4-hook pipeline for automatic context injection
388
+ - New: `src/core/hooks/` module
389
+ - Hooks: `SessionStart`, `UserPromptSubmit`, `PreToolCall`, `PostToolCall`
390
+ - Configuration: `.specpow/hooks/hooks.json`
391
+
392
+ - **Cross-Session Memory System** (#12): Event-sourced memory with keyword extraction
393
+ - New: `src/core/memory/` module
394
+ - Features: Keyword extraction, phase detection, relevance scoring, inverted index
395
+ - **Adapters**: SQLite (WAL mode, prepared statements), Sharded JSON (incremental updates, atomic writes)
396
+ - API: `createMemoryManager()`, `indexSession()`, `search()`, `getRecent()`
397
+
398
+ - **Channel Multi-Agent Collaboration** (#13): Event-sourced multi-agent runtime
399
+ - New: `src/core/channel/` module
400
+ - Features: Supervisor pattern, worker lifecycle management, task assignment strategies
401
+ - Strategies: round_robin, least_busy, priority
402
+ - API: `createChannelRuntime()`, `Supervisor`, `registerWorker()`, `assignTask()`
403
+
404
+ - **Workflow State Tags** (#14): Trellis-style `[workflow-state:xxx]` tags
405
+ - New: `src/core/workflow-state.ts`
406
+ - Features: Tag generation, parsing, stage inference, transition hooks
407
+ - API: `stageToTag()`, `parseWorkflowStateTag()`, `inferStageFromPath()`, `onStageTransition()`
408
+
409
+ - **Core SDK Subpath Exports** (#15): Modular imports via package.json exports
410
+ - Modified: `package.json` (added `exports` field)
411
+ - New: `src/core/archive/index.ts`, `src/core/config/index.ts`
412
+ - 10 subpath exports: `/sdd`, `/artifact-graph`, `/archive`, `/hooks`, `/memory`, `/channel`, `/workflow-state`, `/config`, `/command-generation`
413
+
414
+ #### Second-Round Optimizations (11 items)
415
+
416
+ - **Four-Module Test Coverage** (#16): Comprehensive tests for Memory, Channel, Hook, WorkflowState
417
+ - New: `test/memory-manager.test.ts`, `test/channel-runtime.test.ts`, `test/hook-system.test.ts`, `test/workflow-state.test.ts`
418
+ - Tests: ~300 new test cases
419
+
420
+ - **Delta Spec Four Enhancements** (#17): Advanced OpenSpec features
421
+ - Modified: `src/core/archive/engine.ts`, `src/core/archive/delta-merger.ts`
422
+ - Features: Scenario-loss guard, capability retirement, unaccounted content detection, code fence masking
423
+ - Tests: ~150 new test cases
424
+
425
+ - **Rationalization Defense System** (#18): Extended defense tables + red flags + pressure testing
426
+ - Modified: `skills/execution-tdd/SKILL.md`, `skills/execution-systematic-debugging/SKILL.md`, `skills/execution-verification-before-completion/SKILL.md`
427
+ - Added: 11+ row defense tables, 13 red flags, pressure testing checklists
428
+ - Fixed: Duplicate YAML frontmatter bugs
429
+
430
+ - **AI Adapter Extension to 22** (#19): 8 new adapters
431
+ - Modified: `src/core/command-generation/index.ts`
432
+ - New: GitHub Copilot Workspace, Roo Code, Auggie, Bob, Crush, Devin, Junie, Qoder
433
+ - Tests: ~50 new test cases
434
+
435
+ - **Hook System Completion** (#20): PreToolCall + PostToolCall implementation
436
+ - New: `src/core/hooks/pre-tool-call-hook.ts`, `src/core/hooks/post-tool-call-hook.ts`
437
+ - Modified: `src/core/hooks/hook-registry.ts`, `src/core/hooks/index.ts`
438
+ - Features: Tool call interception, workflow context injection, result logging
439
+
440
+ - **Hook + WorkflowState Deep Integration** (#21): Stage transition hooks + state recovery
441
+ - Modified: `src/core/hooks/workflow-state-hook.ts`, `src/core/workflow-state.ts`
442
+ - Features: Auto-inject stage tags, detect stage transitions, recover last workflow state on session start
443
+ - Tests: ~80 new test cases
444
+
445
+ - **Meta-Create-Skill** (#22): Skill for creating new skills
446
+ - New: `skills/meta-create-skill/SKILL.md`
447
+ - Features: Guided skill creation, auto-generate SKILL.md skeleton, auto-register to skill directory
448
+ - Tests: 12 test cases
449
+
450
+ - **Version Migration System** (#23): Safe version upgrades with automatic backup
451
+ - New: `src/core/migration/`, `src/commands/migrate.ts`
452
+ - Features: Migration manifests, dry-run preview, automatic backup
453
+ - Tests: ~60 test cases
454
+
455
+ - **Memory Platform Adapter Extension** (#24): SQLite + Sharded JSON adapters
456
+ - New: `src/core/memory/adapters/sqlite-adapter.ts`, `src/core/memory/adapters/json-adapter.ts`
457
+ - SQLite: WAL mode, prepared statements, transaction support
458
+ - JSON: Multi-file sharding, incremental updates, atomic writes
459
+ - Tests: 17 test cases
460
+
461
+ - **Memory Adapter Performance Optimization** (#25): Prepared statement caching + incremental updates
462
+ - Modified: `src/core/memory/adapters/sqlite-adapter.ts`, `src/core/memory/adapters/json-adapter.ts`
463
+ - SQLite: 11 cached prepared statements, explicit timeline sorting
464
+ - JSON: Incremental shard updates (compare old vs new), atomic writes (temp + rename)
465
+ - Performance: ~30% faster save/load operations
466
+
467
+ - **Pre-existing Defect Fixes** (#26): Fixed 714 โ†’ 860 test cases
468
+ - Fixed: 4 pre-existing test failures
469
+ - Added: 146 new test cases across all modules
470
+
471
+ ### ๐Ÿ”ง Fixed
472
+
473
+ - **Memory Module Bug**: Fixed `calculateRelevance()` crash when `keywords` parameter is undefined
474
+ - File: `src/core/memory/memory-indexer.ts`
475
+ - Fix: Added null-safe handling with `?? []`
476
+
477
+ - **Command Generation Bug**: Added missing `AdapterRegistry.getAll()` method
478
+ - File: `src/core/command-generation/index.ts`
479
+ - Fix: Implemented static method to return all adapter instances
480
+
481
+ - **TypeScript Compilation Errors**: Fixed 6 type errors in channel module
482
+ - Files: `channel-types.ts`, `channel-supervisor.ts`, `channel-event-log.ts`
483
+ - Fixes: Added missing event types, removed unused imports, fixed async return types
484
+
485
+ - **Pre-existing Test Failures**: Fixed 4 failing tests
486
+ - Fixed: Memory adapter edge cases
487
+ - Fixed: Hook registration race conditions
488
+ - Fixed: WorkflowState tag parsing
489
+ - Result: 714 โ†’ 860 passing tests
490
+
491
+ ### ๐Ÿ“š Documentation
492
+
493
+ - **README.md**: Comprehensive update with all v0.2.0 features
494
+ - Added: SDK subpath exports guide
495
+ - Added: Context & Rules injection examples
496
+ - Added: Hook system documentation (4-hook pipeline)
497
+ - Added: Memory system API guide (SQLite + JSON adapters)
498
+ - Added: Channel multi-agent examples
499
+ - Added: Workflow state tag usage (with transition hooks)
500
+ - Added: Delta spec merge format (with 4 enhancements)
501
+ - Added: Template hash update logic
502
+ - Added: Migration system documentation
503
+ - Added: Meta-create-skill documentation
504
+ - Updated: Architecture diagram with new "Intelligence Layer"
505
+ - Updated: AI tool support table (6 โ†’ 22 tools)
506
+ - Updated: Project structure with new modules
507
+ - Updated: Test count (422 โ†’ 860)
508
+
509
+ - **CHANGELOG.md**: Comprehensive v0.2.0 changelog
510
+ - Documented all 26 optimization items
511
+ - Added migration guide
512
+ - Added statistics and performance improvements
513
+
514
+ ### ๐Ÿงช Testing
515
+
516
+ - **Integration Testing**: All 10 subpath exports verified
517
+ - Main entry: 12 exports โœ…
518
+ - SDD engine: 17 exports โœ…
519
+ - Artifact Graph: 5 exports โœ…
520
+ - Archive: Delta parsing โœ…
521
+ - Hooks: 8 exports โœ…
522
+ - Memory: Keyword extraction, phase detection, relevance scoring โœ…
523
+ - Channel: Multi-agent runtime โœ…
524
+ - Workflow State: Tag generation/parsing โœ…
525
+ - Config: 14 exports โœ…
526
+ - Command Generation: 14 adapters โœ…
527
+
528
+ ### ๐Ÿ“ฆ Package
529
+
530
+ - Version bump: 0.1.0 โ†’ 0.2.0
531
+ - Added `exports` field to `package.json` for subpath imports
532
+ - All modules compiled successfully with TypeScript strict mode
533
+
534
+ ### ๐ŸŽฏ Migration Guide
535
+
536
+ #### From v0.1.0 to v0.2.0
537
+
538
+ 1. **Update dependencies**:
539
+ ```bash
540
+ pnpm install
541
+ pnpm build
542
+ ```
543
+
544
+ 2. **Re-initialize project** (optional, to get new templates):
545
+ ```bash
546
+ specpow init
547
+ ```
548
+ Note: User modifications will be preserved (template hash feature)
549
+
550
+ 3. **Use new SDK imports** (optional):
551
+ ```typescript
552
+ // Old way (still works)
553
+ import { SDDController } from '@specpow/framework';
554
+
555
+ // New way (recommended for tree-shaking)
556
+ import { SDDController } from '@specpow/framework/sdd';
557
+ ```
558
+
559
+ 4. **Configure context/rules** (optional):
560
+ ```yaml
561
+ # .specpow/config.yaml
562
+ context: |
563
+ Project description...
564
+ rules:
565
+ proposal:
566
+ - Rule 1
567
+ - Rule 2
568
+ ```
569
+
570
+ 5. **Set up hooks** (optional):
571
+ ```json
572
+ // .specpow/hooks/hooks.json
573
+ {
574
+ "hooks": {
575
+ "SessionStart": [{ "matcher": "", "command": "node hooks/session-start.js" }]
576
+ }
577
+ }
578
+ ```
579
+
580
+ ### ๐Ÿ“Š Statistics
581
+
582
+ - **Files Modified**: 35+
583
+ - **New Files**: 25+
584
+ - **New Features**: 26 (15 first-round + 11 second-round)
585
+ - **Bug Fixes**: 7 (3 first-round + 4 pre-existing)
586
+ - **Test Coverage**: 860 tests across 37 files (+104%)
587
+ - **AI Tool Support**: 6 โ†’ 22 adapters (+267%)
588
+ - **Skills**: 30 โ†’ 31 skills (added meta-create-skill)
589
+ - **Breaking Changes**: None (fully backward compatible)
590
+
591
+ ### ๐Ÿ™ Acknowledgments
592
+
593
+ This release incorporates best practices from:
594
+ - **OpenSpec**: Spec-driven planning, Delta Spec format, Agent Contract
595
+ - **Superpowers**: SDD execution engine, TDD enforcement, review cycles
596
+ - **Trellis**: Hook system, cross-session memory, channel collaboration, workflow state tags
597
+
598
+ ---
599
+
600
+ ## [0.1.0] - Initial Release
601
+
602
+ ### โœจ Added
603
+
604
+ - OpenSpec artifact graph engine
605
+ - Superpowers SDD execution engine
606
+ - 30 skills (planning, execution, quality, business)
607
+ - 8 agents (PRD, DB design, codegen, testing, review, deployment)
608
+ - 6 AI tool adapters (Claude, Cursor, Copilot, CodeBuddy, Codex, Gemini)
609
+ - 3 workflow schemas (spec-driven, crud-module, bug-fix)
610
+ - 19 CLI commands
611
+ - TDD enforcement (RED-GREEN-REFACTOR)
612
+ - 5-round review cycle with circuit breaker
613
+ - Progress ledger with resume support
614
+ - Template engine with AI instruction generation
615
+ - Configuration management with Zod validation
616
+ - Git worktree support for parallel execution
617
+
618
+ [0.3.1]: https://github.com/specpow/framework/compare/v0.3.0...v0.3.1
619
+ [0.3.0]: https://github.com/specpow/framework/compare/v0.2.2...v0.3.0
620
+ [0.2.2]: https://github.com/specpow/framework/compare/v0.2.1...v0.2.2
621
+ [0.2.1]: https://github.com/specpow/framework/compare/v0.2.0...v0.2.1
622
+ [0.2.0]: https://github.com/specpow/framework/compare/v0.1.0...v0.2.0
623
+ [0.1.0]: https://github.com/specpow/framework/releases/tag/v0.1.0