The best way to control Claude Code, Codex and more from any computer or phone

main
ts 65 lines 2.38 KB
Raw
1 /**
2 * @alchemy.run/git — a Git hosting service on Cloudflare Workers,
3 * Durable Objects, and R2, built with Alchemy Effect-native Workers.
4 *
5 * Public surface:
6 * - The HTTP contract ({@link GitApi}, aliased {@link Api}): every plane as
7 * one `HttpApi`, each endpoint an `HttpApiEndpoint`, each group a
8 * class, with the schemas and tagged errors.
9 * - {@link Handlers} and {@link ApiHandlersLive}: shared handler implementations.
10 * {@link ApiLive} registers public routes; merge it beside application routes.
11 * {@link GroupsLive} exposes native group implementations for overrides.
12 * - {@link Engine}: transport-independent operations, with scoped prepare/commit
13 * for application authorization and validation. HTTP codecs live in `@alchemy.run/git/Http`.
14 * - The deployable pieces: {@link ApiLive} + {@link InternalApiLive}, the
15 * {@link GitRepo} / {@link Registry} Durable Objects, and the storage and
16 * hasher blocks.
17 *
18 * Internals (wire-protocol codecs under `Protocol/`, storage under `Store/`,
19 * alarm jobs under `Jobs/`) are deliberately not re-exported here — deep
20 * import them via `@alchemy.run/git/Protocol/Pkt` style paths when
21 * needed.
22 */
23 export * from "./Api.ts";
24 export { GitApi as Api } from "./Api.ts";
25 export { Engine, EngineLive } from "./Engine.ts";
26 export type { PushInput, PreparedPush, RefUpdate } from "./Push.ts";
27 export * as Http from "./Http.ts";
28 export * as Push from "./PushInput.ts";
29 export * from "./Server.ts";
30 export { parseCommit, parseTree, ZERO_OID, ObjectType } from "./Protocol/ObjectCodec.ts";
31 export { StoreError } from "./Protocol/Store.ts";
32 export { WireProtocolError, PackIngestError } from "./RepoObject.ts";
33 export {
34 BlobStore,
35 BlobStoreError,
36 type BlobBody,
37 type BlobMeta,
38 type BlobMultipart,
39 type BlobStoreShape,
40 } from "./BlobStore.ts";
41 export { BlobStoreR2 } from "./BlobStoreR2.ts";
42 export { BlobStoreS3 } from "./BlobStoreS3.ts";
43 export { RegistryD1 } from "./RegistryD1.ts";
44 export {
45 GitRepo,
46 GitRepoLive,
47 MAX_PACK_BYTES,
48 type CommitPushInput,
49 type CommitPushResult,
50 type GitRepoShape,
51 type RepoMetaData,
52 RepoStore,
53 type RepoStoreShape,
54 type RepoStub,
55 } from "./RepoObject.ts";
56 export {
57 Registry,
58 RegistryDurableObject,
59 RegistryLive,
60 RegistryStore,
61 REGISTRY_DO_NAME,
62 RESERVED_OWNERS,
63 } from "./RegistryObject.ts";
64
65 export { Hasher, HasherInline, HasherSelf, HASHER_BINDING } from "./Hasher/Hasher.ts";