@statewalker/vcs-commands 0.8.0 → 0.10.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (622) hide show
  1. package/README.md +1 -1
  2. package/dist/commands/add-command.d.ts +32 -0
  3. package/dist/commands/add-command.d.ts.map +1 -1
  4. package/dist/commands/add-patch/add-patch.d.ts +7 -0
  5. package/dist/commands/add-patch/add-patch.d.ts.map +1 -1
  6. package/dist/commands/add-patch/patch-backend.d.ts +2 -0
  7. package/dist/commands/add-patch/patch-backend.d.ts.map +1 -1
  8. package/dist/commands/add-patch/patch-modes.d.ts +6 -2
  9. package/dist/commands/add-patch/patch-modes.d.ts.map +1 -1
  10. package/dist/commands/add-patch/patch-session.d.ts +4 -0
  11. package/dist/commands/add-patch/patch-session.d.ts.map +1 -1
  12. package/dist/commands/am/am-command.d.ts +88 -2
  13. package/dist/commands/am/am-command.d.ts.map +1 -1
  14. package/dist/commands/apply/apply-command.d.ts +2 -0
  15. package/dist/commands/apply/apply-command.d.ts.map +1 -1
  16. package/dist/commands/apply/apply-parse.d.ts +7 -0
  17. package/dist/commands/apply/apply-parse.d.ts.map +1 -1
  18. package/dist/commands/apply/index.d.ts +1 -1
  19. package/dist/commands/apply/index.d.ts.map +1 -1
  20. package/dist/commands/archive/archive-command.d.ts +169 -0
  21. package/dist/commands/archive/archive-command.d.ts.map +1 -0
  22. package/dist/commands/archive/archive-entry.d.ts +60 -0
  23. package/dist/commands/archive/archive-entry.d.ts.map +1 -0
  24. package/dist/commands/archive/index.d.ts +8 -0
  25. package/dist/commands/archive/index.d.ts.map +1 -0
  26. package/dist/commands/archive/remote-archive-command.d.ts +56 -0
  27. package/dist/commands/archive/remote-archive-command.d.ts.map +1 -0
  28. package/dist/commands/archive/tar-archive.d.ts +31 -0
  29. package/dist/commands/archive/tar-archive.d.ts.map +1 -0
  30. package/dist/commands/archive/tar-commit-id.d.ts +13 -0
  31. package/dist/commands/archive/tar-commit-id.d.ts.map +1 -0
  32. package/dist/commands/archive/upload-archive-writer.d.ts +48 -0
  33. package/dist/commands/archive/upload-archive-writer.d.ts.map +1 -0
  34. package/dist/commands/archive/zip-archive.d.ts +42 -0
  35. package/dist/commands/archive/zip-archive.d.ts.map +1 -0
  36. package/dist/commands/attributes-source.d.ts +10 -0
  37. package/dist/commands/attributes-source.d.ts.map +1 -1
  38. package/dist/commands/blame-command.d.ts +345 -8
  39. package/dist/commands/blame-command.d.ts.map +1 -1
  40. package/dist/commands/blame-ignore.d.ts +48 -0
  41. package/dist/commands/blame-ignore.d.ts.map +1 -0
  42. package/dist/commands/bundle/bundle-create-command.d.ts +67 -0
  43. package/dist/commands/bundle/bundle-create-command.d.ts.map +1 -0
  44. package/dist/commands/bundle/bundle-format.d.ts +89 -0
  45. package/dist/commands/bundle/bundle-format.d.ts.map +1 -0
  46. package/dist/commands/bundle/bundle-list.d.ts +92 -0
  47. package/dist/commands/bundle/bundle-list.d.ts.map +1 -0
  48. package/dist/commands/bundle/bundle-read-commands.d.ts +81 -0
  49. package/dist/commands/bundle/bundle-read-commands.d.ts.map +1 -0
  50. package/dist/commands/bundle/bundle-support.d.ts +32 -0
  51. package/dist/commands/bundle/bundle-support.d.ts.map +1 -0
  52. package/dist/commands/bundle/bundle-transport.d.ts +38 -0
  53. package/dist/commands/bundle/bundle-transport.d.ts.map +1 -0
  54. package/dist/commands/bundle/bundle-uri-host.d.ts +43 -0
  55. package/dist/commands/bundle/bundle-uri-host.d.ts.map +1 -0
  56. package/dist/commands/bundle/bundle-uri.d.ts +55 -0
  57. package/dist/commands/bundle/bundle-uri.d.ts.map +1 -0
  58. package/dist/commands/bundle/bundle-verify.d.ts +63 -0
  59. package/dist/commands/bundle/bundle-verify.d.ts.map +1 -0
  60. package/dist/commands/bundle/index.d.ts +14 -0
  61. package/dist/commands/bundle/index.d.ts.map +1 -0
  62. package/dist/commands/cat-file/batch-format.d.ts +58 -0
  63. package/dist/commands/cat-file/batch-format.d.ts.map +1 -0
  64. package/dist/commands/cat-file/cat-file-command.d.ts +135 -0
  65. package/dist/commands/cat-file/cat-file-command.d.ts.map +1 -0
  66. package/dist/commands/cat-file/index.d.ts +3 -0
  67. package/dist/commands/cat-file/index.d.ts.map +1 -0
  68. package/dist/commands/check-attr-command.d.ts +66 -0
  69. package/dist/commands/check-attr-command.d.ts.map +1 -0
  70. package/dist/commands/check-ignore-command.d.ts +58 -0
  71. package/dist/commands/check-ignore-command.d.ts.map +1 -0
  72. package/dist/commands/check-mailmap-command.d.ts +49 -0
  73. package/dist/commands/check-mailmap-command.d.ts.map +1 -0
  74. package/dist/commands/check-ref-format-command.d.ts +60 -0
  75. package/dist/commands/check-ref-format-command.d.ts.map +1 -0
  76. package/dist/commands/checkout-command.d.ts +7 -0
  77. package/dist/commands/checkout-command.d.ts.map +1 -1
  78. package/dist/commands/checkout-index-command.d.ts +96 -0
  79. package/dist/commands/checkout-index-command.d.ts.map +1 -0
  80. package/dist/commands/checkout-paths.d.ts +4 -0
  81. package/dist/commands/checkout-paths.d.ts.map +1 -1
  82. package/dist/commands/cherry-command.d.ts +61 -0
  83. package/dist/commands/cherry-command.d.ts.map +1 -0
  84. package/dist/commands/cherry-pick-command.d.ts +33 -1
  85. package/dist/commands/cherry-pick-command.d.ts.map +1 -1
  86. package/dist/commands/clean-command.d.ts +32 -0
  87. package/dist/commands/clean-command.d.ts.map +1 -1
  88. package/dist/commands/clean-interactive.d.ts +56 -0
  89. package/dist/commands/clean-interactive.d.ts.map +1 -0
  90. package/dist/commands/clone-command.d.ts +135 -2
  91. package/dist/commands/clone-command.d.ts.map +1 -1
  92. package/dist/commands/commit-command.d.ts +59 -3
  93. package/dist/commands/commit-command.d.ts.map +1 -1
  94. package/dist/commands/config-command.d.ts +2 -0
  95. package/dist/commands/config-command.d.ts.map +1 -1
  96. package/dist/commands/daemon-access-hook.d.ts +36 -0
  97. package/dist/commands/daemon-access-hook.d.ts.map +1 -0
  98. package/dist/commands/default-branch.d.ts +42 -0
  99. package/dist/commands/default-branch.d.ts.map +1 -1
  100. package/dist/commands/describe-command.d.ts +71 -64
  101. package/dist/commands/describe-command.d.ts.map +1 -1
  102. package/dist/commands/diff-command.d.ts +249 -10
  103. package/dist/commands/diff-command.d.ts.map +1 -1
  104. package/dist/commands/diff-external.d.ts +43 -0
  105. package/dist/commands/diff-external.d.ts.map +1 -0
  106. package/dist/commands/diff-plumbing/diff-pairs-command.d.ts +27 -0
  107. package/dist/commands/diff-plumbing/diff-pairs-command.d.ts.map +1 -0
  108. package/dist/commands/diff-plumbing/diff-plumbing-command.d.ts +129 -0
  109. package/dist/commands/diff-plumbing/diff-plumbing-command.d.ts.map +1 -0
  110. package/dist/commands/diff-plumbing/index.d.ts +3 -0
  111. package/dist/commands/diff-plumbing/index.d.ts.map +1 -0
  112. package/dist/commands/diff-textconv.d.ts +5 -1
  113. package/dist/commands/diff-textconv.d.ts.map +1 -1
  114. package/dist/commands/fast-export/fast-export-command.d.ts +135 -0
  115. package/dist/commands/fast-export/fast-export-command.d.ts.map +1 -0
  116. package/dist/commands/fast-export/fast-import-command.d.ts +182 -0
  117. package/dist/commands/fast-export/fast-import-command.d.ts.map +1 -0
  118. package/dist/commands/fast-export/fast-stream-support.d.ts +64 -0
  119. package/dist/commands/fast-export/fast-stream-support.d.ts.map +1 -0
  120. package/dist/commands/fast-export/index.d.ts +4 -0
  121. package/dist/commands/fast-export/index.d.ts.map +1 -0
  122. package/dist/commands/fetch-command.d.ts +125 -0
  123. package/dist/commands/fetch-command.d.ts.map +1 -1
  124. package/dist/commands/fetch-multiple-command.d.ts +193 -0
  125. package/dist/commands/fetch-multiple-command.d.ts.map +1 -0
  126. package/dist/commands/format-patch-command.d.ts +28 -2
  127. package/dist/commands/format-patch-command.d.ts.map +1 -1
  128. package/dist/commands/format-rev-command.d.ts +58 -0
  129. package/dist/commands/format-rev-command.d.ts.map +1 -0
  130. package/dist/commands/fsck/fsck-command.d.ts.map +1 -1
  131. package/dist/commands/fsck/fsck-msg-ids.d.ts +18 -3
  132. package/dist/commands/fsck/fsck-msg-ids.d.ts.map +1 -1
  133. package/dist/commands/fsmonitor-refresh.d.ts +69 -0
  134. package/dist/commands/fsmonitor-refresh.d.ts.map +1 -0
  135. package/dist/commands/gc-command.d.ts +5 -0
  136. package/dist/commands/gc-command.d.ts.map +1 -1
  137. package/dist/commands/git-describe.d.ts +77 -4
  138. package/dist/commands/git-describe.d.ts.map +1 -1
  139. package/dist/commands/git-hooks.d.ts +47 -1
  140. package/dist/commands/git-hooks.d.ts.map +1 -1
  141. package/dist/commands/git-paths.d.ts +26 -0
  142. package/dist/commands/git-paths.d.ts.map +1 -0
  143. package/dist/commands/grep/grep-command.d.ts +2 -1
  144. package/dist/commands/grep/grep-command.d.ts.map +1 -1
  145. package/dist/commands/history-command.d.ts +156 -0
  146. package/dist/commands/history-command.d.ts.map +1 -0
  147. package/dist/commands/http-config.d.ts +38 -0
  148. package/dist/commands/http-config.d.ts.map +1 -0
  149. package/dist/commands/index-adder.d.ts +12 -1
  150. package/dist/commands/index-adder.d.ts.map +1 -1
  151. package/dist/commands/index-host.d.ts.map +1 -1
  152. package/dist/commands/index.d.ts +56 -1
  153. package/dist/commands/index.d.ts.map +1 -1
  154. package/dist/commands/index.js +6 -3
  155. package/dist/commands/init-command.d.ts +89 -0
  156. package/dist/commands/init-command.d.ts.map +1 -1
  157. package/dist/commands/last-modified-command.d.ts +102 -0
  158. package/dist/commands/last-modified-command.d.ts.map +1 -0
  159. package/dist/commands/lfs/go-url.d.ts +43 -0
  160. package/dist/commands/lfs/go-url.d.ts.map +1 -0
  161. package/dist/commands/lfs/index.d.ts +3 -0
  162. package/dist/commands/lfs/index.d.ts.map +1 -0
  163. package/dist/commands/lfs/lfs-config.d.ts +174 -0
  164. package/dist/commands/lfs/lfs-config.d.ts.map +1 -0
  165. package/dist/commands/lfs/lfs-endpoint-command.d.ts +83 -0
  166. package/dist/commands/lfs/lfs-endpoint-command.d.ts.map +1 -0
  167. package/dist/commands/line-log.d.ts +161 -0
  168. package/dist/commands/line-log.d.ts.map +1 -0
  169. package/dist/commands/local-transport.d.ts.map +1 -1
  170. package/dist/commands/log-command.d.ts +261 -6
  171. package/dist/commands/log-command.d.ts.map +1 -1
  172. package/dist/commands/log-graph.d.ts +4 -2
  173. package/dist/commands/log-graph.d.ts.map +1 -1
  174. package/dist/commands/log-output.d.ts +88 -2
  175. package/dist/commands/log-output.d.ts.map +1 -1
  176. package/dist/commands/ls-files-command.d.ts +153 -0
  177. package/dist/commands/ls-files-command.d.ts.map +1 -0
  178. package/dist/commands/ls-remote-command.d.ts +5 -0
  179. package/dist/commands/ls-remote-command.d.ts.map +1 -1
  180. package/dist/commands/ls-tree-command.d.ts +105 -0
  181. package/dist/commands/ls-tree-command.d.ts.map +1 -0
  182. package/dist/commands/mailmap.d.ts +24 -1
  183. package/dist/commands/mailmap.d.ts.map +1 -1
  184. package/dist/commands/maintenance-run-command.d.ts +122 -0
  185. package/dist/commands/maintenance-run-command.d.ts.map +1 -0
  186. package/dist/commands/merge-command.d.ts +58 -1
  187. package/dist/commands/merge-command.d.ts.map +1 -1
  188. package/dist/commands/merge-config.d.ts +7 -0
  189. package/dist/commands/merge-config.d.ts.map +1 -1
  190. package/dist/commands/merge-drivers.d.ts +69 -5
  191. package/dist/commands/merge-drivers.d.ts.map +1 -1
  192. package/dist/commands/merge-strategy-options.d.ts +69 -0
  193. package/dist/commands/merge-strategy-options.d.ts.map +1 -0
  194. package/dist/commands/merge-support.d.ts +16 -0
  195. package/dist/commands/merge-support.d.ts.map +1 -1
  196. package/dist/commands/merge-tree-command.d.ts +122 -0
  197. package/dist/commands/merge-tree-command.d.ts.map +1 -0
  198. package/dist/commands/message-cleanup.d.ts +2 -0
  199. package/dist/commands/message-cleanup.d.ts.map +1 -1
  200. package/dist/commands/mktag-command.d.ts +51 -0
  201. package/dist/commands/mktag-command.d.ts.map +1 -0
  202. package/dist/commands/name-rev-command.d.ts +65 -0
  203. package/dist/commands/name-rev-command.d.ts.map +1 -0
  204. package/dist/commands/name-rev.d.ts +110 -22
  205. package/dist/commands/name-rev.d.ts.map +1 -1
  206. package/dist/commands/object-store/count-objects-command.d.ts +58 -0
  207. package/dist/commands/object-store/count-objects-command.d.ts.map +1 -0
  208. package/dist/commands/object-store/index.d.ts +5 -0
  209. package/dist/commands/object-store/index.d.ts.map +1 -0
  210. package/dist/commands/object-store/objects-directory.d.ts +12 -0
  211. package/dist/commands/object-store/objects-directory.d.ts.map +1 -0
  212. package/dist/commands/object-store/prune-command.d.ts +38 -0
  213. package/dist/commands/object-store/prune-command.d.ts.map +1 -0
  214. package/dist/commands/object-store/show-index-command.d.ts +23 -0
  215. package/dist/commands/object-store/show-index-command.d.ts.map +1 -0
  216. package/dist/commands/octopus-merge.d.ts +26 -1
  217. package/dist/commands/octopus-merge.d.ts.map +1 -1
  218. package/dist/commands/ort-merge.d.ts +40 -0
  219. package/dist/commands/ort-merge.d.ts.map +1 -1
  220. package/dist/commands/ort-recursive.d.ts.map +1 -1
  221. package/dist/commands/patch-id-command.d.ts +30 -0
  222. package/dist/commands/patch-id-command.d.ts.map +1 -0
  223. package/dist/commands/patch-id.d.ts +82 -0
  224. package/dist/commands/patch-id.d.ts.map +1 -1
  225. package/dist/commands/plumbing-command.d.ts +66 -0
  226. package/dist/commands/plumbing-command.d.ts.map +1 -0
  227. package/dist/commands/plumbing-input.d.ts +38 -0
  228. package/dist/commands/plumbing-input.d.ts.map +1 -0
  229. package/dist/commands/promisor-remote-reply.d.ts +35 -0
  230. package/dist/commands/promisor-remote-reply.d.ts.map +1 -0
  231. package/dist/commands/promisor-remote.d.ts.map +1 -1
  232. package/dist/commands/pull-command.d.ts +182 -38
  233. package/dist/commands/pull-command.d.ts.map +1 -1
  234. package/dist/commands/push-command.d.ts +82 -2
  235. package/dist/commands/push-command.d.ts.map +1 -1
  236. package/dist/commands/range-diff/index.d.ts +4 -0
  237. package/dist/commands/range-diff/index.d.ts.map +1 -0
  238. package/dist/commands/range-diff/linear-assignment.d.ts +27 -0
  239. package/dist/commands/range-diff/linear-assignment.d.ts.map +1 -0
  240. package/dist/commands/range-diff/range-diff-command.d.ts +121 -0
  241. package/dist/commands/range-diff/range-diff-command.d.ts.map +1 -0
  242. package/dist/commands/range-diff/range-diff.d.ts +106 -0
  243. package/dist/commands/range-diff/range-diff.d.ts.map +1 -0
  244. package/dist/commands/read-tree-command.d.ts +14 -0
  245. package/dist/commands/read-tree-command.d.ts.map +1 -1
  246. package/dist/commands/rebase-command.d.ts +129 -4
  247. package/dist/commands/rebase-command.d.ts.map +1 -1
  248. package/dist/commands/refs-command.d.ts +81 -0
  249. package/dist/commands/refs-command.d.ts.map +1 -0
  250. package/dist/commands/remerge-diff.d.ts +59 -0
  251. package/dist/commands/remerge-diff.d.ts.map +1 -0
  252. package/dist/commands/remote-command.d.ts +41 -0
  253. package/dist/commands/remote-command.d.ts.map +1 -1
  254. package/dist/commands/remote-object-info-command.d.ts +55 -0
  255. package/dist/commands/remote-object-info-command.d.ts.map +1 -0
  256. package/dist/commands/remote-show-command.d.ts +204 -0
  257. package/dist/commands/remote-show-command.d.ts.map +1 -0
  258. package/dist/commands/remote-transport.d.ts +40 -3
  259. package/dist/commands/remote-transport.d.ts.map +1 -1
  260. package/dist/commands/repack-command.d.ts +115 -0
  261. package/dist/commands/repack-command.d.ts.map +1 -0
  262. package/dist/commands/replace-command.d.ts +143 -0
  263. package/dist/commands/replace-command.d.ts.map +1 -0
  264. package/dist/commands/replay-command.d.ts +117 -0
  265. package/dist/commands/replay-command.d.ts.map +1 -0
  266. package/dist/commands/repo-command.d.ts +136 -0
  267. package/dist/commands/repo-command.d.ts.map +1 -0
  268. package/dist/commands/request-pull-command.d.ts +82 -0
  269. package/dist/commands/request-pull-command.d.ts.map +1 -0
  270. package/dist/commands/rerere-command.d.ts +36 -0
  271. package/dist/commands/rerere-command.d.ts.map +1 -0
  272. package/dist/commands/rerere.d.ts +102 -0
  273. package/dist/commands/rerere.d.ts.map +1 -0
  274. package/dist/commands/reset-command.d.ts +19 -1
  275. package/dist/commands/reset-command.d.ts.map +1 -1
  276. package/dist/commands/restore-command.d.ts +7 -0
  277. package/dist/commands/restore-command.d.ts.map +1 -1
  278. package/dist/commands/rev-filter/commit-grep.d.ts +3 -1
  279. package/dist/commands/rev-filter/commit-grep.d.ts.map +1 -1
  280. package/dist/commands/rev-list-command.d.ts +78 -3
  281. package/dist/commands/rev-list-command.d.ts.map +1 -1
  282. package/dist/commands/rev-parse-command.d.ts +9 -0
  283. package/dist/commands/rev-parse-command.d.ts.map +1 -1
  284. package/dist/commands/revert-command.d.ts +32 -1
  285. package/dist/commands/revert-command.d.ts.map +1 -1
  286. package/dist/commands/revision-range.d.ts +7 -0
  287. package/dist/commands/revision-range.d.ts.map +1 -1
  288. package/dist/commands/revision-resolver.d.ts +12 -0
  289. package/dist/commands/revision-resolver.d.ts.map +1 -1
  290. package/dist/commands/sequencer-pick.d.ts +120 -1
  291. package/dist/commands/sequencer-pick.d.ts.map +1 -1
  292. package/dist/commands/sequencer-support.d.ts +10 -1
  293. package/dist/commands/sequencer-support.d.ts.map +1 -1
  294. package/dist/commands/serve-repository.d.ts +23 -1
  295. package/dist/commands/serve-repository.d.ts.map +1 -1
  296. package/dist/commands/session-id.d.ts +18 -0
  297. package/dist/commands/session-id.d.ts.map +1 -0
  298. package/dist/commands/shortlog-command.d.ts +109 -0
  299. package/dist/commands/shortlog-command.d.ts.map +1 -0
  300. package/dist/commands/shortlog.d.ts +151 -0
  301. package/dist/commands/shortlog.d.ts.map +1 -0
  302. package/dist/commands/show-branch-command.d.ts +59 -0
  303. package/dist/commands/show-branch-command.d.ts.map +1 -0
  304. package/dist/commands/show-ref-command.d.ts +112 -0
  305. package/dist/commands/show-ref-command.d.ts.map +1 -0
  306. package/dist/commands/signature-check.d.ts +9 -2
  307. package/dist/commands/signature-check.d.ts.map +1 -1
  308. package/dist/commands/signing.d.ts +22 -1
  309. package/dist/commands/signing.d.ts.map +1 -1
  310. package/dist/commands/stash-apply-command.d.ts.map +1 -1
  311. package/dist/commands/stash-export-command.d.ts +115 -0
  312. package/dist/commands/stash-export-command.d.ts.map +1 -0
  313. package/dist/commands/status-command.d.ts +33 -3
  314. package/dist/commands/status-command.d.ts.map +1 -1
  315. package/dist/commands/stripspace-command.d.ts +44 -0
  316. package/dist/commands/stripspace-command.d.ts.map +1 -0
  317. package/dist/commands/submodule-add-command.d.ts +10 -1
  318. package/dist/commands/submodule-add-command.d.ts.map +1 -1
  319. package/dist/commands/submodule-auth.d.ts +3 -1
  320. package/dist/commands/submodule-auth.d.ts.map +1 -1
  321. package/dist/commands/submodule-commands.d.ts +99 -3
  322. package/dist/commands/submodule-commands.d.ts.map +1 -1
  323. package/dist/commands/submodule-fetch.d.ts +149 -0
  324. package/dist/commands/submodule-fetch.d.ts.map +1 -0
  325. package/dist/commands/submodule-model.d.ts +8 -0
  326. package/dist/commands/submodule-model.d.ts.map +1 -1
  327. package/dist/commands/submodule-unpack.d.ts +120 -0
  328. package/dist/commands/submodule-unpack.d.ts.map +1 -0
  329. package/dist/commands/submodule-update-command.d.ts +21 -1
  330. package/dist/commands/submodule-update-command.d.ts.map +1 -1
  331. package/dist/commands/subtree-shift.d.ts +27 -0
  332. package/dist/commands/subtree-shift.d.ts.map +1 -0
  333. package/dist/commands/switch-command.d.ts +3 -0
  334. package/dist/commands/switch-command.d.ts.map +1 -1
  335. package/dist/commands/textconv-cache.d.ts +58 -0
  336. package/dist/commands/textconv-cache.d.ts.map +1 -0
  337. package/dist/commands/tree-restore.d.ts +5 -0
  338. package/dist/commands/tree-restore.d.ts.map +1 -1
  339. package/dist/commands/unpack-objects-command.d.ts +47 -0
  340. package/dist/commands/unpack-objects-command.d.ts.map +1 -0
  341. package/dist/commands/update-index-command.d.ts +110 -0
  342. package/dist/commands/update-index-command.d.ts.map +1 -0
  343. package/dist/commands/uri-protocols.d.ts +13 -0
  344. package/dist/commands/uri-protocols.d.ts.map +1 -0
  345. package/dist/commands/url-parse-command.d.ts +30 -0
  346. package/dist/commands/url-parse-command.d.ts.map +1 -0
  347. package/dist/commands/var-command.d.ts +42 -0
  348. package/dist/commands/var-command.d.ts.map +1 -0
  349. package/dist/commands/worktree-overwrite-checks.d.ts +2 -0
  350. package/dist/commands/worktree-overwrite-checks.d.ts.map +1 -1
  351. package/dist/{commands-ISM52N0n.js → commands-Mlo1dxQN.js} +56133 -70269
  352. package/dist/errors/command-errors.d.ts +58 -0
  353. package/dist/errors/command-errors.d.ts.map +1 -1
  354. package/dist/errors/index.js +67 -1
  355. package/dist/fsck-CrhVMNIH.js +5179 -0
  356. package/dist/git-command.d.ts +89 -3
  357. package/dist/git-command.d.ts.map +1 -1
  358. package/dist/git.d.ts +628 -1
  359. package/dist/git.d.ts.map +1 -1
  360. package/dist/guarded-transport-command.d.ts +84 -0
  361. package/dist/guarded-transport-command.d.ts.map +1 -0
  362. package/dist/index.d.ts +1 -0
  363. package/dist/index.d.ts.map +1 -1
  364. package/dist/index.js +7 -5
  365. package/dist/maintenance-run-command-Bw21HEkH.js +13539 -0
  366. package/dist/remote-transport-Bu4PGSMD.js +2605 -0
  367. package/dist/rename/detect-renames.d.ts +20 -0
  368. package/dist/rename/detect-renames.d.ts.map +1 -1
  369. package/dist/rename/diffcore-break.d.ts +51 -0
  370. package/dist/rename/diffcore-break.d.ts.map +1 -0
  371. package/dist/rename/index.d.ts +1 -0
  372. package/dist/rename/index.d.ts.map +1 -1
  373. package/dist/results/blame-format.d.ts +62 -1
  374. package/dist/results/blame-format.d.ts.map +1 -1
  375. package/dist/results/cherry-pick-result.d.ts +6 -0
  376. package/dist/results/cherry-pick-result.d.ts.map +1 -1
  377. package/dist/results/clone-result.d.ts +9 -0
  378. package/dist/results/clone-result.d.ts.map +1 -1
  379. package/dist/results/diff-dirstat.d.ts +36 -0
  380. package/dist/results/diff-dirstat.d.ts.map +1 -0
  381. package/dist/results/diff-entry.d.ts +20 -0
  382. package/dist/results/diff-entry.d.ts.map +1 -1
  383. package/dist/results/diff-formatter.d.ts.map +1 -1
  384. package/dist/results/diff-output.d.ts +67 -3
  385. package/dist/results/diff-output.d.ts.map +1 -1
  386. package/dist/results/fetch-result.d.ts +24 -1
  387. package/dist/results/fetch-result.d.ts.map +1 -1
  388. package/dist/results/index.d.ts +2 -0
  389. package/dist/results/index.d.ts.map +1 -1
  390. package/dist/results/index.js +2 -2
  391. package/dist/results/init-result.d.ts +8 -1
  392. package/dist/results/init-result.d.ts.map +1 -1
  393. package/dist/results/line-range-hunks.d.ts +27 -0
  394. package/dist/results/line-range-hunks.d.ts.map +1 -0
  395. package/dist/results/merge-result.d.ts +13 -1
  396. package/dist/results/merge-result.d.ts.map +1 -1
  397. package/dist/results/pull-result.d.ts +11 -0
  398. package/dist/results/pull-result.d.ts.map +1 -1
  399. package/dist/results/push-result.d.ts +10 -0
  400. package/dist/results/push-result.d.ts.map +1 -1
  401. package/dist/results/rebase-result.d.ts +7 -0
  402. package/dist/results/rebase-result.d.ts.map +1 -1
  403. package/dist/results/revert-result.d.ts +6 -0
  404. package/dist/results/revert-result.d.ts.map +1 -1
  405. package/dist/results/stash-result.d.ts +5 -0
  406. package/dist/results/stash-result.d.ts.map +1 -1
  407. package/dist/results/status-result.d.ts +1 -1
  408. package/dist/results/status-result.d.ts.map +1 -1
  409. package/dist/results-ERo9vELd.js +49673 -0
  410. package/dist/transport-command.d.ts +93 -1
  411. package/dist/transport-command.d.ts.map +1 -1
  412. package/package.json +12 -12
  413. package/src/commands/add-command.ts +118 -0
  414. package/src/commands/add-patch/add-patch.ts +8 -0
  415. package/src/commands/add-patch/patch-backend.ts +24 -3
  416. package/src/commands/add-patch/patch-modes.ts +26 -2
  417. package/src/commands/add-patch/patch-session.ts +6 -0
  418. package/src/commands/am/am-command.ts +301 -12
  419. package/src/commands/apply/apply-command.ts +52 -9
  420. package/src/commands/apply/apply-parse.ts +10 -0
  421. package/src/commands/apply/index.ts +9 -1
  422. package/src/commands/archive/archive-command.ts +1148 -0
  423. package/src/commands/archive/archive-entry.ts +93 -0
  424. package/src/commands/archive/index.ts +7 -0
  425. package/src/commands/archive/remote-archive-command.ts +140 -0
  426. package/src/commands/archive/tar-archive.ts +207 -0
  427. package/src/commands/archive/tar-commit-id.ts +72 -0
  428. package/src/commands/archive/upload-archive-writer.ts +213 -0
  429. package/src/commands/archive/zip-archive.ts +317 -0
  430. package/src/commands/attributes-source.ts +26 -12
  431. package/src/commands/blame-command.ts +1551 -53
  432. package/src/commands/blame-ignore.ts +307 -0
  433. package/src/commands/bundle/bundle-create-command.ts +405 -0
  434. package/src/commands/bundle/bundle-format.ts +228 -0
  435. package/src/commands/bundle/bundle-list.ts +276 -0
  436. package/src/commands/bundle/bundle-read-commands.ts +157 -0
  437. package/src/commands/bundle/bundle-support.ts +85 -0
  438. package/src/commands/bundle/bundle-transport.ts +107 -0
  439. package/src/commands/bundle/bundle-uri-host.ts +204 -0
  440. package/src/commands/bundle/bundle-uri.ts +236 -0
  441. package/src/commands/bundle/bundle-verify.ts +152 -0
  442. package/src/commands/bundle/index.ts +14 -0
  443. package/src/commands/cat-file/batch-format.ts +193 -0
  444. package/src/commands/cat-file/cat-file-command.ts +857 -0
  445. package/src/commands/cat-file/index.ts +2 -0
  446. package/src/commands/check-attr-command.ts +333 -0
  447. package/src/commands/check-ignore-command.ts +261 -0
  448. package/src/commands/check-mailmap-command.ts +129 -0
  449. package/src/commands/check-ref-format-command.ts +129 -0
  450. package/src/commands/checkout-command.ts +131 -28
  451. package/src/commands/checkout-index-command.ts +568 -0
  452. package/src/commands/checkout-paths.ts +35 -0
  453. package/src/commands/cherry-command.ts +187 -0
  454. package/src/commands/cherry-pick-command.ts +63 -2
  455. package/src/commands/clean-command.ts +92 -12
  456. package/src/commands/clean-interactive.ts +522 -0
  457. package/src/commands/clone-command.ts +803 -50
  458. package/src/commands/commit-command.ts +202 -51
  459. package/src/commands/config-command.ts +9 -0
  460. package/src/commands/daemon-access-hook.ts +78 -0
  461. package/src/commands/default-branch.ts +99 -1
  462. package/src/commands/describe-command.ts +341 -254
  463. package/src/commands/diff-command.ts +1186 -99
  464. package/src/commands/diff-external.ts +131 -0
  465. package/src/commands/diff-plumbing/diff-pairs-command.ts +193 -0
  466. package/src/commands/diff-plumbing/diff-plumbing-command.ts +424 -0
  467. package/src/commands/diff-plumbing/index.ts +2 -0
  468. package/src/commands/diff-textconv.ts +5 -1
  469. package/src/commands/fast-export/fast-export-command.ts +911 -0
  470. package/src/commands/fast-export/fast-import-command.ts +1553 -0
  471. package/src/commands/fast-export/fast-stream-support.ts +162 -0
  472. package/src/commands/fast-export/index.ts +3 -0
  473. package/src/commands/fetch-command.ts +665 -14
  474. package/src/commands/fetch-multiple-command.ts +668 -0
  475. package/src/commands/format-patch-command.ts +189 -77
  476. package/src/commands/format-rev-command.ts +251 -0
  477. package/src/commands/fsck/fsck-command.ts +47 -20
  478. package/src/commands/fsck/fsck-msg-ids.ts +19 -3
  479. package/src/commands/fsck/fsck-pack.ts +2 -2
  480. package/src/commands/fsmonitor-refresh.ts +315 -0
  481. package/src/commands/gc-command.ts +10 -0
  482. package/src/commands/git-describe.ts +456 -217
  483. package/src/commands/git-hooks.ts +165 -9
  484. package/src/commands/git-paths.ts +136 -0
  485. package/src/commands/grep/grep-command.ts +38 -15
  486. package/src/commands/history-command.ts +617 -0
  487. package/src/commands/http-config.ts +139 -0
  488. package/src/commands/index-adder.ts +37 -3
  489. package/src/commands/index-host.ts +6 -1
  490. package/src/commands/index.ts +62 -0
  491. package/src/commands/init-command.ts +617 -49
  492. package/src/commands/last-modified-command.ts +804 -0
  493. package/src/commands/lfs/go-url.ts +370 -0
  494. package/src/commands/lfs/index.ts +2 -0
  495. package/src/commands/lfs/lfs-config.ts +738 -0
  496. package/src/commands/lfs/lfs-endpoint-command.ts +180 -0
  497. package/src/commands/line-log.ts +931 -0
  498. package/src/commands/local-transport.ts +252 -4
  499. package/src/commands/log-command.ts +1518 -182
  500. package/src/commands/log-graph.ts +6 -3
  501. package/src/commands/log-output.ts +228 -15
  502. package/src/commands/ls-files-command.ts +1177 -0
  503. package/src/commands/ls-remote-command.ts +6 -0
  504. package/src/commands/ls-tree-command.ts +684 -0
  505. package/src/commands/mailmap.ts +41 -5
  506. package/src/commands/maintenance-run-command.ts +949 -0
  507. package/src/commands/merge-command.ts +351 -47
  508. package/src/commands/merge-config.ts +23 -1
  509. package/src/commands/merge-drivers.ts +112 -20
  510. package/src/commands/merge-strategy-options.ts +224 -0
  511. package/src/commands/merge-support.ts +130 -26
  512. package/src/commands/merge-tree-command.ts +786 -0
  513. package/src/commands/message-cleanup.ts +1 -1
  514. package/src/commands/mktag-command.ts +149 -0
  515. package/src/commands/name-rev-command.ts +184 -0
  516. package/src/commands/name-rev.ts +700 -109
  517. package/src/commands/object-store/count-objects-command.ts +404 -0
  518. package/src/commands/object-store/index.ts +4 -0
  519. package/src/commands/object-store/objects-directory.ts +24 -0
  520. package/src/commands/object-store/prune-command.ts +129 -0
  521. package/src/commands/object-store/show-index-command.ts +151 -0
  522. package/src/commands/octopus-merge.ts +35 -11
  523. package/src/commands/ort-merge.ts +124 -23
  524. package/src/commands/ort-recursive.ts +40 -2
  525. package/src/commands/patch-id-command.ts +65 -0
  526. package/src/commands/patch-id.ts +327 -0
  527. package/src/commands/plumbing-command.ts +141 -0
  528. package/src/commands/plumbing-input.ts +87 -0
  529. package/src/commands/promisor-remote-reply.ts +276 -0
  530. package/src/commands/promisor-remote.ts +25 -2
  531. package/src/commands/pull-command.ts +720 -224
  532. package/src/commands/push-command.ts +440 -8
  533. package/src/commands/range-diff/index.ts +3 -0
  534. package/src/commands/range-diff/linear-assignment.ts +203 -0
  535. package/src/commands/range-diff/range-diff-command.ts +433 -0
  536. package/src/commands/range-diff/range-diff.ts +617 -0
  537. package/src/commands/read-tree-command.ts +74 -3
  538. package/src/commands/rebase-command.ts +647 -83
  539. package/src/commands/refs-command.ts +274 -0
  540. package/src/commands/remerge-diff.ts +241 -0
  541. package/src/commands/remote-command.ts +98 -10
  542. package/src/commands/remote-object-info-command.ts +109 -0
  543. package/src/commands/remote-show-command.ts +836 -0
  544. package/src/commands/remote-transport.ts +116 -1
  545. package/src/commands/repack-command.ts +383 -0
  546. package/src/commands/replace-command.ts +816 -0
  547. package/src/commands/replay-command.ts +674 -0
  548. package/src/commands/repo-command.ts +967 -0
  549. package/src/commands/request-pull-command.ts +356 -0
  550. package/src/commands/rerere-command.ts +179 -0
  551. package/src/commands/rerere.ts +925 -0
  552. package/src/commands/reset-command.ts +78 -3
  553. package/src/commands/restore-command.ts +15 -0
  554. package/src/commands/rev-filter/commit-grep.ts +7 -2
  555. package/src/commands/rev-list-command.ts +196 -11
  556. package/src/commands/rev-parse-command.ts +62 -4
  557. package/src/commands/revert-command.ts +62 -2
  558. package/src/commands/revision-range.ts +10 -3
  559. package/src/commands/revision-resolver.ts +44 -3
  560. package/src/commands/sequencer-pick.ts +370 -29
  561. package/src/commands/sequencer-support.ts +164 -2
  562. package/src/commands/serve-repository.ts +65 -0
  563. package/src/commands/session-id.ts +31 -0
  564. package/src/commands/shortlog-command.ts +354 -0
  565. package/src/commands/shortlog.ts +361 -0
  566. package/src/commands/show-branch-command.ts +981 -0
  567. package/src/commands/show-command.ts +3 -2
  568. package/src/commands/show-ref-command.ts +439 -0
  569. package/src/commands/signature-check.ts +37 -5
  570. package/src/commands/signing.ts +122 -16
  571. package/src/commands/stash-apply-command.ts +3 -0
  572. package/src/commands/stash-export-command.ts +397 -0
  573. package/src/commands/status-command.ts +158 -31
  574. package/src/commands/status-format.ts +1 -1
  575. package/src/commands/stripspace-command.ts +118 -0
  576. package/src/commands/submodule-add-command.ts +22 -1
  577. package/src/commands/submodule-auth.ts +61 -6
  578. package/src/commands/submodule-commands.ts +333 -5
  579. package/src/commands/submodule-fetch.ts +789 -0
  580. package/src/commands/submodule-model.ts +9 -1
  581. package/src/commands/submodule-unpack.ts +265 -0
  582. package/src/commands/submodule-update-command.ts +68 -5
  583. package/src/commands/subtree-shift.ts +215 -0
  584. package/src/commands/switch-command.ts +9 -0
  585. package/src/commands/textconv-cache.ts +143 -0
  586. package/src/commands/tree-restore.ts +20 -1
  587. package/src/commands/unpack-objects-command.ts +235 -0
  588. package/src/commands/update-index-command.ts +1016 -0
  589. package/src/commands/uri-protocols.ts +13 -0
  590. package/src/commands/url-parse-command.ts +67 -0
  591. package/src/commands/var-command.ts +219 -0
  592. package/src/commands/worktree-overwrite-checks.ts +5 -0
  593. package/src/errors/command-errors.ts +80 -0
  594. package/src/git-command.ts +218 -2
  595. package/src/git.ts +1033 -80
  596. package/src/guarded-transport-command.ts +176 -0
  597. package/src/index.ts +1 -0
  598. package/src/rename/detect-renames.ts +42 -8
  599. package/src/rename/diffcore-break.ts +166 -0
  600. package/src/rename/index.ts +1 -0
  601. package/src/results/blame-format.ts +268 -43
  602. package/src/results/cherry-pick-result.ts +6 -0
  603. package/src/results/clone-result.ts +6 -0
  604. package/src/results/diff-dirstat.ts +117 -0
  605. package/src/results/diff-entry.ts +24 -0
  606. package/src/results/diff-formatter.ts +8 -4
  607. package/src/results/diff-output.ts +239 -8
  608. package/src/results/diff-pickaxe.ts +1 -1
  609. package/src/results/fetch-result.ts +24 -1
  610. package/src/results/index.ts +2 -0
  611. package/src/results/init-result.ts +10 -1
  612. package/src/results/line-range-hunks.ts +126 -0
  613. package/src/results/merge-result.ts +14 -0
  614. package/src/results/pull-result.ts +7 -0
  615. package/src/results/push-result.ts +10 -0
  616. package/src/results/rebase-result.ts +7 -0
  617. package/src/results/revert-result.ts +6 -0
  618. package/src/results/stash-result.ts +6 -0
  619. package/src/results/status-result.ts +2 -2
  620. package/src/transport-command.ts +216 -4
  621. package/dist/fsck-DLRpbwTj.js +0 -13405
  622. package/dist/results-TB2IJ64h.js +0 -4700
