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

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
@@ -1,46 +1,45 @@
1
- import type { ILlmPromptContext, ILlmService } from "../../application/interface/llm-service.interface.js";
2
- import type { LLMConfiguration } from "../../domain/entity/llm-configuration.entity.js";
3
- import { CommitMessage } from "../../domain/entity/commit-message.entity.js";
1
+ import type { ILlmPromptContext, ILlmService } from '../../application/interface/llm-service.interface';
2
+ import type { LLMConfiguration } from '../../domain/entity/llm-configuration.entity';
3
+ import { CommitMessage } from '../../domain/entity/commit-message.entity';
4
4
  /**
5
5
  * OpenAI implementation of the LLM service
6
6
  */
7
7
  export declare class OpenAILlmService implements ILlmService {
8
8
  /**
9
9
  * Generate a commit message using OpenAI
10
- * @param context - The context for generating the commit message
11
- * @param configuration - The LLM configuration
12
- * @returns Promise resolving to the generated commit message
10
+ * @param {ILlmPromptContext} context - The context for generating the commit message
11
+ * @param {LLMConfiguration} configuration - The LLM configuration
12
+ * @returns {Promise<CommitMessage>} Promise resolving to the generated commit message
13
13
  */
14
14
  generateCommitMessage(context: ILlmPromptContext, configuration: LLMConfiguration): Promise<CommitMessage>;
15
15
  /**
16
16
  * Check if the service supports the given configuration
17
- * @param configuration - The LLM configuration to check
18
- * @returns True if the service supports the configuration
17
+ * @param {LLMConfiguration} configuration - The LLM configuration to check
18
+ * @returns {boolean} True if the service supports the configuration
19
19
  */
20
20
  supports(configuration: LLMConfiguration): boolean;
21
21
  /**
22
22
  * Build the system prompt for OpenAI
23
- * @param context - The prompt context
24
- * @returns The system prompt
23
+ * @param {ILlmPromptContext} context - The prompt context
24
+ * @returns {string} The system prompt
25
25
  */
26
26
  private buildSystemPrompt;
27
27
  /**
28
28
  * Build the user prompt for OpenAI
29
- * @param context - The prompt context
30
- * @returns The user prompt
29
+ * @param {ILlmPromptContext} context - The prompt context
30
+ * @returns {string} The user prompt
31
31
  */
32
32
  private buildUserPrompt;
33
33
  /**
34
34
  * Format commitlint rules into human-readable instructions
35
- * @param rules - The commitlint rules object
36
- * @returns Formatted rules as string
35
+ * @param {Record<string, unknown>} rules - The commitlint rules object
36
+ * @returns {string} Formatted rules as string
37
37
  */
38
38
  private formatCommitlintRules;
39
39
  /**
40
40
  * Parse the commit message from the LLM response
41
- * @param content - The response content
42
- * @returns The parsed commit message
41
+ * @param {string} content - The response content
42
+ * @returns {CommitMessage} The parsed commit message
43
43
  */
44
44
  private parseCommitMessage;
45
45
  }
