cc-agentic-framework 1.14.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 (1097) hide show
  1. package/README.md +686 -0
  2. package/bin/agentic-framework +2 -0
  3. package/bin/mcp-server +14 -0
  4. package/dist/__mocks__/chalk.d.ts +11 -0
  5. package/dist/__mocks__/chalk.d.ts.map +1 -0
  6. package/dist/__mocks__/chalk.js +20 -0
  7. package/dist/__mocks__/chalk.js.map +1 -0
  8. package/dist/__mocks__/ora.d.ts +20 -0
  9. package/dist/__mocks__/ora.d.ts.map +1 -0
  10. package/dist/__mocks__/ora.js +52 -0
  11. package/dist/__mocks__/ora.js.map +1 -0
  12. package/dist/commands/add.d.ts +6 -0
  13. package/dist/commands/add.d.ts.map +1 -0
  14. package/dist/commands/add.js +105 -0
  15. package/dist/commands/add.js.map +1 -0
  16. package/dist/commands/agent/index.d.ts +11 -0
  17. package/dist/commands/agent/index.d.ts.map +1 -0
  18. package/dist/commands/agent/index.js +22 -0
  19. package/dist/commands/agent/index.js.map +1 -0
  20. package/dist/commands/agent/list.d.ts +8 -0
  21. package/dist/commands/agent/list.d.ts.map +1 -0
  22. package/dist/commands/agent/list.js +53 -0
  23. package/dist/commands/agent/list.js.map +1 -0
  24. package/dist/commands/agent/run.d.ts +9 -0
  25. package/dist/commands/agent/run.d.ts.map +1 -0
  26. package/dist/commands/agent/run.js +180 -0
  27. package/dist/commands/agent/run.js.map +1 -0
  28. package/dist/commands/agent/show.d.ts +8 -0
  29. package/dist/commands/agent/show.d.ts.map +1 -0
  30. package/dist/commands/agent/show.js +109 -0
  31. package/dist/commands/agent/show.js.map +1 -0
  32. package/dist/commands/backlog/create-ticket.d.ts +19 -0
  33. package/dist/commands/backlog/create-ticket.d.ts.map +1 -0
  34. package/dist/commands/backlog/create-ticket.js +168 -0
  35. package/dist/commands/backlog/create-ticket.js.map +1 -0
  36. package/dist/commands/backlog/import-jira.d.ts +32 -0
  37. package/dist/commands/backlog/import-jira.d.ts.map +1 -0
  38. package/dist/commands/backlog/import-jira.js +126 -0
  39. package/dist/commands/backlog/import-jira.js.map +1 -0
  40. package/dist/commands/backlog/migrate-milestones.d.ts +21 -0
  41. package/dist/commands/backlog/migrate-milestones.d.ts.map +1 -0
  42. package/dist/commands/backlog/migrate-milestones.js +155 -0
  43. package/dist/commands/backlog/migrate-milestones.js.map +1 -0
  44. package/dist/commands/backlog/update-fields.d.ts +36 -0
  45. package/dist/commands/backlog/update-fields.d.ts.map +1 -0
  46. package/dist/commands/backlog/update-fields.js +251 -0
  47. package/dist/commands/backlog/update-fields.js.map +1 -0
  48. package/dist/commands/backlog/validate-enhanced.d.ts +19 -0
  49. package/dist/commands/backlog/validate-enhanced.d.ts.map +1 -0
  50. package/dist/commands/backlog/validate-enhanced.js +282 -0
  51. package/dist/commands/backlog/validate-enhanced.js.map +1 -0
  52. package/dist/commands/backlog/validate.d.ts +19 -0
  53. package/dist/commands/backlog/validate.d.ts.map +1 -0
  54. package/dist/commands/backlog/validate.js +283 -0
  55. package/dist/commands/backlog/validate.js.map +1 -0
  56. package/dist/commands/build.d.ts +20 -0
  57. package/dist/commands/build.d.ts.map +1 -0
  58. package/dist/commands/build.js +116 -0
  59. package/dist/commands/build.js.map +1 -0
  60. package/dist/commands/bump-version.d.ts +61 -0
  61. package/dist/commands/bump-version.d.ts.map +1 -0
  62. package/dist/commands/bump-version.js +618 -0
  63. package/dist/commands/bump-version.js.map +1 -0
  64. package/dist/commands/confluence/create-page.d.ts +11 -0
  65. package/dist/commands/confluence/create-page.d.ts.map +1 -0
  66. package/dist/commands/confluence/create-page.js +72 -0
  67. package/dist/commands/confluence/create-page.js.map +1 -0
  68. package/dist/commands/confluence/fetch-page.d.ts +11 -0
  69. package/dist/commands/confluence/fetch-page.d.ts.map +1 -0
  70. package/dist/commands/confluence/fetch-page.js +64 -0
  71. package/dist/commands/confluence/fetch-page.js.map +1 -0
  72. package/dist/commands/confluence/import-reports.d.ts +12 -0
  73. package/dist/commands/confluence/import-reports.d.ts.map +1 -0
  74. package/dist/commands/confluence/import-reports.js +68 -0
  75. package/dist/commands/confluence/import-reports.js.map +1 -0
  76. package/dist/commands/confluence/validate.d.ts +23 -0
  77. package/dist/commands/confluence/validate.d.ts.map +1 -0
  78. package/dist/commands/confluence/validate.js +272 -0
  79. package/dist/commands/confluence/validate.js.map +1 -0
  80. package/dist/commands/create-agent.d.ts +8 -0
  81. package/dist/commands/create-agent.d.ts.map +1 -0
  82. package/dist/commands/create-agent.js +104 -0
  83. package/dist/commands/create-agent.js.map +1 -0
  84. package/dist/commands/create-module.d.ts +8 -0
  85. package/dist/commands/create-module.d.ts.map +1 -0
  86. package/dist/commands/create-module.js +123 -0
  87. package/dist/commands/create-module.js.map +1 -0
  88. package/dist/commands/create-skill.d.ts +8 -0
  89. package/dist/commands/create-skill.d.ts.map +1 -0
  90. package/dist/commands/create-skill.js +108 -0
  91. package/dist/commands/create-skill.js.map +1 -0
  92. package/dist/commands/dev.d.ts +21 -0
  93. package/dist/commands/dev.d.ts.map +1 -0
  94. package/dist/commands/dev.js +304 -0
  95. package/dist/commands/dev.js.map +1 -0
  96. package/dist/commands/generate-agents.d.ts +19 -0
  97. package/dist/commands/generate-agents.d.ts.map +1 -0
  98. package/dist/commands/generate-agents.js +146 -0
  99. package/dist/commands/generate-agents.js.map +1 -0
  100. package/dist/commands/generate-commands.d.ts +13 -0
  101. package/dist/commands/generate-commands.d.ts.map +1 -0
  102. package/dist/commands/generate-commands.js +229 -0
  103. package/dist/commands/generate-commands.js.map +1 -0
  104. package/dist/commands/info.d.ts +2 -0
  105. package/dist/commands/info.d.ts.map +1 -0
  106. package/dist/commands/info.js +83 -0
  107. package/dist/commands/info.js.map +1 -0
  108. package/dist/commands/init.d.ts +27 -0
  109. package/dist/commands/init.d.ts.map +1 -0
  110. package/dist/commands/init.js +740 -0
  111. package/dist/commands/init.js.map +1 -0
  112. package/dist/commands/jira/export.d.ts +19 -0
  113. package/dist/commands/jira/export.d.ts.map +1 -0
  114. package/dist/commands/jira/export.js +212 -0
  115. package/dist/commands/jira/export.js.map +1 -0
  116. package/dist/commands/jira/sync.d.ts +20 -0
  117. package/dist/commands/jira/sync.d.ts.map +1 -0
  118. package/dist/commands/jira/sync.js +242 -0
  119. package/dist/commands/jira/sync.js.map +1 -0
  120. package/dist/commands/list.d.ts +6 -0
  121. package/dist/commands/list.d.ts.map +1 -0
  122. package/dist/commands/list.js +51 -0
  123. package/dist/commands/list.js.map +1 -0
  124. package/dist/commands/mcp/check.d.ts +11 -0
  125. package/dist/commands/mcp/check.d.ts.map +1 -0
  126. package/dist/commands/mcp/check.js +71 -0
  127. package/dist/commands/mcp/check.js.map +1 -0
  128. package/dist/commands/mcp/index.d.ts +15 -0
  129. package/dist/commands/mcp/index.d.ts.map +1 -0
  130. package/dist/commands/mcp/index.js +28 -0
  131. package/dist/commands/mcp/index.js.map +1 -0
  132. package/dist/commands/mcp/seed.d.ts +11 -0
  133. package/dist/commands/mcp/seed.d.ts.map +1 -0
  134. package/dist/commands/mcp/seed.js +222 -0
  135. package/dist/commands/mcp/seed.js.map +1 -0
  136. package/dist/commands/mcp/setup.d.ts +13 -0
  137. package/dist/commands/mcp/setup.d.ts.map +1 -0
  138. package/dist/commands/mcp/setup.js +387 -0
  139. package/dist/commands/mcp/setup.js.map +1 -0
  140. package/dist/commands/mcp/status.d.ts +11 -0
  141. package/dist/commands/mcp/status.d.ts.map +1 -0
  142. package/dist/commands/mcp/status.js +126 -0
  143. package/dist/commands/mcp/status.js.map +1 -0
  144. package/dist/commands/openclaw/export.d.ts +9 -0
  145. package/dist/commands/openclaw/export.d.ts.map +1 -0
  146. package/dist/commands/openclaw/export.js +72 -0
  147. package/dist/commands/openclaw/export.js.map +1 -0
  148. package/dist/commands/openclaw/index.d.ts +6 -0
  149. package/dist/commands/openclaw/index.d.ts.map +1 -0
  150. package/dist/commands/openclaw/index.js +11 -0
  151. package/dist/commands/openclaw/index.js.map +1 -0
  152. package/dist/commands/planning/create-plan.d.ts +21 -0
  153. package/dist/commands/planning/create-plan.d.ts.map +1 -0
  154. package/dist/commands/planning/create-plan.js +74 -0
  155. package/dist/commands/planning/create-plan.js.map +1 -0
  156. package/dist/commands/planning/validate-plan.d.ts +19 -0
  157. package/dist/commands/planning/validate-plan.d.ts.map +1 -0
  158. package/dist/commands/planning/validate-plan.js +276 -0
  159. package/dist/commands/planning/validate-plan.js.map +1 -0
  160. package/dist/commands/remove.d.ts +8 -0
  161. package/dist/commands/remove.d.ts.map +1 -0
  162. package/dist/commands/remove.js +157 -0
  163. package/dist/commands/remove.js.map +1 -0
  164. package/dist/commands/routes.d.ts +16 -0
  165. package/dist/commands/routes.d.ts.map +1 -0
  166. package/dist/commands/routes.js +153 -0
  167. package/dist/commands/routes.js.map +1 -0
  168. package/dist/commands/skill/deploy.d.ts +12 -0
  169. package/dist/commands/skill/deploy.d.ts.map +1 -0
  170. package/dist/commands/skill/deploy.js +327 -0
  171. package/dist/commands/skill/deploy.js.map +1 -0
  172. package/dist/commands/skill/index.d.ts +6 -0
  173. package/dist/commands/skill/index.d.ts.map +1 -0
  174. package/dist/commands/skill/index.js +20 -0
  175. package/dist/commands/skill/index.js.map +1 -0
  176. package/dist/commands/skill/info.d.ts +11 -0
  177. package/dist/commands/skill/info.d.ts.map +1 -0
  178. package/dist/commands/skill/info.js +260 -0
  179. package/dist/commands/skill/info.js.map +1 -0
  180. package/dist/commands/skill/list.d.ts +11 -0
  181. package/dist/commands/skill/list.d.ts.map +1 -0
  182. package/dist/commands/skill/list.js +242 -0
  183. package/dist/commands/skill/list.js.map +1 -0
  184. package/dist/commands/skill/pull.d.ts +12 -0
  185. package/dist/commands/skill/pull.d.ts.map +1 -0
  186. package/dist/commands/skill/pull.js +133 -0
  187. package/dist/commands/skill/pull.js.map +1 -0
  188. package/dist/commands/skill/remove.d.ts +12 -0
  189. package/dist/commands/skill/remove.d.ts.map +1 -0
  190. package/dist/commands/skill/remove.js +99 -0
  191. package/dist/commands/skill/remove.js.map +1 -0
  192. package/dist/commands/status.d.ts +11 -0
  193. package/dist/commands/status.d.ts.map +1 -0
  194. package/dist/commands/status.js +195 -0
  195. package/dist/commands/status.js.map +1 -0
  196. package/dist/commands/sync.d.ts +20 -0
  197. package/dist/commands/sync.d.ts.map +1 -0
  198. package/dist/commands/sync.js +517 -0
  199. package/dist/commands/sync.js.map +1 -0
  200. package/dist/commands/template/index.d.ts +12 -0
  201. package/dist/commands/template/index.d.ts.map +1 -0
  202. package/dist/commands/template/index.js +24 -0
  203. package/dist/commands/template/index.js.map +1 -0
  204. package/dist/commands/template/info.d.ts +8 -0
  205. package/dist/commands/template/info.d.ts.map +1 -0
  206. package/dist/commands/template/info.js +125 -0
  207. package/dist/commands/template/info.js.map +1 -0
  208. package/dist/commands/template/list.d.ts +8 -0
  209. package/dist/commands/template/list.d.ts.map +1 -0
  210. package/dist/commands/template/list.js +77 -0
  211. package/dist/commands/template/list.js.map +1 -0
  212. package/dist/commands/template/render.d.ts +8 -0
  213. package/dist/commands/template/render.d.ts.map +1 -0
  214. package/dist/commands/template/render.js +115 -0
  215. package/dist/commands/template/render.js.map +1 -0
  216. package/dist/commands/template/validate.d.ts +8 -0
  217. package/dist/commands/template/validate.d.ts.map +1 -0
  218. package/dist/commands/template/validate.js +137 -0
  219. package/dist/commands/template/validate.js.map +1 -0
  220. package/dist/commands/test.d.ts +40 -0
  221. package/dist/commands/test.d.ts.map +1 -0
  222. package/dist/commands/test.js +240 -0
  223. package/dist/commands/test.js.map +1 -0
  224. package/dist/commands/update.d.ts +12 -0
  225. package/dist/commands/update.d.ts.map +1 -0
  226. package/dist/commands/update.js +248 -0
  227. package/dist/commands/update.js.map +1 -0
  228. package/dist/commands/validate.d.ts +12 -0
  229. package/dist/commands/validate.d.ts.map +1 -0
  230. package/dist/commands/validate.js +355 -0
  231. package/dist/commands/validate.js.map +1 -0
  232. package/dist/commands/writer/analyze.d.ts +19 -0
  233. package/dist/commands/writer/analyze.d.ts.map +1 -0
  234. package/dist/commands/writer/analyze.js +210 -0
  235. package/dist/commands/writer/analyze.js.map +1 -0
  236. package/dist/commands/writer/build.d.ts +21 -0
  237. package/dist/commands/writer/build.d.ts.map +1 -0
  238. package/dist/commands/writer/build.js +241 -0
  239. package/dist/commands/writer/build.js.map +1 -0
  240. package/dist/commands/writer/create-chapter.d.ts +19 -0
  241. package/dist/commands/writer/create-chapter.d.ts.map +1 -0
  242. package/dist/commands/writer/create-chapter.js +260 -0
  243. package/dist/commands/writer/create-chapter.js.map +1 -0
  244. package/dist/commands/writer/create-character.d.ts +19 -0
  245. package/dist/commands/writer/create-character.d.ts.map +1 -0
  246. package/dist/commands/writer/create-character.js +263 -0
  247. package/dist/commands/writer/create-character.js.map +1 -0
  248. package/dist/commands/writer/create-part.d.ts +19 -0
  249. package/dist/commands/writer/create-part.d.ts.map +1 -0
  250. package/dist/commands/writer/create-part.js +239 -0
  251. package/dist/commands/writer/create-part.js.map +1 -0
  252. package/dist/commands/writer/create-scene.d.ts +19 -0
  253. package/dist/commands/writer/create-scene.d.ts.map +1 -0
  254. package/dist/commands/writer/create-scene.js +286 -0
  255. package/dist/commands/writer/create-scene.js.map +1 -0
  256. package/dist/commands/writer/export.d.ts +21 -0
  257. package/dist/commands/writer/export.d.ts.map +1 -0
  258. package/dist/commands/writer/export.js +230 -0
  259. package/dist/commands/writer/export.js.map +1 -0
  260. package/dist/commands/writer/init.d.ts +19 -0
  261. package/dist/commands/writer/init.d.ts.map +1 -0
  262. package/dist/commands/writer/init.js +227 -0
  263. package/dist/commands/writer/init.js.map +1 -0
  264. package/dist/commands/writer/lib/immutability-utils.d.ts +82 -0
  265. package/dist/commands/writer/lib/immutability-utils.d.ts.map +1 -0
  266. package/dist/commands/writer/lib/immutability-utils.js +253 -0
  267. package/dist/commands/writer/lib/immutability-utils.js.map +1 -0
  268. package/dist/commands/writer/lib/lock-utils.d.ts +48 -0
  269. package/dist/commands/writer/lib/lock-utils.d.ts.map +1 -0
  270. package/dist/commands/writer/lib/lock-utils.js +122 -0
  271. package/dist/commands/writer/lib/lock-utils.js.map +1 -0
  272. package/dist/commands/writer/lock-fact.d.ts +20 -0
  273. package/dist/commands/writer/lock-fact.d.ts.map +1 -0
  274. package/dist/commands/writer/lock-fact.js +174 -0
  275. package/dist/commands/writer/lock-fact.js.map +1 -0
  276. package/dist/commands/writer/unlock-fact.d.ts +20 -0
  277. package/dist/commands/writer/unlock-fact.d.ts.map +1 -0
  278. package/dist/commands/writer/unlock-fact.js +160 -0
  279. package/dist/commands/writer/unlock-fact.js.map +1 -0
  280. package/dist/commands/writer/validate-immutability.d.ts +19 -0
  281. package/dist/commands/writer/validate-immutability.d.ts.map +1 -0
  282. package/dist/commands/writer/validate-immutability.js +148 -0
  283. package/dist/commands/writer/validate-immutability.js.map +1 -0
  284. package/dist/commands/writer/validate.d.ts +20 -0
  285. package/dist/commands/writer/validate.d.ts.map +1 -0
  286. package/dist/commands/writer/validate.js +370 -0
  287. package/dist/commands/writer/validate.js.map +1 -0
  288. package/dist/hooks/claude-folder-protection.d.ts +23 -0
  289. package/dist/hooks/claude-folder-protection.d.ts.map +1 -0
  290. package/dist/hooks/claude-folder-protection.js +98 -0
  291. package/dist/hooks/claude-folder-protection.js.map +1 -0
  292. package/dist/hooks/index.d.ts +24 -0
  293. package/dist/hooks/index.d.ts.map +1 -0
  294. package/dist/hooks/index.js +24 -0
  295. package/dist/hooks/index.js.map +1 -0
  296. package/dist/hooks/post-write-validate.d.ts +14 -0
  297. package/dist/hooks/post-write-validate.d.ts.map +1 -0
  298. package/dist/hooks/post-write-validate.js +142 -0
  299. package/dist/hooks/post-write-validate.js.map +1 -0
  300. package/dist/hooks/pre-commit-skill-reminder.d.ts +21 -0
  301. package/dist/hooks/pre-commit-skill-reminder.d.ts.map +1 -0
  302. package/dist/hooks/pre-commit-skill-reminder.js +142 -0
  303. package/dist/hooks/pre-commit-skill-reminder.js.map +1 -0
  304. package/dist/hooks/pre-write-quality.d.ts +14 -0
  305. package/dist/hooks/pre-write-quality.d.ts.map +1 -0
  306. package/dist/hooks/pre-write-quality.js +114 -0
  307. package/dist/hooks/pre-write-quality.js.map +1 -0
  308. package/dist/hooks/skill-reminder.d.ts +22 -0
  309. package/dist/hooks/skill-reminder.d.ts.map +1 -0
  310. package/dist/hooks/skill-reminder.js +285 -0
  311. package/dist/hooks/skill-reminder.js.map +1 -0
  312. package/dist/hooks/stop-quality-check.d.ts +14 -0
  313. package/dist/hooks/stop-quality-check.d.ts.map +1 -0
  314. package/dist/hooks/stop-quality-check.js +122 -0
  315. package/dist/hooks/stop-quality-check.js.map +1 -0
  316. package/dist/hooks/subagent-context-loader.d.ts +12 -0
  317. package/dist/hooks/subagent-context-loader.d.ts.map +1 -0
  318. package/dist/hooks/subagent-context-loader.js +124 -0
  319. package/dist/hooks/subagent-context-loader.js.map +1 -0
  320. package/dist/hooks/types.d.ts +89 -0
  321. package/dist/hooks/types.d.ts.map +1 -0
  322. package/dist/hooks/types.js +57 -0
  323. package/dist/hooks/types.js.map +1 -0
  324. package/dist/index.d.ts +3 -0
  325. package/dist/index.d.ts.map +1 -0
  326. package/dist/index.js +256 -0
  327. package/dist/index.js.map +1 -0
  328. package/dist/lib/affected-modules.d.ts +104 -0
  329. package/dist/lib/affected-modules.d.ts.map +1 -0
  330. package/dist/lib/affected-modules.js +283 -0
  331. package/dist/lib/affected-modules.js.map +1 -0
  332. package/dist/lib/agent-generator.d.ts +137 -0
  333. package/dist/lib/agent-generator.d.ts.map +1 -0
  334. package/dist/lib/agent-generator.js +274 -0
  335. package/dist/lib/agent-generator.js.map +1 -0
  336. package/dist/lib/backlog/__mocks__/prompt-utils.d.ts +5 -0
  337. package/dist/lib/backlog/__mocks__/prompt-utils.d.ts.map +1 -0
  338. package/dist/lib/backlog/__mocks__/prompt-utils.js +5 -0
  339. package/dist/lib/backlog/__mocks__/prompt-utils.js.map +1 -0
  340. package/dist/lib/backlog/content-parser.d.ts +83 -0
  341. package/dist/lib/backlog/content-parser.d.ts.map +1 -0
  342. package/dist/lib/backlog/content-parser.js +284 -0
  343. package/dist/lib/backlog/content-parser.js.map +1 -0
  344. package/dist/lib/backlog/csv-extractor.d.ts +87 -0
  345. package/dist/lib/backlog/csv-extractor.d.ts.map +1 -0
  346. package/dist/lib/backlog/csv-extractor.js +338 -0
  347. package/dist/lib/backlog/csv-extractor.js.map +1 -0
  348. package/dist/lib/backlog/epic-handler.d.ts +55 -0
  349. package/dist/lib/backlog/epic-handler.d.ts.map +1 -0
  350. package/dist/lib/backlog/epic-handler.js +222 -0
  351. package/dist/lib/backlog/epic-handler.js.map +1 -0
  352. package/dist/lib/backlog/field-updater.d.ts +195 -0
  353. package/dist/lib/backlog/field-updater.d.ts.map +1 -0
  354. package/dist/lib/backlog/field-updater.js +287 -0
  355. package/dist/lib/backlog/field-updater.js.map +1 -0
  356. package/dist/lib/backlog/import-engine.d.ts +110 -0
  357. package/dist/lib/backlog/import-engine.d.ts.map +1 -0
  358. package/dist/lib/backlog/import-engine.js +241 -0
  359. package/dist/lib/backlog/import-engine.js.map +1 -0
  360. package/dist/lib/backlog/import-strategies.d.ts +110 -0
  361. package/dist/lib/backlog/import-strategies.d.ts.map +1 -0
  362. package/dist/lib/backlog/import-strategies.js +398 -0
  363. package/dist/lib/backlog/import-strategies.js.map +1 -0
  364. package/dist/lib/backlog/jira-file-generators.d.ts +154 -0
  365. package/dist/lib/backlog/jira-file-generators.d.ts.map +1 -0
  366. package/dist/lib/backlog/jira-file-generators.js +265 -0
  367. package/dist/lib/backlog/jira-file-generators.js.map +1 -0
  368. package/dist/lib/backlog/jira-import-workflows.d.ts +112 -0
  369. package/dist/lib/backlog/jira-import-workflows.d.ts.map +1 -0
  370. package/dist/lib/backlog/jira-import-workflows.js +339 -0
  371. package/dist/lib/backlog/jira-import-workflows.js.map +1 -0
  372. package/dist/lib/backlog/jira-lookup.d.ts +121 -0
  373. package/dist/lib/backlog/jira-lookup.d.ts.map +1 -0
  374. package/dist/lib/backlog/jira-lookup.js +232 -0
  375. package/dist/lib/backlog/jira-lookup.js.map +1 -0
  376. package/dist/lib/backlog/jira-prompts.d.ts +66 -0
  377. package/dist/lib/backlog/jira-prompts.d.ts.map +1 -0
  378. package/dist/lib/backlog/jira-prompts.js +232 -0
  379. package/dist/lib/backlog/jira-prompts.js.map +1 -0
  380. package/dist/lib/backlog/jira-validators.d.ts +123 -0
  381. package/dist/lib/backlog/jira-validators.d.ts.map +1 -0
  382. package/dist/lib/backlog/jira-validators.js +394 -0
  383. package/dist/lib/backlog/jira-validators.js.map +1 -0
  384. package/dist/lib/backlog/milestone-generator.d.ts +172 -0
  385. package/dist/lib/backlog/milestone-generator.d.ts.map +1 -0
  386. package/dist/lib/backlog/milestone-generator.js +378 -0
  387. package/dist/lib/backlog/milestone-generator.js.map +1 -0
  388. package/dist/lib/backlog/milestone-migrator.d.ts +174 -0
  389. package/dist/lib/backlog/milestone-migrator.d.ts.map +1 -0
  390. package/dist/lib/backlog/milestone-migrator.js +401 -0
  391. package/dist/lib/backlog/milestone-migrator.js.map +1 -0
  392. package/dist/lib/backlog/milestone-sanitizer.d.ts +72 -0
  393. package/dist/lib/backlog/milestone-sanitizer.d.ts.map +1 -0
  394. package/dist/lib/backlog/milestone-sanitizer.js +139 -0
  395. package/dist/lib/backlog/milestone-sanitizer.js.map +1 -0
  396. package/dist/lib/backlog/prompt-utils.d.ts +9 -0
  397. package/dist/lib/backlog/prompt-utils.d.ts.map +1 -0
  398. package/dist/lib/backlog/prompt-utils.js +11 -0
  399. package/dist/lib/backlog/prompt-utils.js.map +1 -0
  400. package/dist/lib/backlog/sprint-creator.d.ts +145 -0
  401. package/dist/lib/backlog/sprint-creator.d.ts.map +1 -0
  402. package/dist/lib/backlog/sprint-creator.js +295 -0
  403. package/dist/lib/backlog/sprint-creator.js.map +1 -0
  404. package/dist/lib/backlog/ticket-generator.d.ts +79 -0
  405. package/dist/lib/backlog/ticket-generator.d.ts.map +1 -0
  406. package/dist/lib/backlog/ticket-generator.js +281 -0
  407. package/dist/lib/backlog/ticket-generator.js.map +1 -0
  408. package/dist/lib/backlog/ticket-processor.d.ts +205 -0
  409. package/dist/lib/backlog/ticket-processor.d.ts.map +1 -0
  410. package/dist/lib/backlog/ticket-processor.js +422 -0
  411. package/dist/lib/backlog/ticket-processor.js.map +1 -0
  412. package/dist/lib/backlog/types.d.ts +37 -0
  413. package/dist/lib/backlog/types.d.ts.map +1 -0
  414. package/dist/lib/backlog/types.js +7 -0
  415. package/dist/lib/backlog/types.js.map +1 -0
  416. package/dist/lib/backlog/validator.d.ts +61 -0
  417. package/dist/lib/backlog/validator.d.ts.map +1 -0
  418. package/dist/lib/backlog/validator.js +285 -0
  419. package/dist/lib/backlog/validator.js.map +1 -0
  420. package/dist/lib/boundary-validator.d.ts +88 -0
  421. package/dist/lib/boundary-validator.d.ts.map +1 -0
  422. package/dist/lib/boundary-validator.js +494 -0
  423. package/dist/lib/boundary-validator.js.map +1 -0
  424. package/dist/lib/build/build-engine.d.ts +142 -0
  425. package/dist/lib/build/build-engine.d.ts.map +1 -0
  426. package/dist/lib/build/build-engine.js +487 -0
  427. package/dist/lib/build/build-engine.js.map +1 -0
  428. package/dist/lib/build/index.d.ts +7 -0
  429. package/dist/lib/build/index.d.ts.map +1 -0
  430. package/dist/lib/build/index.js +7 -0
  431. package/dist/lib/build/index.js.map +1 -0
  432. package/dist/lib/cleanup-engine.d.ts +121 -0
  433. package/dist/lib/cleanup-engine.d.ts.map +1 -0
  434. package/dist/lib/cleanup-engine.js +252 -0
  435. package/dist/lib/cleanup-engine.js.map +1 -0
  436. package/dist/lib/cli-context.d.ts +283 -0
  437. package/dist/lib/cli-context.d.ts.map +1 -0
  438. package/dist/lib/cli-context.js +403 -0
  439. package/dist/lib/cli-context.js.map +1 -0
  440. package/dist/lib/cli-version.d.ts +7 -0
  441. package/dist/lib/cli-version.d.ts.map +1 -0
  442. package/dist/lib/cli-version.js +30 -0
  443. package/dist/lib/cli-version.js.map +1 -0
  444. package/dist/lib/command-factory.d.ts +76 -0
  445. package/dist/lib/command-factory.d.ts.map +1 -0
  446. package/dist/lib/command-factory.js +166 -0
  447. package/dist/lib/command-factory.js.map +1 -0
  448. package/dist/lib/common/api-client.d.ts +92 -0
  449. package/dist/lib/common/api-client.d.ts.map +1 -0
  450. package/dist/lib/common/api-client.js +206 -0
  451. package/dist/lib/common/api-client.js.map +1 -0
  452. package/dist/lib/common/file-utils.d.ts +92 -0
  453. package/dist/lib/common/file-utils.d.ts.map +1 -0
  454. package/dist/lib/common/file-utils.js +143 -0
  455. package/dist/lib/common/file-utils.js.map +1 -0
  456. package/dist/lib/common/validation.d.ts +91 -0
  457. package/dist/lib/common/validation.d.ts.map +1 -0
  458. package/dist/lib/common/validation.js +213 -0
  459. package/dist/lib/common/validation.js.map +1 -0
  460. package/dist/lib/common/yaml-frontmatter.d.ts +76 -0
  461. package/dist/lib/common/yaml-frontmatter.d.ts.map +1 -0
  462. package/dist/lib/common/yaml-frontmatter.js +89 -0
  463. package/dist/lib/common/yaml-frontmatter.js.map +1 -0
  464. package/dist/lib/confluence/adf-converter.d.ts +30 -0
  465. package/dist/lib/confluence/adf-converter.d.ts.map +1 -0
  466. package/dist/lib/confluence/adf-converter.js +649 -0
  467. package/dist/lib/confluence/adf-converter.js.map +1 -0
  468. package/dist/lib/confluence/confluence-client.d.ts +121 -0
  469. package/dist/lib/confluence/confluence-client.d.ts.map +1 -0
  470. package/dist/lib/confluence/confluence-client.js +249 -0
  471. package/dist/lib/confluence/confluence-client.js.map +1 -0
  472. package/dist/lib/confluence/confluence-commands.d.ts +58 -0
  473. package/dist/lib/confluence/confluence-commands.d.ts.map +1 -0
  474. package/dist/lib/confluence/confluence-commands.js +231 -0
  475. package/dist/lib/confluence/confluence-commands.js.map +1 -0
  476. package/dist/lib/discovery-engine.d.ts +159 -0
  477. package/dist/lib/discovery-engine.d.ts.map +1 -0
  478. package/dist/lib/discovery-engine.js +538 -0
  479. package/dist/lib/discovery-engine.js.map +1 -0
  480. package/dist/lib/framework-validator.d.ts +81 -0
  481. package/dist/lib/framework-validator.d.ts.map +1 -0
  482. package/dist/lib/framework-validator.js +546 -0
  483. package/dist/lib/framework-validator.js.map +1 -0
  484. package/dist/lib/global-skills-manager.d.ts +90 -0
  485. package/dist/lib/global-skills-manager.d.ts.map +1 -0
  486. package/dist/lib/global-skills-manager.js +180 -0
  487. package/dist/lib/global-skills-manager.js.map +1 -0
  488. package/dist/lib/jira/acceptance-criteria.d.ts +76 -0
  489. package/dist/lib/jira/acceptance-criteria.d.ts.map +1 -0
  490. package/dist/lib/jira/acceptance-criteria.js +163 -0
  491. package/dist/lib/jira/acceptance-criteria.js.map +1 -0
  492. package/dist/lib/jira/export-engine.d.ts +132 -0
  493. package/dist/lib/jira/export-engine.d.ts.map +1 -0
  494. package/dist/lib/jira/export-engine.js +332 -0
  495. package/dist/lib/jira/export-engine.js.map +1 -0
  496. package/dist/lib/jira/field-mapper.d.ts +101 -0
  497. package/dist/lib/jira/field-mapper.d.ts.map +1 -0
  498. package/dist/lib/jira/field-mapper.js +346 -0
  499. package/dist/lib/jira/field-mapper.js.map +1 -0
  500. package/dist/lib/jira/jira-client.d.ts +117 -0
  501. package/dist/lib/jira/jira-client.d.ts.map +1 -0
  502. package/dist/lib/jira/jira-client.js +255 -0
  503. package/dist/lib/jira/jira-client.js.map +1 -0
  504. package/dist/lib/jira/sync-engine.d.ts +154 -0
  505. package/dist/lib/jira/sync-engine.d.ts.map +1 -0
  506. package/dist/lib/jira/sync-engine.js +420 -0
  507. package/dist/lib/jira/sync-engine.js.map +1 -0
  508. package/dist/lib/jira/wiki-converter.d.ts +133 -0
  509. package/dist/lib/jira/wiki-converter.d.ts.map +1 -0
  510. package/dist/lib/jira/wiki-converter.js +245 -0
  511. package/dist/lib/jira/wiki-converter.js.map +1 -0
  512. package/dist/lib/link-transformer.d.ts +176 -0
  513. package/dist/lib/link-transformer.d.ts.map +1 -0
  514. package/dist/lib/link-transformer.js +349 -0
  515. package/dist/lib/link-transformer.js.map +1 -0
  516. package/dist/lib/link-validator.d.ts +232 -0
  517. package/dist/lib/link-validator.d.ts.map +1 -0
  518. package/dist/lib/link-validator.js +504 -0
  519. package/dist/lib/link-validator.js.map +1 -0
  520. package/dist/lib/manifest-manager.d.ts +112 -0
  521. package/dist/lib/manifest-manager.d.ts.map +1 -0
  522. package/dist/lib/manifest-manager.js +153 -0
  523. package/dist/lib/manifest-manager.js.map +1 -0
  524. package/dist/lib/mcp/extractors/framework-project.d.ts +29 -0
  525. package/dist/lib/mcp/extractors/framework-project.d.ts.map +1 -0
  526. package/dist/lib/mcp/extractors/framework-project.js +402 -0
  527. package/dist/lib/mcp/extractors/framework-project.js.map +1 -0
  528. package/dist/lib/mcp/extractors/generic-project.d.ts +25 -0
  529. package/dist/lib/mcp/extractors/generic-project.d.ts.map +1 -0
  530. package/dist/lib/mcp/extractors/generic-project.js +344 -0
  531. package/dist/lib/mcp/extractors/generic-project.js.map +1 -0
  532. package/dist/lib/mcp/extractors/index.d.ts +48 -0
  533. package/dist/lib/mcp/extractors/index.d.ts.map +1 -0
  534. package/dist/lib/mcp/extractors/index.js +28 -0
  535. package/dist/lib/mcp/extractors/index.js.map +1 -0
  536. package/dist/lib/mcp/index.d.ts +11 -0
  537. package/dist/lib/mcp/index.d.ts.map +1 -0
  538. package/dist/lib/mcp/index.js +11 -0
  539. package/dist/lib/mcp/index.js.map +1 -0
  540. package/dist/lib/mcp/install-instructions.d.ts +39 -0
  541. package/dist/lib/mcp/install-instructions.d.ts.map +1 -0
  542. package/dist/lib/mcp/install-instructions.js +317 -0
  543. package/dist/lib/mcp/install-instructions.js.map +1 -0
  544. package/dist/lib/mcp/prerequisite-checker.d.ts +79 -0
  545. package/dist/lib/mcp/prerequisite-checker.d.ts.map +1 -0
  546. package/dist/lib/mcp/prerequisite-checker.js +213 -0
  547. package/dist/lib/mcp/prerequisite-checker.js.map +1 -0
  548. package/dist/lib/module-loader.d.ts +77 -0
  549. package/dist/lib/module-loader.d.ts.map +1 -0
  550. package/dist/lib/module-loader.js +135 -0
  551. package/dist/lib/module-loader.js.map +1 -0
  552. package/dist/lib/path-resolver.d.ts +160 -0
  553. package/dist/lib/path-resolver.d.ts.map +1 -0
  554. package/dist/lib/path-resolver.js +205 -0
  555. package/dist/lib/path-resolver.js.map +1 -0
  556. package/dist/lib/planning/plan-creator.d.ts +132 -0
  557. package/dist/lib/planning/plan-creator.d.ts.map +1 -0
  558. package/dist/lib/planning/plan-creator.js +361 -0
  559. package/dist/lib/planning/plan-creator.js.map +1 -0
  560. package/dist/lib/project-resolver.d.ts +124 -0
  561. package/dist/lib/project-resolver.d.ts.map +1 -0
  562. package/dist/lib/project-resolver.js +362 -0
  563. package/dist/lib/project-resolver.js.map +1 -0
  564. package/dist/lib/registry-generator.d.ts +11 -0
  565. package/dist/lib/registry-generator.d.ts.map +1 -0
  566. package/dist/lib/registry-generator.js +288 -0
  567. package/dist/lib/registry-generator.js.map +1 -0
  568. package/dist/lib/routes-validator.d.ts +50 -0
  569. package/dist/lib/routes-validator.d.ts.map +1 -0
  570. package/dist/lib/routes-validator.js +260 -0
  571. package/dist/lib/routes-validator.js.map +1 -0
  572. package/dist/lib/schemas/agent.schema.d.ts +175 -0
  573. package/dist/lib/schemas/agent.schema.d.ts.map +1 -0
  574. package/dist/lib/schemas/agent.schema.js +86 -0
  575. package/dist/lib/schemas/agent.schema.js.map +1 -0
  576. package/dist/lib/schemas/index.d.ts +13 -0
  577. package/dist/lib/schemas/index.d.ts.map +1 -0
  578. package/dist/lib/schemas/index.js +13 -0
  579. package/dist/lib/schemas/index.js.map +1 -0
  580. package/dist/lib/schemas/skill.schema.d.ts +92 -0
  581. package/dist/lib/schemas/skill.schema.d.ts.map +1 -0
  582. package/dist/lib/schemas/skill.schema.js +98 -0
  583. package/dist/lib/schemas/skill.schema.js.map +1 -0
  584. package/dist/lib/sdk/executor.d.ts +37 -0
  585. package/dist/lib/sdk/executor.d.ts.map +1 -0
  586. package/dist/lib/sdk/executor.js +137 -0
  587. package/dist/lib/sdk/executor.js.map +1 -0
  588. package/dist/lib/sdk/generator.d.ts +79 -0
  589. package/dist/lib/sdk/generator.d.ts.map +1 -0
  590. package/dist/lib/sdk/generator.js +316 -0
  591. package/dist/lib/sdk/generator.js.map +1 -0
  592. package/dist/lib/sdk/index.d.ts +12 -0
  593. package/dist/lib/sdk/index.d.ts.map +1 -0
  594. package/dist/lib/sdk/index.js +15 -0
  595. package/dist/lib/sdk/index.js.map +1 -0
  596. package/dist/lib/sdk/message-handler.d.ts +40 -0
  597. package/dist/lib/sdk/message-handler.d.ts.map +1 -0
  598. package/dist/lib/sdk/message-handler.js +215 -0
  599. package/dist/lib/sdk/message-handler.js.map +1 -0
  600. package/dist/lib/sdk/sub-agents.d.ts +51 -0
  601. package/dist/lib/sdk/sub-agents.d.ts.map +1 -0
  602. package/dist/lib/sdk/sub-agents.js +234 -0
  603. package/dist/lib/sdk/sub-agents.js.map +1 -0
  604. package/dist/lib/sdk/types.d.ts +169 -0
  605. package/dist/lib/sdk/types.d.ts.map +1 -0
  606. package/dist/lib/sdk/types.js +7 -0
  607. package/dist/lib/sdk/types.js.map +1 -0
  608. package/dist/lib/skill-cli-parser.d.ts +79 -0
  609. package/dist/lib/skill-cli-parser.d.ts.map +1 -0
  610. package/dist/lib/skill-cli-parser.js +172 -0
  611. package/dist/lib/skill-cli-parser.js.map +1 -0
  612. package/dist/lib/skill-template-engine.d.ts +116 -0
  613. package/dist/lib/skill-template-engine.d.ts.map +1 -0
  614. package/dist/lib/skill-template-engine.js +220 -0
  615. package/dist/lib/skill-template-engine.js.map +1 -0
  616. package/dist/lib/sync-engine.d.ts +344 -0
  617. package/dist/lib/sync-engine.d.ts.map +1 -0
  618. package/dist/lib/sync-engine.js +1255 -0
  619. package/dist/lib/sync-engine.js.map +1 -0
  620. package/dist/lib/telemetry/config.d.ts +22 -0
  621. package/dist/lib/telemetry/config.d.ts.map +1 -0
  622. package/dist/lib/telemetry/config.js +210 -0
  623. package/dist/lib/telemetry/config.js.map +1 -0
  624. package/dist/lib/telemetry/exporters/console-exporter.d.ts +72 -0
  625. package/dist/lib/telemetry/exporters/console-exporter.d.ts.map +1 -0
  626. package/dist/lib/telemetry/exporters/console-exporter.js +228 -0
  627. package/dist/lib/telemetry/exporters/console-exporter.js.map +1 -0
  628. package/dist/lib/telemetry/exporters/json-file-exporter.d.ts +48 -0
  629. package/dist/lib/telemetry/exporters/json-file-exporter.d.ts.map +1 -0
  630. package/dist/lib/telemetry/exporters/json-file-exporter.js +202 -0
  631. package/dist/lib/telemetry/exporters/json-file-exporter.js.map +1 -0
  632. package/dist/lib/telemetry/exporters/otel-exporter.d.ts +48 -0
  633. package/dist/lib/telemetry/exporters/otel-exporter.d.ts.map +1 -0
  634. package/dist/lib/telemetry/exporters/otel-exporter.js +299 -0
  635. package/dist/lib/telemetry/exporters/otel-exporter.js.map +1 -0
  636. package/dist/lib/telemetry/exporters/session-file-exporter.d.ts +66 -0
  637. package/dist/lib/telemetry/exporters/session-file-exporter.d.ts.map +1 -0
  638. package/dist/lib/telemetry/exporters/session-file-exporter.js +223 -0
  639. package/dist/lib/telemetry/exporters/session-file-exporter.js.map +1 -0
  640. package/dist/lib/telemetry/index.d.ts +44 -0
  641. package/dist/lib/telemetry/index.d.ts.map +1 -0
  642. package/dist/lib/telemetry/index.js +69 -0
  643. package/dist/lib/telemetry/index.js.map +1 -0
  644. package/dist/lib/telemetry/instrumentation/cli-instrumentation.d.ts +25 -0
  645. package/dist/lib/telemetry/instrumentation/cli-instrumentation.d.ts.map +1 -0
  646. package/dist/lib/telemetry/instrumentation/cli-instrumentation.js +83 -0
  647. package/dist/lib/telemetry/instrumentation/cli-instrumentation.js.map +1 -0
  648. package/dist/lib/telemetry/instrumentation/discovery-instrumentation.d.ts +21 -0
  649. package/dist/lib/telemetry/instrumentation/discovery-instrumentation.d.ts.map +1 -0
  650. package/dist/lib/telemetry/instrumentation/discovery-instrumentation.js +78 -0
  651. package/dist/lib/telemetry/instrumentation/discovery-instrumentation.js.map +1 -0
  652. package/dist/lib/telemetry/instrumentation/mcp-instrumentation.d.ts +76 -0
  653. package/dist/lib/telemetry/instrumentation/mcp-instrumentation.d.ts.map +1 -0
  654. package/dist/lib/telemetry/instrumentation/mcp-instrumentation.js +168 -0
  655. package/dist/lib/telemetry/instrumentation/mcp-instrumentation.js.map +1 -0
  656. package/dist/lib/telemetry/instrumentation/sync-instrumentation.d.ts +25 -0
  657. package/dist/lib/telemetry/instrumentation/sync-instrumentation.d.ts.map +1 -0
  658. package/dist/lib/telemetry/instrumentation/sync-instrumentation.js +51 -0
  659. package/dist/lib/telemetry/instrumentation/sync-instrumentation.js.map +1 -0
  660. package/dist/lib/telemetry/session-context.d.ts +109 -0
  661. package/dist/lib/telemetry/session-context.d.ts.map +1 -0
  662. package/dist/lib/telemetry/session-context.js +170 -0
  663. package/dist/lib/telemetry/session-context.js.map +1 -0
  664. package/dist/lib/telemetry/telemetry-manager.d.ts +88 -0
  665. package/dist/lib/telemetry/telemetry-manager.d.ts.map +1 -0
  666. package/dist/lib/telemetry/telemetry-manager.js +347 -0
  667. package/dist/lib/telemetry/telemetry-manager.js.map +1 -0
  668. package/dist/lib/telemetry/types.d.ts +302 -0
  669. package/dist/lib/telemetry/types.d.ts.map +1 -0
  670. package/dist/lib/telemetry/types.js +6 -0
  671. package/dist/lib/telemetry/types.js.map +1 -0
  672. package/dist/lib/template-engine.d.ts +5 -0
  673. package/dist/lib/template-engine.d.ts.map +1 -0
  674. package/dist/lib/template-engine.js +294 -0
  675. package/dist/lib/template-engine.js.map +1 -0
  676. package/dist/lib/unified-template-engine/computed-variables.d.ts +38 -0
  677. package/dist/lib/unified-template-engine/computed-variables.d.ts.map +1 -0
  678. package/dist/lib/unified-template-engine/computed-variables.js +85 -0
  679. package/dist/lib/unified-template-engine/computed-variables.js.map +1 -0
  680. package/dist/lib/unified-template-engine/index.d.ts +67 -0
  681. package/dist/lib/unified-template-engine/index.d.ts.map +1 -0
  682. package/dist/lib/unified-template-engine/index.js +200 -0
  683. package/dist/lib/unified-template-engine/index.js.map +1 -0
  684. package/dist/lib/unified-template-engine/resolver.d.ts +63 -0
  685. package/dist/lib/unified-template-engine/resolver.d.ts.map +1 -0
  686. package/dist/lib/unified-template-engine/resolver.js +312 -0
  687. package/dist/lib/unified-template-engine/resolver.js.map +1 -0
  688. package/dist/lib/unified-template-engine/types.d.ts +177 -0
  689. package/dist/lib/unified-template-engine/types.d.ts.map +1 -0
  690. package/dist/lib/unified-template-engine/types.js +7 -0
  691. package/dist/lib/unified-template-engine/types.js.map +1 -0
  692. package/dist/lib/unified-template-engine/validator.d.ts +23 -0
  693. package/dist/lib/unified-template-engine/validator.d.ts.map +1 -0
  694. package/dist/lib/unified-template-engine/validator.js +217 -0
  695. package/dist/lib/unified-template-engine/validator.js.map +1 -0
  696. package/dist/lib/validation/rules/plan-rules.d.ts +48 -0
  697. package/dist/lib/validation/rules/plan-rules.d.ts.map +1 -0
  698. package/dist/lib/validation/rules/plan-rules.js +152 -0
  699. package/dist/lib/validation/rules/plan-rules.js.map +1 -0
  700. package/dist/lib/validation/rules/ticket-rules.d.ts +54 -0
  701. package/dist/lib/validation/rules/ticket-rules.d.ts.map +1 -0
  702. package/dist/lib/validation/rules/ticket-rules.js +136 -0
  703. package/dist/lib/validation/rules/ticket-rules.js.map +1 -0
  704. package/dist/lib/validation/schema-validator.d.ts +26 -0
  705. package/dist/lib/validation/schema-validator.d.ts.map +1 -0
  706. package/dist/lib/validation/schema-validator.js +183 -0
  707. package/dist/lib/validation/schema-validator.js.map +1 -0
  708. package/dist/lib/validation/validation-report.d.ts +68 -0
  709. package/dist/lib/validation/validation-report.d.ts.map +1 -0
  710. package/dist/lib/validation/validation-report.js +141 -0
  711. package/dist/lib/validation/validation-report.js.map +1 -0
  712. package/dist/lib/version-validator.d.ts +89 -0
  713. package/dist/lib/version-validator.d.ts.map +1 -0
  714. package/dist/lib/version-validator.js +178 -0
  715. package/dist/lib/version-validator.js.map +1 -0
  716. package/dist/lib/wizard/detection.d.ts +48 -0
  717. package/dist/lib/wizard/detection.d.ts.map +1 -0
  718. package/dist/lib/wizard/detection.js +116 -0
  719. package/dist/lib/wizard/detection.js.map +1 -0
  720. package/dist/lib/wizard/file-handlers.d.ts +40 -0
  721. package/dist/lib/wizard/file-handlers.d.ts.map +1 -0
  722. package/dist/lib/wizard/file-handlers.js +204 -0
  723. package/dist/lib/wizard/file-handlers.js.map +1 -0
  724. package/dist/lib/wizard/index.d.ts +9 -0
  725. package/dist/lib/wizard/index.d.ts.map +1 -0
  726. package/dist/lib/wizard/index.js +9 -0
  727. package/dist/lib/wizard/index.js.map +1 -0
  728. package/dist/lib/wizard/init-wizard.d.ts +35 -0
  729. package/dist/lib/wizard/init-wizard.d.ts.map +1 -0
  730. package/dist/lib/wizard/init-wizard.js +86 -0
  731. package/dist/lib/wizard/init-wizard.js.map +1 -0
  732. package/dist/lib/wizard/module-groups.d.ts +55 -0
  733. package/dist/lib/wizard/module-groups.d.ts.map +1 -0
  734. package/dist/lib/wizard/module-groups.js +128 -0
  735. package/dist/lib/wizard/module-groups.js.map +1 -0
  736. package/dist/lib/wizard/prompts.d.ts +36 -0
  737. package/dist/lib/wizard/prompts.d.ts.map +1 -0
  738. package/dist/lib/wizard/prompts.js +253 -0
  739. package/dist/lib/wizard/prompts.js.map +1 -0
  740. package/dist/lib/wizard/summary.d.ts +45 -0
  741. package/dist/lib/wizard/summary.d.ts.map +1 -0
  742. package/dist/lib/wizard/summary.js +162 -0
  743. package/dist/lib/wizard/summary.js.map +1 -0
  744. package/dist/mcp/index.d.ts +15 -0
  745. package/dist/mcp/index.d.ts.map +1 -0
  746. package/dist/mcp/index.js +75 -0
  747. package/dist/mcp/index.js.map +1 -0
  748. package/dist/mcp/result-formatter.d.ts +68 -0
  749. package/dist/mcp/result-formatter.d.ts.map +1 -0
  750. package/dist/mcp/result-formatter.js +191 -0
  751. package/dist/mcp/result-formatter.js.map +1 -0
  752. package/dist/mcp/tool-registry.d.ts +70 -0
  753. package/dist/mcp/tool-registry.d.ts.map +1 -0
  754. package/dist/mcp/tool-registry.js +183 -0
  755. package/dist/mcp/tool-registry.js.map +1 -0
  756. package/dist/mcp/tools/agent.d.ts +22 -0
  757. package/dist/mcp/tools/agent.d.ts.map +1 -0
  758. package/dist/mcp/tools/agent.js +267 -0
  759. package/dist/mcp/tools/agent.js.map +1 -0
  760. package/dist/mcp/tools/backlog.d.ts +15 -0
  761. package/dist/mcp/tools/backlog.d.ts.map +1 -0
  762. package/dist/mcp/tools/backlog.js +355 -0
  763. package/dist/mcp/tools/backlog.js.map +1 -0
  764. package/dist/mcp/tools/confluence.d.ts +32 -0
  765. package/dist/mcp/tools/confluence.d.ts.map +1 -0
  766. package/dist/mcp/tools/confluence.js +367 -0
  767. package/dist/mcp/tools/confluence.js.map +1 -0
  768. package/dist/mcp/tools/create.d.ts +22 -0
  769. package/dist/mcp/tools/create.d.ts.map +1 -0
  770. package/dist/mcp/tools/create.js +311 -0
  771. package/dist/mcp/tools/create.js.map +1 -0
  772. package/dist/mcp/tools/framework.d.ts +24 -0
  773. package/dist/mcp/tools/framework.d.ts.map +1 -0
  774. package/dist/mcp/tools/framework.js +430 -0
  775. package/dist/mcp/tools/framework.js.map +1 -0
  776. package/dist/mcp/tools/index.d.ts +32 -0
  777. package/dist/mcp/tools/index.d.ts.map +1 -0
  778. package/dist/mcp/tools/index.js +58 -0
  779. package/dist/mcp/tools/index.js.map +1 -0
  780. package/dist/mcp/tools/jira.d.ts +12 -0
  781. package/dist/mcp/tools/jira.d.ts.map +1 -0
  782. package/dist/mcp/tools/jira.js +206 -0
  783. package/dist/mcp/tools/jira.js.map +1 -0
  784. package/dist/mcp/tools/planning.d.ts +22 -0
  785. package/dist/mcp/tools/planning.d.ts.map +1 -0
  786. package/dist/mcp/tools/planning.js +264 -0
  787. package/dist/mcp/tools/planning.js.map +1 -0
  788. package/dist/mcp/tools/skill.d.ts +42 -0
  789. package/dist/mcp/tools/skill.d.ts.map +1 -0
  790. package/dist/mcp/tools/skill.js +561 -0
  791. package/dist/mcp/tools/skill.js.map +1 -0
  792. package/dist/mcp/tools/template.d.ts +36 -0
  793. package/dist/mcp/tools/template.d.ts.map +1 -0
  794. package/dist/mcp/tools/template.js +354 -0
  795. package/dist/mcp/tools/template.js.map +1 -0
  796. package/dist/mcp/tools/writer.d.ts +23 -0
  797. package/dist/mcp/tools/writer.d.ts.map +1 -0
  798. package/dist/mcp/tools/writer.js +394 -0
  799. package/dist/mcp/tools/writer.js.map +1 -0
  800. package/dist/mcp/types.d.ts +102 -0
  801. package/dist/mcp/types.d.ts.map +1 -0
  802. package/dist/mcp/types.js +37 -0
  803. package/dist/mcp/types.js.map +1 -0
  804. package/dist/templates/index.d.ts +11 -0
  805. package/dist/templates/index.d.ts.map +1 -0
  806. package/dist/templates/index.js +11 -0
  807. package/dist/templates/index.js.map +1 -0
  808. package/dist/templates/mcp-hooks.d.ts +37 -0
  809. package/dist/templates/mcp-hooks.d.ts.map +1 -0
  810. package/dist/templates/mcp-hooks.js +224 -0
  811. package/dist/templates/mcp-hooks.js.map +1 -0
  812. package/dist/templates/serena-project.d.ts +14 -0
  813. package/dist/templates/serena-project.d.ts.map +1 -0
  814. package/dist/templates/serena-project.js +105 -0
  815. package/dist/templates/serena-project.js.map +1 -0
  816. package/dist/templates/settings-json.d.ts +28 -0
  817. package/dist/templates/settings-json.d.ts.map +1 -0
  818. package/dist/templates/settings-json.js +190 -0
  819. package/dist/templates/settings-json.js.map +1 -0
  820. package/dist/templates/settings-local.d.ts +69 -0
  821. package/dist/templates/settings-local.d.ts.map +1 -0
  822. package/dist/templates/settings-local.js +56 -0
  823. package/dist/templates/settings-local.js.map +1 -0
  824. package/dist/templates/statusline.d.ts +7 -0
  825. package/dist/templates/statusline.d.ts.map +1 -0
  826. package/dist/templates/statusline.js +260 -0
  827. package/dist/templates/statusline.js.map +1 -0
  828. package/dist/types/command-options.d.ts +392 -0
  829. package/dist/types/command-options.d.ts.map +1 -0
  830. package/dist/types/command-options.js +15 -0
  831. package/dist/types/command-options.js.map +1 -0
  832. package/framework/modules/backlog/agents/ai-backlog-manager.md +430 -0
  833. package/framework/modules/backlog/commands/cmd-backlog-create-ticket.md +42 -0
  834. package/framework/modules/backlog/commands/cmd-backlog-import.md +42 -0
  835. package/framework/modules/backlog/commands/cmd-backlog-migrate-milestones.md +42 -0
  836. package/framework/modules/backlog/commands/cmd-backlog-update-fields.md +42 -0
  837. package/framework/modules/backlog/commands/cmd-backlog-validate.md +42 -0
  838. package/framework/modules/backlog/module.json +82 -0
  839. package/framework/modules/backlog/schemas/ticket.schema.json +143 -0
  840. package/framework/modules/backlog/skills/backlog/building-tickets/BODY-STRUCTURE.md +470 -0
  841. package/framework/modules/backlog/skills/backlog/building-tickets/EXAMPLES.md +561 -0
  842. package/framework/modules/backlog/skills/backlog/building-tickets/SKILL.md +293 -0
  843. package/framework/modules/backlog/skills/backlog/building-tickets/VALIDATION-RULES.md +748 -0
  844. package/framework/modules/backlog/skills/backlog/building-tickets/YAML-STRUCTURE.md +439 -0
  845. package/framework/modules/backlog/skills/backlog/building-tickets/templates/bug.template.md +83 -0
  846. package/framework/modules/backlog/skills/backlog/building-tickets/templates/epic.template.md +96 -0
  847. package/framework/modules/backlog/skills/backlog/building-tickets/templates/story.template.md +68 -0
  848. package/framework/modules/backlog/skills/backlog/building-tickets/templates/task.template.md +66 -0
  849. package/framework/modules/backlog/skills/backlog/building-tickets/templates/template.config.json +50 -0
  850. package/framework/modules/backlog/skills/backlog/organizing-backlog/DIRECTORY-STRUCTURE.md +195 -0
  851. package/framework/modules/backlog/skills/backlog/organizing-backlog/EXAMPLES.md +374 -0
  852. package/framework/modules/backlog/skills/backlog/organizing-backlog/JIRA-SOURCE-OF-TRUTH.md +384 -0
  853. package/framework/modules/backlog/skills/backlog/organizing-backlog/NAMING-CONVENTIONS.md +230 -0
  854. package/framework/modules/backlog/skills/backlog/organizing-backlog/SKILL.md +332 -0
  855. package/framework/modules/backlog/skills/backlog/organizing-backlog/WORKFLOW-PIPELINE.md +298 -0
  856. package/framework/modules/backlog/templates/ticket.md.template +111 -0
  857. package/framework/modules/coding/agents/ai-app-developer.md +275 -0
  858. package/framework/modules/coding/agents/ai-architect.md +454 -0
  859. package/framework/modules/coding/agents/ai-hig-reviewer.md +69 -0
  860. package/framework/modules/coding/agents/ai-ios-developer.md +303 -0
  861. package/framework/modules/coding/module.json +56 -0
  862. package/framework/modules/coding/skills/coding/designing-architecture/SKILL.md +475 -0
  863. package/framework/modules/coding/skills/coding/designing-ios-ui/SKILL.md +405 -0
  864. package/framework/modules/coding/skills/coding/implementing-code/EXAMPLES.md +565 -0
  865. package/framework/modules/coding/skills/coding/implementing-code/SKILL.md +490 -0
  866. package/framework/modules/coding/skills/coding/implementing-ios/ANTI-PATTERNS.md +564 -0
  867. package/framework/modules/coding/skills/coding/implementing-ios/ARCHITECTURE-PATTERNS.md +539 -0
  868. package/framework/modules/coding/skills/coding/implementing-ios/HIG-COMPLIANCE.md +492 -0
  869. package/framework/modules/coding/skills/coding/implementing-ios/SKILL.md +506 -0
  870. package/framework/modules/coding/skills/coding/implementing-ios/SWIFTUI-PATTERNS.md +625 -0
  871. package/framework/modules/coding/skills/coding/implementing-ios/TESTING-PATTERNS.md +625 -0
  872. package/framework/modules/coding/skills/coding/implementing-ios/UIKIT-PATTERNS.md +470 -0
  873. package/framework/modules/coding/skills/coding/structuring-code/CHECKLISTS.md +151 -0
  874. package/framework/modules/coding/skills/coding/structuring-code/DRY-PRINCIPLES.md +285 -0
  875. package/framework/modules/coding/skills/coding/structuring-code/FILE-ORGANIZATION.md +278 -0
  876. package/framework/modules/coding/skills/coding/structuring-code/READABILITY.md +291 -0
  877. package/framework/modules/coding/skills/coding/structuring-code/SKILL.md +289 -0
  878. package/framework/modules/confluence/agents/ai-confluence-manager.md +369 -0
  879. package/framework/modules/confluence/commands/cmd-confluence-create-page.md +42 -0
  880. package/framework/modules/confluence/commands/cmd-confluence-fetch-page.md +42 -0
  881. package/framework/modules/confluence/commands/cmd-confluence-import-reports.md +42 -0
  882. package/framework/modules/confluence/commands/cmd-confluence-validate.md +42 -0
  883. package/framework/modules/confluence/module.json +69 -0
  884. package/framework/modules/confluence/schemas/adf.schema.json +128 -0
  885. package/framework/modules/confluence/skills/confluence/converting-adf/SKILL.md +455 -0
  886. package/framework/modules/confluence/skills/confluence/publishing-confluence/ADF-EXAMPLES.md +433 -0
  887. package/framework/modules/confluence/skills/confluence/publishing-confluence/EXAMPLES.md +513 -0
  888. package/framework/modules/confluence/skills/confluence/publishing-confluence/SKILL.md +651 -0
  889. package/framework/modules/core/agents/ai-framework-developer.md +184 -0
  890. package/framework/modules/core/agents/ai-framework-manager.md +222 -0
  891. package/framework/modules/core/agents/ai-scout-backlog.md +65 -0
  892. package/framework/modules/core/agents/ai-scout-codebase.md +66 -0
  893. package/framework/modules/core/agents/ai-scout-knowledge.md +63 -0
  894. package/framework/modules/core/commands/cmd-agent-list.md +37 -0
  895. package/framework/modules/core/commands/cmd-agent-run.md +37 -0
  896. package/framework/modules/core/commands/cmd-agent-show.md +37 -0
  897. package/framework/modules/core/commands/cmd-bump-version.md +42 -0
  898. package/framework/modules/core/commands/cmd-mcp-check.md +59 -0
  899. package/framework/modules/core/commands/cmd-mcp-seed.md +69 -0
  900. package/framework/modules/core/commands/cmd-mcp-setup.md +61 -0
  901. package/framework/modules/core/commands/cmd-mcp-status.md +70 -0
  902. package/framework/modules/core/commands/cmd-validate-links.md +42 -0
  903. package/framework/modules/core/commands/cmd-validate-versions.md +42 -0
  904. package/framework/modules/core/hooks/_lib/notify-helper.sh +27 -0
  905. package/framework/modules/core/hooks/block-main-commit.sh +35 -0
  906. package/framework/modules/core/hooks/notify.sh +43 -0
  907. package/framework/modules/core/hooks/post-write-format.sh +52 -0
  908. package/framework/modules/core/hooks/post-write-validate.sh +24 -0
  909. package/framework/modules/core/hooks/pre-bash-safety.sh +44 -0
  910. package/framework/modules/core/hooks/pre-commit-skill-reminder.sh +24 -0
  911. package/framework/modules/core/hooks/pre-write-quality.sh +24 -0
  912. package/framework/modules/core/hooks/session-compact-context.sh +37 -0
  913. package/framework/modules/core/hooks/session-end-reminder.sh +36 -0
  914. package/framework/modules/core/hooks/session-start-context.sh +33 -0
  915. package/framework/modules/core/hooks/session-start-worktree.sh +30 -0
  916. package/framework/modules/core/hooks/skill-reminder.sh +24 -0
  917. package/framework/modules/core/hooks/stop-commit-check.sh +24 -0
  918. package/framework/modules/core/hooks/stop-pr-suggest.sh +42 -0
  919. package/framework/modules/core/hooks/stop-quality-check.sh +24 -0
  920. package/framework/modules/core/hooks/subagent-context-loader.sh +24 -0
  921. package/framework/modules/core/module.json +205 -0
  922. package/framework/modules/core/registries/schemas/agents.schema.json +209 -0
  923. package/framework/modules/core/registries/schemas/command.schema.json +98 -0
  924. package/framework/modules/core/registries/schemas/custom-agent.schema.json +108 -0
  925. package/framework/modules/core/registries/schemas/module.schema.json +233 -0
  926. package/framework/modules/core/registries/schemas/template.schema.json +164 -0
  927. package/framework/modules/core/registries/skill-triggers.json +196 -0
  928. package/framework/modules/core/skills/building-agents/AGENT-TEMPLATE.md +289 -0
  929. package/framework/modules/core/skills/building-agents/CONTENT-ROUTING.md +302 -0
  930. package/framework/modules/core/skills/building-agents/EXAMPLES.md +448 -0
  931. package/framework/modules/core/skills/building-agents/SKILL.md +289 -0
  932. package/framework/modules/core/skills/building-agents/VALIDATION-CHECKLIST.md +304 -0
  933. package/framework/modules/core/skills/building-context/CONTENT-GUIDELINES.md +471 -0
  934. package/framework/modules/core/skills/building-context/EXAMPLES.md +1606 -0
  935. package/framework/modules/core/skills/building-context/LEVEL-DECISION-TREE.md +262 -0
  936. package/framework/modules/core/skills/building-context/SKILL.md +479 -0
  937. package/framework/modules/core/skills/building-context/VALIDATION-CHECKLIST.md +358 -0
  938. package/framework/modules/core/skills/building-framework/AGENT-CREATION-WORKFLOW.md +268 -0
  939. package/framework/modules/core/skills/building-framework/DECISION-TREES.md +183 -0
  940. package/framework/modules/core/skills/building-framework/EXAMPLES.md +387 -0
  941. package/framework/modules/core/skills/building-framework/GOVERNANCE-RULES.md +446 -0
  942. package/framework/modules/core/skills/building-framework/GOVERNANCE-UPDATE-WORKFLOW.md +172 -0
  943. package/framework/modules/core/skills/building-framework/REGISTRY-GUIDE.md +551 -0
  944. package/framework/modules/core/skills/building-framework/SCOPE-DECISION-TREE.md +284 -0
  945. package/framework/modules/core/skills/building-framework/SKILL.md +210 -0
  946. package/framework/modules/core/skills/building-skills/ANTI-PATTERNS-CONTENT.md +219 -0
  947. package/framework/modules/core/skills/building-skills/ANTI-PATTERNS-MCP.md +119 -0
  948. package/framework/modules/core/skills/building-skills/ANTI-PATTERNS-NAMING.md +129 -0
  949. package/framework/modules/core/skills/building-skills/ANTI-PATTERNS-STRUCTURE.md +139 -0
  950. package/framework/modules/core/skills/building-skills/EXAMPLES.md +330 -0
  951. package/framework/modules/core/skills/building-skills/PATTERNS.md +523 -0
  952. package/framework/modules/core/skills/building-skills/SKILL-CREATION-WORKFLOW-FRAMEWORK.md +253 -0
  953. package/framework/modules/core/skills/building-skills/SKILL.md +543 -0
  954. package/framework/modules/core/skills/committing-code/EXAMPLES.md +567 -0
  955. package/framework/modules/core/skills/committing-code/SKILL.md +285 -0
  956. package/framework/modules/core/skills/committing-code/STANDARDS-BRANCHES.md +95 -0
  957. package/framework/modules/core/skills/committing-code/STANDARDS-COMMITS.md +140 -0
  958. package/framework/modules/core/skills/committing-code/STANDARDS-FRAMEWORK.md +234 -0
  959. package/framework/modules/core/skills/committing-code/STANDARDS-TICKETS.md +102 -0
  960. package/framework/modules/core/skills/gathering-intelligence/SKILL.md +136 -0
  961. package/framework/modules/core/skills/managing-versions/EXAMPLES.md +277 -0
  962. package/framework/modules/core/skills/managing-versions/SCRIPTS-REFERENCE.md +295 -0
  963. package/framework/modules/core/skills/managing-versions/SKILL.md +260 -0
  964. package/framework/modules/core/skills/managing-versions/STANDARDS.md +231 -0
  965. package/framework/modules/core/skills/using-context/EXAMPLES.md +257 -0
  966. package/framework/modules/core/skills/using-context/SKILL.md +238 -0
  967. package/framework/modules/core/skills/using-context/STANDARDS.md +241 -0
  968. package/framework/modules/core/skills/using-framework/BEST-PRACTICES.md +421 -0
  969. package/framework/modules/core/skills/using-framework/DISCOVERY-ENGINE-ARCHITECTURE.md +331 -0
  970. package/framework/modules/core/skills/using-framework/EXAMPLES.md +535 -0
  971. package/framework/modules/core/skills/using-framework/ROUTES-REGISTRY-DESIGN.md +455 -0
  972. package/framework/modules/core/skills/using-framework/SKILL.md +176 -0
  973. package/framework/modules/core/skills/using-mcp/ANTI-PATTERNS.md +566 -0
  974. package/framework/modules/core/skills/using-mcp/DECISION-MATRICES.md +385 -0
  975. package/framework/modules/core/skills/using-mcp/EXAMPLES.md +466 -0
  976. package/framework/modules/core/skills/using-mcp/FRAMEWORK-MCP-PATTERNS.md +395 -0
  977. package/framework/modules/core/skills/using-mcp/QUICK-REFERENCE.md +98 -0
  978. package/framework/modules/core/skills/using-mcp/SKILL.md +624 -0
  979. package/framework/modules/core/skills/using-mcp/TOOLS-REFERENCE.md +532 -0
  980. package/framework/modules/core/skills/validating-links/EXAMPLES.md +326 -0
  981. package/framework/modules/core/skills/validating-links/SKILL.md +307 -0
  982. package/framework/modules/core/skills/validating-links/STANDARDS.md +353 -0
  983. package/framework/modules/core/skills/validating-markdown/EXAMPLES.md +516 -0
  984. package/framework/modules/core/skills/validating-markdown/SKILL.md +503 -0
  985. package/framework/modules/core/skills/validating-markdown/VALIDATION-RULES.md +360 -0
  986. package/framework/modules/core/skills/validating-markdown/YAML-SCHEMA.md +424 -0
  987. package/framework/modules/core/skills/verifying-quality/ANTI-PATTERNS.md +302 -0
  988. package/framework/modules/core/skills/verifying-quality/CLI-TESTING.md +389 -0
  989. package/framework/modules/core/skills/verifying-quality/DEFENSIVE-CODING.md +433 -0
  990. package/framework/modules/core/skills/verifying-quality/EVALUATION-PROTOCOL.md +106 -0
  991. package/framework/modules/core/skills/verifying-quality/EXAMPLES.md +588 -0
  992. package/framework/modules/core/skills/verifying-quality/QUALITY-CHECKLIST.md +181 -0
  993. package/framework/modules/core/skills/verifying-quality/SKILL.md +275 -0
  994. package/framework/modules/core/templates/agent/agent.template.md +97 -0
  995. package/framework/modules/core/templates/agent/template.config.json +47 -0
  996. package/framework/modules/core/templates/config/agentic-framework.json.template +17 -0
  997. package/framework/modules/core/templates/config/hooks/pre-commit-sync.sh.template +190 -0
  998. package/framework/modules/core/templates/config/hooks/pre-push.sh.template +330 -0
  999. package/framework/modules/core/templates/config/settings.local.json.template +39 -0
  1000. package/framework/modules/core/templates/config/statusline.sh.template +253 -0
  1001. package/framework/modules/core/templates/context/business-advanced.template.md +71 -0
  1002. package/framework/modules/core/templates/context/business-basic.template.md +39 -0
  1003. package/framework/modules/core/templates/context/business-expert.template.md +95 -0
  1004. package/framework/modules/core/templates/context/process-advanced.template.md +141 -0
  1005. package/framework/modules/core/templates/context/process-basic.template.md +87 -0
  1006. package/framework/modules/core/templates/context/process-expert.template.md +213 -0
  1007. package/framework/modules/core/templates/context/technical-advanced.template.md +111 -0
  1008. package/framework/modules/core/templates/context/technical-basic.template.md +66 -0
  1009. package/framework/modules/core/templates/context/technical-expert.template.md +157 -0
  1010. package/framework/modules/core/templates/module/module.json.template +20 -0
  1011. package/framework/modules/core/templates/module/template.config.json +41 -0
  1012. package/framework/modules/core/templates/skill/SKILL.md.template +96 -0
  1013. package/framework/modules/core/templates/skill/template.config.json +39 -0
  1014. package/framework/modules/jira/agents/ai-jira-manager.md +320 -0
  1015. package/framework/modules/jira/commands/cmd-jira-export.md +42 -0
  1016. package/framework/modules/jira/commands/cmd-jira-sync.md +42 -0
  1017. package/framework/modules/jira/module.json +55 -0
  1018. package/framework/modules/jira/schemas/jira-sync.config.json +75 -0
  1019. package/framework/modules/jira/skills/jira/integrating-jira/CONFLUENCE-PATTERNS.md +284 -0
  1020. package/framework/modules/jira/skills/jira/integrating-jira/CONVERSION-RULES.md +188 -0
  1021. package/framework/modules/jira/skills/jira/integrating-jira/EXAMPLES.md +406 -0
  1022. package/framework/modules/jira/skills/jira/integrating-jira/JIRA-PATTERNS.md +284 -0
  1023. package/framework/modules/jira/skills/jira/integrating-jira/SKILL.md +412 -0
  1024. package/framework/modules/reporting/agents/ai-report-manager.md +410 -0
  1025. package/framework/modules/reporting/module.json +35 -0
  1026. package/framework/modules/reporting/skills/reporting/building-reports/EXAMPLES.md +613 -0
  1027. package/framework/modules/reporting/skills/reporting/building-reports/SKILL.md +509 -0
  1028. package/framework/modules/writer/BUILD_SYSTEM.md +325 -0
  1029. package/framework/modules/writer/MIGRATION.md +326 -0
  1030. package/framework/modules/writer/agents/ai-book-writer.md +196 -0
  1031. package/framework/modules/writer/agents/ai-prose-writer.md +58 -0
  1032. package/framework/modules/writer/agents/ai-world-builder.md +46 -0
  1033. package/framework/modules/writer/commands/cmd-writer-add-fact.md +42 -0
  1034. package/framework/modules/writer/commands/cmd-writer-analyze.md +42 -0
  1035. package/framework/modules/writer/commands/cmd-writer-build.md +42 -0
  1036. package/framework/modules/writer/commands/cmd-writer-create-chapter.md +42 -0
  1037. package/framework/modules/writer/commands/cmd-writer-create-character.md +42 -0
  1038. package/framework/modules/writer/commands/cmd-writer-create-history-event.md +42 -0
  1039. package/framework/modules/writer/commands/cmd-writer-create-magic-system.md +42 -0
  1040. package/framework/modules/writer/commands/cmd-writer-create-nation.md +42 -0
  1041. package/framework/modules/writer/commands/cmd-writer-create-part.md +42 -0
  1042. package/framework/modules/writer/commands/cmd-writer-create-region.md +42 -0
  1043. package/framework/modules/writer/commands/cmd-writer-create-scene.md +42 -0
  1044. package/framework/modules/writer/commands/cmd-writer-create-world-rule.md +42 -0
  1045. package/framework/modules/writer/commands/cmd-writer-export.md +42 -0
  1046. package/framework/modules/writer/commands/cmd-writer-generate-context.md +42 -0
  1047. package/framework/modules/writer/commands/cmd-writer-init-baseline.md +42 -0
  1048. package/framework/modules/writer/commands/cmd-writer-init.md +42 -0
  1049. package/framework/modules/writer/commands/cmd-writer-lock-fact.md +42 -0
  1050. package/framework/modules/writer/commands/cmd-writer-validate-immutability.md +42 -0
  1051. package/framework/modules/writer/commands/cmd-writer-validate.md +42 -0
  1052. package/framework/modules/writer/module.json +181 -0
  1053. package/framework/modules/writer/schemas/baseline.schema.json +60 -0
  1054. package/framework/modules/writer/schemas/manifest.schema.json +155 -0
  1055. package/framework/modules/writer/schemas/prerequisites.schema.json +171 -0
  1056. package/framework/modules/writer/schemas/token-budgets.json +129 -0
  1057. package/framework/modules/writer/schemas/token-budgets.schema.json +92 -0
  1058. package/framework/modules/writer/schemas/world-fact.schema.json +172 -0
  1059. package/framework/modules/writer/schemas/world-lock.schema.json +244 -0
  1060. package/framework/modules/writer/skills/writer/building-worlds/CONSISTENCY-PILLARS.md +412 -0
  1061. package/framework/modules/writer/skills/writer/building-worlds/CULTURE-BUILDING.md +354 -0
  1062. package/framework/modules/writer/skills/writer/building-worlds/GEOGRAPHY-HISTORY.md +293 -0
  1063. package/framework/modules/writer/skills/writer/building-worlds/MAGIC-SYSTEMS.md +311 -0
  1064. package/framework/modules/writer/skills/writer/building-worlds/REVELATION-CHECKLIST.md +282 -0
  1065. package/framework/modules/writer/skills/writer/building-worlds/SKILL.md +313 -0
  1066. package/framework/modules/writer/skills/writer/organizing-books/DOMAINS.md +212 -0
  1067. package/framework/modules/writer/skills/writer/organizing-books/FOLDER-STRUCTURE.md +593 -0
  1068. package/framework/modules/writer/skills/writer/organizing-books/IMMUTABILITY-GUIDE.md +350 -0
  1069. package/framework/modules/writer/skills/writer/organizing-books/METADATA-GUIDE.md +780 -0
  1070. package/framework/modules/writer/skills/writer/organizing-books/SKILL.md +257 -0
  1071. package/framework/modules/writer/skills/writer/organizing-books/SSOT-RULES.md +214 -0
  1072. package/framework/modules/writer/skills/writer/organizing-books/WORLD-STRUCTURE.md +222 -0
  1073. package/framework/modules/writer/skills/writer/organizing-books/templates/chapter.template.md +57 -0
  1074. package/framework/modules/writer/skills/writer/organizing-books/templates/character.template.md +121 -0
  1075. package/framework/modules/writer/skills/writer/organizing-books/templates/part.template.md +67 -0
  1076. package/framework/modules/writer/skills/writer/organizing-books/templates/scene.template.md +62 -0
  1077. package/framework/modules/writer/skills/writer/organizing-books/templates/template.config.json +114 -0
  1078. package/framework/modules/writer/skills/writer/writing-prose/CHARACTER-VOICE.md +654 -0
  1079. package/framework/modules/writer/skills/writer/writing-prose/DESCRIPTION-TECHNIQUES.md +688 -0
  1080. package/framework/modules/writer/skills/writer/writing-prose/DIALOGUE-GUIDE.md +663 -0
  1081. package/framework/modules/writer/skills/writer/writing-prose/PACING-STRUCTURE.md +613 -0
  1082. package/framework/modules/writer/skills/writer/writing-prose/PROSE-PATTERNS.md +569 -0
  1083. package/framework/modules/writer/skills/writer/writing-prose/SKILL.md +583 -0
  1084. package/framework/modules/writer/skills/writer/writing-prose/WORLD-BUILDING-RULES.md +692 -0
  1085. package/framework/modules/writer/skills/writer/writing-prose/examples/blended-accessible.md +651 -0
  1086. package/framework/modules/writer/skills/writer/writing-prose/examples/tolkien-style.md +534 -0
  1087. package/framework/modules/writer/skills/writer/writing-prose/examples/zelazny-style.md +415 -0
  1088. package/framework/modules/writer/src/package.json +3 -0
  1089. package/framework/modules/writer/templates/package.json +28 -0
  1090. package/framework/modules/writer/templates/world/baseline.template.md +183 -0
  1091. package/framework/modules/writer/templates/world/history-event.template.md +89 -0
  1092. package/framework/modules/writer/templates/world/magic-system.template.md +138 -0
  1093. package/framework/modules/writer/templates/world/manifest.template.json +9 -0
  1094. package/framework/modules/writer/templates/world/nation.template.md +123 -0
  1095. package/framework/modules/writer/templates/world/region.template.md +65 -0
  1096. package/framework/modules/writer/templates/world/world-rule.template.md +50 -0
  1097. package/package.json +110 -0
