@amalgm/live 0.2.81-main.45331895154 → 0.2.81-main.45707041568

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 (40) hide show
  1. package/dist/detection/record-proposal.d.ts +8 -6
  2. package/dist/detection/record-proposal.d.ts.map +1 -1
  3. package/dist/detection/record-proposal.js.map +1 -1
  4. package/dist/git/commands.d.ts +3 -0
  5. package/dist/git/commands.d.ts.map +1 -0
  6. package/dist/git/commands.js +35 -0
  7. package/dist/git/commands.js.map +1 -0
  8. package/dist/git/index.d.ts +2 -1
  9. package/dist/git/index.d.ts.map +1 -1
  10. package/dist/git/index.js +2 -1
  11. package/dist/git/index.js.map +1 -1
  12. package/dist/git/tag.d.ts +54 -0
  13. package/dist/git/tag.d.ts.map +1 -0
  14. package/dist/git/tag.js +68 -0
  15. package/dist/git/tag.js.map +1 -0
  16. package/dist/git/turns.d.ts +105 -75
  17. package/dist/git/turns.d.ts.map +1 -1
  18. package/dist/git/turns.js +131 -91
  19. package/dist/git/turns.js.map +1 -1
  20. package/dist/records/contracts.d.ts.map +1 -1
  21. package/dist/records/contracts.js +3 -2
  22. package/dist/records/contracts.js.map +1 -1
  23. package/dist-cjs/detection/record-proposal.js.map +1 -1
  24. package/dist-cjs/git/commands.js +39 -0
  25. package/dist-cjs/git/commands.js.map +1 -0
  26. package/dist-cjs/git/index.js +2 -1
  27. package/dist-cjs/git/index.js.map +1 -1
  28. package/dist-cjs/git/tag.js +72 -0
  29. package/dist-cjs/git/tag.js.map +1 -0
  30. package/dist-cjs/git/turns.js +136 -96
  31. package/dist-cjs/git/turns.js.map +1 -1
  32. package/dist-cjs/records/contracts.js +3 -2
  33. package/dist-cjs/records/contracts.js.map +1 -1
  34. package/package.json +4 -4
  35. package/dist/git/hooks.d.ts +0 -140
  36. package/dist/git/hooks.d.ts.map +0 -1
  37. package/dist/git/hooks.js +0 -240
  38. package/dist/git/hooks.js.map +0 -1
  39. package/dist-cjs/git/hooks.js +0 -249
  40. package/dist-cjs/git/hooks.js.map +0 -1
@@ -24,14 +24,16 @@ export type ChangeFacet = 'create' | 'rename' | 'move' | 'retype' | 'content' |
24
24
  export interface StructureReplay {
25
25
  readonly kind: 'structure';
26
26
  }
27
- /** One step of a repository's waiting line (`src/git/turns.ts`): a Git
28
- * command's before-hook asks for the turn, naming its event; an end names
29
- * the mutation id of the ask it ends. */
27
+ /** One step of a repository's waiting line (`src/git/turns.ts`): a computer
28
+ * asks for the turn, `event` naming the Git command that made it ask. A
29
+ * check asks the computer holding a turn whether a command of its is still
30
+ * running, its holder answers running, and an end closes a turn; each of the
31
+ * three names the mutation id of the ask it speaks of. */
30
32
  export type GitTurn = {
31
33
  readonly act: 'ask';
32
34
  readonly event: string;
33
35
  } | {
34
- readonly act: 'end';
36
+ readonly act: 'check' | 'running' | 'end';
35
37
  readonly ask: string;
36
38
  };
37
39
  /** One byte-exact replacement span. Offsets are bytes, not UTF-16 indexes. */
@@ -95,8 +97,8 @@ export interface DetectedChangeProposal {
95
97
  /** An echo only (`echoProposal`): the version of the row it states over.
96
98
  * An echo's facets are empty: it states the line, never a change. */
97
99
  readonly joins?: string;
98
- /** A Git turn only (`turnProposal`): a repository's ask for its turn, or
99
- * the end of one. Its facets are empty and it plays as nothing. */
100
+ /** A Git turn only (`turnProposal`): one step of a repository's waiting
101
+ * line. Its facets are empty and it plays as nothing. */
100
102
  readonly turn?: GitTurn;
101
103
  }
