@elsikora/commitizen-plugin-commitlint-ai 2.0.0-dev.1 → 2.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (336) hide show
  1. package/README.md +71 -58
  2. package/dist/cjs/application/constant/config-file-directory.constant.d.ts +0 -1
  3. package/dist/cjs/application/constant/config-module-name.constant.d.ts +0 -1
  4. package/dist/cjs/application/constant/index.d.ts +2 -3
  5. package/dist/cjs/application/index.d.ts +2 -3
  6. package/dist/cjs/application/interface/cli-interface-service-select-options.interface.d.ts +0 -1
  7. package/dist/cjs/application/interface/cli-interface-service.interface.d.ts +1 -2
  8. package/dist/cjs/application/interface/command-service.interface.d.ts +0 -1
  9. package/dist/cjs/application/interface/commit-repository.interface.d.ts +1 -2
  10. package/dist/cjs/application/interface/commit-validator.interface.d.ts +2 -3
  11. package/dist/cjs/application/interface/config-service.interface.d.ts +2 -3
  12. package/dist/cjs/application/interface/config.interface.d.ts +2 -3
  13. package/dist/cjs/application/interface/file-system-service.interface.d.ts +0 -1
  14. package/dist/cjs/application/interface/index.d.ts +9 -10
  15. package/dist/cjs/application/interface/llm-service.interface.d.ts +2 -3
  16. package/dist/cjs/application/use-case/configure-llm.use-case.d.ts +11 -11
  17. package/dist/cjs/application/use-case/configure-llm.use-case.js +25 -19
  18. package/dist/cjs/application/use-case/configure-llm.use-case.js.map +1 -1
  19. package/dist/cjs/application/use-case/generate-commit-message.use-case.d.ts +8 -9
  20. package/dist/cjs/application/use-case/generate-commit-message.use-case.js +5 -5
  21. package/dist/cjs/application/use-case/index.d.ts +4 -5
  22. package/dist/cjs/application/use-case/manual-commit.use-case.d.ts +5 -6
  23. package/dist/cjs/application/use-case/manual-commit.use-case.js +4 -2
  24. package/dist/cjs/application/use-case/manual-commit.use-case.js.map +1 -1
  25. package/dist/cjs/application/use-case/validate-commit-message.use-case.d.ts +11 -12
  26. package/dist/cjs/application/use-case/validate-commit-message.use-case.js +9 -8
  27. package/dist/cjs/application/use-case/validate-commit-message.use-case.js.map +1 -1
  28. package/dist/cjs/domain/constant/index.d.ts +1 -2
  29. package/dist/cjs/domain/constant/numeric.constant.d.ts +0 -1
  30. package/dist/cjs/domain/entity/commit-message.entity.d.ts +19 -7
  31. package/dist/cjs/domain/entity/commit-message.entity.js +19 -4
  32. package/dist/cjs/domain/entity/commit-message.entity.js.map +1 -1
  33. package/dist/cjs/domain/entity/index.d.ts +2 -3
  34. package/dist/cjs/domain/entity/llm-configuration.entity.d.ts +25 -18
  35. package/dist/cjs/domain/entity/llm-configuration.entity.js +27 -16
  36. package/dist/cjs/domain/entity/llm-configuration.entity.js.map +1 -1
  37. package/dist/cjs/domain/enum/anthropic-model.enum.d.ts +0 -1
  38. package/dist/cjs/domain/enum/aws-bedrock-model.enum.d.ts +0 -1
  39. package/dist/cjs/domain/enum/azure-openai-model.enum.d.ts +0 -1
  40. package/dist/cjs/domain/enum/commit-mode.enum.d.ts +0 -1
  41. package/dist/cjs/domain/enum/google-model.enum.d.ts +0 -1
  42. package/dist/cjs/domain/enum/index.d.ts +9 -10
  43. package/dist/cjs/domain/enum/llm-provider.enum.d.ts +0 -1
  44. package/dist/cjs/domain/enum/log-level.enum.d.ts +0 -1
  45. package/dist/cjs/domain/enum/ollama-model.enum.d.ts +0 -1
  46. package/dist/cjs/domain/enum/openai-model.enum.d.ts +0 -1
  47. package/dist/cjs/domain/index.d.ts +3 -4
  48. package/dist/cjs/domain/value-object/api-key.value-object.d.ts +5 -4
  49. package/dist/cjs/domain/value-object/api-key.value-object.js +5 -3
  50. package/dist/cjs/domain/value-object/api-key.value-object.js.map +1 -1
  51. package/dist/cjs/domain/value-object/commit-body.value-object.d.ts +7 -1
  52. package/dist/cjs/domain/value-object/commit-body.value-object.js +7 -0
  53. package/dist/cjs/domain/value-object/commit-body.value-object.js.map +1 -1
  54. package/dist/cjs/domain/value-object/commit-header.value-object.d.ts +6 -1
  55. package/dist/cjs/domain/value-object/commit-header.value-object.js +6 -0
  56. package/dist/cjs/domain/value-object/commit-header.value-object.js.map +1 -1
  57. package/dist/cjs/domain/value-object/index.d.ts +3 -4
  58. package/dist/cjs/index.d.ts +15 -4
  59. package/dist/cjs/index.js +17 -3
  60. package/dist/cjs/index.js.map +1 -1
  61. package/dist/cjs/infrastructure/commit-validator/commitlint-validator.service.d.ts +15 -16
  62. package/dist/cjs/infrastructure/commit-validator/commitlint-validator.service.js +13 -13
  63. package/dist/cjs/infrastructure/commit-validator/commitlint-validator.service.js.map +1 -1
  64. package/dist/cjs/infrastructure/commit-validator/index.d.ts +1 -2
  65. package/dist/cjs/infrastructure/di/container.d.ts +1 -2
  66. package/dist/cjs/infrastructure/di/container.js +1 -1
  67. package/dist/cjs/infrastructure/di/index.d.ts +1 -2
  68. package/dist/cjs/infrastructure/git/git-commit.repository.d.ts +9 -10
  69. package/dist/cjs/infrastructure/git/git-commit.repository.js +6 -6
  70. package/dist/cjs/infrastructure/git/index.d.ts +1 -2
  71. package/dist/cjs/infrastructure/index.d.ts +4 -5
  72. package/dist/cjs/infrastructure/llm/anthropic-llm.service.d.ts +14 -15
  73. package/dist/cjs/infrastructure/llm/anthropic-llm.service.js +25 -12
  74. package/dist/cjs/infrastructure/llm/anthropic-llm.service.js.map +1 -1
  75. package/dist/cjs/infrastructure/llm/aws-bedrock-llm.service.d.ts +23 -24
  76. package/dist/cjs/infrastructure/llm/aws-bedrock-llm.service.js +44 -35
  77. package/dist/cjs/infrastructure/llm/aws-bedrock-llm.service.js.map +1 -1
  78. package/dist/cjs/infrastructure/llm/azure-openai-llm.service.d.ts +16 -17
  79. package/dist/cjs/infrastructure/llm/azure-openai-llm.service.js +29 -16
  80. package/dist/cjs/infrastructure/llm/azure-openai-llm.service.js.map +1 -1
  81. package/dist/cjs/infrastructure/llm/google-llm.service.d.ts +16 -17
  82. package/dist/cjs/infrastructure/llm/google-llm.service.js +27 -14
  83. package/dist/cjs/infrastructure/llm/google-llm.service.js.map +1 -1
  84. package/dist/cjs/infrastructure/llm/index.d.ts +6 -7
  85. package/dist/cjs/infrastructure/llm/ollama-llm.service.d.ts +16 -17
  86. package/dist/cjs/infrastructure/llm/ollama-llm.service.js +39 -21
  87. package/dist/cjs/infrastructure/llm/ollama-llm.service.js.map +1 -1
  88. package/dist/cjs/infrastructure/llm/openai-llm.service.d.ts +16 -17
  89. package/dist/cjs/infrastructure/llm/openai-llm.service.js +27 -14
  90. package/dist/cjs/infrastructure/llm/openai-llm.service.js.map +1 -1
  91. package/dist/cjs/infrastructure/service/cosmic-config.service.d.ts +20 -19
  92. package/dist/cjs/infrastructure/service/cosmic-config.service.js +17 -15
  93. package/dist/cjs/infrastructure/service/cosmic-config.service.js.map +1 -1
  94. package/dist/cjs/infrastructure/service/index.d.ts +4 -5
  95. package/dist/cjs/infrastructure/service/node-command.service.d.ts +14 -13
  96. package/dist/cjs/infrastructure/service/node-command.service.js +12 -10
  97. package/dist/cjs/infrastructure/service/node-command.service.js.map +1 -1
  98. package/dist/cjs/infrastructure/service/node-file-system.service.d.ts +22 -23
  99. package/dist/cjs/infrastructure/service/node-file-system.service.js +21 -21
  100. package/dist/cjs/infrastructure/service/prompts-cli-interface.service.d.ts +39 -37
  101. package/dist/cjs/infrastructure/service/prompts-cli-interface.service.js +37 -34
  102. package/dist/cjs/infrastructure/service/prompts-cli-interface.service.js.map +1 -1
  103. package/dist/cjs/presentation/commitizen.adapter.d.ts +7 -3
  104. package/dist/cjs/presentation/commitizen.adapter.js +23 -11
  105. package/dist/cjs/presentation/commitizen.adapter.js.map +1 -1
  106. package/dist/cjs/presentation/index.d.ts +1 -2
  107. package/dist/esm/application/constant/config-file-directory.constant.d.ts +0 -1
  108. package/dist/esm/application/constant/config-module-name.constant.d.ts +0 -1
  109. package/dist/esm/application/constant/index.d.ts +2 -3
  110. package/dist/esm/application/index.d.ts +2 -3
  111. package/dist/esm/application/interface/cli-interface-service-select-options.interface.d.ts +0 -1
  112. package/dist/esm/application/interface/cli-interface-service.interface.d.ts +1 -2
  113. package/dist/esm/application/interface/command-service.interface.d.ts +0 -1
  114. package/dist/esm/application/interface/commit-repository.interface.d.ts +1 -2
  115. package/dist/esm/application/interface/commit-validator.interface.d.ts +2 -3
  116. package/dist/esm/application/interface/config-service.interface.d.ts +2 -3
  117. package/dist/esm/application/interface/config.interface.d.ts +2 -3
  118. package/dist/esm/application/interface/file-system-service.interface.d.ts +0 -1
  119. package/dist/esm/application/interface/index.d.ts +9 -10
  120. package/dist/esm/application/interface/llm-service.interface.d.ts +2 -3
  121. package/dist/esm/application/use-case/configure-llm.use-case.d.ts +11 -11
  122. package/dist/esm/application/use-case/configure-llm.use-case.js +25 -19
  123. package/dist/esm/application/use-case/configure-llm.use-case.js.map +1 -1
  124. package/dist/esm/application/use-case/generate-commit-message.use-case.d.ts +8 -9
  125. package/dist/esm/application/use-case/generate-commit-message.use-case.js +5 -5
  126. package/dist/esm/application/use-case/index.d.ts +4 -5
  127. package/dist/esm/application/use-case/manual-commit.use-case.d.ts +5 -6
  128. package/dist/esm/application/use-case/manual-commit.use-case.js +4 -2
  129. package/dist/esm/application/use-case/manual-commit.use-case.js.map +1 -1
  130. package/dist/esm/application/use-case/validate-commit-message.use-case.d.ts +11 -12
  131. package/dist/esm/application/use-case/validate-commit-message.use-case.js +9 -8
  132. package/dist/esm/application/use-case/validate-commit-message.use-case.js.map +1 -1
  133. package/dist/esm/domain/constant/index.d.ts +1 -2
  134. package/dist/esm/domain/constant/numeric.constant.d.ts +0 -1
  135. package/dist/esm/domain/entity/commit-message.entity.d.ts +19 -7
  136. package/dist/esm/domain/entity/commit-message.entity.js +19 -4
  137. package/dist/esm/domain/entity/commit-message.entity.js.map +1 -1
  138. package/dist/esm/domain/entity/index.d.ts +2 -3
  139. package/dist/esm/domain/entity/llm-configuration.entity.d.ts +25 -18
  140. package/dist/esm/domain/entity/llm-configuration.entity.js +27 -16
  141. package/dist/esm/domain/entity/llm-configuration.entity.js.map +1 -1
  142. package/dist/esm/domain/enum/anthropic-model.enum.d.ts +0 -1
  143. package/dist/esm/domain/enum/aws-bedrock-model.enum.d.ts +0 -1
  144. package/dist/esm/domain/enum/azure-openai-model.enum.d.ts +0 -1
  145. package/dist/esm/domain/enum/commit-mode.enum.d.ts +0 -1
  146. package/dist/esm/domain/enum/google-model.enum.d.ts +0 -1
  147. package/dist/esm/domain/enum/index.d.ts +9 -10
  148. package/dist/esm/domain/enum/llm-provider.enum.d.ts +0 -1
  149. package/dist/esm/domain/enum/log-level.enum.d.ts +0 -1
  150. package/dist/esm/domain/enum/ollama-model.enum.d.ts +0 -1
  151. package/dist/esm/domain/enum/openai-model.enum.d.ts +0 -1
  152. package/dist/esm/domain/index.d.ts +3 -4
  153. package/dist/esm/domain/value-object/api-key.value-object.d.ts +5 -4
  154. package/dist/esm/domain/value-object/api-key.value-object.js +5 -3
  155. package/dist/esm/domain/value-object/api-key.value-object.js.map +1 -1
  156. package/dist/esm/domain/value-object/commit-body.value-object.d.ts +7 -1
  157. package/dist/esm/domain/value-object/commit-body.value-object.js +7 -0
  158. package/dist/esm/domain/value-object/commit-body.value-object.js.map +1 -1
  159. package/dist/esm/domain/value-object/commit-header.value-object.d.ts +6 -1
  160. package/dist/esm/domain/value-object/commit-header.value-object.js +6 -0
  161. package/dist/esm/domain/value-object/commit-header.value-object.js.map +1 -1
  162. package/dist/esm/domain/value-object/index.d.ts +3 -4
  163. package/dist/esm/index.d.ts +15 -4
  164. package/dist/esm/index.js +15 -4
  165. package/dist/esm/index.js.map +1 -1
  166. package/dist/esm/infrastructure/commit-validator/commitlint-validator.service.d.ts +15 -16
  167. package/dist/esm/infrastructure/commit-validator/commitlint-validator.service.js +13 -13
  168. package/dist/esm/infrastructure/commit-validator/commitlint-validator.service.js.map +1 -1
  169. package/dist/esm/infrastructure/commit-validator/index.d.ts +1 -2
  170. package/dist/esm/infrastructure/di/container.d.ts +1 -2
  171. package/dist/esm/infrastructure/di/container.js +1 -1
  172. package/dist/esm/infrastructure/di/index.d.ts +1 -2
  173. package/dist/esm/infrastructure/git/git-commit.repository.d.ts +9 -10
  174. package/dist/esm/infrastructure/git/git-commit.repository.js +6 -6
  175. package/dist/esm/infrastructure/git/index.d.ts +1 -2
  176. package/dist/esm/infrastructure/index.d.ts +4 -5
  177. package/dist/esm/infrastructure/llm/anthropic-llm.service.d.ts +14 -15
  178. package/dist/esm/infrastructure/llm/anthropic-llm.service.js +25 -12
  179. package/dist/esm/infrastructure/llm/anthropic-llm.service.js.map +1 -1
  180. package/dist/esm/infrastructure/llm/aws-bedrock-llm.service.d.ts +23 -24
  181. package/dist/esm/infrastructure/llm/aws-bedrock-llm.service.js +37 -28
  182. package/dist/esm/infrastructure/llm/aws-bedrock-llm.service.js.map +1 -1
  183. package/dist/esm/infrastructure/llm/azure-openai-llm.service.d.ts +16 -17
  184. package/dist/esm/infrastructure/llm/azure-openai-llm.service.js +29 -16
  185. package/dist/esm/infrastructure/llm/azure-openai-llm.service.js.map +1 -1
  186. package/dist/esm/infrastructure/llm/google-llm.service.d.ts +16 -17
  187. package/dist/esm/infrastructure/llm/google-llm.service.js +27 -14
  188. package/dist/esm/infrastructure/llm/google-llm.service.js.map +1 -1
  189. package/dist/esm/infrastructure/llm/index.d.ts +6 -7
  190. package/dist/esm/infrastructure/llm/ollama-llm.service.d.ts +16 -17
  191. package/dist/esm/infrastructure/llm/ollama-llm.service.js +39 -21
  192. package/dist/esm/infrastructure/llm/ollama-llm.service.js.map +1 -1
  193. package/dist/esm/infrastructure/llm/openai-llm.service.d.ts +16 -17
  194. package/dist/esm/infrastructure/llm/openai-llm.service.js +27 -14
  195. package/dist/esm/infrastructure/llm/openai-llm.service.js.map +1 -1
  196. package/dist/esm/infrastructure/service/cosmic-config.service.d.ts +20 -19
  197. package/dist/esm/infrastructure/service/cosmic-config.service.js +17 -15
  198. package/dist/esm/infrastructure/service/cosmic-config.service.js.map +1 -1
  199. package/dist/esm/infrastructure/service/index.d.ts +4 -5
  200. package/dist/esm/infrastructure/service/node-command.service.d.ts +14 -13
  201. package/dist/esm/infrastructure/service/node-command.service.js +12 -10
  202. package/dist/esm/infrastructure/service/node-command.service.js.map +1 -1
  203. package/dist/esm/infrastructure/service/node-file-system.service.d.ts +22 -23
  204. package/dist/esm/infrastructure/service/node-file-system.service.js +21 -21
  205. package/dist/esm/infrastructure/service/prompts-cli-interface.service.d.ts +39 -37
  206. package/dist/esm/infrastructure/service/prompts-cli-interface.service.js +37 -34
  207. package/dist/esm/infrastructure/service/prompts-cli-interface.service.js.map +1 -1
  208. package/dist/esm/package.json +19 -0
  209. package/dist/esm/presentation/commitizen.adapter.d.ts +7 -3
  210. package/dist/esm/presentation/commitizen.adapter.js +23 -11
  211. package/dist/esm/presentation/commitizen.adapter.js.map +1 -1
  212. package/dist/esm/presentation/index.d.ts +1 -2
  213. package/package.json +11 -3
  214. package/dist/cjs/application/constant/config-file-directory.constant.d.ts.map +0 -1
  215. package/dist/cjs/application/constant/config-module-name.constant.d.ts.map +0 -1
  216. package/dist/cjs/application/constant/index.d.ts.map +0 -1
  217. package/dist/cjs/application/index.d.ts.map +0 -1
  218. package/dist/cjs/application/interface/cli-interface-service-select-options.interface.d.ts.map +0 -1
  219. package/dist/cjs/application/interface/cli-interface-service.interface.d.ts.map +0 -1
  220. package/dist/cjs/application/interface/command-service.interface.d.ts.map +0 -1
  221. package/dist/cjs/application/interface/commit-repository.interface.d.ts.map +0 -1
  222. package/dist/cjs/application/interface/commit-validator.interface.d.ts.map +0 -1
  223. package/dist/cjs/application/interface/config-service.interface.d.ts.map +0 -1
  224. package/dist/cjs/application/interface/config.interface.d.ts.map +0 -1
  225. package/dist/cjs/application/interface/file-system-service.interface.d.ts.map +0 -1
  226. package/dist/cjs/application/interface/index.d.ts.map +0 -1
  227. package/dist/cjs/application/interface/llm-service.interface.d.ts.map +0 -1
  228. package/dist/cjs/application/use-case/configure-llm.use-case.d.ts.map +0 -1
  229. package/dist/cjs/application/use-case/generate-commit-message.use-case.d.ts.map +0 -1
  230. package/dist/cjs/application/use-case/index.d.ts.map +0 -1
  231. package/dist/cjs/application/use-case/manual-commit.use-case.d.ts.map +0 -1
  232. package/dist/cjs/application/use-case/validate-commit-message.use-case.d.ts.map +0 -1
  233. package/dist/cjs/domain/constant/index.d.ts.map +0 -1
  234. package/dist/cjs/domain/constant/numeric.constant.d.ts.map +0 -1
  235. package/dist/cjs/domain/entity/commit-message.entity.d.ts.map +0 -1
  236. package/dist/cjs/domain/entity/index.d.ts.map +0 -1
  237. package/dist/cjs/domain/entity/llm-configuration.entity.d.ts.map +0 -1
  238. package/dist/cjs/domain/enum/anthropic-model.enum.d.ts.map +0 -1
  239. package/dist/cjs/domain/enum/aws-bedrock-model.enum.d.ts.map +0 -1
  240. package/dist/cjs/domain/enum/azure-openai-model.enum.d.ts.map +0 -1
  241. package/dist/cjs/domain/enum/commit-mode.enum.d.ts.map +0 -1
  242. package/dist/cjs/domain/enum/google-model.enum.d.ts.map +0 -1
  243. package/dist/cjs/domain/enum/index.d.ts.map +0 -1
  244. package/dist/cjs/domain/enum/llm-provider.enum.d.ts.map +0 -1
  245. package/dist/cjs/domain/enum/log-level.enum.d.ts.map +0 -1
  246. package/dist/cjs/domain/enum/ollama-model.enum.d.ts.map +0 -1
  247. package/dist/cjs/domain/enum/openai-model.enum.d.ts.map +0 -1
  248. package/dist/cjs/domain/index.d.ts.map +0 -1
  249. package/dist/cjs/domain/value-object/api-key.value-object.d.ts.map +0 -1
  250. package/dist/cjs/domain/value-object/commit-body.value-object.d.ts.map +0 -1
  251. package/dist/cjs/domain/value-object/commit-header.value-object.d.ts.map +0 -1
  252. package/dist/cjs/domain/value-object/index.d.ts.map +0 -1
  253. package/dist/cjs/index.d.ts.map +0 -1
  254. package/dist/cjs/infrastructure/commit-validator/commitlint-validator.service.d.ts.map +0 -1
  255. package/dist/cjs/infrastructure/commit-validator/index.d.ts.map +0 -1
  256. package/dist/cjs/infrastructure/di/container.d.ts.map +0 -1
  257. package/dist/cjs/infrastructure/di/index.d.ts.map +0 -1
  258. package/dist/cjs/infrastructure/git/git-commit.repository.d.ts.map +0 -1
  259. package/dist/cjs/infrastructure/git/index.d.ts.map +0 -1
  260. package/dist/cjs/infrastructure/index.d.ts.map +0 -1
  261. package/dist/cjs/infrastructure/llm/anthropic-llm.service.d.ts.map +0 -1
  262. package/dist/cjs/infrastructure/llm/aws-bedrock-llm.service.d.ts.map +0 -1
  263. package/dist/cjs/infrastructure/llm/azure-openai-llm.service.d.ts.map +0 -1
  264. package/dist/cjs/infrastructure/llm/google-llm.service.d.ts.map +0 -1
  265. package/dist/cjs/infrastructure/llm/index.d.ts.map +0 -1
  266. package/dist/cjs/infrastructure/llm/ollama-llm.service.d.ts.map +0 -1
  267. package/dist/cjs/infrastructure/llm/openai-llm.service.d.ts.map +0 -1
  268. package/dist/cjs/infrastructure/service/cosmic-config.service.d.ts.map +0 -1
  269. package/dist/cjs/infrastructure/service/index.d.ts.map +0 -1
  270. package/dist/cjs/infrastructure/service/node-command.service.d.ts.map +0 -1
  271. package/dist/cjs/infrastructure/service/node-file-system.service.d.ts.map +0 -1
  272. package/dist/cjs/infrastructure/service/prompts-cli-interface.service.d.ts.map +0 -1
  273. package/dist/cjs/presentation/commitizen.adapter.d.ts.map +0 -1
  274. package/dist/cjs/presentation/index.d.ts.map +0 -1
  275. package/dist/esm/application/constant/config-file-directory.constant.d.ts.map +0 -1
  276. package/dist/esm/application/constant/config-module-name.constant.d.ts.map +0 -1
  277. package/dist/esm/application/constant/index.d.ts.map +0 -1
  278. package/dist/esm/application/index.d.ts.map +0 -1
  279. package/dist/esm/application/interface/cli-interface-service-select-options.interface.d.ts.map +0 -1
  280. package/dist/esm/application/interface/cli-interface-service.interface.d.ts.map +0 -1
  281. package/dist/esm/application/interface/command-service.interface.d.ts.map +0 -1
  282. package/dist/esm/application/interface/commit-repository.interface.d.ts.map +0 -1
  283. package/dist/esm/application/interface/commit-validator.interface.d.ts.map +0 -1
  284. package/dist/esm/application/interface/config-service.interface.d.ts.map +0 -1
  285. package/dist/esm/application/interface/config.interface.d.ts.map +0 -1
  286. package/dist/esm/application/interface/file-system-service.interface.d.ts.map +0 -1
  287. package/dist/esm/application/interface/index.d.ts.map +0 -1
  288. package/dist/esm/application/interface/llm-service.interface.d.ts.map +0 -1
  289. package/dist/esm/application/use-case/configure-llm.use-case.d.ts.map +0 -1
  290. package/dist/esm/application/use-case/generate-commit-message.use-case.d.ts.map +0 -1
  291. package/dist/esm/application/use-case/index.d.ts.map +0 -1
  292. package/dist/esm/application/use-case/manual-commit.use-case.d.ts.map +0 -1
  293. package/dist/esm/application/use-case/validate-commit-message.use-case.d.ts.map +0 -1
  294. package/dist/esm/domain/constant/index.d.ts.map +0 -1
  295. package/dist/esm/domain/constant/numeric.constant.d.ts.map +0 -1
  296. package/dist/esm/domain/entity/commit-message.entity.d.ts.map +0 -1
  297. package/dist/esm/domain/entity/index.d.ts.map +0 -1
  298. package/dist/esm/domain/entity/llm-configuration.entity.d.ts.map +0 -1
  299. package/dist/esm/domain/enum/anthropic-model.enum.d.ts.map +0 -1
  300. package/dist/esm/domain/enum/aws-bedrock-model.enum.d.ts.map +0 -1
  301. package/dist/esm/domain/enum/azure-openai-model.enum.d.ts.map +0 -1
  302. package/dist/esm/domain/enum/commit-mode.enum.d.ts.map +0 -1
  303. package/dist/esm/domain/enum/google-model.enum.d.ts.map +0 -1
  304. package/dist/esm/domain/enum/index.d.ts.map +0 -1
  305. package/dist/esm/domain/enum/llm-provider.enum.d.ts.map +0 -1
  306. package/dist/esm/domain/enum/log-level.enum.d.ts.map +0 -1
  307. package/dist/esm/domain/enum/ollama-model.enum.d.ts.map +0 -1
  308. package/dist/esm/domain/enum/openai-model.enum.d.ts.map +0 -1
  309. package/dist/esm/domain/index.d.ts.map +0 -1
  310. package/dist/esm/domain/value-object/api-key.value-object.d.ts.map +0 -1
  311. package/dist/esm/domain/value-object/commit-body.value-object.d.ts.map +0 -1
  312. package/dist/esm/domain/value-object/commit-header.value-object.d.ts.map +0 -1
  313. package/dist/esm/domain/value-object/index.d.ts.map +0 -1
  314. package/dist/esm/index.d.ts.map +0 -1
  315. package/dist/esm/infrastructure/commit-validator/commitlint-validator.service.d.ts.map +0 -1
  316. package/dist/esm/infrastructure/commit-validator/index.d.ts.map +0 -1
  317. package/dist/esm/infrastructure/di/container.d.ts.map +0 -1
  318. package/dist/esm/infrastructure/di/index.d.ts.map +0 -1
  319. package/dist/esm/infrastructure/git/git-commit.repository.d.ts.map +0 -1
  320. package/dist/esm/infrastructure/git/index.d.ts.map +0 -1
  321. package/dist/esm/infrastructure/index.d.ts.map +0 -1
  322. package/dist/esm/infrastructure/llm/anthropic-llm.service.d.ts.map +0 -1
  323. package/dist/esm/infrastructure/llm/aws-bedrock-llm.service.d.ts.map +0 -1
  324. package/dist/esm/infrastructure/llm/azure-openai-llm.service.d.ts.map +0 -1
  325. package/dist/esm/infrastructure/llm/google-llm.service.d.ts.map +0 -1
  326. package/dist/esm/infrastructure/llm/index.d.ts.map +0 -1
  327. package/dist/esm/infrastructure/llm/ollama-llm.service.d.ts.map +0 -1
  328. package/dist/esm/infrastructure/llm/openai-llm.service.d.ts.map +0 -1
  329. package/dist/esm/infrastructure/service/cosmic-config.service.d.ts.map +0 -1
  330. package/dist/esm/infrastructure/service/index.d.ts.map +0 -1
  331. package/dist/esm/infrastructure/service/node-command.service.d.ts.map +0 -1
  332. package/dist/esm/infrastructure/service/node-file-system.service.d.ts.map +0 -1
  333. package/dist/esm/infrastructure/service/prompts-cli-interface.service.d.ts.map +0 -1
  334. package/dist/esm/presentation/commitizen.adapter.d.ts.map +0 -1
  335. package/dist/esm/presentation/index.d.ts.map +0 -1
  336. package/dist/tsconfig.tsbuildinfo +0 -1