@@ -0,0 +1,401 @@
1
+ /**
2
+ * Milestone Migration Module
3
+ *
4
+ * Ported from Python: modules/backlog/src/backlog/migrate_milestones.py
5
+ * modules/backlog/src/backlog/validate_milestone_migration.py
6
+ *
7
+ * Handles migration of milestone files from local ID naming convention
8
+ * (Jan2026.md) to Jira source-of-truth naming (apm-r-app-january-2026-w51-w1-w3.md).
9
+ *
10
+ * Features:
11
+ * - Detect old milestone format
12
+ * - Convert to new format preserving data
13
+ * - Validate migration success
14
+ * - Track changes for rollback
15
+ *
16
+ * @module milestone-migrator
17
+ */
18
+ import fs from 'fs-extra';
19
+ import path from 'path';
20
+ import { glob } from 'glob';
21
+ import { parseFrontmatter } from '../common/yaml-frontmatter.js';
22
+ import { sanitizeMilestoneName, validateMilestoneFilename } from './milestone-sanitizer.js';
23
+ /**
24
+ * Track migration changes for reporting and rollback
25
+ */
26
+ export class MigrationTracker {
27
+ changes;
28
+ trackerFile;
29
+ constructor(trackerFile) {
30
+ this.trackerFile = trackerFile || '.migration-tracker.json';
31
+ this.changes = {
32
+ timestamp: new Date().toISOString(),
33
+ milestoneRenames: {},
34
+ ticketUpdates: [],
35
+ };
36
+ }
37
+ /**
38
+ * Track a milestone file rename
39
+ */
40
+ addRename(oldName, newName) {
41
+ this.changes.milestoneRenames[oldName] = newName;
42
+ }
43
+ /**
44
+ * Track a ticket file update
45
+ */
46
+ addTicketUpdate(ticketPath) {
47
+ this.changes.ticketUpdates.push(ticketPath);
48
+ }
49
+ /**
50
+ * Save migration tracking file
51
+ */
52
+ async save() {
53
+ await fs.writeJson(this.trackerFile, this.changes, { spaces: 2 });
54
+ }
55
+ /**
56
+ * Load migration tracking file
57
+ */
58
+ static async load(trackerFile) {
59
+ const file = trackerFile || '.migration-tracker.json';
60
+ if (!(await fs.pathExists(file))) {
61
+ return null;
62
+ }
63
+ return await fs.readJson(file);
64
+ }
65
+ }
66
+ /**
67
+ * Extract milestone name and Jira ID from milestone file frontmatter.
68
+ *
69
+ * @param milestoneFile - Path to milestone markdown file
70
+ * @returns Milestone metadata or empty object if not found
71
+ * @throws {Error} If file cannot be read
72
+ */
73
+ export async function readMilestoneMetadata(milestoneFile) {
74
+ const content = await fs.readFile(milestoneFile, 'utf-8');
75
+ const { data } = parseFrontmatter(content);
76
+ return {
77
+ milestoneName: data.milestoneName,
78
+ jiraMilestoneId: data.jiraMilestoneId,
79
+ };
80
+ }
81
+ /**
82
+ * Check if a milestone filename is already sanitized.
83
+ *
84
+ * A milestone is considered already sanitized if:
85
+ * - It's all lowercase
86
+ * - Contains only hyphens (no unsafe chars)
87
+ * - No consecutive hyphens
88
+ *
89
+ * @param filename - Milestone filename to check
90
+ * @returns True if already sanitized, false otherwise
91
+ */
92
+ function isAlreadySanitized(filename) {
93
+ // Skip template files
94
+ if (filename.startsWith('.')) {
95
+ return true;
96
+ }
97
+ // Check if it matches sanitization pattern
98
+ return validateMilestoneFilename(filename);
99
+ }
100
+ /**
101
+ * Build migration plan for all milestones in a directory.
102
+ *
103
+ * Scans milestone directory and identifies files that need migration.
104
+ * Skips already-sanitized files and files without Jira metadata.
105
+ *
106
+ * @param milestonesDir - Path to milestones directory
107
+ * @returns Migration plan mapping old filenames to new filenames
108
+ *
109
+ * @example
110
+ * ```typescript
111
+ * const plan = await getMigrationPlan('/path/to/backlog/milestones');
112
+ * // Returns: {
113
+ * // 'Jan2026.md': {
114
+ * // newFilename: 'apm-r-app-january-2026-w51-w1-w3.md',
115
+ * // milestoneName: 'APM-R: App: January 2026 (W51, W1, W3)',
116
+ * // jiraMilestoneId: undefined
117
+ * // }
118
+ * // }
119
+ * ```
120
+ */
121
+ export async function getMigrationPlan(milestonesDir) {
122
+ const plan = {};
123
+ // Find all milestone files
124
+ const pattern = path.join(milestonesDir, '*.md');
125
+ const files = await glob(pattern, { absolute: true });
126
+ for (const filePath of files.sort()) {
127
+ const filename = path.basename(filePath);
128
+ // Skip already-sanitized files
129
+ if (isAlreadySanitized(filename)) {
130
+ continue;
131
+ }
132
+ try {
133
+ // Read metadata to get Jira name
134
+ const metadata = await readMilestoneMetadata(filePath);
135
+ if (metadata.milestoneName) {
136
+ // Generate new sanitized filename from Jira name
137
+ const newFilename = sanitizeMilestoneName(metadata.milestoneName);
138
+ plan[filename] = {
139
+ newFilename,
140
+ milestoneName: metadata.milestoneName,
141
+ jiraMilestoneId: metadata.jiraMilestoneId,
142
+ };
143
+ }
144
+ // If no milestoneName, skip this file (will be logged as warning)
145
+ }
146
+ catch (error) {
147
+ // Skip files that can't be read
148
+ console.warn(`Warning: Could not read ${filePath}:`, error);
149
+ }
150
+ }
151
+ return plan;
152
+ }
153
+ /**
154
+ * Apply the migration plan to rename milestone files.
155
+ *
156
+ * Renames files according to the migration plan and tracks all changes.
157
+ * In dry-run mode, no files are actually changed.
158
+ *
159
+ * @param backlogDir - Base backlog directory
160
+ * @param plan - Migration plan from getMigrationPlan()
161
+ * @param dryRun - If true, preview changes only without applying
162
+ * @returns Migration tracker with all changes recorded
163
+ *
164
+ * @example
165
+ * ```typescript
166
+ * const plan = await getMigrationPlan(milestonesDir);
167
+ * const tracker = await applyMigration('/path/to/backlog', plan, false);
168
+ * await tracker.save(); // Save for rollback capability
169
+ * ```
170
+ */
171
+ export async function applyMigration(backlogDir, plan, dryRun = false) {
172
+ const tracker = new MigrationTracker(path.join(backlogDir, '.migration-tracker.json'));
173
+ const milestonesDir = path.join(backlogDir, 'milestones');
174
+ const entries = Object.entries(plan).sort();
175
+ if (entries.length === 0) {
176
+ return tracker;
177
+ }
178
+ for (const [oldName, entry] of entries) {
179
+ const oldPath = path.join(milestonesDir, oldName);
180
+ const newPath = path.join(milestonesDir, entry.newFilename);
181
+ // Check if target already exists
182
+ if (await fs.pathExists(newPath)) {
183
+ console.warn(`Warning: ${entry.newFilename} already exists, skipping`);
184
+ continue;
185
+ }
186
+ if (dryRun) {
187
+ // Just preview, don't actually rename
188
+ continue;
189
+ }
190
+ try {
191
+ await fs.move(oldPath, newPath);
192
+ tracker.addRename(oldName, entry.newFilename);
193
+ }
194
+ catch (error) {
195
+ console.error(`Failed to rename ${oldName}:`, error);
196
+ }
197
+ }
198
+ return tracker;
199
+ }
200
+ /**
201
+ * Validate milestone architecture compliance.
202
+ *
203
+ * Checks that:
204
+ * 1. Milestone files use sanitized Jira names for filenames
205
+ * 2. Ticket files don't have deprecated 'milestone:' field
206
+ * 3. Milestone files have Jira metadata (milestoneName or jiraMilestoneId)
207
+ *
208
+ * @param backlogDir - Path to backlog directory
209
+ * @param verbose - If true, show detailed validation for each file
210
+ * @returns Validation result with errors and warnings
211
+ *
212
+ * @example
213
+ * ```typescript
214
+ * const result = await validateMilestoneArchitecture('/path/to/backlog', false);
215
+ * if (!result.valid) {
216
+ * console.error('Validation failed:', result.errors);
217
+ * }
218
+ * ```
219
+ */
220
+ export async function validateMilestoneArchitecture(backlogDir, verbose = false) {
221
+ const result = {
222
+ valid: true,
223
+ errors: [],
224
+ warnings: [],
225
+ };
226
+ const milestonesDir = path.join(backlogDir, 'milestones');
227
+ const ticketsDir = path.join(backlogDir, 'tickets');
228
+ // Validate milestones directory exists
229
+ if (!(await fs.pathExists(milestonesDir))) {
230
+ result.valid = false;
231
+ result.errors.push(`Milestones directory not found: ${milestonesDir}`);
232
+ return result;
233
+ }
234
+ // Validate milestone files
235
+ await validateMilestoneFiles(milestonesDir, result, verbose);
236
+ // Validate ticket files (if tickets directory exists)
237
+ if (await fs.pathExists(ticketsDir)) {
238
+ await validateTicketFiles(ticketsDir, backlogDir, result, verbose);
239
+ }
240
+ return result;
241
+ }
242
+ /**
243
+ * Validate milestone file structure
244
+ */
245
+ async function validateMilestoneFiles(milestonesDir, result, verbose) {
246
+ const pattern = path.join(milestonesDir, '*.md');
247
+ const files = await glob(pattern, { absolute: true });
248
+ for (const filePath of files) {
249
+ const filename = path.basename(filePath);
250
+ // Skip template files
251
+ if (filename.startsWith('.')) {
252
+ continue;
253
+ }
254
+ try {
255
+ const content = await fs.readFile(filePath, 'utf-8');
256
+ const { data } = parseFrontmatter(content);
257
+ // Validate 1: No deprecated "milestone:" field in frontmatter
258
+ if (data.milestone) {
259
+ result.errors.push(`${filename}: YAML contains deprecated 'milestone:' field`);
260
+ result.valid = false;
261
+ }
262
+ // Validate 2: Has milestoneName or jiraMilestoneId
263
+ const hasJiraMetadata = data.milestoneName || data.jiraMilestoneId;
264
+ if (!hasJiraMetadata) {
265
+ // Only warn for actual milestone files
266
+ if (!filename.includes('Demo') && !filename.includes('UC') && !filename.includes('Post')) {
267
+ result.warnings.push(`${filename}: Missing Jira metadata (milestoneName or jiraMilestoneId)`);
268
+ }
269
+ }
270
+ // Validate 3: Filename is sanitized
271
+ if (!validateMilestoneFilename(filename)) {
272
+ result.warnings.push(`${filename}: Filename may not be properly sanitized`);
273
+ }
274
+ if (verbose) {
275
+ console.log(` ✓ ${filename}`);
276
+ }
277
+ }
278
+ catch (error) {
279
+ result.errors.push(`Failed to read ${filename}: ${error}`);
280
+ result.valid = false;
281
+ }
282
+ }
283
+ }
284
+ /**
285
+ * Validate all ticket files
286
+ */
287
+ async function validateTicketFiles(ticketsDir, backlogDir, result, verbose) {
288
+ const ticketTypes = ['stories', 'tasks', 'bugs', 'spikes'];
289
+ const ticketsWithMilestoneField = [];
290
+ for (const ticketType of ticketTypes) {
291
+ const typeDir = path.join(ticketsDir, ticketType);
292
+ if (!(await fs.pathExists(typeDir))) {
293
+ continue;
294
+ }
295
+ const pattern = path.join(typeDir, '*.md');
296
+ const files = await glob(pattern, { absolute: true });
297
+ for (const filePath of files) {
298
+ // Skip README files
299
+ if (filePath.endsWith('README.md')) {
300
+ continue;
301
+ }
302
+ try {
303
+ const content = await fs.readFile(filePath, 'utf-8');
304
+ const { data } = parseFrontmatter(content);
305
+ if (data.milestone) {
306
+ const relativePath = path.relative(backlogDir, filePath);
307
+ ticketsWithMilestoneField.push(relativePath);
308
+ }
309
+ }
310
+ catch (error) {
311
+ result.errors.push(`Failed to read ${filePath}: ${error}`);
312
+ result.valid = false;
313
+ }
314
+ }
315
+ }
316
+ if (ticketsWithMilestoneField.length > 0) {
317
+ result.valid = false;
318
+ result.warnings.push(`Found ${ticketsWithMilestoneField.length} tickets with deprecated 'milestone:' field`);
319
+ if (verbose) {
320
+ ticketsWithMilestoneField.slice(0, 10).forEach((ticket) => {
321
+ result.warnings.push(` - ${ticket}`);
322
+ });
323
+ if (ticketsWithMilestoneField.length > 10) {
324
+ result.warnings.push(` ... and ${ticketsWithMilestoneField.length - 10} more`);
325
+ }
326
+ }
327
+ }
328
+ }
329
+ /**
330
+ * Print migration plan for user review
331
+ *
332
+ * @param plan - Migration plan to display
333
+ */
334
+ export function printMigrationPlan(plan) {
335
+ console.log('');
336
+ console.log('='.repeat(80));
337
+ console.log('MIGRATION PLAN');
338
+ console.log('='.repeat(80));
339
+ const entries = Object.entries(plan).sort();
340
+ if (entries.length === 0) {
341
+ console.log('No milestones to migrate (all already using Jira names)');
342
+ return;
343
+ }
344
+ for (const [oldName, entry] of entries) {
345
+ console.log('');
346
+ console.log(oldName);
347
+ console.log(` → ${entry.newFilename}`);
348
+ if (entry.milestoneName) {
349
+ console.log(` Jira: ${entry.milestoneName}`);
350
+ }
351
+ if (entry.jiraMilestoneId) {
352
+ console.log(` ID: ${entry.jiraMilestoneId}`);
353
+ }
354
+ }
355
+ console.log('');
356
+ console.log('='.repeat(80));
357
+ console.log(`Total milestones to migrate: ${entries.length}`);
358
+ console.log('='.repeat(80));
359
+ console.log('');
360
+ }
361
+ /**
362
+ * Print validation results
363
+ *
364
+ * @param result - Validation result to display
365
+ */
366
+ export function printValidationResults(result) {
367
+ console.log('='.repeat(80));
368
+ console.log('VALIDATION RESULTS');
369
+ console.log('='.repeat(80));
370
+ console.log('');
371
+ if (result.valid && result.errors.length === 0 && result.warnings.length === 0) {
372
+ console.log('✓ All validations passed!');
373
+ console.log('');
374
+ console.log('Architecture Status:');
375
+ console.log(' ✓ Milestone files use Jira source-of-truth');
376
+ console.log(' ✓ No deprecated \'milestone:\' fields in tickets');
377
+ console.log(' ✓ New naming convention is active');
378
+ console.log('');
379
+ console.log('='.repeat(80));
380
+ return;
381
+ }
382
+ if (result.errors.length > 0) {
383
+ console.log(`✗ ${result.errors.length} ERRORS:`);
384
+ result.errors.forEach((error) => {
385
+ console.log(` ${error}`);
386
+ });
387
+ console.log('');
388
+ }
389
+ if (result.warnings.length > 0) {
390
+ console.log(`⚠ ${result.warnings.length} WARNINGS:`);
391
+ result.warnings.slice(0, 10).forEach((warning) => {
392
+ console.log(` ${warning}`);
393
+ });
394
+ if (result.warnings.length > 10) {
395
+ console.log(` ... and ${result.warnings.length - 10} more`);
396
+ }
397
+ console.log('');
398
+ }
399
+ console.log('='.repeat(80));
400
+ }
401
+ //# sourceMappingURL=milestone-migrator.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"milestone-migrator.js","sourceRoot":"","sources":["../../../src/lib/backlog/milestone-migrator.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,EAAE,MAAM,UAAU,CAAC;AAC1B,OAAO,IAAI,MAAM,MAAM,CAAC;AACxB,OAAO,EAAE,IAAI,EAAE,MAAM,MAAM,CAAC;AAC5B,OAAO,EAAE,gBAAgB,EAAE,MAAM,+BAA+B,CAAC;AACjE,OAAO,EAAE,qBAAqB,EAAE,yBAAyB,EAAE,MAAM,0BAA0B,CAAC;AAuD5F;;GAEG;AACH,MAAM,OAAO,gBAAgB;IACpB,OAAO,CAAmB;IACzB,WAAW,CAAS;IAE5B,YAAY,WAAoB;QAC9B,IAAI,CAAC,WAAW,GAAG,WAAW,IAAI,yBAAyB,CAAC;QAC5D,IAAI,CAAC,OAAO,GAAG;YACb,SAAS,EAAE,IAAI,IAAI,EAAE,CAAC,WAAW,EAAE;YACnC,gBAAgB,EAAE,EAAE;YACpB,aAAa,EAAE,EAAE;SAClB,CAAC;IACJ,CAAC;IAED;;OAEG;IACH,SAAS,CAAC,OAAe,EAAE,OAAe;QACxC,IAAI,CAAC,OAAO,CAAC,gBAAgB,CAAC,OAAO,CAAC,GAAG,OAAO,CAAC;IACnD,CAAC;IAED;;OAEG;IACH,eAAe,CAAC,UAAkB;QAChC,IAAI,CAAC,OAAO,CAAC,aAAa,CAAC,IAAI,CAAC,UAAU,CAAC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IAAI,MAAM,CAAC,QAAQ,CAAC,MAAM,GAAG,EAAE,EAAE,CAAC;YAChC,OAAO,CAAC,GAAG,CAAC,cAAc,MAAM,CAAC,QAAQ,CAAC,MAAM,GAAG,EAAE,OAAO,CAAC,CAAC;QAChE,CAAC;QACD,OAAO,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC;IAClB,CAAC;IAED,OAAO,CAAC,GAAG,CAAC,GAAG,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC,CAAC;AAC9B,CAAC"}
@@ -0,0 +1,72 @@
1
+ /**
2
+ * Milestone Name Sanitization Module
3
+ *
4
+ * Converts Jira milestone names to filesystem-safe filenames following the pattern:
5
+ * - "APM-R: App: January 2026 (W51, W1, W3)" → "apm-r-app-january-2026-w51-w1-w3.md"
6
+ *
7
+ * This module is the source of truth for milestone filename generation. All import,
8
+ * migration, and validation scripts must use this function to ensure consistency.
9
+ *
10
+ * Algorithm:
11
+ * 1. Normalize unicode characters (NFKD → ASCII)
12
+ * 2. Convert to lowercase
13
+ * 3. Remove filesystem-unsafe characters: /\:*?"<>|,&.
14
+ * 4. Replace spaces with hyphens
15
+ * 5. Remove parentheses (keep content)
16
+ * 6. Collapse consecutive hyphens
17
+ * 7. Remove leading/trailing hyphens
18
+ * 8. Handle empty → "untitled"
19
+ * 9. Limit to 200 characters
20
+ * 10. Add .md extension
21
+ *
22
+ * Edge Cases Handled:
23
+ * - Unicode characters (removed or transliterated)
24
+ * - Special characters (/, \, :, *, ?, ", |, <, >, etc.)
25
+ * - Very long names (truncated to 200 chars)
26
+ * - Names starting with numbers (allowed)
27
+ * - Empty/whitespace-only names (default to "untitled")
28
+ *
29
+ * @module milestone-sanitizer
30
+ */
31
+ /**
32
+ * Convert Jira milestone name to filesystem-safe filename.
33
+ *
34
+ * @param milestoneName - Full Jira milestone name (e.g., "APM-R: App: January 2026 (W51, W1, W3)")
35
+ * @returns Filesystem-safe filename with .md extension (e.g., "apm-r-app-january-2026-w51-w1-w3.md")
36
+ *
37
+ * @example
38
+ * ```typescript
39
+ * sanitizeMilestoneName("APM-R: App: January 2026 (W51, W1, W3)")
40
+ * // Returns: 'apm-r-app-january-2026-w51-w1-w3.md'
41
+ *
42
+ * sanitizeMilestoneName("UC1-MVP")
43
+ * // Returns: 'uc1-mvp.md'
44
+ *
45
+ * sanitizeMilestoneName("Demo")
46
+ * // Returns: 'demo.md'
47
+ *
48
+ * sanitizeMilestoneName("Q1 2026: Planning & Design")
49
+ * // Returns: 'q1-2026-planning-design.md'
50
+ * ```
51
+ */
52
+ export declare function sanitizeMilestoneName(milestoneName: string | null | undefined): string;
53
+ /**
54
+ * Validate that a filename matches the sanitization pattern.
55
+ *
56
+ * @param filename - Filename to validate
57
+ * @returns True if filename is valid, False otherwise
58
+ *
59
+ * @example
60
+ * ```typescript
61
+ * validateMilestoneFilename('apm-r-app-january-2026.md')
62
+ * // Returns: true
63
+ *
64
+ * validateMilestoneFilename('Invalid--Name.md')
65
+ * // Returns: false (consecutive hyphens)
66
+ *
67
+ * validateMilestoneFilename('UPPERCASE.md')
68
+ * // Returns: false (must be lowercase)
69
+ * ```
70
+ */
71
+ export declare function validateMilestoneFilename(filename: string): boolean;
72
+ //# sourceMappingURL=milestone-sanitizer.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"milestone-sanitizer.d.ts","sourceRoot":"","sources":["../../../src/lib/backlog/milestone-sanitizer.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6BG;AAEH;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,wBAAgB,qBAAqB,CAAC,aAAa,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,GAAG,MAAM,CAkDtF;AAED;;;;;;;;;;;;;;;;;GAiBG;AACH,wBAAgB,yBAAyB,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAiCnE"}
@@ -0,0 +1,139 @@
1
+ /**
2
+ * Milestone Name Sanitization Module
3
+ *
4
+ * Converts Jira milestone names to filesystem-safe filenames following the pattern:
5
+ * - "APM-R: App: January 2026 (W51, W1, W3)" → "apm-r-app-january-2026-w51-w1-w3.md"
6
+ *
7
+ * This module is the source of truth for milestone filename generation. All import,
8
+ * migration, and validation scripts must use this function to ensure consistency.
9
+ *
10
+ * Algorithm:
11
+ * 1. Normalize unicode characters (NFKD → ASCII)
12
+ * 2. Convert to lowercase
13
+ * 3. Remove filesystem-unsafe characters: /\:*?"<>|,&.
14
+ * 4. Replace spaces with hyphens
15
+ * 5. Remove parentheses (keep content)
16
+ * 6. Collapse consecutive hyphens
17
+ * 7. Remove leading/trailing hyphens
18
+ * 8. Handle empty → "untitled"
19
+ * 9. Limit to 200 characters
20
+ * 10. Add .md extension
21
+ *
22
+ * Edge Cases Handled:
23
+ * - Unicode characters (removed or transliterated)
24
+ * - Special characters (/, \, :, *, ?, ", |, <, >, etc.)
25
+ * - Very long names (truncated to 200 chars)
26
+ * - Names starting with numbers (allowed)
27
+ * - Empty/whitespace-only names (default to "untitled")
28
+ *
29
+ * @module milestone-sanitizer
30
+ */
31
+ /**
32
+ * Convert Jira milestone name to filesystem-safe filename.
33
+ *
34
+ * @param milestoneName - Full Jira milestone name (e.g., "APM-R: App: January 2026 (W51, W1, W3)")
35
+ * @returns Filesystem-safe filename with .md extension (e.g., "apm-r-app-january-2026-w51-w1-w3.md")
36
+ *
37
+ * @example
38
+ * ```typescript
39
+ * sanitizeMilestoneName("APM-R: App: January 2026 (W51, W1, W3)")
40
+ * // Returns: 'apm-r-app-january-2026-w51-w1-w3.md'
41
+ *
42
+ * sanitizeMilestoneName("UC1-MVP")
43
+ * // Returns: 'uc1-mvp.md'
44
+ *
45
+ * sanitizeMilestoneName("Demo")
46
+ * // Returns: 'demo.md'
47
+ *
48
+ * sanitizeMilestoneName("Q1 2026: Planning & Design")
49
+ * // Returns: 'q1-2026-planning-design.md'
50
+ * ```
51
+ */
52
+ export function sanitizeMilestoneName(milestoneName) {
53
+ // Handle null, undefined, or non-string input
54
+ if (!milestoneName || typeof milestoneName !== 'string') {
55
+ return 'untitled.md';
56
+ }
57
+ // Step 1: Normalize unicode characters
58
+ // Convert accented characters to ASCII equivalents (e.g., é → e)
59
+ // Note: Node.js doesn't have direct NFKD normalization like Python's unicodedata
60
+ // We use NFD (canonical decomposition) which is similar for most cases
61
+ const normalized = milestoneName.normalize('NFD');
62
+ // Remove all diacritic marks (Unicode combining characters)
63
+ const asciiName = normalized.replace(/[\u0300-\u036f]/g, '');
64
+ // Step 2: Convert to lowercase
65
+ const lowered = asciiName.toLowerCase();
66
+ // Step 3: Remove filesystem-unsafe and special characters
67
+ // Keep only: alphanumerics, hyphens, underscores, spaces (to be converted next)
68
+ // Characters to remove: / \ : * ? " | < > , & . and others
69
+ const unsafeChars = /[/\\:*?"<>|,&.]/g;
70
+ const cleaned = lowered.replace(unsafeChars, '');
71
+ // Step 4: Replace spaces (including tabs, newlines, etc.) with hyphens
72
+ const spaced = cleaned.replace(/\s+/g, '-');
73
+ // Step 5: Remove parentheses but keep their content
74
+ // "something (details)" → "something-details"
75
+ const parenthesized = spaced.replace(/[()]/g, '');
76
+ // Step 6: Collapse multiple consecutive hyphens into single hyphen
77
+ const dehyphenated = parenthesized.replace(/-+/g, '-');
78
+ // Step 7: Remove leading and trailing hyphens
79
+ let trimmed = dehyphenated.replace(/^-+|-+$/g, '');
80
+ // Step 8: Handle empty string
81
+ if (!trimmed) {
82
+ return 'untitled.md';
83
+ }
84
+ // Step 9: Limit to 200 characters (filesystem safety on some systems)
85
+ if (trimmed.length > 200) {
86
+ trimmed = trimmed.substring(0, 200);
87
+ // Remove trailing hyphens after truncation
88
+ trimmed = trimmed.replace(/-+$/, '');
89
+ }
90
+ // Step 10: Add .md extension
91
+ return `${trimmed}.md`;
92
+ }
93
+ /**
94
+ * Validate that a filename matches the sanitization pattern.
95
+ *
96
+ * @param filename - Filename to validate
97
+ * @returns True if filename is valid, False otherwise
98
+ *
99
+ * @example
100
+ * ```typescript
101
+ * validateMilestoneFilename('apm-r-app-january-2026.md')
102
+ * // Returns: true
103
+ *
104
+ * validateMilestoneFilename('Invalid--Name.md')
105
+ * // Returns: false (consecutive hyphens)
106
+ *
107
+ * validateMilestoneFilename('UPPERCASE.md')
108
+ * // Returns: false (must be lowercase)
109
+ * ```
110
+ */
111
+ export function validateMilestoneFilename(filename) {
112
+ if (!filename) {
113
+ return false;
114
+ }
115
+ // Must end with .md
116
+ if (!filename.endsWith('.md')) {
117
+ return false;
118
+ }
119
+ // Must be lowercase
120
+ if (filename !== filename.toLowerCase()) {
121
+ return false;
122
+ }
123
+ // Must not contain unsafe characters
124
+ const unsafeChars = /[/\\:*?"<>|()]/;
125
+ if (unsafeChars.test(filename)) {
126
+ return false;
127
+ }
128
+ // Must not have consecutive hyphens
129
+ if (filename.includes('--')) {
130
+ return false;
131
+ }
132
+ // Must not start or end with hyphen
133
+ const base = filename.replace('.md', '');
134
+ if (base.startsWith('-') || base.endsWith('-')) {
135
+ return false;
136
+ }
137
+ return true;
138
+ }
139
+ //# sourceMappingURL=milestone-sanitizer.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"milestone-sanitizer.js","sourceRoot":"","sources":["../../../src/lib/backlog/milestone-sanitizer.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6BG;AAEH;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,MAAM,UAAU,qBAAqB,CAAC,aAAwC;IAC5E,8CAA8C;IAC9C,IAAI,CAAC,aAAa,IAAI,OAAO,aAAa,KAAK,QAAQ,EAAE,CAAC;QACxD,OAAO,aAAa,CAAC;IACvB,CAAC;IAED,uCAAuC;IACvC,iEAAiE;IACjE,iFAAiF;IACjF,uEAAuE;IACvE,MAAM,UAAU,GAAG,aAAa,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC;IAClD,4DAA4D;IAC5D,MAAM,SAAS,GAAG,UAAU,CAAC,OAAO,CAAC,kBAAkB,EAAE,EAAE,CAAC,CAAC;IAE7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QAC9B,OAAO,KAAK,CAAC;IACf,CAAC;IAED,oBAAoB;IACpB,IAAI,QAAQ,KAAK,QAAQ,CAAC,WAAW,EAAE,EAAE,CAAC;QACxC,OAAO,KAAK,CAAC;IACf,CAAC;IAED,qCAAqC;IACrC,MAAM,WAAW,GAAG,gBAAgB,CAAC;IACrC,IAAI,WAAW,CAAC,IAAI,CAAC,QAAQ,CAAC,EAAE,CAAC;QAC/B,OAAO,KAAK,CAAC;IACf,CAAC;IAED,oCAAoC;IACpC,IAAI,QAAQ,CAAC,QAAQ,CAAC,IAAI,CAAC,EAAE,CAAC;QAC5B,OAAO,KAAK,CAAC;IACf,CAAC;IAED,oCAAoC;IACpC,MAAM,IAAI,GAAG,QAAQ,CAAC,OAAO,CAAC,KAAK,EAAE,EAAE,CAAC,CAAC;IACzC,IAAI,IAAI,CAAC,UAAU,CAAC,GAAG,CAAC,IAAI,IAAI,CAAC,QAAQ,CAAC,GAAG,CAAC,EAAE,CAAC;QAC/C,OAAO,KAAK,CAAC;IACf,CAAC;IAED,OAAO,IAAI,CAAC;AACd,CAAC"}
@@ -0,0 +1,9 @@
1
+ /**
2
+ * Wrapper for inquirer to enable easier testing
3
+ *
4
+ * This module wraps inquirer's prompt function to make it easier to mock in tests.
5
+ * Since inquirer is an ESM-only package, wrapping it allows us to use CommonJS mocks in Jest.
6
+ */
7
+ import inquirer, { Answers } from 'inquirer';
8
+ export declare function prompt<T extends Answers = Answers>(questions: Parameters<typeof inquirer.prompt>[0]): Promise<T>;
9
+ //# sourceMappingURL=prompt-utils.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"prompt-utils.d.ts","sourceRoot":"","sources":["../../../src/lib/backlog/prompt-utils.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,QAAQ,EAAE,EAAE,OAAO,EAAE,MAAM,UAAU,CAAC;AAE7C,wBAAsB,MAAM,CAAC,CAAC,SAAS,OAAO,GAAG,OAAO,EAAE,SAAS,EAAE,UAAU,CAAC,OAAO,QAAQ,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,GAAG,OAAO,CAAC,CAAC,CAAC,CAEtH"}
@@ -0,0 +1,11 @@
1
+ /**
2
+ * Wrapper for inquirer to enable easier testing
3
+ *
4
+ * This module wraps inquirer's prompt function to make it easier to mock in tests.
5
+ * Since inquirer is an ESM-only package, wrapping it allows us to use CommonJS mocks in Jest.
6
+ */
7
+ import inquirer from 'inquirer';
8
+ export async function prompt(questions) {
9
+ return inquirer.prompt(questions);
10
+ }
11
+ //# sourceMappingURL=prompt-utils.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"prompt-utils.js","sourceRoot":"","sources":["../../../src/lib/backlog/prompt-utils.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,QAAqB,MAAM,UAAU,CAAC;AAE7C,MAAM,CAAC,KAAK,UAAU,MAAM,CAA8B,SAAgD;IACxG,OAAO,QAAQ,CAAC,MAAM,CAAI,SAAS,CAAC,CAAC;AACvC,CAAC"}