@zuplo/cli 7.13.3 → 7.13.4

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 (858) hide show
  1. package/dist/cmds/lint.d.ts.map +1 -1
  2. package/dist/cmds/lint.js +0 -5
  3. package/dist/cmds/lint.js.map +1 -1
  4. package/dist/lint/handler.d.ts.map +1 -1
  5. package/dist/lint/handler.js +9 -0
  6. package/dist/lint/handler.js.map +1 -1
  7. package/node_modules/@simple-git/argv-parser/LICENSE +20 -0
  8. package/node_modules/@simple-git/argv-parser/dist/index.cjs +1 -1
  9. package/node_modules/@simple-git/argv-parser/dist/index.cjs.map +1 -1
  10. package/node_modules/@simple-git/argv-parser/dist/index.d.ts +2 -1
  11. package/node_modules/@simple-git/argv-parser/dist/index.d.ts.map +1 -0
  12. package/node_modules/@simple-git/argv-parser/dist/index.mjs +244 -198
  13. package/node_modules/@simple-git/argv-parser/dist/index.mjs.map +1 -1
  14. package/node_modules/@simple-git/argv-parser/dist/src/args/parse-argv.d.ts +1 -0
  15. package/node_modules/@simple-git/argv-parser/dist/src/args/parse-argv.d.ts.map +1 -0
  16. package/node_modules/@simple-git/argv-parser/dist/src/args/parse-argv.types.d.ts +1 -0
  17. package/node_modules/@simple-git/argv-parser/dist/src/args/parse-argv.types.d.ts.map +1 -0
  18. package/node_modules/@simple-git/argv-parser/dist/src/config/analyse-config.d.ts +1 -0
  19. package/node_modules/@simple-git/argv-parser/dist/src/config/analyse-config.d.ts.map +1 -0
  20. package/node_modules/@simple-git/argv-parser/dist/src/config/config-operands.d.ts +1 -0
  21. package/node_modules/@simple-git/argv-parser/dist/src/config/config-operands.d.ts.map +1 -0
  22. package/node_modules/@simple-git/argv-parser/dist/src/config/config.types.d.ts +1 -0
  23. package/node_modules/@simple-git/argv-parser/dist/src/config/config.types.d.ts.map +1 -0
  24. package/node_modules/@simple-git/argv-parser/dist/src/config/detect-config-action.d.ts +1 -0
  25. package/node_modules/@simple-git/argv-parser/dist/src/config/detect-config-action.d.ts.map +1 -0
  26. package/node_modules/@simple-git/argv-parser/dist/src/env/parse-env.d.ts +25 -0
  27. package/node_modules/@simple-git/argv-parser/dist/src/env/parse-env.d.ts.map +1 -0
  28. package/node_modules/@simple-git/argv-parser/dist/src/flags/flags.helpers.d.ts +1 -0
  29. package/node_modules/@simple-git/argv-parser/dist/src/flags/flags.helpers.d.ts.map +1 -0
  30. package/node_modules/@simple-git/argv-parser/dist/src/flags/parse-global-flags.d.ts +1 -0
  31. package/node_modules/@simple-git/argv-parser/dist/src/flags/parse-global-flags.d.ts.map +1 -0
  32. package/node_modules/@simple-git/argv-parser/dist/src/flags/parse-task-flags.d.ts +1 -0
  33. package/node_modules/@simple-git/argv-parser/dist/src/flags/parse-task-flags.d.ts.map +1 -0
  34. package/node_modules/@simple-git/argv-parser/dist/src/tokens/flag-specs.d.ts +1 -0
  35. package/node_modules/@simple-git/argv-parser/dist/src/tokens/flag-specs.d.ts.map +1 -0
  36. package/node_modules/@simple-git/argv-parser/dist/src/tokens/token-expander.d.ts +1 -0
  37. package/node_modules/@simple-git/argv-parser/dist/src/tokens/token-expander.d.ts.map +1 -0
  38. package/node_modules/@simple-git/argv-parser/dist/src/vulnerabilities/detect-vulnerable-config-writes.d.ts +1 -0
  39. package/node_modules/@simple-git/argv-parser/dist/src/vulnerabilities/detect-vulnerable-config-writes.d.ts.map +1 -0
  40. package/node_modules/@simple-git/argv-parser/dist/src/vulnerabilities/detect-vulnerable-flags.d.ts +1 -0
  41. package/node_modules/@simple-git/argv-parser/dist/src/vulnerabilities/detect-vulnerable-flags.d.ts.map +1 -0
  42. package/node_modules/@simple-git/argv-parser/dist/src/vulnerabilities/vulnerability-analysis.d.ts +1 -0
  43. package/node_modules/@simple-git/argv-parser/dist/src/vulnerabilities/vulnerability-analysis.d.ts.map +1 -0
  44. package/node_modules/@simple-git/argv-parser/dist/src/vulnerabilities/vulnerability-check.d.ts +1 -0
  45. package/node_modules/@simple-git/argv-parser/dist/src/vulnerabilities/vulnerability-check.d.ts.map +1 -0
  46. package/node_modules/@simple-git/argv-parser/dist/src/vulnerabilities/vulnerability.types.d.ts +29 -0
  47. package/node_modules/@simple-git/argv-parser/dist/src/vulnerabilities/vulnerability.types.d.ts.map +1 -0
  48. package/node_modules/@simple-git/argv-parser/package.json +2 -2
  49. package/node_modules/@zuplo/core/customer.cli.minified.js +344 -344
  50. package/node_modules/@zuplo/core/index.minified.js +359 -359
  51. package/node_modules/@zuplo/core/package.json +1 -1
  52. package/node_modules/@zuplo/graphql/package.json +1 -1
  53. package/node_modules/@zuplo/openapi-tools/package.json +2 -2
  54. package/node_modules/@zuplo/otel/package.json +1 -1
  55. package/node_modules/@zuplo/runtime/out/esm/{chunk-DVFQRFED.js → chunk-NWYAKCSU.js} +81 -81
  56. package/node_modules/@zuplo/runtime/out/esm/chunk-NWYAKCSU.js.map +1 -0
  57. package/node_modules/@zuplo/runtime/out/esm/chunk-PXS4NOKU.js +102 -0
  58. package/node_modules/@zuplo/runtime/out/esm/chunk-PXS4NOKU.js.map +1 -0
  59. package/node_modules/@zuplo/runtime/out/esm/index.js +1 -1
  60. package/node_modules/@zuplo/runtime/out/esm/mcp-gateway/index.js +1 -1
  61. package/node_modules/@zuplo/runtime/out/esm/mocks/index.js +1 -1
  62. package/node_modules/@zuplo/runtime/out/esm/sdks/aws/index.js +1 -1
  63. package/node_modules/@zuplo/runtime/package.json +2 -2
  64. package/node_modules/simple-git/LICENSE +20 -0
  65. package/node_modules/simple-git/dist/index.cjs +6 -0
  66. package/node_modules/simple-git/dist/index.cjs.map +1 -0
  67. package/node_modules/simple-git/dist/index.d.ts +5 -0
  68. package/node_modules/simple-git/dist/index.d.ts.map +1 -0
  69. package/node_modules/simple-git/dist/index.mjs +2895 -0
  70. package/node_modules/simple-git/dist/index.mjs.map +1 -0
  71. package/node_modules/simple-git/dist/src/lib/api.d.ts +13 -13
  72. package/node_modules/simple-git/dist/src/lib/api.d.ts.map +1 -0
  73. package/node_modules/simple-git/dist/src/lib/args/log-format.d.ts +1 -0
  74. package/node_modules/simple-git/dist/src/lib/args/log-format.d.ts.map +1 -0
  75. package/node_modules/simple-git/dist/src/lib/errors/git-configuration-error.d.ts +25 -0
  76. package/node_modules/simple-git/dist/src/lib/errors/git-configuration-error.d.ts.map +1 -0
  77. package/node_modules/simple-git/dist/src/lib/errors/git-construct-error.d.ts +2 -1
  78. package/node_modules/simple-git/dist/src/lib/errors/git-construct-error.d.ts.map +1 -0
  79. package/node_modules/simple-git/dist/src/lib/errors/git-error.d.ts +3 -2
  80. package/node_modules/simple-git/dist/src/lib/errors/git-error.d.ts.map +1 -0
  81. package/node_modules/simple-git/dist/src/lib/errors/git-plugin-error.d.ts +2 -1
  82. package/node_modules/simple-git/dist/src/lib/errors/git-plugin-error.d.ts.map +1 -0
  83. package/node_modules/simple-git/dist/src/lib/errors/git-response-error.d.ts +3 -2
  84. package/node_modules/simple-git/dist/src/lib/errors/git-response-error.d.ts.map +1 -0
  85. package/node_modules/simple-git/dist/src/lib/errors/task-configuration-error.d.ts +1 -0
  86. package/node_modules/simple-git/dist/src/lib/errors/task-configuration-error.d.ts.map +1 -0
  87. package/node_modules/simple-git/dist/src/lib/git-factory.d.ts +3 -15
  88. package/node_modules/simple-git/dist/src/lib/git-factory.d.ts.map +1 -0
  89. package/node_modules/simple-git/dist/src/lib/git-logger.d.ts +2 -1
  90. package/node_modules/simple-git/dist/src/lib/git-logger.d.ts.map +1 -0
  91. package/node_modules/simple-git/dist/src/lib/parsers/parse-branch-delete.d.ts +3 -2
  92. package/node_modules/simple-git/dist/src/lib/parsers/parse-branch-delete.d.ts.map +1 -0
  93. package/node_modules/simple-git/dist/src/lib/parsers/parse-branch.d.ts +2 -1
  94. package/node_modules/simple-git/dist/src/lib/parsers/parse-branch.d.ts.map +1 -0
  95. package/node_modules/simple-git/dist/src/lib/{responses/CleanSummary.d.ts → parsers/parse-clean.d.ts} +5 -4
  96. package/node_modules/simple-git/dist/src/lib/parsers/parse-clean.d.ts.map +1 -0
  97. package/node_modules/simple-git/dist/src/lib/parsers/parse-commit.d.ts +2 -1
  98. package/node_modules/simple-git/dist/src/lib/parsers/parse-commit.d.ts.map +1 -0
  99. package/node_modules/simple-git/dist/src/lib/parsers/parse-diff-summary.d.ts +1 -0
  100. package/node_modules/simple-git/dist/src/lib/parsers/parse-diff-summary.d.ts.map +1 -0
  101. package/node_modules/simple-git/dist/src/lib/parsers/parse-fetch.d.ts +2 -1
  102. package/node_modules/simple-git/dist/src/lib/parsers/parse-fetch.d.ts.map +1 -0
  103. package/node_modules/simple-git/dist/src/lib/parsers/parse-list-log-summary.d.ts +2 -1
  104. package/node_modules/simple-git/dist/src/lib/parsers/parse-list-log-summary.d.ts.map +1 -0
  105. package/node_modules/simple-git/dist/src/lib/parsers/parse-merge.d.ts +3 -2
  106. package/node_modules/simple-git/dist/src/lib/parsers/parse-merge.d.ts.map +1 -0
  107. package/node_modules/simple-git/dist/src/lib/parsers/parse-move.d.ts +2 -1
  108. package/node_modules/simple-git/dist/src/lib/parsers/parse-move.d.ts.map +1 -0
  109. package/node_modules/simple-git/dist/src/lib/parsers/parse-pull.d.ts +3 -2
  110. package/node_modules/simple-git/dist/src/lib/parsers/parse-pull.d.ts.map +1 -0
  111. package/node_modules/simple-git/dist/src/lib/parsers/parse-push.d.ts +3 -2
  112. package/node_modules/simple-git/dist/src/lib/parsers/parse-push.d.ts.map +1 -0
  113. package/node_modules/simple-git/dist/src/lib/parsers/parse-remote-messages.d.ts +2 -1
  114. package/node_modules/simple-git/dist/src/lib/parsers/parse-remote-messages.d.ts.map +1 -0
  115. package/node_modules/simple-git/dist/src/lib/parsers/parse-remote-objects.d.ts +2 -1
  116. package/node_modules/simple-git/dist/src/lib/parsers/parse-remote-objects.d.ts.map +1 -0
  117. package/node_modules/simple-git/dist/src/lib/plugins/abort-plugin.d.ts +3 -2
  118. package/node_modules/simple-git/dist/src/lib/plugins/abort-plugin.d.ts.map +1 -0
  119. package/node_modules/simple-git/dist/src/lib/plugins/allow-environment.plugin.d.ts +3 -0
  120. package/node_modules/simple-git/dist/src/lib/plugins/allow-environment.plugin.d.ts.map +1 -0
  121. package/node_modules/simple-git/dist/src/lib/plugins/block-unsafe-operations-plugin.d.ts +1 -0
  122. package/node_modules/simple-git/dist/src/lib/plugins/block-unsafe-operations-plugin.d.ts.map +1 -0
  123. package/node_modules/simple-git/dist/src/lib/plugins/command-config-prefixing-plugin.d.ts +2 -1
  124. package/node_modules/simple-git/dist/src/lib/plugins/command-config-prefixing-plugin.d.ts.map +1 -0
  125. package/node_modules/simple-git/dist/src/lib/plugins/completion-detection.plugin.d.ts +3 -2
  126. package/node_modules/simple-git/dist/src/lib/plugins/completion-detection.plugin.d.ts.map +1 -0
  127. package/node_modules/simple-git/dist/src/lib/plugins/custom-binary.plugin.d.ts +2 -1
  128. package/node_modules/simple-git/dist/src/lib/plugins/custom-binary.plugin.d.ts.map +1 -0
  129. package/node_modules/simple-git/dist/src/lib/plugins/error-detection.plugin.d.ts +3 -2
  130. package/node_modules/simple-git/dist/src/lib/plugins/error-detection.plugin.d.ts.map +1 -0
  131. package/node_modules/simple-git/dist/src/lib/plugins/index.d.ts +5 -1
  132. package/node_modules/simple-git/dist/src/lib/plugins/index.d.ts.map +1 -0
  133. package/node_modules/simple-git/dist/src/lib/plugins/input.plugin.d.ts +4 -0
  134. package/node_modules/simple-git/dist/src/lib/plugins/input.plugin.d.ts.map +1 -0
  135. package/node_modules/simple-git/dist/src/lib/plugins/plugin-store.d.ts +2 -1
  136. package/node_modules/simple-git/dist/src/lib/plugins/plugin-store.d.ts.map +1 -0
  137. package/node_modules/simple-git/dist/src/lib/plugins/progress-monitor-plugin.d.ts +3 -2
  138. package/node_modules/simple-git/dist/src/lib/plugins/progress-monitor-plugin.d.ts.map +1 -0
  139. package/node_modules/simple-git/dist/src/lib/plugins/simple-git-plugin.d.ts +8 -4
  140. package/node_modules/simple-git/dist/src/lib/plugins/simple-git-plugin.d.ts.map +1 -0
  141. package/node_modules/simple-git/dist/src/lib/plugins/spawn-options-plugin.d.ts +3 -2
  142. package/node_modules/simple-git/dist/src/lib/plugins/spawn-options-plugin.d.ts.map +1 -0
  143. package/node_modules/simple-git/dist/src/lib/plugins/suffix-paths.plugin.d.ts +2 -1
  144. package/node_modules/simple-git/dist/src/lib/plugins/suffix-paths.plugin.d.ts.map +1 -0
  145. package/node_modules/simple-git/dist/src/lib/plugins/{timout-plugin.d.ts → timeout-plugin.d.ts} +2 -1
  146. package/node_modules/simple-git/dist/src/lib/plugins/timeout-plugin.d.ts.map +1 -0
  147. package/node_modules/simple-git/dist/src/lib/responses/BranchDeleteSummary.d.ts +2 -1
  148. package/node_modules/simple-git/dist/src/lib/responses/BranchDeleteSummary.d.ts.map +1 -0
  149. package/node_modules/simple-git/dist/src/lib/responses/BranchSummary.d.ts +2 -1
  150. package/node_modules/simple-git/dist/src/lib/responses/BranchSummary.d.ts.map +1 -0
  151. package/node_modules/simple-git/dist/src/lib/responses/ConfigList.d.ts +2 -1
  152. package/node_modules/simple-git/dist/src/lib/responses/ConfigList.d.ts.map +1 -0
  153. package/node_modules/simple-git/dist/src/lib/responses/DiffSummary.d.ts +2 -1
  154. package/node_modules/simple-git/dist/src/lib/responses/DiffSummary.d.ts.map +1 -0
  155. package/node_modules/simple-git/dist/src/lib/responses/FileStatusSummary.d.ts +2 -1
  156. package/node_modules/simple-git/dist/src/lib/responses/FileStatusSummary.d.ts.map +1 -0
  157. package/node_modules/simple-git/dist/src/lib/responses/GetRemoteSummary.d.ts +1 -0
  158. package/node_modules/simple-git/dist/src/lib/responses/GetRemoteSummary.d.ts.map +1 -0
  159. package/node_modules/simple-git/dist/src/lib/responses/InitSummary.d.ts +2 -1
  160. package/node_modules/simple-git/dist/src/lib/responses/InitSummary.d.ts.map +1 -0
  161. package/node_modules/simple-git/dist/src/lib/responses/MergeSummary.d.ts +2 -1
  162. package/node_modules/simple-git/dist/src/lib/responses/MergeSummary.d.ts.map +1 -0
  163. package/node_modules/simple-git/dist/src/lib/responses/PullSummary.d.ts +2 -1
  164. package/node_modules/simple-git/dist/src/lib/responses/PullSummary.d.ts.map +1 -0
  165. package/node_modules/simple-git/dist/src/lib/responses/StatusSummary.d.ts +2 -1
  166. package/node_modules/simple-git/dist/src/lib/responses/StatusSummary.d.ts.map +1 -0
  167. package/node_modules/simple-git/dist/src/lib/responses/TagList.d.ts +2 -1
  168. package/node_modules/simple-git/dist/src/lib/responses/TagList.d.ts.map +1 -0
  169. package/node_modules/simple-git/dist/src/lib/runners/git-executor-chain.d.ts +5 -3
  170. package/node_modules/simple-git/dist/src/lib/runners/git-executor-chain.d.ts.map +1 -0
  171. package/node_modules/simple-git/dist/src/lib/runners/git-executor.d.ts +2 -1
  172. package/node_modules/simple-git/dist/src/lib/runners/git-executor.d.ts.map +1 -0
  173. package/node_modules/simple-git/dist/src/lib/runners/scheduler.d.ts +1 -0
  174. package/node_modules/simple-git/dist/src/lib/runners/scheduler.d.ts.map +1 -0
  175. package/node_modules/simple-git/dist/src/lib/runners/tasks-pending-queue.d.ts +3 -2
  176. package/node_modules/simple-git/dist/src/lib/runners/tasks-pending-queue.d.ts.map +1 -0
  177. package/node_modules/simple-git/dist/src/lib/simple-git-api.d.ts +3 -2
  178. package/node_modules/simple-git/dist/src/lib/simple-git-api.d.ts.map +1 -0
  179. package/node_modules/simple-git/dist/src/lib/task-callback.d.ts +2 -1
  180. package/node_modules/simple-git/dist/src/lib/task-callback.d.ts.map +1 -0
  181. package/node_modules/simple-git/dist/src/lib/tasks/apply-patch.d.ts +2 -1
  182. package/node_modules/simple-git/dist/src/lib/tasks/apply-patch.d.ts.map +1 -0
  183. package/node_modules/simple-git/dist/src/lib/tasks/branch.d.ts +3 -2
  184. package/node_modules/simple-git/dist/src/lib/tasks/branch.d.ts.map +1 -0
  185. package/node_modules/simple-git/dist/src/lib/tasks/change-working-directory.d.ts +2 -1
  186. package/node_modules/simple-git/dist/src/lib/tasks/change-working-directory.d.ts.map +1 -0
  187. package/node_modules/simple-git/dist/src/lib/tasks/check-ignore.d.ts +2 -1
  188. package/node_modules/simple-git/dist/src/lib/tasks/check-ignore.d.ts.map +1 -0
  189. package/node_modules/simple-git/dist/src/lib/tasks/check-is-repo.d.ts +2 -1
  190. package/node_modules/simple-git/dist/src/lib/tasks/check-is-repo.d.ts.map +1 -0
  191. package/node_modules/simple-git/dist/src/lib/tasks/checkout.d.ts +2 -1
  192. package/node_modules/simple-git/dist/src/lib/tasks/checkout.d.ts.map +1 -0
  193. package/node_modules/simple-git/dist/src/lib/tasks/clean.d.ts +3 -2
  194. package/node_modules/simple-git/dist/src/lib/tasks/clean.d.ts.map +1 -0
  195. package/node_modules/simple-git/dist/src/lib/tasks/clone.d.ts +4 -3
  196. package/node_modules/simple-git/dist/src/lib/tasks/clone.d.ts.map +1 -0
  197. package/node_modules/simple-git/dist/src/lib/tasks/commit.d.ts +2 -1
  198. package/node_modules/simple-git/dist/src/lib/tasks/commit.d.ts.map +1 -0
  199. package/node_modules/simple-git/dist/src/lib/tasks/config.d.ts +2 -1
  200. package/node_modules/simple-git/dist/src/lib/tasks/config.d.ts.map +1 -0
  201. package/node_modules/simple-git/dist/src/lib/tasks/count-objects.d.ts +2 -1
  202. package/node_modules/simple-git/dist/src/lib/tasks/count-objects.d.ts.map +1 -0
  203. package/node_modules/simple-git/dist/src/lib/tasks/diff-name-status.d.ts +1 -0
  204. package/node_modules/simple-git/dist/src/lib/tasks/diff-name-status.d.ts.map +1 -0
  205. package/node_modules/simple-git/dist/src/lib/tasks/diff.d.ts +4 -3
  206. package/node_modules/simple-git/dist/src/lib/tasks/diff.d.ts.map +1 -0
  207. package/node_modules/simple-git/dist/src/lib/tasks/fetch.d.ts +4 -3
  208. package/node_modules/simple-git/dist/src/lib/tasks/fetch.d.ts.map +1 -0
  209. package/node_modules/simple-git/dist/src/lib/tasks/first-commit.d.ts +2 -1
  210. package/node_modules/simple-git/dist/src/lib/tasks/first-commit.d.ts.map +1 -0
  211. package/node_modules/simple-git/dist/src/lib/tasks/grep.d.ts +2 -1
  212. package/node_modules/simple-git/dist/src/lib/tasks/grep.d.ts.map +1 -0
  213. package/node_modules/simple-git/dist/src/lib/tasks/hash-object.d.ts +2 -1
  214. package/node_modules/simple-git/dist/src/lib/tasks/hash-object.d.ts.map +1 -0
  215. package/node_modules/simple-git/dist/src/lib/tasks/init.d.ts +3 -2
  216. package/node_modules/simple-git/dist/src/lib/tasks/init.d.ts.map +1 -0
  217. package/node_modules/simple-git/dist/src/lib/tasks/interpret-trailers.d.ts +3 -0
  218. package/node_modules/simple-git/dist/src/lib/tasks/interpret-trailers.d.ts.map +1 -0
  219. package/node_modules/simple-git/dist/src/lib/tasks/log.d.ts +3 -2
  220. package/node_modules/simple-git/dist/src/lib/tasks/log.d.ts.map +1 -0
  221. package/node_modules/simple-git/dist/src/lib/tasks/merge.d.ts +4 -3
  222. package/node_modules/simple-git/dist/src/lib/tasks/merge.d.ts.map +1 -0
  223. package/node_modules/simple-git/dist/src/lib/tasks/move.d.ts +3 -2
  224. package/node_modules/simple-git/dist/src/lib/tasks/move.d.ts.map +1 -0
  225. package/node_modules/simple-git/dist/src/lib/tasks/pull.d.ts +3 -2
  226. package/node_modules/simple-git/dist/src/lib/tasks/pull.d.ts.map +1 -0
  227. package/node_modules/simple-git/dist/src/lib/tasks/push.d.ts +3 -2
  228. package/node_modules/simple-git/dist/src/lib/tasks/push.d.ts.map +1 -0
  229. package/node_modules/simple-git/dist/src/lib/tasks/remote.d.ts +1 -0
  230. package/node_modules/simple-git/dist/src/lib/tasks/remote.d.ts.map +1 -0
  231. package/node_modules/simple-git/dist/src/lib/tasks/reset.d.ts +1 -0
  232. package/node_modules/simple-git/dist/src/lib/tasks/reset.d.ts.map +1 -0
  233. package/node_modules/simple-git/dist/src/lib/tasks/show.d.ts +2 -1
  234. package/node_modules/simple-git/dist/src/lib/tasks/show.d.ts.map +1 -0
  235. package/node_modules/simple-git/dist/src/lib/tasks/stash-list.d.ts +2 -1
  236. package/node_modules/simple-git/dist/src/lib/tasks/stash-list.d.ts.map +1 -0
  237. package/node_modules/simple-git/dist/src/lib/tasks/status.d.ts +3 -2
  238. package/node_modules/simple-git/dist/src/lib/tasks/status.d.ts.map +1 -0
  239. package/node_modules/simple-git/dist/src/lib/tasks/sub-module.d.ts +2 -1
  240. package/node_modules/simple-git/dist/src/lib/tasks/sub-module.d.ts.map +1 -0
  241. package/node_modules/simple-git/dist/src/lib/tasks/tag.d.ts +3 -2
  242. package/node_modules/simple-git/dist/src/lib/tasks/tag.d.ts.map +1 -0
  243. package/node_modules/simple-git/dist/src/lib/tasks/task.d.ts +1 -0
  244. package/node_modules/simple-git/dist/src/lib/tasks/task.d.ts.map +1 -0
  245. package/node_modules/simple-git/dist/src/lib/tasks/version.d.ts +2 -1
  246. package/node_modules/simple-git/dist/src/lib/tasks/version.d.ts.map +1 -0
  247. package/node_modules/simple-git/dist/src/lib/types/handlers.d.ts +2 -1
  248. package/node_modules/simple-git/dist/src/lib/types/handlers.d.ts.map +1 -0
  249. package/node_modules/simple-git/dist/src/lib/types/index.d.ts +19 -2
  250. package/node_modules/simple-git/dist/src/lib/types/index.d.ts.map +1 -0
  251. package/node_modules/simple-git/dist/src/lib/types/tasks.d.ts +4 -2
  252. package/node_modules/simple-git/dist/src/lib/types/tasks.d.ts.map +1 -0
  253. package/node_modules/simple-git/dist/src/lib/utils/argument-filters.d.ts +2 -0
  254. package/node_modules/simple-git/dist/src/lib/utils/argument-filters.d.ts.map +1 -0
  255. package/node_modules/simple-git/dist/src/lib/utils/exit-codes.d.ts +1 -0
  256. package/node_modules/simple-git/dist/src/lib/utils/exit-codes.d.ts.map +1 -0
  257. package/node_modules/simple-git/dist/src/lib/utils/git-output-streams.d.ts +2 -1
  258. package/node_modules/simple-git/dist/src/lib/utils/git-output-streams.d.ts.map +1 -0
  259. package/node_modules/simple-git/dist/src/lib/utils/index.d.ts +1 -0
  260. package/node_modules/simple-git/dist/src/lib/utils/index.d.ts.map +1 -0
  261. package/node_modules/simple-git/dist/src/lib/utils/line-parser.d.ts +1 -0
  262. package/node_modules/simple-git/dist/src/lib/utils/line-parser.d.ts.map +1 -0
  263. package/node_modules/simple-git/dist/src/lib/utils/simple-git-options.d.ts +2 -1
  264. package/node_modules/simple-git/dist/src/lib/utils/simple-git-options.d.ts.map +1 -0
  265. package/node_modules/simple-git/dist/src/lib/utils/task-options.d.ts +2 -1
  266. package/node_modules/simple-git/dist/src/lib/utils/task-options.d.ts.map +1 -0
  267. package/node_modules/simple-git/dist/src/lib/utils/task-parser.d.ts +3 -2
  268. package/node_modules/simple-git/dist/src/lib/utils/task-parser.d.ts.map +1 -0
  269. package/node_modules/simple-git/dist/src/lib/utils/util.d.ts +2 -0
  270. package/node_modules/simple-git/dist/src/lib/utils/util.d.ts.map +1 -0
  271. package/node_modules/simple-git/dist/src/typings/index.d.ts +4 -0
  272. package/node_modules/simple-git/dist/src/typings/index.d.ts.map +1 -0
  273. package/node_modules/simple-git/dist/src/typings/response.d.ts +479 -0
  274. package/node_modules/simple-git/dist/src/typings/response.d.ts.map +1 -0
  275. package/node_modules/simple-git/dist/src/typings/simple-git.d.ts +517 -0
  276. package/node_modules/simple-git/dist/src/typings/simple-git.d.ts.map +1 -0
  277. package/node_modules/simple-git/dist/src/typings/types.d.ts +11 -0
  278. package/node_modules/simple-git/dist/src/typings/types.d.ts.map +1 -0
  279. package/node_modules/simple-git/package.json +12 -16
  280. package/node_modules/simple-git/readme.md +29 -47
  281. package/node_modules/undici/docs/docs/api/Client.md +2 -0
  282. package/node_modules/undici/docs/docs/api/DiagnosticsChannel.md +3 -1
  283. package/node_modules/undici/docs/docs/api/Dispatcher.md +1 -0
  284. package/node_modules/undici/lib/core/connect.js +10 -4
  285. package/node_modules/undici/lib/core/request.js +23 -2
  286. package/node_modules/undici/lib/core/symbols.js +1 -0
  287. package/node_modules/undici/lib/dispatcher/agent.js +6 -2
  288. package/node_modules/undici/lib/dispatcher/balanced-pool.js +4 -2
  289. package/node_modules/undici/lib/dispatcher/client-h1.js +23 -10
  290. package/node_modules/undici/lib/dispatcher/client-h2.js +84 -23
  291. package/node_modules/undici/lib/dispatcher/client.js +9 -4
  292. package/node_modules/undici/lib/dispatcher/dispatcher-base.js +12 -0
  293. package/node_modules/undici/lib/handler/cache-handler.js +69 -5
  294. package/node_modules/undici/lib/handler/deduplication-handler.js +57 -13
  295. package/node_modules/undici/lib/handler/redirect-handler.js +8 -1
  296. package/node_modules/undici/lib/handler/retry-handler.js +109 -23
  297. package/node_modules/undici/lib/interceptor/cache.js +20 -1
  298. package/node_modules/undici/lib/interceptor/decompress.js +348 -46
  299. package/node_modules/undici/lib/interceptor/dump.js +10 -23
  300. package/node_modules/undici/lib/web/cookies/index.js +3 -1
  301. package/node_modules/undici/lib/web/cookies/parse.js +138 -137
  302. package/node_modules/undici/lib/web/cookies/util.js +21 -2
  303. package/node_modules/undici/lib/web/eventsource/eventsource-stream.js +325 -149
  304. package/node_modules/undici/lib/web/eventsource/eventsource.js +4 -1
  305. package/node_modules/undici/lib/web/fetch/index.js +3 -3
  306. package/node_modules/undici/lib/web/infra/index.js +14 -0
  307. package/node_modules/undici/lib/web/subresource-integrity/subresource-integrity.js +5 -5
  308. package/node_modules/undici/lib/web/websocket/connection.js +19 -9
  309. package/node_modules/undici/lib/web/websocket/permessage-deflate.js +5 -0
  310. package/node_modules/undici/lib/web/websocket/receiver.js +13 -0
  311. package/node_modules/undici/lib/web/websocket/stream/websocketstream.js +8 -10
  312. package/node_modules/undici/package.json +1 -1
  313. package/node_modules/undici/types/client.d.ts +14 -0
  314. package/node_modules/undici/types/interceptors.d.ts +2 -0
  315. package/node_modules/zod/README.md +29 -2
  316. package/node_modules/zod/compile.cjs +96 -0
  317. package/node_modules/zod/compile.d.cts +1 -0
  318. package/node_modules/zod/compile.d.ts +1 -0
  319. package/node_modules/zod/compile.js +52 -0
  320. package/node_modules/zod/index.cjs +21 -2
  321. package/node_modules/zod/index.d.cts +1 -2
  322. package/node_modules/zod/index.d.ts +1 -2
  323. package/node_modules/zod/index.js +5 -2
  324. package/node_modules/zod/locales/index.cjs +19 -0
  325. package/node_modules/zod/mini/index.cjs +19 -0
  326. package/node_modules/zod/package.json +20 -8
  327. package/node_modules/zod/src/compile.ts +56 -0
  328. package/node_modules/zod/src/index.ts +5 -2
  329. package/node_modules/zod/src/v3/ZodError.ts +22 -12
  330. package/node_modules/zod/src/v3/helpers/errorUtil.ts +1 -1
  331. package/node_modules/zod/src/v3/tests/error.test.ts +35 -0
  332. package/node_modules/zod/src/v3/tests/intersection.test.ts +18 -0
  333. package/node_modules/zod/src/v3/tests/language-server.test.ts +1 -2
  334. package/node_modules/zod/src/v3/tests/object.test.ts +3 -6
  335. package/node_modules/zod/src/v3/tests/readonly.test.ts +0 -80
  336. package/node_modules/zod/src/v3/tests/string.test.ts +6 -0
  337. package/node_modules/zod/src/v3/types.ts +5 -5
  338. package/node_modules/zod/src/v4/classic/checks.ts +1 -0
  339. package/node_modules/zod/src/v4/classic/compat.ts +26 -18
  340. package/node_modules/zod/src/v4/classic/deep-partial.ts +76 -0
  341. package/node_modules/zod/src/v4/classic/errors.ts +59 -44
  342. package/node_modules/zod/src/v4/classic/external.ts +14 -9
  343. package/node_modules/zod/src/v4/classic/from-json-schema.ts +363 -78
  344. package/node_modules/zod/src/v4/classic/in-out.ts +45 -0
  345. package/node_modules/zod/src/v4/classic/index.ts +2 -2
  346. package/node_modules/zod/src/v4/classic/iso.ts +2 -72
  347. package/node_modules/zod/src/v4/classic/parse.ts +10 -4
  348. package/node_modules/zod/src/v4/classic/schemas.ts +640 -375
  349. package/node_modules/zod/src/v4/classic/tests/apply.test.ts +27 -0
  350. package/node_modules/zod/src/v4/classic/tests/array.test.ts +29 -2
  351. package/node_modules/zod/src/v4/classic/tests/assignability.test.ts +186 -0
  352. package/node_modules/zod/src/v4/classic/tests/bigint.test.ts +36 -1
  353. package/node_modules/zod/src/v4/classic/tests/catch.test.ts +278 -0
  354. package/node_modules/zod/src/v4/classic/tests/codec-examples.test.ts +1 -2
  355. package/node_modules/zod/src/v4/classic/tests/codec.test.ts +2 -1
  356. package/node_modules/zod/src/v4/classic/tests/continuability.test.ts +3 -3
  357. package/node_modules/zod/src/v4/classic/tests/credit-card.test.ts +76 -0
  358. package/node_modules/zod/src/v4/classic/tests/cyclic-data.test.ts +985 -0
  359. package/node_modules/zod/src/v4/classic/tests/date.test.ts +30 -0
  360. package/node_modules/zod/src/v4/classic/tests/datetime.test.ts +32 -18
  361. package/node_modules/zod/src/v4/classic/tests/deep-partial.test.ts +380 -0
  362. package/node_modules/zod/src/v4/classic/tests/default-locale.test.ts +32 -0
  363. package/node_modules/zod/src/v4/classic/tests/default.test.ts +46 -0
  364. package/node_modules/zod/src/v4/classic/tests/detached-methods.test.ts +31 -7
  365. package/node_modules/zod/src/v4/classic/tests/discriminated-unions.test.ts +261 -13
  366. package/node_modules/zod/src/v4/classic/tests/enum.test.ts +20 -0
  367. package/node_modules/zod/src/v4/classic/tests/error-utils.test.ts +112 -2
  368. package/node_modules/zod/src/v4/classic/tests/error.test.ts +403 -6
  369. package/node_modules/zod/src/v4/classic/tests/from-json-schema.test.ts +582 -10
  370. package/node_modules/zod/src/v4/classic/tests/function.test.ts +31 -0
  371. package/node_modules/zod/src/v4/classic/tests/global-config.test.ts +2 -9
  372. package/node_modules/zod/src/v4/classic/tests/hash.test.ts +1 -2
  373. package/node_modules/zod/src/v4/classic/tests/iban.test.ts +81 -0
  374. package/node_modules/zod/src/v4/classic/tests/in-out.test.ts +159 -0
  375. package/node_modules/zod/src/v4/classic/tests/index.test.ts +21 -2
  376. package/node_modules/zod/src/v4/classic/tests/instance-footprint.test.ts +319 -0
  377. package/node_modules/zod/src/v4/classic/tests/instanceof.test.ts +67 -0
  378. package/node_modules/zod/src/v4/classic/tests/intersection.test.ts +136 -0
  379. package/node_modules/zod/src/v4/classic/tests/issue-schema.test.ts +215 -0
  380. package/node_modules/zod/src/v4/classic/tests/jitless-allows-eval.test.ts +3 -10
  381. package/node_modules/zod/src/v4/classic/tests/lazy.test.ts +36 -1
  382. package/node_modules/zod/src/v4/classic/tests/literal.test.ts +12 -1
  383. package/node_modules/zod/src/v4/classic/tests/map.test.ts +19 -0
  384. package/node_modules/zod/src/v4/classic/tests/number.test.ts +85 -9
  385. package/node_modules/zod/src/v4/classic/tests/object.test.ts +301 -12
  386. package/node_modules/zod/src/v4/classic/tests/optin-ladder.test.ts +235 -0
  387. package/node_modules/zod/src/v4/classic/tests/optional.test.ts +49 -16
  388. package/node_modules/zod/src/v4/classic/tests/partial.test.ts +51 -4
  389. package/node_modules/zod/src/v4/classic/tests/prefault.test.ts +70 -0
  390. package/node_modules/zod/src/v4/classic/tests/preprocess-types.test.ts +20 -2
  391. package/node_modules/zod/src/v4/classic/tests/properties.test.ts +141 -0
  392. package/node_modules/zod/src/v4/classic/tests/readonly.test.ts +0 -68
  393. package/node_modules/zod/src/v4/classic/tests/record.test.ts +186 -18
  394. package/node_modules/zod/src/v4/classic/tests/recursive-types.test.ts +79 -3
  395. package/node_modules/zod/src/v4/classic/tests/redos.test.ts +68 -0
  396. package/node_modules/zod/src/v4/classic/tests/refine.test.ts +60 -0
  397. package/node_modules/zod/src/v4/classic/tests/set.test.ts +15 -0
  398. package/node_modules/zod/src/v4/classic/tests/standard-schema.test.ts +19 -0
  399. package/node_modules/zod/src/v4/classic/tests/string.test.ts +222 -6
  400. package/node_modules/zod/src/v4/classic/tests/stringbool.test.ts +18 -0
  401. package/node_modules/zod/src/v4/classic/tests/template-literal.test.ts +44 -3
  402. package/node_modules/zod/src/v4/classic/tests/to-json-schema.test.ts +1812 -204
  403. package/node_modules/zod/src/v4/classic/tests/tuple.test.ts +45 -30
  404. package/node_modules/zod/src/v4/classic/tests/union.test.ts +39 -2
  405. package/node_modules/zod/src/v4/classic/tests/validate.test.ts +645 -0
  406. package/node_modules/zod/src/v4/classic/tests/validations.test.ts +2 -2
  407. package/node_modules/zod/src/v4/core/api.ts +87 -35
  408. package/node_modules/zod/src/v4/core/checks.ts +119 -146
  409. package/node_modules/zod/src/v4/core/compile.ts +2322 -0
  410. package/node_modules/zod/src/v4/core/core.ts +99 -22
  411. package/node_modules/zod/src/v4/core/doc.ts +17 -9
  412. package/node_modules/zod/src/v4/core/errors.ts +113 -25
  413. package/node_modules/zod/src/v4/core/index.ts +3 -0
  414. package/node_modules/zod/src/v4/core/json-schema-generator.ts +8 -3
  415. package/node_modules/zod/src/v4/core/json-schema-processors.ts +424 -156
  416. package/node_modules/zod/src/v4/core/json-schema.ts +2 -1
  417. package/node_modules/zod/src/v4/core/memoizer.ts +331 -0
  418. package/node_modules/zod/src/v4/core/parse.ts +164 -50
  419. package/node_modules/zod/src/v4/core/regexes.ts +42 -15
  420. package/node_modules/zod/src/v4/core/registries.ts +2 -2
  421. package/node_modules/zod/src/v4/core/schemas.ts +1035 -539
  422. package/node_modules/zod/src/v4/core/tests/cached.test.ts +54 -0
  423. package/node_modules/zod/src/v4/core/tests/compile-differential.test.ts +1004 -0
  424. package/node_modules/zod/src/v4/core/tests/compile-generative.test.ts +445 -0
  425. package/node_modules/zod/src/v4/core/tests/compile-global.test.ts +89 -0
  426. package/node_modules/zod/src/v4/core/tests/compile-off-by-default.test.ts +26 -0
  427. package/node_modules/zod/src/v4/core/tests/compile-stats.test.ts +34 -0
  428. package/node_modules/zod/src/v4/core/tests/compile.test.ts +2036 -0
  429. package/node_modules/zod/src/v4/core/tests/email-regex.test.ts +140 -0
  430. package/node_modules/zod/src/v4/core/tests/locales/el.test.ts +1 -2
  431. package/node_modules/zod/src/v4/core/tests/locales/es.test.ts +1 -2
  432. package/node_modules/zod/src/v4/core/tests/locales/fr.test.ts +3 -3
  433. package/node_modules/zod/src/v4/core/tests/locales/parity.test.ts +42 -0
  434. package/node_modules/zod/src/v4/core/tests/locales/tg.test.ts +85 -0
  435. package/node_modules/zod/src/v4/core/tests/locales/tk.test.ts +69 -0
  436. package/node_modules/zod/src/v4/core/tests/polyfill-collision.test.ts +46 -0
  437. package/node_modules/zod/src/v4/core/tests/treeshake.test.ts +51 -0
  438. package/node_modules/zod/src/v4/core/tests/url-no-canparse.test.ts +133 -0
  439. package/node_modules/zod/src/v4/core/to-json-schema.ts +283 -48
  440. package/node_modules/zod/src/v4/core/util.ts +467 -157
  441. package/node_modules/zod/src/v4/core/versions.ts +2 -2
  442. package/node_modules/zod/src/v4/core/visit.ts +193 -0
  443. package/node_modules/zod/src/v4/index.ts +3 -3
  444. package/node_modules/zod/src/v4/locales/ar.ts +5 -0
  445. package/node_modules/zod/src/v4/locales/az.ts +5 -0
  446. package/node_modules/zod/src/v4/locales/be.ts +12 -0
  447. package/node_modules/zod/src/v4/locales/bg.ts +5 -0
  448. package/node_modules/zod/src/v4/locales/bn.ts +123 -0
  449. package/node_modules/zod/src/v4/locales/ca.ts +5 -0
  450. package/node_modules/zod/src/v4/locales/ckb.ts +140 -0
  451. package/node_modules/zod/src/v4/locales/cs.ts +5 -0
  452. package/node_modules/zod/src/v4/locales/da.ts +7 -2
  453. package/node_modules/zod/src/v4/locales/de.ts +5 -0
  454. package/node_modules/zod/src/v4/locales/el.ts +3 -0
  455. package/node_modules/zod/src/v4/locales/en.ts +17 -4
  456. package/node_modules/zod/src/v4/locales/eo.ts +5 -0
  457. package/node_modules/zod/src/v4/locales/es.ts +4 -0
  458. package/node_modules/zod/src/v4/locales/fa.ts +5 -0
  459. package/node_modules/zod/src/v4/locales/fi.ts +5 -0
  460. package/node_modules/zod/src/v4/locales/fr-CA.ts +5 -0
  461. package/node_modules/zod/src/v4/locales/fr.ts +21 -14
  462. package/node_modules/zod/src/v4/locales/gu.ts +123 -0
  463. package/node_modules/zod/src/v4/locales/he.ts +8 -1
  464. package/node_modules/zod/src/v4/locales/hi.ts +126 -0
  465. package/node_modules/zod/src/v4/locales/hr.ts +4 -0
  466. package/node_modules/zod/src/v4/locales/hu.ts +5 -0
  467. package/node_modules/zod/src/v4/locales/hy.ts +11 -0
  468. package/node_modules/zod/src/v4/locales/id.ts +5 -0
  469. package/node_modules/zod/src/v4/locales/index.ts +11 -0
  470. package/node_modules/zod/src/v4/locales/is.ts +5 -0
  471. package/node_modules/zod/src/v4/locales/it.ts +5 -0
  472. package/node_modules/zod/src/v4/locales/ja.ts +5 -0
  473. package/node_modules/zod/src/v4/locales/ka.ts +5 -0
  474. package/node_modules/zod/src/v4/locales/km.ts +5 -0
  475. package/node_modules/zod/src/v4/locales/kn.ts +126 -0
  476. package/node_modules/zod/src/v4/locales/ko.ts +5 -0
  477. package/node_modules/zod/src/v4/locales/lt.ts +4 -0
  478. package/node_modules/zod/src/v4/locales/mk.ts +5 -0
  479. package/node_modules/zod/src/v4/locales/ms.ts +5 -0
  480. package/node_modules/zod/src/v4/locales/ne.ts +128 -0
  481. package/node_modules/zod/src/v4/locales/nl.ts +5 -0
  482. package/node_modules/zod/src/v4/locales/nn.ts +121 -0
  483. package/node_modules/zod/src/v4/locales/no.ts +7 -2
  484. package/node_modules/zod/src/v4/locales/ota.ts +5 -0
  485. package/node_modules/zod/src/v4/locales/pl.ts +5 -0
  486. package/node_modules/zod/src/v4/locales/ps.ts +5 -0
  487. package/node_modules/zod/src/v4/locales/pt-BR.ts +161 -0
  488. package/node_modules/zod/src/v4/locales/pt.ts +101 -58
  489. package/node_modules/zod/src/v4/locales/ro.ts +3 -0
  490. package/node_modules/zod/src/v4/locales/ru.ts +12 -0
  491. package/node_modules/zod/src/v4/locales/sk.ts +123 -0
  492. package/node_modules/zod/src/v4/locales/sl.ts +5 -0
  493. package/node_modules/zod/src/v4/locales/sv.ts +7 -2
  494. package/node_modules/zod/src/v4/locales/ta.ts +5 -0
  495. package/node_modules/zod/src/v4/locales/tg.ts +135 -0
  496. package/node_modules/zod/src/v4/locales/th.ts +5 -0
  497. package/node_modules/zod/src/v4/locales/tk.ts +113 -0
  498. package/node_modules/zod/src/v4/locales/tr.ts +5 -0
  499. package/node_modules/zod/src/v4/locales/uk.ts +5 -0
  500. package/node_modules/zod/src/v4/locales/ur.ts +5 -0
  501. package/node_modules/zod/src/v4/locales/uz.ts +3 -0
  502. package/node_modules/zod/src/v4/locales/vi.ts +5 -0
  503. package/node_modules/zod/src/v4/locales/yo.ts +5 -0
  504. package/node_modules/zod/src/v4/locales/zh-CN.ts +5 -0
  505. package/node_modules/zod/src/v4/locales/zh-TW.ts +5 -0
  506. package/node_modules/zod/src/v4/mini/checks.ts +1 -0
  507. package/node_modules/zod/src/v4/mini/deep-partial.ts +73 -0
  508. package/node_modules/zod/src/v4/mini/external.ts +12 -1
  509. package/node_modules/zod/src/v4/mini/in-out.ts +45 -0
  510. package/node_modules/zod/src/v4/mini/parse.ts +2 -0
  511. package/node_modules/zod/src/v4/mini/schemas.ts +167 -63
  512. package/node_modules/zod/src/v4/mini/tests/apply.test.ts +33 -0
  513. package/node_modules/zod/src/v4/mini/tests/assignability.test.ts +62 -1
  514. package/node_modules/zod/src/v4/mini/tests/checks.test.ts +14 -0
  515. package/node_modules/zod/src/v4/mini/tests/codec.test.ts +35 -1
  516. package/node_modules/zod/src/v4/mini/tests/computed.test.ts +11 -17
  517. package/node_modules/zod/src/v4/mini/tests/cyclic-data.test.ts +84 -0
  518. package/node_modules/zod/src/v4/mini/tests/deep-partial.test.ts +54 -0
  519. package/node_modules/zod/src/v4/mini/tests/error.test.ts +23 -4
  520. package/node_modules/zod/src/v4/mini/tests/functions.test.ts +9 -0
  521. package/node_modules/zod/src/v4/mini/tests/index.test.ts +158 -5
  522. package/node_modules/zod/src/v4/mini/tests/number.test.ts +14 -0
  523. package/node_modules/zod/src/v4/mini/tests/object.test.ts +65 -0
  524. package/node_modules/zod/src/v4/mini/tests/recursive-types.test.ts +16 -0
  525. package/node_modules/zod/src/v4/mini/tests/string.test.ts +44 -0
  526. package/node_modules/zod/v3/ZodError.cjs +41 -12
  527. package/node_modules/zod/v3/ZodError.d.cts +1 -1
  528. package/node_modules/zod/v3/ZodError.d.ts +1 -1
  529. package/node_modules/zod/v3/ZodError.js +22 -12
  530. package/node_modules/zod/v3/errors.cjs +19 -0
  531. package/node_modules/zod/v3/external.cjs +19 -0
  532. package/node_modules/zod/v3/helpers/enumUtil.cjs +19 -0
  533. package/node_modules/zod/v3/helpers/errorUtil.cjs +20 -1
  534. package/node_modules/zod/v3/helpers/errorUtil.js +1 -1
  535. package/node_modules/zod/v3/helpers/parseUtil.cjs +19 -0
  536. package/node_modules/zod/v3/helpers/partialUtil.cjs +19 -0
  537. package/node_modules/zod/v3/helpers/typeAliases.cjs +19 -0
  538. package/node_modules/zod/v3/helpers/util.cjs +19 -0
  539. package/node_modules/zod/v3/index.cjs +19 -0
  540. package/node_modules/zod/v3/standard-schema.cjs +19 -0
  541. package/node_modules/zod/v3/types.cjs +26 -5
  542. package/node_modules/zod/v3/types.js +7 -5
  543. package/node_modules/zod/v4/classic/checks.cjs +21 -1
  544. package/node_modules/zod/v4/classic/checks.d.cts +1 -1
  545. package/node_modules/zod/v4/classic/checks.d.ts +1 -1
  546. package/node_modules/zod/v4/classic/checks.js +1 -1
  547. package/node_modules/zod/v4/classic/coerce.cjs +19 -0
  548. package/node_modules/zod/v4/classic/compat.cjs +19 -0
  549. package/node_modules/zod/v4/classic/compat.d.cts +9 -11
  550. package/node_modules/zod/v4/classic/compat.d.ts +9 -11
  551. package/node_modules/zod/v4/classic/deep-partial.cjs +58 -0
  552. package/node_modules/zod/v4/classic/deep-partial.d.cts +14 -0
  553. package/node_modules/zod/v4/classic/deep-partial.d.ts +14 -0
  554. package/node_modules/zod/v4/classic/deep-partial.js +13 -0
  555. package/node_modules/zod/v4/classic/errors.cjs +62 -34
  556. package/node_modules/zod/v4/classic/errors.d.cts +3 -4
  557. package/node_modules/zod/v4/classic/errors.d.ts +3 -4
  558. package/node_modules/zod/v4/classic/errors.js +43 -34
  559. package/node_modules/zod/v4/classic/external.cjs +51 -27
  560. package/node_modules/zod/v4/classic/external.d.cts +5 -2
  561. package/node_modules/zod/v4/classic/external.d.ts +5 -2
  562. package/node_modules/zod/v4/classic/external.js +5 -8
  563. package/node_modules/zod/v4/classic/from-json-schema.cjs +376 -75
  564. package/node_modules/zod/v4/classic/from-json-schema.js +357 -75
  565. package/node_modules/zod/v4/classic/in-out.cjs +82 -0
  566. package/node_modules/zod/v4/classic/in-out.d.cts +8 -0
  567. package/node_modules/zod/v4/classic/in-out.d.ts +8 -0
  568. package/node_modules/zod/v4/classic/in-out.js +36 -0
  569. package/node_modules/zod/v4/classic/index.cjs +21 -2
  570. package/node_modules/zod/v4/classic/index.d.cts +1 -2
  571. package/node_modules/zod/v4/classic/index.d.ts +1 -2
  572. package/node_modules/zod/v4/classic/index.js +2 -2
  573. package/node_modules/zod/v4/classic/iso.cjs +30 -22
  574. package/node_modules/zod/v4/classic/iso.d.cts +2 -17
  575. package/node_modules/zod/v4/classic/iso.d.ts +2 -17
  576. package/node_modules/zod/v4/classic/iso.js +2 -17
  577. package/node_modules/zod/v4/classic/parse.cjs +23 -1
  578. package/node_modules/zod/v4/classic/parse.d.cts +17 -4
  579. package/node_modules/zod/v4/classic/parse.d.ts +17 -4
  580. package/node_modules/zod/v4/classic/parse.js +1 -0
  581. package/node_modules/zod/v4/classic/schemas.cjs +591 -426
  582. package/node_modules/zod/v4/classic/schemas.d.cts +68 -19
  583. package/node_modules/zod/v4/classic/schemas.d.ts +68 -19
  584. package/node_modules/zod/v4/classic/schemas.js +564 -424
  585. package/node_modules/zod/v4/core/api.cjs +66 -24
  586. package/node_modules/zod/v4/core/api.d.cts +22 -12
  587. package/node_modules/zod/v4/core/api.d.ts +22 -12
  588. package/node_modules/zod/v4/core/api.js +44 -24
  589. package/node_modules/zod/v4/core/checks.cjs +88 -128
  590. package/node_modules/zod/v4/core/checks.d.cts +29 -13
  591. package/node_modules/zod/v4/core/checks.d.ts +29 -13
  592. package/node_modules/zod/v4/core/checks.js +68 -127
  593. package/node_modules/zod/v4/core/compile.cjs +1916 -0
  594. package/node_modules/zod/v4/core/compile.d.cts +65 -0
  595. package/node_modules/zod/v4/core/compile.d.ts +65 -0
  596. package/node_modules/zod/v4/core/compile.js +1866 -0
  597. package/node_modules/zod/v4/core/core.cjs +101 -19
  598. package/node_modules/zod/v4/core/core.d.cts +16 -4
  599. package/node_modules/zod/v4/core/core.d.ts +16 -4
  600. package/node_modules/zod/v4/core/core.js +83 -20
  601. package/node_modules/zod/v4/core/doc.cjs +31 -9
  602. package/node_modules/zod/v4/core/doc.d.cts +3 -1
  603. package/node_modules/zod/v4/core/doc.d.ts +3 -1
  604. package/node_modules/zod/v4/core/doc.js +12 -9
  605. package/node_modules/zod/v4/core/errors.cjs +126 -25
  606. package/node_modules/zod/v4/core/errors.d.cts +4 -0
  607. package/node_modules/zod/v4/core/errors.d.ts +4 -0
  608. package/node_modules/zod/v4/core/errors.js +107 -25
  609. package/node_modules/zod/v4/core/index.cjs +24 -1
  610. package/node_modules/zod/v4/core/index.d.cts +3 -0
  611. package/node_modules/zod/v4/core/index.d.ts +3 -0
  612. package/node_modules/zod/v4/core/index.js +3 -0
  613. package/node_modules/zod/v4/core/json-schema-generator.cjs +24 -1
  614. package/node_modules/zod/v4/core/json-schema-generator.d.cts +2 -2
  615. package/node_modules/zod/v4/core/json-schema-generator.d.ts +2 -2
  616. package/node_modules/zod/v4/core/json-schema-generator.js +6 -2
  617. package/node_modules/zod/v4/core/json-schema-processors.cjs +441 -156
  618. package/node_modules/zod/v4/core/json-schema-processors.d.cts +16 -0
  619. package/node_modules/zod/v4/core/json-schema-processors.d.ts +16 -0
  620. package/node_modules/zod/v4/core/json-schema-processors.js +400 -158
  621. package/node_modules/zod/v4/core/json-schema.cjs +19 -0
  622. package/node_modules/zod/v4/core/json-schema.d.cts +2 -1
  623. package/node_modules/zod/v4/core/json-schema.d.ts +2 -1
  624. package/node_modules/zod/v4/core/memoizer.cjs +360 -0
  625. package/node_modules/zod/v4/core/memoizer.d.cts +15 -0
  626. package/node_modules/zod/v4/core/memoizer.d.ts +15 -0
  627. package/node_modules/zod/v4/core/memoizer.js +311 -0
  628. package/node_modules/zod/v4/core/parse.cjs +148 -46
  629. package/node_modules/zod/v4/core/parse.d.cts +14 -11
  630. package/node_modules/zod/v4/core/parse.d.ts +14 -11
  631. package/node_modules/zod/v4/core/parse.js +127 -45
  632. package/node_modules/zod/v4/core/regexes.cjs +54 -17
  633. package/node_modules/zod/v4/core/regexes.d.cts +5 -0
  634. package/node_modules/zod/v4/core/regexes.d.ts +5 -0
  635. package/node_modules/zod/v4/core/regexes.js +32 -15
  636. package/node_modules/zod/v4/core/registries.cjs +19 -0
  637. package/node_modules/zod/v4/core/registries.js +2 -2
  638. package/node_modules/zod/v4/core/schemas.cjs +815 -386
  639. package/node_modules/zod/v4/core/schemas.d.cts +126 -35
  640. package/node_modules/zod/v4/core/schemas.d.ts +126 -35
  641. package/node_modules/zod/v4/core/schemas.js +783 -386
  642. package/node_modules/zod/v4/core/standard-schema.cjs +19 -0
  643. package/node_modules/zod/v4/core/to-json-schema.cjs +269 -45
  644. package/node_modules/zod/v4/core/to-json-schema.d.cts +45 -5
  645. package/node_modules/zod/v4/core/to-json-schema.d.ts +45 -5
  646. package/node_modules/zod/v4/core/to-json-schema.js +247 -44
  647. package/node_modules/zod/v4/core/util.cjs +387 -157
  648. package/node_modules/zod/v4/core/util.d.cts +81 -1
  649. package/node_modules/zod/v4/core/util.d.ts +81 -1
  650. package/node_modules/zod/v4/core/util.js +355 -156
  651. package/node_modules/zod/v4/core/versions.cjs +21 -2
  652. package/node_modules/zod/v4/core/versions.d.cts +1 -1
  653. package/node_modules/zod/v4/core/versions.d.ts +1 -1
  654. package/node_modules/zod/v4/core/versions.js +2 -2
  655. package/node_modules/zod/v4/core/visit.cjs +214 -0
  656. package/node_modules/zod/v4/core/visit.d.cts +30 -0
  657. package/node_modules/zod/v4/core/visit.d.ts +30 -0
  658. package/node_modules/zod/v4/core/visit.js +169 -0
  659. package/node_modules/zod/v4/index.cjs +34 -5
  660. package/node_modules/zod/v4/index.d.cts +2 -2
  661. package/node_modules/zod/v4/index.d.ts +2 -2
  662. package/node_modules/zod/v4/index.js +3 -2
  663. package/node_modules/zod/v4/locales/ar.cjs +5 -0
  664. package/node_modules/zod/v4/locales/ar.js +5 -0
  665. package/node_modules/zod/v4/locales/az.cjs +5 -0
  666. package/node_modules/zod/v4/locales/az.js +5 -0
  667. package/node_modules/zod/v4/locales/be.cjs +12 -0
  668. package/node_modules/zod/v4/locales/be.js +12 -0
  669. package/node_modules/zod/v4/locales/bg.cjs +5 -0
  670. package/node_modules/zod/v4/locales/bg.js +5 -0
  671. package/node_modules/zod/v4/locales/bn.cjs +140 -0
  672. package/node_modules/zod/v4/locales/bn.d.cts +5 -0
  673. package/node_modules/zod/v4/locales/bn.d.ts +4 -0
  674. package/node_modules/zod/v4/locales/bn.js +113 -0
  675. package/node_modules/zod/v4/locales/ca.cjs +5 -0
  676. package/node_modules/zod/v4/locales/ca.js +5 -0
  677. package/node_modules/zod/v4/locales/ckb.cjs +160 -0
  678. package/node_modules/zod/v4/locales/ckb.d.cts +5 -0
  679. package/node_modules/zod/v4/locales/ckb.d.ts +4 -0
  680. package/node_modules/zod/v4/locales/ckb.js +133 -0
  681. package/node_modules/zod/v4/locales/cs.cjs +5 -0
  682. package/node_modules/zod/v4/locales/cs.js +5 -0
  683. package/node_modules/zod/v4/locales/da.cjs +7 -2
  684. package/node_modules/zod/v4/locales/da.js +7 -2
  685. package/node_modules/zod/v4/locales/de.cjs +5 -0
  686. package/node_modules/zod/v4/locales/de.js +5 -0
  687. package/node_modules/zod/v4/locales/el.cjs +3 -0
  688. package/node_modules/zod/v4/locales/el.js +3 -0
  689. package/node_modules/zod/v4/locales/en.cjs +16 -4
  690. package/node_modules/zod/v4/locales/en.js +16 -4
  691. package/node_modules/zod/v4/locales/eo.cjs +5 -0
  692. package/node_modules/zod/v4/locales/eo.js +5 -0
  693. package/node_modules/zod/v4/locales/es.cjs +4 -0
  694. package/node_modules/zod/v4/locales/es.js +4 -0
  695. package/node_modules/zod/v4/locales/fa.cjs +5 -0
  696. package/node_modules/zod/v4/locales/fa.js +5 -0
  697. package/node_modules/zod/v4/locales/fi.cjs +5 -0
  698. package/node_modules/zod/v4/locales/fi.js +5 -0
  699. package/node_modules/zod/v4/locales/fr-CA.cjs +5 -0
  700. package/node_modules/zod/v4/locales/fr-CA.js +5 -0
  701. package/node_modules/zod/v4/locales/fr.cjs +18 -14
  702. package/node_modules/zod/v4/locales/fr.js +18 -14
  703. package/node_modules/zod/v4/locales/gu.cjs +140 -0
  704. package/node_modules/zod/v4/locales/gu.d.cts +5 -0
  705. package/node_modules/zod/v4/locales/gu.d.ts +4 -0
  706. package/node_modules/zod/v4/locales/gu.js +113 -0
  707. package/node_modules/zod/v4/locales/he.cjs +7 -0
  708. package/node_modules/zod/v4/locales/he.js +7 -0
  709. package/node_modules/zod/v4/locales/hi.cjs +138 -0
  710. package/node_modules/zod/v4/locales/hi.d.cts +5 -0
  711. package/node_modules/zod/v4/locales/hi.d.ts +4 -0
  712. package/node_modules/zod/v4/locales/hi.js +111 -0
  713. package/node_modules/zod/v4/locales/hr.cjs +4 -0
  714. package/node_modules/zod/v4/locales/hr.js +4 -0
  715. package/node_modules/zod/v4/locales/hu.cjs +5 -0
  716. package/node_modules/zod/v4/locales/hu.js +5 -0
  717. package/node_modules/zod/v4/locales/hy.cjs +11 -0
  718. package/node_modules/zod/v4/locales/hy.js +11 -0
  719. package/node_modules/zod/v4/locales/id.cjs +5 -0
  720. package/node_modules/zod/v4/locales/id.js +5 -0
  721. package/node_modules/zod/v4/locales/index.cjs +43 -2
  722. package/node_modules/zod/v4/locales/index.d.cts +11 -0
  723. package/node_modules/zod/v4/locales/index.d.ts +11 -0
  724. package/node_modules/zod/v4/locales/index.js +11 -0
  725. package/node_modules/zod/v4/locales/is.cjs +5 -0
  726. package/node_modules/zod/v4/locales/is.js +5 -0
  727. package/node_modules/zod/v4/locales/it.cjs +5 -0
  728. package/node_modules/zod/v4/locales/it.js +5 -0
  729. package/node_modules/zod/v4/locales/ja.cjs +5 -0
  730. package/node_modules/zod/v4/locales/ja.js +5 -0
  731. package/node_modules/zod/v4/locales/ka.cjs +5 -0
  732. package/node_modules/zod/v4/locales/ka.js +5 -0
  733. package/node_modules/zod/v4/locales/km.cjs +5 -0
  734. package/node_modules/zod/v4/locales/km.js +5 -0
  735. package/node_modules/zod/v4/locales/kn.cjs +143 -0
  736. package/node_modules/zod/v4/locales/kn.d.cts +5 -0
  737. package/node_modules/zod/v4/locales/kn.d.ts +4 -0
  738. package/node_modules/zod/v4/locales/kn.js +116 -0
  739. package/node_modules/zod/v4/locales/ko.cjs +5 -0
  740. package/node_modules/zod/v4/locales/ko.js +5 -0
  741. package/node_modules/zod/v4/locales/lt.cjs +4 -0
  742. package/node_modules/zod/v4/locales/lt.js +4 -0
  743. package/node_modules/zod/v4/locales/mk.cjs +5 -0
  744. package/node_modules/zod/v4/locales/mk.js +5 -0
  745. package/node_modules/zod/v4/locales/ms.cjs +5 -0
  746. package/node_modules/zod/v4/locales/ms.js +5 -0
  747. package/node_modules/zod/v4/locales/ne.cjs +138 -0
  748. package/node_modules/zod/v4/locales/ne.d.cts +5 -0
  749. package/node_modules/zod/v4/locales/ne.d.ts +4 -0
  750. package/node_modules/zod/v4/locales/ne.js +111 -0
  751. package/node_modules/zod/v4/locales/nl.cjs +5 -0
  752. package/node_modules/zod/v4/locales/nl.js +5 -0
  753. package/node_modules/zod/v4/locales/nn.cjs +140 -0
  754. package/node_modules/zod/v4/locales/nn.d.cts +5 -0
  755. package/node_modules/zod/v4/locales/nn.d.ts +4 -0
  756. package/node_modules/zod/v4/locales/nn.js +113 -0
  757. package/node_modules/zod/v4/locales/no.cjs +7 -2
  758. package/node_modules/zod/v4/locales/no.js +7 -2
  759. package/node_modules/zod/v4/locales/ota.cjs +5 -0
  760. package/node_modules/zod/v4/locales/ota.js +5 -0
  761. package/node_modules/zod/v4/locales/pl.cjs +5 -0
  762. package/node_modules/zod/v4/locales/pl.js +5 -0
  763. package/node_modules/zod/v4/locales/ps.cjs +5 -0
  764. package/node_modules/zod/v4/locales/ps.js +5 -0
  765. package/node_modules/zod/v4/locales/pt-BR.cjs +170 -0
  766. package/node_modules/zod/v4/locales/pt-BR.d.cts +5 -0
  767. package/node_modules/zod/v4/locales/pt-BR.d.ts +4 -0
  768. package/node_modules/zod/v4/locales/pt-BR.js +143 -0
  769. package/node_modules/zod/v4/locales/pt.cjs +89 -55
  770. package/node_modules/zod/v4/locales/pt.js +89 -55
  771. package/node_modules/zod/v4/locales/ro.cjs +3 -0
  772. package/node_modules/zod/v4/locales/ro.js +3 -0
  773. package/node_modules/zod/v4/locales/ru.cjs +12 -0
  774. package/node_modules/zod/v4/locales/ru.js +12 -0
  775. package/node_modules/zod/v4/locales/sk.cjs +143 -0
  776. package/node_modules/zod/v4/locales/sk.d.cts +5 -0
  777. package/node_modules/zod/v4/locales/sk.d.ts +4 -0
  778. package/node_modules/zod/v4/locales/sk.js +116 -0
  779. package/node_modules/zod/v4/locales/sl.cjs +5 -0
  780. package/node_modules/zod/v4/locales/sl.js +5 -0
  781. package/node_modules/zod/v4/locales/sv.cjs +7 -2
  782. package/node_modules/zod/v4/locales/sv.js +7 -2
  783. package/node_modules/zod/v4/locales/ta.cjs +5 -0
  784. package/node_modules/zod/v4/locales/ta.js +5 -0
  785. package/node_modules/zod/v4/locales/tg.cjs +144 -0
  786. package/node_modules/zod/v4/locales/tg.d.cts +5 -0
  787. package/node_modules/zod/v4/locales/tg.d.ts +4 -0
  788. package/node_modules/zod/v4/locales/tg.js +117 -0
  789. package/node_modules/zod/v4/locales/th.cjs +5 -0
  790. package/node_modules/zod/v4/locales/th.js +5 -0
  791. package/node_modules/zod/v4/locales/tk.cjs +134 -0
  792. package/node_modules/zod/v4/locales/tk.d.cts +5 -0
  793. package/node_modules/zod/v4/locales/tk.d.ts +4 -0
  794. package/node_modules/zod/v4/locales/tk.js +107 -0
  795. package/node_modules/zod/v4/locales/tr.cjs +5 -0
  796. package/node_modules/zod/v4/locales/tr.js +5 -0
  797. package/node_modules/zod/v4/locales/uk.cjs +5 -0
  798. package/node_modules/zod/v4/locales/uk.js +5 -0
  799. package/node_modules/zod/v4/locales/ur.cjs +5 -0
  800. package/node_modules/zod/v4/locales/ur.js +5 -0
  801. package/node_modules/zod/v4/locales/uz.cjs +3 -0
  802. package/node_modules/zod/v4/locales/uz.js +3 -0
  803. package/node_modules/zod/v4/locales/vi.cjs +5 -0
  804. package/node_modules/zod/v4/locales/vi.js +5 -0
  805. package/node_modules/zod/v4/locales/yo.cjs +5 -0
  806. package/node_modules/zod/v4/locales/yo.js +5 -0
  807. package/node_modules/zod/v4/locales/zh-CN.cjs +5 -0
  808. package/node_modules/zod/v4/locales/zh-CN.js +5 -0
  809. package/node_modules/zod/v4/locales/zh-TW.cjs +5 -0
  810. package/node_modules/zod/v4/locales/zh-TW.js +5 -0
  811. package/node_modules/zod/v4/mini/checks.cjs +21 -1
  812. package/node_modules/zod/v4/mini/checks.d.cts +1 -1
  813. package/node_modules/zod/v4/mini/checks.d.ts +1 -1
  814. package/node_modules/zod/v4/mini/checks.js +1 -1
  815. package/node_modules/zod/v4/mini/coerce.cjs +19 -0
  816. package/node_modules/zod/v4/mini/deep-partial.cjs +58 -0
  817. package/node_modules/zod/v4/mini/deep-partial.d.cts +14 -0
  818. package/node_modules/zod/v4/mini/deep-partial.d.ts +14 -0
  819. package/node_modules/zod/v4/mini/deep-partial.js +13 -0
  820. package/node_modules/zod/v4/mini/external.cjs +33 -1
  821. package/node_modules/zod/v4/mini/external.d.cts +5 -2
  822. package/node_modules/zod/v4/mini/external.d.ts +5 -2
  823. package/node_modules/zod/v4/mini/external.js +3 -1
  824. package/node_modules/zod/v4/mini/in-out.cjs +82 -0
  825. package/node_modules/zod/v4/mini/in-out.d.cts +8 -0
  826. package/node_modules/zod/v4/mini/in-out.d.ts +8 -0
  827. package/node_modules/zod/v4/mini/in-out.js +36 -0
  828. package/node_modules/zod/v4/mini/index.cjs +19 -0
  829. package/node_modules/zod/v4/mini/iso.cjs +19 -0
  830. package/node_modules/zod/v4/mini/parse.cjs +22 -1
  831. package/node_modules/zod/v4/mini/parse.d.cts +1 -1
  832. package/node_modules/zod/v4/mini/parse.d.ts +1 -1
  833. package/node_modules/zod/v4/mini/parse.js +1 -1
  834. package/node_modules/zod/v4/mini/schemas.cjs +117 -53
  835. package/node_modules/zod/v4/mini/schemas.d.cts +49 -14
  836. package/node_modules/zod/v4/mini/schemas.d.ts +49 -14
  837. package/node_modules/zod/v4/mini/schemas.js +92 -51
  838. package/node_modules/zod/v4-mini/index.cjs +19 -0
  839. package/package.json +14 -14
  840. package/node_modules/@zuplo/runtime/out/esm/chunk-DVFQRFED.js.map +0 -1
  841. package/node_modules/@zuplo/runtime/out/esm/chunk-FQIUJWH2.js +0 -105
  842. package/node_modules/@zuplo/runtime/out/esm/chunk-FQIUJWH2.js.map +0 -1
  843. package/node_modules/simple-git/dist/cjs/index.js +0 -4898
  844. package/node_modules/simple-git/dist/cjs/index.js.map +0 -7
  845. package/node_modules/simple-git/dist/esm/index.js +0 -4745
  846. package/node_modules/simple-git/dist/esm/index.js.map +0 -7
  847. package/node_modules/simple-git/dist/esm/package.json +0 -3
  848. package/node_modules/simple-git/dist/src/lib/responses/CheckIgnore.d.ts +0 -4
  849. package/node_modules/simple-git/dist/src/lib/runners/promise-wrapped.d.ts +0 -2
  850. package/node_modules/simple-git/dist/typings/errors.d.ts +0 -5
  851. package/node_modules/simple-git/dist/typings/index.d.ts +0 -14
  852. package/node_modules/simple-git/dist/typings/response.d.ts +0 -556
  853. package/node_modules/simple-git/dist/typings/simple-git.d.ts +0 -1033
  854. package/node_modules/simple-git/dist/typings/types.d.ts +0 -22
  855. package/node_modules/simple-git/promise.js +0 -17
  856. package/node_modules/zod/src/v4/core/config.ts +0 -15
  857. /package/node_modules/@zuplo/runtime/out/esm/{chunk-DVFQRFED.js.LEGAL.txt → chunk-NWYAKCSU.js.LEGAL.txt} +0 -0
  858. /package/node_modules/@zuplo/runtime/out/esm/{chunk-FQIUJWH2.js.LEGAL.txt → chunk-PXS4NOKU.js.LEGAL.txt} +0 -0
