@ref0/git 0.10.0 → 0.11.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.
@@ -264,7 +264,10 @@ export declare const QueueView: Schema.Struct<{
264
264
  }>;
265
265
  }>;
266
266
  export type QueueView = typeof QueueView.Type;
267
- /** One entry's link of a candidate: `commits`, what its head adds to the target, oldest first. */
267
+ /**
268
+ * One entry's link of a candidate: `commits`, what its head adds to the target, oldest first, and
269
+ * `at`, the link's time in milliseconds from the queue's `Clock`, for the plan's `author.at`.
270
+ */
268
271
  export declare const MergeInput: Schema.Struct<{
269
272
  readonly entry: Schema.Struct<{
270
273
  readonly target: Schema.String;
@@ -317,6 +320,7 @@ export declare const MergeInput: Schema.Struct<{
317
320
  readonly message: Schema.String;
318
321
  readonly signature: Schema.optionalKey<Schema.String>;
319
322
  }>>;
323
+ readonly at: Schema.Number;
320
324
  }>;
321
325
  export type MergeInput = typeof MergeInput.Type;
322
326
  export declare const JoinInput: Schema.Struct<{
@@ -3,6 +3,7 @@ import { CommitMessage } from "./commits.mjs";
3
3
  import { Commit } from "./engine.mjs";
4
4
  import { Oid, RefName, RepoName } from "./ids.mjs";
5
5
  import { AbortSignalValue, FunctionValue } from "./opaque.mjs";
6
+ import "./repos.mjs";
6
7
  import { Verdict, decisionAnswer } from "./result.mjs";
7
8
  import * as Effect from "effect/Effect";
8
9
  import * as Schema from "effect/Schema";
@@ -154,7 +154,7 @@ const indexAttempt = /* @__PURE__ */ Effect.fnUntraced(function* (parts, store,
154
154
  exempt: true
155
155
  });
156
156
  const repack = parts.repackJobRow !== void 0 && liftsHolds(indexRowOf(row), indexRowOf(step.row), listed) ? [parts.repackJobRow()] : [];
157
- const retry = yield* lostRetry(step.row, landed, (when) => index.status(step.row, when, ids));
157
+ const retry = yield* uncoveredRetry(step.row, landed, (when) => index.status(step.row, when, ids));
158
158
  const committed = yield* storeCall(() => store.commit(scope, {
159
159
  id: newChangeId(),
160
160
  expect: snapshot.version,
@@ -175,13 +175,15 @@ const indexAttempt = /* @__PURE__ */ Effect.fnUntraced(function* (parts, store,
175
175
  };
176
176
  });
177
177
  /**
178
- * The try a refused row a read marked lost gets, `landed` its status: when it waits for its
179
- * tries' wait, the next round's, due at its end; else none.
178
+ * The try a refused row reads answer from no index gets, `landed` its status: a first build's,
179
+ * with no layers, or one a read marked lost. When it waits for its tries' wait, the next round's,
180
+ * due at its end; else none. A built row whose update was refused keeps answering from its
181
+ * layers, so it waits for a push, as before.
180
182
  */
181
- const lostRetry = (row, landed, statusAt) => {
183
+ const uncoveredRetry = (row, landed, statusAt) => {
182
184
  const built = indexRowOf(row);
183
- if (landed.state !== "refused" || built === void 0 || "refused" in built) return Effect.succeed([]);
184
- if (built.lost !== true) return Effect.succeed([]);
185
+ if (landed.state !== "refused" || built === void 0) return Effect.succeed([]);
186
+ if (!("refused" in built) && built.lost !== true) return Effect.succeed([]);
185
187
  const due = statusAt(landed.retryAt);
186
188
  if (due.state !== "retry") return Effect.succeed([]);
187
189
  const job = IndexJob.job({
@@ -781,11 +781,15 @@ const treeOf = (linking, entry, sides) => mergedTree(linking.opened, linking.mad
781
781
  }) : error));
782
782
  /** A host's `merge` answer read as a `MergePlan`: a host in plain JavaScript may answer any value. */
783
783
  const decodePlan = /* @__PURE__ */ Schema.decodeUnknownSync(MergePlan);
784
- /** The host's plan for an entry's link: a throw or bad plan fails it `host-error`, with the failure's ID. */
785
- const planOf = (linking, entry, row, commits) => hostCall("queue.merge", { repo: linking.repo }, () => decodePlan(linking.options.merge({
784
+ /**
785
+ * The host's plan for an entry's link, at the queue's `Clock`'s time, which the host stamps its
786
+ * author with: a throw or bad plan fails it `host-error`, with the failure's ID.
787
+ */
788
+ const planOf = (linking, entry, row, commits) => Clock$1.currentTimeMillis.pipe(Effect.flatMap((at) => hostCall("queue.merge", { repo: linking.repo }, () => decodePlan(linking.options.merge({
786
789
  entry: entryOf(linking.repo, entry, row, linking.notes.get(entry) ?? {}),
787
- commits
788
- }))).pipe(Effect.catch((error) => {
790
+ commits,
791
+ at
792
+ }))))).pipe(Effect.catch((error) => {
789
793
  const id = error.code === "UNAVAILABLE" || error.code === "DEADLINE_EXCEEDED" ? error.context?.id ?? "" : "";
790
794
  return Effect.fail(linkFailed(entry, {
791
795
  kind: "host-error",
@@ -437,15 +437,38 @@ declare const CommitsApiGroup_base: HttpApiGroup.HttpApiGroup<"commits", HttpApi
437
437
  }>, {
438
438
  "ref0-code": Schema.String;
439
439
  'www-authenticate': Schema.String;
440
- }>>, GitCallerMiddleware, GitRestServices> | HttpApiEndpoint.HttpApiEndpoint<"get", "GET", "/repos/:repo/-/commits/:oid", Schema.toCodecStringTree<Schema.Struct<{
440
+ }>>, GitCallerMiddleware, GitRestServices> | HttpApiEndpoint.HttpApiEndpoint<"create", "POST", "/repos/:repo/-/commits", Schema.toCodecStringTree<Schema.Struct<{
441
441
  repo: Schema.String;
442
- oid: Schema.String;
443
- }>>, Schema.toCodecStringTree<Schema.Struct<{
444
- readonly objects: Schema.optionalKey<Schema.Int>;
445
- readonly bytes: Schema.optionalKey<Schema.Int>;
446
- readonly entries: Schema.optionalKey<Schema.Int>;
447
- readonly milliseconds: Schema.optionalKey<Schema.Int>;
448
- }>>, never, never, Schema.toCodecJson<Schema.Struct<{
442
+ }>>, never, Schema.toCodecJson<Schema.Struct<{
443
+ readonly message: Schema.String;
444
+ readonly author: Schema.Struct<{
445
+ readonly name: Schema.String;
446
+ readonly email: Schema.String;
447
+ readonly at: Schema.Number;
448
+ readonly offset: Schema.Int;
449
+ }>;
450
+ readonly parents: Schema.$Array<Schema.String>;
451
+ readonly committer: Schema.optionalKey<Schema.Struct<{
452
+ readonly name: Schema.String;
453
+ readonly email: Schema.String;
454
+ readonly at: Schema.Number;
455
+ readonly offset: Schema.Int;
456
+ }>>;
457
+ readonly signature: Schema.optionalKey<Schema.String>;
458
+ readonly ref: Schema.optionalKey<Schema.Struct<{
459
+ readonly name: Schema.String;
460
+ readonly from: Schema.NullOr<Schema.String>;
461
+ }>>;
462
+ readonly key: Schema.optionalKey<Schema.String>;
463
+ readonly tree: Schema.optionalKey<Schema.String>;
464
+ readonly changes: Schema.optionalKey<Schema.$Array<Schema.Struct<{
465
+ readonly path: Schema.String;
466
+ readonly mode: Schema.optionalKey<Schema.String>;
467
+ readonly oid: Schema.optionalKey<Schema.NullOr<Schema.String>>;
468
+ readonly content: Schema.optionalKey<Schema.String>;
469
+ readonly contentBytes: Schema.optionalKey<Schema.Uint8ArrayFromBase64>;
470
+ }>>>;
471
+ }>>, never, Schema.toCodecJson<Schema.Struct<{
449
472
  readonly oid: Schema.String;
450
473
  readonly tree: Schema.String;
451
474
  readonly parents: Schema.$Array<Schema.String>;
@@ -863,7 +886,7 @@ declare const CommitsApiGroup_base: HttpApiGroup.HttpApiGroup<"commits", HttpApi
863
886
  }>, {
864
887
  "ref0-code": Schema.String;
865
888
  'www-authenticate': Schema.String;
866
- }>>, GitCallerMiddleware, GitRestServices> | HttpApiEndpoint.HttpApiEndpoint<"create", "POST", "/repos/:repo/-/commits", Schema.toCodecStringTree<Schema.Struct<{
889
+ }>>, GitCallerMiddleware, GitRestServices> | HttpApiEndpoint.HttpApiEndpoint<"revert", "POST", "/repos/:repo/-/commits/revert", Schema.toCodecStringTree<Schema.Struct<{
867
890
  repo: Schema.String;
868
891
  }>>, never, Schema.toCodecJson<Schema.Struct<{
869
892
  readonly message: Schema.String;
@@ -873,27 +896,15 @@ declare const CommitsApiGroup_base: HttpApiGroup.HttpApiGroup<"commits", HttpApi
873
896
  readonly at: Schema.Number;
874
897
  readonly offset: Schema.Int;
875
898
  }>;
876
- readonly parents: Schema.$Array<Schema.String>;
899
+ readonly commit: Schema.String;
900
+ readonly onto: Schema.String;
877
901
  readonly committer: Schema.optionalKey<Schema.Struct<{
878
902
  readonly name: Schema.String;
879
903
  readonly email: Schema.String;
880
904
  readonly at: Schema.Number;
881
905
  readonly offset: Schema.Int;
882
906
  }>>;
883
- readonly signature: Schema.optionalKey<Schema.String>;
884
- readonly ref: Schema.optionalKey<Schema.Struct<{
885
- readonly name: Schema.String;
886
- readonly from: Schema.NullOr<Schema.String>;
887
- }>>;
888
907
  readonly key: Schema.optionalKey<Schema.String>;
889
- readonly tree: Schema.optionalKey<Schema.String>;
890
- readonly changes: Schema.optionalKey<Schema.$Array<Schema.Struct<{
891
- readonly path: Schema.String;
892
- readonly mode: Schema.optionalKey<Schema.String>;
893
- readonly oid: Schema.optionalKey<Schema.NullOr<Schema.String>>;
894
- readonly content: Schema.optionalKey<Schema.String>;
895
- readonly contentBytes: Schema.optionalKey<Schema.Uint8ArrayFromBase64>;
896
- }>>>;
897
908
  }>>, never, Schema.toCodecJson<Schema.Struct<{
898
909
  readonly oid: Schema.String;
899
910
  readonly tree: Schema.String;
@@ -1312,79 +1323,41 @@ declare const CommitsApiGroup_base: HttpApiGroup.HttpApiGroup<"commits", HttpApi
1312
1323
  }>, {
1313
1324
  "ref0-code": Schema.String;
1314
1325
  'www-authenticate': Schema.String;
1315
- }>>, GitCallerMiddleware, GitRestServices> | HttpApiEndpoint.HttpApiEndpoint<"compare", "POST", "/repos/:repo/-/commits/compare", Schema.toCodecStringTree<Schema.Struct<{
1326
+ }>>, GitCallerMiddleware, GitRestServices> | HttpApiEndpoint.HttpApiEndpoint<"pick", "POST", "/repos/:repo/-/commits/pick", Schema.toCodecStringTree<Schema.Struct<{
1316
1327
  repo: Schema.String;
1317
1328
  }>>, never, Schema.toCodecJson<Schema.Struct<{
1318
- readonly base: Schema.String;
1319
- readonly head: Schema.String;
1320
- readonly renames: Schema.optionalKey<Schema.Boolean>;
1321
- readonly commits: Schema.optionalKey<Schema.Struct<{
1322
- readonly after: Schema.optionalKey<Schema.String>;
1323
- readonly limit: Schema.optionalKey<Schema.Int>;
1324
- }>>;
1325
- readonly files: Schema.optionalKey<Schema.Struct<{
1326
- readonly after: Schema.optionalKey<Schema.String>;
1327
- readonly limit: Schema.optionalKey<Schema.Int>;
1329
+ readonly commit: Schema.String;
1330
+ readonly onto: Schema.String;
1331
+ readonly committer: Schema.optionalKey<Schema.Struct<{
1332
+ readonly name: Schema.String;
1333
+ readonly email: Schema.String;
1334
+ readonly at: Schema.Number;
1335
+ readonly offset: Schema.Int;
1328
1336
  }>>;
1329
- readonly limits: Schema.optionalKey<Schema.Struct<{
1330
- readonly objects: Schema.optionalKey<Schema.Int>;
1331
- readonly bytes: Schema.optionalKey<Schema.Int>;
1332
- readonly entries: Schema.optionalKey<Schema.Int>;
1333
- readonly milliseconds: Schema.optionalKey<Schema.Int>;
1337
+ readonly ref: Schema.optionalKey<Schema.Struct<{
1338
+ readonly name: Schema.String;
1339
+ readonly from: Schema.NullOr<Schema.String>;
1334
1340
  }>>;
1341
+ readonly key: Schema.optionalKey<Schema.String>;
1335
1342
  }>>, never, Schema.toCodecJson<Schema.Struct<{
1336
- readonly base: Schema.String;
1337
- readonly head: Schema.String;
1338
- readonly mergeBase: Schema.optionalKey<Schema.String>;
1339
- readonly ahead: Schema.Int;
1340
- readonly behind: Schema.Int;
1341
- readonly commits: Schema.Struct<{
1342
- readonly items: Schema.mutable<Schema.$Array<Schema.Struct<{
1343
- readonly oid: Schema.String;
1344
- readonly tree: Schema.String;
1345
- readonly parents: Schema.$Array<Schema.String>;
1346
- readonly author: Schema.Struct<{
1347
- readonly name: Schema.String;
1348
- readonly email: Schema.String;
1349
- readonly at: Schema.Number;
1350
- readonly offset: Schema.Int;
1351
- }>;
1352
- readonly committer: Schema.Struct<{
1353
- readonly name: Schema.String;
1354
- readonly email: Schema.String;
1355
- readonly at: Schema.Number;
1356
- readonly offset: Schema.Int;
1357
- }>;
1358
- readonly subject: Schema.String;
1359
- readonly message: Schema.String;
1360
- readonly signature: Schema.optionalKey<Schema.String>;
1361
- }>>>;
1362
- readonly next: Schema.optionalKey<Schema.String>;
1343
+ readonly oid: Schema.String;
1344
+ readonly tree: Schema.String;
1345
+ readonly parents: Schema.$Array<Schema.String>;
1346
+ readonly author: Schema.Struct<{
1347
+ readonly name: Schema.String;
1348
+ readonly email: Schema.String;
1349
+ readonly at: Schema.Number;
1350
+ readonly offset: Schema.Int;
1363
1351
  }>;
1364
- readonly files: Schema.Struct<{
1365
- readonly items: Schema.mutable<Schema.$Array<Schema.Struct<{
1366
- readonly status: Schema.Literals<readonly ["A", "D", "M", "R", "T"]>;
1367
- readonly path: Schema.String;
1368
- readonly from: Schema.optionalKey<Schema.String>;
1369
- readonly similarity: Schema.optionalKey<Schema.Number>;
1370
- readonly old: Schema.optionalKey<Schema.Struct<{
1371
- readonly mode: Schema.String;
1372
- readonly oid: Schema.String;
1373
- }>>;
1374
- readonly new: Schema.optionalKey<Schema.Struct<{
1375
- readonly mode: Schema.String;
1376
- readonly oid: Schema.String;
1377
- }>>;
1378
- readonly pathBytes: Schema.optionalKey<Schema.Uint8ArrayFromBase64>;
1379
- readonly fromPathBytes: Schema.optionalKey<Schema.Uint8ArrayFromBase64>;
1380
- readonly lines: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
1381
- readonly added: Schema.Int;
1382
- readonly deleted: Schema.Int;
1383
- }>, Schema.Literal<"binary">]>>;
1384
- }>>>;
1385
- readonly next: Schema.optionalKey<Schema.String>;
1386
- readonly renamesSkipped: Schema.optionalKey<Schema.Literals<readonly ["rename-limit", "memory-limit"]>>;
1352
+ readonly committer: Schema.Struct<{
1353
+ readonly name: Schema.String;
1354
+ readonly email: Schema.String;
1355
+ readonly at: Schema.Number;
1356
+ readonly offset: Schema.Int;
1387
1357
  }>;
1358
+ readonly subject: Schema.String;
1359
+ readonly message: Schema.String;
1360
+ readonly signature: Schema.optionalKey<Schema.String>;
1388
1361
  }>>, Schema.toCodecJson<HttpApiSchema.encodeToWithHeaders<Schema.Codec<{
1389
1362
  readonly code: "ALREADY_EXISTS";
1390
1363
  readonly message: string;
@@ -1784,41 +1757,33 @@ declare const CommitsApiGroup_base: HttpApiGroup.HttpApiGroup<"commits", HttpApi
1784
1757
  }>, {
1785
1758
  "ref0-code": Schema.String;
1786
1759
  'www-authenticate': Schema.String;
1787
- }>>, GitCallerMiddleware, GitRestServices> | HttpApiEndpoint.HttpApiEndpoint<"diff", "POST", "/repos/:repo/-/commits/diff", Schema.toCodecStringTree<Schema.Struct<{
1760
+ }>>, GitCallerMiddleware, GitRestServices> | HttpApiEndpoint.HttpApiEndpoint<"get", "GET", "/repos/:repo/-/commits/:oid", Schema.toCodecStringTree<Schema.Struct<{
1788
1761
  repo: Schema.String;
1789
- }>>, never, Schema.toCodecJson<Schema.Struct<{
1790
- readonly base: Schema.String;
1791
- readonly head: Schema.String;
1792
- readonly renames: Schema.optionalKey<Schema.Boolean>;
1793
- readonly limits: Schema.optionalKey<Schema.Struct<{
1794
- readonly objects: Schema.optionalKey<Schema.Int>;
1795
- readonly bytes: Schema.optionalKey<Schema.Int>;
1796
- readonly entries: Schema.optionalKey<Schema.Int>;
1797
- readonly milliseconds: Schema.optionalKey<Schema.Int>;
1798
- }>>;
1799
- readonly page: Schema.optionalKey<Schema.Struct<{
1800
- readonly after: Schema.optionalKey<Schema.String>;
1801
- readonly limit: Schema.optionalKey<Schema.Int>;
1802
- }>>;
1803
- }>>, never, Schema.toCodecJson<Schema.Struct<{
1804
- readonly items: Schema.mutable<Schema.$Array<Schema.Struct<{
1805
- status: Schema.Literals<readonly ["A", "D", "M", "R", "T"]>;
1806
- path: Schema.String;
1807
- from: Schema.optionalKey<Schema.String>;
1808
- similarity: Schema.optionalKey<Schema.Number>;
1809
- old: Schema.optionalKey<Schema.Struct<{
1810
- readonly mode: Schema.String;
1811
- readonly oid: Schema.String;
1812
- }>>;
1813
- new: Schema.optionalKey<Schema.Struct<{
1814
- readonly mode: Schema.String;
1815
- readonly oid: Schema.String;
1816
- }>>;
1817
- pathBytes: Schema.optionalKey<Schema.Uint8ArrayFromBase64>;
1818
- fromPathBytes: Schema.optionalKey<Schema.Uint8ArrayFromBase64>;
1819
- }>>>;
1820
- readonly next: Schema.optionalKey<Schema.String>;
1821
- readonly renamesSkipped: Schema.optionalKey<Schema.Literals<readonly ["rename-limit", "memory-limit"]>>;
1762
+ oid: Schema.String;
1763
+ }>>, Schema.toCodecStringTree<Schema.Struct<{
1764
+ readonly objects: Schema.optionalKey<Schema.Int>;
1765
+ readonly bytes: Schema.optionalKey<Schema.Int>;
1766
+ readonly entries: Schema.optionalKey<Schema.Int>;
1767
+ readonly milliseconds: Schema.optionalKey<Schema.Int>;
1768
+ }>>, never, never, Schema.toCodecJson<Schema.Struct<{
1769
+ readonly oid: Schema.String;
1770
+ readonly tree: Schema.String;
1771
+ readonly parents: Schema.$Array<Schema.String>;
1772
+ readonly author: Schema.Struct<{
1773
+ readonly name: Schema.String;
1774
+ readonly email: Schema.String;
1775
+ readonly at: Schema.Number;
1776
+ readonly offset: Schema.Int;
1777
+ }>;
1778
+ readonly committer: Schema.Struct<{
1779
+ readonly name: Schema.String;
1780
+ readonly email: Schema.String;
1781
+ readonly at: Schema.Number;
1782
+ readonly offset: Schema.Int;
1783
+ }>;
1784
+ readonly subject: Schema.String;
1785
+ readonly message: Schema.String;
1786
+ readonly signature: Schema.optionalKey<Schema.String>;
1822
1787
  }>>, Schema.toCodecJson<HttpApiSchema.encodeToWithHeaders<Schema.Codec<{
1823
1788
  readonly code: "ALREADY_EXISTS";
1824
1789
  readonly message: string;
@@ -2629,41 +2594,41 @@ declare const CommitsApiGroup_base: HttpApiGroup.HttpApiGroup<"commits", HttpApi
2629
2594
  }>, {
2630
2595
  "ref0-code": Schema.String;
2631
2596
  'www-authenticate': Schema.String;
2632
- }>>, GitCallerMiddleware, GitRestServices> | HttpApiEndpoint.HttpApiEndpoint<"pick", "POST", "/repos/:repo/-/commits/pick", Schema.toCodecStringTree<Schema.Struct<{
2597
+ }>>, GitCallerMiddleware, GitRestServices> | HttpApiEndpoint.HttpApiEndpoint<"diff", "POST", "/repos/:repo/-/commits/diff", Schema.toCodecStringTree<Schema.Struct<{
2633
2598
  repo: Schema.String;
2634
2599
  }>>, never, Schema.toCodecJson<Schema.Struct<{
2635
- readonly commit: Schema.String;
2636
- readonly onto: Schema.String;
2637
- readonly committer: Schema.optionalKey<Schema.Struct<{
2638
- readonly name: Schema.String;
2639
- readonly email: Schema.String;
2640
- readonly at: Schema.Number;
2641
- readonly offset: Schema.Int;
2600
+ readonly base: Schema.String;
2601
+ readonly head: Schema.String;
2602
+ readonly renames: Schema.optionalKey<Schema.Boolean>;
2603
+ readonly limits: Schema.optionalKey<Schema.Struct<{
2604
+ readonly objects: Schema.optionalKey<Schema.Int>;
2605
+ readonly bytes: Schema.optionalKey<Schema.Int>;
2606
+ readonly entries: Schema.optionalKey<Schema.Int>;
2607
+ readonly milliseconds: Schema.optionalKey<Schema.Int>;
2642
2608
  }>>;
2643
- readonly ref: Schema.optionalKey<Schema.Struct<{
2644
- readonly name: Schema.String;
2645
- readonly from: Schema.NullOr<Schema.String>;
2609
+ readonly page: Schema.optionalKey<Schema.Struct<{
2610
+ readonly after: Schema.optionalKey<Schema.String>;
2611
+ readonly limit: Schema.optionalKey<Schema.Int>;
2646
2612
  }>>;
2647
- readonly key: Schema.optionalKey<Schema.String>;
2648
2613
  }>>, never, Schema.toCodecJson<Schema.Struct<{
2649
- readonly oid: Schema.String;
2650
- readonly tree: Schema.String;
2651
- readonly parents: Schema.$Array<Schema.String>;
2652
- readonly author: Schema.Struct<{
2653
- readonly name: Schema.String;
2654
- readonly email: Schema.String;
2655
- readonly at: Schema.Number;
2656
- readonly offset: Schema.Int;
2657
- }>;
2658
- readonly committer: Schema.Struct<{
2659
- readonly name: Schema.String;
2660
- readonly email: Schema.String;
2661
- readonly at: Schema.Number;
2662
- readonly offset: Schema.Int;
2663
- }>;
2664
- readonly subject: Schema.String;
2665
- readonly message: Schema.String;
2666
- readonly signature: Schema.optionalKey<Schema.String>;
2614
+ readonly items: Schema.mutable<Schema.$Array<Schema.Struct<{
2615
+ status: Schema.Literals<readonly ["A", "D", "M", "R", "T"]>;
2616
+ path: Schema.String;
2617
+ from: Schema.optionalKey<Schema.String>;
2618
+ similarity: Schema.optionalKey<Schema.Number>;
2619
+ old: Schema.optionalKey<Schema.Struct<{
2620
+ readonly mode: Schema.String;
2621
+ readonly oid: Schema.String;
2622
+ }>>;
2623
+ new: Schema.optionalKey<Schema.Struct<{
2624
+ readonly mode: Schema.String;
2625
+ readonly oid: Schema.String;
2626
+ }>>;
2627
+ pathBytes: Schema.optionalKey<Schema.Uint8ArrayFromBase64>;
2628
+ fromPathBytes: Schema.optionalKey<Schema.Uint8ArrayFromBase64>;
2629
+ }>>>;
2630
+ readonly next: Schema.optionalKey<Schema.String>;
2631
+ readonly renamesSkipped: Schema.optionalKey<Schema.Literals<readonly ["rename-limit", "memory-limit"]>>;
2667
2632
  }>>, Schema.toCodecJson<HttpApiSchema.encodeToWithHeaders<Schema.Codec<{
2668
2633
  readonly code: "ALREADY_EXISTS";
2669
2634
  readonly message: string;
@@ -3063,44 +3028,79 @@ declare const CommitsApiGroup_base: HttpApiGroup.HttpApiGroup<"commits", HttpApi
3063
3028
  }>, {
3064
3029
  "ref0-code": Schema.String;
3065
3030
  'www-authenticate': Schema.String;
3066
- }>>, GitCallerMiddleware, GitRestServices> | HttpApiEndpoint.HttpApiEndpoint<"revert", "POST", "/repos/:repo/-/commits/revert", Schema.toCodecStringTree<Schema.Struct<{
3031
+ }>>, GitCallerMiddleware, GitRestServices> | HttpApiEndpoint.HttpApiEndpoint<"compare", "POST", "/repos/:repo/-/commits/compare", Schema.toCodecStringTree<Schema.Struct<{
3067
3032
  repo: Schema.String;
3068
3033
  }>>, never, Schema.toCodecJson<Schema.Struct<{
3069
- readonly message: Schema.String;
3070
- readonly author: Schema.Struct<{
3071
- readonly name: Schema.String;
3072
- readonly email: Schema.String;
3073
- readonly at: Schema.Number;
3074
- readonly offset: Schema.Int;
3075
- }>;
3076
- readonly commit: Schema.String;
3077
- readonly onto: Schema.String;
3078
- readonly committer: Schema.optionalKey<Schema.Struct<{
3079
- readonly name: Schema.String;
3080
- readonly email: Schema.String;
3081
- readonly at: Schema.Number;
3082
- readonly offset: Schema.Int;
3034
+ readonly base: Schema.String;
3035
+ readonly head: Schema.String;
3036
+ readonly renames: Schema.optionalKey<Schema.Boolean>;
3037
+ readonly commits: Schema.optionalKey<Schema.Struct<{
3038
+ readonly after: Schema.optionalKey<Schema.String>;
3039
+ readonly limit: Schema.optionalKey<Schema.Int>;
3040
+ }>>;
3041
+ readonly files: Schema.optionalKey<Schema.Struct<{
3042
+ readonly after: Schema.optionalKey<Schema.String>;
3043
+ readonly limit: Schema.optionalKey<Schema.Int>;
3044
+ }>>;
3045
+ readonly limits: Schema.optionalKey<Schema.Struct<{
3046
+ readonly objects: Schema.optionalKey<Schema.Int>;
3047
+ readonly bytes: Schema.optionalKey<Schema.Int>;
3048
+ readonly entries: Schema.optionalKey<Schema.Int>;
3049
+ readonly milliseconds: Schema.optionalKey<Schema.Int>;
3083
3050
  }>>;
3084
- readonly key: Schema.optionalKey<Schema.String>;
3085
3051
  }>>, never, Schema.toCodecJson<Schema.Struct<{
3086
- readonly oid: Schema.String;
3087
- readonly tree: Schema.String;
3088
- readonly parents: Schema.$Array<Schema.String>;
3089
- readonly author: Schema.Struct<{
3090
- readonly name: Schema.String;
3091
- readonly email: Schema.String;
3092
- readonly at: Schema.Number;
3093
- readonly offset: Schema.Int;
3052
+ readonly base: Schema.String;
3053
+ readonly head: Schema.String;
3054
+ readonly mergeBase: Schema.optionalKey<Schema.String>;
3055
+ readonly ahead: Schema.Int;
3056
+ readonly behind: Schema.Int;
3057
+ readonly commits: Schema.Struct<{
3058
+ readonly items: Schema.mutable<Schema.$Array<Schema.Struct<{
3059
+ readonly oid: Schema.String;
3060
+ readonly tree: Schema.String;
3061
+ readonly parents: Schema.$Array<Schema.String>;
3062
+ readonly author: Schema.Struct<{
3063
+ readonly name: Schema.String;
3064
+ readonly email: Schema.String;
3065
+ readonly at: Schema.Number;
3066
+ readonly offset: Schema.Int;
3067
+ }>;
3068
+ readonly committer: Schema.Struct<{
3069
+ readonly name: Schema.String;
3070
+ readonly email: Schema.String;
3071
+ readonly at: Schema.Number;
3072
+ readonly offset: Schema.Int;
3073
+ }>;
3074
+ readonly subject: Schema.String;
3075
+ readonly message: Schema.String;
3076
+ readonly signature: Schema.optionalKey<Schema.String>;
3077
+ }>>>;
3078
+ readonly next: Schema.optionalKey<Schema.String>;
3094
3079
  }>;
3095
- readonly committer: Schema.Struct<{
3096
- readonly name: Schema.String;
3097
- readonly email: Schema.String;
3098
- readonly at: Schema.Number;
3099
- readonly offset: Schema.Int;
3080
+ readonly files: Schema.Struct<{
3081
+ readonly items: Schema.mutable<Schema.$Array<Schema.Struct<{
3082
+ readonly status: Schema.Literals<readonly ["A", "D", "M", "R", "T"]>;
3083
+ readonly path: Schema.String;
3084
+ readonly from: Schema.optionalKey<Schema.String>;
3085
+ readonly similarity: Schema.optionalKey<Schema.Number>;
3086
+ readonly old: Schema.optionalKey<Schema.Struct<{
3087
+ readonly mode: Schema.String;
3088
+ readonly oid: Schema.String;
3089
+ }>>;
3090
+ readonly new: Schema.optionalKey<Schema.Struct<{
3091
+ readonly mode: Schema.String;
3092
+ readonly oid: Schema.String;
3093
+ }>>;
3094
+ readonly pathBytes: Schema.optionalKey<Schema.Uint8ArrayFromBase64>;
3095
+ readonly fromPathBytes: Schema.optionalKey<Schema.Uint8ArrayFromBase64>;
3096
+ readonly lines: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
3097
+ readonly added: Schema.Int;
3098
+ readonly deleted: Schema.Int;
3099
+ }>, Schema.Literal<"binary">]>>;
3100
+ }>>>;
3101
+ readonly next: Schema.optionalKey<Schema.String>;
3102
+ readonly renamesSkipped: Schema.optionalKey<Schema.Literals<readonly ["rename-limit", "memory-limit"]>>;
3100
3103
  }>;
3101
- readonly subject: Schema.String;
3102
- readonly message: Schema.String;
3103
- readonly signature: Schema.optionalKey<Schema.String>;
3104
3104
  }>>, Schema.toCodecJson<HttpApiSchema.encodeToWithHeaders<Schema.Codec<{
3105
3105
  readonly code: "ALREADY_EXISTS";
3106
3106
  readonly message: string;