moai-adk 0.9.1__py3-none-any.whl → 0.11.0__py3-none-any.whl

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.

Potentially problematic release.


This version of moai-adk might be problematic. Click here for more details.

Files changed (260) hide show
  1. moai_adk/core/project/phase_executor.py +4 -0
  2. moai_adk/core/tags/ci_validator.py +33 -3
  3. moai_adk/core/template_engine.py +6 -2
  4. moai_adk/templates/.git-hooks/pre-push +143 -0
  5. moai_adk/templates/.github/workflows/moai-gitflow.yml +6 -1
  6. moai_adk/templates/.github/workflows/release.yml +6 -2
  7. moai_adk/templates/.github/workflows/tag-validation.yml +57 -8
  8. moai_adk/templates/CLAUDE.md +477 -28
  9. moai_adk/templates/README.md +256 -0
  10. {moai_adk-0.9.1.dist-info → moai_adk-0.11.0.dist-info}/METADATA +740 -90
  11. moai_adk-0.11.0.dist-info/RECORD +77 -0
  12. moai_adk/templates/.claude/agents/alfred/cc-manager.md +0 -316
  13. moai_adk/templates/.claude/agents/alfred/debug-helper.md +0 -208
  14. moai_adk/templates/.claude/agents/alfred/doc-syncer.md +0 -214
  15. moai_adk/templates/.claude/agents/alfred/git-manager.md +0 -406
  16. moai_adk/templates/.claude/agents/alfred/implementation-planner.md +0 -350
  17. moai_adk/templates/.claude/agents/alfred/project-manager.md +0 -273
  18. moai_adk/templates/.claude/agents/alfred/quality-gate.md +0 -343
  19. moai_adk/templates/.claude/agents/alfred/skill-factory.md +0 -865
  20. moai_adk/templates/.claude/agents/alfred/spec-builder.md +0 -287
  21. moai_adk/templates/.claude/agents/alfred/tag-agent.md +0 -287
  22. moai_adk/templates/.claude/agents/alfred/tdd-implementer.md +0 -326
  23. moai_adk/templates/.claude/agents/alfred/trust-checker.md +0 -375
  24. moai_adk/templates/.claude/commands/alfred/0-project.md +0 -1189
  25. moai_adk/templates/.claude/commands/alfred/1-plan.md +0 -728
  26. moai_adk/templates/.claude/commands/alfred/2-run.md +0 -545
  27. moai_adk/templates/.claude/commands/alfred/3-sync.md +0 -683
  28. moai_adk/templates/.claude/commands/alfred/9-feedback.md +0 -149
  29. moai_adk/templates/.claude/hooks/alfred/.moai/cache/version-check.json +0 -9
  30. moai_adk/templates/.claude/hooks/alfred/README.md +0 -343
  31. moai_adk/templates/.claude/hooks/alfred/TROUBLESHOOTING.md +0 -471
  32. moai_adk/templates/.claude/hooks/alfred/alfred_hooks.py +0 -209
  33. moai_adk/templates/.claude/hooks/alfred/core/version_cache.py +0 -198
  34. moai_adk/templates/.claude/hooks/alfred/notification__handle_events.py +0 -102
  35. moai_adk/templates/.claude/hooks/alfred/post_tool__log_changes.py +0 -102
  36. moai_adk/templates/.claude/hooks/alfred/pre_tool__auto_checkpoint.py +0 -108
  37. moai_adk/templates/.claude/hooks/alfred/session_end__cleanup.py +0 -102
  38. moai_adk/templates/.claude/hooks/alfred/session_start__show_project_info.py +0 -102
  39. moai_adk/templates/.claude/hooks/alfred/shared/core/__init__.py +0 -170
  40. moai_adk/templates/.claude/hooks/alfred/shared/core/checkpoint.py +0 -271
  41. moai_adk/templates/.claude/hooks/alfred/shared/core/context.py +0 -67
  42. moai_adk/templates/.claude/hooks/alfred/shared/core/project.py +0 -683
  43. moai_adk/templates/.claude/hooks/alfred/shared/core/tags.py +0 -198
  44. moai_adk/templates/.claude/hooks/alfred/shared/core/version_cache.py +0 -198
  45. moai_adk/templates/.claude/hooks/alfred/shared/handlers/__init__.py +0 -21
  46. moai_adk/templates/.claude/hooks/alfred/shared/handlers/notification.py +0 -25
  47. moai_adk/templates/.claude/hooks/alfred/shared/handlers/session.py +0 -175
  48. moai_adk/templates/.claude/hooks/alfred/shared/handlers/tool.py +0 -90
  49. moai_adk/templates/.claude/hooks/alfred/shared/handlers/user.py +0 -61
  50. moai_adk/templates/.claude/hooks/alfred/stop__handle_interrupt.py +0 -102
  51. moai_adk/templates/.claude/hooks/alfred/subagent_stop__handle_subagent_end.py +0 -102
  52. moai_adk/templates/.claude/hooks/alfred/user_prompt__jit_load_docs.py +0 -120
  53. moai_adk/templates/.claude/output-styles/alfred/agentic-coding.md +0 -640
  54. moai_adk/templates/.claude/output-styles/alfred/moai-adk-learning.md +0 -696
  55. moai_adk/templates/.claude/output-styles/alfred/study-with-alfred.md +0 -474
  56. moai_adk/templates/.claude/settings.json +0 -144
  57. moai_adk/templates/.claude/skills/moai-alfred-ears-authoring/SKILL.md +0 -113
  58. moai_adk/templates/.claude/skills/moai-alfred-ears-authoring/examples.md +0 -29
  59. moai_adk/templates/.claude/skills/moai-alfred-ears-authoring/reference.md +0 -28
  60. moai_adk/templates/.claude/skills/moai-alfred-git-workflow/SKILL.md +0 -122
  61. moai_adk/templates/.claude/skills/moai-alfred-git-workflow/examples.md +0 -29
  62. moai_adk/templates/.claude/skills/moai-alfred-git-workflow/reference.md +0 -29
  63. moai_adk/templates/.claude/skills/moai-alfred-interactive-questions/SKILL.md +0 -237
  64. moai_adk/templates/.claude/skills/moai-alfred-interactive-questions/examples.md +0 -615
  65. moai_adk/templates/.claude/skills/moai-alfred-interactive-questions/reference.md +0 -653
  66. moai_adk/templates/.claude/skills/moai-alfred-language-detection/SKILL.md +0 -113
  67. moai_adk/templates/.claude/skills/moai-alfred-language-detection/examples.md +0 -29
  68. moai_adk/templates/.claude/skills/moai-alfred-language-detection/reference.md +0 -28
  69. moai_adk/templates/.claude/skills/moai-alfred-spec-metadata-validation/SKILL.md +0 -113
  70. moai_adk/templates/.claude/skills/moai-alfred-spec-metadata-validation/examples.md +0 -29
  71. moai_adk/templates/.claude/skills/moai-alfred-spec-metadata-validation/reference.md +0 -28
  72. moai_adk/templates/.claude/skills/moai-alfred-tag-scanning/SKILL.md +0 -113
  73. moai_adk/templates/.claude/skills/moai-alfred-tag-scanning/examples.md +0 -29
  74. moai_adk/templates/.claude/skills/moai-alfred-tag-scanning/reference.md +0 -28
  75. moai_adk/templates/.claude/skills/moai-alfred-trust-validation/SKILL.md +0 -113
  76. moai_adk/templates/.claude/skills/moai-alfred-trust-validation/examples.md +0 -29
  77. moai_adk/templates/.claude/skills/moai-alfred-trust-validation/reference.md +0 -28
  78. moai_adk/templates/.claude/skills/moai-cc-agents/SKILL.md +0 -269
  79. moai_adk/templates/.claude/skills/moai-cc-agents/templates/agent-template.md +0 -32
  80. moai_adk/templates/.claude/skills/moai-cc-claude-md/SKILL.md +0 -298
  81. moai_adk/templates/.claude/skills/moai-cc-claude-md/templates/CLAUDE-template.md +0 -26
  82. moai_adk/templates/.claude/skills/moai-cc-commands/SKILL.md +0 -307
  83. moai_adk/templates/.claude/skills/moai-cc-commands/templates/command-template.md +0 -21
  84. moai_adk/templates/.claude/skills/moai-cc-hooks/SKILL.md +0 -252
  85. moai_adk/templates/.claude/skills/moai-cc-hooks/scripts/pre-bash-check.sh +0 -19
  86. moai_adk/templates/.claude/skills/moai-cc-hooks/scripts/preserve-permissions.sh +0 -19
  87. moai_adk/templates/.claude/skills/moai-cc-hooks/scripts/validate-bash-command.py +0 -24
  88. moai_adk/templates/.claude/skills/moai-cc-mcp-plugins/SKILL.md +0 -199
  89. moai_adk/templates/.claude/skills/moai-cc-mcp-plugins/templates/settings-mcp-template.json +0 -39
  90. moai_adk/templates/.claude/skills/moai-cc-memory/SKILL.md +0 -316
  91. moai_adk/templates/.claude/skills/moai-cc-memory/templates/session-summary-template.md +0 -18
  92. moai_adk/templates/.claude/skills/moai-cc-settings/SKILL.md +0 -263
  93. moai_adk/templates/.claude/skills/moai-cc-settings/templates/settings-complete-template.json +0 -30
  94. moai_adk/templates/.claude/skills/moai-cc-skills/SKILL.md +0 -291
  95. moai_adk/templates/.claude/skills/moai-cc-skills/templates/SKILL-template.md +0 -15
  96. moai_adk/templates/.claude/skills/moai-domain-backend/SKILL.md +0 -290
  97. moai_adk/templates/.claude/skills/moai-domain-backend/examples.md +0 -1633
  98. moai_adk/templates/.claude/skills/moai-domain-backend/reference.md +0 -660
  99. moai_adk/templates/.claude/skills/moai-domain-cli-tool/SKILL.md +0 -123
  100. moai_adk/templates/.claude/skills/moai-domain-cli-tool/examples.md +0 -29
  101. moai_adk/templates/.claude/skills/moai-domain-cli-tool/reference.md +0 -30
  102. moai_adk/templates/.claude/skills/moai-domain-data-science/SKILL.md +0 -123
  103. moai_adk/templates/.claude/skills/moai-domain-data-science/examples.md +0 -29
  104. moai_adk/templates/.claude/skills/moai-domain-data-science/reference.md +0 -30
  105. moai_adk/templates/.claude/skills/moai-domain-database/SKILL.md +0 -123
  106. moai_adk/templates/.claude/skills/moai-domain-database/examples.md +0 -29
  107. moai_adk/templates/.claude/skills/moai-domain-database/reference.md +0 -30
  108. moai_adk/templates/.claude/skills/moai-domain-devops/SKILL.md +0 -124
  109. moai_adk/templates/.claude/skills/moai-domain-devops/examples.md +0 -29
  110. moai_adk/templates/.claude/skills/moai-domain-devops/reference.md +0 -31
  111. moai_adk/templates/.claude/skills/moai-domain-frontend/SKILL.md +0 -124
  112. moai_adk/templates/.claude/skills/moai-domain-frontend/examples.md +0 -29
  113. moai_adk/templates/.claude/skills/moai-domain-frontend/reference.md +0 -31
  114. moai_adk/templates/.claude/skills/moai-domain-ml/SKILL.md +0 -123
  115. moai_adk/templates/.claude/skills/moai-domain-ml/examples.md +0 -29
  116. moai_adk/templates/.claude/skills/moai-domain-ml/reference.md +0 -30
  117. moai_adk/templates/.claude/skills/moai-domain-mobile-app/SKILL.md +0 -123
  118. moai_adk/templates/.claude/skills/moai-domain-mobile-app/examples.md +0 -29
  119. moai_adk/templates/.claude/skills/moai-domain-mobile-app/reference.md +0 -30
  120. moai_adk/templates/.claude/skills/moai-domain-security/SKILL.md +0 -123
  121. moai_adk/templates/.claude/skills/moai-domain-security/examples.md +0 -29
  122. moai_adk/templates/.claude/skills/moai-domain-security/reference.md +0 -30
  123. moai_adk/templates/.claude/skills/moai-domain-web-api/SKILL.md +0 -123
  124. moai_adk/templates/.claude/skills/moai-domain-web-api/examples.md +0 -29
  125. moai_adk/templates/.claude/skills/moai-domain-web-api/reference.md +0 -30
  126. moai_adk/templates/.claude/skills/moai-essentials-debug/SKILL.md +0 -303
  127. moai_adk/templates/.claude/skills/moai-essentials-debug/examples.md +0 -1064
  128. moai_adk/templates/.claude/skills/moai-essentials-debug/reference.md +0 -1047
  129. moai_adk/templates/.claude/skills/moai-essentials-perf/SKILL.md +0 -113
  130. moai_adk/templates/.claude/skills/moai-essentials-perf/examples.md +0 -29
  131. moai_adk/templates/.claude/skills/moai-essentials-perf/reference.md +0 -28
  132. moai_adk/templates/.claude/skills/moai-essentials-refactor/SKILL.md +0 -113
  133. moai_adk/templates/.claude/skills/moai-essentials-refactor/examples.md +0 -29
  134. moai_adk/templates/.claude/skills/moai-essentials-refactor/reference.md +0 -28
  135. moai_adk/templates/.claude/skills/moai-essentials-review/SKILL.md +0 -113
  136. moai_adk/templates/.claude/skills/moai-essentials-review/examples.md +0 -29
  137. moai_adk/templates/.claude/skills/moai-essentials-review/reference.md +0 -28
  138. moai_adk/templates/.claude/skills/moai-foundation-ears/SKILL.md +0 -116
  139. moai_adk/templates/.claude/skills/moai-foundation-ears/examples.md +0 -29
  140. moai_adk/templates/.claude/skills/moai-foundation-ears/reference.md +0 -28
  141. moai_adk/templates/.claude/skills/moai-foundation-git/SKILL.md +0 -122
  142. moai_adk/templates/.claude/skills/moai-foundation-git/examples.md +0 -29
  143. moai_adk/templates/.claude/skills/moai-foundation-git/reference.md +0 -29
  144. moai_adk/templates/.claude/skills/moai-foundation-langs/SKILL.md +0 -113
  145. moai_adk/templates/.claude/skills/moai-foundation-langs/examples.md +0 -29
  146. moai_adk/templates/.claude/skills/moai-foundation-langs/reference.md +0 -28
  147. moai_adk/templates/.claude/skills/moai-foundation-specs/SKILL.md +0 -113
  148. moai_adk/templates/.claude/skills/moai-foundation-specs/examples.md +0 -29
  149. moai_adk/templates/.claude/skills/moai-foundation-specs/reference.md +0 -28
  150. moai_adk/templates/.claude/skills/moai-foundation-tags/SKILL.md +0 -113
  151. moai_adk/templates/.claude/skills/moai-foundation-tags/examples.md +0 -29
  152. moai_adk/templates/.claude/skills/moai-foundation-tags/reference.md +0 -28
  153. moai_adk/templates/.claude/skills/moai-foundation-trust/SKILL.md +0 -307
  154. moai_adk/templates/.claude/skills/moai-foundation-trust/examples.md +0 -0
  155. moai_adk/templates/.claude/skills/moai-foundation-trust/reference.md +0 -1099
  156. moai_adk/templates/.claude/skills/moai-lang-c/SKILL.md +0 -124
  157. moai_adk/templates/.claude/skills/moai-lang-c/examples.md +0 -29
  158. moai_adk/templates/.claude/skills/moai-lang-c/reference.md +0 -31
  159. moai_adk/templates/.claude/skills/moai-lang-cpp/SKILL.md +0 -124
  160. moai_adk/templates/.claude/skills/moai-lang-cpp/examples.md +0 -29
  161. moai_adk/templates/.claude/skills/moai-lang-cpp/reference.md +0 -31
  162. moai_adk/templates/.claude/skills/moai-lang-csharp/SKILL.md +0 -123
  163. moai_adk/templates/.claude/skills/moai-lang-csharp/examples.md +0 -29
  164. moai_adk/templates/.claude/skills/moai-lang-csharp/reference.md +0 -30
  165. moai_adk/templates/.claude/skills/moai-lang-dart/SKILL.md +0 -123
  166. moai_adk/templates/.claude/skills/moai-lang-dart/examples.md +0 -29
  167. moai_adk/templates/.claude/skills/moai-lang-dart/reference.md +0 -30
  168. moai_adk/templates/.claude/skills/moai-lang-go/SKILL.md +0 -124
  169. moai_adk/templates/.claude/skills/moai-lang-go/examples.md +0 -29
  170. moai_adk/templates/.claude/skills/moai-lang-go/reference.md +0 -31
  171. moai_adk/templates/.claude/skills/moai-lang-java/SKILL.md +0 -124
  172. moai_adk/templates/.claude/skills/moai-lang-java/examples.md +0 -29
  173. moai_adk/templates/.claude/skills/moai-lang-java/reference.md +0 -31
  174. moai_adk/templates/.claude/skills/moai-lang-javascript/SKILL.md +0 -125
  175. moai_adk/templates/.claude/skills/moai-lang-javascript/examples.md +0 -29
  176. moai_adk/templates/.claude/skills/moai-lang-javascript/reference.md +0 -32
  177. moai_adk/templates/.claude/skills/moai-lang-kotlin/SKILL.md +0 -124
  178. moai_adk/templates/.claude/skills/moai-lang-kotlin/examples.md +0 -29
  179. moai_adk/templates/.claude/skills/moai-lang-kotlin/reference.md +0 -31
  180. moai_adk/templates/.claude/skills/moai-lang-php/SKILL.md +0 -123
  181. moai_adk/templates/.claude/skills/moai-lang-php/examples.md +0 -29
  182. moai_adk/templates/.claude/skills/moai-lang-php/reference.md +0 -30
  183. moai_adk/templates/.claude/skills/moai-lang-python/SKILL.md +0 -431
  184. moai_adk/templates/.claude/skills/moai-lang-python/examples.md +0 -624
  185. moai_adk/templates/.claude/skills/moai-lang-python/reference.md +0 -316
  186. moai_adk/templates/.claude/skills/moai-lang-r/SKILL.md +0 -123
  187. moai_adk/templates/.claude/skills/moai-lang-r/examples.md +0 -29
  188. moai_adk/templates/.claude/skills/moai-lang-r/reference.md +0 -30
  189. moai_adk/templates/.claude/skills/moai-lang-ruby/SKILL.md +0 -124
  190. moai_adk/templates/.claude/skills/moai-lang-ruby/examples.md +0 -29
  191. moai_adk/templates/.claude/skills/moai-lang-ruby/reference.md +0 -31
  192. moai_adk/templates/.claude/skills/moai-lang-rust/SKILL.md +0 -124
  193. moai_adk/templates/.claude/skills/moai-lang-rust/examples.md +0 -29
  194. moai_adk/templates/.claude/skills/moai-lang-rust/reference.md +0 -31
  195. moai_adk/templates/.claude/skills/moai-lang-scala/SKILL.md +0 -123
  196. moai_adk/templates/.claude/skills/moai-lang-scala/examples.md +0 -29
  197. moai_adk/templates/.claude/skills/moai-lang-scala/reference.md +0 -30
  198. moai_adk/templates/.claude/skills/moai-lang-shell/SKILL.md +0 -123
  199. moai_adk/templates/.claude/skills/moai-lang-shell/examples.md +0 -29
  200. moai_adk/templates/.claude/skills/moai-lang-shell/reference.md +0 -30
  201. moai_adk/templates/.claude/skills/moai-lang-sql/SKILL.md +0 -124
  202. moai_adk/templates/.claude/skills/moai-lang-sql/examples.md +0 -29
  203. moai_adk/templates/.claude/skills/moai-lang-sql/reference.md +0 -31
  204. moai_adk/templates/.claude/skills/moai-lang-swift/SKILL.md +0 -123
  205. moai_adk/templates/.claude/skills/moai-lang-swift/examples.md +0 -29
  206. moai_adk/templates/.claude/skills/moai-lang-swift/reference.md +0 -30
  207. moai_adk/templates/.claude/skills/moai-lang-typescript/SKILL.md +0 -127
  208. moai_adk/templates/.claude/skills/moai-lang-typescript/examples.md +0 -29
  209. moai_adk/templates/.claude/skills/moai-lang-typescript/reference.md +0 -34
  210. moai_adk/templates/.claude/skills/moai-skill-factory/CHECKLIST.md +0 -482
  211. moai_adk/templates/.claude/skills/moai-skill-factory/EXAMPLES.md +0 -278
  212. moai_adk/templates/.claude/skills/moai-skill-factory/INTERACTIVE-DISCOVERY.md +0 -524
  213. moai_adk/templates/.claude/skills/moai-skill-factory/METADATA.md +0 -477
  214. moai_adk/templates/.claude/skills/moai-skill-factory/PARALLEL-ANALYSIS-REPORT.md +0 -429
  215. moai_adk/templates/.claude/skills/moai-skill-factory/PYTHON-VERSION-MATRIX.md +0 -391
  216. moai_adk/templates/.claude/skills/moai-skill-factory/SKILL-FACTORY-WORKFLOW.md +0 -431
  217. moai_adk/templates/.claude/skills/moai-skill-factory/SKILL-UPDATE-ADVISOR.md +0 -577
  218. moai_adk/templates/.claude/skills/moai-skill-factory/SKILL.md +0 -271
  219. moai_adk/templates/.claude/skills/moai-skill-factory/STEP-BY-STEP-GUIDE.md +0 -466
  220. moai_adk/templates/.claude/skills/moai-skill-factory/STRUCTURE.md +0 -583
  221. moai_adk/templates/.claude/skills/moai-skill-factory/WEB-RESEARCH.md +0 -526
  222. moai_adk/templates/.claude/skills/moai-skill-factory/reference.md +0 -465
  223. moai_adk/templates/.claude/skills/moai-skill-factory/scripts/generate-structure.sh +0 -328
  224. moai_adk/templates/.claude/skills/moai-skill-factory/scripts/validate-skill.sh +0 -312
  225. moai_adk/templates/.claude/skills/moai-skill-factory/templates/SKILL_TEMPLATE.md +0 -245
  226. moai_adk/templates/.claude/skills/moai-skill-factory/templates/examples-template.md +0 -285
  227. moai_adk/templates/.claude/skills/moai-skill-factory/templates/reference-template.md +0 -278
  228. moai_adk/templates/.claude/skills/moai-skill-factory/templates/scripts-template.sh +0 -303
  229. moai_adk/templates/.claude/skills/moai-spec-authoring/README.md +0 -137
  230. moai_adk/templates/.claude/skills/moai-spec-authoring/SKILL.md +0 -219
  231. moai_adk/templates/.claude/skills/moai-spec-authoring/examples/validate-spec.sh +0 -161
  232. moai_adk/templates/.claude/skills/moai-spec-authoring/examples.md +0 -541
  233. moai_adk/templates/.claude/skills/moai-spec-authoring/reference.md +0 -622
  234. moai_adk/templates/.github/workflows/tag-report.yml +0 -261
  235. moai_adk/templates/.moai/config.json +0 -113
  236. moai_adk/templates/.moai/docs/quick-issue-creation-guide.md +0 -219
  237. moai_adk/templates/.moai/hooks/install.sh +0 -79
  238. moai_adk/templates/.moai/hooks/pre-commit.sh +0 -66
  239. moai_adk/templates/.moai/memory/CLAUDE-AGENTS-GUIDE.md +0 -208
  240. moai_adk/templates/.moai/memory/CLAUDE-PRACTICES.md +0 -369
  241. moai_adk/templates/.moai/memory/CLAUDE-RULES.md +0 -539
  242. moai_adk/templates/.moai/memory/DEVELOPMENT-GUIDE.md +0 -344
  243. moai_adk/templates/.moai/memory/GITFLOW-PROTECTION-POLICY.md +0 -220
  244. moai_adk/templates/.moai/memory/ISSUE-LABEL-MAPPING.md +0 -150
  245. moai_adk/templates/.moai/memory/SKILLS-DESCRIPTION-POLICY.md +0 -218
  246. moai_adk/templates/.moai/memory/SPEC-METADATA.md +0 -356
  247. moai_adk/templates/.moai/memory/gitflow-protection-policy.md +0 -220
  248. moai_adk/templates/.moai/memory/spec-metadata.md +0 -356
  249. moai_adk/templates/.moai/project/product.md +0 -161
  250. moai_adk/templates/.moai/project/structure.md +0 -156
  251. moai_adk/templates/.moai/project/tech.md +0 -227
  252. moai_adk/templates/src/moai_adk/core/__init__.py +0 -5
  253. moai_adk/templates/src/moai_adk/core/tags/__init__.py +0 -86
  254. moai_adk/templates/src/moai_adk/core/tags/ci_validator.py +0 -433
  255. moai_adk/templates/src/moai_adk/core/tags/cli.py +0 -283
  256. moai_adk/templates/src/moai_adk/core/tags/validator.py +0 -897
  257. moai_adk-0.9.1.dist-info/RECORD +0 -320
  258. {moai_adk-0.9.1.dist-info → moai_adk-0.11.0.dist-info}/WHEEL +0 -0
  259. {moai_adk-0.9.1.dist-info → moai_adk-0.11.0.dist-info}/entry_points.txt +0 -0
  260. {moai_adk-0.9.1.dist-info → moai_adk-0.11.0.dist-info}/licenses/LICENSE +0 -0
