@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,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
@@ -16,13 +16,16 @@ class NodeCommandService {
16
16
  * Allows for async/await usage of command execution.
17
17
  */
18
18
  EXEC_ASYNC = node_util.promisify(node_child_process.exec);
19
+ /**
20
+ * @param {ICliInterfaceService} cliInterfaceService - The CLI interface service for user interactions
21
+ */
19
22
  constructor(cliInterfaceService) {
20
23
  this.CLI_INTERFACE_SERVICE = cliInterfaceService;
21
24
  }
22
25
  /**
23
26
  * Executes a shell command.
24
- * @param command - The shell command to execute
25
- * @returns Promise that resolves when the command completes successfully
27
+ * @param {string} command - The shell command to execute
28
+ * @returns {Promise<void>} Promise that resolves when the command completes successfully
26
29
  * @throws Will throw an error if the command execution fails, except for npm install which offers retry options
27
30
  */
28
31
  async execute(command) {
@@ -43,8 +46,8 @@ class NodeCommandService {
43
46
  }
44
47
  /**
45
48
  * Execute a command and return its output
46
- * @param command - The command to execute
47
- * @returns Promise that resolves to the command output
49
+ * @param {string} command - The command to execute
50
+ * @returns {Promise<string>} Promise that resolves to the command output
48
51
  */
49
52
  async executeWithOutput(command) {
50
53
  try {
@@ -57,10 +60,9 @@ class NodeCommandService {
57
60
  }
58
61
  }
59
62
  /**
60
- * Formate and parse npm error to readable format
61
- * @param command - The original npm command that failed
62
- * @param error - Error npm object
63
- * @returns void
63
+ * Format and parse npm error to readable format
64
+ * @param {string} command - The original npm command that failed
65
+ * @param {INodeError} error - Error npm object
64
66
  */
65
67
  formatAndParseNpmError(command, error) {
66
68
  // Форматируем и выводим ошибку
@@ -112,8 +114,8 @@ class NodeCommandService {
112
114
  }
113
115
  /**
114
116
  * Handles npm install command failures by offering retry options to the user.
115
- * @param originalCommand - The original npm command that failed
116
- * @returns Promise that resolves when the chosen action completes
117
+ * @param {string} originalCommand - The original npm command that failed
118
+ * @returns {Promise<void>} Promise that resolves when the chosen action completes
117
119
  * @throws Will throw an error if the user chooses to cancel or if retried command still fails
118
120
  */
119
121
  async handleNpmInstallFailure(originalCommand) {
@@ -1 +1 @@
1
- {"version":3,"file":"node-command.service.js","sources":["../../../../../src/infrastructure/service/node-command.service.ts"],"sourcesContent":[null],"names":["promisify","exec"],"mappings":";;;;;;AAkBA;;;AAGG;MACU,kBAAkB,CAAA;;AAErB,IAAA,qBAAqB;AAE9B;;;AAGG;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AAE,OAAO,EAAE;AAC/C,YAAA,EAAE,KAAK,EAAE,+BAA+B,EAAE,KAAK,EAAE,kBAAkB,EAAE;AACrE,YAAA,EAAE,KAAK,EAAE,0BAA0B,EAAE,KAAK,EAAE,QAAQ,EAAE;SACtD;AAED,QAAA,MAAM,MAAM,GAAW,MAAM,IAAI,CAAC,qBAAqB,CAAC,MAAM,CAAS,gCAAgC,EAAE,OAAO,CAAC;QAEjH,QAAQ,MAAM;YACb,KAAK,OAAO,EAAE;AACb,gBAAA,IAAI,CAAC,qBAAqB,CAAC,IAAI,CAAC,+BAA+B,CAAC;gBAChE,MAAM,IAAI,CAAC,UAAU,CAAC,GAAG,eAAe,CAAA,QAAA,CAAU,CAAC;AACnD,gBAAA,IAAI,CAAC,qBAAqB,CAAC,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":["promisify","exec"],"mappings":";;;;;;AAkBA;;;AAGG;MACU,kBAAkB,CAAA;;AAErB,IAAA,qBAAqB;AAE9B;;;AAGG;AACc,IAAA,UAAU,GAAuEA,mBAAS,CAACC,uBAAI,CAAC;AAEjH;;AA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A+B,EAAE,KAAK,EAAE,kBAAkB,EAAE;AACrE,YAAA,EAAE,KAAK,EAAE,0BAA0B,EAAE,KAAK,EAAE,QAAQ,EAAE;SACtD;AAED,QAAA,MAAM,MAAM,GAAW,MAAM,IAAI,CAAC,qBAAqB,CAAC,MAAM,CAAS,gCAAgC,EAAE,OAAO,CAAC;QAEjH,QAAQ,MAAM;YACb,KAAK,OAAO,EAAE;AACb,gBAAA,IAAI,CAAC,qBAAqB,CAAC,IAAI,CAAC,+BAA+B,CAAC;gBAChE,MAAM,IAAI,CAAC,UAAU,CAAC,GAAG,eAAe,CAAA,QAAA,CAAU,CAAC;AACnD,gBAAA,IAAI,CAAC,qBAAqB,CAAC,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,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
@@ -10,10 +10,10 @@ var path = require('node:path');
10
10
  class NodeFileSystemService {
11
11
  /**
12
12
  * Creates a directory at the specified path.
13
- * @param directoryPath - The path to the directory to create
14
- * @param options - Optional configuration for directory creation
15
- * @param options.isRecursive - Whether to create parent directories if they don't exist
16
- * @returns Promise that resolves when the directory is created
13
+ * @param {string} directoryPath - The path to the directory to create
14
+ * @param {{ isRecursive: boolean }} options - Optional configuration for directory creation
15
+ * @param {boolean} options.isRecursive - Whether to create parent directories if they don't exist
16
+ * @returns {Promise<void>} Promise that resolves when the directory is created
17
17
  */
18
18
  async createDirectory(directoryPath, options) {
19
19
  directoryPath = path.dirname(directoryPath);
@@ -22,32 +22,32 @@ class NodeFileSystemService {
22
22
  }
23
23
  /**
24
24
  * Deletes a file at the specified path.
25
- * @param filePath - The path to the file to delete
26
- * @returns Promise that resolves when the file is deleted
25
+ * @param {string} filePath - The path to the file to delete
26
+ * @returns {Promise<void>} Promise that resolves when the file is deleted
27
27
  */
28
28
  async deleteFile(filePath) {
29
29
  await fs.unlink(filePath);
30
30
  }
31
31
  /**
32
32
  * Gets the directory name from a file path.
33
- * @param filePath
34
- * @returns The directory name
33
+ * @param {string} filePath - The file path to extract the directory from
34
+ * @returns {string} The directory name
35
35
  */
36
36
  getDirectoryNameFromFilePath(filePath) {
37
37
  return path.dirname(filePath);
38
38
  }
39
39
  /**
40
40
  * Gets the extension from a file path.
41
- * @param filePath
42
- * @returns The file extension
41
+ * @param {string} filePath - The file path to extract the extension from
42
+ * @returns {string} The file extension
43
43
  */
44
44
  getExtensionFromFilePath(filePath) {
45
45
  return path.extname(filePath);
46
46
  }
47
47
  /**
48
48
  * Checks if any of the provided paths exist and returns the first existing path.
49
- * @param paths - Array of paths to check
50
- * @returns Promise that resolves to the first existing path or undefined if none exist
49
+ * @param {Array<string>} paths - Array of paths to check
50
+ * @returns {Promise<string | undefined>} Promise that resolves to the first existing path or undefined if none exist
51
51
  */
52
52
  async isOneOfPathsExists(paths) {
53
53
  let existingFilePath = undefined;
@@ -61,8 +61,8 @@ class NodeFileSystemService {
61
61
  }
62
62
  /**
63
63
  * Checks if a file or directory exists at the specified path.
64
- * @param filePath - The path to check
65
- * @returns Promise that resolves to true if the path exists, false otherwise
64
+ * @param {string} filePath - The path to check
65
+ * @returns {Promise<boolean>} Promise that resolves to true if the path exists, false otherwise
66
66
  */
67
67
  async isPathExists(filePath) {
68
68
  try {
@@ -75,9 +75,9 @@ class NodeFileSystemService {
75
75
  }
76
76
  /**
77
77
  * Reads the contents of a file.
78
- * @param filePath - The path to the file to read
79
- * @param encoding - The encoding to use when reading the file, defaults to "utf8"
80
- * @returns Promise that resolves to the file contents as a string
78
+ * @param {string} filePath - The path to the file to read
79
+ * @param {string} encoding - The encoding to use when reading the file, defaults to "utf8"
80
+ * @returns {Promise<string>} Promise that resolves to the file contents as a string
81
81
  */
82
82
  // eslint-disable-next-line @elsikora/javascript/no-undef
83
83
  async readFile(filePath, encoding = "utf8") {
@@ -85,10 +85,10 @@ class NodeFileSystemService {
85
85
  }
86
86
  /**
87
87
  * Writes content to a file, creating the file and parent directories if they don't exist.
88
- * @param filePath - The path to the file to write
89
- * @param content - The content to write to the file
90
- * @param encoding - The encoding to use when writing the file, defaults to "utf8"
91
- * @returns Promise that resolves when the file is written
88
+ * @param {string} filePath - The path to the file to write
89
+ * @param {string} content - The content to write to the file
90
+ * @param {string} encoding - The encoding to use when writing the file, defaults to "utf8"
91
+ * @returns {Promise<void>} Promise that resolves when the file is written
92
92
  */
93
93
  // eslint-disable-next-line @elsikora/javascript/no-undef
94
94
  async writeFile(filePath, content, encoding = "utf8") {
@@ -1,5 +1,5 @@
1
- import type { ICliInterfaceServiceSelectOptions } from "../../application/interface/cli-interface-service-select-options.interface.js";
2
- import type { ICliInterfaceService } from "../../application/interface/cli-interface-service.interface.js";
1
+ import type { ICliInterfaceServiceSelectOptions } from '../../application/interface/cli-interface-service-select-options.interface';
2
+ import type { ICliInterfaceService } from '../../application/interface/cli-interface-service.interface';
3
3
  /**
4
4
  * Implementation of the CLI interface service using the prompts library.
5
5
  * Provides methods for interacting with the user through the command line.
@@ -18,98 +18,100 @@ export declare class PromptsCliInterface implements ICliInterfaceService {
18
18
  clear(): void;
19
19
  /**
20
20
  * Displays a confirmation prompt to the user.
21
- * @param message - The message to display to the user
22
- * @param isConfirmedByDefault - The default value for the confirmation, defaults to false
23
- * @returns Promise that resolves to the user's response (true for confirmed, false for declined)
21
+ * @param {string} message - The message to display to the user
22
+ * @param {boolean} isConfirmedByDefault - The default value for the confirmation, defaults to false
23
+ * @returns {Promise<boolean>} Promise that resolves to the user's response (true for confirmed, false for declined)
24
24
  */
25
25
  confirm(message: string, isConfirmedByDefault?: boolean): Promise<boolean>;
26
26
  /**
27
27
  * Displays an error message to the user.
28
- * @param message - The error message to display
28
+ * @param {string} message - The error message to display
29
29
  */
30
30
  error(message: string): void;
31
31
  /**
32
32
  * Displays a grouped multi-select prompt to the user.
33
- * @param message - The message to display to the user
34
- * @param options - Record of groups and their options
35
- * @param isRequired - Whether a selection is required, defaults to false
36
- * @param initialValues - Initial selected values
37
- * @returns Promise that resolves to an array of selected values
33
+ * @param {string} message - The message to display to the user
34
+ * @param {Record<string, Array<ICliInterfaceServiceSelectOptions>>} options - Record of groups and their options
35
+ * @param {boolean} isRequired - Whether a selection is required, defaults to false
36
+ * @param {Array<string>} initialValues - Initial selected values
37
+ * @returns {Promise<Array<T>>} Promise that resolves to an array of selected values
38
+ * @template T - The type of the selected values
38
39
  */
39
40
  groupMultiselect<T>(message: string, options: Record<string, Array<ICliInterfaceServiceSelectOptions>>, isRequired?: boolean, initialValues?: Array<string>): Promise<Array<T>>;
40
41
  /**
41
42
  * Handles and displays an error message with additional error details.
42
- * @param message - The error message to display
43
- * @param error - The error object or details
43
+ * @param {string} message - The error message to display
44
+ * @param {unknown} error - The error object or details
44
45
  */
45
46
  handleError(message: string, error: unknown): void;
46
47
  /**
47
48
  * Displays an informational message to the user.
48
- * @param message - The info message to display
49
+ * @param {string} message - The info message to display
49
50
  */
50
51
  info(message: string): void;
51
52
  /**
52
53
  * Displays a standard message to the user.
53
- * @param message - The message to display
54
+ * @param {string} message - The message to display
54
55
  */
55
56
  log(message: string): void;
56
57
  /**
57
58
  * Displays a multi-select prompt to the user.
58
- * @param message - The message to display to the user
59
- * @param options - Array of options to select from
60
- * @param isRequired - Whether a selection is required, defaults to false
61
- * @param initialValues - Initial selected values
62
- * @returns Promise that resolves to an array of selected values
59
+ * @param {string} message - The message to display to the user
60
+ * @param {Array<ICliInterfaceServiceSelectOptions>} options - Array of options to select from
61
+ * @param {boolean} isRequired - Whether a selection is required, defaults to false
62
+ * @param {Array<string>} initialValues - Initial selected values
63
+ * @returns {Promise<Array<T>>} Promise that resolves to an array of selected values
64
+ * @template T - The type of the selected values
63
65
  */
64
66
  multiselect<T>(message: string, options: Array<ICliInterfaceServiceSelectOptions>, isRequired?: boolean, initialValues?: Array<string>): Promise<Array<T>>;
65
67
  /**
66
68
  * Displays a note to the user with a title and message.
67
- * @param title - The title of the note
68
- * @param message - The message content of the note
69
+ * @param {string} title - The title of the note
70
+ * @param {string} message - The message content of the note
69
71
  */
70
72
  note(title: string, message: string): void;
71
73
  /**
72
74
  * Displays a single select prompt to the user.
73
- * @param message - The message to display to the user
74
- * @param options - Array of options to select from
75
- * @param initialValue - Initial selected value
76
- * @returns Promise that resolves to the selected value
75
+ * @param {string} message - The message to display to the user
76
+ * @param {Array<ICliInterfaceServiceSelectOptions>} options - Array of options to select from
77
+ * @param {string} initialValue - Initial selected value
78
+ * @returns {Promise<T>} Promise that resolves to the selected value
79
+ * @template T - The type of the selected value
77
80
  */
78
81
  select<T>(message: string, options: Array<ICliInterfaceServiceSelectOptions>, initialValue?: string): Promise<T>;
79
82
  /**
80
83
  * Starts a spinner with the specified message.
81
84
  * Stops any existing spinner first.
82
- * @param message - The message to display while the spinner is active
85
+ * @param {string} message - The message to display while the spinner is active
83
86
  */
84
87
  startSpinner(message: string): void;
85
88
  /**
86
89
  * Stops the current spinner with an optional completion message.
87
- * @param message - Optional message to display when the spinner stops
90
+ * @param {string} message - Optional message to display when the spinner stops
88
91
  */
89
92
  stopSpinner(message?: string): void;
90
93
  /**
91
94
  * Displays a success message to the user.
92
- * @param message - The success message to display
95
+ * @param {string} message - The success message to display
93
96
  */
94
97
  success(message: string): void;
95
98
  /**
96
99
  * Displays a text input prompt to the user.
97
- * @param message - The message to display to the user
98
- * @param placeholder - Optional placeholder text for the input field
99
- * @param initialValue - Optional initial value for the input field
100
- * @param validate - Optional validation function for the input
101
- * @returns Promise that resolves to the user's input text
100
+ * @param {string} message - The message to display to the user
101
+ * @param {string} _placeholder - Optional placeholder text for the input field (unused)
102
+ * @param {string} initialValue - Optional initial value for the input field
103
+ * @param {(value: string) => Error | string | undefined} validate - Optional validation function for the input
104
+ * @returns {Promise<string>} Promise that resolves to the user's input text
102
105
  */
103
106
  text(message: string, _placeholder?: string, initialValue?: string, validate?: (value: string) => Error | string | undefined): Promise<string>;
104
107
  /**
105
108
  * Update the spinner message without stopping it.
106
- * @param message - The new message to display
109
+ * @param {string} message - The new message to display
107
110
  */
108
111
  updateSpinner(message: string): void;
109
112
  /**
110
113
  * Displays a warning message to the user.
111
- * @param message - The warning message to display
114
+ * @param {string} message - The warning message to display
112
115
  */
113
116
  warn(message: string): void;
114
117
  }
115
- //# sourceMappingURL=prompts-cli-interface.service.d.ts.map
@@ -27,9 +27,9 @@ class PromptsCliInterface {
27
27
  }
28
28
  /**
29
29
  * Displays a confirmation prompt to the user.
30
- * @param message - The message to display to the user
31
- * @param isConfirmedByDefault - The default value for the confirmation, defaults to false
32
- * @returns Promise that resolves to the user's response (true for confirmed, false for declined)
30
+ * @param {string} message - The message to display to the user
31
+ * @param {boolean} isConfirmedByDefault - The default value for the confirmation, defaults to false
32
+ * @returns {Promise<boolean>} Promise that resolves to the user's response (true for confirmed, false for declined)
33
33
  */
34
34
  async confirm(message, isConfirmedByDefault = false) {
35
35
  try {
@@ -55,18 +55,19 @@ class PromptsCliInterface {
55
55
  }
56
56
  /**
57
57
  * Displays an error message to the user.
58
- * @param message - The error message to display
58
+ * @param {string} message - The error message to display
59
59
  */
60
60
  error(message) {
61
61
  process.stderr.write(`${chalk.red(message)}\n`);
62
62
  }
63
63
  /**
64
64
  * Displays a grouped multi-select prompt to the user.
65
- * @param message - The message to display to the user
66
- * @param options - Record of groups and their options
67
- * @param isRequired - Whether a selection is required, defaults to false
68
- * @param initialValues - Initial selected values
69
- * @returns Promise that resolves to an array of selected values
65
+ * @param {string} message - The message to display to the user
66
+ * @param {Record<string, Array<ICliInterfaceServiceSelectOptions>>} options - Record of groups and their options
67
+ * @param {boolean} isRequired - Whether a selection is required, defaults to false
68
+ * @param {Array<string>} initialValues - Initial selected values
69
+ * @returns {Promise<Array<T>>} Promise that resolves to an array of selected values
70
+ * @template T - The type of the selected values
70
71
  */
71
72
  async groupMultiselect(message, options, isRequired = false, initialValues) {
72
73
  // Convert options to a flat array with group prefixes
@@ -105,8 +106,8 @@ class PromptsCliInterface {
105
106
  }
106
107
  /**
107
108
  * Handles and displays an error message with additional error details.
108
- * @param message - The error message to display
109
- * @param error - The error object or details
109
+ * @param {string} message - The error message to display
110
+ * @param {unknown} error - The error object or details
110
111
  */
111
112
  handleError(message, error) {
112
113
  process.stderr.write(`${chalk.red(message)}\n`);
@@ -114,25 +115,26 @@ class PromptsCliInterface {
114
115
  }
115
116
  /**
116
117
  * Displays an informational message to the user.
117
- * @param message - The info message to display
118
+ * @param {string} message - The info message to display
118
119
  */
119
120
  info(message) {
120
121
  process.stdout.write(`${chalk.blue(message)}\n`);
121
122
  }
122
123
  /**
123
124
  * Displays a standard message to the user.
124
- * @param message - The message to display
125
+ * @param {string} message - The message to display
125
126
  */
126
127
  log(message) {
127
128
  process.stdout.write(`${message}\n`);
128
129
  }
129
130
  /**
130
131
  * Displays a multi-select prompt to the user.
131
- * @param message - The message to display to the user
132
- * @param options - Array of options to select from
133
- * @param isRequired - Whether a selection is required, defaults to false
134
- * @param initialValues - Initial selected values
135
- * @returns Promise that resolves to an array of selected values
132
+ * @param {string} message - The message to display to the user
133
+ * @param {Array<ICliInterfaceServiceSelectOptions>} options - Array of options to select from
134
+ * @param {boolean} isRequired - Whether a selection is required, defaults to false
135
+ * @param {Array<string>} initialValues - Initial selected values
136
+ * @returns {Promise<Array<T>>} Promise that resolves to an array of selected values
137
+ * @template T - The type of the selected values
136
138
  */
137
139
  async multiselect(message, options, isRequired = false, initialValues) {
138
140
  // eslint-disable-next-line @elsikora/typescript/naming-convention
@@ -165,8 +167,8 @@ class PromptsCliInterface {
165
167
  }
166
168
  /**
167
169
  * Displays a note to the user with a title and message.
168
- * @param title - The title of the note
169
- * @param message - The message content of the note
170
+ * @param {string} title - The title of the note
171
+ * @param {string} message - The message content of the note
170
172
  */
171
173
  note(title, message) {
172
174
  const lines = message.split("\n");
@@ -195,10 +197,11 @@ class PromptsCliInterface {
195
197
  }
196
198
  /**
197
199
  * Displays a single select prompt to the user.
198
- * @param message - The message to display to the user
199
- * @param options - Array of options to select from
200
- * @param initialValue - Initial selected value
201
- * @returns Promise that resolves to the selected value
200
+ * @param {string} message - The message to display to the user
201
+ * @param {Array<ICliInterfaceServiceSelectOptions>} options - Array of options to select from
202
+ * @param {string} initialValue - Initial selected value
203
+ * @returns {Promise<T>} Promise that resolves to the selected value
204
+ * @template T - The type of the selected value
202
205
  */
203
206
  async select(message, options, initialValue) {
204
207
  const choices = options.map((opt) => ({
@@ -228,7 +231,7 @@ class PromptsCliInterface {
228
231
  /**
229
232
  * Starts a spinner with the specified message.
230
233
  * Stops any existing spinner first.
231
- * @param message - The message to display while the spinner is active
234
+ * @param {string} message - The message to display while the spinner is active
232
235
  */
233
236
  startSpinner(message) {
234
237
  this.spinner.stop();
@@ -236,7 +239,7 @@ class PromptsCliInterface {
236
239
  }
237
240
  /**
238
241
  * Stops the current spinner with an optional completion message.
239
- * @param message - Optional message to display when the spinner stops
242
+ * @param {string} message - Optional message to display when the spinner stops
240
243
  */
241
244
  stopSpinner(message) {
242
245
  this.spinner.stop();
@@ -246,18 +249,18 @@ class PromptsCliInterface {
246
249
  }
247
250
  /**
248
251
  * Displays a success message to the user.
249
- * @param message - The success message to display
252
+ * @param {string} message - The success message to display
250
253
  */
251
254
  success(message) {
252
255
  process.stdout.write(`${chalk.green(message)}\n`);
253
256
  }
254
257
  /**
255
258
  * Displays a text input prompt to the user.
256
- * @param message - The message to display to the user
257
- * @param placeholder - Optional placeholder text for the input field
258
- * @param initialValue - Optional initial value for the input field
259
- * @param validate - Optional validation function for the input
260
- * @returns Promise that resolves to the user's input text
259
+ * @param {string} message - The message to display to the user
260
+ * @param {string} _placeholder - Optional placeholder text for the input field (unused)
261
+ * @param {string} initialValue - Optional initial value for the input field
262
+ * @param {(value: string) => Error | string | undefined} validate - Optional validation function for the input
263
+ * @returns {Promise<string>} Promise that resolves to the user's input text
261
264
  */
262
265
  async text(message, _placeholder, initialValue, validate) {
263
266
  // Convert the validate function to match prompts' expected format
@@ -295,7 +298,7 @@ class PromptsCliInterface {
295
298
  }
296
299
  /**
297
300
  * Update the spinner message without stopping it.
298
- * @param message - The new message to display
301
+ * @param {string} message - The new message to display
299
302
  */
300
303
  updateSpinner(message) {
301
304
  if (this.spinner?.isSpinning) {
@@ -304,7 +307,7 @@ class PromptsCliInterface {
304
307
  }
305
308
  /**
306
309
  * Displays a warning message to the user.
307
- * @param message - The warning message to display
310
+ * @param {string} message - The warning message to display
308
311
  */
309
312
  warn(message) {
310
313
  process.stdout.write(`${chalk.yellow(message)}\n`);