appiq-solution 1.2.0 → 1.3.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (903) hide show
  1. package/#NEW APP PROMPT/ARCHITECTURE.md +279 -0
  2. package/#NEW APP PROMPT/ARCHITECTURE_UNIFIED.md +414 -0
  3. package/#NEW APP PROMPT/accesibility_prompt.md +103 -0
  4. package/#NEW APP PROMPT/clean-code.mdc +55 -0
  5. package/#NEW APP PROMPT/codequality.mdc +47 -0
  6. package/#NEW APP PROMPT/flutter-ai-rules/LICENSE +21 -0
  7. package/#NEW APP PROMPT/flutter-ai-rules/README.md +104 -0
  8. package/#NEW APP PROMPT/flutter-ai-rules/combined/README.md +25 -0
  9. package/#NEW APP PROMPT/flutter-ai-rules/combined/flutter_dart.md +192 -0
  10. package/#NEW APP PROMPT/flutter-ai-rules/combined/flutter_dart__under_6K.md +99 -0
  11. package/#NEW APP PROMPT/flutter-ai-rules/combined/flutter_dart_bloc_mocktail.md +308 -0
  12. package/#NEW APP PROMPT/flutter-ai-rules/combined/flutter_dart_bloc_mocktail__under_6K.md +87 -0
  13. package/#NEW APP PROMPT/flutter-ai-rules/combined/flutter_dart_change_notifier.md +254 -0
  14. package/#NEW APP PROMPT/flutter-ai-rules/combined/flutter_dart_change_notifier__under_6K.md +98 -0
  15. package/#NEW APP PROMPT/flutter-ai-rules/combined/flutter_dart_provider.md +261 -0
  16. package/#NEW APP PROMPT/flutter-ai-rules/combined/flutter_dart_provider__under_6K.md +105 -0
  17. package/#NEW APP PROMPT/flutter-ai-rules/combined/flutter_dart_riverpod_mockito.md +371 -0
  18. package/#NEW APP PROMPT/flutter-ai-rules/combined/flutter_dart_riverpod_mockito__under_6K.md +92 -0
  19. package/#NEW APP PROMPT/flutter-ai-rules/combined/flutter_with_bloc.md +287 -0
  20. package/#NEW APP PROMPT/flutter-ai-rules/combined/flutter_with_bloc__under_6K.md +68 -0
  21. package/#NEW APP PROMPT/flutter-ai-rules/combined/flutter_with_riverpod.md +375 -0
  22. package/#NEW APP PROMPT/flutter-ai-rules/combined/flutter_with_riverpod__under_6K.md +106 -0
  23. package/#NEW APP PROMPT/flutter-ai-rules/media/flutter_ai_rules.png +0 -0
  24. package/#NEW APP PROMPT/flutter-ai-rules/media/mocktail_md_01.png +0 -0
  25. package/#NEW APP PROMPT/flutter-ai-rules/media/mocktail_md_02.png +0 -0
  26. package/#NEW APP PROMPT/flutter-ai-rules/rules/bloc.md +94 -0
  27. package/#NEW APP PROMPT/flutter-ai-rules/rules/dart_3_updates.md +93 -0
  28. package/#NEW APP PROMPT/flutter-ai-rules/rules/effective_dart.md +105 -0
  29. package/#NEW APP PROMPT/flutter-ai-rules/rules/flutter_app_architecture.md +57 -0
  30. package/#NEW APP PROMPT/flutter-ai-rules/rules/flutter_change_notifier.md +62 -0
  31. package/#NEW APP PROMPT/flutter-ai-rules/rules/flutter_errors.md +11 -0
  32. package/#NEW APP PROMPT/flutter-ai-rules/rules/mockito.md +31 -0
  33. package/#NEW APP PROMPT/flutter-ai-rules/rules/mocktail.md +24 -0
  34. package/#NEW APP PROMPT/flutter-ai-rules/rules/provider.md +69 -0
  35. package/#NEW APP PROMPT/flutter-ai-rules/rules/riverpod.md +188 -0
  36. package/#NEW APP PROMPT/generate ssh.md +4 -0
  37. package/#NEW APP PROMPT/project_ai_prompt.md +544 -0
  38. package/{CHANGELOG.md → #Tools/APPIQ-METHOD/CHANGELOG.md} +173 -119
  39. package/#Tools/APPIQ-METHOD/README.md +139 -0
  40. package/#Tools/APPIQ-METHOD/appiq_start.md +232 -0
  41. package/{bmad-core → #Tools/APPIQ-METHOD/bmad-core}/agents/architect.md +0 -6
  42. package/{bmad-core → #Tools/APPIQ-METHOD/bmad-core}/agents/bmad-orchestrator.md +84 -0
  43. package/{bmad-core → #Tools/APPIQ-METHOD/bmad-core}/agents/dev.md +9 -23
  44. package/{bmad-core → #Tools/APPIQ-METHOD/bmad-core}/agents/pm.md +1 -3
  45. package/{bmad-core → #Tools/APPIQ-METHOD/bmad-core}/agents/qa.md +0 -17
  46. package/#Tools/APPIQ-METHOD/bmad-core/data/technical-preferences.md +3 -0
  47. package/{bmad-core → #Tools/APPIQ-METHOD/bmad-core}/templates/fullstack-architecture-tmpl.yaml +5 -12
  48. package/{bmad-core → #Tools/APPIQ-METHOD/bmad-core}/user-guide.md +9 -10
  49. package/{bmad-core → #Tools/APPIQ-METHOD/bmad-core}/working-in-the-brownfield.md +36 -39
  50. package/#Tools/APPIQ-METHOD/deployment/DEPLOYMENT_GUIDE.md +426 -0
  51. package/#Tools/APPIQ-METHOD/deployment/GITHUB_RELEASE_GUIDE.md +326 -0
  52. package/#Tools/APPIQ-METHOD/deployment/README.md +331 -0
  53. package/#Tools/APPIQ-METHOD/deployment/build/bmad-core/agent-teams/team-all.yaml +14 -0
  54. package/#Tools/APPIQ-METHOD/deployment/build/bmad-core/agent-teams/team-fullstack.yaml +18 -0
  55. package/#Tools/APPIQ-METHOD/deployment/build/bmad-core/agent-teams/team-ide-minimal.yaml +10 -0
  56. package/#Tools/APPIQ-METHOD/deployment/build/bmad-core/agent-teams/team-no-ui.yaml +13 -0
  57. package/#Tools/APPIQ-METHOD/deployment/build/bmad-core/agents/analyst.md +81 -0
  58. package/#Tools/APPIQ-METHOD/deployment/build/bmad-core/agents/architect.md +84 -0
  59. package/#Tools/APPIQ-METHOD/deployment/build/bmad-core/agents/bmad-master.md +108 -0
  60. package/#Tools/APPIQ-METHOD/deployment/build/bmad-core/agents/bmad-orchestrator.md +234 -0
  61. package/#Tools/APPIQ-METHOD/deployment/build/bmad-core/agents/dev.md +76 -0
  62. package/#Tools/APPIQ-METHOD/deployment/build/bmad-core/agents/pm.md +79 -0
  63. package/#Tools/APPIQ-METHOD/deployment/build/bmad-core/agents/po.md +76 -0
  64. package/#Tools/APPIQ-METHOD/deployment/build/bmad-core/agents/qa.md +69 -0
  65. package/#Tools/APPIQ-METHOD/deployment/build/bmad-core/agents/sm.md +62 -0
  66. package/#Tools/APPIQ-METHOD/deployment/build/bmad-core/agents/ux-expert.md +66 -0
  67. package/#Tools/APPIQ-METHOD/deployment/build/bmad-core/checklists/architect-checklist.md +443 -0
  68. package/#Tools/APPIQ-METHOD/deployment/build/bmad-core/checklists/change-checklist.md +182 -0
  69. package/#Tools/APPIQ-METHOD/deployment/build/bmad-core/checklists/pm-checklist.md +375 -0
  70. package/#Tools/APPIQ-METHOD/deployment/build/bmad-core/checklists/po-master-checklist.md +441 -0
  71. package/#Tools/APPIQ-METHOD/deployment/build/bmad-core/checklists/story-dod-checklist.md +101 -0
  72. package/#Tools/APPIQ-METHOD/deployment/build/bmad-core/checklists/story-draft-checklist.md +156 -0
  73. package/#Tools/APPIQ-METHOD/deployment/build/bmad-core/data/bmad-kb.md +803 -0
  74. package/#Tools/APPIQ-METHOD/deployment/build/bmad-core/data/brainstorming-techniques.md +36 -0
  75. package/#Tools/APPIQ-METHOD/deployment/build/bmad-core/data/elicitation-methods.md +134 -0
  76. package/#Tools/APPIQ-METHOD/deployment/build/bmad-core/data/technical-preferences.md +3 -0
  77. package/#Tools/APPIQ-METHOD/deployment/build/bmad-core/tasks/advanced-elicitation.md +117 -0
  78. package/#Tools/APPIQ-METHOD/deployment/build/bmad-core/tasks/brownfield-create-epic.md +160 -0
  79. package/#Tools/APPIQ-METHOD/deployment/build/bmad-core/tasks/brownfield-create-story.md +147 -0
  80. package/#Tools/APPIQ-METHOD/deployment/build/bmad-core/tasks/correct-course.md +70 -0
  81. package/#Tools/APPIQ-METHOD/deployment/build/bmad-core/tasks/create-brownfield-story.md +304 -0
  82. package/#Tools/APPIQ-METHOD/deployment/build/bmad-core/tasks/create-deep-research-prompt.md +289 -0
  83. package/#Tools/APPIQ-METHOD/deployment/build/bmad-core/tasks/create-next-story.md +112 -0
  84. package/#Tools/APPIQ-METHOD/deployment/build/bmad-core/tasks/document-project.md +341 -0
  85. package/#Tools/APPIQ-METHOD/deployment/build/bmad-core/tasks/facilitate-brainstorming-session.md +136 -0
  86. package/#Tools/APPIQ-METHOD/deployment/build/bmad-core/tasks/generate-ai-frontend-prompt.md +51 -0
  87. package/#Tools/APPIQ-METHOD/deployment/build/bmad-core/tasks/index-docs.md +179 -0
  88. package/#Tools/APPIQ-METHOD/deployment/build/bmad-core/tasks/kb-mode-interaction.md +75 -0
  89. package/#Tools/APPIQ-METHOD/deployment/build/bmad-core/tasks/review-story.md +145 -0
  90. package/#Tools/APPIQ-METHOD/deployment/build/bmad-core/tasks/shard-doc.md +187 -0
  91. package/#Tools/APPIQ-METHOD/deployment/build/bmad-core/tasks/validate-next-story.md +134 -0
  92. package/#Tools/APPIQ-METHOD/deployment/build/bmad-core/templates/architecture-tmpl.yaml +650 -0
  93. package/#Tools/APPIQ-METHOD/deployment/build/bmad-core/templates/brainstorming-output-tmpl.yaml +156 -0
  94. package/#Tools/APPIQ-METHOD/deployment/build/bmad-core/templates/brownfield-architecture-tmpl.yaml +476 -0
  95. package/#Tools/APPIQ-METHOD/deployment/build/bmad-core/templates/brownfield-prd-tmpl.yaml +280 -0
  96. package/#Tools/APPIQ-METHOD/deployment/build/bmad-core/templates/competitor-analysis-tmpl.yaml +293 -0
  97. package/#Tools/APPIQ-METHOD/deployment/build/bmad-core/templates/front-end-architecture-tmpl.yaml +206 -0
  98. package/#Tools/APPIQ-METHOD/deployment/build/bmad-core/templates/front-end-spec-tmpl.yaml +349 -0
  99. package/#Tools/APPIQ-METHOD/deployment/build/bmad-core/templates/fullstack-architecture-tmpl.yaml +805 -0
  100. package/#Tools/APPIQ-METHOD/deployment/build/bmad-core/templates/market-research-tmpl.yaml +252 -0
  101. package/#Tools/APPIQ-METHOD/deployment/build/bmad-core/templates/prd-tmpl.yaml +202 -0
  102. package/#Tools/APPIQ-METHOD/deployment/build/bmad-core/templates/project-brief-tmpl.yaml +221 -0
  103. package/#Tools/APPIQ-METHOD/deployment/build/bmad-core/templates/story-tmpl.yaml +137 -0
  104. package/#Tools/APPIQ-METHOD/deployment/build/bmad-core/user-guide.md +250 -0
  105. package/#Tools/APPIQ-METHOD/deployment/build/bmad-core/workflows/brownfield-fullstack.yaml +297 -0
  106. package/#Tools/APPIQ-METHOD/deployment/build/bmad-core/workflows/brownfield-service.yaml +187 -0
  107. package/#Tools/APPIQ-METHOD/deployment/build/bmad-core/workflows/brownfield-ui.yaml +197 -0
  108. package/#Tools/APPIQ-METHOD/deployment/build/bmad-core/workflows/greenfield-fullstack.yaml +240 -0
  109. package/#Tools/APPIQ-METHOD/deployment/build/bmad-core/workflows/greenfield-service.yaml +206 -0
  110. package/#Tools/APPIQ-METHOD/deployment/build/bmad-core/workflows/greenfield-ui.yaml +235 -0
  111. package/#Tools/APPIQ-METHOD/deployment/build/bmad-core/working-in-the-brownfield.md +361 -0
  112. package/{expansion-packs → #Tools/APPIQ-METHOD/deployment/build/expansion-packs}/bmad-2d-phaser-game-dev/config.yaml +1 -1
  113. package/{expansion-packs → #Tools/APPIQ-METHOD/deployment/build/expansion-packs}/bmad-2d-unity-game-dev/config.yaml +1 -1
  114. package/{expansion-packs → #Tools/APPIQ-METHOD/deployment/build/expansion-packs}/bmad-infrastructure-devops/config.yaml +1 -1
  115. package/#Tools/APPIQ-METHOD/deployment/build/expansion-packs/bmad-mobile-app-dev/agent-teams/mobile-team-cross-platform.yaml +22 -0
  116. package/#Tools/APPIQ-METHOD/deployment/build/expansion-packs/bmad-mobile-app-dev/agent-teams/mobile-team-flutter.yaml +20 -0
  117. package/#Tools/APPIQ-METHOD/deployment/build/expansion-packs/bmad-mobile-app-dev/agent-teams/mobile-team-minimal.yaml +13 -0
  118. package/#Tools/APPIQ-METHOD/deployment/build/expansion-packs/bmad-mobile-app-dev/agent-teams/mobile-team-react-native.yaml +20 -0
  119. package/#Tools/APPIQ-METHOD/deployment/build/expansion-packs/bmad-mobile-app-dev/agents/mobile-analytics.md +1487 -0
  120. package/#Tools/APPIQ-METHOD/deployment/build/expansion-packs/bmad-mobile-app-dev/agents/mobile-architect.md +279 -0
  121. package/#Tools/APPIQ-METHOD/deployment/build/expansion-packs/bmad-mobile-app-dev/agents/mobile-developer.md +649 -0
  122. package/#Tools/APPIQ-METHOD/deployment/build/expansion-packs/bmad-mobile-app-dev/agents/mobile-pm.md +339 -0
  123. package/#Tools/APPIQ-METHOD/deployment/build/expansion-packs/bmad-mobile-app-dev/agents/mobile-qa.md +622 -0
  124. package/#Tools/APPIQ-METHOD/deployment/build/expansion-packs/bmad-mobile-app-dev/agents/mobile-security.md +1027 -0
  125. package/#Tools/APPIQ-METHOD/deployment/build/expansion-packs/bmad-mobile-app-dev/agents/mobile-ux-expert.md +1451 -0
  126. package/#Tools/APPIQ-METHOD/deployment/build/expansion-packs/bmad-mobile-app-dev/checklists/mobile-development-checklist.md +490 -0
  127. package/#Tools/APPIQ-METHOD/deployment/build/expansion-packs/bmad-mobile-app-dev/config.yaml +54 -0
  128. package/#Tools/APPIQ-METHOD/deployment/build/expansion-packs/bmad-mobile-app-dev/data/bmad-kb.md +292 -0
  129. package/#Tools/APPIQ-METHOD/deployment/build/expansion-packs/bmad-mobile-app-dev/data/flutter-development-guidelines.md +483 -0
  130. package/#Tools/APPIQ-METHOD/deployment/build/expansion-packs/bmad-mobile-app-dev/tasks/existing-app-analysis.md +645 -0
  131. package/#Tools/APPIQ-METHOD/deployment/build/expansion-packs/bmad-mobile-app-dev/tasks/platform-selection.md +489 -0
  132. package/#Tools/APPIQ-METHOD/deployment/build/expansion-packs/bmad-mobile-app-dev/templates/mobile-architecture-tmpl.yaml +437 -0
  133. package/#Tools/APPIQ-METHOD/deployment/build/expansion-packs/bmad-mobile-app-dev/templates/mobile-prd-tmpl.yaml +408 -0
  134. package/#Tools/APPIQ-METHOD/deployment/build/expansion-packs/bmad-mobile-app-dev/workflows/mobile-app-development-init.yaml +555 -0
  135. package/#Tools/APPIQ-METHOD/deployment/build/expansion-packs/bmad-mobile-app-dev/workflows/mobile-brownfield-flutter.yaml +336 -0
  136. package/#Tools/APPIQ-METHOD/deployment/build/expansion-packs/bmad-mobile-app-dev/workflows/mobile-brownfield-react-native.yaml +345 -0
  137. package/#Tools/APPIQ-METHOD/deployment/build/expansion-packs/bmad-mobile-app-dev/workflows/mobile-greenfield-flutter.yaml +281 -0
  138. package/#Tools/APPIQ-METHOD/deployment/build/expansion-packs/bmad-mobile-app-dev/workflows/mobile-greenfield-react-native.yaml +283 -0
  139. package/#Tools/APPIQ-METHOD/deployment/build/expansion-packs/bmad-mobile-app-dev/workflows/mobile-platform-selection.yaml +404 -0
  140. package/#Tools/APPIQ-METHOD/deployment/build/slash-commands/appiq.md +273 -0
  141. package/#Tools/APPIQ-METHOD/deployment/build/slash-commands/ide-integrations/claude-appiq.md +294 -0
  142. package/#Tools/APPIQ-METHOD/deployment/build/slash-commands/ide-integrations/cursor-appiq.md +516 -0
  143. package/#Tools/APPIQ-METHOD/deployment/build/slash-commands/ide-integrations/universal-appiq.md +448 -0
  144. package/#Tools/APPIQ-METHOD/deployment/build/slash-commands/ide-integrations/windsurf-appiq.md +698 -0
  145. package/#Tools/APPIQ-METHOD/deployment/build/slash-commands/start.md +211 -0
  146. package/#Tools/APPIQ-METHOD/deployment/build-release.sh +449 -0
  147. package/#Tools/APPIQ-METHOD/deployment/create-release.sh +196 -0
  148. package/#Tools/APPIQ-METHOD/deployment/dist/appiq_installer.sh +678 -0
  149. package/#Tools/APPIQ-METHOD/deployment/docs/main_prd.md +36 -0
  150. package/#Tools/APPIQ-METHOD/deployment/init_appiq.sh +805 -0
  151. package/#Tools/APPIQ-METHOD/deployment/init_appiq_v2.sh +678 -0
  152. package/#Tools/APPIQ-METHOD/deployment/installers/appiq-global.sh +91 -0
  153. package/#Tools/APPIQ-METHOD/deployment/installers/claude-integration.sh +281 -0
  154. package/#Tools/APPIQ-METHOD/deployment/installers/cursor-integration.sh +257 -0
  155. package/#Tools/APPIQ-METHOD/deployment/installers/terminal-integration.sh +645 -0
  156. package/#Tools/APPIQ-METHOD/deployment/installers/windsurf-integration.sh +350 -0
  157. package/#Tools/APPIQ-METHOD/deployment/package-v2.sh +97 -0
  158. package/#Tools/APPIQ-METHOD/deployment/package.sh +363 -0
  159. package/#Tools/APPIQ-METHOD/deployment/quick-install.sh +57 -0
  160. package/#Tools/APPIQ-METHOD/dist/agents/analyst.txt +2882 -0
  161. package/#Tools/APPIQ-METHOD/dist/agents/architect.txt +3543 -0
  162. package/#Tools/APPIQ-METHOD/dist/agents/bmad-master.txt +8756 -0
  163. package/#Tools/APPIQ-METHOD/dist/agents/bmad-orchestrator.txt +1601 -0
  164. package/#Tools/APPIQ-METHOD/dist/agents/dev.txt +428 -0
  165. package/#Tools/APPIQ-METHOD/dist/agents/pm.txt +2227 -0
  166. package/#Tools/APPIQ-METHOD/dist/agents/po.txt +1364 -0
  167. package/#Tools/APPIQ-METHOD/dist/agents/qa.txt +386 -0
  168. package/#Tools/APPIQ-METHOD/dist/agents/sm.txt +668 -0
  169. package/#Tools/APPIQ-METHOD/dist/agents/ux-expert.txt +701 -0
  170. package/#Tools/APPIQ-METHOD/dist/expansion-packs/bmad-2d-phaser-game-dev/agents/game-designer.txt +2408 -0
  171. package/#Tools/APPIQ-METHOD/dist/expansion-packs/bmad-2d-phaser-game-dev/agents/game-developer.txt +1631 -0
  172. package/#Tools/APPIQ-METHOD/dist/expansion-packs/bmad-2d-phaser-game-dev/agents/game-sm.txt +822 -0
  173. package/#Tools/APPIQ-METHOD/dist/expansion-packs/bmad-2d-phaser-game-dev/teams/phaser-2d-nodejs-game-team.txt +11100 -0
  174. package/#Tools/APPIQ-METHOD/dist/expansion-packs/bmad-2d-unity-game-dev/agents/game-architect.txt +4047 -0
  175. package/#Tools/APPIQ-METHOD/dist/expansion-packs/bmad-2d-unity-game-dev/agents/game-designer.txt +3744 -0
  176. package/#Tools/APPIQ-METHOD/dist/expansion-packs/bmad-2d-unity-game-dev/agents/game-developer.txt +465 -0
  177. package/#Tools/APPIQ-METHOD/dist/expansion-packs/bmad-2d-unity-game-dev/agents/game-sm.txt +990 -0
  178. package/#Tools/APPIQ-METHOD/dist/expansion-packs/bmad-2d-unity-game-dev/teams/unity-2d-game-team.txt +15578 -0
  179. package/#Tools/APPIQ-METHOD/dist/expansion-packs/bmad-infrastructure-devops/agents/infra-devops-platform.txt +2077 -0
  180. package/#Tools/APPIQ-METHOD/dist/expansion-packs/bmad-mobile-app-dev/agents/mobile-analytics.txt +1530 -0
  181. package/#Tools/APPIQ-METHOD/dist/expansion-packs/bmad-mobile-app-dev/agents/mobile-architect.txt +322 -0
  182. package/#Tools/APPIQ-METHOD/dist/expansion-packs/bmad-mobile-app-dev/agents/mobile-developer.txt +692 -0
  183. package/#Tools/APPIQ-METHOD/dist/expansion-packs/bmad-mobile-app-dev/agents/mobile-pm.txt +382 -0
  184. package/#Tools/APPIQ-METHOD/dist/expansion-packs/bmad-mobile-app-dev/agents/mobile-qa.txt +665 -0
  185. package/#Tools/APPIQ-METHOD/dist/expansion-packs/bmad-mobile-app-dev/agents/mobile-security.txt +1070 -0
  186. package/#Tools/APPIQ-METHOD/dist/expansion-packs/bmad-mobile-app-dev/agents/mobile-ux-expert.txt +1494 -0
  187. package/#Tools/APPIQ-METHOD/dist/expansion-packs/bmad-mobile-app-dev/teams/mobile-team-cross-platform.txt +15613 -0
  188. package/#Tools/APPIQ-METHOD/dist/teams/team-all.txt +11171 -0
  189. package/#Tools/APPIQ-METHOD/dist/teams/team-fullstack.txt +10501 -0
  190. package/#Tools/APPIQ-METHOD/dist/teams/team-ide-minimal.txt +3618 -0
  191. package/#Tools/APPIQ-METHOD/dist/teams/team-no-ui.txt +9060 -0
  192. package/#Tools/APPIQ-METHOD/expansion-packs/README.md +3 -0
  193. package/#Tools/APPIQ-METHOD/expansion-packs/bmad-2d-phaser-game-dev/agent-teams/phaser-2d-nodejs-game-team.yaml +13 -0
  194. package/#Tools/APPIQ-METHOD/expansion-packs/bmad-2d-phaser-game-dev/agents/game-designer.md +71 -0
  195. package/#Tools/APPIQ-METHOD/expansion-packs/bmad-2d-phaser-game-dev/agents/game-developer.md +78 -0
  196. package/#Tools/APPIQ-METHOD/expansion-packs/bmad-2d-phaser-game-dev/agents/game-sm.md +64 -0
  197. package/#Tools/APPIQ-METHOD/expansion-packs/bmad-2d-phaser-game-dev/checklists/game-design-checklist.md +201 -0
  198. package/#Tools/APPIQ-METHOD/expansion-packs/bmad-2d-phaser-game-dev/checklists/game-story-dod-checklist.md +160 -0
  199. package/#Tools/APPIQ-METHOD/expansion-packs/bmad-2d-phaser-game-dev/config.yaml +8 -0
  200. package/#Tools/APPIQ-METHOD/expansion-packs/bmad-2d-phaser-game-dev/data/bmad-kb.md +254 -0
  201. package/#Tools/APPIQ-METHOD/expansion-packs/bmad-2d-phaser-game-dev/data/development-guidelines.md +651 -0
  202. package/#Tools/APPIQ-METHOD/expansion-packs/bmad-2d-phaser-game-dev/tasks/advanced-elicitation.md +111 -0
  203. package/#Tools/APPIQ-METHOD/expansion-packs/bmad-2d-phaser-game-dev/tasks/create-game-story.md +216 -0
  204. package/#Tools/APPIQ-METHOD/expansion-packs/bmad-2d-phaser-game-dev/tasks/game-design-brainstorming.md +308 -0
  205. package/#Tools/APPIQ-METHOD/expansion-packs/bmad-2d-phaser-game-dev/templates/game-architecture-tmpl.yaml +613 -0
  206. package/#Tools/APPIQ-METHOD/expansion-packs/bmad-2d-phaser-game-dev/templates/game-brief-tmpl.yaml +356 -0
  207. package/#Tools/APPIQ-METHOD/expansion-packs/bmad-2d-phaser-game-dev/templates/game-design-doc-tmpl.yaml +343 -0
  208. package/#Tools/APPIQ-METHOD/expansion-packs/bmad-2d-phaser-game-dev/templates/game-story-tmpl.yaml +253 -0
  209. package/#Tools/APPIQ-METHOD/expansion-packs/bmad-2d-phaser-game-dev/templates/level-design-doc-tmpl.yaml +484 -0
  210. package/#Tools/APPIQ-METHOD/expansion-packs/bmad-2d-phaser-game-dev/workflows/game-dev-greenfield.yaml +183 -0
  211. package/#Tools/APPIQ-METHOD/expansion-packs/bmad-2d-phaser-game-dev/workflows/game-prototype.yaml +175 -0
  212. package/#Tools/APPIQ-METHOD/expansion-packs/bmad-2d-unity-game-dev/agent-teams/unity-2d-game-team.yaml +14 -0
  213. package/#Tools/APPIQ-METHOD/expansion-packs/bmad-2d-unity-game-dev/agents/game-architect.md +80 -0
  214. package/#Tools/APPIQ-METHOD/expansion-packs/bmad-2d-unity-game-dev/agents/game-designer.md +77 -0
  215. package/#Tools/APPIQ-METHOD/expansion-packs/bmad-2d-unity-game-dev/agents/game-developer.md +78 -0
  216. package/#Tools/APPIQ-METHOD/expansion-packs/bmad-2d-unity-game-dev/agents/game-sm.md +65 -0
  217. package/#Tools/APPIQ-METHOD/expansion-packs/bmad-2d-unity-game-dev/checklists/game-architect-checklist.md +396 -0
  218. package/#Tools/APPIQ-METHOD/expansion-packs/bmad-2d-unity-game-dev/checklists/game-change-checklist.md +203 -0
  219. package/#Tools/APPIQ-METHOD/expansion-packs/bmad-2d-unity-game-dev/checklists/game-design-checklist.md +201 -0
  220. package/#Tools/APPIQ-METHOD/expansion-packs/bmad-2d-unity-game-dev/checklists/game-story-dod-checklist.md +132 -0
  221. package/#Tools/APPIQ-METHOD/expansion-packs/bmad-2d-unity-game-dev/config.yaml +6 -0
  222. package/#Tools/APPIQ-METHOD/expansion-packs/bmad-2d-unity-game-dev/data/bmad-kb.md +776 -0
  223. package/#Tools/APPIQ-METHOD/expansion-packs/bmad-2d-unity-game-dev/data/development-guidelines.md +590 -0
  224. package/#Tools/APPIQ-METHOD/expansion-packs/bmad-2d-unity-game-dev/tasks/advanced-elicitation.md +111 -0
  225. package/#Tools/APPIQ-METHOD/expansion-packs/bmad-2d-unity-game-dev/tasks/correct-course-game.md +151 -0
  226. package/#Tools/APPIQ-METHOD/expansion-packs/bmad-2d-unity-game-dev/tasks/create-game-story.md +184 -0
  227. package/#Tools/APPIQ-METHOD/expansion-packs/bmad-2d-unity-game-dev/tasks/game-design-brainstorming.md +308 -0
  228. package/#Tools/APPIQ-METHOD/expansion-packs/bmad-2d-unity-game-dev/tasks/validate-game-story.md +200 -0
  229. package/#Tools/APPIQ-METHOD/expansion-packs/bmad-2d-unity-game-dev/templates/game-architecture-tmpl.yaml +1030 -0
  230. package/#Tools/APPIQ-METHOD/expansion-packs/bmad-2d-unity-game-dev/templates/game-brief-tmpl.yaml +356 -0
  231. package/#Tools/APPIQ-METHOD/expansion-packs/bmad-2d-unity-game-dev/templates/game-design-doc-tmpl.yaml +705 -0
  232. package/#Tools/APPIQ-METHOD/expansion-packs/bmad-2d-unity-game-dev/templates/game-story-tmpl.yaml +256 -0
  233. package/#Tools/APPIQ-METHOD/expansion-packs/bmad-2d-unity-game-dev/templates/level-design-doc-tmpl.yaml +484 -0
  234. package/#Tools/APPIQ-METHOD/expansion-packs/bmad-2d-unity-game-dev/workflows/game-dev-greenfield.yaml +183 -0
  235. package/#Tools/APPIQ-METHOD/expansion-packs/bmad-2d-unity-game-dev/workflows/game-prototype.yaml +175 -0
  236. package/#Tools/APPIQ-METHOD/expansion-packs/bmad-infrastructure-devops/README.md +147 -0
  237. package/#Tools/APPIQ-METHOD/expansion-packs/bmad-infrastructure-devops/agents/infra-devops-platform.md +71 -0
  238. package/#Tools/APPIQ-METHOD/expansion-packs/bmad-infrastructure-devops/checklists/infrastructure-checklist.md +484 -0
  239. package/#Tools/APPIQ-METHOD/expansion-packs/bmad-infrastructure-devops/config.yaml +9 -0
  240. package/#Tools/APPIQ-METHOD/expansion-packs/bmad-infrastructure-devops/data/bmad-kb.md +308 -0
  241. package/#Tools/APPIQ-METHOD/expansion-packs/bmad-infrastructure-devops/tasks/review-infrastructure.md +160 -0
  242. package/#Tools/APPIQ-METHOD/expansion-packs/bmad-infrastructure-devops/tasks/validate-infrastructure.md +154 -0
  243. package/#Tools/APPIQ-METHOD/expansion-packs/bmad-infrastructure-devops/templates/infrastructure-architecture-tmpl.yaml +424 -0
  244. package/#Tools/APPIQ-METHOD/expansion-packs/bmad-infrastructure-devops/templates/infrastructure-platform-from-arch-tmpl.yaml +629 -0
  245. package/#Tools/APPIQ-METHOD/expansion-packs/bmad-mobile-app-dev/agent-teams/mobile-team-cross-platform.yaml +22 -0
  246. package/#Tools/APPIQ-METHOD/expansion-packs/bmad-mobile-app-dev/agent-teams/mobile-team-flutter.yaml +20 -0
  247. package/#Tools/APPIQ-METHOD/expansion-packs/bmad-mobile-app-dev/agent-teams/mobile-team-minimal.yaml +13 -0
  248. package/#Tools/APPIQ-METHOD/expansion-packs/bmad-mobile-app-dev/agent-teams/mobile-team-react-native.yaml +20 -0
  249. package/#Tools/APPIQ-METHOD/expansion-packs/bmad-mobile-app-dev/agents/mobile-analytics.md +1487 -0
  250. package/#Tools/APPIQ-METHOD/expansion-packs/bmad-mobile-app-dev/agents/mobile-architect.md +279 -0
  251. package/#Tools/APPIQ-METHOD/expansion-packs/bmad-mobile-app-dev/agents/mobile-developer.md +649 -0
  252. package/#Tools/APPIQ-METHOD/expansion-packs/bmad-mobile-app-dev/agents/mobile-pm.md +339 -0
  253. package/#Tools/APPIQ-METHOD/expansion-packs/bmad-mobile-app-dev/agents/mobile-qa.md +622 -0
  254. package/#Tools/APPIQ-METHOD/expansion-packs/bmad-mobile-app-dev/agents/mobile-security.md +1027 -0
  255. package/#Tools/APPIQ-METHOD/expansion-packs/bmad-mobile-app-dev/agents/mobile-ux-expert.md +1451 -0
  256. package/#Tools/APPIQ-METHOD/expansion-packs/bmad-mobile-app-dev/checklists/mobile-development-checklist.md +490 -0
  257. package/#Tools/APPIQ-METHOD/expansion-packs/bmad-mobile-app-dev/config.yaml +54 -0
  258. package/#Tools/APPIQ-METHOD/expansion-packs/bmad-mobile-app-dev/data/bmad-kb.md +292 -0
  259. package/#Tools/APPIQ-METHOD/expansion-packs/bmad-mobile-app-dev/data/flutter-development-guidelines.md +483 -0
  260. package/#Tools/APPIQ-METHOD/expansion-packs/bmad-mobile-app-dev/tasks/existing-app-analysis.md +645 -0
  261. package/#Tools/APPIQ-METHOD/expansion-packs/bmad-mobile-app-dev/tasks/platform-selection.md +489 -0
  262. package/#Tools/APPIQ-METHOD/expansion-packs/bmad-mobile-app-dev/templates/mobile-architecture-tmpl.yaml +437 -0
  263. package/#Tools/APPIQ-METHOD/expansion-packs/bmad-mobile-app-dev/templates/mobile-prd-tmpl.yaml +408 -0
  264. package/#Tools/APPIQ-METHOD/expansion-packs/bmad-mobile-app-dev/workflows/mobile-app-development-init.yaml +555 -0
  265. package/#Tools/APPIQ-METHOD/expansion-packs/bmad-mobile-app-dev/workflows/mobile-brownfield-flutter.yaml +336 -0
  266. package/#Tools/APPIQ-METHOD/expansion-packs/bmad-mobile-app-dev/workflows/mobile-brownfield-react-native.yaml +345 -0
  267. package/#Tools/APPIQ-METHOD/expansion-packs/bmad-mobile-app-dev/workflows/mobile-greenfield-flutter.yaml +281 -0
  268. package/#Tools/APPIQ-METHOD/expansion-packs/bmad-mobile-app-dev/workflows/mobile-greenfield-react-native.yaml +283 -0
  269. package/#Tools/APPIQ-METHOD/expansion-packs/bmad-mobile-app-dev/workflows/mobile-platform-selection.yaml +404 -0
  270. package/#Tools/APPIQ-METHOD/package-bmad-backup.json +78 -0
  271. package/#Tools/APPIQ-METHOD/package.json +93 -0
  272. package/#Tools/APPIQ-METHOD/slash-commands/appiq.md +273 -0
  273. package/#Tools/APPIQ-METHOD/slash-commands/ide-integrations/claude-appiq.md +294 -0
  274. package/#Tools/APPIQ-METHOD/slash-commands/ide-integrations/cursor-appiq.md +516 -0
  275. package/#Tools/APPIQ-METHOD/slash-commands/ide-integrations/universal-appiq.md +448 -0
  276. package/#Tools/APPIQ-METHOD/slash-commands/ide-integrations/windsurf-appiq.md +698 -0
  277. package/#Tools/APPIQ-METHOD/slash-commands/start.md +211 -0
  278. package/#Tools/APPIQ-METHOD/tools/bmad-npx-wrapper.js +41 -0
  279. package/#Tools/APPIQ-METHOD/tools/builders/web-builder.js +681 -0
  280. package/#Tools/APPIQ-METHOD/tools/bump-all-versions.js +106 -0
  281. package/#Tools/APPIQ-METHOD/tools/bump-expansion-version.js +83 -0
  282. package/#Tools/APPIQ-METHOD/tools/cli.js +152 -0
  283. package/#Tools/APPIQ-METHOD/tools/installer/README.md +8 -0
  284. package/#Tools/APPIQ-METHOD/tools/installer/bin/bmad.js +469 -0
  285. package/#Tools/APPIQ-METHOD/tools/installer/config/ide-agent-config.yaml +58 -0
  286. package/#Tools/APPIQ-METHOD/tools/installer/config/install.config.yaml +92 -0
  287. package/#Tools/APPIQ-METHOD/tools/installer/lib/config-loader.js +253 -0
  288. package/#Tools/APPIQ-METHOD/tools/installer/lib/file-manager.js +411 -0
  289. package/#Tools/APPIQ-METHOD/tools/installer/lib/ide-base-setup.js +227 -0
  290. package/#Tools/APPIQ-METHOD/tools/installer/lib/ide-setup.js +1096 -0
  291. package/#Tools/APPIQ-METHOD/tools/installer/lib/installer.js +1746 -0
  292. package/#Tools/APPIQ-METHOD/tools/installer/lib/memory-profiler.js +224 -0
  293. package/#Tools/APPIQ-METHOD/tools/installer/lib/module-manager.js +110 -0
  294. package/#Tools/APPIQ-METHOD/tools/installer/lib/resource-locator.js +310 -0
  295. package/#Tools/APPIQ-METHOD/tools/installer/package.json +43 -0
  296. package/#Tools/APPIQ-METHOD/tools/lib/dependency-resolver.js +179 -0
  297. package/#Tools/APPIQ-METHOD/tools/lib/yaml-utils.js +29 -0
  298. package/#Tools/APPIQ-METHOD/tools/md-assets/web-agent-startup-instructions.md +39 -0
  299. package/#Tools/APPIQ-METHOD/tools/semantic-release-sync-installer.js +30 -0
  300. package/#Tools/APPIQ-METHOD/tools/sync-installer-version.js +34 -0
  301. package/#Tools/APPIQ-METHOD/tools/update-expansion-version.js +54 -0
  302. package/#Tools/APPIQ-METHOD/tools/upgraders/v3-to-v4-upgrader.js +763 -0
  303. package/#Tools/APPIQ-METHOD/tools/version-bump.js +79 -0
  304. package/#Tools/APPIQ-METHOD/tools/yaml-format.js +240 -0
  305. package/#Tools/SkyReels-V2/.pre-commit-config.yaml +25 -0
  306. package/#Tools/SkyReels-V2/LICENSE.txt +38 -0
  307. package/#Tools/SkyReels-V2/README.md +766 -0
  308. package/#Tools/SkyReels-V2/generate_video.py +161 -0
  309. package/#Tools/SkyReels-V2/generate_video_df.py +220 -0
  310. package/#Tools/SkyReels-V2/requirements.txt +16 -0
  311. package/#Tools/SkyReels-V2/skycaptioner_v1/README.md +278 -0
  312. package/#Tools/SkyReels-V2/skycaptioner_v1/examples/test.csv +5 -0
  313. package/#Tools/SkyReels-V2/skycaptioner_v1/examples/test_result.csv +5 -0
  314. package/#Tools/SkyReels-V2/skycaptioner_v1/infer_fusion_caption.sh +9 -0
  315. package/#Tools/SkyReels-V2/skycaptioner_v1/infer_struct_caption.sh +8 -0
  316. package/#Tools/SkyReels-V2/skycaptioner_v1/requirements.txt +3 -0
  317. package/#Tools/SkyReels-V2/skycaptioner_v1/scripts/gradio_fusion_caption.py +146 -0
  318. package/#Tools/SkyReels-V2/skycaptioner_v1/scripts/gradio_struct_caption.py +92 -0
  319. package/#Tools/SkyReels-V2/skycaptioner_v1/scripts/utils.py +19 -0
  320. package/#Tools/SkyReels-V2/skycaptioner_v1/scripts/vllm_fusion_caption.py +256 -0
  321. package/#Tools/SkyReels-V2/skycaptioner_v1/scripts/vllm_struct_caption.py +156 -0
  322. package/#Tools/SkyReels-V2/skyreels_v2_infer/__init__.py +1 -0
  323. package/#Tools/SkyReels-V2/skyreels_v2_infer/distributed/xdit_context_parallel.py +286 -0
  324. package/#Tools/SkyReels-V2/skyreels_v2_infer/modules/__init__.py +69 -0
  325. package/#Tools/SkyReels-V2/skyreels_v2_infer/modules/attention.py +179 -0
  326. package/#Tools/SkyReels-V2/skyreels_v2_infer/modules/clip.py +525 -0
  327. package/#Tools/SkyReels-V2/skyreels_v2_infer/modules/t5.py +454 -0
  328. package/#Tools/SkyReels-V2/skyreels_v2_infer/modules/tokenizers.py +78 -0
  329. package/#Tools/SkyReels-V2/skyreels_v2_infer/modules/transformer.py +839 -0
  330. package/#Tools/SkyReels-V2/skyreels_v2_infer/modules/vae.py +639 -0
  331. package/#Tools/SkyReels-V2/skyreels_v2_infer/modules/xlm_roberta.py +165 -0
  332. package/#Tools/SkyReels-V2/skyreels_v2_infer/pipelines/__init__.py +5 -0
  333. package/#Tools/SkyReels-V2/skyreels_v2_infer/pipelines/diffusion_forcing_pipeline.py +659 -0
  334. package/#Tools/SkyReels-V2/skyreels_v2_infer/pipelines/image2video_pipeline.py +156 -0
  335. package/#Tools/SkyReels-V2/skyreels_v2_infer/pipelines/prompt_enhancer.py +65 -0
  336. package/#Tools/SkyReels-V2/skyreels_v2_infer/pipelines/text2video_pipeline.py +110 -0
  337. package/#Tools/SkyReels-V2/skyreels_v2_infer/scheduler/__init__.py +0 -0
  338. package/#Tools/SkyReels-V2/skyreels_v2_infer/scheduler/fm_solvers_unipc.py +759 -0
  339. package/#Tools/SuperClaude/.claude/commands/analyze.md +36 -0
  340. package/#Tools/SuperClaude/.claude/commands/build.md +35 -0
  341. package/#Tools/SuperClaude/.claude/commands/cleanup.md +46 -0
  342. package/#Tools/SuperClaude/.claude/commands/deploy.md +55 -0
  343. package/#Tools/SuperClaude/.claude/commands/design.md +91 -0
  344. package/#Tools/SuperClaude/.claude/commands/dev-setup.md +37 -0
  345. package/#Tools/SuperClaude/.claude/commands/document.md +99 -0
  346. package/#Tools/SuperClaude/.claude/commands/estimate.md +69 -0
  347. package/#Tools/SuperClaude/.claude/commands/explain.md +85 -0
  348. package/#Tools/SuperClaude/.claude/commands/git.md +47 -0
  349. package/#Tools/SuperClaude/.claude/commands/improve.md +162 -0
  350. package/#Tools/SuperClaude/.claude/commands/index.md +159 -0
  351. package/#Tools/SuperClaude/.claude/commands/load.md +65 -0
  352. package/#Tools/SuperClaude/.claude/commands/migrate.md +76 -0
  353. package/#Tools/SuperClaude/.claude/commands/scan.md +163 -0
  354. package/#Tools/SuperClaude/.claude/commands/shared/ambiguity-check.yml +40 -0
  355. package/#Tools/SuperClaude/.claude/commands/shared/audit.yml +21 -0
  356. package/#Tools/SuperClaude/.claude/commands/shared/checkpoint.yml +28 -0
  357. package/#Tools/SuperClaude/.claude/commands/shared/cleanup-patterns.yml +107 -0
  358. package/#Tools/SuperClaude/.claude/commands/shared/command-memory.yml +52 -0
  359. package/#Tools/SuperClaude/.claude/commands/shared/command-templates.yml +167 -0
  360. package/#Tools/SuperClaude/.claude/commands/shared/config-validator.yml +206 -0
  361. package/#Tools/SuperClaude/.claude/commands/shared/constants.yml +311 -0
  362. package/#Tools/SuperClaude/.claude/commands/shared/documentation-dirs.yml +134 -0
  363. package/#Tools/SuperClaude/.claude/commands/shared/error-handling.yml +341 -0
  364. package/#Tools/SuperClaude/.claude/commands/shared/evidence.yml +75 -0
  365. package/#Tools/SuperClaude/.claude/commands/shared/execution-lifecycle.yml +277 -0
  366. package/#Tools/SuperClaude/.claude/commands/shared/git-operations.yml +217 -0
  367. package/#Tools/SuperClaude/.claude/commands/shared/git-workflow.yml +37 -0
  368. package/#Tools/SuperClaude/.claude/commands/shared/implementation.yml +199 -0
  369. package/#Tools/SuperClaude/.claude/commands/shared/loading-config.yml +73 -0
  370. package/#Tools/SuperClaude/.claude/commands/shared/mcp-flags.yml +109 -0
  371. package/#Tools/SuperClaude/.claude/commands/shared/migration-report.md +165 -0
  372. package/#Tools/SuperClaude/.claude/commands/shared/patterns.yml +155 -0
  373. package/#Tools/SuperClaude/.claude/commands/shared/performance.yml +317 -0
  374. package/#Tools/SuperClaude/.claude/commands/shared/planning-mode.yml +51 -0
  375. package/#Tools/SuperClaude/.claude/commands/shared/research-first.yml +278 -0
  376. package/#Tools/SuperClaude/.claude/commands/shared/session-recovery.yml +144 -0
  377. package/#Tools/SuperClaude/.claude/commands/shared/severity-levels.yml +252 -0
  378. package/#Tools/SuperClaude/.claude/commands/shared/task-system.yml +380 -0
  379. package/#Tools/SuperClaude/.claude/commands/shared/task-ultracompressed.yml +88 -0
  380. package/#Tools/SuperClaude/.claude/commands/shared/templates/feature-template.md +59 -0
  381. package/#Tools/SuperClaude/.claude/commands/shared/templates/task-ultracompressed.md +26 -0
  382. package/#Tools/SuperClaude/.claude/commands/shared/thinking-modes.yml +61 -0
  383. package/#Tools/SuperClaude/.claude/commands/shared/ultracompressed.yml +97 -0
  384. package/#Tools/SuperClaude/.claude/commands/shared/user-experience.yml +208 -0
  385. package/#Tools/SuperClaude/.claude/commands/shared/validation.yml +54 -0
  386. package/#Tools/SuperClaude/.claude/commands/shared/workflow-chains.yml +138 -0
  387. package/#Tools/SuperClaude/.claude/commands/spawn.md +106 -0
  388. package/#Tools/SuperClaude/.claude/commands/task.md +110 -0
  389. package/#Tools/SuperClaude/.claude/commands/test.md +67 -0
  390. package/#Tools/SuperClaude/.claude/commands/troubleshoot.md +93 -0
  391. package/#Tools/SuperClaude/.github/ISSUE_TEMPLATE/bug_report.yml +114 -0
  392. package/#Tools/SuperClaude/.github/ISSUE_TEMPLATE/feature_request.yml +119 -0
  393. package/#Tools/SuperClaude/.github/ISSUE_TEMPLATE/question.yml +87 -0
  394. package/#Tools/SuperClaude/.github/pull_request_template.md +62 -0
  395. package/#Tools/SuperClaude/CHANGELOG.md +109 -0
  396. package/#Tools/SuperClaude/CLAUDE.md +95 -0
  397. package/#Tools/SuperClaude/CODE_OF_CONDUCT.md +45 -0
  398. package/#Tools/SuperClaude/CONTRIBUTING.md +225 -0
  399. package/#Tools/SuperClaude/Commands_Cheat_Sheet.md +160 -0
  400. package/#Tools/SuperClaude/LICENSE +21 -0
  401. package/#Tools/SuperClaude/MCP.md +117 -0
  402. package/#Tools/SuperClaude/PERSONAS.md +115 -0
  403. package/#Tools/SuperClaude/README.md +249 -0
  404. package/#Tools/SuperClaude/RULES.md +220 -0
  405. package/#Tools/SuperClaude/SECURITY.md +91 -0
  406. package/#Tools/SuperClaude/install.sh +296 -0
  407. package/#Tools/claude-talk-to-figma-mcp/.github/workflows/test.yml +36 -0
  408. package/#Tools/claude-talk-to-figma-mcp/CHANGELOG.md +88 -0
  409. package/#Tools/claude-talk-to-figma-mcp/Dockerfile +16 -0
  410. package/#Tools/claude-talk-to-figma-mcp/LICENSE +22 -0
  411. package/#Tools/claude-talk-to-figma-mcp/TESTING.md +216 -0
  412. package/#Tools/claude-talk-to-figma-mcp/bun.lock +964 -0
  413. package/#Tools/claude-talk-to-figma-mcp/context/01/00-analisis.md +151 -0
  414. package/#Tools/claude-talk-to-figma-mcp/context/01/01-tools-refactor.md +370 -0
  415. package/#Tools/claude-talk-to-figma-mcp/context/01/02-tools-refactor-backlog.md +253 -0
  416. package/#Tools/claude-talk-to-figma-mcp/context/01/03-tools-refactor-test.md +138 -0
  417. package/#Tools/claude-talk-to-figma-mcp/context/01/04-tools-refactor-channel-error.md +133 -0
  418. package/#Tools/claude-talk-to-figma-mcp/context/01/04-tools-refactor-test-backlog.md +0 -0
  419. package/#Tools/claude-talk-to-figma-mcp/context/01/05-tools-refactor-four-tools-error.md +356 -0
  420. package/#Tools/claude-talk-to-figma-mcp/context/01/06-tools-refactor-four-tools-error-backlog.md +425 -0
  421. package/#Tools/claude-talk-to-figma-mcp/context/01/prompt-dev-nodejs-bun.md +105 -0
  422. package/#Tools/claude-talk-to-figma-mcp/context/01-prompt.md +135 -0
  423. package/#Tools/claude-talk-to-figma-mcp/context/02/00-analisis.md +131 -0
  424. package/#Tools/claude-talk-to-figma-mcp/context/02/01-plan.md +162 -0
  425. package/#Tools/claude-talk-to-figma-mcp/context/02/02-backlog.md +241 -0
  426. package/#Tools/claude-talk-to-figma-mcp/context/02-analisis.md +202 -0
  427. package/#Tools/claude-talk-to-figma-mcp/context/99-notas.md +139 -0
  428. package/#Tools/claude-talk-to-figma-mcp/context/pr-14/pr-14-analisis.md +221 -0
  429. package/#Tools/claude-talk-to-figma-mcp/context/pr-14/pr-14-claude-tests.md +152 -0
  430. package/#Tools/claude-talk-to-figma-mcp/context/pr-14/pr-14-npm-publishing.md +272 -0
  431. package/#Tools/claude-talk-to-figma-mcp/images/claude-talk-to-figma.png +0 -0
  432. package/#Tools/claude-talk-to-figma-mcp/images/mcp-figma-plugin-configuration.png +0 -0
  433. package/#Tools/claude-talk-to-figma-mcp/jest.config.cjs +25 -0
  434. package/#Tools/claude-talk-to-figma-mcp/package.json +67 -0
  435. package/#Tools/claude-talk-to-figma-mcp/prompts/prompt-ux-ui-especialista-es.md +82 -0
  436. package/#Tools/claude-talk-to-figma-mcp/prompts/prompt-ux-ui-especialista-gal.md +80 -0
  437. package/#Tools/claude-talk-to-figma-mcp/prompts/prompt-ux-ui-especialista-pt.md +80 -0
  438. package/#Tools/claude-talk-to-figma-mcp/prompts/prompt-ux-ui-specialist.md +80 -0
  439. package/#Tools/claude-talk-to-figma-mcp/readme.md +307 -0
  440. package/#Tools/claude-talk-to-figma-mcp/scripts/configure-claude.js +90 -0
  441. package/#Tools/claude-talk-to-figma-mcp/scripts/setup.sh +30 -0
  442. package/#Tools/claude-talk-to-figma-mcp/scripts/test-integration.js +339 -0
  443. package/#Tools/claude-talk-to-figma-mcp/smithery.yaml +26 -0
  444. package/#Tools/claude-talk-to-figma-mcp/src/claude_mcp_plugin/code.js +3295 -0
  445. package/#Tools/claude-talk-to-figma-mcp/src/claude_mcp_plugin/manifest.json +24 -0
  446. package/#Tools/claude-talk-to-figma-mcp/src/claude_mcp_plugin/setcharacters.js +215 -0
  447. package/#Tools/claude-talk-to-figma-mcp/src/claude_mcp_plugin/ui.html +656 -0
  448. package/#Tools/claude-talk-to-figma-mcp/src/socket.ts +349 -0
  449. package/#Tools/claude-talk-to-figma-mcp/src/talk_to_figma_mcp/bun.lock +246 -0
  450. package/#Tools/claude-talk-to-figma-mcp/src/talk_to_figma_mcp/config/config.ts +22 -0
  451. package/#Tools/claude-talk-to-figma-mcp/src/talk_to_figma_mcp/package.json +31 -0
  452. package/#Tools/claude-talk-to-figma-mcp/src/talk_to_figma_mcp/prompts/index.ts +297 -0
  453. package/#Tools/claude-talk-to-figma-mcp/src/talk_to_figma_mcp/server.ts +62 -0
  454. package/#Tools/claude-talk-to-figma-mcp/src/talk_to_figma_mcp/tools/component-tools.ts +48 -0
  455. package/#Tools/claude-talk-to-figma-mcp/src/talk_to_figma_mcp/tools/creation-tools.ts +620 -0
  456. package/#Tools/claude-talk-to-figma-mcp/src/talk_to_figma_mcp/tools/document-tools.ts +390 -0
  457. package/#Tools/claude-talk-to-figma-mcp/src/talk_to_figma_mcp/tools/index.ts +28 -0
  458. package/#Tools/claude-talk-to-figma-mcp/src/talk_to_figma_mcp/tools/modification-tools.ts +408 -0
  459. package/#Tools/claude-talk-to-figma-mcp/src/talk_to_figma_mcp/tools/text-tools.ts +531 -0
  460. package/#Tools/claude-talk-to-figma-mcp/src/talk_to_figma_mcp/tsconfig.json +18 -0
  461. package/#Tools/claude-talk-to-figma-mcp/src/talk_to_figma_mcp/types/color.ts +13 -0
  462. package/#Tools/claude-talk-to-figma-mcp/src/talk_to_figma_mcp/types/index.ts +87 -0
  463. package/#Tools/claude-talk-to-figma-mcp/src/talk_to_figma_mcp/utils/defaults.ts +23 -0
  464. package/#Tools/claude-talk-to-figma-mcp/src/talk_to_figma_mcp/utils/figma-helpers.ts +142 -0
  465. package/#Tools/claude-talk-to-figma-mcp/src/talk_to_figma_mcp/utils/logger.ts +8 -0
  466. package/#Tools/claude-talk-to-figma-mcp/src/talk_to_figma_mcp/utils/websocket.ts +258 -0
  467. package/#Tools/claude-talk-to-figma-mcp/tests/fixtures/test-data.ts +32 -0
  468. package/#Tools/claude-talk-to-figma-mcp/tests/integration/set-fill-color.test.ts +309 -0
  469. package/#Tools/claude-talk-to-figma-mcp/tests/integration/set-stroke-color.test.ts +387 -0
  470. package/#Tools/claude-talk-to-figma-mcp/tests/setup.ts +7 -0
  471. package/#Tools/claude-talk-to-figma-mcp/tests/unit/utils/defaults.test.ts +131 -0
  472. package/#Tools/claude-talk-to-figma-mcp/tsconfig.json +17 -0
  473. package/#Tools/claude-talk-to-figma-mcp/tsup.config.ts +14 -0
  474. package/#Tools/jwt creator/AuthKey_MZ7UQGFV2Q.p8 +6 -0
  475. package/#Tools/jwt creator/generate_apple_jwt.js +18 -0
  476. package/#Tools/jwt creator/node_modules/.package-lock.json +145 -0
  477. package/#Tools/jwt creator/node_modules/buffer-equal-constant-time/.travis.yml +4 -0
  478. package/#Tools/jwt creator/node_modules/buffer-equal-constant-time/LICENSE.txt +12 -0
  479. package/#Tools/jwt creator/node_modules/buffer-equal-constant-time/README.md +50 -0
  480. package/#Tools/jwt creator/node_modules/buffer-equal-constant-time/index.js +41 -0
  481. package/#Tools/jwt creator/node_modules/buffer-equal-constant-time/package.json +21 -0
  482. package/#Tools/jwt creator/node_modules/buffer-equal-constant-time/test.js +42 -0
  483. package/#Tools/jwt creator/node_modules/ecdsa-sig-formatter/CODEOWNERS +1 -0
  484. package/#Tools/jwt creator/node_modules/ecdsa-sig-formatter/LICENSE +201 -0
  485. package/#Tools/jwt creator/node_modules/ecdsa-sig-formatter/README.md +65 -0
  486. package/#Tools/jwt creator/node_modules/ecdsa-sig-formatter/package.json +46 -0
  487. package/#Tools/jwt creator/node_modules/ecdsa-sig-formatter/src/ecdsa-sig-formatter.d.ts +17 -0
  488. package/#Tools/jwt creator/node_modules/ecdsa-sig-formatter/src/ecdsa-sig-formatter.js +187 -0
  489. package/#Tools/jwt creator/node_modules/ecdsa-sig-formatter/src/param-bytes-for-alg.js +23 -0
  490. package/#Tools/jwt creator/node_modules/jsonwebtoken/LICENSE +21 -0
  491. package/#Tools/jwt creator/node_modules/jsonwebtoken/README.md +396 -0
  492. package/#Tools/jwt creator/node_modules/jsonwebtoken/decode.js +30 -0
  493. package/#Tools/jwt creator/node_modules/jsonwebtoken/index.js +8 -0
  494. package/#Tools/jwt creator/node_modules/jsonwebtoken/lib/JsonWebTokenError.js +14 -0
  495. package/#Tools/jwt creator/node_modules/jsonwebtoken/lib/NotBeforeError.js +13 -0
  496. package/#Tools/jwt creator/node_modules/jsonwebtoken/lib/TokenExpiredError.js +13 -0
  497. package/#Tools/jwt creator/node_modules/jsonwebtoken/lib/asymmetricKeyDetailsSupported.js +3 -0
  498. package/#Tools/jwt creator/node_modules/jsonwebtoken/lib/psSupported.js +3 -0
  499. package/#Tools/jwt creator/node_modules/jsonwebtoken/lib/rsaPssKeyDetailsSupported.js +3 -0
  500. package/#Tools/jwt creator/node_modules/jsonwebtoken/lib/timespan.js +18 -0
  501. package/#Tools/jwt creator/node_modules/jsonwebtoken/lib/validateAsymmetricKey.js +66 -0
  502. package/#Tools/jwt creator/node_modules/jsonwebtoken/package.json +71 -0
  503. package/#Tools/jwt creator/node_modules/jsonwebtoken/sign.js +253 -0
  504. package/#Tools/jwt creator/node_modules/jsonwebtoken/verify.js +263 -0
  505. package/#Tools/jwt creator/node_modules/jwa/LICENSE +17 -0
  506. package/#Tools/jwt creator/node_modules/jwa/README.md +150 -0
  507. package/#Tools/jwt creator/node_modules/jwa/index.js +266 -0
  508. package/#Tools/jwt creator/node_modules/jwa/package.json +37 -0
  509. package/#Tools/jwt creator/node_modules/jws/CHANGELOG.md +34 -0
  510. package/#Tools/jwt creator/node_modules/jws/LICENSE +17 -0
  511. package/#Tools/jwt creator/node_modules/jws/index.js +22 -0
  512. package/#Tools/jwt creator/node_modules/jws/lib/data-stream.js +55 -0
  513. package/#Tools/jwt creator/node_modules/jws/lib/sign-stream.js +78 -0
  514. package/#Tools/jwt creator/node_modules/jws/lib/tostring.js +10 -0
  515. package/#Tools/jwt creator/node_modules/jws/lib/verify-stream.js +120 -0
  516. package/#Tools/jwt creator/node_modules/jws/package.json +34 -0
  517. package/#Tools/jwt creator/node_modules/jws/readme.md +255 -0
  518. package/#Tools/jwt creator/node_modules/lodash.includes/LICENSE +47 -0
  519. package/#Tools/jwt creator/node_modules/lodash.includes/README.md +18 -0
  520. package/#Tools/jwt creator/node_modules/lodash.includes/index.js +745 -0
  521. package/#Tools/jwt creator/node_modules/lodash.includes/package.json +17 -0
  522. package/#Tools/jwt creator/node_modules/lodash.isboolean/LICENSE +22 -0
  523. package/#Tools/jwt creator/node_modules/lodash.isboolean/README.md +18 -0
  524. package/#Tools/jwt creator/node_modules/lodash.isboolean/index.js +70 -0
  525. package/#Tools/jwt creator/node_modules/lodash.isboolean/package.json +17 -0
  526. package/#Tools/jwt creator/node_modules/lodash.isinteger/LICENSE +47 -0
  527. package/#Tools/jwt creator/node_modules/lodash.isinteger/README.md +18 -0
  528. package/#Tools/jwt creator/node_modules/lodash.isinteger/index.js +265 -0
  529. package/#Tools/jwt creator/node_modules/lodash.isinteger/package.json +17 -0
  530. package/#Tools/jwt creator/node_modules/lodash.isnumber/LICENSE +22 -0
  531. package/#Tools/jwt creator/node_modules/lodash.isnumber/README.md +18 -0
  532. package/#Tools/jwt creator/node_modules/lodash.isnumber/index.js +79 -0
  533. package/#Tools/jwt creator/node_modules/lodash.isnumber/package.json +17 -0
  534. package/#Tools/jwt creator/node_modules/lodash.isplainobject/LICENSE +47 -0
  535. package/#Tools/jwt creator/node_modules/lodash.isplainobject/README.md +18 -0
  536. package/#Tools/jwt creator/node_modules/lodash.isplainobject/index.js +139 -0
  537. package/#Tools/jwt creator/node_modules/lodash.isplainobject/package.json +17 -0
  538. package/#Tools/jwt creator/node_modules/lodash.isstring/LICENSE +22 -0
  539. package/#Tools/jwt creator/node_modules/lodash.isstring/README.md +18 -0
  540. package/#Tools/jwt creator/node_modules/lodash.isstring/index.js +95 -0
  541. package/#Tools/jwt creator/node_modules/lodash.isstring/package.json +17 -0
  542. package/#Tools/jwt creator/node_modules/lodash.once/LICENSE +47 -0
  543. package/#Tools/jwt creator/node_modules/lodash.once/README.md +18 -0
  544. package/#Tools/jwt creator/node_modules/lodash.once/index.js +294 -0
  545. package/#Tools/jwt creator/node_modules/lodash.once/package.json +17 -0
  546. package/#Tools/jwt creator/node_modules/ms/index.js +162 -0
  547. package/#Tools/jwt creator/node_modules/ms/license.md +21 -0
  548. package/#Tools/jwt creator/node_modules/ms/package.json +38 -0
  549. package/#Tools/jwt creator/node_modules/ms/readme.md +59 -0
  550. package/#Tools/jwt creator/node_modules/safe-buffer/LICENSE +21 -0
  551. package/#Tools/jwt creator/node_modules/safe-buffer/README.md +584 -0
  552. package/#Tools/jwt creator/node_modules/safe-buffer/index.d.ts +187 -0
  553. package/#Tools/jwt creator/node_modules/safe-buffer/index.js +65 -0
  554. package/#Tools/jwt creator/node_modules/safe-buffer/package.json +51 -0
  555. package/#Tools/jwt creator/node_modules/semver/LICENSE +15 -0
  556. package/#Tools/jwt creator/node_modules/semver/README.md +664 -0
  557. package/#Tools/jwt creator/node_modules/semver/bin/semver.js +191 -0
  558. package/#Tools/jwt creator/node_modules/semver/classes/comparator.js +143 -0
  559. package/#Tools/jwt creator/node_modules/semver/classes/index.js +7 -0
  560. package/#Tools/jwt creator/node_modules/semver/classes/range.js +556 -0
  561. package/#Tools/jwt creator/node_modules/semver/classes/semver.js +319 -0
  562. package/#Tools/jwt creator/node_modules/semver/functions/clean.js +8 -0
  563. package/#Tools/jwt creator/node_modules/semver/functions/cmp.js +54 -0
  564. package/#Tools/jwt creator/node_modules/semver/functions/coerce.js +62 -0
  565. package/#Tools/jwt creator/node_modules/semver/functions/compare-build.js +9 -0
  566. package/#Tools/jwt creator/node_modules/semver/functions/compare-loose.js +5 -0
  567. package/#Tools/jwt creator/node_modules/semver/functions/compare.js +7 -0
  568. package/#Tools/jwt creator/node_modules/semver/functions/diff.js +60 -0
  569. package/#Tools/jwt creator/node_modules/semver/functions/eq.js +5 -0
  570. package/#Tools/jwt creator/node_modules/semver/functions/gt.js +5 -0
  571. package/#Tools/jwt creator/node_modules/semver/functions/gte.js +5 -0
  572. package/#Tools/jwt creator/node_modules/semver/functions/inc.js +21 -0
  573. package/#Tools/jwt creator/node_modules/semver/functions/lt.js +5 -0
  574. package/#Tools/jwt creator/node_modules/semver/functions/lte.js +5 -0
  575. package/#Tools/jwt creator/node_modules/semver/functions/major.js +5 -0
  576. package/#Tools/jwt creator/node_modules/semver/functions/minor.js +5 -0
  577. package/#Tools/jwt creator/node_modules/semver/functions/neq.js +5 -0
  578. package/#Tools/jwt creator/node_modules/semver/functions/parse.js +18 -0
  579. package/#Tools/jwt creator/node_modules/semver/functions/patch.js +5 -0
  580. package/#Tools/jwt creator/node_modules/semver/functions/prerelease.js +8 -0
  581. package/#Tools/jwt creator/node_modules/semver/functions/rcompare.js +5 -0
  582. package/#Tools/jwt creator/node_modules/semver/functions/rsort.js +5 -0
  583. package/#Tools/jwt creator/node_modules/semver/functions/satisfies.js +12 -0
  584. package/#Tools/jwt creator/node_modules/semver/functions/sort.js +5 -0
  585. package/#Tools/jwt creator/node_modules/semver/functions/valid.js +8 -0
  586. package/#Tools/jwt creator/node_modules/semver/index.js +91 -0
  587. package/#Tools/jwt creator/node_modules/semver/internal/constants.js +37 -0
  588. package/#Tools/jwt creator/node_modules/semver/internal/debug.js +11 -0
  589. package/#Tools/jwt creator/node_modules/semver/internal/identifiers.js +25 -0
  590. package/#Tools/jwt creator/node_modules/semver/internal/lrucache.js +42 -0
  591. package/#Tools/jwt creator/node_modules/semver/internal/parse-options.js +17 -0
  592. package/#Tools/jwt creator/node_modules/semver/internal/re.js +223 -0
  593. package/#Tools/jwt creator/node_modules/semver/package.json +78 -0
  594. package/#Tools/jwt creator/node_modules/semver/preload.js +4 -0
  595. package/#Tools/jwt creator/node_modules/semver/range.bnf +16 -0
  596. package/#Tools/jwt creator/node_modules/semver/ranges/gtr.js +6 -0
  597. package/#Tools/jwt creator/node_modules/semver/ranges/intersects.js +9 -0
  598. package/#Tools/jwt creator/node_modules/semver/ranges/ltr.js +6 -0
  599. package/#Tools/jwt creator/node_modules/semver/ranges/max-satisfying.js +27 -0
  600. package/#Tools/jwt creator/node_modules/semver/ranges/min-satisfying.js +26 -0
  601. package/#Tools/jwt creator/node_modules/semver/ranges/min-version.js +63 -0
  602. package/#Tools/jwt creator/node_modules/semver/ranges/outside.js +82 -0
  603. package/#Tools/jwt creator/node_modules/semver/ranges/simplify.js +49 -0
  604. package/#Tools/jwt creator/node_modules/semver/ranges/subset.js +249 -0
  605. package/#Tools/jwt creator/node_modules/semver/ranges/to-comparators.js +10 -0
  606. package/#Tools/jwt creator/node_modules/semver/ranges/valid.js +13 -0
  607. package/#Tools/jwt creator/package-lock.json +150 -0
  608. package/#Tools/jwt creator/package.json +5 -0
  609. package/#Tools/package.json +94 -0
  610. package/README.md +105 -71
  611. package/SuperClaude/.claude/commands/analyze.md +36 -0
  612. package/SuperClaude/.claude/commands/build.md +35 -0
  613. package/SuperClaude/.claude/commands/cleanup.md +46 -0
  614. package/SuperClaude/.claude/commands/deploy.md +55 -0
  615. package/SuperClaude/.claude/commands/design.md +91 -0
  616. package/SuperClaude/.claude/commands/dev-setup.md +37 -0
  617. package/SuperClaude/.claude/commands/document.md +99 -0
  618. package/SuperClaude/.claude/commands/estimate.md +69 -0
  619. package/SuperClaude/.claude/commands/explain.md +85 -0
  620. package/SuperClaude/.claude/commands/git.md +47 -0
  621. package/SuperClaude/.claude/commands/improve.md +162 -0
  622. package/SuperClaude/.claude/commands/index.md +159 -0
  623. package/SuperClaude/.claude/commands/load.md +65 -0
  624. package/SuperClaude/.claude/commands/migrate.md +76 -0
  625. package/SuperClaude/.claude/commands/scan.md +163 -0
  626. package/SuperClaude/.claude/commands/shared/ambiguity-check.yml +40 -0
  627. package/SuperClaude/.claude/commands/shared/audit.yml +21 -0
  628. package/SuperClaude/.claude/commands/shared/checkpoint.yml +28 -0
  629. package/SuperClaude/.claude/commands/shared/cleanup-patterns.yml +107 -0
  630. package/SuperClaude/.claude/commands/shared/command-memory.yml +52 -0
  631. package/SuperClaude/.claude/commands/shared/command-templates.yml +167 -0
  632. package/SuperClaude/.claude/commands/shared/config-validator.yml +206 -0
  633. package/SuperClaude/.claude/commands/shared/constants.yml +311 -0
  634. package/SuperClaude/.claude/commands/shared/documentation-dirs.yml +134 -0
  635. package/SuperClaude/.claude/commands/shared/error-handling.yml +341 -0
  636. package/SuperClaude/.claude/commands/shared/evidence.yml +75 -0
  637. package/SuperClaude/.claude/commands/shared/execution-lifecycle.yml +277 -0
  638. package/SuperClaude/.claude/commands/shared/git-operations.yml +217 -0
  639. package/SuperClaude/.claude/commands/shared/git-workflow.yml +37 -0
  640. package/SuperClaude/.claude/commands/shared/implementation.yml +199 -0
  641. package/SuperClaude/.claude/commands/shared/loading-config.yml +73 -0
  642. package/SuperClaude/.claude/commands/shared/mcp-flags.yml +109 -0
  643. package/SuperClaude/.claude/commands/shared/migration-report.md +165 -0
  644. package/SuperClaude/.claude/commands/shared/patterns.yml +155 -0
  645. package/SuperClaude/.claude/commands/shared/performance.yml +317 -0
  646. package/SuperClaude/.claude/commands/shared/planning-mode.yml +51 -0
  647. package/SuperClaude/.claude/commands/shared/research-first.yml +278 -0
  648. package/SuperClaude/.claude/commands/shared/session-recovery.yml +144 -0
  649. package/SuperClaude/.claude/commands/shared/severity-levels.yml +252 -0
  650. package/SuperClaude/.claude/commands/shared/task-system.yml +380 -0
  651. package/SuperClaude/.claude/commands/shared/task-ultracompressed.yml +88 -0
  652. package/SuperClaude/.claude/commands/shared/templates/feature-template.md +59 -0
  653. package/SuperClaude/.claude/commands/shared/templates/task-ultracompressed.md +26 -0
  654. package/SuperClaude/.claude/commands/shared/thinking-modes.yml +61 -0
  655. package/SuperClaude/.claude/commands/shared/ultracompressed.yml +97 -0
  656. package/SuperClaude/.claude/commands/shared/user-experience.yml +208 -0
  657. package/SuperClaude/.claude/commands/shared/validation.yml +54 -0
  658. package/SuperClaude/.claude/commands/shared/workflow-chains.yml +138 -0
  659. package/SuperClaude/.claude/commands/spawn.md +106 -0
  660. package/SuperClaude/.claude/commands/task.md +110 -0
  661. package/SuperClaude/.claude/commands/test.md +67 -0
  662. package/SuperClaude/.claude/commands/troubleshoot.md +93 -0
  663. package/SuperClaude/.github/ISSUE_TEMPLATE/bug_report.yml +114 -0
  664. package/SuperClaude/.github/ISSUE_TEMPLATE/feature_request.yml +119 -0
  665. package/SuperClaude/.github/ISSUE_TEMPLATE/question.yml +87 -0
  666. package/SuperClaude/.github/pull_request_template.md +62 -0
  667. package/SuperClaude/CHANGELOG.md +109 -0
  668. package/SuperClaude/CLAUDE.md +95 -0
  669. package/SuperClaude/CODE_OF_CONDUCT.md +45 -0
  670. package/SuperClaude/CONTRIBUTING.md +225 -0
  671. package/SuperClaude/Commands_Cheat_Sheet.md +160 -0
  672. package/SuperClaude/LICENSE +21 -0
  673. package/SuperClaude/MCP.md +117 -0
  674. package/SuperClaude/PERSONAS.md +115 -0
  675. package/SuperClaude/README.md +249 -0
  676. package/SuperClaude/RULES.md +220 -0
  677. package/SuperClaude/SECURITY.md +91 -0
  678. package/SuperClaude/install.sh +296 -0
  679. package/appiq-mcp installer/How-to.md +250 -0
  680. package/appiq-mcp installer/LICENSE +21 -0
  681. package/appiq-mcp installer/README.md +235 -0
  682. package/appiq-mcp installer/index.js +672 -0
  683. package/appiq-mcp installer/my_mcps.md +105 -0
  684. package/appiq-mcp installer/package-lock.json +708 -0
  685. package/appiq-mcp installer/package.json +46 -0
  686. package/appiq-mcp installer/test-install.bat +60 -0
  687. package/appiq-mcp installer/test-install.sh +55 -0
  688. package/appiq-mcp installer/test-load.js +40 -0
  689. package/dist/agents/bmad-orchestrator.txt +111 -0
  690. package/dist/agents/pm.txt +0 -2
  691. package/dist/expansion-packs/bmad-2d-phaser-game-dev/teams/phaser-2d-nodejs-game-team.txt +111 -0
  692. package/dist/expansion-packs/bmad-2d-unity-game-dev/teams/unity-2d-game-team.txt +111 -0
  693. package/dist/expansion-packs/bmad-mobile-app-dev/agents/mobile-analytics.txt +1530 -0
  694. package/dist/expansion-packs/bmad-mobile-app-dev/agents/mobile-architect.txt +322 -0
  695. package/dist/expansion-packs/bmad-mobile-app-dev/agents/mobile-developer.txt +692 -0
  696. package/dist/expansion-packs/bmad-mobile-app-dev/agents/mobile-pm.txt +382 -0
  697. package/dist/expansion-packs/bmad-mobile-app-dev/agents/mobile-qa.txt +665 -0
  698. package/dist/expansion-packs/bmad-mobile-app-dev/agents/mobile-security.txt +1070 -0
  699. package/dist/expansion-packs/bmad-mobile-app-dev/agents/mobile-ux-expert.txt +1494 -0
  700. package/dist/expansion-packs/bmad-mobile-app-dev/teams/mobile-team-cross-platform.txt +15613 -0
  701. package/dist/teams/team-all.txt +111 -2
  702. package/dist/teams/team-fullstack.txt +111 -2
  703. package/dist/teams/team-ide-minimal.txt +111 -0
  704. package/dist/teams/team-no-ui.txt +111 -2
  705. package/flutter/CLAUDE.md +58 -0
  706. package/flutter/punkt.claude/New Folder With Items/channel.md +221 -0
  707. package/flutter/punkt.claude/New Folder With Items/commands/add-translations.md +12 -0
  708. package/flutter/punkt.claude/New Folder With Items/commands/create-feature.md +168 -0
  709. package/flutter/punkt.claude/New Folder With Items/commands/explain-codebase.md +1 -0
  710. package/flutter/punkt.claude/New Folder With Items/commands/feature-business-logic.md +551 -0
  711. package/flutter/punkt.claude/New Folder With Items/commands/feature-data-layer.md +924 -0
  712. package/flutter/punkt.claude/New Folder With Items/commands/feature-domain-layer.md +540 -0
  713. package/flutter/punkt.claude/New Folder With Items/commands/feature-integration.md +493 -0
  714. package/flutter/punkt.claude/New Folder With Items/commands/feature-localization.md +427 -0
  715. package/flutter/punkt.claude/New Folder With Items/commands/feature-ui-layer.md +300 -0
  716. package/flutter/punkt.claude/New Folder With Items/commands/git-commit.md +3 -0
  717. package/flutter/punkt.claude/New Folder With Items/commands/search-web.md +1 -0
  718. package/flutter/punkt.claude/punkt.claude/channel.md +225 -0
  719. package/flutter/punkt.claude/punkt.claude/commands/add-translations.md +60 -0
  720. package/flutter/punkt.claude/punkt.claude/commands/bug-fix.md +32 -0
  721. package/flutter/punkt.claude/punkt.claude/commands/checkdev.md +122 -0
  722. package/flutter/punkt.claude/punkt.claude/commands/create-feature.md +174 -0
  723. package/flutter/punkt.claude/punkt.claude/commands/dev.md +79 -0
  724. package/flutter/punkt.claude/punkt.claude/commands/explain-codebase.md +1 -0
  725. package/flutter/punkt.claude/punkt.claude/commands/feature-business-logic.md +430 -0
  726. package/flutter/punkt.claude/punkt.claude/commands/feature-data-layer.md +572 -0
  727. package/flutter/punkt.claude/punkt.claude/commands/feature-domain-layer.md +537 -0
  728. package/flutter/punkt.claude/punkt.claude/commands/feature-integration.md +493 -0
  729. package/flutter/punkt.claude/punkt.claude/commands/feature-localization.md +427 -0
  730. package/flutter/punkt.claude/punkt.claude/commands/feature-ui-layer.md +831 -0
  731. package/flutter/punkt.claude/punkt.claude/commands/git-commit.md +3 -0
  732. package/flutter/punkt.claude/punkt.claude/commands/manage-translations.md +433 -0
  733. package/flutter/punkt.claude/punkt.claude/commands/search-web.md +1 -0
  734. package/flutter/punkt.claude/punkt.claude/developer_check.md +121 -0
  735. package/package.json +71 -18
  736. package/tools/bmad-npx-wrapper.js +7 -5
  737. package/tools/installer/bin/bmad.js +0 -14
  738. package/tools/installer/lib/installer.js +2 -28
  739. package/tools/installer/package-lock.json +89 -89
  740. package/tools/installer/package.json +1 -1
  741. package/web/CLAUDE.md +58 -0
  742. package/.bmad-config.json +0 -13
  743. package/.cursor/commands/analyze.md +0 -27
  744. package/.cursor/commands/appiq.md +0 -27
  745. package/.cursor/commands/help.md +0 -27
  746. package/.cursor/commands/story.md +0 -27
  747. package/DEVELOPMENT_GUIDE.md +0 -855
  748. package/NPM-README.md +0 -138
  749. package/SMART_WORKFLOW_GUIDE.md +0 -401
  750. package/activate-appiq.js +0 -81
  751. package/appiq-solution/README.md +0 -226
  752. package/bmad-core/agents/bmad-smart-launcher.md +0 -170
  753. package/bmad-core/checklists/security-validation-checklist.md +0 -332
  754. package/bmad-core/data/backend-services-integration.md +0 -686
  755. package/bmad-core/data/shadcn-ui-integration.md +0 -388
  756. package/bmad-core/data/technical-preferences.md +0 -149
  757. package/bmad-core/enhanced-ide-development-workflow.md +0 -43
  758. package/bmad-core/tasks/intelligent-epic-creation.md +0 -234
  759. package/bmad-core/tasks/smart-project-analysis.md +0 -289
  760. package/commands/README.md +0 -28
  761. package/commands/analyze.md +0 -27
  762. package/commands/appiq.md +0 -27
  763. package/commands/help.md +0 -27
  764. package/commands/story.md +0 -27
  765. package/expansion-packs/bmad-flutter-mobile-dev/agent-teams/flutter-mobile-team.yaml +0 -23
  766. package/expansion-packs/bmad-flutter-mobile-dev/agents/flutter-cubit-agent.md +0 -133
  767. package/expansion-packs/bmad-flutter-mobile-dev/agents/flutter-data-agent.md +0 -160
  768. package/expansion-packs/bmad-flutter-mobile-dev/agents/flutter-domain-agent.md +0 -153
  769. package/expansion-packs/bmad-flutter-mobile-dev/agents/flutter-ui-agent.md +0 -122
  770. package/expansion-packs/bmad-flutter-mobile-dev/agents/shared-components-agent.md +0 -161
  771. package/expansion-packs/bmad-flutter-mobile-dev/checklists/flutter-story-dod-checklist.md +0 -194
  772. package/expansion-packs/bmad-flutter-mobile-dev/config.yaml +0 -41
  773. package/expansion-packs/bmad-flutter-mobile-dev/data/flutter-development-guidelines.md +0 -551
  774. package/expansion-packs/bmad-flutter-mobile-dev/templates/flutter-mobile-architecture-tmpl.yaml +0 -530
  775. package/expansion-packs/bmad-flutter-mobile-dev/workflows/flutter-ui-first-development.yaml +0 -220
  776. package/install-appiq.sh +0 -41
  777. package/tasks/todo.md +0 -275
  778. package/tools/appiq-installer.js +0 -2621
  779. package/tools/epic-solution-installer.js +0 -538
  780. package/tools/flattener/main.js +0 -570
  781. package/tools/setup-ide-commands.js +0 -345
  782. package/tools/smart-installer.js +0 -589
  783. /package/{.github → #Tools/APPIQ-METHOD/.github}/FUNDING.yaml +0 -0
  784. /package/{.github → #Tools/APPIQ-METHOD/.github}/ISSUE_TEMPLATE/bug_report.md +0 -0
  785. /package/{.github → #Tools/APPIQ-METHOD/.github}/ISSUE_TEMPLATE/feature_request.md +0 -0
  786. /package/{.github → #Tools/APPIQ-METHOD/.github}/workflows/release.yaml +0 -0
  787. /package/{.releaserc.json → #Tools/APPIQ-METHOD/.releaserc.json} +0 -0
  788. /package/{.vscode → #Tools/APPIQ-METHOD/.vscode}/settings.json +0 -0
  789. /package/{CONTRIBUTING.md → #Tools/APPIQ-METHOD/CONTRIBUTING.md} +0 -0
  790. /package/{LICENSE → #Tools/APPIQ-METHOD/LICENSE} +0 -0
  791. /package/{bmad-core → #Tools/APPIQ-METHOD/bmad-core}/agent-teams/team-all.yaml +0 -0
  792. /package/{bmad-core → #Tools/APPIQ-METHOD/bmad-core}/agent-teams/team-fullstack.yaml +0 -0
  793. /package/{bmad-core → #Tools/APPIQ-METHOD/bmad-core}/agent-teams/team-ide-minimal.yaml +0 -0
  794. /package/{bmad-core → #Tools/APPIQ-METHOD/bmad-core}/agent-teams/team-no-ui.yaml +0 -0
  795. /package/{bmad-core → #Tools/APPIQ-METHOD/bmad-core}/agents/analyst.md +0 -0
  796. /package/{bmad-core → #Tools/APPIQ-METHOD/bmad-core}/agents/bmad-master.md +0 -0
  797. /package/{bmad-core → #Tools/APPIQ-METHOD/bmad-core}/agents/po.md +0 -0
  798. /package/{bmad-core → #Tools/APPIQ-METHOD/bmad-core}/agents/sm.md +0 -0
  799. /package/{bmad-core → #Tools/APPIQ-METHOD/bmad-core}/agents/ux-expert.md +0 -0
  800. /package/{bmad-core → #Tools/APPIQ-METHOD/bmad-core}/checklists/architect-checklist.md +0 -0
  801. /package/{bmad-core → #Tools/APPIQ-METHOD/bmad-core}/checklists/change-checklist.md +0 -0
  802. /package/{bmad-core → #Tools/APPIQ-METHOD/bmad-core}/checklists/pm-checklist.md +0 -0
  803. /package/{bmad-core → #Tools/APPIQ-METHOD/bmad-core}/checklists/po-master-checklist.md +0 -0
  804. /package/{bmad-core → #Tools/APPIQ-METHOD/bmad-core}/checklists/story-dod-checklist.md +0 -0
  805. /package/{bmad-core → #Tools/APPIQ-METHOD/bmad-core}/checklists/story-draft-checklist.md +0 -0
  806. /package/{bmad-core → #Tools/APPIQ-METHOD/bmad-core}/core-config.yaml +0 -0
  807. /package/{bmad-core → #Tools/APPIQ-METHOD/bmad-core}/data/bmad-kb.md +0 -0
  808. /package/{bmad-core → #Tools/APPIQ-METHOD/bmad-core}/data/brainstorming-techniques.md +0 -0
  809. /package/{bmad-core → #Tools/APPIQ-METHOD/bmad-core}/data/elicitation-methods.md +0 -0
  810. /package/{bmad-core → #Tools/APPIQ-METHOD/bmad-core}/tasks/advanced-elicitation.md +0 -0
  811. /package/{bmad-core → #Tools/APPIQ-METHOD/bmad-core}/tasks/brownfield-create-epic.md +0 -0
  812. /package/{bmad-core → #Tools/APPIQ-METHOD/bmad-core}/tasks/brownfield-create-story.md +0 -0
  813. /package/{bmad-core → #Tools/APPIQ-METHOD/bmad-core}/tasks/correct-course.md +0 -0
  814. /package/{bmad-core → #Tools/APPIQ-METHOD/bmad-core}/tasks/create-brownfield-story.md +0 -0
  815. /package/{bmad-core → #Tools/APPIQ-METHOD/bmad-core}/tasks/create-deep-research-prompt.md +0 -0
  816. /package/{bmad-core → #Tools/APPIQ-METHOD/bmad-core}/tasks/create-next-story.md +0 -0
  817. /package/{bmad-core → #Tools/APPIQ-METHOD/bmad-core}/tasks/document-project.md +0 -0
  818. /package/{bmad-core → #Tools/APPIQ-METHOD/bmad-core}/tasks/facilitate-brainstorming-session.md +0 -0
  819. /package/{bmad-core → #Tools/APPIQ-METHOD/bmad-core}/tasks/generate-ai-frontend-prompt.md +0 -0
  820. /package/{bmad-core → #Tools/APPIQ-METHOD/bmad-core}/tasks/index-docs.md +0 -0
  821. /package/{bmad-core → #Tools/APPIQ-METHOD/bmad-core}/tasks/kb-mode-interaction.md +0 -0
  822. /package/{bmad-core → #Tools/APPIQ-METHOD/bmad-core}/tasks/review-story.md +0 -0
  823. /package/{bmad-core → #Tools/APPIQ-METHOD/bmad-core}/tasks/shard-doc.md +0 -0
  824. /package/{bmad-core → #Tools/APPIQ-METHOD/bmad-core}/tasks/validate-next-story.md +0 -0
  825. /package/{bmad-core → #Tools/APPIQ-METHOD/bmad-core}/templates/architecture-tmpl.yaml +0 -0
  826. /package/{bmad-core → #Tools/APPIQ-METHOD/bmad-core}/templates/brainstorming-output-tmpl.yaml +0 -0
  827. /package/{bmad-core → #Tools/APPIQ-METHOD/bmad-core}/templates/brownfield-architecture-tmpl.yaml +0 -0
  828. /package/{bmad-core → #Tools/APPIQ-METHOD/bmad-core}/templates/brownfield-prd-tmpl.yaml +0 -0
  829. /package/{bmad-core → #Tools/APPIQ-METHOD/bmad-core}/templates/competitor-analysis-tmpl.yaml +0 -0
  830. /package/{bmad-core → #Tools/APPIQ-METHOD/bmad-core}/templates/front-end-architecture-tmpl.yaml +0 -0
  831. /package/{bmad-core → #Tools/APPIQ-METHOD/bmad-core}/templates/front-end-spec-tmpl.yaml +0 -0
  832. /package/{bmad-core → #Tools/APPIQ-METHOD/bmad-core}/templates/market-research-tmpl.yaml +0 -0
  833. /package/{bmad-core → #Tools/APPIQ-METHOD/bmad-core}/templates/prd-tmpl.yaml +0 -0
  834. /package/{bmad-core → #Tools/APPIQ-METHOD/bmad-core}/templates/project-brief-tmpl.yaml +0 -0
  835. /package/{bmad-core → #Tools/APPIQ-METHOD/bmad-core}/templates/story-tmpl.yaml +0 -0
  836. /package/{bmad-core → #Tools/APPIQ-METHOD/bmad-core}/workflows/brownfield-fullstack.yaml +0 -0
  837. /package/{bmad-core → #Tools/APPIQ-METHOD/bmad-core}/workflows/brownfield-service.yaml +0 -0
  838. /package/{bmad-core → #Tools/APPIQ-METHOD/bmad-core}/workflows/brownfield-ui.yaml +0 -0
  839. /package/{bmad-core → #Tools/APPIQ-METHOD/bmad-core}/workflows/greenfield-fullstack.yaml +0 -0
  840. /package/{bmad-core → #Tools/APPIQ-METHOD/bmad-core}/workflows/greenfield-service.yaml +0 -0
  841. /package/{bmad-core → #Tools/APPIQ-METHOD/bmad-core}/workflows/greenfield-ui.yaml +0 -0
  842. /package/{common → #Tools/APPIQ-METHOD/common}/tasks/create-doc.md +0 -0
  843. /package/{common → #Tools/APPIQ-METHOD/common}/tasks/execute-checklist.md +0 -0
  844. /package/{common → #Tools/APPIQ-METHOD/common}/utils/bmad-doc-template.md +0 -0
  845. /package/{common → #Tools/APPIQ-METHOD/common}/utils/workflow-management.md +0 -0
  846. /package/{bmad-core/core-config.yaml.bak → #Tools/APPIQ-METHOD/deployment/build/bmad-core/core-config.yaml} +0 -0
  847. /package/{expansion-packs → #Tools/APPIQ-METHOD/deployment/build/expansion-packs}/README.md +0 -0
  848. /package/{expansion-packs → #Tools/APPIQ-METHOD/deployment/build/expansion-packs}/bmad-2d-phaser-game-dev/agent-teams/phaser-2d-nodejs-game-team.yaml +0 -0
  849. /package/{expansion-packs → #Tools/APPIQ-METHOD/deployment/build/expansion-packs}/bmad-2d-phaser-game-dev/agents/game-designer.md +0 -0
  850. /package/{expansion-packs → #Tools/APPIQ-METHOD/deployment/build/expansion-packs}/bmad-2d-phaser-game-dev/agents/game-developer.md +0 -0
  851. /package/{expansion-packs → #Tools/APPIQ-METHOD/deployment/build/expansion-packs}/bmad-2d-phaser-game-dev/agents/game-sm.md +0 -0
  852. /package/{expansion-packs → #Tools/APPIQ-METHOD/deployment/build/expansion-packs}/bmad-2d-phaser-game-dev/checklists/game-design-checklist.md +0 -0
  853. /package/{expansion-packs → #Tools/APPIQ-METHOD/deployment/build/expansion-packs}/bmad-2d-phaser-game-dev/checklists/game-story-dod-checklist.md +0 -0
  854. /package/{expansion-packs → #Tools/APPIQ-METHOD/deployment/build/expansion-packs}/bmad-2d-phaser-game-dev/data/bmad-kb.md +0 -0
  855. /package/{expansion-packs → #Tools/APPIQ-METHOD/deployment/build/expansion-packs}/bmad-2d-phaser-game-dev/data/development-guidelines.md +0 -0
  856. /package/{expansion-packs → #Tools/APPIQ-METHOD/deployment/build/expansion-packs}/bmad-2d-phaser-game-dev/tasks/advanced-elicitation.md +0 -0
  857. /package/{expansion-packs → #Tools/APPIQ-METHOD/deployment/build/expansion-packs}/bmad-2d-phaser-game-dev/tasks/create-game-story.md +0 -0
  858. /package/{expansion-packs → #Tools/APPIQ-METHOD/deployment/build/expansion-packs}/bmad-2d-phaser-game-dev/tasks/game-design-brainstorming.md +0 -0
  859. /package/{expansion-packs → #Tools/APPIQ-METHOD/deployment/build/expansion-packs}/bmad-2d-phaser-game-dev/templates/game-architecture-tmpl.yaml +0 -0
  860. /package/{expansion-packs → #Tools/APPIQ-METHOD/deployment/build/expansion-packs}/bmad-2d-phaser-game-dev/templates/game-brief-tmpl.yaml +0 -0
  861. /package/{expansion-packs → #Tools/APPIQ-METHOD/deployment/build/expansion-packs}/bmad-2d-phaser-game-dev/templates/game-design-doc-tmpl.yaml +0 -0
  862. /package/{expansion-packs → #Tools/APPIQ-METHOD/deployment/build/expansion-packs}/bmad-2d-phaser-game-dev/templates/game-story-tmpl.yaml +0 -0
  863. /package/{expansion-packs → #Tools/APPIQ-METHOD/deployment/build/expansion-packs}/bmad-2d-phaser-game-dev/templates/level-design-doc-tmpl.yaml +0 -0
  864. /package/{expansion-packs → #Tools/APPIQ-METHOD/deployment/build/expansion-packs}/bmad-2d-phaser-game-dev/workflows/game-dev-greenfield.yaml +0 -0
  865. /package/{expansion-packs → #Tools/APPIQ-METHOD/deployment/build/expansion-packs}/bmad-2d-phaser-game-dev/workflows/game-prototype.yaml +0 -0
  866. /package/{expansion-packs → #Tools/APPIQ-METHOD/deployment/build/expansion-packs}/bmad-2d-unity-game-dev/agent-teams/unity-2d-game-team.yaml +0 -0
  867. /package/{expansion-packs → #Tools/APPIQ-METHOD/deployment/build/expansion-packs}/bmad-2d-unity-game-dev/agents/game-architect.md +0 -0
  868. /package/{expansion-packs → #Tools/APPIQ-METHOD/deployment/build/expansion-packs}/bmad-2d-unity-game-dev/agents/game-designer.md +0 -0
  869. /package/{expansion-packs → #Tools/APPIQ-METHOD/deployment/build/expansion-packs}/bmad-2d-unity-game-dev/agents/game-developer.md +0 -0
  870. /package/{expansion-packs → #Tools/APPIQ-METHOD/deployment/build/expansion-packs}/bmad-2d-unity-game-dev/agents/game-sm.md +0 -0
  871. /package/{expansion-packs → #Tools/APPIQ-METHOD/deployment/build/expansion-packs}/bmad-2d-unity-game-dev/checklists/game-architect-checklist.md +0 -0
  872. /package/{expansion-packs → #Tools/APPIQ-METHOD/deployment/build/expansion-packs}/bmad-2d-unity-game-dev/checklists/game-change-checklist.md +0 -0
  873. /package/{expansion-packs → #Tools/APPIQ-METHOD/deployment/build/expansion-packs}/bmad-2d-unity-game-dev/checklists/game-design-checklist.md +0 -0
  874. /package/{expansion-packs → #Tools/APPIQ-METHOD/deployment/build/expansion-packs}/bmad-2d-unity-game-dev/checklists/game-story-dod-checklist.md +0 -0
  875. /package/{expansion-packs → #Tools/APPIQ-METHOD/deployment/build/expansion-packs}/bmad-2d-unity-game-dev/data/bmad-kb.md +0 -0
  876. /package/{expansion-packs → #Tools/APPIQ-METHOD/deployment/build/expansion-packs}/bmad-2d-unity-game-dev/data/development-guidelines.md +0 -0
  877. /package/{expansion-packs → #Tools/APPIQ-METHOD/deployment/build/expansion-packs}/bmad-2d-unity-game-dev/tasks/advanced-elicitation.md +0 -0
  878. /package/{expansion-packs → #Tools/APPIQ-METHOD/deployment/build/expansion-packs}/bmad-2d-unity-game-dev/tasks/correct-course-game.md +0 -0
  879. /package/{expansion-packs → #Tools/APPIQ-METHOD/deployment/build/expansion-packs}/bmad-2d-unity-game-dev/tasks/create-game-story.md +0 -0
  880. /package/{expansion-packs → #Tools/APPIQ-METHOD/deployment/build/expansion-packs}/bmad-2d-unity-game-dev/tasks/game-design-brainstorming.md +0 -0
  881. /package/{expansion-packs → #Tools/APPIQ-METHOD/deployment/build/expansion-packs}/bmad-2d-unity-game-dev/tasks/validate-game-story.md +0 -0
  882. /package/{expansion-packs → #Tools/APPIQ-METHOD/deployment/build/expansion-packs}/bmad-2d-unity-game-dev/templates/game-architecture-tmpl.yaml +0 -0
  883. /package/{expansion-packs → #Tools/APPIQ-METHOD/deployment/build/expansion-packs}/bmad-2d-unity-game-dev/templates/game-brief-tmpl.yaml +0 -0
  884. /package/{expansion-packs → #Tools/APPIQ-METHOD/deployment/build/expansion-packs}/bmad-2d-unity-game-dev/templates/game-design-doc-tmpl.yaml +0 -0
  885. /package/{expansion-packs → #Tools/APPIQ-METHOD/deployment/build/expansion-packs}/bmad-2d-unity-game-dev/templates/game-story-tmpl.yaml +0 -0
  886. /package/{expansion-packs → #Tools/APPIQ-METHOD/deployment/build/expansion-packs}/bmad-2d-unity-game-dev/templates/level-design-doc-tmpl.yaml +0 -0
  887. /package/{expansion-packs → #Tools/APPIQ-METHOD/deployment/build/expansion-packs}/bmad-2d-unity-game-dev/workflows/game-dev-greenfield.yaml +0 -0
  888. /package/{expansion-packs → #Tools/APPIQ-METHOD/deployment/build/expansion-packs}/bmad-2d-unity-game-dev/workflows/game-prototype.yaml +0 -0
  889. /package/{expansion-packs → #Tools/APPIQ-METHOD/deployment/build/expansion-packs}/bmad-infrastructure-devops/README.md +0 -0
  890. /package/{expansion-packs → #Tools/APPIQ-METHOD/deployment/build/expansion-packs}/bmad-infrastructure-devops/agents/infra-devops-platform.md +0 -0
  891. /package/{expansion-packs → #Tools/APPIQ-METHOD/deployment/build/expansion-packs}/bmad-infrastructure-devops/checklists/infrastructure-checklist.md +0 -0
  892. /package/{expansion-packs → #Tools/APPIQ-METHOD/deployment/build/expansion-packs}/bmad-infrastructure-devops/data/bmad-kb.md +0 -0
  893. /package/{expansion-packs → #Tools/APPIQ-METHOD/deployment/build/expansion-packs}/bmad-infrastructure-devops/tasks/review-infrastructure.md +0 -0
  894. /package/{expansion-packs → #Tools/APPIQ-METHOD/deployment/build/expansion-packs}/bmad-infrastructure-devops/tasks/validate-infrastructure.md +0 -0
  895. /package/{expansion-packs → #Tools/APPIQ-METHOD/deployment/build/expansion-packs}/bmad-infrastructure-devops/templates/infrastructure-architecture-tmpl.yaml +0 -0
  896. /package/{expansion-packs → #Tools/APPIQ-METHOD/deployment/build/expansion-packs}/bmad-infrastructure-devops/templates/infrastructure-platform-from-arch-tmpl.yaml +0 -0
  897. /package/{docs → #Tools/APPIQ-METHOD/docs}/GUIDING-PRINCIPLES.md +0 -0
  898. /package/{docs → #Tools/APPIQ-METHOD/docs}/core-architecture.md +0 -0
  899. /package/{docs → #Tools/APPIQ-METHOD/docs}/expansion-packs.md +0 -0
  900. /package/{docs → #Tools/APPIQ-METHOD/docs}/how-to-contribute-with-pull-requests.md +0 -0
  901. /package/{docs → #Tools/APPIQ-METHOD/docs}/versioning-and-releases.md +0 -0
  902. /package/{docs → #Tools/APPIQ-METHOD/docs}/versions.md +0 -0
  903. /package/{bmad-core/bmad-core/user-guide.md → #Tools/SkyReels-V2/skyreels_v2_infer/distributed/__init__.py} +0 -0
@@ -0,0 +1,1746 @@
1
+ const path = require("node:path");
2
+ const fs = require("fs-extra");
3
+ const chalk = require("chalk");
4
+ const ora = require("ora");
5
+ const inquirer = require("inquirer");
6
+ const fileManager = require("./file-manager");
7
+ const configLoader = require("./config-loader");
8
+ const ideSetup = require("./ide-setup");
9
+ const { extractYamlFromAgent } = require("../../lib/yaml-utils");
10
+ const resourceLocator = require("./resource-locator");
11
+
12
+ class Installer {
13
+ async getCoreVersion() {
14
+ try {
15
+ // Always use package.json version
16
+ const packagePath = path.join(__dirname, '..', '..', '..', 'package.json');
17
+ const packageJson = require(packagePath);
18
+ return packageJson.version;
19
+ } catch (error) {
20
+ console.warn("Could not read version from package.json, using 'unknown'");
21
+ return "unknown";
22
+ }
23
+ }
24
+
25
+ async install(config) {
26
+ const spinner = ora("Analyzing installation directory...").start();
27
+
28
+ try {
29
+ // Store the original CWD where npx was executed
30
+ const originalCwd = process.env.INIT_CWD || process.env.PWD || process.cwd();
31
+
32
+ // Resolve installation directory relative to where the user ran the command
33
+ let installDir = path.isAbsolute(config.directory)
34
+ ? config.directory
35
+ : path.resolve(originalCwd, config.directory);
36
+
37
+ if (path.basename(installDir) === '.bmad-core') {
38
+ // If user points directly to .bmad-core, treat its parent as the project root
39
+ installDir = path.dirname(installDir);
40
+ }
41
+
42
+ // Log resolved path for clarity
43
+ if (!path.isAbsolute(config.directory)) {
44
+ spinner.text = `Resolving "${config.directory}" to: ${installDir}`;
45
+ }
46
+
47
+ // Check if directory exists and handle non-existent directories
48
+ if (!(await fileManager.pathExists(installDir))) {
49
+ spinner.stop();
50
+ console.log(`\nThe directory ${installDir} does not exist.`);
51
+
52
+ const { action } = await inquirer.prompt([
53
+ {
54
+ type: 'list',
55
+ name: 'action',
56
+ message: 'What would you like to do?',
57
+ choices: [
58
+ {
59
+ name: 'Create the directory and continue',
60
+ value: 'create'
61
+ },
62
+ {
63
+ name: 'Choose a different directory',
64
+ value: 'change'
65
+ },
66
+ {
67
+ name: 'Cancel installation',
68
+ value: 'cancel'
69
+ }
70
+ ]
71
+ }
72
+ ]);
73
+
74
+ if (action === 'cancel') {
75
+ console.log('Installation cancelled.');
76
+ process.exit(0);
77
+ } else if (action === 'change') {
78
+ const { newDirectory } = await inquirer.prompt([
79
+ {
80
+ type: 'input',
81
+ name: 'newDirectory',
82
+ message: 'Enter the new directory path:',
83
+ validate: (input) => {
84
+ if (!input.trim()) {
85
+ return 'Please enter a valid directory path';
86
+ }
87
+ return true;
88
+ }
89
+ }
90
+ ]);
91
+ // Preserve the original CWD for the recursive call
92
+ config.directory = newDirectory;
93
+ return await this.install(config); // Recursive call with new directory
94
+ } else if (action === 'create') {
95
+ try {
96
+ await fileManager.ensureDirectory(installDir);
97
+ console.log(`✓ Created directory: ${installDir}`);
98
+ } catch (error) {
99
+ console.error(`Failed to create directory: ${error.message}`);
100
+ console.error('You may need to check permissions or use a different path.');
101
+ process.exit(1);
102
+ }
103
+ }
104
+
105
+ spinner.start("Analyzing installation directory...");
106
+ }
107
+
108
+ // If this is an update request from early detection, handle it directly
109
+ if (config.installType === 'update') {
110
+ const state = await this.detectInstallationState(installDir);
111
+ if (state.type === 'v4_existing') {
112
+ return await this.performUpdate(config, installDir, state.manifest, spinner);
113
+ } else {
114
+ spinner.fail('No existing v4 installation found to update');
115
+ throw new Error('No existing v4 installation found');
116
+ }
117
+ }
118
+
119
+ // Detect current state
120
+ const state = await this.detectInstallationState(installDir);
121
+
122
+ // Handle different states
123
+ switch (state.type) {
124
+ case "clean":
125
+ return await this.performFreshInstall(config, installDir, spinner);
126
+
127
+ case "v4_existing":
128
+ return await this.handleExistingV4Installation(
129
+ config,
130
+ installDir,
131
+ state,
132
+ spinner
133
+ );
134
+
135
+ case "v3_existing":
136
+ return await this.handleV3Installation(
137
+ config,
138
+ installDir,
139
+ state,
140
+ spinner
141
+ );
142
+
143
+ case "unknown_existing":
144
+ return await this.handleUnknownInstallation(
145
+ config,
146
+ installDir,
147
+ state,
148
+ spinner
149
+ );
150
+ }
151
+ } catch (error) {
152
+ // Check if modules were initialized
153
+ if (spinner) {
154
+ spinner.fail("Installation failed");
155
+ } else {
156
+ console.error("Installation failed:", error.message);
157
+ }
158
+ throw error;
159
+ }
160
+ }
161
+
162
+ async detectInstallationState(installDir) {
163
+ const state = {
164
+ type: "clean",
165
+ hasV4Manifest: false,
166
+ hasV3Structure: false,
167
+ hasBmadCore: false,
168
+ hasOtherFiles: false,
169
+ manifest: null,
170
+ expansionPacks: {},
171
+ };
172
+
173
+ // Check if directory exists
174
+ if (!(await fileManager.pathExists(installDir))) {
175
+ return state; // clean install
176
+ }
177
+
178
+ // Check for V4 installation (has .bmad-core with manifest)
179
+ const bmadCorePath = path.join(installDir, ".bmad-core");
180
+ const manifestPath = path.join(bmadCorePath, "install-manifest.yaml");
181
+
182
+ if (await fileManager.pathExists(manifestPath)) {
183
+ state.type = "v4_existing";
184
+ state.hasV4Manifest = true;
185
+ state.hasBmadCore = true;
186
+ state.manifest = await fileManager.readManifest(installDir);
187
+ return state;
188
+ }
189
+
190
+ // Check for V3 installation (has bmad-agent directory)
191
+ const bmadAgentPath = path.join(installDir, "bmad-agent");
192
+ if (await fileManager.pathExists(bmadAgentPath)) {
193
+ state.type = "v3_existing";
194
+ state.hasV3Structure = true;
195
+ return state;
196
+ }
197
+
198
+ // Check for .bmad-core without manifest (broken V4 or manual copy)
199
+ if (await fileManager.pathExists(bmadCorePath)) {
200
+ state.type = "unknown_existing";
201
+ state.hasBmadCore = true;
202
+ return state;
203
+ }
204
+
205
+ // Check if directory has other files
206
+ const files = await resourceLocator.findFiles("**/*", {
207
+ cwd: installDir,
208
+ nodir: true,
209
+ ignore: ["**/.git/**", "**/node_modules/**"],
210
+ });
211
+
212
+ if (files.length > 0) {
213
+ // Directory has other files, but no BMad installation.
214
+ // Treat as clean install but record that it isn't empty.
215
+ state.hasOtherFiles = true;
216
+ }
217
+
218
+ // Check for expansion packs (folders starting with .)
219
+ const expansionPacks = await this.detectExpansionPacks(installDir);
220
+ state.expansionPacks = expansionPacks;
221
+
222
+ return state; // clean install
223
+ }
224
+
225
+ async performFreshInstall(config, installDir, spinner, options = {}) {
226
+ spinner.text = "Installing BMad Method...";
227
+
228
+ let files = [];
229
+
230
+ if (config.installType === "full") {
231
+ // Full installation - copy entire .bmad-core folder as a subdirectory
232
+ spinner.text = "Copying complete .bmad-core folder...";
233
+ const sourceDir = resourceLocator.getBmadCorePath();
234
+ const bmadCoreDestDir = path.join(installDir, ".bmad-core");
235
+ await fileManager.copyDirectoryWithRootReplacement(sourceDir, bmadCoreDestDir, ".bmad-core");
236
+
237
+ // Copy common/ items to .bmad-core
238
+ spinner.text = "Copying common utilities...";
239
+ await this.copyCommonItems(installDir, ".bmad-core", spinner);
240
+
241
+ // Get list of all files for manifest
242
+ const foundFiles = await resourceLocator.findFiles("**/*", {
243
+ cwd: bmadCoreDestDir,
244
+ nodir: true,
245
+ ignore: ["**/.git/**", "**/node_modules/**"],
246
+ });
247
+ files = foundFiles.map((file) => path.join(".bmad-core", file));
248
+ } else if (config.installType === "single-agent") {
249
+ // Single agent installation
250
+ spinner.text = `Installing ${config.agent} agent...`;
251
+
252
+ // Copy agent file with {root} replacement
253
+ const agentPath = configLoader.getAgentPath(config.agent);
254
+ const destAgentPath = path.join(
255
+ installDir,
256
+ ".bmad-core",
257
+ "agents",
258
+ `${config.agent}.md`
259
+ );
260
+ await fileManager.copyFileWithRootReplacement(agentPath, destAgentPath, ".bmad-core");
261
+ files.push(`.bmad-core/agents/${config.agent}.md`);
262
+
263
+ // Copy dependencies
264
+ const { all: dependencies } = await resourceLocator.getAgentDependencies(
265
+ config.agent
266
+ );
267
+ const sourceBase = resourceLocator.getBmadCorePath();
268
+
269
+ for (const dep of dependencies) {
270
+ spinner.text = `Copying dependency: ${dep}`;
271
+
272
+ if (dep.includes("*")) {
273
+ // Handle glob patterns with {root} replacement
274
+ const copiedFiles = await fileManager.copyGlobPattern(
275
+ dep.replace(".bmad-core/", ""),
276
+ sourceBase,
277
+ path.join(installDir, ".bmad-core"),
278
+ ".bmad-core"
279
+ );
280
+ files.push(...copiedFiles.map(f => `.bmad-core/${f}`));
281
+ } else {
282
+ // Handle single files with {root} replacement if needed
283
+ const sourcePath = path.join(
284
+ sourceBase,
285
+ dep.replace(".bmad-core/", "")
286
+ );
287
+ const destPath = path.join(
288
+ installDir,
289
+ dep
290
+ );
291
+
292
+ const needsRootReplacement = dep.endsWith('.md') || dep.endsWith('.yaml') || dep.endsWith('.yml');
293
+ let success = false;
294
+
295
+ if (needsRootReplacement) {
296
+ success = await fileManager.copyFileWithRootReplacement(sourcePath, destPath, ".bmad-core");
297
+ } else {
298
+ success = await fileManager.copyFile(sourcePath, destPath);
299
+ }
300
+
301
+ if (success) {
302
+ files.push(dep);
303
+ }
304
+ }
305
+ }
306
+
307
+ // Copy common/ items to .bmad-core
308
+ spinner.text = "Copying common utilities...";
309
+ const commonFiles = await this.copyCommonItems(installDir, ".bmad-core", spinner);
310
+ files.push(...commonFiles);
311
+ } else if (config.installType === "team") {
312
+ // Team installation
313
+ spinner.text = `Installing ${config.team} team...`;
314
+
315
+ // Get team dependencies
316
+ const teamDependencies = await configLoader.getTeamDependencies(config.team);
317
+ const sourceBase = resourceLocator.getBmadCorePath();
318
+
319
+ // Install all team dependencies
320
+ for (const dep of teamDependencies) {
321
+ spinner.text = `Copying team dependency: ${dep}`;
322
+
323
+ if (dep.includes("*")) {
324
+ // Handle glob patterns with {root} replacement
325
+ const copiedFiles = await fileManager.copyGlobPattern(
326
+ dep.replace(".bmad-core/", ""),
327
+ sourceBase,
328
+ path.join(installDir, ".bmad-core"),
329
+ ".bmad-core"
330
+ );
331
+ files.push(...copiedFiles.map(f => `.bmad-core/${f}`));
332
+ } else {
333
+ // Handle single files with {root} replacement if needed
334
+ const sourcePath = path.join(sourceBase, dep.replace(".bmad-core/", ""));
335
+ const destPath = path.join(installDir, dep);
336
+
337
+ const needsRootReplacement = dep.endsWith('.md') || dep.endsWith('.yaml') || dep.endsWith('.yml');
338
+ let success = false;
339
+
340
+ if (needsRootReplacement) {
341
+ success = await fileManager.copyFileWithRootReplacement(sourcePath, destPath, ".bmad-core");
342
+ } else {
343
+ success = await fileManager.copyFile(sourcePath, destPath);
344
+ }
345
+
346
+ if (success) {
347
+ files.push(dep);
348
+ }
349
+ }
350
+ }
351
+
352
+ // Copy common/ items to .bmad-core
353
+ spinner.text = "Copying common utilities...";
354
+ const commonFiles = await this.copyCommonItems(installDir, ".bmad-core", spinner);
355
+ files.push(...commonFiles);
356
+ } else if (config.installType === "expansion-only") {
357
+ // Expansion-only installation - DO NOT create .bmad-core
358
+ // Only install expansion packs
359
+ spinner.text = "Installing expansion packs only...";
360
+ }
361
+
362
+ // Install expansion packs if requested
363
+ const expansionFiles = await this.installExpansionPacks(installDir, config.expansionPacks, spinner, config);
364
+ files.push(...expansionFiles);
365
+
366
+ // Install web bundles if requested
367
+ if (config.includeWebBundles && config.webBundlesDirectory) {
368
+ spinner.text = "Installing web bundles...";
369
+ // Resolve web bundles directory using the same logic as the main installation directory
370
+ const originalCwd = process.env.INIT_CWD || process.env.PWD || process.cwd();
371
+ let resolvedWebBundlesDir = path.isAbsolute(config.webBundlesDirectory)
372
+ ? config.webBundlesDirectory
373
+ : path.resolve(originalCwd, config.webBundlesDirectory);
374
+ await this.installWebBundles(resolvedWebBundlesDir, config, spinner);
375
+ }
376
+
377
+ // Set up IDE integration if requested
378
+ const ides = config.ides || (config.ide ? [config.ide] : []);
379
+ if (ides.length > 0) {
380
+ for (const ide of ides) {
381
+ spinner.text = `Setting up ${ide} integration...`;
382
+ const preConfiguredSettings = ide === 'github-copilot' ? config.githubCopilotConfig : null;
383
+ await ideSetup.setup(ide, installDir, config.agent, spinner, preConfiguredSettings);
384
+ }
385
+ }
386
+
387
+ // Modify core-config.yaml if sharding preferences were provided
388
+ if (config.installType !== "expansion-only" && (config.prdSharded !== undefined || config.architectureSharded !== undefined)) {
389
+ spinner.text = "Configuring document sharding settings...";
390
+ await fileManager.modifyCoreConfig(installDir, config);
391
+ }
392
+
393
+ // Create manifest (skip for expansion-only installations)
394
+ if (config.installType !== "expansion-only") {
395
+ spinner.text = "Creating installation manifest...";
396
+ await fileManager.createManifest(installDir, config, files);
397
+ }
398
+
399
+ spinner.succeed("Installation complete!");
400
+ this.showSuccessMessage(config, installDir, options);
401
+ }
402
+
403
+ async handleExistingV4Installation(config, installDir, state, spinner) {
404
+ spinner.stop();
405
+
406
+ const currentVersion = state.manifest.version;
407
+ const newVersion = await this.getCoreVersion();
408
+ const versionCompare = this.compareVersions(currentVersion, newVersion);
409
+
410
+ console.log(chalk.yellow("\n🔍 Found existing BMad v4 installation"));
411
+ console.log(` Directory: ${installDir}`);
412
+ console.log(` Current version: ${currentVersion}`);
413
+ console.log(` Available version: ${newVersion}`);
414
+ console.log(
415
+ ` Installed: ${new Date(
416
+ state.manifest.installed_at
417
+ ).toLocaleDateString()}`
418
+ );
419
+
420
+ // Check file integrity
421
+ spinner.start("Checking installation integrity...");
422
+ const integrity = await fileManager.checkFileIntegrity(installDir, state.manifest);
423
+ spinner.stop();
424
+
425
+ const hasMissingFiles = integrity.missing.length > 0;
426
+ const hasModifiedFiles = integrity.modified.length > 0;
427
+ const hasIntegrityIssues = hasMissingFiles || hasModifiedFiles;
428
+
429
+ if (hasIntegrityIssues) {
430
+ console.log(chalk.red("\n⚠️ Installation issues detected:"));
431
+ if (hasMissingFiles) {
432
+ console.log(chalk.red(` Missing files: ${integrity.missing.length}`));
433
+ if (integrity.missing.length <= 5) {
434
+ integrity.missing.forEach(file => console.log(chalk.dim(` - ${file}`)));
435
+ }
436
+ }
437
+ if (hasModifiedFiles) {
438
+ console.log(chalk.yellow(` Modified files: ${integrity.modified.length}`));
439
+ if (integrity.modified.length <= 5) {
440
+ integrity.modified.forEach(file => console.log(chalk.dim(` - ${file}`)));
441
+ }
442
+ }
443
+ }
444
+
445
+ // Show existing expansion packs
446
+ if (Object.keys(state.expansionPacks).length > 0) {
447
+ console.log(chalk.cyan("\n📦 Installed expansion packs:"));
448
+ for (const [packId, packInfo] of Object.entries(state.expansionPacks)) {
449
+ if (packInfo.hasManifest && packInfo.manifest) {
450
+ console.log(` - ${packId} (v${packInfo.manifest.version || 'unknown'})`);
451
+ } else {
452
+ console.log(` - ${packId} (no manifest)`);
453
+ }
454
+ }
455
+ }
456
+
457
+ let choices = [];
458
+
459
+ if (versionCompare < 0) {
460
+ console.log(chalk.cyan("\n⬆️ Upgrade available for BMad core"));
461
+ choices.push({ name: `Upgrade BMad core (v${currentVersion} → v${newVersion})`, value: "upgrade" });
462
+ } else if (versionCompare === 0) {
463
+ if (hasIntegrityIssues) {
464
+ // Offer repair option when files are missing or modified
465
+ choices.push({
466
+ name: "Repair installation (restore missing/modified files)",
467
+ value: "repair"
468
+ });
469
+ }
470
+ console.log(chalk.yellow("\n⚠️ Same version already installed"));
471
+ choices.push({ name: `Force reinstall BMad core (v${currentVersion} - reinstall)`, value: "reinstall" });
472
+ } else {
473
+ console.log(chalk.yellow("\n⬇️ Installed version is newer than available"));
474
+ choices.push({ name: `Downgrade BMad core (v${currentVersion} → v${newVersion})`, value: "reinstall" });
475
+ }
476
+
477
+ choices.push(
478
+ { name: "Add/update expansion packs only", value: "expansions" },
479
+ { name: "Cancel", value: "cancel" }
480
+ );
481
+
482
+ const { action } = await inquirer.prompt([
483
+ {
484
+ type: "list",
485
+ name: "action",
486
+ message: "What would you like to do?",
487
+ choices: choices,
488
+ },
489
+ ]);
490
+
491
+ switch (action) {
492
+ case "upgrade":
493
+ return await this.performUpdate(config, installDir, state.manifest, spinner);
494
+ case "repair":
495
+ // For repair, restore missing/modified files while backing up modified ones
496
+ return await this.performRepair(config, installDir, state.manifest, integrity, spinner);
497
+ case "reinstall":
498
+ // For reinstall, don't check for modifications - just overwrite
499
+ return await this.performReinstall(config, installDir, spinner);
500
+ case "expansions":
501
+ // Ask which expansion packs to install
502
+ const availableExpansionPacks = await resourceLocator.getExpansionPacks();
503
+
504
+ if (availableExpansionPacks.length === 0) {
505
+ console.log(chalk.yellow("No expansion packs available."));
506
+ return;
507
+ }
508
+
509
+ const { selectedPacks } = await inquirer.prompt([
510
+ {
511
+ type: 'checkbox',
512
+ name: 'selectedPacks',
513
+ message: 'Select expansion packs to install/update:',
514
+ choices: availableExpansionPacks.map(pack => ({
515
+ name: `${pack.name} (v${pack.version}) .${pack.id}`,
516
+ value: pack.id,
517
+ checked: state.expansionPacks[pack.id] !== undefined
518
+ }))
519
+ }
520
+ ]);
521
+
522
+ if (selectedPacks.length === 0) {
523
+ console.log(chalk.yellow("No expansion packs selected."));
524
+ return;
525
+ }
526
+
527
+ spinner.start("Installing expansion packs...");
528
+ const expansionFiles = await this.installExpansionPacks(installDir, selectedPacks, spinner, { ides: config.ides || [] });
529
+ spinner.succeed("Expansion packs installed successfully!");
530
+
531
+ console.log(chalk.green("\n✓ Installation complete!"));
532
+ console.log(chalk.green(`✓ Expansion packs installed/updated:`));
533
+ for (const packId of selectedPacks) {
534
+ console.log(chalk.green(` - ${packId} → .${packId}/`));
535
+ }
536
+ return;
537
+ case "cancel":
538
+ console.log("Installation cancelled.");
539
+ return;
540
+ }
541
+ }
542
+
543
+ async handleV3Installation(config, installDir, state, spinner) {
544
+ spinner.stop();
545
+
546
+ console.log(
547
+ chalk.yellow("\n🔍 Found BMad v3 installation (bmad-agent/ directory)")
548
+ );
549
+ console.log(` Directory: ${installDir}`);
550
+
551
+ const { action } = await inquirer.prompt([
552
+ {
553
+ type: "list",
554
+ name: "action",
555
+ message: "What would you like to do?",
556
+ choices: [
557
+ { name: "Upgrade from v3 to v4 (recommended)", value: "upgrade" },
558
+ { name: "Install v4 alongside v3", value: "alongside" },
559
+ { name: "Cancel", value: "cancel" },
560
+ ],
561
+ },
562
+ ]);
563
+
564
+ switch (action) {
565
+ case "upgrade": {
566
+ console.log(chalk.cyan("\n📦 Starting v3 to v4 upgrade process..."));
567
+ const V3ToV4Upgrader = require("../../upgraders/v3-to-v4-upgrader");
568
+ const upgrader = new V3ToV4Upgrader();
569
+ return await upgrader.upgrade({
570
+ projectPath: installDir,
571
+ ides: config.ides || [] // Pass IDE selections from initial config
572
+ });
573
+ }
574
+ case "alongside":
575
+ return await this.performFreshInstall(config, installDir, spinner);
576
+ case "cancel":
577
+ console.log("Installation cancelled.");
578
+ return;
579
+ }
580
+ }
581
+
582
+ async handleUnknownInstallation(config, installDir, state, spinner) {
583
+ spinner.stop();
584
+
585
+ console.log(chalk.yellow("\n⚠️ Directory contains existing files"));
586
+ console.log(` Directory: ${installDir}`);
587
+
588
+ if (state.hasBmadCore) {
589
+ console.log(" Found: .bmad-core directory (but no manifest)");
590
+ }
591
+ if (state.hasOtherFiles) {
592
+ console.log(" Found: Other files in directory");
593
+ }
594
+
595
+ const { action } = await inquirer.prompt([
596
+ {
597
+ type: "list",
598
+ name: "action",
599
+ message: "What would you like to do?",
600
+ choices: [
601
+ { name: "Install anyway (may overwrite files)", value: "force" },
602
+ { name: "Choose different directory", value: "different" },
603
+ { name: "Cancel", value: "cancel" },
604
+ ],
605
+ },
606
+ ]);
607
+
608
+ switch (action) {
609
+ case "force":
610
+ return await this.performFreshInstall(config, installDir, spinner);
611
+ case "different": {
612
+ const { newDir } = await inquirer.prompt([
613
+ {
614
+ type: "input",
615
+ name: "newDir",
616
+ message: "Enter new installation directory:",
617
+ default: path.join(path.dirname(installDir), "bmad-project"),
618
+ },
619
+ ]);
620
+ config.directory = newDir;
621
+ return await this.install(config);
622
+ }
623
+ case "cancel":
624
+ console.log("Installation cancelled.");
625
+ return;
626
+ }
627
+ }
628
+
629
+ async performUpdate(newConfig, installDir, manifest, spinner) {
630
+ spinner.start("Checking for updates...");
631
+
632
+ try {
633
+ // Get current and new versions
634
+ const currentVersion = manifest.version;
635
+ const newVersion = await this.getCoreVersion();
636
+ const versionCompare = this.compareVersions(currentVersion, newVersion);
637
+
638
+ // Only check for modified files if it's an actual version upgrade
639
+ let modifiedFiles = [];
640
+ if (versionCompare !== 0) {
641
+ spinner.text = "Checking for modified files...";
642
+ modifiedFiles = await fileManager.checkModifiedFiles(
643
+ installDir,
644
+ manifest
645
+ );
646
+ }
647
+
648
+ if (modifiedFiles.length > 0) {
649
+ spinner.warn("Found modified files");
650
+ console.log(chalk.yellow("\nThe following files have been modified:"));
651
+ for (const file of modifiedFiles) {
652
+ console.log(` - ${file}`);
653
+ }
654
+
655
+ const { action } = await inquirer.prompt([
656
+ {
657
+ type: "list",
658
+ name: "action",
659
+ message: "How would you like to proceed?",
660
+ choices: [
661
+ { name: "Backup and overwrite modified files", value: "backup" },
662
+ { name: "Skip modified files", value: "skip" },
663
+ { name: "Cancel update", value: "cancel" },
664
+ ],
665
+ },
666
+ ]);
667
+
668
+ if (action === "cancel") {
669
+ console.log("Update cancelled.");
670
+ return;
671
+ }
672
+
673
+ if (action === "backup") {
674
+ spinner.start("Backing up modified files...");
675
+ for (const file of modifiedFiles) {
676
+ const filePath = path.join(installDir, file);
677
+ const backupPath = await fileManager.backupFile(filePath);
678
+ console.log(
679
+ chalk.dim(` Backed up: ${file} → ${path.basename(backupPath)}`)
680
+ );
681
+ }
682
+ }
683
+ }
684
+
685
+ // Perform update by re-running installation
686
+ spinner.text = versionCompare === 0 ? "Reinstalling files..." : "Updating files...";
687
+ const config = {
688
+ installType: manifest.install_type,
689
+ agent: manifest.agent,
690
+ directory: installDir,
691
+ ides: newConfig?.ides || manifest.ides_setup || [],
692
+ };
693
+
694
+ await this.performFreshInstall(config, installDir, spinner, { isUpdate: true });
695
+
696
+ // Clean up .yml files that now have .yaml counterparts
697
+ spinner.text = "Cleaning up legacy .yml files...";
698
+ await this.cleanupLegacyYmlFiles(installDir, spinner);
699
+ } catch (error) {
700
+ spinner.fail("Update failed");
701
+ throw error;
702
+ }
703
+ }
704
+
705
+ async performRepair(config, installDir, manifest, integrity, spinner) {
706
+ spinner.start("Preparing to repair installation...");
707
+
708
+ try {
709
+ // Back up modified files
710
+ if (integrity.modified.length > 0) {
711
+ spinner.text = "Backing up modified files...";
712
+ for (const file of integrity.modified) {
713
+ const filePath = path.join(installDir, file);
714
+ if (await fileManager.pathExists(filePath)) {
715
+ const backupPath = await fileManager.backupFile(filePath);
716
+ console.log(chalk.dim(` Backed up: ${file} → ${path.basename(backupPath)}`));
717
+ }
718
+ }
719
+ }
720
+
721
+ // Restore missing and modified files
722
+ spinner.text = "Restoring files...";
723
+ const sourceBase = resourceLocator.getBmadCorePath();
724
+ const filesToRestore = [...integrity.missing, ...integrity.modified];
725
+
726
+ for (const file of filesToRestore) {
727
+ // Skip the manifest file itself
728
+ if (file.endsWith('install-manifest.yaml')) continue;
729
+
730
+ const relativePath = file.replace('.bmad-core/', '');
731
+ const destPath = path.join(installDir, file);
732
+
733
+ // Check if this is a common/ file that needs special processing
734
+ const commonBase = path.dirname(path.dirname(path.dirname(path.dirname(__filename))));
735
+ const commonSourcePath = path.join(commonBase, 'common', relativePath);
736
+
737
+ if (await fileManager.pathExists(commonSourcePath)) {
738
+ // This is a common/ file - needs template processing
739
+ const fs = require('fs').promises;
740
+ const content = await fs.readFile(commonSourcePath, 'utf8');
741
+ const updatedContent = content.replace(/\{root\}/g, '.bmad-core');
742
+ await fileManager.ensureDirectory(path.dirname(destPath));
743
+ await fs.writeFile(destPath, updatedContent, 'utf8');
744
+ spinner.text = `Restored: ${file}`;
745
+ } else {
746
+ // Regular file from bmad-core
747
+ const sourcePath = path.join(sourceBase, relativePath);
748
+ if (await fileManager.pathExists(sourcePath)) {
749
+ await fileManager.copyFile(sourcePath, destPath);
750
+ spinner.text = `Restored: ${file}`;
751
+
752
+ // If this is a .yaml file, check for and remove corresponding .yml file
753
+ if (file.endsWith('.yaml')) {
754
+ const ymlFile = file.replace(/\.yaml$/, '.yml');
755
+ const ymlPath = path.join(installDir, ymlFile);
756
+ if (await fileManager.pathExists(ymlPath)) {
757
+ const fs = require('fs').promises;
758
+ await fs.unlink(ymlPath);
759
+ console.log(chalk.dim(` Removed legacy: ${ymlFile} (replaced by ${file})`));
760
+ }
761
+ }
762
+ } else {
763
+ console.warn(chalk.yellow(` Warning: Source file not found: ${file}`));
764
+ }
765
+ }
766
+ }
767
+
768
+ // Clean up .yml files that now have .yaml counterparts
769
+ spinner.text = "Cleaning up legacy .yml files...";
770
+ await this.cleanupLegacyYmlFiles(installDir, spinner);
771
+
772
+ spinner.succeed("Repair completed successfully!");
773
+
774
+ // Show summary
775
+ console.log(chalk.green("\n✓ Installation repaired!"));
776
+ if (integrity.missing.length > 0) {
777
+ console.log(chalk.green(` Restored ${integrity.missing.length} missing files`));
778
+ }
779
+ if (integrity.modified.length > 0) {
780
+ console.log(chalk.green(` Restored ${integrity.modified.length} modified files (backups created)`));
781
+ }
782
+
783
+ // Warning for Cursor custom modes if agents were repaired
784
+ const ides = manifest.ides_setup || [];
785
+ if (ides.includes('cursor')) {
786
+ console.log(chalk.yellow.bold("\n⚠️ IMPORTANT: Cursor Custom Modes Update Required"));
787
+ console.log(chalk.yellow("Since agent files have been repaired, you need to update any custom agent modes configured in the Cursor custom agent GUI per the Cursor docs."));
788
+ }
789
+
790
+ } catch (error) {
791
+ spinner.fail("Repair failed");
792
+ throw error;
793
+ }
794
+ }
795
+
796
+ async performReinstall(config, installDir, spinner) {
797
+ spinner.start("Preparing to reinstall BMad Method...");
798
+
799
+ // Remove existing .bmad-core
800
+ const bmadCorePath = path.join(installDir, ".bmad-core");
801
+ if (await fileManager.pathExists(bmadCorePath)) {
802
+ spinner.text = "Removing existing installation...";
803
+ await fileManager.removeDirectory(bmadCorePath);
804
+ }
805
+
806
+ spinner.text = "Installing fresh copy...";
807
+ const result = await this.performFreshInstall(config, installDir, spinner, { isUpdate: true });
808
+
809
+ // Clean up .yml files that now have .yaml counterparts
810
+ spinner.text = "Cleaning up legacy .yml files...";
811
+ await this.cleanupLegacyYmlFiles(installDir, spinner);
812
+
813
+ return result;
814
+ }
815
+
816
+ showSuccessMessage(config, installDir, options = {}) {
817
+ console.log(chalk.green("\n✓ BMad Method installed successfully!\n"));
818
+
819
+ const ides = config.ides || (config.ide ? [config.ide] : []);
820
+ if (ides.length > 0) {
821
+ for (const ide of ides) {
822
+ const ideConfig = configLoader.getIdeConfiguration(ide);
823
+ if (ideConfig?.instructions) {
824
+ console.log(
825
+ chalk.bold(`To use BMad agents in ${ideConfig.name}:`)
826
+ );
827
+ console.log(ideConfig.instructions);
828
+ }
829
+ }
830
+ } else {
831
+ console.log(chalk.yellow("No IDE configuration was set up."));
832
+ console.log(
833
+ "You can manually configure your IDE using the agent files in:",
834
+ installDir
835
+ );
836
+ }
837
+
838
+ // Information about installation components
839
+ console.log(chalk.bold("\n🎯 Installation Summary:"));
840
+ if (config.installType !== "expansion-only") {
841
+ console.log(chalk.green("✓ .bmad-core framework installed with all agents and workflows"));
842
+ }
843
+
844
+ if (config.expansionPacks && config.expansionPacks.length > 0) {
845
+ console.log(chalk.green(`✓ Expansion packs installed:`));
846
+ for (const packId of config.expansionPacks) {
847
+ console.log(chalk.green(` - ${packId} → .${packId}/`));
848
+ }
849
+ }
850
+
851
+ if (config.includeWebBundles && config.webBundlesDirectory) {
852
+ const bundleInfo = this.getWebBundleInfo(config);
853
+ // Resolve the web bundles directory for display
854
+ const originalCwd = process.env.INIT_CWD || process.env.PWD || process.cwd();
855
+ const resolvedWebBundlesDir = path.isAbsolute(config.webBundlesDirectory)
856
+ ? config.webBundlesDirectory
857
+ : path.resolve(originalCwd, config.webBundlesDirectory);
858
+ console.log(chalk.green(`✓ Web bundles (${bundleInfo}) installed to: ${resolvedWebBundlesDir}`));
859
+ }
860
+
861
+ if (ides.length > 0) {
862
+ const ideNames = ides.map(ide => {
863
+ const ideConfig = configLoader.getIdeConfiguration(ide);
864
+ return ideConfig?.name || ide;
865
+ }).join(", ");
866
+ console.log(chalk.green(`✓ IDE rules and configurations set up for: ${ideNames}`));
867
+ }
868
+
869
+ // Information about web bundles
870
+ if (!config.includeWebBundles) {
871
+ console.log(chalk.bold("\n📦 Web Bundles Available:"));
872
+ console.log("Pre-built web bundles are available and can be added later:");
873
+ console.log(chalk.cyan(" Run the installer again to add them to your project"));
874
+ console.log("These bundles work independently and can be shared, moved, or used");
875
+ console.log("in other projects as standalone files.");
876
+ }
877
+
878
+ if (config.installType === "single-agent") {
879
+ console.log(
880
+ chalk.dim(
881
+ "\nNeed other agents? Run: npx bmad-method install --agent=<name>"
882
+ )
883
+ );
884
+ console.log(
885
+ chalk.dim("Need everything? Run: npx bmad-method install --full")
886
+ );
887
+ }
888
+
889
+ // Warning for Cursor custom modes if agents were updated
890
+ if (options.isUpdate && ides.includes('cursor')) {
891
+ console.log(chalk.yellow.bold("\n⚠️ IMPORTANT: Cursor Custom Modes Update Required"));
892
+ console.log(chalk.yellow("Since agents have been updated, you need to update any custom agent modes configured in the Cursor custom agent GUI per the Cursor docs."));
893
+ }
894
+
895
+ // Important notice to read the user guide
896
+ console.log(chalk.red.bold("\n📖 IMPORTANT: Please read the user guide installed at .bmad-core/user-guide.md"));
897
+ console.log(chalk.red("This guide contains essential information about the BMad workflow and how to use the agents effectively."));
898
+ }
899
+
900
+ // Legacy method for backward compatibility
901
+ async update() {
902
+ console.log(chalk.yellow('The "update" command is deprecated.'));
903
+ console.log(
904
+ 'Please use "install" instead - it will detect and offer to update existing installations.'
905
+ );
906
+
907
+ const installDir = await this.findInstallation();
908
+ if (installDir) {
909
+ const config = {
910
+ installType: "full",
911
+ directory: path.dirname(installDir),
912
+ ide: null,
913
+ };
914
+ return await this.install(config);
915
+ }
916
+ console.log(chalk.red("No BMad installation found."));
917
+ }
918
+
919
+ async listAgents() {
920
+ const agents = await resourceLocator.getAvailableAgents();
921
+
922
+ console.log(chalk.bold("\nAvailable BMad Agents:\n"));
923
+
924
+ for (const agent of agents) {
925
+ console.log(chalk.cyan(` ${agent.id.padEnd(20)}`), agent.description);
926
+ }
927
+
928
+ console.log(
929
+ chalk.dim("\nInstall with: npx bmad-method install --agent=<id>\n")
930
+ );
931
+ }
932
+
933
+ async listExpansionPacks() {
934
+ const expansionPacks = await resourceLocator.getExpansionPacks();
935
+
936
+ console.log(chalk.bold("\nAvailable BMad Expansion Packs:\n"));
937
+
938
+ if (expansionPacks.length === 0) {
939
+ console.log(chalk.yellow("No expansion packs found."));
940
+ return;
941
+ }
942
+
943
+ for (const pack of expansionPacks) {
944
+ console.log(chalk.cyan(` ${pack.id.padEnd(20)}`),
945
+ `${pack.name} v${pack.version}`);
946
+ console.log(chalk.dim(` ${' '.repeat(22)}${pack.description}`));
947
+ if (pack.author && pack.author !== 'Unknown') {
948
+ console.log(chalk.dim(` ${' '.repeat(22)}by ${pack.author}`));
949
+ }
950
+ console.log();
951
+ }
952
+
953
+ console.log(
954
+ chalk.dim("Install with: npx bmad-method install --full --expansion-packs <id>\n")
955
+ );
956
+ }
957
+
958
+ async showStatus() {
959
+ const installDir = await this.findInstallation();
960
+
961
+ if (!installDir) {
962
+ console.log(
963
+ chalk.yellow("No BMad installation found in current directory tree")
964
+ );
965
+ return;
966
+ }
967
+
968
+ const manifest = await fileManager.readManifest(installDir);
969
+
970
+ if (!manifest) {
971
+ console.log(chalk.red("Invalid installation - manifest not found"));
972
+ return;
973
+ }
974
+
975
+ console.log(chalk.bold("\nBMad Installation Status:\n"));
976
+ console.log(` Directory: ${installDir}`);
977
+ console.log(` Version: ${manifest.version}`);
978
+ console.log(
979
+ ` Installed: ${new Date(
980
+ manifest.installed_at
981
+ ).toLocaleDateString()}`
982
+ );
983
+ console.log(` Type: ${manifest.install_type}`);
984
+
985
+ if (manifest.agent) {
986
+ console.log(` Agent: ${manifest.agent}`);
987
+ }
988
+
989
+ if (manifest.ides_setup && manifest.ides_setup.length > 0) {
990
+ console.log(` IDE Setup: ${manifest.ides_setup.join(', ')}`);
991
+ }
992
+
993
+ console.log(` Total Files: ${manifest.files.length}`);
994
+
995
+ // Check for modifications
996
+ const modifiedFiles = await fileManager.checkModifiedFiles(
997
+ installDir,
998
+ manifest
999
+ );
1000
+ if (modifiedFiles.length > 0) {
1001
+ console.log(chalk.yellow(` Modified Files: ${modifiedFiles.length}`));
1002
+ }
1003
+
1004
+ console.log("");
1005
+ }
1006
+
1007
+ async getAvailableAgents() {
1008
+ return resourceLocator.getAvailableAgents();
1009
+ }
1010
+
1011
+ async getAvailableExpansionPacks() {
1012
+ return resourceLocator.getExpansionPacks();
1013
+ }
1014
+
1015
+ async getAvailableTeams() {
1016
+ return configLoader.getAvailableTeams();
1017
+ }
1018
+
1019
+ async installExpansionPacks(installDir, selectedPacks, spinner, config = {}) {
1020
+ if (!selectedPacks || selectedPacks.length === 0) {
1021
+ return [];
1022
+ }
1023
+
1024
+ const installedFiles = [];
1025
+
1026
+ for (const packId of selectedPacks) {
1027
+ spinner.text = `Installing expansion pack: ${packId}...`;
1028
+
1029
+ try {
1030
+ const expansionPacks = await resourceLocator.getExpansionPacks();
1031
+ const pack = expansionPacks.find(p => p.id === packId);
1032
+
1033
+ if (!pack) {
1034
+ console.warn(`Expansion pack ${packId} not found, skipping...`);
1035
+ continue;
1036
+ }
1037
+
1038
+ // Check if expansion pack already exists
1039
+ let expansionDotFolder = path.join(installDir, `.${packId}`);
1040
+ const existingManifestPath = path.join(expansionDotFolder, 'install-manifest.yaml');
1041
+
1042
+ if (await fileManager.pathExists(existingManifestPath)) {
1043
+ spinner.stop();
1044
+ const existingManifest = await fileManager.readExpansionPackManifest(installDir, packId);
1045
+
1046
+ console.log(chalk.yellow(`\n🔍 Found existing ${pack.name} installation`));
1047
+ console.log(` Current version: ${existingManifest.version || 'unknown'}`);
1048
+ console.log(` New version: ${pack.version}`);
1049
+
1050
+ // Check integrity of existing expansion pack
1051
+ const packIntegrity = await fileManager.checkFileIntegrity(installDir, existingManifest);
1052
+ const hasPackIntegrityIssues = packIntegrity.missing.length > 0 || packIntegrity.modified.length > 0;
1053
+
1054
+ if (hasPackIntegrityIssues) {
1055
+ console.log(chalk.red(" ⚠️ Installation issues detected:"));
1056
+ if (packIntegrity.missing.length > 0) {
1057
+ console.log(chalk.red(` Missing files: ${packIntegrity.missing.length}`));
1058
+ }
1059
+ if (packIntegrity.modified.length > 0) {
1060
+ console.log(chalk.yellow(` Modified files: ${packIntegrity.modified.length}`));
1061
+ }
1062
+ }
1063
+
1064
+ const versionCompare = this.compareVersions(existingManifest.version || '0.0.0', pack.version);
1065
+
1066
+ if (versionCompare === 0) {
1067
+ console.log(chalk.yellow(' ⚠️ Same version already installed'));
1068
+
1069
+ const choices = [];
1070
+ if (hasPackIntegrityIssues) {
1071
+ choices.push({ name: 'Repair (restore missing/modified files)', value: 'repair' });
1072
+ }
1073
+ choices.push(
1074
+ { name: 'Force reinstall (overwrite)', value: 'overwrite' },
1075
+ { name: 'Skip this expansion pack', value: 'skip' },
1076
+ { name: 'Cancel installation', value: 'cancel' }
1077
+ );
1078
+
1079
+ const { action } = await inquirer.prompt([{
1080
+ type: 'list',
1081
+ name: 'action',
1082
+ message: `${pack.name} v${pack.version} is already installed. What would you like to do?`,
1083
+ choices: choices
1084
+ }]);
1085
+
1086
+ if (action === 'skip') {
1087
+ spinner.start();
1088
+ continue;
1089
+ } else if (action === 'cancel') {
1090
+ console.log('Installation cancelled.');
1091
+ process.exit(0);
1092
+ } else if (action === 'repair') {
1093
+ // Repair the expansion pack
1094
+ await this.repairExpansionPack(installDir, packId, pack, packIntegrity, spinner);
1095
+ continue;
1096
+ }
1097
+ } else if (versionCompare < 0) {
1098
+ console.log(chalk.cyan(' ⬆️ Upgrade available'));
1099
+
1100
+ const { proceed } = await inquirer.prompt([{
1101
+ type: 'confirm',
1102
+ name: 'proceed',
1103
+ message: `Upgrade ${pack.name} from v${existingManifest.version} to v${pack.version}?`,
1104
+ default: true
1105
+ }]);
1106
+
1107
+ if (!proceed) {
1108
+ spinner.start();
1109
+ continue;
1110
+ }
1111
+ } else {
1112
+ console.log(chalk.yellow(' ⬇️ Installed version is newer than available version'));
1113
+
1114
+ const { action } = await inquirer.prompt([{
1115
+ type: 'list',
1116
+ name: 'action',
1117
+ message: 'What would you like to do?',
1118
+ choices: [
1119
+ { name: 'Keep current version', value: 'skip' },
1120
+ { name: 'Downgrade to available version', value: 'downgrade' },
1121
+ { name: 'Cancel installation', value: 'cancel' }
1122
+ ]
1123
+ }]);
1124
+
1125
+ if (action === 'skip') {
1126
+ spinner.start();
1127
+ continue;
1128
+ } else if (action === 'cancel') {
1129
+ console.log('Installation cancelled.');
1130
+ process.exit(0);
1131
+ }
1132
+ }
1133
+
1134
+ // If we get here, we're proceeding with installation
1135
+ spinner.start(`Removing old ${pack.name} installation...`);
1136
+ await fileManager.removeDirectory(expansionDotFolder);
1137
+ }
1138
+
1139
+ const expansionPackDir = pack.path;
1140
+
1141
+ // Ensure dedicated dot folder exists for this expansion pack
1142
+ expansionDotFolder = path.join(installDir, `.${packId}`);
1143
+ await fileManager.ensureDirectory(expansionDotFolder);
1144
+
1145
+ // Define the folders to copy from expansion packs
1146
+ const foldersToSync = [
1147
+ 'agents',
1148
+ 'agent-teams',
1149
+ 'templates',
1150
+ 'tasks',
1151
+ 'checklists',
1152
+ 'workflows',
1153
+ 'data',
1154
+ 'utils',
1155
+ 'schemas'
1156
+ ];
1157
+
1158
+ // Copy each folder if it exists
1159
+ for (const folder of foldersToSync) {
1160
+ const sourceFolder = path.join(expansionPackDir, folder);
1161
+
1162
+ // Check if folder exists in expansion pack
1163
+ if (await fileManager.pathExists(sourceFolder)) {
1164
+ // Get all files in this folder
1165
+ const files = await resourceLocator.findFiles('**/*', {
1166
+ cwd: sourceFolder,
1167
+ nodir: true
1168
+ });
1169
+
1170
+ // Copy each file to the expansion pack's dot folder with {root} replacement
1171
+ for (const file of files) {
1172
+ const sourcePath = path.join(sourceFolder, file);
1173
+ const destPath = path.join(expansionDotFolder, folder, file);
1174
+
1175
+ const needsRootReplacement = file.endsWith('.md') || file.endsWith('.yaml') || file.endsWith('.yml');
1176
+ let success = false;
1177
+
1178
+ if (needsRootReplacement) {
1179
+ success = await fileManager.copyFileWithRootReplacement(sourcePath, destPath, `.${packId}`);
1180
+ } else {
1181
+ success = await fileManager.copyFile(sourcePath, destPath);
1182
+ }
1183
+
1184
+ if (success) {
1185
+ installedFiles.push(path.join(`.${packId}`, folder, file));
1186
+ }
1187
+ }
1188
+ }
1189
+ }
1190
+
1191
+ // Copy config.yaml with {root} replacement
1192
+ const configPath = path.join(expansionPackDir, 'config.yaml');
1193
+ if (await fileManager.pathExists(configPath)) {
1194
+ const configDestPath = path.join(expansionDotFolder, 'config.yaml');
1195
+ if (await fileManager.copyFileWithRootReplacement(configPath, configDestPath, `.${packId}`)) {
1196
+ installedFiles.push(path.join(`.${packId}`, 'config.yaml'));
1197
+ }
1198
+ }
1199
+
1200
+ // Copy README if it exists with {root} replacement
1201
+ const readmePath = path.join(expansionPackDir, 'README.md');
1202
+ if (await fileManager.pathExists(readmePath)) {
1203
+ const readmeDestPath = path.join(expansionDotFolder, 'README.md');
1204
+ if (await fileManager.copyFileWithRootReplacement(readmePath, readmeDestPath, `.${packId}`)) {
1205
+ installedFiles.push(path.join(`.${packId}`, 'README.md'));
1206
+ }
1207
+ }
1208
+
1209
+ // Copy common/ items to expansion pack folder
1210
+ spinner.text = `Copying common utilities to ${packId}...`;
1211
+ await this.copyCommonItems(installDir, `.${packId}`, spinner);
1212
+
1213
+ // Check and resolve core dependencies
1214
+ await this.resolveExpansionPackCoreDependencies(installDir, expansionDotFolder, packId, pack, spinner);
1215
+
1216
+ // Check and resolve core agents referenced by teams
1217
+ await this.resolveExpansionPackCoreAgents(installDir, expansionDotFolder, packId, spinner);
1218
+
1219
+ // Create manifest for this expansion pack
1220
+ spinner.text = `Creating manifest for ${packId}...`;
1221
+ const expansionConfig = {
1222
+ installType: 'expansion-pack',
1223
+ expansionPackId: packId,
1224
+ expansionPackName: pack.name,
1225
+ expansionPackVersion: pack.version,
1226
+ ides: config.ides || [] // Use ides_setup instead of ide_setup
1227
+ };
1228
+
1229
+ // Get all files installed in this expansion pack
1230
+ const foundFiles = await resourceLocator.findFiles('**/*', {
1231
+ cwd: expansionDotFolder,
1232
+ nodir: true
1233
+ });
1234
+ const expansionPackFiles = foundFiles.map(f => path.join(`.${packId}`, f));
1235
+
1236
+ await fileManager.createExpansionPackManifest(installDir, packId, expansionConfig, expansionPackFiles);
1237
+
1238
+ console.log(chalk.green(`✓ Installed expansion pack: ${pack.name} to ${`.${packId}`}`));
1239
+ } catch (error) {
1240
+ console.error(`Failed to install expansion pack ${packId}: ${error.message}`);
1241
+ console.error(`Stack trace: ${error.stack}`);
1242
+ }
1243
+ }
1244
+
1245
+ return installedFiles;
1246
+ }
1247
+
1248
+ async resolveExpansionPackCoreDependencies(installDir, expansionDotFolder, packId, pack, spinner) {
1249
+ const yaml = require('js-yaml');
1250
+ const fs = require('fs').promises;
1251
+
1252
+ // Find all agent files in the expansion pack
1253
+ const agentFiles = await resourceLocator.findFiles('agents/*.md', {
1254
+ cwd: expansionDotFolder
1255
+ });
1256
+
1257
+ for (const agentFile of agentFiles) {
1258
+ const agentPath = path.join(expansionDotFolder, agentFile);
1259
+ const agentContent = await fs.readFile(agentPath, 'utf8');
1260
+
1261
+ // Extract YAML frontmatter to check dependencies
1262
+ const yamlContent = extractYamlFromAgent(agentContent);
1263
+ if (yamlContent) {
1264
+ try {
1265
+ const agentConfig = yaml.load(yamlContent);
1266
+ const dependencies = agentConfig.dependencies || {};
1267
+
1268
+ // Check for core dependencies (those that don't exist in the expansion pack)
1269
+ for (const depType of ['tasks', 'templates', 'checklists', 'workflows', 'utils', 'data']) {
1270
+ const deps = dependencies[depType] || [];
1271
+
1272
+ for (const dep of deps) {
1273
+ const depFileName = dep.endsWith('.md') || dep.endsWith('.yaml') ? dep :
1274
+ (depType === 'templates' ? `${dep}.yaml` : `${dep}.md`);
1275
+ const expansionDepPath = path.join(expansionDotFolder, depType, depFileName);
1276
+
1277
+ // Check if dependency exists in expansion pack dot folder
1278
+ if (!(await fileManager.pathExists(expansionDepPath))) {
1279
+ // Try to find it in expansion pack source
1280
+ const sourceDepPath = path.join(pack.path, depType, depFileName);
1281
+
1282
+ if (await fileManager.pathExists(sourceDepPath)) {
1283
+ // Copy from expansion pack source
1284
+ spinner.text = `Copying ${packId} dependency ${dep}...`;
1285
+ const destPath = path.join(expansionDotFolder, depType, depFileName);
1286
+ await fileManager.copyFileWithRootReplacement(sourceDepPath, destPath, `.${packId}`);
1287
+ console.log(chalk.dim(` Added ${packId} dependency: ${depType}/${depFileName}`));
1288
+ } else {
1289
+ // Try to find it in core
1290
+ const coreDepPath = path.join(resourceLocator.getBmadCorePath(), depType, depFileName);
1291
+
1292
+ if (await fileManager.pathExists(coreDepPath)) {
1293
+ spinner.text = `Copying core dependency ${dep} for ${packId}...`;
1294
+
1295
+ // Copy from core to expansion pack dot folder with {root} replacement
1296
+ const destPath = path.join(expansionDotFolder, depType, depFileName);
1297
+ await fileManager.copyFileWithRootReplacement(coreDepPath, destPath, `.${packId}`);
1298
+
1299
+ console.log(chalk.dim(` Added core dependency: ${depType}/${depFileName}`));
1300
+ } else {
1301
+ console.warn(chalk.yellow(` Warning: Dependency ${depType}/${dep} not found in core or expansion pack`));
1302
+ }
1303
+ }
1304
+ }
1305
+ }
1306
+ }
1307
+ } catch (error) {
1308
+ console.warn(` Warning: Could not parse agent dependencies: ${error.message}`);
1309
+ }
1310
+ }
1311
+ }
1312
+ }
1313
+
1314
+ async resolveExpansionPackCoreAgents(installDir, expansionDotFolder, packId, spinner) {
1315
+ const yaml = require('js-yaml');
1316
+ const fs = require('fs').promises;
1317
+
1318
+ // Find all team files in the expansion pack
1319
+ const teamFiles = await resourceLocator.findFiles('agent-teams/*.yaml', {
1320
+ cwd: expansionDotFolder
1321
+ });
1322
+
1323
+ // Also get existing agents in the expansion pack
1324
+ const existingAgents = new Set();
1325
+ const agentFiles = await resourceLocator.findFiles('agents/*.md', {
1326
+ cwd: expansionDotFolder
1327
+ });
1328
+ for (const agentFile of agentFiles) {
1329
+ const agentName = path.basename(agentFile, '.md');
1330
+ existingAgents.add(agentName);
1331
+ }
1332
+
1333
+ // Process each team file
1334
+ for (const teamFile of teamFiles) {
1335
+ const teamPath = path.join(expansionDotFolder, teamFile);
1336
+ const teamContent = await fs.readFile(teamPath, 'utf8');
1337
+
1338
+ try {
1339
+ const teamConfig = yaml.load(teamContent);
1340
+ const agents = teamConfig.agents || [];
1341
+
1342
+ // Add bmad-orchestrator if not present (required for all teams)
1343
+ if (!agents.includes('bmad-orchestrator')) {
1344
+ agents.unshift('bmad-orchestrator');
1345
+ }
1346
+
1347
+ // Check each agent in the team
1348
+ for (const agentId of agents) {
1349
+ if (!existingAgents.has(agentId)) {
1350
+ // Agent not in expansion pack, try to get from core
1351
+ const coreAgentPath = path.join(resourceLocator.getBmadCorePath(), 'agents', `${agentId}.md`);
1352
+
1353
+ if (await fileManager.pathExists(coreAgentPath)) {
1354
+ spinner.text = `Copying core agent ${agentId} for ${packId}...`;
1355
+
1356
+ // Copy agent file with {root} replacement
1357
+ const destPath = path.join(expansionDotFolder, 'agents', `${agentId}.md`);
1358
+ await fileManager.copyFileWithRootReplacement(coreAgentPath, destPath, `.${packId}`);
1359
+ existingAgents.add(agentId);
1360
+
1361
+ console.log(chalk.dim(` Added core agent: ${agentId}`));
1362
+
1363
+ // Now resolve this agent's dependencies too
1364
+ const agentContent = await fs.readFile(coreAgentPath, 'utf8');
1365
+ const yamlContent = extractYamlFromAgent(agentContent, true);
1366
+
1367
+ if (yamlContent) {
1368
+ try {
1369
+
1370
+ const agentConfig = yaml.load(yamlContent);
1371
+ const dependencies = agentConfig.dependencies || {};
1372
+
1373
+ // Copy all dependencies for this agent
1374
+ for (const depType of ['tasks', 'templates', 'checklists', 'workflows', 'utils', 'data']) {
1375
+ const deps = dependencies[depType] || [];
1376
+
1377
+ for (const dep of deps) {
1378
+ const depFileName = dep.endsWith('.md') || dep.endsWith('.yaml') ? dep :
1379
+ (depType === 'templates' ? `${dep}.yaml` : `${dep}.md`);
1380
+ const expansionDepPath = path.join(expansionDotFolder, depType, depFileName);
1381
+
1382
+ // Check if dependency exists in expansion pack
1383
+ if (!(await fileManager.pathExists(expansionDepPath))) {
1384
+ // Try to find it in core
1385
+ const coreDepPath = path.join(resourceLocator.getBmadCorePath(), depType, depFileName);
1386
+
1387
+ if (await fileManager.pathExists(coreDepPath)) {
1388
+ const destDepPath = path.join(expansionDotFolder, depType, depFileName);
1389
+ await fileManager.copyFileWithRootReplacement(coreDepPath, destDepPath, `.${packId}`);
1390
+ console.log(chalk.dim(` Added agent dependency: ${depType}/${depFileName}`));
1391
+ } else {
1392
+ // Try common folder
1393
+ const sourceBase = path.dirname(path.dirname(path.dirname(path.dirname(__filename)))); // Go up to project root
1394
+ const commonDepPath = path.join(sourceBase, 'common', depType, depFileName);
1395
+ if (await fileManager.pathExists(commonDepPath)) {
1396
+ const destDepPath = path.join(expansionDotFolder, depType, depFileName);
1397
+ await fileManager.copyFile(commonDepPath, destDepPath);
1398
+ console.log(chalk.dim(` Added agent dependency from common: ${depType}/${depFileName}`));
1399
+ }
1400
+ }
1401
+ }
1402
+ }
1403
+ }
1404
+ } catch (error) {
1405
+ console.warn(` Warning: Could not parse agent ${agentId} dependencies: ${error.message}`);
1406
+ }
1407
+ }
1408
+ } else {
1409
+ console.warn(chalk.yellow(` Warning: Core agent ${agentId} not found for team ${path.basename(teamFile, '.yaml')}`));
1410
+ }
1411
+ }
1412
+ }
1413
+ } catch (error) {
1414
+ console.warn(` Warning: Could not parse team file ${teamFile}: ${error.message}`);
1415
+ }
1416
+ }
1417
+ }
1418
+
1419
+ getWebBundleInfo(config) {
1420
+ const webBundleType = config.webBundleType || 'all';
1421
+
1422
+ switch (webBundleType) {
1423
+ case 'all':
1424
+ return 'all bundles';
1425
+ case 'agents':
1426
+ return 'individual agents only';
1427
+ case 'teams':
1428
+ return config.selectedWebBundleTeams ?
1429
+ `teams: ${config.selectedWebBundleTeams.join(', ')}` :
1430
+ 'selected teams';
1431
+ case 'custom':
1432
+ const parts = [];
1433
+ if (config.selectedWebBundleTeams && config.selectedWebBundleTeams.length > 0) {
1434
+ parts.push(`teams: ${config.selectedWebBundleTeams.join(', ')}`);
1435
+ }
1436
+ if (config.includeIndividualAgents) {
1437
+ parts.push('individual agents');
1438
+ }
1439
+ return parts.length > 0 ? parts.join(' + ') : 'custom selection';
1440
+ default:
1441
+ return 'selected bundles';
1442
+ }
1443
+ }
1444
+
1445
+ async installWebBundles(webBundlesDirectory, config, spinner) {
1446
+
1447
+ try {
1448
+ // Find the dist directory in the BMad installation
1449
+ const distDir = configLoader.getDistPath();
1450
+
1451
+ if (!(await fileManager.pathExists(distDir))) {
1452
+ console.warn('Web bundles not found. Run "npm run build" to generate them.');
1453
+ return;
1454
+ }
1455
+
1456
+ // Ensure web bundles directory exists
1457
+ await fileManager.ensureDirectory(webBundlesDirectory);
1458
+
1459
+ const webBundleType = config.webBundleType || 'all';
1460
+
1461
+ if (webBundleType === 'all') {
1462
+ // Copy the entire dist directory structure
1463
+ await fileManager.copyDirectory(distDir, webBundlesDirectory);
1464
+ console.log(chalk.green(`✓ Installed all web bundles to: ${webBundlesDirectory}`));
1465
+ } else {
1466
+ let copiedCount = 0;
1467
+
1468
+ // Copy specific selections based on type
1469
+ if (webBundleType === 'agents' || (webBundleType === 'custom' && config.includeIndividualAgents)) {
1470
+ const agentsSource = path.join(distDir, 'agents');
1471
+ const agentsTarget = path.join(webBundlesDirectory, 'agents');
1472
+ if (await fileManager.pathExists(agentsSource)) {
1473
+ await fileManager.copyDirectory(agentsSource, agentsTarget);
1474
+ console.log(chalk.green(`✓ Copied individual agent bundles`));
1475
+ copiedCount += 10; // Approximate count for agents
1476
+ }
1477
+ }
1478
+
1479
+ if (webBundleType === 'teams' || webBundleType === 'custom') {
1480
+ if (config.selectedWebBundleTeams && config.selectedWebBundleTeams.length > 0) {
1481
+ const teamsSource = path.join(distDir, 'teams');
1482
+ const teamsTarget = path.join(webBundlesDirectory, 'teams');
1483
+ await fileManager.ensureDirectory(teamsTarget);
1484
+
1485
+ for (const teamId of config.selectedWebBundleTeams) {
1486
+ const teamFile = `${teamId}.txt`;
1487
+ const sourcePath = path.join(teamsSource, teamFile);
1488
+ const targetPath = path.join(teamsTarget, teamFile);
1489
+
1490
+ if (await fileManager.pathExists(sourcePath)) {
1491
+ await fileManager.copyFile(sourcePath, targetPath);
1492
+ copiedCount++;
1493
+ console.log(chalk.green(`✓ Copied team bundle: ${teamId}`));
1494
+ }
1495
+ }
1496
+ }
1497
+ }
1498
+
1499
+ // Always copy expansion packs if they exist
1500
+ const expansionSource = path.join(distDir, 'expansion-packs');
1501
+ const expansionTarget = path.join(webBundlesDirectory, 'expansion-packs');
1502
+ if (await fileManager.pathExists(expansionSource)) {
1503
+ await fileManager.copyDirectory(expansionSource, expansionTarget);
1504
+ console.log(chalk.green(`✓ Copied expansion pack bundles`));
1505
+ }
1506
+
1507
+ console.log(chalk.green(`✓ Installed ${copiedCount} selected web bundles to: ${webBundlesDirectory}`));
1508
+ }
1509
+ } catch (error) {
1510
+ console.error(`Failed to install web bundles: ${error.message}`);
1511
+ }
1512
+ }
1513
+
1514
+ async copyCommonItems(installDir, targetSubdir, spinner) {
1515
+
1516
+ const fs = require('fs').promises;
1517
+ const sourceBase = path.dirname(path.dirname(path.dirname(path.dirname(__filename)))); // Go up to project root
1518
+ const commonPath = path.join(sourceBase, 'common');
1519
+ const targetPath = path.join(installDir, targetSubdir);
1520
+ const copiedFiles = [];
1521
+
1522
+ // Check if common/ exists
1523
+ if (!(await fileManager.pathExists(commonPath))) {
1524
+ console.warn('Warning: common/ folder not found');
1525
+ return copiedFiles;
1526
+ }
1527
+
1528
+ // Copy all items from common/ to target
1529
+ const commonItems = await resourceLocator.findFiles('**/*', {
1530
+ cwd: commonPath,
1531
+ nodir: true
1532
+ });
1533
+
1534
+ for (const item of commonItems) {
1535
+ const sourcePath = path.join(commonPath, item);
1536
+ const destPath = path.join(targetPath, item);
1537
+
1538
+ // Read the file content
1539
+ const content = await fs.readFile(sourcePath, 'utf8');
1540
+
1541
+ // Replace {root} with the target subdirectory
1542
+ const updatedContent = content.replace(/\{root\}/g, targetSubdir);
1543
+
1544
+ // Ensure directory exists
1545
+ await fileManager.ensureDirectory(path.dirname(destPath));
1546
+
1547
+ // Write the updated content
1548
+ await fs.writeFile(destPath, updatedContent, 'utf8');
1549
+ copiedFiles.push(path.join(targetSubdir, item));
1550
+ }
1551
+
1552
+ console.log(chalk.dim(` Added ${commonItems.length} common utilities`));
1553
+ return copiedFiles;
1554
+ }
1555
+
1556
+ async detectExpansionPacks(installDir) {
1557
+ const expansionPacks = {};
1558
+ const glob = require("glob");
1559
+
1560
+ // Find all dot folders that might be expansion packs
1561
+ const dotFolders = glob.sync(".*", {
1562
+ cwd: installDir,
1563
+ ignore: [".git", ".git/**", ".bmad-core", ".bmad-core/**"],
1564
+ });
1565
+
1566
+ for (const folder of dotFolders) {
1567
+ const folderPath = path.join(installDir, folder);
1568
+ const stats = await fileManager.pathExists(folderPath);
1569
+
1570
+ if (stats) {
1571
+ // Check if it has a manifest
1572
+ const manifestPath = path.join(folderPath, "install-manifest.yaml");
1573
+ if (await fileManager.pathExists(manifestPath)) {
1574
+ const manifest = await fileManager.readExpansionPackManifest(installDir, folder.substring(1));
1575
+ if (manifest) {
1576
+ expansionPacks[folder.substring(1)] = {
1577
+ path: folderPath,
1578
+ manifest: manifest,
1579
+ hasManifest: true
1580
+ };
1581
+ }
1582
+ } else {
1583
+ // Check if it has a config.yaml (expansion pack without manifest)
1584
+ const configPath = path.join(folderPath, "config.yaml");
1585
+ if (await fileManager.pathExists(configPath)) {
1586
+ expansionPacks[folder.substring(1)] = {
1587
+ path: folderPath,
1588
+ manifest: null,
1589
+ hasManifest: false
1590
+ };
1591
+ }
1592
+ }
1593
+ }
1594
+ }
1595
+
1596
+ return expansionPacks;
1597
+ }
1598
+
1599
+ async repairExpansionPack(installDir, packId, pack, integrity, spinner) {
1600
+ spinner.start(`Repairing ${pack.name}...`);
1601
+
1602
+ try {
1603
+ const expansionDotFolder = path.join(installDir, `.${packId}`);
1604
+
1605
+ // Back up modified files
1606
+ if (integrity.modified.length > 0) {
1607
+ spinner.text = "Backing up modified files...";
1608
+ for (const file of integrity.modified) {
1609
+ const filePath = path.join(installDir, file);
1610
+ if (await fileManager.pathExists(filePath)) {
1611
+ const backupPath = await fileManager.backupFile(filePath);
1612
+ console.log(chalk.dim(` Backed up: ${file} → ${path.basename(backupPath)}`));
1613
+ }
1614
+ }
1615
+ }
1616
+
1617
+ // Restore missing and modified files
1618
+ spinner.text = "Restoring files...";
1619
+ const filesToRestore = [...integrity.missing, ...integrity.modified];
1620
+
1621
+ for (const file of filesToRestore) {
1622
+ // Skip the manifest file itself
1623
+ if (file.endsWith('install-manifest.yaml')) continue;
1624
+
1625
+ const relativePath = file.replace(`.${packId}/`, '');
1626
+ const sourcePath = path.join(pack.path, relativePath);
1627
+ const destPath = path.join(installDir, file);
1628
+
1629
+ // Check if this is a common/ file that needs special processing
1630
+ const commonBase = path.dirname(path.dirname(path.dirname(path.dirname(__filename))));
1631
+ const commonSourcePath = path.join(commonBase, 'common', relativePath);
1632
+
1633
+ if (await fileManager.pathExists(commonSourcePath)) {
1634
+ // This is a common/ file - needs template processing
1635
+ const fs = require('fs').promises;
1636
+ const content = await fs.readFile(commonSourcePath, 'utf8');
1637
+ const updatedContent = content.replace(/\{root\}/g, `.${packId}`);
1638
+ await fileManager.ensureDirectory(path.dirname(destPath));
1639
+ await fs.writeFile(destPath, updatedContent, 'utf8');
1640
+ spinner.text = `Restored: ${file}`;
1641
+ } else if (await fileManager.pathExists(sourcePath)) {
1642
+ // Regular file from expansion pack
1643
+ await fileManager.copyFile(sourcePath, destPath);
1644
+ spinner.text = `Restored: ${file}`;
1645
+ } else {
1646
+ console.warn(chalk.yellow(` Warning: Source file not found: ${file}`));
1647
+ }
1648
+ }
1649
+
1650
+ spinner.succeed(`${pack.name} repaired successfully!`);
1651
+
1652
+ // Show summary
1653
+ console.log(chalk.green(`\n✓ ${pack.name} repaired!`));
1654
+ if (integrity.missing.length > 0) {
1655
+ console.log(chalk.green(` Restored ${integrity.missing.length} missing files`));
1656
+ }
1657
+ if (integrity.modified.length > 0) {
1658
+ console.log(chalk.green(` Restored ${integrity.modified.length} modified files (backups created)`));
1659
+ }
1660
+
1661
+ } catch (error) {
1662
+ if (spinner) spinner.fail(`Failed to repair ${pack.name}`);
1663
+ console.error(`Error: ${error.message}`);
1664
+ }
1665
+ }
1666
+
1667
+ compareVersions(v1, v2) {
1668
+ // Simple semver comparison
1669
+ const parts1 = v1.split('.').map(Number);
1670
+ const parts2 = v2.split('.').map(Number);
1671
+
1672
+ for (let i = 0; i < 3; i++) {
1673
+ const part1 = parts1[i] || 0;
1674
+ const part2 = parts2[i] || 0;
1675
+
1676
+ if (part1 > part2) return 1;
1677
+ if (part1 < part2) return -1;
1678
+ }
1679
+
1680
+ return 0;
1681
+ }
1682
+
1683
+ async cleanupLegacyYmlFiles(installDir, spinner) {
1684
+ const glob = require('glob');
1685
+ const fs = require('fs').promises;
1686
+
1687
+ try {
1688
+ // Find all .yml files in the installation directory
1689
+ const ymlFiles = glob.sync('**/*.yml', {
1690
+ cwd: installDir,
1691
+ ignore: ['**/node_modules/**', '**/.git/**']
1692
+ });
1693
+
1694
+ let deletedCount = 0;
1695
+
1696
+ for (const ymlFile of ymlFiles) {
1697
+ // Check if corresponding .yaml file exists
1698
+ const yamlFile = ymlFile.replace(/\.yml$/, '.yaml');
1699
+ const ymlPath = path.join(installDir, ymlFile);
1700
+ const yamlPath = path.join(installDir, yamlFile);
1701
+
1702
+ if (await fileManager.pathExists(yamlPath)) {
1703
+ // .yaml counterpart exists, delete the .yml file
1704
+ await fs.unlink(ymlPath);
1705
+ deletedCount++;
1706
+ console.log(chalk.dim(` Removed legacy: ${ymlFile} (replaced by ${yamlFile})`));
1707
+ }
1708
+ }
1709
+
1710
+ if (deletedCount > 0) {
1711
+ console.log(chalk.green(`✓ Cleaned up ${deletedCount} legacy .yml files`));
1712
+ }
1713
+
1714
+ } catch (error) {
1715
+ console.warn(`Warning: Could not cleanup legacy .yml files: ${error.message}`);
1716
+ }
1717
+ }
1718
+
1719
+ async findInstallation() {
1720
+ // Look for .bmad-core in current directory or parent directories
1721
+ let currentDir = process.cwd();
1722
+
1723
+ while (currentDir !== path.dirname(currentDir)) {
1724
+ const bmadDir = path.join(currentDir, ".bmad-core");
1725
+ const manifestPath = path.join(bmadDir, "install-manifest.yaml");
1726
+
1727
+ if (await fileManager.pathExists(manifestPath)) {
1728
+ return bmadDir;
1729
+ }
1730
+
1731
+ currentDir = path.dirname(currentDir);
1732
+ }
1733
+
1734
+ // Also check if we're inside a .bmad-core directory
1735
+ if (path.basename(process.cwd()) === ".bmad-core") {
1736
+ const manifestPath = path.join(process.cwd(), "install-manifest.yaml");
1737
+ if (await fileManager.pathExists(manifestPath)) {
1738
+ return process.cwd();
1739
+ }
1740
+ }
1741
+
1742
+ return null;
1743
+ }
1744
+ }
1745
+
1746
+ module.exports = new Installer();