specweave 0.14.0 → 0.15.0

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 (806) hide show
  1. package/README.md +58 -9
  2. package/bin/specweave.js +65 -0
  3. package/dist/cli/commands/migrate-to-profiles.d.ts.map +1 -1
  4. package/dist/cli/commands/migrate-to-profiles.js +0 -2
  5. package/dist/cli/commands/migrate-to-profiles.js.map +1 -1
  6. package/dist/core/agent-model-manager.d.ts +52 -0
  7. package/dist/core/agent-model-manager.d.ts.map +1 -0
  8. package/dist/core/agent-model-manager.js +120 -0
  9. package/dist/core/agent-model-manager.js.map +1 -0
  10. package/dist/core/model-selector.d.ts +57 -0
  11. package/dist/core/model-selector.d.ts.map +1 -0
  12. package/dist/core/model-selector.js +115 -0
  13. package/dist/core/model-selector.js.map +1 -0
  14. package/dist/core/phase-detector.d.ts +62 -0
  15. package/dist/core/phase-detector.d.ts.map +1 -0
  16. package/dist/core/phase-detector.js +229 -0
  17. package/dist/core/phase-detector.js.map +1 -0
  18. package/dist/core/sync/folder-mapper.d.ts.map +1 -1
  19. package/dist/core/sync/folder-mapper.js +70 -35
  20. package/dist/core/sync/folder-mapper.js.map +1 -1
  21. package/dist/core/sync/profile-validator.d.ts.map +1 -1
  22. package/dist/core/sync/profile-validator.js +35 -90
  23. package/dist/core/sync/profile-validator.js.map +1 -1
  24. package/dist/core/types/sync-profile.d.ts +101 -155
  25. package/dist/core/types/sync-profile.d.ts.map +1 -1
  26. package/dist/core/types/sync-profile.js +46 -22
  27. package/dist/core/types/sync-profile.js.map +1 -1
  28. package/dist/hooks/lib/git-diff-analyzer.d.ts +89 -0
  29. package/dist/hooks/lib/git-diff-analyzer.d.ts.map +1 -0
  30. package/dist/hooks/lib/git-diff-analyzer.js +226 -0
  31. package/dist/hooks/lib/git-diff-analyzer.js.map +1 -0
  32. package/dist/hooks/lib/invoke-translator-skill.d.ts +60 -0
  33. package/dist/hooks/lib/invoke-translator-skill.d.ts.map +1 -0
  34. package/dist/hooks/lib/invoke-translator-skill.js +201 -0
  35. package/dist/hooks/lib/invoke-translator-skill.js.map +1 -0
  36. package/dist/hooks/lib/prepare-reflection-context.d.ts +42 -0
  37. package/dist/hooks/lib/prepare-reflection-context.d.ts.map +1 -0
  38. package/dist/hooks/lib/prepare-reflection-context.js +123 -0
  39. package/dist/hooks/lib/prepare-reflection-context.js.map +1 -0
  40. package/dist/hooks/lib/reflection-config-loader.d.ts +45 -0
  41. package/dist/hooks/lib/reflection-config-loader.d.ts.map +1 -0
  42. package/dist/hooks/lib/reflection-config-loader.js +132 -0
  43. package/dist/hooks/lib/reflection-config-loader.js.map +1 -0
  44. package/dist/hooks/lib/reflection-parser.d.ts +33 -0
  45. package/dist/hooks/lib/reflection-parser.d.ts.map +1 -0
  46. package/dist/hooks/lib/reflection-parser.js +419 -0
  47. package/dist/hooks/lib/reflection-parser.js.map +1 -0
  48. package/dist/hooks/lib/reflection-prompt-builder.d.ts +56 -0
  49. package/dist/hooks/lib/reflection-prompt-builder.d.ts.map +1 -0
  50. package/dist/hooks/lib/reflection-prompt-builder.js +239 -0
  51. package/dist/hooks/lib/reflection-prompt-builder.js.map +1 -0
  52. package/dist/hooks/lib/reflection-storage.d.ts +64 -0
  53. package/dist/hooks/lib/reflection-storage.d.ts.map +1 -0
  54. package/dist/hooks/lib/reflection-storage.js +305 -0
  55. package/dist/hooks/lib/reflection-storage.js.map +1 -0
  56. package/dist/hooks/lib/run-self-reflection.d.ts +43 -0
  57. package/dist/hooks/lib/run-self-reflection.d.ts.map +1 -0
  58. package/dist/hooks/lib/run-self-reflection.js +203 -0
  59. package/dist/hooks/lib/run-self-reflection.js.map +1 -0
  60. package/dist/hooks/lib/sync-living-docs.d.ts +27 -0
  61. package/dist/hooks/lib/sync-living-docs.d.ts.map +1 -0
  62. package/dist/hooks/lib/sync-living-docs.js +116 -0
  63. package/dist/hooks/lib/sync-living-docs.js.map +1 -0
  64. package/dist/hooks/lib/translate-file.d.ts +59 -0
  65. package/dist/hooks/lib/translate-file.d.ts.map +1 -0
  66. package/dist/hooks/lib/translate-file.js +350 -0
  67. package/dist/hooks/lib/translate-file.js.map +1 -0
  68. package/dist/hooks/lib/translate-living-docs.d.ts +13 -0
  69. package/dist/hooks/lib/translate-living-docs.d.ts.map +1 -0
  70. package/dist/hooks/lib/translate-living-docs.js +175 -0
  71. package/dist/hooks/lib/translate-living-docs.js.map +1 -0
  72. package/dist/hooks/lib/types/reflection-types.d.ts +164 -0
  73. package/dist/hooks/lib/types/reflection-types.d.ts.map +1 -0
  74. package/dist/hooks/lib/types/reflection-types.js +73 -0
  75. package/dist/hooks/lib/types/reflection-types.js.map +1 -0
  76. package/dist/hooks/lib/update-tasks-md.d.ts +29 -0
  77. package/dist/hooks/lib/update-tasks-md.d.ts.map +1 -0
  78. package/dist/hooks/lib/update-tasks-md.js +203 -0
  79. package/dist/hooks/lib/update-tasks-md.js.map +1 -0
  80. package/dist/plugins/specweave/lib/hooks/git-diff-analyzer.d.ts +89 -0
  81. package/dist/plugins/specweave/lib/hooks/git-diff-analyzer.d.ts.map +1 -0
  82. package/dist/plugins/specweave/lib/hooks/git-diff-analyzer.js +226 -0
  83. package/dist/plugins/specweave/lib/hooks/git-diff-analyzer.js.map +1 -0
  84. package/dist/plugins/specweave/lib/hooks/invoke-translator-skill.d.ts +60 -0
  85. package/dist/plugins/specweave/lib/hooks/invoke-translator-skill.d.ts.map +1 -0
  86. package/dist/plugins/specweave/lib/hooks/invoke-translator-skill.js +201 -0
  87. package/dist/plugins/specweave/lib/hooks/invoke-translator-skill.js.map +1 -0
  88. package/dist/plugins/specweave/lib/hooks/prepare-reflection-context.d.ts +42 -0
  89. package/dist/plugins/specweave/lib/hooks/prepare-reflection-context.d.ts.map +1 -0
  90. package/dist/plugins/specweave/lib/hooks/prepare-reflection-context.js +123 -0
  91. package/dist/plugins/specweave/lib/hooks/prepare-reflection-context.js.map +1 -0
  92. package/dist/plugins/specweave/lib/hooks/reflection-config-loader.d.ts +45 -0
  93. package/dist/plugins/specweave/lib/hooks/reflection-config-loader.d.ts.map +1 -0
  94. package/dist/plugins/specweave/lib/hooks/reflection-config-loader.js +132 -0
  95. package/dist/plugins/specweave/lib/hooks/reflection-config-loader.js.map +1 -0
  96. package/dist/plugins/specweave/lib/hooks/reflection-parser.d.ts +33 -0
  97. package/dist/plugins/specweave/lib/hooks/reflection-parser.d.ts.map +1 -0
  98. package/dist/plugins/specweave/lib/hooks/reflection-parser.js +419 -0
  99. package/dist/plugins/specweave/lib/hooks/reflection-parser.js.map +1 -0
  100. package/dist/plugins/specweave/lib/hooks/reflection-prompt-builder.d.ts +56 -0
  101. package/dist/plugins/specweave/lib/hooks/reflection-prompt-builder.d.ts.map +1 -0
  102. package/dist/plugins/specweave/lib/hooks/reflection-prompt-builder.js +239 -0
  103. package/dist/plugins/specweave/lib/hooks/reflection-prompt-builder.js.map +1 -0
  104. package/dist/plugins/specweave/lib/hooks/reflection-storage.d.ts +64 -0
  105. package/dist/plugins/specweave/lib/hooks/reflection-storage.d.ts.map +1 -0
  106. package/dist/plugins/specweave/lib/hooks/reflection-storage.js +305 -0
  107. package/dist/plugins/specweave/lib/hooks/reflection-storage.js.map +1 -0
  108. package/dist/plugins/specweave/lib/hooks/run-self-reflection.d.ts +43 -0
  109. package/dist/plugins/specweave/lib/hooks/run-self-reflection.d.ts.map +1 -0
  110. package/dist/plugins/specweave/lib/hooks/run-self-reflection.js +203 -0
  111. package/dist/plugins/specweave/lib/hooks/run-self-reflection.js.map +1 -0
  112. package/dist/plugins/specweave/lib/hooks/sync-living-docs.d.ts +27 -0
  113. package/dist/plugins/specweave/lib/hooks/sync-living-docs.d.ts.map +1 -0
  114. package/dist/plugins/specweave/lib/hooks/sync-living-docs.js +144 -0
  115. package/dist/plugins/specweave/lib/hooks/sync-living-docs.js.map +1 -0
  116. package/dist/plugins/specweave/lib/hooks/translate-file.d.ts +59 -0
  117. package/dist/plugins/specweave/lib/hooks/translate-file.d.ts.map +1 -0
  118. package/dist/plugins/specweave/lib/hooks/translate-file.js +350 -0
  119. package/dist/plugins/specweave/lib/hooks/translate-file.js.map +1 -0
  120. package/dist/plugins/specweave/lib/hooks/translate-living-docs.d.ts +13 -0
  121. package/dist/plugins/specweave/lib/hooks/translate-living-docs.d.ts.map +1 -0
  122. package/dist/plugins/specweave/lib/hooks/translate-living-docs.js +175 -0
  123. package/dist/plugins/specweave/lib/hooks/translate-living-docs.js.map +1 -0
  124. package/dist/plugins/specweave/lib/hooks/types/reflection-types.d.ts +164 -0
  125. package/dist/plugins/specweave/lib/hooks/types/reflection-types.d.ts.map +1 -0
  126. package/dist/plugins/specweave/lib/hooks/types/reflection-types.js +73 -0
  127. package/dist/plugins/specweave/lib/hooks/types/reflection-types.js.map +1 -0
  128. package/dist/plugins/specweave/lib/hooks/update-tasks-md.d.ts +29 -0
  129. package/dist/plugins/specweave/lib/hooks/update-tasks-md.d.ts.map +1 -0
  130. package/dist/plugins/specweave/lib/hooks/update-tasks-md.js +203 -0
  131. package/dist/plugins/specweave/lib/hooks/update-tasks-md.js.map +1 -0
  132. package/dist/plugins/specweave-ado/lib/ado-board-resolver.d.ts +94 -0
  133. package/dist/plugins/specweave-ado/lib/ado-board-resolver.d.ts.map +1 -0
  134. package/dist/plugins/specweave-ado/lib/ado-board-resolver.js +219 -0
  135. package/dist/plugins/specweave-ado/lib/ado-board-resolver.js.map +1 -0
  136. package/dist/plugins/specweave-ado/lib/ado-client-v2.d.ts +124 -0
  137. package/dist/plugins/specweave-ado/lib/ado-client-v2.d.ts.map +1 -0
  138. package/dist/plugins/specweave-ado/lib/ado-client-v2.js +382 -0
  139. package/dist/plugins/specweave-ado/lib/ado-client-v2.js.map +1 -0
  140. package/dist/plugins/specweave-ado/lib/ado-client.d.ts +112 -0
  141. package/dist/plugins/specweave-ado/lib/ado-client.d.ts.map +1 -0
  142. package/dist/plugins/specweave-ado/lib/ado-client.js +257 -0
  143. package/dist/plugins/specweave-ado/lib/ado-client.js.map +1 -0
  144. package/dist/plugins/specweave-ado/lib/ado-hierarchical-sync.d.ts +40 -0
  145. package/dist/plugins/specweave-ado/lib/ado-hierarchical-sync.d.ts.map +1 -0
  146. package/dist/plugins/specweave-ado/lib/ado-hierarchical-sync.js +370 -0
  147. package/dist/plugins/specweave-ado/lib/ado-hierarchical-sync.js.map +1 -0
  148. package/dist/plugins/specweave-ado/lib/ado-spec-sync.d.ts +100 -0
  149. package/dist/plugins/specweave-ado/lib/ado-spec-sync.d.ts.map +1 -0
  150. package/dist/plugins/specweave-ado/lib/ado-spec-sync.js +471 -0
  151. package/dist/plugins/specweave-ado/lib/ado-spec-sync.js.map +1 -0
  152. package/dist/plugins/specweave-ado/lib/project-selector.d.ts +42 -0
  153. package/dist/plugins/specweave-ado/lib/project-selector.d.ts.map +1 -0
  154. package/dist/plugins/specweave-ado/lib/project-selector.js +211 -0
  155. package/dist/plugins/specweave-ado/lib/project-selector.js.map +1 -0
  156. package/dist/plugins/specweave-github/lib/cli-sync-increment-changes.d.ts +12 -0
  157. package/dist/plugins/specweave-github/lib/cli-sync-increment-changes.d.ts.map +1 -0
  158. package/dist/plugins/specweave-github/lib/cli-sync-increment-changes.js +28 -0
  159. package/dist/plugins/specweave-github/lib/cli-sync-increment-changes.js.map +1 -0
  160. package/dist/plugins/specweave-github/lib/github-board-resolver.d.ts +54 -0
  161. package/dist/plugins/specweave-github/lib/github-board-resolver.d.ts.map +1 -0
  162. package/dist/plugins/specweave-github/lib/github-board-resolver.js +122 -0
  163. package/dist/plugins/specweave-github/lib/github-board-resolver.js.map +1 -0
  164. package/dist/plugins/specweave-github/lib/github-client-v2.d.ts +104 -0
  165. package/dist/plugins/specweave-github/lib/github-client-v2.d.ts.map +1 -0
  166. package/dist/plugins/specweave-github/lib/github-client-v2.js +408 -0
  167. package/dist/plugins/specweave-github/lib/github-client-v2.js.map +1 -0
  168. package/dist/plugins/specweave-github/lib/github-client.d.ts +96 -0
  169. package/dist/plugins/specweave-github/lib/github-client.d.ts.map +1 -0
  170. package/dist/plugins/specweave-github/lib/github-client.js +299 -0
  171. package/dist/plugins/specweave-github/lib/github-client.js.map +1 -0
  172. package/dist/plugins/specweave-github/lib/github-hierarchical-sync.d.ts +29 -0
  173. package/dist/plugins/specweave-github/lib/github-hierarchical-sync.d.ts.map +1 -0
  174. package/dist/plugins/specweave-github/lib/github-hierarchical-sync.js +268 -0
  175. package/dist/plugins/specweave-github/lib/github-hierarchical-sync.js.map +1 -0
  176. package/dist/plugins/specweave-github/lib/github-issue-updater.d.ts +61 -0
  177. package/dist/plugins/specweave-github/lib/github-issue-updater.d.ts.map +1 -0
  178. package/dist/plugins/specweave-github/lib/github-issue-updater.js +327 -0
  179. package/dist/plugins/specweave-github/lib/github-issue-updater.js.map +1 -0
  180. package/dist/plugins/specweave-github/lib/github-spec-sync.d.ts +108 -0
  181. package/dist/plugins/specweave-github/lib/github-spec-sync.d.ts.map +1 -0
  182. package/dist/plugins/specweave-github/lib/github-spec-sync.js +505 -0
  183. package/dist/plugins/specweave-github/lib/github-spec-sync.js.map +1 -0
  184. package/dist/plugins/specweave-github/lib/github-sync-bidirectional.d.ts +36 -0
  185. package/dist/plugins/specweave-github/lib/github-sync-bidirectional.d.ts.map +1 -0
  186. package/dist/plugins/specweave-github/lib/github-sync-bidirectional.js +228 -0
  187. package/dist/plugins/specweave-github/lib/github-sync-bidirectional.js.map +1 -0
  188. package/dist/plugins/specweave-github/lib/github-sync-increment-changes.d.ts +18 -0
  189. package/dist/plugins/specweave-github/lib/github-sync-increment-changes.d.ts.map +1 -0
  190. package/dist/plugins/specweave-github/lib/github-sync-increment-changes.js +287 -0
  191. package/dist/plugins/specweave-github/lib/github-sync-increment-changes.js.map +1 -0
  192. package/dist/plugins/specweave-github/lib/index.d.ts +10 -0
  193. package/dist/plugins/specweave-github/lib/index.d.ts.map +1 -0
  194. package/dist/plugins/specweave-github/lib/index.js +10 -0
  195. package/dist/plugins/specweave-github/lib/index.js.map +1 -0
  196. package/dist/plugins/specweave-github/lib/repo-selector.d.ts +49 -0
  197. package/dist/plugins/specweave-github/lib/repo-selector.d.ts.map +1 -0
  198. package/dist/plugins/specweave-github/lib/repo-selector.js +216 -0
  199. package/dist/plugins/specweave-github/lib/repo-selector.js.map +1 -0
  200. package/dist/plugins/specweave-github/lib/subtask-sync.d.ts +51 -0
  201. package/dist/plugins/specweave-github/lib/subtask-sync.d.ts.map +1 -0
  202. package/dist/plugins/specweave-github/lib/subtask-sync.js +147 -0
  203. package/dist/plugins/specweave-github/lib/subtask-sync.js.map +1 -0
  204. package/dist/plugins/specweave-github/lib/task-parser.d.ts +37 -0
  205. package/dist/plugins/specweave-github/lib/task-parser.d.ts.map +1 -0
  206. package/dist/plugins/specweave-github/lib/task-parser.js +211 -0
  207. package/dist/plugins/specweave-github/lib/task-parser.js.map +1 -0
  208. package/dist/plugins/specweave-github/lib/task-sync.d.ts +51 -0
  209. package/dist/plugins/specweave-github/lib/task-sync.d.ts.map +1 -0
  210. package/dist/plugins/specweave-github/lib/task-sync.js +332 -0
  211. package/dist/plugins/specweave-github/lib/task-sync.js.map +1 -0
  212. package/dist/plugins/specweave-github/lib/types.d.ts +80 -0
  213. package/dist/plugins/specweave-github/lib/types.d.ts.map +1 -0
  214. package/dist/plugins/specweave-github/lib/types.js +5 -0
  215. package/dist/plugins/specweave-github/lib/types.js.map +1 -0
  216. package/dist/plugins/specweave-jira/lib/jira-board-resolver.d.ts +50 -0
  217. package/dist/plugins/specweave-jira/lib/jira-board-resolver.d.ts.map +1 -0
  218. package/dist/plugins/specweave-jira/lib/jira-board-resolver.js +84 -0
  219. package/dist/plugins/specweave-jira/lib/jira-board-resolver.js.map +1 -0
  220. package/dist/plugins/specweave-jira/lib/jira-hierarchical-sync.d.ts +33 -0
  221. package/dist/plugins/specweave-jira/lib/jira-hierarchical-sync.d.ts.map +1 -0
  222. package/dist/plugins/specweave-jira/lib/jira-hierarchical-sync.js +206 -0
  223. package/dist/plugins/specweave-jira/lib/jira-hierarchical-sync.js.map +1 -0
  224. package/dist/plugins/specweave-jira/lib/jira-spec-sync.d.ts +105 -0
  225. package/dist/plugins/specweave-jira/lib/jira-spec-sync.d.ts.map +1 -0
  226. package/dist/plugins/specweave-jira/lib/jira-spec-sync.js +456 -0
  227. package/dist/plugins/specweave-jira/lib/jira-spec-sync.js.map +1 -0
  228. package/dist/plugins/specweave-jira/lib/project-selector.d.ts +42 -0
  229. package/dist/plugins/specweave-jira/lib/project-selector.d.ts.map +1 -0
  230. package/dist/plugins/specweave-jira/lib/project-selector.js +216 -0
  231. package/dist/plugins/specweave-jira/lib/project-selector.js.map +1 -0
  232. package/dist/plugins/specweave-jira/lib/reorganization-detector.d.ts +67 -0
  233. package/dist/plugins/specweave-jira/lib/reorganization-detector.d.ts.map +1 -0
  234. package/dist/plugins/specweave-jira/lib/reorganization-detector.js +252 -0
  235. package/dist/plugins/specweave-jira/lib/reorganization-detector.js.map +1 -0
  236. package/dist/plugins/specweave-jira/lib/setup-wizard.d.ts +29 -0
  237. package/dist/plugins/specweave-jira/lib/setup-wizard.d.ts.map +1 -0
  238. package/dist/plugins/specweave-jira/lib/setup-wizard.js +219 -0
  239. package/dist/plugins/specweave-jira/lib/setup-wizard.js.map +1 -0
  240. package/dist/project-mapper.js +272 -0
  241. package/dist/scripts/split-spec-by-project.js +105 -0
  242. package/dist/spec-splitter.js +283 -0
  243. package/dist/src/adapters/adapter-base.d.ts +71 -0
  244. package/dist/src/adapters/adapter-base.d.ts.map +1 -0
  245. package/dist/src/adapters/adapter-base.js +139 -0
  246. package/dist/src/adapters/adapter-base.js.map +1 -0
  247. package/dist/src/adapters/adapter-interface.d.ts +149 -0
  248. package/dist/src/adapters/adapter-interface.d.ts.map +1 -0
  249. package/dist/src/adapters/adapter-interface.js +8 -0
  250. package/dist/src/adapters/adapter-interface.js.map +1 -0
  251. package/dist/src/adapters/adapter-loader.d.ts +91 -0
  252. package/dist/src/adapters/adapter-loader.d.ts.map +1 -0
  253. package/dist/src/adapters/adapter-loader.js +238 -0
  254. package/dist/src/adapters/adapter-loader.js.map +1 -0
  255. package/dist/src/adapters/agents-md-generator.d.ts +48 -0
  256. package/dist/src/adapters/agents-md-generator.d.ts.map +1 -0
  257. package/dist/src/adapters/agents-md-generator.js +193 -0
  258. package/dist/src/adapters/agents-md-generator.js.map +1 -0
  259. package/dist/src/adapters/claude/adapter.d.ts +128 -0
  260. package/dist/src/adapters/claude/adapter.d.ts.map +1 -0
  261. package/dist/src/adapters/claude/adapter.js +415 -0
  262. package/dist/src/adapters/claude/adapter.js.map +1 -0
  263. package/dist/src/adapters/claude-md-generator.d.ts +78 -0
  264. package/dist/src/adapters/claude-md-generator.d.ts.map +1 -0
  265. package/dist/src/adapters/claude-md-generator.js +307 -0
  266. package/dist/src/adapters/claude-md-generator.js.map +1 -0
  267. package/dist/src/adapters/codex/adapter.d.ts +50 -0
  268. package/dist/src/adapters/codex/adapter.d.ts.map +1 -0
  269. package/dist/src/adapters/codex/adapter.js +316 -0
  270. package/dist/src/adapters/codex/adapter.js.map +1 -0
  271. package/dist/src/adapters/cursor/adapter.d.ts +98 -0
  272. package/dist/src/adapters/cursor/adapter.d.ts.map +1 -0
  273. package/dist/src/adapters/cursor/adapter.js +406 -0
  274. package/dist/src/adapters/cursor/adapter.js.map +1 -0
  275. package/dist/src/adapters/doc-generator.d.ts +69 -0
  276. package/dist/src/adapters/doc-generator.d.ts.map +1 -0
  277. package/dist/src/adapters/doc-generator.js +247 -0
  278. package/dist/src/adapters/doc-generator.js.map +1 -0
  279. package/dist/src/adapters/gemini/adapter.d.ts +50 -0
  280. package/dist/src/adapters/gemini/adapter.d.ts.map +1 -0
  281. package/dist/src/adapters/gemini/adapter.js +281 -0
  282. package/dist/src/adapters/gemini/adapter.js.map +1 -0
  283. package/dist/src/adapters/generic/adapter.d.ts +86 -0
  284. package/dist/src/adapters/generic/adapter.d.ts.map +1 -0
  285. package/dist/src/adapters/generic/adapter.js +338 -0
  286. package/dist/src/adapters/generic/adapter.js.map +1 -0
  287. package/dist/src/cli/commands/abandon.d.ts +13 -0
  288. package/dist/src/cli/commands/abandon.d.ts.map +1 -0
  289. package/dist/src/cli/commands/abandon.js +15 -0
  290. package/dist/src/cli/commands/abandon.js.map +1 -0
  291. package/dist/src/cli/commands/import-docs.d.ts +21 -0
  292. package/dist/src/cli/commands/import-docs.d.ts.map +1 -0
  293. package/dist/src/cli/commands/import-docs.js +146 -0
  294. package/dist/src/cli/commands/import-docs.js.map +1 -0
  295. package/dist/src/cli/commands/init-multiproject.d.ts +11 -0
  296. package/dist/src/cli/commands/init-multiproject.d.ts.map +1 -0
  297. package/dist/src/cli/commands/init-multiproject.js +202 -0
  298. package/dist/src/cli/commands/init-multiproject.js.map +1 -0
  299. package/dist/src/cli/commands/init.d.ts +9 -0
  300. package/dist/src/cli/commands/init.d.ts.map +1 -0
  301. package/dist/src/cli/commands/init.js +1444 -0
  302. package/dist/src/cli/commands/init.js.map +1 -0
  303. package/dist/src/cli/commands/install.d.ts +9 -0
  304. package/dist/src/cli/commands/install.d.ts.map +1 -0
  305. package/dist/src/cli/commands/install.js +127 -0
  306. package/dist/src/cli/commands/install.js.map +1 -0
  307. package/dist/src/cli/commands/list.d.ts +8 -0
  308. package/dist/src/cli/commands/list.d.ts.map +1 -0
  309. package/dist/src/cli/commands/list.js +119 -0
  310. package/dist/src/cli/commands/list.js.map +1 -0
  311. package/dist/src/cli/commands/migrate-to-multiproject.d.ts +37 -0
  312. package/dist/src/cli/commands/migrate-to-multiproject.d.ts.map +1 -0
  313. package/dist/src/cli/commands/migrate-to-multiproject.js +189 -0
  314. package/dist/src/cli/commands/migrate-to-multiproject.js.map +1 -0
  315. package/dist/src/cli/commands/migrate-to-profiles.d.ts +25 -0
  316. package/dist/src/cli/commands/migrate-to-profiles.d.ts.map +1 -0
  317. package/dist/src/cli/commands/migrate-to-profiles.js +350 -0
  318. package/dist/src/cli/commands/migrate-to-profiles.js.map +1 -0
  319. package/dist/src/cli/commands/pause.d.ts +13 -0
  320. package/dist/src/cli/commands/pause.d.ts.map +1 -0
  321. package/dist/src/cli/commands/pause.js +15 -0
  322. package/dist/src/cli/commands/pause.js.map +1 -0
  323. package/dist/src/cli/commands/qa.d.ts +54 -0
  324. package/dist/src/cli/commands/qa.d.ts.map +1 -0
  325. package/dist/src/cli/commands/qa.js +98 -0
  326. package/dist/src/cli/commands/qa.js.map +1 -0
  327. package/dist/src/cli/commands/resume.d.ts +12 -0
  328. package/dist/src/cli/commands/resume.d.ts.map +1 -0
  329. package/dist/src/cli/commands/resume.js +14 -0
  330. package/dist/src/cli/commands/resume.js.map +1 -0
  331. package/dist/src/cli/commands/status.d.ts +12 -0
  332. package/dist/src/cli/commands/status.d.ts.map +1 -0
  333. package/dist/src/cli/commands/status.js +23 -0
  334. package/dist/src/cli/commands/status.js.map +1 -0
  335. package/dist/src/cli/commands/switch-project.d.ts +13 -0
  336. package/dist/src/cli/commands/switch-project.d.ts.map +1 -0
  337. package/dist/src/cli/commands/switch-project.js +91 -0
  338. package/dist/src/cli/commands/switch-project.js.map +1 -0
  339. package/dist/src/cli/commands/validate-jira.d.ts +35 -0
  340. package/dist/src/cli/commands/validate-jira.d.ts.map +1 -0
  341. package/dist/src/cli/commands/validate-jira.js +112 -0
  342. package/dist/src/cli/commands/validate-jira.js.map +1 -0
  343. package/dist/src/cli/commands/validate-plugins.d.ts +41 -0
  344. package/dist/src/cli/commands/validate-plugins.d.ts.map +1 -0
  345. package/dist/src/cli/commands/validate-plugins.js +171 -0
  346. package/dist/src/cli/commands/validate-plugins.js.map +1 -0
  347. package/dist/src/cli/helpers/issue-tracker/ado.d.ts +57 -0
  348. package/dist/src/cli/helpers/issue-tracker/ado.d.ts.map +1 -0
  349. package/dist/src/cli/helpers/issue-tracker/ado.js +243 -0
  350. package/dist/src/cli/helpers/issue-tracker/ado.js.map +1 -0
  351. package/dist/src/cli/helpers/issue-tracker/github.d.ts +65 -0
  352. package/dist/src/cli/helpers/issue-tracker/github.d.ts.map +1 -0
  353. package/dist/src/cli/helpers/issue-tracker/github.js +426 -0
  354. package/dist/src/cli/helpers/issue-tracker/github.js.map +1 -0
  355. package/dist/src/cli/helpers/issue-tracker/index.d.ts +22 -0
  356. package/dist/src/cli/helpers/issue-tracker/index.d.ts.map +1 -0
  357. package/dist/src/cli/helpers/issue-tracker/index.js +314 -0
  358. package/dist/src/cli/helpers/issue-tracker/index.js.map +1 -0
  359. package/dist/src/cli/helpers/issue-tracker/jira.d.ts +61 -0
  360. package/dist/src/cli/helpers/issue-tracker/jira.d.ts.map +1 -0
  361. package/dist/src/cli/helpers/issue-tracker/jira.js +404 -0
  362. package/dist/src/cli/helpers/issue-tracker/jira.js.map +1 -0
  363. package/dist/src/cli/helpers/issue-tracker/types.d.ts +108 -0
  364. package/dist/src/cli/helpers/issue-tracker/types.d.ts.map +1 -0
  365. package/dist/src/cli/helpers/issue-tracker/types.js +16 -0
  366. package/dist/src/cli/helpers/issue-tracker/types.js.map +1 -0
  367. package/dist/src/cli/helpers/issue-tracker/utils.d.ts +112 -0
  368. package/dist/src/cli/helpers/issue-tracker/utils.d.ts.map +1 -0
  369. package/dist/src/cli/helpers/issue-tracker/utils.js +247 -0
  370. package/dist/src/cli/helpers/issue-tracker/utils.js.map +1 -0
  371. package/dist/src/core/agent-model-manager.d.ts +52 -0
  372. package/dist/src/core/agent-model-manager.d.ts.map +1 -0
  373. package/dist/src/core/agent-model-manager.js +120 -0
  374. package/dist/src/core/agent-model-manager.js.map +1 -0
  375. package/dist/src/core/brownfield/analyzer.d.ts +86 -0
  376. package/dist/src/core/brownfield/analyzer.d.ts.map +1 -0
  377. package/dist/src/core/brownfield/analyzer.js +365 -0
  378. package/dist/src/core/brownfield/analyzer.js.map +1 -0
  379. package/dist/src/core/brownfield/importer.d.ts +76 -0
  380. package/dist/src/core/brownfield/importer.d.ts.map +1 -0
  381. package/dist/src/core/brownfield/importer.js +287 -0
  382. package/dist/src/core/brownfield/importer.js.map +1 -0
  383. package/dist/src/core/config-manager.d.ts +47 -0
  384. package/dist/src/core/config-manager.d.ts.map +1 -0
  385. package/dist/src/core/config-manager.js +136 -0
  386. package/dist/src/core/config-manager.js.map +1 -0
  387. package/dist/src/core/cost-tracker.d.ts +108 -0
  388. package/dist/src/core/cost-tracker.d.ts.map +1 -0
  389. package/dist/src/core/cost-tracker.js +281 -0
  390. package/dist/src/core/cost-tracker.js.map +1 -0
  391. package/dist/src/core/credentials-manager.d.ts +107 -0
  392. package/dist/src/core/credentials-manager.d.ts.map +1 -0
  393. package/dist/src/core/credentials-manager.js +457 -0
  394. package/dist/src/core/credentials-manager.js.map +1 -0
  395. package/dist/src/core/i18n/language-detector.d.ts +29 -0
  396. package/dist/src/core/i18n/language-detector.d.ts.map +1 -0
  397. package/dist/src/core/i18n/language-detector.js +143 -0
  398. package/dist/src/core/i18n/language-detector.js.map +1 -0
  399. package/dist/src/core/i18n/language-manager.d.ts +101 -0
  400. package/dist/src/core/i18n/language-manager.d.ts.map +1 -0
  401. package/dist/src/core/i18n/language-manager.js +232 -0
  402. package/dist/src/core/i18n/language-manager.js.map +1 -0
  403. package/dist/src/core/i18n/language-registry.d.ts +44 -0
  404. package/dist/src/core/i18n/language-registry.d.ts.map +1 -0
  405. package/dist/src/core/i18n/language-registry.js +234 -0
  406. package/dist/src/core/i18n/language-registry.js.map +1 -0
  407. package/dist/src/core/i18n/locale-manager.d.ts +62 -0
  408. package/dist/src/core/i18n/locale-manager.d.ts.map +1 -0
  409. package/dist/src/core/i18n/locale-manager.js +137 -0
  410. package/dist/src/core/i18n/locale-manager.js.map +1 -0
  411. package/dist/src/core/i18n/system-prompt-injector.d.ts +33 -0
  412. package/dist/src/core/i18n/system-prompt-injector.d.ts.map +1 -0
  413. package/dist/src/core/i18n/system-prompt-injector.js +131 -0
  414. package/dist/src/core/i18n/system-prompt-injector.js.map +1 -0
  415. package/dist/src/core/i18n/types.d.ts +151 -0
  416. package/dist/src/core/i18n/types.d.ts.map +1 -0
  417. package/dist/src/core/i18n/types.js +11 -0
  418. package/dist/src/core/i18n/types.js.map +1 -0
  419. package/dist/src/core/increment/limits.d.ts +68 -0
  420. package/dist/src/core/increment/limits.d.ts.map +1 -0
  421. package/dist/src/core/increment/limits.js +224 -0
  422. package/dist/src/core/increment/limits.js.map +1 -0
  423. package/dist/src/core/increment/metadata-manager.d.ts +114 -0
  424. package/dist/src/core/increment/metadata-manager.d.ts.map +1 -0
  425. package/dist/src/core/increment/metadata-manager.js +320 -0
  426. package/dist/src/core/increment/metadata-manager.js.map +1 -0
  427. package/dist/src/core/increment/status-commands.d.ts +43 -0
  428. package/dist/src/core/increment/status-commands.d.ts.map +1 -0
  429. package/dist/src/core/increment/status-commands.js +277 -0
  430. package/dist/src/core/increment/status-commands.js.map +1 -0
  431. package/dist/src/core/increment-status.d.ts +72 -0
  432. package/dist/src/core/increment-status.d.ts.map +1 -0
  433. package/dist/src/core/increment-status.js +227 -0
  434. package/dist/src/core/increment-status.js.map +1 -0
  435. package/dist/src/core/model-selector.d.ts +57 -0
  436. package/dist/src/core/model-selector.d.ts.map +1 -0
  437. package/dist/src/core/model-selector.js +115 -0
  438. package/dist/src/core/model-selector.js.map +1 -0
  439. package/dist/src/core/phase-detector.d.ts +62 -0
  440. package/dist/src/core/phase-detector.d.ts.map +1 -0
  441. package/dist/src/core/phase-detector.js +229 -0
  442. package/dist/src/core/phase-detector.js.map +1 -0
  443. package/dist/src/core/plugin-loader.d.ts +131 -0
  444. package/dist/src/core/plugin-loader.d.ts.map +1 -0
  445. package/dist/src/core/plugin-loader.js +421 -0
  446. package/dist/src/core/plugin-loader.js.map +1 -0
  447. package/dist/src/core/project-manager.d.ts +127 -0
  448. package/dist/src/core/project-manager.d.ts.map +1 -0
  449. package/dist/src/core/project-manager.js +524 -0
  450. package/dist/src/core/project-manager.js.map +1 -0
  451. package/dist/src/core/project-structure-detector.d.ts +92 -0
  452. package/dist/src/core/project-structure-detector.d.ts.map +1 -0
  453. package/dist/src/core/project-structure-detector.js +289 -0
  454. package/dist/src/core/project-structure-detector.js.map +1 -0
  455. package/dist/src/core/qa/qa-runner.d.ts +16 -0
  456. package/dist/src/core/qa/qa-runner.d.ts.map +1 -0
  457. package/dist/src/core/qa/qa-runner.js +404 -0
  458. package/dist/src/core/qa/qa-runner.js.map +1 -0
  459. package/dist/src/core/qa/quality-gate-decider.d.ts +53 -0
  460. package/dist/src/core/qa/quality-gate-decider.d.ts.map +1 -0
  461. package/dist/src/core/qa/quality-gate-decider.js +268 -0
  462. package/dist/src/core/qa/quality-gate-decider.js.map +1 -0
  463. package/dist/src/core/qa/risk-calculator.d.ts +126 -0
  464. package/dist/src/core/qa/risk-calculator.d.ts.map +1 -0
  465. package/dist/src/core/qa/risk-calculator.js +247 -0
  466. package/dist/src/core/qa/risk-calculator.js.map +1 -0
  467. package/dist/src/core/qa/types.d.ts +315 -0
  468. package/dist/src/core/qa/types.d.ts.map +1 -0
  469. package/dist/src/core/qa/types.js +8 -0
  470. package/dist/src/core/qa/types.js.map +1 -0
  471. package/dist/src/core/rfc-generator-v2.d.ts +149 -0
  472. package/dist/src/core/rfc-generator-v2.d.ts.map +1 -0
  473. package/dist/src/core/rfc-generator-v2.js +399 -0
  474. package/dist/src/core/rfc-generator-v2.js.map +1 -0
  475. package/dist/src/core/specs/spec-metadata-manager.d.ts +70 -0
  476. package/dist/src/core/specs/spec-metadata-manager.d.ts.map +1 -0
  477. package/dist/src/core/specs/spec-metadata-manager.js +371 -0
  478. package/dist/src/core/specs/spec-metadata-manager.js.map +1 -0
  479. package/dist/src/core/specs/spec-parser.d.ts +66 -0
  480. package/dist/src/core/specs/spec-parser.d.ts.map +1 -0
  481. package/dist/src/core/specs/spec-parser.js +276 -0
  482. package/dist/src/core/specs/spec-parser.js.map +1 -0
  483. package/dist/src/core/sync/bidirectional-engine.d.ts +110 -0
  484. package/dist/src/core/sync/bidirectional-engine.d.ts.map +1 -0
  485. package/dist/src/core/sync/bidirectional-engine.js +356 -0
  486. package/dist/src/core/sync/bidirectional-engine.js.map +1 -0
  487. package/dist/src/core/sync/folder-mapper.d.ts +71 -0
  488. package/dist/src/core/sync/folder-mapper.d.ts.map +1 -0
  489. package/dist/src/core/sync/folder-mapper.js +168 -0
  490. package/dist/src/core/sync/folder-mapper.js.map +1 -0
  491. package/dist/src/core/sync/profile-manager.d.ts +72 -0
  492. package/dist/src/core/sync/profile-manager.d.ts.map +1 -0
  493. package/dist/src/core/sync/profile-manager.js +338 -0
  494. package/dist/src/core/sync/profile-manager.js.map +1 -0
  495. package/dist/src/core/sync/profile-selector.d.ts +52 -0
  496. package/dist/src/core/sync/profile-selector.d.ts.map +1 -0
  497. package/dist/src/core/sync/profile-selector.js +179 -0
  498. package/dist/src/core/sync/profile-selector.js.map +1 -0
  499. package/dist/src/core/sync/profile-validator.d.ts +52 -0
  500. package/dist/src/core/sync/profile-validator.d.ts.map +1 -0
  501. package/dist/src/core/sync/profile-validator.js +225 -0
  502. package/dist/src/core/sync/profile-validator.js.map +1 -0
  503. package/dist/src/core/sync/project-context.d.ts +81 -0
  504. package/dist/src/core/sync/project-context.d.ts.map +1 -0
  505. package/dist/src/core/sync/project-context.js +354 -0
  506. package/dist/src/core/sync/project-context.js.map +1 -0
  507. package/dist/src/core/sync/rate-limiter.d.ts +116 -0
  508. package/dist/src/core/sync/rate-limiter.d.ts.map +1 -0
  509. package/dist/src/core/sync/rate-limiter.js +308 -0
  510. package/dist/src/core/sync/rate-limiter.js.map +1 -0
  511. package/dist/src/core/sync/time-range-selector.d.ts +48 -0
  512. package/dist/src/core/sync/time-range-selector.d.ts.map +1 -0
  513. package/dist/src/core/sync/time-range-selector.js +224 -0
  514. package/dist/src/core/sync/time-range-selector.js.map +1 -0
  515. package/dist/src/core/types/config.d.ts +90 -0
  516. package/dist/src/core/types/config.d.ts.map +1 -0
  517. package/dist/src/core/types/config.js +44 -0
  518. package/dist/src/core/types/config.js.map +1 -0
  519. package/dist/src/core/types/increment-metadata.d.ts +120 -0
  520. package/dist/src/core/types/increment-metadata.d.ts.map +1 -0
  521. package/dist/src/core/types/increment-metadata.js +138 -0
  522. package/dist/src/core/types/increment-metadata.js.map +1 -0
  523. package/dist/src/core/types/plugin.d.ts +283 -0
  524. package/dist/src/core/types/plugin.d.ts.map +1 -0
  525. package/dist/src/core/types/plugin.js +49 -0
  526. package/dist/src/core/types/plugin.js.map +1 -0
  527. package/dist/src/core/types/spec-metadata.d.ts +229 -0
  528. package/dist/src/core/types/spec-metadata.d.ts.map +1 -0
  529. package/dist/src/core/types/spec-metadata.js +14 -0
  530. package/dist/src/core/types/spec-metadata.js.map +1 -0
  531. package/dist/src/core/types/sync-profile.d.ts +403 -0
  532. package/dist/src/core/types/sync-profile.d.ts.map +1 -0
  533. package/dist/src/core/types/sync-profile.js +55 -0
  534. package/dist/src/core/types/sync-profile.js.map +1 -0
  535. package/dist/src/hooks/lib/git-diff-analyzer.d.ts +89 -0
  536. package/dist/src/hooks/lib/git-diff-analyzer.d.ts.map +1 -0
  537. package/dist/src/hooks/lib/git-diff-analyzer.js +226 -0
  538. package/dist/src/hooks/lib/git-diff-analyzer.js.map +1 -0
  539. package/dist/src/hooks/lib/invoke-translator-skill.d.ts +60 -0
  540. package/dist/src/hooks/lib/invoke-translator-skill.d.ts.map +1 -0
  541. package/dist/src/hooks/lib/invoke-translator-skill.js +201 -0
  542. package/dist/src/hooks/lib/invoke-translator-skill.js.map +1 -0
  543. package/dist/src/hooks/lib/prepare-reflection-context.d.ts +42 -0
  544. package/dist/src/hooks/lib/prepare-reflection-context.d.ts.map +1 -0
  545. package/dist/src/hooks/lib/prepare-reflection-context.js +123 -0
  546. package/dist/src/hooks/lib/prepare-reflection-context.js.map +1 -0
  547. package/dist/src/hooks/lib/reflection-config-loader.d.ts +45 -0
  548. package/dist/src/hooks/lib/reflection-config-loader.d.ts.map +1 -0
  549. package/dist/src/hooks/lib/reflection-config-loader.js +132 -0
  550. package/dist/src/hooks/lib/reflection-config-loader.js.map +1 -0
  551. package/dist/src/hooks/lib/reflection-parser.d.ts +33 -0
  552. package/dist/src/hooks/lib/reflection-parser.d.ts.map +1 -0
  553. package/dist/src/hooks/lib/reflection-parser.js +419 -0
  554. package/dist/src/hooks/lib/reflection-parser.js.map +1 -0
  555. package/dist/src/hooks/lib/reflection-prompt-builder.d.ts +56 -0
  556. package/dist/src/hooks/lib/reflection-prompt-builder.d.ts.map +1 -0
  557. package/dist/src/hooks/lib/reflection-prompt-builder.js +239 -0
  558. package/dist/src/hooks/lib/reflection-prompt-builder.js.map +1 -0
  559. package/dist/src/hooks/lib/reflection-storage.d.ts +64 -0
  560. package/dist/src/hooks/lib/reflection-storage.d.ts.map +1 -0
  561. package/dist/src/hooks/lib/reflection-storage.js +305 -0
  562. package/dist/src/hooks/lib/reflection-storage.js.map +1 -0
  563. package/dist/src/hooks/lib/run-self-reflection.d.ts +43 -0
  564. package/dist/src/hooks/lib/run-self-reflection.d.ts.map +1 -0
  565. package/dist/src/hooks/lib/run-self-reflection.js +203 -0
  566. package/dist/src/hooks/lib/run-self-reflection.js.map +1 -0
  567. package/dist/src/hooks/lib/sync-living-docs.d.ts +27 -0
  568. package/dist/src/hooks/lib/sync-living-docs.d.ts.map +1 -0
  569. package/dist/src/hooks/lib/sync-living-docs.js +116 -0
  570. package/dist/src/hooks/lib/sync-living-docs.js.map +1 -0
  571. package/dist/src/hooks/lib/translate-file.d.ts +59 -0
  572. package/dist/src/hooks/lib/translate-file.d.ts.map +1 -0
  573. package/dist/src/hooks/lib/translate-file.js +350 -0
  574. package/dist/src/hooks/lib/translate-file.js.map +1 -0
  575. package/dist/src/hooks/lib/translate-living-docs.d.ts +13 -0
  576. package/dist/src/hooks/lib/translate-living-docs.d.ts.map +1 -0
  577. package/dist/src/hooks/lib/translate-living-docs.js +175 -0
  578. package/dist/src/hooks/lib/translate-living-docs.js.map +1 -0
  579. package/dist/src/hooks/lib/types/reflection-types.d.ts +164 -0
  580. package/dist/src/hooks/lib/types/reflection-types.d.ts.map +1 -0
  581. package/dist/src/hooks/lib/types/reflection-types.js +73 -0
  582. package/dist/src/hooks/lib/types/reflection-types.js.map +1 -0
  583. package/dist/src/hooks/lib/update-tasks-md.d.ts +29 -0
  584. package/dist/src/hooks/lib/update-tasks-md.d.ts.map +1 -0
  585. package/dist/src/hooks/lib/update-tasks-md.js +203 -0
  586. package/dist/src/hooks/lib/update-tasks-md.js.map +1 -0
  587. package/dist/src/integrations/ado/ado-client.d.ts +127 -0
  588. package/dist/src/integrations/ado/ado-client.d.ts.map +1 -0
  589. package/dist/src/integrations/ado/ado-client.js +416 -0
  590. package/dist/src/integrations/ado/ado-client.js.map +1 -0
  591. package/dist/src/integrations/jira/jira-client.d.ts +139 -0
  592. package/dist/src/integrations/jira/jira-client.d.ts.map +1 -0
  593. package/dist/src/integrations/jira/jira-client.js +386 -0
  594. package/dist/src/integrations/jira/jira-client.js.map +1 -0
  595. package/dist/src/integrations/jira/jira-incremental-mapper.d.ts +75 -0
  596. package/dist/src/integrations/jira/jira-incremental-mapper.d.ts.map +1 -0
  597. package/dist/src/integrations/jira/jira-incremental-mapper.js +474 -0
  598. package/dist/src/integrations/jira/jira-incremental-mapper.js.map +1 -0
  599. package/dist/src/integrations/jira/jira-mapper.d.ts +105 -0
  600. package/dist/src/integrations/jira/jira-mapper.d.ts.map +1 -0
  601. package/dist/src/integrations/jira/jira-mapper.js +494 -0
  602. package/dist/src/integrations/jira/jira-mapper.js.map +1 -0
  603. package/dist/src/metrics/calculators/change-failure-rate.d.ts +22 -0
  604. package/dist/src/metrics/calculators/change-failure-rate.d.ts.map +1 -0
  605. package/dist/src/metrics/calculators/change-failure-rate.js +70 -0
  606. package/dist/src/metrics/calculators/change-failure-rate.js.map +1 -0
  607. package/dist/src/metrics/calculators/deployment-frequency.d.ts +20 -0
  608. package/dist/src/metrics/calculators/deployment-frequency.d.ts.map +1 -0
  609. package/dist/src/metrics/calculators/deployment-frequency.js +61 -0
  610. package/dist/src/metrics/calculators/deployment-frequency.js.map +1 -0
  611. package/dist/src/metrics/calculators/lead-time.d.ts +22 -0
  612. package/dist/src/metrics/calculators/lead-time.d.ts.map +1 -0
  613. package/dist/src/metrics/calculators/lead-time.js +82 -0
  614. package/dist/src/metrics/calculators/lead-time.js.map +1 -0
  615. package/dist/src/metrics/calculators/mttr.d.ts +21 -0
  616. package/dist/src/metrics/calculators/mttr.d.ts.map +1 -0
  617. package/dist/src/metrics/calculators/mttr.js +60 -0
  618. package/dist/src/metrics/calculators/mttr.js.map +1 -0
  619. package/dist/src/metrics/dora-calculator.d.ts +28 -0
  620. package/dist/src/metrics/dora-calculator.d.ts.map +1 -0
  621. package/dist/src/metrics/dora-calculator.js +117 -0
  622. package/dist/src/metrics/dora-calculator.js.map +1 -0
  623. package/dist/src/metrics/github-client.d.ts +51 -0
  624. package/dist/src/metrics/github-client.d.ts.map +1 -0
  625. package/dist/src/metrics/github-client.js +133 -0
  626. package/dist/src/metrics/github-client.js.map +1 -0
  627. package/dist/src/metrics/report-generator.d.ts +17 -0
  628. package/dist/src/metrics/report-generator.d.ts.map +1 -0
  629. package/dist/src/metrics/report-generator.js +403 -0
  630. package/dist/src/metrics/report-generator.js.map +1 -0
  631. package/dist/src/metrics/types.d.ts +112 -0
  632. package/dist/src/metrics/types.d.ts.map +1 -0
  633. package/dist/src/metrics/types.js +10 -0
  634. package/dist/src/metrics/types.js.map +1 -0
  635. package/dist/src/metrics/utils/percentile.d.ts +25 -0
  636. package/dist/src/metrics/utils/percentile.d.ts.map +1 -0
  637. package/dist/src/metrics/utils/percentile.js +46 -0
  638. package/dist/src/metrics/utils/percentile.js.map +1 -0
  639. package/dist/src/metrics/utils/tier-classifier.d.ts +61 -0
  640. package/dist/src/metrics/utils/tier-classifier.d.ts.map +1 -0
  641. package/dist/src/metrics/utils/tier-classifier.js +100 -0
  642. package/dist/src/metrics/utils/tier-classifier.js.map +1 -0
  643. package/dist/src/testing/test-generator.d.ts +117 -0
  644. package/dist/src/testing/test-generator.d.ts.map +1 -0
  645. package/dist/src/testing/test-generator.js +370 -0
  646. package/dist/src/testing/test-generator.js.map +1 -0
  647. package/dist/src/types/cost-tracking.d.ts +43 -0
  648. package/dist/src/types/cost-tracking.d.ts.map +1 -0
  649. package/dist/src/types/cost-tracking.js +8 -0
  650. package/dist/src/types/cost-tracking.js.map +1 -0
  651. package/dist/src/types/model-selection.d.ts +53 -0
  652. package/dist/src/types/model-selection.d.ts.map +1 -0
  653. package/dist/src/types/model-selection.js +12 -0
  654. package/dist/src/types/model-selection.js.map +1 -0
  655. package/dist/src/utils/agents-md-compiler.d.ts +68 -0
  656. package/dist/src/utils/agents-md-compiler.d.ts.map +1 -0
  657. package/dist/src/utils/agents-md-compiler.js +420 -0
  658. package/dist/src/utils/agents-md-compiler.js.map +1 -0
  659. package/dist/src/utils/auth-helpers.d.ts +58 -0
  660. package/dist/src/utils/auth-helpers.d.ts.map +1 -0
  661. package/dist/src/utils/auth-helpers.js +108 -0
  662. package/dist/src/utils/auth-helpers.js.map +1 -0
  663. package/dist/src/utils/auto-install.d.ts +47 -0
  664. package/dist/src/utils/auto-install.d.ts.map +1 -0
  665. package/dist/src/utils/auto-install.js +211 -0
  666. package/dist/src/utils/auto-install.js.map +1 -0
  667. package/dist/src/utils/claude-cli-detector.d.ts +75 -0
  668. package/dist/src/utils/claude-cli-detector.d.ts.map +1 -0
  669. package/dist/src/utils/claude-cli-detector.js +285 -0
  670. package/dist/src/utils/claude-cli-detector.js.map +1 -0
  671. package/dist/src/utils/cost-reporter.d.ts +58 -0
  672. package/dist/src/utils/cost-reporter.d.ts.map +1 -0
  673. package/dist/src/utils/cost-reporter.js +224 -0
  674. package/dist/src/utils/cost-reporter.js.map +1 -0
  675. package/dist/src/utils/docs-preview/config-generator.d.ts +46 -0
  676. package/dist/src/utils/docs-preview/config-generator.d.ts.map +1 -0
  677. package/dist/src/utils/docs-preview/config-generator.js +377 -0
  678. package/dist/src/utils/docs-preview/config-generator.js.map +1 -0
  679. package/dist/src/utils/docs-preview/docusaurus-setup.d.ts +38 -0
  680. package/dist/src/utils/docs-preview/docusaurus-setup.d.ts.map +1 -0
  681. package/dist/src/utils/docs-preview/docusaurus-setup.js +177 -0
  682. package/dist/src/utils/docs-preview/docusaurus-setup.js.map +1 -0
  683. package/dist/src/utils/docs-preview/index.d.ts +7 -0
  684. package/dist/src/utils/docs-preview/index.d.ts.map +1 -0
  685. package/dist/src/utils/docs-preview/index.js +7 -0
  686. package/dist/src/utils/docs-preview/index.js.map +1 -0
  687. package/dist/src/utils/docs-preview/package-installer.d.ts +42 -0
  688. package/dist/src/utils/docs-preview/package-installer.d.ts.map +1 -0
  689. package/dist/src/utils/docs-preview/package-installer.js +182 -0
  690. package/dist/src/utils/docs-preview/package-installer.js.map +1 -0
  691. package/dist/src/utils/docs-preview/server-manager.d.ts +30 -0
  692. package/dist/src/utils/docs-preview/server-manager.d.ts.map +1 -0
  693. package/dist/src/utils/docs-preview/server-manager.js +212 -0
  694. package/dist/src/utils/docs-preview/server-manager.js.map +1 -0
  695. package/dist/src/utils/docs-preview/sidebar-builder.d.ts +32 -0
  696. package/dist/src/utils/docs-preview/sidebar-builder.d.ts.map +1 -0
  697. package/dist/src/utils/docs-preview/sidebar-builder.js +202 -0
  698. package/dist/src/utils/docs-preview/sidebar-builder.js.map +1 -0
  699. package/dist/src/utils/docs-preview/types.d.ts +57 -0
  700. package/dist/src/utils/docs-preview/types.d.ts.map +1 -0
  701. package/dist/src/utils/docs-preview/types.js +2 -0
  702. package/dist/src/utils/docs-preview/types.js.map +1 -0
  703. package/dist/src/utils/env-file.d.ts +88 -0
  704. package/dist/src/utils/env-file.d.ts.map +1 -0
  705. package/dist/src/utils/env-file.js +180 -0
  706. package/dist/src/utils/env-file.js.map +1 -0
  707. package/dist/src/utils/env-multi-project-parser.d.ts +220 -0
  708. package/dist/src/utils/env-multi-project-parser.d.ts.map +1 -0
  709. package/dist/src/utils/env-multi-project-parser.js +403 -0
  710. package/dist/src/utils/env-multi-project-parser.js.map +1 -0
  711. package/dist/src/utils/esm-helpers.d.ts +50 -0
  712. package/dist/src/utils/esm-helpers.d.ts.map +1 -0
  713. package/dist/src/utils/esm-helpers.js +57 -0
  714. package/dist/src/utils/esm-helpers.js.map +1 -0
  715. package/dist/src/utils/execFileNoThrow.d.ts +99 -0
  716. package/dist/src/utils/execFileNoThrow.d.ts.map +1 -0
  717. package/dist/src/utils/execFileNoThrow.js +137 -0
  718. package/dist/src/utils/execFileNoThrow.js.map +1 -0
  719. package/dist/src/utils/external-resource-validator.d.ts +102 -0
  720. package/dist/src/utils/external-resource-validator.d.ts.map +1 -0
  721. package/dist/src/utils/external-resource-validator.js +442 -0
  722. package/dist/src/utils/external-resource-validator.js.map +1 -0
  723. package/dist/src/utils/generate-skills-index.d.ts +24 -0
  724. package/dist/src/utils/generate-skills-index.d.ts.map +1 -0
  725. package/dist/src/utils/generate-skills-index.js +410 -0
  726. package/dist/src/utils/generate-skills-index.js.map +1 -0
  727. package/dist/src/utils/model-selection.d.ts +75 -0
  728. package/dist/src/utils/model-selection.d.ts.map +1 -0
  729. package/dist/src/utils/model-selection.js +204 -0
  730. package/dist/src/utils/model-selection.js.map +1 -0
  731. package/dist/src/utils/plugin-validator.d.ts +161 -0
  732. package/dist/src/utils/plugin-validator.d.ts.map +1 -0
  733. package/dist/src/utils/plugin-validator.js +558 -0
  734. package/dist/src/utils/plugin-validator.js.map +1 -0
  735. package/dist/src/utils/pricing-constants.d.ts +70 -0
  736. package/dist/src/utils/pricing-constants.d.ts.map +1 -0
  737. package/dist/src/utils/pricing-constants.js +71 -0
  738. package/dist/src/utils/pricing-constants.js.map +1 -0
  739. package/dist/src/utils/project-detection.d.ts +141 -0
  740. package/dist/src/utils/project-detection.d.ts.map +1 -0
  741. package/dist/src/utils/project-detection.js +321 -0
  742. package/dist/src/utils/project-detection.js.map +1 -0
  743. package/dist/src/utils/string-utils.d.ts +40 -0
  744. package/dist/src/utils/string-utils.d.ts.map +1 -0
  745. package/dist/src/utils/string-utils.js +58 -0
  746. package/dist/src/utils/string-utils.js.map +1 -0
  747. package/dist/src/utils/translation.d.ts +187 -0
  748. package/dist/src/utils/translation.d.ts.map +1 -0
  749. package/dist/src/utils/translation.js +414 -0
  750. package/dist/src/utils/translation.js.map +1 -0
  751. package/dist/utils/env-multi-project-parser.d.ts.map +1 -1
  752. package/dist/utils/env-multi-project-parser.js +0 -2
  753. package/dist/utils/env-multi-project-parser.js.map +1 -1
  754. package/dist/utils/project-mapper.d.ts +19 -1
  755. package/dist/utils/project-mapper.d.ts.map +1 -1
  756. package/dist/utils/project-mapper.js +7 -4
  757. package/dist/utils/project-mapper.js.map +1 -1
  758. package/dist/utils/spec-splitter.d.ts +7 -0
  759. package/dist/utils/spec-splitter.d.ts.map +1 -1
  760. package/dist/utils/spec-splitter.js +20 -2
  761. package/dist/utils/spec-splitter.js.map +1 -1
  762. package/package.json +1 -1
  763. package/plugins/specweave/lib/hooks/git-diff-analyzer.js +213 -129
  764. package/plugins/specweave/lib/hooks/invoke-translator-skill.js +192 -146
  765. package/plugins/specweave/lib/hooks/prepare-reflection-context.js +116 -103
  766. package/plugins/specweave/lib/hooks/reflection-config-loader.js +125 -85
  767. package/plugins/specweave/lib/hooks/reflection-parser.js +385 -267
  768. package/plugins/specweave/lib/hooks/reflection-prompt-builder.js +226 -169
  769. package/plugins/specweave/lib/hooks/reflection-storage.js +297 -223
  770. package/plugins/specweave/lib/hooks/run-self-reflection.js +191 -120
  771. package/plugins/specweave/lib/hooks/sync-living-docs.js +129 -87
  772. package/plugins/specweave/lib/hooks/translate-file.js +300 -239
  773. package/plugins/specweave/lib/hooks/translate-living-docs.js +144 -88
  774. package/plugins/specweave/lib/hooks/types/reflection-types.js +72 -57
  775. package/plugins/specweave/lib/hooks/update-tasks-md.js +179 -117
  776. package/plugins/specweave-ado/lib/ado-board-resolver.js +205 -135
  777. package/plugins/specweave-ado/lib/ado-hierarchical-sync.js +335 -223
  778. package/plugins/specweave-ado/lib/ado-multi-project-sync.js +40 -7
  779. package/plugins/specweave-ado/lib/ado-multi-project-sync.ts +49 -7
  780. package/plugins/specweave-ado/lib/ado-spec-sync.js +414 -380
  781. package/plugins/specweave-ado/lib/project-selector.js +196 -168
  782. package/plugins/specweave-github/lib/cli-sync-increment-changes.js +20 -9
  783. package/plugins/specweave-github/lib/github-board-resolver.js +115 -69
  784. package/plugins/specweave-github/lib/github-client-v2.js +389 -400
  785. package/plugins/specweave-github/lib/github-client.js +280 -246
  786. package/plugins/specweave-github/lib/github-hierarchical-sync.js +251 -168
  787. package/plugins/specweave-github/lib/github-issue-updater.js +288 -231
  788. package/plugins/specweave-github/lib/github-multi-project-sync.js +58 -5
  789. package/plugins/specweave-github/lib/github-multi-project-sync.ts +80 -4
  790. package/plugins/specweave-github/lib/github-spec-sync.js +420 -379
  791. package/plugins/specweave-github/lib/github-sync-bidirectional.js +202 -175
  792. package/plugins/specweave-github/lib/github-sync-increment-changes.js +251 -212
  793. package/plugins/specweave-github/lib/index.js +10 -11
  794. package/plugins/specweave-github/lib/repo-selector.js +201 -174
  795. package/plugins/specweave-github/lib/subtask-sync.js +125 -132
  796. package/plugins/specweave-github/lib/task-parser.js +207 -191
  797. package/plugins/specweave-github/lib/task-sync.js +296 -344
  798. package/plugins/specweave-github/lib/types.js +5 -0
  799. package/plugins/specweave-jira/lib/jira-board-resolver.js +79 -50
  800. package/plugins/specweave-jira/lib/jira-hierarchical-sync.js +191 -119
  801. package/plugins/specweave-jira/lib/jira-multi-project-sync.js +30 -5
  802. package/plugins/specweave-jira/lib/jira-multi-project-sync.ts +34 -5
  803. package/plugins/specweave-jira/lib/jira-spec-sync.js +405 -366
  804. package/plugins/specweave-jira/lib/project-selector.js +201 -172
  805. package/plugins/specweave-jira/lib/reorganization-detector.js +237 -202
  806. package/plugins/specweave-jira/lib/setup-wizard.js +204 -162
