@ref0/git 0.7.0 → 0.9.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 (245) hide show
  1. package/dist/access/private-refs.mjs +0 -2
  2. package/dist/auth/authorize.mjs +31 -24
  3. package/dist/auth/bridge.mjs +8 -8
  4. package/dist/auth/fences.d.mts +0 -1
  5. package/dist/auth/fences.mjs +1 -1
  6. package/dist/auth/grants.d.mts +0 -1
  7. package/dist/auth/grants.mjs +2 -2
  8. package/dist/auth/host-function.d.mts +1 -7
  9. package/dist/auth/host-function.mjs +38 -38
  10. package/dist/auth/identify.d.mts +0 -1
  11. package/dist/auth/identify.mjs +1 -1
  12. package/dist/auth/policy.d.mts +7 -4
  13. package/dist/auth/policy.mjs +13 -10
  14. package/dist/auth/token-rows.mjs +2 -5
  15. package/dist/auth/tokens-layer.d.mts +0 -2
  16. package/dist/auth/tokens-public.d.mts +3 -3
  17. package/dist/auth/tokens-public.mjs +4 -2
  18. package/dist/auth/tokens.d.mts +6 -1
  19. package/dist/auth/tokens.mjs +7 -1
  20. package/dist/client/client.d.mts +22 -15
  21. package/dist/client/client.mjs +31 -27
  22. package/dist/client/git-http.mjs +22 -5
  23. package/dist/client/local.mjs +1 -1
  24. package/dist/client/namespace.d.mts +2 -0
  25. package/dist/client/push-upload.d.mts +1 -0
  26. package/dist/client/push-upload.mjs +169 -2
  27. package/dist/client/remote-helper.mjs +2 -4
  28. package/dist/client/remote.mjs +37 -15
  29. package/dist/client/run-remote-helper.mjs +4 -4
  30. package/dist/client/transport.mjs +26 -19
  31. package/dist/contracts/actors.d.mts +57 -28
  32. package/dist/contracts/actors.mjs +38 -2
  33. package/dist/contracts/authorize.d.mts +21 -15
  34. package/dist/contracts/callers.mjs +40 -0
  35. package/dist/contracts/calls-spent.d.mts +2 -12
  36. package/dist/contracts/calls-spent.mjs +4 -5
  37. package/dist/contracts/client.d.mts +16 -9
  38. package/dist/contracts/events.d.mts +82 -14
  39. package/dist/contracts/events.mjs +35 -9
  40. package/dist/contracts/files.d.mts +42 -42
  41. package/dist/contracts/forks.d.mts +0 -24
  42. package/dist/contracts/git-hooks.d.mts +217 -0
  43. package/dist/contracts/git-hooks.mjs +3 -1
  44. package/dist/contracts/git.d.mts +13 -3
  45. package/dist/contracts/grants.d.mts +46 -27
  46. package/dist/contracts/lfs.d.mts +17 -4
  47. package/dist/contracts/merges.d.mts +7 -7
  48. package/dist/contracts/objects.d.mts +38 -4
  49. package/dist/contracts/opaque.mjs +19 -1
  50. package/dist/contracts/operations.d.mts +8 -1
  51. package/dist/contracts/operations.mjs +209 -0
  52. package/dist/contracts/queue.d.mts +6 -5
  53. package/dist/contracts/queue.mjs +9 -20
  54. package/dist/contracts/remote.d.mts +13 -4
  55. package/dist/contracts/remote.mjs +3 -3
  56. package/dist/contracts/repos.d.mts +11 -40
  57. package/dist/contracts/repos.mjs +11 -10
  58. package/dist/contracts/result.d.mts +28 -11
  59. package/dist/contracts/result.mjs +32 -2
  60. package/dist/contracts/rules.d.mts +706 -46
  61. package/dist/contracts/rules.mjs +81 -2
  62. package/dist/contracts/server.d.mts +5 -275
  63. package/dist/contracts/services.d.mts +0 -3
  64. package/dist/contracts/services.mjs +1 -3
  65. package/dist/contracts/signin.d.mts +2 -2
  66. package/dist/contracts/signin.mjs +4 -5
  67. package/dist/contracts/sync.d.mts +1 -4
  68. package/dist/contracts/tokens.d.mts +29 -17
  69. package/dist/contracts/tokens.mjs +14 -3
  70. package/dist/contracts/topics.d.mts +38 -11
  71. package/dist/contracts/topics.mjs +8 -2
  72. package/dist/core/access.d.mts +0 -2
  73. package/dist/core/access.mjs +15 -4
  74. package/dist/core/ancestry.mjs +5 -4
  75. package/dist/core/events/deliver.mjs +19 -1
  76. package/dist/core/forks.mjs +30 -11
  77. package/dist/core/hooks/groups.d.mts +0 -1
  78. package/dist/core/hooks/groups.mjs +8 -9
  79. package/dist/core/index-job.mjs +23 -1
  80. package/dist/core/index-lost.d.mts +11 -0
  81. package/dist/core/index-lost.mjs +55 -0
  82. package/dist/core/loose-tally.mjs +46 -0
  83. package/dist/core/objects/commit-writes.mjs +1 -1
  84. package/dist/core/objects/commits.mjs +10 -9
  85. package/dist/core/objects/merges.mjs +1 -1
  86. package/dist/core/objects/reading.mjs +28 -13
  87. package/dist/core/objects/trees.mjs +1 -1
  88. package/dist/core/objects/writing.mjs +1 -0
  89. package/dist/core/parts.d.mts +7 -0
  90. package/dist/core/promise.mjs +1 -15
  91. package/dist/core/publish.mjs +9 -5
  92. package/dist/core/purge.mjs +30 -12
  93. package/dist/core/push.mjs +39 -16
  94. package/dist/core/ref-view.mjs +14 -6
  95. package/dist/core/repack.mjs +54 -27
  96. package/dist/core/repo-info.mjs +8 -6
  97. package/dist/core/repos.mjs +1 -0
  98. package/dist/core/rules/check.mjs +10 -10
  99. package/dist/core/rules/context.d.mts +3 -1
  100. package/dist/core/rules/context.mjs +16 -13
  101. package/dist/core/rules/fetch.mjs +17 -23
  102. package/dist/core/tokens.mjs +2 -1
  103. package/dist/core/view.d.mts +10 -1
  104. package/dist/core/view.mjs +15 -6
  105. package/dist/effect.d.mts +3 -6
  106. package/dist/effect.mjs +3 -6
  107. package/dist/engine/commits.mjs +23 -50
  108. package/dist/engine/failures.d.mts +1 -2
  109. package/dist/engine/failures.mjs +1 -3
  110. package/dist/engine/merge-base-walk.mjs +57 -142
  111. package/dist/engine/merge-bases.mjs +9 -7
  112. package/dist/engine/merge.mjs +20 -17
  113. package/dist/engine/parts.d.mts +1 -0
  114. package/dist/engine/parts.mjs +1 -1
  115. package/dist/engine/walk.mjs +15 -11
  116. package/dist/extend.d.mts +1 -2
  117. package/dist/extend.mjs +1 -2
  118. package/dist/http/core-parts.mjs +18 -10
  119. package/dist/http/handler.mjs +11 -31
  120. package/dist/http/parts.d.mts +0 -1
  121. package/dist/index.d.mts +29 -22
  122. package/dist/index.mjs +5 -2
  123. package/dist/lfs/base.d.mts +6 -3
  124. package/dist/lfs/base.mjs +2 -1
  125. package/dist/lfs/layer.d.mts +4 -3
  126. package/dist/lfs/layer.mjs +23 -9
  127. package/dist/lfs/objects.mjs +93 -41
  128. package/dist/lfs/pointers.mjs +69 -18
  129. package/dist/lfs/purge.mjs +6 -2
  130. package/dist/lfs/rows.mjs +24 -7
  131. package/dist/lfs/service.d.mts +6 -3
  132. package/dist/lfs/service.mjs +8 -2
  133. package/dist/lfs/upkeep.mjs +47 -28
  134. package/dist/lfs/upload-most.mjs +47 -0
  135. package/dist/lfs/uploaded.mjs +59 -0
  136. package/dist/protocol/bytes/sha256-hasher.mjs +51 -0
  137. package/dist/protocol/bytes/streams.mjs +84 -2
  138. package/dist/protocol/bytes/text.mjs +6 -1
  139. package/dist/protocol/diff/read.d.mts +1 -0
  140. package/dist/protocol/diff/read.mjs +5 -2
  141. package/dist/protocol/objects/commit.d.mts +7 -0
  142. package/dist/protocol/objects/commit.mjs +5 -1
  143. package/dist/protocol/objects/fsck.mjs +6 -3
  144. package/dist/queue/advance.mjs +77 -18
  145. package/dist/queue/calls.mjs +4 -14
  146. package/dist/queue/host.d.mts +4 -0
  147. package/dist/queue/lanes.mjs +1 -1
  148. package/dist/queue/layer.mjs +4 -2
  149. package/dist/queue/limits.mjs +18 -2
  150. package/dist/queue/rows.mjs +10 -1
  151. package/dist/queue/schedule.mjs +1 -1
  152. package/dist/queue/search.mjs +3 -4
  153. package/dist/queue/trim.mjs +2 -2
  154. package/dist/rest/client-namespace.d.mts +2 -0
  155. package/dist/rest/client.d.mts +32 -8
  156. package/dist/rest/client.mjs +308 -382
  157. package/dist/rest/commits.d.mts +150 -150
  158. package/dist/rest/files.d.mts +18 -18
  159. package/dist/rest/forks.d.mts +77 -89
  160. package/dist/rest/handlers.mjs +2 -1
  161. package/dist/rest/listen.d.mts +8 -6
  162. package/dist/rest/listen.mjs +31 -75
  163. package/dist/rest/me.d.mts +2 -2
  164. package/dist/rest/merges.d.mts +7 -7
  165. package/dist/rest/refs.d.mts +27 -27
  166. package/dist/rest/repos.d.mts +40 -52
  167. package/dist/rest/tokens.d.mts +12 -12
  168. package/dist/rest/topics.d.mts +13 -13
  169. package/dist/rest/trees.d.mts +66 -66
  170. package/dist/rest/wire.d.mts +20 -2
  171. package/dist/rest/work.d.mts +39 -39
  172. package/dist/rest.d.mts +1 -7
  173. package/dist/rest.mjs +1 -5
  174. package/dist/server/git-layer.d.mts +10 -2
  175. package/dist/server/git-layer.mjs +29 -10
  176. package/dist/server/joined.d.mts +12 -6
  177. package/dist/server/joined.mjs +3 -2
  178. package/dist/server/registry.mjs +11 -5
  179. package/dist/server/server.d.mts +0 -1
  180. package/dist/server/server.mjs +42 -49
  181. package/dist/signin/context.d.mts +0 -1
  182. package/dist/signin/context.mjs +5 -9
  183. package/dist/storage/clean-up.mjs +3 -1
  184. package/dist/storage/fsck.mjs +12 -2
  185. package/dist/storage/graph-rebuild.mjs +262 -0
  186. package/dist/storage/index-bitmaps.mjs +16 -10
  187. package/dist/storage/index-build.mjs +160 -24
  188. package/dist/storage/index-graph.d.mts +1 -0
  189. package/dist/storage/index-graph.mjs +29 -5
  190. package/dist/storage/index-layers.d.mts +1 -0
  191. package/dist/storage/index-layers.mjs +5 -2
  192. package/dist/storage/index-reach.mjs +7 -5
  193. package/dist/storage/index-remap.mjs +5 -5
  194. package/dist/storage/index-visible.mjs +16 -5
  195. package/dist/storage/lfs-pointers.d.mts +5 -5
  196. package/dist/storage/lfs-pointers.mjs +37 -11
  197. package/dist/storage/links.mjs +3 -3
  198. package/dist/storage/loose.mjs +4 -1
  199. package/dist/storage/memory-budget.mjs +1 -1
  200. package/dist/storage/merge-fence.mjs +81 -19
  201. package/dist/storage/merge-most.mjs +1 -0
  202. package/dist/storage/merge-row.mjs +16 -4
  203. package/dist/storage/merge-stream.mjs +9 -6
  204. package/dist/storage/object-rows.mjs +17 -1
  205. package/dist/storage/pack-order.d.mts +1 -0
  206. package/dist/storage/pack-order.mjs +18 -1
  207. package/dist/storage/pack-receive.mjs +10 -6
  208. package/dist/storage/packs.mjs +58 -27
  209. package/dist/storage/prune-walk.mjs +5 -2
  210. package/dist/storage/prune.mjs +168 -70
  211. package/dist/storage/ready.d.mts +1 -1
  212. package/dist/storage/ready.mjs +12 -3
  213. package/dist/storage/receive-bounds.mjs +3 -2
  214. package/dist/storage/receive-state.mjs +1 -1
  215. package/dist/storage/repack-contained.mjs +22 -14
  216. package/dist/storage/repack.d.mts +1 -1
  217. package/dist/storage/repack.mjs +3 -2
  218. package/dist/storage/unpack.mjs +7 -0
  219. package/dist/storage/visible.mjs +3 -2
  220. package/dist/storage/walk.d.mts +1 -0
  221. package/dist/storage/walk.mjs +9 -5
  222. package/dist/storage/wants.mjs +17 -11
  223. package/dist/store/call-count.d.mts +31 -3
  224. package/dist/store/call-count.mjs +51 -20
  225. package/dist/store/errors.d.mts +7 -1
  226. package/dist/store/errors.mjs +7 -1
  227. package/dist/store/job-try.mjs +3 -1
  228. package/dist/store/records.mjs +26 -5
  229. package/dist/store/repo-record.mjs +36 -12
  230. package/dist/store/scopes.mjs +15 -2
  231. package/dist/sync/bound.d.mts +1 -1
  232. package/dist/sync/import.mjs +15 -3
  233. package/dist/sync/layer.d.mts +5 -1
  234. package/dist/sync/layer.mjs +11 -9
  235. package/dist/sync/mirror.mjs +1 -1
  236. package/dist/sync/step.mjs +15 -15
  237. package/dist/topics/advance.mjs +11 -10
  238. package/dist/topics/layer.mjs +1 -1
  239. package/dist/topics/members.mjs +38 -9
  240. package/package.json +3 -3
  241. package/dist/engine/merge-base-walk.d.mts +0 -3
  242. package/dist/server/routes.d.mts +0 -32
  243. package/dist/server/routes.mjs +0 -69
  244. package/dist/sync/bridge.d.mts +0 -6
  245. package/dist/sync/bridge.mjs +0 -29
