@amalgm/live 0.2.81-preview.45244924054 → 0.2.81-preview.45708334404

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 (63) hide show
  1. package/dist/apply/settling.d.ts +1 -1
  2. package/dist/apply/settling.js +1 -1
  3. package/dist/clash/echo.d.ts +15 -29
  4. package/dist/clash/echo.d.ts.map +1 -1
  5. package/dist/clash/echo.js +17 -41
  6. package/dist/clash/echo.js.map +1 -1
  7. package/dist/detection/record-proposal.d.ts +10 -8
  8. package/dist/detection/record-proposal.d.ts.map +1 -1
  9. package/dist/detection/record-proposal.js +3 -3
  10. package/dist/detection/record-proposal.js.map +1 -1
  11. package/dist/git/commands.d.ts +3 -0
  12. package/dist/git/commands.d.ts.map +1 -0
  13. package/dist/git/commands.js +35 -0
  14. package/dist/git/commands.js.map +1 -0
  15. package/dist/git/index.d.ts +2 -2
  16. package/dist/git/index.d.ts.map +1 -1
  17. package/dist/git/index.js +2 -2
  18. package/dist/git/index.js.map +1 -1
  19. package/dist/git/play.d.ts +26 -16
  20. package/dist/git/play.d.ts.map +1 -1
  21. package/dist/git/play.js +65 -18
  22. package/dist/git/play.js.map +1 -1
  23. package/dist/git/tag.d.ts +54 -0
  24. package/dist/git/tag.d.ts.map +1 -0
  25. package/dist/git/tag.js +68 -0
  26. package/dist/git/tag.js.map +1 -0
  27. package/dist/git/turns.d.ts +105 -75
  28. package/dist/git/turns.d.ts.map +1 -1
  29. package/dist/git/turns.js +131 -91
  30. package/dist/git/turns.js.map +1 -1
  31. package/dist/records/contracts.d.ts.map +1 -1
  32. package/dist/records/contracts.js +3 -2
  33. package/dist/records/contracts.js.map +1 -1
  34. package/dist-cjs/apply/settling.js +1 -1
  35. package/dist-cjs/clash/echo.js +18 -42
  36. package/dist-cjs/clash/echo.js.map +1 -1
  37. package/dist-cjs/detection/record-proposal.js +3 -3
  38. package/dist-cjs/detection/record-proposal.js.map +1 -1
  39. package/dist-cjs/git/commands.js +39 -0
  40. package/dist-cjs/git/commands.js.map +1 -0
  41. package/dist-cjs/git/index.js +2 -2
  42. package/dist-cjs/git/index.js.map +1 -1
  43. package/dist-cjs/git/play.js +65 -18
  44. package/dist-cjs/git/play.js.map +1 -1
  45. package/dist-cjs/git/tag.js +72 -0
  46. package/dist-cjs/git/tag.js.map +1 -0
  47. package/dist-cjs/git/turns.js +136 -96
  48. package/dist-cjs/git/turns.js.map +1 -1
  49. package/dist-cjs/records/contracts.js +3 -2
  50. package/dist-cjs/records/contracts.js.map +1 -1
  51. package/package.json +5 -5
  52. package/dist/git/hooks.d.ts +0 -140
  53. package/dist/git/hooks.d.ts.map +0 -1
  54. package/dist/git/hooks.js +0 -240
  55. package/dist/git/hooks.js.map +0 -1
  56. package/dist/git/line.d.ts +0 -116
  57. package/dist/git/line.d.ts.map +0 -1
  58. package/dist/git/line.js +0 -412
  59. package/dist/git/line.js.map +0 -1
  60. package/dist-cjs/git/hooks.js +0 -249
  61. package/dist-cjs/git/hooks.js.map +0 -1
  62. package/dist-cjs/git/line.js +0 -418
  63. package/dist-cjs/git/line.js.map +0 -1
@@ -1 +1 @@
1
- {"version":3,"file":"contracts.js","sourceRoot":"","sources":["../../src/records/contracts.ts"],"names":[],"mappings":";AAAA;;;;;GAKG;;;AA4KH,wDA8BC;AAED,8DAWC;AAED,0DAqBC;AA5OD,mDAA4E;AAC5E,+DAA2D;AAC3D,mDAAiF;AAEjF,wEAUyC;AACzC,0DAAqG;AAExF,QAAA,sBAAsB,GAAG,wBAAwB,CAAC;AAuC/D,MAAM,IAAI,GAAG,gBAAgB,CAAC;AAC9B,MAAM,MAAM,GAAG,IAAI,GAAG,CAAC,CAAC,QAAQ,EAAE,QAAQ,EAAE,MAAM,EAAE,QAAQ,EAAE,SAAS,EAAE,MAAM,EAAE,MAAM,EAAE,OAAO,EAAE,SAAS,EAAE,QAAQ,CAAC,CAAC,CAAC;AACxH,MAAM,OAAO,GAAG,IAAI,GAAG,CAAC,CAAC,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,KAAK,CAAC,MAAM;QACpB,SAAS,EAAE,KAAK,CAAC,SAAS;KAC3B,CAAC,CAAC;IACH,MAAM,OAAO,GAAG,sBAAsB,CAAC,MAAM,CAAC,CAAC;IAC/C,IAAI,CAAC,OAAO,CAAC,EAAE;QAAE,MAAM,IAAI,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC;IAChD,OAAO,MAAM,CAAC;AAChB,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@amalgm/live",
3
- "version": "0.2.81-preview.45244924054",
3
+ "version": "0.2.81-preview.45708334404",
4
4
  "description": "Portable realtime SDK for Amalgm — wire contracts, mutation discipline, and delivery state machines behind host-injected adapters.",
5
5
  "type": "module",
6
6
  "main": "./dist-cjs/index.js",
@@ -116,13 +116,13 @@
116
116
  ]