102
104
  export interface DetectedChangeInput {
@@ -1 +1 @@
1
- {"version":3,"file":"record-proposal.d.ts","sourceRoot":"","sources":["../../src/detection/record-proposal.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,OAAO,EAEL,KAAK,iBAAiB,EACvB,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EAAoC,KAAK,aAAa,EAAE,KAAK,YAAY,EAAE,MAAM,sBAAsB,CAAC;AAC/G,OAAO,EAGL,KAAK,YAAY,EACjB,KAAK,eAAe,EACrB,MAAM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ClB,CAAC;AAED;;;yEAGyE;AACzE,MAAM,UAAU,wBAAwB,CACtC,MAAyF;IAEzF,OAAO,MAAM,CAAC,MAAM,KAAK,aAAa;WACjC,CAAC,eAAe,CAAC,GAAG,CAAC,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC;WACxC,MAAM,CAAC,MAAM,CAAC,MAAM,KAAK,SAAS;WAClC,MAAM,CAAC,MAAM,CAAC,UAAU,KAAK,IAAI;WACjC,MAAM,CAAC,MAAM,CAAC,MAAM,KAAK,CAAC,IAAI,MAAM,CAAC,MAAM,CAAC,CAAC,CAAC,KAAK,QAAQ;WAC3D,MAAM,CAAC,MAAM,CAAC,IAAI,KAAK,WAAW,IAAI,MAAM,CAAC,IAAI,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC,MAAM,KAAK,CAAC;WAC7E,MAAM,CAAC,KAAK,CAAC,MAAM,KAAK,CAAC,CAAC;AACjC,CAAC"}
@@ -0,0 +1,3 @@
1
+ /** Whether the Git command named `command` only reads. */
2
+ export declare const gitCommandReads: (command: string) => boolean;
3
+ //# sourceMappingURL=commands.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"commands.d.ts","sourceRoot":"","sources":["../../src/git/commands.ts"],"names":[],"mappings":"AAiCA,0DAA0D;AAC1D,eAAO,MAAM,eAAe,GAAI,SAAS,MAAM,KAAG,OAAyC,CAAC"}
@@ -0,0 +1,35 @@
1
+ /**
2
+ * Which Git commands only read.
3
+ *
4
+ * Our Git names its command when it asks (the name Git resolved, never its
5
+ * arguments, which can hold an address or a secret). A command named here
6
+ * can change no ref, no index entry and no working file, whatever its
7
+ * arguments, so it takes no turn (turns.ts). Every other name may change
8
+ * the repository and needs the turn: a command whose arguments decide
9
+ * (`branch`, `tag`, `config`, `stash`, `remote`, `worktree`, `notes`,
10
+ * `reflog`, `symbolic-ref`), an alias, a script, and any command a later
11
+ * Git adds. The list can only be too short, which costs a wait and never a
12
+ * wrong result.
13
+ */
14
+ const GIT_READ_COMMANDS = new Set([
15
+ // What a person or an agent looks at.
16
+ 'status', 'diff', 'log', 'show', 'blame', 'annotate', 'grep', 'describe', 'shortlog', 'range-diff',
17
+ 'show-branch', 'whatchanged', 'last-modified', 'difftool', 'help', 'version',
18
+ // Objects and refs, read.
19
+ 'cat-file', 'ls-files', 'ls-tree', 'ls-remote', 'show-ref', 'rev-parse', 'rev-list', 'merge-base',
20
+ 'cherry', 'for-each-ref', 'name-rev', 'diff-files', 'diff-index', 'diff-tree', 'diff-pairs',
21
+ // Checks and reports.
22
+ 'fsck', 'verify-commit', 'verify-tag', 'verify-pack', 'count-objects', 'show-index', 'get-tar-commit-id',
23
+ 'check-attr', 'check-ignore', 'check-mailmap', 'check-ref-format', 'var',
24
+ // What leaves the repository as a file or a stream, to a person or to
25
+ // another Git fetching from it.
26
+ 'format-patch', 'archive', 'patch-id', 'request-pull', 'fast-export', 'upload-pack', 'upload-archive',
27
+ // Git's own file watcher: it lives as long as the checkout is open and
28
+ // changes nothing in it.
29
+ 'fsmonitor--daemon',
30
+ // Text helpers.
31
+ 'column', 'stripspace', 'interpret-trailers', 'mailinfo', 'mailsplit', 'fmt-merge-msg',
32
+ ]);
33
+ /** Whether the Git command named `command` only reads. */
34
+ export const gitCommandReads = (command) => GIT_READ_COMMANDS.has(command);
35
+ //# sourceMappingURL=commands.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"commands.js","sourceRoot":"","sources":["../../src/git/commands.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AACH,MAAM,iBAAiB,GAAwB,IAAI,GAAG,CAAC;IACrD,sCAAsC;IACtC,QAAQ,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,OAAO,EAAE,UAAU,EAAE,MAAM,EAAE,UAAU,EAAE,UAAU,EAAE,YAAY;IAClG,aAAa,EAAE,aAAa,EAAE,eAAe,EAAE,UAAU,EAAE,MAAM,EAAE,SAAS;IAC5E,0BAA0B;IAC1B,UAAU,EAAE,UAAU,EAAE,SAAS,EAAE,WAAW,EAAE,UAAU,EAAE,WAAW,EAAE,UAAU,EAAE,YAAY;IACjG,QAAQ,EAAE,cAAc,EAAE,UAAU,EAAE,YAAY,EAAE,YAAY,EAAE,WAAW,EAAE,YAAY;IAC3F,sBAAsB;IACtB,MAAM,EAAE,eAAe,EAAE,YAAY,EAAE,aAAa,EAAE,eAAe,EAAE,YAAY,EAAE,mBAAmB;IACxG,YAAY,EAAE,cAAc,EAAE,eAAe,EAAE,kBAAkB,EAAE,KAAK;IACxE,sEAAsE;IACtE,gCAAgC;IAChC,cAAc,EAAE,SAAS,EAAE,UAAU,EAAE,cAAc,EAAE,aAAa,EAAE,aAAa,EAAE,gBAAgB;IACrG,uEAAuE;IACvE,yBAAyB;IACzB,mBAAmB;IACnB,gBAAgB;IAChB,QAAQ,EAAE,YAAY,EAAE,oBAAoB,EAAE,UAAU,EAAE,WAAW,EAAE,eAAe;CACvF,CAAC,CAAC;AAEH,0DAA0D;AAC1D,MAAM,CAAC,MAAM,eAAe,GAAG,CAAC,OAAe,EAAW,EAAE,CAAC,iBAAiB,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC"}
@@ -5,6 +5,7 @@ export * from './artifact.js';
5
5
  export * from './chain.js';
6
6
  export * from './plan.js';
7
7
  export * from './play.js';
8
- export * from './hooks.js';
8
+ export * from './commands.js';
9
+ export * from './tag.js';
9
10
  export * from './turns.js';
10
11
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/git/index.ts"],"names":[],"mappings":"AAAA,cAAc,YAAY,CAAC;AAC3B,cAAc,iBAAiB,CAAC;AAChC,OAAO,EAAE,cAAc,EAAE,MAAM,WAAW,CAAC;AAC3C,cAAc,eAAe,CAAC;AAC9B,cAAc,YAAY,CAAC;AAC3B,cAAc,WAAW,CAAC;AAC1B,cAAc,WAAW,CAAC;AAC1B,cAAc,YAAY,CAAC;AAC3B,cAAc,YAAY,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/git/index.ts"],"names":[],"mappings":"AAAA,cAAc,YAAY,CAAC;AAC3B,cAAc,iBAAiB,CAAC;AAChC,OAAO,EAAE,cAAc,EAAE,MAAM,WAAW,CAAC;AAC3C,cAAc,eAAe,CAAC;AAC9B,cAAc,YAAY,CAAC;AAC3B,cAAc,WAAW,CAAC;AAC1B,cAAc,WAAW,CAAC;AAC1B,cAAc,eAAe,CAAC;AAC9B,cAAc,UAAU,CAAC;AACzB,cAAc,YAAY,CAAC"}
package/dist/git/index.js CHANGED
@@ -5,6 +5,7 @@ export * from './artifact.js';
5
5
  export * from './chain.js';
6
6
  export * from './plan.js';
7
7
  export * from './play.js';
8
- export * from './hooks.js';
8
+ export * from './commands.js';
9
+ export * from './tag.js';
9
10
  export * from './turns.js';
10
11
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/git/index.ts"],"names":[],"mappings":"AAAA,cAAc,YAAY,CAAC;AAC3B,cAAc,iBAAiB,CAAC;AAChC,OAAO,EAAE,cAAc,EAAE,MAAM,WAAW,CAAC;AAC3C,cAAc,eAAe,CAAC;AAC9B,cAAc,YAAY,CAAC;AAC3B,cAAc,WAAW,CAAC;AAC1B,cAAc,WAAW,CAAC;AAC1B,cAAc,YAAY,CAAC;AAC3B,cAAc,YAAY,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/git/index.ts"],"names":[],"mappings":"AAAA,cAAc,YAAY,CAAC;AAC3B,cAAc,iBAAiB,CAAC;AAChC,OAAO,EAAE,cAAc,EAAE,MAAM,WAAW,CAAC;AAC3C,cAAc,eAAe,CAAC;AAC9B,cAAc,YAAY,CAAC;AAC3B,cAAc,WAAW,CAAC;AAC1B,cAAc,WAAW,CAAC;AAC1B,cAAc,eAAe,CAAC;AAC9B,cAAc,UAAU,CAAC;AACzB,cAAc,YAAY,CAAC"}
@@ -0,0 +1,54 @@
1
+ /**
2
+ * The tag: what makes a repository answer only to our Git.
3
+ *
4
+ * Git refuses a repository whose own configuration names an extension it
5
+ * does not know. Ours is `extensions.amalgm`, which only our Git knows: in
6
+ * a tagged repository our Git asks this computer's runtime before every
7
+ * command (turns.ts), and any other Git stops with one line and changes
8
+ * nothing. So no Git command can run in a tagged repository without asking.
9
+ *
10
+ * - **On.** Every repository the cloud holds carries the tag, from the pass
11
+ * that first records it: a usable `.git` found in registered ground,
12
+ * inside the home or outside through a durable link, nested, a submodule,
13
+ * a linked worktree, or made there by any other Git. The tag is written
14
+ * in the configuration of the repository's common directory, so one tag
15
+ * covers every worktree of that storage. A repository `.amalgmignore` has
16
+ * always kept from the cloud is never tagged: no other computer has it,
17
+ * so there is nobody to take turns with.
18
+ * - **It travels.** A repository's own configuration is part of its state,
19
+ * so the tag is one more change: a repository that arrives on another
20
+ * computer arrives tagged, and nothing tags it twice.
21
+ * - **Kept.** Inside registered ground the tag is ours. A hand that takes
22
+ * it off, or an older state applied over it, is one more change the next
23
+ * pass reads, and that pass puts the tag back. A repository newly kept
24
+ * from sharing stays tagged: the cloud still holds it.
25
+ * - **Only with our Git.** A computer tags nothing unless its own Git opens
26
+ * a tagged repository. It would otherwise lock itself out of every
27
+ * project it tagged.
28
+ * - **Off.** Uninstalling Amalgm takes the tag off every repository this
29
+ * computer enrolled, so any Git opens them again. A repository carried
30
+ * out of registered ground by hand keeps the tag: our Git opens it and
31
+ * the runtime, knowing nothing of it, says go at once; on a computer
32
+ * with only another Git the person runs `GIT_TAG_OFF` once.
33
+ */
34
+ /** The extension only our Git knows. */
35
+ export declare const GIT_TAG = "extensions.amalgm";
36
+ /** What a person runs, in a tagged repository's folder, to open it with a
37
+ * Git that is not ours. Where `.git` is a file (a submodule, a linked
38
+ * worktree), the tag is in the storage that file names, in its common
39
+ * directory for a linked worktree: the person names that `config` instead. */
40
+ export declare const GIT_TAG_OFF = "git config --file .git/config --unset-all extensions.amalgm";
41
+ /** One `git config --file <configuration>` edit, as the arguments after the
42
+ * file. */
43
+ export type GitTagEdit = readonly string[];
44
+ /**
45
+ * The edits that make one configuration file carry the tag (`on`) or not.
46
+ * `listing` is that file as `git config --file <it> --list -z` prints it.
47
+ * Empty when it already agrees.
48
+ *
49
+ * Git reads extensions only in format version 1. Taking the tag off puts
50
+ * the version back to 0 only when no other extension is left, so a
51
+ * repository that needs version 1 for its own reasons keeps it.
52
+ */
53
+ export declare function gitTagEdits(listing: string, on: boolean): readonly GitTagEdit[];
54
+ //# sourceMappingURL=tag.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tag.d.ts","sourceRoot":"","sources":["../../src/git/tag.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAgCG;AAEH,wCAAwC;AACxC,eAAO,MAAM,OAAO,sBAAsB,CAAC;AAI3C;;;8EAG8E;AAC9E,eAAO,MAAM,WAAW,gEAAyD,CAAC;AAElF;WACW;AACX,MAAM,MAAM,UAAU,GAAG,SAAS,MAAM,EAAE,CAAC;AAE3C;;;;;;;;GAQG;AACH,wBAAgB,WAAW,CAAC,OAAO,EAAE,MAAM,EAAE,EAAE,EAAE,OAAO,GAAG,SAAS,UAAU,EAAE,CAe/E"}
@@ -0,0 +1,68 @@
1
+ /**
2
+ * The tag: what makes a repository answer only to our Git.
3
+ *
4
+ * Git refuses a repository whose own configuration names an extension it
5
+ * does not know. Ours is `extensions.amalgm`, which only our Git knows: in
6
+ * a tagged repository our Git asks this computer's runtime before every
7
+ * command (turns.ts), and any other Git stops with one line and changes
8
+ * nothing. So no Git command can run in a tagged repository without asking.
9
+ *
10
+ * - **On.** Every repository the cloud holds carries the tag, from the pass
11
+ * that first records it: a usable `.git` found in registered ground,
12
+ * inside the home or outside through a durable link, nested, a submodule,
13
+ * a linked worktree, or made there by any other Git. The tag is written
14
+ * in the configuration of the repository's common directory, so one tag
15
+ * covers every worktree of that storage. A repository `.amalgmignore` has
16
+ * always kept from the cloud is never tagged: no other computer has it,
17
+ * so there is nobody to take turns with.
18
+ * - **It travels.** A repository's own configuration is part of its state,
19
+ * so the tag is one more change: a repository that arrives on another
20
+ * computer arrives tagged, and nothing tags it twice.
21
+ * - **Kept.** Inside registered ground the tag is ours. A hand that takes
22
+ * it off, or an older state applied over it, is one more change the next
23
+ * pass reads, and that pass puts the tag back. A repository newly kept
24
+ * from sharing stays tagged: the cloud still holds it.
25
+ * - **Only with our Git.** A computer tags nothing unless its own Git opens
26
+ * a tagged repository. It would otherwise lock itself out of every
27
+ * project it tagged.
28
+ * - **Off.** Uninstalling Amalgm takes the tag off every repository this
29
+ * computer enrolled, so any Git opens them again. A repository carried
30
+ * out of registered ground by hand keeps the tag: our Git opens it and
31
+ * the runtime, knowing nothing of it, says go at once; on a computer
32
+ * with only another Git the person runs `GIT_TAG_OFF` once.
33
+ */
34
+ /** The extension only our Git knows. */
35
+ export const GIT_TAG = 'extensions.amalgm';
36
+ const FORMAT = 'core.repositoryformatversion';
37
+ /** What a person runs, in a tagged repository's folder, to open it with a
38
+ * Git that is not ours. Where `.git` is a file (a submodule, a linked
39
+ * worktree), the tag is in the storage that file names, in its common
40
+ * directory for a linked worktree: the person names that `config` instead. */
41
+ export const GIT_TAG_OFF = `git config --file .git/config --unset-all ${GIT_TAG}`;
42
+ /**
43
+ * The edits that make one configuration file carry the tag (`on`) or not.
44
+ * `listing` is that file as `git config --file <it> --list -z` prints it.
45
+ * Empty when it already agrees.
46
+ *
47
+ * Git reads extensions only in format version 1. Taking the tag off puts
48
+ * the version back to 0 only when no other extension is left, so a
49
+ * repository that needs version 1 for its own reasons keeps it.
50
+ */
51
+ export function gitTagEdits(listing, on) {
52
+ const entries = new Map(listing.split('\0').filter(entry => entry !== '').map((entry) => {
53
+ const at = entry.indexOf('\n');
54
+ return at < 0 ? [entry, 'true'] : [entry.slice(0, at), entry.slice(at + 1)];
55
+ }));
56
+ const tagged = entries.has(GIT_TAG);
57
+ if (on) {
58
+ return [
59
+ ...(entries.get(FORMAT) === '1' ? [] : [[FORMAT, '1']]),
60
+ ...(entries.get(GIT_TAG) === 'true' ? [] : [[GIT_TAG, 'true']]),
61
+ ];
62
+ }
63
+ if (!tagged)
64
+ return [];
65
+ const others = [...entries.keys()].some(key => key.startsWith('extensions.') && key !== GIT_TAG);
66
+ return [['--unset-all', GIT_TAG], ...(others ? [] : [[FORMAT, '0']])];
67
+ }
68
+ //# sourceMappingURL=tag.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tag.js","sourceRoot":"","sources":["../../src/git/tag.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAgCG;AAEH,wCAAwC;AACxC,MAAM,CAAC,MAAM,OAAO,GAAG,mBAAmB,CAAC;AAE3C,MAAM,MAAM,GAAG,8BAA8B,CAAC;AAE9C;;;8EAG8E;AAC9E,MAAM,CAAC,MAAM,WAAW,GAAG,6CAA6C,OAAO,EAAE,CAAC;AAMlF;;;;;;;;GAQG;AACH,MAAM,UAAU,WAAW,CAAC,OAAe,EAAE,EAAW;IACtD,MAAM,OAAO,GAAG,IAAI,GAAG,CAAC,OAAO,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,EAAE,CAAC,KAAK,KAAK,EAAE,CAAC,CAAC,GAAG,CAAC,CAAC,KAAK,EAAoB,EAAE;QACxG,MAAM,EAAE,GAAG,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC;QAC/B,OAAO,EAAE,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,KAAK,EAAE,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC,EAAE,EAAE,CAAC,EAAE,KAAK,CAAC,KAAK,CAAC,EAAE,GAAG,CAAC,CAAC,CAAC,CAAC;IAC9E,CAAC,CAAC,CAAC,CAAC;IACJ,MAAM,MAAM,GAAG,OAAO,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC;IACpC,IAAI,EAAE,EAAE,CAAC;QACP,OAAO;YACL,GAAG,CAAC,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,KAAK,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC,CAAC;YACvD,GAAG,CAAC,OAAO,CAAC,GAAG,CAAC,OAAO,CAAC,KAAK,MAAM,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC,OAAO,EAAE,MAAM,CAAC,CAAC,CAAC;SAChE,CAAC;IACJ,CAAC;IACD,IAAI,CAAC,MAAM;QAAE,OAAO,EAAE,CAAC;IACvB,MAAM,MAAM,GAAG,CAAC,GAAG,OAAO,CAAC,IAAI,EAAE,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,CAAC,UAAU,CAAC,aAAa,CAAC,IAAI,GAAG,KAAK,OAAO,CAAC,CAAC;IACjG,OAAO,CAAC,CAAC,aAAa,EAAE,OAAO,CAAC,EAAE,GAAG,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC;AACxE,CAAC"}
@@ -1,54 +1,61 @@
1
1
  /**
2
2
  * Git turns: one waiting line per repository, shared by every computer that
3
- * holds it, so two of them never run a Git command on the repository at once.
3
+ * holds it, so two of them never change the repository with Git at once.
4
4
  *
5
- * A turn is not a new rail. A Git command's before-hook (hooks.ts) asks, and
6
- * the ask is one record on the repository's own channel (`turnProposal`):
7
- * it goes to the Outbox, the authority gives it the channel's next position,
8
- * and it comes back in every computer's Inbox like any other record. The
9
- * waiting line is nothing but those records read in channel order, so every
10
- * computer derives the same line, and each record's place among the
11
- * repository's changes says exactly what happened before it.
5
+ * A turn is not a new rail. Every Git command in a tagged repository
6
+ * (tag.ts) asks this computer's runtime before it reads or locks anything,
7
+ * and a command that may change the repository (commands.ts) needs this
8
+ * computer to hold the turn. Asking for the turn is one record on the
9
+ * repository's own channel (`turnProposal`): it goes to the Outbox, the
10
+ * authority gives it the channel's next position, and it comes back in every
11
+ * computer's Inbox like any other record. The waiting line is nothing but
12
+ * those records read in channel order, so every computer derives the same
13
+ * line, and each record's place among the repository's changes says exactly
14
+ * what happened before it.
12
15
  *
13
- * - **Ask.** The command's hook waits. Its ask joins the end of the line.
14
- * - **Go.** The command goes when its ask is first in the line and this
15
- * computer has nothing of the repository still to apply from another
16
- * computer up to the record that made it first (`GitTurnLine.since`): the
17
- * result of the turn before it is among them. Only the Git command waits:
18
- * Receive and Apply go on, or the result it waits for could never arrive.
19
- * A change Apply cannot apply holds the command only until its turn
20
- * lapses.
21
- * - **Again.** A command that holds Git's index lock while it asks
22
- * (`git commit -a`, `git commit <paths>`) keeps Apply out of the
23
- * repository, so a change it would have to wait for can never land under
24
- * it. It is refused with one plain line and run again.
25
- * - **End.** The command's after-hook is heard, Detect records what the
26
- * command left, and an end is said after it. Per-computer Outbox order
27
- * then gives the channel ask, result, end, so whoever is next has the
28
- * result before its own go. A before-hook Git gives no after-hook
29
- * (`pre-push`) is a barrier: it waits for its turn and ends it on go.
30
- * - **Lapse.** A command that ends without its after-hook (nothing to
31
- * commit, refused by Git or by the person's own hook, interrupted, a
32
- * computer that went away) leaves its turn open. Once a turn has been
33
- * first for `GIT_TURN_LAPSE_MS` by the authority's own stamps, any
34
- * computer may end it. A command still running then goes on without the
35
- * line, and Git's own check refuses a commit whose branch moved under it.
16
+ * - **Ask.** A command that may change the repository waits while its
17
+ * computer asks for the turn. The ask joins the end of the line. A
18
+ * computer that already has a turn in the line asks nothing more: the
19
+ * turn is the computer's, and every command it runs uses it. Except one
20
+ * that arrives while that turn is first and another computer waits behind
21
+ * it (`gitTurnTakes`): it waits for its computer's next turn, so
22
+ * computers take turns however many commands each of them runs.
23
+ * - **Go.** The command goes when its computer's turn is first in the line
24
+ * and this computer has nothing of the repository still to apply from
25
+ * another computer up to the record that made it first
26
+ * (`GitTurnLine.first`): the results of the turn before it are among
27
+ * them. Only the Git command waits: Receive and Apply go on, or the
28
+ * result it waits for could never arrive.
29
+ * - **End.** A turn is ended by the computer that holds it. Git's own end
30
+ * is the signal: once no command of its that may change the repository is
31
+ * running or waiting, the computer records what they left and says the
32
+ * end, at once when another computer waits behind it and else after the
33
+ * repository has been quiet for `GIT_TURN_QUIET_MS` (`gitTurnRest`).
34
+ * Per-computer Outbox order then gives the channel ask, results, end, so
35
+ * whoever is next has every result before its own go.
36
+ * - **Check.** A computer waiting behind a turn that has been first for
37
+ * `GIT_TURN_CHECK_MS` asks its holder once. A holder with a command still
38
+ * running says so and keeps its turn, however slow the command is; one
39
+ * with none ends its turn. A check nobody answers for
40
+ * `GIT_TURN_ANSWER_MS` lets any computer end the turn: its holder is
41
+ * skipped, and a command of its that finishes later is one more record,
42
+ * played after the one before it like every file change. Every wait is
43
+ * counted on the authority's own stamps.
36
44
  *
37
- * What has no before-hook (a checkout, a reset, a cherry-pick, a fetch)
38
- * takes no turn: its result is one more record, played after the one before
39
- * it like every file change. The authority orders turns and never polices
40
- * them; a computer that cannot reach it asks nobody and Git goes ahead.
45
+ * A command that only reads takes no turn. The authority orders turns and
46
+ * never polices them; a computer that cannot reach it asks nobody and Git
47
+ * goes ahead.
41
48
  */
42
49
  import type { GitTurn } from '../detection/record-proposal.js';
43
- import type { GitHookEvent } from './hooks.js';
44
- /** The before-hooks that ask for a turn, each with the after-hook that ends
45
- * it, or null for a barrier. Every other event Git runs a hook for comes
46
- * after the fact or inside one of these commands. */
47
- export declare const GIT_TURN_EVENTS: Readonly<Partial<Record<GitHookEvent, GitHookEvent | null>>>;
48
- /** Whether `event` is a before-hook that asks for a turn. */
49
- export declare const asksGitTurn: (event: GitHookEvent) => boolean;
50
- /** How long a turn may stay first before any computer may end it. */
51
- export declare const GIT_TURN_LAPSE_MS = 30000;
50
+ /** How long a turn may be first, or have gone on since its holder last said
51
+ * a command of its was running, before a waiting computer may check on it. */
52
+ export declare const GIT_TURN_CHECK_MS = 30000;
53
+ /** How long a check may stand unanswered before any computer may end the
54
+ * turn it asked about. */
55
+ export declare const GIT_TURN_ANSWER_MS = 5000;
56
+ /** How long a computer keeps a turn nobody waits for after its last command
57
+ * that may change the repository ended. */
58
+ export declare const GIT_TURN_QUIET_MS = 30000;
52
59
  /** One turn record as the authority accepted it. */
53
60
  export interface GitTurnRecord {
54
61
  readonly sequence: number;
@@ -61,37 +68,54 @@ export interface GitOpenTurn {
61
68
  /** The mutation id of the ask. */
62
69
  readonly ask: string;
63
70
  readonly deviceId: string;
64
- readonly event: string;
65
71
  }
66
- /** A repository's waiting line after some prefix of its channel. `since` is
67
- * the record that made `open[0]` first: its ask when the line was empty,
68
- * else the end of the turn before it. Null while the line is empty. */
72
+ /** What the channel says of the first turn. `sequence` is the record that
73
+ * made it first: its ask when the line was empty, else the end of the turn
74
+ * before it. `heldAt` is when its holder was last known to hold it, by the
75
+ * authority's stamp: when it became first, or its holder's newest answer to
76
+ * a check. `checkedAt` is the stamp of the check standing unanswered, or
77
+ * null. */
78
+ export interface GitFirstTurn {
79
+ readonly sequence: number;
80
+ readonly heldAt: number;
81
+ readonly checkedAt: number | null;
82
+ }
83
+ /** A repository's waiting line after some prefix of its channel. `first`
84
+ * speaks of `open[0]` and is null while the line is empty. */
69
85
  export interface GitTurnLine {
70
86
  readonly open: readonly GitOpenTurn[];
71
- readonly since: {
72
- readonly sequence: number;
73
- readonly acceptedAt: number;
74
- } | null;
87
+ readonly first: GitFirstTurn | null;
75
88
  }
76
89
  export declare const GIT_TURN_LINE_EMPTY: GitTurnLine;
77
90
  /**
78
91
  * The line with one more turn record played, in channel order.
79
92
  *
80
- * An ask joins the end; a computer has one turn per repository, so its
81
- * earlier open turn ends with it. An end closes the turn it names when its
82
- * author is the turn's own computer, or when the turn is first and has been
83
- * for the lapse. Any other end, and one naming a turn already closed, plays
84
- * as nothing.
93
+ * - An ask joins the end; a computer has one turn per repository, so its
94
+ * earlier open turn ends with it.
95
+ * - A check counts when another computer says it of the first turn, no
96
+ * check stands, and the turn has been held for the check wait.
97
+ * - A running counts when the turn's own computer answers a standing check:
98
+ * the turn is held from that stamp and may be checked again.
99
+ * - An end closes the turn it names when its author is the turn's own
100
+ * computer, or when a check of it has stood unanswered for the answer
101
+ * wait.
102
+ *
103
+ * Every other record, and one naming a turn already closed, plays as
104
+ * nothing.
85
105
  */
86
106
  export declare function playGitTurn(line: GitTurnLine, record: GitTurnRecord): GitTurnLine;
87
- /** How long until the first turn may be ended by any computer, in
88
- * milliseconds: the lapse less how long it has already been first by the
89
- * authority's stamps. `acceptedAt` is the newest acceptance this computer
90
- * has read on the channel, so a turn left open long ago may be ended at
91
- * once. Null while the line is empty. */
92
- export declare function gitTurnLapseIn(line: GitTurnLine, acceptedAt: number): number | null;
107
+ /** What a computer waiting behind the first turn says next, and in how many
108
+ * milliseconds: a check once the turn has been held for the check wait, or,
109
+ * while a check stands, the end once it has gone unanswered for the answer
110
+ * wait. `acceptedAt` is the newest acceptance this computer has read on the
111
+ * channel, so a turn left open long ago is checked at once. Null while the
112
+ * line is empty. */
113
+ export declare function gitTurnDue(line: GitTurnLine, acceptedAt: number): {
114
+ readonly act: 'check' | 'end';
115
+ readonly in: number;
116
+ } | null;
93
117
  /** Where one ask stands: `first` with the channel position this computer
94
- * must have applied through before its command goes, `waiting` behind
118
+ * must have applied through before its commands go, `waiting` behind
95
119
  * another computer's turn, or `closed` when it is no longer in the line. */
96
120
  export type GitTurnStanding = {
97
121
  readonly state: 'first';
@@ -102,15 +126,21 @@ export type GitTurnStanding = {
102
126
  readonly state: 'closed';
103
127
  };
104
128
  export declare function gitTurnStanding(line: GitTurnLine, ask: string): GitTurnStanding;
105
- /** What a waiting command is told (`gitTurnStanding` of its ask): `go`,
106
- * `wait`, or `again` when it must be run again. `owed` is whether this
107
- * computer still has another computer's change of the repository to apply
108
- * before the command's go; `holdsIndex` is whether the command holds Git's
109
- * index lock. A turn no longer in the line goes at once: nothing is left to
110
- * wait in, and its result is one more record like any other. */
111
- export type GitTurnAnswer = 'go' | 'wait' | 'again';
112
- export declare function gitTurnAnswer(standing: GitTurnStanding, owed: boolean, holdsIndex: boolean): GitTurnAnswer;
113
- /** Whether a hook's index file is Git's lock on the index: the command that
114
- * ran the hook is writing the index and has not let go of it. */
115
- export declare const holdsGitIndex: (indexFile: string | null) => boolean;
129
+ /** Whether a command that arrives now uses its computer's turn `ask`. Not
130
+ * when that turn is first and another computer waits behind it: the turn
131
+ * ends with the commands already using it, and this one waits for its
132
+ * computer's next turn, asked once that end is said. */
133
+ export declare function gitTurnTakes(line: GitTurnLine, ask: string): boolean;
134
+ /** Whether a waiting command goes (`gitTurnStanding` of its computer's
135
+ * ask). `owed` is whether this computer still has another computer's change
136
+ * of the repository to apply before the go. A turn no longer in the line
137
+ * goes at once: nothing is left to wait in, and its result is one more
138
+ * record like any other. */
139
+ export declare function gitTurnGoes(standing: GitTurnStanding, owed: boolean): boolean;
140
+ /** How many more milliseconds a computer keeps its turn `ask` once no
141
+ * command of its that may change the repository is running or waiting, the
142
+ * last of them having ended `quietMs` ago. Nothing when another computer is
143
+ * in the line, or when the turn is not first: a turn nobody here uses never
144
+ * keeps another computer waiting. */
145
+ export declare function gitTurnRest(line: GitTurnLine, ask: string, quietMs: number): number;
116
146
  //# sourceMappingURL=turns.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"turns.d.ts","sourceRoot":"","sources":["../../src/git/turns.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAwCG;AAEH,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,iCAAiC,CAAC;AAC/D,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC;AAE/C;;qDAEqD;AACrD,eAAO,MAAM,eAAe,EAAE,QAAQ,CAAC,OAAO,CAAC,MAAM,CAAC,YAAY,EAAE,YAAY,GAAG,IAAI,C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