@@ -14,4 +14,3 @@ export declare enum EGoogleModel {
14
14
  GEMMA_3_27B = "gemma-3-27b",
15
15
  GEMMA_3_4B = "gemma-3-4b"
16
16
  }
17
- //# sourceMappingURL=google-model.enum.d.ts.map
@@ -1,10 +1,9 @@
1
- export { EAnthropicModel } from "./anthropic-model.enum.js";
2
- export { EAWSBedrockModel } from "./aws-bedrock-model.enum.js";
3
- export { EAzureOpenAIModel } from "./azure-openai-model.enum.js";
4
- export { ECommitMode } from "./commit-mode.enum.js";
5
- export { EGoogleModel } from "./google-model.enum.js";
6
- export { ELLMProvider } from "./llm-provider.enum.js";
7
- export { ELogLevel } from "./log-level.enum.js";
8
- export { EOllamaModel } from "./ollama-model.enum.js";
9
- export { EOpenAIModel } from "./openai-model.enum.js";
10
- //# sourceMappingURL=index.d.ts.map
1
+ export { EAnthropicModel } from './anthropic-model.enum';
2
+ export { EAWSBedrockModel } from './aws-bedrock-model.enum';
3
+ export { EAzureOpenAIModel } from './azure-openai-model.enum';
4
+ export { ECommitMode } from './commit-mode.enum';
5
+ export { EGoogleModel } from './google-model.enum';
6
+ export { ELLMProvider } from './llm-provider.enum';
7
+ export { ELogLevel } from './log-level.enum';
8
+ export { EOllamaModel } from './ollama-model.enum';
9
+ export { EOpenAIModel } from './openai-model.enum';
@@ -9,4 +9,3 @@ export declare enum ELLMProvider {
9
9
  OLLAMA = "ollama",
10
10
  OPENAI = "openai"
11
11
  }