@@ -0,0 +1,2895 @@
1
+ import { isPathSpec as D, pathspec as rt, toPaths as yt } from "@simple-git/args-pathspec";
2
+ import { pathspec as ko } from "@simple-git/args-pathspec";
3
+ import { exists as ke, FOLDER as _e } from "@kwsites/file-exists";
4
+ import { spawn as ve } from "node:child_process";
5
+ import it from "debug";
6
+ import { createDeferred as Ee, deferred as P } from "@kwsites/promise-deferred";
7
+ import { normalize as Se } from "node:path";
8
+ import { isGitEnvKey as Re, vulnerabilityCheck as Oe } from "@simple-git/argv-parser";
9
+ import { EventEmitter as Ce } from "node:events";
10
+ class O extends Error {
11
+ constructor(e, n) {
12
+ super(n), this.task = e, Object.setPrototypeOf(this, new.target.prototype);
13
+ }
14
+ }
15
+ class Ae extends O {
16
+ constructor(e, n) {
17
+ super(void 0, n), this.config = e;
18
+ }
19
+ }
20
+ class A extends O {
21
+ constructor(e, n, r) {
22
+ super(e, r), this.task = e, this.plugin = n, Object.setPrototypeOf(this, new.target.prototype);
23
+ }
24
+ }
25
+ class at extends O {
26
+ constructor(e, n) {
27
+ super(void 0, n || String(e)), this.git = e;
28
+ }
29
+ }
30
+ class xe extends O {
31
+ constructor(e) {
32
+ super(void 0, e);
33
+ }
34
+ }
35
+ const I = "\0", W = () => {
36
+ };
37
+ function Ne(t) {
38
+ return typeof t != "function" ? W : t;
39
+ }
40
+ function $e(t) {
41
+ return typeof t == "function" && t !== W;
42
+ }
43
+ function Pe(t, e) {
44
+ const n = t.indexOf(e);
45
+ return n <= 0 ? [t, ""] : [t.substr(0, n), t.substr(n + 1)];
46
+ }
47
+ function Me(t, e = 0) {
48
+ return Dt(t) && t.length > e ? t[e] : void 0;
49
+ }
50
+ function N(t, e = 0) {
51
+ if (Dt(t) && t.length > e)
52
+ return t[t.length - 1 - e];
53
+ }
54
+ function Dt(t) {
55
+ return Bt(t);
56
+ }
57
+ function H(t = "", e = !0, n = `
58
+ `) {
59
+ return t.split(n).reduce((r, s) => {
60
+ const o = e ? s.trim() : s;
61
+ return o && r.push(o), r;
62
+ }, []);
63
+ }
64
+ function ut(t, e) {
65
+ return H(t, !0).map((n) => e(n));
66
+ }
67
+ function Lt(t) {
68
+ return ke(t, _e);
69
+ }
70
+ function S(t, e) {
71
+ return Array.isArray(t) ? t.includes(e) || t.push(e) : t.add(e), e;
72
+ }
73
+ function De(t, e) {
74
+ return Array.isArray(t) && !t.includes(e) && t.push(e), t;
75
+ }
76
+ function ct(t, e) {
77
+ if (Array.isArray(t)) {
78
+ const n = t.indexOf(e);
79
+ n >= 0 && t.splice(n, 1);
80
+ } else
81
+ t.delete(e);
82
+ return e;
83
+ }
84
+ const ft = Object.prototype.toString.call.bind(Object.prototype.toString);
85
+ function v(t) {
86
+ return Array.isArray(t) ? t : [t];
87
+ }
88
+ function jt(t) {
89
+ return t.replace(/[\s-]+(.)/g, (e, n) => n.toUpperCase());
90
+ }
91
+ function L(t) {
92
+ return v(t).map((e) => e instanceof String ? e : String(e));
93
+ }
94
+ function p(t, e = 0) {
95
+ if (t == null)
96
+ return e;
97
+ const n = parseInt(t, 10);
98
+ return Number.isNaN(n) ? e : n;
99
+ }
100
+ function U(t, e) {
101
+ const n = [];
102
+ for (let r = 0, s = t.length; r < s; r++)
103
+ n.push(e, t[r]);
104
+ return n;
105
+ }
106
+ function F(t) {
107
+ return (Array.isArray(t) ? Buffer.concat(t) : t).toString("utf-8");
108
+ }
109
+ function Le(t) {
110
+ return t ? Buffer.isBuffer(t) ? t.length : Buffer.byteLength(t) : 0;
111
+ }
112
+ function je(t, e) {
113
+ const n = {};
114
+ return e.forEach((r) => {
115
+ t[r] !== void 0 && (n[r] = t[r]);
116
+ }), n;
117
+ }
118
+ function wt(t = 0) {
119
+ return new Promise((e) => setTimeout(e, t));
120
+ }
121
+ function bt(t) {
122
+ if (t !== !1)
123
+ return t;
124
+ }
125
+ function d(t, e, n) {
126
+ return e(t) ? t : arguments.length > 2 ? n : void 0;
127
+ }
128
+ const K = (t) => Array.isArray(t);
129
+ function st(t, e) {
130
+ const n = D(t) ? "string" : typeof t;
131
+ return /number|string|boolean/.test(n) && (!e || !e.includes(n));
132
+ }
133
+ const m = (t) => typeof t == "string" || D(t), Be = (t) => m(t) || Buffer.isBuffer(t), G = (t) => m(t) || Array.isArray(t) && t.every(m);
134
+ function lt(t) {
135
+ return !!t && ft(t) === "[object Object]";
136
+ }
137
+ function Ie(t) {
138
+ return typeof t == "function";
139
+ }
140
+ const Bt = (t) => t == null || "number|boolean|function".includes(typeof t) ? !1 : typeof t.length == "number";
141
+ var V = /* @__PURE__ */ ((t) => (t[t.SUCCESS = 0] = "SUCCESS", t[t.ERROR = 1] = "ERROR", t[t.NOT_FOUND = -2] = "NOT_FOUND", t[t.UNCLEAN = 128] = "UNCLEAN", t))(V || {});
142
+ class z {
143
+ constructor(e, n) {
144
+ this.stdOut = e, this.stdErr = n;
145
+ }
146
+ asStrings() {
147
+ return new z(this.stdOut.toString("utf8"), this.stdErr.toString("utf8"));
148
+ }
149
+ }
150
+ function Ue() {
151
+ throw new Error("LineParser:useMatches not implemented");
152
+ }
153
+ class l {
154
+ constructor(e, n) {
155
+ this.matches = [], this.useMatches = Ue, this.parse = (r, s) => (this.resetMatches(), this._regExp.every((o, i) => this.addMatch(o, i, r(i))) ? this.useMatches(s, this.prepareMatches()) !== !1 : !1), this._regExp = Array.isArray(e) ? e : [e], n && (this.useMatches = n);
156
+ }
157
+ resetMatches() {
158
+ this.matches.length = 0;
159
+ }
160
+ prepareMatches() {
161
+ return this.matches;
162
+ }
163
+ addMatch(e, n, r) {
164
+ const s = r && e.exec(r);
165
+ return s && this.pushMatch(n, s), !!s;
166
+ }
167
+ pushMatch(e, n) {
168
+ this.matches.push(...n.slice(1));
169
+ }
170
+ }
171
+ class x extends l {
172
+ addMatch(e, n, r) {
173
+ return /^remote:\s/.test(String(r)) && super.addMatch(e, n, r);
174
+ }
175
+ pushMatch(e, n) {
176
+ (e > 0 || n.length > 1) && super.pushMatch(e, n);
177
+ }
178
+ }
179
+ const Fe = {
180
+ binary: "git",
181
+ maxConcurrentProcesses: 5,
182
+ config: [],
183
+ trimmed: !1
184
+ };
185
+ function Ge(...t) {
186
+ const e = process.cwd(), n = Object.assign(
187
+ { baseDir: e, ...Fe },
188
+ ...t.filter((r) => typeof r == "object" && r)
189
+ );
190
+ return n.baseDir = n.baseDir || e, n.trimmed = n.trimmed === !0, n;
191
+ }
192
+ function It(t, e = []) {
193
+ return lt(t) ? Object.keys(t).reduce((n, r) => {
194
+ const s = t[r];
195
+ if (D(s))
196
+ n.push(s);
197
+ else if (st(s, ["boolean"]))
198
+ n.push(r + "=" + s);
199
+ else if (Array.isArray(s))
200
+ for (const o of s)
201
+ st(o, ["string", "number"]) || n.push(r + "=" + o);
202
+ else
203
+ n.push(r);
204
+ return n;
205
+ }, e) : e;
206
+ }
207
+ function h(t, e = 0, n = !1) {
208
+ const r = [];
209
+ for (let s = 0, o = e < 0 ? t.length : e; s < o; s++)
210
+ "string|number".includes(typeof t[s]) && r.push(String(t[s]));
211
+ return It(ht(t), r), n || r.push(...ze(t)), r;
212
+ }
213
+ function ze(t) {
214
+ const e = typeof N(t) == "function";
215
+ return L(d(N(t, e ? 1 : 0), K, []));
216
+ }
217
+ function ht(t) {
218
+ const e = Ie(N(t));
219
+ return d(N(t, e ? 1 : 0), lt);
220
+ }
221
+ function u(t, e = !0) {
222
+ const n = Ne(N(t));
223
+ return e || $e(n) ? n : void 0;
224
+ }
225
+ function Tt(t, e) {
226
+ return t(e.stdOut, e.stdErr);
227
+ }
228
+ function E(t, e, n, r = !0) {
229
+ return v(n).forEach((s) => {
230
+ for (let o = H(s, r), i = 0, a = o.length; i < a; i++) {
231
+ const c = (y = 0) => {
232
+ if (!(i + y >= a))
233
+ return o[i + y];
234
+ };
235
+ e.some(({ parse: y }) => y(c, t));
236
+ }
237
+ }), t;
238
+ }
239
+ var qe = /* @__PURE__ */ ((t) => (t.BARE = "bare", t.IN_TREE = "tree", t.IS_REPO_ROOT = "root", t))(qe || {});
240
+ const mt = ({ exitCode: t }, e, n, r) => {
241
+ if (t === V.UNCLEAN && Ve(e))
242
+ return n(Buffer.from("false"));
243
+ r(e);
244
+ }, Ut = (t) => t.trim() === "true";
245
+ function We(t) {
246
+ switch (t) {
247
+ case "bare":
248
+ return Ke();
249
+ case "root":
250
+ return He();
251
+ }
252
+ return {
253
+ commands: ["rev-parse", "--is-inside-work-tree"],
254
+ format: "utf-8",
255
+ onError: mt,
256
+ parser: Ut
257
+ };
258
+ }
259
+ function He() {
260
+ return {
261
+ commands: ["rev-parse", "--git-dir"],
262
+ format: "utf-8",
263
+ onError: mt,
264
+ parser(e) {
265
+ return /^\.(git)?$/.test(e.trim());
266
+ }
267
+ };
268
+ }
269
+ function Ke() {
270
+ return {
271
+ commands: ["rev-parse", "--is-bare-repository"],
272
+ format: "utf-8",
273
+ onError: mt,
274
+ parser: Ut
275
+ };
276
+ }
277
+ function Ve(t) {
278
+ return /(Not a git repository|Kein Git-Repository)/i.test(String(t));
279
+ }
280
+ class Xe {
281
+ constructor(e) {
282
+ this.paths = [], this.files = [], this.folders = [], this.dryRun = e;
283
+ }
284
+ }
285
+ const Ye = /^[a-z]+\s*/i, Qe = /^[a-z]+\s+[a-z]+\s*/i, Je = /\/$/;
286
+ function Ze(t, e) {
287
+ const n = new Xe(t), r = t ? Qe : Ye;
288
+ return H(e).forEach((s) => {
289
+ const o = s.replace(r, "");
290
+ n.paths.push(o), (Je.test(o) ? n.folders : n.files).push(o);
291
+ }), n;
292
+ }
293
+ const Ft = [];
294
+ function tn(t) {
295
+ return {
296
+ commands: Ft,
297
+ format: "empty",
298
+ parser: t
299
+ };
300
+ }
301
+ function b(t) {
302
+ return {
303
+ commands: Ft,
304
+ format: "empty",
305
+ parser() {
306
+ throw typeof t == "string" ? new xe(t) : t;
307
+ }
308
+ };
309
+ }
310
+ function g(t, e = !1) {
311
+ return {
312
+ commands: t,
313
+ format: "utf-8",
314
+ parser(n) {
315
+ return e ? String(n).trim() : n;
316
+ }
317
+ };
318
+ }
319
+ function Gt(t) {
320
+ return {
321
+ commands: t,
322
+ format: "buffer",
323
+ parser(e) {
324
+ return e;
325
+ }
326
+ };
327
+ }
328
+ function en(t) {
329
+ return t.format === "buffer";
330
+ }
331
+ function kt(t) {
332
+ return t.format === "empty" || !t.commands.length;
333
+ }
334
+ const nn = "Git clean interactive mode is not supported", rn = 'Git clean mode parameter ("n" or "f") is required', sn = "Git clean unknown option found in: ";
335
+ var zt = /* @__PURE__ */ ((t) => (t.DRY_RUN = "n", t.FORCE = "f", t.IGNORED_INCLUDED = "x", t.IGNORED_ONLY = "X", t.EXCLUDING = "e", t.QUIET = "q", t.RECURSIVE = "d", t))(zt || {});
336
+ const qt = /* @__PURE__ */ new Set([
337
+ "i",
338
+ ...L(Object.values(zt))
339
+ ]);
340
+ function on(t, e) {
341
+ const { cleanMode: n, options: r, valid: s } = cn(t);
342
+ return n ? s.options ? (r.push(...e), r.some(hn) ? b(nn) : an(n, r)) : b(sn + JSON.stringify(t)) : b(rn);
343
+ }
344
+ function an(t, e) {
345
+ return {
346
+ commands: ["clean", `-${t}`, ...e],
347
+ format: "utf-8",
348
+ parser(r) {
349
+ return Ze(t === "n", r);
350
+ }
351
+ };
352
+ }
353
+ function un(t) {
354
+ return Array.isArray(t) && t.every((e) => qt.has(e));
355
+ }
356
+ function cn(t) {
357
+ let e, n = [], r = { cleanMode: !1, options: !0 };
358
+ return t.replace(/[^a-z]i/g, "").split("").forEach((s) => {
359
+ fn(s) ? (e = s, r.cleanMode = !0) : r.options = r.options && ln(n[n.length] = `-${s}`);
360
+ }), {
361
+ cleanMode: e,
362
+ options: n,
363
+ valid: r
364
+ };
365
+ }
366
+ function fn(t) {
367
+ return t === "f" || t === "n";
368
+ }
369
+ function ln(t) {
370
+ return /^-[a-z]$/i.test(t) && qt.has(t.charAt(1));
371
+ }
372
+ function hn(t) {
373
+ return /^-[^\-]/.test(t) ? t.indexOf("i") > 0 : t === "--interactive";
374
+ }
375
+ class mn {
376
+ constructor() {
377
+ this.files = [], this.values = /* @__PURE__ */ Object.create(null);
378
+ }
379
+ get all() {
380
+ return this._all || (this._all = this.files.reduce((e, n) => Object.assign(e, this.values[n]), {})), this._all;
381
+ }
382
+ addFile(e) {
383
+ if (!(e in this.values)) {
384
+ const n = N(this.files);
385
+ this.values[e] = n ? Object.create(this.values[n]) : {}, this.files.push(e);
386
+ }
387
+ return this.values[e];
388
+ }
389
+ addValue(e, n, r) {
390
+ const s = this.addFile(e);
391
+ Object.hasOwn(s, n) ? Array.isArray(s[n]) ? s[n].push(r) : s[n] = [s[n], r] : s[n] = r, this._all = void 0;
392
+ }
393
+ }
394
+ function pn(t) {
395
+ const e = new mn();
396
+ for (const n of Wt(t))
397
+ e.addValue(n.file, String(n.key), n.value);
398
+ return e;
399
+ }
400
+ function dn(t, e) {
401
+ let n = null;
402
+ const r = [], s = /* @__PURE__ */ new Map();
403
+ for (const o of Wt(t, e))
404
+ o.key === e && (r.push(n = o.value), s.has(o.file) || s.set(o.file, []), s.get(o.file).push(n));
405
+ return {
406
+ key: e,
407
+ paths: Array.from(s.keys()),
408
+ scopes: s,
409
+ value: n,
410
+ values: r
411
+ };
412
+ }
413
+ function gn(t) {
414
+ return t.replace(/^(file):/, "");
415
+ }
416
+ function* Wt(t, e = null) {
417
+ const n = t.split("\0");
418
+ for (let r = 0, s = n.length - 1; r < s; ) {
419
+ const o = gn(n[r++]);
420
+ let i = n[r++], a = e;
421
+ if (i.includes(`
422
+ `)) {
423
+ const c = Pe(i, `
424
+ `);
425
+ a = c[0], i = c[1];
426
+ }
427
+ yield { file: o, key: a, value: i };
428
+ }
429
+ }
430
+ var Ht = /* @__PURE__ */ ((t) => (t.system = "system", t.global = "global", t.local = "local", t.worktree = "worktree", t))(Ht || {});
431
+ function Y(t, e) {
432
+ return typeof t == "string" && Object.hasOwn(Ht, t) ? t : e;
433
+ }
434
+ function yn(t, e, n, r) {
435
+ const s = ["config", `--${r}`];
436
+ return n && s.push("--add"), s.push(t, e), {
437
+ commands: s,
438
+ format: "utf-8",
439
+ parser(o) {
440
+ return o;
441
+ }
442
+ };
443
+ }
444
+ function wn(t, e) {
445
+ const n = ["config", "--null", "--show-origin", "--get-all", t];
446
+ return e && n.splice(1, 0, `--${e}`), {
447
+ commands: n,
448
+ format: "utf-8",
449
+ parser(r) {
450
+ return dn(r, t);
451
+ }
452
+ };
453
+ }
454
+ function bn(t) {
455
+ const e = ["config", "--list", "--show-origin", "--null"];
456
+ return t && e.push(`--${t}`), {
457
+ commands: e,
458
+ format: "utf-8",
459
+ parser(n) {
460
+ return pn(n);
461
+ }
462
+ };
463
+ }
464
+ function Tn() {
465
+ return {
466
+ addConfig(t, e, ...n) {
467
+ return this._runTask(
468
+ yn(
469
+ t,
470
+ e,
471
+ n[0] === !0,
472
+ Y(
473
+ n[1],
474
+ "local"
475
+ /* local */
476
+ )
477
+ ),
478
+ u(arguments)
479
+ );
480
+ },
481
+ getConfig(t, e) {
482
+ return this._runTask(
483
+ wn(t, Y(e, void 0)),
484
+ u(arguments)
485
+ );
486
+ },
487
+ listConfig(...t) {
488
+ return this._runTask(
489
+ bn(Y(t[0], void 0)),
490
+ u(arguments)
491
+ );
492
+ }
493
+ };
494
+ }
495
+ var Kt = /* @__PURE__ */ ((t) => (t.ADDED = "A", t.COPIED = "C", t.DELETED = "D", t.MODIFIED = "M", t.RENAMED = "R", t.CHANGED = "T", t.UNMERGED = "U", t.UNKNOWN = "X", t.BROKEN = "B", t))(Kt || {});
496
+ const kn = new Set(Object.values(Kt));
497
+ function _n(t) {
498
+ return kn.has(t);
499
+ }
500
+ var _t;
501
+ const vn = ["-h"], j = /* @__PURE__ */ Symbol("grepQuery");
502
+ class En {
503
+ constructor() {
504
+ this[_t] = [];
505
+ }
506
+ *[(_t = j, Symbol.iterator)]() {
507
+ for (const e of this[j])
508
+ yield e;
509
+ }
510
+ and(...e) {
511
+ return e.length && this[j].push("--and", "(", ...U(e, "-e"), ")"), this;
512
+ }
513
+ param(...e) {
514
+ return this[j].push(...U(e, "-e")), this;
515
+ }
516
+ }
517
+ function Sn(...t) {
518
+ return new En().param(...t);
519
+ }
520
+ function Rn(t) {
521
+ const e = /* @__PURE__ */ new Set(), n = {};
522
+ return ut(t, (r) => {
523
+ const [s, o, i] = r.split(I);
524
+ e.add(s), (n[s] = n[s] || []).push({
525
+ line: p(o),
526
+ path: s,
527
+ preview: i
528
+ });
529
+ }), {
530
+ paths: e,
531
+ results: n
532
+ };
533
+ }
534
+ function On() {
535
+ return {
536
+ grep(t) {
537
+ const e = u(arguments), n = h(arguments);
538
+ for (const s of vn)
539
+ if (n.includes(s))
540
+ return this._runTask(
541
+ b(`git.grep: use of "${s}" is not supported.`),
542
+ e
543
+ );
544
+ typeof t == "string" && (t = Sn().param(t));
545
+ const r = ["grep", "--null", "-n", "--full-name", ...n, ...t];
546
+ return this._runTask(
547
+ {
548
+ commands: r,
549
+ format: "utf-8",
550
+ parser(s) {
551
+ return Rn(s);
552
+ }
553
+ },
554
+ e
555
+ );
556
+ }
557
+ };
558
+ }
559
+ var Vt = /* @__PURE__ */ ((t) => (t.MIXED = "mixed", t.SOFT = "soft", t.HARD = "hard", t.MERGE = "merge", t.KEEP = "keep", t))(Vt || {});
560
+ const Cn = L(Object.values(Vt));
561
+ function An(t, e) {
562
+ const n = ["reset"];
563
+ return Xt(t) && n.push(`--${t}`), n.push(...e), g(n);
564
+ }
565
+ function xn(t) {
566
+ if (Xt(t))
567
+ return t;
568
+ switch (typeof t) {
569
+ case "string":
570
+ case "undefined":
571
+ return "soft";
572
+ }
573
+ }
574
+ function Xt(t) {
575
+ return typeof t == "string" && Cn.includes(t);
576
+ }
577
+ it.formatters.L = (t) => String(Bt(t) ? t.length : "-");
578
+ it.formatters.B = (t) => Buffer.isBuffer(t) ? t.toString("utf8") : ft(t);
579
+ function Nn() {
580
+ return it("simple-git");
581
+ }
582
+ function vt(t, e, n) {
583
+ return !e || !String(e).replace(/\s*/, "") ? n ? (r, ...s) => {
584
+ t(r, ...s), n(r, ...s);
585
+ } : t : (r, ...s) => {
586
+ t(`%s ${r}`, e, ...s), n && n(r, ...s);
587
+ };
588
+ }
589
+ function $n(t, e, { namespace: n }) {
590
+ if (typeof t == "string")
591
+ return t;
592
+ const r = e && e.namespace || "";
593
+ return r.startsWith(n) ? r.substr(n.length + 1) : r || n;
594
+ }
595
+ function $(t, e, n, r = Nn()) {
596
+ const s = t && `[${t}]` || "", o = [], i = typeof e == "string" ? r.extend(e) : e, a = $n(d(e, m), i, r);
597
+ return y(n);
598
+ function c(w, T) {
599
+ return S(
600
+ o,
601
+ $(t, a.replace(/^[^:]+/, w), T, r)
602
+ );
603
+ }
604
+ function y(w) {
605
+ const T = w && `[${w}]` || "", k = i && vt(i, T) || W, C = vt(r, `${s} ${T}`, k);
606
+ return Object.assign(i ? k : C, {
607
+ label: t,
608
+ sibling: c,
609
+ info: C,
610
+ step: y
611
+ });
612
+ }
613
+ }
614
+ const M = class M {
615
+ constructor(e = "GitExecutor") {
616
+ this.logLabel = e, this._queue = /* @__PURE__ */ new Map();
617
+ }
618
+ withProgress(e) {
619
+ return this._queue.get(e);
620
+ }
621
+ createProgress(e) {
622
+ const n = M.getName(e.commands[0]), r = $(this.logLabel, n);
623
+ return {
624
+ task: e,
625
+ logger: r,
626
+ name: n
627
+ };
628
+ }
629
+ push(e) {
630
+ const n = this.createProgress(e);
631
+ return n.logger("Adding task to the queue, commands = %o", e.commands), this._queue.set(e, n), n;
632
+ }
633
+ fatal(e) {
634
+ for (const [n, { logger: r }] of Array.from(this._queue.entries()))
635
+ n === e.task ? (r.info("Failed %o", e), r(
636
+ "Fatal exception, any as-yet un-started tasks run through this executor will not be attempted"
637
+ )) : r.info(
638
+ "A fatal exception occurred in a previous task, the queue has been purged: %o",
639
+ e.message
640
+ ), this.complete(n);
641
+ if (this._queue.size !== 0)
642
+ throw new Error(`Queue size should be zero after fatal: ${this._queue.size}`);
643
+ }
644
+ complete(e) {
645
+ this.withProgress(e) && this._queue.delete(e);
646
+ }
647
+ attempt(e) {
648
+ const n = this.withProgress(e);
649
+ if (!n)
650
+ throw new O(void 0, "TasksPendingQueue: attempt called for an unknown task");
651
+ return n.logger("Starting task"), n;
652
+ }
653
+ static getName(e = "empty") {
654
+ return `task:${e}:${++M.counter}`;
655
+ }
656
+ };
657
+ M.counter = 0;
658
+ let ot = M;
659
+ class Pn {
660
+ constructor(e, n, r) {
661
+ this._executor = e, this._scheduler = n, this._plugins = r, this._chain = Promise.resolve(), this._queue = new ot();
662
+ }
663
+ get cwd() {
664
+ return this._cwd || this._executor.cwd;
665
+ }
666
+ set cwd(e) {
667
+ this._cwd = e;
668
+ }
669
+ get env() {
670
+ return this._executor.env;
671
+ }
672
+ get outputHandler() {
673
+ return this._executor.outputHandler;
674
+ }
675
+ chain() {
676
+ return this;
677
+ }
678
+ push(e) {
679
+ return this._queue.push(e), this._chain = this._chain.then(() => this.attemptTask(e));
680
+ }
681
+ async attemptTask(e) {
682
+ const n = await this._scheduler.next(), r = () => this._queue.complete(e);
683
+ try {
684
+ const { logger: s } = this._queue.attempt(e);
685
+ return await (kt(e) ? this.attemptEmptyTask(e, s) : this.attemptRemoteTask(e, s));
686
+ } catch (s) {
687
+ throw this.onFatalException(e, s);
688
+ } finally {
689
+ r(), n();
690
+ }
691
+ }
692
+ onFatalException(e, n) {
693
+ const r = n instanceof O ? Object.assign(n, { task: e }) : new O(e, n && String(n));
694
+ return this._chain = Promise.resolve(), this._queue.fatal(r), r;
695
+ }
696
+ async attemptRemoteTask(e, n) {
697
+ const r = this._plugins.exec("spawn.binary", "", this.taskContext(e, e.commands)), s = this._plugins.exec(
698
+ "spawn.args",
699
+ [...e.commands],
700
+ this.taskContext(e, e.commands)
701
+ ), o = await this.gitResponse(
702
+ e,
703
+ r,
704
+ s,
705
+ this.outputHandler,
706
+ n.step("SPAWN")
707
+ ), i = await this.handleTaskData(e, s, o, n.step("HANDLE"));
708
+ return n("passing response to task's parser as a %s", e.format), en(e) ? Tt(e.parser, i) : Tt(e.parser, i.asStrings());
709
+ }
710
+ async attemptEmptyTask(e, n) {
711
+ return n("empty task bypassing child process to call to task's parser"), e.parser(this);
712
+ }
713
+ handleTaskData(e, n, r, s) {
714
+ const { exitCode: o, rejection: i, stdOut: a, stdErr: c } = r;
715
+ return new Promise((y, w) => {
716
+ s("Preparing to handle process response exitCode=%d stdOut=", o);
717
+ const { error: T } = this._plugins.exec(
718
+ "task.error",
719
+ { error: i },
720
+ {
721
+ ...this.taskContext(e, n),
722
+ ...r
723
+ }
724
+ );
725
+ if (T && e.onError)
726
+ return s.info("exitCode=%s handling with custom error handler"), e.onError(
727
+ r,
728
+ T,
729
+ (k) => {
730
+ s.info("custom error handler treated as success"), s("custom error returned a %s", ft(k)), y(
731
+ new z(
732
+ Array.isArray(k) ? Buffer.concat(k) : k,
733
+ Buffer.concat(c)
734
+ )
735
+ );
736
+ },
737
+ w
738
+ );
739
+ if (T)
740
+ return s.info(
741
+ "handling as error: exitCode=%s stdErr=%s rejection=%o",
742
+ o,
743
+ c.length,
744
+ i
745
+ ), w(T);
746
+ s.info("retrieving task output complete"), y(new z(Buffer.concat(a), Buffer.concat(c)));
747
+ });
748
+ }
749
+ async gitResponse(e, n, r, s, o) {
750
+ const i = o.sibling("output"), a = this._plugins.exec(
751
+ "spawn.options",
752
+ {
753
+ cwd: this.cwd,
754
+ env: this.env,
755
+ windowsHide: !0
756
+ },
757
+ this.taskContext(e, e.commands)
758
+ );
759
+ return new Promise((c) => {
760
+ const y = [], w = [];
761
+ o.info("%s %o", n, r), o("%O", a);
762
+ let T = this._beforeSpawn(e, r);
763
+ if (T)
764
+ return c({
765
+ stdOut: y,
766
+ stdErr: w,
767
+ exitCode: 9901,
768
+ rejection: T
769
+ });
770
+ this._plugins.exec("spawn.before", void 0, {
771
+ ...this.taskContext(e, r),
772
+ kill(C) {
773
+ T = C || T;
774
+ }
775
+ });
776
+ const k = ve(n, r, a);
777
+ k.stdout.on(
778
+ "data",
779
+ Et(y, "stdOut", o, i.step("stdOut"))
780
+ ), k.stderr.on(
781
+ "data",
782
+ Et(w, "stdErr", o, i.step("stdErr"))
783
+ ), k.on("error", Mn(w, o)), s && (o("Passing child process stdOut/stdErr to custom outputHandler"), s(n, k.stdout, k.stderr, [...r])), this._plugins.exec("spawn.after", void 0, {
784
+ ...this.taskContext(e, r),
785
+ spawned: k,
786
+ close(C, Te) {
787
+ c({
788
+ stdOut: y,
789
+ stdErr: w,
790
+ exitCode: C,
791
+ rejection: T || Te
792
+ });
793
+ },
794
+ kill(C) {
795
+ k.killed || (T = C, k.kill("SIGINT"));
796
+ }
797
+ });
798
+ });
799
+ }
800
+ _beforeSpawn(e, n) {
801
+ let r;
802
+ return this._plugins.exec("spawn.before", void 0, {
803
+ ...this.taskContext(e, n),
804
+ kill(s) {
805
+ r = s || r;
806
+ }
807
+ }), r;
808
+ }
809
+ taskContext(e, n) {
810
+ return {
811
+ method: String(Me(e.commands) || ""),
812
+ commands: n,
813
+ env: { ...this.env },
814
+ input: kt(e) ? void 0 : e.input
815
+ };
816
+ }
817
+ }
818
+ function Mn(t, e) {
819
+ return (n) => {
820
+ e("[ERROR] child process exception %o", n), t.push(Buffer.from(String(n.stack), "ascii"));
821
+ };
822
+ }
823
+ function Et(t, e, n, r) {
824
+ return (s) => {
825
+ n("%s received %L bytes", e, s), r("%B", s), t.push(s);
826
+ };
827
+ }
828
+ class Dn {
829
+ constructor(e, n, r) {
830
+ this.cwd = e, this._scheduler = n, this._plugins = r, this._chain = this.chain();
831
+ }
832
+ chain() {
833
+ return new Pn(this, this._scheduler, this._plugins);
834
+ }
835
+ push(e) {
836
+ return this._chain.push(e);
837
+ }
838
+ }
839
+ function Ln(t, e, n = W) {
840
+ const r = (o) => {
841
+ n(null, o);
842
+ }, s = (o) => {
843
+ o?.task === t && n(o, void 0);
844
+ };
845
+ e.then(r, s);
846
+ }
847
+ function St(t, e) {
848
+ return tn((n) => {
849
+ if (!Lt(t))
850
+ throw new Error(`Git.cwd: cannot change to non-directory "${t}"`);
851
+ return (e || n).cwd = t;
852
+ });
853
+ }
854
+ function Q(t) {
855
+ const e = ["checkout", ...t];
856
+ return e[1] === "-b" && e.includes("-B") && (e[1] = ct(e, "-B")), g(e);
857
+ }
858
+ function jn() {
859
+ return {
860
+ checkout() {
861
+ return this._runTask(
862
+ Q(h(arguments, 1)),
863
+ u(arguments)
864
+ );
865
+ },
866
+ checkoutBranch(t, e) {
867
+ return this._runTask(
868
+ Q(["-b", t, e, ...h(arguments)]),
869
+ u(arguments)
870
+ );
871
+ },
872
+ checkoutLocalBranch(t) {
873
+ return this._runTask(
874
+ Q(["-b", t, ...h(arguments)]),
875
+ u(arguments)
876
+ );
877
+ }
878
+ };
879
+ }
880
+ const Yt = (t, e, n) => {
881
+ const r = ["clone", ...n];
882
+ return m(t) && r.push(rt(t)), m(e) && r.push(rt(e)), g(r);
883
+ }, Bn = (t, e, n) => (S(n, "--mirror"), Yt(t, e, n));
884
+ function Rt(t, e, n, ...r) {
885
+ return m(n) ? e(n, d(r[0], m), h(arguments)) : b(`git.${t}() requires a string 'repoPath'`);
886
+ }
887
+ function In() {
888
+ return {
889
+ clone(t, ...e) {
890
+ return this._runTask(
891
+ Rt("clone", Yt, d(t, m), ...e),
892
+ u(arguments)
893
+ );
894
+ },
895
+ mirror(t, ...e) {
896
+ return this._runTask(
897
+ Rt("mirror", Bn, d(t, m), ...e),
898
+ u(arguments)
899
+ );
900
+ }
901
+ };
902
+ }
903
+ const Un = [
904
+ new l(/^\[([^\s]+)( \([^)]+\))? ([^\]]+)/, (t, [e, n, r]) => {
905
+ t.branch = e, t.commit = r, t.root = !!n;
906
+ }),
907
+ new l(/\s*Author:\s(.+)/i, (t, [e]) => {
908
+ const n = e.split("<"), r = n.pop();
909
+ !r || !r.includes("@") || (t.author = {
910
+ email: r.substr(0, r.length - 1),
911
+ name: n.join("<").trim()
912
+ });
913
+ }),
914
+ new l(
915
+ /(\d+)[^,]*(?:,\s*(\d+)[^,]*)(?:,\s*(\d+))/g,
916
+ (t, [e, n, r]) => {
917
+ t.summary.changes = parseInt(e, 10) || 0, t.summary.insertions = parseInt(n, 10) || 0, t.summary.deletions = parseInt(r, 10) || 0;
918
+ }
919
+ ),
920
+ new l(
921
+ /^(\d+)[^,]*(?:,\s*(\d+)[^(]+\(([+-]))?/,
922
+ (t, [e, n, r]) => {
923
+ t.summary.changes = parseInt(e, 10) || 0;
924
+ const s = parseInt(n, 10) || 0;
925
+ r === "-" ? t.summary.deletions = s : r === "+" && (t.summary.insertions = s);
926
+ }
927
+ )
928
+ ];
929
+ function Fn(t) {
930
+ return E({
931
+ author: null,
932
+ branch: "",
933
+ commit: "",
934
+ root: !1,
935
+ summary: {
936
+ changes: 0,
937
+ insertions: 0,
938
+ deletions: 0
939
+ }
940
+ }, Un, t);
941
+ }
942
+ function Gn(t, e, n) {
943
+ return {
944
+ commands: [
945
+ "-c",
946
+ "core.abbrev=40",
947
+ "commit",
948
+ ...U(t, "-m"),
949
+ ...e,
950
+ ...n
951
+ ],
952
+ format: "utf-8",
953
+ parser: Fn
954
+ };
955
+ }
956
+ function zn() {
957
+ return {
958
+ commit(e, ...n) {
959
+ const r = u(arguments), s = t(e) || Gn(
960
+ v(e),
961
+ v(d(n[0], G, [])),
962
+ [
963
+ ...L(d(n[1], K, [])),
964
+ ...h(arguments, 0, !0)
965
+ ]
966
+ );
967
+ return this._runTask(s, r);
968
+ }
969
+ };
970
+ function t(e) {
971
+ return !G(e) && b(
972
+ "git.commit: requires the commit message to be supplied as a string/string[]"
973
+ );
974
+ }
975
+ }
976
+ function qn() {
977
+ return {
978
+ count: 0,
979
+ garbage: 0,
980
+ inPack: 0,
981
+ packs: 0,
982
+ prunePackable: 0,
983
+ size: 0,
984
+ sizeGarbage: 0,
985
+ sizePack: 0
986
+ };
987
+ }
988
+ const Wn = new l(
989
+ /([a-z-]+): (\d+)$/,
990
+ (t, [e, n]) => {
991
+ const r = jt(e);
992
+ Object.hasOwn(t, r) && (t[r] = p(n));
993
+ }
994
+ );
995
+ function Hn() {
996
+ return {
997
+ countObjects() {
998
+ return this._runTask({
999
+ commands: ["count-objects", "--verbose"],
1000
+ format: "utf-8",
1001
+ parser(t) {
1002
+ return E(qn(), [Wn], t);
1003
+ }
1004
+ });
1005
+ }
1006
+ };
1007
+ }
1008
+ function Kn() {
1009
+ return {
1010
+ firstCommit() {
1011
+ return this._runTask(
1012
+ g(["rev-list", "--max-parents=0", "HEAD"], !0),
1013
+ u(arguments)
1014
+ );
1015
+ }
1016
+ };
1017
+ }
1018
+ function Vn(t, e) {
1019
+ const n = ["hash-object", t];
1020
+ return e && n.push("-w"), g(n, !0);
1021
+ }
1022
+ class J {
1023
+ constructor(e, n, r, s) {
1024
+ this.bare = e, this.path = n, this.existing = r, this.gitDir = s;
1025
+ }
1026
+ }
1027
+ const Xn = /^Init.+ repository in (.+)$/, Yn = /^Rein.+ in (.+)$/;
1028
+ function Qn(t, e, n) {
1029
+ const r = String(n).trim();
1030
+ let s;
1031
+ if (s = Xn.exec(r))
1032
+ return new J(t, e, !1, s[1]);
1033
+ if (s = Yn.exec(r))
1034
+ return new J(t, e, !0, s[1]);
1035
+ let o = "";
1036
+ const i = r.split(" ");
1037
+ for (; i.length; )
1038
+ if (i.shift() === "in") {
1039
+ o = i.join(" ");
1040
+ break;
1041
+ }
1042
+ return new J(t, e, /^re/i.test(r), o);
1043
+ }
1044
+ const Qt = "--bare";
1045
+ function Jn(t) {
1046
+ return t.includes(Qt);
1047
+ }
1048
+ function Zn(t = !1, e, n) {
1049
+ const r = ["init", ...n];
1050
+ return t && !Jn(r) && r.splice(1, 0, Qt), {
1051
+ commands: r,
1052
+ format: "utf-8",
1053
+ parser(s) {
1054
+ return Qn(r.includes("--bare"), e, s);
1055
+ }
1056
+ };
1057
+ }
1058
+ function tr(t) {
1059
+ return t === void 0 ? b("interpretTrailers called without input content") : {
1060
+ format: "utf-8",
1061
+ parser(e) {
1062
+ return Object.fromEntries(
1063
+ ut(e, (n) => {
1064
+ const r = n.indexOf(":");
1065
+ return [
1066
+ jt(n.substring(0, r).toLowerCase()),
1067
+ n.substring(r + 2).trim()
1068
+ ];
1069
+ })
1070
+ );
1071
+ },
1072
+ commands: ["interpret-trailers", "--parse"],
1073
+ input: t
1074
+ };
1075
+ }
1076
+ function er() {
1077
+ return {
1078
+ interpretTrailers(t) {
1079
+ return this._runTask(
1080
+ tr(d(t, Be)),
1081
+ u(arguments)
1082
+ );
1083
+ }
1084
+ };
1085
+ }
1086
+ var R = /* @__PURE__ */ ((t) => (t.NONE = "", t.STAT = "--stat", t.NUM_STAT = "--numstat", t.NAME_ONLY = "--name-only", t.NAME_STATUS = "--name-status", t))(R || {});
1087
+ const Jt = /^--(stat|numstat|name-only|name-status)(=|$)/;
1088
+ function pt(t) {
1089
+ for (let e = 0; e < t.length; e++) {
1090
+ const n = Jt.exec(t[e]);
1091
+ if (n)
1092
+ return `--${n[1]}`;
1093
+ }
1094
+ return "";
1095
+ }
1096
+ function nr(t) {
1097
+ return Jt.test(t);
1098
+ }
1099
+ class rr {
1100
+ constructor() {
1101
+ this.changed = 0, this.deletions = 0, this.insertions = 0, this.files = [];
1102
+ }
1103
+ }
1104
+ const Ot = [
1105
+ new l(
1106
+ /^(.+)\s+\|\s+(\d+)(\s+[+\-]+)?$/,
1107
+ (t, [e, n, r = ""]) => {
1108
+ t.files.push({
1109
+ file: e.trim(),
1110
+ changes: p(n),
1111
+ insertions: r.replace(/[^+]/g, "").length,
1112
+ deletions: r.replace(/[^-]/g, "").length,
1113
+ binary: !1
1114
+ });
1115
+ }
1116
+ ),
1117
+ new l(
1118
+ /^(.+) \|\s+Bin ([0-9.]+) -> ([0-9.]+) ([a-z]+)/,
1119
+ (t, [e, n, r]) => {
1120
+ t.files.push({
1121
+ file: e.trim(),
1122
+ before: p(n),
1123
+ after: p(r),
1124
+ binary: !0
1125
+ });
1126
+ }
1127
+ ),
1128
+ new l(/^(.+)\s+\|\s+Bin\s*$/, (t, [e]) => {
1129
+ t.files.push({
1130
+ file: e.trim(),
1131
+ before: 0,
1132
+ after: 0,
1133
+ binary: !0
1134
+ });
1135
+ }),
1136
+ new l(
1137
+ /(\d+) files? changed\s*((?:, \d+ [^,]+){0,2})/,
1138
+ (t, [e, n]) => {
1139
+ const r = /(\d+) i/.exec(n), s = /(\d+) d/.exec(n);
1140
+ t.changed = p(e), t.insertions = p(r?.[1]), t.deletions = p(s?.[1]);
1141
+ }
1142
+ )
1143
+ ], sr = [
1144
+ new l(
1145
+ /(\d+)\t(\d+)\t(.+)$/,
1146
+ (t, [e, n, r]) => {
1147
+ const s = p(e), o = p(n);
1148
+ t.changed++, t.insertions += s, t.deletions += o, t.files.push({
1149
+ file: r,
1150
+ changes: s + o,
1151
+ insertions: s,
1152
+ deletions: o,
1153
+ binary: !1
1154
+ });
1155
+ }
1156
+ ),
1157
+ new l(/-\t-\t(.+)$/, (t, [e]) => {
1158
+ t.changed++, t.files.push({
1159
+ file: e,
1160
+ after: 0,
1161
+ before: 0,
1162
+ binary: !0
1163
+ });
1164
+ })
1165
+ ], or = [
1166
+ new l(/(.+)$/, (t, [e]) => {
1167
+ t.changed++, t.files.push({
1168
+ file: e,
1169
+ changes: 0,
1170
+ insertions: 0,
1171
+ deletions: 0,
1172
+ binary: !1
1173
+ });
1174
+ })
1175
+ ], ir = [
1176
+ new l(
1177
+ /([ACDMRTUXB])([0-9]{0,3})\t(.[^\t]*)(\t(.[^\t]*))?$/,
1178
+ (t, [e, n, r, s, o]) => {
1179
+ t.changed++, t.files.push({
1180
+ file: o ?? r,
1181
+ changes: 0,
1182
+ insertions: 0,
1183
+ deletions: 0,
1184
+ binary: !1,
1185
+ status: bt(_n(e) && e),
1186
+ from: bt(!!o && r !== o && r),
1187
+ similarity: p(n)
1188
+ });
1189
+ }
1190
+ )
1191
+ ], ar = {
1192
+ [R.NONE]: Ot,
1193
+ [R.STAT]: Ot,
1194
+ [R.NUM_STAT]: sr,
1195
+ [R.NAME_STATUS]: ir,
1196
+ [R.NAME_ONLY]: or
1197
+ };
1198
+ function Zt(t = R.NONE) {
1199
+ const e = ar[t];
1200
+ return (n) => E(new rr(), e, n, !1);
1201
+ }
1202
+ const te = "òòòòòò ", ee = " òò", ne = " ò ", ur = ["hash", "date", "message", "refs", "author_name", "author_email"];
1203
+ function cr(t, e) {
1204
+ return e.reduce(
1205
+ (n, r, s) => (n[r] = t[s] || "", n),
1206
+ /* @__PURE__ */ Object.create({ diff: null })
1207
+ );
1208
+ }
1209
+ function re(t = ne, e = ur, n = R.NONE) {
1210
+ const r = Zt(n);
1211
+ return function(s) {
1212
+ const o = H(
1213
+ s.trim(),
1214
+ !1,
1215
+ te
1216
+ ).map(function(i) {
1217
+ const a = i.split(ee), c = cr(a[0].split(t), e);
1218
+ return a.length > 1 && a[1].trim() && (c.diff = r(a[1])), c;
1219
+ });
1220
+ return {
1221
+ all: o,
1222
+ latest: o.length && o[0] || null,
1223
+ total: o.length
1224
+ };
1225
+ };
1226
+ }
1227
+ function fr(t) {
1228
+ let e = pt(t);
1229
+ const n = ["diff"];
1230
+ return e === R.NONE && (e = R.STAT, n.push("--stat=4096")), n.push(...t), dt(n) || {
1231
+ commands: n,
1232
+ format: "utf-8",
1233
+ parser: Zt(e)
1234
+ };
1235
+ }
1236
+ function dt(t) {
1237
+ const e = t.filter(nr);
1238
+ if (e.length > 1)
1239
+ return b(
1240
+ `Summary flags are mutually exclusive - pick one of ${e.join(",")}`
1241
+ );
1242
+ if (e.length && t.includes("-z"))
1243
+ return b(
1244
+ `Summary flag ${e} parsing is not compatible with null termination option '-z'`
1245
+ );
1246
+ }
1247
+ var se = /* @__PURE__ */ ((t) => (t[t["--pretty"] = 0] = "--pretty", t[t["max-count"] = 1] = "max-count", t[t.maxCount = 2] = "maxCount", t[t.n = 3] = "n", t[t.file = 4] = "file", t[t.format = 5] = "format", t[t.from = 6] = "from", t[t.to = 7] = "to", t[t.splitter = 8] = "splitter", t[t.symmetric = 9] = "symmetric", t[t.mailMap = 10] = "mailMap", t[t.multiLine = 11] = "multiLine", t[t.strictDate = 12] = "strictDate", t))(se || {});
1248
+ function lr(t, e) {
1249
+ const n = [], r = [];
1250
+ return Object.keys(t).forEach((s) => {
1251
+ n.push(s), r.push(String(t[s]));
1252
+ }), [n, r.join(e)];
1253
+ }
1254
+ function hr(t) {
1255
+ return Object.keys(t).reduce((e, n) => (n in se || (e[n] = t[n]), e), {});
1256
+ }
1257
+ function oe(t = {}, e = []) {
1258
+ const n = d(t.splitter, m, ne), r = lt(t.format) ? t.format : {
1259
+ hash: "%H",
1260
+ date: t.strictDate === !1 ? "%ai" : "%aI",
1261
+ message: "%s",
1262
+ refs: "%D",
1263
+ body: t.multiLine ? "%B" : "%b",
1264
+ author_name: t.mailMap !== !1 ? "%aN" : "%an",
1265
+ author_email: t.mailMap !== !1 ? "%aE" : "%ae"
1266
+ }, [s, o] = lr(r, n), i = [], a = [
1267
+ `--pretty=format:${te}${o}${ee}`,
1268
+ ...e
1269
+ ], c = t.n || t["max-count"] || t.maxCount;
1270
+ if (c && a.push(`--max-count=${c}`), t.from || t.to) {
1271
+ const y = t.symmetric !== !1 ? "..." : "..";
1272
+ i.push(`${t.from || ""}${y}${t.to || ""}`);
1273
+ }
1274
+ return m(t.file) && a.push("--follow", rt(t.file)), It(hr(t), a), {
1275
+ fields: s,
1276
+ splitter: n,
1277
+ commands: [...a, ...i]
1278
+ };
1279
+ }
1280
+ function mr(t, e, n) {
1281
+ const r = re(t, e, pt(n));
1282
+ return {
1283
+ commands: ["log", ...n],
1284
+ format: "utf-8",
1285
+ parser: r
1286
+ };
1287
+ }
1288
+ function pr() {
1289
+ return {
1290
+ log(...n) {
1291
+ const r = u(arguments), s = oe(
1292
+ ht(arguments),
1293
+ L(d(arguments[0], K, []))
1294
+ ), o = e(...n) || dt(s.commands) || t(s);
1295
+ return this._runTask(o, r);
1296
+ }
1297
+ };
1298
+ function t(n) {
1299
+ return mr(n.splitter, n.fields, n.commands);
1300
+ }
1301
+ function e(n, r) {
1302
+ return m(n) && m(r) && b(
1303
+ "git.log(string, string) should be replaced with git.log({ from: string, to: string })"
1304
+ );
1305
+ }
1306
+ }
1307
+ class Z {
1308
+ constructor(e, n = null, r) {
1309
+ this.reason = e, this.file = n, this.meta = r;
1310
+ }
1311
+ toString() {
1312
+ return `${this.file}:${this.reason}`;
1313
+ }
1314
+ }
1315
+ class dr {
1316
+ constructor() {
1317
+ this.conflicts = [], this.merges = [], this.result = "success";
1318
+ }
1319
+ get failed() {
1320
+ return this.conflicts.length > 0;
1321
+ }
1322
+ get reason() {
1323
+ return this.result;
1324
+ }
1325
+ toString() {
1326
+ return this.conflicts.length ? `CONFLICTS: ${this.conflicts.join(", ")}` : "OK";
1327
+ }
1328
+ }
1329
+ class ie {
1330
+ constructor() {
1331
+ this.remoteMessages = {
1332
+ all: []
1333
+ }, this.created = [], this.deleted = [], this.files = [], this.deletions = {}, this.insertions = {}, this.summary = {
1334
+ changes: 0,
1335
+ deletions: 0,
1336
+ insertions: 0
1337
+ };
1338
+ }
1339
+ }
1340
+ class gr {
1341
+ constructor() {
1342
+ this.remote = "", this.hash = {
1343
+ local: "",
1344
+ remote: ""
1345
+ }, this.branch = {
1346
+ local: "",
1347
+ remote: ""
1348
+ }, this.message = "";
1349
+ }
1350
+ toString() {
1351
+ return this.message;
1352
+ }
1353
+ }
1354
+ function tt(t) {
1355
+ return t.objects = t.objects || {
1356
+ compressing: 0,
1357
+ counting: 0,
1358
+ enumerating: 0,
1359
+ packReused: 0,
1360
+ reused: { count: 0, delta: 0 },
1361
+ total: { count: 0, delta: 0 }
1362
+ };
1363
+ }
1364
+ function Ct(t) {
1365
+ const e = /^\s*(\d+)/.exec(t), n = /delta (\d+)/i.exec(t);
1366
+ return {
1367
+ count: p(e && e[1] || "0"),
1368
+ delta: p(n && n[1] || "0")
1369
+ };
1370
+ }
1371
+ const yr = [
1372
+ new x(
1373
+ /^remote:\s*(enumerating|counting|compressing) objects: (\d+),/i,
1374
+ (t, [e, n]) => {
1375
+ const r = e.toLowerCase(), s = tt(t.remoteMessages);
1376
+ Object.assign(s, { [r]: p(n) });
1377
+ }
1378
+ ),
1379
+ new x(
1380
+ /^remote:\s*(enumerating|counting|compressing) objects: \d+% \(\d+\/(\d+)\),/i,
1381
+ (t, [e, n]) => {
1382
+ const r = e.toLowerCase(), s = tt(t.remoteMessages);
1383
+ Object.assign(s, { [r]: p(n) });
1384
+ }
1385
+ ),
1386
+ new x(
1387
+ /total ([^,]+), reused ([^,]+), pack-reused (\d+)/i,
1388
+ (t, [e, n, r]) => {
1389
+ const s = tt(t.remoteMessages);
1390
+ s.total = Ct(e), s.reused = Ct(n), s.packReused = p(r);
1391
+ }
1392
+ )
1393
+ ], wr = [
1394
+ new x(/^remote:\s*(.+)$/, (t, [e]) => (t.remoteMessages.all.push(e.trim()), !1)),
1395
+ ...yr,
1396
+ new x(
1397
+ [/create a (?:pull|merge) request/i, /\s(https?:\/\/\S+)$/],
1398
+ (t, [e]) => {
1399
+ t.remoteMessages.pullRequestUrl = e;
1400
+ }
1401
+ ),
1402
+ new x(
1403
+ [/found (\d+) vulnerabilities.+\(([^)]+)\)/i, /\s(https?:\/\/\S+)$/],
1404
+ (t, [e, n, r]) => {
1405
+ t.remoteMessages.vulnerabilities = {
1406
+ count: p(e),
1407
+ summary: n,
1408
+ url: r
1409
+ };
1410
+ }
1411
+ )
1412
+ ];
1413
+ function ae(t, e) {
1414
+ return E({ remoteMessages: new br() }, wr, e);
1415
+ }
1416
+ class br {
1417
+ constructor() {
1418
+ this.all = [];
1419
+ }
1420
+ }
1421
+ const Tr = /^\s*(.+?)\s+\|\s+\d+\s*(\+*)(-*)/, kr = /(\d+)\D+((\d+)\D+\(\+\))?(\D+(\d+)\D+\(-\))?/, _r = /^(create|delete) mode \d+ (.+)/, vr = [
1422
+ new l(Tr, (t, [e, n, r]) => {
1423
+ t.files.push(e), n && (t.insertions[e] = n.length), r && (t.deletions[e] = r.length);
1424
+ }),
1425
+ new l(kr, (t, [e, , n, , r]) => n !== void 0 || r !== void 0 ? (t.summary.changes = +e || 0, t.summary.insertions = +n || 0, t.summary.deletions = +r || 0, !0) : !1),
1426
+ new l(_r, (t, [e, n]) => {
1427
+ S(t.files, n), S(e === "create" ? t.created : t.deleted, n);
1428
+ })
1429
+ ], Er = [
1430
+ new l(/^from\s(.+)$/i, (t, [e]) => {
1431
+ t.remote = e;
1432
+ }),
1433
+ new l(/^fatal:\s(.+)$/, (t, [e]) => {
1434
+ t.message = e;
1435
+ }),
1436
+ new l(
1437
+ /([a-z0-9]+)\.\.([a-z0-9]+)\s+(\S+)\s+->\s+(\S+)$/,
1438
+ (t, [e, n, r, s]) => {
1439
+ t.branch.local = r, t.hash.local = e, t.branch.remote = s, t.hash.remote = n;
1440
+ }
1441
+ )
1442
+ ], Sr = (t, e) => E(new ie(), vr, [t, e]), ue = (t, e) => Object.assign(
1443
+ new ie(),
1444
+ Sr(t, e),
1445
+ ae(t, e)
1446
+ );
1447
+ function Rr(t, e) {
1448
+ const n = E(new gr(), Er, [t, e]);
1449
+ return n.message && n;
1450
+ }
1451
+ const Or = [
1452
+ new l(/^Auto-merging\s+(.+)$/, (t, [e]) => {
1453
+ t.merges.push(e);
1454
+ }),
1455
+ new l(/^CONFLICT\s+\((.+)\): Merge conflict in (.+)$/, (t, [e, n]) => {
1456
+ t.conflicts.push(new Z(e, n));
1457
+ }),
1458
+ new l(
1459
+ /^CONFLICT\s+\((.+\/delete)\): (.+) deleted in (.+) and/,
1460
+ (t, [e, n, r]) => {
1461
+ t.conflicts.push(new Z(e, n, { deleteRef: r }));
1462
+ }
1463
+ ),
1464
+ new l(/^CONFLICT\s+\((.+)\):/, (t, [e]) => {
1465
+ t.conflicts.push(new Z(e, null));
1466
+ }),
1467
+ new l(/^Automatic merge failed;\s+(.+)$/, (t, [e]) => {
1468
+ t.result = e;
1469
+ })
1470
+ ], Cr = (t, e) => Object.assign(Ar(t), ue(t, e)), Ar = (t) => E(new dr(), Or, t);
1471
+ function At(t) {
1472
+ return t.length ? {
1473
+ commands: ["merge", ...t],
1474
+ format: "utf-8",
1475
+ parser(e, n) {
1476
+ const r = Cr(e, n);
1477
+ if (r.failed)
1478
+ throw new at(r);
1479
+ return r;
1480
+ }
1481
+ } : b("Git.merge requires at least one option");
1482
+ }
1483
+ function xr(t, e, n) {
1484
+ const r = n.includes("deleted"), s = n.includes("tag") || /^refs\/tags/.test(t), o = !n.includes("new");
1485
+ return {
1486
+ deleted: r,
1487
+ tag: s,
1488
+ branch: !s,
1489
+ new: !o,
1490
+ alreadyUpdated: o,
1491
+ local: t,
1492
+ remote: e
1493
+ };
1494
+ }
1495
+ const Nr = [
1496
+ new l(/^Pushing to (.+)$/, (t, [e]) => {
1497
+ t.repo = e;
1498
+ }),
1499
+ new l(/^updating local tracking ref '(.+)'/, (t, [e]) => {
1500
+ t.ref = {
1501
+ ...t.ref || {},
1502
+ local: e
1503
+ };
1504
+ }),
1505
+ new l(/^[=*-]\s+([^:]+):(\S+)\s+\[(.+)]$/, (t, [e, n, r]) => {
1506
+ t.pushed.push(xr(e, n, r));
1507
+ }),
1508
+ new l(
1509
+ /^Branch '([^']+)' set up to track remote branch '([^']+)' from '([^']+)'/,
1510
+ (t, [e, n, r]) => {
1511
+ t.branch = {
1512
+ ...t.branch || {},
1513
+ local: e,
1514
+ remote: n,
1515
+ remoteName: r
1516
+ };
1517
+ }
1518
+ ),
1519
+ new l(
1520
+ /^([^:]+):(\S+)\s+([a-z0-9]+)\.\.([a-z0-9]+)$/,
1521
+ (t, [e, n, r, s]) => {
1522
+ t.update = {
1523
+ head: {
1524
+ local: e,
1525
+ remote: n
1526
+ },
1527
+ hash: {
1528
+ from: r,
1529
+ to: s
1530
+ }
1531
+ };
1532
+ }
1533
+ )
1534
+ ], $r = (t, e) => {
1535
+ const n = Pr(t, e), r = ae(t, e);
1536
+ return {
1537
+ ...n,
1538
+ ...r
1539
+ };
1540
+ }, Pr = (t, e) => E({ pushed: [] }, Nr, [t, e]);
1541
+ function Mr(t = {}, e) {
1542
+ return S(e, "--tags"), ce(t, e);
1543
+ }
1544
+ function ce(t = {}, e) {
1545
+ const n = ["push", ...e];
1546
+ return t.branch && n.splice(1, 0, t.branch), t.remote && n.splice(1, 0, t.remote), ct(n, "-v"), S(n, "--verbose"), S(n, "--porcelain"), {
1547
+ commands: n,
1548
+ format: "utf-8",
1549
+ parser: $r
1550
+ };
1551
+ }
1552
+ function Dr() {
1553
+ return {
1554
+ showBuffer() {
1555
+ const t = ["show", ...h(arguments, 1)];
1556
+ return t.includes("--binary") || t.splice(1, 0, "--binary"), this._runTask(
1557
+ Gt(t),
1558
+ u(arguments)
1559
+ );
1560
+ },
1561
+ show() {
1562
+ const t = ["show", ...h(arguments, 1)];
1563
+ return this._runTask(
1564
+ g(t),
1565
+ u(arguments)
1566
+ );
1567
+ }
1568
+ };
1569
+ }
1570
+ const Lr = /^(.+)\0(.+)$/;
1571
+ class jr {
1572
+ constructor(e, n, r) {
1573
+ if (this.path = e, this.index = n, this.working_dir = r, n === "R" || r === "R") {
1574
+ const s = Lr.exec(e) || [null, e, e];
1575
+ this.from = s[2] || "", this.path = s[1] || "";
1576
+ }
1577
+ }
1578
+ }
1579
+ class Br {
1580
+ constructor() {
1581
+ this.not_added = [], this.conflicted = [], this.created = [], this.deleted = [], this.ignored = void 0, this.modified = [], this.renamed = [], this.files = [], this.staged = [], this.ahead = 0, this.behind = 0, this.current = null, this.tracking = null, this.detached = !1, this.isClean = () => !this.files.length;
1582
+ }
1583
+ }
1584
+ function xt(t) {
1585
+ const [e, n] = t.split(I);
1586
+ return {
1587
+ from: n || e,
1588
+ to: e
1589
+ };
1590
+ }
1591
+ function _(t, e, n) {
1592
+ return [`${t}${e}`, n];
1593
+ }
1594
+ function et(t, ...e) {
1595
+ return e.map((n) => _(t, n, (r, s) => r.conflicted.push(s)));
1596
+ }
1597
+ const Ir = new Map([
1598
+ _(
1599
+ " ",
1600
+ "A",
1601
+ (t, e) => t.created.push(e)
1602
+ ),
1603
+ _(
1604
+ " ",
1605
+ "D",
1606
+ (t, e) => t.deleted.push(e)
1607
+ ),
1608
+ _(
1609
+ " ",
1610
+ "M",
1611
+ (t, e) => t.modified.push(e)
1612
+ ),
1613
+ _("A", " ", (t, e) => {
1614
+ t.created.push(e), t.staged.push(e);
1615
+ }),
1616
+ _("A", "M", (t, e) => {
1617
+ t.created.push(e), t.staged.push(e), t.modified.push(e);
1618
+ }),
1619
+ _("D", " ", (t, e) => {
1620
+ t.deleted.push(e), t.staged.push(e);
1621
+ }),
1622
+ _("M", " ", (t, e) => {
1623
+ t.modified.push(e), t.staged.push(e);
1624
+ }),
1625
+ _("M", "M", (t, e) => {
1626
+ t.modified.push(e), t.staged.push(e);
1627
+ }),
1628
+ _("R", " ", (t, e) => {
1629
+ t.renamed.push(xt(e));
1630
+ }),
1631
+ _("R", "M", (t, e) => {
1632
+ const n = xt(e);
1633
+ t.renamed.push(n), t.modified.push(n.to);
1634
+ }),
1635
+ _("!", "!", (t, e) => {
1636
+ (t.ignored = t.ignored || []).push(e);
1637
+ }),
1638
+ _(
1639
+ "?",
1640
+ "?",
1641
+ (t, e) => t.not_added.push(e)
1642
+ ),
1643
+ ...et(
1644
+ "A",
1645
+ "A",
1646
+ "U"
1647
+ /* UNMERGED */
1648
+ ),
1649
+ ...et(
1650
+ "D",
1651
+ "D",
1652
+ "U"
1653
+ /* UNMERGED */
1654
+ ),
1655
+ ...et(
1656
+ "U",
1657
+ "A",
1658
+ "D",
1659
+ "U"
1660
+ /* UNMERGED */
1661
+ ),
1662
+ [
1663
+ "##",
1664
+ (t, e) => {
1665
+ const n = /ahead (\d+)/, r = /behind (\d+)/, s = /^(.+?(?=(?:\.{3}|\s|$)))/, o = /\.{3}(\S*)/, i = /\son\s(\S+?)(?=\.{3}|$)/;
1666
+ let a = n.exec(e);
1667
+ t.ahead = a && +a[1] || 0, a = r.exec(e), t.behind = a && +a[1] || 0, a = s.exec(e), t.current = d(a?.[1], m, null), a = o.exec(e), t.tracking = d(a?.[1], m, null), a = i.exec(e), a && (t.current = d(a?.[1], m, t.current)), t.detached = /\(no branch\)/.test(e);
1668
+ }
1669
+ ]
1670
+ ]), Ur = function(t) {
1671
+ const e = t.split(I), n = new Br();
1672
+ for (let r = 0, s = e.length; r < s; ) {
1673
+ let o = e[r++].trim();
1674
+ o && (o.charAt(0) === "R" && (o += I + (e[r++] || "")), Fr(n, o));
1675
+ }
1676
+ return n;
1677
+ };
1678
+ function Fr(t, e) {
1679
+ const n = e.trim();
1680
+ switch (" ") {
1681
+ case n.charAt(2):
1682
+ return r(n.charAt(0), n.charAt(1), n.slice(3));
1683
+ case n.charAt(1):
1684
+ return r(" ", n.charAt(0), n.slice(2));
1685
+ default:
1686
+ return;
1687
+ }
1688
+ function r(s, o, i) {
1689
+ const a = `${s}${o}`, c = Ir.get(a);
1690
+ c && c(t, i), a !== "##" && a !== "!!" && t.files.push(new jr(i, s, o));
1691
+ }
1692
+ }
1693
+ const Gr = ["--null", "-z"];
1694
+ function zr(t) {
1695
+ return {
1696
+ format: "utf-8",
1697
+ commands: [
1698
+ "status",
1699
+ "--porcelain",
1700
+ "-b",
1701
+ "-u",
1702
+ "--null",
1703
+ ...t.filter((n) => !Gr.includes(n))
1704
+ ],
1705
+ parser(n) {
1706
+ return Ur(n);
1707
+ }
1708
+ };
1709
+ }
1710
+ const fe = "installed=false";
1711
+ function q(t = 0, e = 0, n = 0, r = "", s = !0) {
1712
+ return Object.defineProperty(
1713
+ {
1714
+ major: t,
1715
+ minor: e,
1716
+ patch: n,
1717
+ agent: r,
1718
+ installed: s
1719
+ },
1720
+ "toString",
1721
+ {
1722
+ value() {
1723
+ return `${this.major}.${this.minor}.${this.patch}`;
1724
+ },
1725
+ configurable: !1,
1726
+ enumerable: !1
1727
+ }
1728
+ );
1729
+ }
1730
+ function qr() {
1731
+ return q(0, 0, 0, "", !1);
1732
+ }
1733
+ function Wr() {
1734
+ return {
1735
+ version() {
1736
+ return this._runTask({
1737
+ commands: ["--version"],
1738
+ format: "utf-8",
1739
+ parser: Kr,
1740
+ onError(t, e, n, r) {
1741
+ if (t.exitCode === V.NOT_FOUND)
1742
+ return n(Buffer.from(fe));
1743
+ r(e);
1744
+ }
1745
+ });
1746
+ }
1747
+ };
1748
+ }
1749
+ const Hr = [
1750
+ new l(
1751
+ /version (\d+)\.(\d+)\.(\d+)(?:\s*\((.+)\))?/,
1752
+ (t, [e, n, r, s = ""]) => {
1753
+ Object.assign(
1754
+ t,
1755
+ q(p(e), p(n), p(r), s)
1756
+ );
1757
+ }
1758
+ ),
1759
+ new l(
1760
+ /version (\d+)\.(\d+)\.(\D+)(.+)?$/,
1761
+ (t, [e, n, r, s = ""]) => {
1762
+ Object.assign(t, q(p(e), p(n), r, s));
1763
+ }
1764
+ )
1765
+ ];
1766
+ function Kr(t) {
1767
+ return t === fe ? qr() : E(q(0, 0, 0, t), Hr, t);
1768
+ }
1769
+ class le {
1770
+ constructor(e) {
1771
+ this._executor = e;
1772
+ }
1773
+ _runTask(e, n) {
1774
+ const r = this._executor.chain(), s = r.push(e);
1775
+ return n && Ln(e, s, n), Object.create(this, {
1776
+ then: { value: s.then.bind(s) },
1777
+ catch: { value: s.catch.bind(s) },
1778
+ _executor: { value: r }
1779
+ });
1780
+ }
1781
+ add(e) {
1782
+ return this._runTask(
1783
+ g(["add", ...v(e)]),
1784
+ u(arguments)
1785
+ );
1786
+ }
1787
+ cwd(e) {
1788
+ const n = u(arguments);
1789
+ return typeof e == "string" ? this._runTask(St(e, this._executor), n) : typeof e?.path == "string" ? this._runTask(
1790
+ St(
1791
+ e.path,
1792
+ e.root && this._executor || void 0
1793
+ ),
1794
+ n
1795
+ ) : this._runTask(
1796
+ b("Git.cwd: workingDirectory must be supplied as a string"),
1797
+ n
1798
+ );
1799
+ }
1800
+ hashObject(e, n) {
1801
+ return this._runTask(
1802
+ Vn(e, n === !0),
1803
+ u(arguments)
1804
+ );
1805
+ }
1806
+ init(e) {
1807
+ return this._runTask(
1808
+ Zn(e === !0, this._executor.cwd, h(arguments)),
1809
+ u(arguments)
1810
+ );
1811
+ }
1812
+ merge() {
1813
+ return this._runTask(
1814
+ At(h(arguments)),
1815
+ u(arguments)
1816
+ );
1817
+ }
1818
+ mergeFromTo(e, n) {
1819
+ return m(e) && m(n) ? this._runTask(
1820
+ At([e, n, ...h(arguments)]),
1821
+ u(arguments, !1)
1822
+ ) : this._runTask(
1823
+ b(
1824
+ "Git.mergeFromTo requires that the 'remote' and 'branch' arguments are supplied as strings"
1825
+ )
1826
+ );
1827
+ }
1828
+ outputHandler(e) {
1829
+ return this._executor.outputHandler = e, this;
1830
+ }
1831
+ push() {
1832
+ const e = ce(
1833
+ {
1834
+ remote: d(arguments[0], m),
1835
+ branch: d(arguments[1], m)
1836
+ },
1837
+ h(arguments)
1838
+ );
1839
+ return this._runTask(e, u(arguments));
1840
+ }
1841
+ stash() {
1842
+ return this._runTask(
1843
+ g(["stash", ...h(arguments)]),
1844
+ u(arguments)
1845
+ );
1846
+ }
1847
+ status() {
1848
+ return this._runTask(
1849
+ zr(h(arguments)),
1850
+ u(arguments)
1851
+ );
1852
+ }
1853
+ }
1854
+ Object.assign(
1855
+ le.prototype,
1856
+ jn(),
1857
+ In(),
1858
+ zn(),
1859
+ Tn(),
1860
+ Hn(),
1861
+ Kn(),
1862
+ On(),
1863
+ er(),
1864
+ pr(),
1865
+ Dr(),
1866
+ Wr()
1867
+ );
1868
+ const Vr = /* @__PURE__ */ (() => {
1869
+ let t = 0;
1870
+ return () => {
1871
+ t++;
1872
+ const { promise: e, done: n } = Ee();
1873
+ return {
1874
+ promise: e,
1875
+ done: n,
1876
+ id: t
1877
+ };
1878
+ };
1879
+ })();
1880
+ class Xr {
1881
+ constructor(e = 2) {
1882
+ this.concurrency = e, this.logger = $("", "scheduler"), this.pending = [], this.running = [], this.logger("Constructed, concurrency=%s", e);
1883
+ }
1884
+ schedule() {
1885
+ if (!this.pending.length || this.running.length >= this.concurrency) {
1886
+ this.logger(
1887
+ "Schedule attempt ignored, pending=%s running=%s concurrency=%s",
1888
+ this.pending.length,
1889
+ this.running.length,
1890
+ this.concurrency
1891
+ );
1892
+ return;
1893
+ }
1894
+ const e = S(this.running, this.pending.shift());
1895
+ this.logger("Attempting id=%s", e.id), e.done(() => {
1896
+ this.logger("Completing id=", e.id), ct(this.running, e), this.schedule();
1897
+ });
1898
+ }
1899
+ next() {
1900
+ const { promise: e, id: n } = S(this.pending, Vr());
1901
+ return this.logger("Scheduling id=%s", n), this.schedule(), e;
1902
+ }
1903
+ }
1904
+ function Yr(t, e) {
1905
+ return g(["apply", ...e, ...t]);
1906
+ }
1907
+ var he = /* @__PURE__ */ ((t) => (t.CURRENT = "*", t.LINKED = "+", t))(he || {});
1908
+ class Qr {
1909
+ constructor() {
1910
+ this.all = [], this.branches = {}, this.current = "", this.detached = !1;
1911
+ }
1912
+ push(e, n, r, s, o) {
1913
+ e === "*" && (this.detached = n, this.current = r), this.all.push(r), this.branches[r] = {
1914
+ current: e === "*",
1915
+ linkedWorkTree: e === "+",
1916
+ name: r,
1917
+ commit: s,
1918
+ label: o
1919
+ };
1920
+ }
1921
+ }
1922
+ const Jr = [
1923
+ new l(
1924
+ /^([*+]\s)?\((?:HEAD )?detached (?:from|at) (\S+)\)\s+([a-z0-9]+)\s(.*)$/,
1925
+ (t, [e, n, r, s]) => {
1926
+ t.push(Nt(e), !0, n, r, s);
1927
+ }
1928
+ ),
1929
+ new l(
1930
+ /^([*+]\s)?(\S+)\s+([a-z0-9]+)\s?(.*)$/s,
1931
+ (t, [e, n, r, s]) => {
1932
+ t.push(Nt(e), !1, n, r, s);
1933
+ }
1934
+ )
1935
+ ], Zr = new l(/^(\S+)$/s, (t, [e]) => {
1936
+ t.push(he.CURRENT, !1, e, "", "");
1937
+ });
1938
+ function Nt(t) {
1939
+ return t ? t.charAt(0) : "";
1940
+ }
1941
+ function me(t, e = !1) {
1942
+ return E(
1943
+ new Qr(),
1944
+ e ? [Zr] : Jr,
1945
+ t
1946
+ );
1947
+ }
1948
+ class ts {
1949
+ constructor() {
1950
+ this.all = [], this.branches = {}, this.errors = [];
1951
+ }
1952
+ get success() {
1953
+ return !this.errors.length;
1954
+ }
1955
+ }
1956
+ function es(t, e) {
1957
+ return {
1958
+ branch: t,
1959
+ hash: e,
1960
+ success: !0
1961
+ };
1962
+ }
1963
+ function ns(t) {
1964
+ return {
1965
+ branch: t,
1966
+ hash: null,
1967
+ success: !1
1968
+ };
1969
+ }
1970
+ const rs = /(\S+)\s+\(\S+\s([^)]+)\)/, pe = /^error[^']+'([^']+)'/m, ss = [
1971
+ new l(rs, (t, [e, n]) => {
1972
+ const r = es(e, n);
1973
+ t.all.push(r), t.branches[e] = r;
1974
+ }),
1975
+ new l(pe, (t, [e]) => {
1976
+ const n = ns(e);
1977
+ t.errors.push(n), t.all.push(n), t.branches[e] = n;
1978
+ })
1979
+ ], gt = (t, e) => E(new ts(), ss, [t, e]);
1980
+ function de(t, e) {
1981
+ return e === V.ERROR && pe.test(t);
1982
+ }
1983
+ function os(t) {
1984
+ const e = ["-d", "-D", "--delete"];
1985
+ return t.some((n) => e.includes(n));
1986
+ }
1987
+ function is(t) {
1988
+ const e = os(t), n = t.includes("--show-current"), r = ["branch", ...t];
1989
+ return r.length === 1 && r.push("-a"), r.includes("-v") || r.splice(1, 0, "-v"), {
1990
+ format: "utf-8",
1991
+ commands: r,
1992
+ parser(s, o) {
1993
+ return e ? gt(s, o).all[0] : me(s, n);
1994
+ }
1995
+ };
1996
+ }
1997
+ function as() {
1998
+ return {
1999
+ format: "utf-8",
2000
+ commands: ["branch", "-v"],
2001
+ parser(t) {
2002
+ return me(t);
2003
+ }
2004
+ };
2005
+ }
2006
+ function us(t, e = !1) {
2007
+ return {
2008
+ format: "utf-8",
2009
+ commands: ["branch", "-v", e ? "-D" : "-d", ...t],
2010
+ parser(n, r) {
2011
+ return gt(n, r);
2012
+ },
2013
+ onError({ exitCode: n, stdOut: r }, s, o, i) {
2014
+ if (!de(String(s), n))
2015
+ return i(s);
2016
+ o(r);
2017
+ }
2018
+ };
2019
+ }
2020
+ function cs(t, e = !1) {
2021
+ const n = {
2022
+ format: "utf-8",
2023
+ commands: ["branch", "-v", e ? "-D" : "-d", t],
2024
+ parser(r, s) {
2025
+ return gt(r, s).branches[t];
2026
+ },
2027
+ onError({ exitCode: r, stdErr: s, stdOut: o }, i, a, c) {
2028
+ if (!de(String(i), r))
2029
+ return c(i);
2030
+ throw new at(
2031
+ n.parser(F(o), F(s)),
2032
+ String(i)
2033
+ );
2034
+ }
2035
+ };
2036
+ return n;
2037
+ }
2038
+ function fs(t) {
2039
+ return {
2040
+ commands: ["check-ignore", ...t],
2041
+ format: "utf-8",
2042
+ parser: ls
2043
+ };
2044
+ }
2045
+ function ls(t) {
2046
+ return t.split(/\n/g).map(hs).filter(Boolean);
2047
+ }
2048
+ function hs(t) {
2049
+ const e = t.trim().replace(/^["']|["']$/g, "");
2050
+ return e && Se(e);
2051
+ }
2052
+ const ms = [
2053
+ new l(/From (.+)$/, (t, [e]) => {
2054
+ t.remote = e;
2055
+ }),
2056
+ new l(/\* \[new branch]\s+(\S+)\s*-> (.+)$/, (t, [e, n]) => {
2057
+ t.branches.push({
2058
+ name: e,
2059
+ tracking: n
2060
+ });
2061
+ }),
2062
+ new l(/\* \[new tag]\s+(\S+)\s*-> (.+)$/, (t, [e, n]) => {
2063
+ t.tags.push({
2064
+ name: e,
2065
+ tracking: n
2066
+ });
2067
+ }),
2068
+ new l(/- \[deleted]\s+\S+\s*-> (.+)$/, (t, [e]) => {
2069
+ t.deleted.push({
2070
+ tracking: e
2071
+ });
2072
+ }),
2073
+ new l(
2074
+ /\s*([^.]+)\.\.(\S+)\s+(\S+)\s*-> (.+)$/,
2075
+ (t, [e, n, r, s]) => {
2076
+ t.updated.push({
2077
+ name: r,
2078
+ tracking: s,
2079
+ to: n,
2080
+ from: e
2081
+ });
2082
+ }
2083
+ )
2084
+ ];
2085
+ function ps(t, e) {
2086
+ return E({
2087
+ raw: t,
2088
+ remote: null,
2089
+ branches: [],
2090
+ tags: [],
2091
+ updated: [],
2092
+ deleted: []
2093
+ }, ms, [t, e]);
2094
+ }
2095
+ function ds(t) {
2096
+ return /^--upload-pack(=|$)/.test(t);
2097
+ }
2098
+ function gs(t, e, n) {
2099
+ const r = ["fetch", ...n];
2100
+ return t && e && r.push(t, e), r.find(ds) ? b("git.fetch: potential exploit argument blocked.") : {
2101
+ commands: r,
2102
+ format: "utf-8",
2103
+ parser: ps
2104
+ };
2105
+ }
2106
+ const ys = [
2107
+ new l(/^Renaming (.+) to (.+)$/, (t, [e, n]) => {
2108
+ t.moves.push({ from: e, to: n });
2109
+ })
2110
+ ];
2111
+ function ws(t) {
2112
+ return E({ moves: [] }, ys, t);
2113
+ }
2114
+ function bs(t, e) {
2115
+ return {
2116
+ commands: ["mv", "-v", ...v(t), e],
2117
+ format: "utf-8",
2118
+ parser: ws
2119
+ };
2120
+ }
2121
+ function Ts(t, e, n) {
2122
+ const r = ["pull", ...n];
2123
+ return t && e && r.splice(1, 0, t, e), {
2124
+ commands: r,
2125
+ format: "utf-8",
2126
+ parser(s, o) {
2127
+ return ue(s, o);
2128
+ },
2129
+ onError(s, o, i, a) {
2130
+ const c = Rr(
2131
+ F(s.stdOut),
2132
+ F(s.stdErr)
2133
+ );
2134
+ if (c)
2135
+ return a(new at(c));
2136
+ a(o);
2137
+ }
2138
+ };
2139
+ }
2140
+ function ks(t) {
2141
+ const e = {};
2142
+ return ge(t, ([n]) => e[n] = { name: n }), Object.values(e);
2143
+ }
2144
+ function _s(t) {
2145
+ const e = {};
2146
+ return ge(t, ([n, r, s]) => {
2147
+ Object.hasOwn(e, n) || (e[n] = {
2148
+ name: n,
2149
+ refs: { fetch: "", push: "" }
2150
+ }), s && r && (e[n].refs[s.replace(/[^a-z]/g, "")] = r);
2151
+ }), Object.values(e);
2152
+ }
2153
+ function ge(t, e) {
2154
+ ut(t, (n) => e(n.split(/\s+/)));
2155
+ }
2156
+ function vs(t, e, n) {
2157
+ return g(["remote", "add", ...n, t, e]);
2158
+ }
2159
+ function Es(t) {
2160
+ const e = ["remote"];
2161
+ return t && e.push("-v"), {
2162
+ commands: e,
2163
+ format: "utf-8",
2164
+ parser: t ? _s : ks
2165
+ };
2166
+ }
2167
+ function Ss(t) {
2168
+ const e = [...t];
2169
+ return e[0] !== "ls-remote" && e.unshift("ls-remote"), g(e);
2170
+ }
2171
+ function Rs(t) {
2172
+ const e = [...t];
2173
+ return e[0] !== "remote" && e.unshift("remote"), g(e);
2174
+ }
2175
+ function Os(t) {
2176
+ return g(["remote", "remove", t]);
2177
+ }
2178
+ function Cs(t = {}, e) {
2179
+ const n = oe(t), r = ["stash", "list", ...n.commands, ...e], s = re(
2180
+ n.splitter,
2181
+ n.fields,
2182
+ pt(r)
2183
+ );
2184
+ return dt(r) || {
2185
+ commands: r,
2186
+ format: "utf-8",
2187
+ parser: s
2188
+ };
2189
+ }
2190
+ function As(t, e) {
2191
+ return X(["add", t, e]);
2192
+ }
2193
+ function xs(t) {
2194
+ return X(["init", ...t]);
2195
+ }
2196
+ function X(t) {
2197
+ const e = [...t];
2198
+ return e[0] !== "submodule" && e.unshift("submodule"), g(e);
2199
+ }
2200
+ function Ns(t) {
2201
+ return X(["update", ...t]);
2202
+ }
2203
+ class $s {
2204
+ constructor(e, n) {
2205
+ this.all = e, this.latest = n;
2206
+ }
2207
+ }
2208
+ const Ps = function(t, e = !1) {
2209
+ const n = t.split(`
2210
+ `).map(Ds).filter(Boolean);
2211
+ e || n.sort(function(s, o) {
2212
+ const i = s.split("."), a = o.split(".");
2213
+ if (i.length === 1 || a.length === 1)
2214
+ return Ms(B(i[0]), B(a[0]));
2215
+ for (let c = 0, y = Math.max(i.length, a.length); c < y; c++) {
2216
+ const w = ye(B(i[c]), B(a[c]));
2217
+ if (w)
2218
+ return w;
2219
+ }
2220
+ return 0;
2221
+ });
2222
+ const r = e ? n[0] : [...n].reverse().find((s) => s.indexOf(".") >= 0);
2223
+ return new $s(n, r);
2224
+ };
2225
+ function Ms(t, e) {
2226
+ const n = Number.isNaN(t), r = Number.isNaN(e);
2227
+ return n !== r ? n ? 1 : -1 : n ? ye(t, e) : 0;
2228
+ }
2229
+ function ye(t, e) {
2230
+ return t === e ? 0 : t > e ? 1 : -1;
2231
+ }
2232
+ function Ds(t) {
2233
+ return t.trim();
2234
+ }
2235
+ function B(t) {
2236
+ return typeof t == "string" && parseInt(t.replace(/^\D+/g, ""), 10) || 0;
2237
+ }
2238
+ function Ls(t = []) {
2239
+ const e = t.some((n) => /^--sort=/.test(n));
2240
+ return {
2241
+ format: "utf-8",
2242
+ commands: ["tag", "-l", ...t],
2243
+ parser(n) {
2244
+ return Ps(n, e);
2245
+ }
2246
+ };
2247
+ }
2248
+ function js(t) {
2249
+ return {
2250
+ format: "utf-8",
2251
+ commands: ["tag", t],
2252
+ parser() {
2253
+ return { name: t };
2254
+ }
2255
+ };
2256
+ }
2257
+ function Bs(t, e) {
2258
+ return {
2259
+ format: "utf-8",
2260
+ commands: ["tag", "-a", "-m", e, t],
2261
+ parser() {
2262
+ return { name: t };
2263
+ }
2264
+ };
2265
+ }
2266
+ function f(t, e) {
2267
+ this._plugins = e, this._executor = new Dn(
2268
+ t.baseDir,
2269
+ new Xr(t.maxConcurrentProcesses),
2270
+ e
2271
+ ), this._trimmed = t.trimmed;
2272
+ }
2273
+ (f.prototype = Object.create(le.prototype)).constructor = f;
2274
+ f.prototype.customBinary = function(t) {
2275
+ return this._plugins.reconfigure("binary", t), this;
2276
+ };
2277
+ f.prototype.env = function(t, e) {
2278
+ return arguments.length === 1 && typeof t == "object" ? this._executor.env = t : (this._executor.env = this._executor.env || {})[t] = e, this;
2279
+ };
2280
+ f.prototype.stashList = function(t) {
2281
+ return this._runTask(
2282
+ Cs(
2283
+ ht(arguments) || {},
2284
+ K(t) && t || []
2285
+ ),
2286
+ u(arguments)
2287
+ );
2288
+ };
2289
+ f.prototype.mv = function(t, e) {
2290
+ return this._runTask(bs(t, e), u(arguments));
2291
+ };
2292
+ f.prototype.checkoutLatestTag = function(t) {
2293
+ var e = this;
2294
+ return this.pull(function() {
2295
+ e.tags(function(n, r) {
2296
+ e.checkout(r.latest, t);
2297
+ });
2298
+ });
2299
+ };
2300
+ f.prototype.pull = function(t, e, n, r) {
2301
+ return this._runTask(
2302
+ Ts(
2303
+ d(t, m),
2304
+ d(e, m),
2305
+ h(arguments)
2306
+ ),
2307
+ u(arguments)
2308
+ );
2309
+ };
2310
+ f.prototype.fetch = function(t, e) {
2311
+ return this._runTask(
2312
+ gs(
2313
+ d(t, m),
2314
+ d(e, m),
2315
+ h(arguments)
2316
+ ),
2317
+ u(arguments)
2318
+ );
2319
+ };
2320
+ f.prototype.tags = function(t, e) {
2321
+ return this._runTask(
2322
+ Ls(h(arguments)),
2323
+ u(arguments)
2324
+ );
2325
+ };
2326
+ f.prototype.rebase = function() {
2327
+ return this._runTask(
2328
+ g(["rebase", ...h(arguments)]),
2329
+ u(arguments)
2330
+ );
2331
+ };
2332
+ f.prototype.reset = function(t) {
2333
+ return this._runTask(
2334
+ An(xn(t), h(arguments)),
2335
+ u(arguments)
2336
+ );
2337
+ };
2338
+ f.prototype.revert = function(t) {
2339
+ const e = u(arguments);
2340
+ return typeof t != "string" ? this._runTask(b("Commit must be a string"), e) : this._runTask(
2341
+ g(["revert", ...h(arguments, 0, !0), t]),
2342
+ e
2343
+ );
2344
+ };
2345
+ f.prototype.addTag = function(t) {
2346
+ const e = typeof t == "string" ? js(t) : b("Git.addTag requires a tag name");
2347
+ return this._runTask(e, u(arguments));
2348
+ };
2349
+ f.prototype.addAnnotatedTag = function(t, e) {
2350
+ return this._runTask(
2351
+ Bs(t, e),
2352
+ u(arguments)
2353
+ );
2354
+ };
2355
+ f.prototype.deleteLocalBranch = function(t, e, n) {
2356
+ return this._runTask(
2357
+ cs(t, typeof e == "boolean" ? e : !1),
2358
+ u(arguments)
2359
+ );
2360
+ };
2361
+ f.prototype.deleteLocalBranches = function(t, e, n) {
2362
+ return this._runTask(
2363
+ us(t, typeof e == "boolean" ? e : !1),
2364
+ u(arguments)
2365
+ );
2366
+ };
2367
+ f.prototype.branch = function(t, e) {
2368
+ return this._runTask(
2369
+ is(h(arguments)),
2370
+ u(arguments)
2371
+ );
2372
+ };
2373
+ f.prototype.branchLocal = function(t) {
2374
+ return this._runTask(as(), u(arguments));
2375
+ };
2376
+ f.prototype.raw = function(t) {
2377
+ const e = !Array.isArray(t), n = [].slice.call(e ? arguments : t, 0);
2378
+ for (let s = 0; s < n.length && e; s++)
2379
+ if (!st(n[s])) {
2380
+ n.splice(s, n.length - s);
2381
+ break;
2382
+ }
2383
+ n.push(...h(arguments, 0, !0));
2384
+ var r = u(arguments);
2385
+ return n.length ? this._runTask(g(n, this._trimmed), r) : this._runTask(
2386
+ b("Raw: must supply one or more command to execute"),
2387
+ r
2388
+ );
2389
+ };
2390
+ f.prototype.submoduleAdd = function(t, e, n) {
2391
+ return this._runTask(As(t, e), u(arguments));
2392
+ };
2393
+ f.prototype.submoduleUpdate = function(t, e) {
2394
+ return this._runTask(
2395
+ Ns(h(arguments, !0)),
2396
+ u(arguments)
2397
+ );
2398
+ };
2399
+ f.prototype.submoduleInit = function(t, e) {
2400
+ return this._runTask(
2401
+ xs(h(arguments, !0)),
2402
+ u(arguments)
2403
+ );
2404
+ };
2405
+ f.prototype.subModule = function(t, e) {
2406
+ return this._runTask(
2407
+ X(h(arguments)),
2408
+ u(arguments)
2409
+ );
2410
+ };
2411
+ f.prototype.listRemote = function() {
2412
+ return this._runTask(
2413
+ Ss(h(arguments)),
2414
+ u(arguments)
2415
+ );
2416
+ };
2417
+ f.prototype.addRemote = function(t, e, n) {
2418
+ return this._runTask(
2419
+ vs(t, e, h(arguments)),
2420
+ u(arguments)
2421
+ );
2422
+ };
2423
+ f.prototype.removeRemote = function(t, e) {
2424
+ return this._runTask(Os(t), u(arguments));
2425
+ };
2426
+ f.prototype.getRemotes = function(t, e) {
2427
+ return this._runTask(Es(t === !0), u(arguments));
2428
+ };
2429
+ f.prototype.remote = function(t, e) {
2430
+ return this._runTask(
2431
+ Rs(h(arguments)),
2432
+ u(arguments)
2433
+ );
2434
+ };
2435
+ f.prototype.tag = function(t, e) {
2436
+ const n = h(arguments);
2437
+ return n[0] !== "tag" && n.unshift("tag"), this._runTask(g(n), u(arguments));
2438
+ };
2439
+ f.prototype.updateServerInfo = function(t) {
2440
+ return this._runTask(
2441
+ g(["update-server-info"]),
2442
+ u(arguments)
2443
+ );
2444
+ };
2445
+ f.prototype.pushTags = function(t, e) {
2446
+ const n = Mr(
2447
+ { remote: d(t, m) },
2448
+ h(arguments)
2449
+ );
2450
+ return this._runTask(n, u(arguments));
2451
+ };
2452
+ f.prototype.rm = function(t) {
2453
+ return this._runTask(
2454
+ g(["rm", "-f", ...v(t)]),
2455
+ u(arguments)
2456
+ );
2457
+ };
2458
+ f.prototype.rmKeepLocal = function(t) {
2459
+ return this._runTask(
2460
+ g(["rm", "--cached", ...v(t)]),
2461
+ u(arguments)
2462
+ );
2463
+ };
2464
+ f.prototype.catFile = function(t, e) {
2465
+ return this._catFile("utf-8", arguments);
2466
+ };
2467
+ f.prototype.binaryCatFile = function() {
2468
+ return this._catFile("buffer", arguments);
2469
+ };
2470
+ f.prototype._catFile = function(t, e) {
2471
+ var n = u(e), r = ["cat-file"], s = e[0];
2472
+ if (typeof s == "string")
2473
+ return this._runTask(
2474
+ b("Git.catFile: options must be supplied as an array of strings"),
2475
+ n
2476
+ );
2477
+ Array.isArray(s) && r.push.apply(r, s);
2478
+ const o = t === "buffer" ? Gt(r) : g(r);
2479
+ return this._runTask(o, n);
2480
+ };
2481
+ f.prototype.diff = function(t, e) {
2482
+ const n = m(t) ? b(
2483
+ "git.diff: supplying options as a single string is no longer supported, switch to an array of strings"
2484
+ ) : g(["diff", ...h(arguments)]);
2485
+ return this._runTask(n, u(arguments));
2486
+ };
2487
+ f.prototype.diffSummary = function() {
2488
+ return this._runTask(
2489
+ fr(h(arguments, 1)),
2490
+ u(arguments)
2491
+ );
2492
+ };
2493
+ f.prototype.applyPatch = function(t) {
2494
+ const e = G(t) ? Yr(v(t), h([].slice.call(arguments, 1))) : b(
2495
+ "git.applyPatch requires one or more string patches as the first argument"
2496
+ );
2497
+ return this._runTask(e, u(arguments));
2498
+ };
2499
+ f.prototype.revparse = function() {
2500
+ const t = ["rev-parse", ...h(arguments, !0)];
2501
+ return this._runTask(
2502
+ g(t, !0),
2503
+ u(arguments)
2504
+ );
2505
+ };
2506
+ f.prototype.clean = function(t, e, n) {
2507
+ const r = un(t), s = r && t.join("") || d(t, m) || "", o = h([].slice.call(arguments, r ? 1 : 0));
2508
+ return this._runTask(
2509
+ on(s, o),
2510
+ u(arguments)
2511
+ );
2512
+ };
2513
+ f.prototype.exec = function(t) {
2514
+ const e = {
2515
+ commands: [],
2516
+ format: "utf-8",
2517
+ parser() {
2518
+ typeof t == "function" && t();
2519
+ }
2520
+ };
2521
+ return this._runTask(e);
2522
+ };
2523
+ f.prototype.checkIgnore = function(t, e) {
2524
+ return this._runTask(
2525
+ fs(v(d(t, G, []))),
2526
+ u(arguments)
2527
+ );
2528
+ };
2529
+ f.prototype.checkIsRepo = function(t, e) {
2530
+ return this._runTask(
2531
+ We(d(t, m)),
2532
+ u(arguments)
2533
+ );
2534
+ };
2535
+ function Is(t) {
2536
+ return t ? [{
2537
+ type: "spawn.before",
2538
+ action(r, s) {
2539
+ t.aborted && s.kill(new A(void 0, "abort", "Abort already signaled"));
2540
+ }
2541
+ }, {
2542
+ type: "spawn.after",
2543
+ action(r, s) {
2544
+ function o() {
2545
+ s.kill(new A(void 0, "abort", "Abort signal received"));
2546
+ }
2547
+ t.addEventListener("abort", o), s.spawned.on("close", () => t.removeEventListener("abort", o));
2548
+ }
2549
+ }] : void 0;
2550
+ }
2551
+ const Us = $("", "plugin:allowEnvironment");
2552
+ function Fs(t, e = !1) {
2553
+ const n = new Set(t.map((r) => r.toLowerCase().trim()));
2554
+ return {
2555
+ type: "spawn.options",
2556
+ action(r, s) {
2557
+ const o = { ...r.env ?? process.env }, i = new Set(
2558
+ Object.keys(s.env).map((a) => a.toLowerCase().trim())
2559
+ );
2560
+ for (const a of Object.keys(o)) {
2561
+ const c = a.toLowerCase().trim();
2562
+ if (!(!Gs(c) || n.has(c))) {
2563
+ if (i.has(c))
2564
+ throw new A(
2565
+ void 0,
2566
+ "allowEnvironment",
2567
+ `Use of "${a}" is blocked by the environment guard - add it to the allowEnvironment option to permit it`
2568
+ );
2569
+ Us("removing ambient guarded environment variable %s", a), delete o[a];
2570
+ }
2571
+ }
2572
+ return {
2573
+ ...r,
2574
+ env: {
2575
+ ...o,
2576
+ GIT_TEST_DISALLOW_ABBREVIATED_OPTIONS: String(!e)
2577
+ }
2578
+ };
2579
+ }
2580
+ };
2581
+ }
2582
+ function Gs(t) {
2583
+ const e = t.toLowerCase().trim();
2584
+ return e.startsWith("git_") || Re(e);
2585
+ }
2586
+ function zs(t = {}) {
2587
+ return {
2588
+ type: "spawn.args",
2589
+ action(e, { env: n }) {
2590
+ for (const r of Oe(e, n))
2591
+ if (t[r.category] !== !0)
2592
+ throw new A(void 0, "unsafe", r.message);
2593
+ return e;
2594
+ }
2595
+ };
2596
+ }
2597
+ function qs(t) {
2598
+ const e = U(t, "-c");
2599
+ return {
2600
+ type: "spawn.args",
2601
+ action(n) {
2602
+ return [...e, ...n];
2603
+ }
2604
+ };
2605
+ }
2606
+ const $t = P().promise;
2607
+ function Ws({
2608
+ onClose: t = !0,
2609
+ onExit: e = 50
2610
+ } = {}) {
2611
+ function n() {
2612
+ let s = -1;
2613
+ const o = {
2614
+ close: P(),
2615
+ closeTimeout: P(),
2616
+ exit: P(),
2617
+ exitTimeout: P()
2618
+ }, i = Promise.race([
2619
+ t === !1 ? $t : o.closeTimeout.promise,
2620
+ e === !1 ? $t : o.exitTimeout.promise
2621
+ ]);
2622
+ return r(t, o.close, o.closeTimeout), r(e, o.exit, o.exitTimeout), {
2623
+ close(a) {
2624
+ s = a, o.close.done();
2625
+ },
2626
+ exit(a) {
2627
+ s = a, o.exit.done();
2628
+ },
2629
+ get exitCode() {
2630
+ return s;
2631
+ },
2632
+ result: i
2633
+ };
2634
+ }
2635
+ function r(s, o, i) {
2636
+ s !== !1 && (s === !0 ? o.promise : o.promise.then(() => wt(s))).then(i.done);
2637
+ }
2638
+ return {
2639
+ type: "spawn.after",
2640
+ async action(s, { spawned: o, close: i }) {
2641
+ const a = n();
2642
+ let c = !0, y = () => {
2643
+ c = !1;
2644
+ };
2645
+ o.stdout?.on("data", y), o.stderr?.on("data", y), o.on("error", y), o.on("close", (w) => a.close(w)), o.on("exit", (w) => a.exit(w));
2646
+ try {
2647
+ await a.result, c && await wt(50), i(a.exitCode);
2648
+ } catch (w) {
2649
+ i(a.exitCode, w);
2650
+ }
2651
+ }
2652
+ };
2653
+ }
2654
+ const we = $("", "plugin:binary"), Hs = "Invalid value supplied for custom binary, requires a single string or an array containing either one or two strings", Ks = "Invalid value supplied for custom binary, restricted characters must be removed or supply the unsafe.allowUnsafeCustomBinary option";
2655
+ function Vs(t) {
2656
+ return !t || !/^([a-z]:)?([a-z0-9/.\\_~-]+)$/i.test(t);
2657
+ }
2658
+ function Pt(t, e) {
2659
+ if (t.length < 1 || t.length > 2)
2660
+ throw new A(void 0, "binary", Hs);
2661
+ if (t.some(Vs))
2662
+ if (e)
2663
+ we("permitted unsafe binary %o", t);
2664
+ else
2665
+ throw new A(void 0, "binary", Ks);
2666
+ const [r, s] = t;
2667
+ return {
2668
+ binary: r,
2669
+ prefix: s
2670
+ };
2671
+ }
2672
+ function Xs(t, e = ["git"], n = !1) {
2673
+ let r = Pt(v(e), n);
2674
+ t.on("binary", (s) => {
2675
+ r = Pt(v(s), n), we.info("reconfiguring %o", r);
2676
+ }), t.append("spawn.binary", () => r.binary), t.append("spawn.args", (s) => r.prefix ? [r.prefix, ...s] : s);
2677
+ }
2678
+ const be = {
2679
+ DISALLOWED_ABBREVIATED: {
2680
+ text: "disallowed abbreviated or ambiguous option",
2681
+ solution: "Unambiguous abbreviated options blocked with unsafe.allowAbbreviatedOptions setting: {message}"
2682
+ },
2683
+ UNKNOWN: {
2684
+ text: "~ unknown ~",
2685
+ solution: void 0
2686
+ }
2687
+ };
2688
+ function Ys(t) {
2689
+ if (!t)
2690
+ return "UNKNOWN";
2691
+ for (const [e, { text: n }] of Object.entries(be))
2692
+ if (t.startsWith(`fatal: ${n}`))
2693
+ return e;
2694
+ return "UNKNOWN";
2695
+ }
2696
+ class Qs extends O {
2697
+ constructor(e = "") {
2698
+ const n = Ys(e);
2699
+ super(void 0, be[n].solution?.replace("{message}", e) ?? e), this.reason = n;
2700
+ }
2701
+ }
2702
+ function Js(t) {
2703
+ return !!(t.exitCode && t.stdErr.length);
2704
+ }
2705
+ function Zs(t) {
2706
+ return Buffer.concat([...t.stdOut, ...t.stdErr]);
2707
+ }
2708
+ function to(t = !1, e = Js, n = Zs) {
2709
+ return (r, s) => !t && r || !e(s) ? r : n(s);
2710
+ }
2711
+ function eo(t, e) {
2712
+ return t === 128 && e.startsWith("fatal:") ? new Qs(e) : new O(void 0, e);
2713
+ }
2714
+ function Mt(t) {
2715
+ return {
2716
+ type: "task.error",
2717
+ action(e, n) {
2718
+ const r = t(e.error, {
2719
+ stdErr: n.stdErr,
2720
+ stdOut: n.stdOut,
2721
+ exitCode: n.exitCode
2722
+ });
2723
+ return Buffer.isBuffer(r) ? {
2724
+ error: eo(n.exitCode, r.toString("utf-8"))
2725
+ } : {
2726
+ error: r
2727
+ };
2728
+ }
2729
+ };
2730
+ }
2731
+ const nt = $("", "plugin:input");
2732
+ function no(t) {
2733
+ return {
2734
+ type: "spawn.after",
2735
+ action(e, { commands: n, input: r, spawned: { stdin: s } }) {
2736
+ if (!s)
2737
+ return;
2738
+ const o = t?.([...n]) ?? r;
2739
+ if (!o)
2740
+ return nt("generated zero length content, not writing to stdin");
2741
+ nt("writing %s bytes to stdin", Le(o)), s.on("error", (i) => {
2742
+ i.code !== "EPIPE" && nt("[ERROR] stdin error %o", i);
2743
+ }), s.end(o);
2744
+ }
2745
+ };
2746
+ }
2747
+ class ro {
2748
+ constructor() {
2749
+ this.plugins = /* @__PURE__ */ new Set(), this.events = new Ce();
2750
+ }
2751
+ on(e, n) {
2752
+ this.events.on(e, n);
2753
+ }
2754
+ reconfigure(e, n) {
2755
+ this.events.emit(e, n);
2756
+ }
2757
+ append(e, n) {
2758
+ const r = S(this.plugins, { type: e, action: n });
2759
+ return () => this.plugins.delete(r);
2760
+ }
2761
+ add(e) {
2762
+ const n = [];
2763
+ return v(e).forEach(
2764
+ (r) => {
2765
+ r && this.plugins.add(S(n, r));
2766
+ }
2767
+ ), () => {
2768
+ n.forEach((r) => {
2769
+ this.plugins.delete(r);
2770
+ });
2771
+ };
2772
+ }
2773
+ exec(e, n, r) {
2774
+ let s = n;
2775
+ const o = Object.freeze(Object.create(r));
2776
+ for (const i of this.plugins)
2777
+ i.type === e && (s = i.action(s, o));
2778
+ return s;
2779
+ }
2780
+ }
2781
+ function so(t) {
2782
+ const e = "--progress", n = ["checkout", "clone", "fetch", "pull", "push"];
2783
+ return [{
2784
+ type: "spawn.args",
2785
+ action(o, i) {
2786
+ return n.includes(i.method) ? De(o, e) : o;
2787
+ }
2788
+ }, {
2789
+ type: "spawn.after",
2790
+ action(o, i) {
2791
+ i.commands.includes(e) && i.spawned.stderr?.on("data", (a) => {
2792
+ const c = /^([\s\S]+?):\s*(\d+)% \((\d+)\/(\d+)\)/.exec(a.toString("utf8"));
2793
+ c && t({
2794
+ method: i.method,
2795
+ stage: oo(c[1]),
2796
+ progress: p(c[2]),
2797
+ processed: p(c[3]),
2798
+ total: p(c[4])
2799
+ });
2800
+ });
2801
+ }
2802
+ }];
2803
+ }
2804
+ function oo(t) {
2805
+ return String(t.toLowerCase().split(" ", 1)) || "unknown";
2806
+ }
2807
+ function io(t) {
2808
+ const e = je(t, ["uid", "gid"]);
2809
+ return {
2810
+ type: "spawn.options",
2811
+ action(n) {
2812
+ return { ...e, ...n };
2813
+ }
2814
+ };
2815
+ }
2816
+ function ao() {
2817
+ return {
2818
+ type: "spawn.args",
2819
+ action(t) {
2820
+ const e = [];
2821
+ let n;
2822
+ function r(s) {
2823
+ (n = n || []).push(...s);
2824
+ }
2825
+ for (let s = 0; s < t.length; s++) {
2826
+ const o = t[s];
2827
+ if (D(o)) {
2828
+ r(yt(o));
2829
+ continue;
2830
+ }
2831
+ if (o === "--") {
2832
+ r(
2833
+ t.slice(s + 1).flatMap((i) => D(i) && yt(i) || i)
2834
+ );
2835
+ break;
2836
+ }
2837
+ e.push(o);
2838
+ }
2839
+ return n ? [...e, "--", ...n.map(String)] : e;
2840
+ }
2841
+ };
2842
+ }
2843
+ function uo({
2844
+ block: t,
2845
+ stdErr: e = !0,
2846
+ stdOut: n = !0
2847
+ }) {
2848
+ if (t > 0)
2849
+ return {
2850
+ type: "spawn.after",
2851
+ action(r, s) {
2852
+ let o;
2853
+ function i() {
2854
+ o && clearTimeout(o), o = setTimeout(c, t);
2855
+ }
2856
+ function a() {
2857
+ s.spawned.stdout?.off("data", i), s.spawned.stderr?.off("data", i), s.spawned.off("exit", a), s.spawned.off("close", a), o && clearTimeout(o);
2858
+ }
2859
+ function c() {
2860
+ a(), s.kill(new A(void 0, "timeout", "block timeout reached"));
2861
+ }
2862
+ n && s.spawned.stdout?.on("data", i), e && s.spawned.stderr?.on("data", i), s.spawned.on("exit", a), s.spawned.on("close", a), i();
2863
+ }
2864
+ };
2865
+ }
2866
+ const wo = (t, e) => {
2867
+ const n = new ro(), r = Ge(
2868
+ t && (typeof t == "string" ? { baseDir: t } : t) || {},
2869
+ e
2870
+ );
2871
+ if (!Lt(r.baseDir))
2872
+ throw new Ae(
2873
+ r,
2874
+ "Cannot use simple-git on a directory that does not exist"
2875
+ );
2876
+ return Array.isArray(r.config) && n.add(qs(r.config)), n.add(zs(r.unsafe)), n.add(Ws(r.completion)), r.abort && n.add(Is(r.abort)), r.progress && n.add(so(r.progress)), r.timeout && n.add(uo(r.timeout)), r.spawnOptions && n.add(io(r.spawnOptions)), n.add(ao()), n.add(no(r.input)), n.add(Mt(to(!0))), r.errors && n.add(Mt(r.errors)), Xs(n, r.binary, r.unsafe?.allowUnsafeCustomBinary), n.add(
2877
+ Fs(r.allowEnvironment ?? [], r.unsafe?.allowAbbreviatedOptions)
2878
+ ), new f(r, n);
2879
+ };
2880
+ export {
2881
+ qe as CheckRepoActions,
2882
+ zt as CleanOptions,
2883
+ Kt as DiffNameStatus,
2884
+ Ht as GitConfigScope,
2885
+ Ae as GitConstructError,
2886
+ O as GitError,
2887
+ A as GitPluginError,
2888
+ at as GitResponseError,
2889
+ Vt as ResetMode,
2890
+ xe as TaskConfigurationError,
2891
+ Sn as grepQueryBuilder,
2892
+ ko as pathspec,
2893
+ wo as simpleGit
2894
+ };
2895
+ //# sourceMappingURL=index.mjs.map