agentvibes 2.12.7 → 2.12.8

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 (420) hide show
  1. package/README.md +2 -2
  2. package/package.json +1 -1
  3. package/src/installer.js +23 -20
  4. package/.bmad/_cfg/agent-manifest.csv +0 -11
  5. package/.bmad/_cfg/agent-voice-map.csv +0 -11
  6. package/.bmad/_cfg/agents/bmm-analyst.customize.yaml +0 -42
  7. package/.bmad/_cfg/agents/bmm-architect.customize.yaml +0 -42
  8. package/.bmad/_cfg/agents/bmm-dev.customize.yaml +0 -42
  9. package/.bmad/_cfg/agents/bmm-frame-expert.customize.yaml +0 -42
  10. package/.bmad/_cfg/agents/bmm-pm.customize.yaml +0 -42
  11. package/.bmad/_cfg/agents/bmm-sm.customize.yaml +0 -42
  12. package/.bmad/_cfg/agents/bmm-tea.customize.yaml +0 -42
  13. package/.bmad/_cfg/agents/bmm-tech-writer.customize.yaml +0 -42
  14. package/.bmad/_cfg/agents/bmm-ux-designer.customize.yaml +0 -42
  15. package/.bmad/_cfg/agents/core-bmad-master.customize.yaml +0 -42
  16. package/.bmad/_cfg/files-manifest.csv +0 -243
  17. package/.bmad/_cfg/ides/claude-code.yaml +0 -6
  18. package/.bmad/_cfg/manifest.yaml +0 -9
  19. package/.bmad/_cfg/task-manifest.csv +0 -5
  20. package/.bmad/_cfg/tool-manifest.csv +0 -2
  21. package/.bmad/_cfg/workflow-manifest.csv +0 -38
  22. package/.bmad/bmm/README.md +0 -128
  23. package/.bmad/bmm/agents/analyst.md +0 -79
  24. package/.bmad/bmm/agents/analyst.md.backup-pre-tts +0 -75
  25. package/.bmad/bmm/agents/architect.md +0 -80
  26. package/.bmad/bmm/agents/dev.md +0 -70
  27. package/.bmad/bmm/agents/frame-expert.md +0 -72
  28. package/.bmad/bmm/agents/pm.md +0 -84
  29. package/.bmad/bmm/agents/sm.md +0 -93
  30. package/.bmad/bmm/agents/tea.md +0 -80
  31. package/.bmad/bmm/agents/tech-writer.md +0 -84
  32. package/.bmad/bmm/agents/ux-designer.md +0 -79
  33. package/.bmad/bmm/config.yaml +0 -17
  34. package/.bmad/bmm/docs/README.md +0 -236
  35. package/.bmad/bmm/docs/agents-guide.md +0 -1058
  36. package/.bmad/bmm/docs/brownfield-guide.md +0 -762
  37. package/.bmad/bmm/docs/enterprise-agentic-development.md +0 -686
  38. package/.bmad/bmm/docs/faq.md +0 -588
  39. package/.bmad/bmm/docs/glossary.md +0 -320
  40. package/.bmad/bmm/docs/party-mode.md +0 -224
  41. package/.bmad/bmm/docs/quick-spec-flow.md +0 -652
  42. package/.bmad/bmm/docs/quick-start.md +0 -376
  43. package/.bmad/bmm/docs/scale-adaptive-system.md +0 -612
  44. package/.bmad/bmm/docs/test-architecture.md +0 -396
  45. package/.bmad/bmm/docs/workflow-architecture-reference.md +0 -366
  46. package/.bmad/bmm/docs/workflow-document-project-reference.md +0 -489
  47. package/.bmad/bmm/docs/workflows-analysis.md +0 -370
  48. package/.bmad/bmm/docs/workflows-implementation.md +0 -286
  49. package/.bmad/bmm/docs/workflows-planning.md +0 -612
  50. package/.bmad/bmm/docs/workflows-solutioning.md +0 -554
  51. package/.bmad/bmm/teams/default-party.csv +0 -20
  52. package/.bmad/bmm/teams/team-fullstack.yaml +0 -13
  53. package/.bmad/bmm/testarch/knowledge/ci-burn-in.md +0 -675
  54. package/.bmad/bmm/testarch/knowledge/component-tdd.md +0 -486
  55. package/.bmad/bmm/testarch/knowledge/contract-testing.md +0 -957
  56. package/.bmad/bmm/testarch/knowledge/data-factories.md +0 -500
  57. package/.bmad/bmm/testarch/knowledge/email-auth.md +0 -721
  58. package/.bmad/bmm/testarch/knowledge/error-handling.md +0 -725
  59. package/.bmad/bmm/testarch/knowledge/feature-flags.md +0 -750
  60. package/.bmad/bmm/testarch/knowledge/fixture-architecture.md +0 -401
  61. package/.bmad/bmm/testarch/knowledge/network-first.md +0 -486
  62. package/.bmad/bmm/testarch/knowledge/nfr-criteria.md +0 -670
  63. package/.bmad/bmm/testarch/knowledge/playwright-config.md +0 -730
  64. package/.bmad/bmm/testarch/knowledge/probability-impact.md +0 -601
  65. package/.bmad/bmm/testarch/knowledge/risk-governance.md +0 -615
  66. package/.bmad/bmm/testarch/knowledge/selective-testing.md +0 -732
  67. package/.bmad/bmm/testarch/knowledge/selector-resilience.md +0 -527
  68. package/.bmad/bmm/testarch/knowledge/test-healing-patterns.md +0 -644
  69. package/.bmad/bmm/testarch/knowledge/test-levels-framework.md +0 -473
  70. package/.bmad/bmm/testarch/knowledge/test-priorities-matrix.md +0 -373
  71. package/.bmad/bmm/testarch/knowledge/test-quality.md +0 -664
  72. package/.bmad/bmm/testarch/knowledge/timing-debugging.md +0 -372
  73. package/.bmad/bmm/testarch/knowledge/visual-debugging.md +0 -524
  74. package/.bmad/bmm/testarch/tea-index.csv +0 -22
  75. package/.bmad/bmm/workflows/1-analysis/brainstorm-project/instructions.md +0 -112
  76. package/.bmad/bmm/workflows/1-analysis/brainstorm-project/project-context.md +0 -25
  77. package/.bmad/bmm/workflows/1-analysis/brainstorm-project/workflow.yaml +0 -26
  78. package/.bmad/bmm/workflows/1-analysis/domain-research/instructions.md +0 -425
  79. package/.bmad/bmm/workflows/1-analysis/domain-research/template.md +0 -180
  80. package/.bmad/bmm/workflows/1-analysis/domain-research/workflow.yaml +0 -28
  81. package/.bmad/bmm/workflows/1-analysis/product-brief/checklist.md +0 -115
  82. package/.bmad/bmm/workflows/1-analysis/product-brief/instructions.md +0 -524
  83. package/.bmad/bmm/workflows/1-analysis/product-brief/template.md +0 -181
  84. package/.bmad/bmm/workflows/1-analysis/product-brief/workflow.yaml +0 -45
  85. package/.bmad/bmm/workflows/1-analysis/research/checklist-deep-prompt.md +0 -144
  86. package/.bmad/bmm/workflows/1-analysis/research/checklist-technical.md +0 -249
  87. package/.bmad/bmm/workflows/1-analysis/research/checklist.md +0 -299
  88. package/.bmad/bmm/workflows/1-analysis/research/claude-code/injections.yaml +0 -114
  89. package/.bmad/bmm/workflows/1-analysis/research/instructions-deep-prompt.md +0 -438
  90. package/.bmad/bmm/workflows/1-analysis/research/instructions-market.md +0 -675
  91. package/.bmad/bmm/workflows/1-analysis/research/instructions-router.md +0 -134
  92. package/.bmad/bmm/workflows/1-analysis/research/instructions-technical.md +0 -534
  93. package/.bmad/bmm/workflows/1-analysis/research/template-deep-prompt.md +0 -94
  94. package/.bmad/bmm/workflows/1-analysis/research/template-market.md +0 -347
  95. package/.bmad/bmm/workflows/1-analysis/research/template-technical.md +0 -245
  96. package/.bmad/bmm/workflows/1-analysis/research/workflow.yaml +0 -44
  97. package/.bmad/bmm/workflows/2-plan-workflows/create-epics-and-stories/epics-template.md +0 -80
  98. package/.bmad/bmm/workflows/2-plan-workflows/create-epics-and-stories/instructions.md +0 -616
  99. package/.bmad/bmm/workflows/2-plan-workflows/create-epics-and-stories/workflow.yaml +0 -53
  100. package/.bmad/bmm/workflows/2-plan-workflows/create-ux-design/checklist.md +0 -310
  101. package/.bmad/bmm/workflows/2-plan-workflows/create-ux-design/instructions.md +0 -1308
  102. package/.bmad/bmm/workflows/2-plan-workflows/create-ux-design/ux-design-template.md +0 -145
  103. package/.bmad/bmm/workflows/2-plan-workflows/create-ux-design/workflow.yaml +0 -61
  104. package/.bmad/bmm/workflows/2-plan-workflows/prd/checklist.md +0 -346
  105. package/.bmad/bmm/workflows/2-plan-workflows/prd/domain-complexity.csv +0 -13
  106. package/.bmad/bmm/workflows/2-plan-workflows/prd/instructions.md +0 -703
  107. package/.bmad/bmm/workflows/2-plan-workflows/prd/prd-template.md +0 -204
  108. package/.bmad/bmm/workflows/2-plan-workflows/prd/project-types.csv +0 -11
  109. package/.bmad/bmm/workflows/2-plan-workflows/prd/workflow.yaml +0 -52
  110. package/.bmad/bmm/workflows/2-plan-workflows/tech-spec/checklist.md +0 -217
  111. package/.bmad/bmm/workflows/2-plan-workflows/tech-spec/epics-template.md +0 -74
  112. package/.bmad/bmm/workflows/2-plan-workflows/tech-spec/instructions-generate-stories.md +0 -436
  113. package/.bmad/bmm/workflows/2-plan-workflows/tech-spec/instructions.md +0 -980
  114. package/.bmad/bmm/workflows/2-plan-workflows/tech-spec/tech-spec-template.md +0 -181
  115. package/.bmad/bmm/workflows/2-plan-workflows/tech-spec/user-story-template.md +0 -90
  116. package/.bmad/bmm/workflows/2-plan-workflows/tech-spec/workflow.yaml +0 -58
  117. package/.bmad/bmm/workflows/3-solutioning/architecture/architecture-patterns.yaml +0 -321
  118. package/.bmad/bmm/workflows/3-solutioning/architecture/architecture-template.md +0 -103
  119. package/.bmad/bmm/workflows/3-solutioning/architecture/checklist.md +0 -240
  120. package/.bmad/bmm/workflows/3-solutioning/architecture/decision-catalog.yaml +0 -222
  121. package/.bmad/bmm/workflows/3-solutioning/architecture/instructions.md +0 -768
  122. package/.bmad/bmm/workflows/3-solutioning/architecture/pattern-categories.csv +0 -13
  123. package/.bmad/bmm/workflows/3-solutioning/architecture/workflow.yaml +0 -55
  124. package/.bmad/bmm/workflows/3-solutioning/implementation-readiness/checklist.md +0 -169
  125. package/.bmad/bmm/workflows/3-solutioning/implementation-readiness/instructions.md +0 -332
  126. package/.bmad/bmm/workflows/3-solutioning/implementation-readiness/template.md +0 -146
  127. package/.bmad/bmm/workflows/3-solutioning/implementation-readiness/workflow.yaml +0 -62
  128. package/.bmad/bmm/workflows/4-implementation/code-review/backlog_template.md +0 -12
  129. package/.bmad/bmm/workflows/4-implementation/code-review/checklist.md +0 -22
  130. package/.bmad/bmm/workflows/4-implementation/code-review/instructions.md +0 -398
  131. package/.bmad/bmm/workflows/4-implementation/code-review/workflow.yaml +0 -60
  132. package/.bmad/bmm/workflows/4-implementation/correct-course/checklist.md +0 -279
  133. package/.bmad/bmm/workflows/4-implementation/correct-course/instructions.md +0 -206
  134. package/.bmad/bmm/workflows/4-implementation/correct-course/workflow.yaml +0 -56
  135. package/.bmad/bmm/workflows/4-implementation/create-story/checklist.md +0 -240
  136. package/.bmad/bmm/workflows/4-implementation/create-story/instructions.md +0 -256
  137. package/.bmad/bmm/workflows/4-implementation/create-story/template.md +0 -51
  138. package/.bmad/bmm/workflows/4-implementation/create-story/workflow.yaml +0 -71
  139. package/.bmad/bmm/workflows/4-implementation/dev-story/checklist.md +0 -38
  140. package/.bmad/bmm/workflows/4-implementation/dev-story/instructions.md +0 -267
  141. package/.bmad/bmm/workflows/4-implementation/dev-story/workflow.yaml +0 -56
  142. package/.bmad/bmm/workflows/4-implementation/epic-tech-context/checklist.md +0 -17
  143. package/.bmad/bmm/workflows/4-implementation/epic-tech-context/instructions.md +0 -164
  144. package/.bmad/bmm/workflows/4-implementation/epic-tech-context/template.md +0 -76
  145. package/.bmad/bmm/workflows/4-implementation/epic-tech-context/workflow.yaml +0 -57
  146. package/.bmad/bmm/workflows/4-implementation/retrospective/instructions.md +0 -1443
  147. package/.bmad/bmm/workflows/4-implementation/retrospective/workflow.yaml +0 -56
  148. package/.bmad/bmm/workflows/4-implementation/sprint-planning/checklist.md +0 -33
  149. package/.bmad/bmm/workflows/4-implementation/sprint-planning/instructions.md +0 -234
  150. package/.bmad/bmm/workflows/4-implementation/sprint-planning/sprint-status-template.yaml +0 -55
  151. package/.bmad/bmm/workflows/4-implementation/sprint-planning/workflow.yaml +0 -49
  152. package/.bmad/bmm/workflows/4-implementation/story-context/checklist.md +0 -16
  153. package/.bmad/bmm/workflows/4-implementation/story-context/context-template.xml +0 -34
  154. package/.bmad/bmm/workflows/4-implementation/story-context/instructions.md +0 -209
  155. package/.bmad/bmm/workflows/4-implementation/story-context/workflow.yaml +0 -61
  156. package/.bmad/bmm/workflows/4-implementation/story-done/instructions.md +0 -111
  157. package/.bmad/bmm/workflows/4-implementation/story-done/workflow.yaml +0 -26
  158. package/.bmad/bmm/workflows/4-implementation/story-ready/instructions.md +0 -117
  159. package/.bmad/bmm/workflows/4-implementation/story-ready/workflow.yaml +0 -23
  160. package/.bmad/bmm/workflows/document-project/checklist.md +0 -245
  161. package/.bmad/bmm/workflows/document-project/documentation-requirements.csv +0 -12
  162. package/.bmad/bmm/workflows/document-project/instructions.md +0 -222
  163. package/.bmad/bmm/workflows/document-project/templates/deep-dive-template.md +0 -345
  164. package/.bmad/bmm/workflows/document-project/templates/index-template.md +0 -169
  165. package/.bmad/bmm/workflows/document-project/templates/project-overview-template.md +0 -103
  166. package/.bmad/bmm/workflows/document-project/templates/project-scan-report-schema.json +0 -160
  167. package/.bmad/bmm/workflows/document-project/templates/source-tree-template.md +0 -135
  168. package/.bmad/bmm/workflows/document-project/workflow.yaml +0 -29
  169. package/.bmad/bmm/workflows/document-project/workflows/deep-dive-instructions.md +0 -298
  170. package/.bmad/bmm/workflows/document-project/workflows/deep-dive.yaml +0 -31
  171. package/.bmad/bmm/workflows/document-project/workflows/full-scan-instructions.md +0 -1106
  172. package/.bmad/bmm/workflows/document-project/workflows/full-scan.yaml +0 -31
  173. package/.bmad/bmm/workflows/frame-expert/_shared/excalidraw-helpers.md +0 -127
  174. package/.bmad/bmm/workflows/frame-expert/_shared/excalidraw-library.json +0 -90
  175. package/.bmad/bmm/workflows/frame-expert/_shared/excalidraw-templates.yaml +0 -127
  176. package/.bmad/bmm/workflows/frame-expert/_shared/validate-json-instructions.md +0 -79
  177. package/.bmad/bmm/workflows/frame-expert/create-dataflow/checklist.md +0 -39
  178. package/.bmad/bmm/workflows/frame-expert/create-dataflow/instructions.md +0 -131
  179. package/.bmad/bmm/workflows/frame-expert/create-dataflow/workflow.yaml +0 -23
  180. package/.bmad/bmm/workflows/frame-expert/create-diagram/checklist.md +0 -43
  181. package/.bmad/bmm/workflows/frame-expert/create-diagram/instructions.md +0 -142
  182. package/.bmad/bmm/workflows/frame-expert/create-diagram/workflow.yaml +0 -24
  183. package/.bmad/bmm/workflows/frame-expert/create-flowchart/checklist.md +0 -49
  184. package/.bmad/bmm/workflows/frame-expert/create-flowchart/instructions.md +0 -242
  185. package/.bmad/bmm/workflows/frame-expert/create-flowchart/workflow.yaml +0 -27
  186. package/.bmad/bmm/workflows/frame-expert/create-wireframe/checklist.md +0 -38
  187. package/.bmad/bmm/workflows/frame-expert/create-wireframe/instructions.md +0 -133
  188. package/.bmad/bmm/workflows/frame-expert/create-wireframe/workflow.yaml +0 -23
  189. package/.bmad/bmm/workflows/techdoc/documentation-standards.md +0 -262
  190. package/.bmad/bmm/workflows/testarch/atdd/atdd-checklist-template.md +0 -363
  191. package/.bmad/bmm/workflows/testarch/atdd/checklist.md +0 -373
  192. package/.bmad/bmm/workflows/testarch/atdd/instructions.md +0 -785
  193. package/.bmad/bmm/workflows/testarch/atdd/workflow.yaml +0 -45
  194. package/.bmad/bmm/workflows/testarch/automate/checklist.md +0 -580
  195. package/.bmad/bmm/workflows/testarch/automate/instructions.md +0 -1303
  196. package/.bmad/bmm/workflows/testarch/automate/workflow.yaml +0 -52
  197. package/.bmad/bmm/workflows/testarch/ci/checklist.md +0 -246
  198. package/.bmad/bmm/workflows/testarch/ci/github-actions-template.yaml +0 -165
  199. package/.bmad/bmm/workflows/testarch/ci/gitlab-ci-template.yaml +0 -128
  200. package/.bmad/bmm/workflows/testarch/ci/instructions.md +0 -517
  201. package/.bmad/bmm/workflows/testarch/ci/workflow.yaml +0 -45
  202. package/.bmad/bmm/workflows/testarch/framework/checklist.md +0 -321
  203. package/.bmad/bmm/workflows/testarch/framework/instructions.md +0 -455
  204. package/.bmad/bmm/workflows/testarch/framework/workflow.yaml +0 -47
  205. package/.bmad/bmm/workflows/testarch/nfr-assess/checklist.md +0 -405
  206. package/.bmad/bmm/workflows/testarch/nfr-assess/instructions.md +0 -722
  207. package/.bmad/bmm/workflows/testarch/nfr-assess/nfr-report-template.md +0 -443
  208. package/.bmad/bmm/workflows/testarch/nfr-assess/workflow.yaml +0 -47
  209. package/.bmad/bmm/workflows/testarch/test-design/checklist.md +0 -234
  210. package/.bmad/bmm/workflows/testarch/test-design/instructions.md +0 -782
  211. package/.bmad/bmm/workflows/testarch/test-design/test-design-template.md +0 -285
  212. package/.bmad/bmm/workflows/testarch/test-design/workflow.yaml +0 -48
  213. package/.bmad/bmm/workflows/testarch/test-review/checklist.md +0 -470
  214. package/.bmad/bmm/workflows/testarch/test-review/instructions.md +0 -608
  215. package/.bmad/bmm/workflows/testarch/test-review/test-review-template.md +0 -388
  216. package/.bmad/bmm/workflows/testarch/test-review/workflow.yaml +0 -46
  217. package/.bmad/bmm/workflows/testarch/trace/checklist.md +0 -654
  218. package/.bmad/bmm/workflows/testarch/trace/instructions.md +0 -1045
  219. package/.bmad/bmm/workflows/testarch/trace/trace-template.md +0 -673
  220. package/.bmad/bmm/workflows/testarch/trace/workflow.yaml +0 -55
  221. package/.bmad/bmm/workflows/workflow-status/init/instructions.md +0 -334
  222. package/.bmad/bmm/workflows/workflow-status/init/workflow.yaml +0 -28
  223. package/.bmad/bmm/workflows/workflow-status/instructions.md +0 -388
  224. package/.bmad/bmm/workflows/workflow-status/paths/enterprise-brownfield.yaml +0 -138
  225. package/.bmad/bmm/workflows/workflow-status/paths/enterprise-greenfield.yaml +0 -126
  226. package/.bmad/bmm/workflows/workflow-status/paths/game-design.yaml +0 -52
  227. package/.bmad/bmm/workflows/workflow-status/paths/method-brownfield.yaml +0 -122
  228. package/.bmad/bmm/workflows/workflow-status/paths/method-greenfield.yaml +0 -113
  229. package/.bmad/bmm/workflows/workflow-status/paths/quick-flow-brownfield.yaml +0 -58
  230. package/.bmad/bmm/workflows/workflow-status/paths/quick-flow-greenfield.yaml +0 -47
  231. package/.bmad/bmm/workflows/workflow-status/project-levels.yaml +0 -59
  232. package/.bmad/bmm/workflows/workflow-status/workflow-status-template.yaml +0 -24
  233. package/.bmad/bmm/workflows/workflow-status/workflow.yaml +0 -28
  234. package/.bmad/core/agents/bmad-master.md +0 -72
  235. package/.bmad/core/agents/bmad-web-orchestrator.agent.xml +0 -113
  236. package/.bmad/core/config.yaml +0 -11
  237. package/.bmad/core/tasks/adv-elicit-methods.csv +0 -39
  238. package/.bmad/core/tasks/advanced-elicitation-methods.csv +0 -21
  239. package/.bmad/core/tasks/advanced-elicitation.xml +0 -106
  240. package/.bmad/core/tasks/index-docs.xml +0 -65
  241. package/.bmad/core/tasks/validate-workflow.xml +0 -89
  242. package/.bmad/core/tasks/workflow.xml +0 -270
  243. package/.bmad/core/tools/shard-doc.xml +0 -109
  244. package/.bmad/core/workflows/brainstorming/README.md +0 -261
  245. package/.bmad/core/workflows/brainstorming/brain-methods.csv +0 -36
  246. package/.bmad/core/workflows/brainstorming/instructions.md +0 -315
  247. package/.bmad/core/workflows/brainstorming/template.md +0 -106
  248. package/.bmad/core/workflows/brainstorming/workflow.yaml +0 -38
  249. package/.bmad/core/workflows/party-mode/instructions.md +0 -203
  250. package/.bmad/core/workflows/party-mode/workflow.yaml +0 -28
  251. package/.bmad/docs/claude-code-instructions.md +0 -25
  252. package/.claude/commands/BMad/analyst.md +0 -88
  253. package/.claude/commands/BMad/architect.md +0 -89
  254. package/.claude/commands/BMad/bmad-master.md +0 -114
  255. package/.claude/commands/BMad/bmad-orchestrator.md +0 -151
  256. package/.claude/commands/BMad/dev.md +0 -85
  257. package/.claude/commands/BMad/pm.md +0 -88
  258. package/.claude/commands/BMad/po.md +0 -83
  259. package/.claude/commands/BMad/qa.md +0 -91
  260. package/.claude/commands/BMad/sm.md +0 -69
  261. package/.claude/commands/BMad/tasks/advanced-elicitation.md +0 -123
  262. package/.claude/commands/BMad/tasks/apply-qa-fixes.md +0 -154
  263. package/.claude/commands/BMad/tasks/brownfield-create-epic.md +0 -166
  264. package/.claude/commands/BMad/tasks/brownfield-create-story.md +0 -153
  265. package/.claude/commands/BMad/tasks/correct-course.md +0 -76
  266. package/.claude/commands/BMad/tasks/create-brownfield-story.md +0 -318
  267. package/.claude/commands/BMad/tasks/create-deep-research-prompt.md +0 -284
  268. package/.claude/commands/BMad/tasks/create-doc.md +0 -107
  269. package/.claude/commands/BMad/tasks/create-next-story.md +0 -118
  270. package/.claude/commands/BMad/tasks/document-project.md +0 -349
  271. package/.claude/commands/BMad/tasks/execute-checklist.md +0 -92
  272. package/.claude/commands/BMad/tasks/facilitate-brainstorming-session.md +0 -142
  273. package/.claude/commands/BMad/tasks/generate-ai-frontend-prompt.md +0 -57
  274. package/.claude/commands/BMad/tasks/index-docs.md +0 -179
  275. package/.claude/commands/BMad/tasks/kb-mode-interaction.md +0 -81
  276. package/.claude/commands/BMad/tasks/nfr-assess.md +0 -349
  277. package/.claude/commands/BMad/tasks/qa-gate.md +0 -167
  278. package/.claude/commands/BMad/tasks/review-story.md +0 -320
  279. package/.claude/commands/BMad/tasks/risk-profile.md +0 -359
  280. package/.claude/commands/BMad/tasks/shard-doc.md +0 -191
  281. package/.claude/commands/BMad/tasks/test-design.md +0 -180
  282. package/.claude/commands/BMad/tasks/trace-requirements.md +0 -270
  283. package/.claude/commands/BMad/tasks/validate-next-story.md +0 -140
  284. package/.claude/commands/BMad/ux-expert.md +0 -73
  285. package/.claude/commands/bmad/bmm/agents/analyst.md +0 -14
  286. package/.claude/commands/bmad/bmm/agents/architect.md +0 -14
  287. package/.claude/commands/bmad/bmm/agents/dev.md +0 -14
  288. package/.claude/commands/bmad/bmm/agents/frame-expert.md +0 -14
  289. package/.claude/commands/bmad/bmm/agents/pm.md +0 -14
  290. package/.claude/commands/bmad/bmm/agents/sm.md +0 -14
  291. package/.claude/commands/bmad/bmm/agents/tea.md +0 -14
  292. package/.claude/commands/bmad/bmm/agents/tech-writer.md +0 -14
  293. package/.claude/commands/bmad/bmm/agents/ux-designer.md +0 -14
  294. package/.claude/commands/bmad/bmm/workflows/architecture.md +0 -13
  295. package/.claude/commands/bmad/bmm/workflows/brainstorm-project.md +0 -13
  296. package/.claude/commands/bmad/bmm/workflows/code-review.md +0 -13
  297. package/.claude/commands/bmad/bmm/workflows/correct-course.md +0 -13
  298. package/.claude/commands/bmad/bmm/workflows/create-dataflow.md +0 -13
  299. package/.claude/commands/bmad/bmm/workflows/create-diagram.md +0 -13
  300. package/.claude/commands/bmad/bmm/workflows/create-epics-and-stories.md +0 -13
  301. package/.claude/commands/bmad/bmm/workflows/create-flowchart.md +0 -13
  302. package/.claude/commands/bmad/bmm/workflows/create-story.md +0 -13
  303. package/.claude/commands/bmad/bmm/workflows/create-ux-design.md +0 -13
  304. package/.claude/commands/bmad/bmm/workflows/create-wireframe.md +0 -13
  305. package/.claude/commands/bmad/bmm/workflows/dev-story.md +0 -13
  306. package/.claude/commands/bmad/bmm/workflows/document-project.md +0 -13
  307. package/.claude/commands/bmad/bmm/workflows/domain-research.md +0 -13
  308. package/.claude/commands/bmad/bmm/workflows/epic-tech-context.md +0 -13
  309. package/.claude/commands/bmad/bmm/workflows/implementation-readiness.md +0 -13
  310. package/.claude/commands/bmad/bmm/workflows/prd.md +0 -13
  311. package/.claude/commands/bmad/bmm/workflows/product-brief.md +0 -13
  312. package/.claude/commands/bmad/bmm/workflows/research.md +0 -13
  313. package/.claude/commands/bmad/bmm/workflows/retrospective.md +0 -13
  314. package/.claude/commands/bmad/bmm/workflows/sprint-planning.md +0 -13
  315. package/.claude/commands/bmad/bmm/workflows/story-context.md +0 -13
  316. package/.claude/commands/bmad/bmm/workflows/story-done.md +0 -13
  317. package/.claude/commands/bmad/bmm/workflows/story-ready.md +0 -13
  318. package/.claude/commands/bmad/bmm/workflows/tech-spec.md +0 -13
  319. package/.claude/commands/bmad/bmm/workflows/workflow-init.md +0 -13
  320. package/.claude/commands/bmad/bmm/workflows/workflow-status.md +0 -13
  321. package/.claude/commands/bmad/core/agents/bmad-master.md +0 -14
  322. package/.claude/commands/bmad/core/tasks/advanced-elicitation.md +0 -9
  323. package/.claude/commands/bmad/core/tasks/index-docs.md +0 -9
  324. package/.claude/commands/bmad/core/tools/shard-doc.md +0 -9
  325. package/.claude/commands/bmad/core/workflows/brainstorming.md +0 -13
  326. package/.claude/commands/bmad/core/workflows/party-mode.md +0 -13
  327. package/.claude/github-star-reminder.txt +0 -1
  328. package/.claude/hooks/bmad-party-manager.sh +0 -225
  329. package/.claude/hooks/stop.sh +0 -221
  330. package/.claude/piper-voices-dir.txt +0 -1
  331. package/.mcp.json +0 -88
  332. package/RELEASE_NOTES_v2.4.0_DRAFT.md +0 -116
  333. package/RELEASE_NOTES_v2.4.1_DRAFT.md +0 -61
  334. package/docs/2025-11-15_15-14-33.snagx +0 -0
  335. package/docs/Screenshot 2025-11-15 151325.png +0 -0
  336. package/docs/Screenshot 2025-11-15 151432.png +0 -0
  337. package/docs/macos-piper-issue.md +0 -172
  338. package/docs/stargazer-cms-prd.md +0 -1918
  339. package/docs/whatsapp-plugin-github-issue.md +0 -393
  340. package/docs/whatsapp-tts-plugin-feasibility.md +0 -418
  341. package/docs/whatsapp-tts-standalone-plugin.md +0 -628
  342. package/github-profile-draft.md +0 -57
  343. package/linkedin/vibe-coding-and-pulseaudio.md +0 -121
  344. package/mcp-server/agentvibes.db +0 -0
  345. package/scripts/audio-tunnel.config +0 -17
  346. package/v4-backup/.bmad-core/agent-teams/team-all.yaml +0 -15
  347. package/v4-backup/.bmad-core/agent-teams/team-fullstack.yaml +0 -19
  348. package/v4-backup/.bmad-core/agent-teams/team-ide-minimal.yaml +0 -11
  349. package/v4-backup/.bmad-core/agent-teams/team-no-ui.yaml +0 -14
  350. package/v4-backup/.bmad-core/agents/analyst.md +0 -84
  351. package/v4-backup/.bmad-core/agents/architect.md +0 -85
  352. package/v4-backup/.bmad-core/agents/bmad-master.md +0 -110
  353. package/v4-backup/.bmad-core/agents/bmad-orchestrator.md +0 -147
  354. package/v4-backup/.bmad-core/agents/dev.md +0 -81
  355. package/v4-backup/.bmad-core/agents/pm.md +0 -84
  356. package/v4-backup/.bmad-core/agents/po.md +0 -79
  357. package/v4-backup/.bmad-core/agents/qa.md +0 -87
  358. package/v4-backup/.bmad-core/agents/sm.md +0 -65
  359. package/v4-backup/.bmad-core/agents/ux-expert.md +0 -69
  360. package/v4-backup/.bmad-core/checklists/architect-checklist.md +0 -440
  361. package/v4-backup/.bmad-core/checklists/change-checklist.md +0 -184
  362. package/v4-backup/.bmad-core/checklists/pm-checklist.md +0 -372
  363. package/v4-backup/.bmad-core/checklists/po-master-checklist.md +0 -434
  364. package/v4-backup/.bmad-core/checklists/story-dod-checklist.md +0 -96
  365. package/v4-backup/.bmad-core/checklists/story-draft-checklist.md +0 -155
  366. package/v4-backup/.bmad-core/core-config.yaml +0 -22
  367. package/v4-backup/.bmad-core/data/bmad-kb.md +0 -809
  368. package/v4-backup/.bmad-core/data/brainstorming-techniques.md +0 -38
  369. package/v4-backup/.bmad-core/data/elicitation-methods.md +0 -156
  370. package/v4-backup/.bmad-core/data/technical-preferences.md +0 -5
  371. package/v4-backup/.bmad-core/data/test-levels-framework.md +0 -148
  372. package/v4-backup/.bmad-core/data/test-priorities-matrix.md +0 -174
  373. package/v4-backup/.bmad-core/enhanced-ide-development-workflow.md +0 -248
  374. package/v4-backup/.bmad-core/install-manifest.yaml +0 -230
  375. package/v4-backup/.bmad-core/tasks/advanced-elicitation.md +0 -119
  376. package/v4-backup/.bmad-core/tasks/apply-qa-fixes.md +0 -150
  377. package/v4-backup/.bmad-core/tasks/brownfield-create-epic.md +0 -162
  378. package/v4-backup/.bmad-core/tasks/brownfield-create-story.md +0 -149
  379. package/v4-backup/.bmad-core/tasks/correct-course.md +0 -72
  380. package/v4-backup/.bmad-core/tasks/create-brownfield-story.md +0 -314
  381. package/v4-backup/.bmad-core/tasks/create-deep-research-prompt.md +0 -280
  382. package/v4-backup/.bmad-core/tasks/create-doc.md +0 -103
  383. package/v4-backup/.bmad-core/tasks/create-next-story.md +0 -114
  384. package/v4-backup/.bmad-core/tasks/document-project.md +0 -345
  385. package/v4-backup/.bmad-core/tasks/execute-checklist.md +0 -88
  386. package/v4-backup/.bmad-core/tasks/facilitate-brainstorming-session.md +0 -138
  387. package/v4-backup/.bmad-core/tasks/generate-ai-frontend-prompt.md +0 -53
  388. package/v4-backup/.bmad-core/tasks/index-docs.md +0 -175
  389. package/v4-backup/.bmad-core/tasks/kb-mode-interaction.md +0 -77
  390. package/v4-backup/.bmad-core/tasks/nfr-assess.md +0 -345
  391. package/v4-backup/.bmad-core/tasks/qa-gate.md +0 -163
  392. package/v4-backup/.bmad-core/tasks/review-story.md +0 -316
  393. package/v4-backup/.bmad-core/tasks/risk-profile.md +0 -355
  394. package/v4-backup/.bmad-core/tasks/shard-doc.md +0 -187
  395. package/v4-backup/.bmad-core/tasks/test-design.md +0 -176
  396. package/v4-backup/.bmad-core/tasks/trace-requirements.md +0 -266
  397. package/v4-backup/.bmad-core/tasks/validate-next-story.md +0 -136
  398. package/v4-backup/.bmad-core/templates/architecture-tmpl.yaml +0 -651
  399. package/v4-backup/.bmad-core/templates/brainstorming-output-tmpl.yaml +0 -156
  400. package/v4-backup/.bmad-core/templates/brownfield-architecture-tmpl.yaml +0 -477
  401. package/v4-backup/.bmad-core/templates/brownfield-prd-tmpl.yaml +0 -281
  402. package/v4-backup/.bmad-core/templates/competitor-analysis-tmpl.yaml +0 -307
  403. package/v4-backup/.bmad-core/templates/front-end-architecture-tmpl.yaml +0 -219
  404. package/v4-backup/.bmad-core/templates/front-end-spec-tmpl.yaml +0 -350
  405. package/v4-backup/.bmad-core/templates/fullstack-architecture-tmpl.yaml +0 -824
  406. package/v4-backup/.bmad-core/templates/market-research-tmpl.yaml +0 -253
  407. package/v4-backup/.bmad-core/templates/prd-tmpl.yaml +0 -203
  408. package/v4-backup/.bmad-core/templates/project-brief-tmpl.yaml +0 -222
  409. package/v4-backup/.bmad-core/templates/qa-gate-tmpl.yaml +0 -103
  410. package/v4-backup/.bmad-core/templates/story-tmpl.yaml +0 -138
  411. package/v4-backup/.bmad-core/user-guide.md +0 -577
  412. package/v4-backup/.bmad-core/utils/bmad-doc-template.md +0 -327
  413. package/v4-backup/.bmad-core/utils/workflow-management.md +0 -71
  414. package/v4-backup/.bmad-core/workflows/brownfield-fullstack.yaml +0 -298
  415. package/v4-backup/.bmad-core/workflows/brownfield-service.yaml +0 -188
  416. package/v4-backup/.bmad-core/workflows/brownfield-ui.yaml +0 -198
  417. package/v4-backup/.bmad-core/workflows/greenfield-fullstack.yaml +0 -241
  418. package/v4-backup/.bmad-core/workflows/greenfield-service.yaml +0 -207
  419. package/v4-backup/.bmad-core/workflows/greenfield-ui.yaml +0 -236
  420. package/v4-backup/.bmad-core/working-in-the-brownfield.md +0 -606
