@catamorphic/git 0.1.0-alpha.43 → 0.1.0-alpha.44

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (65) hide show
  1. package/dist/checkout-remote-backend.d.ts.map +1 -1
  2. package/dist/fs-backend.d.ts +8 -0
  3. package/dist/fs-backend.d.ts.map +1 -1
  4. package/dist/fs-remote-backend.d.ts +43 -9
  5. package/dist/fs-remote-backend.d.ts.map +1 -1
  6. package/dist/git-objects.d.ts +77 -0
  7. package/dist/git-objects.d.ts.map +1 -0
  8. package/dist/git-sync.d.ts +16 -17
  9. package/dist/git-sync.d.ts.map +1 -1
  10. package/dist/index.d.ts +4 -4
  11. package/dist/index.d.ts.map +1 -1
  12. package/dist/index.js +3824 -3099
  13. package/dist/index.js.map +23 -22
  14. package/dist/native-git.d.ts +114 -2
  15. package/dist/native-git.d.ts.map +1 -1
  16. package/dist/native-project-repo.d.ts +40 -5
  17. package/dist/native-project-repo.d.ts.map +1 -1
  18. package/dist/network-sync.d.ts.map +1 -1
  19. package/dist/network.d.ts +14 -9
  20. package/dist/network.d.ts.map +1 -1
  21. package/dist/object-origin-cache.d.ts +86 -0
  22. package/dist/object-origin-cache.d.ts.map +1 -0
  23. package/dist/object-remote-backend.d.ts +64 -10
  24. package/dist/object-remote-backend.d.ts.map +1 -1
  25. package/dist/origin-draft.d.ts.map +1 -1
  26. package/dist/origin-objects.d.ts +7 -2
  27. package/dist/origin-objects.d.ts.map +1 -1
  28. package/dist/project-manager.d.ts +22 -0
  29. package/dist/project-manager.d.ts.map +1 -1
  30. package/dist/project-paths.d.ts +20 -0
  31. package/dist/project-paths.d.ts.map +1 -0
  32. package/dist/ref-names.d.ts +35 -0
  33. package/dist/ref-names.d.ts.map +1 -1
  34. package/dist/types.d.ts +37 -4
  35. package/dist/types.d.ts.map +1 -1
  36. package/dist/workspace-checkout.d.ts.map +1 -1
  37. package/dist/workspace-mirror.d.ts +13 -1
  38. package/dist/workspace-mirror.d.ts.map +1 -1
  39. package/dist/workspace-save.d.ts +27 -2
  40. package/dist/workspace-save.d.ts.map +1 -1
  41. package/package.json +4 -4
  42. package/src/checkout-remote-backend.ts +77 -29
  43. package/src/fs-backend.ts +69 -7
  44. package/src/fs-remote-backend.ts +255 -133
  45. package/src/git-objects.ts +363 -0
  46. package/src/git-sync.ts +124 -453
  47. package/src/index.ts +9 -7
  48. package/src/native-git.ts +566 -25
  49. package/src/native-project-repo.ts +318 -99
  50. package/src/network-sync.ts +43 -35
  51. package/src/network.ts +177 -153
  52. package/src/object-origin-cache.ts +689 -0
  53. package/src/object-remote-backend.ts +277 -20
  54. package/src/origin-draft.ts +22 -15
  55. package/src/origin-objects.ts +21 -5
  56. package/src/project-manager.ts +261 -73
  57. package/src/project-paths.ts +142 -0
  58. package/src/ref-names.ts +56 -0
  59. package/src/types.ts +38 -4
  60. package/src/workspace-checkout.ts +16 -9
  61. package/src/workspace-mirror.ts +199 -58
  62. package/src/workspace-save.ts +99 -30
  63. package/dist/project-repo.d.ts +0 -81
  64. package/dist/project-repo.d.ts.map +0 -1
  65. package/src/project-repo.ts +0 -821
@@ -8,7 +8,14 @@ import { constants } from "node:fs";
8
8
  import fs from "node:fs/promises";
9
9
  import { tmpdir } from "node:os";