12
- //# sourceMappingURL=llm-provider.enum.d.ts.map
@@ -7,4 +7,3 @@ export declare enum ELogLevel {
7
7
  INFO = "info",
8
8
  WARN = "warn"
9
9
  }
10
- //# sourceMappingURL=log-level.enum.d.ts.map
@@ -22,4 +22,3 @@ export declare enum EOllamaModel {
22
22
  QWEN2_5 = "qwen2.5",
23
23
  STARLING_LM = "starling-lm"
24
24
  }
25
- //# sourceMappingURL=ollama-model.enum.d.ts.map
@@ -23,4 +23,3 @@ export declare enum EOpenAIModel {
23
23
  O3_MINI = "o3-mini",
24
24
  O4_MINI = "o4-mini"
25
25
  }
26
- //# sourceMappingURL=openai-model.enum.d.ts.map
@@ -1,4 +1,3 @@
1
- export * from "./entity/index.js";
2
- export * from "./enum/index.js";
3
- export * from "./value-object/index.js";
4
- //# sourceMappingURL=index.d.ts.map
1
+ export * from './entity/index';
2
+ export * from './enum/index';
3
+ export * from './value-object/index';
@@ -6,22 +6,23 @@ export declare class ApiKey {
6
6
  constructor(value: string);
7
7
  /**
8
8
  * Check if two API keys are equal
9
+ * @param {ApiKey} other - The other API key to compare with
10
+ * @returns {boolean} True if the API keys are equal
9
11
  */
10
12
  equals(other: ApiKey): boolean;
11
13
  /**
12
14
  * Get the API key value
13
- * @returns The API key value
15
+ * @returns {string} The API key value
14
16
  */
15
17
  getValue(): string;
16
18
  /**
17
19
  * Check if the API key is valid
18
- * @returns True if the API key appears to be valid
20
+ * @returns {boolean} True if the API key appears to be valid
19
21
  */
20
22
  isValid(): boolean;
21
23
  /**
22
24
  * Get a redacted version of the API key for display
23
- * @returns Redacted API key
25
+ * @returns {string} Redacted API key
24
26
  */
25
27
  toRedacted(): string;
26
28
  }