117
117
  },
118
118
  "dependencies": {
119
- "@amalgm/core": "0.5.1-preview.44182200738"
119
+ "@amalgm/core": "0.5.1-preview.45707870969"
120
120
  },
121
- "gitHead": "1841475ab83d04c719685f6f0cecd736fb1a3977",
121
+ "gitHead": "78a404995900f5303f28ee5e0d3653fac43f08f9",
122
122
  "amalgmSource": {
123
123
  "repository": "amalgm-inc/amalgm-live",
124
124
  "branch": "preview",
125
- "commit": "1841475ab83d04c719685f6f0cecd736fb1a3977",
126
- "occurrence": "45244924054"
125
+ "commit": "78a404995900f5303f28ee5e0d3653fac43f08f9",
126
+ "occurrence": "45708334404"
127
127
  }
128
128
  }
@@ -1,140 +0,0 @@
1
- /**
2
- * Amalgm hears a person's Git through Git's own configuration hooks:
3
- * `hook.<name>.command` and `hook.<name>.event`, which Git 2.54 and later
4
- * runs beside, and before, whatever hook the repository's own hook directory
5
- * holds. An older Git reads the same lines as nothing and runs no hook of
6
- * ours (`gitRunsConfigurationHooks`).
7
- *
8
- * Nothing is written inside any repository. `.git/hooks` and `.git/config`
9
- * are Git state and travel byte for byte (state.ts), and the hook slot there
10
- * is the person's, or husky's, or whatever `core.hooksPath` names. A
11
- * repository therefore owes our hooks nothing and cannot lose them: one that
12
- * appears, vanishes and returns, breaks and is mended, is replaced, arrives
13
- * through Add or Apply, or nests inside another has them whenever Git can
14
- * use it at all.
15
- *
16
- * Three things decide where our hooks run, all in this lane's local-only
17
- * control tree, none in any ground:
18
- *
19
- * - the person's global configuration holds one line, `include.path` naming
20
- * this lane's scope file. Git reads a missing include as nothing, so the
21
- * line costs nothing while the runtime is stopped;
22
- * - the scope file exists only while the runtime runs. It holds
23
- * `includeIf "gitdir/i:<scope>"` and `"gitdir/i:<scope>/"` per scope: the
24
- * Git storage Watch covers, which is each root and each storage directory
25
- * outside every root that a checkout inside one uses. Git tests the
26
- * condition against the repository's Git directory, then its real path, so
27
- * a scope is a real path;
28
- * - the events file names one hook per event, `<lane>/<event>`, so two lanes
29
- * on one computer each keep their own and none can equal an event name.
30
- *
31
- * Each hook is one line of `sh` held in the events file itself, so no second
32
- * file can be missing when Git runs it. It writes what Git handed it, the
33
- * event, where it ran, its arguments and its standard input, as one record
34
- * in the lane's spool. A missing spool is a stopped runtime and writes
35
- * nothing.
36
- *
37
- * Every hook but a waiting one then ends with 0: it never fails, never waits
38
- * and never changes what Git does. A waiting hook (`gitHookCommand`'s
39
- * `waits`, the before-hooks that ask for a Git turn, turns.ts) stays while
40
- * its record file stands. The runtime answers through that same file: taking
41
- * it away is go, and the hook ends with 0; renaming it to `<name>.no` is no,
42
- * and the hook tells the person to run the command again and ends with 1,
43
- * which is Git's own answer when another Git process holds a repository. A
44
- * runtime that stops takes its spool with it, so every waiting command goes;
45
- * so does one that waited `GIT_HOOK_WAIT_SECONDS` unanswered.
46
- *
47
- * The person keeps every switch Git gives: `hook.<lane>/<event>.enabled
48
- * = false` silences one of ours, `hook.<event>.enabled = false` every
49
- * configured hook of an event. Ours never set `enabled`, so theirs always
50
- * wins.
51
- */
52
- /** The events our hooks hear: each one Git runs once per thing it does, a
53
- * commit, a rebase step, a checkout, a merge, a push, a rewrite, an `am`
54
- * patch, a gc, a received push. Two are left out because Git runs them many
55
- * times inside one command, and each run starts a process: an earlier
56
- * measurement with them made a rebase on Windows 23 times slower, against
57
- * 2.9 times without them, `reference-transaction` (three times per ref
58
- * update) and `post-index-change` (each index write). `fsmonitor-watchman`,
59
- * `proc-receive` and `push-to-checkout` are left out because a hook for any
60
- * of them is Git's cue to hand it work. */
61
- export declare const GIT_HOOK_EVENTS: readonly ["applypatch-msg", "pre-applypatch", "post-applypatch", "pre-commit", "pre-merge-commit", "prepare-commit-msg", "commit-msg", "post-commit", "pre-rebase", "post-checkout", "post-merge", "pre-push", "pre-receive", "update", "post-receive", "post-update", "pre-auto-gc", "post-rewrite", "sendemail-validate", "p4-changelist", "p4-prepare-changelist", "p4-post-changelist", "p4-pre-submit"];
62
- export type GitHookEvent = typeof GIT_HOOK_EVENTS[number];
63
- /** The events Git hands lines on standard input: the refs a push moves, the
64
- * commits a rewrite replaced. Every other event's input is empty, and its
65
- * hook reads none. */
66
- export declare const GIT_HOOK_INPUT_EVENTS: readonly GitHookEvent[];
67
- /** Whether the Git that answered `git version` with `text` runs
68
- * configuration hooks: 2.54 or later. Null when the text names no version. */
69
- export declare function gitRunsConfigurationHooks(text: string): boolean | null;
70
- /** The scopes no other scope contains, each once, compared without case as
71
- * the scope file's conditions are. A path is absolute, real, and spelled as
72
- * Git spells a Git directory, with `/` between names. One Git cannot
73
- * represent (empty, or holding a NUL or line break) is left out. */
74
- export declare function gitHookScopes(paths: readonly string[]): string[];
75
- /** The scope file: two conditions per scope, each including the events file.
76
- * Git reads a pattern ending in `/` as everything beneath it and never the
77
- * folder itself, so a scope that is itself a Git directory (a bare
78
- * repository, separated storage) needs the exact pattern too; the two never
79
- * match the same Git directory. Git compares without case (`gitdir/i:`) on
80
- * every system: on a disk that tells case apart, a repository whose path
81
- * differs from a scope's only in case hears our hooks too, and the runtime,
82
- * which reads its own roots, finds it outside them; on one that does not, no
83
- * spelling of a path is missed. Git compares bytes, and a name with an
84
- * accent has two spellings a disk may hand Git, so a scope whose composed and
85
- * decomposed forms differ is written in both. */
86
- export declare function gitHookScopeConfig(scopes: readonly string[], eventsFile: string): string;
87
- /** The longest a waiting hook stays before its command goes unanswered. */
88
- export declare const GIT_HOOK_WAIT_SECONDS = 120;
89
- /** What a waiting hook's record file is renamed to when the answer is no. */
90
- export declare const GIT_HOOK_NO = ".no";
91
- /** The command Git runs for one event, writing into `spool`: one line of
92
- * `sh` builtins. A record file is made with `set -C` (an exclusive create),
93
- * then filled with the header fields and arguments, each ended by a NUL, the
94
- * event's standard input as its lines, and the end mark. A record without
95
- * its end mark is still being written, or was cut off. The folder is asked
96
- * of the shell, in the spelling Windows programs use where the shell has one
97
- * (`pwd -W`), since Git's shell there names folders its own way. A hook
98
- * that `waits` then stays for the runtime's answer. */
99
- export declare function gitHookCommand(event: GitHookEvent, spool: string, waits?: boolean): string;
100
- /** One hook per event, named `<lane>/<event>`; the lane is any text naming
101
- * this runtime's lane on this computer. The before-hooks that ask for a Git
102
- * turn wait for their answer. */
103
- export declare function gitHookEventsConfig(lane: string, spool: string): string;
104
- /** One event as Git handed it to a hook.
105
- *
106
- * - `directory`: where Git ran the hook, a checkout's top, or a repository's
107
- * Git directory for a bare one and for a received push.
108
- * - `gitDir`, `indexFile`: what Git set in the hook's environment, or null.
109
- * A commit of named paths or of `-a` names a temporary index here.
110
- * `worktree add` clears `GIT_DIR` for its `post-checkout`: the storage is
111
- * then whatever Git would find from `directory`.
112
- * - `prefix`: the folder beneath the checkout's top the person ran Git in,
113
- * or null at the top.
114
- * - `action`: the command Git is in the middle of, where it names one for
115
- * its reflog (a pull's merge says `pull …`), or null. A rebase names none
116
- * to its hooks; its `post-rewrite` says `rebase` as its argument.
117
- * - `args`: the event's own arguments, as Git documents them per event.
118
- * - `input`: the lines Git handed on standard input (GIT_HOOK_INPUT_EVENTS). */
119
- export interface GitHookRecord {
120
- readonly event: GitHookEvent;
121
- readonly directory: string;
122
- readonly gitDir: string | null;
123
- readonly indexFile: string | null;
124
- readonly prefix: string | null;
125
- readonly action: string | null;
126
- readonly args: readonly string[];
127
- readonly input: string;
128
- }
129
- export type GitHookRead = {
130
- readonly state: 'complete';
131
- readonly record: GitHookRecord;
132
- } | {
133
- readonly state: 'partial';
134
- } | {
135
- readonly state: 'invalid';
136
- };
137
- /** One spool file read back. Partial is a record without its end mark;
138
- * invalid is anything a hook does not write. */
139
- export declare function readGitHookRecord(bytes: Uint8Array): GitHookRead;
140
- //# sourceMappingURL=hooks.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"hooks.d.ts","sourceRoot":"","sources":["../../src/git/hooks.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAkDG;AAIH;;;;;;;;2CAQ2C;AAC3C,eAAO,MAAM,eAAe,8YAOlB,CAAC;AAEX,MAAM,MAAM,YAAY,GAAG,OAAO,eAAe,CAAC,MAAM,CAAC,CAAC;AAE1D;;sBAEsB;AACtB,eAAO,MAAM,qBAAqB,EAAE,SAAS,YAAY,EAAgE,CAAC;AAE1H;8EAC8E;AAC9E,wBAAgB,yBAAyB,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,GAAG,IAAI,CAKtE;AAgBD;;;oEAGoE;AACpE,wBAAgB,aAAa,CAAC,KAAK,EAAE,SAAS,MAAM,EAAE,GAAG,MAAM,EAAE,CAQhE;AAED;;;;;;;;;;iDAUiD;AACjD,wBAAgB,kBAAkB,CAAC,MAAM,EAAE,SAAS,MAAM,EAAE,EAAE,UAAU,EAAE,MAAM,GAAG,MAAM,CAUxF;AAKD,2EAA2E;AAC3E,eAAO,MAAM,qBAAqB,MAAM,CAAC;AAEzC,6EAA6E;AAC7E,eAAO,MAAM,WAAW,QAAQ,CAAC;AAiBjC;;;;;;;uDAOuD;AACvD,wBAAgB,cAAc,CAAC,KAAK,EAAE,YAAY,EAAE,KAAK,EAAE,MAAM,EAAE,KAAK,UAAQ,GAAG,MAAM,CAuBxF;AAED;;iCAEiC;AACjC,wBAAgB,mBAAmB,CAAC,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,GAAG,MAAM,CAKvE;AAED;;;;;;;;;;;;;;gFAcgF;AAChF,MAAM,WAAW,aAAa;IAC5B,QAAQ,CAAC,KAAK,EAAE,YAAY,CAAC;IAC7B,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAC;IAC3B,QAAQ,CAAC,MAAM,EAAE,MAAM,GAAG,IAAI,CAAC;IAC/B,QAAQ,CAAC,SAAS,EAAE,MAAM,GAAG,IAAI,CAAC;IAClC,QAAQ,CAAC,MAAM,EAAE,MAAM,GAAG,IAAI,CAAC;IAC/B,QAAQ,CAAC,MAAM,EAAE,MAAM,GAAG,IAAI,CAAC;IAC/B,QAAQ,CAAC,IAAI,EAAE,SAAS,MAAM,EAAE,CAAC;IACjC,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;CACxB;AAED,MAAM,MAAM,WAAW,GACnB;IAAE,QAAQ,CAAC,KAAK,EAAE,UAAU,CAAC;IAAC,QAAQ,CAAC,MAAM,EAAE,aAAa,CAAA;CAAE,GAC9D;IAAE,QAAQ,CAAC,KAAK,EAAE,SAAS,CAAA;CAAE,GAC7B;IAAE,QAAQ,CAAC,KAAK,EAAE,SAAS,CAAA;CAAE,CAAC;AAMlC;gDACgD;AAChD,wBAAgB,iBAAiB,CAAC,KAAK,EAAE,UAAU,GAAG,WAAW,CAwChE"}
package/dist/git/hooks.js DELETED
@@ -1,240 +0,0 @@
1
- /**
2
- * Amalgm hears a person's Git through Git's own configuration hooks:
3
- * `hook.<name>.command` and `hook.<name>.event`, which Git 2.54 and later
4
- * runs beside, and before, whatever hook the repository's own hook directory
5
- * holds. An older Git reads the same lines as nothing and runs no hook of
6
- * ours (`gitRunsConfigurationHooks`).
7
- *
8
- * Nothing is written inside any repository. `.git/hooks` and `.git/config`
9
- * are Git state and travel byte for byte (state.ts), and the hook slot there
10
- * is the person's, or husky's, or whatever `core.hooksPath` names. A
11
- * repository therefore owes our hooks nothing and cannot lose them: one that
12
- * appears, vanishes and returns, breaks and is mended, is replaced, arrives
13
- * through Add or Apply, or nests inside another has them whenever Git can
14
- * use it at all.
15
- *
16
- * Three things decide where our hooks run, all in this lane's local-only
17
- * control tree, none in any ground:
18
- *
19
- * - the person's global configuration holds one line, `include.path` naming
20
- * this lane's scope file. Git reads a missing include as nothing, so the
21
- * line costs nothing while the runtime is stopped;
22
- * - the scope file exists only while the runtime runs. It holds
23
- * `includeIf "gitdir/i:<scope>"` and `"gitdir/i:<scope>/"` per scope: the
24
- * Git storage Watch covers, which is each root and each storage directory
25
- * outside every root that a checkout inside one uses. Git tests the
26
- * condition against the repository's Git directory, then its real path, so
27
- * a scope is a real path;
28
- * - the events file names one hook per event, `<lane>/<event>`, so two lanes
29
- * on one computer each keep their own and none can equal an event name.
30
- *
31
- * Each hook is one line of `sh` held in the events file itself, so no second
32
- * file can be missing when Git runs it. It writes what Git handed it, the
33
- * event, where it ran, its arguments and its standard input, as one record
34
- * in the lane's spool. A missing spool is a stopped runtime and writes
35
- * nothing.
36
- *
37
- * Every hook but a waiting one then ends with 0: it never fails, never waits
38
- * and never changes what Git does. A waiting hook (`gitHookCommand`'s
39
- * `waits`, the before-hooks that ask for a Git turn, turns.ts) stays while
40
- * its record file stands. The runtime answers through that same file: taking
41
- * it away is go, and the hook ends with 0; renaming it to `<name>.no` is no,
42
- * and the hook tells the person to run the command again and ends with 1,
43
- * which is Git's own answer when another Git process holds a repository. A
44
- * runtime that stops takes its spool with it, so every waiting command goes;
45
- * so does one that waited `GIT_HOOK_WAIT_SECONDS` unanswered.
46
- *
47
- * The person keeps every switch Git gives: `hook.<lane>/<event>.enabled
48
- * = false` silences one of ours, `hook.<event>.enabled = false` every
49
- * configured hook of an event. Ours never set `enabled`, so theirs always
50
- * wins.
51
- */
52
- import { asksGitTurn } from './turns.js';
53
- /** The events our hooks hear: each one Git runs once per thing it does, a
54
- * commit, a rebase step, a checkout, a merge, a push, a rewrite, an `am`
55
- * patch, a gc, a received push. Two are left out because Git runs them many
56
- * times inside one command, and each run starts a process: an earlier
57
- * measurement with them made a rebase on Windows 23 times slower, against
58
- * 2.9 times without them, `reference-transaction` (three times per ref
59
- * update) and `post-index-change` (each index write). `fsmonitor-watchman`,
60
- * `proc-receive` and `push-to-checkout` are left out because a hook for any
61
- * of them is Git's cue to hand it work. */
62
- export const GIT_HOOK_EVENTS = [
63
- 'applypatch-msg', 'pre-applypatch', 'post-applypatch',
64
- 'pre-commit', 'pre-merge-commit', 'prepare-commit-msg', 'commit-msg', 'post-commit',
65
- 'pre-rebase', 'post-checkout', 'post-merge', 'pre-push',
66
- 'pre-receive', 'update', 'post-receive', 'post-update',
67
- 'pre-auto-gc', 'post-rewrite', 'sendemail-validate',
68
- 'p4-changelist', 'p4-prepare-changelist', 'p4-post-changelist', 'p4-pre-submit',
69
- ];
70
- /** The events Git hands lines on standard input: the refs a push moves, the
71
- * commits a rewrite replaced. Every other event's input is empty, and its
72
- * hook reads none. */
73
- export const GIT_HOOK_INPUT_EVENTS = ['pre-push', 'pre-receive', 'post-receive', 'post-rewrite'];
74
- /** Whether the Git that answered `git version` with `text` runs
75
- * configuration hooks: 2.54 or later. Null when the text names no version. */
76
- export function gitRunsConfigurationHooks(text) {
77
- const version = /^git version (\d+)\.(\d+)/.exec(text.trim());
78
- if (!version)
79
- return null;
80
- const [major, minor] = [Number(version[1]), Number(version[2])];
81
- return major > 2 || (major === 2 && minor >= 54);
82
- }
83
- /** A glob character Git's `gitdir:` pattern would read as one. */
84
- const GLOB = /[\\*?[]/g;
85
- const representable = (text) => text.length > 0 && !/[\0\n]/.test(text);
86
- const quoted = (value) => `"${value.replace(/[\\"]/g, match => `\\${match}`)}"`;
87
- const shQuoted = (value) => `'${value.replace(/'/g, `'\\''`)}'`;
88
- const folded = (path) => path.toLowerCase();
89
- const within = (parent, child) => child === parent || child.startsWith(parent.endsWith('/') ? parent : `${parent}/`);
90
- /** The scopes no other scope contains, each once, compared without case as
91
- * the scope file's conditions are. A path is absolute, real, and spelled as
92
- * Git spells a Git directory, with `/` between names. One Git cannot
93
- * represent (empty, or holding a NUL or line break) is left out. */
94
- export function gitHookScopes(paths) {
95
- const candidates = [...new Set(paths.filter(representable).map(path => path.replace(/\/+$/, '') || '/'))]
96
- .sort((left, right) => left.length - right.length || (left < right ? -1 : 1));
97
- const kept = [];
98
- for (const path of candidates) {
99
- if (!kept.some(scope => within(folded(scope), folded(path))))
100
- kept.push(path);
101
- }
102
- return kept.sort();
103
- }
104
- /** The scope file: two conditions per scope, each including the events file.
105
- * Git reads a pattern ending in `/` as everything beneath it and never the
106
- * folder itself, so a scope that is itself a Git directory (a bare
107
- * repository, separated storage) needs the exact pattern too; the two never
108
- * match the same Git directory. Git compares without case (`gitdir/i:`) on
109
- * every system: on a disk that tells case apart, a repository whose path
110
- * differs from a scope's only in case hears our hooks too, and the runtime,
111
- * which reads its own roots, finds it outside them; on one that does not, no
112
- * spelling of a path is missed. Git compares bytes, and a name with an
113
- * accent has two spellings a disk may hand Git, so a scope whose composed and
114
- * decomposed forms differ is written in both. */
115
- export function gitHookScopeConfig(scopes, eventsFile) {
116
- if (!representable(eventsFile))
117
- throw new Error('A hook events file is a path without a NUL or line break.');
118
- const condition = (pattern) => `[includeIf ${quoted(`gitdir/i:${pattern}`)}]\n\tpath = ${quoted(eventsFile)}\n`;
119
- return gitHookScopes(scopes)
120
- .flatMap(scope => [...new Set([scope, scope.normalize('NFC'), scope.normalize('NFD')])])
121
- .map(scope => {
122
- const literal = scope.replace(GLOB, match => `\\${match}`);
123
- return scope === '/' ? condition('/') : condition(literal) + condition(`${literal}/`);
124
- })
125
- .join('');
126
- }
127
- const RECORD_MARK = 'amalgm-git-hook 1';
128
- const RECORD_END = '\0end\n';
129
- /** The longest a waiting hook stays before its command goes unanswered. */
130
- export const GIT_HOOK_WAIT_SECONDS = 120;
131
- /** What a waiting hook's record file is renamed to when the answer is no. */
132
- export const GIT_HOOK_NO = '.no';
133
- /** A waiting hook's tail. A command nobody is ahead of is answered within
134
- * a tenth of a second, so the hook looks four times in it; after that it
135
- * looks every tenth of a second where `sleep` takes a fraction, else every
136
- * second. It says once why the command is waiting, and reads the answer when
137
- * the record file is gone. Each look is one `sleep` started, so the limit
138
- * counts looks: a system slow to start a process waits longer than the
139
- * seconds named. */
140
- const WAIT = [
141
- 'r="$d/$$-$n"; t=0.1; m=10; w=0',
142
- 'for q in 0.02 0.02 0.03 0.03; do [ -e "$r" ] || break; sleep $q 2>/dev/null || { t=1; m=1; break; }; done',
143
- `while [ -e "$r" ] && [ $w -lt $((m*${GIT_HOOK_WAIT_SECONDS})) ]; do sleep $t 2>/dev/null || break; w=$((w+1));`
144
- + ` [ $w -ne $((m*2)) ] || echo 'amalgm: waiting for a turn on this repository; another computer is changing it' >&2; done`,
145
- `[ ! -e "$r${GIT_HOOK_NO}" ] || { rm -f "$r${GIT_HOOK_NO}"; echo 'amalgm: this repository changed on another computer. Run the command again.' >&2; return 1; }`,
146
- ];
147
- /** The command Git runs for one event, writing into `spool`: one line of
148
- * `sh` builtins. A record file is made with `set -C` (an exclusive create),
149
- * then filled with the header fields and arguments, each ended by a NUL, the
150
- * event's standard input as its lines, and the end mark. A record without
151
- * its end mark is still being written, or was cut off. The folder is asked
152
- * of the shell, in the spelling Windows programs use where the shell has one
153
- * (`pwd -W`), since Git's shell there names folders its own way. A hook
154
- * that `waits` then stays for the runtime's answer. */
155
- export function gitHookCommand(event, spool, waits = false) {
156
- if (!representable(spool))
157
- throw new Error('A hook spool is a path without a NUL or line break.');
158
- const input = GIT_HOOK_INPUT_EVENTS.includes(event)
159
- ? [`while IFS= read -r l || [ -n "$l" ]; do printf '%s\\n' "$l"; done`]
160
- : [];
161
- const record = [
162
- `printf '${RECORD_MARK}\\0%s\\0%s\\0%s\\0%s\\0%s\\0%s\\0%s\\0' ${event} "$(pwd -W 2>/dev/null || pwd)"`
163
- + ' "${GIT_DIR-}" "${GIT_INDEX_FILE-}" "${GIT_PREFIX-}" "${GIT_REFLOG_ACTION-}" "$#"',
164
- `for a; do printf '%s\\0' "$a"; done`,
165
- ...input,
166
- `printf '\\0end\\n'`,
167
- ];
168
- return [
169
- `f(){ d=${shQuoted(spool)}`,
170
- '[ -d "$d" ] || return 0',
171
- 'n=0',
172
- 'set -C',
173
- 'until { : > "$d/$$-$n"; } 2>/dev/null; do n=$((n+1)); [ $n -lt 50 ] || return 0; done',
174
- `{ ${record.join('; ')}; } >> "$d/$$-$n" 2>/dev/null`,
175
- ...(waits ? WAIT : []),
176
- 'return 0; }',
177
- 'f',
178
- ].join('; ');
179
- }
180
- /** One hook per event, named `<lane>/<event>`; the lane is any text naming
181
- * this runtime's lane on this computer. The before-hooks that ask for a Git
182
- * turn wait for their answer. */
183
- export function gitHookEventsConfig(lane, spool) {
184
- if (!representable(lane))
185
- throw new Error('A hook lane is nonempty text without a NUL or line break.');
186
- return GIT_HOOK_EVENTS
187
- .map(event => `[hook ${quoted(`${lane}/${event}`)}]\n\tcommand = ${quoted(gitHookCommand(event, spool, asksGitTurn(event)))}\n\tevent = ${event}\n`)
188
- .join('');
189
- }
190
- const EVENTS = new Set(GIT_HOOK_EVENTS);
191
- const HEADER_FIELDS = 8;
192
- /** One spool file read back. Partial is a record without its end mark;
193
- * invalid is anything a hook does not write. */
194
- export function readGitHookRecord(bytes) {
195
- const text = new TextDecoder().decode(bytes);
196
- if (!text.endsWith(RECORD_END))
197
- return RECORD_MARK.startsWith(text.slice(0, RECORD_MARK.length)) ? { state: 'partial' } : { state: 'invalid' };
198
- const body = text.slice(0, -RECORD_END.length);
199
- let at = 0;
200
- const field = () => {
201
- const end = body.indexOf('\0', at);
202
- if (end < 0)
203
- return null;
204
- const value = body.slice(at, end);
205
- at = end + 1;
206
- return value;
207
- };
208
- const header = [];
209
- for (let count = 0; count < HEADER_FIELDS; count += 1) {
210
- const value = field();
211
- if (value === null)
212
- return { state: 'invalid' };
213
- header.push(value);
214
- }
215
- const [mark, event, directory, gitDir, indexFile, prefix, action, argc] = header;
216
- if (mark !== RECORD_MARK || !EVENTS.has(event) || directory === '' || !/^(0|[1-9][0-9]*)$/.test(argc))
217
- return { state: 'invalid' };
218
- const args = [];
219
- for (let count = 0; count < Number(argc); count += 1) {
220
- const value = field();
221
- if (value === null)
222
- return { state: 'invalid' };
223
- args.push(value);
224
- }
225
- const set = (value) => value === '' ? null : value;
226
- return {
227
- state: 'complete',
228
- record: {
229
- event: event,
230
- directory,
231
- gitDir: set(gitDir),
232
- indexFile: set(indexFile),
233
- prefix: set(prefix),
234
- action: set(action),
235
- args,
236
- input: body.slice(at),
237
- },
238
- };
239
- }
240
- //# sourceMappingURL=hooks.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"hooks.js","sourceRoot":"","sources":["../../src/git/hooks.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAkDG;AAEH,OAAO,EAAE,WAAW,EAAE,MAAM,YAAY,CAAC;AAEzC;;;;;;;;2CAQ2C;AAC3C,MAAM,CAAC,MAAM,eAAe,GAAG;IAC7B,gBAAgB,EAAE,gBAAgB,EAAE,iBAAiB;IACrD,YAAY,EAAE,kBAAkB,EAAE,oBAAoB,EAAE,YAAY,EAAE,aAAa;IACnF,YAAY,EAAE,eAAe,EAAE,YAAY,EAAE,UAAU;IACvD,aAAa,EAAE,QAAQ,EAAE,cAAc,EAAE,aAAa;IACtD,aAAa,EAAE,cAAc,EAAE,oBAAoB;IACnD,eAAe,EAAE,uBAAuB,EAAE,oBAAoB,EAAE,eAAe;CACvE,CAAC;AAIX;;sBAEsB;AACtB,MAAM,CAAC,MAAM,qBAAqB,GAA4B,CAAC,UAAU,EAAE,aAAa,EAAE,cAAc,EAAE,cAAc,CAAC,CAAC;AAE1H;8EAC8E;AAC9E,MAAM,UAAU,yBAAyB,CAAC,IAAY;IACpD,MAAM,OAAO,GAAG,2BAA2B,CAAC,IAAI,CAAC,IAAI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CAAC,EAAE,KAAK,IAAI,CAAC,EAAE,CAAC;QACrD,MAAM,KAAK,GAAG,KAAK,EAAE,CAAC;QACtB,IAAI,KAAK,KAAK,IAAI;YAAE,OAAO,EAAE,KAAK,EAAE,SAAS,EAAE,CAAC;QAChD,IAAI,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;IACnB,CAAC;IACD,MAAM,GAAG,GAAG,CAAC,KAAa,EAAiB,EAAE,CAAC,KAAK,KAAK,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,KAAK,CAAC;IAC1E,OAAO;QACL,KAAK,EAAE,UAAU;QACjB,MAAM,EAAE;YACN,KAAK,EAAE,KAAqB;YAC5B,SAAS;YACT,MAAM,EAAE,GAAG,CAAC,MAAM,CAAC;YACnB,SAAS,EAAE,GAAG,CAAC,SAAS,CAAC;YACzB,MAAM,EAAE,GAAG,CAAC,MAAM,CAAC;YACnB,MAAM,EAAE,GAAG,CAAC,MAAM,CAAC;YACnB,IAAI;YACJ,KAAK,EAAE,IAAI,CAAC,KAAK,CAAC,EAAE,CAAC;SACtB;KACF,CAAC;AACJ,CAAC"}
@@ -1,116 +0,0 @@
1
- /**
2
- * One line: every machine plays a repository's records in the cloud's order,
3
- * each onto the result of the ones before it.
4
- *
5
- * A record states what its sender's branch was (V) and what it became (Y).
6
- * The line before it (L) may differ from V: another machine's record was
7
- * accepted first. The record's change is then played onto L, as `git rebase`
8
- * plays commits onto what they missed, and every machine that plays the same
9
- * records in the same order makes the same commits, byte for byte. Nothing is
10
- * remembered between records but the line's own commits.
11
- *
12
- * - A commit's identity is its author line and message: what amend, rebase
13
- * and cherry-pick keep. Its key is its author line alone: what every new
14
- * version of it keeps.
15
- * - The record keeps what V and Y share from the floor; the rest of V is
16
- * removed and the rest of Y is added. An added commit takes the place of
17
- * the removed one with its identity, else with its key, k-th to k-th; one
18
- * that carries a removed commit's writing (a squash) takes that one's place.
19
- * - A removed commit the record takes back (its writing is gone from Y) is
20
- * dropped from the line with every version of it Y does not show. Removals
21
- * are played first: removing is not writing.
22
- * - Every other added commit goes on top, unless the line already holds it:
23
- * a commit with its identity that writes what it writes. A commit made
24
- * empty stands, as `git rebase` keeps a commit that starts empty.
25
- * - From the first place the line changed, each commit is picked onto what
26
- * stands below it: a line commit as its change from its own parent, and a
27
- * record's new version on top as its change from its old version, standing
28
- * below it. Where two writings clash, the record's own writing wins;
29
- * else what the line showed before the record; else a commit keeps its
30
- * place: above wins over below.
31
- * - A folded commit's other versions on the line that Y does not show are
32
- * folded with it: a squash replaces every version of what it squashed.
33
- * - A commit stands above every commit whose writing it overrides: when a
34
- * line commit would lose its own writing, by any of the rules above, to a
35
- * record commit placed below it, that record commit moves to just above
36
- * it, and the line is picked again. Moves only go up, so this ends.
37
- *
38
- * Git computes every tree, diff and commit, through `GitLineGit`; the rest is
39
- * decided here, so every host plays alike.
40
- */
41
- export interface GitLineCommit {
42
- readonly tree: string;
43
- /** Its first parent, null for a root commit. */
44
- readonly parent: string | null;
45
- /** The author line, name, email and date, as Git stores it. */
46
- readonly author: string;
47
- /** The message, exactly as Git stores it. */
48
- readonly message: string;
49
- }
50
- /** Which side a clash picks when the rules leave it open. */
51
- export type GitLineFavour = 'ours' | 'theirs';
52
- /** Chooses one clash's lines: ours is what stands below, theirs the commit
53
- * being picked. */
54
- export type GitLinePick = (ours: readonly string[], theirs: readonly string[], path: string) => Promise<readonly string[]>;
55
- export interface GitLineMerged {
56
- readonly tree: string;
57
- readonly clashed: boolean;
58
- }
59
- /** What the line asks Git, in a repository holding every commit it names. */
60
- export interface GitLineGit {
61
- /** The first-parent commits from `floor`, exclusive, to `tip`, oldest first;
62
- * from the root when `floor` is null. */
63
- firstParent(tip: string, floor: string | null): Promise<readonly string[]>;
64
- /** Where the first-parent histories of `tips` meet, or null. */
65
- floor(tips: readonly string[]): Promise<string | null>;
66
- commit(oid: string): Promise<GitLineCommit>;
67
- /** `git diff-tree -r -p -U0 --no-renames` from tree `from` (empty when
68
- * null) to tree `to`, as text. */
69
- patch(from: string | null, to: string): Promise<string>;
70
- /** The text of `path` in tree `tree`, null when it holds none. */
71
- file(tree: string, path: string): Promise<string | null>;
72
- /** The three-way merge of trees, base (empty when null), ours and theirs,
73
- * Git's own (`merge-tree`); each clashing hunk of a text file is chosen by
74
- * `pick`, and every other clash takes `favour`'s side whole. Says whether
75
- * anything clashed. */
76
- merge(base: string | null, ours: string, theirs: string, favour: GitLineFavour, pick: GitLinePick): Promise<GitLineMerged>;
77
- /** `commit`'s author, committer and message on `tree` above `parent`. */
78
- rewrite(commit: string, parent: string, tree: string): Promise<string>;
79
- }
80
- /** What a diff adds and removes, each as `<path>\0<line>`. */
81
- export interface GitLineChange {
82
- readonly add: ReadonlySet<string>;
83
- readonly del: ReadonlySet<string>;
84
- }
85
- /** The lines a `-U0` patch adds and removes. */
86
- export declare function gitLineChange(patch: string): GitLineChange;
87
- /** The marker size `gitLineResolve` reads; a host merges with it. */
88
- export declare const GIT_LINE_MARKER_SIZE = 41;
89
- /** A text `git merge-file -p --marker-size=GIT_LINE_MARKER_SIZE` marked,
90
- * each clash chosen by `pick`. */
91
- export declare function gitLineResolve(marked: string, path: string, pick: GitLinePick): Promise<string>;
92
- /** One branch's line, played record by record. */
93
- export declare class GitLine {
94
- #private;
95
- private readonly git;
96
- constructor(git: GitLineGit);
97
- /** The line after a record moved its sender's branch from `V` to `Y`, on
98
- * the line `L`; null for a branch the line or the record removed. A
99
- * branch removed stays removed: no later record brings it back. */
100
- play(L: string | null, V: string | null, Y: string | null): Promise<string | null>;
101
- /** The line after a push fixed `pushed`: its path stands as it is and every
102
- * other line commit is picked on top. A push brings back nothing the line
103
- * removed. */
104
- fix(L: string, pushed: string): Promise<string>;
105
- commit(oid: string): Promise<GitLineCommit>;
106
- key(oid: string): Promise<string>;
107
- id(oid: string): Promise<string>;
108
- tree(oid: string): Promise<string>;
109
- change(from: string | null, to: string): Promise<GitLineChange>;
110
- /** What a commit itself writes: its diff from its first parent. */
111
- own(oid: string): Promise<GitLineChange>;
112
- /** The lines of `path` at commit `at`. */
113
- shown(at: string, path: string): Promise<ReadonlySet<string>>;
114
- get host(): GitLineGit;
115
- }
116
- //# sourceMappingURL=line.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"line.d.ts","sourceRoot":"","sources":["../../src/git/line.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAuCG;AAEH,MAAM,WAAW,aAAa;IAC5B,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,gDAAgD;IAChD,QAAQ,CAAC,MAAM,EAAE,MAAM,GAAG,IAAI,CAAC;IAC/B,+DAA+D;IAC/D,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;IACxB,6CAA6C;IAC7C,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;CAC1B;AAED,6DAA6D;AAC7D,MAAM,MAAM,aAAa,GAAG,MAAM,GAAG,QAAQ,CAAC;AAE9C;mBACmB;AACnB,MAAM,MAAM,WAAW,GAAG,CAAC,IAAI,EAAE,SAAS,MAAM,EAAE,EAAE,MAAM,EAAE,SAAS,MAAM,EAAE,EAAE,IAAI,EAAE,MAAM,KAAK,OAAO,CAAC,SAAS,MAAM,EAAE,CAAC,CAAC;AAE3H,MAAM,WAAW,aAAa;IAAG,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IAAC,QAAQ,CAAC,OAAO,EAAE,OAAO,CAAA;CAAE;AAEnF,6EAA6E;AAC7E,MAAM,WAAW,UAAU;IACzB;6CACyC;IACzC,WAAW,CAAC,GAAG,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,GAAG,IAAI,GAAG,OAAO,CAAC,SAAS,MAAM,EAAE,CAAC,CAAC;IAC3E,gEAAgE;IAChE,KAAK,CAAC,IAAI,EAAE,SAAS,MAAM,EAAE,GAAG,OAAO,CAAC,MAAM,GAAG,IAAI,CAAC,CAAC;IACvD,MAAM,CAAC,GAAG,EAAE,M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