@@ -0,0 +1,72 @@
1
+ /**
2
+ * Profile Manager for Multi-Project Sync
3
+ *
4
+ * Manages sync profiles across multiple external projects (GitHub, JIRA, ADO).
5
+ * Handles CRUD operations, validation, and profile selection.
6
+ */
7
+ import { SyncProfile, SyncProvider, ProfileValidationResult, SyncConfiguration } from '../types/sync-profile';
8
+ export declare class ProfileManager {
9
+ private configPath;
10
+ private config;
11
+ constructor(projectRoot: string);
12
+ /**
13
+ * Load sync configuration from disk
14
+ */
15
+ load(): Promise<SyncConfiguration>;
16
+ /**
17
+ * Save sync configuration to disk
18
+ */
19
+ save(): Promise<void>;
20
+ /**
21
+ * Get all profiles
22
+ */
23
+ getAllProfiles(): Promise<Record<string, SyncProfile>>;
24
+ /**
25
+ * Get a specific profile by ID
26
+ */
27
+ getProfile(profileId: string): Promise<SyncProfile | null>;
28
+ /**
29
+ * Get active profile
30
+ */
31
+ getActiveProfile(): Promise<{
32
+ id: string;
33
+ profile: SyncProfile;
34
+ } | null>;
35
+ /**
36
+ * Set active profile
37
+ */
38
+ setActiveProfile(profileId: string): Promise<void>;
39
+ /**
40
+ * Create a new profile
41
+ */
42
+ createProfile(profileId: string, profile: SyncProfile): Promise<void>;
43
+ /**
44
+ * Update an existing profile
45
+ */
46
+ updateProfile(profileId: string, updates: Partial<SyncProfile>): Promise<void>;
47
+ /**
48
+ * Delete a profile
49
+ */
50
+ deleteProfile(profileId: string): Promise<void>;
51
+ /**
52
+ * Get profiles by provider
53
+ */
54
+ getProfilesByProvider(provider: SyncProvider): Promise<Record<string, SyncProfile>>;
55
+ /**
56
+ * Get profiles for a project
57
+ */
58
+ getProfilesForProject(projectName: string): Promise<Record<string, SyncProfile>>;
59
+ /**
60
+ * Validate a sync profile
61
+ */
62
+ validateProfile(profile: SyncProfile): ProfileValidationResult;
63
+ /**
64
+ * Get profile statistics
65
+ */
66
+ getStats(): Promise<{
67
+ totalProfiles: number;
68
+ byProvider: Record<SyncProvider, number>;
69
+ activeProfile: string | null;
70
+ }>;
71
+ }
72
+ //# sourceMappingURL=profile-manager.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"profile-manager.d.ts","sourceRoot":"","sources":["../../../../src/core/sync/profile-manager.ts"],"names":[],"mappings":"AAAA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WAAW,CAAC,CAAC;IAsCvC;;OAEG;IACH,eAAe,CAAC,OAAO,EAAE,WAAW,GAAG,uBAAuB;IAmF9D;;OAEG;IACG,QAAQ,IAAI,OAAO,CAAC;QACxB,aAAa,EAAE,MAAM,CAAC;QACtB,UAAU,EAAE,MAAM,CAAC,YAAY,EAAE,MAAM,CAAC,CAAC;QACzC,aAAa,EAAE,MAAM,GAAG,IAAI,CAAC;KAC9B,CAAC;CAoBH"}
@@ -0,0 +1,338 @@
1
+ /**
2
+ * Profile Manager for Multi-Project Sync
3
+ *
4
+ * Manages sync profiles across multiple external projects (GitHub, JIRA, ADO).
5
+ * Handles CRUD operations, validation, and profile selection.
6
+ */
7
+ import * as fs from 'fs-extra';
8
+ import * as path from 'path';
9
+ export class ProfileManager {
10
+ constructor(projectRoot) {
11
+ this.config = null;
12
+ this.configPath = path.join(projectRoot, '.specweave', 'config.json');
13
+ }
14
+ // ==========================================================================
15
+ // Load/Save Operations
16
+ // ==========================================================================
17
+ /**
18
+ * Load sync configuration from disk
19
+ */
20
+ async load() {
21
+ if (this.config) {
22
+ return this.config;
23
+ }
24
+ try {
25
+ const content = await fs.readFile(this.configPath, 'utf-8');
26
+ const fullConfig = JSON.parse(content);
27
+ this.config = fullConfig.sync || {
28
+ profiles: {},
29
+ settings: {
30
+ autoDetectProject: true,
31
+ defaultTimeRange: '1M',
32
+ rateLimitProtection: true,
33
+ },
34
+ };
35
+ return this.config;
36
+ }
37
+ catch (error) {
38
+ if (error.code === 'ENOENT') {
39
+ // Config doesn't exist yet - return empty
40
+ this.config = {
41
+ profiles: {},
42
+ settings: {
43
+ autoDetectProject: true,
44
+ defaultTimeRange: '1M',
45
+ rateLimitProtection: true,
46
+ },
47
+ };
48
+ return this.config;
49
+ }
50
+ throw error;
51
+ }
52
+ }
53
+ /**
54
+ * Save sync configuration to disk
55
+ */
56
+ async save() {
57
+ if (!this.config) {
58
+ throw new Error('No configuration loaded. Call load() first.');
59
+ }
60
+ // Read full config
61
+ let fullConfig = {};
62
+ try {
63
+ const content = await fs.readFile(this.configPath, 'utf-8');
64
+ fullConfig = JSON.parse(content);
65
+ }
66
+ catch (error) {
67
+ if (error.code !== 'ENOENT') {
68
+ throw error;
69
+ }
70
+ }
71
+ // Merge sync section
72
+ fullConfig.sync = this.config;
73
+ // Write back
74
+ await fs.ensureDir(path.dirname(this.configPath));
75
+ await fs.writeFile(this.configPath, JSON.stringify(fullConfig, null, 2), 'utf-8');
76
+ }
77
+ // ==========================================================================
78
+ // Profile CRUD Operations
79
+ // ==========================================================================
80
+ /**
81
+ * Get all profiles
82
+ */
83
+ async getAllProfiles() {
84
+ const config = await this.load();
85
+ return config.profiles || {};
86
+ }
87
+ /**
88
+ * Get a specific profile by ID
89
+ */
90
+ async getProfile(profileId) {
91
+ const config = await this.load();
92
+ return config.profiles?.[profileId] || null;
93
+ }
94
+ /**
95
+ * Get active profile
96
+ */
97
+ async getActiveProfile() {
98
+ const config = await this.load();
99
+ const activeId = config.activeProfile;
100
+ if (!activeId) {
101
+ return null;
102
+ }
103
+ const profile = config.profiles?.[activeId];
104
+ if (!profile) {
105
+ return null;
106
+ }
107
+ return { id: activeId, profile };
108
+ }
109
+ /**
110
+ * Set active profile
111
+ */
112
+ async setActiveProfile(profileId) {
113
+ const config = await this.load();
114
+ // Validate profile exists
115
+ if (!config.profiles?.[profileId]) {
116
+ throw new Error(`Profile '${profileId}' does not exist`);
117
+ }
118
+ config.activeProfile = profileId;
119
+ await this.save();
120
+ }
121
+ /**
122
+ * Create a new profile
123
+ */
124
+ async createProfile(profileId, profile) {
125
+ const config = await this.load();
126
+ // Validate ID format
127
+ if (!/^[a-z0-9-]+$/.test(profileId)) {
128
+ throw new Error('Profile ID must contain only lowercase letters, numbers, and hyphens');
129
+ }
130
+ // Check if profile already exists
131
+ if (config.profiles?.[profileId]) {
132
+ throw new Error(`Profile '${profileId}' already exists`);
133
+ }
134
+ // Validate profile
135
+ const validation = this.validateProfile(profile);
136
+ if (!validation.valid) {
137
+ throw new Error(`Invalid profile: ${validation.errors.join(', ')}`);
138
+ }
139
+ // Add profile
140
+ if (!config.profiles) {
141
+ config.profiles = {};
142
+ }
143
+ config.profiles[profileId] = profile;
144
+ // Set as active if first profile
145
+ if (Object.keys(config.profiles).length === 1) {
146
+ config.activeProfile = profileId;
147
+ }
148
+ await this.save();
149
+ }
150
+ /**
151
+ * Update an existing profile
152
+ */
153
+ async updateProfile(profileId, updates) {
154
+ const config = await this.load();
155
+ const existing = config.profiles?.[profileId];
156
+ if (!existing) {
157
+ throw new Error(`Profile '${profileId}' does not exist`);
158
+ }
159
+ // Merge updates
160
+ const updated = { ...existing, ...updates };
161
+ // Validate updated profile
162
+ const validation = this.validateProfile(updated);
163
+ if (!validation.valid) {
164
+ throw new Error(`Invalid profile: ${validation.errors.join(', ')}`);
165
+ }
166
+ config.profiles[profileId] = updated;
167
+ await this.save();
168
+ }
169
+ /**
170
+ * Delete a profile
171
+ */
172
+ async deleteProfile(profileId) {
173
+ const config = await this.load();
174
+ if (!config.profiles?.[profileId]) {
175
+ throw new Error(`Profile '${profileId}' does not exist`);
176
+ }
177
+ delete config.profiles[profileId];
178
+ // If this was the active profile, clear it
179
+ if (config.activeProfile === profileId) {
180
+ config.activeProfile = undefined;
181
+ // Set first available profile as active
182
+ const remaining = Object.keys(config.profiles);
183
+ if (remaining.length > 0) {
184
+ config.activeProfile = remaining[0];
185
+ }
186
+ }
187
+ await this.save();
188
+ }
189
+ // ==========================================================================
190
+ // Profile Queries
191
+ // ==========================================================================
192
+ /**
193
+ * Get profiles by provider
194
+ */
195
+ async getProfilesByProvider(provider) {
196
+ const all = await this.getAllProfiles();
197
+ const filtered = {};
198
+ for (const [id, profile] of Object.entries(all)) {
199
+ if (profile.provider === provider) {
200
+ filtered[id] = profile;
201
+ }
202
+ }
203
+ return filtered;
204
+ }
205
+ /**
206
+ * Get profiles for a project
207
+ */
208
+ async getProfilesForProject(projectName) {
209
+ const all = await this.getAllProfiles();
210
+ const filtered = {};
211
+ const lowerName = projectName.toLowerCase();
212
+ for (const [id, profile] of Object.entries(all)) {
213
+ if (!profile.projectContext) {
214
+ continue;
215
+ }
216
+ // Match by name
217
+ if (profile.projectContext.name.toLowerCase() === lowerName) {
218
+ filtered[id] = profile;
219
+ continue;
220
+ }
221
+ // Match by keywords
222
+ if (profile.projectContext.keywords) {
223
+ for (const keyword of profile.projectContext.keywords) {
224
+ if (lowerName.includes(keyword.toLowerCase()) ||
225
+ keyword.toLowerCase().includes(lowerName)) {
226
+ filtered[id] = profile;
227
+ break;
228
+ }
229
+ }
230
+ }
231
+ }
232
+ return filtered;
233
+ }
234
+ // ==========================================================================
235
+ // Validation
236
+ // ==========================================================================
237
+ /**
238
+ * Validate a sync profile
239
+ */
240
+ validateProfile(profile) {
241
+ const errors = [];
242
+ const warnings = [];
243
+ // Required fields
244
+ if (!profile.provider) {
245
+ errors.push('Provider is required');
246
+ }
247
+ else if (!['github', 'jira', 'ado'].includes(profile.provider)) {
248
+ errors.push(`Invalid provider: ${profile.provider}`);
249
+ }
250
+ if (!profile.displayName || profile.displayName.trim().length === 0) {
251
+ errors.push('Display name is required');
252
+ }
253
+ if (!profile.config) {
254
+ errors.push('Configuration is required');
255
+ }
256
+ else {
257
+ // Provider-specific validation
258
+ if (profile.provider === 'github') {
259
+ const config = profile.config;
260
+ if (!config.owner)
261
+ errors.push('GitHub owner is required');
262
+ if (!config.repo)
263
+ errors.push('GitHub repo is required');
264
+ }
265
+ else if (profile.provider === 'jira') {
266
+ const config = profile.config;
267
+ if (!config.domain)
268
+ errors.push('JIRA domain is required');
269
+ if (!config.projectKey)
270
+ errors.push('JIRA project key is required');
271
+ }
272
+ else if (profile.provider === 'ado') {
273
+ const config = profile.config;
274
+ if (!config.organization)
275
+ errors.push('ADO organization is required');
276
+ if (!config.project)
277
+ errors.push('ADO project is required');
278
+ }
279
+ }
280
+ if (!profile.timeRange) {
281
+ errors.push('Time range configuration is required');
282
+ }
283
+ else {
284
+ if (!profile.timeRange.default) {
285
+ errors.push('Default time range is required');
286
+ }
287
+ if (!profile.timeRange.max) {
288
+ errors.push('Maximum time range is required');
289
+ }
290
+ // Warn if max < default
291
+ if (profile.timeRange.max && profile.timeRange.default) {
292
+ const presets = ['1W', '2W', '1M', '3M', '6M', '1Y', 'ALL'];
293
+ const defaultIdx = presets.indexOf(profile.timeRange.default);
294
+ const maxIdx = presets.indexOf(profile.timeRange.max);
295
+ if (defaultIdx > maxIdx) {
296
+ warnings.push('Default time range should not exceed maximum time range');
297
+ }
298
+ }
299
+ }
300
+ // Warnings
301
+ if (!profile.projectContext) {
302
+ warnings.push('Project context is recommended for smart project detection');
303
+ }
304
+ if (profile.rateLimits &&
305
+ profile.rateLimits.maxItemsPerSync < profile.rateLimits.warnThreshold) {
306
+ warnings.push('Warn threshold should be less than max items per sync');
307
+ }
308
+ return {
309
+ valid: errors.length === 0,
310
+ errors,
311
+ warnings,
312
+ };
313
+ }
314
+ // ==========================================================================
315
+ // Statistics
316
+ // ==========================================================================
317
+ /**
318
+ * Get profile statistics
319
+ */
320
+ async getStats() {
321
+ const config = await this.load();
322
+ const all = config.profiles || {};
323
+ const stats = {
324
+ totalProfiles: Object.keys(all).length,
325
+ byProvider: {
326
+ github: 0,
327
+ jira: 0,
328
+ ado: 0,
329
+ },
330
+ activeProfile: config.activeProfile || null,
331
+ };
332
+ for (const profile of Object.values(all)) {
333
+ stats.byProvider[profile.provider]++;
334
+ }
335
+ return stats;
336
+ }
337
+ }
338
+ //# sourceMappingURL=profile-manager.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"profile-manager.js","sourceRoot":"","sources":["../../../../src/core/sync/profile-manager.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,KAAK,EAAE,MAAM,UAAU,CAAC;AAC/B,OAAO,KAAK,IAAI,MAAM,MAAM,CAAC;AAS7B,MAAM,OAAO,cAAc;IAIzB,YAAY,WAAmB;QAFvB,WAAM,GAA6B,IAAI,CAAC;QAG9C,IAAI,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ACE,OAAO,CAAC,UAAU;YAClB,OAAO,CAAC,UAAU,CAAC,eAAe,GAAG,OAAO,CAAC,UAAU,CAAC,aAAa,EACrE,CAAC;YACD,QAAQ,CAAC,IAAI,CAAC,uDAAuD,CAAC,CAAC;QACzE,CAAC;QAED,OAAO;YACL,KAAK,EAAE,MAAM,CAAC,MAAM,KAAK,CAAC;YAC1B,MAAM;YACN,QAAQ;SACT,CAAC;IACJ,CAAC;IAED,6EAA6E;IAC7E,aAAa;IACb,6EAA6E;IAE7E;;OAEG;IACH,KAAK,CAAC,QAAQ;QAKZ,MAAM,MAAM,GAAG,MAAM,IAAI,CAAC,IAAI,EAAE,CAAC;QACjC,MAAM,GAAG,GAAG,MAAM,CAAC,QAAQ,IAAI,EAAE,CAAC;QAElC,MAAM,KAAK,GAAG;YACZ,aAAa,EAAE,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,MAAM;YACtC,UAAU,EAAE;gBACV,MAAM,EAAE,CAAC;gBACT,IAAI,EAAE,CAAC;gBACP,GAAG,EAAE,CAAC;aACyB;YACjC,aAAa,EAAE,MAAM,CAAC,aAAa,IAAI,IAAI;SAC5C,CAAC;QAEF,KAAK,MAAM,OAAO,IAAI,MAAM,CAAC,MAAM,CAAC,GAAG,CAAC,EAAE,CAAC;YACzC,KAAK,CAAC,UAAU,CAAC,OAAO,CAAC,QAAQ,CAAC,EAAE,CAAC;QACvC,CAAC;QAED,OAAO,KAAK,CAAC;IACf,CAAC;CACF"}
@@ -0,0 +1,52 @@
1
+ /**
2
+ * Interactive Profile Selector
3
+ *
4
+ * Rich CLI interface for selecting sync profiles with:
5
+ * - Profile listing by provider
6
+ * - Profile details and metadata
7
+ * - Smart filtering and search
8
+ * - Create new profile option
9
+ */
10
+ import { SyncProfile, SyncProvider } from '../types/sync-profile';
11
+ export declare class ProfileSelector {
12
+ private profileManager;
13
+ constructor(projectRoot: string);
14
+ /**
15
+ * Display all profiles grouped by provider
16
+ */
17
+ displayAllProfiles(): Promise<{
18
+ profiles: Record<string, SyncProfile>;
19
+ activeProfileId: string | null;
20
+ byProvider: Record<SyncProvider, ProfileOption[]>;
21
+ }>;
22
+ /**
23
+ * Display profiles for a specific provider
24
+ */
25
+ displayProfilesByProvider(provider: SyncProvider): Promise<ProfileOption[]>;
26
+ /**
27
+ * Format profile option for display
28
+ */
29
+ formatOption(option: ProfileOption, index: number): string[];
30
+ /**
31
+ * Format profile list header
32
+ */
33
+ formatHeader(provider?: SyncProvider): string[];
34
+ /**
35
+ * Format "no profiles" message
36
+ */
37
+ formatNoProfiles(provider?: SyncProvider): string[];
38
+ /**
39
+ * Display profile stats
40
+ */
41
+ displayStats(): Promise<string[]>;
42
+ private formatProfileDetails;
43
+ private getProviderIcon;
44
+ private getProviderDisplayName;
45
+ }
46
+ export interface ProfileOption {
47
+ id: string;
48
+ profile: SyncProfile;
49
+ isActive: boolean;
50
+ details: string;
51
+ }
52
+ //# sourceMappingURL=profile-selector.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"profile-selector.d.ts","sourceRoot":"","sources":["../../../../src/core/sync/profile-selector.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAGH,OAAO,EAAE,WAAW,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAC;AAMlE,qBAAa,eAAe;IAC1B,OAAO,CAAC,cAAc,CAAiB;gBAE3B,WAAW,EAAE,MAAM;IAQ/B;;OAEG;IACG,kBAAkB,IAAI,OAAO,CAAC;QAClC,QAAQ,EAAE,MAAM,CAAC,MAAM,EAAE,WAAW,CAAC,CAAC;QACtC,eAAe,EAAE,MAAM,GAAG,IAAI,CAAC;QAC/B,UAAU,EAAE,MAAM,CAAC,YAAY,EAAE,aAAa,EAAE,CAAC,CAAC;KACnD,CAAC;IA4BF;;OAEG;IACG,yBAAyB,CAC7B,QAAQ,EAAE,YAAY,GACrB,OAAO,CAAC,aAAa,EAAE,CAAC;IAkB3B;;OAEG;IACH,YAAY,CAAC,MAAM,EAAE,aAAa,EAAE,KAAK,EAAE,MAAM,GAAG,MAAM,EAAE;IAgC5D;;OAEG;IACH,YAAY,CAAC,QAAQ,CAAC,EAAE,YAAY,GAAG,MAAM,EAAE;IAc/C;;OAEG;IACH,gBAAgB,CAAC,QAAQ,CAAC,EAAE,YAAY,GAAG,MAAM,EAAE;IAiBnD;;OAEG;IACG,YAAY,IAAI,OAAO,CAAC,MAAM,EAAE,CAAC;IAgCvC,OAAO,CAAC,oBAAoB;IAsB5B,OAAO,CAAC,eAAe;IASvB,OAAO,CAAC,sBAAsB;CAQ/B;AAMD,MAAM,WAAW,aAAa;IAC5B,EAAE,EAAE,MAAM,CAAC;IACX,OAAO,EAAE,WAAW,CAAC;IACrB,QAAQ,EAAE,OAAO,CAAC;IAClB,OAAO,EAAE,MAAM,CAAC;CACjB"}
@@ -0,0 +1,179 @@
1
+ /**
2
+ * Interactive Profile Selector
3
+ *
4
+ * Rich CLI interface for selecting sync profiles with:
5
+ * - Profile listing by provider
6
+ * - Profile details and metadata
7
+ * - Smart filtering and search
8
+ * - Create new profile option
9
+ */
10
+ import { ProfileManager } from './profile-manager';
11
+ // ============================================================================
12
+ // Profile Selector
13
+ // ============================================================================
14
+ export class ProfileSelector {
15
+ constructor(projectRoot) {
16
+ this.profileManager = new ProfileManager(projectRoot);
17
+ }
18
+ // ==========================================================================
19
+ // Interactive Selection
20
+ // ==========================================================================
21
+ /**
22
+ * Display all profiles grouped by provider
23
+ */
24
+ async displayAllProfiles() {
25
+ const allProfiles = await this.profileManager.getAllProfiles();
26
+ const activeProfile = await this.profileManager.getActiveProfile();
27
+ const byProvider = {
28
+ github: [],
29
+ jira: [],
30
+ ado: [],
31
+ };
32
+ for (const [id, profile] of Object.entries(allProfiles)) {
33
+ const option = {
34
+ id,
35
+ profile,
36
+ isActive: activeProfile?.id === id,
37
+ details: this.formatProfileDetails(profile),
38
+ };
39
+ byProvider[profile.provider].push(option);
40
+ }
41
+ return {
42
+ profiles: allProfiles,
43
+ activeProfileId: activeProfile?.id || null,
44
+ byProvider,
45
+ };
46
+ }
47
+ /**
48
+ * Display profiles for a specific provider
49
+ */
50
+ async displayProfilesByProvider(provider) {
51
+ const profiles = await this.profileManager.getProfilesByProvider(provider);
52
+ const activeProfile = await this.profileManager.getActiveProfile();
53
+ const options = [];
54
+ for (const [id, profile] of Object.entries(profiles)) {
55
+ options.push({
56
+ id,
57
+ profile,
58
+ isActive: activeProfile?.id === id,
59
+ details: this.formatProfileDetails(profile),
60
+ });
61
+ }
62
+ return options;
63
+ }
64
+ /**
65
+ * Format profile option for display
66
+ */
67
+ formatOption(option, index) {
68
+ const lines = [];
69
+ // Profile name
70
+ const activeTag = option.isActive ? ' (active)' : '';
71
+ lines.push(` ${index + 1}. ${option.profile.displayName}${activeTag}`);
72
+ // Configuration details
73
+ lines.push(` └─ ${this.getProviderIcon(option.profile.provider)} ${option.details}`);
74
+ // Description (if present)
75
+ if (option.profile.description) {
76
+ lines.push(` └─ ${option.profile.description}`);
77
+ }
78
+ // Time range defaults
79
+ lines.push(` └─ Default time range: ${option.profile.timeRange.default} (max: ${option.profile.timeRange.max})`);
80
+ // Project context (if present)
81
+ if (option.profile.projectContext) {
82
+ lines.push(` └─ Project: ${option.profile.projectContext.name}`);
83
+ }
84
+ return lines;
85
+ }
86
+ /**
87
+ * Format profile list header
88
+ */
89
+ formatHeader(provider) {
90
+ const lines = [];
91
+ if (provider) {
92
+ lines.push(`🔗 ${this.getProviderDisplayName(provider)} Profiles:`);
93
+ }
94
+ else {
95
+ lines.push('🔗 Available Sync Profiles:');
96
+ }
97
+ lines.push('');
98
+ return lines;
99
+ }
100
+ /**
101
+ * Format "no profiles" message
102
+ */
103
+ formatNoProfiles(provider) {
104
+ const lines = [];
105
+ if (provider) {
106
+ lines.push(`No ${this.getProviderDisplayName(provider)} profiles configured yet.`);
107
+ }
108
+ else {
109
+ lines.push('No sync profiles configured yet.');
110
+ }
111
+ lines.push('');
112
+ lines.push('Create your first profile:');
113
+ lines.push(' /specweave:sync-profile create');
114
+ lines.push('');
115
+ return lines;
116
+ }
117
+ /**
118
+ * Display profile stats
119
+ */
120
+ async displayStats() {
121
+ const stats = await this.profileManager.getStats();
122
+ const lines = [];
123
+ lines.push('📊 Profile Statistics:');
124
+ lines.push('');
125
+ lines.push(` Total profiles: ${stats.totalProfiles}`);
126
+ if (stats.totalProfiles > 0) {
127
+ lines.push('');
128
+ lines.push(' By provider:');
129
+ for (const [provider, count] of Object.entries(stats.byProvider)) {
130
+ if (count > 0) {
131
+ lines.push(` ├─ ${this.getProviderIcon(provider)} ${this.getProviderDisplayName(provider)}: ${count}`);
132
+ }
133
+ }
134
+ }
135
+ if (stats.activeProfile) {
136
+ lines.push('');
137
+ lines.push(` Active profile: ${stats.activeProfile}`);
138
+ }
139
+ return lines;
140
+ }
141
+ // ==========================================================================
142
+ // Profile Details Formatting
143
+ // ==========================================================================
144
+ formatProfileDetails(profile) {
145
+ switch (profile.provider) {
146
+ case 'github': {
147
+ const config = profile.config;
148
+ return `GitHub: ${config.owner}/${config.repo}`;
149
+ }
150
+ case 'jira': {
151
+ const config = profile.config;
152
+ return `JIRA: ${config.domain} (${config.projectKey})`;
153
+ }
154
+ case 'ado': {
155
+ const config = profile.config;
156
+ return `Azure DevOps: ${config.organization}/${config.project}`;
157
+ }
158
+ default:
159
+ return 'Unknown provider';
160
+ }
161
+ }
162
+ getProviderIcon(provider) {
163
+ const icons = {
164
+ github: '🐙',
165
+ jira: '📋',
166
+ ado: '⚡',
167
+ };
168
+ return icons[provider] || '🔗';
169
+ }
170
+ getProviderDisplayName(provider) {
171
+ const names = {
172
+ github: 'GitHub',
173
+ jira: 'JIRA',
174
+ ado: 'Azure DevOps',
175
+ };
176
+ return names[provider] || provider;
177
+ }
178
+ }
179
+ //# sourceMappingURL=profile-selector.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"profile-selector.js","sourceRoot":"","sources":["../../../../src/core/sync/profile-selector.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;A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