@@ -0,0 +1,174 @@
1
+ /**
2
+ * Git LFS configuration as git-lfs reads it (v3, `config/git_fetcher.go`,
3
+ * `git/config.go` `Sources`, `lfsapi/endpoint_finder.go`, `lfshttp/endpoint.go`): the
4
+ * repository's `.lfsconfig` (the worktree's file, else the index's stage-0 blob, else
5
+ * HEAD's; HEAD's alone in a bare repository) read first, then the whole git configuration,
6
+ * the last value of a key winning. `.lfsconfig` is repository content: only git-lfs's safe
7
+ * keys are taken from it (`lfs.url`, `lfs.pushurl`, `remote.<name>.lfsurl`, ...), the others
8
+ * are ignored with git-lfs's warning.
9
+ *
10
+ * The LFS endpoint of an operation (`download`, `upload`) and remote follows git-lfs's order:
11
+ * `lfs.pushurl` (upload), `lfs.url`, then the remote's `lfspushurl` (upload), `lfsurl`, then
12
+ * its `pushurl` (upload) or `url` with `.git/info/lfs` appended (`/info/lfs` after a `.git`
13
+ * path), the remote named `origin` when the asked remote gives none. URLs go through
14
+ * `url.<base>.insteadOf` (`pushInsteadOf` for uploads) and Go's URL reading, so an ssh remote
15
+ * gives `https://<host><path>` and its ssh metadata, a `git://` one `lfs.gitprotocol`
16
+ * (default `https`).
17
+ *
18
+ * @example
19
+ * ```typescript
20
+ * const lfs = await LfsConfig.load(workingCopy);
21
+ * const ep = await lfs.endpoint("download", lfs.remote());
22
+ * ep.url; // "https://example.com/foo/bar.git/info/lfs"
23
+ * ```
24
+ */
25
+ import { type ObjectId } from "@statewalker/vcs-core";
26
+ import { type WorkingCopy } from "@statewalker/vcs-working-tree";
27
+ /** The LFS operation an endpoint is for. */
28
+ export type LfsEndpointOperation = "download" | "upload";
29
+ /** git-lfs's `UrlUnknown`: an ssh URL whose host cannot be read. */
30
+ export declare const LFS_URL_UNKNOWN = "<unknown>";
31
+ /** How git-lfs reaches an endpoint over ssh (`git-lfs-authenticate`, `git-lfs-transfer`). */
32
+ export interface LfsSshMetadata {
33
+ /** `user@host`, or `host` */
34
+ userAndHost: string;
35
+ /** The port, `""` for ssh's default */
36
+ port: string;
37
+ path: string;
38
+ }
39
+ /** Which setting gave an endpoint. */
40
+ export type LfsEndpointSource = "lfs.pushurl" | "lfs.url" | "remote.lfspushurl" | "remote.lfsurl" | "remote.pushurl" | "remote.url"
41
+ /** The remote's name read as a URL (a remote without URL, or a URL given as the remote) */
42
+ | "remote.name"
43
+ /** git-lfs 3.5+: the URL `FETCH_HEAD`'s first line names (`origin` without any URL) */
44
+ | "fetch-head";
45
+ /** An LFS endpoint, as git-lfs's `lfshttp.Endpoint`. */
46
+ export interface LfsEndpoint {
47
+ /**
48
+ * The endpoint's URL: `""` when nothing names one, {@link LFS_URL_UNKNOWN} for an ssh URL
49
+ * whose host cannot be read; a `file://` URL for a local repository
50
+ */
51
+ url: string;
52
+ operation: LfsEndpointOperation;
53
+ /** The remote whose settings gave the endpoint (`origin` after a fallback) */
54
+ remote: string;
55
+ /** Present for an ssh URL */
56
+ ssh?: LfsSshMetadata;
57
+ /** The setting that gave it; absent when nothing did */
58
+ source?: LfsEndpointSource;
59
+ /**
60
+ * The setting's value came from `.lfsconfig` (repository content), not the git
61
+ * configuration; {@link LfsEndpointCommand} also sets it when `.lfsconfig` chose the remote
62
+ */
63
+ fromLfsconfig: boolean;
64
+ }
65
+ /** Where `.lfsconfig` was read from. */
66
+ export type LfsconfigSource = {
67
+ kind: "worktree";
68
+ } | {
69
+ kind: "index";
70
+ id: ObjectId;
71
+ } | {
72
+ kind: "head";
73
+ id: ObjectId;
74
+ } | {
75
+ kind: "none";
76
+ };
77
+ /** What {@link LfsConfig.load} reads besides the configuration. */
78
+ export interface LfsConfigLoadOptions {
79
+ /** Leave `.lfsconfig` out (the user's own configuration alone) */
80
+ withoutLfsconfig?: boolean;
81
+ /**
82
+ * The git-lfs version to follow (default {@link LFS_DEFAULT_COMPATIBILITY}): 3.5 added the
83
+ * `FETCH_HEAD` fallback; 3.8.1 takes from `.lfsconfig` only `remote.<name>.lfsurl` of the
84
+ * `remote.*` keys and only `lfs.*.access` of the access keys, and escapes the path of an ssh
85
+ * remote's HTTPS fallback
86
+ */
87
+ compatibility?: string;
88
+ }
89
+ /** The git-lfs version followed by default. */
90
+ export declare const LFS_DEFAULT_COMPATIBILITY = "3.8.1";
91
+ /**
92
+ * The LFS configuration of a working copy (see the module notes): `.lfsconfig` and the git
93
+ * configuration merged as git-lfs merges them, and git-lfs's endpoint finder over them.
94
+ */
95
+ export declare class LfsConfig {
96
+ private readonly values;
97
+ /** git-lfs's `Remotes()`: every remote any `remote.*` key names, in the order first seen */
98
+ readonly remotes: readonly string[];
99
+ /** `git remote`: the remotes of the git configuration */
100
+ private readonly gitRemotes;
101
+ /** What git-lfs prints on stderr reading the configuration (ignored `.lfsconfig` keys) */
102
+ readonly warnings: readonly string[];
103
+ /**
104
+ * Why the configuration was not read (a worktree `.lfsconfig` git cannot parse: git-lfs
105
+ * then reads no configuration at all)
106
+ */
107
+ readonly errors: readonly string[];
108
+ /** Where `.lfsconfig` was read from */
109
+ readonly lfsconfigSource: LfsconfigSource;
110
+ private readonly currentBranch;
111
+ private readonly stat;
112
+ private readonly cwd;
113
+ private readonly features;
114
+ /** The first line of the worktree's `FETCH_HEAD`, when there is one */
115
+ private readonly fetchHeadLine;
116
+ private readonly aliases;
117
+ private readonly pushAliases;
118
+ private readonly gitProtocol;
119
+ private constructor();
120
+ /**
121
+ * Reads `.lfsconfig` (see the module notes) and the working copy's configuration.
122
+ *
123
+ * A `.lfsconfig` git cannot parse makes git-lfs drop its whole configuration (git's too:
124
+ * `Error reading \`git config\``) when it is the worktree's file; a blob git cannot parse is
125
+ * passed over for the next source.
126
+ */
127
+ static load(workingCopy: WorkingCopy, options?: LfsConfigLoadOptions): Promise<LfsConfig>;
128
+ /** The last value of `key` (git-lfs's `Get`), undefined when unset. */
129
+ get(key: string): string | undefined;
130
+ /** Every value of `key`, `.lfsconfig`'s first. */
131
+ getAll(key: string): string[];
132
+ private entry;
133
+ /**
134
+ * git-lfs's `Remote()`: the current branch's `branch.<name>.remote`, else
135
+ * `remote.lfsdefault`, else the only remote, else `origin`.
136
+ */
137
+ remote(): string;
138
+ /**
139
+ * git-lfs's `PushRemote()`: `branch.<name>.pushRemote`, `remote.lfspushdefault`,
140
+ * `remote.pushDefault`, else {@link remote}.
141
+ */
142
+ pushRemote(): string;
143
+ /**
144
+ * {@link remote} (download) or {@link pushRemote} (upload), and whether `.lfsconfig` chose
145
+ * it: git-lfs takes `remote.lfsdefault`, `remote.lfspushdefault` and `remote.pushDefault`
146
+ * from `.lfsconfig` (and a remote with a URL-like name is read as that URL), so a remote it
147
+ * picks is repository content too.
148
+ */
149
+ remoteChoice(operation: LfsEndpointOperation): {
150
+ name: string;
151
+ fromLfsconfig: boolean;
152
+ };
153
+ /**
154
+ * git-lfs's `Endpoint(operation, remote)`: `lfs.pushurl` (upload), `lfs.url`, the remote's
155
+ * own endpoint, else `origin`'s.
156
+ */
157
+ endpoint(operation: LfsEndpointOperation, remote?: string): Promise<LfsEndpoint>;
158
+ /** git-lfs's `RemoteEndpoint`: the remote's own settings alone. */
159
+ remoteEndpoint(operation: LfsEndpointOperation, remote: string): Promise<LfsEndpoint>;
160
+ /** git-lfs's `NewEndpointFromCloneURL`: the URL with `.git/info/lfs` appended. */
161
+ private cloneUrlEndpoint;
162
+ /** git-lfs's `GitRemoteURL`: `pushurl` (push), `url`, else the name if it is a remote or a URL. */
163
+ private gitRemoteUrl;
164
+ private newEndpoint;
165
+ /** git-lfs's `NewEndpoint`: the URL as the endpoint gives it. */
166
+ private readEndpointUrl;
167
+ /** A path as the process sees it: relative ones from the worktree top. */
168
+ private hostPath;
169
+ /** git's `RewriteLocalPathAsURL` (git-lfs). */
170
+ private localPathUrl;
171
+ /** git-lfs's `ReplaceUrlAlias`: the longest `insteadOf` (`pushInsteadOf` first for uploads). */
172
+ replaceUrlAlias(operation: LfsEndpointOperation, rawurl: string): string;
173
+ }
174
+ //# sourceMappingURL=lfs-config.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"lfs-config.d.ts","sourceRoot":"","sources":["../../../src/commands/lfs/lfs-config.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AAEH,OAAO,EAAY,KAAK,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAEhE,OAAO,EAAiB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AAoB,GAAG;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,aAAa,EAAE,OAAO,CAAA;KAAE,CAuBtF;IAED;;;OAGG;IACG,QAAQ,CAAC,SAAS,EAAE,oBAAoB,EAAE,MAAM,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,WAAW,CAAC,CAYrF;IAED,mEAAmE;IAC7D,cAAc,CAAC,SAAS,EAAE,oBAAoB,EAAE,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC,WAAW,CAAC,CAwB1F;IAED,kFAAkF;YACpE,gBAAgB;IAgB9B,mGAAmG;IACnG,OAAO,CAAC,YAAY;YAgBN,WAAW;IAiBzB,iEAAiE;YACnD,eAAe;IAqC7B,0EAA0E;IAC1E,OAAO,CAAC,QAAQ;IAKhB,+CAA+C;YACjC,YAAY;IAe1B,gGAAgG;IAChG,eAAe,CAAC,SAAS,EAAE,oBAAoB,EAAE,MAAM,EAAE,MAAM,GAAG,MAAM,CAMvE;CACF"}
@@ -0,0 +1,83 @@
1
+ /**
2
+ * The Git LFS endpoint of an operation and remote, as git-lfs resolves it (see
3
+ * {@link LfsConfig}), with the credentials and headers the caller may send there.
4
+ *
5
+ * `.lfsconfig` is repository content: whoever writes the repository chooses its `lfs.url`.
6
+ * So static credentials and headers ({@link LfsEndpointCommand.setCredentials},
7
+ * {@link LfsEndpointCommand.setHeaders}) go to the endpoint only when its origin is one named
8
+ * with {@link LfsEndpointCommand.addCredentialOrigin}, or, with none named, the origin of the
9
+ * endpoint the user's own configuration gives (the same resolution without `.lfsconfig`):
10
+ * a `.lfsconfig` pointing the endpoint at another host gets none. Per-URL providers
11
+ * ({@link LfsEndpointCommand.setCredentialsForUrl}) are asked with the endpoint's URL and
12
+ * answer for its origin alone, as a credential helper does.
13
+ *
14
+ * @example
15
+ * ```typescript
16
+ * const ep = await git.lfsEndpoint().setOperation("upload")
17
+ * .setCredentials({ username: "u", password: "p" }).call();
18
+ * await lfsUpload(ep.url, store, objects, resolver, { ...ep.auth });
19
+ * ```
20
+ */
21
+ import type { Credentials } from "@statewalker/vcs-transport";
22
+ import { GitCommand } from "../../git-command.js";
23
+ import { type CredentialsForUrl, type HeadersForUrl } from "../submodule-auth.js";
24
+ import { type LfsEndpoint, type LfsEndpointOperation } from "./lfs-config.js";
25
+ /** What {@link LfsEndpointCommand.call} answers. */
26
+ export interface LfsEndpointResult extends LfsEndpoint {
27
+ /**
28
+ * What to send to the endpoint (structurally `LfsTransferOptions`' `credentials` and
29
+ * `headers`): empty when the policy gives the endpoint's origin nothing
30
+ */
31
+ auth: {
32
+ credentials?: {
33
+ username: string;
34
+ password: string;
35
+ };
36
+ headers?: Record<string, string>;
37
+ };
38
+ /** The endpoint's origin is one the static credentials are for */
39
+ trusted: boolean;
40
+ /** What git-lfs prints reading the configuration (ignored `.lfsconfig` keys) */
41
+ warnings: string[];
42
+ }
43
+ /** `git lfs env`'s endpoint for an operation and remote, with the credential policy applied. */
44
+ export declare class LfsEndpointCommand extends GitCommand<LfsEndpointResult> {
45
+ private operation;
46
+ private remote?;
47
+ private credentials?;
48
+ private headers?;
49
+ private credentialOrigins;
50
+ private credentialsFor?;
51
+ private headersFor?;
52
+ private compatibility?;
53
+ /**
54
+ * The git-lfs version to follow (default `LFS_DEFAULT_COMPATIBILITY`, see
55
+ * `LfsConfigLoadOptions.compatibility`).
56
+ */
57
+ setCompatibility(version: string): this;
58
+ /** `download` (default) or `upload` (`lfs.pushurl`, `lfspushurl`, `pushurl`, `pushInsteadOf`). */
59
+ setOperation(operation: LfsEndpointOperation): this;
60
+ /**
61
+ * The remote; default git-lfs's: `branch.<name>.remote`, `remote.lfsdefault`, the only
62
+ * remote, `origin` (for uploads `branch.<name>.pushRemote`, `remote.lfspushdefault`,
63
+ * `remote.pushDefault` first). A URL may stand for a remote.
64
+ */
65
+ setRemote(remote: string): this;
66
+ /** Credentials for the trusted origins only (see the module notes). */
67
+ setCredentials(credentials: Credentials): this;
68
+ /** HTTP headers for the trusted origins only (see the module notes). */
69
+ setHeaders(headers: Record<string, string>): this;
70
+ /**
71
+ * An origin the static credentials and headers are for; once one is named, the origin of
72
+ * the user's own endpoint is no longer trusted by default.
73
+ *
74
+ * @throws GitApiError for a URL without an origin (a path, `file:`)
75
+ */
76
+ addCredentialOrigin(url: string): this;
77
+ /** Asked with the endpoint's URL: its credentials, or undefined for the static rule. */
78
+ setCredentialsForUrl(provider: CredentialsForUrl): this;
79
+ /** Asked with the endpoint's URL: its headers, or undefined for the static rule. */
80
+ setHeadersForUrl(provider: HeadersForUrl): this;
81
+ call(): Promise<LfsEndpointResult>;
82
+ }
83
+ //# sourceMappingURL=lfs-endpoint-command.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"lfs-endpoint-command.d.ts","sourceRoot":"","sources":["../../../src/commands/lfs/lfs-endpoint-command.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,4BAA4B,CAAC;AAG9D,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAClD,OAAO,EACL,KAAK,iBAAiB,EAEtB,KAAK,aAAa,EAEnB,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EAAa,KAAK,WAAW,EAAE,KAAK,oBAAoB,EAAE,MAAM,iBAAiB,CAAC;AAEzF,oDAAoD;AACpD,MAAM,WAAW,iBAAkB,SAAQ,WAAW;IACpD;;;OAGG;IACH,IAAI,EAAE;QAAE,WAAW,CAAC,EAAE;YAAE,QAAQ,EAAE,MAAM,CAAC;YAAC,QAAQ,EAAE,MAAM,CAAA;SAAE,CAAC;QAAC,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAA;KAAE,CAAC;IACjG,kEAAkE;IAClE,OAAO,EAAE,OAAO,CAAC;IACjB,gFAAgF;IAChF,QAAQ,EAAE,MAAM,EAAE,CAAC;CACpB;AAED,gGAAgG;AAChG,qBAAa,kBAAmB,SAAQ,UAAU,CAAC,iBAAiB,CAAC;IACnE,OAAO,CAAC,SAAS,CAAoC;IACrD,OAAO,CAAC,MAAM,CAAC,CAAS;IACxB,OAAO,CAAC,WAAW,CAAC,CAAc;IAClC,OAAO,CAAC,OAAO,CAAC,CAAyB;IACzC,OAAO,CAAC,iBAAiB,CAAgB;IACzC,OAAO,CAAC,cAAc,CAAC,CAAoB;IAC3C,OAAO,CAAC,UAAU,CAAC,CAAgB;IACnC,OAAO,CAAC,aAAa,CAAC,CAAS;IAE/B;;;OAGG;IACH,gBAAgB,CAAC,OAAO,EAAE,MAAM,GAAG,IAAI,CAItC;IAED,kGAAkG;IAClG,YAAY,CAAC,SAAS,EAAE,oBAAoB,GAAG,IAAI,CAIlD;IAED;;;;OAIG;IACH,SAAS,CAAC,MAAM,EAAE,MAAM,GAAG,IAAI,CAI9B;IAED,uEAAuE;IACvE,cAAc,CAAC,WAAW,EAAE,WAAW,GAAG,IAAI,CAI7C;IAED,wEAAwE;IACxE,UAAU,CAAC,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,GAAG,IAAI,CAIhD;IAED;;;;;OAKG;IACH,mBAAmB,CAAC,GAAG,EAAE,MAAM,GAAG,IAAI,CAQrC;IAED,wFAAwF;IACxF,oBAAoB,CAAC,QAAQ,EAAE,iBAAiB,GAAG,IAAI,CAItD;IAED,oFAAoF;IACpF,gBAAgB,CAAC,QAAQ,EAAE,aAAa,GAAG,IAAI,CAI9C;IAEK,IAAI,IAAI,OAAO,CAAC,iBAAiB,CAAC,CAiDvC;CACF"}
@@ -0,0 +1,161 @@
1
+ /**
2
+ * `git log -L`: line ranges of files followed back through history (git's line-log.c and
3
+ * line-range.c).
4
+ *
5
+ * @example
6
+ * ```ts
7
+ * // git log -L 4,12:a.c -L :main:a.c
8
+ * await git.log().addLineRange("4,12:a.c").addLineRange(":main:a.c").callText();
9
+ * ```
10
+ *
11
+ * The ranges are parsed against the one commit the log starts from ({@link parseLineRanges}:
12
+ * line numbers, `+N`/`-N` offsets, `/regex/` and `^/regex/` searches, `:funcname` found by
13
+ * the path's diff driver). The walk then hands each commit, children before parents, to a
14
+ * {@link LineLogWalk}: the commit is diffed with its parent at the tracked paths (renames
15
+ * followed, the parent's path taking over), the ranges are mapped across that diff to the
16
+ * parent, and the commit is shown when a change of the diff touches them. A merge whose diff
17
+ * with one parent touches nothing passes its ranges to that parent alone and is not shown.
18
+ * What a shown commit prints is its pairs with the ranges they touched: through the diff
19
+ * pipeline cut to the ranges in git 2.5x ({@link LineLogWalk.queuedPairs}), line-log's own
20
+ * diff in 2.43 ({@link LineLogWalk.hackyDiff}).
21
+ *
22
+ * @module
23
+ */
24
+ import type { ObjectId } from "@statewalker/vcs-core";
25
+ import { type FindFunction } from "@statewalker/vcs-utils";
26
+ import { type DiffEntry, type LineRange } from "../results/diff-entry.js";
27
+ /** The git version whose line-log is followed: 2.43's range arithmetic and diff, or 2.5x's */
28
+ export type LineLogCompatibility = "2.43" | "2.56";
29
+ /** A blob of a tracked file, as a pair side */
30
+ export interface LineLogSide {
31
+ path: string;
32
+ id: ObjectId;
33
+ mode: number;
34
+ }
35
+ /** A file pair of a commit's diff (a diff_filepair) */
36
+ export interface LineLogPair {
37
+ /** The parent's side; absent for a file the commit adds */
38
+ one?: LineLogSide;
39
+ two: LineLogSide;
40
+ /** A rename's similarity, 0..100 */
41
+ score?: number;
42
+ }
43
+ /** The hunks of a diff, by side (line-log.c's `struct diff_ranges`) */
44
+ interface DiffRanges {
45
+ parent: LineRange[];
46
+ target: LineRange[];
47
+ }
48
+ /** One tracked file of a commit (line-log.c's `struct line_log_data`) */
49
+ interface LineLogData {
50
+ path: string;
51
+ ranges: LineRange[];
52
+ /** The pair that touched the ranges, and the hunks it touched them with */
53
+ pair?: LineLogPair;
54
+ diff?: DiffRanges;
55
+ }
56
+ /** What {@link parseLineRanges} reads in the commit the log starts from */
57
+ export interface LineRangeSource {
58
+ /** The blob at a path of the commit, undefined when it has none */
59
+ blob(path: string): Promise<{
60
+ id: ObjectId;
61
+ mode: number;
62
+ data: Uint8Array;
63
+ } | undefined>;
64
+ /** The funcname pattern of the path's diff driver, if any */
65
+ findFunction(path: string): Promise<FindFunction | undefined>;
66
+ }
67
+ /**
68
+ * line-log.c's parse_lines: each `-L` argument as a file's 0-based ranges, the files in path
69
+ * order, each file's ranges sorted and merged. Throws git's deaths (`fatal:`, exit 128).
70
+ */
71
+ export declare function parseLineRanges(args: readonly string[], source: LineRangeSource): Promise<LineLogData[]>;
72
+ /** What a {@link LineLogWalk} reads of the repository */
73
+ export interface LineLogHost {
74
+ /** The tree of a commit */
75
+ treeOf(commit: ObjectId): Promise<ObjectId>;
76
+ /** The entry at a path of a tree (a blob, a link, a submodule), undefined when none */
77
+ entry(tree: ObjectId, path: string): Promise<{
78
+ id: ObjectId;
79
+ mode: number;
80
+ } | undefined>;
81
+ /** A blob's content */
82
+ blob(id: ObjectId): Promise<Uint8Array>;
83
+ /**
84
+ * With rename detection on (`diff.renames`, `-M`): the renames of the created files
85
+ * `created` from the files `parentTree` has and `tree` lacks (diffcore_rename), as
86
+ * `[source, destination path, score 0..100]`; undefined when renames are off
87
+ */
88
+ renames?(parentTree: ObjectId, tree: ObjectId, created: LineLogSide[]): Promise<{
89
+ from: LineLogSide;
90
+ to: string;
91
+ score: number;
92
+ }[]>;
93
+ /**
94
+ * git 2.43: the pairs as its `diffcore_std` leaves them when it follows renames with the
95
+ * log's own options (the pickaxe and `--diff-filter` drop pairs there)
96
+ */
97
+ diffcore?(pairs: LineLogPair[]): Promise<LineLogPair[]>;
98
+ }
99
+ /** A submodule's content in a diff: `Subproject commit <id>` and a newline */
100
+ export declare function gitlinkText(id: ObjectId): Uint8Array;
101
+ /** The line ranges each commit tracks, filled from the children down (line-log.c's walk) */
102
+ export declare class LineLogWalk {
103
+ private readonly host;
104
+ private readonly compatibility;
105
+ private readonly firstParentOnly;
106
+ private readonly ranges;
107
+ /** Merges whose ranges one parent took whole: that parent alone */
108
+ private readonly narrowed;
109
+ /** Commits processed whose diff touched no range (git's TREESAME) */
110
+ private readonly treesame;
111
+ private readonly blobs;
112
+ constructor(host: LineLogHost, compatibility: LineLogCompatibility, firstParentOnly: boolean);
113
+ /** line_log_init: the parsed ranges on the commit the log starts from */
114
+ start(commit: ObjectId, ranges: LineLogData[]): void;
115
+ /** The parents a merge keeps after one of them took its ranges (undefined: unchanged) */
116
+ parentsOf(commit: ObjectId): ObjectId[] | undefined;
117
+ /** Whether the commit was processed and its diff touched no range */
118
+ isTreesame(commit: ObjectId): boolean;
119
+ /**
120
+ * line_log_process_ranges_arbitrary_commit: maps the commit's ranges to its parents; true
121
+ * when its diff touched them (the commit is shown)
122
+ */
123
+ process(commit: ObjectId, parents: readonly ObjectId[]): Promise<boolean>;
124
+ private processOrdinary;
125
+ private processMerge;
126
+ /** add_line_range: merged into what the commit tracks already */
127
+ private addRange;
128
+ /** queue_diffs: the pairs of the tracked paths, creations paired with renames */
129
+ private queueDiffs;
130
+ private fileAt;
131
+ /** A side's content as diff_populate_filespec reads it (a submodule: its commit line) */
132
+ private blob;
133
+ /**
134
+ * process_all_files: the ranges mapped to the parent; each pair that touched them stored
135
+ * on the commit's own ranges (with the hunks), for its output
136
+ */
137
+ private processAllFiles;
138
+ /** process_diff_filepair: the file's ranges moved to the parent's side of the pair */
139
+ private processPair;
140
+ /**
141
+ * line_log_queue_pairs: the pairs a shown commit prints, each cut to the commit's ranges of
142
+ * its file (git 2.5x)
143
+ */
144
+ queuedPairs(commit: ObjectId): DiffEntry[];
145
+ /**
146
+ * line-log.c's dump_diff_hacky of git 2.43: a blank line, then each touched file's ranges as
147
+ * hunks of the diff that touched them, every line after `prefix` (the graph's padding)
148
+ */
149
+ hackyDiff(commit: ObjectId, prefix: string, colors?: {
150
+ meta: string;
151
+ frag: string;
152
+ old: string;
153
+ new: string;
154
+ context: string;
155
+ reset: string;
156
+ }): Promise<Uint8Array>;
157
+ }
158
+ /** A pair as git 2.43's diffcore_std sees it while following renames (renames as `R`) */
159
+ export declare function lineLogEntry(pair: LineLogPair): DiffEntry;
160
+ export type { LineLogData };
161
+ //# sourceMappingURL=line-log.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"line-log.d.ts","sourceRoot":"","sources":["../../src/commands/line-log.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;GAsBG;AAEH,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AACtD,OAAO,EAEL,KAAK,YAAY,EAKlB,MAAM,wBAAwB,CAAC;AAIhC,OAAO,EAAc,KAAK,SAAS,EAAE,KAAK,SAAS,EAAE,MAAM,0BAA0B,CAAC;AAEtF,8FAA8F;AAC9F,MAAM,MAAM,oBAAoB,GAAG,MAAM,GAAG,MAAM,CAAC;AAEnD,+CAA+C;AAC/C,MAAM,WAAW,WAAW;IAC1B,IAAI,EAAE,MAAM,CAAC;IACb,EAAE,EAAE,QAAQ,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;CACd;AAED,uDAAuD;AACvD,MAAM,WAAW,WAAW;IAC1B,2DAA2D;IAC3D,GAAG,CAAC,EAAE,WAAW,CAAC;IAClB,GAAG,EAAE,WAAW,CAAC;IACjB,oCAAoC;IACpC,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED,uEAAuE;AACvE,UAAU,UAAU;IAClB,MAAM,EAAE,SAAS,EAAE,CAAC;IACpB,MAAM,EAAE,SAAS,EAAE,CAAC;CACrB;AAED,yEAAyE;AACzE,UAAU,WAAW;IACnB,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,SAAS,EAAE,CAAC;IACpB,2EAA2E;IAC3E,IAAI,CAAC,EAAE,WAAW,CAAC;IACnB,IAAI,CAAC,EAAE,UAAU,CAAC;CACnB;AAgZD,2EAA2E;AAC3E,MAAM,WAAW,eAAe;IAC9B,mEAAmE;IACnE,IAAI,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC;QAAE,EAAE,EAAE,QAAQ,CA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ACH,YAAY,CAAC,EAAE,OAAO,CAAC;CACxB;AAED;;;;;;GAMG;AACH,wBAAgB,qBAAqB,CACnC,MAAM,EAAE,gBAAgB,EACxB,IAAI,GAAE,eAAoB,GACzB,mBAAmB,CA4CrB;AAED;;;;;;GAMG;AACH,wBAAsB,qBAAqB,CACzC,MAAM,EAAE,gBAAgB,EACxB,KAAK,CAAC,EAAE,WAAW,EACnB,YAAY,GAAE,gBAAgB,GAAG,SAEpB,EACb,IAAI,GAAE,eAAoB,GACzB,OAAO,CAAC,gBAAgB,CAAC,CA8C3B;AA4ED;;;;;;;;;;;GAWG;AACH,wBAAgB,iBAAiB,CAC/B,WAAW,EAAE,WAAW,EACxB,MAAM,EAAE,gBAAgB,EACxB,OAAO,GAAE;IAAE,SAAS,CAAC,EAAE,OAAO,CAAA;CAAO,GACpC,WAAW,GAAG,SAAS,CAiCzB;AA4BD;;;;;;;;GAQG;AACH,wBAAsB,aAAa,CACjC,KAAK,EAAE,WAAW,EAClB,GAAG,EAAE,IAAI,CAAC,sBAAsB,EAAE,gBAAgB,CAAC,GAClD,OAAO,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,CAuBjC;AAED;;;;;;GAMG;AACH,wBAAgB,cAAc,CAC5B,KAAK,EAAE,WAAW,EAClB,MAAM,EAAE,oBAAoB,GAAG,SAAS,GACvC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAWxB"}
1
+ {"version":3,"file":"local-transport.d.ts","sourceRoot":"","sources":["../../src/commands/local-transport.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAIH,OAAO,EAGL,KAAK,MAAM,EACX,KAAK,gBAAgB,EAOrB,KAAK,qBAAqB,EAE1B,KAAK,sBAAsB,EAC3B,KAAK,gBAAgB,EACrB,KAAK,oBAAoB,EAIzB,KAAK,oBAAoB,EAC1B,MAAM,4BAA4B,CAAC;AAGpC,OAAO,EACL,KAAK,kBAAkB,EACvB,KAAK,eAAe,EACpB,KAAK,gBA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