@@ -1,675 +0,0 @@
1
- # CI Pipeline and Burn-In Strategy
2
-
3
- ## Principle
4
-
5
- CI pipelines must execute tests reliably, quickly, and provide clear feedback. Burn-in testing (running changed tests multiple times) flushes out flakiness before merge. Stage jobs strategically: install/cache once, run changed specs first for fast feedback, then shard full suites with fail-fast disabled to preserve evidence.
6
-
7
- ## Rationale
8
-
9
- CI is the quality gate for production. A poorly configured pipeline either wastes developer time (slow feedback, false positives) or ships broken code (false negatives, insufficient coverage). Burn-in testing ensures reliability by stress-testing changed code, while parallel execution and intelligent test selection optimize speed without sacrificing thoroughness.
10
-
11
- ## Pattern Examples
12
-
13
- ### Example 1: GitHub Actions Workflow with Parallel Execution
14
-
15
- **Context**: Production-ready CI/CD pipeline for E2E tests with caching, parallelization, and burn-in testing.
16
-
17
- **Implementation**:
18
-
19
- ```yaml
20
- # .github/workflows/e2e-tests.yml
21
- name: E2E Tests
22
- on:
23
- pull_request:
24
- push:
25
- branches: [main, develop]
26
-
27
- env:
28
- NODE_VERSION_FILE: '.nvmrc'
29
- CACHE_KEY: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
30
-
31
- jobs:
32
- install-dependencies:
33
- name: Install & Cache Dependencies
34
- runs-on: ubuntu-latest
35
- timeout-minutes: 10
36
- steps:
37
- - name: Checkout code
38
- uses: actions/checkout@v4
39
-
40
- - name: Setup Node.js
41
- uses: actions/setup-node@v4
42
- with:
43
- node-version-file: ${{ env.NODE_VERSION_FILE }}
44
- cache: 'npm'
45
-
46
- - name: Cache node modules
47
- uses: actions/cache@v4
48
- id: npm-cache
49
- with:
50
- path: |
51
- ~/.npm
52
- node_modules
53
- ~/.cache/Cypress
54
- ~/.cache/ms-playwright
55
- key: ${{ env.CACHE_KEY }}
56
- restore-keys: |
57
- ${{ runner.os }}-node-
58
-
59
- - name: Install dependencies
60
- if: steps.npm-cache.outputs.cache-hit != 'true'
61
- run: npm ci --prefer-offline --no-audit
62
-
63
- - name: Install Playwright browsers
64
- if: steps.npm-cache.outputs.cache-hit != 'true'
65
- run: npx playwright install --with-deps chromium
66
-
67
- test-changed-specs:
68
- name: Test Changed Specs First (Burn-In)
69
- needs: install-dependencies
70
- runs-on: ubuntu-latest
71
- timeout-minutes: 15
72
- steps:
73
- - name: Checkout code
74
- uses: actions/checkout@v4
75
- with:
76
- fetch-depth: 0 # Full history for accurate diff
77
-
78
- - name: Setup Node.js
79
- uses: actions/setup-node@v4
80
- with:
81
- node-version-file: ${{ env.NODE_VERSION_FILE }}
82
- cache: 'npm'
83
-
84
- - name: Restore dependencies
85
- uses: actions/cache@v4
86
- with:
87
- path: |
88
- ~/.npm
89
- node_modules
90
- ~/.cache/ms-playwright
91
- key: ${{ env.CACHE_KEY }}
92
-
93
- - name: Detect changed test files
94
- id: changed-tests
95
- run: |
96
- CHANGED_SPECS=$(git diff --name-only origin/main...HEAD | grep -E '\.(spec|test)\.(ts|js|tsx|jsx)$' || echo "")
97
- echo "changed_specs=${CHANGED_SPECS}" >> $GITHUB_OUTPUT
98
- echo "Changed specs: ${CHANGED_SPECS}"
99
-
100
- - name: Run burn-in on changed specs (10 iterations)
101
- if: steps.changed-tests.outputs.changed_specs != ''
102
- run: |
103
- SPECS="${{ steps.changed-tests.outputs.changed_specs }}"
104
- echo "Running burn-in: 10 iterations on changed specs"
105
- for i in {1..10}; do
106
- echo "Burn-in iteration $i/10"
107
- npm run test -- $SPECS || {
108
- echo "❌ Burn-in failed on iteration $i"
109
- exit 1
110
- }
111
- done
112
- echo "✅ Burn-in passed - 10/10 successful runs"
113
-
114
- - name: Upload artifacts on failure
115
- if: failure()
116
- uses: actions/upload-artifact@v4
117
- with:
118
- name: burn-in-failure-artifacts
119
- path: |
120
- test-results/
121
- playwright-report/
122
- screenshots/
123
- retention-days: 7
124
-
125
- test-e2e-sharded:
126
- name: E2E Tests (Shard ${{ matrix.shard }}/${{ strategy.job-total }})
127
- needs: [install-dependencies, test-changed-specs]
128
- runs-on: ubuntu-latest
129
- timeout-minutes: 30
130
- strategy:
131
- fail-fast: false # Run all shards even if one fails
132
- matrix:
133
- shard: [1, 2, 3, 4]
134
- steps:
135
- - name: Checkout code
136
- uses: actions/checkout@v4
137
-
138
- - name: Setup Node.js
139
- uses: actions/setup-node@v4
140
- with:
141
- node-version-file: ${{ env.NODE_VERSION_FILE }}
142
- cache: 'npm'
143
-
144
- - name: Restore dependencies
145
- uses: actions/cache@v4
146
- with:
147
- path: |
148
- ~/.npm
149
- node_modules
150
- ~/.cache/ms-playwright
151
- key: ${{ env.CACHE_KEY }}
152
-
153
- - name: Run E2E tests (shard ${{ matrix.shard }})
154
- run: npm run test:e2e -- --shard=${{ matrix.shard }}/4
155
- env:
156
- TEST_ENV: staging
157
- CI: true
158
-
159
- - name: Upload test results
160
- if: always()
161
- uses: actions/upload-artifact@v4
162
- with:
163
- name: test-results-shard-${{ matrix.shard }}
164
- path: |
165
- test-results/
166
- playwright-report/
167
- retention-days: 30
168
-
169
- - name: Upload JUnit report
170
- if: always()
171
- uses: actions/upload-artifact@v4
172
- with:
173
- name: junit-results-shard-${{ matrix.shard }}
174
- path: test-results/junit.xml
175
- retention-days: 30
176
-
177
- merge-test-results:
178
- name: Merge Test Results & Generate Report
179
- needs: test-e2e-sharded
180
- runs-on: ubuntu-latest
181
- if: always()
182
- steps:
183
- - name: Download all shard results
184
- uses: actions/download-artifact@v4
185
- with:
186
- pattern: test-results-shard-*
187
- path: all-results/
188
-
189
- - name: Merge HTML reports
190
- run: |
191
- npx playwright merge-reports --reporter=html all-results/
192
- echo "Merged report available in playwright-report/"
193
-
194
- - name: Upload merged report
195
- uses: actions/upload-artifact@v4
196
- with:
197
- name: merged-playwright-report
198
- path: playwright-report/
199
- retention-days: 30
200
-
201
- - name: Comment PR with results
202
- if: github.event_name == 'pull_request'
203
- uses: daun/playwright-report-comment@v3
204
- with:
205
- report-path: playwright-report/
206
- ```
207
-
208
- **Key Points**:
209
-
210
- - **Install once, reuse everywhere**: Dependencies cached across all jobs
211
- - **Burn-in first**: Changed specs run 10x before full suite
212
- - **Fail-fast disabled**: All shards run to completion for full evidence
213
- - **Parallel execution**: 4 shards cut execution time by ~75%
214
- - **Artifact retention**: 30 days for reports, 7 days for failure debugging
215
-
216
- ---
217
-
218
- ### Example 2: Burn-In Loop Pattern (Standalone Script)
219
-
220
- **Context**: Reusable bash script for burn-in testing changed specs locally or in CI.
221
-
222
- **Implementation**:
223
-
224
- ```bash
225
- #!/bin/bash
226
- # scripts/burn-in-changed.sh
227
- # Usage: ./scripts/burn-in-changed.sh [iterations] [base-branch]
228
-
229
- set -e # Exit on error
230
-
231
- # Configuration
232
- ITERATIONS=${1:-10}
233
- BASE_BRANCH=${2:-main}
234
- SPEC_PATTERN='\.(spec|test)\.(ts|js|tsx|jsx)$'
235
-
236
- echo "🔥 Burn-In Test Runner"
237
- echo "━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━"
238
- echo "Iterations: $ITERATIONS"
239
- echo "Base branch: $BASE_BRANCH"
240
- echo ""
241
-
242
- # Detect changed test files
243
- echo "📋 Detecting changed test files..."
244
- CHANGED_SPECS=$(git diff --name-only $BASE_BRANCH...HEAD | grep -E "$SPEC_PATTERN" || echo "")
245
-
246
- if [ -z "$CHANGED_SPECS" ]; then
247
- echo "✅ No test files changed. Skipping burn-in."
248
- exit 0
249
- fi
250
-
251
- echo "Changed test files:"
252
- echo "$CHANGED_SPECS" | sed 's/^/ - /'
253
- echo ""
254
-
255
- # Count specs
256
- SPEC_COUNT=$(echo "$CHANGED_SPECS" | wc -l | xargs)
257
- echo "Running burn-in on $SPEC_COUNT test file(s)..."
258
- echo ""
259
-
260
- # Burn-in loop
261
- FAILURES=()
262
- for i in $(seq 1 $ITERATIONS); do
263
- echo "━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━"
264
- echo "🔄 Iteration $i/$ITERATIONS"
265
- echo "━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━"
266
-
267
- # Run tests with explicit file list
268
- if npm run test -- $CHANGED_SPECS 2>&1 | tee "burn-in-log-$i.txt"; then
269
- echo "✅ Iteration $i passed"
270
- else
271
- echo "❌ Iteration $i failed"
272
- FAILURES+=($i)
273
-
274
- # Save failure artifacts
275
- mkdir -p burn-in-failures/iteration-$i
276
- cp -r test-results/ burn-in-failures/iteration-$i/ 2>/dev/null || true
277
- cp -r screenshots/ burn-in-failures/iteration-$i/ 2>/dev/null || true
278
-
279
- echo ""
280
- echo "🛑 BURN-IN FAILED on iteration $i"
281
- echo "Failure artifacts saved to: burn-in-failures/iteration-$i/"
282
- echo "Logs saved to: burn-in-log-$i.txt"
283
- echo ""
284
- exit 1
285
- fi
286
-
287
- echo ""
288
- done
289
-
290
- # Success summary
291
- echo "━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━"
292
- echo "🎉 BURN-IN PASSED"
293
- echo "━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━"
294
- echo "All $ITERATIONS iterations passed for $SPEC_COUNT test file(s)"
295
- echo "Changed specs are stable and ready to merge."
296
- echo ""
297
-
298
- # Cleanup logs
299
- rm -f burn-in-log-*.txt
300
-
301
- exit 0
302
- ```
303
-
304
- **Usage**:
305
-
306
- ```bash
307
- # Run locally with default settings (10 iterations, compare to main)
308
- ./scripts/burn-in-changed.sh
309
-
310
- # Custom iterations and base branch
311
- ./scripts/burn-in-changed.sh 20 develop
312
-
313
- # Add to package.json
314
- {
315
- "scripts": {
316
- "test:burn-in": "bash scripts/burn-in-changed.sh",
317
- "test:burn-in:strict": "bash scripts/burn-in-changed.sh 20"
318
- }
319
- }
320
- ```
321
-
322
- **Key Points**:
323
-
324
- - **Exit on first failure**: Flaky tests caught immediately
325
- - **Failure artifacts**: Saved per-iteration for debugging
326
- - **Flexible configuration**: Iterations and base branch customizable
327
- - **CI/local parity**: Same script runs in both environments
328
- - **Clear output**: Visual feedback on progress and results
329
-
330
- ---
331
-
332
- ### Example 3: Shard Orchestration with Result Aggregation
333
-
334
- **Context**: Advanced sharding strategy for large test suites with intelligent result merging.
335
-
336
- **Implementation**:
337
-
338
- ```javascript
339
- // scripts/run-sharded-tests.js
340
- const { spawn } = require('child_process');
341
- const fs = require('fs');
342
- const path = require('path');
343
-
344
- /**
345
- * Run tests across multiple shards and aggregate results
346
- * Usage: node scripts/run-sharded-tests.js --shards=4 --env=staging
347
- */
348
-
349
- const SHARD_COUNT = parseInt(process.env.SHARD_COUNT || '4');
350
- const TEST_ENV = process.env.TEST_ENV || 'local';
351
- const RESULTS_DIR = path.join(__dirname, '../test-results');
352
-
353
- console.log(`🚀 Running tests across ${SHARD_COUNT} shards`);
354
- console.log(`Environment: ${TEST_ENV}`);
355
- console.log('━'.repeat(50));
356
-
357
- // Ensure results directory exists
358
- if (!fs.existsSync(RESULTS_DIR)) {
359
- fs.mkdirSync(RESULTS_DIR, { recursive: true });
360
- }
361
-
362
- /**
363
- * Run a single shard
364
- */
365
- function runShard(shardIndex) {
366
- return new Promise((resolve, reject) => {
367
- const shardId = `${shardIndex}/${SHARD_COUNT}`;
368
- console.log(`\n📦 Starting shard ${shardId}...`);
369
-
370
- const child = spawn('npx', ['playwright', 'test', `--shard=${shardId}`, '--reporter=json'], {
371
- env: { ...process.env, TEST_ENV, SHARD_INDEX: shardIndex },
372
- stdio: 'pipe',
373
- });
374
-
375
- let stdout = '';
376
- let stderr = '';
377
-
378
- child.stdout.on('data', (data) => {
379
- stdout += data.toString();
380
- process.stdout.write(data);
381
- });
382
-
383
- child.stderr.on('data', (data) => {
384
- stderr += data.toString();
385
- process.stderr.write(data);
386
- });
387
-
388
- child.on('close', (code) => {
389
- // Save shard results
390
- const resultFile = path.join(RESULTS_DIR, `shard-${shardIndex}.json`);
391
- try {
392
- const result = JSON.parse(stdout);
393
- fs.writeFileSync(resultFile, JSON.stringify(result, null, 2));
394
- console.log(`✅ Shard ${shardId} completed (exit code: ${code})`);
395
- resolve({ shardIndex, code, result });
396
- } catch (error) {
397
- console.error(`❌ Shard ${shardId} failed to parse results:`, error.message);
398
- reject({ shardIndex, code, error });
399
- }
400
- });
401
-
402
- child.on('error', (error) => {
403
- console.error(`❌ Shard ${shardId} process error:`, error.message);
404
- reject({ shardIndex, error });
405
- });
406
- });
407
- }
408
-
409
- /**
410
- * Aggregate results from all shards
411
- */
412
- function aggregateResults() {
413
- console.log('\n📊 Aggregating results from all shards...');
414
-
415
- const shardResults = [];
416
- let totalTests = 0;
417
- let totalPassed = 0;
418
- let totalFailed = 0;
419
- let totalSkipped = 0;
420
- let totalFlaky = 0;
421
-
422
- for (let i = 1; i <= SHARD_COUNT; i++) {
423
- const resultFile = path.join(RESULTS_DIR, `shard-${i}.json`);
424
- if (fs.existsSync(resultFile)) {
425
- const result = JSON.parse(fs.readFileSync(resultFile, 'utf8'));
426
- shardResults.push(result);
427
-
428
- // Aggregate stats
429
- totalTests += result.stats?.expected || 0;
430
- totalPassed += result.stats?.expected || 0;
431
- totalFailed += result.stats?.unexpected || 0;
432
- totalSkipped += result.stats?.skipped || 0;
433
- totalFlaky += result.stats?.flaky || 0;
434
- }
435
- }
436
-
437
- const summary = {
438
- totalShards: SHARD_COUNT,
439
- environment: TEST_ENV,
440
- totalTests,
441
- passed: totalPassed,
442
- failed: totalFailed,
443
- skipped: totalSkipped,
444
- flaky: totalFlaky,
445
- duration: shardResults.reduce((acc, r) => acc + (r.duration || 0), 0),
446
- timestamp: new Date().toISOString(),
447
- };
448
-
449
- // Save aggregated summary
450
- fs.writeFileSync(path.join(RESULTS_DIR, 'summary.json'), JSON.stringify(summary, null, 2));
451
-
452
- console.log('\n━'.repeat(50));
453
- console.log('📈 Test Results Summary');
454
- console.log('━'.repeat(50));
455
- console.log(`Total tests: ${totalTests}`);
456
- console.log(`✅ Passed: ${totalPassed}`);
457
- console.log(`❌ Failed: ${totalFailed}`);
458
- console.log(`⏭️ Skipped: ${totalSkipped}`);
459
- console.log(`⚠️ Flaky: ${totalFlaky}`);
460
- console.log(`⏱️ Duration: ${(summary.duration / 1000).toFixed(2)}s`);
461
- console.log('━'.repeat(50));
462
-
463
- return summary;
464
- }
465
-
466
- /**
467
- * Main execution
468
- */
469
- async function main() {
470
- const startTime = Date.now();
471
- const shardPromises = [];
472
-
473
- // Run all shards in parallel
474
- for (let i = 1; i <= SHARD_COUNT; i++) {
475
- shardPromises.push(runShard(i));
476
- }
477
-
478
- try {
479
- await Promise.allSettled(shardPromises);
480
- } catch (error) {
481
- console.error('❌ One or more shards failed:', error);
482
- }
483
-
484
- // Aggregate results
485
- const summary = aggregateResults();
486
-
487
- const totalTime = ((Date.now() - startTime) / 1000).toFixed(2);
488
- console.log(`\n⏱️ Total execution time: ${totalTime}s`);
489
-
490
- // Exit with failure if any tests failed
491
- if (summary.failed > 0) {
492
- console.error('\n❌ Test suite failed');
493
- process.exit(1);
494
- }
495
-
496
- console.log('\n✅ All tests passed');
497
- process.exit(0);
498
- }
499
-
500
- main().catch((error) => {
501
- console.error('Fatal error:', error);
502
- process.exit(1);
503
- });
504
- ```
505
-
506
- **package.json integration**:
507
-
508
- ```json
509
- {
510
- "scripts": {
511
- "test:sharded": "node scripts/run-sharded-tests.js",
512
- "test:sharded:ci": "SHARD_COUNT=8 TEST_ENV=staging node scripts/run-sharded-tests.js"
513
- }
514
- }
515
- ```
516
-
517
- **Key Points**:
518
-
519
- - **Parallel shard execution**: All shards run simultaneously
520
- - **Result aggregation**: Unified summary across shards
521
- - **Failure detection**: Exit code reflects overall test status
522
- - **Artifact preservation**: Individual shard results saved for debugging
523
- - **CI/local compatibility**: Same script works in both environments
524
-
525
- ---
526
-
527
- ### Example 4: Selective Test Execution (Changed Files + Tags)
528
-
529
- **Context**: Optimize CI by running only relevant tests based on file changes and tags.
530
-
531
- **Implementation**:
532
-
533
- ```bash
534
- #!/bin/bash
535
- # scripts/selective-test-runner.sh
536
- # Intelligent test selection based on changed files and test tags
537
-
538
- set -e
539
-
540
- BASE_BRANCH=${BASE_BRANCH:-main}
541
- TEST_ENV=${TEST_ENV:-local}
542
-
543
- echo "🎯 Selective Test Runner"
544
- echo "━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━"
545
- echo "Base branch: $BASE_BRANCH"
546
- echo "Environment: $TEST_ENV"
547
- echo ""
548
-
549
- # Detect changed files (all types, not just tests)
550
- CHANGED_FILES=$(git diff --name-only $BASE_BRANCH...HEAD)
551
-
552
- if [ -z "$CHANGED_FILES" ]; then
553
- echo "✅ No files changed. Skipping tests."
554
- exit 0
555
- fi
556
-
557
- echo "Changed files:"
558
- echo "$CHANGED_FILES" | sed 's/^/ - /'
559
- echo ""
560
-
561
- # Determine test strategy based on changes
562
- run_smoke_only=false
563
- run_all_tests=false
564
- affected_specs=""
565
-
566
- # Critical files = run all tests
567
- if echo "$CHANGED_FILES" | grep -qE '(package\.json|package-lock\.json|playwright\.config|cypress\.config|\.github/workflows)'; then
568
- echo "⚠️ Critical configuration files changed. Running ALL tests."
569
- run_all_tests=true
570
-
571
- # Auth/security changes = run all auth + smoke tests
572
- elif echo "$CHANGED_FILES" | grep -qE '(auth|login|signup|security)'; then
573
- echo "🔒 Auth/security files changed. Running auth + smoke tests."
574
- npm run test -- --grep "@auth|@smoke"
575
- exit $?
576
-
577
- # API changes = run integration + smoke tests
578
- elif echo "$CHANGED_FILES" | grep -qE '(api|service|controller)'; then
579
- echo "🔌 API files changed. Running integration + smoke tests."
580
- npm run test -- --grep "@integration|@smoke"
581
- exit $?
582
-
583
- # UI component changes = run related component tests
584
- elif echo "$CHANGED_FILES" | grep -qE '\.(tsx|jsx|vue)$'; then
585
- echo "🎨 UI components changed. Running component + smoke tests."
586
-
587
- # Extract component names and find related tests
588
- components=$(echo "$CHANGED_FILES" | grep -E '\.(tsx|jsx|vue)$' | xargs -I {} basename {} | sed 's/\.[^.]*$//')
589
- for component in $components; do
590
- # Find tests matching component name
591
- affected_specs+=$(find tests -name "*${component}*" -type f) || true
592
- done
593
-
594
- if [ -n "$affected_specs" ]; then
595
- echo "Running tests for: $affected_specs"
596
- npm run test -- $affected_specs --grep "@smoke"
597
- else
598
- echo "No specific tests found. Running smoke tests only."
599
- npm run test -- --grep "@smoke"
600
- fi
601
- exit $?
602
-
603
- # Documentation/config only = run smoke tests
604
- elif echo "$CHANGED_FILES" | grep -qE '\.(md|txt|json|yml|yaml)$'; then
605
- echo "📝 Documentation/config files changed. Running smoke tests only."
606
- run_smoke_only=true
607
- else
608
- echo "⚙️ Other files changed. Running smoke tests."
609
- run_smoke_only=true
610
- fi
611
-
612
- # Execute selected strategy
613
- if [ "$run_all_tests" = true ]; then
614
- echo ""
615
- echo "Running full test suite..."
616
- npm run test
617
- elif [ "$run_smoke_only" = true ]; then
618
- echo ""
619
- echo "Running smoke tests..."
620
- npm run test -- --grep "@smoke"
621
- fi
622
- ```
623
-
624
- **Usage in GitHub Actions**:
625
-
626
- ```yaml
627
- # .github/workflows/selective-tests.yml
628
- name: Selective Tests
629
- on: pull_request
630
-
631
- jobs:
632
- selective-tests:
633
- runs-on: ubuntu-latest
634
- steps:
635
- - uses: actions/checkout@v4
636
- with:
637
- fetch-depth: 0
638
-
639
- - name: Run selective tests
640
- run: bash scripts/selective-test-runner.sh
641
- env:
642
- BASE_BRANCH: ${{ github.base_ref }}
643
- TEST_ENV: staging
644
- ```
645
-
646
- **Key Points**:
647
-
648
- - **Intelligent routing**: Tests selected based on changed file types
649
- - **Tag-based filtering**: Use @smoke, @auth, @integration tags
650
- - **Fast feedback**: Only relevant tests run on most PRs
651
- - **Safety net**: Critical changes trigger full suite
652
- - **Component mapping**: UI changes run related component tests
653
-
654
- ---
655
-
656
- ## CI Configuration Checklist
657
-
658
- Before deploying your CI pipeline, verify:
659
-
660
- - [ ] **Caching strategy**: node_modules, npm cache, browser binaries cached
661
- - [ ] **Timeout budgets**: Each job has reasonable timeout (10-30 min)
662
- - [ ] **Artifact retention**: 30 days for reports, 7 days for failure artifacts
663
- - [ ] **Parallelization**: Matrix strategy uses fail-fast: false
664
- - [ ] **Burn-in enabled**: Changed specs run 5-10x before merge
665
- - [ ] **wait-on app startup**: CI waits for app (wait-on: 'http://localhost:3000')
666
- - [ ] **Secrets documented**: README lists required secrets (API keys, tokens)
667
- - [ ] **Local parity**: CI scripts runnable locally (npm run test:ci)
668
-
669
- ## Integration Points
670
-
671
- - Used in workflows: `*ci` (CI/CD pipeline setup)
672
- - Related fragments: `selective-testing.md`, `playwright-config.md`, `test-quality.md`
673
- - CI tools: GitHub Actions, GitLab CI, CircleCI, Jenkins
674
-
675
- _Source: Murat CI/CD strategy blog, Playwright/Cypress workflow examples, SEON production pipelines_