bmad-opencode-converter 1.0.0 → 1.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (630) hide show
  1. package/README.md +51 -38
  2. package/dist/cli.js +28 -9
  3. package/dist/cli.js.map +1 -1
  4. package/dist/converter.d.ts +5 -3
  5. package/dist/converter.d.ts.map +1 -1
  6. package/dist/converter.js +73 -203
  7. package/dist/converter.js.map +1 -1
  8. package/dist/converters/agent-converter.d.ts +4 -7
  9. package/dist/converters/agent-converter.d.ts.map +1 -1
  10. package/dist/converters/agent-converter.js +123 -137
  11. package/dist/converters/agent-converter.js.map +1 -1
  12. package/dist/converters/task-converter.d.ts +2 -3
  13. package/dist/converters/task-converter.d.ts.map +1 -1
  14. package/dist/converters/task-converter.js +14 -62
  15. package/dist/converters/task-converter.js.map +1 -1
  16. package/dist/converters/workflow-converter.d.ts +2 -3
  17. package/dist/converters/workflow-converter.d.ts.map +1 -1
  18. package/dist/converters/workflow-converter.js +35 -76
  19. package/dist/converters/workflow-converter.js.map +1 -1
  20. package/dist/index.d.ts +2 -1
  21. package/dist/index.d.ts.map +1 -1
  22. package/dist/index.js +1 -0
  23. package/dist/index.js.map +1 -1
  24. package/dist/parsers/csv-parser.d.ts +1 -4
  25. package/dist/parsers/csv-parser.d.ts.map +1 -1
  26. package/dist/parsers/csv-parser.js +46 -46
  27. package/dist/parsers/csv-parser.js.map +1 -1
  28. package/dist/parsers/index.d.ts +2 -3
  29. package/dist/parsers/index.d.ts.map +1 -1
  30. package/dist/parsers/index.js +2 -3
  31. package/dist/parsers/index.js.map +1 -1
  32. package/dist/parsers/manifest-parser.d.ts +8 -0
  33. package/dist/parsers/manifest-parser.d.ts.map +1 -0
  34. package/dist/parsers/manifest-parser.js +12 -0
  35. package/dist/parsers/manifest-parser.js.map +1 -0
  36. package/dist/parsers/markdown-parser.d.ts +7 -0
  37. package/dist/parsers/markdown-parser.d.ts.map +1 -0
  38. package/dist/parsers/markdown-parser.js +32 -0
  39. package/dist/parsers/markdown-parser.js.map +1 -0
  40. package/dist/types/bmad.d.ts +19 -116
  41. package/dist/types/bmad.d.ts.map +1 -1
  42. package/dist/types/bmad.js +1 -4
  43. package/dist/types/bmad.js.map +1 -1
  44. package/dist/types/opencode.d.ts +13 -67
  45. package/dist/types/opencode.d.ts.map +1 -1
  46. package/dist/types/opencode.js +1 -0
  47. package/dist/types/opencode.js.map +1 -1
  48. package/dist/writers/handlebars-writer.d.ts +6 -0
  49. package/dist/writers/handlebars-writer.d.ts.map +1 -0
  50. package/dist/writers/handlebars-writer.js +48 -0
  51. package/dist/writers/handlebars-writer.js.map +1 -0
  52. package/dist/writers/index.d.ts +2 -0
  53. package/dist/writers/index.d.ts.map +1 -0
  54. package/dist/writers/index.js +2 -0
  55. package/dist/writers/index.js.map +1 -0
  56. package/package.json +11 -25
  57. package/plan.md +210 -0
  58. package/src/agent-skills.json +153 -0
  59. package/src/cli.ts +104 -0
  60. package/src/converter.ts +106 -0
  61. package/src/converters/agent-converter.ts +185 -0
  62. package/src/converters/index.ts +3 -0
  63. package/src/converters/task-converter.ts +31 -0
  64. package/src/converters/workflow-converter.ts +58 -0
  65. package/src/index.ts +6 -0
  66. package/src/parsers/csv-parser.ts +60 -0
  67. package/src/parsers/index.ts +3 -0
  68. package/src/parsers/manifest-parser.ts +21 -0
  69. package/src/parsers/markdown-parser.ts +43 -0
  70. package/src/templates/agent.hbs +24 -0
  71. package/src/templates/skill.hbs +18 -0
  72. package/src/types/bmad.ts +57 -0
  73. package/src/types/index.ts +2 -0
  74. package/src/types/opencode.ts +44 -0
  75. package/src/writers/handlebars-writer.ts +79 -0
  76. package/src/writers/index.ts +1 -0
  77. package/tests/sources/.opencode/command/bmad-agent-bmad-master.md +16 -0
  78. package/tests/sources/.opencode/command/bmad-agent-bmm-analyst.md +16 -0
  79. package/tests/sources/.opencode/command/bmad-agent-bmm-architect.md +16 -0
  80. package/tests/sources/.opencode/command/bmad-agent-bmm-dev.md +16 -0
  81. package/tests/sources/.opencode/command/bmad-agent-bmm-pm.md +16 -0
  82. package/tests/sources/.opencode/command/bmad-agent-bmm-qa.md +16 -0
  83. package/tests/sources/.opencode/command/bmad-agent-bmm-quick-flow-solo-dev.md +16 -0
  84. package/tests/sources/.opencode/command/bmad-agent-bmm-sm.md +16 -0
  85. package/tests/sources/.opencode/command/bmad-agent-bmm-tech-writer.md +16 -0
  86. package/tests/sources/.opencode/command/bmad-agent-bmm-ux-designer.md +16 -0
  87. package/tests/sources/.opencode/command/bmad-agent-cis-brainstorming-coach.md +16 -0
  88. package/tests/sources/.opencode/command/bmad-agent-cis-creative-problem-solver.md +16 -0
  89. package/tests/sources/.opencode/command/bmad-agent-cis-design-thinking-coach.md +16 -0
  90. package/tests/sources/.opencode/command/bmad-agent-cis-innovation-strategist.md +16 -0
  91. package/tests/sources/.opencode/command/bmad-agent-cis-presentation-master.md +16 -0
  92. package/tests/sources/.opencode/command/bmad-agent-cis-storyteller.md +16 -0
  93. package/tests/sources/.opencode/command/bmad-agent-tea-tea.md +16 -0
  94. package/tests/sources/.opencode/command/bmad-bmm-check-implementation-readiness.md +7 -0
  95. package/tests/sources/.opencode/command/bmad-bmm-code-review.md +15 -0
  96. package/tests/sources/.opencode/command/bmad-bmm-correct-course.md +15 -0
  97. package/tests/sources/.opencode/command/bmad-bmm-create-architecture.md +7 -0
  98. package/tests/sources/.opencode/command/bmad-bmm-create-epics-and-stories.md +7 -0
  99. package/tests/sources/.opencode/command/bmad-bmm-create-prd.md +7 -0
  100. package/tests/sources/.opencode/command/bmad-bmm-create-product-brief.md +7 -0
  101. package/tests/sources/.opencode/command/bmad-bmm-create-story.md +15 -0
  102. package/tests/sources/.opencode/command/bmad-bmm-create-ux-design.md +7 -0
  103. package/tests/sources/.opencode/command/bmad-bmm-dev-story.md +15 -0
  104. package/tests/sources/.opencode/command/bmad-bmm-document-project.md +15 -0
  105. package/tests/sources/.opencode/command/bmad-bmm-domain-research.md +7 -0
  106. package/tests/sources/.opencode/command/bmad-bmm-edit-prd.md +7 -0
  107. package/tests/sources/.opencode/command/bmad-bmm-generate-project-context.md +7 -0
  108. package/tests/sources/.opencode/command/bmad-bmm-market-research.md +7 -0
  109. package/tests/sources/.opencode/command/bmad-bmm-qa-automate.md +15 -0
  110. package/tests/sources/.opencode/command/bmad-bmm-quick-dev.md +7 -0
  111. package/tests/sources/.opencode/command/bmad-bmm-quick-spec.md +7 -0
  112. package/tests/sources/.opencode/command/bmad-bmm-retrospective.md +15 -0
  113. package/tests/sources/.opencode/command/bmad-bmm-sprint-planning.md +15 -0
  114. package/tests/sources/.opencode/command/bmad-bmm-sprint-status.md +15 -0
  115. package/tests/sources/.opencode/command/bmad-bmm-technical-research.md +7 -0
  116. package/tests/sources/.opencode/command/bmad-bmm-validate-prd.md +7 -0
  117. package/tests/sources/.opencode/command/bmad-brainstorming.md +7 -0
  118. package/tests/sources/.opencode/command/bmad-cis-design-thinking.md +15 -0
  119. package/tests/sources/.opencode/command/bmad-cis-innovation-strategy.md +15 -0
  120. package/tests/sources/.opencode/command/bmad-cis-problem-solving.md +15 -0
  121. package/tests/sources/.opencode/command/bmad-cis-storytelling.md +15 -0
  122. package/tests/sources/.opencode/command/bmad-editorial-review-prose.md +10 -0
  123. package/tests/sources/.opencode/command/bmad-editorial-review-structure.md +10 -0
  124. package/tests/sources/.opencode/command/bmad-help.md +10 -0
  125. package/tests/sources/.opencode/command/bmad-index-docs.md +10 -0
  126. package/tests/sources/.opencode/command/bmad-party-mode.md +7 -0
  127. package/tests/sources/.opencode/command/bmad-review-adversarial-general.md +10 -0
  128. package/tests/sources/.opencode/command/bmad-shard-doc.md +10 -0
  129. package/tests/sources/.opencode/command/bmad-tea-teach-me-testing.md +7 -0
  130. package/tests/sources/.opencode/command/bmad-tea-testarch-atdd.md +15 -0
  131. package/tests/sources/.opencode/command/bmad-tea-testarch-automate.md +15 -0
  132. package/tests/sources/.opencode/command/bmad-tea-testarch-ci.md +15 -0
  133. package/tests/sources/.opencode/command/bmad-tea-testarch-framework.md +15 -0
  134. package/tests/sources/.opencode/command/bmad-tea-testarch-nfr.md +15 -0
  135. package/tests/sources/.opencode/command/bmad-tea-testarch-test-design.md +15 -0
  136. package/tests/sources/.opencode/command/bmad-tea-testarch-test-review.md +15 -0
  137. package/tests/sources/.opencode/command/bmad-tea-testarch-trace.md +15 -0
  138. package/tests/sources/_bmad/_config/agent-manifest.csv +18 -0
  139. package/tests/sources/_bmad/_config/agents/bmm-analyst.customize.yaml +41 -0
  140. package/tests/sources/_bmad/_config/agents/bmm-architect.customize.yaml +41 -0
  141. package/tests/sources/_bmad/_config/agents/bmm-dev.customize.yaml +41 -0
  142. package/tests/sources/_bmad/_config/agents/bmm-pm.customize.yaml +41 -0
  143. package/tests/sources/_bmad/_config/agents/bmm-qa.customize.yaml +41 -0
  144. package/tests/sources/_bmad/_config/agents/bmm-quick-flow-solo-dev.customize.yaml +41 -0
  145. package/tests/sources/_bmad/_config/agents/bmm-sm.customize.yaml +41 -0
  146. package/tests/sources/_bmad/_config/agents/bmm-tech-writer.customize.yaml +41 -0
  147. package/tests/sources/_bmad/_config/agents/bmm-ux-designer.customize.yaml +41 -0
  148. package/tests/sources/_bmad/_config/agents/cis-brainstorming-coach.customize.yaml +41 -0
  149. package/tests/sources/_bmad/_config/agents/cis-creative-problem-solver.customize.yaml +41 -0
  150. package/tests/sources/_bmad/_config/agents/cis-design-thinking-coach.customize.yaml +41 -0
  151. package/tests/sources/_bmad/_config/agents/cis-innovation-strategist.customize.yaml +41 -0
  152. package/tests/sources/_bmad/_config/agents/cis-presentation-master.customize.yaml +41 -0
  153. package/tests/sources/_bmad/_config/agents/cis-storyteller.customize.yaml +41 -0
  154. package/tests/sources/_bmad/_config/agents/core-bmad-master.customize.yaml +41 -0
  155. package/tests/sources/_bmad/_config/agents/tea-tea.customize.yaml +41 -0
  156. package/tests/sources/_bmad/_config/bmad-help.csv +53 -0
  157. package/tests/sources/_bmad/_config/files-manifest.csv +444 -0
  158. package/tests/sources/_bmad/_config/manifest.yaml +35 -0
  159. package/tests/sources/_bmad/_config/task-manifest.csv +7 -0
  160. package/tests/sources/_bmad/_config/tool-manifest.csv +1 -0
  161. package/tests/sources/_bmad/_config/workflow-manifest.csv +39 -0
  162. package/tests/sources/_bmad/_memory/config.yaml +11 -0
  163. package/tests/sources/_bmad/_memory/storyteller-sidecar/stories-told.md +7 -0
  164. package/tests/sources/_bmad/_memory/storyteller-sidecar/story-preferences.md +7 -0
  165. package/tests/sources/_bmad/_memory/tech-writer-sidecar/documentation-standards.md +224 -0
  166. package/tests/sources/_bmad/bmm/agents/analyst.md +78 -0
  167. package/tests/sources/_bmad/bmm/agents/architect.md +58 -0
  168. package/tests/sources/_bmad/bmm/agents/dev.md +69 -0
  169. package/tests/sources/_bmad/bmm/agents/pm.md +72 -0
  170. package/tests/sources/_bmad/bmm/agents/qa.md +92 -0
  171. package/tests/sources/_bmad/bmm/agents/quick-flow-solo-dev.md +69 -0
  172. package/tests/sources/_bmad/bmm/agents/sm.md +70 -0
  173. package/tests/sources/_bmad/bmm/agents/tech-writer/tech-writer.md +70 -0
  174. package/tests/sources/_bmad/bmm/agents/ux-designer.md +57 -0
  175. package/tests/sources/_bmad/bmm/config.yaml +16 -0
  176. package/tests/sources/_bmad/bmm/data/project-context-template.md +26 -0
  177. package/tests/sources/_bmad/bmm/module-help.csv +31 -0
  178. package/tests/sources/_bmad/bmm/teams/default-party.csv +20 -0
  179. package/tests/sources/_bmad/bmm/teams/team-fullstack.yaml +12 -0
  180. package/tests/sources/_bmad/bmm/workflows/1-analysis/create-product-brief/product-brief.template.md +10 -0
  181. package/tests/sources/_bmad/bmm/workflows/1-analysis/create-product-brief/steps/step-01-init.md +177 -0
  182. package/tests/sources/_bmad/bmm/workflows/1-analysis/create-product-brief/steps/step-01b-continue.md +161 -0
  183. package/tests/sources/_bmad/bmm/workflows/1-analysis/create-product-brief/steps/step-02-vision.md +199 -0
  184. package/tests/sources/_bmad/bmm/workflows/1-analysis/create-product-brief/steps/step-03-users.md +202 -0
  185. package/tests/sources/_bmad/bmm/workflows/1-analysis/create-product-brief/steps/step-04-metrics.md +205 -0
  186. package/tests/sources/_bmad/bmm/workflows/1-analysis/create-product-brief/steps/step-05-scope.md +219 -0
  187. package/tests/sources/_bmad/bmm/workflows/1-analysis/create-product-brief/steps/step-06-complete.md +162 -0
  188. package/tests/sources/_bmad/bmm/workflows/1-analysis/create-product-brief/workflow.md +57 -0
  189. package/tests/sources/_bmad/bmm/workflows/1-analysis/research/domain-steps/step-01-init.md +137 -0
  190. package/tests/sources/_bmad/bmm/workflows/1-analysis/research/domain-steps/step-02-domain-analysis.md +229 -0
  191. package/tests/sources/_bmad/bmm/workflows/1-analysis/research/domain-steps/step-03-competitive-landscape.md +238 -0
  192. package/tests/sources/_bmad/bmm/workflows/1-analysis/research/domain-steps/step-04-regulatory-focus.md +206 -0
  193. package/tests/sources/_bmad/bmm/workflows/1-analysis/research/domain-steps/step-05-technical-trends.md +234 -0
  194. package/tests/sources/_bmad/bmm/workflows/1-analysis/research/domain-steps/step-06-research-synthesis.md +443 -0
  195. package/tests/sources/_bmad/bmm/workflows/1-analysis/research/market-steps/step-01-init.md +182 -0
  196. package/tests/sources/_bmad/bmm/workflows/1-analysis/research/market-steps/step-02-customer-behavior.md +237 -0
  197. package/tests/sources/_bmad/bmm/workflows/1-analysis/research/market-steps/step-03-customer-pain-points.md +249 -0
  198. package/tests/sources/_bmad/bmm/workflows/1-analysis/research/market-steps/step-04-customer-decisions.md +259 -0
  199. package/tests/sources/_bmad/bmm/workflows/1-analysis/research/market-steps/step-05-competitive-analysis.md +177 -0
  200. package/tests/sources/_bmad/bmm/workflows/1-analysis/research/market-steps/step-06-research-completion.md +475 -0
  201. package/tests/sources/_bmad/bmm/workflows/1-analysis/research/research.template.md +29 -0
  202. package/tests/sources/_bmad/bmm/workflows/1-analysis/research/technical-steps/step-01-init.md +137 -0
  203. package/tests/sources/_bmad/bmm/workflows/1-analysis/research/technical-steps/step-02-technical-overview.md +239 -0
  204. package/tests/sources/_bmad/bmm/workflows/1-analysis/research/technical-steps/step-03-integration-patterns.md +248 -0
  205. package/tests/sources/_bmad/bmm/workflows/1-analysis/research/technical-steps/step-04-architectural-patterns.md +202 -0
  206. package/tests/sources/_bmad/bmm/workflows/1-analysis/research/technical-steps/step-05-implementation-research.md +239 -0
  207. package/tests/sources/_bmad/bmm/workflows/1-analysis/research/technical-steps/step-06-research-synthesis.md +486 -0
  208. package/tests/sources/_bmad/bmm/workflows/1-analysis/research/workflow-domain-research.md +54 -0
  209. package/tests/sources/_bmad/bmm/workflows/1-analysis/research/workflow-market-research.md +54 -0
  210. package/tests/sources/_bmad/bmm/workflows/1-analysis/research/workflow-technical-research.md +54 -0
  211. package/tests/sources/_bmad/bmm/workflows/2-plan-workflows/create-prd/data/domain-complexity.csv +15 -0
  212. package/tests/sources/_bmad/bmm/workflows/2-plan-workflows/create-prd/data/prd-purpose.md +197 -0
  213. package/tests/sources/_bmad/bmm/workflows/2-plan-workflows/create-prd/data/project-types.csv +11 -0
  214. package/tests/sources/_bmad/bmm/workflows/2-plan-workflows/create-prd/steps-c/step-01-init.md +191 -0
  215. package/tests/sources/_bmad/bmm/workflows/2-plan-workflows/create-prd/steps-c/step-01b-continue.md +153 -0
  216. package/tests/sources/_bmad/bmm/workflows/2-plan-workflows/create-prd/steps-c/step-02-discovery.md +224 -0
  217. package/tests/sources/_bmad/bmm/workflows/2-plan-workflows/create-prd/steps-c/step-03-success.md +226 -0
  218. package/tests/sources/_bmad/bmm/workflows/2-plan-workflows/create-prd/steps-c/step-04-journeys.md +213 -0
  219. package/tests/sources/_bmad/bmm/workflows/2-plan-workflows/create-prd/steps-c/step-05-domain.md +207 -0
  220. package/tests/sources/_bmad/bmm/workflows/2-plan-workflows/create-prd/steps-c/step-06-innovation.md +226 -0
  221. package/tests/sources/_bmad/bmm/workflows/2-plan-workflows/create-prd/steps-c/step-07-project-type.md +237 -0
  222. package/tests/sources/_bmad/bmm/workflows/2-plan-workflows/create-prd/steps-c/step-08-scoping.md +228 -0
  223. package/tests/sources/_bmad/bmm/workflows/2-plan-workflows/create-prd/steps-c/step-09-functional.md +231 -0
  224. package/tests/sources/_bmad/bmm/workflows/2-plan-workflows/create-prd/steps-c/step-10-nonfunctional.md +242 -0
  225. package/tests/sources/_bmad/bmm/workflows/2-plan-workflows/create-prd/steps-c/step-11-polish.md +217 -0
  226. package/tests/sources/_bmad/bmm/workflows/2-plan-workflows/create-prd/steps-c/step-12-complete.md +124 -0
  227. package/tests/sources/_bmad/bmm/workflows/2-plan-workflows/create-prd/steps-e/step-e-01-discovery.md +247 -0
  228. package/tests/sources/_bmad/bmm/workflows/2-plan-workflows/create-prd/steps-e/step-e-01b-legacy-conversion.md +208 -0
  229. package/tests/sources/_bmad/bmm/workflows/2-plan-workflows/create-prd/steps-e/step-e-02-review.md +249 -0
  230. package/tests/sources/_bmad/bmm/workflows/2-plan-workflows/create-prd/steps-e/step-e-03-edit.md +253 -0
  231. package/tests/sources/_bmad/bmm/workflows/2-plan-workflows/create-prd/steps-e/step-e-04-complete.md +168 -0
  232. package/tests/sources/_bmad/bmm/workflows/2-plan-workflows/create-prd/steps-v/step-v-01-discovery.md +218 -0
  233. package/tests/sources/_bmad/bmm/workflows/2-plan-workflows/create-prd/steps-v/step-v-02-format-detection.md +191 -0
  234. package/tests/sources/_bmad/bmm/workflows/2-plan-workflows/create-prd/steps-v/step-v-02b-parity-check.md +209 -0
  235. package/tests/sources/_bmad/bmm/workflows/2-plan-workflows/create-prd/steps-v/step-v-03-density-validation.md +174 -0
  236. package/tests/sources/_bmad/bmm/workflows/2-plan-workflows/create-prd/steps-v/step-v-04-brief-coverage-validation.md +214 -0
  237. package/tests/sources/_bmad/bmm/workflows/2-plan-workflows/create-prd/steps-v/step-v-05-measurability-validation.md +228 -0
  238. package/tests/sources/_bmad/bmm/workflows/2-plan-workflows/create-prd/steps-v/step-v-06-traceability-validation.md +217 -0
  239. package/tests/sources/_bmad/bmm/workflows/2-plan-workflows/create-prd/steps-v/step-v-07-implementation-leakage-validation.md +205 -0
  240. package/tests/sources/_bmad/bmm/workflows/2-plan-workflows/create-prd/steps-v/step-v-08-domain-compliance-validation.md +243 -0
  241. package/tests/sources/_bmad/bmm/workflows/2-plan-workflows/create-prd/steps-v/step-v-09-project-type-validation.md +263 -0
  242. package/tests/sources/_bmad/bmm/workflows/2-plan-workflows/create-prd/steps-v/step-v-10-smart-validation.md +209 -0
  243. package/tests/sources/_bmad/bmm/workflows/2-plan-workflows/create-prd/steps-v/step-v-11-holistic-quality-validation.md +264 -0
  244. package/tests/sources/_bmad/bmm/workflows/2-plan-workflows/create-prd/steps-v/step-v-12-completeness-validation.md +242 -0
  245. package/tests/sources/_bmad/bmm/workflows/2-plan-workflows/create-prd/steps-v/step-v-13-report-complete.md +231 -0
  246. package/tests/sources/_bmad/bmm/workflows/2-plan-workflows/create-prd/templates/prd-template.md +10 -0
  247. package/tests/sources/_bmad/bmm/workflows/2-plan-workflows/create-prd/workflow-create-prd.md +63 -0
  248. package/tests/sources/_bmad/bmm/workflows/2-plan-workflows/create-prd/workflow-edit-prd.md +65 -0
  249. package/tests/sources/_bmad/bmm/workflows/2-plan-workflows/create-prd/workflow-validate-prd.md +65 -0
  250. package/tests/sources/_bmad/bmm/workflows/2-plan-workflows/create-ux-design/steps/step-01-init.md +135 -0
  251. package/tests/sources/_bmad/bmm/workflows/2-plan-workflows/create-ux-design/steps/step-01b-continue.md +127 -0
  252. package/tests/sources/_bmad/bmm/workflows/2-plan-workflows/create-ux-design/steps/step-02-discovery.md +190 -0
  253. package/tests/sources/_bmad/bmm/workflows/2-plan-workflows/create-ux-design/steps/step-03-core-experience.md +216 -0
  254. package/tests/sources/_bmad/bmm/workflows/2-plan-workflows/create-ux-design/steps/step-04-emotional-response.md +219 -0
  255. package/tests/sources/_bmad/bmm/workflows/2-plan-workflows/create-ux-design/steps/step-05-inspiration.md +234 -0
  256. package/tests/sources/_bmad/bmm/workflows/2-plan-workflows/create-ux-design/steps/step-06-design-system.md +252 -0
  257. package/tests/sources/_bmad/bmm/workflows/2-plan-workflows/create-ux-design/steps/step-07-defining-experience.md +254 -0
  258. package/tests/sources/_bmad/bmm/workflows/2-plan-workflows/create-ux-design/steps/step-08-visual-foundation.md +224 -0
  259. package/tests/sources/_bmad/bmm/workflows/2-plan-workflows/create-ux-design/steps/step-09-design-directions.md +224 -0
  260. package/tests/sources/_bmad/bmm/workflows/2-plan-workflows/create-ux-design/steps/step-10-user-journeys.md +241 -0
  261. package/tests/sources/_bmad/bmm/workflows/2-plan-workflows/create-ux-design/steps/step-11-component-strategy.md +248 -0
  262. package/tests/sources/_bmad/bmm/workflows/2-plan-workflows/create-ux-design/steps/step-12-ux-patterns.md +237 -0
  263. package/tests/sources/_bmad/bmm/workflows/2-plan-workflows/create-ux-design/steps/step-13-responsive-accessibility.md +264 -0
  264. package/tests/sources/_bmad/bmm/workflows/2-plan-workflows/create-ux-design/steps/step-14-complete.md +171 -0
  265. package/tests/sources/_bmad/bmm/workflows/2-plan-workflows/create-ux-design/ux-design-template.md +13 -0
  266. package/tests/sources/_bmad/bmm/workflows/2-plan-workflows/create-ux-design/workflow.md +42 -0
  267. package/tests/sources/_bmad/bmm/workflows/3-solutioning/check-implementation-readiness/steps/step-01-document-discovery.md +190 -0
  268. package/tests/sources/_bmad/bmm/workflows/3-solutioning/check-implementation-readiness/steps/step-02-prd-analysis.md +178 -0
  269. package/tests/sources/_bmad/bmm/workflows/3-solutioning/check-implementation-readiness/steps/step-03-epic-coverage-validation.md +179 -0
  270. package/tests/sources/_bmad/bmm/workflows/3-solutioning/check-implementation-readiness/steps/step-04-ux-alignment.md +139 -0
  271. package/tests/sources/_bmad/bmm/workflows/3-solutioning/check-implementation-readiness/steps/step-05-epic-quality-review.md +252 -0
  272. package/tests/sources/_bmad/bmm/workflows/3-solutioning/check-implementation-readiness/steps/step-06-final-assessment.md +135 -0
  273. package/tests/sources/_bmad/bmm/workflows/3-solutioning/check-implementation-readiness/templates/readiness-report-template.md +4 -0
  274. package/tests/sources/_bmad/bmm/workflows/3-solutioning/check-implementation-readiness/workflow.md +54 -0
  275. package/tests/sources/_bmad/bmm/workflows/3-solutioning/create-architecture/architecture-decision-template.md +12 -0
  276. package/tests/sources/_bmad/bmm/workflows/3-solutioning/create-architecture/data/domain-complexity.csv +13 -0
  277. package/tests/sources/_bmad/bmm/workflows/3-solutioning/create-architecture/data/project-types.csv +7 -0
  278. package/tests/sources/_bmad/bmm/workflows/3-solutioning/create-architecture/steps/step-01-init.md +153 -0
  279. package/tests/sources/_bmad/bmm/workflows/3-solutioning/create-architecture/steps/step-01b-continue.md +164 -0
  280. package/tests/sources/_bmad/bmm/workflows/3-solutioning/create-architecture/steps/step-02-context.md +224 -0
  281. package/tests/sources/_bmad/bmm/workflows/3-solutioning/create-architecture/steps/step-03-starter.md +331 -0
  282. package/tests/sources/_bmad/bmm/workflows/3-solutioning/create-architecture/steps/step-04-decisions.md +318 -0
  283. package/tests/sources/_bmad/bmm/workflows/3-solutioning/create-architecture/steps/step-05-patterns.md +359 -0
  284. package/tests/sources/_bmad/bmm/workflows/3-solutioning/create-architecture/steps/step-06-structure.md +379 -0
  285. package/tests/sources/_bmad/bmm/workflows/3-solutioning/create-architecture/steps/step-07-validation.md +359 -0
  286. package/tests/sources/_bmad/bmm/workflows/3-solutioning/create-architecture/steps/step-08-complete.md +76 -0
  287. package/tests/sources/_bmad/bmm/workflows/3-solutioning/create-architecture/workflow.md +49 -0
  288. package/tests/sources/_bmad/bmm/workflows/3-solutioning/create-epics-and-stories/steps/step-01-validate-prerequisites.md +259 -0
  289. package/tests/sources/_bmad/bmm/workflows/3-solutioning/create-epics-and-stories/steps/step-02-design-epics.md +233 -0
  290. package/tests/sources/_bmad/bmm/workflows/3-solutioning/create-epics-and-stories/steps/step-03-create-stories.md +272 -0
  291. package/tests/sources/_bmad/bmm/workflows/3-solutioning/create-epics-and-stories/steps/step-04-final-validation.md +149 -0
  292. package/tests/sources/_bmad/bmm/workflows/3-solutioning/create-epics-and-stories/templates/epics-template.md +57 -0
  293. package/tests/sources/_bmad/bmm/workflows/3-solutioning/create-epics-and-stories/workflow.md +58 -0
  294. package/tests/sources/_bmad/bmm/workflows/4-implementation/code-review/checklist.md +23 -0
  295. package/tests/sources/_bmad/bmm/workflows/4-implementation/code-review/instructions.xml +227 -0
  296. package/tests/sources/_bmad/bmm/workflows/4-implementation/code-review/workflow.yaml +48 -0
  297. package/tests/sources/_bmad/bmm/workflows/4-implementation/correct-course/checklist.md +288 -0
  298. package/tests/sources/_bmad/bmm/workflows/4-implementation/correct-course/instructions.md +206 -0
  299. package/tests/sources/_bmad/bmm/workflows/4-implementation/correct-course/workflow.yaml +56 -0
  300. package/tests/sources/_bmad/bmm/workflows/4-implementation/create-story/checklist.md +358 -0
  301. package/tests/sources/_bmad/bmm/workflows/4-implementation/create-story/instructions.xml +345 -0
  302. package/tests/sources/_bmad/bmm/workflows/4-implementation/create-story/template.md +49 -0
  303. package/tests/sources/_bmad/bmm/workflows/4-implementation/create-story/workflow.yaml +57 -0
  304. package/tests/sources/_bmad/bmm/workflows/4-implementation/dev-story/checklist.md +80 -0
  305. package/tests/sources/_bmad/bmm/workflows/4-implementation/dev-story/instructions.xml +410 -0
  306. package/tests/sources/_bmad/bmm/workflows/4-implementation/dev-story/workflow.yaml +23 -0
  307. package/tests/sources/_bmad/bmm/workflows/4-implementation/retrospective/instructions.md +1443 -0
  308. package/tests/sources/_bmad/bmm/workflows/4-implementation/retrospective/workflow.yaml +55 -0
  309. package/tests/sources/_bmad/bmm/workflows/4-implementation/sprint-planning/checklist.md +33 -0
  310. package/tests/sources/_bmad/bmm/workflows/4-implementation/sprint-planning/instructions.md +225 -0
  311. package/tests/sources/_bmad/bmm/workflows/4-implementation/sprint-planning/sprint-status-template.yaml +55 -0
  312. package/tests/sources/_bmad/bmm/workflows/4-implementation/sprint-planning/workflow.yaml +51 -0
  313. package/tests/sources/_bmad/bmm/workflows/4-implementation/sprint-status/instructions.md +229 -0
  314. package/tests/sources/_bmad/bmm/workflows/4-implementation/sprint-status/workflow.yaml +30 -0
  315. package/tests/sources/_bmad/bmm/workflows/bmad-quick-flow/quick-dev/steps/step-01-mode-detection.md +176 -0
  316. package/tests/sources/_bmad/bmm/workflows/bmad-quick-flow/quick-dev/steps/step-02-context-gathering.md +120 -0
  317. package/tests/sources/_bmad/bmm/workflows/bmad-quick-flow/quick-dev/steps/step-03-execute.md +113 -0
  318. package/tests/sources/_bmad/bmm/workflows/bmad-quick-flow/quick-dev/steps/step-04-self-check.md +113 -0
  319. package/tests/sources/_bmad/bmm/workflows/bmad-quick-flow/quick-dev/steps/step-05-adversarial-review.md +106 -0
  320. package/tests/sources/_bmad/bmm/workflows/bmad-quick-flow/quick-dev/steps/step-06-resolve-findings.md +149 -0
  321. package/tests/sources/_bmad/bmm/workflows/bmad-quick-flow/quick-dev/workflow.md +50 -0
  322. package/tests/sources/_bmad/bmm/workflows/bmad-quick-flow/quick-spec/steps/step-01-understand.md +192 -0
  323. package/tests/sources/_bmad/bmm/workflows/bmad-quick-flow/quick-spec/steps/step-02-investigate.md +145 -0
  324. package/tests/sources/_bmad/bmm/workflows/bmad-quick-flow/quick-spec/steps/step-03-generate.md +128 -0
  325. package/tests/sources/_bmad/bmm/workflows/bmad-quick-flow/quick-spec/steps/step-04-review.md +201 -0
  326. package/tests/sources/_bmad/bmm/workflows/bmad-quick-flow/quick-spec/tech-spec-template.md +74 -0
  327. package/tests/sources/_bmad/bmm/workflows/bmad-quick-flow/quick-spec/workflow.md +78 -0
  328. package/tests/sources/_bmad/bmm/workflows/document-project/checklist.md +245 -0
  329. package/tests/sources/_bmad/bmm/workflows/document-project/documentation-requirements.csv +12 -0
  330. package/tests/sources/_bmad/bmm/workflows/document-project/instructions.md +221 -0
  331. package/tests/sources/_bmad/bmm/workflows/document-project/templates/deep-dive-template.md +345 -0
  332. package/tests/sources/_bmad/bmm/workflows/document-project/templates/index-template.md +169 -0
  333. package/tests/sources/_bmad/bmm/workflows/document-project/templates/project-overview-template.md +103 -0
  334. package/tests/sources/_bmad/bmm/workflows/document-project/templates/project-scan-report-schema.json +160 -0
  335. package/tests/sources/_bmad/bmm/workflows/document-project/templates/source-tree-template.md +135 -0
  336. package/tests/sources/_bmad/bmm/workflows/document-project/workflow.yaml +22 -0
  337. package/tests/sources/_bmad/bmm/workflows/document-project/workflows/deep-dive-instructions.md +298 -0
  338. package/tests/sources/_bmad/bmm/workflows/document-project/workflows/deep-dive.yaml +31 -0
  339. package/tests/sources/_bmad/bmm/workflows/document-project/workflows/full-scan-instructions.md +1106 -0
  340. package/tests/sources/_bmad/bmm/workflows/document-project/workflows/full-scan.yaml +31 -0
  341. package/tests/sources/_bmad/bmm/workflows/generate-project-context/project-context-template.md +21 -0
  342. package/tests/sources/_bmad/bmm/workflows/generate-project-context/steps/step-01-discover.md +184 -0
  343. package/tests/sources/_bmad/bmm/workflows/generate-project-context/steps/step-02-generate.md +318 -0
  344. package/tests/sources/_bmad/bmm/workflows/generate-project-context/steps/step-03-complete.md +278 -0
  345. package/tests/sources/_bmad/bmm/workflows/generate-project-context/workflow.md +49 -0
  346. package/tests/sources/_bmad/bmm/workflows/qa/automate/checklist.md +33 -0
  347. package/tests/sources/_bmad/bmm/workflows/qa/automate/instructions.md +110 -0
  348. package/tests/sources/_bmad/bmm/workflows/qa/automate/workflow.yaml +47 -0
  349. package/tests/sources/_bmad/cis/agents/brainstorming-coach.md +61 -0
  350. package/tests/sources/_bmad/cis/agents/creative-problem-solver.md +61 -0
  351. package/tests/sources/_bmad/cis/agents/design-thinking-coach.md +61 -0
  352. package/tests/sources/_bmad/cis/agents/innovation-strategist.md +61 -0
  353. package/tests/sources/_bmad/cis/agents/presentation-master.md +67 -0
  354. package/tests/sources/_bmad/cis/agents/storyteller/storyteller.md +58 -0
  355. package/tests/sources/_bmad/cis/config.yaml +12 -0
  356. package/tests/sources/_bmad/cis/module-help.csv +6 -0
  357. package/tests/sources/_bmad/cis/teams/creative-squad.yaml +7 -0
  358. package/tests/sources/_bmad/cis/teams/default-party.csv +12 -0
  359. package/tests/sources/_bmad/cis/workflows/README.md +139 -0
  360. package/tests/sources/_bmad/cis/workflows/design-thinking/README.md +56 -0
  361. package/tests/sources/_bmad/cis/workflows/design-thinking/design-methods.csv +31 -0
  362. package/tests/sources/_bmad/cis/workflows/design-thinking/instructions.md +202 -0
  363. package/tests/sources/_bmad/cis/workflows/design-thinking/template.md +111 -0
  364. package/tests/sources/_bmad/cis/workflows/design-thinking/workflow.yaml +27 -0
  365. package/tests/sources/_bmad/cis/workflows/innovation-strategy/README.md +56 -0
  366. package/tests/sources/_bmad/cis/workflows/innovation-strategy/innovation-frameworks.csv +31 -0
  367. package/tests/sources/_bmad/cis/workflows/innovation-strategy/instructions.md +276 -0
  368. package/tests/sources/_bmad/cis/workflows/innovation-strategy/template.md +189 -0
  369. package/tests/sources/_bmad/cis/workflows/innovation-strategy/workflow.yaml +27 -0
  370. package/tests/sources/_bmad/cis/workflows/problem-solving/README.md +56 -0
  371. package/tests/sources/_bmad/cis/workflows/problem-solving/instructions.md +252 -0
  372. package/tests/sources/_bmad/cis/workflows/problem-solving/solving-methods.csv +31 -0
  373. package/tests/sources/_bmad/cis/workflows/problem-solving/template.md +165 -0
  374. package/tests/sources/_bmad/cis/workflows/problem-solving/workflow.yaml +27 -0
  375. package/tests/sources/_bmad/cis/workflows/storytelling/README.md +58 -0
  376. package/tests/sources/_bmad/cis/workflows/storytelling/instructions.md +293 -0
  377. package/tests/sources/_bmad/cis/workflows/storytelling/story-types.csv +26 -0
  378. package/tests/sources/_bmad/cis/workflows/storytelling/template.md +113 -0
  379. package/tests/sources/_bmad/cis/workflows/storytelling/workflow.yaml +27 -0
  380. package/tests/sources/_bmad/core/agents/bmad-master.md +56 -0
  381. package/tests/sources/_bmad/core/config.yaml +9 -0
  382. package/tests/sources/_bmad/core/module-help.csv +9 -0
  383. package/tests/sources/_bmad/core/tasks/editorial-review-prose.xml +102 -0
  384. package/tests/sources/_bmad/core/tasks/editorial-review-structure.xml +209 -0
  385. package/tests/sources/_bmad/core/tasks/help.md +82 -0
  386. package/tests/sources/_bmad/core/tasks/index-docs.xml +65 -0
  387. package/tests/sources/_bmad/core/tasks/review-adversarial-general.xml +48 -0
  388. package/tests/sources/_bmad/core/tasks/shard-doc.xml +108 -0
  389. package/tests/sources/_bmad/core/tasks/workflow.xml +235 -0
  390. package/tests/sources/_bmad/core/workflows/advanced-elicitation/methods.csv +51 -0
  391. package/tests/sources/_bmad/core/workflows/advanced-elicitation/workflow.xml +117 -0
  392. package/tests/sources/_bmad/core/workflows/brainstorming/brain-methods.csv +62 -0
  393. package/tests/sources/_bmad/core/workflows/brainstorming/steps/step-01-session-setup.md +197 -0
  394. package/tests/sources/_bmad/core/workflows/brainstorming/steps/step-01b-continue.md +122 -0
  395. package/tests/sources/_bmad/core/workflows/brainstorming/steps/step-02a-user-selected.md +225 -0
  396. package/tests/sources/_bmad/core/workflows/brainstorming/steps/step-02b-ai-recommended.md +237 -0
  397. package/tests/sources/_bmad/core/workflows/brainstorming/steps/step-02c-random-selection.md +209 -0
  398. package/tests/sources/_bmad/core/workflows/brainstorming/steps/step-02d-progressive-flow.md +264 -0
  399. package/tests/sources/_bmad/core/workflows/brainstorming/steps/step-03-technique-execution.md +399 -0
  400. package/tests/sources/_bmad/core/workflows/brainstorming/steps/step-04-idea-organization.md +303 -0
  401. package/tests/sources/_bmad/core/workflows/brainstorming/template.md +15 -0
  402. package/tests/sources/_bmad/core/workflows/brainstorming/workflow.md +58 -0
  403. package/tests/sources/_bmad/core/workflows/party-mode/steps/step-01-agent-loading.md +138 -0
  404. package/tests/sources/_bmad/core/workflows/party-mode/steps/step-02-discussion-orchestration.md +187 -0
  405. package/tests/sources/_bmad/core/workflows/party-mode/steps/step-03-graceful-exit.md +157 -0
  406. package/tests/sources/_bmad/core/workflows/party-mode/workflow.md +194 -0
  407. package/tests/sources/_bmad/tea/agents/tea.md +71 -0
  408. package/tests/sources/_bmad/tea/config.yaml +19 -0
  409. package/tests/sources/_bmad/tea/module-help.csv +10 -0
  410. package/tests/sources/_bmad/tea/teams/default-party.csv +2 -0
  411. package/tests/sources/_bmad/tea/testarch/knowledge/adr-quality-readiness-checklist.md +377 -0
  412. package/tests/sources/_bmad/tea/testarch/knowledge/api-request.md +442 -0
  413. package/tests/sources/_bmad/tea/testarch/knowledge/api-testing-patterns.md +851 -0
  414. package/tests/sources/_bmad/tea/testarch/knowledge/auth-session.md +548 -0
  415. package/tests/sources/_bmad/tea/testarch/knowledge/burn-in.md +273 -0
  416. package/tests/sources/_bmad/tea/testarch/knowledge/ci-burn-in.md +675 -0
  417. package/tests/sources/_bmad/tea/testarch/knowledge/component-tdd.md +486 -0
  418. package/tests/sources/_bmad/tea/testarch/knowledge/contract-testing.md +957 -0
  419. package/tests/sources/_bmad/tea/testarch/knowledge/data-factories.md +500 -0
  420. package/tests/sources/_bmad/tea/testarch/knowledge/email-auth.md +721 -0
  421. package/tests/sources/_bmad/tea/testarch/knowledge/error-handling.md +725 -0
  422. package/tests/sources/_bmad/tea/testarch/knowledge/feature-flags.md +750 -0
  423. package/tests/sources/_bmad/tea/testarch/knowledge/file-utils.md +456 -0
  424. package/tests/sources/_bmad/tea/testarch/knowledge/fixture-architecture.md +401 -0
  425. package/tests/sources/_bmad/tea/testarch/knowledge/fixtures-composition.md +382 -0
  426. package/tests/sources/_bmad/tea/testarch/knowledge/intercept-network-call.md +426 -0
  427. package/tests/sources/_bmad/tea/testarch/knowledge/log.md +426 -0
  428. package/tests/sources/_bmad/tea/testarch/knowledge/network-error-monitor.md +401 -0
  429. package/tests/sources/_bmad/tea/testarch/knowledge/network-first.md +486 -0
  430. package/tests/sources/_bmad/tea/testarch/knowledge/network-recorder.md +527 -0
  431. package/tests/sources/_bmad/tea/testarch/knowledge/nfr-criteria.md +670 -0
  432. package/tests/sources/_bmad/tea/testarch/knowledge/overview.md +286 -0
  433. package/tests/sources/_bmad/tea/testarch/knowledge/playwright-cli.md +165 -0
  434. package/tests/sources/_bmad/tea/testarch/knowledge/playwright-config.md +730 -0
  435. package/tests/sources/_bmad/tea/testarch/knowledge/probability-impact.md +601 -0
  436. package/tests/sources/_bmad/tea/testarch/knowledge/recurse.md +421 -0
  437. package/tests/sources/_bmad/tea/testarch/knowledge/risk-governance.md +615 -0
  438. package/tests/sources/_bmad/tea/testarch/knowledge/selective-testing.md +732 -0
  439. package/tests/sources/_bmad/tea/testarch/knowledge/selector-resilience.md +527 -0
  440. package/tests/sources/_bmad/tea/testarch/knowledge/test-healing-patterns.md +644 -0
  441. package/tests/sources/_bmad/tea/testarch/knowledge/test-levels-framework.md +473 -0
  442. package/tests/sources/_bmad/tea/testarch/knowledge/test-priorities-matrix.md +373 -0
  443. package/tests/sources/_bmad/tea/testarch/knowledge/test-quality.md +664 -0
  444. package/tests/sources/_bmad/tea/testarch/knowledge/timing-debugging.md +372 -0
  445. package/tests/sources/_bmad/tea/testarch/knowledge/visual-debugging.md +524 -0
  446. package/tests/sources/_bmad/tea/testarch/tea-index.csv +36 -0
  447. package/tests/sources/_bmad/tea/workflows/testarch/README.md +74 -0
  448. package/tests/sources/_bmad/tea/workflows/testarch/atdd/atdd-checklist-template.md +363 -0
  449. package/tests/sources/_bmad/tea/workflows/testarch/atdd/checklist.md +374 -0
  450. package/tests/sources/_bmad/tea/workflows/testarch/atdd/instructions.md +38 -0
  451. package/tests/sources/_bmad/tea/workflows/testarch/atdd/steps-c/step-01-preflight-and-context.md +118 -0
  452. package/tests/sources/_bmad/tea/workflows/testarch/atdd/steps-c/step-02-generation-mode.md +95 -0
  453. package/tests/sources/_bmad/tea/workflows/testarch/atdd/steps-c/step-03-test-strategy.md +76 -0
  454. package/tests/sources/_bmad/tea/workflows/testarch/atdd/steps-c/step-04-generate-tests.md +229 -0
  455. package/tests/sources/_bmad/tea/workflows/testarch/atdd/steps-c/step-04a-subprocess-api-failing.md +215 -0
  456. package/tests/sources/_bmad/tea/workflows/testarch/atdd/steps-c/step-04b-subprocess-e2e-failing.md +244 -0
  457. package/tests/sources/_bmad/tea/workflows/testarch/atdd/steps-c/step-04c-aggregate.md +329 -0
  458. package/tests/sources/_bmad/tea/workflows/testarch/atdd/steps-c/step-05-validate-and-complete.md +70 -0
  459. package/tests/sources/_bmad/tea/workflows/testarch/atdd/steps-e/step-01-assess.md +65 -0
  460. package/tests/sources/_bmad/tea/workflows/testarch/atdd/steps-e/step-02-apply-edit.md +60 -0
  461. package/tests/sources/_bmad/tea/workflows/testarch/atdd/steps-v/step-01-validate.md +67 -0
  462. package/tests/sources/_bmad/tea/workflows/testarch/atdd/validation-report-20260127-095021.md +73 -0
  463. package/tests/sources/_bmad/tea/workflows/testarch/atdd/validation-report-20260127-102401.md +116 -0
  464. package/tests/sources/_bmad/tea/workflows/testarch/atdd/workflow-plan.md +21 -0
  465. package/tests/sources/_bmad/tea/workflows/testarch/atdd/workflow.md +39 -0
  466. package/tests/sources/_bmad/tea/workflows/testarch/atdd/workflow.yaml +46 -0
  467. package/tests/sources/_bmad/tea/workflows/testarch/automate/checklist.md +582 -0
  468. package/tests/sources/_bmad/tea/workflows/testarch/automate/instructions.md +43 -0
  469. package/tests/sources/_bmad/tea/workflows/testarch/automate/steps-c/step-01-preflight-and-context.md +136 -0
  470. package/tests/sources/_bmad/tea/workflows/testarch/automate/steps-c/step-02-identify-targets.md +108 -0
  471. package/tests/sources/_bmad/tea/workflows/testarch/automate/steps-c/step-03-generate-tests.md +199 -0
  472. package/tests/sources/_bmad/tea/workflows/testarch/automate/steps-c/step-03a-subprocess-api.md +183 -0
  473. package/tests/sources/_bmad/tea/workflows/testarch/automate/steps-c/step-03b-subprocess-e2e.md +213 -0
  474. package/tests/sources/_bmad/tea/workflows/testarch/automate/steps-c/step-03c-aggregate.md +300 -0
  475. package/tests/sources/_bmad/tea/workflows/testarch/automate/steps-c/step-04-validate-and-summarize.md +71 -0
  476. package/tests/sources/_bmad/tea/workflows/testarch/automate/steps-e/step-01-assess.md +65 -0
  477. package/tests/sources/_bmad/tea/workflows/testarch/automate/steps-e/step-02-apply-edit.md +60 -0
  478. package/tests/sources/_bmad/tea/workflows/testarch/automate/steps-v/step-01-validate.md +67 -0
  479. package/tests/sources/_bmad/tea/workflows/testarch/automate/validation-report-20260127-095021.md +72 -0
  480. package/tests/sources/_bmad/tea/workflows/testarch/automate/validation-report-20260127-102401.md +114 -0
  481. package/tests/sources/_bmad/tea/workflows/testarch/automate/workflow-plan.md +20 -0
  482. package/tests/sources/_bmad/tea/workflows/testarch/automate/workflow.md +39 -0
  483. package/tests/sources/_bmad/tea/workflows/testarch/automate/workflow.yaml +53 -0
  484. package/tests/sources/_bmad/tea/workflows/testarch/ci/checklist.md +247 -0
  485. package/tests/sources/_bmad/tea/workflows/testarch/ci/github-actions-template.yaml +198 -0
  486. package/tests/sources/_bmad/tea/workflows/testarch/ci/gitlab-ci-template.yaml +149 -0
  487. package/tests/sources/_bmad/tea/workflows/testarch/ci/instructions.md +38 -0
  488. package/tests/sources/_bmad/tea/workflows/testarch/ci/steps-c/step-01-preflight.md +92 -0
  489. package/tests/sources/_bmad/tea/workflows/testarch/ci/steps-c/step-02-generate-pipeline.md +82 -0
  490. package/tests/sources/_bmad/tea/workflows/testarch/ci/steps-c/step-03-configure-quality-gates.md +75 -0
  491. package/tests/sources/_bmad/tea/workflows/testarch/ci/steps-c/step-04-validate-and-summary.md +67 -0
  492. package/tests/sources/_bmad/tea/workflows/testarch/ci/steps-e/step-01-assess.md +65 -0
  493. package/tests/sources/_bmad/tea/workflows/testarch/ci/steps-e/step-02-apply-edit.md +60 -0
  494. package/tests/sources/_bmad/tea/workflows/testarch/ci/steps-v/step-01-validate.md +67 -0
  495. package/tests/sources/_bmad/tea/workflows/testarch/ci/validation-report-20260127-095021.md +72 -0
  496. package/tests/sources/_bmad/tea/workflows/testarch/ci/validation-report-20260127-102401.md +114 -0
  497. package/tests/sources/_bmad/tea/workflows/testarch/ci/workflow-plan.md +20 -0
  498. package/tests/sources/_bmad/tea/workflows/testarch/ci/workflow.md +39 -0
  499. package/tests/sources/_bmad/tea/workflows/testarch/ci/workflow.yaml +46 -0
  500. package/tests/sources/_bmad/tea/workflows/testarch/framework/checklist.md +320 -0
  501. package/tests/sources/_bmad/tea/workflows/testarch/framework/instructions.md +38 -0
  502. package/tests/sources/_bmad/tea/workflows/testarch/framework/steps-c/step-01-preflight.md +75 -0
  503. package/tests/sources/_bmad/tea/workflows/testarch/framework/steps-c/step-02-select-framework.md +73 -0
  504. package/tests/sources/_bmad/tea/workflows/testarch/framework/steps-c/step-03-scaffold-framework.md +120 -0
  505. package/tests/sources/_bmad/tea/workflows/testarch/framework/steps-c/step-04-docs-and-scripts.md +70 -0
  506. package/tests/sources/_bmad/tea/workflows/testarch/framework/steps-c/step-05-validate-and-summary.md +68 -0
  507. package/tests/sources/_bmad/tea/workflows/testarch/framework/steps-e/step-01-assess.md +65 -0
  508. package/tests/sources/_bmad/tea/workflows/testarch/framework/steps-e/step-02-apply-edit.md +60 -0
  509. package/tests/sources/_bmad/tea/workflows/testarch/framework/steps-v/step-01-validate.md +67 -0
  510. package/tests/sources/_bmad/tea/workflows/testarch/framework/validation-report-20260127-095021.md +73 -0
  511. package/tests/sources/_bmad/tea/workflows/testarch/framework/validation-report-20260127-102401.md +116 -0
  512. package/tests/sources/_bmad/tea/workflows/testarch/framework/workflow-plan.md +22 -0
  513. package/tests/sources/_bmad/tea/workflows/testarch/framework/workflow.md +39 -0
  514. package/tests/sources/_bmad/tea/workflows/testarch/framework/workflow.yaml +48 -0
  515. package/tests/sources/_bmad/tea/workflows/testarch/nfr-assess/checklist.md +407 -0
  516. package/tests/sources/_bmad/tea/workflows/testarch/nfr-assess/instructions.md +36 -0
  517. package/tests/sources/_bmad/tea/workflows/testarch/nfr-assess/nfr-report-template.md +462 -0
  518. package/tests/sources/_bmad/tea/workflows/testarch/nfr-assess/steps-c/step-01-load-context.md +101 -0
  519. package/tests/sources/_bmad/tea/workflows/testarch/nfr-assess/steps-c/step-02-define-thresholds.md +82 -0
  520. package/tests/sources/_bmad/tea/workflows/testarch/nfr-assess/steps-c/step-03-gather-evidence.md +83 -0
  521. package/tests/sources/_bmad/tea/workflows/testarch/nfr-assess/steps-c/step-04-evaluate-and-score.md +140 -0
  522. package/tests/sources/_bmad/tea/workflows/testarch/nfr-assess/steps-c/step-04a-subprocess-security.md +138 -0
  523. package/tests/sources/_bmad/tea/workflows/testarch/nfr-assess/steps-c/step-04b-subprocess-performance.md +84 -0
  524. package/tests/sources/_bmad/tea/workflows/testarch/nfr-assess/steps-c/step-04c-subprocess-reliability.md +85 -0
  525. package/tests/sources/_bmad/tea/workflows/testarch/nfr-assess/steps-c/step-04d-subprocess-scalability.md +88 -0
  526. package/tests/sources/_bmad/tea/workflows/testarch/nfr-assess/steps-c/step-04e-aggregate-nfr.md +219 -0
  527. package/tests/sources/_bmad/tea/workflows/testarch/nfr-assess/steps-c/step-05-generate-report.md +73 -0
  528. package/tests/sources/_bmad/tea/workflows/testarch/nfr-assess/steps-e/step-01-assess.md +65 -0
  529. package/tests/sources/_bmad/tea/workflows/testarch/nfr-assess/steps-e/step-02-apply-edit.md +60 -0
  530. package/tests/sources/_bmad/tea/workflows/testarch/nfr-assess/steps-v/step-01-validate.md +67 -0
  531. package/tests/sources/_bmad/tea/workflows/testarch/nfr-assess/validation-report-20260127-095021.md +73 -0
  532. package/tests/sources/_bmad/tea/workflows/testarch/nfr-assess/validation-report-20260127-102401.md +116 -0
  533. package/tests/sources/_bmad/tea/workflows/testarch/nfr-assess/workflow-plan.md +19 -0
  534. package/tests/sources/_bmad/tea/workflows/testarch/nfr-assess/workflow.md +39 -0
  535. package/tests/sources/_bmad/tea/workflows/testarch/nfr-assess/workflow.yaml +48 -0
  536. package/tests/sources/_bmad/tea/workflows/testarch/teach-me-testing/checklist.md +197 -0
  537. package/tests/sources/_bmad/tea/workflows/testarch/teach-me-testing/data/curriculum.yaml +129 -0
  538. package/tests/sources/_bmad/tea/workflows/testarch/teach-me-testing/data/quiz-questions.yaml +206 -0
  539. package/tests/sources/_bmad/tea/workflows/testarch/teach-me-testing/data/role-paths.yaml +136 -0
  540. package/tests/sources/_bmad/tea/workflows/testarch/teach-me-testing/data/session-content-map.yaml +207 -0
  541. package/tests/sources/_bmad/tea/workflows/testarch/teach-me-testing/data/tea-resources-index.yaml +359 -0
  542. package/tests/sources/_bmad/tea/workflows/testarch/teach-me-testing/instructions.md +130 -0
  543. package/tests/sources/_bmad/tea/workflows/testarch/teach-me-testing/steps-c/step-01-init.md +235 -0
  544. package/tests/sources/_bmad/tea/workflows/testarch/teach-me-testing/steps-c/step-01b-continue.md +147 -0
  545. package/tests/sources/_bmad/tea/workflows/testarch/teach-me-testing/steps-c/step-02-assess.md +258 -0
  546. package/tests/sources/_bmad/tea/workflows/testarch/teach-me-testing/steps-c/step-03-session-menu.md +219 -0
  547. package/tests/sources/_bmad/tea/workflows/testarch/teach-me-testing/steps-c/step-04-session-01.md +460 -0
  548. package/tests/sources/_bmad/tea/workflows/testarch/teach-me-testing/steps-c/step-04-session-02.md +465 -0
  549. package/tests/sources/_bmad/tea/workflows/testarch/teach-me-testing/steps-c/step-04-session-03.md +301 -0
  550. package/tests/sources/_bmad/tea/workflows/testarch/teach-me-testing/steps-c/step-04-session-04.md +234 -0
  551. package/tests/sources/_bmad/tea/workflows/testarch/teach-me-testing/steps-c/step-04-session-05.md +234 -0
  552. package/tests/sources/_bmad/tea/workflows/testarch/teach-me-testing/steps-c/step-04-session-06.md +209 -0
  553. package/tests/sources/_bmad/tea/workflows/testarch/teach-me-testing/steps-c/step-04-session-07.md +212 -0
  554. package/tests/sources/_bmad/tea/workflows/testarch/teach-me-testing/steps-c/step-05-completion.md +339 -0
  555. package/tests/sources/_bmad/tea/workflows/testarch/teach-me-testing/steps-e/step-e-01-assess-workflow.md +141 -0
  556. package/tests/sources/_bmad/tea/workflows/testarch/teach-me-testing/steps-e/step-e-02-apply-edits.md +122 -0
  557. package/tests/sources/_bmad/tea/workflows/testarch/teach-me-testing/steps-v/step-v-01-validate.md +263 -0
  558. package/tests/sources/_bmad/tea/workflows/testarch/teach-me-testing/templates/certificate-template.md +86 -0
  559. package/tests/sources/_bmad/tea/workflows/testarch/teach-me-testing/templates/progress-template.yaml +95 -0
  560. package/tests/sources/_bmad/tea/workflows/testarch/teach-me-testing/templates/session-notes-template.md +83 -0
  561. package/tests/sources/_bmad/tea/workflows/testarch/teach-me-testing/workflow-plan-teach-me-testing.md +950 -0
  562. package/tests/sources/_bmad/tea/workflows/testarch/teach-me-testing/workflow.md +90 -0
  563. package/tests/sources/_bmad/tea/workflows/testarch/test-design/checklist.md +453 -0
  564. package/tests/sources/_bmad/tea/workflows/testarch/test-design/instructions.md +98 -0
  565. package/tests/sources/_bmad/tea/workflows/testarch/test-design/steps-c/step-01-detect-mode.md +109 -0
  566. package/tests/sources/_bmad/tea/workflows/testarch/test-design/steps-c/step-02-load-context.md +153 -0
  567. package/tests/sources/_bmad/tea/workflows/testarch/test-design/steps-c/step-03-risk-and-testability.md +85 -0
  568. package/tests/sources/_bmad/tea/workflows/testarch/test-design/steps-c/step-04-coverage-plan.md +98 -0
  569. package/tests/sources/_bmad/tea/workflows/testarch/test-design/steps-c/step-05-generate-output.md +99 -0
  570. package/tests/sources/_bmad/tea/workflows/testarch/test-design/steps-e/step-01-assess.md +65 -0
  571. package/tests/sources/_bmad/tea/workflows/testarch/test-design/steps-e/step-02-apply-edit.md +60 -0
  572. package/tests/sources/_bmad/tea/workflows/testarch/test-design/steps-v/step-01-validate.md +67 -0
  573. package/tests/sources/_bmad/tea/workflows/testarch/test-design/test-design-architecture-template.md +222 -0
  574. package/tests/sources/_bmad/tea/workflows/testarch/test-design/test-design-qa-template.md +388 -0
  575. package/tests/sources/_bmad/tea/workflows/testarch/test-design/test-design-template.md +338 -0
  576. package/tests/sources/_bmad/tea/workflows/testarch/test-design/validation-report-20260127-095021.md +73 -0
  577. package/tests/sources/_bmad/tea/workflows/testarch/test-design/validation-report-20260127-102401.md +116 -0
  578. package/tests/sources/_bmad/tea/workflows/testarch/test-design/workflow-plan.md +22 -0
  579. package/tests/sources/_bmad/tea/workflows/testarch/test-design/workflow.md +39 -0
  580. package/tests/sources/_bmad/tea/workflows/testarch/test-design/workflow.yaml +70 -0
  581. package/tests/sources/_bmad/tea/workflows/testarch/test-review/checklist.md +472 -0
  582. package/tests/sources/_bmad/tea/workflows/testarch/test-review/instructions.md +36 -0
  583. package/tests/sources/_bmad/tea/workflows/testarch/test-review/steps-c/step-01-load-context.md +109 -0
  584. package/tests/sources/_bmad/tea/workflows/testarch/test-review/steps-c/step-02-discover-tests.md +88 -0
  585. package/tests/sources/_bmad/tea/workflows/testarch/test-review/steps-c/step-03-quality-evaluation.md +184 -0
  586. package/tests/sources/_bmad/tea/workflows/testarch/test-review/steps-c/step-03a-subprocess-determinism.md +214 -0
  587. package/tests/sources/_bmad/tea/workflows/testarch/test-review/steps-c/step-03b-subprocess-isolation.md +125 -0
  588. package/tests/sources/_bmad/tea/workflows/testarch/test-review/steps-c/step-03c-subprocess-maintainability.md +102 -0
  589. package/tests/sources/_bmad/tea/workflows/testarch/test-review/steps-c/step-03d-subprocess-coverage.md +111 -0
  590. package/tests/sources/_bmad/tea/workflows/testarch/test-review/steps-c/step-03e-subprocess-performance.md +117 -0
  591. package/tests/sources/_bmad/tea/workflows/testarch/test-review/steps-c/step-03f-aggregate-scores.md +246 -0
  592. package/tests/sources/_bmad/tea/workflows/testarch/test-review/steps-c/step-04-generate-report.md +75 -0
  593. package/tests/sources/_bmad/tea/workflows/testarch/test-review/steps-e/step-01-assess.md +65 -0
  594. package/tests/sources/_bmad/tea/workflows/testarch/test-review/steps-e/step-02-apply-edit.md +60 -0
  595. package/tests/sources/_bmad/tea/workflows/testarch/test-review/steps-v/step-01-validate.md +67 -0
  596. package/tests/sources/_bmad/tea/workflows/testarch/test-review/test-review-template.md +390 -0
  597. package/tests/sources/_bmad/tea/workflows/testarch/test-review/validation-report-20260127-095021.md +72 -0
  598. package/tests/sources/_bmad/tea/workflows/testarch/test-review/validation-report-20260127-102401.md +114 -0
  599. package/tests/sources/_bmad/tea/workflows/testarch/test-review/workflow-plan.md +18 -0
  600. package/tests/sources/_bmad/tea/workflows/testarch/test-review/workflow.md +39 -0
  601. package/tests/sources/_bmad/tea/workflows/testarch/test-review/workflow.yaml +47 -0
  602. package/tests/sources/_bmad/tea/workflows/testarch/trace/checklist.md +642 -0
  603. package/tests/sources/_bmad/tea/workflows/testarch/trace/instructions.md +36 -0
  604. package/tests/sources/_bmad/tea/workflows/testarch/trace/steps-c/step-01-load-context.md +80 -0
  605. package/tests/sources/_bmad/tea/workflows/testarch/trace/steps-c/step-02-discover-tests.md +69 -0
  606. package/tests/sources/_bmad/tea/workflows/testarch/trace/steps-c/step-03-map-criteria.md +65 -0
  607. package/tests/sources/_bmad/tea/workflows/testarch/trace/steps-c/step-04-analyze-gaps.md +244 -0
  608. package/tests/sources/_bmad/tea/workflows/testarch/trace/steps-c/step-05-gate-decision.md +232 -0
  609. package/tests/sources/_bmad/tea/workflows/testarch/trace/steps-e/step-01-assess.md +65 -0
  610. package/tests/sources/_bmad/tea/workflows/testarch/trace/steps-e/step-02-apply-edit.md +60 -0
  611. package/tests/sources/_bmad/tea/workflows/testarch/trace/steps-v/step-01-validate.md +67 -0
  612. package/tests/sources/_bmad/tea/workflows/testarch/trace/trace-template.md +675 -0
  613. package/tests/sources/_bmad/tea/workflows/testarch/trace/validation-report-20260127-095021.md +73 -0
  614. package/tests/sources/_bmad/tea/workflows/testarch/trace/validation-report-20260127-102401.md +116 -0
  615. package/tests/sources/_bmad/tea/workflows/testarch/trace/workflow-plan.md +21 -0
  616. package/tests/sources/_bmad/tea/workflows/testarch/trace/workflow.md +39 -0
  617. package/tests/sources/_bmad/tea/workflows/testarch/trace/workflow.yaml +56 -0
  618. package/tsconfig.json +20 -0
  619. package/dist/parsers/agent-parser.d.ts +0 -3
  620. package/dist/parsers/agent-parser.d.ts.map +0 -1
  621. package/dist/parsers/agent-parser.js +0 -143
  622. package/dist/parsers/agent-parser.js.map +0 -1
  623. package/dist/parsers/workflow-parser.d.ts +0 -3
  624. package/dist/parsers/workflow-parser.d.ts.map +0 -1
  625. package/dist/parsers/workflow-parser.js +0 -88
  626. package/dist/parsers/workflow-parser.js.map +0 -1
  627. package/dist/parsers/yaml-parser.d.ts +0 -5
  628. package/dist/parsers/yaml-parser.d.ts.map +0 -1
  629. package/dist/parsers/yaml-parser.js +0 -65
  630. package/dist/parsers/yaml-parser.js.map +0 -1
