specweave 0.12.7 → 0.13.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (918) hide show
  1. package/CLAUDE.md +199 -46
  2. package/bin/specweave.js +12 -0
  3. package/dist/cli/commands/check-discipline.d.ts +16 -0
  4. package/dist/cli/commands/check-discipline.d.ts.map +1 -0
  5. package/dist/cli/commands/check-discipline.js +79 -0
  6. package/dist/cli/commands/check-discipline.js.map +1 -0
  7. package/dist/cli/commands/init.d.ts.map +1 -1
  8. package/dist/cli/commands/init.js +25 -313
  9. package/dist/cli/commands/init.js.map +1 -1
  10. package/dist/cli/helpers/issue-tracker/index.d.ts.map +1 -1
  11. package/dist/cli/helpers/issue-tracker/index.js +142 -0
  12. package/dist/cli/helpers/issue-tracker/index.js.map +1 -1
  13. package/dist/core/increment/discipline-checker.d.ts +60 -0
  14. package/dist/core/increment/discipline-checker.d.ts.map +1 -0
  15. package/dist/core/increment/discipline-checker.js +274 -0
  16. package/dist/core/increment/discipline-checker.js.map +1 -0
  17. package/dist/core/increment/metadata-validator.d.ts +33 -0
  18. package/dist/core/increment/metadata-validator.d.ts.map +1 -0
  19. package/dist/core/increment/metadata-validator.js +147 -0
  20. package/dist/core/increment/metadata-validator.js.map +1 -0
  21. package/dist/core/increment/types.d.ts +88 -0
  22. package/dist/core/increment/types.d.ts.map +1 -0
  23. package/dist/core/increment/types.js +8 -0
  24. package/dist/core/increment/types.js.map +1 -0
  25. package/dist/core/qa/qa-runner.d.ts.map +1 -1
  26. package/dist/core/qa/qa-runner.js +22 -4
  27. package/dist/core/qa/qa-runner.js.map +1 -1
  28. package/dist/plugins/specweave/lib/hooks/git-diff-analyzer.d.ts +89 -0
  29. package/dist/plugins/specweave/lib/hooks/git-diff-analyzer.d.ts.map +1 -0
  30. package/dist/plugins/specweave/lib/hooks/git-diff-analyzer.js +226 -0
  31. package/dist/plugins/specweave/lib/hooks/git-diff-analyzer.js.map +1 -0
  32. package/dist/plugins/specweave/lib/hooks/invoke-translator-skill.d.ts +60 -0
  33. package/dist/plugins/specweave/lib/hooks/invoke-translator-skill.d.ts.map +1 -0
  34. package/dist/plugins/specweave/lib/hooks/invoke-translator-skill.js +201 -0
  35. package/dist/plugins/specweave/lib/hooks/invoke-translator-skill.js.map +1 -0
  36. package/dist/plugins/specweave/lib/hooks/prepare-reflection-context.d.ts +42 -0
  37. package/dist/plugins/specweave/lib/hooks/prepare-reflection-context.d.ts.map +1 -0
  38. package/dist/plugins/specweave/lib/hooks/prepare-reflection-context.js +123 -0
  39. package/dist/plugins/specweave/lib/hooks/prepare-reflection-context.js.map +1 -0
  40. package/dist/plugins/specweave/lib/hooks/reflection-config-loader.d.ts +45 -0
  41. package/dist/plugins/specweave/lib/hooks/reflection-config-loader.d.ts.map +1 -0
  42. package/dist/plugins/specweave/lib/hooks/reflection-config-loader.js +132 -0
  43. package/dist/plugins/specweave/lib/hooks/reflection-config-loader.js.map +1 -0
  44. package/dist/plugins/specweave/lib/hooks/reflection-parser.d.ts +33 -0
  45. package/dist/plugins/specweave/lib/hooks/reflection-parser.d.ts.map +1 -0
  46. package/dist/plugins/specweave/lib/hooks/reflection-parser.js +419 -0
  47. package/dist/plugins/specweave/lib/hooks/reflection-parser.js.map +1 -0
  48. package/dist/plugins/specweave/lib/hooks/reflection-prompt-builder.d.ts +56 -0
  49. package/dist/plugins/specweave/lib/hooks/reflection-prompt-builder.d.ts.map +1 -0
  50. package/dist/plugins/specweave/lib/hooks/reflection-prompt-builder.js +239 -0
  51. package/dist/plugins/specweave/lib/hooks/reflection-prompt-builder.js.map +1 -0
  52. package/dist/plugins/specweave/lib/hooks/reflection-storage.d.ts +64 -0
  53. package/dist/plugins/specweave/lib/hooks/reflection-storage.d.ts.map +1 -0
  54. package/dist/plugins/specweave/lib/hooks/reflection-storage.js +305 -0
  55. package/dist/plugins/specweave/lib/hooks/reflection-storage.js.map +1 -0
  56. package/dist/plugins/specweave/lib/hooks/run-self-reflection.d.ts +43 -0
  57. package/dist/plugins/specweave/lib/hooks/run-self-reflection.d.ts.map +1 -0
  58. package/dist/plugins/specweave/lib/hooks/run-self-reflection.js +203 -0
  59. package/dist/plugins/specweave/lib/hooks/run-self-reflection.js.map +1 -0
  60. package/dist/plugins/specweave/lib/hooks/sync-living-docs.d.ts +27 -0
  61. package/dist/plugins/specweave/lib/hooks/sync-living-docs.d.ts.map +1 -0
  62. package/dist/plugins/specweave/lib/hooks/sync-living-docs.js +144 -0
  63. package/dist/plugins/specweave/lib/hooks/sync-living-docs.js.map +1 -0
  64. package/dist/plugins/specweave/lib/hooks/translate-file.d.ts +59 -0
  65. package/dist/plugins/specweave/lib/hooks/translate-file.d.ts.map +1 -0
  66. package/dist/plugins/specweave/lib/hooks/translate-file.js +350 -0
  67. package/dist/plugins/specweave/lib/hooks/translate-file.js.map +1 -0
  68. package/dist/plugins/specweave/lib/hooks/translate-living-docs.d.ts +13 -0
  69. package/dist/plugins/specweave/lib/hooks/translate-living-docs.d.ts.map +1 -0
  70. package/dist/plugins/specweave/lib/hooks/translate-living-docs.js +175 -0
  71. package/dist/plugins/specweave/lib/hooks/translate-living-docs.js.map +1 -0
  72. package/dist/plugins/specweave/lib/hooks/types/reflection-types.d.ts +164 -0
  73. package/dist/plugins/specweave/lib/hooks/types/reflection-types.d.ts.map +1 -0
  74. package/dist/plugins/specweave/lib/hooks/types/reflection-types.js +73 -0
  75. package/dist/plugins/specweave/lib/hooks/types/reflection-types.js.map +1 -0
  76. package/dist/plugins/specweave/lib/hooks/update-tasks-md.d.ts +29 -0
  77. package/dist/plugins/specweave/lib/hooks/update-tasks-md.d.ts.map +1 -0
  78. package/dist/plugins/specweave/lib/hooks/update-tasks-md.js +203 -0
  79. package/dist/plugins/specweave/lib/hooks/update-tasks-md.js.map +1 -0
  80. package/dist/plugins/specweave-ado/lib/ado-board-resolver.d.ts +94 -0
  81. package/dist/plugins/specweave-ado/lib/ado-board-resolver.d.ts.map +1 -0
  82. package/dist/plugins/specweave-ado/lib/ado-board-resolver.js +219 -0
  83. package/dist/plugins/specweave-ado/lib/ado-board-resolver.js.map +1 -0
  84. package/dist/plugins/specweave-ado/lib/ado-client-v2.d.ts +124 -0
  85. package/dist/plugins/specweave-ado/lib/ado-client-v2.d.ts.map +1 -0
  86. package/dist/plugins/specweave-ado/lib/ado-client-v2.js +382 -0
  87. package/dist/plugins/specweave-ado/lib/ado-client-v2.js.map +1 -0
  88. package/dist/plugins/specweave-ado/lib/ado-client.d.ts +112 -0
  89. package/dist/plugins/specweave-ado/lib/ado-client.d.ts.map +1 -0
  90. package/dist/plugins/specweave-ado/lib/ado-client.js +257 -0
  91. package/dist/plugins/specweave-ado/lib/ado-client.js.map +1 -0
  92. package/dist/plugins/specweave-ado/lib/ado-hierarchical-sync.d.ts +40 -0
  93. package/dist/plugins/specweave-ado/lib/ado-hierarchical-sync.d.ts.map +1 -0
  94. package/dist/plugins/specweave-ado/lib/ado-hierarchical-sync.js +370 -0
  95. package/dist/plugins/specweave-ado/lib/ado-hierarchical-sync.js.map +1 -0
  96. package/dist/plugins/specweave-ado/lib/ado-spec-sync.d.ts +100 -0
  97. package/dist/plugins/specweave-ado/lib/ado-spec-sync.d.ts.map +1 -0
  98. package/dist/plugins/specweave-ado/lib/ado-spec-sync.js +471 -0
  99. package/dist/plugins/specweave-ado/lib/ado-spec-sync.js.map +1 -0
  100. package/dist/plugins/specweave-ado/lib/project-selector.d.ts +42 -0
  101. package/dist/plugins/specweave-ado/lib/project-selector.d.ts.map +1 -0
  102. package/dist/plugins/specweave-ado/lib/project-selector.js +211 -0
  103. package/dist/plugins/specweave-ado/lib/project-selector.js.map +1 -0
  104. package/dist/plugins/specweave-github/lib/cli-sync-increment-changes.d.ts +12 -0
  105. package/dist/plugins/specweave-github/lib/cli-sync-increment-changes.d.ts.map +1 -0
  106. package/dist/plugins/specweave-github/lib/cli-sync-increment-changes.js +28 -0
  107. package/dist/plugins/specweave-github/lib/cli-sync-increment-changes.js.map +1 -0
  108. package/dist/plugins/specweave-github/lib/github-board-resolver.d.ts +54 -0
  109. package/dist/plugins/specweave-github/lib/github-board-resolver.d.ts.map +1 -0
  110. package/dist/plugins/specweave-github/lib/github-board-resolver.js +122 -0
  111. package/dist/plugins/specweave-github/lib/github-board-resolver.js.map +1 -0
  112. package/dist/plugins/specweave-github/lib/github-client-v2.d.ts +104 -0
  113. package/dist/plugins/specweave-github/lib/github-client-v2.d.ts.map +1 -0
  114. package/dist/plugins/specweave-github/lib/github-client-v2.js +408 -0
  115. package/dist/plugins/specweave-github/lib/github-client-v2.js.map +1 -0
  116. package/dist/plugins/specweave-github/lib/github-client.d.ts +96 -0
  117. package/dist/plugins/specweave-github/lib/github-client.d.ts.map +1 -0
  118. package/dist/plugins/specweave-github/lib/github-client.js +299 -0
  119. package/dist/plugins/specweave-github/lib/github-client.js.map +1 -0
  120. package/dist/plugins/specweave-github/lib/github-hierarchical-sync.d.ts +29 -0
  121. package/dist/plugins/specweave-github/lib/github-hierarchical-sync.d.ts.map +1 -0
  122. package/dist/plugins/specweave-github/lib/github-hierarchical-sync.js +268 -0
  123. package/dist/plugins/specweave-github/lib/github-hierarchical-sync.js.map +1 -0
  124. package/dist/plugins/specweave-github/lib/github-issue-updater.d.ts +61 -0
  125. package/dist/plugins/specweave-github/lib/github-issue-updater.d.ts.map +1 -0
  126. package/dist/plugins/specweave-github/lib/github-issue-updater.js +327 -0
  127. package/dist/plugins/specweave-github/lib/github-issue-updater.js.map +1 -0
  128. package/dist/plugins/specweave-github/lib/github-spec-sync.d.ts +108 -0
  129. package/dist/plugins/specweave-github/lib/github-spec-sync.d.ts.map +1 -0
  130. package/dist/plugins/specweave-github/lib/github-spec-sync.js +505 -0
  131. package/dist/plugins/specweave-github/lib/github-spec-sync.js.map +1 -0
  132. package/dist/plugins/specweave-github/lib/github-sync-bidirectional.d.ts +36 -0
  133. package/dist/plugins/specweave-github/lib/github-sync-bidirectional.d.ts.map +1 -0
  134. package/dist/plugins/specweave-github/lib/github-sync-bidirectional.js +228 -0
  135. package/dist/plugins/specweave-github/lib/github-sync-bidirectional.js.map +1 -0
  136. package/dist/plugins/specweave-github/lib/github-sync-increment-changes.d.ts +18 -0
  137. package/dist/plugins/specweave-github/lib/github-sync-increment-changes.d.ts.map +1 -0
  138. package/dist/plugins/specweave-github/lib/github-sync-increment-changes.js +287 -0
  139. package/dist/plugins/specweave-github/lib/github-sync-increment-changes.js.map +1 -0
  140. package/dist/plugins/specweave-github/lib/index.d.ts +10 -0
  141. package/dist/plugins/specweave-github/lib/index.d.ts.map +1 -0
  142. package/dist/plugins/specweave-github/lib/index.js +10 -0
  143. package/dist/plugins/specweave-github/lib/index.js.map +1 -0
  144. package/dist/plugins/specweave-github/lib/repo-selector.d.ts +49 -0
  145. package/dist/plugins/specweave-github/lib/repo-selector.d.ts.map +1 -0
  146. package/dist/plugins/specweave-github/lib/repo-selector.js +216 -0
  147. package/dist/plugins/specweave-github/lib/repo-selector.js.map +1 -0
  148. package/dist/plugins/specweave-github/lib/subtask-sync.d.ts +51 -0
  149. package/dist/plugins/specweave-github/lib/subtask-sync.d.ts.map +1 -0
  150. package/dist/plugins/specweave-github/lib/subtask-sync.js +147 -0
  151. package/dist/plugins/specweave-github/lib/subtask-sync.js.map +1 -0
  152. package/dist/plugins/specweave-github/lib/task-parser.d.ts +37 -0
  153. package/dist/plugins/specweave-github/lib/task-parser.d.ts.map +1 -0
  154. package/dist/plugins/specweave-github/lib/task-parser.js +211 -0
  155. package/dist/plugins/specweave-github/lib/task-parser.js.map +1 -0
  156. package/dist/plugins/specweave-github/lib/task-sync.d.ts +51 -0
  157. package/dist/plugins/specweave-github/lib/task-sync.d.ts.map +1 -0
  158. package/dist/plugins/specweave-github/lib/task-sync.js +332 -0
  159. package/dist/plugins/specweave-github/lib/task-sync.js.map +1 -0
  160. package/dist/plugins/specweave-github/lib/types.d.ts +80 -0
  161. package/dist/plugins/specweave-github/lib/types.d.ts.map +1 -0
  162. package/dist/plugins/specweave-github/lib/types.js +5 -0
  163. package/dist/plugins/specweave-github/lib/types.js.map +1 -0
  164. package/dist/plugins/specweave-jira/lib/jira-board-resolver.d.ts +50 -0
  165. package/dist/plugins/specweave-jira/lib/jira-board-resolver.d.ts.map +1 -0
  166. package/dist/plugins/specweave-jira/lib/jira-board-resolver.js +84 -0
  167. package/dist/plugins/specweave-jira/lib/jira-board-resolver.js.map +1 -0
  168. package/dist/plugins/specweave-jira/lib/jira-hierarchical-sync.d.ts +33 -0
  169. package/dist/plugins/specweave-jira/lib/jira-hierarchical-sync.d.ts.map +1 -0
  170. package/dist/plugins/specweave-jira/lib/jira-hierarchical-sync.js +206 -0
  171. package/dist/plugins/specweave-jira/lib/jira-hierarchical-sync.js.map +1 -0
  172. package/dist/plugins/specweave-jira/lib/jira-spec-sync.d.ts +105 -0
  173. package/dist/plugins/specweave-jira/lib/jira-spec-sync.d.ts.map +1 -0
  174. package/dist/plugins/specweave-jira/lib/jira-spec-sync.js +456 -0
  175. package/dist/plugins/specweave-jira/lib/jira-spec-sync.js.map +1 -0
  176. package/dist/plugins/specweave-jira/lib/project-selector.d.ts +42 -0
  177. package/dist/plugins/specweave-jira/lib/project-selector.d.ts.map +1 -0
  178. package/dist/plugins/specweave-jira/lib/project-selector.js +216 -0
  179. package/dist/plugins/specweave-jira/lib/project-selector.js.map +1 -0
  180. package/dist/plugins/specweave-jira/lib/reorganization-detector.d.ts +67 -0
  181. package/dist/plugins/specweave-jira/lib/reorganization-detector.d.ts.map +1 -0
  182. package/dist/plugins/specweave-jira/lib/reorganization-detector.js +252 -0
  183. package/dist/plugins/specweave-jira/lib/reorganization-detector.js.map +1 -0
  184. package/dist/plugins/specweave-jira/lib/setup-wizard.d.ts +29 -0
  185. package/dist/plugins/specweave-jira/lib/setup-wizard.d.ts.map +1 -0
  186. package/dist/plugins/specweave-jira/lib/setup-wizard.js +219 -0
  187. package/dist/plugins/specweave-jira/lib/setup-wizard.js.map +1 -0
  188. package/dist/src/adapters/adapter-base.d.ts +71 -0
  189. package/dist/src/adapters/adapter-base.d.ts.map +1 -0
  190. package/dist/src/adapters/adapter-base.js +139 -0
  191. package/dist/src/adapters/adapter-base.js.map +1 -0
  192. package/dist/src/adapters/adapter-interface.d.ts +149 -0
  193. package/dist/src/adapters/adapter-interface.d.ts.map +1 -0
  194. package/dist/src/adapters/adapter-interface.js +8 -0
  195. package/dist/src/adapters/adapter-interface.js.map +1 -0
  196. package/dist/src/adapters/adapter-loader.d.ts +91 -0
  197. package/dist/src/adapters/adapter-loader.d.ts.map +1 -0
  198. package/dist/src/adapters/adapter-loader.js +238 -0
  199. package/dist/src/adapters/adapter-loader.js.map +1 -0
  200. package/dist/src/adapters/agents-md-generator.d.ts +48 -0
  201. package/dist/src/adapters/agents-md-generator.d.ts.map +1 -0
  202. package/dist/src/adapters/agents-md-generator.js +193 -0
  203. package/dist/src/adapters/agents-md-generator.js.map +1 -0
  204. package/dist/src/adapters/claude/adapter.d.ts +128 -0
  205. package/dist/src/adapters/claude/adapter.d.ts.map +1 -0
  206. package/dist/src/adapters/claude/adapter.js +415 -0
  207. package/dist/src/adapters/claude/adapter.js.map +1 -0
  208. package/dist/src/adapters/claude-md-generator.d.ts +78 -0
  209. package/dist/src/adapters/claude-md-generator.d.ts.map +1 -0
  210. package/dist/src/adapters/claude-md-generator.js +307 -0
  211. package/dist/src/adapters/claude-md-generator.js.map +1 -0
  212. package/dist/src/adapters/codex/adapter.d.ts +50 -0
  213. package/dist/src/adapters/codex/adapter.d.ts.map +1 -0
  214. package/dist/src/adapters/codex/adapter.js +316 -0
  215. package/dist/src/adapters/codex/adapter.js.map +1 -0
  216. package/dist/src/adapters/cursor/adapter.d.ts +98 -0
  217. package/dist/src/adapters/cursor/adapter.d.ts.map +1 -0
  218. package/dist/src/adapters/cursor/adapter.js +406 -0
  219. package/dist/src/adapters/cursor/adapter.js.map +1 -0
  220. package/dist/src/adapters/doc-generator.d.ts +69 -0
  221. package/dist/src/adapters/doc-generator.d.ts.map +1 -0
  222. package/dist/src/adapters/doc-generator.js +247 -0
  223. package/dist/src/adapters/doc-generator.js.map +1 -0
  224. package/dist/src/adapters/gemini/adapter.d.ts +50 -0
  225. package/dist/src/adapters/gemini/adapter.d.ts.map +1 -0
  226. package/dist/src/adapters/gemini/adapter.js +281 -0
  227. package/dist/src/adapters/gemini/adapter.js.map +1 -0
  228. package/dist/src/adapters/generic/adapter.d.ts +86 -0
  229. package/dist/src/adapters/generic/adapter.d.ts.map +1 -0
  230. package/dist/src/adapters/generic/adapter.js +338 -0
  231. package/dist/src/adapters/generic/adapter.js.map +1 -0
  232. package/dist/src/cli/commands/abandon.d.ts +13 -0
  233. package/dist/src/cli/commands/abandon.d.ts.map +1 -0
  234. package/dist/src/cli/commands/abandon.js +15 -0
  235. package/dist/src/cli/commands/abandon.js.map +1 -0
  236. package/dist/src/cli/commands/import-docs.d.ts +21 -0
  237. package/dist/src/cli/commands/import-docs.d.ts.map +1 -0
  238. package/dist/src/cli/commands/import-docs.js +146 -0
  239. package/dist/src/cli/commands/import-docs.js.map +1 -0
  240. package/dist/src/cli/commands/init-multiproject.d.ts +11 -0
  241. package/dist/src/cli/commands/init-multiproject.d.ts.map +1 -0
  242. package/dist/src/cli/commands/init-multiproject.js +202 -0
  243. package/dist/src/cli/commands/init-multiproject.js.map +1 -0
  244. package/dist/src/cli/commands/init.d.ts +9 -0
  245. package/dist/src/cli/commands/init.d.ts.map +1 -0
  246. package/dist/src/cli/commands/init.js +1444 -0
  247. package/dist/src/cli/commands/init.js.map +1 -0
  248. package/dist/src/cli/commands/install.d.ts +9 -0
  249. package/dist/src/cli/commands/install.d.ts.map +1 -0
  250. package/dist/src/cli/commands/install.js +127 -0
  251. package/dist/src/cli/commands/install.js.map +1 -0
  252. package/dist/src/cli/commands/list.d.ts +8 -0
  253. package/dist/src/cli/commands/list.d.ts.map +1 -0
  254. package/dist/src/cli/commands/list.js +119 -0
  255. package/dist/src/cli/commands/list.js.map +1 -0
  256. package/dist/src/cli/commands/migrate-to-multiproject.d.ts +37 -0
  257. package/dist/src/cli/commands/migrate-to-multiproject.d.ts.map +1 -0
  258. package/dist/src/cli/commands/migrate-to-multiproject.js +189 -0
  259. package/dist/src/cli/commands/migrate-to-multiproject.js.map +1 -0
  260. package/dist/src/cli/commands/migrate-to-profiles.d.ts +25 -0
  261. package/dist/src/cli/commands/migrate-to-profiles.d.ts.map +1 -0
  262. package/dist/src/cli/commands/migrate-to-profiles.js +350 -0
  263. package/dist/src/cli/commands/migrate-to-profiles.js.map +1 -0
  264. package/dist/src/cli/commands/pause.d.ts +13 -0
  265. package/dist/src/cli/commands/pause.d.ts.map +1 -0
  266. package/dist/src/cli/commands/pause.js +15 -0
  267. package/dist/src/cli/commands/pause.js.map +1 -0
  268. package/dist/src/cli/commands/qa.d.ts +54 -0
  269. package/dist/src/cli/commands/qa.d.ts.map +1 -0
  270. package/dist/src/cli/commands/qa.js +98 -0
  271. package/dist/src/cli/commands/qa.js.map +1 -0
  272. package/dist/src/cli/commands/resume.d.ts +12 -0
  273. package/dist/src/cli/commands/resume.d.ts.map +1 -0
  274. package/dist/src/cli/commands/resume.js +14 -0
  275. package/dist/src/cli/commands/resume.js.map +1 -0
  276. package/dist/src/cli/commands/status.d.ts +12 -0
  277. package/dist/src/cli/commands/status.d.ts.map +1 -0
  278. package/dist/src/cli/commands/status.js +23 -0
  279. package/dist/src/cli/commands/status.js.map +1 -0
  280. package/dist/src/cli/commands/switch-project.d.ts +13 -0
  281. package/dist/src/cli/commands/switch-project.d.ts.map +1 -0
  282. package/dist/src/cli/commands/switch-project.js +91 -0
  283. package/dist/src/cli/commands/switch-project.js.map +1 -0
  284. package/dist/src/cli/commands/validate-jira.d.ts +35 -0
  285. package/dist/src/cli/commands/validate-jira.d.ts.map +1 -0
  286. package/dist/src/cli/commands/validate-jira.js +112 -0
  287. package/dist/src/cli/commands/validate-jira.js.map +1 -0
  288. package/dist/src/cli/commands/validate-plugins.d.ts +41 -0
  289. package/dist/src/cli/commands/validate-plugins.d.ts.map +1 -0
  290. package/dist/src/cli/commands/validate-plugins.js +171 -0
  291. package/dist/src/cli/commands/validate-plugins.js.map +1 -0
  292. package/dist/src/cli/helpers/issue-tracker/ado.d.ts +57 -0
  293. package/dist/src/cli/helpers/issue-tracker/ado.d.ts.map +1 -0
  294. package/dist/src/cli/helpers/issue-tracker/ado.js +243 -0
  295. package/dist/src/cli/helpers/issue-tracker/ado.js.map +1 -0
  296. package/dist/src/cli/helpers/issue-tracker/github.d.ts +65 -0
  297. package/dist/src/cli/helpers/issue-tracker/github.d.ts.map +1 -0
  298. package/dist/src/cli/helpers/issue-tracker/github.js +426 -0
  299. package/dist/src/cli/helpers/issue-tracker/github.js.map +1 -0
  300. package/dist/src/cli/helpers/issue-tracker/index.d.ts +22 -0
  301. package/dist/src/cli/helpers/issue-tracker/index.d.ts.map +1 -0
  302. package/dist/src/cli/helpers/issue-tracker/index.js +314 -0
  303. package/dist/src/cli/helpers/issue-tracker/index.js.map +1 -0
  304. package/dist/src/cli/helpers/issue-tracker/jira.d.ts +61 -0
  305. package/dist/src/cli/helpers/issue-tracker/jira.d.ts.map +1 -0
  306. package/dist/src/cli/helpers/issue-tracker/jira.js +404 -0
  307. package/dist/src/cli/helpers/issue-tracker/jira.js.map +1 -0
  308. package/dist/src/cli/helpers/issue-tracker/types.d.ts +108 -0
  309. package/dist/src/cli/helpers/issue-tracker/types.d.ts.map +1 -0
  310. package/dist/src/cli/helpers/issue-tracker/types.js +16 -0
  311. package/dist/src/cli/helpers/issue-tracker/types.js.map +1 -0
  312. package/dist/src/cli/helpers/issue-tracker/utils.d.ts +112 -0
  313. package/dist/src/cli/helpers/issue-tracker/utils.d.ts.map +1 -0
  314. package/dist/src/cli/helpers/issue-tracker/utils.js +247 -0
  315. package/dist/src/cli/helpers/issue-tracker/utils.js.map +1 -0
  316. package/dist/src/core/agent-model-manager.d.ts +52 -0
  317. package/dist/src/core/agent-model-manager.d.ts.map +1 -0
  318. package/dist/src/core/agent-model-manager.js +120 -0
  319. package/dist/src/core/agent-model-manager.js.map +1 -0
  320. package/dist/src/core/brownfield/analyzer.d.ts +86 -0
  321. package/dist/src/core/brownfield/analyzer.d.ts.map +1 -0
  322. package/dist/src/core/brownfield/analyzer.js +365 -0
  323. package/dist/src/core/brownfield/analyzer.js.map +1 -0
  324. package/dist/src/core/brownfield/importer.d.ts +76 -0
  325. package/dist/src/core/brownfield/importer.d.ts.map +1 -0
  326. package/dist/src/core/brownfield/importer.js +287 -0
  327. package/dist/src/core/brownfield/importer.js.map +1 -0
  328. package/dist/src/core/config-manager.d.ts +47 -0
  329. package/dist/src/core/config-manager.d.ts.map +1 -0
  330. package/dist/src/core/config-manager.js +136 -0
  331. package/dist/src/core/config-manager.js.map +1 -0
  332. package/dist/src/core/cost-tracker.d.ts +108 -0
  333. package/dist/src/core/cost-tracker.d.ts.map +1 -0
  334. package/dist/src/core/cost-tracker.js +281 -0
  335. package/dist/src/core/cost-tracker.js.map +1 -0
  336. package/dist/src/core/credentials-manager.d.ts +107 -0
  337. package/dist/src/core/credentials-manager.d.ts.map +1 -0
  338. package/dist/src/core/credentials-manager.js +457 -0
  339. package/dist/src/core/credentials-manager.js.map +1 -0
  340. package/dist/src/core/i18n/language-detector.d.ts +29 -0
  341. package/dist/src/core/i18n/language-detector.d.ts.map +1 -0
  342. package/dist/src/core/i18n/language-detector.js +143 -0
  343. package/dist/src/core/i18n/language-detector.js.map +1 -0
  344. package/dist/src/core/i18n/language-manager.d.ts +101 -0
  345. package/dist/src/core/i18n/language-manager.d.ts.map +1 -0
  346. package/dist/src/core/i18n/language-manager.js +232 -0
  347. package/dist/src/core/i18n/language-manager.js.map +1 -0
  348. package/dist/src/core/i18n/language-registry.d.ts +44 -0
  349. package/dist/src/core/i18n/language-registry.d.ts.map +1 -0
  350. package/dist/src/core/i18n/language-registry.js +234 -0
  351. package/dist/src/core/i18n/language-registry.js.map +1 -0
  352. package/dist/src/core/i18n/locale-manager.d.ts +62 -0
  353. package/dist/src/core/i18n/locale-manager.d.ts.map +1 -0
  354. package/dist/src/core/i18n/locale-manager.js +137 -0
  355. package/dist/src/core/i18n/locale-manager.js.map +1 -0
  356. package/dist/src/core/i18n/system-prompt-injector.d.ts +33 -0
  357. package/dist/src/core/i18n/system-prompt-injector.d.ts.map +1 -0
  358. package/dist/src/core/i18n/system-prompt-injector.js +131 -0
  359. package/dist/src/core/i18n/system-prompt-injector.js.map +1 -0
  360. package/dist/src/core/i18n/types.d.ts +151 -0
  361. package/dist/src/core/i18n/types.d.ts.map +1 -0
  362. package/dist/src/core/i18n/types.js +11 -0
  363. package/dist/src/core/i18n/types.js.map +1 -0
  364. package/dist/src/core/increment/limits.d.ts +68 -0
  365. package/dist/src/core/increment/limits.d.ts.map +1 -0
  366. package/dist/src/core/increment/limits.js +224 -0
  367. package/dist/src/core/increment/limits.js.map +1 -0
  368. package/dist/src/core/increment/metadata-manager.d.ts +114 -0
  369. package/dist/src/core/increment/metadata-manager.d.ts.map +1 -0
  370. package/dist/src/core/increment/metadata-manager.js +320 -0
  371. package/dist/src/core/increment/metadata-manager.js.map +1 -0
  372. package/dist/src/core/increment/status-commands.d.ts +43 -0
  373. package/dist/src/core/increment/status-commands.d.ts.map +1 -0
  374. package/dist/src/core/increment/status-commands.js +277 -0
  375. package/dist/src/core/increment/status-commands.js.map +1 -0
  376. package/dist/src/core/increment-status.d.ts +72 -0
  377. package/dist/src/core/increment-status.d.ts.map +1 -0
  378. package/dist/src/core/increment-status.js +227 -0
  379. package/dist/src/core/increment-status.js.map +1 -0
  380. package/dist/src/core/model-selector.d.ts +57 -0
  381. package/dist/src/core/model-selector.d.ts.map +1 -0
  382. package/dist/src/core/model-selector.js +115 -0
  383. package/dist/src/core/model-selector.js.map +1 -0
  384. package/dist/src/core/phase-detector.d.ts +62 -0
  385. package/dist/src/core/phase-detector.d.ts.map +1 -0
  386. package/dist/src/core/phase-detector.js +229 -0
  387. package/dist/src/core/phase-detector.js.map +1 -0
  388. package/dist/src/core/plugin-loader.d.ts +131 -0
  389. package/dist/src/core/plugin-loader.d.ts.map +1 -0
  390. package/dist/src/core/plugin-loader.js +421 -0
  391. package/dist/src/core/plugin-loader.js.map +1 -0
  392. package/dist/src/core/project-manager.d.ts +127 -0
  393. package/dist/src/core/project-manager.d.ts.map +1 -0
  394. package/dist/src/core/project-manager.js +524 -0
  395. package/dist/src/core/project-manager.js.map +1 -0
  396. package/dist/src/core/project-structure-detector.d.ts +92 -0
  397. package/dist/src/core/project-structure-detector.d.ts.map +1 -0
  398. package/dist/src/core/project-structure-detector.js +289 -0
  399. package/dist/src/core/project-structure-detector.js.map +1 -0
  400. package/dist/src/core/qa/qa-runner.d.ts +16 -0
  401. package/dist/src/core/qa/qa-runner.d.ts.map +1 -0
  402. package/dist/src/core/qa/qa-runner.js +404 -0
  403. package/dist/src/core/qa/qa-runner.js.map +1 -0
  404. package/dist/src/core/qa/quality-gate-decider.d.ts +53 -0
  405. package/dist/src/core/qa/quality-gate-decider.d.ts.map +1 -0
  406. package/dist/src/core/qa/quality-gate-decider.js +268 -0
  407. package/dist/src/core/qa/quality-gate-decider.js.map +1 -0
  408. package/dist/src/core/qa/risk-calculator.d.ts +126 -0
  409. package/dist/src/core/qa/risk-calculator.d.ts.map +1 -0
  410. package/dist/src/core/qa/risk-calculator.js +247 -0
  411. package/dist/src/core/qa/risk-calculator.js.map +1 -0
  412. package/dist/src/core/qa/types.d.ts +315 -0
  413. package/dist/src/core/qa/types.d.ts.map +1 -0
  414. package/dist/src/core/qa/types.js +8 -0
  415. package/dist/src/core/qa/types.js.map +1 -0
  416. package/dist/src/core/rfc-generator-v2.d.ts +149 -0
  417. package/dist/src/core/rfc-generator-v2.d.ts.map +1 -0
  418. package/dist/src/core/rfc-generator-v2.js +399 -0
  419. package/dist/src/core/rfc-generator-v2.js.map +1 -0
  420. package/dist/src/core/specs/spec-metadata-manager.d.ts +70 -0
  421. package/dist/src/core/specs/spec-metadata-manager.d.ts.map +1 -0
  422. package/dist/src/core/specs/spec-metadata-manager.js +371 -0
  423. package/dist/src/core/specs/spec-metadata-manager.js.map +1 -0
  424. package/dist/src/core/specs/spec-parser.d.ts +66 -0
  425. package/dist/src/core/specs/spec-parser.d.ts.map +1 -0
  426. package/dist/src/core/specs/spec-parser.js +276 -0
  427. package/dist/src/core/specs/spec-parser.js.map +1 -0
  428. package/dist/src/core/sync/bidirectional-engine.d.ts +110 -0
  429. package/dist/src/core/sync/bidirectional-engine.d.ts.map +1 -0
  430. package/dist/src/core/sync/bidirectional-engine.js +356 -0
  431. package/dist/src/core/sync/bidirectional-engine.js.map +1 -0
  432. package/dist/src/core/sync/folder-mapper.d.ts +71 -0
  433. package/dist/src/core/sync/folder-mapper.d.ts.map +1 -0
  434. package/dist/src/core/sync/folder-mapper.js +168 -0
  435. package/dist/src/core/sync/folder-mapper.js.map +1 -0
  436. package/dist/src/core/sync/profile-manager.d.ts +72 -0
  437. package/dist/src/core/sync/profile-manager.d.ts.map +1 -0
  438. package/dist/src/core/sync/profile-manager.js +338 -0
  439. package/dist/src/core/sync/profile-manager.js.map +1 -0
  440. package/dist/src/core/sync/profile-selector.d.ts +52 -0
  441. package/dist/src/core/sync/profile-selector.d.ts.map +1 -0
  442. package/dist/src/core/sync/profile-selector.js +179 -0
  443. package/dist/src/core/sync/profile-selector.js.map +1 -0
  444. package/dist/src/core/sync/profile-validator.d.ts +52 -0
  445. package/dist/src/core/sync/profile-validator.d.ts.map +1 -0
  446. package/dist/src/core/sync/profile-validator.js +225 -0
  447. package/dist/src/core/sync/profile-validator.js.map +1 -0
  448. package/dist/src/core/sync/project-context.d.ts +81 -0
  449. package/dist/src/core/sync/project-context.d.ts.map +1 -0
  450. package/dist/src/core/sync/project-context.js +354 -0
  451. package/dist/src/core/sync/project-context.js.map +1 -0
  452. package/dist/src/core/sync/rate-limiter.d.ts +116 -0
  453. package/dist/src/core/sync/rate-limiter.d.ts.map +1 -0
  454. package/dist/src/core/sync/rate-limiter.js +308 -0
  455. package/dist/src/core/sync/rate-limiter.js.map +1 -0
  456. package/dist/src/core/sync/time-range-selector.d.ts +48 -0
  457. package/dist/src/core/sync/time-range-selector.d.ts.map +1 -0
  458. package/dist/src/core/sync/time-range-selector.js +224 -0
  459. package/dist/src/core/sync/time-range-selector.js.map +1 -0
  460. package/dist/src/core/types/config.d.ts +90 -0
  461. package/dist/src/core/types/config.d.ts.map +1 -0
  462. package/dist/src/core/types/config.js +44 -0
  463. package/dist/src/core/types/config.js.map +1 -0
  464. package/dist/src/core/types/increment-metadata.d.ts +120 -0
  465. package/dist/src/core/types/increment-metadata.d.ts.map +1 -0
  466. package/dist/src/core/types/increment-metadata.js +138 -0
  467. package/dist/src/core/types/increment-metadata.js.map +1 -0
  468. package/dist/src/core/types/plugin.d.ts +283 -0
  469. package/dist/src/core/types/plugin.d.ts.map +1 -0
  470. package/dist/src/core/types/plugin.js +49 -0
  471. package/dist/src/core/types/plugin.js.map +1 -0
  472. package/dist/src/core/types/spec-metadata.d.ts +229 -0
  473. package/dist/src/core/types/spec-metadata.d.ts.map +1 -0
  474. package/dist/src/core/types/spec-metadata.js +14 -0
  475. package/dist/src/core/types/spec-metadata.js.map +1 -0
  476. package/dist/src/core/types/sync-profile.d.ts +403 -0
  477. package/dist/src/core/types/sync-profile.d.ts.map +1 -0
  478. package/dist/src/core/types/sync-profile.js +55 -0
  479. package/dist/src/core/types/sync-profile.js.map +1 -0
  480. package/dist/src/hooks/lib/git-diff-analyzer.d.ts +89 -0
  481. package/dist/src/hooks/lib/git-diff-analyzer.d.ts.map +1 -0
  482. package/dist/src/hooks/lib/git-diff-analyzer.js +226 -0
  483. package/dist/src/hooks/lib/git-diff-analyzer.js.map +1 -0
  484. package/dist/src/hooks/lib/invoke-translator-skill.d.ts +60 -0
  485. package/dist/src/hooks/lib/invoke-translator-skill.d.ts.map +1 -0
  486. package/dist/src/hooks/lib/invoke-translator-skill.js +201 -0
  487. package/dist/src/hooks/lib/invoke-translator-skill.js.map +1 -0
  488. package/dist/src/hooks/lib/prepare-reflection-context.d.ts +42 -0
  489. package/dist/src/hooks/lib/prepare-reflection-context.d.ts.map +1 -0
  490. package/dist/src/hooks/lib/prepare-reflection-context.js +123 -0
  491. package/dist/src/hooks/lib/prepare-reflection-context.js.map +1 -0
  492. package/dist/src/hooks/lib/reflection-config-loader.d.ts +45 -0
  493. package/dist/src/hooks/lib/reflection-config-loader.d.ts.map +1 -0
  494. package/dist/src/hooks/lib/reflection-config-loader.js +132 -0
  495. package/dist/src/hooks/lib/reflection-config-loader.js.map +1 -0
  496. package/dist/src/hooks/lib/reflection-parser.d.ts +33 -0
  497. package/dist/src/hooks/lib/reflection-parser.d.ts.map +1 -0
  498. package/dist/src/hooks/lib/reflection-parser.js +419 -0
  499. package/dist/src/hooks/lib/reflection-parser.js.map +1 -0
  500. package/dist/src/hooks/lib/reflection-prompt-builder.d.ts +56 -0
  501. package/dist/src/hooks/lib/reflection-prompt-builder.d.ts.map +1 -0
  502. package/dist/src/hooks/lib/reflection-prompt-builder.js +239 -0
  503. package/dist/src/hooks/lib/reflection-prompt-builder.js.map +1 -0
  504. package/dist/src/hooks/lib/reflection-storage.d.ts +64 -0
  505. package/dist/src/hooks/lib/reflection-storage.d.ts.map +1 -0
  506. package/dist/src/hooks/lib/reflection-storage.js +305 -0
  507. package/dist/src/hooks/lib/reflection-storage.js.map +1 -0
  508. package/dist/src/hooks/lib/run-self-reflection.d.ts +43 -0
  509. package/dist/src/hooks/lib/run-self-reflection.d.ts.map +1 -0
  510. package/dist/src/hooks/lib/run-self-reflection.js +203 -0
  511. package/dist/src/hooks/lib/run-self-reflection.js.map +1 -0
  512. package/dist/src/hooks/lib/sync-living-docs.d.ts +27 -0
  513. package/dist/src/hooks/lib/sync-living-docs.d.ts.map +1 -0
  514. package/dist/src/hooks/lib/sync-living-docs.js +116 -0
  515. package/dist/src/hooks/lib/sync-living-docs.js.map +1 -0
  516. package/dist/src/hooks/lib/translate-file.d.ts +59 -0
  517. package/dist/src/hooks/lib/translate-file.d.ts.map +1 -0
  518. package/dist/src/hooks/lib/translate-file.js +350 -0
  519. package/dist/src/hooks/lib/translate-file.js.map +1 -0
  520. package/dist/src/hooks/lib/translate-living-docs.d.ts +13 -0
  521. package/dist/src/hooks/lib/translate-living-docs.d.ts.map +1 -0
  522. package/dist/src/hooks/lib/translate-living-docs.js +175 -0
  523. package/dist/src/hooks/lib/translate-living-docs.js.map +1 -0
  524. package/dist/src/hooks/lib/types/reflection-types.d.ts +164 -0
  525. package/dist/src/hooks/lib/types/reflection-types.d.ts.map +1 -0
  526. package/dist/src/hooks/lib/types/reflection-types.js +73 -0
  527. package/dist/src/hooks/lib/types/reflection-types.js.map +1 -0
  528. package/dist/src/hooks/lib/update-tasks-md.d.ts +29 -0
  529. package/dist/src/hooks/lib/update-tasks-md.d.ts.map +1 -0
  530. package/dist/src/hooks/lib/update-tasks-md.js +203 -0
  531. package/dist/src/hooks/lib/update-tasks-md.js.map +1 -0
  532. package/dist/src/integrations/ado/ado-client.d.ts +127 -0
  533. package/dist/src/integrations/ado/ado-client.d.ts.map +1 -0
  534. package/dist/src/integrations/ado/ado-client.js +416 -0
  535. package/dist/src/integrations/ado/ado-client.js.map +1 -0
  536. package/dist/src/integrations/jira/jira-client.d.ts +139 -0
  537. package/dist/src/integrations/jira/jira-client.d.ts.map +1 -0
  538. package/dist/src/integrations/jira/jira-client.js +386 -0
  539. package/dist/src/integrations/jira/jira-client.js.map +1 -0
  540. package/dist/src/integrations/jira/jira-incremental-mapper.d.ts +75 -0
  541. package/dist/src/integrations/jira/jira-incremental-mapper.d.ts.map +1 -0
  542. package/dist/src/integrations/jira/jira-incremental-mapper.js +474 -0
  543. package/dist/src/integrations/jira/jira-incremental-mapper.js.map +1 -0
  544. package/dist/src/integrations/jira/jira-mapper.d.ts +105 -0
  545. package/dist/src/integrations/jira/jira-mapper.d.ts.map +1 -0
  546. package/dist/src/integrations/jira/jira-mapper.js +494 -0
  547. package/dist/src/integrations/jira/jira-mapper.js.map +1 -0
  548. package/dist/src/metrics/calculators/change-failure-rate.d.ts +22 -0
  549. package/dist/src/metrics/calculators/change-failure-rate.d.ts.map +1 -0
  550. package/dist/src/metrics/calculators/change-failure-rate.js +70 -0
  551. package/dist/src/metrics/calculators/change-failure-rate.js.map +1 -0
  552. package/dist/src/metrics/calculators/deployment-frequency.d.ts +20 -0
  553. package/dist/src/metrics/calculators/deployment-frequency.d.ts.map +1 -0
  554. package/dist/src/metrics/calculators/deployment-frequency.js +61 -0
  555. package/dist/src/metrics/calculators/deployment-frequency.js.map +1 -0
  556. package/dist/src/metrics/calculators/lead-time.d.ts +22 -0
  557. package/dist/src/metrics/calculators/lead-time.d.ts.map +1 -0
  558. package/dist/src/metrics/calculators/lead-time.js +82 -0
  559. package/dist/src/metrics/calculators/lead-time.js.map +1 -0
  560. package/dist/src/metrics/calculators/mttr.d.ts +21 -0
  561. package/dist/src/metrics/calculators/mttr.d.ts.map +1 -0
  562. package/dist/src/metrics/calculators/mttr.js +60 -0
  563. package/dist/src/metrics/calculators/mttr.js.map +1 -0
  564. package/dist/src/metrics/dora-calculator.d.ts +28 -0
  565. package/dist/src/metrics/dora-calculator.d.ts.map +1 -0
  566. package/dist/src/metrics/dora-calculator.js +117 -0
  567. package/dist/src/metrics/dora-calculator.js.map +1 -0
  568. package/dist/src/metrics/github-client.d.ts +51 -0
  569. package/dist/src/metrics/github-client.d.ts.map +1 -0
  570. package/dist/src/metrics/github-client.js +133 -0
  571. package/dist/src/metrics/github-client.js.map +1 -0
  572. package/dist/src/metrics/report-generator.d.ts +17 -0
  573. package/dist/src/metrics/report-generator.d.ts.map +1 -0
  574. package/dist/src/metrics/report-generator.js +403 -0
  575. package/dist/src/metrics/report-generator.js.map +1 -0
  576. package/dist/src/metrics/types.d.ts +112 -0
  577. package/dist/src/metrics/types.d.ts.map +1 -0
  578. package/dist/src/metrics/types.js +10 -0
  579. package/dist/src/metrics/types.js.map +1 -0
  580. package/dist/src/metrics/utils/percentile.d.ts +25 -0
  581. package/dist/src/metrics/utils/percentile.d.ts.map +1 -0
  582. package/dist/src/metrics/utils/percentile.js +46 -0
  583. package/dist/src/metrics/utils/percentile.js.map +1 -0
  584. package/dist/src/metrics/utils/tier-classifier.d.ts +61 -0
  585. package/dist/src/metrics/utils/tier-classifier.d.ts.map +1 -0
  586. package/dist/src/metrics/utils/tier-classifier.js +100 -0
  587. package/dist/src/metrics/utils/tier-classifier.js.map +1 -0
  588. package/dist/src/testing/test-generator.d.ts +117 -0
  589. package/dist/src/testing/test-generator.d.ts.map +1 -0
  590. package/dist/src/testing/test-generator.js +370 -0
  591. package/dist/src/testing/test-generator.js.map +1 -0
  592. package/dist/src/types/cost-tracking.d.ts +43 -0
  593. package/dist/src/types/cost-tracking.d.ts.map +1 -0
  594. package/dist/src/types/cost-tracking.js +8 -0
  595. package/dist/src/types/cost-tracking.js.map +1 -0
  596. package/dist/src/types/model-selection.d.ts +53 -0
  597. package/dist/src/types/model-selection.d.ts.map +1 -0
  598. package/dist/src/types/model-selection.js +12 -0
  599. package/dist/src/types/model-selection.js.map +1 -0
  600. package/dist/src/utils/agents-md-compiler.d.ts +68 -0
  601. package/dist/src/utils/agents-md-compiler.d.ts.map +1 -0
  602. package/dist/src/utils/agents-md-compiler.js +420 -0
  603. package/dist/src/utils/agents-md-compiler.js.map +1 -0
  604. package/dist/src/utils/auth-helpers.d.ts +58 -0
  605. package/dist/src/utils/auth-helpers.d.ts.map +1 -0
  606. package/dist/src/utils/auth-helpers.js +108 -0
  607. package/dist/src/utils/auth-helpers.js.map +1 -0
  608. package/dist/src/utils/auto-install.d.ts +47 -0
  609. package/dist/src/utils/auto-install.d.ts.map +1 -0
  610. package/dist/src/utils/auto-install.js +211 -0
  611. package/dist/src/utils/auto-install.js.map +1 -0
  612. package/dist/src/utils/claude-cli-detector.d.ts +75 -0
  613. package/dist/src/utils/claude-cli-detector.d.ts.map +1 -0
  614. package/dist/src/utils/claude-cli-detector.js +285 -0
  615. package/dist/src/utils/claude-cli-detector.js.map +1 -0
  616. package/dist/src/utils/cost-reporter.d.ts +58 -0
  617. package/dist/src/utils/cost-reporter.d.ts.map +1 -0
  618. package/dist/src/utils/cost-reporter.js +224 -0
  619. package/dist/src/utils/cost-reporter.js.map +1 -0
  620. package/dist/src/utils/docs-preview/config-generator.d.ts +46 -0
  621. package/dist/src/utils/docs-preview/config-generator.d.ts.map +1 -0
  622. package/dist/src/utils/docs-preview/config-generator.js +377 -0
  623. package/dist/src/utils/docs-preview/config-generator.js.map +1 -0
  624. package/dist/src/utils/docs-preview/docusaurus-setup.d.ts +38 -0
  625. package/dist/src/utils/docs-preview/docusaurus-setup.d.ts.map +1 -0
  626. package/dist/src/utils/docs-preview/docusaurus-setup.js +177 -0
  627. package/dist/src/utils/docs-preview/docusaurus-setup.js.map +1 -0
  628. package/dist/src/utils/docs-preview/index.d.ts +7 -0
  629. package/dist/src/utils/docs-preview/index.d.ts.map +1 -0
  630. package/dist/src/utils/docs-preview/index.js +7 -0
  631. package/dist/src/utils/docs-preview/index.js.map +1 -0
  632. package/dist/src/utils/docs-preview/package-installer.d.ts +42 -0
  633. package/dist/src/utils/docs-preview/package-installer.d.ts.map +1 -0
  634. package/dist/src/utils/docs-preview/package-installer.js +182 -0
  635. package/dist/src/utils/docs-preview/package-installer.js.map +1 -0
  636. package/dist/src/utils/docs-preview/server-manager.d.ts +30 -0
  637. package/dist/src/utils/docs-preview/server-manager.d.ts.map +1 -0
  638. package/dist/src/utils/docs-preview/server-manager.js +212 -0
  639. package/dist/src/utils/docs-preview/server-manager.js.map +1 -0
  640. package/dist/src/utils/docs-preview/sidebar-builder.d.ts +32 -0
  641. package/dist/src/utils/docs-preview/sidebar-builder.d.ts.map +1 -0
  642. package/dist/src/utils/docs-preview/sidebar-builder.js +202 -0
  643. package/dist/src/utils/docs-preview/sidebar-builder.js.map +1 -0
  644. package/dist/src/utils/docs-preview/types.d.ts +57 -0
  645. package/dist/src/utils/docs-preview/types.d.ts.map +1 -0
  646. package/dist/src/utils/docs-preview/types.js +2 -0
  647. package/dist/src/utils/docs-preview/types.js.map +1 -0
  648. package/dist/src/utils/env-file.d.ts +88 -0
  649. package/dist/src/utils/env-file.d.ts.map +1 -0
  650. package/dist/src/utils/env-file.js +180 -0
  651. package/dist/src/utils/env-file.js.map +1 -0
  652. package/dist/src/utils/env-multi-project-parser.d.ts +220 -0
  653. package/dist/src/utils/env-multi-project-parser.d.ts.map +1 -0
  654. package/dist/src/utils/env-multi-project-parser.js +403 -0
  655. package/dist/src/utils/env-multi-project-parser.js.map +1 -0
  656. package/dist/src/utils/esm-helpers.d.ts +50 -0
  657. package/dist/src/utils/esm-helpers.d.ts.map +1 -0
  658. package/dist/src/utils/esm-helpers.js +57 -0
  659. package/dist/src/utils/esm-helpers.js.map +1 -0
  660. package/dist/src/utils/execFileNoThrow.d.ts +99 -0
  661. package/dist/src/utils/execFileNoThrow.d.ts.map +1 -0
  662. package/dist/src/utils/execFileNoThrow.js +137 -0
  663. package/dist/src/utils/execFileNoThrow.js.map +1 -0
  664. package/dist/src/utils/external-resource-validator.d.ts +102 -0
  665. package/dist/src/utils/external-resource-validator.d.ts.map +1 -0
  666. package/dist/src/utils/external-resource-validator.js +442 -0
  667. package/dist/src/utils/external-resource-validator.js.map +1 -0
  668. package/dist/src/utils/generate-skills-index.d.ts +24 -0
  669. package/dist/src/utils/generate-skills-index.d.ts.map +1 -0
  670. package/dist/src/utils/generate-skills-index.js +410 -0
  671. package/dist/src/utils/generate-skills-index.js.map +1 -0
  672. package/dist/src/utils/model-selection.d.ts +75 -0
  673. package/dist/src/utils/model-selection.d.ts.map +1 -0
  674. package/dist/src/utils/model-selection.js +204 -0
  675. package/dist/src/utils/model-selection.js.map +1 -0
  676. package/dist/src/utils/plugin-validator.d.ts +161 -0
  677. package/dist/src/utils/plugin-validator.d.ts.map +1 -0
  678. package/dist/src/utils/plugin-validator.js +558 -0
  679. package/dist/src/utils/plugin-validator.js.map +1 -0
  680. package/dist/src/utils/pricing-constants.d.ts +70 -0
  681. package/dist/src/utils/pricing-constants.d.ts.map +1 -0
  682. package/dist/src/utils/pricing-constants.js +71 -0
  683. package/dist/src/utils/pricing-constants.js.map +1 -0
  684. package/dist/src/utils/project-detection.d.ts +141 -0
  685. package/dist/src/utils/project-detection.d.ts.map +1 -0
  686. package/dist/src/utils/project-detection.js +321 -0
  687. package/dist/src/utils/project-detection.js.map +1 -0
  688. package/dist/src/utils/string-utils.d.ts +40 -0
  689. package/dist/src/utils/string-utils.d.ts.map +1 -0
  690. package/dist/src/utils/string-utils.js +58 -0
  691. package/dist/src/utils/string-utils.js.map +1 -0
  692. package/dist/src/utils/translation.d.ts +187 -0
  693. package/dist/src/utils/translation.d.ts.map +1 -0
  694. package/dist/src/utils/translation.js +414 -0
  695. package/dist/src/utils/translation.js.map +1 -0
  696. package/dist/utils/external-resource-validator.js +1 -1
  697. package/dist/utils/external-resource-validator.js.map +1 -1
  698. package/package.json +4 -3
  699. package/plugins/specweave/.claude-plugin/plugin.json +2 -1
  700. package/plugins/specweave/agents/pm/AGENT.md +8 -38
  701. package/plugins/specweave/commands/specweave-increment.md +28 -48
  702. package/plugins/specweave/hooks/README.md +289 -92
  703. package/plugins/specweave/hooks/hooks.json +10 -0
  704. package/plugins/specweave/hooks/post-increment-completion.sh +83 -0
  705. package/plugins/specweave/hooks/post-increment-planning.sh +2 -2
  706. package/plugins/specweave/hooks/post-task-completion.sh +20 -141
  707. package/plugins/specweave/hooks/user-prompt-submit.sh +142 -0
  708. package/plugins/specweave/lib/hooks/git-diff-analyzer.d.js +0 -0
  709. package/plugins/specweave/lib/hooks/git-diff-analyzer.d.ts +89 -0
  710. package/plugins/specweave/lib/hooks/git-diff-analyzer.d.ts.map +1 -0
  711. package/plugins/specweave/lib/hooks/git-diff-analyzer.js +226 -0
  712. package/plugins/specweave/lib/hooks/git-diff-analyzer.js.map +1 -0
  713. package/plugins/specweave/lib/hooks/invoke-translator-skill.d.js +0 -0
  714. package/plugins/specweave/lib/hooks/invoke-translator-skill.d.ts +60 -0
  715. package/plugins/specweave/lib/hooks/invoke-translator-skill.d.ts.map +1 -0
  716. package/plugins/specweave/lib/hooks/invoke-translator-skill.js +201 -0
  717. package/plugins/specweave/lib/hooks/invoke-translator-skill.js.map +1 -0
  718. package/plugins/specweave/lib/hooks/prepare-reflection-context.d.js +0 -0
  719. package/plugins/specweave/lib/hooks/prepare-reflection-context.d.ts +42 -0
  720. package/plugins/specweave/lib/hooks/prepare-reflection-context.d.ts.map +1 -0
  721. package/plugins/specweave/lib/hooks/prepare-reflection-context.js +123 -0
  722. package/plugins/specweave/lib/hooks/prepare-reflection-context.js.map +1 -0
  723. package/plugins/specweave/lib/hooks/reflection-config-loader.d.js +0 -0
  724. package/plugins/specweave/lib/hooks/reflection-config-loader.d.ts +45 -0
  725. package/plugins/specweave/lib/hooks/reflection-config-loader.d.ts.map +1 -0
  726. package/plugins/specweave/lib/hooks/reflection-config-loader.js +132 -0
  727. package/plugins/specweave/lib/hooks/reflection-config-loader.js.map +1 -0
  728. package/plugins/specweave/lib/hooks/reflection-parser.d.js +0 -0
  729. package/plugins/specweave/lib/hooks/reflection-parser.d.ts +33 -0
  730. package/plugins/specweave/lib/hooks/reflection-parser.d.ts.map +1 -0
  731. package/plugins/specweave/lib/hooks/reflection-parser.js +419 -0
  732. package/plugins/specweave/lib/hooks/reflection-parser.js.map +1 -0
  733. package/plugins/specweave/lib/hooks/reflection-prompt-builder.d.js +0 -0
  734. package/plugins/specweave/lib/hooks/reflection-prompt-builder.d.ts +56 -0
  735. package/plugins/specweave/lib/hooks/reflection-prompt-builder.d.ts.map +1 -0
  736. package/plugins/specweave/lib/hooks/reflection-prompt-builder.js +239 -0
  737. package/plugins/specweave/lib/hooks/reflection-prompt-builder.js.map +1 -0
  738. package/plugins/specweave/lib/hooks/reflection-storage.d.js +0 -0
  739. package/plugins/specweave/lib/hooks/reflection-storage.d.ts +64 -0
  740. package/plugins/specweave/lib/hooks/reflection-storage.d.ts.map +1 -0
  741. package/plugins/specweave/lib/hooks/reflection-storage.js +305 -0
  742. package/plugins/specweave/lib/hooks/reflection-storage.js.map +1 -0
  743. package/plugins/specweave/lib/hooks/run-self-reflection.d.js +0 -0
  744. package/plugins/specweave/lib/hooks/run-self-reflection.d.ts +43 -0
  745. package/plugins/specweave/lib/hooks/run-self-reflection.d.ts.map +1 -0
  746. package/plugins/specweave/lib/hooks/run-self-reflection.js +203 -0
  747. package/plugins/specweave/lib/hooks/run-self-reflection.js.map +1 -0
  748. package/plugins/specweave/lib/hooks/sync-living-docs.d.js +1 -0
  749. package/plugins/specweave/lib/hooks/sync-living-docs.d.ts +27 -0
  750. package/plugins/specweave/lib/hooks/sync-living-docs.d.ts.map +1 -0
  751. package/plugins/specweave/lib/hooks/sync-living-docs.js +144 -0
  752. package/plugins/specweave/lib/hooks/sync-living-docs.js.map +1 -0
  753. package/plugins/specweave/lib/hooks/translate-file.d.js +0 -0
  754. package/plugins/specweave/lib/hooks/translate-file.d.ts +59 -0
  755. package/plugins/specweave/lib/hooks/translate-file.d.ts.map +1 -0
  756. package/plugins/specweave/lib/hooks/translate-file.js +350 -0
  757. package/plugins/specweave/lib/hooks/translate-file.js.map +1 -0
  758. package/plugins/specweave/lib/hooks/translate-living-docs.d.js +0 -0
  759. package/plugins/specweave/lib/hooks/translate-living-docs.d.ts +13 -0
  760. package/plugins/specweave/lib/hooks/translate-living-docs.d.ts.map +1 -0
  761. package/plugins/specweave/lib/hooks/translate-living-docs.js +175 -0
  762. package/plugins/specweave/lib/hooks/translate-living-docs.js.map +1 -0
  763. package/plugins/specweave/lib/hooks/types/reflection-types.d.js +0 -0
  764. package/plugins/specweave/lib/hooks/types/reflection-types.d.ts +164 -0
  765. package/plugins/specweave/lib/hooks/types/reflection-types.d.ts.map +1 -0
  766. package/plugins/specweave/lib/hooks/types/reflection-types.js +73 -0
  767. package/plugins/specweave/lib/hooks/types/reflection-types.js.map +1 -0
  768. package/plugins/specweave/lib/hooks/update-tasks-md.d.js +1 -0
  769. package/plugins/specweave/lib/hooks/update-tasks-md.d.ts +29 -0
  770. package/plugins/specweave/lib/hooks/update-tasks-md.d.ts.map +1 -0
  771. package/plugins/specweave/lib/hooks/update-tasks-md.js +203 -0
  772. package/plugins/specweave/lib/hooks/update-tasks-md.js.map +1 -0
  773. package/plugins/specweave-ado/.claude-plugin/plugin.json +2 -1
  774. package/plugins/specweave-ado/hooks/README.md +201 -0
  775. package/plugins/specweave-ado/hooks/hooks.json +15 -0
  776. package/plugins/specweave-ado/hooks/post-task-completion.sh +150 -0
  777. package/plugins/specweave-ado/lib/ado-board-resolver.d.js +0 -0
  778. package/plugins/specweave-ado/lib/ado-board-resolver.d.ts +94 -0
  779. package/plugins/specweave-ado/lib/ado-board-resolver.d.ts.map +1 -0
  780. package/plugins/specweave-ado/lib/ado-board-resolver.js +219 -0
  781. package/plugins/specweave-ado/lib/ado-board-resolver.js.map +1 -0
  782. package/plugins/specweave-ado/lib/ado-client-v2.d.js +0 -0
  783. package/plugins/specweave-ado/lib/ado-client-v2.d.ts +124 -0
  784. package/plugins/specweave-ado/lib/ado-client-v2.d.ts.map +1 -0
  785. package/plugins/specweave-ado/lib/ado-client-v2.js +435 -0
  786. package/plugins/specweave-ado/lib/ado-client-v2.js.map +1 -0
  787. package/plugins/specweave-ado/lib/ado-client-v2.ts +134 -10
  788. package/plugins/specweave-ado/lib/ado-client.d.js +4 -0
  789. package/plugins/specweave-ado/lib/ado-client.d.ts +112 -0
  790. package/plugins/specweave-ado/lib/ado-client.d.ts.map +1 -0
  791. package/plugins/specweave-ado/lib/ado-client.js +248 -0
  792. package/plugins/specweave-ado/lib/ado-client.js.map +1 -0
  793. package/plugins/specweave-ado/lib/ado-client.ts +19 -3
  794. package/plugins/specweave-ado/lib/ado-hierarchical-sync.d.js +0 -0
  795. package/plugins/specweave-ado/lib/ado-hierarchical-sync.d.ts +40 -0
  796. package/plugins/specweave-ado/lib/ado-hierarchical-sync.d.ts.map +1 -0
  797. package/plugins/specweave-ado/lib/ado-hierarchical-sync.js +370 -0
  798. package/plugins/specweave-ado/lib/ado-hierarchical-sync.js.map +1 -0
  799. package/plugins/specweave-ado/lib/ado-spec-sync.d.js +0 -0
  800. package/plugins/specweave-ado/lib/ado-spec-sync.d.ts +100 -0
  801. package/plugins/specweave-ado/lib/ado-spec-sync.d.ts.map +1 -0
  802. package/plugins/specweave-ado/lib/ado-spec-sync.js +471 -0
  803. package/plugins/specweave-ado/lib/ado-spec-sync.js.map +1 -0
  804. package/plugins/specweave-ado/lib/project-selector.d.js +0 -0
  805. package/plugins/specweave-github/.claude-plugin/plugin.json +2 -1
  806. package/plugins/specweave-github/hooks/README.md +280 -0
  807. package/plugins/specweave-github/hooks/hooks.json +15 -0
  808. package/plugins/specweave-github/hooks/post-task-completion.sh +241 -0
  809. package/plugins/specweave-github/lib/cli-sync-increment-changes.d.js +1 -0
  810. package/plugins/specweave-github/lib/cli-sync-increment-changes.d.ts +12 -0
  811. package/plugins/specweave-github/lib/cli-sync-increment-changes.d.ts.map +1 -0
  812. package/plugins/specweave-github/lib/cli-sync-increment-changes.js +28 -0
  813. package/plugins/specweave-github/lib/cli-sync-increment-changes.js.map +1 -0
  814. package/plugins/specweave-github/lib/github-board-resolver.d.js +0 -0
  815. package/plugins/specweave-github/lib/github-board-resolver.d.ts +54 -0
  816. package/plugins/specweave-github/lib/github-board-resolver.d.ts.map +1 -0
  817. package/plugins/specweave-github/lib/github-board-resolver.js +122 -0
  818. package/plugins/specweave-github/lib/github-board-resolver.js.map +1 -0
  819. package/plugins/specweave-github/lib/github-client-v2.d.js +0 -0
  820. package/plugins/specweave-github/lib/github-client-v2.d.ts +104 -0
  821. package/plugins/specweave-github/lib/github-client-v2.d.ts.map +1 -0
  822. package/plugins/specweave-github/lib/github-client-v2.js +408 -0
  823. package/plugins/specweave-github/lib/github-client-v2.js.map +1 -0
  824. package/plugins/specweave-github/lib/github-client.d.js +0 -0
  825. package/plugins/specweave-github/lib/github-client.d.ts +96 -0
  826. package/plugins/specweave-github/lib/github-client.d.ts.map +1 -0
  827. package/plugins/specweave-github/lib/github-client.js +299 -0
  828. package/plugins/specweave-github/lib/github-client.js.map +1 -0
  829. package/plugins/specweave-github/lib/github-hierarchical-sync.d.js +0 -0
  830. package/plugins/specweave-github/lib/github-hierarchical-sync.d.ts +29 -0
  831. package/plugins/specweave-github/lib/github-hierarchical-sync.d.ts.map +1 -0
  832. package/plugins/specweave-github/lib/github-hierarchical-sync.js +268 -0
  833. package/plugins/specweave-github/lib/github-hierarchical-sync.js.map +1 -0
  834. package/plugins/specweave-github/lib/github-issue-updater.d.js +0 -0
  835. package/plugins/specweave-github/lib/github-issue-updater.d.ts +61 -0
  836. package/plugins/specweave-github/lib/github-issue-updater.d.ts.map +1 -0
  837. package/plugins/specweave-github/lib/github-issue-updater.js +327 -0
  838. package/plugins/specweave-github/lib/github-issue-updater.js.map +1 -0
  839. package/plugins/specweave-github/lib/github-spec-sync.d.js +0 -0
  840. package/plugins/specweave-github/lib/github-spec-sync.d.ts +108 -0
  841. package/plugins/specweave-github/lib/github-spec-sync.d.ts.map +1 -0
  842. package/plugins/specweave-github/lib/github-spec-sync.js +505 -0
  843. package/plugins/specweave-github/lib/github-spec-sync.js.map +1 -0
  844. package/plugins/specweave-github/lib/github-sync-bidirectional.d.js +0 -0
  845. package/plugins/specweave-github/lib/github-sync-bidirectional.d.ts +36 -0
  846. package/plugins/specweave-github/lib/github-sync-bidirectional.d.ts.map +1 -0
  847. package/plugins/specweave-github/lib/github-sync-bidirectional.js +228 -0
  848. package/plugins/specweave-github/lib/github-sync-bidirectional.js.map +1 -0
  849. package/plugins/specweave-github/lib/github-sync-increment-changes.d.js +0 -0
  850. package/plugins/specweave-github/lib/github-sync-increment-changes.d.ts +18 -0
  851. package/plugins/specweave-github/lib/github-sync-increment-changes.d.ts.map +1 -0
  852. package/plugins/specweave-github/lib/github-sync-increment-changes.js +287 -0
  853. package/plugins/specweave-github/lib/github-sync-increment-changes.js.map +1 -0
  854. package/plugins/specweave-github/lib/index.d.js +11 -0
  855. package/plugins/specweave-github/lib/index.d.ts +10 -0
  856. package/plugins/specweave-github/lib/index.d.ts.map +1 -0
  857. package/plugins/specweave-github/lib/index.js +10 -0
  858. package/plugins/specweave-github/lib/index.js.map +1 -0
  859. package/plugins/specweave-github/lib/repo-selector.d.js +0 -0
  860. package/plugins/specweave-github/lib/repo-selector.d.ts +49 -0
  861. package/plugins/specweave-github/lib/repo-selector.d.ts.map +1 -0
  862. package/plugins/specweave-github/lib/repo-selector.js +216 -0
  863. package/plugins/specweave-github/lib/repo-selector.js.map +1 -0
  864. package/plugins/specweave-github/lib/subtask-sync.d.js +0 -0
  865. package/plugins/specweave-github/lib/subtask-sync.d.ts +51 -0
  866. package/plugins/specweave-github/lib/subtask-sync.d.ts.map +1 -0
  867. package/plugins/specweave-github/lib/subtask-sync.js +147 -0
  868. package/plugins/specweave-github/lib/subtask-sync.js.map +1 -0
  869. package/plugins/specweave-github/lib/task-parser.d.js +0 -0
  870. package/plugins/specweave-github/lib/task-parser.d.ts +37 -0
  871. package/plugins/specweave-github/lib/task-parser.d.ts.map +1 -0
  872. package/plugins/specweave-github/lib/task-parser.js +211 -0
  873. package/plugins/specweave-github/lib/task-parser.js.map +1 -0
  874. package/plugins/specweave-github/lib/task-sync.d.js +0 -0
  875. package/plugins/specweave-github/lib/task-sync.d.ts +51 -0
  876. package/plugins/specweave-github/lib/task-sync.d.ts.map +1 -0
  877. package/plugins/specweave-github/lib/task-sync.js +332 -0
  878. package/plugins/specweave-github/lib/task-sync.js.map +1 -0
  879. package/plugins/specweave-github/lib/types.d.js +0 -0
  880. package/plugins/specweave-github/lib/types.d.ts +80 -0
  881. package/plugins/specweave-github/lib/types.d.ts.map +1 -0
  882. package/plugins/specweave-github/lib/types.js +5 -0
  883. package/plugins/specweave-github/lib/types.js.map +1 -0
  884. package/plugins/specweave-jira/.claude-plugin/plugin.json +2 -1
  885. package/plugins/specweave-jira/hooks/README.md +201 -0
  886. package/plugins/specweave-jira/hooks/hooks.json +15 -0
  887. package/plugins/specweave-jira/hooks/post-task-completion.sh +150 -0
  888. package/plugins/specweave-jira/lib/jira-board-resolver.d.js +0 -0
  889. package/plugins/specweave-jira/lib/jira-board-resolver.d.ts +50 -0
  890. package/plugins/specweave-jira/lib/jira-board-resolver.d.ts.map +1 -0
  891. package/plugins/specweave-jira/lib/jira-board-resolver.js +84 -0
  892. package/plugins/specweave-jira/lib/jira-board-resolver.js.map +1 -0
  893. package/plugins/specweave-jira/lib/jira-hierarchical-sync.d.js +0 -0
  894. package/plugins/specweave-jira/lib/jira-hierarchical-sync.d.ts +33 -0
  895. package/plugins/specweave-jira/lib/jira-hierarchical-sync.d.ts.map +1 -0
  896. package/plugins/specweave-jira/lib/jira-hierarchical-sync.js +206 -0
  897. package/plugins/specweave-jira/lib/jira-hierarchical-sync.js.map +1 -0
  898. package/plugins/specweave-jira/lib/jira-spec-sync.d.js +0 -0
  899. package/plugins/specweave-jira/lib/jira-spec-sync.d.ts +105 -0
  900. package/plugins/specweave-jira/lib/jira-spec-sync.d.ts.map +1 -0
  901. package/plugins/specweave-jira/lib/jira-spec-sync.js +456 -0
  902. package/plugins/specweave-jira/lib/jira-spec-sync.js.map +1 -0
  903. package/plugins/specweave-jira/lib/project-selector.d.js +0 -0
  904. package/plugins/specweave-jira/lib/project-selector.d.ts +42 -0
  905. package/plugins/specweave-jira/lib/project-selector.d.ts.map +1 -0
  906. package/plugins/specweave-jira/lib/project-selector.js +216 -0
  907. package/plugins/specweave-jira/lib/project-selector.js.map +1 -0
  908. package/plugins/specweave-jira/lib/reorganization-detector.d.js +0 -0
  909. package/plugins/specweave-jira/lib/reorganization-detector.d.ts +67 -0
  910. package/plugins/specweave-jira/lib/reorganization-detector.d.ts.map +1 -0
  911. package/plugins/specweave-jira/lib/reorganization-detector.js +252 -0
  912. package/plugins/specweave-jira/lib/reorganization-detector.js.map +1 -0
  913. package/plugins/specweave-jira/lib/setup-wizard.d.js +4 -0
  914. package/plugins/specweave-jira/lib/setup-wizard.d.ts +29 -0
  915. package/plugins/specweave-jira/lib/setup-wizard.d.ts.map +1 -0
  916. package/plugins/specweave-jira/lib/setup-wizard.js +219 -0
  917. package/plugins/specweave-jira/lib/setup-wizard.js.map +1 -0
  918. package/src/templates/CLAUDE.md.template +41 -0