27
- //# sourceMappingURL=api-key.value-object.d.ts.map
@@ -13,20 +13,22 @@ class ApiKey {
13
13
  }
14
14
  /**
15
15
  * Check if two API keys are equal
16
+ * @param {ApiKey} other - The other API key to compare with
17
+ * @returns {boolean} True if the API keys are equal
16
18
  */
17
19
  equals(other) {
18
20
  return this.VALUE === other.VALUE;
19
21
  }
20
22
  /**
21
23
  * Get the API key value
22
- * @returns The API key value
24
+ * @returns {string} The API key value
23
25
  */
24
26
  getValue() {
25
27
  return this.VALUE;
26
28
  }
27
29
  /**
28
30
  * Check if the API key is valid
29
- * @returns True if the API key appears to be valid
31
+ * @returns {boolean} True if the API key appears to be valid
30
32
  */
31
33
  isValid() {
32
34
  // Basic validation - just check it's not a placeholder
@@ -34,7 +36,7 @@ class ApiKey {
34
36
  }
35
37
  /**
36
38
  * Get a redacted version of the API key for display
37
- * @returns Redacted API key
39
+ * @returns {string} Redacted API key
38
40
  */
39
41
  toRedacted() {
40
42
  if (this.VALUE.length <= REDACTED_LENGTH)
@@ -1 +1 @@
1
- {"version":3,"file":"api-key.value-object.js","sources":["../../../../../src/domain/value-object/api-key.value-object.ts"],"sourcesContent":[null],"names":[],"mappings":";;AAEA;;AAEG;MACU,MAAM,CAAA;AACD,IAAA,KAAK;AAEtB,IAAA,WAAA,CAAY,KAAa,EAAA;AACxB,QAAA,IAAI,CAAC,KAAK,IAAI,KAAK,CAAC,IAAI,EAAE,CAAC,MAAM,KAAK,CAAC,EAAE;AACxC,YAAA,MAAM,IAAI,KAAK,CAAC,yBAAyB,CAAC;;AAE3C,QAAA,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC,IAAI,EAAE;;AAG1B;;AAEG;AACH,IAAA,MAAM,CAAC,KAAa,EAAA;AACnB,QAAA,OAAO,IAAI,CAAC,KAAK,KAAK,KAAK,CAAC,KAAK;;AAGlC;;;AAGG;IACH,QAAQ,GAAA;QACP,OAAO,IAAI,CAAC,KAAK;;AAGlB;;;AAGG;IACH,OAAO,GAAA;;AAEN,QAAA,OAAO,IAAI,CAAC,KAAK,CAAC,MAAM,GAAG,kBAAkB,IAAI,CAAC,IAAI,CAAC,KAAK,CAAC,QAAQ,CAAC,cAAc,CAAC;;AAGtF;;;AAGG;IACH,UAAU,GAAA;AACT,QAAA,IAAI,IAAI,CAAC,KAAK,CAAC,MAAM,IAAI,eAAe;AAAE,YAAA,OAAO,MAAM;QAEvD,OAAO,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC,EAAE,eAAe,CAAC,GAAG,KAAK,GAAG,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,EAAgB,CAAC;;AAEzF;;;;"}
1
+ {"version":3,"file":"api-key.value-object.js","sources":["../../../../../src/domain/value-object/api-key.value-object.ts"],"sourcesContent":[null],"names":[],"mappings":";;AAEA;;AAEG;MACU,MAAM,CAAA;AACD,IAAA,KAAK;AAEtB,IAAA,WAAA,CAAY,KAAa,EAAA;AACxB,QAAA,IAAI,CAAC,KAAK,IAAI,KAAK,CAAC,IAAI,EAAE,CAAC,MAAM,KAAK,CAAC,EAAE;AACxC,YAAA,MAAM,IAAI,KAAK,CAAC,yBAAyB,CAAC;;AAE3C,QAAA,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC,IAAI,EAAE;;AAG1B;;;;AAIG;AACH,IAAA,MAAM,CAAC,KAAa,EAAA;AACnB,QAAA,OAAO,IAAI,CAAC,KAAK,KAAK,KAAK,CAAC,KAAK;;AAGlC;;;AAGG;IACH,QAAQ,GAAA;QACP,OAAO,IAAI,CAAC,KAAK;;AAGlB;;;AAGG;IACH,OAAO,GAAA;;AAEN,QAAA,OAAO,IAAI,CAAC,KAAK,CAAC,MAAM,GAAG,kBAAkB,IAAI,CAAC,IAAI,CAAC,KAAK,CAAC,QAAQ,CAAC,cAAc,CAAC;;AAGtF;;;AAGG;IACH,UAAU,GAAA;AACT,QAAA,IAAI,IAAI,CAAC,KAAK,CAAC,MAAM,IAAI,eAAe;AAAE,YAAA,OAAO,MAAM;QAEvD,OAAO,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC,EAAE,eAAe,CAAC,GAAG,KAAK,GAAG,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,EAAgB,CAAC;;AAEzF;;;;"}
@@ -7,27 +7,33 @@ export declare class CommitBody {
7
7
  constructor(content?: string, breakingChange?: string);
8
8
  /**
9
9
  * Check if two bodies are equal
10
+ * @param {CommitBody} other - The other commit body to compare with
11
+ * @returns {boolean} True if the bodies are equal
10
12
  */
11
13
  equals(other: CommitBody): boolean;
12
14
  /**
13
15
  * Get the breaking change description
16
+ * @returns {string | undefined} The breaking change description or undefined
14
17
  */
15
18
  getBreakingChange(): string | undefined;
16
19
  /**
17
20
  * Get the body content
21
+ * @returns {string | undefined} The body content or undefined
18
22
  */
19
23
  getContent(): string | undefined;
20
24
  /**
21
25
  * Check if there is a breaking change
26
+ * @returns {boolean} True if there is a breaking change
22
27
  */
23
28
  hasBreakingChange(): boolean;
24
29
  /**
25
30
  * Check if the body is empty
31
+ * @returns {boolean} True if the body is empty
26
32
  */
27
33
  isEmpty(): boolean;
28
34
  /**
29
35
  * Format the body as a string
36
+ * @returns {string} The formatted body text
30
37
  */
31
38
  toString(): string;
32
39
  }
33
- //# sourceMappingURL=commit-body.value-object.d.ts.map
@@ -10,36 +10,43 @@ class CommitBody {
10
10
  }
11
11
  /**
12
12
  * Check if two bodies are equal
13
+ * @param {CommitBody} other - The other commit body to compare with
14
+ * @returns {boolean} True if the bodies are equal
13
15
  */
14
16
  equals(other) {
15
17
  return this.CONTENT === other.CONTENT && this.BREAKING_CHANGE === other.BREAKING_CHANGE;
16
18
  }
17
19
  /**
18
20
  * Get the breaking change description
21
+ * @returns {string | undefined} The breaking change description or undefined
19
22
  */
20
23
  getBreakingChange() {
21
24
  return this.BREAKING_CHANGE;
22
25
  }
23
26
  /**
24
27
  * Get the body content
28
+ * @returns {string | undefined} The body content or undefined
25
29
  */
26
30
  getContent() {
27
31
  return this.CONTENT;
28
32
  }
29
33
  /**
30
34
  * Check if there is a breaking change
35
+ * @returns {boolean} True if there is a breaking change
31
36
  */
32
37
  hasBreakingChange() {
33
38
  return !!this.BREAKING_CHANGE;
34
39
  }
35
40
  /**
36
41
  * Check if the body is empty
42
+ * @returns {boolean} True if the body is empty
37
43
  */
38
44
  isEmpty() {
39
45
  return !this.CONTENT && !this.BREAKING_CHANGE;
40
46
  }
41
47
  /**
42
48
  * Format the body as a string
49
+ * @returns {string} The formatted body text
43
50
  */
44
51
  toString() {
45
52
  const parts = [];
@@ -1 +1 @@
1
- {"version":3,"file":"commit-body.value-object.js","sources":["../../../../../src/domain/value-object/commit-body.value-object.ts"],"sourcesContent":[null],"names":[],"mappings":"AAAA;;AAEG;MACU,UAAU,CAAA;AACL,IAAA,eAAe;AAEf,IAAA,OAAO;IAExB,WAAY,CAAA,OAAgB,EAAE,cAAuB,EAAA;QACpD,IAAI,CAAC,OAAO,GAAG,OAAO,EAAE,IAAI,EAAE,IAAI,SAAS;QAC3C,IAAI,CAAC,eAAe,GAAG,cAAc,EAAE,IAAI,EAAE,IAAI,SAAS;;AAG3D;;AAEG;AACH,IAAA,MAAM,CAAC,KAAiB,EAAA;AACvB,QAAA,OAAO,IAAI,CAAC,OAAO,KAAK,KAAK,CAAC,OAAO,IAAI,IAAI,CAAC,eAAe,KAAK,KAAK,CAAC,eAAe;;AAGxF;;AAEG;IACH,iBAAiB,GAAA;QAChB,OAAO,IAAI,CAAC,eAAe;;AAG5B;;AAEG;IACH,UAAU,GAAA;QACT,OAAO,IAAI,CAAC,OAAO;;AAGpB;;AAEG;IACH,iBAAiB,GAAA;AAChB,QAAA,OAAO,CAAC,CAAC,IAAI,CAAC,eAAe;;AAG9B;;AAEG;IACH,OAAO,GAAA;QACN,OAAO,CAAC,IAAI,CAAC,OAAO,IAAI,CAAC,IAAI,CAAC,eAAe;;AAG9C;;AAEG;IACH,QAAQ,GAAA;QACP,MAAM,KAAK,GAAkB,EAAE;AAE/B,QAAA,IAAI,IAAI,CAAC,eAAe,EAAE;YACzB,KAAK,CAAC,IAAI,CAAC,CAAA,iBAAA,EAAoB,IAAI,CAAC,eAAe,CAAE,CAAA,CAAC;;AAGvD,QAAA,IAAI,IAAI,CAAC,OAAO,EAAE;AACjB,YAAA,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC;;AAGzB,QAAA,OAAO,KAAK,CAAC,IAAI,CAAC,MAAM,CAAC;;AAE1B;;;;"}
1
+ {"version":3,"file":"commit-body.value-object.js","sources":["../../../../../src/domain/value-object/commit-body.value-object.ts"],"sourcesContent":[null],"names":[],"mappings":"AAAA;;AAEG;MACU,UAAU,CAAA;AACL,IAAA,eAAe;AAEf,IAAA,OAAO;IAExB,WAAY,CAAA,OAAgB,EAAE,cAAuB,EAAA;QACpD,IAAI,CAAC,OAAO,GAAG,OAAO,EAAE,IAAI,EAAE,IAAI,SAAS;QAC3C,IAAI,CAAC,eAAe,GAAG,cAAc,EAAE,IAAI,EAAE,IAAI,SAAS;;AAG3D;;;;AAIG;AACH,IAAA,MAAM,CAAC,KAAiB,EAAA;AACvB,QAAA,OAAO,IAAI,CAAC,OAAO,KAAK,KAAK,CAAC,OAAO,IAAI,IAAI,CAAC,eAAe,KAAK,KAAK,CAAC,eAAe;;AAGxF;;;AAGG;IACH,iBAAiB,GAAA;QAChB,OAAO,IAAI,CAAC,eAAe;;AAG5B;;;AAGG;IACH,UAAU,GAAA;QACT,OAAO,IAAI,CAAC,OAAO;;AAGpB;;;AAGG;IACH,iBAAiB,GAAA;AAChB,QAAA,OAAO,CAAC,CAAC,IAAI,CAAC,eAAe;;AAG9B;;;AAGG;IACH,OAAO,GAAA;QACN,OAAO,CAAC,IAAI,CAAC,OAAO,IAAI,CAAC,IAAI,CAAC,eAAe;;AAG9C;;;AAGG;IACH,QAAQ,GAAA;QACP,MAAM,KAAK,GAAkB,EAAE;AAE/B,QAAA,IAAI,IAAI,CAAC,eAAe,EAAE;YACzB,KAAK,CAAC,IAAI,CAAC,CAAA,iBAAA,EAAoB,IAAI,CAAC,eAAe,CAAE,CAAA,CAAC;;AAGvD,QAAA,IAAI,IAAI,CAAC,OAAO,EAAE;AACjB,YAAA,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC;;AAGzB,QAAA,OAAO,KAAK,CAAC,IAAI,CAAC,MAAM,CAAC;;AAE1B;;;;"}
@@ -8,23 +8,28 @@ export declare class CommitHeader {
8
8
  constructor(type: string, subject: string, scope?: string);
9
9
  /**
10
10
  * Check if two headers are equal
11
+ * @param {CommitHeader} other - The other commit header to compare with
12
+ * @returns {boolean} True if the headers are equal
11
13
  */
12
14
  equals(other: CommitHeader): boolean;
13
15
  /**
14
16
  * Get the commit scope
17
+ * @returns {string | undefined} The commit scope or undefined
15
18
  */
16
19
  getScope(): string | undefined;
17
20
  /**
18
21
  * Get the commit subject
22
+ * @returns {string} The commit subject
19
23
  */
20
24
  getSubject(): string;
21
25
  /**
22
26
  * Get the commit type
27
+ * @returns {string} The commit type
23
28
  */
24
29
  getType(): string;
25
30
  /**
26
31
  * Format the header as a string
32
+ * @returns {string} The formatted header
27
33
  */
28
34
  toString(): string;
29
35
  }
30
- //# sourceMappingURL=commit-header.value-object.d.ts.map
@@ -18,30 +18,36 @@ class CommitHeader {
18
18
  }
19
19
  /**
20
20
  * Check if two headers are equal
21
+ * @param {CommitHeader} other - The other commit header to compare with
22
+ * @returns {boolean} True if the headers are equal
21
23
  */
22
24
  equals(other) {
23
25
  return this.TYPE === other.getType() && this.SCOPE === other.getScope() && this.SUBJECT === other.getSubject();
24
26
  }
25
27
  /**
26
28
  * Get the commit scope
29
+ * @returns {string | undefined} The commit scope or undefined
27
30
  */
28
31
  getScope() {
29
32
  return this.SCOPE;
30
33
  }
31
34
  /**
32
35
  * Get the commit subject
36
+ * @returns {string} The commit subject
33
37
  */
34
38
  getSubject() {
35
39
  return this.SUBJECT;
36
40
  }
37
41
  /**
38
42
  * Get the commit type
43
+ * @returns {string} The commit type
39
44
  */
40
45
  getType() {
41
46
  return this.TYPE;
42
47
  }
43
48
  /**
44
49
  * Format the header as a string
50
+ * @returns {string} The formatted header
45
51
  */
46
52
  toString() {
47
53
  if (this.SCOPE) {
@@ -1 +1 @@
1
- {"version":3,"file":"commit-header.value-object.js","sources":["../../../../../src/domain/value-object/commit-header.value-object.ts"],"sourcesContent":[null],"names":[],"mappings":"AAAA;;AAEG;MACU,YAAY,CAAA;AACP,IAAA,KAAK;AAEL,IAAA,OAAO;AAEP,IAAA,IAAI;AAErB,IAAA,WAAA,CAAY,IAAY,EAAE,OAAe,EAAE,KAAc,EAAA;AACxD,QAAA,IAAI,CAAC,IAAI,IAAI,IAAI,CAAC,IAAI,EAAE,CAAC,MAAM,KAAK,CAAC,EAAE;AACtC,YAAA,MAAM,IAAI,KAAK,CAAC,6BAA6B,CAAC;;AAG/C,QAAA,IAAI,CAAC,OAAO,IAAI,OAAO,CAAC,IAAI,EAAE,CAAC,MAAM,KAAK,CAAC,EAAE;AAC5C,YAAA,MAAM,IAAI,KAAK,CAAC,gCAAgC,CAAC;;AAGlD,QAAA,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC,IAAI,EAAE;AACvB,QAAA,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC,IAAI,EAAE;AAC7B,QAAA,IAAI,CAAC,KAAK,GAAG,KAAK,EAAE,IAAI,EAAE;;AAG3B;;AAEG;AACH,IAAA,MAAM,CAAC,KAAmB,EAAA;QACzB,OAAO,IAAI,CAAC,IAAI,KAAK,KAAK,CAAC,OAAO,EAAE,IAAI,IAAI,CAAC,KAAK,KAAK,KAAK,CAAC,QAAQ,EAAE,IAAI,IAAI,CAAC,OAAO,KAAK,KAAK,CAAC,UAAU,EAAE;;AAG/G;;AAEG;IACH,QAAQ,GAAA;QACP,OAAO,IAAI,CAAC,KAAK;;AAGlB;;AAEG;IACH,UAAU,GAAA;QACT,OAAO,IAAI,CAAC,OAAO;;AAGpB;;AAEG;IACH,OAAO,GAAA;QACN,OAAO,IAAI,CAAC,IAAI;;AAGjB;;AAEG;IACH,QAAQ,GAAA;AACP,QAAA,IAAI,IAAI,CAAC,KAAK,EAAE;AACf,YAAA,OAAO,CAAG,EAAA,IAAI,CAAC,IAAI,CAAI,CAAA,EAAA,IAAI,CAAC,KAAK,CAAM,GAAA,EAAA,IAAI,CAAC,OAAO,EAAE;;QAGtD,OAAO,CAAA,EAAG,IAAI,CAAC,IAAI,KAAK,IAAI,CAAC,OAAO,CAAA,CAAE;;AAEvC;;;;"}
1
+ {"version":3,"file":"commit-header.value-object.js","sources":["../../../../../src/domain/value-object/commit-header.value-object.ts"],"sourcesContent":[null],"names":[],"mappings":"AAAA;;AAEG;MACU,YAAY,CAAA;AACP,IAAA,KAAK;AAEL,IAAA,OAAO;AAEP,IAAA,IAAI;AAErB,IAAA,WAAA,CAAY,IAAY,EAAE,OAAe,EAAE,KAAc,EAAA;AACxD,QAAA,IAAI,CAAC,IAAI,IAAI,IAAI,CAAC,IAAI,EAAE,CAAC,MAAM,KAAK,CAAC,EAAE;AACtC,YAAA,MAAM,IAAI,KAAK,CAAC,6BAA6B,CAAC;;AAG/C,QAAA,IAAI,CAAC,OAAO,IAAI,OAAO,CAAC,IAAI,EAAE,CAAC,MAAM,KAAK,CAAC,EAAE;AAC5C,YAAA,MAAM,IAAI,KAAK,CAAC,gCAAgC,CAAC;;AAGlD,QAAA,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC,IAAI,EAAE;AACvB,QAAA,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC,IAAI,EAAE;AAC7B,QAAA,IAAI,CAAC,KAAK,GAAG,KAAK,EAAE,IAAI,EAAE;;AAG3B;;;;AAIG;AACH,IAAA,MAAM,CAAC,KAAmB,EAAA;QACzB,OAAO,IAAI,CAAC,IAAI,KAAK,KAAK,CAAC,OAAO,EAAE,IAAI,IAAI,CAAC,KAAK,KAAK,KAAK,CAAC,QAAQ,EAAE,IAAI,IAAI,CAAC,OAAO,KAAK,KAAK,CAAC,UAAU,EAAE;;AAG/G;;;AAGG;IACH,QAAQ,GAAA;QACP,OAAO,IAAI,CAAC,KAAK;;AAGlB;;;AAGG;IACH,UAAU,GAAA;QACT,OAAO,IAAI,CAAC,OAAO;;AAGpB;;;AAGG;IACH,OAAO,GAAA;QACN,OAAO,IAAI,CAAC,IAAI;;AAGjB;;;AAGG;IACH,QAAQ,GAAA;AACP,QAAA,IAAI,IAAI,CAAC,KAAK,EAAE;AACf,YAAA,OAAO,CAAG,EAAA,IAAI,CAAC,IAAI,CAAI,CAAA,EAAA,IAAI,CAAC,KAAK,CAAM,GAAA,EAAA,IAAI,CAAC,OAAO,EAAE;;QAGtD,OAAO,CAAA,EAAG,IAAI,CAAC,IAAI,KAAK,IAAI,CAAC,OAAO,CAAA,CAAE;;AAEvC;;;;"}
@@ -1,4 +1,3 @@
1
- export * from "./api-key.value-object.js";
2
- export * from "./commit-body.value-object.js";
3
- export * from "./commit-header.value-object.js";
4
- //# sourceMappingURL=index.d.ts.map
1
+ export * from './api-key.value-object';
2
+ export * from './commit-body.value-object';
3
+ export * from './commit-header.value-object';
@@ -1,5 +1,16 @@
1
1
  import "dotenv/config";
2
- export declare function prompter(inquirerInstance: unknown, commit: (message: string) => void): void;
3
- export * from "./application/index.js";
4
- export * from "./domain/index.js";
5
- //# sourceMappingURL=index.d.ts.map
2
+ /**
3
+ * Commitizen adapter entry point
4
+ * This function is called by Commitizen when running `git cz`
5
+ * It delegates to the CommitizenAdapter to handle the interactive commit process
6
+ * @param {unknown} inquirerInstance - The inquirer instance provided by Commitizen
7
+ * @param {(message: string) => void} commit - Callback function to execute the commit with the generated message
8
+ * @returns {Promise<void>} Promise that resolves when the commit process is complete
9
+ */
10
+ export declare function prompter(inquirerInstance: unknown, commit: (message: string) => void): Promise<void>;
11
+ declare const _default: {
12
+ prompter: typeof prompter;
13
+ };
14
+ export default _default;
15
+ export * from './application/index';
16
+ export * from './domain/index';
package/dist/esm/index.js CHANGED
@@ -24,10 +24,21 @@ export { CommitHeader } from './domain/value-object/commit-header.value-object.j
24
24
  createAppContainer();
25
25
  // Create adapter instance
26
26
  const adapter = new CommitizenAdapter();
27
- // Main adapter function - explicitly typed for module export
28
- function prompter(inquirerInstance, commit) {
29
- void adapter.prompter(inquirerInstance, commit);
27
+ /**
28
+ * Commitizen adapter entry point
29
+ * This function is called by Commitizen when running `git cz`
30
+ * It delegates to the CommitizenAdapter to handle the interactive commit process
31
+ * @param {unknown} inquirerInstance - The inquirer instance provided by Commitizen
32
+ * @param {(message: string) => void} commit - Callback function to execute the commit with the generated message
33
+ * @returns {Promise<void>} Promise that resolves when the commit process is complete
34
+ */
35
+ async function prompter(inquirerInstance, commit) {
36
+ return adapter.prompter(inquirerInstance, commit);
30
37
  }
38
+ // Export the prompter function for Commitizen
39
+ var index = {
40
+ prompter,
41
+ };
31
42
 
32
- export { prompter };
43
+ export { index as default, prompter };
33
44
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sources":["../../../src/index.ts"],"sourcesContent":[null],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;AAKA;AACA,kBAAkB,EAAE;AAEpB;AACA,MAAM,OAAO,GAAsB,IAAI,iBAAiB,EAAE;AAE1D;AACgB,SAAA,QAAQ,CAAC,gBAAyB,EAAE,MAAiC,EAAA;IACpF,KAAK,OAAO,CAAC,QAAQ,CAAC,gBAAgB,EAAE,MAAM,CAAC;AAChD;;;;"}
1
+ {"version":3,"file":"index.js","sources":["../../../src/index.ts"],"sourcesContent":[null],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;AAKA;AACA,kBAAkB,EAAE;AAEpB;AACA,MAAM,OAAO,GAAsB,IAAI,iBAAiB,EAAE;AAE1D;;;;;;;AAOG;AACI,eAAe,QAAQ,CAAC,gBAAyB,EAAE,MAAiC,EAAA;IAC1F,OAAO,OAAO,CAAC,QAAQ,CAAC,gBAAgB,EAAE,MAAM,CAAC;AAClD;AAEA;AACA,YAAe;IACd,QAAQ;CACR;;;;"}
@@ -1,7 +1,7 @@
1
- import type { ICommitValidationResult, ICommitValidator } from "../../application/interface/commit-validator.interface.js";
2
- import type { ILlmPromptContext, ILlmService } from "../../application/interface/llm-service.interface.js";
3
- import type { CommitMessage } from "../../domain/entity/commit-message.entity.js";
4
- import type { LLMConfiguration } from "../../domain/entity/llm-configuration.entity.js";
1
+ import type { ICommitValidationResult, ICommitValidator } from '../../application/interface/commit-validator.interface';
2
+ import type { ILlmPromptContext, ILlmService } from '../../application/interface/llm-service.interface';
3
+ import type { CommitMessage } from '../../domain/entity/commit-message.entity';
4
+ import type { LLMConfiguration } from '../../domain/entity/llm-configuration.entity';
5
5
  /**
6
6
  * Commitlint implementation of the commit validator
7
7
  */
@@ -11,29 +11,28 @@ export declare class CommitlintValidatorService implements ICommitValidator {
11
11
  constructor(llmServices?: Array<ILlmService>);
12
12
  /**
13
13
  * Attempt to fix a commit message based on validation errors
14
- * @param message - The commit message to fix
15
- * @param validationResult - The validation result containing errors
16
- * @param context - Optional original context for LLM-based fixing
17
- * @returns Promise resolving to the fixed commit message or null if unfixable
14
+ * @param {CommitMessage} message - The commit message to fix
15
+ * @param {ICommitValidationResult} validationResult - The validation result containing errors
16
+ * @param {ILlmPromptContext} context - Optional original context for LLM-based fixing
17
+ * @returns {Promise<CommitMessage | null>} Promise resolving to the fixed commit message or null if unfixable
18
18
  */
19
19
  fix(message: CommitMessage, validationResult: ICommitValidationResult, context?: ILlmPromptContext): Promise<CommitMessage | null>;
20
20
  /**
21
- * Set the LLM configuration for context-aware fixing
22
- * @param configuration - The LLM configuration
21
+ * Set the LLM configuration for this validator
22
+ * @param {LLMConfiguration} configuration - The LLM configuration to set
23
23
  */
24
24
  setLLMConfiguration(configuration: LLMConfiguration): void;
25
25
  /**
26
26
  * Validate a commit message using commitlint
27
- * @param message - The commit message to validate
28
- * @returns Promise resolving to the validation result
27
+ * @param {CommitMessage} message - The commit message to validate
28
+ * @returns {Promise<ICommitValidationResult>} Promise resolving to the validation result
29
29
  */
30
30
  validate(message: CommitMessage): Promise<ICommitValidationResult>;
31
31
  /**
32
32
  * Wrap text to ensure no line exceeds the specified length
33
- * @param text - The text to wrap
34
- * @param maxLength - Maximum line length
35
- * @returns The wrapped text
33
+ * @param {string | undefined} text - The text to wrap
34
+ * @param {number} maxLength - Maximum line length
35
+ * @returns {string | undefined} The wrapped text
36
36
  */
37
37
  private wrapText;
38
38
  }
39
- //# sourceMappingURL=commitlint-validator.service.d.ts.map
@@ -15,10 +15,10 @@ class CommitlintValidatorService {
15
15
  }
16
16
  /**
17
17
  * Attempt to fix a commit message based on validation errors
18
- * @param message - The commit message to fix
19
- * @param validationResult - The validation result containing errors
20
- * @param context - Optional original context for LLM-based fixing
21
- * @returns Promise resolving to the fixed commit message or null if unfixable
18
+ * @param {CommitMessage} message - The commit message to fix
19
+ * @param {ICommitValidationResult} validationResult - The validation result containing errors
20
+ * @param {ILlmPromptContext} context - Optional original context for LLM-based fixing
21
+ * @returns {Promise<CommitMessage | null>} Promise resolving to the fixed commit message or null if unfixable
22
22
  */
23
23
  async fix(message, validationResult, context) {
24
24
  if (!validationResult.errors || validationResult.errors.length === 0) {
@@ -101,7 +101,7 @@ class CommitlintValidatorService {
101
101
  // Fix header max length
102
102
  if (error.includes("header must not be longer than")) {
103
103
  const maxLengthNumbers = error.match(/\d+/g) ?? [];
104
- if (maxLengthNumbers.length > 0) {
104
+ if (maxLengthNumbers.length > 0 && maxLengthNumbers[0]) {
105
105
  const maxLength = Number.parseInt(maxLengthNumbers[0], 10);
106
106
  const header = fixedMessage.getHeader();
107
107
  const currentLength = header.toString().length;
@@ -118,7 +118,7 @@ class CommitlintValidatorService {
118
118
  // Fix body/footer line length
119
119
  if (error.includes("footer's lines must not be longer than") || error.includes("body's lines must not be longer than")) {
120
120
  const maxLengthNumbers = error.match(/\d+/g) ?? [];
121
- if (maxLengthNumbers.length > 0) {
121
+ if (maxLengthNumbers.length > 0 && maxLengthNumbers[0]) {
122
122
  const maxLength = Number.parseInt(maxLengthNumbers[0], 10);
123
123
  const body = fixedMessage.getBody();
124
124
  // Wrap body lines
@@ -140,16 +140,16 @@ class CommitlintValidatorService {
140
140
  return null;
141
141
  }
142
142
  /**
143
- * Set the LLM configuration for context-aware fixing
144
- * @param configuration - The LLM configuration
143
+ * Set the LLM configuration for this validator
144
+ * @param {LLMConfiguration} configuration - The LLM configuration to set
145
145
  */
146
146
  setLLMConfiguration(configuration) {
147
147
  this.llmConfiguration = configuration;
148
148
  }
149
149
  /**
150
150
  * Validate a commit message using commitlint
151
- * @param message - The commit message to validate
152
- * @returns Promise resolving to the validation result
151
+ * @param {CommitMessage} message - The commit message to validate
152
+ * @returns {Promise<ICommitValidationResult>} Promise resolving to the validation result
153
153
  */
154
154
  async validate(message) {
155
155
  const loadResult = await load();
@@ -163,9 +163,9 @@ class CommitlintValidatorService {
163
163
  }
164
164
  /**
165
165
  * Wrap text to ensure no line exceeds the specified length
166
- * @param text - The text to wrap
167
- * @param maxLength - Maximum line length
168
- * @returns The wrapped text
166
+ * @param {string | undefined} text - The text to wrap
167
+ * @param {number} maxLength - Maximum line length
168
+ * @returns {string | undefined} The wrapped text
169
169
  */
170
170
  wrapText(text, maxLength) {
171
171
  if (!text) {
@@ -1 +1 @@
1
- {"version":3,"file":"commitlint-validator.service.js","sources":["../../../../../src/infrastructure/commit-validator/commitlint-validator.service.ts"],"sourcesContent":[null],"names":[],"mappings":";;;;;;AAcA;;AAEG;MACU,0BAA0B,CAAA;AACrB,IAAA,YAAY;AAErB,IAAA,gBAAgB;AAExB,IAAA,WAAA,CAAY,WAAgC,EAAA;AAC3C,QAAA,IAAI,CAAC,YAAY,GAAG,WAAW;;AAGhC;;;;;;AAMG;AACH,IAAA,MAAM,GAAG,CAAC,OAAsB,EAAE,gBAAyC,EAAE,OAA2B,EAAA;AACvG,QAAA,IAAI,CAAC,gBAAgB,CAAC,MAAM,IAAI,gBAAgB,CAAC,MAAM,CAAC,MAAM,KAAK,CAAC,EAAE;AACrE,YAAA,OAAO,OAAO;;;QAIf,IAAI,OAAO,IAAI,IAAI,CAAC,YAAY,IAAI,IAAI,CAAC,gBAAgB,EAAE;YAC1D,MAAM,OAAO,GAA4B,IAAI,CAAC,YAAY,CAAC,IAAI,CAAC,CAAC,CAAc,KAAI;AAClF,gBAAA,MAAM,MAAM,GAAiC,IAAI,CAAC,gBAAgB;AAElE,gBAAA,OAAO,MAAM,GAAG,CAAC,CAAC,QAAQ,CAAC,MAAM,CAAC,GAAG,KAAK;AAC3C,aAAC,CAAC;YAEF,IAAI,OAAO,EAAE;AACZ,gBAAA,OAAO,CAAC,MAAM,CAAC,KAAK,CAAC,uDAAuD,CAAC;AAE7E,gBAAA,IAAI;;AAEH,oBAAA,MAAM,UAAU,GAAsB;wBACrC,IAAI,EAAE,OAAO,CAAC,IAAI;;AAElB,wBAAA,IAAI,EAAE,SAAS;AACf,wBAAA,KAAK,EAAE,SAAS;AAChB,wBAAA,KAAK,EAAE;4BACN,IAAI,OAAO,OAAO,CAAC,KAAK,KAAK,QAAQ,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,OAAO,CAAC,KAAK,CAAC,GAAG,OAAO,CAAC,KAAK,GAAG,EAAE,CA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AK,GAAkB,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC;QAC7C,MAAM,YAAY,GAAkB,EAAE;AAEtC,QAAA,KAAK,MAAM,IAAI,IAAI,KAAK,EAAE;AACzB,YAAA,IAAI,IAAI,CAAC,MAAM,IAAI,SAAS,EAAE;AAC7B,gBAAA,YAAY,CAAC,IAAI,CAAC,IAAI,CAAC;;iBACjB;;gBAEN,MAAM,KAAK,GAAkB,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC;gBAC5C,IAAI,WAAW,GAAW,EAAE;AAE5B,gBAAA,KAAK,MAAM,IAAI,IAAI,KAAK,EAAE;AACzB,oBAAA,IAAI,WAAW,CAAC,MAAM,GAAG,IAAI,CAAC,MAAM,GAAG,CAAC,IAAI,SAAS,EAAE;AACtD,wBAAA,WAAW,IAAI,CAAC,WAAW,GAAG,GAAG,GAAG,EAAE,IAAI,IAAI;;yBACxC;wBACN,IAAI,WAAW,EAAE;AAChB,4BAAA,YAAY,CAAC,IAAI,CAAC,WAAW,CAAC;;wBAE/B,WAAW,GAAG,IAAI;;;gBAIpB,IAAI,WAAW,EAAE;AAChB,oBAAA,YAAY,CAAC,IAAI,CAAC,WAAW,CAAC;;;;AAKjC,QAAA,OAAO,YAAY,CAAC,IAAI,CAAC,IAAI,CAAC;;AAE/B;;;;"}
1
+ {"version":3,"file":"commitlint-validator.service.js","sources":["../../../../../src/infrastructure/commit-validator/commitlint-validator.service.ts"],"sourcesContent":[null],"names":[],"mappings":";;;;;;AAcA;;AAEG;MACU,0BAA0B,CAAA;AACrB,IAAA,YAAY;AAErB,IAAA,gBAAgB;AAExB,IAAA,WAAA,CAAY,WAAgC,EAAA;AAC3C,QAAA,IAAI,CAAC,YAAY,GAAG,WAAW;;AAGhC;;;;;;AAMG;AACH,IAAA,MAAM,GAAG,CAAC,OAAsB,EAAE,gBAAyC,EAAE,OAA2B,EAAA;AACvG,QAAA,IAAI,CAAC,gBAAgB,CAAC,MAAM,IAAI,gBAAgB,CAAC,M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oBAAA,IAAI,WAAW,CAAC,MAAM,GAAG,IAAI,CAAC,MAAM,GAAG,CAAC,IAAI,SAAS,EAAE;AACtD,wBAAA,WAAW,IAAI,CAAC,WAAW,GAAG,GAAG,GAAG,EAAE,IAAI,IAAI;;yBACxC;wBACN,IAAI,WAAW,EAAE;AAChB,4BAAA,YAAY,CAAC,IAAI,CAAC,WAAW,CAAC;;wBAE/B,WAAW,GAAG,IAAI;;;gBAIpB,IAAI,WAAW,EAAE;AAChB,oBAAA,YAAY,CAAC,IAAI,CAAC,WAAW,CAAC;;;;AAKjC,QAAA,OAAO,YAAY,CAAC,IAAI,CAAC,IAAI,CAAC;;AAE/B;;;;"}
@@ -1,2 +1 @@
1
- export * from "./commitlint-validator.service.js";
2
- //# sourceMappingURL=index.d.ts.map
1
+ export * from './commitlint-validator.service';
@@ -12,7 +12,6 @@ export declare const ConfigureLLMUseCaseToken: symbol;
12
12
  export declare const ManualCommitUseCaseToken: symbol;
13
13
  /**
14
14
  * Create and configure the application DI container
15
- * @returns The configured container
15
+ * @returns {IContainer} The configured DI container
16
16
  */
17
17
  export declare function createAppContainer(): IContainer;
18
- //# sourceMappingURL=container.d.ts.map
@@ -31,7 +31,7 @@ const ConfigureLLMUseCaseToken = Symbol("ConfigureLLMUseCase");
31
31
  const ManualCommitUseCaseToken = Symbol("ManualCommitUseCase");
32
32
  /**
33
33
  * Create and configure the application DI container
34
- * @returns The configured container
34
+ * @returns {IContainer} The configured DI container
35
35
  */
36
36
  function createAppContainer() {
37
37
  const container = createContainer({});
@@ -1,2 +1 @@
1
- export * from "./container.js";
2
- //# sourceMappingURL=index.d.ts.map
1
+ export * from './container';
@@ -1,6 +1,6 @@
1
- import type { ICommandService } from "../../application/interface/command-service.interface.js";
2
- import type { ICommitRepository } from "../../application/interface/commit-repository.interface.js";
3
- import type { CommitMessage } from "../../domain/entity/commit-message.entity.js";
1
+ import type { ICommandService } from '../../application/interface/command-service.interface';
2
+ import type { ICommitRepository } from '../../application/interface/commit-repository.interface';
3
+ import type { CommitMessage } from '../../domain/entity/commit-message.entity';
4
4
  /**
5
5
  * Git implementation of the commit repository
6
6
  */
@@ -9,29 +9,28 @@ export declare class GitCommitRepository implements ICommitRepository {
9
9
  constructor(commandService: ICommandService);
10
10
  /**
11
11
  * Create a commit with the given message
12
- * @param message - The commit message
13
- * @returns Promise that resolves when the commit is created
12
+ * @param {CommitMessage} message - The commit message
13
+ * @returns {Promise<void>} Promise that resolves when the commit is created
14
14
  */
15
15
  commit(message: CommitMessage): Promise<void>;
16
16
  /**
17
17
  * Get the current branch name
18
- * @returns Promise resolving to the current branch name
18
+ * @returns {Promise<string>} Promise resolving to the current branch name
19
19
  */
20
20
  getCurrentBranch(): Promise<string>;
21
21
  /**
22
22
  * Get the staged diff
23
- * @returns Promise resolving to the staged diff
23
+ * @returns {Promise<string>} Promise resolving to the staged diff
24
24
  */
25
25
  getStagedDiff(): Promise<string>;
26
26
  /**
27
27
  * Get the list of staged files
28
- * @returns Promise resolving to the list of staged files
28
+ * @returns {Promise<Array<string>>} Promise resolving to array of staged file paths
29
29
  */
30
30
  getStagedFiles(): Promise<Array<string>>;
31
31
  /**
32
32
  * Check if there are staged changes
33
- * @returns Promise resolving to true if there are staged changes
33
+ * @returns {Promise<boolean>} Promise resolving to true if there are staged changes
34
34
  */
35
35
  hasStagedChanges(): Promise<boolean>;
36
36
  }
37
- //# sourceMappingURL=git-commit.repository.d.ts.map
@@ -8,8 +8,8 @@ class GitCommitRepository {
8
8
  }
9
9
  /**
10
10
  * Create a commit with the given message
11
- * @param message - The commit message
12
- * @returns Promise that resolves when the commit is created
11
+ * @param {CommitMessage} message - The commit message
12
+ * @returns {Promise<void>} Promise that resolves when the commit is created
13
13
  */
14
14
  async commit(message) {
15
15
  // Escape the commit message for shell
@@ -19,7 +19,7 @@ class GitCommitRepository {
19
19
  }
20
20
  /**
21
21
  * Get the current branch name
22
- * @returns Promise resolving to the current branch name
22
+ * @returns {Promise<string>} Promise resolving to the current branch name
23
23
  */
24
24
  async getCurrentBranch() {
25
25
  const branch = await this.COMMAND_SERVICE.executeWithOutput("git rev-parse --abbrev-ref HEAD");
@@ -27,7 +27,7 @@ class GitCommitRepository {
27
27
  }
28
28
  /**
29
29
  * Get the staged diff
30
- * @returns Promise resolving to the staged diff
30
+ * @returns {Promise<string>} Promise resolving to the staged diff
31
31
  */
32
32
  async getStagedDiff() {
33
33
  try {
@@ -46,7 +46,7 @@ class GitCommitRepository {
46
46
  }
47
47
  /**
48
48
  * Get the list of staged files
49
- * @returns Promise resolving to the list of staged files
49
+ * @returns {Promise<Array<string>>} Promise resolving to array of staged file paths
50
50
  */
51
51
  async getStagedFiles() {
52
52
  try {
@@ -59,7 +59,7 @@ class GitCommitRepository {
59
59
  }
60
60
  /**
61
61
  * Check if there are staged changes
62
- * @returns Promise resolving to true if there are staged changes
62
+ * @returns {Promise<boolean>} Promise resolving to true if there are staged changes
63
63
  */
64
64
  async hasStagedChanges() {
65
65
  try {