package/README.md CHANGED
@@ -1,30 +1,40 @@
1
- # BMAD to OpenCode Converter
1
+ # BMAD Multi-Target Converter
2
2
 
3
- Convert [BMAD-METHOD](https://github.com/bmad-code-org/BMAD-METHOD) modules to [OpenCode](https://opencode.ai) plugins.
3
+ Convert [BMAD-METHOD](https://github.com/bmad-code-org/BMAD-METHOD) modules to multiple AI IDE formats:
4
+
5
+ - **OpenCode** (`.opencode/`) — [OpenCode](https://opencode.ai) agents & skills
6
+ - **Claude Code** (`.claude/`) — Claude Code agents & skills
7
+ - **Agents** (`.agents/`) — Cross-IDE compatible format
4
8
 
5
9
  ## Installation
6
10
 
7
11
  ```bash
8
- npx bmad-opencode-converter --source <bmad-dir> --output <output-dir>
12
+ npx bmad-opencode-converter --source <bmad-dir> --output <output-dir> --target <format>
9
13
  ```
10
14
 
11
15
  Or install globally:
12
16
 
13
17
  ```bash
14
18
  npm install -g bmad-opencode-converter
15
- bmad-convert --source <bmad-dir> --output <output-dir>
19
+ bmad-convert --source <bmad-dir> --output <output-dir> --target claude
16
20
  ```
17
21
 
18
22
  ## Usage
19
23
 
20
- ### Convert BMAD to OpenCode
24
+ ### Convert BMAD to Different Formats
21
25
 
22
26
  ```bash
23
- # Convert from _bmad directory to current project
24
- npx bmad-opencode-converter --source ./_bmad --output ./ --verbose
27
+ # Default: Convert to OpenCode format
28
+ npx bmad-opencode-converter --source ./_bmad --output ./
29
+
30
+ # Convert to Claude Code format
31
+ npx bmad-opencode-converter --source ./_bmad --output ./ --target claude
25
32
 
26
- # Convert to a specific output directory
27
- npx bmad-opencode-converter -s ./_bmad -o ./my-opencode-project -v
33
+ # Convert to cross-IDE Agents format
34
+ npx bmad-opencode-converter -s ./_bmad -o ./ -t agents
35
+
36
+ # With verbose output
37
+ npx bmad-opencode-converter -s ./_bmad -o ./ -t claude -v
28
38
  ```
29
39
 
30
40
  ### Options
@@ -32,39 +42,40 @@ npx bmad-opencode-converter -s ./_bmad -o ./my-opencode-project -v
32
42
  | Option | Short | Description |
33
43
  |--------|-------|-------------|
34
44
  | `--source` | `-s` | Path to BMAD `_bmad` directory |
35
- | `--output` | `-o` | Output directory for OpenCode files |
45
+ | `--output` | `-o` | Output directory for generated files |
46
+ | `--target` | `-t` | Target format: `opencode` (default), `claude`, `agents` |
36
47
  | `--verbose` | `-v` | Show detailed conversion progress |
37
48
  | `--help` | `-h` | Show help message |
38
49
 
39
50
  ## Conversion Mapping
40
51
 
41
- | BMAD Component | OpenCode Output |
42
- |----------------|-----------------|
43
- | Agent (persona, menu, rules) | `.opencode/agents/*.md` + `.opencode/skills/*/SKILL.md` |
44
- | Workflow (yaml + instructions) | `.opencode/skills/*/SKILL.md` |
45
- | Task (standalone instructions) | `.opencode/skills/*/SKILL.md` |
52
+ | BMAD Component | Output Per Target |
53
+ |----------------|-------------------|
54
+ | Agent | Agent definition + agent-derived skill (with owned workflow/task skills in `skills[]`) |
55
+ | Workflow | Skill with step-by-step instructions |
56
+ | Task | Skill with task instructions |
46
57
 
47
- ## Output Structure
58
+ ### Output Structure by Target
48
59
 
49
- After conversion, your project will have:
60
+ **OpenCode** (`--target opencode`):
61
+ ```
62
+ .opencode/
63
+ ├── agents/{module}-{name}.md
64
+ └── skills/{skill-name}/SKILL.md
65
+ ```
66
+
67
+ **Claude Code** (`--target claude`):
68
+ ```
69
+ .claude/
70
+ ├── agents/{module}-{name}.md
71
+ └── skills/{skill-name}/SKILL.md
72
+ ```
50
73
 
74
+ **Agents** (`--target agents`):
51
75
  ```
52
- your-project/
53
- ├── .opencode/
54
- │ ├── agents/ # OpenCode agent definitions
55
- │ │ ├── bmm-dev.md
56
- │ │ ├── bmm-pm.md
57
- │ │ ├── cis-storyteller.md
58
- │ │ └── ...
59
- │ └── skills/ # OpenCode skill definitions
60
- │ ├── bmad-bmm-dev-story/
61
- │ │ └── SKILL.md
62
- │ ├── bmad-bmm-create-prd/
63
- │ │ └── SKILL.md
64
- │ ├── bmad-cis-storytelling/
65
- │ │ └── SKILL.md
66
- │ └── ...
67
- └── ...
76
+ .agents/
77
+ ├── agents/{module}-{name}.md
78
+ └── skills/{skill-name}/SKILL.md
68
79
  ```
69
80
 
70
81
  ---
@@ -180,11 +191,13 @@ To distribute as an npm package, add to your `opencode.json`:
180
191
  # 1. Install BMAD to your project
181
192
  npx bmad-method install
182
193
 
183
- # 2. Convert to OpenCode format
184
- npx bmad-opencode-converter --source ./_bmad --output ./ --verbose
194
+ # 2. Convert to your preferred format
195
+ npx bmad-opencode-converter --source ./_bmad --output ./ --target opencode --verbose
196
+ npx bmad-opencode-converter --source ./_bmad --output ./ --target claude --verbose
185
197
 
186
- # 3. Start OpenCode
187
- opencode
198
+ # 3. Start your IDE
199
+ opencode # for OpenCode target
200
+ claude # for Claude Code target
188
201
 
189
202
  # 4. Use converted agents
190
203
  # Type: @bmm-pm help me define the product requirements
@@ -257,7 +270,7 @@ git clone <repo-url>
257
270
  cd bmad-opencode-converter
258
271
  npm install
259
272
 
260
- # Run tests with sample data
273
+ # Run tests (all three targets)
261
274
  npm test
262
275
 
263
276
  # Build for distribution
package/dist/cli.js CHANGED
@@ -1,8 +1,10 @@
1
1
  #!/usr/bin/env node
2
2
  import { convert } from './converter.js';
3
+ const VALID_TARGETS = ['opencode', 'claude', 'agents'];
3
4
  function parseArgs(args) {
4
5
  let source = '';
5
6
  let output = '';
7
+ let target = 'opencode';
6
8
  let verbose = false;
7
9
  for (let i = 0; i < args.length; i++) {
8
10
  const arg = args[i];
@@ -12,6 +14,14 @@ function parseArgs(args) {
12
14
  else if (arg === '--output' || arg === '-o') {
13
15
  output = args[++i] || '';
14
16
  }
17
+ else if (arg === '--target' || arg === '-t') {
18
+ const val = args[++i] || '';
19
+ if (!VALID_TARGETS.includes(val)) {
20
+ console.error(`Error: Invalid target '${val}'. Must be one of: ${VALID_TARGETS.join(', ')}`);
21
+ process.exit(1);
22
+ }
23
+ target = val;
24
+ }
15
25
  else if (arg === '--verbose' || arg === '-v') {
16
26
  verbose = true;
17
27
  }
@@ -20,28 +30,35 @@ function parseArgs(args) {
20
30
  process.exit(0);
21
31
  }
22
32
  }
23
- return { source, output, verbose };
33
+ return { source, output, target, verbose };
24
34
  }
25
35
  function printHelp() {
26
36
  console.log(`
27
- BMAD to OpenCode Converter
37
+ BMAD Module Converter
28
38
 
29
39
  Usage: bmad-convert --source <dir> --output <dir> [options]
30
40
 
31
41
  Options:
32
- -s, --source <dir> Path to BMAD _bmad directory
33
- -o, --output <dir> Output directory for OpenCode files
34
- -v, --verbose Enable verbose output
35
- -h, --help Show this help message
42
+ -s, --source <dir> Path to BMAD _bmad directory
43
+ -o, --output <dir> Output directory
44
+ -t, --target <format> Target format: opencode (default), claude, agents
45
+ -v, --verbose Enable verbose output
46
+ -h, --help Show this help message
47
+
48
+ Targets:
49
+ opencode Output to .opencode/ (OpenCode agents + skills)
50
+ claude Output to .claude/ (Claude Code agents + skills)
51
+ agents Output to .agents/ (Cross-IDE agents + skills)
36
52
 
37
53
  Examples:
38
54
  bmad-convert --source ./_bmad --output ./
39
- bmad-convert -s tests/sources/_bmad -o tests/output -v
55
+ bmad-convert -s ./_bmad -o ./ -t claude
56
+ bmad-convert -s tests/sources/_bmad -o tests/output -t agents -v
40
57
  `);
41
58
  }
42
59
  async function main() {
43
60
  const args = process.argv.slice(2);
44
- const { source, output, verbose } = parseArgs(args);
61
+ const { source, output, target, verbose } = parseArgs(args);
45
62
  if (!source || !output) {
46
63
  console.error('Error: Both --source and --output are required');
47
64
  printHelp();
@@ -51,6 +68,7 @@ async function main() {
51
68
  const result = await convert({
52
69
  sourceDir: source,
53
70
  outputDir: output,
71
+ target,
54
72
  verbose,
55
73
  });
56
74
  if (result.errors.length > 0) {
@@ -61,7 +79,8 @@ async function main() {
61
79
  process.exit(1);
62
80
  }
63
81
  if (!verbose) {
64
- console.log(`Converted ${result.agents.length} agents and ${result.skills.length} skills to ${output}`);
82
+ const formatLabel = target === 'opencode' ? '.opencode/' : target === 'claude' ? '.claude/' : '.agents/';
83
+ console.log(`Converted ${result.agentCount} agents and ${result.skillCount} skills to ${formatLabel} in ${output}`);
65
84
  }
66
85
  }
67
86
  catch (err) {
package/dist/cli.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"cli.js","sourceRoot":"","sources":["../src/cli.ts"],"names":[],"mappings":";AAEA,OAAO,EAAE,OAAO,EAAE,MAAM,gBAAgB,CAAC;AAEzC,SAAS,SAAS,CAAC,IAAc;IAC/B,IAAI,MAAM,GAAG,EAAE,CAAC;IAChB,IAAI,MAAM,GAAG,EAAE,CAAC;IAChB,IAAI,OAAO,GAAG,KAAK,CAAC;IAEpB,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,IAAI,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE,CAAC;QACrC,MAAM,GAAG,GAAG,IAAI,CAAC,CAAC,CAAC,CAAC;QACpB,IAAI,GAAG,KAAK,UAAU,IAAI,GAAG,KAAK,IAAI,EAAE,CAAC;YACvC,MAAM,GAAG,IAAI,CAAC,EAAE,CAAC,CAAC,IAAI,EAAE,CAAC;QAC3B,CAAC;aAAM,IAAI,GAAG,KAAK,UAAU,IAAI,GAAG,KAAK,IAAI,EAAE,CAAC;YAC9C,MAAM,GAAG,IAAI,CAAC,EAAE,CAAC,CAAC,IAAI,EAAE,CAAC;QAC3B,CAAC;aAAM,IAAI,GAAG,KAAK,WAAW,IAAI,GAAG,KAAK,IAAI,EAAE,CAAC;YAC/C,OAAO,GAAG,IA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O,CAAC;YAC3B,SAAS,EAAE,MAAM;YACjB,SAAS,EAAE,MAAM;YACjB,MAAM;YACN,OAAO;SACR,CAAC,CAAC;QAEH,IAAI,MAAM,CAAC,MAAM,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC;YAC7B,OAAO,CAAC,KAAK,CAAC,WAAW,CAAC,CAAC;YAC3B,KAAK,MAAM,KAAK,IAAI,MAAM,CAAC,MAAM,EAAE,CAAC;gBAClC,OAAO,CAAC,KAAK,CAAC,OAAO,KAAK,EAAE,CAAC,CAAC;YAChC,CAAC;YACD,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;QAClB,CAAC;QAED,IAAI,CAAC,OAAO,EAAE,CAAC;YACb,MAAM,WAAW,GAAG,MAAM,KAAK,UAAU,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,CAAC,MAAM,KAAK,QAAQ,CAAC,CAAC,CAAC,UAAU,CAAC,CAAC,CAAC,UAAU,CAAC;YACzG,OAAO,CAAC,GAAG,CAAC,aAAa,MAAM,CAAC,UAAU,eAAe,MAAM,CAAC,UAAU,cAAc,WAAW,OAAO,MAAM,EAAE,CAAC,CAAC;QACtH,CAAC;IACH,CAAC;IAAC,OAAO,GAAG,EAAE,CAAC;QACb,OAAO,CAAC,KAAK,CAAC,oBAAoB,EAAE,GAAG,CAAC,CAAC;QACzC,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;IAClB,CAAC;AACH,CAAC;AAED,IAAI,EAAE,CAAC"}
@@ -1,8 +1,10 @@
1
- import type { OpenCodeConversionResult } from './types/index.js';
2
- export interface ConversionOptions {
1
+ import type { ConversionTarget, ConversionResult } from './types/opencode.js';
2
+ export type { ConversionTarget };
3
+ export interface ConvertOptions {
3
4
  sourceDir: string;
4
5
  outputDir: string;
6
+ target: ConversionTarget;
5
7
  verbose?: boolean;
6
8
  }
7
- export declare function convert(options: ConversionOptions): Promise<OpenCodeConversionResult>;
9
+ export declare function convert(options: ConvertOptions): Promise<ConversionResult>;
8
10
  //# sourceMappingURL=converter.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"converter.d.ts","sourceRoot":"","sources":["../src/converter.ts"],"names":[],"mappings":"AAUA,OAAO,KAAK,EAAE,wBAAwB,EAAgC,MAAM,kBAAkB,CAAC;AAQ/F,MAAM,WAAW,iBAAiB;IAChC,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,EAAE,MAAM,CAAC;IAClB,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB;AAqKD,wBAAsB,OAAO,CAAC,OAAO,EAAE,iBAAiB,GAAG,OAAO,CAAC,wBAAwB,CAAC,CA+E3F"}
1
+ {"version":3,"file":"converter.d.ts","sourceRoot":"","sources":["../src/converter.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAgC,gBAAgB,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AAE5G,YAAY,EAAE,gBAAgB,EAAE,CAAC;AAEjC,MAAM,WAAW,cAAc;IAC7B,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,EAAE,MAAM,CAAC;IAClB,MAAM,EAAE,gBAAgB,CAAC;IACzB,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB;AAED,wBAAsB,OAAO,CAAC,OAAO,EAAE,cAAc,GAAG,OAAO,CAAC,gBAAgB,CAAC,CAuFhF"}
package/dist/converter.js CHANGED
@@ -1,211 +1,81 @@
1
- import * as fs from 'node:fs';
2
- import * as path from 'node:path';
3
- import { parseAgentManifest, parseWorkflowManifest, parseTaskManifest } from './parsers/index.js';
4
- import { parseAgent } from './parsers/agent-parser.js';
5
- import { parseWorkflow } from './parsers/workflow-parser.js';
6
- import { convertAgents } from './converters/agent-converter.js';
7
- import { convertWorkflows } from './converters/workflow-converter.js';
8
- import { convertTasks } from './converters/task-converter.js';
9
- function readFileIfExists(filePath) {
10
- try {
11
- return fs.readFileSync(filePath, 'utf-8');
12
- }
13
- catch {
14
- return null;
15
- }
16
- }
17
- function normalizeManifestPath(manifestPath) {
18
- return manifestPath.replace(/^_bmad\//, '');
19
- }
20
- function loadAgents(sourceDir, agentManifest, verbose) {
21
- const agents = [];
22
- for (const entry of agentManifest) {
23
- const normalizedPath = normalizeManifestPath(entry.path);
24
- const agentPath = path.join(sourceDir, normalizedPath);
25
- const content = readFileIfExists(agentPath);
26
- if (!content) {
27
- if (verbose)
28
- console.log(` Skipping agent ${entry.name}: file not found at ${agentPath}`);
29
- continue;
30
- }
31
- try {
32
- const agent = parseAgent(content, entry.module, entry.path);
33
- agents.push(agent);
34
- if (verbose)
35
- console.log(` Loaded agent: ${entry.name} (${entry.module})`);
36
- }
37
- catch (err) {
38
- if (verbose)
39
- console.log(` Error parsing agent ${entry.name}: ${err}`);
40
- }
41
- }
42
- return agents;
43
- }
44
- function loadWorkflows(sourceDir, workflowManifest, verbose) {
45
- const workflows = [];
46
- for (const entry of workflowManifest) {
47
- const normalizedPath = normalizeManifestPath(entry.path);
48
- const workflowPath = path.join(sourceDir, normalizedPath);
49
- const isYaml = workflowPath.endsWith('.yaml') || workflowPath.endsWith('.yml');
50
- const configContent = readFileIfExists(workflowPath);
51
- if (!configContent) {
52
- if (verbose)
53
- console.log(` Skipping workflow ${entry.name}: file not found at ${workflowPath}`);
54
- continue;
55
- }
56
- let instructionsContent = null;
57
- let templateContent = null;
58
- if (isYaml) {
59
- const workflowDir = path.dirname(workflowPath);
60
- instructionsContent = readFileIfExists(path.join(workflowDir, 'instructions.md'));
61
- templateContent = readFileIfExists(path.join(workflowDir, 'template.md'));
62
- }
63
- try {
64
- const workflow = parseWorkflow(configContent, instructionsContent, templateContent, entry.module, entry.path, isYaml);
65
- workflows.push(workflow);
66
- if (verbose)
67
- console.log(` Loaded workflow: ${entry.name} (${entry.module})`);
68
- }
69
- catch (err) {
70
- if (verbose)
71
- console.log(` Error parsing workflow ${entry.name}: ${err}`);
1
+ import { parseManifests } from './parsers/manifest-parser.js';
2
+ import { convertAgent } from './converters/agent-converter.js';
3
+ import { convertWorkflow } from './converters/workflow-converter.js';
4
+ import { convertTask } from './converters/task-converter.js';
5
+ import { writeAgents, writeSkills } from './writers/handlebars-writer.js';
6
+ export async function convert(options) {
7
+ const { sourceDir, outputDir, target, verbose = false } = options;
8
+ const log = (msg) => {
9
+ if (verbose) {
10
+ console.log(msg);
72
11
  }
73
- }
74
- return workflows;
75
- }
76
- function loadTasks(sourceDir, taskManifest, verbose) {
77
- const tasks = [];
78
- for (const entry of taskManifest) {
79
- const normalizedPath = normalizeManifestPath(entry.path);
80
- const taskPath = path.join(sourceDir, normalizedPath);
81
- const content = readFileIfExists(taskPath);
82
- if (!content) {
83
- if (verbose)
84
- console.log(` Skipping task ${entry.name}: file not found at ${taskPath}`);
85
- continue;
12
+ };
13
+ const errors = [];
14
+ const agents = [];
15
+ const skills = [];
16
+ try {
17
+ log('Parsing manifests...');
18
+ const manifests = await parseManifests(sourceDir);
19
+ log(`Found ${manifests.agents.length} agents, ${manifests.workflows.length} workflows, ${manifests.tasks.length} tasks`);
20
+ log('\nConverting agents...');
21
+ for (const agentRow of manifests.agents) {
22
+ try {
23
+ const result = await convertAgent(agentRow, sourceDir);
24
+ agents.push(result.agent);
25
+ skills.push(result.skill);
26
+ log(` ✓ ${agentRow.module}/${agentRow.name} → ${result.agent.name} + skill:${result.skill.name}`);
27
+ }
28
+ catch (err) {
29
+ const msg = `Failed to convert agent ${agentRow.name}: ${err}`;
30
+ errors.push(msg);
31
+ log(` ✗ ${msg}`);
32
+ }
86
33
  }
87
- const isXml = taskPath.endsWith('.xml');
88
- tasks.push({
89
- name: entry.name,
90
- displayName: entry.displayName,
91
- description: entry.description,
92
- module: entry.module,
93
- path: entry.path,
94
- standalone: entry.standalone === 'true',
95
- content,
96
- isXml,
97
- });
98
- if (verbose)
99
- console.log(` Loaded task: ${entry.name} (${entry.module})`);
100
- }
101
- return tasks;
102
- }
103
- function writeAgent(outputDir, agent) {
104
- const agentDir = path.join(outputDir, '.opencode', 'agents');
105
- fs.mkdirSync(agentDir, { recursive: true });
106
- const frontmatterLines = ['---'];
107
- frontmatterLines.push(`description: ${JSON.stringify(agent.frontmatter.description)}`);
108
- if (agent.frontmatter.mode)
109
- frontmatterLines.push(`mode: ${agent.frontmatter.mode}`);
110
- if (agent.frontmatter.tools) {
111
- frontmatterLines.push('tools:');
112
- for (const [tool, enabled] of Object.entries(agent.frontmatter.tools)) {
113
- if (enabled !== undefined)
114
- frontmatterLines.push(` ${tool}: ${enabled}`);
34
+ log('\nConverting workflows...');
35
+ for (const workflowRow of manifests.workflows) {
36
+ try {
37
+ const skill = await convertWorkflow(workflowRow, sourceDir);
38
+ skills.push(skill);
39
+ log(` ✓ ${workflowRow.module}/${workflowRow.name} → skill:${skill.name}`);
40
+ }
41
+ catch (err) {
42
+ const msg = `Failed to convert workflow ${workflowRow.name}: ${err}`;
43
+ errors.push(msg);
44
+ log(` ✗ ${msg}`);
45
+ }
115
46
  }
116
- }
117
- frontmatterLines.push('---');
118
- const content = frontmatterLines.join('\n') + '\n\n' + agent.prompt;
119
- fs.writeFileSync(path.join(agentDir, agent.filename), content);
120
- }
121
- function writeSkill(outputDir, skill) {
122
- const skillDir = path.join(outputDir, '.opencode', 'skills', skill.folder);
123
- fs.mkdirSync(skillDir, { recursive: true });
124
- const frontmatterLines = ['---'];
125
- frontmatterLines.push(`name: ${skill.frontmatter.name}`);
126
- frontmatterLines.push(`description: ${JSON.stringify(skill.frontmatter.description)}`);
127
- if (skill.frontmatter.license)
128
- frontmatterLines.push(`license: ${skill.frontmatter.license}`);
129
- if (skill.frontmatter.compatibility)
130
- frontmatterLines.push(`compatibility: ${skill.frontmatter.compatibility}`);
131
- if (skill.frontmatter.metadata) {
132
- frontmatterLines.push('metadata:');
133
- for (const [key, value] of Object.entries(skill.frontmatter.metadata)) {
134
- frontmatterLines.push(` ${key}: ${JSON.stringify(value)}`);
47
+ log('\nConverting tasks...');
48
+ for (const taskRow of manifests.tasks) {
49
+ try {
50
+ const skill = await convertTask(taskRow, sourceDir);
51
+ skills.push(skill);
52
+ log(` ✓ ${taskRow.module}/${taskRow.name} → skill:${skill.name}`);
53
+ }
54
+ catch (err) {
55
+ const msg = `Failed to convert task ${taskRow.name}: ${err}`;
56
+ errors.push(msg);
57
+ log(` ${msg}`);
58
+ }
135
59
  }
60
+ log('\nWriting output files...');
61
+ await writeAgents(agents, outputDir, target);
62
+ await writeSkills(skills, outputDir, target);
63
+ log(`\nConversion complete!`);
64
+ log(` Agents: ${agents.length}`);
65
+ log(` Skills: ${skills.length}`);
66
+ log(` Errors: ${errors.length}`);
67
+ return {
68
+ agents,
69
+ skills,
70
+ agentCount: agents.length,
71
+ skillCount: skills.length,
72
+ errors
73
+ };
136
74
  }
137
- frontmatterLines.push('---');
138
- const content = frontmatterLines.join('\n') + '\n\n' + skill.content;
139
- fs.writeFileSync(path.join(skillDir, 'SKILL.md'), content);
140
- }
141
- export async function convert(options) {
142
- const { sourceDir, outputDir, verbose = false } = options;
143
- const result = {
144
- agents: [],
145
- skills: [],
146
- tools: [],
147
- plugins: [],
148
- warnings: [],
149
- errors: [],
150
- };
151
- if (verbose)
152
- console.log('BMAD to OpenCode Converter');
153
- if (verbose)
154
- console.log('========================\n');
155
- const configDir = path.join(sourceDir, '_config');
156
- const agentManifestContent = readFileIfExists(path.join(configDir, 'agent-manifest.csv'));
157
- const workflowManifestContent = readFileIfExists(path.join(configDir, 'workflow-manifest.csv'));
158
- const taskManifestContent = readFileIfExists(path.join(configDir, 'task-manifest.csv'));
159
- if (!agentManifestContent && !workflowManifestContent && !taskManifestContent) {
160
- result.errors.push(`No manifest files found in ${configDir}`);
161
- return result;
162
- }
163
- if (verbose)
164
- console.log('Loading BMAD assets...\n');
165
- const agentManifest = agentManifestContent ? parseAgentManifest(agentManifestContent) : [];
166
- const workflowManifest = workflowManifestContent ? parseWorkflowManifest(workflowManifestContent) : [];
167
- const taskManifest = taskManifestContent ? parseTaskManifest(taskManifestContent) : [];
168
- if (verbose)
169
- console.log(`Found ${agentManifest.length} agents, ${workflowManifest.length} workflows, ${taskManifest.length} tasks\n`);
170
- if (verbose)
171
- console.log('Loading agents...');
172
- const bmadAgents = loadAgents(sourceDir, agentManifest, verbose);
173
- if (verbose)
174
- console.log('\nLoading workflows...');
175
- const bmadWorkflows = loadWorkflows(sourceDir, workflowManifest, verbose);
176
- if (verbose)
177
- console.log('\nLoading tasks...');
178
- const bmadTasks = loadTasks(sourceDir, taskManifest, verbose);
179
- if (verbose)
180
- console.log('\nConverting to OpenCode format...\n');
181
- const convertedAgents = convertAgents(bmadAgents);
182
- result.agents = convertedAgents.agents;
183
- result.skills.push(...convertedAgents.skills);
184
- const convertedWorkflows = convertWorkflows(bmadWorkflows);
185
- result.skills.push(...convertedWorkflows);
186
- const convertedTasks = convertTasks(bmadTasks);
187
- result.skills.push(...convertedTasks);
188
- if (verbose)
189
- console.log('Writing output files...\n');
190
- fs.mkdirSync(outputDir, { recursive: true });
191
- for (const agent of result.agents) {
192
- writeAgent(outputDir, agent);
193
- if (verbose)
194
- console.log(` Created agent: ${agent.filename}`);
195
- }
196
- for (const skill of result.skills) {
197
- writeSkill(outputDir, skill);
198
- if (verbose)
199
- console.log(` Created skill: ${skill.folder}/SKILL.md`);
200
- }
201
- if (verbose) {
202
- console.log('\nConversion complete!');
203
- console.log(` Agents: ${result.agents.length}`);
204
- console.log(` Skills: ${result.skills.length}`);
205
- console.log(` Tools: ${result.tools.length}`);
206
- console.log(` Warnings: ${result.warnings.length}`);
207
- console.log(` Errors: ${result.errors.length}`);
75
+ catch (err) {
76
+ const msg = `Conversion failed: ${err}`;
77
+ errors.push(msg);
78
+ throw new Error(msg);
208
79
  }
209
- return result;
210
80
  }
211
81
  //# sourceMappingURL=converter.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"converter.js","sourceRoot":"","sources":["../src/converter.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,SAAS,CAAC;AAC9B,OAAO,KAAK,IAAI,MAAM,WAAW,CAAC;AAUlC,OAAO,EAAE,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CAAC,wBAAwB,CAAC,CAAC;QAC9B,GAAG,CAAC,aAAa,MAAM,CAAC,MAAM,EAAE,CAAC,CAAC;QAClC,GAAG,CAAC,aAAa,MAAM,CAAC,MAAM,EAAE,CAAC,CAAC;QAClC,GAAG,CAAC,aAAa,MAAM,CAAC,MAAM,EAAE,CAAC,CAAC;QAElC,OAAO;YACL,MAAM;YACN,MAAM;YACN,UAAU,EAAE,MAAM,CAAC,MAAM;YACzB,UAAU,EAAE,MAAM,CAAC,MAAM;YACzB,MAAM;SACP,CAAC;IAEJ,CAAC;IAAC,OAAO,GAAG,EAAE,CAAC;QACb,MAAM,GAAG,GAAG,sBAAsB,GAAG,EAAE,CAAC;QACxC,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;QACjB,MAAM,IAAI,KAAK,CAAC,GAAG,CAAC,CAAC;IACvB,CAAC;AACH,CAAC"}
@@ -1,11 +1,8 @@
1
- import type { BmadAgent } from '../types/bmad.js';
1
+ import type { BMADAgentManifestRow } from '../types/bmad.js';
2
2
  import type { OpenCodeAgent, OpenCodeSkill } from '../types/opencode.js';
3
- export declare function convertAgent(agent: BmadAgent): {
3
+ export interface AgentConversionResult {
4
4
  agent: OpenCodeAgent;
5
5
  skill: OpenCodeSkill;
6
- };
7
- export declare function convertAgents(agents: BmadAgent[]): {
8
- agents: OpenCodeAgent[];
9
- skills: OpenCodeSkill[];
10
- };
6
+ }
7
+ export declare function convertAgent(manifest: BMADAgentManifestRow, bmadDir: string): Promise<AgentConversionResult>;
11
8
  //# sourceMappingURL=agent-converter.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"agent-converter.d.ts","sourceRoot":"","sources":["../../src/converters/agent-converter.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,KAAK,EAAE,aAAa,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC;AAoHzE,wBAAgB,YAAY,CAAC,KAAK,EAAE,SAAS,GAAG;IAAE,KAAK,EAAE,aAAa,CAAC;IAAC,KAAK,EAAE,aAAa,CAAA;CAAE,CA8C7F;AAED,wBAAgB,aAAa,CAAC,MAAM,EAAE,SAAS,EAAE,GAAG;IAAE,MAAM,EAAE,aAAa,EAAE,CAAC;IAAC,MAAM,EAAE,aAAa,EAAE,CAAA;CAAE,CAavG"}
1
+ {"version":3,"file":"agent-converter.d.ts","sourceRoot":"","sources":["../../src/converters/agent-converter.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,kBAAkB,CAAC;AAC7D,OAAO,KAAK,EAAE,aAAa,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC;AAoEzE,MAAM,WAAW,qBAAqB;IACpC,KAAK,EAAE,aAAa,CAAC;IACrB,KAAK,EAAE,aAAa,CAAC;CACtB;AAED,wBAAsB,YAAY,CAChC,QAAQ,EAAE,oBAAoB,EAC9B,OAAO,EAAE,MAAM,GACd,OAAO,CAAC,qBAAqB,CAAC,CAiChC"}