@ref0/git 0.8.0 → 0.10.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/contracts/calls-spent.d.mts +2 -12
- package/dist/contracts/calls-spent.mjs +4 -5
- package/dist/contracts/commits.d.mts +14 -2
- package/dist/contracts/commits.mjs +22 -3
- package/dist/contracts/events.d.mts +70 -4
- package/dist/contracts/events.mjs +27 -3
- package/dist/contracts/git.d.mts +13 -3
- package/dist/contracts/objects.d.mts +18 -0
- package/dist/contracts/queue.d.mts +3 -2
- package/dist/contracts/queue.mjs +4 -2
- package/dist/contracts/refs.mjs +3 -1
- package/dist/core/ancestry.mjs +5 -4
- package/dist/core/events/seen.mjs +5 -4
- package/dist/core/index-job.mjs +23 -1
- package/dist/core/index-lost.d.mts +11 -0
- package/dist/core/index-lost.mjs +55 -0
- package/dist/core/job-view.mjs +20 -0
- package/dist/core/objects/commit-writes.mjs +1 -1
- package/dist/core/objects/commits.mjs +10 -9
- package/dist/core/objects/merges.mjs +1 -1
- package/dist/core/objects/reading.mjs +28 -13
- package/dist/core/objects/trees.mjs +1 -1
- package/dist/core/parts.d.mts +7 -0
- package/dist/core/publish.mjs +9 -5
- package/dist/core/purge.mjs +16 -3
- package/dist/core/push.mjs +27 -11
- package/dist/core/ref-view.mjs +1 -25
- package/dist/core/repack.mjs +36 -14
- package/dist/core/view.d.mts +10 -1
- package/dist/core/view.mjs +15 -6
- package/dist/core/work.mjs +47 -4
- package/dist/effect.d.mts +2 -3
- package/dist/effect.mjs +2 -3
- package/dist/engine/commits.mjs +4 -3
- package/dist/engine/merge-bases.mjs +5 -3
- package/dist/engine/merge.mjs +4 -3
- package/dist/engine/parts.d.mts +1 -0
- package/dist/engine/parts.mjs +1 -1
- package/dist/engine/walk.mjs +62 -20
- package/dist/http/core-parts.mjs +17 -8
- package/dist/index.d.mts +4 -4
- package/dist/index.mjs +3 -3
- package/dist/lfs/objects.mjs +7 -4
- package/dist/lfs/upkeep.mjs +6 -5
- package/dist/lfs/upload-most.mjs +8 -2
- package/dist/protocol/bytes/streams.mjs +84 -2
- package/dist/protocol/diff/read.d.mts +1 -0
- package/dist/protocol/diff/read.mjs +5 -2
- package/dist/protocol/objects/commit.d.mts +7 -0
- package/dist/protocol/objects/commit.mjs +5 -1
- package/dist/queue/advance.mjs +39 -10
- package/dist/queue/host.d.mts +4 -0
- package/dist/queue/layer.mjs +4 -2
- package/dist/queue/limits.mjs +18 -2
- package/dist/queue/rows.mjs +2 -1
- package/dist/queue/trim.mjs +2 -2
- package/dist/rest/commits.d.mts +202 -198
- package/dist/rest/forks.d.mts +99 -99
- package/dist/rest/refs.d.mts +144 -144
- package/dist/rest/repos.d.mts +48 -48
- package/dist/rest/topics.d.mts +112 -112
- package/dist/rest/trees.d.mts +58 -58
- package/dist/rest/wire.d.mts +19 -1
- package/dist/rest/work.d.mts +39 -39
- package/dist/server/joined.d.mts +11 -5
- package/dist/server/joined.mjs +3 -2
- package/dist/server/registry.mjs +11 -5
- package/dist/server/server.mjs +16 -4
- package/dist/storage/index-bitmaps.mjs +16 -10
- package/dist/storage/index-build.mjs +61 -13
- package/dist/storage/index-graph.d.mts +1 -0
- package/dist/storage/index-graph.mjs +29 -5
- package/dist/storage/index-layers.d.mts +1 -0
- package/dist/storage/index-layers.mjs +5 -2
- package/dist/storage/index-reach.mjs +7 -5
- package/dist/storage/index-remap.mjs +5 -5
- package/dist/storage/index-visible.mjs +16 -5
- package/dist/storage/links.mjs +3 -3
- package/dist/storage/pack-order.d.mts +1 -0
- package/dist/storage/pack-order.mjs +18 -1
- package/dist/storage/prune-walk.mjs +5 -2
- package/dist/storage/prune.mjs +107 -37
- package/dist/storage/receive-bounds.mjs +3 -2
- package/dist/storage/visible.mjs +3 -2
- package/dist/storage/walk.d.mts +1 -0
- package/dist/storage/walk.mjs +9 -5
- package/dist/storage/wants.mjs +17 -11
- package/dist/store/call-count.d.mts +8 -0
- package/dist/store/call-count.mjs +15 -7
- package/dist/store/errors.d.mts +7 -1
- package/dist/store/errors.mjs +7 -1
- package/dist/store/job-try.mjs +3 -1
- package/dist/store/records.mjs +17 -2
- package/dist/store/repo-record.mjs +9 -2
- package/dist/store/scopes.mjs +10 -2
- package/dist/sync/bound.d.mts +1 -1
- package/dist/sync/import.mjs +1 -1
- package/dist/sync/layer.mjs +4 -7
- package/dist/sync/mirror.mjs +1 -1
- package/dist/topics/advance.mjs +4 -4
- package/dist/topics/layer.mjs +1 -1
- package/package.json +3 -3
package/dist/rest/repos.d.mts
CHANGED
|
@@ -404,37 +404,18 @@ declare const ReposApiGroup_base: HttpApiGroup.HttpApiGroup<"repos", HttpApiEndp
|
|
|
404
404
|
}>, {
|
|
405
405
|
"ref0-code": Schema.String;
|
|
406
406
|
'www-authenticate': Schema.String;
|
|
407
|
-
}>>, GitCallerMiddleware, GitRestServices> | HttpApiEndpoint.HttpApiEndpoint<"
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
readonly
|
|
418
|
-
|
|
419
|
-
readonly refs: Schema.Number;
|
|
420
|
-
readonly packs: Schema.optionalKey<Schema.Number>;
|
|
421
|
-
readonly packBytes: Schema.optionalKey<Schema.Number>;
|
|
422
|
-
readonly ownBytes: Schema.optionalKey<Schema.Number>;
|
|
423
|
-
readonly pushedAt: Schema.optionalKey<Schema.Number>;
|
|
424
|
-
readonly maintainedAt: Schema.optionalKey<Schema.Number>;
|
|
425
|
-
}>;
|
|
426
|
-
readonly work: Schema.optionalKey<Schema.Struct<{
|
|
427
|
-
readonly waiting: Schema.Number;
|
|
428
|
-
readonly oldestDue: Schema.optionalKey<Schema.Number>;
|
|
429
|
-
readonly failed: Schema.Number;
|
|
430
|
-
readonly oldestFailed: Schema.optionalKey<Schema.Number>;
|
|
431
|
-
readonly index: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
|
|
432
|
-
readonly state: Schema.Literal<"refused">;
|
|
433
|
-
readonly retryAt: Schema.Number;
|
|
434
|
-
}>, Schema.Struct<{
|
|
435
|
-
readonly state: Schema.Literal<"too-large">;
|
|
436
|
-
}>]>>;
|
|
437
|
-
}>>;
|
|
407
|
+
}>>, GitCallerMiddleware, GitRestServices> | HttpApiEndpoint.HttpApiEndpoint<"list", "GET", "/repos", never, Schema.toCodecStringTree<Schema.Struct<{
|
|
408
|
+
after: Schema.optionalKey<Schema.String>;
|
|
409
|
+
limit: Schema.optionalKey<Schema.Int>;
|
|
410
|
+
prefix: Schema.optionalKey<Schema.String>;
|
|
411
|
+
order: Schema.optionalKey<Schema.Literals<readonly ["name", "nameDescending", "oldest", "newest"]>>;
|
|
412
|
+
past: Schema.optionalKey<Schema.String>;
|
|
413
|
+
perOwner: Schema.optionalKey<Schema.Literal<true>>;
|
|
414
|
+
sameBudget: Schema.optionalKey<Schema.Literal<true>>;
|
|
415
|
+
readBudget: Schema.optionalKey<Schema.Int>;
|
|
416
|
+
}>>, never, never, Schema.toCodecJson<Schema.Struct<{
|
|
417
|
+
readonly items: Schema.mutable<Schema.$Array<Schema.String>>;
|
|
418
|
+
readonly next: Schema.optionalKey<Schema.String>;
|
|
438
419
|
}>>, Schema.toCodecJson<HttpApiSchema.encodeToWithHeaders<Schema.Codec<{
|
|
439
420
|
readonly code: "ALREADY_EXISTS";
|
|
440
421
|
readonly message: string;
|
|
@@ -1261,11 +1242,12 @@ declare const ReposApiGroup_base: HttpApiGroup.HttpApiGroup<"repos", HttpApiEndp
|
|
|
1261
1242
|
}>, {
|
|
1262
1243
|
"ref0-code": Schema.String;
|
|
1263
1244
|
'www-authenticate': Schema.String;
|
|
1264
|
-
}>>, GitCallerMiddleware, GitRestServices> | HttpApiEndpoint.HttpApiEndpoint<"
|
|
1245
|
+
}>>, GitCallerMiddleware, GitRestServices> | HttpApiEndpoint.HttpApiEndpoint<"update", "PATCH", "/repos/:repo/-/repo", Schema.toCodecStringTree<Schema.Struct<{
|
|
1265
1246
|
repo: Schema.String;
|
|
1266
1247
|
}>>, never, Schema.toCodecJson<Schema.Struct<{
|
|
1267
1248
|
readonly key: Schema.optionalKey<Schema.String>;
|
|
1268
|
-
readonly
|
|
1249
|
+
readonly defaultBranch: Schema.optionalKey<Schema.String>;
|
|
1250
|
+
readonly public: Schema.optionalKey<Schema.Boolean>;
|
|
1269
1251
|
}>>, never, Schema.toCodecJson<Schema.Struct<{
|
|
1270
1252
|
readonly name: Schema.String;
|
|
1271
1253
|
readonly defaultBranch: Schema.optionalKey<Schema.String>;
|
|
@@ -1691,10 +1673,9 @@ declare const ReposApiGroup_base: HttpApiGroup.HttpApiGroup<"repos", HttpApiEndp
|
|
|
1691
1673
|
}>, {
|
|
1692
1674
|
"ref0-code": Schema.String;
|
|
1693
1675
|
'www-authenticate': Schema.String;
|
|
1694
|
-
}>>, GitCallerMiddleware, GitRestServices> | HttpApiEndpoint.HttpApiEndpoint<"
|
|
1695
|
-
repo: Schema.String;
|
|
1696
|
-
}>>, never, Schema.toCodecJson<Schema.Struct<{
|
|
1676
|
+
}>>, GitCallerMiddleware, GitRestServices> | HttpApiEndpoint.HttpApiEndpoint<"create", "POST", "/repos", never, never, Schema.toCodecJson<Schema.Struct<{
|
|
1697
1677
|
readonly key: Schema.optionalKey<Schema.String>;
|
|
1678
|
+
readonly name: Schema.String;
|
|
1698
1679
|
readonly defaultBranch: Schema.optionalKey<Schema.String>;
|
|
1699
1680
|
readonly public: Schema.optionalKey<Schema.Boolean>;
|
|
1700
1681
|
}>>, never, Schema.toCodecJson<Schema.Struct<{
|
|
@@ -2122,18 +2103,37 @@ declare const ReposApiGroup_base: HttpApiGroup.HttpApiGroup<"repos", HttpApiEndp
|
|
|
2122
2103
|
}>, {
|
|
2123
2104
|
"ref0-code": Schema.String;
|
|
2124
2105
|
'www-authenticate': Schema.String;
|
|
2125
|
-
}>>, GitCallerMiddleware, GitRestServices> | HttpApiEndpoint.HttpApiEndpoint<"
|
|
2126
|
-
|
|
2127
|
-
|
|
2128
|
-
|
|
2129
|
-
|
|
2130
|
-
|
|
2131
|
-
|
|
2132
|
-
|
|
2133
|
-
|
|
2134
|
-
|
|
2135
|
-
readonly
|
|
2136
|
-
|
|
2106
|
+
}>>, GitCallerMiddleware, GitRestServices> | HttpApiEndpoint.HttpApiEndpoint<"rename", "POST", "/repos/:repo/-/repo/rename", Schema.toCodecStringTree<Schema.Struct<{
|
|
2107
|
+
repo: Schema.String;
|
|
2108
|
+
}>>, never, Schema.toCodecJson<Schema.Struct<{
|
|
2109
|
+
readonly key: Schema.optionalKey<Schema.String>;
|
|
2110
|
+
readonly to: Schema.String;
|
|
2111
|
+
}>>, never, Schema.toCodecJson<Schema.Struct<{
|
|
2112
|
+
readonly name: Schema.String;
|
|
2113
|
+
readonly defaultBranch: Schema.optionalKey<Schema.String>;
|
|
2114
|
+
readonly public: Schema.Boolean;
|
|
2115
|
+
readonly upstream: Schema.optionalKey<Schema.String>;
|
|
2116
|
+
readonly stats: Schema.Struct<{
|
|
2117
|
+
readonly repo: Schema.String;
|
|
2118
|
+
readonly refs: Schema.Number;
|
|
2119
|
+
readonly packs: Schema.optionalKey<Schema.Number>;
|
|
2120
|
+
readonly packBytes: Schema.optionalKey<Schema.Number>;
|
|
2121
|
+
readonly ownBytes: Schema.optionalKey<Schema.Number>;
|
|
2122
|
+
readonly pushedAt: Schema.optionalKey<Schema.Number>;
|
|
2123
|
+
readonly maintainedAt: Schema.optionalKey<Schema.Number>;
|
|
2124
|
+
}>;
|
|
2125
|
+
readonly work: Schema.optionalKey<Schema.Struct<{
|
|
2126
|
+
readonly waiting: Schema.Number;
|
|
2127
|
+
readonly oldestDue: Schema.optionalKey<Schema.Number>;
|
|
2128
|
+
readonly failed: Schema.Number;
|
|
2129
|
+
readonly oldestFailed: Schema.optionalKey<Schema.Number>;
|
|
2130
|
+
readonly index: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
|
|
2131
|
+
readonly state: Schema.Literal<"refused">;
|
|
2132
|
+
readonly retryAt: Schema.Number;
|
|
2133
|
+
}>, Schema.Struct<{
|
|
2134
|
+
readonly state: Schema.Literal<"too-large">;
|
|
2135
|
+
}>]>>;
|
|
2136
|
+
}>>;
|
|
2137
2137
|
}>>, Schema.toCodecJson<HttpApiSchema.encodeToWithHeaders<Schema.Codec<{
|
|
2138
2138
|
readonly code: "ALREADY_EXISTS";
|
|
2139
2139
|
readonly message: string;
|
package/dist/rest/topics.d.mts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { GitCallerMiddleware, GitRestServices } from "./caller.mjs";
|
|
2
2
|
import * as Schema from "effect/Schema";
|
|
3
3
|
import { HttpApiEndpoint, HttpApiGroup } from "effect/http-api";
|
|
4
|
-
declare const TopicsApiGroup_base: HttpApiGroup.HttpApiGroup<"topics", HttpApiEndpoint.HttpApiEndpoint<"
|
|
4
|
+
declare const TopicsApiGroup_base: HttpApiGroup.HttpApiGroup<"topics", HttpApiEndpoint.HttpApiEndpoint<"remove", "DELETE", "/topics/:topic", Schema.toCodecStringTree<Schema.Struct<{
|
|
5
5
|
topic: Schema.String;
|
|
6
6
|
}>>, never, never, never, Schema.toCodecJson<Schema.Struct<{
|
|
7
7
|
readonly id: Schema.String;
|
|
@@ -444,50 +444,55 @@ declare const TopicsApiGroup_base: HttpApiGroup.HttpApiGroup<"topics", HttpApiEn
|
|
|
444
444
|
}>, {
|
|
445
445
|
"ref0-code": Schema.String;
|
|
446
446
|
'www-authenticate': Schema.String;
|
|
447
|
-
}>>, GitCallerMiddleware, GitRestServices> | HttpApiEndpoint.HttpApiEndpoint<"
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
readonly
|
|
453
|
-
|
|
454
|
-
readonly repo: Schema.String;
|
|
455
|
-
readonly target: Schema.String;
|
|
456
|
-
readonly entry: Schema.String;
|
|
457
|
-
readonly key: Schema.String;
|
|
458
|
-
readonly source: Schema.String;
|
|
459
|
-
readonly head: Schema.String;
|
|
460
|
-
}>>;
|
|
461
|
-
readonly pending: Schema.$Array<Schema.Struct<{
|
|
462
|
-
readonly repo: Schema.String;
|
|
463
|
-
readonly target: Schema.String;
|
|
464
|
-
readonly source: Schema.String;
|
|
465
|
-
readonly head: Schema.String;
|
|
447
|
+
}>>, GitCallerMiddleware, GitRestServices> | HttpApiEndpoint.HttpApiEndpoint<"list", "GET", "/topics", never, Schema.toCodecStringTree<Schema.Struct<{
|
|
448
|
+
after: Schema.optionalKey<Schema.String>;
|
|
449
|
+
limit: Schema.optionalKey<Schema.Int>;
|
|
450
|
+
state: Schema.optionalKey<Schema.Literals<readonly ["reserving", "checking", "publishing", "failed", "merged", "removed"]>>;
|
|
451
|
+
}>>, never, never, Schema.toCodecJson<Schema.Struct<{
|
|
452
|
+
readonly items: Schema.mutable<Schema.$Array<Schema.Struct<{
|
|
453
|
+
readonly id: Schema.String;
|
|
466
454
|
readonly key: Schema.String;
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
readonly
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
readonly
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
455
|
+
readonly state: Schema.Literals<readonly ["reserving", "checking", "publishing", "failed", "merged", "removed"]>;
|
|
456
|
+
readonly entries: Schema.$Array<Schema.Struct<{
|
|
457
|
+
readonly repo: Schema.String;
|
|
458
|
+
readonly target: Schema.String;
|
|
459
|
+
readonly entry: Schema.String;
|
|
460
|
+
readonly key: Schema.String;
|
|
461
|
+
readonly source: Schema.String;
|
|
462
|
+
readonly head: Schema.String;
|
|
463
|
+
}>>;
|
|
464
|
+
readonly pending: Schema.$Array<Schema.Struct<{
|
|
465
|
+
readonly repo: Schema.String;
|
|
466
|
+
readonly target: Schema.String;
|
|
467
|
+
readonly source: Schema.String;
|
|
468
|
+
readonly head: Schema.String;
|
|
469
|
+
readonly key: Schema.String;
|
|
470
|
+
}>>;
|
|
471
|
+
readonly candidates: Schema.$Array<Schema.Struct<{
|
|
472
|
+
readonly repo: Schema.String;
|
|
473
|
+
readonly target: Schema.String;
|
|
474
|
+
readonly candidate: Schema.String;
|
|
475
|
+
readonly ref: Schema.String;
|
|
476
|
+
readonly commit: Schema.String;
|
|
477
|
+
}>>;
|
|
478
|
+
readonly waitingOn: Schema.optionalKey<Schema.Struct<{
|
|
479
|
+
readonly repo: Schema.String;
|
|
480
|
+
readonly target: Schema.String;
|
|
481
|
+
readonly topic: Schema.optionalKey<Schema.String>;
|
|
482
|
+
readonly hold: Schema.optionalKey<Schema.String>;
|
|
483
|
+
}>>;
|
|
484
|
+
readonly failure: Schema.optionalKey<Schema.Struct<{
|
|
485
|
+
readonly reason: Schema.Literals<readonly ["entry-failed", "reported", "cancelled", "refused", "host-error", "work-failed", "timeout", "report-timeout", "prepare-rejected"]>;
|
|
486
|
+
readonly repo: Schema.optionalKey<Schema.String>;
|
|
487
|
+
readonly entry: Schema.optionalKey<Schema.String>;
|
|
488
|
+
readonly candidate: Schema.optionalKey<Schema.String>;
|
|
489
|
+
readonly summary: Schema.optionalKey<Schema.String>;
|
|
490
|
+
readonly url: Schema.optionalKey<Schema.String>;
|
|
491
|
+
readonly error: Schema.optionalKey<Schema.String>;
|
|
492
|
+
readonly hint: Schema.String;
|
|
493
|
+
}>>;
|
|
494
|
+
}>>>;
|
|
495
|
+
readonly next: Schema.optionalKey<Schema.String>;
|
|
491
496
|
}>>, Schema.toCodecJson<import("effect/http-api/HttpApiSchema").encodeToWithHeaders<Schema.Codec<{
|
|
492
497
|
readonly code: "ALREADY_EXISTS";
|
|
493
498
|
readonly message: string;
|
|
@@ -887,16 +892,9 @@ declare const TopicsApiGroup_base: HttpApiGroup.HttpApiGroup<"topics", HttpApiEn
|
|
|
887
892
|
}>, {
|
|
888
893
|
"ref0-code": Schema.String;
|
|
889
894
|
'www-authenticate': Schema.String;
|
|
890
|
-
}>>, GitCallerMiddleware, GitRestServices> | HttpApiEndpoint.HttpApiEndpoint<"
|
|
891
|
-
|
|
892
|
-
|
|
893
|
-
readonly target: Schema.String;
|
|
894
|
-
readonly source: Schema.String;
|
|
895
|
-
readonly head: Schema.String;
|
|
896
|
-
readonly key: Schema.String;
|
|
897
|
-
readonly repo: Schema.String;
|
|
898
|
-
}>>;
|
|
899
|
-
}>>, never, Schema.toCodecJson<Schema.Struct<{
|
|
895
|
+
}>>, GitCallerMiddleware, GitRestServices> | HttpApiEndpoint.HttpApiEndpoint<"get", "GET", "/topics/:topic", Schema.toCodecStringTree<Schema.Struct<{
|
|
896
|
+
topic: Schema.String;
|
|
897
|
+
}>>, never, never, never, Schema.toCodecJson<Schema.Struct<{
|
|
900
898
|
readonly id: Schema.String;
|
|
901
899
|
readonly key: Schema.String;
|
|
902
900
|
readonly state: Schema.Literals<readonly ["reserving", "checking", "publishing", "failed", "merged", "removed"]>;
|
|
@@ -1337,16 +1335,57 @@ declare const TopicsApiGroup_base: HttpApiGroup.HttpApiGroup<"topics", HttpApiEn
|
|
|
1337
1335
|
}>, {
|
|
1338
1336
|
"ref0-code": Schema.String;
|
|
1339
1337
|
'www-authenticate': Schema.String;
|
|
1340
|
-
}>>, GitCallerMiddleware, GitRestServices> | HttpApiEndpoint.HttpApiEndpoint<"
|
|
1341
|
-
|
|
1342
|
-
|
|
1343
|
-
|
|
1344
|
-
|
|
1345
|
-
|
|
1346
|
-
|
|
1347
|
-
|
|
1338
|
+
}>>, GitCallerMiddleware, GitRestServices> | HttpApiEndpoint.HttpApiEndpoint<"add", "POST", "/topics", never, never, Schema.toCodecJson<Schema.Struct<{
|
|
1339
|
+
readonly key: Schema.String;
|
|
1340
|
+
readonly entries: Schema.$Array<Schema.Struct<{
|
|
1341
|
+
readonly target: Schema.String;
|
|
1342
|
+
readonly source: Schema.String;
|
|
1343
|
+
readonly head: Schema.String;
|
|
1344
|
+
readonly key: Schema.String;
|
|
1345
|
+
readonly repo: Schema.String;
|
|
1346
|
+
}>>;
|
|
1348
1347
|
}>>, never, Schema.toCodecJson<Schema.Struct<{
|
|
1349
|
-
readonly
|
|
1348
|
+
readonly id: Schema.String;
|
|
1349
|
+
readonly key: Schema.String;
|
|
1350
|
+
readonly state: Schema.Literals<readonly ["reserving", "checking", "publishing", "failed", "merged", "removed"]>;
|
|
1351
|
+
readonly entries: Schema.$Array<Schema.Struct<{
|
|
1352
|
+
readonly repo: Schema.String;
|
|
1353
|
+
readonly target: Schema.String;
|
|
1354
|
+
readonly entry: Schema.String;
|
|
1355
|
+
readonly key: Schema.String;
|
|
1356
|
+
readonly source: Schema.String;
|
|
1357
|
+
readonly head: Schema.String;
|
|
1358
|
+
}>>;
|
|
1359
|
+
readonly pending: Schema.$Array<Schema.Struct<{
|
|
1360
|
+
readonly repo: Schema.String;
|
|
1361
|
+
readonly target: Schema.String;
|
|
1362
|
+
readonly source: Schema.String;
|
|
1363
|
+
readonly head: Schema.String;
|
|
1364
|
+
readonly key: Schema.String;
|
|
1365
|
+
}>>;
|
|
1366
|
+
readonly candidates: Schema.$Array<Schema.Struct<{
|
|
1367
|
+
readonly repo: Schema.String;
|
|
1368
|
+
readonly target: Schema.String;
|
|
1369
|
+
readonly candidate: Schema.String;
|
|
1370
|
+
readonly ref: Schema.String;
|
|
1371
|
+
readonly commit: Schema.String;
|
|
1372
|
+
}>>;
|
|
1373
|
+
readonly waitingOn: Schema.optionalKey<Schema.Struct<{
|
|
1374
|
+
readonly repo: Schema.String;
|
|
1375
|
+
readonly target: Schema.String;
|
|
1376
|
+
readonly topic: Schema.optionalKey<Schema.String>;
|
|
1377
|
+
readonly hold: Schema.optionalKey<Schema.String>;
|
|
1378
|
+
}>>;
|
|
1379
|
+
readonly failure: Schema.optionalKey<Schema.Struct<{
|
|
1380
|
+
readonly reason: Schema.Literals<readonly ["entry-failed", "reported", "cancelled", "refused", "host-error", "work-failed", "timeout", "report-timeout", "prepare-rejected"]>;
|
|
1381
|
+
readonly repo: Schema.optionalKey<Schema.String>;
|
|
1382
|
+
readonly entry: Schema.optionalKey<Schema.String>;
|
|
1383
|
+
readonly candidate: Schema.optionalKey<Schema.String>;
|
|
1384
|
+
readonly summary: Schema.optionalKey<Schema.String>;
|
|
1385
|
+
readonly url: Schema.optionalKey<Schema.String>;
|
|
1386
|
+
readonly error: Schema.optionalKey<Schema.String>;
|
|
1387
|
+
readonly hint: Schema.String;
|
|
1388
|
+
}>>;
|
|
1350
1389
|
}>>, Schema.toCodecJson<import("effect/http-api/HttpApiSchema").encodeToWithHeaders<Schema.Codec<{
|
|
1351
1390
|
readonly code: "ALREADY_EXISTS";
|
|
1352
1391
|
readonly message: string;
|
|
@@ -1746,55 +1785,16 @@ declare const TopicsApiGroup_base: HttpApiGroup.HttpApiGroup<"topics", HttpApiEn
|
|
|
1746
1785
|
}>, {
|
|
1747
1786
|
"ref0-code": Schema.String;
|
|
1748
1787
|
'www-authenticate': Schema.String;
|
|
1749
|
-
}>>, GitCallerMiddleware, GitRestServices> | HttpApiEndpoint.HttpApiEndpoint<"
|
|
1750
|
-
|
|
1751
|
-
|
|
1752
|
-
|
|
1753
|
-
|
|
1754
|
-
readonly
|
|
1755
|
-
|
|
1756
|
-
|
|
1757
|
-
|
|
1758
|
-
|
|
1759
|
-
readonly repo: Schema.String;
|
|
1760
|
-
readonly target: Schema.String;
|
|
1761
|
-
readonly entry: Schema.String;
|
|
1762
|
-
readonly key: Schema.String;
|
|
1763
|
-
readonly source: Schema.String;
|
|
1764
|
-
readonly head: Schema.String;
|
|
1765
|
-
}>>;
|
|
1766
|
-
readonly pending: Schema.$Array<Schema.Struct<{
|
|
1767
|
-
readonly repo: Schema.String;
|
|
1768
|
-
readonly target: Schema.String;
|
|
1769
|
-
readonly source: Schema.String;
|
|
1770
|
-
readonly head: Schema.String;
|
|
1771
|
-
readonly key: Schema.String;
|
|
1772
|
-
}>>;
|
|
1773
|
-
readonly candidates: Schema.$Array<Schema.Struct<{
|
|
1774
|
-
readonly repo: Schema.String;
|
|
1775
|
-
readonly target: Schema.String;
|
|
1776
|
-
readonly candidate: Schema.String;
|
|
1777
|
-
readonly ref: Schema.String;
|
|
1778
|
-
readonly commit: Schema.String;
|
|
1779
|
-
}>>;
|
|
1780
|
-
readonly waitingOn: Schema.optionalKey<Schema.Struct<{
|
|
1781
|
-
readonly repo: Schema.String;
|
|
1782
|
-
readonly target: Schema.String;
|
|
1783
|
-
readonly topic: Schema.optionalKey<Schema.String>;
|
|
1784
|
-
readonly hold: Schema.optionalKey<Schema.String>;
|
|
1785
|
-
}>>;
|
|
1786
|
-
readonly failure: Schema.optionalKey<Schema.Struct<{
|
|
1787
|
-
readonly reason: Schema.Literals<readonly ["entry-failed", "reported", "cancelled", "refused", "host-error", "work-failed", "timeout", "report-timeout", "prepare-rejected"]>;
|
|
1788
|
-
readonly repo: Schema.optionalKey<Schema.String>;
|
|
1789
|
-
readonly entry: Schema.optionalKey<Schema.String>;
|
|
1790
|
-
readonly candidate: Schema.optionalKey<Schema.String>;
|
|
1791
|
-
readonly summary: Schema.optionalKey<Schema.String>;
|
|
1792
|
-
readonly url: Schema.optionalKey<Schema.String>;
|
|
1793
|
-
readonly error: Schema.optionalKey<Schema.String>;
|
|
1794
|
-
readonly hint: Schema.String;
|
|
1795
|
-
}>>;
|
|
1796
|
-
}>>>;
|
|
1797
|
-
readonly next: Schema.optionalKey<Schema.String>;
|
|
1788
|
+
}>>, GitCallerMiddleware, GitRestServices> | HttpApiEndpoint.HttpApiEndpoint<"report", "POST", "/topics/:topic/report", Schema.toCodecStringTree<Schema.Struct<{
|
|
1789
|
+
topic: Schema.String;
|
|
1790
|
+
}>>, never, Schema.toCodecJson<Schema.Struct<{
|
|
1791
|
+
readonly summary: Schema.optionalKey<Schema.String>;
|
|
1792
|
+
readonly url: Schema.optionalKey<Schema.String>;
|
|
1793
|
+
readonly meta: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
1794
|
+
readonly verdict: Schema.Literals<readonly ["pass", "fail", "cancel"]>;
|
|
1795
|
+
readonly candidates: Schema.$Array<Schema.String>;
|
|
1796
|
+
}>>, never, Schema.toCodecJson<Schema.Struct<{
|
|
1797
|
+
readonly repeat: Schema.Boolean;
|
|
1798
1798
|
}>>, Schema.toCodecJson<import("effect/http-api/HttpApiSchema").encodeToWithHeaders<Schema.Codec<{
|
|
1799
1799
|
readonly code: "ALREADY_EXISTS";
|
|
1800
1800
|
readonly message: string;
|
package/dist/rest/trees.d.mts
CHANGED
|
@@ -1,41 +1,28 @@
|
|
|
1
1
|
import { GitCallerMiddleware, GitRestServices } from "./caller.mjs";
|
|
2
2
|
import * as Schema from "effect/Schema";
|
|
3
3
|
import { HttpApiEndpoint, HttpApiGroup, HttpApiSchema } from "effect/http-api";
|
|
4
|
-
declare const TreesApiGroup_base: HttpApiGroup.HttpApiGroup<"trees", HttpApiEndpoint.HttpApiEndpoint<"
|
|
4
|
+
declare const TreesApiGroup_base: HttpApiGroup.HttpApiGroup<"trees", HttpApiEndpoint.HttpApiEndpoint<"get", "GET", "/repos/:repo/-/trees/:oid", Schema.toCodecStringTree<Schema.Struct<{
|
|
5
5
|
repo: Schema.String;
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
readonly page: Schema.optionalKey<Schema.Struct<{
|
|
17
|
-
readonly after: Schema.optionalKey<Schema.String>;
|
|
18
|
-
readonly limit: Schema.optionalKey<Schema.Int>;
|
|
19
|
-
}>>;
|
|
20
|
-
}>>, never, Schema.toCodecJson<Schema.Struct<{
|
|
6
|
+
oid: Schema.String;
|
|
7
|
+
}>>, Schema.toCodecStringTree<Schema.Struct<{
|
|
8
|
+
objects: Schema.optionalKey<Schema.Int>;
|
|
9
|
+
bytes: Schema.optionalKey<Schema.Int>;
|
|
10
|
+
entries: Schema.optionalKey<Schema.Int>;
|
|
11
|
+
milliseconds: Schema.optionalKey<Schema.Int>;
|
|
12
|
+
after: Schema.optionalKey<Schema.String>;
|
|
13
|
+
limit: Schema.optionalKey<Schema.Int>;
|
|
14
|
+
recursive: Schema.optionalKey<Schema.Boolean>;
|
|
15
|
+
}>>, never, never, Schema.toCodecJson<Schema.Struct<{
|
|
21
16
|
readonly items: Schema.mutable<Schema.$Array<Schema.Struct<{
|
|
22
|
-
|
|
23
|
-
path: Schema.String;
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
}>>;
|
|
30
|
-
new: Schema.optionalKey<Schema.Struct<{
|
|
31
|
-
readonly mode: Schema.String;
|
|
32
|
-
readonly oid: Schema.String;
|
|
33
|
-
}>>;
|
|
34
|
-
pathBytes: Schema.optionalKey<Schema.Uint8ArrayFromBase64>;
|
|
35
|
-
fromPathBytes: Schema.optionalKey<Schema.Uint8ArrayFromBase64>;
|
|
17
|
+
readonly name: Schema.String;
|
|
18
|
+
readonly path: Schema.String;
|
|
19
|
+
readonly mode: Schema.String;
|
|
20
|
+
readonly type: Schema.Literals<readonly ["blob", "tree", "commit"]>;
|
|
21
|
+
readonly oid: Schema.String;
|
|
22
|
+
readonly size: Schema.optionalKey<Schema.Int>;
|
|
23
|
+
readonly pathBytes: Schema.optionalKey<Schema.Uint8ArrayFromBase64>;
|
|
36
24
|
}>>>;
|
|
37
25
|
readonly next: Schema.optionalKey<Schema.String>;
|
|
38
|
-
readonly renamesSkipped: Schema.optionalKey<Schema.Literals<readonly ["rename-limit", "memory-limit"]>>;
|
|
39
26
|
}>>, Schema.toCodecJson<HttpApiSchema.encodeToWithHeaders<Schema.Codec<{
|
|
40
27
|
readonly code: "ALREADY_EXISTS";
|
|
41
28
|
readonly message: string;
|
|
@@ -848,21 +835,40 @@ declare const TreesApiGroup_base: HttpApiGroup.HttpApiGroup<"trees", HttpApiEndp
|
|
|
848
835
|
}>, {
|
|
849
836
|
"ref0-code": Schema.String;
|
|
850
837
|
'www-authenticate': Schema.String;
|
|
851
|
-
}>>, GitCallerMiddleware, GitRestServices> | HttpApiEndpoint.HttpApiEndpoint<"
|
|
838
|
+
}>>, GitCallerMiddleware, GitRestServices> | HttpApiEndpoint.HttpApiEndpoint<"diff", "POST", "/repos/:repo/-/trees/diff", Schema.toCodecStringTree<Schema.Struct<{
|
|
852
839
|
repo: Schema.String;
|
|
853
840
|
}>>, never, Schema.toCodecJson<Schema.Struct<{
|
|
854
|
-
readonly base: Schema.
|
|
855
|
-
readonly
|
|
856
|
-
readonly
|
|
857
|
-
readonly key: Schema.optionalKey<Schema.String>;
|
|
841
|
+
readonly base: Schema.String;
|
|
842
|
+
readonly head: Schema.String;
|
|
843
|
+
readonly renames: Schema.optionalKey<Schema.Boolean>;
|
|
858
844
|
readonly limits: Schema.optionalKey<Schema.Struct<{
|
|
859
845
|
readonly objects: Schema.optionalKey<Schema.Int>;
|
|
860
846
|
readonly bytes: Schema.optionalKey<Schema.Int>;
|
|
861
847
|
readonly entries: Schema.optionalKey<Schema.Int>;
|
|
862
848
|
readonly milliseconds: Schema.optionalKey<Schema.Int>;
|
|
863
849
|
}>>;
|
|
850
|
+
readonly page: Schema.optionalKey<Schema.Struct<{
|
|
851
|
+
readonly after: Schema.optionalKey<Schema.String>;
|
|
852
|
+
readonly limit: Schema.optionalKey<Schema.Int>;
|
|
853
|
+
}>>;
|
|
864
854
|
}>>, never, Schema.toCodecJson<Schema.Struct<{
|
|
865
|
-
readonly
|
|
855
|
+
readonly items: Schema.mutable<Schema.$Array<Schema.Struct<{
|
|
856
|
+
status: Schema.Literals<readonly ["A", "D", "M", "R", "T"]>;
|
|
857
|
+
path: Schema.String;
|
|
858
|
+
from: Schema.optionalKey<Schema.String>;
|
|
859
|
+
similarity: Schema.optionalKey<Schema.Number>;
|
|
860
|
+
old: Schema.optionalKey<Schema.Struct<{
|
|
861
|
+
readonly mode: Schema.String;
|
|
862
|
+
readonly oid: Schema.String;
|
|
863
|
+
}>>;
|
|
864
|
+
new: Schema.optionalKey<Schema.Struct<{
|
|
865
|
+
readonly mode: Schema.String;
|
|
866
|
+
readonly oid: Schema.String;
|
|
867
|
+
}>>;
|
|
868
|
+
pathBytes: Schema.optionalKey<Schema.Uint8ArrayFromBase64>;
|
|
869
|
+
fromPathBytes: Schema.optionalKey<Schema.Uint8ArrayFromBase64>;
|
|
870
|
+
}>>>;
|
|
871
|
+
readonly next: Schema.optionalKey<Schema.String>;
|
|
866
872
|
readonly renamesSkipped: Schema.optionalKey<Schema.Literals<readonly ["rename-limit", "memory-limit"]>>;
|
|
867
873
|
}>>, Schema.toCodecJson<HttpApiSchema.encodeToWithHeaders<Schema.Codec<{
|
|
868
874
|
readonly code: "ALREADY_EXISTS";
|
|
@@ -1263,28 +1269,22 @@ declare const TreesApiGroup_base: HttpApiGroup.HttpApiGroup<"trees", HttpApiEndp
|
|
|
1263
1269
|
}>, {
|
|
1264
1270
|
"ref0-code": Schema.String;
|
|
1265
1271
|
'www-authenticate': Schema.String;
|
|
1266
|
-
}>>, GitCallerMiddleware, GitRestServices> | HttpApiEndpoint.HttpApiEndpoint<"
|
|
1272
|
+
}>>, GitCallerMiddleware, GitRestServices> | HttpApiEndpoint.HttpApiEndpoint<"merge", "POST", "/repos/:repo/-/trees/merge", Schema.toCodecStringTree<Schema.Struct<{
|
|
1267
1273
|
repo: Schema.String;
|
|
1268
|
-
|
|
1269
|
-
|
|
1270
|
-
|
|
1271
|
-
|
|
1272
|
-
|
|
1273
|
-
|
|
1274
|
-
|
|
1275
|
-
|
|
1276
|
-
|
|
1277
|
-
|
|
1278
|
-
|
|
1279
|
-
|
|
1280
|
-
|
|
1281
|
-
|
|
1282
|
-
readonly type: Schema.Literals<readonly ["blob", "tree", "commit"]>;
|
|
1283
|
-
readonly oid: Schema.String;
|
|
1284
|
-
readonly size: Schema.optionalKey<Schema.Int>;
|
|
1285
|
-
readonly pathBytes: Schema.optionalKey<Schema.Uint8ArrayFromBase64>;
|
|
1286
|
-
}>>>;
|
|
1287
|
-
readonly next: Schema.optionalKey<Schema.String>;
|
|
1274
|
+
}>>, never, Schema.toCodecJson<Schema.Struct<{
|
|
1275
|
+
readonly base: Schema.optionalKey<Schema.String>;
|
|
1276
|
+
readonly ours: Schema.String;
|
|
1277
|
+
readonly theirs: Schema.String;
|
|
1278
|
+
readonly key: Schema.optionalKey<Schema.String>;
|
|
1279
|
+
readonly limits: Schema.optionalKey<Schema.Struct<{
|
|
1280
|
+
readonly objects: Schema.optionalKey<Schema.Int>;
|
|
1281
|
+
readonly bytes: Schema.optionalKey<Schema.Int>;
|
|
1282
|
+
readonly entries: Schema.optionalKey<Schema.Int>;
|
|
1283
|
+
readonly milliseconds: Schema.optionalKey<Schema.Int>;
|
|
1284
|
+
}>>;
|
|
1285
|
+
}>>, never, Schema.toCodecJson<Schema.Struct<{
|
|
1286
|
+
readonly tree: Schema.String;
|
|
1287
|
+
readonly renamesSkipped: Schema.optionalKey<Schema.Literals<readonly ["rename-limit", "memory-limit"]>>;
|
|
1288
1288
|
}>>, Schema.toCodecJson<HttpApiSchema.encodeToWithHeaders<Schema.Codec<{
|
|
1289
1289
|
readonly code: "ALREADY_EXISTS";
|
|
1290
1290
|
readonly message: string;
|
package/dist/rest/wire.d.mts
CHANGED
|
@@ -171,6 +171,24 @@ export declare const RepoStreamEvent: Schema.Union<readonly [Schema.Union<readon
|
|
|
171
171
|
readonly type: Schema.Literal<"repo.work.failed">;
|
|
172
172
|
readonly refused: Schema.Literals<readonly ["spent", "too-large"]>;
|
|
173
173
|
readonly error: Schema.String;
|
|
174
|
+
}>, Schema.Struct<{
|
|
175
|
+
readonly seq: Schema.Int;
|
|
176
|
+
readonly at: Schema.Number;
|
|
177
|
+
readonly actor: Schema.optionalKey<Schema.Struct<{
|
|
178
|
+
readonly id: Schema.String;
|
|
179
|
+
}>>;
|
|
180
|
+
readonly subject: Schema.optionalKey<Schema.Struct<{
|
|
181
|
+
readonly id: Schema.String;
|
|
182
|
+
}>>;
|
|
183
|
+
readonly repo: Schema.String;
|
|
184
|
+
readonly internalId: Schema.TemplateLiteral<readonly ["r_", Schema.String]>;
|
|
185
|
+
readonly token: Schema.optionalKey<Schema.String>;
|
|
186
|
+
readonly type: Schema.Literal<"repo.work.failed">;
|
|
187
|
+
readonly name: Schema.Literal<"git.repack">;
|
|
188
|
+
readonly key: Schema.Literal<"prune">;
|
|
189
|
+
readonly refused: Schema.Literal<"busy">;
|
|
190
|
+
readonly periods: Schema.Int;
|
|
191
|
+
readonly error: Schema.String;
|
|
174
192
|
}>]>]>, Schema.Union<readonly [Schema.Struct<{
|
|
175
193
|
readonly seq: Schema.Int;
|
|
176
194
|
readonly at: Schema.Number;
|
|
@@ -222,7 +240,7 @@ export declare const RepoStreamEvent: Schema.Union<readonly [Schema.Union<readon
|
|
|
222
240
|
readonly url: Schema.optionalKey<Schema.String>;
|
|
223
241
|
readonly type: Schema.Literal<"queue.entry.failed">;
|
|
224
242
|
readonly entry: Schema.String;
|
|
225
|
-
readonly reason: Schema.Literals<readonly ["conflict", "reported", "host-error", "interaction", "refused", "tooManyCommits"]>;
|
|
243
|
+
readonly reason: Schema.Literals<readonly ["conflict", "reported", "host-error", "interaction", "refused", "tooManyCommits", "tooLarge"]>;
|
|
226
244
|
readonly candidate: Schema.optionalKey<Schema.String>;
|
|
227
245
|
readonly error: Schema.optionalKey<Schema.String>;
|
|
228
246
|
}>, Schema.Struct<{
|