@@ -450,18 +450,39 @@ declare const CommitsApiGroup_base: HttpApiGroup.HttpApiGroup<"commits", HttpApi
450
450
  }>, {
451
451
  "ref0-code": Schema.String;
452
452
  'www-authenticate': Schema.String;
453
- }>>, GitCallerMiddleware, GitRestServices> | HttpApiEndpoint.HttpApiEndpoint<"mergeBase", "POST", "/repos/:repo/-/commits/merge-base", Schema.toCodecStringTree<Schema.Struct<{
453
+ }>>, GitCallerMiddleware, GitRestServices> | HttpApiEndpoint.HttpApiEndpoint<"list", "GET", "/repos/:repo/-/commits", Schema.toCodecStringTree<Schema.Struct<{
454
454
  repo: Schema.String;
455
- }>>, never, Schema.toCodecJson<Schema.Struct<{
456
- readonly commits: Schema.$Array<Schema.String>;
457
- readonly limits: Schema.optionalKey<Schema.Struct<{
458
- readonly objects: Schema.optionalKey<Schema.Int>;
459
- readonly bytes: Schema.optionalKey<Schema.Int>;
460
- readonly entries: Schema.optionalKey<Schema.Int>;
461
- readonly milliseconds: Schema.optionalKey<Schema.Int>;
462
- }>>;
463
- }>>, never, Schema.toCodecJson<Schema.Struct<{
464
- readonly bases: Schema.$Array<Schema.String>;
455
+ }>>, Schema.toCodecStringTree<Schema.Struct<{
456
+ objects: Schema.optionalKey<Schema.Int>;
457
+ bytes: Schema.optionalKey<Schema.Int>;
458
+ entries: Schema.optionalKey<Schema.Int>;
459
+ milliseconds: Schema.optionalKey<Schema.Int>;
460
+ after: Schema.optionalKey<Schema.String>;
461
+ limit: Schema.optionalKey<Schema.Int>;
462
+ ref: Schema.String;
463
+ path: Schema.optionalKey<Schema.String>;
464
+ }>>, never, never, Schema.toCodecJson<Schema.Struct<{
465
+ readonly items: Schema.mutable<Schema.$Array<Schema.Struct<{
466
+ readonly oid: Schema.String;
467
+ readonly tree: Schema.String;
468
+ readonly parents: Schema.$Array<Schema.String>;
469
+ readonly author: Schema.Struct<{
470
+ readonly name: Schema.String;
471
+ readonly email: Schema.String;
472
+ readonly at: Schema.Number;
473
+ readonly offset: Schema.Int;
474
+ }>;
475
+ readonly committer: Schema.Struct<{
476
+ readonly name: Schema.String;
477
+ readonly email: Schema.String;
478
+ readonly at: Schema.Number;
479
+ readonly offset: Schema.Int;
480
+ }>;
481
+ readonly subject: Schema.String;
482
+ readonly message: Schema.String;
483
+ readonly signature: Schema.optionalKey<Schema.String>;
484
+ }>>>;
485
+ readonly next: Schema.optionalKey<Schema.String>;
465
486
  }>>, Schema.toCodecJson<HttpApiSchema.encodeToWithHeaders<Schema.Codec<{
466
487
  readonly code: "ALREADY_EXISTS";
467
488
  readonly message: string;
@@ -861,41 +882,33 @@ declare const CommitsApiGroup_base: HttpApiGroup.HttpApiGroup<"commits", HttpApi
861
882
  }>, {
862
883
  "ref0-code": Schema.String;
863
884
  'www-authenticate': Schema.String;
864
- }>>, GitCallerMiddleware, GitRestServices> | HttpApiEndpoint.HttpApiEndpoint<"diff", "POST", "/repos/:repo/-/commits/diff", Schema.toCodecStringTree<Schema.Struct<{
885
+ }>>, GitCallerMiddleware, GitRestServices> | HttpApiEndpoint.HttpApiEndpoint<"get", "GET", "/repos/:repo/-/commits/:oid", Schema.toCodecStringTree<Schema.Struct<{
865
886
  repo: Schema.String;
866
- }>>, never, Schema.toCodecJson<Schema.Struct<{
867
- readonly base: Schema.String;
868
- readonly head: Schema.String;
869
- readonly renames: Schema.optionalKey<Schema.Boolean>;
870
- readonly limits: Schema.optionalKey<Schema.Struct<{
871
- readonly objects: Schema.optionalKey<Schema.Int>;
872
- readonly bytes: Schema.optionalKey<Schema.Int>;
873
- readonly entries: Schema.optionalKey<Schema.Int>;
874
- readonly milliseconds: Schema.optionalKey<Schema.Int>;
875
- }>>;
876
- readonly page: Schema.optionalKey<Schema.Struct<{
877
- readonly after: Schema.optionalKey<Schema.String>;
878
- readonly limit: Schema.optionalKey<Schema.Int>;
879
- }>>;
880
- }>>, never, Schema.toCodecJson<Schema.Struct<{
881
- readonly items: Schema.mutable<Schema.$Array<Schema.Struct<{
882
- status: Schema.Literals<readonly ["A", "D", "M", "R", "T"]>;
883
- path: Schema.String;
884
- from: Schema.optionalKey<Schema.String>;
885
- similarity: Schema.optionalKey<Schema.Number>;
886
- old: Schema.optionalKey<Schema.Struct<{
887
- readonly mode: Schema.String;
888
- readonly oid: Schema.String;
889
- }>>;
890
- new: Schema.optionalKey<Schema.Struct<{
891
- readonly mode: Schema.String;
892
- readonly oid: Schema.String;
893
- }>>;
894
- pathBytes: Schema.optionalKey<Schema.Uint8ArrayFromBase64>;
895
- fromPathBytes: Schema.optionalKey<Schema.Uint8ArrayFromBase64>;
896
- }>>>;
897
- readonly next: Schema.optionalKey<Schema.String>;
898
- readonly renamesSkipped: Schema.optionalKey<Schema.Literals<readonly ["rename-limit", "memory-limit"]>>;
887
+ oid: Schema.String;
888
+ }>>, Schema.toCodecStringTree<Schema.Struct<{
889
+ readonly objects: Schema.optionalKey<Schema.Int>;
890
+ readonly bytes: Schema.optionalKey<Schema.Int>;
891
+ readonly entries: Schema.optionalKey<Schema.Int>;
892
+ readonly milliseconds: Schema.optionalKey<Schema.Int>;
893
+ }>>, never, never, Schema.toCodecJson<Schema.Struct<{
894
+ readonly oid: Schema.String;
895
+ readonly tree: Schema.String;
896
+ readonly parents: Schema.$Array<Schema.String>;
897
+ readonly author: Schema.Struct<{
898
+ readonly name: Schema.String;
899
+ readonly email: Schema.String;
900
+ readonly at: Schema.Number;
901
+ readonly offset: Schema.Int;
902
+ }>;
903
+ readonly committer: Schema.Struct<{
904
+ readonly name: Schema.String;
905
+ readonly email: Schema.String;
906
+ readonly at: Schema.Number;
907
+ readonly offset: Schema.Int;
908
+ }>;
909
+ readonly subject: Schema.String;
910
+ readonly message: Schema.String;
911
+ readonly signature: Schema.optionalKey<Schema.String>;
899
912
  }>>, Schema.toCodecJson<HttpApiSchema.encodeToWithHeaders<Schema.Codec<{
900
913
  readonly code: "ALREADY_EXISTS";
901
914
  readonly message: string;
@@ -1767,44 +1780,41 @@ declare const CommitsApiGroup_base: HttpApiGroup.HttpApiGroup<"commits", HttpApi
1767
1780
  }>, {
1768
1781
  "ref0-code": Schema.String;
1769
1782
  'www-authenticate': Schema.String;
1770
- }>>, GitCallerMiddleware, GitRestServices> | HttpApiEndpoint.HttpApiEndpoint<"revert", "POST", "/repos/:repo/-/commits/revert", Schema.toCodecStringTree<Schema.Struct<{
1783
+ }>>, GitCallerMiddleware, GitRestServices> | HttpApiEndpoint.HttpApiEndpoint<"diff", "POST", "/repos/:repo/-/commits/diff", Schema.toCodecStringTree<Schema.Struct<{
1771
1784
  repo: Schema.String;
1772
1785
  }>>, never, Schema.toCodecJson<Schema.Struct<{
1773
- readonly message: Schema.String;
1774
- readonly author: Schema.Struct<{
1775
- readonly name: Schema.String;
1776
- readonly email: Schema.String;
1777
- readonly at: Schema.Number;
1778
- readonly offset: Schema.Int;
1779
- }>;
1780
- readonly commit: Schema.String;
1781
- readonly onto: Schema.String;
1782
- readonly committer: Schema.optionalKey<Schema.Struct<{
1783
- readonly name: Schema.String;
1784
- readonly email: Schema.String;
1785
- readonly at: Schema.Number;
1786
- readonly offset: Schema.Int;
1786
+ readonly base: Schema.String;
1787
+ readonly head: Schema.String;
1788
+ readonly renames: Schema.optionalKey<Schema.Boolean>;
1789
+ readonly limits: Schema.optionalKey<Schema.Struct<{
1790
+ readonly objects: Schema.optionalKey<Schema.Int>;
1791
+ readonly bytes: Schema.optionalKey<Schema.Int>;
1792
+ readonly entries: Schema.optionalKey<Schema.Int>;
1793
+ readonly milliseconds: Schema.optionalKey<Schema.Int>;
1794
+ }>>;
1795
+ readonly page: Schema.optionalKey<Schema.Struct<{
1796
+ readonly after: Schema.optionalKey<Schema.String>;
1797
+ readonly limit: Schema.optionalKey<Schema.Int>;
1787
1798
  }>>;
1788
- readonly key: Schema.optionalKey<Schema.String>;
1789
1799
  }>>, never, Schema.toCodecJson<Schema.Struct<{
1790
- readonly oid: Schema.String;
1791
- readonly tree: Schema.String;
1792
- readonly parents: Schema.$Array<Schema.String>;
1793
- readonly author: Schema.Struct<{
1794
- readonly name: Schema.String;
1795
- readonly email: Schema.String;
1796
- readonly at: Schema.Number;
1797
- readonly offset: Schema.Int;
1798
- }>;
1799
- readonly committer: Schema.Struct<{
1800
- readonly name: Schema.String;
1801
- readonly email: Schema.String;
1802
- readonly at: Schema.Number;
1803
- readonly offset: Schema.Int;
1804
- }>;
1805
- readonly subject: Schema.String;
1806
- readonly message: Schema.String;
1807
- readonly signature: Schema.optionalKey<Schema.String>;
1800
+ readonly items: Schema.mutable<Schema.$Array<Schema.Struct<{
1801
+ status: Schema.Literals<readonly ["A", "D", "M", "R", "T"]>;
1802
+ path: Schema.String;
1803
+ from: Schema.optionalKey<Schema.String>;
1804
+ similarity: Schema.optionalKey<Schema.Number>;
1805
+ old: Schema.optionalKey<Schema.Struct<{
1806
+ readonly mode: Schema.String;
1807
+ readonly oid: Schema.String;
1808
+ }>>;
1809
+ new: Schema.optionalKey<Schema.Struct<{
1810
+ readonly mode: Schema.String;
1811
+ readonly oid: Schema.String;
1812
+ }>>;
1813
+ pathBytes: Schema.optionalKey<Schema.Uint8ArrayFromBase64>;
1814
+ fromPathBytes: Schema.optionalKey<Schema.Uint8ArrayFromBase64>;
1815
+ }>>>;
1816
+ readonly next: Schema.optionalKey<Schema.String>;
1817
+ readonly renamesSkipped: Schema.optionalKey<Schema.Literals<readonly ["rename-limit", "memory-limit"]>>;
1808
1818
  }>>, Schema.toCodecJson<HttpApiSchema.encodeToWithHeaders<Schema.Codec<{
1809
1819
  readonly code: "ALREADY_EXISTS";
1810
1820
  readonly message: string;
@@ -2204,41 +2214,18 @@ declare const CommitsApiGroup_base: HttpApiGroup.HttpApiGroup<"commits", HttpApi
2204
2214
  }>, {
2205
2215
  "ref0-code": Schema.String;
2206
2216
  'www-authenticate': Schema.String;
2207
- }>>, GitCallerMiddleware, GitRestServices> | HttpApiEndpoint.HttpApiEndpoint<"pick", "POST", "/repos/:repo/-/commits/pick", Schema.toCodecStringTree<Schema.Struct<{
2217
+ }>>, GitCallerMiddleware, GitRestServices> | HttpApiEndpoint.HttpApiEndpoint<"mergeBase", "POST", "/repos/:repo/-/commits/merge-base", Schema.toCodecStringTree<Schema.Struct<{
2208
2218
  repo: Schema.String;
2209
2219
  }>>, never, Schema.toCodecJson<Schema.Struct<{
2210
- readonly commit: Schema.String;
2211
- readonly onto: Schema.String;
2212
- readonly committer: Schema.optionalKey<Schema.Struct<{
2213
- readonly name: Schema.String;
2214
- readonly email: Schema.String;
2215
- readonly at: Schema.Number;
2216
- readonly offset: Schema.Int;
2217
- }>>;
2218
- readonly ref: Schema.optionalKey<Schema.Struct<{
2219
- readonly name: Schema.String;
2220
- readonly from: Schema.NullOr<Schema.String>;
2220
+ readonly commits: Schema.$Array<Schema.String>;
2221
+ readonly limits: Schema.optionalKey<Schema.Struct<{
2222
+ readonly objects: Schema.optionalKey<Schema.Int>;
2223
+ readonly bytes: Schema.optionalKey<Schema.Int>;
2224
+ readonly entries: Schema.optionalKey<Schema.Int>;
2225
+ readonly milliseconds: Schema.optionalKey<Schema.Int>;
2221
2226
  }>>;
2222
- readonly key: Schema.optionalKey<Schema.String>;
2223
2227
  }>>, never, Schema.toCodecJson<Schema.Struct<{
2224
- readonly oid: Schema.String;
2225
- readonly tree: Schema.String;
2226
- readonly parents: Schema.$Array<Schema.String>;
2227
- readonly author: Schema.Struct<{
2228
- readonly name: Schema.String;
2229
- readonly email: Schema.String;
2230
- readonly at: Schema.Number;
2231
- readonly offset: Schema.Int;
2232
- }>;
2233
- readonly committer: Schema.Struct<{
2234
- readonly name: Schema.String;
2235
- readonly email: Schema.String;
2236
- readonly at: Schema.Number;
2237
- readonly offset: Schema.Int;
2238
- }>;
2239
- readonly subject: Schema.String;
2240
- readonly message: Schema.String;
2241
- readonly signature: Schema.optionalKey<Schema.String>;
2228
+ readonly bases: Schema.$Array<Schema.String>;
2242
2229
  }>>, Schema.toCodecJson<HttpApiSchema.encodeToWithHeaders<Schema.Codec<{
2243
2230
  readonly code: "ALREADY_EXISTS";
2244
2231
  readonly message: string;
@@ -2638,39 +2625,41 @@ declare const CommitsApiGroup_base: HttpApiGroup.HttpApiGroup<"commits", HttpApi
2638
2625
  }>, {
2639
2626
  "ref0-code": Schema.String;
2640
2627
  'www-authenticate': Schema.String;
2641
- }>>, GitCallerMiddleware, GitRestServices> | HttpApiEndpoint.HttpApiEndpoint<"list", "GET", "/repos/:repo/-/commits", Schema.toCodecStringTree<Schema.Struct<{
2628
+ }>>, GitCallerMiddleware, GitRestServices> | HttpApiEndpoint.HttpApiEndpoint<"pick", "POST", "/repos/:repo/-/commits/pick", Schema.toCodecStringTree<Schema.Struct<{
2642
2629
  repo: Schema.String;
2643
- }>>, Schema.toCodecStringTree<Schema.Struct<{
2644
- objects: Schema.optionalKey<Schema.Int>;
2645
- bytes: Schema.optionalKey<Schema.Int>;
2646
- entries: Schema.optionalKey<Schema.Int>;
2647
- milliseconds: Schema.optionalKey<Schema.Int>;
2648
- after: Schema.optionalKey<Schema.String>;
2649
- limit: Schema.optionalKey<Schema.Int>;
2650
- ref: Schema.String;
2651
- path: Schema.optionalKey<Schema.String>;
2652
- }>>, never, never, Schema.toCodecJson<Schema.Struct<{
2653
- readonly items: Schema.mutable<Schema.$Array<Schema.Struct<{
2654
- readonly oid: Schema.String;
2655
- readonly tree: Schema.String;
2656
- readonly parents: Schema.$Array<Schema.String>;
2657
- readonly author: Schema.Struct<{
2658
- readonly name: Schema.String;
2659
- readonly email: Schema.String;
2660
- readonly at: Schema.Number;
2661
- readonly offset: Schema.Int;
2662
- }>;
2663
- readonly committer: Schema.Struct<{
2664
- readonly name: Schema.String;
2665
- readonly email: Schema.String;
2666
- readonly at: Schema.Number;
2667
- readonly offset: Schema.Int;
2668
- }>;
2669
- readonly subject: Schema.String;
2670
- readonly message: Schema.String;
2671
- readonly signature: Schema.optionalKey<Schema.String>;
2672
- }>>>;
2673
- readonly next: Schema.optionalKey<Schema.String>;
2630
+ }>>, never, Schema.toCodecJson<Schema.Struct<{
2631
+ readonly commit: Schema.String;
2632
+ readonly onto: Schema.String;
2633
+ readonly committer: Schema.optionalKey<Schema.Struct<{
2634
+ readonly name: Schema.String;
2635
+ readonly email: Schema.String;
2636
+ readonly at: Schema.Number;
2637
+ readonly offset: Schema.Int;
2638
+ }>>;
2639
+ readonly ref: Schema.optionalKey<Schema.Struct<{
2640
+ readonly name: Schema.String;
2641
+ readonly from: Schema.NullOr<Schema.String>;
2642
+ }>>;
2643
+ readonly key: Schema.optionalKey<Schema.String>;
2644
+ }>>, never, Schema.toCodecJson<Schema.Struct<{
2645
+ readonly oid: Schema.String;
2646
+ readonly tree: Schema.String;
2647
+ readonly parents: Schema.$Array<Schema.String>;
2648
+ readonly author: Schema.Struct<{
2649
+ readonly name: Schema.String;
2650
+ readonly email: Schema.String;
2651
+ readonly at: Schema.Number;
2652
+ readonly offset: Schema.Int;
2653
+ }>;
2654
+ readonly committer: Schema.Struct<{
2655
+ readonly name: Schema.String;
2656
+ readonly email: Schema.String;
2657
+ readonly at: Schema.Number;
2658
+ readonly offset: Schema.Int;
2659
+ }>;
2660
+ readonly subject: Schema.String;
2661
+ readonly message: Schema.String;
2662
+ readonly signature: Schema.optionalKey<Schema.String>;
2674
2663
  }>>, Schema.toCodecJson<HttpApiSchema.encodeToWithHeaders<Schema.Codec<{
2675
2664
  readonly code: "ALREADY_EXISTS";
2676
2665
  readonly message: string;
@@ -3070,15 +3059,26 @@ declare const CommitsApiGroup_base: HttpApiGroup.HttpApiGroup<"commits", HttpApi
3070
3059
  }>, {
3071
3060
  "ref0-code": Schema.String;
3072
3061
  'www-authenticate': Schema.String;
3073
- }>>, GitCallerMiddleware, GitRestServices> | HttpApiEndpoint.HttpApiEndpoint<"get", "GET", "/repos/:repo/-/commits/:oid", Schema.toCodecStringTree<Schema.Struct<{
3062
+ }>>, GitCallerMiddleware, GitRestServices> | HttpApiEndpoint.HttpApiEndpoint<"revert", "POST", "/repos/:repo/-/commits/revert", Schema.toCodecStringTree<Schema.Struct<{
3074
3063
  repo: Schema.String;
3075
- oid: Schema.String;
3076
- }>>, Schema.toCodecStringTree<Schema.Struct<{
3077
- readonly objects: Schema.optionalKey<Schema.Int>;
3078
- readonly bytes: Schema.optionalKey<Schema.Int>;
3079
- readonly entries: Schema.optionalKey<Schema.Int>;
3080
- readonly milliseconds: Schema.optionalKey<Schema.Int>;
3081
- }>>, never, never, Schema.toCodecJson<Schema.Struct<{
3064
+ }>>, never, Schema.toCodecJson<Schema.Struct<{
3065
+ readonly message: Schema.String;
3066
+ readonly author: Schema.Struct<{
3067
+ readonly name: Schema.String;
3068
+ readonly email: Schema.String;
3069
+ readonly at: Schema.Number;
3070
+ readonly offset: Schema.Int;
3071
+ }>;
3072
+ readonly commit: Schema.String;
3073
+ readonly onto: Schema.String;
3074
+ readonly committer: Schema.optionalKey<Schema.Struct<{
3075
+ readonly name: Schema.String;
3076
+ readonly email: Schema.String;
3077
+ readonly at: Schema.Number;
3078
+ readonly offset: Schema.Int;
3079
+ }>>;
3080
+ readonly key: Schema.optionalKey<Schema.String>;
3081
+ }>>, never, Schema.toCodecJson<Schema.Struct<{
3082
3082
  readonly oid: Schema.String;
3083
3083
  readonly tree: Schema.String;
3084
3084
  readonly parents: Schema.$Array<Schema.String>;
@@ -4,11 +4,11 @@ import { HttpApiEndpoint, HttpApiGroup } from "effect/http-api";
4
4
  declare const FilesApiGroup_base: HttpApiGroup.HttpApiGroup<"files", HttpApiEndpoint.HttpApiEndpoint<"diff", "POST", "/repos/:repo/-/files/diff", Schema.toCodecStringTree<Schema.Struct<{
5
5
  repo: Schema.String;
6
6
  }>>, never, Schema.toCodecJson<Schema.Struct<{
7
- readonly paths: Schema.optionalKey<Schema.$Array<Schema.String>>;
8
- readonly format: Schema.optionalKey<Schema.Literals<readonly ["patch", "hunks"]>>;
9
7
  readonly base: Schema.String;
10
8
  readonly head: Schema.String;
11
9
  readonly renames: Schema.optionalKey<Schema.Boolean>;
10
+ readonly paths: Schema.optionalKey<Schema.$Array<Schema.String>>;
11
+ readonly format: Schema.optionalKey<Schema.Literals<readonly ["patch", "hunks"]>>;
12
12
  readonly limits: Schema.optionalKey<Schema.Struct<{
13
13
  readonly objects: Schema.optionalKey<Schema.Int>;
14
14
  readonly bytes: Schema.optionalKey<Schema.Int>;
@@ -21,7 +21,6 @@ declare const FilesApiGroup_base: HttpApiGroup.HttpApiGroup<"files", HttpApiEndp
21
21
  }>>;
22
22
  }>>, never, Schema.toCodecJson<Schema.Struct<{
23
23
  readonly items: Schema.mutable<Schema.$Array<Schema.Union<readonly [Schema.Struct<{
24
- readonly patch: Schema.String;
25
24
  readonly status: Schema.Literals<readonly ["A", "D", "M", "R", "T"]>;
26
25
  readonly path: Schema.String;
27
26
  readonly from: Schema.optionalKey<Schema.String>;
@@ -40,19 +39,8 @@ declare const FilesApiGroup_base: HttpApiGroup.HttpApiGroup<"files", HttpApiEndp
40
39
  readonly added: Schema.Int;
41
40
  readonly deleted: Schema.Int;
42
41
  }>, Schema.Literal<"binary">]>;
42
+ readonly patch: Schema.String;
43
43
  }>, Schema.Struct<{
44
- readonly hunks: Schema.$Array<Schema.Struct<{
45
- readonly oldStart: Schema.Int;
46
- readonly oldLines: Schema.Int;
47
- readonly newStart: Schema.Int;
48
- readonly newLines: Schema.Int;
49
- readonly context: Schema.String;
50
- readonly lines: Schema.$Array<Schema.Struct<{
51
- readonly kind: Schema.Literals<readonly ["context", "add", "delete"]>;
52
- readonly text: Schema.String;
53
- readonly noNewline: Schema.optionalKey<Schema.Literal<true>>;
54
- }>>;
55
- }>>;
56
44
  readonly status: Schema.Literals<readonly ["A", "D", "M", "R", "T"]>;
57
45
  readonly path: Schema.String;
58
46
  readonly from: Schema.optionalKey<Schema.String>;
@@ -71,6 +59,18 @@ declare const FilesApiGroup_base: HttpApiGroup.HttpApiGroup<"files", HttpApiEndp
71
59
  readonly added: Schema.Int;
72
60
  readonly deleted: Schema.Int;
73
61
  }>, Schema.Literal<"binary">]>;
62
+ readonly hunks: Schema.$Array<Schema.Struct<{
63
+ readonly oldStart: Schema.Int;
64
+ readonly oldLines: Schema.Int;
65
+ readonly newStart: Schema.Int;
66
+ readonly newLines: Schema.Int;
67
+ readonly context: Schema.String;
68
+ readonly lines: Schema.$Array<Schema.Struct<{
69
+ readonly kind: Schema.Literals<readonly ["context", "add", "delete"]>;
70
+ readonly text: Schema.String;
71
+ readonly noNewline: Schema.optionalKey<Schema.Literal<true>>;
72
+ }>>;
73
+ }>>;
74
74
  }>]>>>;