10
10
  import path from "node:path";
11
- import { nativeGit, nativeGitBytes } from "./native-git.js";
11
+ import {
12
+ initManagedRepository,
13
+ nativeGit,
14
+ nativeGitBytes,
15
+ nativeGitEnvironment,
16
+ nativeGitLines,
17
+ objectsDirectory,
18
+ } from "./native-git.js";
12
19
  import type { DraftChange } from "./origin-draft.js";
13
20
  import { isPersonalFile } from "./personal-files.js";
14
21
 
@@ -209,9 +216,34 @@ export function assertSavedTree(input: {
209
216
  }
210
217
  }
211
218
 
212
- /** Git with nothing inherited that could prompt or lock. */
213
- function gitEnvironment(): NodeJS.ProcessEnv {
214
- return { ...process.env, GIT_OPTIONAL_LOCKS: "0", GIT_TERMINAL_PROMPT: "0" };
219
+ /**
220
+ * Refuse a commit a save names without bringing it, unless the session's
221
+ * own history already holds it: it must be `known` (the workspace's base,
222
+ * its last saved head) or an ancestor of one. That it exists in the
223
+ * session's copy is not enough: the copy borrows its origin's objects
224
+ * (ADR 0356), where other chats' checkpoints and members' drafts are too.
225
+ */
226
+ export async function assertHeldCommit(input: {
227
+ repoPath: string;
228
+ commit: string;
229
+ known: readonly string[];
230
+ }): Promise<void> {
231
+ const refused = () =>
232
+ new WorkspaceSaveError(
233
+ "the branch stands on a commit that did not arrive with the save",
234
+ );
235
+ for (const oid of [input.commit, ...input.known])
236
+ if (!OBJECT_ID.test(oid)) throw refused();
237
+ const beyond = await nativeGit(input.repoPath, [
238
+ "rev-list",
239
+ "--max-count=1",
240
+ input.commit,
241
+ "--not",
242
+ ...input.known,
243
+ ]).catch(() => {
244
+ throw refused();
245
+ });
246
+ if (beyond.trim()) throw refused();
215
247
  }
216
248
 
217
249
  /**
@@ -227,6 +259,16 @@ export class ReceivedPack {
227
259
  private readonly directory: string,
228
260
  /** Bytes of an object id in the sandbox's repository. */
229
261
  private readonly idBytes: 20 | 32,
262
+ /**
263
+ * The ids of the objects the pack itself brought, listed before the
264
+ * repository borrowed anything. A save may name only these as new: an
265
+ * id that merely exists in what is borrowed (the session's copy, and
266
+ * through it everything its origin holds) proves nothing about whose
267
+ * it is.
268
+ */
269
+ private readonly own: ReadonlySet<string>,
270
+ /** What Git runs with in this repository: Work's, nothing inherited. */
271
+ private readonly env: NodeJS.ProcessEnv,
230
272
  ) {}
231
273
 
232
274
  /** Index the pack arriving as `chunks`, in order. */