@@ -1,261 +0,0 @@
1
- # @CODE:DOC-TAG-004 | Component 4: Automated TAG reporting workflow
2
- name: TAG Report Generation
3
-
4
- on:
5
- # Scheduled: Daily at 09:00 UTC
6
- schedule:
7
- - cron: '0 9 * * *'
8
-
9
- # Event: Push to main/develop
10
- push:
11
- branches:
12
- - main
13
- - develop
14
-
15
- # Manual: Workflow dispatch
16
- workflow_dispatch:
17
- inputs:
18
- output_format:
19
- description: 'Report format (all|inventory|matrix|statistics)'
20
- required: false
21
- default: 'all'
22
-
23
- jobs:
24
- generate-tag-reports:
25
- name: Generate TAG Reports
26
- runs-on: ubuntu-latest
27
-
28
- permissions:
29
- contents: write # Required to commit reports back to repo
30
- pull-requests: write # Required to comment on PRs
31
-
32
- steps:
33
- - name: Checkout repository
34
- uses: actions/checkout@v4
35
- with:
36
- fetch-depth: 0 # Full history for accurate file modification times
37
-
38
- - name: Setup Python
39
- uses: actions/setup-python@v5
40
- with:
41
- python-version: '3.11'
42
- cache: 'pip'
43
-
44
- - name: Install MoAI-ADK
45
- run: |
46
- python -m pip install --upgrade pip
47
- pip install -e .
48
-
49
- - name: Create reports directory
50
- run: |
51
- mkdir -p docs/reports
52
- echo "Reports will be generated in docs/reports/"
53
-
54
- - name: Generate TAG Inventory
55
- run: |
56
- python -c "
57
- from moai_adk.core.tags.reporter import ReportGenerator
58
-
59
- generator = ReportGenerator()
60
- inventory = generator.generate_inventory_report('.')
61
-
62
- with open('docs/reports/tag-inventory.md', 'w') as f:
63
- f.write(inventory)
64
-
65
- print('✅ Generated tag-inventory.md')
66
- "
67
-
68
- - name: Generate TAG Coverage Matrix
69
- run: |
70
- python -c "
71
- from moai_adk.core.tags.reporter import ReportGenerator
72
-
73
- generator = ReportGenerator()
74
- matrix = generator.generate_matrix_report('.')
75
-
76
- with open('docs/reports/tag-matrix.md', 'w') as f:
77
- f.write(matrix)
78
-
79
- print('✅ Generated tag-matrix.md')
80
- "
81
-
82
- - name: Generate TAG Statistics
83
- run: |
84
- python -c "
85
- from moai_adk.core.tags.reporter import ReportGenerator
86
-
87
- generator = ReportGenerator()
88
- stats = generator.generate_statistics_report('.')
89
-
90
- with open('docs/reports/tag-statistics.json', 'w') as f:
91
- f.write(stats)
92
-
93
- print('✅ Generated tag-statistics.json')
94
- "
95
-
96
- - name: Generate combined report
97
- run: |
98
- python -c "
99
- from moai_adk.core.tags.reporter import ReportGenerator
100
- from pathlib import Path
101
- import json
102
-
103
- generator = ReportGenerator()
104
- result = generator.generate_all_reports('.', 'docs/reports')
105
-
106
- if result.success:
107
- print(f'✅ All reports generated successfully')
108
- print(f' - Inventory: {result.inventory_path}')
109
- print(f' - Matrix: {result.matrix_path}')
110
- print(f' - Statistics: {result.statistics_path}')
111
-
112
- # Read statistics for summary
113
- stats = json.loads(result.statistics_path.read_text())
114
- print(f'')
115
- print(f'📊 Summary:')
116
- print(f' - Total TAGs: {stats[\"total_tags\"]}')
117
- print(f' - By Type: SPEC={stats[\"by_type\"].get(\"SPEC\", 0)}, CODE={stats[\"by_type\"].get(\"CODE\", 0)}, TEST={stats[\"by_type\"].get(\"TEST\", 0)}, DOC={stats[\"by_type\"].get(\"DOC\", 0)}')
118
- print(f' - Coverage: {stats[\"coverage\"].get(\"overall_percentage\", 0)}%')
119
- else:
120
- print(f'❌ Report generation failed: {result.error_message}')
121
- exit(1)
122
- "
123
-
124
- - name: Check for changes
125
- id: git_status
126
- run: |
127
- if [ -n "$(git status --porcelain docs/reports/)" ]; then
128
- echo "changes=true" >> $GITHUB_OUTPUT
129
- echo "📝 TAG reports have changed"
130
- else
131
- echo "changes=false" >> $GITHUB_OUTPUT
132
- echo "✅ TAG reports unchanged (no commit needed)"
133
- fi
134
-
135
- - name: Commit reports
136
- if: steps.git_status.outputs.changes == 'true'
137
- run: |
138
- git config --global user.name 'github-actions[bot]'
139
- git config --global user.email 'github-actions[bot]@users.noreply.github.com'
140
- git add docs/reports/
141
- git commit -m "docs(tags): Update TAG reports [automated]
142
-
143
- - Updated tag-inventory.md
144
- - Updated tag-matrix.md
145
- - Updated tag-statistics.json
146
-
147
- Generated by: GitHub Actions workflow (tag-report.yml)
148
- Triggered: ${{ github.event_name }}
149
- Commit: ${{ github.sha }}
150
-
151
- 🤖 Generated with MoAI-ADK TAG Reporting System
152
- "
153
- git push
154
-
155
- - name: Create GitHub Release Notes
156
- if: github.ref == 'refs/heads/main' && steps.git_status.outputs.changes == 'true'
157
- run: |
158
- echo "📊 TAG System Health Report" > report_summary.md
159
- echo "" >> report_summary.md
160
- echo "Generated: $(date -u +'%Y-%m-%d %H:%M:%S UTC')" >> report_summary.md
161
- echo "" >> report_summary.md
162
-
163
- # Extract key metrics from statistics
164
- python -c "
165
- import json
166
- from pathlib import Path
167
-
168
- stats = json.loads(Path('docs/reports/tag-statistics.json').read_text())
169
-
170
- print(f'## Summary')
171
- print(f'')
172
- print(f'- **Total TAGs**: {stats[\"total_tags\"]}')
173
- print(f'- **By Type**:')
174
- print(f' - SPEC: {stats[\"by_type\"].get(\"SPEC\", 0)}')
175
- print(f' - CODE: {stats[\"by_type\"].get(\"CODE\", 0)}')
176
- print(f' - TEST: {stats[\"by_type\"].get(\"TEST\", 0)}')
177
- print(f' - DOC: {stats[\"by_type\"].get(\"DOC\", 0)}')
178
- print(f'')
179
- print(f'## Coverage')
180
- print(f'')
181
- print(f'- **Overall**: {stats[\"coverage\"].get(\"overall_percentage\", 0)}%')
182
- print(f'- **SPEC → CODE**: {stats[\"coverage\"].get(\"spec_to_code\", 0)}%')
183
- print(f'- **CODE → TEST**: {stats[\"coverage\"].get(\"code_to_test\", 0)}%')
184
- print(f'')
185
- print(f'## Issues')
186
- print(f'')
187
- print(f'- **Orphan TAGs**: {stats[\"issues\"].get(\"orphan_count\", 0)}')
188
- print(f'- **Incomplete Chains**: {stats[\"issues\"].get(\"incomplete_chains\", 0)}')
189
- print(f'')
190
- print(f'## Reports')
191
- print(f'')
192
- print(f'- [TAG Inventory](./docs/reports/tag-inventory.md)')
193
- print(f'- [Coverage Matrix](./docs/reports/tag-matrix.md)')
194
- print(f'- [Statistics (JSON)](./docs/reports/tag-statistics.json)')
195
- " >> report_summary.md
196
-
197
- cat report_summary.md
198
-
199
- - name: Upload reports as artifacts
200
- uses: actions/upload-artifact@v4
201
- with:
202
- name: tag-reports-${{ github.sha }}
203
- path: docs/reports/
204
- retention-days: 90
205
-
206
- - name: Post summary to GitHub Actions UI
207
- run: |
208
- echo "## 📊 TAG Report Generation Complete" >> $GITHUB_STEP_SUMMARY
209
- echo "" >> $GITHUB_STEP_SUMMARY
210
-
211
- python -c "
212
- import json
213
- from pathlib import Path
214
-
215
- stats = json.loads(Path('docs/reports/tag-statistics.json').read_text())
216
-
217
- print(f'### Summary')
218
- print(f'')
219
- print(f'| Metric | Value |')
220
- print(f'|--------|-------|')
221
- print(f'| Total TAGs | {stats[\"total_tags\"]} |')
222
- print(f'| SPEC | {stats[\"by_type\"].get(\"SPEC\", 0)} |')
223
- print(f'| CODE | {stats[\"by_type\"].get(\"CODE\", 0)} |')
224
- print(f'| TEST | {stats[\"by_type\"].get(\"TEST\", 0)} |')
225
- print(f'| DOC | {stats[\"by_type\"].get(\"DOC\", 0)} |')
226
- print(f'| Overall Coverage | {stats[\"coverage\"].get(\"overall_percentage\", 0)}% |')
227
- print(f'| Orphan TAGs | {stats[\"issues\"].get(\"orphan_count\", 0)} |')
228
- print(f'| Incomplete Chains | {stats[\"issues\"].get(\"incomplete_chains\", 0)} |')
229
- print(f'')
230
- print(f'### Generated Files')
231
- print(f'')
232
- print(f'- ✅ tag-inventory.md')
233
- print(f'- ✅ tag-matrix.md')
234
- print(f'- ✅ tag-statistics.json')
235
- " >> $GITHUB_STEP_SUMMARY
236
-
237
- - name: Fail workflow if issues detected (optional)
238
- if: always()
239
- run: |
240
- python -c "
241
- import json
242
- from pathlib import Path
243
- import sys
244
-
245
- stats = json.loads(Path('docs/reports/tag-statistics.json').read_text())
246
-
247
- orphan_count = stats['issues'].get('orphan_count', 0)
248
- incomplete_count = stats['issues'].get('incomplete_chains', 0)
249
-
250
- # Optional: Fail workflow if too many issues
251
- # Uncomment to enable strict validation
252
- # if orphan_count > 10 or incomplete_count > 10:
253
- # print(f'❌ Too many TAG issues detected!')
254
- # print(f' Orphans: {orphan_count}')
255
- # print(f' Incomplete: {incomplete_count}')
256
- # sys.exit(1)
257
-
258
- print(f'✅ TAG system health check passed')
259
- print(f' Orphans: {orphan_count}')
260
- print(f' Incomplete: {incomplete_count}')
261
- "
@@ -1,113 +0,0 @@
1
- {
2
- "_meta": {
3
- "@CODE:CONFIG-STRUCTURE-001": "@DOC:JSON-CONFIG-001",
4
- "@SPEC:PROJECT-CONFIG-001": "@SPEC:MOAI-CONFIG-001"
5
- },
6
- "moai": {
7
- "version": "{{MOAI_VERSION}}",
8
- "update_check_frequency": "daily",
9
- "version_check": {
10
- "enabled": true,
11
- "cache_ttl_hours": 24
12
- }
13
- },
14
- "constitution": {
15
- "enforce_tdd": true,
16
- "principles": {
17
- "simplicity": {
18
- "max_projects": 5,
19
- "notes": "Default recommendation. Adjust in .moai/config.json or via SPEC/ADR with documented rationale based on project size."
20
- }
21
- },
22
- "require_tags": true,
23
- "simplicity_threshold": 5,
24
- "test_coverage_target": 85
25
- },
26
- "git_strategy": {
27
- "personal": {
28
- "auto_checkpoint": "event-driven",
29
- "checkpoint_events": [
30
- "delete",
31
- "refactor",
32
- "merge",
33
- "script",
34
- "critical-file"
35
- ],
36
- "checkpoint_type": "local-branch",
37
- "max_checkpoints": 10,
38
- "cleanup_days": 7,
39
- "push_to_remote": false,
40
- "auto_commit": true,
41
- "branch_prefix": "feature/",
42
- "develop_branch": "develop",
43
- "main_branch": "main"
44
- },
45
- "team": {
46
- "auto_pr": true,
47
- "develop_branch": "develop",
48
- "draft_pr": true,
49
- "feature_prefix": "feature/SPEC-",
50
- "main_branch": "main",
51
- "use_gitflow": true
52
- }
53
- },
54
- "pipeline": {
55
- "available_commands": [
56
- "/alfred:0-project",
57
- "/alfred:1-plan",
58
- "/alfred:2-run",
59
- "/alfred:3-sync"
60
- ],
61
- "current_stage": "initialized"
62
- },
63
- "language": {
64
- "conversation_language": "{{CONVERSATION_LANGUAGE}}",
65
- "conversation_language_name": "{{CONVERSATION_LANGUAGE_NAME}}"
66
- },
67
- "project": {
68
- "name": "{{PROJECT_NAME}}",
69
- "description": "{{PROJECT_DESCRIPTION}}",
70
- "mode": "{{PROJECT_MODE}}",
71
- "locale": "{{CONVERSATION_LANGUAGE}}",
72
- "language": "{{CODEBASE_LANGUAGE}}",
73
- "created_at": "{{CREATION_TIMESTAMP}}",
74
- "initialized": true,
75
- "optimized": false
76
- },
77
- "tags": {
78
- "auto_sync": true,
79
- "storage_type": "code_scan",
80
- "categories": [
81
- "REQ",
82
- "DESIGN",
83
- "TASK",
84
- "TEST",
85
- "FEATURE",
86
- "API",
87
- "UI",
88
- "DATA"
89
- ],
90
- "code_scan_policy": {
91
- "no_intermediate_cache": true,
92
- "realtime_validation": true,
93
- "scan_tools": [
94
- "rg",
95
- "grep"
96
- ],
97
- "scan_command": "rg '@TAG' -n",
98
- "philosophy": "The source of truth for TAGs lives in the code itself"
99
- }
100
- },
101
- "github": {
102
- "@CODE:GITHUB-CONFIG-001": "@DOC:GITHUB-TEMPLATES-001",
103
- "templates": {
104
- "enable_trust_5": true,
105
- "enable_tag_system": true,
106
- "enable_alfred_commands": true,
107
- "spec_directory": ".moai/specs",
108
- "docs_directory": ".moai/docs",
109
- "test_directory": "tests",
110
- "notes": "Configure GitHub templates for project customization. When enable_* flags are false, corresponding MoAI-specific sections are omitted from templates."
111
- }
112
- }
113
- }
@@ -1,219 +0,0 @@
1
- # 🎯 Quick Issue Creation Guide
2
-
3
- > **MoAI-ADK v0.7.0+** - Create GitHub Issues instantly with `/alfred:9-feedback` interactive dialog
4
-
5
- ## Overview
6
-
7
- The Quick Issue Creation system allows developers to report bugs, request features, suggest improvements, and ask questions directly to GitHub Issues without leaving their development context.
8
-
9
- **Key Benefit**: Convert problems into tracked GitHub Issues in seconds, maintaining development flow.
10
-
11
- ---
12
-
13
- ## 🚀 Quick Start
14
-
15
- ### Basic Usage
16
-
17
- ```bash
18
- # Report a bug
19
- /alfred:9-help --bug 'Login button not responding on homepage'
20
-
21
- # Request a feature
22
- /alfred:9-help --feature 'Add dark mode theme support'
23
-
24
- # Suggest an improvement
25
- /alfred:9-help --improvement 'Optimize database query in UserService'
26
-
27
- # Ask a question
28
- /alfred:9-help --question 'What is the recommended approach for API versioning?'
29
- ```
30
-
31
- ### What Happens Next
32
-
33
- 1. **Parsing**: Alfred extracts issue type and content
34
- 2. **Priority Selection**: You select issue priority (critical/high/medium/low)
35
- 3. **Issue Creation**: GitHub Issue is created with:
36
- - Formatted title (with emoji and type indicator)
37
- - Your description
38
- - Automatic labels based on type and priority
39
- - Metadata footer
40
- 4. **Confirmation**: You receive the issue URL for immediate sharing
41
-
42
- **Example Output**:
43
- ```
44
- ✅ GitHub Issue #456 created successfully
45
- 📋 Title: 🐛 [BUG] Login button not responding on homepage
46
- 🔴 Priority: High
47
- 🏷️ Labels: bug, reported, priority-high
48
- 🔗 URL: https://github.com/owner/repo/issues/456
49
- ```
50
-
51
- ---
52
-
53
- ## 📋 Issue Types & Labels
54
-
55
- ### 🐛 Bug Reports (`--bug`)
56
-
57
- Use this when you discover a problem or unexpected behavior.
58
-
59
- **Automatic Labels**: `bug`, `reported`
60
-
61
- **Example**:
62
- ```bash
63
- /alfred:9-help --bug 'Payment form crashes when credit card has < 4 digits'
64
- ```
65
-
66
- ---
67
-
68
- ### ✨ Feature Requests (`--feature`)
69
-
70
- Use this to propose new functionality.
71
-
72
- **Automatic Labels**: `feature-request`, `enhancement`
73
-
74
- **Example**:
75
- ```bash
76
- /alfred:9-help --feature 'Add webhook support for payment notifications'
77
- ```
78
-
79
- ---
80
-
81
- ### ⚡ Improvement Suggestions (`--improvement`)
82
-
83
- Use this to suggest enhancements to existing features.
84
-
85
- **Automatic Labels**: `improvement`, `enhancement`
86
-
87
- **Example**:
88
- ```bash
89
- /alfred:9-help --improvement 'Reduce database queries in checkout process by 50%'
90
- ```
91
-
92
- ---
93
-
94
- ### ❓ Questions & Discussions (`--question`)
95
-
96
- Use this to ask questions or start discussions.
97
-
98
- **Automatic Labels**: `question`, `help-wanted`
99
-
100
- **Example**:
101
- ```bash
102
- /alfred:9-help --question 'Should we migrate from Sequelize to Prisma ORM?'
103
- ```
104
-
105
- ---
106
-
107
- ## 🎯 Priority Levels
108
-
109
- When you create an issue, you'll be prompted to select a priority:
110
-
111
- | Level | Emoji | Label | When to Use |
112
- |-------|-------|-------|------------|
113
- | 🔴 Critical | 🔴 | `priority-critical` | System down, data loss risk, security breach |
114
- | 🟠 High | 🟠 | `priority-high` | Major feature broken, significant impact |
115
- | 🟡 Medium | 🟡 | `priority-medium` | Normal bugs, typical features, default |
116
- | 🟢 Low | 🟢 | `priority-low` | Minor issues, nice-to-have features |
117
-
118
- ---
119
-
120
- ## 💡 Real-World Examples
121
-
122
- ### Example 1: Emergency Bug Report
123
-
124
- **Scenario**: During production support, you find that users cannot reset their passwords.
125
-
126
- ```bash
127
- /alfred:9-help --bug 'Password reset email not being sent after clicking "Forgot Password"'
128
- ```
129
-
130
- **Result**: Issue #234 created and visible to team immediately with critical priority.
131
-
132
- ### Example 2: Feature Request from Code Review
133
-
134
- **Scenario**: During code review, you think of a feature that would improve the codebase.
135
-
136
- ```bash
137
- /alfred:9-help --feature 'Add request rate limiting middleware to prevent abuse'
138
- ```
139
-
140
- **Result**: Issue #235 created for backlog planning.
141
-
142
- ### Example 3: Performance Improvement Suggestion
143
-
144
- **Scenario**: You notice slow database queries in the user service.
145
-
146
- ```bash
147
- /alfred:9-help --improvement 'Add database index on users.email for faster lookups'
148
- ```
149
-
150
- **Result**: Issue #236 created for technical debt backlog.
151
-
152
- ### Example 4: Architecture Question
153
-
154
- **Scenario**: You're uncertain about the best approach for API design.
155
-
156
- ```bash
157
- /alfred:9-help --question 'Should we use REST or GraphQL for the new mobile API?'
158
- ```
159
-
160
- **Result**: Issue #237 created for team discussion.
161
-
162
- ---
163
-
164
- ## 🔧 Prerequisites
165
-
166
- ### Required
167
-
168
- 1. **GitHub CLI installed**
169
- ```bash
170
- # macOS
171
- brew install gh
172
-
173
- # Ubuntu/Debian
174
- sudo apt install gh
175
-
176
- # Or visit: https://cli.github.com
177
- ```
178
-
179
- 2. **Authenticated with GitHub**
180
- ```bash
181
- gh auth login
182
- ```
183
-
184
- 3. **Git repository initialized**
185
- ```bash
186
- git init
187
- git remote add origin https://github.com/owner/repo.git
188
- ```
189
-
190
- ---
191
-
192
- ## 🔄 Related Commands
193
-
194
- | Command | Purpose |
195
- |---------|---------|
196
- | `/alfred:0-project` | Initialize project |
197
- | `/alfred:1-plan` | Create SPEC documents |
198
- | `/alfred:2-run` | Implement features |
199
- | `/alfred:3-sync` | Sync documentation |
200
- | `/alfred:9-help` | **Create issues (this command)** |
201
-
202
- ---
203
-
204
- ## ✨ Summary
205
-
206
- The `/alfred:9-help` command enables:
207
-
208
- - ✅ **Fast issue creation** - Seconds, not minutes
209
- - ✅ **Standardized format** - Consistent labels and metadata
210
- - ✅ **Priority management** - Clear issue prioritization
211
- - ✅ **Team visibility** - Issues immediately visible and discussable
212
- - ✅ **Workflow integration** - Works with MoAI-ADK specs and planning
213
-
214
- **Start using it now**:
215
- ```bash
216
- /alfred:9-help --bug 'Describe the issue you just found'
217
- ```
218
-
219
- Happy issue reporting! 🎉
@@ -1,79 +0,0 @@
1
- #!/bin/bash
2
- # @CODE:DOC-TAG-004 | Component 1: Pre-commit hook installer
3
- #
4
- # This script installs the TAG validation pre-commit hook into .git/hooks/
5
- #
6
- # Usage:
7
- # ./install.sh # Install hook
8
- # ./install.sh --uninstall # Remove hook
9
-
10
- set -e
11
-
12
- # Colors
13
- GREEN='\033[0;32m'
14
- YELLOW='\033[1;33m'
15
- RED='\033[0;31m'
16
- NC='\033[0m'
17
-
18
- # Get repository root
19
- REPO_ROOT=$(git rev-parse --show-toplevel 2>/dev/null || echo ".")
20
- HOOK_SOURCE="${REPO_ROOT}/.moai/hooks/pre-commit.sh"
21
- HOOK_TARGET="${REPO_ROOT}/.git/hooks/pre-commit"
22
-
23
- # Function to install hook
24
- install_hook() {
25
- echo "🔧 Installing TAG validation pre-commit hook..."
26
-
27
- # Check if source exists
28
- if [ ! -f "$HOOK_SOURCE" ]; then
29
- echo -e "${RED}Error: Hook source not found at $HOOK_SOURCE${NC}"
30
- exit 1
31
- fi
32
-
33
- # Check if target already exists
34
- if [ -f "$HOOK_TARGET" ]; then
35
- echo -e "${YELLOW}Warning: Pre-commit hook already exists.${NC}"
36
- echo "Backing up existing hook to ${HOOK_TARGET}.backup"
37
- cp "$HOOK_TARGET" "${HOOK_TARGET}.backup"
38
- fi
39
-
40
- # Create .git/hooks directory if it doesn't exist
41
- mkdir -p "$(dirname "$HOOK_TARGET")"
42
-
43
- # Copy hook
44
- cp "$HOOK_SOURCE" "$HOOK_TARGET"
45
- chmod +x "$HOOK_TARGET"
46
-
47
- echo -e "${GREEN}✓ Pre-commit hook installed successfully!${NC}"
48
- echo ""
49
- echo "The hook will now validate TAG annotations on every commit."
50
- echo ""
51
- echo "To uninstall: $0 --uninstall"
52
- }
53
-
54
- # Function to uninstall hook
55
- uninstall_hook() {
56
- echo "🔧 Uninstalling TAG validation pre-commit hook..."
57
-
58
- if [ ! -f "$HOOK_TARGET" ]; then
59
- echo -e "${YELLOW}No pre-commit hook installed.${NC}"
60
- exit 0
61
- fi
62
-
63
- # Check if backup exists
64
- if [ -f "${HOOK_TARGET}.backup" ]; then
65
- echo "Restoring backup..."
66
- mv "${HOOK_TARGET}.backup" "$HOOK_TARGET"
67
- echo -e "${GREEN}✓ Backup restored.${NC}"
68
- else
69
- rm "$HOOK_TARGET"
70
- echo -e "${GREEN}✓ Pre-commit hook removed.${NC}"
71
- fi
72
- }
73
-
74
- # Parse command line arguments
75
- if [ "$1" = "--uninstall" ]; then
76
- uninstall_hook
77
- else
78
- install_hook
79
- fi