75
75
  readonly next: Schema.optionalKey<Schema.String>;
76
76
  readonly renamesSkipped: Schema.optionalKey<Schema.Literals<readonly ["rename-limit", "memory-limit"]>>;
@@ -476,15 +476,15 @@ declare const FilesApiGroup_base: HttpApiGroup.HttpApiGroup<"files", HttpApiEndp
476
476
  }>>, GitCallerMiddleware, GitRestServices> | HttpApiEndpoint.HttpApiEndpoint<"list", "GET", "/repos/:repo/-/files", Schema.toCodecStringTree<Schema.Struct<{
477
477
  repo: Schema.String;
478
478
  }>>, Schema.toCodecStringTree<Schema.Struct<{
479
- ref: Schema.String;
480
- path: Schema.optionalKey<Schema.String>;
481
- recursive: Schema.optionalKey<Schema.Boolean>;
482
479
  objects: Schema.optionalKey<Schema.Int>;
483
480
  bytes: Schema.optionalKey<Schema.Int>;
484
481
  entries: Schema.optionalKey<Schema.Int>;
485
482
  milliseconds: Schema.optionalKey<Schema.Int>;
486
483
  after: Schema.optionalKey<Schema.String>;
487
484
  limit: Schema.optionalKey<Schema.Int>;
485
+ ref: Schema.String;
486
+ path: Schema.optionalKey<Schema.String>;
487
+ recursive: Schema.optionalKey<Schema.Boolean>;
488
488
  }>>, never, never, Schema.toCodecJson<Schema.Struct<{
489
489
  readonly items: Schema.mutable<Schema.$Array<Schema.Struct<{
490
490
  readonly name: Schema.String;