@ref0/git 0.4.0 → 0.7.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.
- package/dist/access/namespace.d.mts +2 -0
- package/dist/access/private-refs.d.mts +6 -29
- package/dist/access/private-refs.mjs +31 -17
- package/dist/access/public.d.mts +6 -0
- package/dist/access/public.mjs +9 -0
- package/dist/auth/access-jwt.d.mts +10 -6
- package/dist/auth/access-jwt.mjs +59 -40
- package/dist/auth/auth-namespace.d.mts +6 -0
- package/dist/auth/auth-namespace.mjs +12 -0
- package/dist/auth/auth.d.mts +3 -6
- package/dist/auth/auth.mjs +2 -9
- package/dist/auth/authorize.mjs +13 -9
- package/dist/auth/fences.d.mts +1 -1
- package/dist/auth/host-function.mjs +17 -8
- package/dist/auth/identify.d.mts +5 -3
- package/dist/auth/identify.mjs +2 -1
- package/dist/auth/namespaces.d.mts +2 -2
- package/dist/auth/token-rows.mjs +1 -1
- package/dist/auth/tokens-layer.d.mts +42 -0
- package/dist/auth/tokens-layer.mjs +29 -0
- package/dist/auth/tokens-namespace.d.mts +2 -0
- package/dist/auth/tokens-public.d.mts +6 -0
- package/dist/auth/tokens-public.mjs +29 -0
- package/dist/auth/tokens.d.mts +13 -6
- package/dist/auth/tokens.mjs +13 -12
- package/dist/auth.d.mts +2 -2
- package/dist/auth.mjs +2 -2
- package/dist/client/git-http.mjs +1 -1
- package/dist/client/local.mjs +6 -3
- package/dist/client/remote-helper.mjs +3 -8
- package/dist/client/remote.mjs +26 -7
- package/dist/client/run-remote-helper.d.mts +1 -1
- package/dist/client/run-remote-helper.mjs +2 -2
- package/dist/client/slice-push.d.mts +1 -1
- package/dist/contracts/access.d.mts +24 -12
- package/dist/contracts/access.mjs +17 -0
- package/dist/contracts/actors.d.mts +17 -1
- package/dist/contracts/actors.mjs +8 -1
- package/dist/contracts/authorize.d.mts +21 -14
- package/dist/contracts/blobs.d.mts +1 -1
- package/dist/contracts/blobs.mjs +1 -1
- package/dist/contracts/calls-spent.d.mts +6 -4
- package/dist/contracts/calls-spent.mjs +10 -8
- package/dist/contracts/commits.d.mts +2 -2
- package/dist/contracts/commits.mjs +1 -1
- package/dist/contracts/engine.d.mts +1 -1
- package/dist/contracts/events.d.mts +64 -26
- package/dist/contracts/events.mjs +26 -6
- package/dist/contracts/files.d.mts +2 -2
- package/dist/contracts/files.mjs +1 -1
- package/dist/contracts/forks.d.mts +58 -58
- package/dist/contracts/forks.mjs +1 -1
- package/dist/contracts/git-events.d.mts +50 -0
- package/dist/contracts/git-events.mjs +23 -0
- package/dist/contracts/git-hooks.d.mts +37 -0
- package/dist/contracts/git-hooks.mjs +10 -0
- package/dist/contracts/git.d.mts +138 -22
- package/dist/contracts/git.mjs +6 -5
- package/dist/contracts/grants.d.mts +6 -1
- package/dist/contracts/ids.d.mts +16 -0
- package/dist/contracts/ids.mjs +19 -4
- package/dist/contracts/lfs.d.mts +7 -2
- package/dist/contracts/namespaces.d.mts +2 -2
- package/dist/contracts/objects.d.mts +7 -2
- package/dist/contracts/opaque.mjs +9 -0
- package/dist/contracts/operations.d.mts +293 -100
- package/dist/contracts/promises.d.mts +4 -14
- package/dist/contracts/push-uploads.d.mts +5 -2
- package/dist/contracts/push-uploads.mjs +9 -4
- package/dist/contracts/queue.d.mts +233 -54
- package/dist/contracts/queue.mjs +81 -6
- package/dist/contracts/refs.d.mts +30 -8
- package/dist/contracts/refs.mjs +1 -1
- package/dist/contracts/remote.d.mts +42 -21
- package/dist/contracts/remote.mjs +22 -0
- package/dist/contracts/repo-records.d.mts +2 -2
- package/dist/contracts/repos.d.mts +126 -79
- package/dist/contracts/repos.mjs +43 -5
- package/dist/contracts/result.d.mts +50 -31
- package/dist/contracts/result.mjs +48 -16
- package/dist/contracts/rules.d.mts +50 -44
- package/dist/contracts/rules.mjs +5 -1
- package/dist/contracts/server.d.mts +282 -191
- package/dist/contracts/services.d.mts +1 -7
- package/dist/contracts/services.mjs +1 -3
- package/dist/contracts/signin.d.mts +140 -43
- package/dist/contracts/signin.mjs +35 -1
- package/dist/contracts/store.d.mts +1 -1
- package/dist/contracts/sync.d.mts +112 -90
- package/dist/contracts/sync.mjs +34 -7
- package/dist/contracts/tags.d.mts +1 -1
- package/dist/contracts/tags.mjs +1 -1
- package/dist/contracts/tokens.d.mts +232 -57
- package/dist/contracts/tokens.mjs +80 -19
- package/dist/contracts/topics.d.mts +22 -10
- package/dist/contracts/topics.mjs +6 -3
- package/dist/contracts/trees.d.mts +2 -2
- package/dist/contracts/trees.mjs +1 -1
- package/dist/contracts/work.d.mts +3 -3
- package/dist/contracts/work.mjs +2 -2
- package/dist/core/access.d.mts +10 -10
- package/dist/core/access.mjs +47 -8
- package/dist/core/call-names.d.mts +3 -1
- package/dist/core/clock.mjs +1 -1
- package/dist/core/events/deliver.d.mts +13 -0
- package/dist/core/events/deliver.mjs +475 -175
- package/dist/core/events/seen.mjs +17 -3
- package/dist/core/forks.mjs +131 -44
- package/dist/core/hooks/groups.d.mts +27 -0
- package/dist/core/hooks/groups.mjs +74 -0
- package/dist/core/hooks/namespace.d.mts +2 -0
- package/dist/core/hooks/order.d.mts +2 -2
- package/dist/core/hooks/order.mjs +6 -6
- package/dist/core/hooks/public.d.mts +7 -0
- package/dist/core/hooks/public.mjs +5 -0
- package/dist/core/imports.mjs +94 -10
- package/dist/core/index-job.mjs +31 -22
- package/dist/core/merge-parts.d.mts +1 -1
- package/dist/core/merge-parts.mjs +1 -1
- package/dist/core/mirror-rows.mjs +18 -0
- package/dist/core/names.mjs +1 -1
- package/dist/core/namespaces.d.mts +2 -1
- package/dist/core/objects/commit-writes.mjs +5 -5
- package/dist/core/objects/merges.mjs +1 -1
- package/dist/core/objects/objects-layer.mjs +1 -1
- package/dist/core/objects/reading.mjs +52 -7
- package/dist/core/objects/tree-edits.mjs +13 -28
- package/dist/core/objects/trees.mjs +4 -4
- package/dist/core/objects/writing.mjs +3 -3
- package/dist/core/own-writes.mjs +1 -1
- package/dist/core/parts.d.mts +27 -2
- package/dist/core/parts.mjs +5 -3
- package/dist/core/promise.mjs +23 -3
- package/dist/core/purge.d.mts +8 -0
- package/dist/core/purge.mjs +91 -46
- package/dist/core/push-decide.mjs +26 -4
- package/dist/core/push.mjs +104 -86
- package/dist/core/receipts.d.mts +2 -2
- package/dist/core/receipts.mjs +28 -4
- package/dist/core/ref-index-job.mjs +10 -15
- package/dist/core/ref-index.d.mts +1 -0
- package/dist/core/ref-index.mjs +28 -8
- package/dist/core/ref-view.mjs +16 -11
- package/dist/core/refs.mjs +54 -21
- package/dist/core/registered-records.mjs +30 -0
- package/dist/core/registered-rows.d.mts +4 -0
- package/dist/core/registered-rows.mjs +53 -0
- package/dist/core/repack.d.mts +3 -2
- package/dist/core/repack.mjs +70 -120
- package/dist/core/repo-info.mjs +59 -25
- package/dist/core/repos.mjs +22 -16
- package/dist/core/rules/changes.mjs +2 -2
- package/dist/core/rules/check.mjs +7 -6
- package/dist/core/rules/commit-changes.mjs +1 -1
- package/dist/core/rules/context.d.mts +4 -5
- package/dist/core/rules/context.mjs +3 -4
- package/dist/core/rules/fetch.mjs +74 -21
- package/dist/core/saved-caller-views.d.mts +72 -0
- package/dist/core/saved-caller-views.mjs +123 -0
- package/dist/core/saved-callers-public.d.mts +5 -0
- package/dist/core/saved-callers-public.mjs +10 -0
- package/dist/core/saved-callers.mjs +95 -0
- package/dist/core/seam.d.mts +67 -9
- package/dist/core/seam.mjs +11 -3
- package/dist/core/still-takes.mjs +75 -0
- package/dist/core/tokens.mjs +5 -1
- package/dist/core/view.d.mts +2 -1
- package/dist/core/view.mjs +9 -10
- package/dist/core/work.mjs +6 -5
- package/dist/effect.d.mts +2 -2
- package/dist/effect.mjs +2 -2
- package/dist/engine/content.d.mts +2 -2
- package/dist/engine/content.mjs +1 -1
- package/dist/engine/diff.mjs +2 -2
- package/dist/engine/merge-base-walk.d.mts +2 -2
- package/dist/engine/merge-base-walk.mjs +1 -1
- package/dist/engine/merge-renames.mjs +1 -1
- package/dist/engine/reads.d.mts +2 -2
- package/dist/engine/reads.mjs +1 -1
- package/dist/engine/xdiff.d.mts +1 -1
- package/dist/engine/xdiff.mjs +2 -2
- package/dist/event-streams/event-streams.d.mts +6 -2
- package/dist/event-streams/event-streams.mjs +6 -2
- package/dist/event-streams/stream.mjs +5 -2
- package/dist/extend.d.mts +5 -4
- package/dist/extend.mjs +3 -2
- package/dist/http/answers.mjs +4 -3
- package/dist/http/core-parts.mjs +21 -13
- package/dist/http/handler.mjs +3 -3
- package/dist/http/node.d.mts +2 -23
- package/dist/http/parts.d.mts +2 -0
- package/dist/http/push-uploads.d.mts +10 -2
- package/dist/http/push-uploads.mjs +38 -39
- package/dist/http/receive-pack.mjs +8 -6
- package/dist/http/upload-pack.mjs +8 -7
- package/dist/index.d.mts +36 -19
- package/dist/index.mjs +14 -6
- package/dist/lfs/base.d.mts +32 -0
- package/dist/lfs/base.mjs +8 -0
- package/dist/lfs/calls.mjs +22 -12
- package/dist/lfs/layer.d.mts +28 -0
- package/dist/lfs/layer.mjs +65 -0
- package/dist/lfs/locks.mjs +16 -30
- package/dist/lfs/namespace.d.mts +2 -0
- package/dist/lfs/objects.d.mts +26 -6
- package/dist/lfs/objects.mjs +197 -98
- package/dist/lfs/pointers.mjs +8 -6
- package/dist/lfs/public.d.mts +5 -0
- package/dist/lfs/public.mjs +8 -0
- package/dist/lfs/purge.mjs +19 -25
- package/dist/lfs/rows.mjs +22 -10
- package/dist/lfs/service.d.mts +9 -4
- package/dist/lfs/service.mjs +3 -12
- package/dist/lfs/upkeep.mjs +45 -56
- package/dist/lfs/wire.mjs +1 -1
- package/dist/node.d.mts +3 -2
- package/dist/node.mjs +1 -1
- package/dist/protocol/bytes/buffers.d.mts +1 -1
- package/dist/protocol/bytes/buffers.mjs +1 -1
- package/dist/protocol/bytes/deflate.d.mts +1 -1
- package/dist/protocol/bytes/deflate.mjs +1 -1
- package/dist/protocol/bytes/hmac-sha256.mjs +3 -6
- package/dist/protocol/bytes/inflate.d.mts +1 -1
- package/dist/protocol/bytes/inflate.mjs +1 -1
- package/dist/protocol/bytes/sha1.d.mts +1 -1
- package/dist/protocol/bytes/sha1.mjs +2 -2
- package/dist/protocol/diff/read.d.mts +1 -1
- package/dist/protocol/diff/read.mjs +1 -1
- package/dist/protocol/diff/tree-diff.d.mts +1 -1
- package/dist/protocol/diff/tree-diff.mjs +11 -11
- package/dist/protocol/objects/lfs-pointer.mjs +6 -1
- package/dist/protocol/objects/tag.mjs +1 -1
- package/dist/protocol/objects/tree.mjs +1 -1
- package/dist/protocol/packs/graph.mjs +1 -1
- package/dist/protocol/packs/idx.d.mts +1 -1
- package/dist/protocol/packs/idx.mjs +1 -1
- package/dist/protocol/packs/parts.mjs +1 -1
- package/dist/protocol/packs/reader.d.mts +1 -1
- package/dist/protocol/packs/reader.mjs +2 -2
- package/dist/protocol/packs/write-error.d.mts +1 -1
- package/dist/protocol/packs/write-error.mjs +1 -1
- package/dist/protocol/packs/writer.mjs +4 -4
- package/dist/protocol/wire/advertisement.d.mts +5 -11
- package/dist/protocol/wire/advertisement.mjs +17 -13
- package/dist/protocol/wire/fetch.d.mts +1 -1
- package/dist/protocol/wire/fetch.mjs +1 -1
- package/dist/protocol/wire/lines.d.mts +14 -2
- package/dist/protocol/wire/lines.mjs +32 -21
- package/dist/protocol/wire/push-uploads.mjs +4 -2
- package/dist/protocol/wire/receive-pack.d.mts +1 -1
- package/dist/protocol/wire/receive-pack.mjs +1 -1
- package/dist/protocol/wire/report-status.d.mts +1 -1
- package/dist/protocol/wire/report-status.mjs +1 -1
- package/dist/protocol/wire/v2.d.mts +5 -16
- package/dist/protocol/wire/v2.mjs +17 -15
- package/dist/queue/advance.mjs +227 -112
- package/dist/queue/callers.mjs +56 -69
- package/dist/queue/calls.mjs +24 -13
- package/dist/queue/commit.mjs +20 -7
- package/dist/queue/host.d.mts +12 -13
- package/dist/queue/host.mjs +15 -7
- package/dist/queue/lanes.mjs +9 -18
- package/dist/queue/layer.d.mts +6 -4
- package/dist/queue/layer.mjs +17 -11
- package/dist/queue/limits.mjs +53 -11
- package/dist/queue/rows.mjs +19 -15
- package/dist/queue/schedule.mjs +6 -5
- package/dist/queue/search.mjs +8 -13
- package/dist/queue/state.mjs +26 -7
- package/dist/queue/steps.mjs +10 -4
- package/dist/queue/trim.mjs +289 -0
- package/dist/rest/api.d.mts +1 -1
- package/dist/rest/blobs.d.mts +35 -35
- package/dist/rest/caller.d.mts +22 -20
- package/dist/rest/client.mjs +6 -6
- package/dist/rest/commits.d.mts +274 -274
- package/dist/rest/errors.d.mts +10 -10
- package/dist/rest/errors.mjs +1 -1
- package/dist/rest/events.d.mts +13 -11
- package/dist/rest/events.mjs +3 -1
- package/dist/rest/files.d.mts +78 -78
- package/dist/rest/forks.d.mts +170 -170
- package/dist/rest/handler.mjs +17 -8
- package/dist/rest/handlers.mjs +13 -7
- package/dist/rest/layer.d.mts +14 -0
- package/dist/rest/layer.mjs +53 -0
- package/dist/rest/listen.mjs +2 -2
- package/dist/rest/me.d.mts +18 -20
- package/dist/rest/me.mjs +1 -1
- package/dist/rest/merges.d.mts +10 -10
- package/dist/rest/namespace.d.mts +2 -0
- package/dist/rest/queue.d.mts +320 -320
- package/dist/rest/queue.mjs +1 -1
- package/dist/rest/refs.d.mts +207 -207
- package/dist/rest/refs.mjs +1 -1
- package/dist/rest/repos.d.mts +127 -127
- package/dist/rest/tags.d.mts +94 -94
- package/dist/rest/tokens.d.mts +248 -258
- package/dist/rest/tokens.mjs +10 -42
- package/dist/rest/topics.d.mts +154 -154
- package/dist/rest/topics.mjs +1 -1
- package/dist/rest/trees.d.mts +84 -84
- package/dist/rest/wire.d.mts +8 -4
- package/dist/rest/wire.mjs +3 -2
- package/dist/rest/work.d.mts +69 -69
- package/dist/rest/work.mjs +1 -1
- package/dist/server/check-fetch.mjs +9 -0
- package/dist/server/edge-node.d.mts +20 -0
- package/dist/server/edge-node.mjs +20 -0
- package/dist/server/edge.d.mts +10 -0
- package/dist/server/edge.mjs +23 -0
- package/dist/server/extension.mjs +3 -115
- package/dist/server/git-layer.d.mts +34 -6
- package/dist/server/git-layer.mjs +40 -18
- package/dist/server/git-namespace.d.mts +5 -4
- package/dist/server/git-namespace.mjs +10 -5
- package/dist/server/joined.d.mts +83 -0
- package/dist/server/joined.mjs +91 -0
- package/dist/server/registry.d.mts +9 -2
- package/dist/server/registry.mjs +179 -24
- package/dist/server/routes.mjs +2 -2
- package/dist/server/server.d.mts +11 -1
- package/dist/server/server.mjs +331 -201
- package/dist/server/uploads.d.mts +14 -0
- package/dist/server/uploads.mjs +15 -0
- package/dist/signin/context.d.mts +2 -1
- package/dist/signin/context.mjs +32 -37
- package/dist/signin/device.mjs +5 -5
- package/dist/signin/forms.mjs +1 -1
- package/dist/signin/grants.d.mts +2 -3
- package/dist/signin/grants.mjs +5 -5
- package/dist/signin/layer.d.mts +9 -0
- package/dist/signin/layer.mjs +41 -0
- package/dist/signin/namespace.d.mts +2 -0
- package/dist/signin/public.d.mts +6 -0
- package/dist/signin/public.mjs +5 -0
- package/dist/signin/route.mjs +47 -21
- package/dist/signin/web.mjs +3 -3
- package/dist/signin/wire.mjs +1 -1
- package/dist/storage/calls.d.mts +7 -8
- package/dist/storage/calls.mjs +17 -17
- package/dist/storage/clean-up.mjs +71 -34
- package/dist/storage/counted-bucket.mjs +34 -51
- package/dist/storage/fetch.mjs +1 -1
- package/dist/storage/host-bucket.mjs +17 -2
- package/dist/storage/index-build.d.mts +2 -2
- package/dist/storage/index-build.mjs +3 -3
- package/dist/storage/index-fetch.mjs +10 -6
- package/dist/storage/index-graph.mjs +1 -1
- package/dist/storage/index-layers.mjs +1 -1
- package/dist/storage/index-visible.mjs +1 -1
- package/dist/storage/layout.mjs +5 -0
- package/dist/storage/memory-budget.mjs +7 -1
- package/dist/storage/merge-cut.mjs +24 -1
- package/dist/storage/merge-fence.mjs +1 -1
- package/dist/storage/merge-plan.mjs +5 -2
- package/dist/storage/merge-row.mjs +1 -1
- package/dist/storage/merge-stream.mjs +16 -7
- package/dist/storage/merge-write.mjs +1 -1
- package/dist/storage/merge.d.mts +2 -2
- package/dist/storage/merge.mjs +1 -1
- package/dist/storage/object-rows.d.mts +2 -2
- package/dist/storage/object-rows.mjs +3 -3
- package/dist/storage/pack-ranges.d.mts +3 -1
- package/dist/storage/pack-ranges.mjs +168 -69
- package/dist/storage/pack-reads.mjs +4 -4
- package/dist/storage/pack-receive.d.mts +1 -1
- package/dist/storage/pack-receive.mjs +7 -9
- package/dist/storage/packs.d.mts +1 -1
- package/dist/storage/packs.mjs +45 -52
- package/dist/storage/placed-reads.mjs +81 -15
- package/dist/storage/prune-seen.mjs +126 -0
- package/dist/storage/prune-walk.mjs +87 -99
- package/dist/storage/prune.mjs +49 -14
- package/dist/storage/push-uploads.mjs +16 -18
- package/dist/storage/quarantine.d.mts +2 -2
- package/dist/storage/quarantine.mjs +51 -12
- package/dist/storage/ready.d.mts +2 -2
- package/dist/storage/ready.mjs +3 -3
- package/dist/storage/receive-bounds.d.mts +1 -1
- package/dist/storage/receive-files.mjs +1 -1
- package/dist/storage/receive-links.mjs +1 -1
- package/dist/storage/receive-state.d.mts +2 -2
- package/dist/storage/receive-state.mjs +1 -1
- package/dist/storage/receive-steps.mjs +1 -1
- package/dist/storage/repack-contained.mjs +2 -2
- package/dist/storage/repack-job.d.mts +2 -2
- package/dist/storage/repack-job.mjs +11 -17
- package/dist/storage/repack.d.mts +1 -1
- package/dist/storage/repack.mjs +9 -3
- package/dist/storage/rows.d.mts +2 -2
- package/dist/storage/rows.mjs +43 -4
- package/dist/storage/runs.d.mts +2 -2
- package/dist/storage/runs.mjs +15 -6
- package/dist/storage/send-list.mjs +6 -6
- package/dist/storage/single-flight.mjs +2 -2
- package/dist/storage/swap-walk.mjs +1 -1
- package/dist/storage/unpack.mjs +1 -1
- package/dist/store/call-count.d.mts +1 -1
- package/dist/store/call-count.mjs +125 -34
- package/dist/store/catalogue.d.mts +1 -1
- package/dist/store/catalogue.mjs +2 -2
- package/dist/store/crossing.mjs +2 -6
- package/dist/store/cursor-seal.mjs +1 -1
- package/dist/store/errors.d.mts +7 -3
- package/dist/store/errors.mjs +41 -13
- package/dist/store/job-try.mjs +130 -0
- package/dist/store/list-job.mjs +22 -16
- package/dist/store/outbox.d.mts +2 -2
- package/dist/store/outbox.mjs +112 -27
- package/dist/store/promises.d.mts +8 -3
- package/dist/store/promises.mjs +104 -94
- package/dist/store/queue-jobs.mjs +23 -2
- package/dist/store/records.d.mts +2 -2
- package/dist/store/records.mjs +16 -24
- package/dist/store/ref-rows.d.mts +2 -2
- package/dist/store/ref-rows.mjs +6 -6
- package/dist/store/reservations.mjs +35 -8
- package/dist/store/scopes.mjs +6 -14
- package/dist/store/topic-jobs.mjs +8 -8
- package/dist/sync/bound.d.mts +1 -3
- package/dist/sync/bound.mjs +30 -42
- package/dist/sync/bridge.d.mts +6 -0
- package/dist/sync/bridge.mjs +29 -0
- package/dist/sync/github.d.mts +5 -6
- package/dist/sync/github.mjs +37 -42
- package/dist/sync/http.mjs +15 -0
- package/dist/sync/import.mjs +17 -18
- package/dist/sync/layer.d.mts +9 -0
- package/dist/sync/layer.mjs +68 -0
- package/dist/sync/mirror.mjs +138 -59
- package/dist/sync/publish.mjs +15 -13
- package/dist/sync/step.mjs +221 -79
- package/dist/sync/tries.mjs +22 -15
- package/dist/sync.d.mts +3 -6
- package/dist/sync.mjs +3 -6
- package/dist/topics/advance.mjs +205 -90
- package/dist/topics/calls.mjs +8 -8
- package/dist/topics/directory.mjs +35 -12
- package/dist/topics/host.d.mts +5 -8
- package/dist/topics/host.mjs +42 -19
- package/dist/topics/layer.d.mts +381 -0
- package/dist/topics/layer.mjs +62 -0
- package/dist/topics/members.mjs +1 -1
- package/dist/topics/namespace.d.mts +2 -0
- package/dist/topics/public.d.mts +6 -0
- package/dist/topics/public.mjs +13 -0
- package/dist/topics/rows.mjs +12 -3
- package/dist/topics/topic.mjs +11 -10
- package/package.json +8 -13
- package/dist/access.d.mts +0 -2
- package/dist/access.mjs +0 -1
- package/dist/core/hooks/post-receive.mjs +0 -213
- package/dist/core/hooks/pre-receive.d.mts +0 -12
- package/dist/core/hooks/pre-receive.mjs +0 -36
- package/dist/lfs/repo.mjs +0 -42
- package/dist/server/extension.d.mts +0 -21
- package/dist/storage/promise-calls.mjs +0 -29
- package/dist/sync/import.d.mts +0 -10
- package/dist/sync/jobs.d.mts +0 -9
- package/dist/sync/jobs.mjs +0 -75
- package/dist/sync/mirror.d.mts +0 -13
- package/dist/sync/publish.d.mts +0 -6
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
import { BeginPushUpload, FinishPushUpload, PushUploadPart, PushUploadStarted } from "../contracts/push-uploads.mjs";
|
|
2
2
|
import { fail, gitError } from "../contracts/result.mjs";
|
|
3
|
+
import { openFor } from "../core/access.mjs";
|
|
3
4
|
import { CoreParts } from "../core/parts.mjs";
|
|
4
|
-
import { openFor } from "../lfs/repo.mjs";
|
|
5
5
|
import { pushOptionsRefusal } from "../protocol/wire/receive-pack.mjs";
|
|
6
6
|
import { pushReasonsCapability } from "../protocol/wire/push-limits.mjs";
|
|
7
7
|
import { decodeJson } from "../protocol/wire/json.mjs";
|
|
8
|
-
import { bucketCall,
|
|
8
|
+
import { bucketCall, bucketStream, readWhole } from "../storage/calls.mjs";
|
|
9
9
|
import { PushUploadRow, completeMost, endUpload, partBytes, partLinkLife, partSizeOf, partsOf, pushPackTooLarge, pushUploadGrace, pushUploadKey, pushUploadLife, pushUploadMost, pushUploadRead, pushUploadRowKey } from "../storage/push-uploads.mjs";
|
|
10
10
|
import { afterWrites, bestEffort, decodeRow, storeCall } from "../store/errors.mjs";
|
|
11
11
|
import { randomText } from "../store/random.mjs";
|
|
12
12
|
import { newChangeId, repoScope } from "../store/scopes.mjs";
|
|
13
13
|
import { gitAnswer, resultType } from "./answers.mjs";
|
|
14
|
-
import { brokenBody, plainBody, readWhole } from "./bodies.mjs";
|
|
14
|
+
import { brokenBody, plainBody, readWhole as readWhole$1 } from "./bodies.mjs";
|
|
15
15
|
import { refusalLog, reportOf, routeCounted, thrownLog } from "./receive-pack.mjs";
|
|
16
|
-
import * as Schema from "effect/Schema";
|
|
17
|
-
import * as Effect from "effect/Effect";
|
|
18
16
|
import * as Clock$1 from "effect/Clock";
|
|
17
|
+
import * as Effect from "effect/Effect";
|
|
18
|
+
import * as Schema from "effect/Schema";
|
|
19
19
|
import * as Result from "effect/Result";
|
|
20
20
|
// src/http/push-uploads.ts
|
|
21
21
|
/** A begin's or complete's JSON: at most 1 MiB. */
|
|
@@ -23,17 +23,17 @@ const bodyMost = 1048576;
|
|
|
23
23
|
/** A pack's header: `PACK`, its version, and how many objects it holds. */
|
|
24
24
|
const packHeader = 12;
|
|
25
25
|
const zero = "0".repeat(40);
|
|
26
|
-
/** Push uploads over `needs`, the server's, staged in `
|
|
27
|
-
const pushUploads = (needs,
|
|
26
|
+
/** Push uploads over `needs`, the server's, staged in `staging`, offered above `above` bytes. */
|
|
27
|
+
const pushUploads = (needs, staging, above) => ({
|
|
28
28
|
above,
|
|
29
29
|
serve: (parts, call) => {
|
|
30
30
|
const { route } = call;
|
|
31
|
-
if (route.kind === "begin") return routeCounted(parts, Effect.provideContext(begin(
|
|
31
|
+
if (route.kind === "begin") return routeCounted(parts, Effect.provideContext(begin(staging.uploads, call), needs));
|
|
32
32
|
if (route.kind === "part") {
|
|
33
|
-
const parted = part(
|
|
33
|
+
const parted = part(staging.uploads, call, route.upload, route.part);
|
|
34
34
|
return routeCounted(parts, Effect.provideContext(parted, needs));
|
|
35
35
|
}
|
|
36
|
-
return routeCounted(parts, complete(
|
|
36
|
+
return routeCounted(parts, complete(staging, parts, call, route.upload).pipe(Effect.tapError((error) => refusalLog(call.repo, error)), Effect.provideContext(needs)));
|
|
37
37
|
}
|
|
38
38
|
});
|
|
39
39
|
/** `body` as `schema`'s JSON, the answer a push upload's begin or part gives. */
|
|
@@ -46,7 +46,7 @@ const jsonAnswer = (schema, body) => new Response(Schema.encodeSync(Schema.fromJ
|
|
|
46
46
|
});
|
|
47
47
|
/** `request`'s JSON, decoded as `schema`; a refusal names the first check it fails. */
|
|
48
48
|
const bodyOf = /* @__PURE__ */ Effect.fnUntraced(function* (request, schema) {
|
|
49
|
-
const bytes = yield* readWhole(yield* plainBody(request), bodyMost, brokenBody(request));
|
|
49
|
+
const bytes = yield* readWhole$1(yield* plainBody(request), bodyMost, brokenBody(request));
|
|
50
50
|
const decoded = decodeJson(schema)(new TextDecoder().decode(bytes));
|
|
51
51
|
return yield* Result.match(decoded, {
|
|
52
52
|
onFailure: (why) => fail("INVALID_ARGUMENT", `The push upload's body isn't the JSON it takes: ${why}`),
|
|
@@ -70,7 +70,7 @@ const beginRefusal = (body) => {
|
|
|
70
70
|
* `git.repack` due at its `removeAt` to end it. A crash between leaves an upload no link was
|
|
71
71
|
* given for, which the bucket's lifecycle drops.
|
|
72
72
|
*/
|
|
73
|
-
const begin = /* @__PURE__ */ Effect.fnUntraced(function* (
|
|
73
|
+
const begin = /* @__PURE__ */ Effect.fnUntraced(function* (uploads, call) {
|
|
74
74
|
const body = yield* bodyOf(call.request, BeginPushUpload);
|
|
75
75
|
const refused = beginRefusal(body);
|
|
76
76
|
if (refused !== void 0) return yield* Effect.fail(refused);
|
|
@@ -79,7 +79,7 @@ const begin = /* @__PURE__ */ Effect.fnUntraced(function* (bucket, call) {
|
|
|
79
79
|
const at = yield* Clock$1.currentTimeMillis;
|
|
80
80
|
const upload = randomText(16);
|
|
81
81
|
const key = pushUploadKey(repo.internalId, upload);
|
|
82
|
-
const uploadId = yield* bucketCall(
|
|
82
|
+
const uploadId = yield* bucketCall(uploads.beginUpload(key));
|
|
83
83
|
const expiresAt = at + pushUploadLife;
|
|
84
84
|
const removeAt = expiresAt + pushUploadGrace;
|
|
85
85
|
const row = {
|
|
@@ -91,6 +91,7 @@ const begin = /* @__PURE__ */ Effect.fnUntraced(function* (bucket, call) {
|
|
|
91
91
|
pushOptions: body.pushOptions ?? [],
|
|
92
92
|
atomic: body.atomic ?? false,
|
|
93
93
|
reasons: body.reasons ?? false,
|
|
94
|
+
shallow: body.shallow ?? [],
|
|
94
95
|
expiresAt,
|
|
95
96
|
removeAt,
|
|
96
97
|
state: "open"
|
|
@@ -105,7 +106,7 @@ const begin = /* @__PURE__ */ Effect.fnUntraced(function* (bucket, call) {
|
|
|
105
106
|
}));
|
|
106
107
|
return jsonAnswer(PushUploadStarted, {
|
|
107
108
|
upload,
|
|
108
|
-
partSize: partSizeOf(body.bytes,
|
|
109
|
+
partSize: partSizeOf(body.bytes, uploads.maxParts),
|
|
109
110
|
expiresAt
|
|
110
111
|
});
|
|
111
112
|
});
|
|
@@ -122,23 +123,22 @@ const rowOf = /* @__PURE__ */ Effect.fnUntraced(function* (repo, upload, actor)
|
|
|
122
123
|
};
|
|
123
124
|
});
|
|
124
125
|
/** `POST <repo>/push-uploads/{upload}/parts/{part}`: a PUT link for the part, while it's open. */
|
|
125
|
-
const part = /* @__PURE__ */ Effect.fnUntraced(function* (
|
|
126
|
+
const part = /* @__PURE__ */ Effect.fnUntraced(function* (uploads, call, upload, number) {
|
|
126
127
|
const repo = yield* openFor(call.caller, call.repo, true);
|
|
127
128
|
const actor = yield* actorOf(call.caller);
|
|
128
129
|
const { row } = yield* rowOf(repo.internalId, upload, actor);
|
|
129
130
|
const at = yield* Clock$1.currentTimeMillis;
|
|
130
131
|
if (row.state !== "open" || at >= row.expiresAt) return yield* ended(upload);
|
|
131
|
-
const size = partSizeOf(row.bytes,
|
|
132
|
+
const size = partSizeOf(row.bytes, uploads.maxParts);
|
|
132
133
|
const count = partsOf(row.bytes, size);
|
|
133
134
|
if (number > count) return yield* fail("INVALID_ARGUMENT", `The upload has ${count} parts`);
|
|
134
135
|
const expiresAt = Math.min(at + partLinkLife, row.expiresAt);
|
|
135
136
|
const bytes = partBytes(row.bytes, number, size);
|
|
136
|
-
const url = yield* bucketCall(
|
|
137
|
+
const url = yield* bucketCall(uploads.uploadUrl(row.key, {
|
|
137
138
|
expiresAt,
|
|
138
139
|
uploadId: row.uploadId,
|
|
139
140
|
part: number,
|
|
140
|
-
bytes
|
|
141
|
-
signal
|
|
141
|
+
bytes
|
|
142
142
|
}));
|
|
143
143
|
return jsonAnswer(PushUploadPart, { url });
|
|
144
144
|
});
|
|
@@ -171,22 +171,20 @@ const claim = /* @__PURE__ */ Effect.fnUntraced(function* (repo, upload, actor,
|
|
|
171
171
|
});
|
|
172
172
|
/** How many objects the staged pack's header says, or `undefined` when it isn't a pack. */
|
|
173
173
|
const objectsOf = /* @__PURE__ */ Effect.fnUntraced(function* (bucket, key) {
|
|
174
|
-
const
|
|
174
|
+
const bytes = yield* readWhole(bucket, key, {
|
|
175
175
|
offset: 0,
|
|
176
176
|
length: packHeader
|
|
177
|
-
}
|
|
178
|
-
if (
|
|
179
|
-
const bytes = new Uint8Array(yield* bucketTry(() => new Response(stream).arrayBuffer()));
|
|
180
|
-
if (bytes.length < packHeader) return void 0;
|
|
177
|
+
});
|
|
178
|
+
if (bytes === void 0 || bytes.length < packHeader) return void 0;
|
|
181
179
|
const header = new DataView(bytes.buffer, bytes.byteOffset, packHeader);
|
|
182
180
|
return header.getUint32(0) === 1346454347 ? header.getUint32(8) : void 0;
|
|
183
181
|
});
|
|
184
182
|
/**
|
|
185
|
-
* The push start complete answers for: what the upload's begin named,
|
|
186
|
-
* `atomic` and `ref0-push-reasons` when it asked for them.
|
|
183
|
+
* The push start complete answers for: what the upload's begin named, its shallow lines among
|
|
184
|
+
* them, on side-band-64k, with `atomic` and `ref0-push-reasons` when it asked for them.
|
|
187
185
|
*/
|
|
188
186
|
const startOf = (row) => ({
|
|
189
|
-
shallow:
|
|
187
|
+
shallow: row.shallow,
|
|
190
188
|
commands: row.updates.map((update) => ({
|
|
191
189
|
ref: update.ref,
|
|
192
190
|
before: update.from ?? zero,
|
|
@@ -207,13 +205,13 @@ const startOf = (row) => ({
|
|
|
207
205
|
* answers `git-receive-pack`'s report; then the upload ends, its key deleted and its row `ended`,
|
|
208
206
|
* and upkeep at its `removeAt` deletes both.
|
|
209
207
|
*/
|
|
210
|
-
const complete = /* @__PURE__ */ Effect.fnUntraced(function* (
|
|
208
|
+
const complete = /* @__PURE__ */ Effect.fnUntraced(function* (staging, parts, call, upload) {
|
|
211
209
|
const finish = yield* bodyOf(call.request, FinishPushUpload);
|
|
212
210
|
const repo = yield* openFor(call.caller, call.repo, true);
|
|
213
211
|
const actor = yield* actorOf(call.caller);
|
|
214
212
|
const receiving = yield* parts.receive(call.caller, call.repo);
|
|
215
|
-
const row = yield* claim(repo.internalId, upload, actor, finish.parts,
|
|
216
|
-
const pushed = yield* pushStaged(
|
|
213
|
+
const row = yield* claim(repo.internalId, upload, actor, finish.parts, staging.uploads.maxParts);
|
|
214
|
+
const pushed = yield* pushStaged(staging, receiving.push, call.request, row, finish.parts).pipe(Effect.map(Result.mapError(afterWrites)), Effect.mapError(afterWrites), Effect.ensuring(ending(staging, repo.internalId, upload, row)));
|
|
217
215
|
yield* thrownLog(call.repo, pushed);
|
|
218
216
|
return gitAnswer(resultType("git-receive-pack"), yield* reportOf(startOf(row), pushed));
|
|
219
217
|
});
|
|
@@ -237,18 +235,18 @@ const checkedParts = (row, size, named, listed) => {
|
|
|
237
235
|
* The parts checked and joined, then the pack they make pushed, or why it can't be. The join names
|
|
238
236
|
* the ETags the bucket listed, so a part sent again after the check makes the bucket refuse it.
|
|
239
237
|
*/
|
|
240
|
-
const pushStaged = /* @__PURE__ */ Effect.fnUntraced(function* (bucket, push, request, row, named) {
|
|
241
|
-
const listed = yield* Effect.result(bucketCall(
|
|
242
|
-
const size = partSizeOf(row.bytes,
|
|
238
|
+
const pushStaged = /* @__PURE__ */ Effect.fnUntraced(function* ({ bucket, uploads }, push, request, row, named) {
|
|
239
|
+
const listed = yield* Effect.result(bucketCall(uploads.listParts(row.key, row.uploadId)));
|
|
240
|
+
const size = partSizeOf(row.bytes, uploads.maxParts);
|
|
243
241
|
const parts = Result.flatMap(listed, (listing) => checkedParts(row, size, named, listing));
|
|
244
242
|
if (Result.isFailure(parts)) return Result.fail(parts.failure);
|
|
245
|
-
const stored = yield* Effect.result(bucketCall(
|
|
243
|
+
const stored = yield* Effect.result(bucketCall(uploads.completeUpload(row.key, {
|
|
246
244
|
uploadId: row.uploadId,
|
|
247
245
|
parts: parts.success
|
|
248
|
-
}
|
|
246
|
+
})));
|
|
249
247
|
if (Result.isFailure(stored)) return Result.fail(stored.failure);
|
|
250
248
|
const objects = yield* objectsOf(bucket, row.key);
|
|
251
|
-
const bytes = objects === void 0 ? void 0 : yield*
|
|
249
|
+
const bytes = objects === void 0 ? void 0 : yield* bucketStream(bucket, row.key);
|
|
252
250
|
if (objects === void 0 || bytes === void 0) return Result.fail(gitError("INVALID_ARGUMENT", "the push's pack is missing or isn't a pack"));
|
|
253
251
|
const input = {
|
|
254
252
|
request,
|
|
@@ -262,6 +260,7 @@ const pushStaged = /* @__PURE__ */ Effect.fnUntraced(function* (bucket, push, re
|
|
|
262
260
|
},
|
|
263
261
|
signal: request.signal
|
|
264
262
|
};
|
|
263
|
+
if (row.shallow.length > 0) input.shallow = row.shallow;
|
|
265
264
|
return yield* Effect.result(push(input));
|
|
266
265
|
});
|
|
267
266
|
/**
|
|
@@ -270,8 +269,8 @@ const pushStaged = /* @__PURE__ */ Effect.fnUntraced(function* (bucket, push, re
|
|
|
270
269
|
* A row upkeep already deleted, under a complete stalled past `removeAt`, stays deleted. An end
|
|
271
270
|
* refused, as past a spent count, is logged at warning, and upkeep ends it instead.
|
|
272
271
|
*/
|
|
273
|
-
const ending = /* @__PURE__ */ Effect.fnUntraced(function* (
|
|
274
|
-
yield* endUpload(bucket, row);
|
|
272
|
+
const ending = /* @__PURE__ */ Effect.fnUntraced(function* (staging, repo, upload, row) {
|
|
273
|
+
yield* endUpload(staging.bucket, staging.uploads, row);
|
|
275
274
|
const { store } = yield* CoreParts;
|
|
276
275
|
const snapshot = yield* storeCall(() => store.read(repoScope(repo), [pushUploadRead(upload)]));
|
|
277
276
|
if ((snapshot.results[0] ?? []).length === 0) return;
|
|
@@ -286,7 +285,7 @@ const ending = /* @__PURE__ */ Effect.fnUntraced(function* (bucket, repo, upload
|
|
|
286
285
|
}
|
|
287
286
|
}]
|
|
288
287
|
}));
|
|
289
|
-
}, (ended,
|
|
288
|
+
}, (ended, _staging, repo, upload, row) => bestEffort(ended, (error) => Effect.logWarning("An upload's end was refused: upkeep ends it at its removeAt").pipe(Effect.annotateLogs({
|
|
290
289
|
repo,
|
|
291
290
|
upload,
|
|
292
291
|
key: row.key,
|
|
@@ -5,7 +5,7 @@ import { answerSpent } from "../store/errors.mjs";
|
|
|
5
5
|
import { joinedBytes } from "../protocol/bytes/joined.mjs";
|
|
6
6
|
import { onBand } from "../protocol/framing/band.mjs";
|
|
7
7
|
import { dataPkt, maxPktData } from "../protocol/framing/pkt-line.mjs";
|
|
8
|
-
import {
|
|
8
|
+
import { advertisementOf, receivePackCapabilities } from "../protocol/wire/advertisement.mjs";
|
|
9
9
|
import { pushOptionsRefusal, readPushStart } from "../protocol/wire/receive-pack.mjs";
|
|
10
10
|
import { reasonPrefix } from "../protocol/wire/push-limits.mjs";
|
|
11
11
|
import { encodePushReport } from "../protocol/wire/report-status.mjs";
|
|
@@ -13,11 +13,11 @@ import { pushUploadMost } from "../storage/push-uploads.mjs";
|
|
|
13
13
|
import { advertisementType, gitAnswer, hintLines, resultType } from "./answers.mjs";
|
|
14
14
|
import { brokenBody, drainLimit, plainBody, plainLength, pushStartLimit, readStart, receiveKeepAliveMs } from "./bodies.mjs";
|
|
15
15
|
import * as Effect from "effect/Effect";
|
|
16
|
-
import * as
|
|
17
|
-
import * as Result from "effect/Result";
|
|
16
|
+
import * as Option from "effect/Option";
|
|
18
17
|
import * as Cause from "effect/Cause";
|
|
19
18
|
import * as Exit from "effect/Exit";
|
|
20
|
-
import * as
|
|
19
|
+
import * as Result from "effect/Result";
|
|
20
|
+
import * as Predicate from "effect/Predicate";
|
|
21
21
|
import * as Fiber from "effect/Fiber";
|
|
22
22
|
// src/http/receive-pack.ts
|
|
23
23
|
/**
|
|
@@ -46,11 +46,13 @@ const unwritable = (error) => gitError("INTERNAL", `Git's answer can't be writte
|
|
|
46
46
|
*/
|
|
47
47
|
const receivePackRefs = (parts, caller, repo, missing) => routeCounted(parts, Effect.gen(function* () {
|
|
48
48
|
const receiving = yield* parts.receive(caller, repo);
|
|
49
|
-
const body = yield*
|
|
49
|
+
const body = yield* advertisementOf(service, receiving.refs, receivePackCapabilities(parts.agent, offersOf(parts)), receiving.hidden);
|
|
50
50
|
return gitAnswer(advertisementType(service), body);
|
|
51
51
|
}).pipe(Effect.catchTag("WireEncodeError", (error) => Effect.fail(unwritable(error))), Effect.catch(missing)));
|
|
52
52
|
/** What receive-pack offers past Git's own: the upload, and what one push may carry. */
|
|
53
|
-
const offersOf = (
|
|
53
|
+
const offersOf = (parts) => {
|
|
54
|
+
const { pushObjectsMost } = parts;
|
|
55
|
+
const uploads = parts.uploads();
|
|
54
56
|
const limits = {};
|
|
55
57
|
if (pushObjectsMost !== void 0) limits.objects = pushObjectsMost;
|
|
56
58
|
if (uploads === void 0) return { limits };
|
|
@@ -12,12 +12,12 @@ import { withRuledDepth } from "./fetch-depth.mjs";
|
|
|
12
12
|
import { requestSpent } from "../storage/fetch.mjs";
|
|
13
13
|
import { RequestCalls, countedAs } from "../store/call-count.mjs";
|
|
14
14
|
import { scopedReader } from "../protocol/bytes/reader.mjs";
|
|
15
|
-
import * as Effect from "effect/Effect";
|
|
16
|
-
import * as Predicate from "effect/Predicate";
|
|
17
15
|
import * as Clock$1 from "effect/Clock";
|
|
18
|
-
import * as
|
|
16
|
+
import * as Effect from "effect/Effect";
|
|
19
17
|
import * as Cause from "effect/Cause";
|
|
20
18
|
import * as Exit from "effect/Exit";
|
|
19
|
+
import * as Result from "effect/Result";
|
|
20
|
+
import * as Predicate from "effect/Predicate";
|
|
21
21
|
import * as Stream from "effect/Stream";
|
|
22
22
|
// src/http/upload-pack.ts
|
|
23
23
|
/**
|
|
@@ -106,11 +106,12 @@ const listingBody = (lines, next, refused, deadline, request) => Effect.suspend(
|
|
|
106
106
|
const uploadPackRefs = (parts, caller, repo, request, started, missing) => {
|
|
107
107
|
const deadline = parts.maxDuration === void 0 ? void 0 : deadlineOf(started, parts.maxDuration);
|
|
108
108
|
const answered = Effect.gen(function* () {
|
|
109
|
-
const
|
|
110
|
-
|
|
109
|
+
const v2 = asksV2(request);
|
|
110
|
+
const open = yield* parts.fetchOpen(caller, repo, v2 ? "skip" : "read");
|
|
111
|
+
if (v2) return gitAnswer(advertisementType(service), yield* encodeV2Capabilities(v2Capabilities(parts.agent)));
|
|
111
112
|
const listed = yield* open.lists;
|
|
112
113
|
const capabilities = uploadPackCapabilities(servedHead(listed), parts.agent);
|
|
113
|
-
const body = yield* listingBody(advertisementPages(service, listed, capabilities), listed.next, (message) => encodeRefusedAdvertisement(service, message), deadline, request);
|
|
114
|
+
const body = yield* listingBody(advertisementPages(service, listed, capabilities, listed.hidden), listed.next, (message) => encodeRefusedAdvertisement(service, message), deadline, request);
|
|
114
115
|
return gitAnswer(advertisementType(service), body);
|
|
115
116
|
}).pipe(Effect.catchTag("WireEncodeError", (error) => Effect.fail(unwritable(error))), Effect.catch(missing));
|
|
116
117
|
return countedRequest(parts, Effect.fail)(answered);
|
|
@@ -168,7 +169,7 @@ const uploadPack = (parts, caller, repo, request, started) => {
|
|
|
168
169
|
if (command.command === "ls-refs") {
|
|
169
170
|
const asked = yield* readLsRefs(command);
|
|
170
171
|
const listed = yield* open.lists;
|
|
171
|
-
const pages = yield* listingBody(lsRefsPages(listed, asked), listed.next, encodeErr, deadline, request);
|
|
172
|
+
const pages = yield* listingBody(lsRefsPages(listed, asked, listed.hidden), listed.next, encodeErr, deadline, request);
|
|
172
173
|
return gitAnswer(resultType(service), pages);
|
|
173
174
|
}
|
|
174
175
|
const served = yield* open.serve;
|
package/dist/index.d.mts
CHANGED
|
@@ -8,59 +8,76 @@ import "./server/namespaces.mjs";
|
|
|
8
8
|
import "./core/namespaces.mjs";
|
|
9
9
|
import "./auth/namespaces.mjs";
|
|
10
10
|
import "./event-streams/namespace.mjs";
|
|
11
|
+
import "./rest/namespace.mjs";
|
|
11
12
|
import "./merges/namespace.mjs";
|
|
12
13
|
import "./queue/namespace.mjs";
|
|
14
|
+
import "./lfs/namespace.mjs";
|
|
13
15
|
import { mergeQueue } from "./queue/host.mjs";
|
|
14
16
|
import { CommitCalls, CommitCreateInput, CommitDiffInput, Compare, CompareInput, ComparisonFile, LineCounts, LogInput, RefPublication, Revision, commits_d_exports } from "./contracts/commits.mjs";
|
|
15
17
|
import { Commit, DiffListing, MergeBaseInput, MergeBases, MergeLabels, MergeTree, ObjectWrite, ObjectWrites, PathObject, ReadOptions, ReadPage, RenamesSkipped, Signature, Tag, TagFields, TreeChange, TreeChanges, TreeDiffInput, TreeMergeInput, WalkInput } from "./contracts/engine.mjs";
|
|
16
|
-
import { BeforeAfter, CandidateClosed, CandidateClosedFields, CandidateOpened, CandidateReported, EntryAdded, EntryFailed, EntryMerged, EntryRemoved, EntryRetried,
|
|
18
|
+
import { BeforeAfter, CandidateClosed, CandidateClosedFields, CandidateOpened, CandidateReported, EntryAdded, EntryFailed, EntryMerged, EntryRemoved, EntryRetried, EventEnvelope, EventFeature, FeedItem, FenceReason, FencedPack, GitEvent, HoldEvent, HoldEventFields, IndexRefusal, QueueEvent, QueueRestarted, RefPush, RefUpdated, RepoCreated, RepoDeletedEvent, RepoEnvelope, RepoEvent, RepoIndexRefused, RepoJobFailed, RepoMaintained, RepoRenamed, RepoVisibilityChanged, RepoWorkFailed, TokenEvent, TokenEventFields, TopicAdded, TopicEnvelope, TopicEvent, TopicFailed, TopicMerged, TopicOpened, TopicRemoved, TopicReported, TopicWorkFailed, events_d_exports } from "./contracts/events.mjs";
|
|
17
19
|
import { File, FileCalls, FileDiff, FileReadInput, FilesDiffInput, FilesListInput, FilesRead, files_d_exports } from "./contracts/files.mjs";
|
|
18
20
|
import { ForkCalls, ForkCreateInput, ForkFetched, ForkGetInput, ForkHolder, ForkListInput, forks_d_exports } from "./contracts/forks.mjs";
|
|
19
21
|
import { LfsCalls, LfsFeature, LfsGetInput, LfsObject } from "./contracts/lfs.mjs";
|
|
20
22
|
import { MergeAnswer, MergeCalls, MergeCreateInput } from "./contracts/merges.mjs";
|
|
23
|
+
import { git_events_d_exports } from "./contracts/git-events.mjs";
|
|
21
24
|
import { HandlerOptions, SavedHandlerOptions } from "./contracts/handlers.mjs";
|
|
22
25
|
import { Grant, GrantAgainInput, GrantAgainRequest, GrantInput, GrantReachInput, GrantResolver } from "./contracts/grants.mjs";
|
|
23
|
-
import { GitScope, InternalRepoId, Oid, RefName, RepoName, TopicId, isInternalId } from "./contracts/ids.mjs";
|
|
26
|
+
import { GitScope, InternalRepoId, Oid, RefName, RepoName, TopicId, isInternalId, maxActorIdLength, maxRefNameLength } from "./contracts/ids.mjs";
|
|
27
|
+
import { authorize_d_exports } from "./contracts/authorize.mjs";
|
|
24
28
|
import { Allotment, CopyRow, CopyRowsInput, CopyRowsPage, EffectiveLimits, FetchAnswer, GitObject, GitObjects, HoldingsInput, HoldingsWalked, IndexCalls, IndexReachInput, IndexReached, IndexStatus, IndexTip, IndexTry, IndexTryInput, LinkedObjects, MaintainInput, ObjectHeader, ObjectHeadersInput, ObjectReadInput, ObjectReadResult, ObjectReader, ObjectReaderInput, ObjectSizesInput, ObjectsChange, ObjectsFactory, ObjectsFetchInput, ObjectsOpenInput, ObjectsRead, ObjectsReadInput, ObjectsStarting, ObjectsStartingInput, ObjectsStep, PushedCommit, PushedCommitsInput, Quarantine, ReadObject, ReadObjects, ReceiveInput, ShareInput, StageInput, Staged, StepAnswer, StepInput, WholeObject } from "./contracts/objects.mjs";
|
|
25
29
|
import { BypassOperation, FilesAllowOperation, ForkOperation, MeOperation, Operation, OperationKind, PushOperation, QueueAddOperation, QueueCandidateOperation, QueueEntryOperation, QueueReleaseOperation, QueueTargetOperation, RefsPrivateOperation, RepoListOperation, RepoOperation, TokenCreateOperation, TokenOperation, TokenParties, TopicOperation, WorkOperation } from "./contracts/operations.mjs";
|
|
26
|
-
import { authorize_d_exports } from "./contracts/authorize.mjs";
|
|
27
30
|
import { AddResult, Added, BatchOptions, Bisect, Candidate, CandidateCloseReason, CandidateId, CandidateReportInput, CandidateResult, CandidateState, CandidatesResult, Entry, EntryFailureReason, EntryFields, EntryGroups, EntryHoldInput, EntryHoldsInput, EntryId, EntryResult, EntryState, Held, Hold, HoldFields, HoldId, HoldResult, HoldsResult, JoinInput, Judged, LanesInput, MergeInput, MergeMethod, MergePlan, MergeQueueCalls, MergeQueueLayerOptions, MergeQueueOptions, MetaValue, PreviousQueueSchedule, QueueAddInput, QueueFailureCounts, QueueKeys, QueueListInput, QueueListResult, QueueMeta, QueueOf, QueueRecent, QueueTargetInput, QueueView, ReleaseResult, Released, RemoveResult, Removed, Report, ReportDetails, ReportOptions, ReportResult, Reported, RestartResult, Restarted, Retried, RetryResult, ScheduleOption, TargetHoldInput } from "./contracts/queue.mjs";
|
|
28
31
|
import { Ref, RefCalls, RefCount, RefCountInput, RefEdit, RefInput, RefListInput, RefProtection, RefSource, RefUpdate, RefUpdateKind, RefsUpdateInput, RefsUpdated, refs_d_exports } from "./contracts/refs.mjs";
|
|
29
|
-
import { BasicCredential, BearerCredential, ClientCredential, ClientCredentials, CredentialInput, RemoteCalls, RemoteOptions, TransportFailure, TransportRetry, WithoutActor } from "./contracts/remote.mjs";
|
|
30
32
|
import { repo_records_d_exports } from "./contracts/repo-records.mjs";
|
|
31
|
-
import {
|
|
33
|
+
import { BasicCredential, BearerCredential, ClientCredential, ClientCredentials, CredentialInput, RemoteCalls, RemoteOptions, TransportFailure, TransportRetry, WithoutActor } from "./contracts/remote.mjs";
|
|
34
|
+
import { PinnedRepo, RepoCalls, RepoCatalogueEntry, RepoCreateInput, RepoDeleted, RepoGetInput, RepoIndexHold, RepoInfo, RepoInfoStats, RepoInput, RepoListInput, RepoListOrder, RepoRecord, RepoRenameInput, RepoStats, RepoUpdateInput, RepoWork, repos_d_exports } from "./contracts/repos.mjs";
|
|
32
35
|
import { PeelInput, Peeled, TagCalls, TagCreateInput, peelMost, peelTagsMost, tags_d_exports } from "./contracts/tags.mjs";
|
|
33
|
-
import { Prepare, PrepareInput, Topic, TopicAddInput, TopicCalls, TopicCandidate, TopicEntry, TopicEntryInput, TopicFailure, TopicFailureReason, TopicListInput, TopicMergedEntry, TopicReportInput, TopicReportOptions, TopicReportQuestion, TopicState, TopicTarget, TopicWait, TopicsFactory
|
|
36
|
+
import { Prepare, PrepareInput, Topic, TopicAddInput, TopicCalls, TopicCandidate, TopicEntry, TopicEntryInput, TopicFailure, TopicFailureReason, TopicListInput, TopicMergedEntry, TopicReportInput, TopicReportOptions, TopicReportQuestion, TopicState, TopicTarget, TopicWait, TopicsFactory } from "./contracts/topics.mjs";
|
|
34
37
|
import { TreeCalls, TreeCreateInput, TreeEdit, TreeEntry, TreeInput, trees_d_exports } from "./contracts/trees.mjs";
|
|
38
|
+
import { policy_d_exports } from "./auth/policy.mjs";
|
|
35
39
|
import { BlobLimit, BlobNone, Bytes, FetchRequest, Filter, LfsPointers, ObjectType, ReadLimits, TreeFilter, allotmentWithin, objectsReadMost } from "./contracts/object-values.mjs";
|
|
40
|
+
import { event_streams_d_exports } from "./event-streams/event-streams.mjs";
|
|
36
41
|
import { Accepted, Awaitable, ContextValue, DataLossContext, DataLossReason, DecisionAnswer, ErrorContext, ExistingContext, ExistingReason, FailureResult, GitError, GitErrorBody, GitErrorCode, GitErrorContexts, GitErrorFields, GitErrorInput, GitErrorTagged, HostErrorContext, HostFunctionName, InvalidInputContext, InvalidInputReason, MissingContext, MissingReason, NotAllowedContext, NotAllowedReason, PreconditionContext, PreconditionReason, RefusalReason, RejectInput, Rejected, ResourceContext, ResourceReason, Result, Success, UnavailableContext, UnavailableReason, Verdict, accept, gitError, httpStatus, isGitError, isRefusalReason, reject } from "./contracts/result.mjs";
|
|
37
|
-
import { auth_d_exports } from "./auth/auth.mjs";
|
|
38
42
|
import { SliceRefusal } from "./client/slice-push.mjs";
|
|
39
|
-
import { policy_d_exports } from "./auth/policy.mjs";
|
|
40
43
|
import { gitPathOf } from "./http/paths.mjs";
|
|
41
|
-
import { git_namespace_d_exports } from "./server/git-namespace.mjs";
|
|
42
44
|
import { createGitServer } from "./server/server.mjs";
|
|
45
|
+
import { git_namespace_d_exports } from "./server/git-namespace.mjs";
|
|
43
46
|
import { lfs } from "./lfs/service.mjs";
|
|
44
47
|
import { branchRef, shortTarget } from "./queue/ids.mjs";
|
|
45
48
|
import { topics } from "./topics/host.mjs";
|
|
46
49
|
import { lfsPointerOid, maxLfsPointerBytes } from "./protocol/objects/lfs-pointer.mjs";
|
|
47
50
|
import { LfsPointersBuilder, lfsPointers } from "./storage/lfs-pointers.mjs";
|
|
48
|
-
import { objects_namespace_d_exports } from "./core/objects/objects-namespace.mjs";
|
|
49
51
|
import { loose, looseLimits } from "./storage/loose.mjs";
|
|
52
|
+
import { objects_namespace_d_exports } from "./core/objects/objects-namespace.mjs";
|
|
53
|
+
import { saved_callers_public_d_exports } from "./core/saved-callers-public.mjs";
|
|
50
54
|
import { PacksOptions, UnpackOptions, packs } from "./storage/packs.mjs";
|
|
51
|
-
import {
|
|
55
|
+
import { auth_namespace_d_exports } from "./auth/auth-namespace.mjs";
|
|
52
56
|
import { PacksMemory, packsMemory } from "./storage/packs-memory.mjs";
|
|
53
|
-
import { public_d_exports as public_d_exports$1 } from "./merges/public.mjs";
|
|
54
57
|
import { Option, RepackOptions } from "./storage/repack.mjs";
|
|
55
|
-
import {
|
|
58
|
+
import { layer_d_exports } from "./rest/layer.mjs";
|
|
56
59
|
import "./core/rules/namespace.mjs";
|
|
57
|
-
import {
|
|
60
|
+
import { public_d_exports as public_d_exports$3 } from "./merges/public.mjs";
|
|
61
|
+
import { FetchAdjustment, FetchReadInput, FetchReadTarget, FetchRule, FetchRuleInput, FileRuleOptions, ProtectOptions, PushContext, PushFacts, PushRule, PushRuleInput, RefPatterns, RuleOperation } from "./contracts/rules.mjs";
|
|
62
|
+
import { public_d_exports as public_d_exports$2 } from "./queue/public.mjs";
|
|
58
63
|
import { BeginPushUpload, FinishPushUpload, PushOptions, PushUploadOptions, PushUploadPart, PushUploadStarted } from "./contracts/push-uploads.mjs";
|
|
59
|
-
import {
|
|
64
|
+
import { public_d_exports as public_d_exports$1 } from "./lfs/public.mjs";
|
|
65
|
+
import { GitAdapter, GitNeeds, GitServer, GitServerOptions, HostFunctionFailure, ProvidedBy, Refusal, Resolve, ResolveInput, ServerCalls, ServerSetup } from "./contracts/server.mjs";
|
|
60
66
|
import { ImportState } from "./contracts/sync.mjs";
|
|
61
|
-
import { ApprovalBase, ApprovalDecision, ApprovalPageContext, ApprovalPageInput, ApprovalPrompt, ApprovedGrant, ConfirmApprovalPage, DeniedGrant, DeviceApproval, DeviceCodePage, DeviceCodeRequest, DeviceCodeResponse, DeviceExchange,
|
|
67
|
+
import { ApprovalBase, ApprovalDecision, ApprovalPageContext, ApprovalPageInput, ApprovalPrompt, ApprovedGrant, ConfirmApprovalPage, DeniedGrant, DeviceApproval, DeviceCodePage, DeviceCodeRequest, DeviceCodeResponse, DeviceExchange, OAuthClient, OAuthError, OAuthTokenResponse, WebApproval, WebAuthorize, WebExchange } from "./contracts/signin.mjs";
|
|
62
68
|
import { GitStore, GitStoreAddInput, GitStoreCommitInput, GitStoreReadInput, HeldPack, Holding, Listed, ListedInput, Pack } from "./contracts/store.mjs";
|
|
63
|
-
import { CreatedToken, PrefixTarget, TokenCalls, TokenCoverage, TokenCreateInput, TokenFields, TokenId, TokenInfo, TokenListInput, TokenRecord, TokenScope, TokenState, TokenTarget, TokensFeature, TrustedWriteInput, VerifiedToken
|
|
64
|
-
import { rules_d_exports } from "./core/rules/rules.mjs";
|
|
69
|
+
import { CreatedToken, PrefixTarget, TokenCalls, TokenCoverage, TokenCreateInput, TokenFields, TokenId, TokenInfo, TokenListInput, TokenRecord, TokenScope, TokenState, TokenTarget, TokensFeature, TrustedWriteInput, VerifiedToken } from "./contracts/tokens.mjs";
|
|
65
70
|
import { WorkCalls, WorkItem, WorkListInput, WorkWriteInput, work_d_exports } from "./contracts/work.mjs";
|
|
66
|
-
export { type Accepted, type AccessOption, type Acting, type Actor, type ActorId, type ActorInput, type AddResult, type Added, type Allotment, type AnonymousActor, type ApprovalBase, type ApprovalDecision, type ApprovalPageContext, type ApprovalPageInput, type ApprovalPrompt, type ApprovedGrant, auth_d_exports as Auth, type AuthInput, authorize_d_exports as Authorize, type AuthorizeAnswer, type AuthorizeInput, type Awaitable, type BasicCredential, type BatchOptions, type BearerCredential, type BeforeAfter, BeginPushUpload, type Bisect, type Blob, type BlobCalls, type BlobCreateInput, BlobLimit, BlobNone, blobs_d_exports as Blobs, type BoundAdapter, type BypassOperation, type Bytes, type CallInput, type Caller, type CallerGrant, type Candidate, type CandidateCloseReason, type CandidateClosed, type CandidateClosedFields, type CandidateId, type CandidateOpened, type CandidateReportInput, type CandidateReported, type CandidateResult, type CandidateState, type CandidatesResult, type ClientAdapter, type ClientCredential, type ClientCredentials, type ClientFetchInput, type ClientFetchResult, type ClientPushInput, type Commit, type CommitCalls, type CommitCreateInput, type CommitDiffInput, commits_d_exports as Commits, type Compare, type CompareInput, type ComparisonFile, type ConfirmApprovalPage, ContextValue, type CopyRow, type CopyRowsInput, type CopyRowsPage, type CreatedObject, type CreatedToken, type CredentialInput, type Credentials, type CredentialsBasic, type CredentialsBearer, DataLossContext, DataLossReason, type DecisionAnswer, type DeniedGrant, type DeviceApproval, type DeviceCodePage, type DeviceCodeRequest, type DeviceCodeResponse, type DeviceExchange, type DiffListing, type EffectiveLimits, type Entry, type EntryAdded, type EntryFailed, type EntryFailureReason, type EntryFields, type EntryGroups, type EntryHoldInput, type EntryHoldsInput, type EntryId, type EntryMerged, type EntryRemoved, type EntryResult, type EntryRetried, type EntryState, ErrorContext, type EventDelivery, type EventEnvelope, type EventFeature, event_streams_d_exports as EventStreams, events_d_exports as Events, type EventsHandler, type EventsInput, ExistingContext, ExistingReason, type ExtendedGit, type FailureResult, type FeedItem, type FenceReason, type FencedPack, type FetchAdjustment, type FetchAnswer, FetchRequest, type FetchRule, type FetchRuleInput, type File, type FileCalls, type FileDiff, type FileReadInput, type FileRuleOptions, files_d_exports as Files, type FilesAllowOperation, type FilesDiffInput, type FilesListInput, type FilesRead, Filter, FinishPushUpload, type ForkCalls, type ForkCreateInput, type ForkFetched, type ForkGetInput, type ForkHolder, type ForkListInput, type ForkOperation, forks_d_exports as Forks, git_namespace_d_exports as Git, type GitAdapter, type GitAuth, type GitAuthorize, type GitClient, type GitClientOptions, type GitError, GitErrorBody, type GitErrorCode, type GitErrorContexts, type GitErrorFields, type GitErrorInput, type GitErrorTagged, type GitEvent, type GitExtension, type GitHooks, type GitNeeds, type GitObject, type GitObjects, type GitRequest, type GitScope, type GitServer, type GitServerOptions, type GitSignInOptions, type GitStore, type GitStoreAddInput, type GitStoreCommitInput, type GitStoreReadInput, type Grant, type GrantAgainInput, type GrantAgainRequest, type GrantInput, type GrantReachInput, type GrantResolver, type HandlerOptions, type Held, type HeldPack, type HiddenSpan, type Hold, type HoldEvent, type HoldEventFields, type HoldFields, type HoldId, type HoldResult, type Holding, type HoldingsInput, type HoldingsWalked, type HoldsResult, HostErrorContext, type HostFunctionFailure, type HostFunctionName, type ImportState, type IndexCalls, type IndexReachInput, type IndexReached, type IndexRefusal, type IndexStatus, type IndexTip, type IndexTry, type IndexTryInput, InternalRepoId, InvalidInputContext, InvalidInputReason, type JoinInput, type Judged, type LanesInput, type LfsCalls, type LfsFeature, type LfsGetInput, type LfsObject, type LfsPointers, type LfsPointersBuilder, type LineCounts, type LinkedObjects, type Listed, type ListedInput, type Localize, type LogInput, type MaintainInput, type MeOperation, type MergeAnswer, type MergeBaseInput, type MergeBases, type MergeCalls, type MergeCreateInput, type MergeInput, type MergeLabels, type MergeMethod, type MergePlan, public_d_exports as MergeQueue, type MergeQueueCalls, type MergeQueueLayerOptions, type MergeQueueOptions, type MergeTree, public_d_exports$1 as Merges, type MetaValue, MissingContext, MissingReason, type NamedActor, NotAllowedContext, NotAllowedReason, type OAuthClient, type OAuthError, type OAuthTokenResponse, type ObjectHeader, type ObjectHeadersInput, type ObjectInput, type ObjectReadInput, type ObjectReadResult, type ObjectReader, type ObjectReaderInput, type ObjectSizesInput, type ObjectType, type ObjectWrite, type ObjectWrites, objects_namespace_d_exports as Objects, type ObjectsChange, type ObjectsFactory, type ObjectsFetchInput, type ObjectsOpenInput, type ObjectsRead, type ObjectsReadInput, type ObjectsStarting, type ObjectsStartingInput, type ObjectsStep, type Oid, type Operation, type OperationKind, type Option, type Pack, type PacksMemory, type PacksOptions, type PagedInput, type PathObject, type PeelInput, type Peeled, type PinnedRepo, policy_d_exports as Policy, type PostReceive, type PostReceiveInput, type PreReceive, PreconditionContext, PreconditionReason, type PrefixTarget, type Prepare, type PrepareInput, type PreviousQueueSchedule, type ProtectOptions, type ProvidedBy, type PushContext, type PushFacts, type PushHookInput, type PushOperation, type PushOptions, type PushRule, type PushRuleInput, type PushUploadOptions, PushUploadPart, PushUploadStarted, type PushedCommit, type PushedCommitsInput, type Quarantine, type QueueAddInput, type QueueAddOperation, type QueueCandidateOperation, type QueueEntryOperation, type QueueEvent, type QueueFailureCounts, type QueueKeys, type QueueListInput, type QueueListResult, type QueueMeta, type QueueOf, type QueueRecent, type QueueReleaseOperation, type QueueRestarted, type QueueTargetInput, type QueueTargetOperation, type QueueView, type ReadLimits, type ReadObject, type ReadObjects, type ReadOptions, type ReadPage, type ReceiveInput, type Ref, type RefAudience, type RefCalls, type RefCount, type RefCountInput, type RefEdit, type RefForced, type RefInput, type RefListInput, type RefName, type RefPatterns, type RefProtection, type RefPublication, type RefPush, type RefSource, type RefUpdate, type RefUpdateKind, type RefUpdated, type RefView, refs_d_exports as Refs, type RefsPrivateOperation, type RefsUpdateInput, type RefsUpdated, type Refusal, type RefusalReason, type RejectInput, type Rejected, type ReleaseResult, type Released, type RemoteCalls, type RemoteOptions, type RemoteRefsInput, type RemoveResult, type Removed, type RenamesSkipped, type RepackOptions, type RepoAccess, type RepoCalls, type RepoCatalogueEntry, type RepoCreateInput, type RepoCreated, type RepoDeleted, type RepoDeletedEvent, type RepoEnvelope, type RepoEvent, type RepoIndexHold, type RepoIndexRefused, type RepoInfo, type RepoInput, type RepoJobFailed, type RepoListInput, type RepoListOperation, type RepoListOrder, type RepoMaintained, type RepoName, type RepoOperation, type RepoRecord, repo_records_d_exports as RepoRecords, type RepoRenameInput, type RepoRenamed, type RepoStats, type RepoUpdateInput, type RepoVisibilityChanged, type RepoWork, type RepoWorkFailed, type Report, type ReportDetails, type ReportOptions, type ReportResult, type Reported, repos_d_exports as Repos, type Resolve, type ResolveInput, ResourceContext, ResourceReason, type RestartResult, type Restarted, type Result, type Retried, type RetryResult, type Revision, type RuleOperation, rules_d_exports as Rules, type SavedHandlerOptions, type ScheduleOption, type ServerCalls, type ServerSetup, type ShareInput, type Signature, type SliceRefusal, type StageInput, type Staged, type StepAnswer, type StepInput, type Success, type Tag, type TagCalls, type TagCreateInput, type TagFields, tags_d_exports as Tags, type TargetHoldInput, type TokenCalls, type TokenCoverage, type TokenCreateInput, type TokenCreateOperation, type TokenEvent, type TokenEventFields, type TokenFields, type TokenId, type TokenInfo, type TokenListInput, type TokenOperation, type TokenParties, type TokenRecord, type TokenScope, type TokenState, type TokenTarget, tokens_d_exports as Tokens, type TokensFeature, type Topic, type TopicAddInput, type TopicAdded, type TopicCalls, type TopicCandidate, type TopicEntry, type TopicEntryInput, type TopicEnvelope, type TopicEvent, type TopicFailed, type TopicFailure, type TopicFailureReason, type TopicId, type TopicListInput, type TopicMerged, type TopicMergedEntry, type TopicOpened, type TopicOperation, type TopicRemoved, type TopicReportInput, type TopicReportOptions, type TopicReportQuestion, type TopicReported, type TopicState, type TopicTarget, type TopicWait, type TopicWorkFailed, type TopicsFactory, type TopicsOptions, type TransportFailure, type TransportRetry, type TreeCalls, type TreeChange, type TreeChanges, type TreeCreateInput, type TreeDiffInput, type TreeEdit, type TreeEntry, TreeFilter, type TreeInput, type TreeMergeInput, trees_d_exports as Trees, type TrustedWriteInput, UnavailableContext, UnavailableReason, type UnpackOptions, Verdict, type VerifiedToken, type WalkInput, type WebApproval, type WebAuthorize, type WebExchange, type WholeObject, type WithoutActor, work_d_exports as Work, type WorkCalls, type WorkItem, type WorkListInput, type WorkOperation, type WorkWriteInput, type WriteInput, accept, allotmentWithin, branchRef, createGitClient, createGitServer, gitError, gitPathOf, httpStatus, isGitError, isInternalId, isRefusalReason, lfs, lfsPointerOid, lfsPointers, loose, looseLimits, maxLfsPointerBytes, mergeQueue, objectsReadMost, packs, packsMemory, paginate, peelMost, peelTagsMost, reject, shortTarget, topics };
|
|
71
|
+
import { rules_d_exports } from "./core/rules/rules.mjs";
|
|
72
|
+
import "./access/namespace.mjs";
|
|
73
|
+
import { public_d_exports as public_d_exports$4 } from "./access/public.mjs";
|
|
74
|
+
import "./topics/namespace.mjs";
|
|
75
|
+
import { public_d_exports as public_d_exports$6 } from "./topics/public.mjs";
|
|
76
|
+
import "./auth/tokens-namespace.mjs";
|
|
77
|
+
import { tokens_public_d_exports } from "./auth/tokens-public.mjs";
|
|
78
|
+
import "./core/hooks/namespace.mjs";
|
|
79
|
+
import { public_d_exports } from "./core/hooks/public.mjs";
|
|
80
|
+
import { PushHookInput } from "./contracts/git-hooks.mjs";
|
|
81
|
+
import { public_d_exports as public_d_exports$5 } from "./signin/public.mjs";
|
|
82
|
+
import "./signin/namespace.mjs";
|
|
83
|
+
export { type Accepted, type AccessOption, type Acting, type Actor, type ActorId, type ActorInput, type AddResult, type Added, type Allotment, type AnonymousActor, type ApprovalBase, type ApprovalDecision, type ApprovalPageContext, type ApprovalPageInput, type ApprovalPrompt, type ApprovedGrant, auth_namespace_d_exports as Auth, type AuthInput, authorize_d_exports as Authorize, type AuthorizeAnswer, type AuthorizeInput, type Awaitable, type BasicCredential, type BatchOptions, type BearerCredential, type BeforeAfter, BeginPushUpload, type Bisect, type Blob, type BlobCalls, type BlobCreateInput, BlobLimit, BlobNone, blobs_d_exports as Blobs, type BypassOperation, type Bytes, type CallInput, type Caller, type CallerGrant, type Candidate, type CandidateCloseReason, type CandidateClosed, type CandidateClosedFields, type CandidateId, type CandidateOpened, type CandidateReportInput, type CandidateReported, type CandidateResult, type CandidateState, type CandidatesResult, type ClientAdapter, type ClientCredential, type ClientCredentials, type ClientFetchInput, type ClientFetchResult, type ClientPushInput, type Commit, type CommitCalls, type CommitCreateInput, type CommitDiffInput, commits_d_exports as Commits, type Compare, type CompareInput, type ComparisonFile, type ConfirmApprovalPage, ContextValue, type CopyRow, type CopyRowsInput, type CopyRowsPage, type CreatedObject, type CreatedToken, type CredentialInput, type Credentials, type CredentialsBasic, type CredentialsBearer, DataLossContext, DataLossReason, type DecisionAnswer, type DeniedGrant, type DeviceApproval, type DeviceCodePage, type DeviceCodeRequest, type DeviceCodeResponse, type DeviceExchange, type DiffListing, type EffectiveLimits, type Entry, type EntryAdded, type EntryFailed, type EntryFailureReason, type EntryFields, type EntryGroups, type EntryHoldInput, type EntryHoldsInput, type EntryId, type EntryMerged, type EntryRemoved, type EntryResult, type EntryRetried, type EntryState, ErrorContext, type EventEnvelope, type EventFeature, event_streams_d_exports as EventStreams, events_d_exports as Events, ExistingContext, ExistingReason, type FailureResult, type FeedItem, type FenceReason, type FencedPack, type FetchAdjustment, type FetchAnswer, type FetchReadInput, type FetchReadTarget, FetchRequest, type FetchRule, type FetchRuleInput, type File, type FileCalls, type FileDiff, type FileReadInput, type FileRuleOptions, files_d_exports as Files, type FilesAllowOperation, type FilesDiffInput, type FilesListInput, type FilesRead, Filter, FinishPushUpload, type ForkCalls, type ForkCreateInput, type ForkFetched, type ForkGetInput, type ForkHolder, type ForkListInput, type ForkOperation, forks_d_exports as Forks, git_namespace_d_exports as Git, type GitAdapter, type GitAuth, type GitAuthorize, type GitClient, type GitClientOptions, type GitError, GitErrorBody, type GitErrorCode, type GitErrorContexts, type GitErrorFields, type GitErrorInput, type GitErrorTagged, type GitEvent, git_events_d_exports as GitEvents, public_d_exports as GitHooks, type GitNeeds, type GitObject, type GitObjects, type GitScope, type GitServer, type GitServerOptions, type GitStore, type GitStoreAddInput, type GitStoreCommitInput, type GitStoreReadInput, type Grant, type GrantAgainInput, type GrantAgainRequest, type GrantInput, type GrantReachInput, type GrantResolver, type HandlerOptions, type Held, type HeldPack, type HiddenSpan, type Hold, type HoldEvent, type HoldEventFields, type HoldFields, type HoldId, type HoldResult, type Holding, type HoldingsInput, type HoldingsWalked, type HoldsResult, HostErrorContext, type HostFunctionFailure, type HostFunctionName, type ImportState, type IndexCalls, type IndexReachInput, type IndexReached, type IndexRefusal, type IndexStatus, type IndexTip, type IndexTry, type IndexTryInput, InternalRepoId, InvalidInputContext, InvalidInputReason, type JoinInput, type Judged, type LanesInput, public_d_exports$1 as Lfs, type LfsCalls, type LfsFeature, type LfsGetInput, type LfsObject, type LfsPointers, type LfsPointersBuilder, type LineCounts, type LinkedObjects, type Listed, type ListedInput, type Localize, type LogInput, type MaintainInput, type MeOperation, type MergeAnswer, type MergeBaseInput, type MergeBases, type MergeCalls, type MergeCreateInput, type MergeInput, type MergeLabels, type MergeMethod, type MergePlan, public_d_exports$2 as MergeQueue, type MergeQueueCalls, type MergeQueueLayerOptions, type MergeQueueOptions, type MergeTree, public_d_exports$3 as Merges, type MetaValue, MissingContext, MissingReason, type NamedActor, NotAllowedContext, NotAllowedReason, type OAuthClient, type OAuthError, type OAuthTokenResponse, type ObjectHeader, type ObjectHeadersInput, type ObjectInput, type ObjectReadInput, type ObjectReadResult, type ObjectReader, type ObjectReaderInput, type ObjectSizesInput, type ObjectType, type ObjectWrite, type ObjectWrites, objects_namespace_d_exports as Objects, type ObjectsChange, type ObjectsFactory, type ObjectsFetchInput, type ObjectsOpenInput, type ObjectsRead, type ObjectsReadInput, type ObjectsStarting, type ObjectsStartingInput, type ObjectsStep, type Oid, type Operation, type OperationKind, type Option, type Pack, type PacksMemory, type PacksOptions, type PagedInput, type PathObject, type PeelInput, type Peeled, type PinnedRepo, policy_d_exports as Policy, PreconditionContext, PreconditionReason, type PrefixTarget, type Prepare, type PrepareInput, type PreviousQueueSchedule, public_d_exports$4 as PrivateRefs, type ProtectOptions, type ProvidedBy, type PushContext, type PushFacts, type PushHookInput, type PushOperation, type PushOptions, type PushRule, type PushRuleInput, type PushUploadOptions, PushUploadPart, PushUploadStarted, type PushedCommit, type PushedCommitsInput, type Quarantine, type QueueAddInput, type QueueAddOperation, type QueueCandidateOperation, type QueueEntryOperation, type QueueEvent, type QueueFailureCounts, type QueueKeys, type QueueListInput, type QueueListResult, type QueueMeta, type QueueOf, type QueueRecent, type QueueReleaseOperation, type QueueRestarted, type QueueTargetInput, type QueueTargetOperation, type QueueView, type ReadLimits, type ReadObject, type ReadObjects, type ReadOptions, type ReadPage, type ReceiveInput, type Ref, type RefAudience, type RefCalls, type RefCount, type RefCountInput, type RefEdit, type RefForced, type RefInput, type RefListInput, type RefName, type RefPatterns, type RefProtection, type RefPublication, type RefPush, type RefSource, type RefUpdate, type RefUpdateKind, type RefUpdated, type RefView, refs_d_exports as Refs, type RefsPrivateOperation, type RefsUpdateInput, type RefsUpdated, type Refusal, type RefusalReason, type RejectInput, type Rejected, type ReleaseResult, type Released, type RemoteCalls, type RemoteOptions, type RemoteRefsInput, type RemoveResult, type Removed, type RenamesSkipped, type RepackOptions, type RepoAccess, type RepoCalls, type RepoCatalogueEntry, type RepoCreateInput, type RepoCreated, type RepoDeleted, type RepoDeletedEvent, type RepoEnvelope, type RepoEvent, type RepoGetInput, type RepoIndexHold, type RepoIndexRefused, type RepoInfo, type RepoInfoStats, type RepoInput, type RepoJobFailed, type RepoListInput, type RepoListOperation, type RepoListOrder, type RepoMaintained, type RepoName, type RepoOperation, type RepoRecord, repo_records_d_exports as RepoRecords, type RepoRenameInput, type RepoRenamed, type RepoStats, type RepoUpdateInput, type RepoVisibilityChanged, type RepoWork, type RepoWorkFailed, type Report, type ReportDetails, type ReportOptions, type ReportResult, type Reported, repos_d_exports as Repos, type Resolve, type ResolveInput, ResourceContext, ResourceReason, layer_d_exports as Rest, type RestartResult, type Restarted, type Result, type Retried, type RetryResult, type Revision, type RuleOperation, rules_d_exports as Rules, saved_callers_public_d_exports as SavedCallers, type SavedHandlerOptions, type ScheduleOption, type ServerCalls, type ServerSetup, type ShareInput, public_d_exports$5 as SignIn, type Signature, type SliceRefusal, type StageInput, type Staged, type StepAnswer, type StepInput, type Success, type Tag, type TagCalls, type TagCreateInput, type TagFields, tags_d_exports as Tags, type TargetHoldInput, type TokenCalls, type TokenCoverage, type TokenCreateInput, type TokenCreateOperation, type TokenEvent, type TokenEventFields, type TokenFields, type TokenId, type TokenInfo, type TokenListInput, type TokenOperation, type TokenParties, type TokenRecord, type TokenScope, type TokenState, type TokenTarget, tokens_public_d_exports as Tokens, type TokensFeature, type Topic, type TopicAddInput, type TopicAdded, type TopicCalls, type TopicCandidate, type TopicEntry, type TopicEntryInput, type TopicEnvelope, type TopicEvent, type TopicFailed, type TopicFailure, type TopicFailureReason, type TopicId, type TopicListInput, type TopicMerged, type TopicMergedEntry, type TopicOpened, type TopicOperation, type TopicRemoved, type TopicReportInput, type TopicReportOptions, type TopicReportQuestion, type TopicReported, type TopicState, type TopicTarget, type TopicWait, type TopicWorkFailed, public_d_exports$6 as Topics, type TopicsFactory, type TransportFailure, type TransportRetry, type TreeCalls, type TreeChange, type TreeChanges, type TreeCreateInput, type TreeDiffInput, type TreeEdit, type TreeEntry, TreeFilter, type TreeInput, type TreeMergeInput, trees_d_exports as Trees, type TrustedWriteInput, UnavailableContext, UnavailableReason, type UnpackOptions, Verdict, type VerifiedToken, type WalkInput, type WebApproval, type WebAuthorize, type WebExchange, type WholeObject, type WithoutActor, work_d_exports as Work, type WorkCalls, type WorkItem, type WorkListInput, type WorkOperation, type WorkWriteInput, type WriteInput, accept, allotmentWithin, branchRef, createGitClient, createGitServer, gitError, gitPathOf, httpStatus, isGitError, isInternalId, isRefusalReason, lfs, lfsPointerOid, lfsPointers, loose, looseLimits, maxActorIdLength, maxLfsPointerBytes, maxRefNameLength, mergeQueue, objectsReadMost, packs, packsMemory, paginate, peelMost, peelTagsMost, reject, shortTarget, topics };
|
package/dist/index.mjs
CHANGED
|
@@ -5,22 +5,25 @@ import { commits_exports } from "./contracts/commits.mjs";
|
|
|
5
5
|
import { events_exports } from "./contracts/events.mjs";
|
|
6
6
|
import { files_exports } from "./contracts/files.mjs";
|
|
7
7
|
import { forks_exports } from "./contracts/forks.mjs";
|
|
8
|
+
import { git_events_exports } from "./contracts/git-events.mjs";
|
|
8
9
|
import { refs_exports } from "./contracts/refs.mjs";
|
|
9
10
|
import { repo_records_exports } from "./contracts/repo-records.mjs";
|
|
10
11
|
import { repos_exports } from "./contracts/repos.mjs";
|
|
11
12
|
import { peelMost, peelTagsMost, tags_exports } from "./contracts/tags.mjs";
|
|
12
|
-
import { tokens_exports } from "./contracts/tokens.mjs";
|
|
13
13
|
import { trees_exports } from "./contracts/trees.mjs";
|
|
14
14
|
import { work_exports } from "./contracts/work.mjs";
|
|
15
15
|
import { git_namespace_exports } from "./server/git-namespace.mjs";
|
|
16
16
|
import { objects_namespace_exports } from "./core/objects/objects-namespace.mjs";
|
|
17
|
-
import {
|
|
17
|
+
import { saved_callers_public_exports } from "./core/saved-callers-public.mjs";
|
|
18
|
+
import { auth_namespace_exports } from "./auth/auth-namespace.mjs";
|
|
18
19
|
import { policy_exports } from "./auth/policy.mjs";
|
|
19
20
|
import { event_streams_exports } from "./event-streams/event-streams.mjs";
|
|
20
|
-
import {
|
|
21
|
-
import { public_exports } from "./
|
|
21
|
+
import { layer_exports } from "./rest/layer.mjs";
|
|
22
|
+
import { public_exports as public_exports$3 } from "./merges/public.mjs";
|
|
23
|
+
import { public_exports as public_exports$2 } from "./queue/public.mjs";
|
|
24
|
+
import { public_exports as public_exports$1 } from "./lfs/public.mjs";
|
|
22
25
|
import { mergeQueue } from "./queue/host.mjs";
|
|
23
|
-
import { InternalRepoId, isInternalId } from "./contracts/ids.mjs";
|
|
26
|
+
import { InternalRepoId, isInternalId, maxActorIdLength, maxRefNameLength } from "./contracts/ids.mjs";
|
|
24
27
|
import { BlobLimit, BlobNone, FetchRequest, Filter, TreeFilter, allotmentWithin, objectsReadMost } from "./contracts/object-values.mjs";
|
|
25
28
|
import { ContextValue, DataLossContext, DataLossReason, ErrorContext, ExistingContext, ExistingReason, GitErrorBody, HostErrorContext, InvalidInputContext, InvalidInputReason, MissingContext, MissingReason, NotAllowedContext, NotAllowedReason, PreconditionContext, PreconditionReason, ResourceContext, ResourceReason, UnavailableContext, UnavailableReason, Verdict, accept, gitError, httpStatus, isGitError, isRefusalReason, reject } from "./contracts/result.mjs";
|
|
26
29
|
import { gitPathOf } from "./http/paths.mjs";
|
|
@@ -35,4 +38,9 @@ import { packs } from "./storage/packs.mjs";
|
|
|
35
38
|
import { packsMemory } from "./storage/packs-memory.mjs";
|
|
36
39
|
import { rules_exports } from "./core/rules/rules.mjs";
|
|
37
40
|
import { BeginPushUpload, FinishPushUpload, PushUploadPart, PushUploadStarted } from "./contracts/push-uploads.mjs";
|
|
38
|
-
|
|
41
|
+
import { public_exports as public_exports$4 } from "./access/public.mjs";
|
|
42
|
+
import { public_exports as public_exports$6 } from "./topics/public.mjs";
|
|
43
|
+
import { tokens_public_exports } from "./auth/tokens-public.mjs";
|
|
44
|
+
import { public_exports } from "./core/hooks/public.mjs";
|
|
45
|
+
import { public_exports as public_exports$5 } from "./signin/public.mjs";
|
|
46
|
+
export { auth_namespace_exports as Auth, authorize_exports as Authorize, BeginPushUpload, BlobLimit, BlobNone, blobs_exports as Blobs, commits_exports as Commits, ContextValue, DataLossContext, DataLossReason, ErrorContext, event_streams_exports as EventStreams, events_exports as Events, ExistingContext, ExistingReason, FetchRequest, files_exports as Files, Filter, FinishPushUpload, forks_exports as Forks, git_namespace_exports as Git, GitErrorBody, git_events_exports as GitEvents, public_exports as GitHooks, HostErrorContext, InternalRepoId, InvalidInputContext, InvalidInputReason, public_exports$1 as Lfs, public_exports$2 as MergeQueue, public_exports$3 as Merges, MissingContext, MissingReason, NotAllowedContext, NotAllowedReason, objects_namespace_exports as Objects, policy_exports as Policy, PreconditionContext, PreconditionReason, public_exports$4 as PrivateRefs, PushUploadPart, PushUploadStarted, refs_exports as Refs, repo_records_exports as RepoRecords, repos_exports as Repos, ResourceContext, ResourceReason, layer_exports as Rest, rules_exports as Rules, saved_callers_public_exports as SavedCallers, public_exports$5 as SignIn, tags_exports as Tags, tokens_public_exports as Tokens, public_exports$6 as Topics, TreeFilter, trees_exports as Trees, UnavailableContext, UnavailableReason, Verdict, work_exports as Work, accept, allotmentWithin, branchRef, createGitClient, createGitServer, gitError, gitPathOf, httpStatus, isGitError, isInternalId, isRefusalReason, lfs, lfsPointerOid, lfsPointers, loose, looseLimits, maxActorIdLength, maxLfsPointerBytes, maxRefNameLength, mergeQueue, objectsReadMost, packs, packsMemory, paginate, peelMost, peelTagsMost, reject, shortTarget, topics };
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { LfsObject } from "../contracts/lfs.mjs";
|
|
2
|
+
import { GitError } from "../contracts/result.mjs";
|
|
3
|
+
import { RegisteredCheck } from "../core/rules/context.mjs";
|
|
4
|
+
import { Bucket, Links } from "../contracts/objects.mjs";
|
|
5
|
+
import { CoreNeeds } from "../core/parts.mjs";
|
|
6
|
+
import { ObjectRead } from "./objects.mjs";
|
|
7
|
+
import { LfsService } from "./service.mjs";
|
|
8
|
+
import * as Effect from "effect/Effect";
|
|
9
|
+
import * as Context from "effect/Context";
|
|
10
|
+
/** A listed object's bytes, as `objectOf` reads them over LFS's parts. */
|
|
11
|
+
export type LfsRead = (read: ObjectRead) => Effect.Effect<LfsObject, GitError, CoreNeeds>;
|
|
12
|
+
/**
|
|
13
|
+
* What LFS attaches to the server: its routes, which Git's handler serves, its push check, and its
|
|
14
|
+
* object reads, which `git.lfs.get` calls.
|
|
15
|
+
*/
|
|
16
|
+
export interface LfsAttached {
|
|
17
|
+
readonly service: LfsService;
|
|
18
|
+
readonly check: RegisteredCheck;
|
|
19
|
+
readonly read: LfsRead;
|
|
20
|
+
}
|
|
21
|
+
declare const LfsBase_base: Context.ServiceClass<LfsBase, "@ref0/git/lfs/LfsBase", {
|
|
22
|
+
readonly needs: Context.Context<CoreNeeds>;
|
|
23
|
+
readonly bucket: Bucket | undefined;
|
|
24
|
+
readonly links: Links | undefined;
|
|
25
|
+
readonly attach: (lfs: LfsAttached) => Effect.Effect<void>;
|
|
26
|
+
}>;
|
|
27
|
+
/**
|
|
28
|
+
* What `Git.layer` gives `Lfs.layer`: the server's services, the adapter's bucket, each call it
|
|
29
|
+
* makes charged, and its links, when it has them; and `attach`, once, before the seal.
|
|
30
|
+
*/
|
|
31
|
+
export declare class LfsBase extends /* @__PURE__ */ LfsBase_base {}
|
|
32
|
+
export {};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import * as Context from "effect/Context";
|
|
2
|
+
// src/lfs/base.ts
|
|
3
|
+
/**
|
|
4
|
+
* What `Git.layer` gives `Lfs.layer`: the server's services, the adapter's bucket, each call it
|
|
5
|
+
* makes charged, and its links, when it has them; and `attach`, once, before the seal.
|
|
6
|
+
*/
|
|
7
|
+
var LfsBase = class extends (/* @__PURE__ */ Context.Service()("@ref0/git/lfs/LfsBase")) {};
|
|
8
|
+
export { LfsBase };
|
package/dist/lfs/calls.mjs
CHANGED
|
@@ -1,16 +1,26 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { fail } from "../contracts/result.mjs";
|
|
2
|
+
import { callerFor, openFor } from "../core/access.mjs";
|
|
3
|
+
import * as Effect from "effect/Effect";
|
|
3
4
|
// src/lfs/calls.ts
|
|
4
|
-
/**
|
|
5
|
-
|
|
5
|
+
/**
|
|
6
|
+
* `lfs.get`: an object's bytes as the Worker's download reads them, for a call, not a client, through
|
|
7
|
+
* `read`, the one `Lfs.layer` attached. Without it, every object is `NOT_FOUND` to a caller who may
|
|
8
|
+
* read the repo. The drop-in's contents and archives call it until they move onto `Lfs` (2c).
|
|
9
|
+
*/
|
|
10
|
+
const lfsCalls = (read, bound) => {
|
|
6
11
|
const callerOf = callerFor(bound);
|
|
7
|
-
return { get: (repo, { oid, size, signal, internalId, ...input }) =>
|
|
8
|
-
caller
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
12
|
+
return { get: (repo, { oid, size, signal, internalId, request, ...input }) => {
|
|
13
|
+
const caller = callerOf(input);
|
|
14
|
+
const reading = read();
|
|
15
|
+
return reading === void 0 ? Effect.andThen(openFor(caller, repo, false, internalId), fail("NOT_FOUND", "Object does not exist")) : reading({
|
|
16
|
+
caller,
|
|
17
|
+
repo,
|
|
18
|
+
oid,
|
|
19
|
+
size,
|
|
20
|
+
signal,
|
|
21
|
+
internalId,
|
|
22
|
+
request
|
|
23
|
+
});
|
|
24
|
+
} };
|
|
15
25
|
};
|
|
16
26
|
export { lfsCalls };
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { Git } from "../contracts/git.mjs";
|
|
2
|
+
import { LfsGetInput, LfsObject } from "../contracts/lfs.mjs";
|
|
3
|
+
import { RepoName } from "../contracts/ids.mjs";
|
|
4
|
+
import { GitError } from "../contracts/result.mjs";
|
|
5
|
+
import { LfsBase } from "./base.mjs";
|
|
6
|
+
import * as Effect from "effect/Effect";
|
|
7
|
+
import { Bucket } from "@ref0/infra";
|
|
8
|
+
import * as Context from "effect/Context";
|
|
9
|
+
import * as Layer from "effect/Layer";
|
|
10
|
+
declare const Lfs_base: Context.ServiceClass<Lfs, "@ref0/git/Lfs", {
|
|
11
|
+
/**
|
|
12
|
+
* An object the repo lists, or a source up its fork chain does, for a caller who may read
|
|
13
|
+
* the repo: the read refusal for any other. `NOT_FOUND` for an object none lists or of
|
|
14
|
+
* another `size`, and, under `access`, for one no ref the caller sees points at, as
|
|
15
|
+
* `privateRefs` says; `DATA_LOSS` for a listed object whose bytes are gone. `signal`
|
|
16
|
+
* aborted cancels the bucket's stream.
|
|
17
|
+
*/
|
|
18
|
+
readonly get: (repo: RepoName, input: LfsGetInput) => Effect.Effect<LfsObject, GitError>;
|
|
19
|
+
}>;
|
|
20
|
+
/** Git LFS's objects, read as a call rather than over git-lfs's own HTTP API. */
|
|
21
|
+
export declare class Lfs extends /* @__PURE__ */ Lfs_base {}
|
|
22
|
+
/**
|
|
23
|
+
* Git LFS, a feature over core: it registers `lfs`, keeps its objects in the host's `Bucket`, and
|
|
24
|
+
* serves git-lfs's API under each repo's `info/lfs/`. With `BucketLinks` its transfers go straight
|
|
25
|
+
* to the bucket; without, through the Worker.
|
|
26
|
+
*/
|
|
27
|
+
export declare const layer: () => Layer.Layer<Lfs, GitError, Git | LfsBase | Bucket.Bucket>;
|
|
28
|
+
export {};
|