46
- //# sourceMappingURL=openai-llm.service.d.ts.map
@@ -11,9 +11,9 @@ import { CommitHeader } from '../../domain/value-object/commit-header.value-obje
11
11
  class OpenAILlmService {
12
12
  /**
13
13
  * Generate a commit message using OpenAI
14
- * @param context - The context for generating the commit message
15
- * @param configuration - The LLM configuration
16
- * @returns Promise resolving to the generated commit message
14
+ * @param {ILlmPromptContext} context - The context for generating the commit message
15
+ * @param {LLMConfiguration} configuration - The LLM configuration
16
+ * @returns {Promise<CommitMessage>} Promise resolving to the generated commit message
17
17
  */
18
18
  async generateCommitMessage(context, configuration) {
19
19
  const openai = new OpenAI({
@@ -38,16 +38,16 @@ class OpenAILlmService {
38
38
  }
39
39
  /**
40
40
  * Check if the service supports the given configuration
41
- * @param configuration - The LLM configuration to check
42
- * @returns True if the service supports the configuration
41
+ * @param {LLMConfiguration} configuration - The LLM configuration to check
42
+ * @returns {boolean} True if the service supports the configuration
43
43
  */
44
44
  supports(configuration) {
45
45
  return configuration.getProvider() === "openai";
46
46
  }
47
47
  /**
48
48
  * Build the system prompt for OpenAI
49
- * @param context - The prompt context
50
- * @returns The system prompt
49
+ * @param {ILlmPromptContext} context - The prompt context
50
+ * @returns {string} The system prompt
51
51
  */
52
52
  buildSystemPrompt(context) {
53
53
  let prompt = "";
@@ -127,8 +127,8 @@ class OpenAILlmService {
127
127
  }
128
128
  /**
129
129
  * Build the user prompt for OpenAI
130
- * @param context - The prompt context
131
- * @returns The user prompt
130
+ * @param {ILlmPromptContext} context - The prompt context
131
+ * @returns {string} The user prompt
132
132
  */
133
133
  buildUserPrompt(context) {
134
134
  let prompt = "";
@@ -167,8 +167,8 @@ class OpenAILlmService {
167
167
  }
168
168
  /**
169
169
  * Format commitlint rules into human-readable instructions
170
- * @param rules - The commitlint rules object
171
- * @returns Formatted rules as string
170
+ * @param {Record<string, unknown>} rules - The commitlint rules object
171
+ * @returns {string} Formatted rules as string
172
172
  */
173
173
  formatCommitlintRules(rules) {
174
174
  const formattedRules = [];
@@ -262,8 +262,8 @@ class OpenAILlmService {
262
262
  }
263
263
  /**
264
264
  * Parse the commit message from the LLM response
265
- * @param content - The response content
266
- * @returns The parsed commit message
265
+ * @param {string} content - The response content
266
+ * @returns {CommitMessage} The parsed commit message
267
267
  */
268
268
  parseCommitMessage(content) {
269
269
  try {
@@ -294,19 +294,32 @@ class OpenAILlmService {
294
294
  catch {
295
295
  // Fallback: try to parse as plain text
296
296
  const lines = content.trim().split("\n");
297
+ if (lines.length === 0 || !lines[0]) {
298
+ throw new Error("No content to parse");
299
+ }
297
300
  const headerLine = lines[0];
298
301
  // Parse header: type(scope): subject
299
302
  const headerMatch = /^(\w+)(?:\(([^)]+)\))?: (.+)$/.exec(headerLine);
300
303
  if (!headerMatch) {
301
304
  throw new Error(`Invalid commit message format. Could not parse: "${headerLine}"`);
302
305
  }
303
- const [, type, scope, subject] = headerMatch;
306
+ const HEADER_TYPE_INDEX = 1;
307
+ const HEADER_SCOPE_INDEX = 2;
308
+ const HEADER_SUBJECT_INDEX = 3;
309
+ const type = headerMatch[HEADER_TYPE_INDEX];
310
+ const scope = headerMatch[HEADER_SCOPE_INDEX];
311
+ const subject = headerMatch[HEADER_SUBJECT_INDEX];
312
+ if (!type || !subject) {
313
+ throw new Error("Missing required fields: type and subject");
314
+ }
304
315
  const header = new CommitHeader(type, subject, scope);
305
316
  // Parse body and breaking changes
306
317
  let bodyContent = "";
307
318
  let breakingChange;
308
319
  for (let index = 1; index < lines.length; index++) {
309
320
  const line = lines[index];
321
+ if (!line)
322
+ continue;
310
323
  if (line.startsWith("BREAKING CHANGE:")) {
311
324
  breakingChange = line.slice("BREAKING CHANGE:".length).trim();
312
325
  }
@@ -1 +1 @@
1
- {"version":3,"file":"openai-llm.service.js","sources":["../../../../../src/infrastructure/llm/openai-llm.service.ts"],"sourcesContent":[null],"names":[],"mappings":";;;;;;;AAcA;;AAEG;MACU,gBAAgB,CAAA;AAC5B;;;;;AAKG;AACH,IAAA,MAAM,qBAAq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AAI,IAAI,CAAC,IAAI,EAAE,EAAE;AACvB,oBAAA,WAAW,IAAI,IAAI,GAAG,IAAI;;;AAI5B,YAAA,MAAM,IAAI,GAAe,IAAI,UAAU,CAAC,WAAW,CAAC,IAAI,EAAE,IAAI,SAAS,EAAE,cAAc,CAAC;AAExF,YAAA,OAAO,IAAI,aAAa,CAAC,MAAM,EAAE,IAAI,CAAC;;;AAGxC;;;;"}
@@ -1,6 +1,6 @@
1
- import type { IConfigService } from "../../application/interface/config-service.interface.js";
2
- import type { IConfig } from "../../application/interface/config.interface.js";
3
- import type { IFileSystemService } from "../../application/interface/file-system-service.interface.js";
1
+ import type { IConfigService } from '../../application/interface/config-service.interface';
2
+ import type { IConfig } from '../../application/interface/config.interface';
3
+ import type { IFileSystemService } from '../../application/interface/file-system-service.interface';
4
4
  /**
5
5
  * Implementation of ConfigService that uses cosmiconfig for configuration management.
6
6
  * Cosmiconfig searches for configuration in standard locations and formats.
@@ -12,7 +12,7 @@ export declare class CosmicConfigService implements IConfigService {
12
12
  private readonly EXPLORER;
13
13
  /**
14
14
  * Initializes a new instance of the CosmicConfigService.
15
- * @param fileSystemService
15
+ * @param {IFileSystemService} fileSystemService - The file system service for file operations
16
16
  */
17
17
  constructor(fileSystemService: IFileSystemService);
18
18
  /**
@@ -21,45 +21,46 @@ export declare class CosmicConfigService implements IConfigService {
21
21
  clearCaches(): void;
22
22
  /**
23
23
  * Checks if the configuration exists.
24
- * @returns Promise resolving to true if the configuration exists, false otherwise
24
+ * @returns {Promise<boolean>} Promise resolving to true if the configuration exists, false otherwise
25
25
  */
26
26
  exists(): Promise<boolean>;
27
27
  /**
28
28
  * Retrieves the current configuration.
29
- * @returns Promise resolving to the configuration object
29
+ * @returns {Promise<IConfig>} Promise resolving to the configuration object
30
30
  */
31
31
  get(): Promise<IConfig>;
32
32
  /**
33
33
  * Gets a specific property from the configuration.
34
- * @param property - The property key to retrieve
35
- * @returns Promise resolving to the value of the specified property
34
+ * @param {K} property - The property key to retrieve
35
+ * @returns {Promise<IConfig[K]>} Promise resolving to the value of the specified property
36
+ * @template K - The type of the property key
36
37
  */
37
38
  getProperty<K extends keyof IConfig>(property: K): Promise<IConfig[K]>;
38
39
  /**
39
40
  * Merges partial configuration with the existing configuration.
40
- * @param partial - Partial configuration to merge
41
- * @returns Promise that resolves when the merged configuration is saved
41
+ * @param {Partial<IConfig>} partial - Partial configuration to merge
42
+ * @returns {Promise<void>} Promise that resolves when the merged configuration is saved
42
43
  */
43
44
  merge(partial: Partial<IConfig>): Promise<void>;
44
45
  /**
45
46
  * Saves the entire configuration.
46
- * @param config - The complete configuration to save
47
- * @returns Promise that resolves when the configuration is saved
47
+ * @param {IConfig} config - The complete configuration to save
48
+ * @returns {Promise<void>} Promise that resolves when the configuration is saved
48
49
  */
49
50
  set(config: IConfig): Promise<void>;
50
51
  /**
51
52
  * Sets a specific property in the configuration.
52
- * @param property - The property key to set
53
- * @param value - The value to assign to the property
54
- * @returns Promise that resolves when the updated configuration is saved
53
+ * @param {K} property - The property key to set
54
+ * @param {IConfig[K]} value - The value to assign to the property
55
+ * @returns {Promise<void>} Promise that resolves when the updated configuration is saved
56
+ * @template K - The type of the property key
55
57
  */
56
58
  setProperty<K extends keyof IConfig>(property: K, value: IConfig[K]): Promise<void>;
57
59
  /**
58
60
  * Writes configuration to a file.
59
- * @param filepath - Path to write the configuration to
60
- * @param config - Configuration to write
61
- * @returns Promise that resolves when the file is written
61
+ * @param {string} filepath - Path to write the configuration to
62
+ * @param {IConfig} config - Configuration to write
63
+ * @returns {Promise<void>} Promise that resolves when the file is written
62
64
  */
63
65
  private writeFile;
64
66
  }
65
- //# sourceMappingURL=cosmic-config.service.d.ts.map
@@ -15,7 +15,7 @@ class CosmicConfigService {
15
15
  EXPLORER;
16
16
  /**
17
17
  * Initializes a new instance of the CosmicConfigService.
18
- * @param fileSystemService
18
+ * @param {IFileSystemService} fileSystemService - The file system service for file operations
19
19
  */
20
20
  constructor(fileSystemService) {
21
21
  this.FILE_SYSTEM_SERVICE = fileSystemService;
@@ -47,7 +47,7 @@ class CosmicConfigService {
47
47
  }
48
48
  /**
49
49
  * Checks if the configuration exists.
50
- * @returns Promise resolving to true if the configuration exists, false otherwise
50
+ * @returns {Promise<boolean>} Promise resolving to true if the configuration exists, false otherwise
51
51
  */
52
52
  async exists() {
53
53
  const result = await this.EXPLORER.search();
@@ -55,7 +55,7 @@ class CosmicConfigService {
55
55
  }
56
56
  /**
57
57
  * Retrieves the current configuration.
58
- * @returns Promise resolving to the configuration object
58
+ * @returns {Promise<IConfig>} Promise resolving to the configuration object
59
59
  */
60
60
  async get() {
61
61
  if (this.cachedConfig) {
@@ -70,8 +70,9 @@ class CosmicConfigService {
70
70
  }
71
71
  /**
72
72
  * Gets a specific property from the configuration.
73
- * @param property - The property key to retrieve
74
- * @returns Promise resolving to the value of the specified property
73
+ * @param {K} property - The property key to retrieve
74
+ * @returns {Promise<IConfig[K]>} Promise resolving to the value of the specified property
75
+ * @template K - The type of the property key
75
76
  */
76
77
  async getProperty(property) {
77
78
  const config = await this.get();
@@ -79,8 +80,8 @@ class CosmicConfigService {
79
80
  }
80
81
  /**
81
82
  * Merges partial configuration with the existing configuration.
82
- * @param partial - Partial configuration to merge
83
- * @returns Promise that resolves when the merged configuration is saved
83
+ * @param {Partial<IConfig>} partial - Partial configuration to merge
84
+ * @returns {Promise<void>} Promise that resolves when the merged configuration is saved
84
85
  */
85
86
  async merge(partial) {
86
87
  try {
@@ -95,8 +96,8 @@ class CosmicConfigService {
95
96
  }
96
97
  /**
97
98
  * Saves the entire configuration.
98
- * @param config - The complete configuration to save
99
- * @returns Promise that resolves when the configuration is saved
99
+ * @param {IConfig} config - The complete configuration to save
100
+ * @returns {Promise<void>} Promise that resolves when the configuration is saved
100
101
  */
101
102
  async set(config) {
102
103
  try {
@@ -113,9 +114,10 @@ class CosmicConfigService {
113
114
  }
114
115
  /**
115
116
  * Sets a specific property in the configuration.
116
- * @param property - The property key to set
117
- * @param value - The value to assign to the property
118
- * @returns Promise that resolves when the updated configuration is saved
117
+ * @param {K} property - The property key to set
118
+ * @param {IConfig[K]} value - The value to assign to the property
119
+ * @returns {Promise<void>} Promise that resolves when the updated configuration is saved
120
+ * @template K - The type of the property key
119
121
  */
120
122
  async setProperty(property, value) {
121
123
  const config = await this.get();
@@ -124,9 +126,9 @@ class CosmicConfigService {
124
126
  }
125
127
  /**
126
128
  * Writes configuration to a file.
127
- * @param filepath - Path to write the configuration to
128
- * @param config - Configuration to write
129
- * @returns Promise that resolves when the file is written
129
+ * @param {string} filepath - Path to write the configuration to
130
+ * @param {IConfig} config - Configuration to write
131
+ * @returns {Promise<void>} Promise that resolves when the file is written
130
132
  */
131
133
  async writeFile(filepath, config) {
132
134
  const extension = this.FILE_SYSTEM_SERVICE.getExtensionFromFilePath(filepath);
@@ -1 +1 @@
1
- {"version":3,"file":"cosmic-config.service.js","sources":["../../../../../src/infrastructure/service/cosmic-config.service.ts"],"sourcesContent":[null],"names":[],"mappings":";;;;;;AAcA;;;AAGG;MACU,mBAAmB,CAAA;;AAEtB,IAAA,mBAAmB;IAEpB,YAAY,GAAmB,IAAI;AAE1B,IAAA,QAAQ;AAEzB;;;AAGG;AACH,IAAA,WAAA,CAAY,iBAAqC,EAAA;AAChD,QAAA,IAAI,CAAC,mBAAmB,GAAG,iBAAiB;AAE5C,QAAA,IAAI,CAAC,QAAQ,GAAG,WAAW,CAAC,kBAAkB,EAAE;AAC/C,YAAA,WAAW,EAAE,CAAA,EAAG,qBAAqB,CAAC,OAAO,CAAC,GAAG,EAAE,EAAE,CAAC,CAAI,CAAA,EAAA,kBAAkB,CAAE,CAAA;AAC9E,YAAA,YAAY,EAAE;gBACb,cAAc;gBACd,CAAG,EAAA,qBAAqB,CAAK,EAAA,EAAA,kBAAkB,CAAI,EAAA,CAAA;gBACnD,CAAG,EAAA,qBAAqB,CAAK,EAAA,EAAA,kBAAkB,CAAS,OAAA,CAAA;gBACxD,CAAG,EAAA,qBAAqB,CAAK,EAA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AAC,MAAM,EAAE,IAAI,EAAE,CAAC,CAAC;;;QAI3C,MAAM,aAAa,GAAW,IAAI,CAAC,mBAAmB,CAAC,4BAA4B,CAAC,QAAQ,CAAC;AAE7F,QAAA,IAAI,EAAE,MAAM,IAAI,CAAC,mBAAmB,CAAC,YAAY,CAAC,aAAa,CAAC,CAAC,EAAE;AAClE,YAAA,MAAM,IAAI,CAAC,mBAAmB,CAAC,eAAe,CAAC,aAAa,EAAE,EAAE,WAAW,EAAE,IAAI,EAAE,CAAC;;AAGrF,QAAA,MAAM,IAAI,CAAC,mBAAmB,CAAC,SAAS,CAAC,QAAQ,EAAE,OAAO,EAAE,MAAM,CAAC;;AAEpE;;;;"}
1
+ {"version":3,"file":"cosmic-config.service.js","sources":["../../../../../src/infrastructure/service/cosmic-config.service.ts"],"sourcesContent":[null],"names":[],"mappings":";;;;;;AAcA;;;AAGG;MACU,mBAAmB,CAAA;;AAEtB,IAAA,mBAAmB;IAEpB,YAAY,GAAmB,IAAI;AAE1B,IAAA,QAAQ;AAEzB;;;AAGG;AACH,IAAA,WAAA,CAAY,iBAAqC,EAAA;AAChD,QAAA,IAAI,CAAC,mBAAmB,GAAG,iBAAiB;AAE5C,QAAA,IAAI,CAAC,QAAQ,GAAG,WAAW,CAAC,kBAAkB,EAAE;AAC/C,YAAA,WAAW,EAAE,CAAA,EAAG,qBAAqB,CAAC,OAAO,CAAC,GAAG,EAAE,EAAE,CAAC,CAAI,CAAA,EAAA,kBAAkB,CAAE,CAAA;AAC9E,YAAA,YAAY,EAAE;gBACb,cAAc;gBACd,CAAG,EAAA,qBAAqB,CAAK,EAAA,EAAA,kBAAkB,CAAI,EAAA,CAAA;gBACnD,CAAG,EAAA,qBAAqB,CAAK,EAAA,EAAA,kBAAkB,CAAS,OAAA,CAAA;gBACxD,CAAG,EAAA,qBAAqB,CAAK,EAAA,EAAA,kBAAkB,CAAS,OAAA,CAAA;gBACxD,CAAG,EAAA,qBAAqB,CAAK,EAAA,EAAA,kBAA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AAmB,CAAC,4BAA4B,CAAC,QAAQ,CAAC;AAE7F,QAAA,IAAI,EAAE,MAAM,IAAI,CAAC,mBAAmB,CAAC,YAAY,CAAC,aAAa,CAAC,CAAC,EAAE;AAClE,YAAA,MAAM,IAAI,CAAC,mBAAmB,CAAC,eAAe,CAAC,aAAa,EAAE,EAAE,WAAW,EAAE,IAAI,EAAE,CAAC;;AAGrF,QAAA,MAAM,IAAI,CAAC,mBAAmB,CAAC,SAAS,CAAC,QAAQ,EAAE,OAAO,EAAE,MAAM,CAAC;;AAEpE;;;;"}
@@ -1,5 +1,4 @@
1
- export * from "./cosmic-config.service.js";
2
- export * from "./node-command.service.js";
3
- export * from "./node-file-system.service.js";
4
- export * from "./prompts-cli-interface.service.js";
5
- //# sourceMappingURL=index.d.ts.map
1
+ export * from './cosmic-config.service';
2
+ export * from './node-command.service';
3
+ export * from './node-file-system.service';
4
+ export * from './prompts-cli-interface.service';
@@ -1,5 +1,5 @@
1
- import type { ICliInterfaceService } from "../../application/interface/cli-interface-service.interface.js";
2
- import type { ICommandService } from "../../application/interface/command-service.interface.js";
1
+ import type { ICliInterfaceService } from '../../application/interface/cli-interface-service.interface';
2
+ import type { ICommandService } from '../../application/interface/command-service.interface';
3
3
  /**
4
4
  * Implementation of the command service using Node.js child_process.
5
5
  * Provides functionality to execute shell commands.
@@ -12,33 +12,34 @@ export declare class NodeCommandService implements ICommandService {
12
12
  * Allows for async/await usage of command execution.
13
13
  */
14
14
  private readonly EXEC_ASYNC;
15
+ /**
16
+ * @param {ICliInterfaceService} cliInterfaceService - The CLI interface service for user interactions
17
+ */
15
18
  constructor(cliInterfaceService: ICliInterfaceService);
16
19
  /**
17
20
  * Executes a shell command.
18
- * @param command - The shell command to execute
19
- * @returns Promise that resolves when the command completes successfully
21
+ * @param {string} command - The shell command to execute
22
+ * @returns {Promise<void>} Promise that resolves when the command completes successfully
20
23
  * @throws Will throw an error if the command execution fails, except for npm install which offers retry options
21
24
  */
22
25
  execute(command: string): Promise<void>;
23
26
  /**
24
27
  * Execute a command and return its output
25
- * @param command - The command to execute
26
- * @returns Promise that resolves to the command output
28
+ * @param {string} command - The command to execute
29
+ * @returns {Promise<string>} Promise that resolves to the command output
27
30
  */
28
31
  executeWithOutput(command: string): Promise<string>;
29
32
  /**
30
- * Formate and parse npm error to readable format
31
- * @param command - The original npm command that failed
32
- * @param error - Error npm object
33
- * @returns void
33
+ * Format and parse npm error to readable format
34
+ * @param {string} command - The original npm command that failed
35
+ * @param {INodeError} error - Error npm object
34
36
  */
35
37
  private formatAndParseNpmError;
36
38
  /**
37
39
  * Handles npm install command failures by offering retry options to the user.
38
- * @param originalCommand - The original npm command that failed
39
- * @returns Promise that resolves when the chosen action completes
40
+ * @param {string} originalCommand - The original npm command that failed
41
+ * @returns {Promise<void>} Promise that resolves when the chosen action completes
40
42
  * @throws Will throw an error if the user chooses to cancel or if retried command still fails
41
43
  */
42
44
  private handleNpmInstallFailure;
43
45
  }
44
- //# sourceMappingURL=node-command.service.d.ts.map
@@ -14,13 +14,16 @@ class NodeCommandService {
14
14
  * Allows for async/await usage of command execution.
15
15
  */
16
16
  EXEC_ASYNC = promisify(exec);
17
+ /**
18
+ * @param {ICliInterfaceService} cliInterfaceService - The CLI interface service for user interactions
19
+ */
17
20
  constructor(cliInterfaceService) {
18
21
  this.CLI_INTERFACE_SERVICE = cliInterfaceService;
19
22
  }
20
23
  /**
21
24
  * Executes a shell command.
22
- * @param command - The shell command to execute
23
- * @returns Promise that resolves when the command completes successfully
25
+ * @param {string} command - The shell command to execute
26
+ * @returns {Promise<void>} Promise that resolves when the command completes successfully
24
27
  * @throws Will throw an error if the command execution fails, except for npm install which offers retry options
25
28
  */
26
29
  async execute(command) {
@@ -41,8 +44,8 @@ class NodeCommandService {
41
44
  }
42
45
  /**
43
46
  * Execute a command and return its output
44
- * @param command - The command to execute
45
- * @returns Promise that resolves to the command output
47
+ * @param {string} command - The command to execute
48
+ * @returns {Promise<string>} Promise that resolves to the command output
46
49
  */
47
50
  async executeWithOutput(command) {
48
51
  try {
@@ -55,10 +58,9 @@ class NodeCommandService {
55
58
  }
56
59
  }
57
60
  /**
58
- * Formate and parse npm error to readable format
59
- * @param command - The original npm command that failed
60
- * @param error - Error npm object
61
- * @returns void
61
+ * Format and parse npm error to readable format
62
+ * @param {string} command - The original npm command that failed
63
+ * @param {INodeError} error - Error npm object
62
64
  */
63
65
  formatAndParseNpmError(command, error) {
64
66
  // Форматируем и выводим ошибку
@@ -110,8 +112,8 @@ class NodeCommandService {
110
112
  }
111
113
  /**
112
114
  * Handles npm install command failures by offering retry options to the user.
113
- * @param originalCommand - The original npm command that failed
114
- * @returns Promise that resolves when the chosen action completes
115
+ * @param {string} originalCommand - The original npm command that failed
116
+ * @returns {Promise<void>} Promise that resolves when the chosen action completes
115
117
  * @throws Will throw an error if the user chooses to cancel or if retried command still fails
116
118
  */
117
119
  async handleNpmInstallFailure(originalCommand) {
@@ -1 +1 @@
1
- {"version":3,"file":"node-command.service.js","sources":["../../../../../src/infrastructure/service/node-command.service.ts"],"sourcesContent":[null],"names":[],"mappings":";;;;AAkBA;;;AAGG;MACU,kBAAkB,CAAA;;AAErB,IAAA,qBAAqB;AAE9B;;;AAGG;AACc,IAAA,UAAU,GAAuE,SAAS,CAAC,IAAI,CAAC;AAEjH,IAAA,WAAA,CAAY,mBAAyC,EAAA;AACpD,QAAA,IAAI,CAAC,qBAAqB,GAAG,mBAAmB;;AAGjD;;;;;AAKG;IACH,MAAM,OAAO,CAAC,OAAe,EAAA;AAC5B,QAAA,IAAI;AACH,YAAA,MAAM,IAAI,CAAC,UAAU,CAAC,OAAO,CAAC;;QAC7B,OAAO,KAAK,EAAE;;AAEf,YAAA,IAAI,OAAO,CAAC,IAAI,EAAE,CAAC,UAAU,CAAC,aAAa,CAAC,IAAI,OAAO,CAAC,IAAI,EAAE,CAAC,UAAU,CAAC,QAAQ,CAAC,IAAI,OAAO,CAAC,IAAI,EAAE,CAAC,UAAU,CAAC,YAAY,CAAC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,OAAO,CAAC,wCAAwC,CAAC;gBAE5E;;YAGD,KAAK,kBAAkB,EAAE;AACxB,gBAAA,IAAI,CAAC,qBAAqB,CAAC,IAAI,CAAC,0CAA0C,CAAC;gBAC3E,MAAM,IAAI,CAAC,UAAU,CAAC,GAAG,eAAe,CAAA,mBAAA,CAAqB,CAAC;AAC9D,gBAAA,IAAI,CAAC,qBAAqB,CAAC,OAAO,CAAC,mDAAmD,CAAC;gBAEvF;;YAGD,KAAK,QAAQ,EAAE;AACd,gBAAA,IAAI,CAAC,qBAAqB,CAAC,IAAI,CAAC,8BAA8B,CAAC;AAE/D,gBAAA,MAAM,IAAI,KAAK,CAAC,8CAA8C,CAAC;;YAGhE,SAAS;AACR,gBAAA,MAAM,IAAI,KAAK,CAAC,0BAA0B,CAAC;;;;AAI9C;;;;"}
1
+ {"version":3,"file":"node-command.service.js","sources":["../../../../../src/infrastructure/service/node-command.service.ts"],"sourcesContent":[null],"names":[],"mappings":";;;;AAkBA;;;AAGG;MACU,kBAAkB,CAAA;;AAErB,IAAA,qBAAqB;AAE9B;;;AAGG;AACc,IAAA,UAAU,GAAuE,SAAS,CAAC,IAAI,CAAC;AAEjH;;AAEG;AACH,IAAA,WAAA,CAAY,mBAAyC,EAAA;AACpD,QAAA,IAAI,CAAC,qBAAqB,GAAG,mBAAmB;;AAGjD;;;;;AAKG;IACH,MAAM,OAAO,CAAC,OAAe,EAAA;AAC5B,QAAA,IAAI;AACH,YAAA,MAAM,IAAI,CAAC,UAAU,CAAC,OAAO,CAAC;;QAC7B,OAAO,KAAK,EAAE;;AAEf,YAAA,IAAI,OAAO,CAAC,IAAI,EAAE,CAAC,UAAU,CAAC,aAAa,CAAC,IAAI,OAAO,CAAC,IAAI,EAAE,CAAC,UAAU,CAAC,QAAQ,CAAC,IAAI,OAAO,CAAC,IAAI,EAAE,CAAC,UAAU,CAAC,YAAY,CAAC,IAAI,OAAO,CAAC,IAAI,EAAE,CAAC,UAAU,CAAC,eAAe,CAAC,EAA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xB,gBAAA,IAAI,CAAC,qBAAqB,CAAC,IAAI,CAAC,0CAA0C,CAAC;gBAC3E,MAAM,IAAI,CAAC,UAAU,CAAC,GAAG,eAAe,CAAA,mBAAA,CAAqB,CAAC;AAC9D,gBAAA,IAAI,CAAC,qBAAqB,CAAC,OAAO,CAAC,mDAAmD,CAAC;gBAEvF;;YAGD,KAAK,QAAQ,EAAE;AACd,gBAAA,IAAI,CAAC,qBAAqB,CAAC,IAAI,CAAC,8BAA8B,CAAC;AAE/D,gBAAA,MAAM,IAAI,KAAK,CAAC,8CAA8C,CAAC;;YAGhE,SAAS;AACR,gBAAA,MAAM,IAAI,KAAK,CAAC,0BAA0B,CAAC;;;;AAI9C;;;;"}
@@ -1,4 +1,4 @@
1
- import type { IFileSystemService } from "../../application/interface/file-system-service.interface.js";
1
+ import type { IFileSystemService } from '../../application/interface/file-system-service.interface';
2
2
  /**
3
3
  * Implementation of the file system service using Node.js fs/promises API.
4
4
  * Provides methods for managing files and directories.
@@ -6,58 +6,57 @@ import type { IFileSystemService } from "../../application/interface/file-system
6
6
  export declare class NodeFileSystemService implements IFileSystemService {
7
7
  /**
8
8
  * Creates a directory at the specified path.
9
- * @param directoryPath - The path to the directory to create
10
- * @param options - Optional configuration for directory creation
11
- * @param options.isRecursive - Whether to create parent directories if they don't exist
12
- * @returns Promise that resolves when the directory is created
9
+ * @param {string} directoryPath - The path to the directory to create
10
+ * @param {{ isRecursive: boolean }} options - Optional configuration for directory creation
11
+ * @param {boolean} options.isRecursive - Whether to create parent directories if they don't exist
12
+ * @returns {Promise<void>} Promise that resolves when the directory is created
13
13
  */
14
14
  createDirectory(directoryPath: string, options?: {
15
15
  isRecursive: boolean;
16
16
  }): Promise<void>;
17
17
  /**
18
18
  * Deletes a file at the specified path.
19
- * @param filePath - The path to the file to delete
20
- * @returns Promise that resolves when the file is deleted
19
+ * @param {string} filePath - The path to the file to delete
20
+ * @returns {Promise<void>} Promise that resolves when the file is deleted
21
21
  */
22
22
  deleteFile(filePath: string): Promise<void>;
23
23
  /**
24
24
  * Gets the directory name from a file path.
25
- * @param filePath
26
- * @returns The directory name
25
+ * @param {string} filePath - The file path to extract the directory from
26
+ * @returns {string} The directory name
27
27
  */
28
28
  getDirectoryNameFromFilePath(filePath: string): string;
29
29
  /**
30
30
  * Gets the extension from a file path.
31
- * @param filePath
32
- * @returns The file extension
31
+ * @param {string} filePath - The file path to extract the extension from
32
+ * @returns {string} The file extension
33
33
  */
34
34
  getExtensionFromFilePath(filePath: string): string;
35
35
  /**
36
36
  * Checks if any of the provided paths exist and returns the first existing path.
37
- * @param paths - Array of paths to check
38
- * @returns Promise that resolves to the first existing path or undefined if none exist
37
+ * @param {Array<string>} paths - Array of paths to check
38
+ * @returns {Promise<string | undefined>} Promise that resolves to the first existing path or undefined if none exist
39
39
  */
40
40
  isOneOfPathsExists(paths: Array<string>): Promise<string | undefined>;
41
41
  /**
42
42
  * Checks if a file or directory exists at the specified path.
43
- * @param filePath - The path to check
44
- * @returns Promise that resolves to true if the path exists, false otherwise
43
+ * @param {string} filePath - The path to check
44
+ * @returns {Promise<boolean>} Promise that resolves to true if the path exists, false otherwise
45
45
  */
46
46
  isPathExists(filePath: string): Promise<boolean>;
47
47
  /**
48
48
  * Reads the contents of a file.
49
- * @param filePath - The path to the file to read
50
- * @param encoding - The encoding to use when reading the file, defaults to "utf8"
51
- * @returns Promise that resolves to the file contents as a string
49
+ * @param {string} filePath - The path to the file to read
50
+ * @param {string} encoding - The encoding to use when reading the file, defaults to "utf8"
51
+ * @returns {Promise<string>} Promise that resolves to the file contents as a string
52
52
  */
53
53
  readFile(filePath: string, encoding?: BufferEncoding): Promise<string>;
54
54
  /**
55
55
  * Writes content to a file, creating the file and parent directories if they don't exist.
56
- * @param filePath - The path to the file to write
57
- * @param content - The content to write to the file
58
- * @param encoding - The encoding to use when writing the file, defaults to "utf8"
59
- * @returns Promise that resolves when the file is written
56
+ * @param {string} filePath - The path to the file to write
57
+ * @param {string} content - The content to write to the file
58
+ * @param {string} encoding - The encoding to use when writing the file, defaults to "utf8"
59
+ * @returns {Promise<void>} Promise that resolves when the file is written
60
60
  */
61
61
  writeFile(filePath: string, content: string, encoding?: BufferEncoding): Promise<void>;
62
62
  }
63
- //# sourceMappingURL=node-file-system.service.d.ts.map