@@ -0,0 +1,268 @@
1
+ /**
2
+ * GitHub Hierarchical Sync Implementation
3
+ *
4
+ * Supports three sync strategies:
5
+ * 1. Simple: One repository, all issues (backward compatible)
6
+ * 2. Filtered: Multiple repositories + project boards + filters
7
+ * 3. Custom: Raw GitHub search query
8
+ */
9
+ import { isSimpleStrategy, isFilteredStrategy, isCustomStrategy, } from '../../../src/core/types/sync-profile.js';
10
+ import { execFileNoThrow } from '../../../src/utils/execFileNoThrow.js';
11
+ /**
12
+ * Build hierarchical GitHub search query from containers
13
+ *
14
+ * Example output:
15
+ * repo:owner/repo-a repo:owner/repo-b is:issue label:feature milestone:"v2.0" created:2024-01-01..2024-12-31
16
+ *
17
+ * @param containers Array of containers (repos) with filters
18
+ * @returns GitHub search query string
19
+ */
20
+ export async function buildHierarchicalSearchQuery(containers) {
21
+ const parts = [];
22
+ // Add repo clauses
23
+ for (const container of containers) {
24
+ parts.push(`repo:${container.id}`);
25
+ // Note: GitHub search doesn't support filtering by project board directly
26
+ // Project boards would need to be handled via GraphQL API or issue filtering
27
+ if (container.subOrganizations && container.subOrganizations.length > 0) {
28
+ console.warn(`⚠️ GitHub search doesn't support project board filtering directly.`);
29
+ console.warn(` Boards will be ignored: ${container.subOrganizations.join(', ')}`);
30
+ }
31
+ }
32
+ // Add is:issue filter
33
+ parts.push('is:issue');
34
+ // Add filters from first container (apply to all repos)
35
+ // Note: GitHub search applies filters globally, not per-repo
36
+ const filters = containers[0]?.filters;
37
+ if (filters) {
38
+ const filterClauses = buildFilterClauses(filters);
39
+ parts.push(...filterClauses);
40
+ }
41
+ return parts.join(' ');
42
+ }
43
+ /**
44
+ * Build filter clauses from container filters
45
+ *
46
+ * @param filters Container filters
47
+ * @returns Array of GitHub search filter clauses
48
+ */
49
+ function buildFilterClauses(filters) {
50
+ const clauses = [];
51
+ // Include labels
52
+ if (filters.includeLabels && filters.includeLabels.length > 0) {
53
+ for (const label of filters.includeLabels) {
54
+ clauses.push(`label:"${label}"`);
55
+ }
56
+ }
57
+ // Exclude labels (GitHub uses -label:)
58
+ if (filters.excludeLabels && filters.excludeLabels.length > 0) {
59
+ for (const label of filters.excludeLabels) {
60
+ clauses.push(`-label:"${label}"`);
61
+ }
62
+ }
63
+ // Assignees
64
+ if (filters.assignees && filters.assignees.length > 0) {
65
+ // GitHub supports multiple assignees with OR logic
66
+ const assigneeQuery = filters.assignees
67
+ .map((a) => `assignee:"${a}"`)
68
+ .join(' ');
69
+ clauses.push(assigneeQuery);
70
+ }
71
+ // Status (GitHub uses is:open, is:closed)
72
+ if (filters.statusCategories && filters.statusCategories.length > 0) {
73
+ const statuses = filters.statusCategories.map((s) => s.toLowerCase());
74
+ if (statuses.includes('open') || statuses.includes('to do') || statuses.includes('in progress')) {
75
+ clauses.push('is:open');
76
+ }
77
+ else if (statuses.includes('closed') || statuses.includes('done')) {
78
+ clauses.push('is:closed');
79
+ }
80
+ }
81
+ // Milestones (GitHub-specific)
82
+ if (filters.milestones && filters.milestones.length > 0) {
83
+ for (const milestone of filters.milestones) {
84
+ clauses.push(`milestone:"${milestone}"`);
85
+ }
86
+ }
87
+ return clauses;
88
+ }
89
+ /**
90
+ * Add time range filter to GitHub search query
91
+ *
92
+ * @param query Base search query
93
+ * @param timeRange Time range preset (1W, 1M, 3M, 6M, ALL)
94
+ * @returns Search query with time range filter
95
+ */
96
+ function addTimeRangeFilter(query, timeRange) {
97
+ if (timeRange === 'ALL') {
98
+ return query; // No time filter
99
+ }
100
+ const { since, until } = calculateTimeRange(timeRange);
101
+ return `${query} created:${since}..${until}`;
102
+ }
103
+ /**
104
+ * Calculate date range from time range preset
105
+ */
106
+ function calculateTimeRange(timeRange) {
107
+ const now = new Date();
108
+ const since = new Date(now);
109
+ switch (timeRange) {
110
+ case '1W':
111
+ since.setDate(now.getDate() - 7);
112
+ break;
113
+ case '2W':
114
+ since.setDate(now.getDate() - 14);
115
+ break;
116
+ case '1M':
117
+ since.setMonth(now.getMonth() - 1);
118
+ break;
119
+ case '3M':
120
+ since.setMonth(now.getMonth() - 3);
121
+ break;
122
+ case '6M':
123
+ since.setMonth(now.getMonth() - 6);
124
+ break;
125
+ case '1Y':
126
+ since.setFullYear(now.getFullYear() - 1);
127
+ break;
128
+ case 'ALL':
129
+ return {
130
+ since: '1970-01-01',
131
+ until: now.toISOString().split('T')[0],
132
+ };
133
+ }
134
+ return {
135
+ since: since.toISOString().split('T')[0],
136
+ until: now.toISOString().split('T')[0],
137
+ };
138
+ }
139
+ /**
140
+ * Fetch issues hierarchically based on sync strategy
141
+ *
142
+ * @param profile Sync profile with strategy
143
+ * @param timeRange Time range preset
144
+ * @returns Array of GitHub issues
145
+ */
146
+ export async function fetchIssuesHierarchical(profile, timeRange = '1M') {
147
+ const config = profile.config;
148
+ // Strategy 1: SIMPLE (backward compatible)
149
+ if (isSimpleStrategy(profile)) {
150
+ return fetchIssuesSimple(config, timeRange);
151
+ }
152
+ // Strategy 2: CUSTOM (raw search query)
153
+ if (isCustomStrategy(profile)) {
154
+ return fetchIssuesCustom(config, timeRange);
155
+ }
156
+ // Strategy 3: FILTERED (hierarchical)
157
+ if (isFilteredStrategy(profile)) {
158
+ return fetchIssuesFiltered(config, timeRange);
159
+ }
160
+ // Default to simple if strategy not recognized
161
+ console.warn('⚠️ Unknown strategy, defaulting to simple');
162
+ return fetchIssuesSimple(config, timeRange);
163
+ }
164
+ /**
165
+ * Fetch issues using SIMPLE strategy (one repo, all issues)
166
+ *
167
+ * @param config GitHub configuration
168
+ * @param timeRange Time range preset
169
+ * @returns Array of GitHub issues
170
+ */
171
+ async function fetchIssuesSimple(config, timeRange) {
172
+ const owner = config.owner;
173
+ const repo = config.repo;
174
+ if (!owner || !repo) {
175
+ throw new Error('Simple strategy requires owner and repo in config');
176
+ }
177
+ let query = `repo:${owner}/${repo} is:issue`;
178
+ // Add time range
179
+ query = addTimeRangeFilter(query, timeRange);
180
+ console.log('🔍 Fetching issues (SIMPLE strategy):', query);
181
+ return executeSearch(query);
182
+ }
183
+ /**
184
+ * Fetch issues using CUSTOM strategy (raw search query)
185
+ *
186
+ * @param config GitHub configuration
187
+ * @param timeRange Time range preset
188
+ * @returns Array of GitHub issues
189
+ */
190
+ async function fetchIssuesCustom(config, timeRange) {
191
+ const customQuery = config.customQuery;
192
+ if (!customQuery) {
193
+ throw new Error('Custom strategy requires customQuery in config');
194
+ }
195
+ // Add time range to custom query
196
+ const query = addTimeRangeFilter(customQuery, timeRange);
197
+ console.log('🔍 Fetching issues (CUSTOM strategy):', query);
198
+ return executeSearch(query);
199
+ }
200
+ /**
201
+ * Fetch issues using FILTERED strategy (multiple repos + filters)
202
+ *
203
+ * @param config GitHub configuration
204
+ * @param timeRange Time range preset
205
+ * @returns Array of GitHub issues
206
+ */
207
+ async function fetchIssuesFiltered(config, timeRange) {
208
+ const containers = config.containers;
209
+ if (!containers || containers.length === 0) {
210
+ throw new Error('Filtered strategy requires containers array in config');
211
+ }
212
+ // Build hierarchical search query
213
+ const baseQuery = await buildHierarchicalSearchQuery(containers);
214
+ // Add time range
215
+ const query = addTimeRangeFilter(baseQuery, timeRange);
216
+ console.log('🔍 Fetching issues (FILTERED strategy):', query);
217
+ return executeSearch(query);
218
+ }
219
+ /**
220
+ * Execute GitHub search and return issues
221
+ *
222
+ * @param query GitHub search query
223
+ * @returns Array of GitHub issues
224
+ */
225
+ async function executeSearch(query) {
226
+ const result = await execFileNoThrow('gh', [
227
+ 'search',
228
+ 'issues',
229
+ query,
230
+ '--json',
231
+ 'number,title,body,state,url,labels,milestone,repository',
232
+ '--limit',
233
+ '1000', // Max results
234
+ ]);
235
+ if (result.status !== 0) {
236
+ throw new Error(`Failed to search issues: ${result.stderr || result.stdout}`);
237
+ }
238
+ if (!result.stdout.trim()) {
239
+ return [];
240
+ }
241
+ const issues = JSON.parse(result.stdout);
242
+ // Transform to GitHubIssue format
243
+ return issues.map((issue) => ({
244
+ number: issue.number,
245
+ title: issue.title,
246
+ body: issue.body || '',
247
+ state: issue.state,
248
+ html_url: issue.url,
249
+ url: issue.url,
250
+ labels: issue.labels?.map((l) => l.name) || [],
251
+ milestone: issue.milestone
252
+ ? {
253
+ number: issue.milestone.number,
254
+ title: issue.milestone.title,
255
+ description: issue.milestone.description,
256
+ state: issue.milestone.state,
257
+ }
258
+ : undefined,
259
+ repository: issue.repository
260
+ ? {
261
+ owner: issue.repository.owner.login,
262
+ name: issue.repository.name,
263
+ full_name: issue.repository.full_name,
264
+ }
265
+ : undefined,
266
+ }));
267
+ }
268
+ //# sourceMappingURL=github-hierarchical-sync.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"github-hierarchical-sync.js","sourceRoot":"","sources":["github-hierarchical-sync.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,EAIL,gBAAgB,EAChB,kBAAkB,EAClB,gBAAgB,GAEjB,MAAM,yCAAyC,CAAC;AAGjD,OAAO,EAAE,eAAe,EAAE,MAAM,uCAAuC,CAAC;AAExE;;;;;;;;GAQG;AACH,MAAM,CAAC,KAAK,UAAU,4BAA4B,CAChD,UAA2B;IAE3B,MAAM,KAAK,GAAa,EAAE,CAAC;IAE3B,mBAAmB;IACnB,KAAK,MAAM,SAAS,IAAI,UAAU,EAAE,CAAC;QACnC,KAAK,CAAC,IAAI,CAAC,QAAQ,SAAS,CAAC,EAAE,EAAE,CAAC,CAAC;QAEnC,0EAA0E;QAC1E,6EAA6E;QAC7E,IAAI,SAAS,CAAC,gBAAgB,IAAI,SAAS,CAAC,gBAAgB,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC;YACxE,OAAO,CAAC,IAAI,CACV,qEAAqE,CACtE,CAAC;YACF,OAAO,CAAC,IAAI,CACV,8BAA8B,SAAS,CAAC,gBAAgB,CAAC,IAAI,CAAC,IAAI,CAA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AAI;gBAC3B,SAAS,EAAE,KAAK,CAAC,UAAU,CAAC,SAAS;aACtC;YACH,CAAC,CAAC,SAAS;KACd,CAAC,CAAC,CAAC;AACN,CAAC"}
@@ -0,0 +1,61 @@
1
+ /**
2
+ * GitHub Issue Updater for Living Docs Sync
3
+ *
4
+ * Handles updating GitHub issues with living documentation links and content.
5
+ * Used by post-task-completion hook to keep GitHub issues in sync with SpecWeave docs.
6
+ *
7
+ * @module github-issue-updater
8
+ */
9
+ export interface LivingDocsSection {
10
+ specs: string[];
11
+ architecture: string[];
12
+ diagrams: string[];
13
+ }
14
+ export interface IncrementMetadata {
15
+ id: string;
16
+ status: string;
17
+ type: string;
18
+ github?: {
19
+ issue: number;
20
+ url: string;
21
+ synced?: string;
22
+ };
23
+ }
24
+ /**
25
+ * Update GitHub issue with living docs section
26
+ */
27
+ export declare function updateIssueLivingDocs(issueNumber: number, livingDocs: LivingDocsSection, owner: string, repo: string): Promise<void>;
28
+ /**
29
+ * Post comment about ADR/HLD/diagram creation
30
+ */
31
+ export declare function postArchitectureComment(issueNumber: number, docPath: string, owner: string, repo: string): Promise<void>;
32
+ /**
33
+ * Post scope change comment
34
+ */
35
+ export declare function postScopeChangeComment(issueNumber: number, changes: {
36
+ added?: string[];
37
+ removed?: string[];
38
+ modified?: string[];
39
+ reason?: string;
40
+ impact?: string;
41
+ }, owner: string, repo: string): Promise<void>;
42
+ /**
43
+ * Post status change comment (pause/resume/abandon)
44
+ */
45
+ export declare function postStatusChangeComment(issueNumber: number, status: 'paused' | 'resumed' | 'abandoned', reason: string, owner: string, repo: string): Promise<void>;
46
+ /**
47
+ * Collect living docs for an increment
48
+ */
49
+ export declare function collectLivingDocs(incrementId: string): Promise<LivingDocsSection>;
50
+ /**
51
+ * Load increment metadata
52
+ */
53
+ export declare function loadIncrementMetadata(incrementId: string): Promise<IncrementMetadata | null>;
54
+ /**
55
+ * Detect repository owner and name from git remote
56
+ */
57
+ export declare function detectRepo(): Promise<{
58
+ owner: string;
59
+ repo: string;
60
+ } | null>;
61
+ //# sourceMappingURL=github-issue-updater.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"github-issue-updater.d.ts","sourceRoot":"","sources":["github-issue-updater.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAMH,MAAM,WAAW,iBAAiB;IAChC,KAAK,EAAE,MAAM,EAAE,CAAC;IAChB,YAAY,EAAE,MAAM,EAAE,CAAC;IACvB,QAAQ,EAAE,MAAM,EAAE,CAAC;CACpB;AAED,MAAM,WAAW,iBAAiB;IAChC,EAAE,EAAE,MAAM,CAAC;IACX,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,CAAC,EAAE;QACP,KAAK,EAAE,MAAM,CAAC;QACd,GAAG,EAAE,MAAM,CAAC;QACZ,MAAM,CAAC,EAAE,MAAM,CAAC;KACjB,CAAC;CACH;AAED;;GAEG;AACH,wBAAsB,qBAAqB,CACzC,WAAW,EAAE,MAAM,EACnB,UAAU,EAAE,iBAAiB,EAC7B,KAAK,EAAE,MAAM,EACb,IAAI,EAAE,MAAM,GACX,OAAO,CAAC,IAAI,CAAC,CAgBf;AAED;;GAEG;AACH,wBAAsB,uBAAuB,CAC3C,WAAW,EAAE,MAAM,EACnB,OAAO,EAAE,MAAM,EACf,KAAK,EAAE,MAAM,EACb,IAAI,EAAE,MAAM,GACX,OAAO,CAAC,IAAI,CAAC,CAkBf;AAED;;GAEG;AACH,wBAAsB,sBAAsB,CAC1C,WAAW,EAAE,MAAM,EACnB,OAAO,EAAE;IACP,KAAK,CAAC,EAAE,MAAM,EAAE,CAAC;IACjB,OAAO,CAAC,EAAE,MAAM,EAAE,CAAC;IACnB,QAAQ,CAAC,EAAE,MAAM,EAAE,CAAC;IACpB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB,EACD,KAAK,EAAE,MAAM,EACb,IAAI,EAAE,MAAM,GACX,OAAO,CAAC,IAAI,CAAC,CAoCf;AAED;;GAEG;AACH,wBAAsB,uBAAuB,CAC3C,WAAW,EAAE,MAAM,EACnB,MAAM,EAAE,QAAQ,GAAG,SAAS,GAAG,WAAW,EAC1C,MAAM,EAAE,MAAM,EACd,KAAK,EAAE,MAAM,EACb,IAAI,EAAE,MAAM,GACX,OAAO,CAAC,IAAI,CAAC,CA0Bf;AAED;;GAEG;AACH,wBAAsB,iBAAiB,CAAC,WAAW,EAAE,MAAM,GAAG,OAAO,CAAC,iBAAiB,CAAC,CAqDvF;AAED;;GAEG;AACH,wBAAsB,qBAAqB,CAAC,WAAW,EAAE,MAAM,GAAG,OAAO,CAAC,iBAAiB,GAAG,IAAI,CAAC,CAalG;AAED;;GAEG;AACH,wBAAsB,UAAU,IAAI,OAAO,CAAC;IAAE,KAAK,EAAE,MAAM,CAAC;IAAC,IAAI,EAAE,MAAM,CAAA;CAAE,GAAG,IAAI,CAAC,CAsBlF"}
@@ -0,0 +1,327 @@
1
+ /**
2
+ * GitHub Issue Updater for Living Docs Sync
3
+ *
4
+ * Handles updating GitHub issues with living documentation links and content.
5
+ * Used by post-task-completion hook to keep GitHub issues in sync with SpecWeave docs.
6
+ *
7
+ * @module github-issue-updater
8
+ */
9
+ import fs from 'fs-extra';
10
+ import path from 'path';
11
+ import { execFileNoThrow } from '../../../src/utils/execFileNoThrow.js';
12
+ /**
13
+ * Update GitHub issue with living docs section
14
+ */
15
+ export async function updateIssueLivingDocs(issueNumber, livingDocs, owner, repo) {
16
+ console.log(`📝 Updating GitHub issue #${issueNumber} with living docs...`);
17
+ // 1. Get current issue body
18
+ const currentBody = await getIssueBody(issueNumber, owner, repo);
19
+ // 2. Build living docs section
20
+ const livingDocsSection = buildLivingDocsSection(livingDocs, owner, repo);
21
+ // 3. Update or append living docs section
22
+ const updatedBody = updateBodyWithLivingDocs(currentBody, livingDocsSection);
23
+ // 4. Update issue
24
+ await updateIssueBody(issueNumber, updatedBody, owner, repo);
25
+ console.log(`✅ Living docs section updated in issue #${issueNumber}`);
26
+ }
27
+ /**
28
+ * Post comment about ADR/HLD/diagram creation
29
+ */
30
+ export async function postArchitectureComment(issueNumber, docPath, owner, repo) {
31
+ const docType = getDocType(docPath);
32
+ const docName = path.basename(docPath, '.md');
33
+ const docUrl = `https://github.com/${owner}/${repo}/blob/develop/${docPath}`;
34
+ const comment = `
35
+ 🏗️ **${docType} Created**
36
+
37
+ **Document**: [${docName}](${docUrl})
38
+
39
+ **Path**: \`${docPath}\`
40
+
41
+ ---
42
+ 🤖 Auto-updated by SpecWeave
43
+ `.trim();
44
+ await postComment(issueNumber, comment, owner, repo);
45
+ console.log(`✅ Posted ${docType} comment to issue #${issueNumber}`);
46
+ }
47
+ /**
48
+ * Post scope change comment
49
+ */
50
+ export async function postScopeChangeComment(issueNumber, changes, owner, repo) {
51
+ const parts = ['**Scope Change Detected**', ''];
52
+ if (changes.added && changes.added.length > 0) {
53
+ parts.push('**Added**:');
54
+ changes.added.forEach(item => parts.push(`- ✅ ${item}`));
55
+ parts.push('');
56
+ }
57
+ if (changes.removed && changes.removed.length > 0) {
58
+ parts.push('**Removed**:');
59
+ changes.removed.forEach(item => parts.push(`- ❌ ${item}`));
60
+ parts.push('');
61
+ }
62
+ if (changes.modified && changes.modified.length > 0) {
63
+ parts.push('**Modified**:');
64
+ changes.modified.forEach(item => parts.push(`- 🔄 ${item}`));
65
+ parts.push('');
66
+ }
67
+ if (changes.reason) {
68
+ parts.push(`**Reason**: ${changes.reason}`);
69
+ parts.push('');
70
+ }
71
+ if (changes.impact) {
72
+ parts.push(`**Impact**: ${changes.impact}`);
73
+ parts.push('');
74
+ }
75
+ parts.push('---');
76
+ parts.push('🤖 Auto-updated by SpecWeave');
77
+ await postComment(issueNumber, parts.join('\n'), owner, repo);
78
+ console.log(`✅ Posted scope change comment to issue #${issueNumber}`);
79
+ }
80
+ /**
81
+ * Post status change comment (pause/resume/abandon)
82
+ */
83
+ export async function postStatusChangeComment(issueNumber, status, reason, owner, repo) {
84
+ const emoji = {
85
+ paused: '⏸️',
86
+ resumed: '▶️',
87
+ abandoned: '🗑️'
88
+ }[status];
89
+ const title = {
90
+ paused: 'Increment Paused',
91
+ resumed: 'Increment Resumed',
92
+ abandoned: 'Increment Abandoned'
93
+ }[status];
94
+ const comment = `
95
+ ${emoji} **${title}**
96
+
97
+ **Reason**: ${reason}
98
+
99
+ **Timestamp**: ${new Date().toISOString()}
100
+
101
+ ---
102
+ 🤖 Auto-updated by SpecWeave
103
+ `.trim();
104
+ await postComment(issueNumber, comment, owner, repo);
105
+ console.log(`✅ Posted ${status} comment to issue #${issueNumber}`);
106
+ }
107
+ /**
108
+ * Collect living docs for an increment
109
+ */
110
+ export async function collectLivingDocs(incrementId) {
111
+ const livingDocs = {
112
+ specs: [],
113
+ architecture: [],
114
+ diagrams: []
115
+ };
116
+ // 1. Find specs
117
+ const specsDir = path.join(process.cwd(), '.specweave/docs/internal/specs');
118
+ if (await fs.pathExists(specsDir)) {
119
+ const specFiles = await fs.readdir(specsDir);
120
+ for (const file of specFiles) {
121
+ if (file.endsWith('.md') && !file.startsWith('README')) {
122
+ livingDocs.specs.push(path.join('.specweave/docs/internal/specs', file));
123
+ }
124
+ }
125
+ }
126
+ // 2. Find architecture docs (ADRs, HLDs)
127
+ const archDir = path.join(process.cwd(), '.specweave/docs/internal/architecture');
128
+ if (await fs.pathExists(archDir)) {
129
+ // ADRs
130
+ const adrDir = path.join(archDir, 'adr');
131
+ if (await fs.pathExists(adrDir)) {
132
+ const adrFiles = await fs.readdir(adrDir);
133
+ for (const file of adrFiles) {
134
+ if (file.endsWith('.md')) {
135
+ livingDocs.architecture.push(path.join('.specweave/docs/internal/architecture/adr', file));
136
+ }
137
+ }
138
+ }
139
+ // HLDs
140
+ const hldFiles = await fs.readdir(archDir);
141
+ for (const file of hldFiles) {
142
+ if (file.startsWith('hld-') && file.endsWith('.md')) {
143
+ livingDocs.architecture.push(path.join('.specweave/docs/internal/architecture', file));
144
+ }
145
+ }
146
+ }
147
+ // 3. Find diagrams
148
+ const diagramsDir = path.join(process.cwd(), '.specweave/docs/internal/architecture/diagrams');
149
+ if (await fs.pathExists(diagramsDir)) {
150
+ const diagramFiles = await fs.readdir(diagramsDir);
151
+ for (const file of diagramFiles) {
152
+ if (file.endsWith('.mmd') || file.endsWith('.svg')) {
153
+ livingDocs.diagrams.push(path.join('.specweave/docs/internal/architecture/diagrams', file));
154
+ }
155
+ }
156
+ }
157
+ return livingDocs;
158
+ }
159
+ /**
160
+ * Load increment metadata
161
+ */
162
+ export async function loadIncrementMetadata(incrementId) {
163
+ const metadataPath = path.join(process.cwd(), '.specweave/increments', incrementId, 'metadata.json');
164
+ if (!await fs.pathExists(metadataPath)) {
165
+ return null;
166
+ }
167
+ return await fs.readJson(metadataPath);
168
+ }
169
+ /**
170
+ * Detect repository owner and name from git remote
171
+ */
172
+ export async function detectRepo() {
173
+ try {
174
+ const result = await execFileNoThrow('git', ['remote', 'get-url', 'origin']);
175
+ if (result.status !== 0) {
176
+ return null;
177
+ }
178
+ const remote = result.stdout.trim();
179
+ const match = remote.match(/github\.com[:/](.+)\/(.+?)(?:\.git)?$/);
180
+ if (!match) {
181
+ return null;
182
+ }
183
+ return {
184
+ owner: match[1],
185
+ repo: match[2]
186
+ };
187
+ }
188
+ catch (error) {
189
+ return null;
190
+ }
191
+ }
192
+ // =============================================================================
193
+ // PRIVATE HELPERS
194
+ // =============================================================================
195
+ /**
196
+ * Get current issue body
197
+ */
198
+ async function getIssueBody(issueNumber, owner, repo) {
199
+ const result = await execFileNoThrow('gh', [
200
+ 'issue',
201
+ 'view',
202
+ String(issueNumber),
203
+ '--repo',
204
+ `${owner}/${repo}`,
205
+ '--json',
206
+ 'body',
207
+ '-q',
208
+ '.body'
209
+ ]);
210
+ if (result.status !== 0) {
211
+ throw new Error(`Failed to get issue body: ${result.stderr}`);
212
+ }
213
+ return result.stdout.trim();
214
+ }
215
+ /**
216
+ * Update issue body
217
+ */
218
+ async function updateIssueBody(issueNumber, body, owner, repo) {
219
+ const result = await execFileNoThrow('gh', [
220
+ 'issue',
221
+ 'edit',
222
+ String(issueNumber),
223
+ '--repo',
224
+ `${owner}/${repo}`,
225
+ '--body',
226
+ body
227
+ ]);
228
+ if (result.status !== 0) {
229
+ throw new Error(`Failed to update issue body: ${result.stderr}`);
230
+ }
231
+ }
232
+ /**
233
+ * Post comment to issue
234
+ */
235
+ async function postComment(issueNumber, comment, owner, repo) {
236
+ const result = await execFileNoThrow('gh', [
237
+ 'issue',
238
+ 'comment',
239
+ String(issueNumber),
240
+ '--repo',
241
+ `${owner}/${repo}`,
242
+ '--body',
243
+ comment
244
+ ]);
245
+ if (result.status !== 0) {
246
+ throw new Error(`Failed to post comment: ${result.stderr}`);
247
+ }
248
+ }
249
+ /**
250
+ * Build living docs section for issue body
251
+ */
252
+ function buildLivingDocsSection(livingDocs, owner, repo) {
253
+ const parts = ['## 📚 Living Documentation', ''];
254
+ // Specs
255
+ if (livingDocs.specs.length > 0) {
256
+ parts.push('**Specifications**:');
257
+ livingDocs.specs.forEach(spec => {
258
+ const name = path.basename(spec, '.md');
259
+ const url = `https://github.com/${owner}/${repo}/blob/develop/${spec}`;
260
+ parts.push(`- [${name}](${url})`);
261
+ });
262
+ parts.push('');
263
+ }
264
+ // Architecture
265
+ if (livingDocs.architecture.length > 0) {
266
+ parts.push('**Architecture**:');
267
+ livingDocs.architecture.forEach(doc => {
268
+ const name = path.basename(doc, '.md');
269
+ const url = `https://github.com/${owner}/${repo}/blob/develop/${doc}`;
270
+ parts.push(`- [${name}](${url})`);
271
+ });
272
+ parts.push('');
273
+ }
274
+ // Diagrams
275
+ if (livingDocs.diagrams.length > 0) {
276
+ parts.push('**Diagrams**:');
277
+ livingDocs.diagrams.forEach(diagram => {
278
+ const name = path.basename(diagram);
279
+ const url = `https://github.com/${owner}/${repo}/blob/develop/${diagram}`;
280
+ parts.push(`- [${name}](${url})`);
281
+ });
282
+ parts.push('');
283
+ }
284
+ parts.push('---');
285
+ return parts.join('\n');
286
+ }
287
+ /**
288
+ * Update body with living docs section
289
+ */
290
+ function updateBodyWithLivingDocs(currentBody, livingDocsSection) {
291
+ // Check if living docs section already exists
292
+ const marker = '## 📚 Living Documentation';
293
+ if (currentBody.includes(marker)) {
294
+ // Replace existing section
295
+ const beforeMarker = currentBody.substring(0, currentBody.indexOf(marker));
296
+ const afterMarker = currentBody.substring(currentBody.indexOf(marker));
297
+ // Find end of section (next ## header or end of body)
298
+ const nextSection = afterMarker.indexOf('\n## ', 1);
299
+ const replacement = nextSection > 0
300
+ ? afterMarker.substring(0, nextSection)
301
+ : afterMarker;
302
+ return beforeMarker + livingDocsSection + (nextSection > 0 ? afterMarker.substring(nextSection) : '');
303
+ }
304
+ else {
305
+ // Append at end
306
+ return currentBody + '\n\n' + livingDocsSection;
307
+ }
308
+ }
309
+ /**
310
+ * Determine document type from path
311
+ */
312
+ function getDocType(docPath) {
313
+ if (docPath.includes('/adr/')) {
314
+ return 'Architecture Decision Record (ADR)';
315
+ }
316
+ if (docPath.includes('/diagrams/')) {
317
+ return 'Architecture Diagram';
318
+ }
319
+ if (docPath.startsWith('hld-')) {
320
+ return 'High-Level Design (HLD)';
321
+ }
322
+ if (docPath.includes('/specs/')) {
323
+ return 'Specification';
324
+ }
325
+ return 'Documentation';
326
+ }
327
+ //# sourceMappingURL=github-issue-updater.js.map