@@ -242,21 +284,24 @@ export class ReceivedPack {
242
284
  }): Promise<ReceivedPack> {
243
285
  const directory = await fs.mkdtemp(path.join(tmpdir(), "work-save-"));
244
286
  try {
245
- await nativeGit(directory, [
246
- "init",
247
- "--bare",
248
- "--quiet",
249
- ...(input.objectFormat === "sha256" ? ["--object-format=sha256"] : []),
250
- ]);
287
+ await initManagedRepository({
288
+ path: directory,
289
+ bare: true,
290
+ objectFormat: input.objectFormat,
291
+ });
292
+ // The pack is self-contained: it is indexed, and what it brought
293
+ // listed, before this repository can see any other object.
294
+ await indexPack({ directory, chunks: input.chunks });
295
+ const own = new Set<string>();
296
+ for await (const line of nativeGitLines({
297
+ cwd: directory,
298
+ args: ["cat-file", "--batch-check", "--batch-all-objects"],
299
+ })) {
300
+ const oid = line.slice(0, line.indexOf(" "));
301
+ if (OBJECT_ID.test(oid)) own.add(oid);
302
+ }
251
303
  if (input.borrow) {
252
- const objects = (
253
- await nativeGit(input.borrow, [
254
- "rev-parse",
255
- "--path-format=absolute",
256
- "--git-path",
257
- "objects",
258
- ])
259
- ).trim();
304
+ const objects = await objectsDirectory(input.borrow);
260
305
  if (/[\n"]/.test(objects))
261
306
  throw new Error("The saved copy's path cannot be borrowed from");
262
307
  await fs.writeFile(
@@ -264,10 +309,11 @@ export class ReceivedPack {
264
309
  `${objects}\n`,
265
310
  );
266
311
  }
267
- await indexPack({ directory, chunks: input.chunks });
268
312
  return new ReceivedPack(
269
313
  directory,
270
314
  input.objectFormat === "sha256" ? 32 : 20,
315
+ own,
316
+ await nativeGitEnvironment({ cwd: directory, managed: true }),
271
317
  );
272
318
  } catch (error) {
273
319
  await fs.rm(directory, { recursive: true, force: true });
@@ -301,7 +347,13 @@ export class ReceivedPack {
301
347
  let total = 0;
302
348
  for (const [index, line] of lines.entries()) {
303
349
  const [oid, type, size] = line.split(" ");
304
- if (oid !== oids[index] || type !== "blob" || !/^\d+$/.test(size ?? ""))
350
+ if (
351
+ oid !== oids[index] ||
352
+ type !== "blob" ||
353
+ !/^\d+$/.test(size ?? "") ||
354
+ // Named, and found only in what this repository borrows.
355
+ !this.own.has(oid ?? "")
356
+ )
305
357
  throw new WorkspaceSaveError(
306
358
  "the workspace's pack lacks a file it names",
307
359
  );
@@ -318,8 +370,11 @@ export class ReceivedPack {
318
370
  * of them is kept: `head` and everything it reaches that `known` (the
319
371
  * workspace's base and its last saved head) does not. Every commit must
320
372
  * be here whole, with history that ends at `known`; every tree may name
321
- * only what a checkout may hold; and together they are bounded. Returns
322
- * the new commits, newest first.
373
+ * only what a checkout may hold; and together they are bounded. Every
374
+ * one of those objects must have come in the pack itself: a commit, a
375
+ * folder or a file that this repository only borrows (another chat's
376
+ * checkpoint, a member's draft) is somebody else's, however well its id
377
+ * is known. Returns the new commits, newest first.
323
378
  */
324
379
  async assertHistory(input: {
325
380
  head: string;
@@ -374,9 +429,13 @@ export class ReceivedPack {
374
429
  let total = 0;
375
430
  for (const [index, line] of listed.entries()) {
376
431
  const [oid, type, size] = line.split(" ");
377
- if (oid !== objects[index] || !/^\d+$/.test(size ?? ""))
432
+ if (
433
+ oid !== objects[index] ||
434
+ !/^\d+$/.test(size ?? "") ||
435
+ !this.own.has(oid ?? "")
436
+ )
378
437
  throw new WorkspaceSaveError(
379
- "the branch's commits name an object that did not arrive",
438
+ "the branch's commits name an object that did not arrive with them",
380
439
  );
381
440
  total += Number(size);
382
441
  if (total > input.maxBytes)
@@ -502,12 +561,15 @@ export class ReceivedPack {
502
561
  const packer = spawn(
503
562
  "git",
504
563
  ["-C", this.directory, "pack-objects", "--revs", "--stdout", "--quiet"],
505
- { env: gitEnvironment(), stdio: ["pipe", "pipe", "ignore"] },
564
+ { env: this.env, stdio: ["pipe", "pipe", "ignore"] },
506
565
  );
507
566
  const unpacker = spawn(
508
567
  "git",
509
568
  ["-C", input.repoPath, "unpack-objects", "--strict", "-q"],
510
- { env: gitEnvironment(), stdio: ["pipe", "ignore", "pipe"] },
569
+ {
570
+ env: await nativeGitEnvironment({ cwd: input.repoPath }),
571
+ stdio: ["pipe", "ignore", "pipe"],
572
+ },
511
573
  );
512
574
  const stderr: Buffer[] = [];
513
575
  unpacker.stderr.on("data", (chunk: Buffer) => {
@@ -580,7 +642,7 @@ export class ReceivedPack {
580
642
  maxBytes: number;
581
643
  write: (chunk: Uint8Array) => Promise<void>;
582
644
  }): Promise<void> {
583
- this.reader ??= new BlobReader(this.directory);
645
+ this.reader ??= new BlobReader(this.directory, this.env);
584
646
  const reader = this.reader;
585
647
  try {
586
648
  await reader.copy(input);
@@ -594,6 +656,10 @@ export class ReceivedPack {
594
656
 
595
657
  /** The manifest blob, parsed and checked. */
596
658
  async changes(input: { manifest: string }): Promise<SavedChange[]> {
659
+ if (!this.own.has(input.manifest))
660
+ throw new WorkspaceSaveError(
661
+ "the workspace's list of changes is missing",
662
+ );
597
663
  return parseSavedChanges(
598
664
  await this.read({ oid: input.manifest, maxBytes: MAX_MANIFEST_BYTES }),
599
665
  );
@@ -615,7 +681,10 @@ async function indexPack(input: {
615
681
  "git",
616
682
  // Git checks every object's form as it indexes, not only its checksum.
617
683
  ["-C", input.directory, "index-pack", "--stdin", "--fsck-objects"],
618
- { env: gitEnvironment(), stdio: ["pipe", "ignore", "pipe"] },
684
+ {
685
+ env: await nativeGitEnvironment({ cwd: input.directory }),
686
+ stdio: ["pipe", "ignore", "pipe"],
687
+ },
619
688
  );
620
689
  const stderr: Buffer[] = [];
621
690
  child.stderr.on("data", (chunk: Buffer) => {
@@ -667,9 +736,9 @@ class BlobReader {
667
736
  /** Reads are answered in order: one waits for the one before it. */
668
737
  private last: Promise<void> = Promise.resolve();
669
738
 
670
- constructor(directory: string) {
739
+ constructor(directory: string, env: NodeJS.ProcessEnv) {
671
740
  this.child = spawn("git", ["-C", directory, "cat-file", "--batch"], {
672
- env: gitEnvironment(),
741
+ env,
673
742
  stdio: ["pipe", "pipe", "pipe"],
674
743
  });
675
744
  this.child.on("error", () => {});
@@ -1,81 +0,0 @@
1
- import { type Ignore } from "ignore";
2
- import { type FileReadOptions } from "./file-reads.js";
3
- import type { BranchInfo, CommitInfo, DiffEntry, ProjectRepo, RepoStatus } from "./types.js";
4
- /** Directories a walk never enters. */
5
- export declare const WALK_SKIPPED_DIRS: ReadonlySet<string>;
6
- export declare function assertSafePath(filePath: string): void;
7
- export declare function walkDirectory(dir: string, base: string, options?: {
8
- excludeNestedRepositories?: boolean;
9
- includeHidden?: boolean;
10
- tracked: Set<string>;
11
- trackedDirectories: Set<string>;
12
- rules: Array<{
13
- base: string;
14
- matcher: Ignore;
15
- }>;
16
- }): Promise<string[]>;
17
- export declare class ProjectRepoImpl implements ProjectRepo {
18
- readonly projectId: string;
19
- readonly repoPath: string;
20
- private readonly releaseFn;
21
- /**
22
- * Managed working copies (servers) never follow symbolic links; a
23
- * person's own folder on their computer may hold theirs.
24
- */
25
- protected readonly followsSymlinks: boolean;
26
- constructor(projectId: string, repoPath: string, releaseFn: () => Promise<void>);
27
- readFile(filePath: string): Promise<string>;
28
- writeFile(filePath: string, content: string): Promise<void>;
29
- deleteFile(filePath: string): Promise<void>;
30
- listFiles(opts?: {
31
- prefix?: string;
32
- }): Promise<string[]>;
33
- readAllFiles(options?: FileReadOptions): Promise<Record<string, string>>;
34
- protected readSnapshotBytes(file: string, maxBytes: number): Promise<Uint8Array>;
35
- readAllFilesAtRef(ref: string, options?: FileReadOptions): Promise<Record<string, string>>;
36
- readFilesAtRef(ref: string, opts: {
37
- prefix: string;
38
- }): Promise<Record<string, string>>;
39
- readBlobAtRef(ref: string, filePath: string, options?: {
40
- maxBytes?: number;
41
- }): Promise<Uint8Array | null>;
42
- readFileBytes(filePath: string): Promise<Uint8Array | null>;
43
- listFilesAtRef(ref: string, opts?: {
44
- prefix?: string;
45
- }): Promise<string[]>;
46
- listBlobsAtRef(ref: string, opts?: {
47
- prefix?: string;
48
- }): Promise<Array<{
49
- path: string;
50
- oid: string;
51
- }>>;
52
- private walkFilesAtRef;
53
- commit(message: string, author: {
54
- name: string;
55
- email: string;
56
- }, opts?: {
57
- paths?: readonly string[];
58
- allowEmpty?: boolean;
59
- }): Promise<string>;
60
- log(options?: {
61
- maxCount?: number;
62
- ref?: string;
63
- }): Promise<CommitInfo[]>;
64
- resolveRef(ref?: string): Promise<string>;
65
- checkout(ref?: string): Promise<void>;
66
- status(): Promise<RepoStatus>;
67
- currentBranch(): Promise<string>;
68
- listBranches(): Promise<BranchInfo[]>;
69
- createBranch(name: string, fromRef?: string): Promise<void>;
70
- deleteBranch(name: string): Promise<void>;
71
- hasBranch(name: string): Promise<boolean>;
72
- workdirDiff(): Promise<DiffEntry[]>;
73
- diff(opts: {
74
- base: string;
75
- head: string;
76
- }): Promise<DiffEntry[]>;
77
- moveBranch(name: string, sha: string): Promise<void>;
78
- resetWorkingTree(): Promise<void>;
79
- dispose(): Promise<void>;
80
- }
81
- //# sourceMappingURL=project-repo.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"project-repo.d.ts","sourceRoot":"","sources":["../src/project-repo.ts"],"names":[],"mappings":"AAOA,OAAe,EAAE,KAAK,MAAM,EAAE,MAAM,QAAQ,CAAC;AAE7C,OAAO,EAAE,KAAK,eAAe,EAAoB,MAAM,iBAAiB,CAAC;AAGzE,OAAO,KAAK,EACV,UAAU,EACV,UAAU,EACV,SAAS,EACT,WAAW,EACX,UAAU,EACX,MAAM,YAAY,CAAC;AAEpB,uCAAuC;AACvC,eAAO,MAAM,iBAAiB,EAAE,WAAW,CAAC,MAAM,CAKhD,CAAC;AAoBH,wBAAgB,cAAc,CAAC,QAAQ,EAAE,MAAM,GAAG,IAAI,CAqBrD;AAkBD,wBAAsB,aAAa,CACjC,GAAG,EAAE,MAAM,EACX,IAAI,EAAE,MAAM,EACZ,OAAO,CAAC,EAAE;IACR,yBAAyB,CAAC,EAAE,OAAO,CAAC;IACpC,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,OAAO,EAAE,GAAG,CAAC,MAAM,CAAC,CAAC;IACrB,kBAAkB,EAAE,GAAG,CAAC,MAAM,CAAC,CAAC;IAChC,KAAK,EAAE,KAAK,CAAC;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,OAAO,EAAE,MAAM,CAAA;KAAE,CAAC,CAAC;CACjD,GACA,OAAO,CAAC,MAAM,EAAE,CAAC,CA+DnB;AAED,qBAAa,eAAgB,YAAW,WAAW;IAQ/C,QAAQ,CAAC,SAAS,EAAE,MAAM;IAC1B,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