@amalgm/shell 0.1.164-preview.41762776698 → 0.1.164-preview.44386772850
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/PURPOSE.md +359 -235
- package/README.md +18 -0
- package/dist/accepted-fold.d.ts +51 -0
- package/dist/accepted-fold.js +106 -0
- package/dist/accepted-fold.js.map +1 -0
- package/dist/accepted-tail.d.ts +19 -9
- package/dist/accepted-tail.js +28 -11
- package/dist/accepted-tail.js.map +1 -1
- package/dist/accepted-view.d.ts +27 -0
- package/dist/accepted-view.js +8 -0
- package/dist/accepted-view.js.map +1 -0
- package/dist/apply-attempt-memory.d.ts +13 -0
- package/dist/apply-attempt-memory.js +26 -0
- package/dist/apply-attempt-memory.js.map +1 -0
- package/dist/apply-control.d.ts +85 -0
- package/dist/apply-control.js +131 -0
- package/dist/apply-control.js.map +1 -0
- package/dist/apply-displaced-tree.d.ts +63 -0
- package/dist/apply-displaced-tree.js +148 -0
- package/dist/apply-displaced-tree.js.map +1 -0
- package/dist/apply-durability.d.ts +33 -0
- package/dist/apply-durability.js +72 -0
- package/dist/apply-durability.js.map +1 -0
- package/dist/apply-enter-build.d.ts +91 -0
- package/dist/apply-enter-build.js +145 -0
- package/dist/apply-enter-build.js.map +1 -0
- package/dist/apply-enter-plan.d.ts +79 -0
- package/dist/apply-enter-plan.js +148 -0
- package/dist/apply-enter-plan.js.map +1 -0
- package/dist/apply-fingerprint.d.ts +39 -0
- package/dist/apply-fingerprint.js +84 -0
- package/dist/apply-fingerprint.js.map +1 -0
- package/dist/apply-git-held.d.ts +29 -0
- package/dist/apply-git-held.js +184 -0
- package/dist/apply-git-held.js.map +1 -0
- package/dist/apply-git-storage.d.ts +38 -0
- package/dist/apply-git-storage.js +110 -0
- package/dist/apply-git-storage.js.map +1 -0
- package/dist/apply-kept.d.ts +42 -0
- package/dist/apply-kept.js +135 -0
- package/dist/apply-kept.js.map +1 -0
- package/dist/apply-local-work.d.ts +41 -0
- package/dist/apply-local-work.js +72 -0
- package/dist/apply-local-work.js.map +1 -0
- package/dist/apply-map.d.ts +116 -0
- package/dist/apply-map.js +383 -0
- package/dist/apply-map.js.map +1 -0
- package/dist/apply-showing.d.ts +104 -0
- package/dist/apply-showing.js +236 -0
- package/dist/apply-showing.js.map +1 -0
- package/dist/apply-shown-again.d.ts +28 -0
- package/dist/apply-shown-again.js +81 -0
- package/dist/apply-shown-again.js.map +1 -0
- package/dist/apply-spelling.d.ts +35 -0
- package/dist/apply-spelling.js +79 -0
- package/dist/apply-spelling.js.map +1 -0
- package/dist/apply-trash-keep.d.ts +96 -0
- package/dist/apply-trash-keep.js +194 -0
- package/dist/apply-trash-keep.js.map +1 -0
- package/dist/apply-window-cargo.d.ts +54 -0
- package/dist/apply-window-cargo.js +219 -0
- package/dist/apply-window-cargo.js.map +1 -0
- package/dist/apply-window-ground.d.ts +130 -0
- package/dist/apply-window-ground.js +324 -0
- package/dist/apply-window-ground.js.map +1 -0
- package/dist/apply-window-host.d.ts +136 -0
- package/dist/apply-window-host.js +1842 -0
- package/dist/apply-window-host.js.map +1 -0
- package/dist/apply-window-lane.d.ts +30 -0
- package/dist/apply-window-lane.js +311 -0
- package/dist/apply-window-lane.js.map +1 -0
- package/dist/apply-window-line.d.ts +31 -0
- package/dist/apply-window-line.js +150 -0
- package/dist/apply-window-line.js.map +1 -0
- package/dist/apply-window-recovery.d.ts +5 -0
- package/dist/apply-window-recovery.js +72 -0
- package/dist/apply-window-recovery.js.map +1 -0
- package/dist/apply-window-reveal.d.ts +22 -0
- package/dist/apply-window-reveal.js +98 -0
- package/dist/apply-window-reveal.js.map +1 -0
- package/dist/apply-window-rows.d.ts +144 -0
- package/dist/apply-window-rows.js +178 -0
- package/dist/apply-window-rows.js.map +1 -0
- package/dist/apply-window-saves.d.ts +224 -0
- package/dist/apply-window-saves.js +674 -0
- package/dist/apply-window-saves.js.map +1 -0
- package/dist/apply-window-store.d.ts +126 -0
- package/dist/apply-window-store.js +312 -0
- package/dist/apply-window-store.js.map +1 -0
- package/dist/apply-window-verify.d.ts +65 -0
- package/dist/apply-window-verify.js +195 -0
- package/dist/apply-window-verify.js.map +1 -0
- package/dist/authority-binding.d.ts +1 -24
- package/dist/authority-binding.js +44 -9
- package/dist/authority-binding.js.map +1 -1
- package/dist/background-error.d.ts +4 -0
- package/dist/background-error.js +15 -0
- package/dist/background-error.js.map +1 -0
- package/dist/baseline-content.d.ts +12 -0
- package/dist/baseline-content.js +12 -0
- package/dist/baseline-content.js.map +1 -0
- package/dist/billing/cli.d.ts +18 -0
- package/dist/billing/cli.js +276 -0
- package/dist/billing/cli.js.map +1 -0
- package/dist/billing/mount.d.ts +12 -0
- package/dist/billing/mount.js +34 -0
- package/dist/billing/mount.js.map +1 -0
- package/dist/billing/tools.d.ts +57 -0
- package/dist/billing/tools.js +141 -0
- package/dist/billing/tools.js.map +1 -0
- package/dist/boot-identity.d.ts +1 -0
- package/dist/boot-identity.js +39 -0
- package/dist/boot-identity.js.map +1 -0
- package/dist/browser-host.d.ts +4 -3
- package/dist/browser-host.js +29 -14
- package/dist/browser-host.js.map +1 -1
- package/dist/captured-rows.d.ts +33 -0
- package/dist/captured-rows.js +45 -0
- package/dist/captured-rows.js.map +1 -0
- package/dist/cargo-group.d.ts +31 -17
- package/dist/cargo-group.js +78 -29
- package/dist/cargo-group.js.map +1 -1
- package/dist/cargo-journal.d.ts +45 -0
- package/dist/cargo-journal.js +130 -0
- package/dist/cargo-journal.js.map +1 -0
- package/dist/chat-composition.d.ts +4 -1
- package/dist/chat-composition.js +4 -1
- package/dist/chat-composition.js.map +1 -1
- package/dist/cli.d.ts +1 -0
- package/dist/cli.js +129 -55
- package/dist/cli.js.map +1 -1
- package/dist/construct-apply-host.d.ts +8 -7
- package/dist/construct-apply-host.js +20 -8
- package/dist/construct-apply-host.js.map +1 -1
- package/dist/construct-door.d.ts +2 -0
- package/dist/construct-door.js +4 -3
- package/dist/construct-door.js.map +1 -1
- package/dist/construct-ledger.d.ts +2 -0
- package/dist/construct-ledger.js +13 -1
- package/dist/construct-ledger.js.map +1 -1
- package/dist/content-cache-collection.d.ts +11 -4
- package/dist/content-cache-collection.js +74 -62
- package/dist/content-cache-collection.js.map +1 -1
- package/dist/content-cache-fences.d.ts +27 -0
- package/dist/content-cache-fences.js +116 -0
- package/dist/content-cache-fences.js.map +1 -0
- package/dist/content-cache-host.d.ts +163 -91
- package/dist/content-cache-host.js +531 -354
- package/dist/content-cache-host.js.map +1 -1
- package/dist/content-cache-index.d.ts +36 -7
- package/dist/content-cache-index.js +79 -32
- package/dist/content-cache-index.js.map +1 -1
- package/dist/content-cache-namespace.d.ts +28 -34
- package/dist/content-cache-namespace.js +85 -99
- package/dist/content-cache-namespace.js.map +1 -1
- package/dist/content-cache-partials.d.ts +37 -0
- package/dist/content-cache-partials.js +79 -0
- package/dist/content-cache-partials.js.map +1 -0
- package/dist/content-cache-retention.d.ts +27 -12
- package/dist/content-cache-retention.js +143 -132
- package/dist/content-cache-retention.js.map +1 -1
- package/dist/content-capture-pool.d.ts +70 -83
- package/dist/content-capture-pool.js +112 -82
- package/dist/content-capture-pool.js.map +1 -1
- package/dist/content-capture-worker.d.ts +3 -4
- package/dist/content-capture-worker.js +28 -35
- package/dist/content-capture-worker.js.map +1 -1
- package/dist/content-clock.d.ts +54 -28
- package/dist/content-clock.js +345 -102
- package/dist/content-clock.js.map +1 -1
- package/dist/content-direct.d.ts +0 -2
- package/dist/content-direct.js +53 -31
- package/dist/content-direct.js.map +1 -1
- package/dist/content-qualification.d.ts +72 -0
- package/dist/content-qualification.js +129 -0
- package/dist/content-qualification.js.map +1 -0
- package/dist/credentials-host.js +3 -2
- package/dist/credentials-host.js.map +1 -1
- package/dist/derived-relocation.d.ts +31 -0
- package/dist/derived-relocation.js +71 -0
- package/dist/derived-relocation.js.map +1 -0
- package/dist/detection/accepted-result.js +3 -3
- package/dist/detection/accepted-result.js.map +1 -1
- package/dist/detection/admission-save.d.ts +25 -14
- package/dist/detection/admission-save.js +34 -22
- package/dist/detection/admission-save.js.map +1 -1
- package/dist/detection/admission-units.d.ts +32 -20
- package/dist/detection/admission-units.js +230 -97
- package/dist/detection/admission-units.js.map +1 -1
- package/dist/detection/alias-examination.d.ts +5 -2
- package/dist/detection/alias-examination.js +15 -3
- package/dist/detection/alias-examination.js.map +1 -1
- package/dist/detection/apply-ownership.d.ts +70 -44
- package/dist/detection/apply-ownership.js +140 -132
- package/dist/detection/apply-ownership.js.map +1 -1
- package/dist/detection/basis-advanced.d.ts +4 -0
- package/dist/detection/basis-advanced.js +9 -0
- package/dist/detection/basis-advanced.js.map +1 -1
- package/dist/detection/cached-replay.d.ts +38 -0
- package/dist/detection/cached-replay.js +66 -0
- package/dist/detection/cached-replay.js.map +1 -0
- package/dist/detection/capture-outcome.js +33 -36
- package/dist/detection/capture-outcome.js.map +1 -1
- package/dist/detection/container-membership.d.ts +13 -25
- package/dist/detection/container-membership.js +24 -28
- package/dist/detection/container-membership.js.map +1 -1
- package/dist/detection/directory-proof.js +1 -1
- package/dist/detection/directory-proof.js.map +1 -1
- package/dist/detection/dispositions.d.ts +10 -33
- package/dist/detection/dispositions.js +27 -91
- package/dist/detection/dispositions.js.map +1 -1
- package/dist/detection/examinations.d.ts +33 -0
- package/dist/detection/examinations.js +50 -0
- package/dist/detection/examinations.js.map +1 -0
- package/dist/detection/ground-proof.d.ts +35 -11
- package/dist/detection/ground-proof.js +111 -52
- package/dist/detection/ground-proof.js.map +1 -1
- package/dist/detection/ground-reader.d.ts +10 -10
- package/dist/detection/ground-reader.js +19 -42
- package/dist/detection/ground-reader.js.map +1 -1
- package/dist/detection/identity-discovery.d.ts +1 -1
- package/dist/detection/identity-discovery.js +27 -35
- package/dist/detection/identity-discovery.js.map +1 -1
- package/dist/detection/maintenance-sweep.d.ts +5 -2
- package/dist/detection/maintenance-sweep.js +15 -5
- package/dist/detection/maintenance-sweep.js.map +1 -1
- package/dist/detection/notebook-basis.d.ts +6 -3
- package/dist/detection/notebook-basis.js +8 -5
- package/dist/detection/notebook-basis.js.map +1 -1
- package/dist/detection/owed-examinations.d.ts +22 -0
- package/dist/detection/owed-examinations.js +54 -0
- package/dist/detection/owed-examinations.js.map +1 -0
- package/dist/detection/owed-selection.d.ts +23 -20
- package/dist/detection/owed-selection.js +56 -43
- package/dist/detection/owed-selection.js.map +1 -1
- package/dist/detection/policy-owed.d.ts +17 -0
- package/dist/detection/policy-owed.js +33 -0
- package/dist/detection/policy-owed.js.map +1 -0
- package/dist/detection/repository-state.d.ts +44 -0
- package/dist/detection/repository-state.js +95 -0
- package/dist/detection/repository-state.js.map +1 -0
- package/dist/detection/reveal-save.d.ts +17 -0
- package/dist/detection/reveal-save.js +15 -0
- package/dist/detection/reveal-save.js.map +1 -0
- package/dist/detection/root-examination.d.ts +25 -13
- package/dist/detection/root-examination.js +273 -220
- package/dist/detection/root-examination.js.map +1 -1
- package/dist/detection/root-walk.d.ts +191 -0
- package/dist/detection/root-walk.js +1383 -0
- package/dist/detection/root-walk.js.map +1 -0
- package/dist/detection/runtime.d.ts +41 -53
- package/dist/detection/runtime.js +285 -345
- package/dist/detection/runtime.js.map +1 -1
- package/dist/detection/scope-frame.d.ts +82 -0
- package/dist/detection/scope-frame.js +183 -0
- package/dist/detection/scope-frame.js.map +1 -0
- package/dist/detection/scoped-identity-port.d.ts +11 -10
- package/dist/detection/scoped-identity-port.js +18 -25
- package/dist/detection/scoped-identity-port.js.map +1 -1
- package/dist/detection/sharing-policy.d.ts +14 -6
- package/dist/detection/sharing-policy.js +13 -7
- package/dist/detection/sharing-policy.js.map +1 -1
- package/dist/detection/spelled-lookup.d.ts +20 -0
- package/dist/detection/spelled-lookup.js +83 -0
- package/dist/detection/spelled-lookup.js.map +1 -0
- package/dist/detection/unread-content.d.ts +20 -0
- package/dist/detection/unread-content.js +33 -0
- package/dist/detection/unread-content.js.map +1 -0
- package/dist/detection/walk-law.d.ts +11 -21
- package/dist/detection/walk-law.js +14 -22
- package/dist/detection/walk-law.js.map +1 -1
- package/dist/detection/walked-roots.d.ts +17 -0
- package/dist/detection/walked-roots.js +27 -0
- package/dist/detection/walked-roots.js.map +1 -0
- package/dist/detection/withheld.d.ts +100 -0
- package/dist/detection/withheld.js +118 -0
- package/dist/detection/withheld.js.map +1 -0
- package/dist/development/profile.js +1 -1
- package/dist/development/profile.js.map +1 -1
- package/dist/drive/cloud-files/asks.d.ts +7 -0
- package/dist/drive/cloud-files/asks.js +181 -0
- package/dist/drive/cloud-files/asks.js.map +1 -0
- package/dist/drive/cloud-files/binding.d.ts +111 -0
- package/dist/drive/cloud-files/binding.js +31 -0
- package/dist/drive/cloud-files/binding.js.map +1 -0
- package/dist/drive/cloud-files/contents.d.ts +82 -0
- package/dist/drive/cloud-files/contents.js +204 -0
- package/dist/drive/cloud-files/contents.js.map +1 -0
- package/dist/drive/cloud-files/door.d.ts +11 -0
- package/dist/drive/cloud-files/door.js +118 -0
- package/dist/drive/cloud-files/door.js.map +1 -0
- package/dist/drive/cloud-files/paths.d.ts +42 -0
- package/dist/drive/cloud-files/paths.js +93 -0
- package/dist/drive/cloud-files/paths.js.map +1 -0
- package/dist/drive/cloud-files/populated.d.ts +15 -0
- package/dist/drive/cloud-files/populated.js +38 -0
- package/dist/drive/cloud-files/populated.js.map +1 -0
- package/dist/drive/cloud-files/reconcile.d.ts +17 -0
- package/dist/drive/cloud-files/reconcile.js +478 -0
- package/dist/drive/cloud-files/reconcile.js.map +1 -0
- package/dist/drive/cloud-files/sync-root.d.ts +34 -0
- package/dist/drive/cloud-files/sync-root.js +68 -0
- package/dist/drive/cloud-files/sync-root.js.map +1 -0
- package/dist/drive/cloud-files/turns.d.ts +9 -0
- package/dist/drive/cloud-files/turns.js +58 -0
- package/dist/drive/cloud-files/turns.js.map +1 -0
- package/dist/drive/cloud-files/writes.d.ts +27 -0
- package/dist/drive/cloud-files/writes.js +436 -0
- package/dist/drive/cloud-files/writes.js.map +1 -0
- package/dist/drive/computer.d.ts +19 -0
- package/dist/drive/computer.js +61 -0
- package/dist/drive/computer.js.map +1 -0
- package/dist/drive/fuse-opens.d.ts +32 -0
- package/dist/drive/fuse-opens.js +110 -0
- package/dist/drive/fuse-opens.js.map +1 -0
- package/dist/drive/fuse.d.ts +36 -0
- package/dist/drive/fuse.js +102 -0
- package/dist/drive/fuse.js.map +1 -0
- package/dist/drive/kept.d.ts +78 -0
- package/dist/drive/kept.js +263 -0
- package/dist/drive/kept.js.map +1 -0
- package/dist/drive/kernel.d.ts +17 -0
- package/dist/drive/kernel.js +36 -0
- package/dist/drive/kernel.js.map +1 -0
- package/dist/drive/layout.d.ts +18 -0
- package/dist/drive/layout.js +39 -0
- package/dist/drive/layout.js.map +1 -0
- package/dist/drive/mount.d.ts +107 -0
- package/dist/drive/mount.js +259 -0
- package/dist/drive/mount.js.map +1 -0
- package/dist/drive/mountpoint.d.ts +14 -0
- package/dist/drive/mountpoint.js +51 -0
- package/dist/drive/mountpoint.js.map +1 -0
- package/dist/drive/nfs/apple-double.d.ts +6 -0
- package/dist/drive/nfs/apple-double.js +140 -0
- package/dist/drive/nfs/apple-double.js.map +1 -0
- package/dist/drive/nfs/attributes.d.ts +64 -0
- package/dist/drive/nfs/attributes.js +97 -0
- package/dist/drive/nfs/attributes.js.map +1 -0
- package/dist/drive/nfs/handles.d.ts +44 -0
- package/dist/drive/nfs/handles.js +209 -0
- package/dist/drive/nfs/handles.js.map +1 -0
- package/dist/drive/nfs/mount3.d.ts +16 -0
- package/dist/drive/nfs/mount3.js +38 -0
- package/dist/drive/nfs/mount3.js.map +1 -0
- package/dist/drive/nfs/nfs3.d.ts +27 -0
- package/dist/drive/nfs/nfs3.js +516 -0
- package/dist/drive/nfs/nfs3.js.map +1 -0
- package/dist/drive/nfs/rpc.d.ts +66 -0
- package/dist/drive/nfs/rpc.js +122 -0
- package/dist/drive/nfs/rpc.js.map +1 -0
- package/dist/drive/nfs/server.d.ts +30 -0
- package/dist/drive/nfs/server.js +109 -0
- package/dist/drive/nfs/server.js.map +1 -0
- package/dist/drive/nfs/xdr.d.ts +44 -0
- package/dist/drive/nfs/xdr.js +111 -0
- package/dist/drive/nfs/xdr.js.map +1 -0
- package/dist/drive/nfs.d.ts +58 -0
- package/dist/drive/nfs.js +193 -0
- package/dist/drive/nfs.js.map +1 -0
- package/dist/drive/operations.d.ts +180 -0
- package/dist/drive/operations.js +358 -0
- package/dist/drive/operations.js.map +1 -0
- package/dist/drive/shelf.d.ts +9 -0
- package/dist/drive/shelf.js +41 -0
- package/dist/drive/shelf.js.map +1 -0
- package/dist/durability-barrier.d.ts +39 -11
- package/dist/durability-barrier.js +106 -41
- package/dist/durability-barrier.js.map +1 -1
- package/dist/entity-access-wire.d.ts +3 -2
- package/dist/entity-access-wire.js +9 -25
- package/dist/entity-access-wire.js.map +1 -1
- package/dist/entity-channel-holdings.d.ts +7 -7
- package/dist/entity-channel-holdings.js +49 -8
- package/dist/entity-channel-holdings.js.map +1 -1
- package/dist/entity-grant-watch.d.ts +9 -0
- package/dist/entity-grant-watch.js +29 -0
- package/dist/entity-grant-watch.js.map +1 -0
- package/dist/entity-record-observability.d.ts +1 -1
- package/dist/entity-record-observability.js +34 -29
- package/dist/entity-record-observability.js.map +1 -1
- package/dist/entity-record-saves.d.ts +34 -7
- package/dist/entity-record-saves.js +72 -20
- package/dist/entity-record-saves.js.map +1 -1
- package/dist/entity-record-store.d.ts +43 -15
- package/dist/entity-record-store.js +160 -55
- package/dist/entity-record-store.js.map +1 -1
- package/dist/error-facts.d.ts +24 -0
- package/dist/error-facts.js +35 -0
- package/dist/error-facts.js.map +1 -0
- package/dist/faults/drain.d.ts +27 -0
- package/dist/faults/drain.js +211 -0
- package/dist/faults/drain.js.map +1 -0
- package/dist/faults/queue.d.ts +46 -0
- package/dist/faults/queue.js +100 -0
- package/dist/faults/queue.js.map +1 -0
- package/dist/faults/show.d.ts +7 -0
- package/dist/faults/show.js +32 -0
- package/dist/faults/show.js.map +1 -0
- package/dist/files-mcp-host.d.ts +58 -0
- package/dist/files-mcp-host.js +63 -0
- package/dist/files-mcp-host.js.map +1 -0
- package/dist/files-observability.d.ts +5 -2
- package/dist/files-observability.js.map +1 -1
- package/dist/files-program/client.d.ts +136 -0
- package/dist/files-program/client.js +442 -0
- package/dist/files-program/client.js.map +1 -0
- package/dist/files-program/journeys.d.ts +15 -0
- package/dist/files-program/journeys.js +79 -0
- package/dist/files-program/journeys.js.map +1 -0
- package/dist/files-program/program.d.ts +1 -0
- package/dist/files-program/program.js +344 -0
- package/dist/files-program/program.js.map +1 -0
- package/dist/files-program/protocol.d.ts +180 -0
- package/dist/files-program/protocol.js +7 -0
- package/dist/files-program/protocol.js.map +1 -0
- package/dist/files-register-host.d.ts +18 -21
- package/dist/files-register-host.js +104 -94
- package/dist/files-register-host.js.map +1 -1
- package/dist/files-trace.d.ts +29 -9
- package/dist/files-trace.js +58 -14
- package/dist/files-trace.js.map +1 -1
- package/dist/filesystem.d.ts +27 -9
- package/dist/filesystem.js +94 -56
- package/dist/filesystem.js.map +1 -1
- package/dist/flush.d.ts +19 -0
- package/dist/flush.js +84 -0
- package/dist/flush.js.map +1 -0
- package/dist/gateway.js +5 -2
- package/dist/gateway.js.map +1 -1
- package/dist/git/ground-owners.d.ts +15 -0
- package/dist/git/ground-owners.js +67 -0
- package/dist/git/ground-owners.js.map +1 -0
- package/dist/git/held-package.d.ts +67 -0
- package/dist/git/held-package.js +95 -0
- package/dist/git/held-package.js.map +1 -0
- package/dist/git/home.d.ts +59 -0
- package/dist/git/home.js +132 -0
- package/dist/git/home.js.map +1 -0
- package/dist/git/marker.d.ts +21 -0
- package/dist/git/marker.js +30 -0
- package/dist/git/marker.js.map +1 -0
- package/dist/git/named-objects.d.ts +24 -0
- package/dist/git/named-objects.js +176 -0
- package/dist/git/named-objects.js.map +1 -0
- package/dist/git/objects.d.ts +30 -0
- package/dist/git/objects.js +88 -0
- package/dist/git/objects.js.map +1 -0
- package/dist/git/play.d.ts +30 -0
- package/dist/git/play.js +305 -0
- package/dist/git/play.js.map +1 -0
- package/dist/git/quarantine.d.ts +48 -0
- package/dist/git/quarantine.js +150 -0
- package/dist/git/quarantine.js.map +1 -0
- package/dist/git/rail.d.ts +206 -0
- package/dist/git/rail.js +885 -0
- package/dist/git/rail.js.map +1 -0
- package/dist/git/read-state.d.ts +49 -0
- package/dist/git/read-state.js +238 -0
- package/dist/git/read-state.js.map +1 -0
- package/dist/git/repository.d.ts +62 -0
- package/dist/git/repository.js +130 -0
- package/dist/git/repository.js.map +1 -0
- package/dist/git/write-files.d.ts +29 -0
- package/dist/git/write-files.js +215 -0
- package/dist/git/write-files.js.map +1 -0
- package/dist/git-binding.d.ts +37 -49
- package/dist/git-binding.js +262 -134
- package/dist/git-binding.js.map +1 -1
- package/dist/git-cat-file.d.ts +28 -0
- package/dist/git-cat-file.js +125 -0
- package/dist/git-cat-file.js.map +1 -0
- package/dist/git-command.d.ts +45 -10
- package/dist/git-command.js +197 -89
- package/dist/git-command.js.map +1 -1
- package/dist/git-index-entries.d.ts +10 -8
- package/dist/git-index-entries.js +21 -39
- package/dist/git-index-entries.js.map +1 -1
- package/dist/git-index-format.d.ts +35 -18
- package/dist/git-index-format.js +210 -53
- package/dist/git-index-format.js.map +1 -1
- package/dist/git-install-lines.d.ts +12 -0
- package/dist/git-install-lines.js +22 -0
- package/dist/git-install-lines.js.map +1 -0
- package/dist/git-launcher-process.d.ts +1 -0
- package/dist/git-launcher-process.js +81 -0
- package/dist/git-launcher-process.js.map +1 -0
- package/dist/git-launcher.d.ts +70 -0
- package/dist/git-launcher.js +178 -0
- package/dist/git-launcher.js.map +1 -0
- package/dist/graph-heads.d.ts +71 -0
- package/dist/graph-heads.js +90 -0
- package/dist/graph-heads.js.map +1 -0
- package/dist/ground-basis.d.ts +141 -105
- package/dist/ground-basis.js +367 -460
- package/dist/ground-basis.js.map +1 -1
- package/dist/ground-checkpoint-worker.js +26 -25
- package/dist/ground-checkpoint-worker.js.map +1 -1
- package/dist/ground-checkpoints.d.ts +1 -1
- package/dist/ground-checkpoints.js +6 -6
- package/dist/ground-contract.d.ts +11 -0
- package/dist/ground-contract.js +115 -0
- package/dist/ground-contract.js.map +1 -0
- package/dist/ground-coordination.d.ts +30 -20
- package/dist/ground-coordination.js +96 -51
- package/dist/ground-coordination.js.map +1 -1
- package/dist/ground-database.d.ts +11 -13
- package/dist/ground-database.js +283 -97
- package/dist/ground-database.js.map +1 -1
- package/dist/ground-differences.d.ts +19 -18
- package/dist/ground-differences.js +20 -42
- package/dist/ground-differences.js.map +1 -1
- package/dist/ground-initialization.d.ts +3 -0
- package/dist/ground-initialization.js.map +1 -1
- package/dist/ground-install-saves.d.ts +61 -20
- package/dist/ground-install-saves.js +56 -52
- package/dist/ground-install-saves.js.map +1 -1
- package/dist/ground-inventory-schema.d.ts +42 -2
- package/dist/ground-inventory-schema.js +244 -31
- package/dist/ground-inventory-schema.js.map +1 -1
- package/dist/ground-marks.d.ts +49 -0
- package/dist/ground-marks.js +105 -0
- package/dist/ground-marks.js.map +1 -0
- package/dist/ground-profile.d.ts +7 -0
- package/dist/ground-profile.js +85 -16
- package/dist/ground-profile.js.map +1 -1
- package/dist/ground-reads.d.ts +86 -0
- package/dist/ground-reads.js +256 -0
- package/dist/ground-reads.js.map +1 -0
- package/dist/ground-relations.d.ts +57 -0
- package/dist/ground-relations.js +206 -0
- package/dist/ground-relations.js.map +1 -0
- package/dist/ground-root-index.d.ts +3 -2
- package/dist/ground-root-index.js +4 -3
- package/dist/ground-root-index.js.map +1 -1
- package/dist/ground-row.d.ts +23 -7
- package/dist/ground-row.js +27 -11
- package/dist/ground-row.js.map +1 -1
- package/dist/ground-save-ops.d.ts +42 -26
- package/dist/ground-save-ops.js +46 -26
- package/dist/ground-save-ops.js.map +1 -1
- package/dist/ground-saver-worker.js +171 -44
- package/dist/ground-saver-worker.js.map +1 -1
- package/dist/ground-saver.d.ts +35 -7
- package/dist/ground-saver.js +52 -25
- package/dist/ground-saver.js.map +1 -1
- package/dist/ground-store.d.ts +51 -10
- package/dist/ground-store.js +439 -89
- package/dist/ground-store.js.map +1 -1
- package/dist/index.d.ts +2 -2
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/initial-publication.d.ts +42 -0
- package/dist/initial-publication.js +42 -0
- package/dist/initial-publication.js.map +1 -0
- package/dist/installation/environment.d.ts +4 -0
- package/dist/installation/environment.js +13 -0
- package/dist/installation/environment.js.map +1 -1
- package/dist/keychain/cli-io.d.ts +8 -0
- package/dist/keychain/cli-io.js +55 -0
- package/dist/keychain/cli-io.js.map +1 -0
- package/dist/keychain/cli.d.ts +12 -0
- package/dist/keychain/cli.js +48 -0
- package/dist/keychain/cli.js.map +1 -0
- package/dist/keychain/host.d.ts +28 -0
- package/dist/keychain/host.js +43 -0
- package/dist/keychain/host.js.map +1 -0
- package/dist/keychain/http-mount.d.ts +16 -0
- package/dist/keychain/http-mount.js +74 -0
- package/dist/keychain/http-mount.js.map +1 -0
- package/dist/keychain/key-wire.d.ts +12 -0
- package/dist/keychain/key-wire.js +45 -0
- package/dist/keychain/key-wire.js.map +1 -0
- package/dist/keychain/presence-mac.d.ts +8 -0
- package/dist/keychain/presence-mac.js +26 -0
- package/dist/keychain/presence-mac.js.map +1 -0
- package/dist/keychain/presence.d.ts +9 -0
- package/dist/keychain/presence.js +24 -0
- package/dist/keychain/presence.js.map +1 -0
- package/dist/keychain/rail.d.ts +19 -0
- package/dist/keychain/rail.js +20 -0
- package/dist/keychain/rail.js.map +1 -0
- package/dist/keychain/secret-apply.d.ts +22 -0
- package/dist/keychain/secret-apply.js +46 -0
- package/dist/keychain/secret-apply.js.map +1 -0
- package/dist/keychain/shelf-from-ledger.d.ts +15 -0
- package/dist/keychain/shelf-from-ledger.js +18 -0
- package/dist/keychain/shelf-from-ledger.js.map +1 -0
- package/dist/keychain/use-log.d.ts +7 -0
- package/dist/keychain/use-log.js +15 -0
- package/dist/keychain/use-log.js.map +1 -0
- package/dist/keychain/vault-file.d.ts +12 -0
- package/dist/keychain/vault-file.js +19 -0
- package/dist/keychain/vault-file.js.map +1 -0
- package/dist/line-judge.d.ts +39 -0
- package/dist/line-judge.js +177 -0
- package/dist/line-judge.js.map +1 -0
- package/dist/line-loops.d.ts +22 -0
- package/dist/line-loops.js +19 -0
- package/dist/line-loops.js.map +1 -0
- package/dist/link-target.d.ts +16 -0
- package/dist/link-target.js +81 -0
- package/dist/link-target.js.map +1 -0
- package/dist/loop-watch.d.ts +17 -0
- package/dist/loop-watch.js +44 -0
- package/dist/loop-watch.js.map +1 -0
- package/dist/machine-host.d.ts +93 -23
- package/dist/machine-host.js +344 -179
- package/dist/machine-host.js.map +1 -1
- package/dist/main.js +3 -1
- package/dist/main.js.map +1 -1
- package/dist/materialize-records.d.ts +98 -0
- package/dist/materialize-records.js +446 -0
- package/dist/materialize-records.js.map +1 -0
- package/dist/materialized-graph.d.ts +14 -21
- package/dist/materialized-graph.js +1 -135
- package/dist/materialized-graph.js.map +1 -1
- package/dist/mount.d.ts +13 -0
- package/dist/mount.js +33 -0
- package/dist/mount.js.map +1 -0
- package/dist/native/cloud-files.node +0 -0
- package/dist/native/fsevents-stream.node +0 -0
- package/dist/native/inotify.node +0 -0
- package/dist/native/windows-fs.node +0 -0
- package/dist/on-demand-roots.d.ts +31 -0
- package/dist/on-demand-roots.js +18 -0
- package/dist/on-demand-roots.js.map +1 -0
- package/dist/open-standing.d.ts +8 -0
- package/dist/open-standing.js +109 -0
- package/dist/open-standing.js.map +1 -0
- package/dist/own-results.d.ts +37 -0
- package/dist/own-results.js +98 -0
- package/dist/own-results.js.map +1 -0
- package/dist/package-pages.d.ts +41 -0
- package/dist/package-pages.js +76 -0
- package/dist/package-pages.js.map +1 -0
- package/dist/patient-flush.d.ts +24 -0
- package/dist/patient-flush.js +37 -0
- package/dist/patient-flush.js.map +1 -0
- package/dist/physical-path-witness.d.ts +2 -11
- package/dist/physical-path-witness.js +19 -43
- package/dist/physical-path-witness.js.map +1 -1
- package/dist/placement-owed.d.ts +28 -0
- package/dist/placement-owed.js +32 -0
- package/dist/placement-owed.js.map +1 -0
- package/dist/placement-tidy.d.ts +57 -0
- package/dist/placement-tidy.js +313 -0
- package/dist/placement-tidy.js.map +1 -0
- package/dist/platform-product-host.d.ts +12 -0
- package/dist/platform-product-host.js +23 -1
- package/dist/platform-product-host.js.map +1 -1
- package/dist/platform-tools.d.ts +1 -0
- package/dist/platform-tools.js +11 -1
- package/dist/platform-tools.js.map +1 -1
- package/dist/process-lifecycle.d.ts +7 -0
- package/dist/process-lifecycle.js +13 -0
- package/dist/process-lifecycle.js.map +1 -1
- package/dist/pty-host.d.ts +2 -0
- package/dist/pty-host.js +1 -0
- package/dist/pty-host.js.map +1 -1
- package/dist/received-state.d.ts +90 -0
- package/dist/received-state.js +167 -0
- package/dist/received-state.js.map +1 -0
- package/dist/reference-placement.d.ts +26 -0
- package/dist/reference-placement.js +121 -0
- package/dist/reference-placement.js.map +1 -0
- package/dist/registry-graph.d.ts +63 -55
- package/dist/registry-graph.js +291 -170
- package/dist/registry-graph.js.map +1 -1
- package/dist/registry-page-cache.d.ts +2 -4
- package/dist/registry-page-cache.js.map +1 -1
- package/dist/root-install.d.ts +72 -0
- package/dist/root-install.js +178 -0
- package/dist/root-install.js.map +1 -0
- package/dist/runtime-activity.d.ts +20 -0
- package/dist/runtime-activity.js +86 -0
- package/dist/runtime-activity.js.map +1 -0
- package/dist/runtime-argv.d.ts +8 -0
- package/dist/runtime-argv.js +37 -0
- package/dist/runtime-argv.js.map +1 -0
- package/dist/runtime-command-host.d.ts +9 -3
- package/dist/runtime-command-host.js +27 -7
- package/dist/runtime-command-host.js.map +1 -1
- package/dist/runtime-node-flags.d.ts +6 -6
- package/dist/runtime-node-flags.js +6 -6
- package/dist/runtime-wire-host.d.ts +4 -1
- package/dist/runtime-wire-host.js +11 -6
- package/dist/runtime-wire-host.js.map +1 -1
- package/dist/sha256.d.ts +1 -0
- package/dist/sha256.js +4 -0
- package/dist/sha256.js.map +1 -0
- package/dist/sharing-admission.d.ts +9 -4
- package/dist/sharing-admission.js +57 -98
- package/dist/sharing-admission.js.map +1 -1
- package/dist/sharing-host.d.ts +6 -11
- package/dist/sharing-host.js +6 -10
- package/dist/sharing-host.js.map +1 -1
- package/dist/snapshot-delivery-baseline.d.ts +23 -13
- package/dist/snapshot-delivery-baseline.js +37 -40
- package/dist/snapshot-delivery-baseline.js.map +1 -1
- package/dist/socket-marking.d.ts +9 -0
- package/dist/socket-marking.js +26 -0
- package/dist/socket-marking.js.map +1 -0
- package/dist/source-proof.d.ts +2 -15
- package/dist/source-proof.js +9 -4
- package/dist/source-proof.js.map +1 -1
- package/dist/source-signature.d.ts +122 -21
- package/dist/source-signature.js +139 -28
- package/dist/source-signature.js.map +1 -1
- package/dist/source-witness.d.ts +2 -8
- package/dist/source-witness.js +1 -14
- package/dist/source-witness.js.map +1 -1
- package/dist/sqlite-durability.d.ts +1 -0
- package/dist/sqlite-durability.js +2 -0
- package/dist/sqlite-durability.js.map +1 -1
- package/dist/sqlite.js +8 -8
- package/dist/sqlite.js.map +1 -1
- package/dist/sync-address.d.ts +0 -3
- package/dist/sync-address.js +1 -23
- package/dist/sync-address.js.map +1 -1
- package/dist/sync-cli.d.ts +6 -2
- package/dist/sync-cli.js +19 -4
- package/dist/sync-cli.js.map +1 -1
- package/dist/sync-setting.d.ts +16 -1
- package/dist/sync-setting.js +6 -0
- package/dist/sync-setting.js.map +1 -1
- package/dist/transfer-instrumentation.d.ts +3 -3
- package/dist/transfer-instrumentation.js +7 -5
- package/dist/transfer-instrumentation.js.map +1 -1
- package/dist/turns.d.ts +4 -2
- package/dist/turns.js +17 -15
- package/dist/turns.js.map +1 -1
- package/dist/updates/artifacts.d.ts +9 -4
- package/dist/updates/artifacts.js +132 -9
- package/dist/updates/artifacts.js.map +1 -1
- package/dist/updates/controller.js +4 -3
- package/dist/updates/controller.js.map +1 -1
- package/dist/updates/locked-packages.d.ts +4 -0
- package/dist/updates/locked-packages.js +26 -0
- package/dist/updates/locked-packages.js.map +1 -0
- package/dist/updates/store.d.ts +5 -4
- package/dist/updates/store.js +5 -4
- package/dist/updates/store.js.map +1 -1
- package/dist/user-ground-host.d.ts +534 -179
- package/dist/user-ground-host.js +3293 -5218
- package/dist/user-ground-host.js.map +1 -1
- package/dist/watching/fsevents.d.ts +22 -6
- package/dist/watching/fsevents.js +29 -7
- package/dist/watching/fsevents.js.map +1 -1
- package/dist/watching/git-storage.d.ts +22 -0
- package/dist/watching/git-storage.js +125 -0
- package/dist/watching/git-storage.js.map +1 -0
- package/dist/watching/host.d.ts +149 -23
- package/dist/watching/host.js +706 -206
- package/dist/watching/host.js.map +1 -1
- package/dist/watching/index.d.ts +3 -2
- package/dist/watching/index.js +2 -1
- package/dist/watching/index.js.map +1 -1
- package/dist/watching/inotify.d.ts +81 -0
- package/dist/watching/inotify.js +184 -0
- package/dist/watching/inotify.js.map +1 -0
- package/dist/windows-fs.d.ts +12 -0
- package/dist/windows-fs.js +19 -0
- package/dist/windows-fs.js.map +1 -0
- package/dist/windows-owner-only.d.ts +6 -0
- package/dist/windows-owner-only.js +84 -0
- package/dist/windows-owner-only.js.map +1 -0
- package/dist/wire-client.d.ts +13 -11
- package/dist/wire-client.js +51 -78
- package/dist/wire-client.js.map +1 -1
- package/dist/wire-join.d.ts +19 -0
- package/dist/wire-join.js +54 -0
- package/dist/wire-join.js.map +1 -0
- package/dist/wire-outbox.d.ts +3 -0
- package/dist/wire-outbox.js +6 -1
- package/dist/wire-outbox.js.map +1 -1
- package/dist/wire-request-scope.d.ts +2 -1
- package/dist/wire-request-scope.js +2 -1
- package/dist/wire-request-scope.js.map +1 -1
- package/dist/workspace-add-intent.d.ts +41 -0
- package/dist/workspace-add-intent.js +107 -0
- package/dist/workspace-add-intent.js.map +1 -0
- package/dist/workspace-add-staging.d.ts +78 -74
- package/dist/workspace-add-staging.js +131 -179
- package/dist/workspace-add-staging.js.map +1 -1
- package/dist/workspace-host.d.ts +17 -0
- package/dist/workspace-host.js +17 -21
- package/dist/workspace-host.js.map +1 -1
- package/examinations/fixtures/private-wire-authority.js +534 -499
- package/examinations/native-service.mjs +29 -4
- package/examinations/runtime-upgrade.native-test.mjs +16 -1
- package/npm-shrinkwrap.json +253 -464
- package/package.json +29 -33
- package/dist/apply-cleanup.d.ts +0 -28
- package/dist/apply-cleanup.js +0 -166
- package/dist/apply-cleanup.js.map +0 -1
- package/dist/apply-recovery.d.ts +0 -47
- package/dist/apply-recovery.js +0 -100
- package/dist/apply-recovery.js.map +0 -1
- package/dist/apply-rows.d.ts +0 -72
- package/dist/apply-rows.js +0 -150
- package/dist/apply-rows.js.map +0 -1
- package/dist/apply-saves.d.ts +0 -85
- package/dist/apply-saves.js +0 -238
- package/dist/apply-saves.js.map +0 -1
- package/dist/bounded-for-each.d.ts +0 -3
- package/dist/bounded-for-each.js +0 -26
- package/dist/bounded-for-each.js.map +0 -1
- package/dist/content-cache-ownership.d.ts +0 -13
- package/dist/content-cache-ownership.js +0 -75
- package/dist/content-cache-ownership.js.map +0 -1
- package/dist/content-stream-thread.d.ts +0 -60
- package/dist/content-stream-thread.js +0 -95
- package/dist/content-stream-thread.js.map +0 -1
- package/dist/content-stream-worker.d.ts +0 -7
- package/dist/content-stream-worker.js +0 -52
- package/dist/content-stream-worker.js.map +0 -1
- package/dist/declaration-absorption.d.ts +0 -37
- package/dist/declaration-absorption.js +0 -119
- package/dist/declaration-absorption.js.map +0 -1
- package/dist/declaration-chain.d.ts +0 -36
- package/dist/declaration-chain.js +0 -96
- package/dist/declaration-chain.js.map +0 -1
- package/dist/declaration-commit.d.ts +0 -31
- package/dist/declaration-commit.js +0 -49
- package/dist/declaration-commit.js.map +0 -1
- package/dist/declaration-hold.d.ts +0 -22
- package/dist/declaration-hold.js +0 -24
- package/dist/declaration-hold.js.map +0 -1
- package/dist/declaration-journal.d.ts +0 -62
- package/dist/declaration-journal.js +0 -99
- package/dist/declaration-journal.js.map +0 -1
- package/dist/declaration-save.d.ts +0 -31
- package/dist/declaration-save.js +0 -134
- package/dist/declaration-save.js.map +0 -1
- package/dist/detection/disposition-rows.d.ts +0 -18
- package/dist/detection/disposition-rows.js +0 -29
- package/dist/detection/disposition-rows.js.map +0 -1
- package/dist/detection/git-notice.d.ts +0 -88
- package/dist/detection/git-notice.js +0 -444
- package/dist/detection/git-notice.js.map +0 -1
- package/dist/detection/held-territory.d.ts +0 -51
- package/dist/detection/held-territory.js +0 -205
- package/dist/detection/held-territory.js.map +0 -1
- package/dist/detection/name-reach.d.ts +0 -12
- package/dist/detection/name-reach.js +0 -28
- package/dist/detection/name-reach.js.map +0 -1
- package/dist/detection/portable.d.ts +0 -66
- package/dist/detection/portable.js +0 -137
- package/dist/detection/portable.js.map +0 -1
- package/dist/detection/repository-publication.d.ts +0 -20
- package/dist/detection/repository-publication.js +0 -79
- package/dist/detection/repository-publication.js.map +0 -1
- package/dist/detection/repository-routes.d.ts +0 -43
- package/dist/detection/repository-routes.js +0 -98
- package/dist/detection/repository-routes.js.map +0 -1
- package/dist/detection/seal-law.d.ts +0 -66
- package/dist/detection/seal-law.js +0 -116
- package/dist/detection/seal-law.js.map +0 -1
- package/dist/detection/verified-content.d.ts +0 -6
- package/dist/detection/verified-content.js +0 -12
- package/dist/detection/verified-content.js.map +0 -1
- package/dist/entity-apply-host.d.ts +0 -80
- package/dist/entity-apply-host.js +0 -2316
- package/dist/entity-apply-host.js.map +0 -1
- package/dist/entity-apply-store.d.ts +0 -105
- package/dist/entity-apply-store.js +0 -290
- package/dist/entity-apply-store.js.map +0 -1
- package/dist/git-capture.d.ts +0 -36
- package/dist/git-capture.js +0 -91
- package/dist/git-capture.js.map +0 -1
- package/dist/git-card.d.ts +0 -17
- package/dist/git-card.js +0 -133
- package/dist/git-card.js.map +0 -1
- package/dist/git-checkpoint-construction.d.ts +0 -40
- package/dist/git-checkpoint-construction.js +0 -102
- package/dist/git-checkpoint-construction.js.map +0 -1
- package/dist/git-checkpoint-preparation.d.ts +0 -37
- package/dist/git-checkpoint-preparation.js +0 -145
- package/dist/git-checkpoint-preparation.js.map +0 -1
- package/dist/git-configuration.d.ts +0 -40
- package/dist/git-configuration.js +0 -217
- package/dist/git-configuration.js.map +0 -1
- package/dist/git-evidence.d.ts +0 -61
- package/dist/git-evidence.js +0 -181
- package/dist/git-evidence.js.map +0 -1
- package/dist/git-index-witness.d.ts +0 -33
- package/dist/git-index-witness.js +0 -69
- package/dist/git-index-witness.js.map +0 -1
- package/dist/git-literal-host.d.ts +0 -82
- package/dist/git-literal-host.js +0 -173
- package/dist/git-literal-host.js.map +0 -1
- package/dist/git-literal-read.d.ts +0 -88
- package/dist/git-literal-read.js +0 -170
- package/dist/git-literal-read.js.map +0 -1
- package/dist/git-literal-replay.d.ts +0 -33
- package/dist/git-literal-replay.js +0 -269
- package/dist/git-literal-replay.js.map +0 -1
- package/dist/git-native-file.d.ts +0 -42
- package/dist/git-native-file.js +0 -145
- package/dist/git-native-file.js.map +0 -1
- package/dist/git-native-index.d.ts +0 -21
- package/dist/git-native-index.js +0 -44
- package/dist/git-native-index.js.map +0 -1
- package/dist/git-operation-host.d.ts +0 -48
- package/dist/git-operation-host.js +0 -127
- package/dist/git-operation-host.js.map +0 -1
- package/dist/git-private-index.d.ts +0 -11
- package/dist/git-private-index.js +0 -42
- package/dist/git-private-index.js.map +0 -1
- package/dist/git-private-repository.d.ts +0 -4
- package/dist/git-private-repository.js +0 -69
- package/dist/git-private-repository.js.map +0 -1
- package/dist/git-private-view.d.ts +0 -57
- package/dist/git-private-view.js +0 -240
- package/dist/git-private-view.js.map +0 -1
- package/dist/git-ref-store.d.ts +0 -12
- package/dist/git-ref-store.js +0 -68
- package/dist/git-ref-store.js.map +0 -1
- package/dist/git-registration-host.d.ts +0 -38
- package/dist/git-registration-host.js +0 -96
- package/dist/git-registration-host.js.map +0 -1
- package/dist/git-repository-host.d.ts +0 -191
- package/dist/git-repository-host.js +0 -917
- package/dist/git-repository-host.js.map +0 -1
- package/dist/git-worktree-host.d.ts +0 -2
- package/dist/git-worktree-host.js +0 -16
- package/dist/git-worktree-host.js.map +0 -1
- package/dist/graph-publication.d.ts +0 -75
- package/dist/graph-publication.js +0 -203
- package/dist/graph-publication.js.map +0 -1
- package/dist/ground-territory.d.ts +0 -130
- package/dist/ground-territory.js +0 -511
- package/dist/ground-territory.js.map +0 -1
- package/dist/register-upload-fusion.d.ts +0 -84
- package/dist/register-upload-fusion.js +0 -172
- package/dist/register-upload-fusion.js.map +0 -1
- package/dist/repository-identity-steps.d.ts +0 -5
- package/dist/repository-identity-steps.js +0 -33
- package/dist/repository-identity-steps.js.map +0 -1
package/dist/ground-store.js
CHANGED
|
@@ -1,19 +1,46 @@
|
|
|
1
1
|
/** The single typed writer for physical observations and admitted sharing rows.
|
|
2
2
|
* Callers own the surrounding Record/Add/Apply operation. This store owns row
|
|
3
3
|
* replacement, address-slot atomicity and the stored disagreement of the two
|
|
4
|
-
* inventories (ground-
|
|
4
|
+
* inventories (ground-relations.ts), never filesystem effects or policy.
|
|
5
5
|
*
|
|
6
6
|
* Every stored row belongs to one generation of its root; a row is visible
|
|
7
7
|
* when that generation is the root's visible one. Ordinary writes touch only
|
|
8
|
-
* visible rows, so each UUID stays visible at most once.
|
|
8
|
+
* visible rows, so each UUID stays visible at most once.
|
|
9
|
+
*
|
|
10
|
+
* An observed absence is one fact at the highest vanished entity, as
|
|
11
|
+
* `rm -rf` is one unlink: one absence (ground_absences) at its top's address
|
|
12
|
+
* hides the top and every O row beneath, unread and unenumerated. Every
|
|
13
|
+
* reader sees the ground removing each would leave, but a hidden row is
|
|
14
|
+
* retained evidence of what stood there: it holds no address and is never
|
|
15
|
+
* allocated fresh. Three changes end it, each one fact however many rows
|
|
16
|
+
* the absence holds:
|
|
17
|
+
* - a proved return reveals it: its top's continuity was proved, so the
|
|
18
|
+
* absence ends, and each row beneath that has not returned is absent
|
|
19
|
+
* again under its own top;
|
|
20
|
+
* - a hidden row proved to have returned elsewhere leaves it for its new
|
|
21
|
+
* address, as the identity it always was;
|
|
22
|
+
* - a row placed in it retires it: every row it still hides enters
|
|
23
|
+
* identity history and never returns. */
|
|
9
24
|
import { randomUUID } from "node:crypto";
|
|
10
25
|
import { isAbsolute, resolve } from "node:path";
|
|
26
|
+
import { DERIVED_PAYLOAD, membershipVersion, placementOwed } from "@amalgm/live";
|
|
11
27
|
import { SharingAdmission } from "./sharing-admission.js";
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
28
|
+
import { readStoredEntity, restateGroundRelations } from "./ground-relations.js";
|
|
29
|
+
import { shownProof } from "./ground-inventory-schema.js";
|
|
30
|
+
import { owePlacement, slotHolders } from "./placement-owed.js";
|
|
31
|
+
import { sha256Hex } from "./sha256.js";
|
|
32
|
+
import { asideText, proofBoundary, proofQualification, standOn, storedRootChains, } from "./content-qualification.js";
|
|
33
|
+
import { RACY_HORIZON_NS, presenceEstablished, qualificationWaitNs } from "./source-signature.js";
|
|
34
|
+
import { advanceGroundBasis, assertGroundWriteAllowed, GroundBasis, netGroundChanges, rowKey, } from "./ground-basis.js";
|
|
35
|
+
import { INVENTORY_ROWS, inventoryColumns, groundRowProjection, groundRowValues, groundRowSnapshot, localParentOf, } from "./ground-row.js";
|
|
36
|
+
/** Where a notebook row stands for placement: a root stands in no sibling slot. */
|
|
37
|
+
const placementFacts = (row) => row ? { parentUUID: localParentOf(row), name: row.name, status: row.status, type: row.type } : null;
|
|
15
38
|
const owners = new WeakMap();
|
|
16
39
|
const savers = new WeakSet();
|
|
40
|
+
/** What the saves this connection ran since the last call left owed. */
|
|
41
|
+
export function takeOwedExaminations(database) {
|
|
42
|
+
return owners.get(database)?.takeOwed() ?? [];
|
|
43
|
+
}
|
|
17
44
|
/** A saver thread's connection (ground-saver-worker.ts). */
|
|
18
45
|
export function certifyGroundSaver(database) {
|
|
19
46
|
savers.add(database);
|
|
@@ -36,9 +63,23 @@ class GroundStore {
|
|
|
36
63
|
#visibleGeneration;
|
|
37
64
|
#storedRoot;
|
|
38
65
|
#createGeneration;
|
|
66
|
+
#storedChains;
|
|
67
|
+
#qualify;
|
|
39
68
|
#connectionChanges;
|
|
69
|
+
#shownAt;
|
|
70
|
+
#holdsRepository;
|
|
71
|
+
#retained;
|
|
72
|
+
#stored;
|
|
73
|
+
#covering;
|
|
74
|
+
#absent;
|
|
75
|
+
#absorb;
|
|
76
|
+
#storedTop;
|
|
77
|
+
#present;
|
|
78
|
+
#retireRange;
|
|
79
|
+
#deleteRange;
|
|
40
80
|
#admission;
|
|
41
81
|
#writing = false;
|
|
82
|
+
#owed = [];
|
|
42
83
|
constructor(database) {
|
|
43
84
|
this.#database = database;
|
|
44
85
|
this.#admission = new SharingAdmission(database);
|
|
@@ -49,9 +90,43 @@ class GroundStore {
|
|
|
49
90
|
this.#storedRoot = database.prepare(`SELECT EXISTS(SELECT 1 FROM ${INVENTORY_ROWS.entities} WHERE root_uuid = ?)
|
|
50
91
|
OR EXISTS(SELECT 1 FROM ${INVENTORY_ROWS.detection_notebook} WHERE root_uuid = ?)`).pluck();
|
|
51
92
|
this.#createGeneration = database.prepare("INSERT INTO ground_roots(root_uuid, generation) VALUES (?, ?)");
|
|
93
|
+
this.#storedChains = database.prepare(`SELECT qualification, clock_ns AS clockNs, directory_key AS directoryKey, aside
|
|
94
|
+
FROM ground_roots WHERE root_uuid = ?`).safeIntegers();
|
|
95
|
+
this.#qualify = database.prepare(`UPDATE ground_roots SET qualification = ?, clock_ns = ?, directory_key = ?, aside = ?
|
|
96
|
+
WHERE root_uuid = ?`);
|
|
52
97
|
this.#connectionChanges = database.prepare("SELECT total_changes()").pluck();
|
|
98
|
+
// A range is positional: one root's visible generation, at or beneath
|
|
99
|
+
// one relative path, on the root/path key (span). An absence's prefix is
|
|
100
|
+
// that path and a slash; beneath it ends before the path and a zero, the
|
|
101
|
+
// character after the slash. Separate point and range arms keep each on
|
|
102
|
+
// the key: an OR of them would scan the root.
|
|
103
|
+
const at = "root_uuid = ? AND generation = ? AND relative_path = ?";
|
|
104
|
+
const beneath = "root_uuid = ? AND generation = ? AND relative_path >= ? AND relative_path < ?";
|
|
105
|
+
const spanned = (select, where = "") => `${select} WHERE ${at}${where} UNION ALL ${select} WHERE ${beneath}${where}`;
|
|
106
|
+
const retained = "uuid, root_uuid AS rootUUID, absolute_path AS absolutePath, status, type, resource_id AS resourceId";
|
|
107
|
+
this.#shownAt = database.prepare("SELECT uuid FROM entities WHERE root_uuid = ? AND relative_path = ?").pluck();
|
|
108
|
+
this.#holdsRepository = database.prepare(`SELECT EXISTS(${spanned(`SELECT 1 FROM ${INVENTORY_ROWS.entities}`, " AND type = 'repo.git' AND status = 'active'")})`).pluck();
|
|
109
|
+
this.#retained = database.prepare(spanned(`SELECT ${retained} FROM ${INVENTORY_ROWS.entities}`));
|
|
110
|
+
this.#stored = database.prepare(`SELECT b.root_uuid AS rootUUID, b.relative_path AS relativePath,
|
|
111
|
+
b.absolute_path AS absolutePath, b.physical_key AS physicalKey, ${shownProof("presence")} AS presence,
|
|
112
|
+
b.resource_id AS resourceId, b.type AS type
|
|
113
|
+
FROM ${INVENTORY_ROWS.entities} b JOIN ground_roots r ON r.root_uuid = b.root_uuid AND r.generation = b.generation
|
|
114
|
+
WHERE b.uuid = ?`);
|
|
115
|
+
this.#covering = database.prepare(`SELECT prefix FROM ground_absences
|
|
116
|
+
WHERE root_uuid = ? AND generation = ? AND prefix <= ? ORDER BY prefix DESC LIMIT 1`).pluck();
|
|
117
|
+
this.#absent = database.prepare("INSERT INTO ground_absences(root_uuid, generation, prefix) VALUES (?, ?, ?)");
|
|
118
|
+
this.#absorb = database.prepare(`DELETE FROM ground_absences WHERE root_uuid = ? AND generation = ?
|
|
119
|
+
AND prefix >= ? AND prefix < ? RETURNING prefix`).pluck();
|
|
120
|
+
this.#storedTop = database.prepare(`SELECT uuid FROM ${INVENTORY_ROWS.entities}
|
|
121
|
+
WHERE root_uuid = ? AND generation = ? AND relative_path = ?`).pluck();
|
|
122
|
+
this.#present = database.prepare("DELETE FROM ground_absences WHERE root_uuid = ? AND generation = ? AND prefix = ?");
|
|
123
|
+
this.#retireRange = database.prepare(`INSERT OR IGNORE INTO ground_identity_history(inventory, uuid)
|
|
124
|
+
${spanned(`SELECT 'entities', uuid FROM ${INVENTORY_ROWS.entities}`)}`);
|
|
125
|
+
this.#deleteRange = database.prepare(`DELETE FROM ${INVENTORY_ROWS.entities} WHERE (uuid, generation) IN
|
|
126
|
+
(${spanned(`SELECT uuid, generation FROM ${INVENTORY_ROWS.entities}`)}) RETURNING ${retained}`);
|
|
53
127
|
const prepare = (inventory) => {
|
|
54
128
|
const columns = inventoryColumns(inventory);
|
|
129
|
+
const changes = new Map();
|
|
55
130
|
return {
|
|
56
131
|
read: database.prepare(`SELECT ${groundRowProjection(inventory)} FROM ${inventory} WHERE uuid = ?`),
|
|
57
132
|
root: database.prepare(`SELECT ${groundRowProjection(inventory)} FROM ${inventory} WHERE root_uuid = ? ORDER BY relative_path`),
|
|
@@ -71,6 +146,20 @@ class GroundStore {
|
|
|
71
146
|
ON CONFLICT(uuid, generation) DO UPDATE SET ${columns.slice(1)
|
|
72
147
|
.map(column => `${column} = excluded.${column}`).join(", ")}
|
|
73
148
|
`),
|
|
149
|
+
change: changed => {
|
|
150
|
+
const key = changed.join(",");
|
|
151
|
+
let statement = changes.get(key);
|
|
152
|
+
if (!statement) {
|
|
153
|
+
statement = database.prepare(`UPDATE ${INVENTORY_ROWS[inventory]}
|
|
154
|
+
SET ${changed.map(index => `${columns[index]} = ?`).join(", ")} WHERE uuid = ? AND generation = ?`);
|
|
155
|
+
changes.set(key, statement);
|
|
156
|
+
}
|
|
157
|
+
return statement;
|
|
158
|
+
},
|
|
159
|
+
// The child key yields a container's active members in the identity
|
|
160
|
+
// order its hash sorts by.
|
|
161
|
+
membership: database.prepare(`SELECT uuid, name FROM ${inventory}
|
|
162
|
+
WHERE parent_uuid = ? AND status = 'active' ORDER BY uuid`),
|
|
74
163
|
};
|
|
75
164
|
};
|
|
76
165
|
this.#statements = { entities: prepare("entities"), detection_notebook: prepare("detection_notebook") };
|
|
@@ -81,6 +170,11 @@ class GroundStore {
|
|
|
81
170
|
observe() {
|
|
82
171
|
return GroundBasis.observe(this.#database);
|
|
83
172
|
}
|
|
173
|
+
/** The one entity shown at an address in a root, if exactly one is. */
|
|
174
|
+
shownAt(rootUUID, relativePath) {
|
|
175
|
+
const uuids = this.#shownAt.all(rootUUID, relativePath);
|
|
176
|
+
return uuids.length === 1 ? uuids[0] : undefined;
|
|
177
|
+
}
|
|
84
178
|
/** Exact address subtree for an existing operation, not a retained Detect
|
|
85
179
|
* proof. Callers needing later admission must capture and validate a basis. */
|
|
86
180
|
rowsUnder(inventory, rootUUID, relativePath) {
|
|
@@ -102,6 +196,7 @@ class GroundStore {
|
|
|
102
196
|
}
|
|
103
197
|
/** Passive examination evidence for one completed outer commit. Originals
|
|
104
198
|
* are captured by the writer before mutation; no later read may renew them.
|
|
199
|
+
* The writer is its batch's only path to rows, so its account is the commit.
|
|
105
200
|
* A savepoint cannot supply an honest committed receipt, except a saver's
|
|
106
201
|
* save: its batch commits all of it or answers none of it. */
|
|
107
202
|
writeObserved(operation) {
|
|
@@ -120,6 +215,11 @@ class GroundStore {
|
|
|
120
215
|
throw new Error(`ground identity ${uuid} is visible more than once in ${inventory}`);
|
|
121
216
|
return rows[0];
|
|
122
217
|
}
|
|
218
|
+
takeOwed() {
|
|
219
|
+
const owed = this.#owed;
|
|
220
|
+
this.#owed = [];
|
|
221
|
+
return owed;
|
|
222
|
+
}
|
|
123
223
|
performWrite(operation, observe, committed) {
|
|
124
224
|
assertGroundWriteAllowed(this.#database);
|
|
125
225
|
if (this.#writing)
|
|
@@ -132,8 +232,9 @@ class GroundStore {
|
|
|
132
232
|
verificationOnlyRows: 0, physicalRows: 0, logicalRows: 0 } : null;
|
|
133
233
|
let leaving = 0;
|
|
134
234
|
let changes;
|
|
135
|
-
let advanced;
|
|
136
235
|
const activatedRoots = new Set();
|
|
236
|
+
// A saver reports each newly sighted row whose proof stays racy.
|
|
237
|
+
const owed = savers.has(this.#database) ? [] : null;
|
|
137
238
|
// A saver's save runs as a savepoint of its batch. Outermost, IMMEDIATE:
|
|
138
239
|
// another writer may hold the write lock, and a deferred read-then-write
|
|
139
240
|
// would fail against its commit instead of waiting.
|
|
@@ -152,12 +253,74 @@ class GroundStore {
|
|
|
152
253
|
let projectionStarted = false;
|
|
153
254
|
let failure;
|
|
154
255
|
const transitions = new Map();
|
|
155
|
-
const repositoryObservations = new Map();
|
|
156
256
|
const currentRows = new Map();
|
|
257
|
+
// Whether an O row shows changes only with a range: each read keeps
|
|
258
|
+
// the count of ranges this batch had changed when it was made.
|
|
259
|
+
const readUnder = new Map();
|
|
260
|
+
let shownChanges = 0;
|
|
261
|
+
// The absences this batch made that still stand, by root and prefix;
|
|
262
|
+
// the tops it hid; every O row that became or ceased to be an
|
|
263
|
+
// absence's top, and every stored O row that left a hidden place
|
|
264
|
+
// (ground-relations.ts); and every root one of its ranges changed,
|
|
265
|
+
// which no transition lists, with whether that range held a repository.
|
|
266
|
+
const absences = new Set();
|
|
267
|
+
const hidden = new Set();
|
|
268
|
+
const tops = new Set();
|
|
269
|
+
const left = [];
|
|
270
|
+
const covered = [];
|
|
271
|
+
const storedAt = (uuid) => this.#stored.get(uuid);
|
|
272
|
+
const span = (rootUUID, generation, relativePath) => [rootUUID, generation, relativePath, rootUUID, generation, `${relativePath}/`, `${relativePath}0`];
|
|
157
273
|
// Each root's visible generation, fixed for this transaction; roots
|
|
158
|
-
// whose
|
|
274
|
+
// whose activation this transaction changes: a first installation or
|
|
275
|
+
// a requalification.
|
|
159
276
|
const generations = new Map();
|
|
160
277
|
const activated = new Set();
|
|
278
|
+
// Each written root's witness chains as this transaction leaves them.
|
|
279
|
+
const roots = new Map();
|
|
280
|
+
const rootChains = (rootUUID) => {
|
|
281
|
+
let root = roots.get(rootUUID);
|
|
282
|
+
if (root === undefined) {
|
|
283
|
+
root = { chains: storedRootChains(this.#storedChains.get(rootUUID)),
|
|
284
|
+
dirty: false };
|
|
285
|
+
roots.set(rootUUID, root);
|
|
286
|
+
}
|
|
287
|
+
return root;
|
|
288
|
+
};
|
|
289
|
+
/** A proof is stored only under its root's qualification. One minted
|
|
290
|
+
* under another names nothing this root can stand on, so it is not
|
|
291
|
+
* kept; a root that never kept a proof takes the qualification of its
|
|
292
|
+
* first. The standing chain's floor rises to every boundary a kept
|
|
293
|
+
* proof stands on, so a later stamp behind it breaks the chain. */
|
|
294
|
+
const keptProof = (rootUUID, proof) => {
|
|
295
|
+
const tag = proofQualification(proof);
|
|
296
|
+
const root = rootChains(rootUUID), current = root.chains.current;
|
|
297
|
+
if (tag === null || (current !== null && current.qualification !== tag))
|
|
298
|
+
return null;
|
|
299
|
+
const boundary = proofBoundary(proof);
|
|
300
|
+
if (current === null || current.clockNs === null || boundary > current.clockNs) {
|
|
301
|
+
root.chains = { current: { qualification: tag, directoryKey: current?.directoryKey ?? null, clockNs: boundary },
|
|
302
|
+
aside: root.chains.aside };
|
|
303
|
+
root.dirty = true;
|
|
304
|
+
}
|
|
305
|
+
return proof;
|
|
306
|
+
};
|
|
307
|
+
const qualified = (row) => row.sighting === null || keptProof(row.rootUUID, row.sighting) !== null ? row : { ...row, sighting: null };
|
|
308
|
+
/** Presence (presenceEstablished) is the writer's alone to judge: kept
|
|
309
|
+
* for the same key in the same root while its root still stands under
|
|
310
|
+
* the qualification it was shown under, else the proof the row offers
|
|
311
|
+
* when it establishes presence and stands as a sighting would, else
|
|
312
|
+
* none. A row offers its sighting; one no read proved may offer a
|
|
313
|
+
* presence alone, as Apply does for an object it showed that a person
|
|
314
|
+
* then moved (apply-window-host.ts). */
|
|
315
|
+
const presence = (before, row) => {
|
|
316
|
+
const standing = rootChains(row.rootUUID).chains.current?.qualification ?? null;
|
|
317
|
+
if (before?.presence != null && before.physicalKey === row.physicalKey && before.rootUUID === row.rootUUID
|
|
318
|
+
&& standing !== null && proofQualification(before.presence) === standing)
|
|
319
|
+
return before.presence;
|
|
320
|
+
const offered = row.sighting ?? row.presence ?? null;
|
|
321
|
+
return offered !== null && presenceEstablished(row.physicalKey, row.sourceSignature, offered)
|
|
322
|
+
? keptProof(row.rootUUID, offered) : null;
|
|
323
|
+
};
|
|
161
324
|
const assertActive = () => {
|
|
162
325
|
if (!active)
|
|
163
326
|
throw new Error("ground writer used outside its transaction");
|
|
@@ -181,14 +344,20 @@ class GroundStore {
|
|
|
181
344
|
};
|
|
182
345
|
const get = (inventory, uuid) => {
|
|
183
346
|
assertActive();
|
|
184
|
-
const id =
|
|
185
|
-
|
|
347
|
+
const id = rowKey(inventory, uuid);
|
|
348
|
+
// A row this batch wrote is its own; an O row it only read is read
|
|
349
|
+
// again once a range it hid or revealed may have changed whether it
|
|
350
|
+
// shows.
|
|
351
|
+
if (currentRows.has(id) && (inventory !== "entities" || transitions.has(id) || readUnder.get(id) === shownChanges)) {
|
|
186
352
|
return currentRows.get(id);
|
|
353
|
+
}
|
|
187
354
|
if (evidence)
|
|
188
355
|
evidence.rowsRead += 1;
|
|
189
356
|
const row = this.visibleRow(inventory, uuid);
|
|
190
357
|
const value = row && Object.freeze(row);
|
|
191
358
|
currentRows.set(id, value);
|
|
359
|
+
if (inventory === "entities")
|
|
360
|
+
readUnder.set(id, shownChanges);
|
|
192
361
|
return value;
|
|
193
362
|
};
|
|
194
363
|
/** The generation holding a visible row of this root. */
|
|
@@ -222,25 +391,31 @@ class GroundStore {
|
|
|
222
391
|
return created;
|
|
223
392
|
};
|
|
224
393
|
const admission = this.#admission.batch(uuid => get("detection_notebook", uuid));
|
|
225
|
-
const authorize = (inventory, uuid, after) => {
|
|
394
|
+
const authorize = (inventory, uuid, after, derived = false) => {
|
|
226
395
|
if (basisAttempted && !acceptedBasis)
|
|
227
396
|
throw new Error("ground writes require an accepted basis");
|
|
228
|
-
|
|
397
|
+
// A value derived from this transaction alone: no original fact decides it.
|
|
398
|
+
if (derived)
|
|
399
|
+
return;
|
|
400
|
+
const previous = transitions.get(rowKey(inventory, uuid));
|
|
229
401
|
const before = previous ? previous.before : get(inventory, uuid);
|
|
230
|
-
if (
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
402
|
+
if (previous || !acceptedBasis || acceptedBasis.protects(inventory, uuid, before))
|
|
403
|
+
return;
|
|
404
|
+
// An O row an absence hides has left the namespace, not departed: it
|
|
405
|
+
// is protected where it is stored, and is never a fresh identity.
|
|
406
|
+
const retained = before === undefined && inventory === "entities" ? storedAt(uuid) : undefined;
|
|
407
|
+
// Fresh allocation is a separate proof: this UUID has never existed
|
|
408
|
+
// in the inventory, and its destination was observed free.
|
|
409
|
+
// A previously removed identity needs an explicit original entity
|
|
410
|
+
// expectation; a proposed root can never authorize resurrection.
|
|
411
|
+
const authorized = retained ? acceptedBasis.protects(inventory, uuid, retained)
|
|
412
|
+
: before === undefined && after !== undefined && acceptedBasis.allocates(inventory, after)
|
|
237
413
|
&& this.#identityHistory.get(inventory, uuid) === undefined;
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
}
|
|
414
|
+
if (!authorized)
|
|
415
|
+
throw new Error(`ground replacement has no original ${inventory} basis for ${uuid}`);
|
|
241
416
|
};
|
|
242
417
|
const remember = (inventory, uuid, after) => {
|
|
243
|
-
const key =
|
|
418
|
+
const key = rowKey(inventory, uuid);
|
|
244
419
|
const previous = transitions.get(key);
|
|
245
420
|
const before = previous ? previous.before : get(inventory, uuid);
|
|
246
421
|
transitions.set(key, { inventory, before, after });
|
|
@@ -256,16 +431,122 @@ class GroundStore {
|
|
|
256
431
|
admission.changed(before, undefined, "replace");
|
|
257
432
|
remember(inventory, uuid, undefined);
|
|
258
433
|
const removed = this.#statements[inventory].remove.run(uuid, visible(before.rootUUID)).changes !== 0;
|
|
259
|
-
currentRows.set(
|
|
434
|
+
currentRows.set(rowKey(inventory, uuid), undefined);
|
|
260
435
|
if (evidence && removed)
|
|
261
436
|
evidence.removals += 1;
|
|
262
437
|
return removed;
|
|
263
438
|
};
|
|
264
|
-
|
|
439
|
+
/** One absence at the address of a shown O row this batch leaves
|
|
440
|
+
* unwritten hides it and every O row beneath (GroundWriter.replace). */
|
|
441
|
+
const hide = (top) => {
|
|
442
|
+
const id = rowKey("entities", top), row = get("entities", top);
|
|
443
|
+
if (!row || transitions.has(id) || row.relativePath === "") {
|
|
444
|
+
throw new Error(`an absence needs a shown, unwritten, non-root O row: ${top}`);
|
|
445
|
+
}
|
|
446
|
+
if (acceptedBasis && !acceptedBasis.consumesRange(row.rootUUID, row.relativePath)) {
|
|
447
|
+
throw new Error(`ground absence has no range basis at ${row.rootUUID}:${row.relativePath}`);
|
|
448
|
+
}
|
|
449
|
+
if (this.#shownAt.all(row.rootUUID, row.relativePath).length !== 1) {
|
|
450
|
+
throw new Error(`an absence's address holds another O row: ${row.rootUUID}:${row.relativePath}`);
|
|
451
|
+
}
|
|
452
|
+
remember("entities", top, undefined);
|
|
453
|
+
currentRows.set(id, undefined);
|
|
454
|
+
const generation = visible(row.rootUUID), prefix = `${row.relativePath}/`;
|
|
455
|
+
// The top was shown, so no absence covers it, and the new one
|
|
456
|
+
// covers every absence beneath it: the prefixes stay prefix-free.
|
|
457
|
+
// Each absorbed top is now one row beneath it.
|
|
458
|
+
for (const absorbed of this.#absorb.all(row.rootUUID, generation, prefix, `${row.relativePath}0`)) {
|
|
459
|
+
for (const uuid of this.#storedTop.all(row.rootUUID, generation, absorbed.slice(0, -1)))
|
|
460
|
+
tops.add(uuid);
|
|
461
|
+
}
|
|
462
|
+
this.#absent.run(row.rootUUID, generation, prefix);
|
|
463
|
+
tops.add(top);
|
|
464
|
+
shownChanges += 1;
|
|
465
|
+
const at = span(row.rootUUID, generation, row.relativePath);
|
|
466
|
+
covered.push({ rootUUID: row.rootUUID, repository: this.#holdsRepository.get(...at) === 1 });
|
|
467
|
+
absences.add(`${row.rootUUID}\0${prefix}`);
|
|
468
|
+
hidden.add(top);
|
|
469
|
+
if (evidence)
|
|
470
|
+
evidence.removals += 1;
|
|
471
|
+
};
|
|
472
|
+
const reveal = (top, absent) => {
|
|
473
|
+
assertActive();
|
|
474
|
+
projectionStarted = true;
|
|
475
|
+
if (basisAttempted && !acceptedBasis)
|
|
476
|
+
throw new Error("ground writes require an accepted basis");
|
|
477
|
+
const at = storedAt(top);
|
|
478
|
+
if (!at || at.relativePath === "" || get("entities", top) || transitions.has(rowKey("entities", top))) {
|
|
479
|
+
throw new Error(`a reveal needs a hidden, unwritten, non-root O row: ${top}`);
|
|
480
|
+
}
|
|
481
|
+
if (acceptedBasis && !acceptedBasis.consumesRange(at.rootUUID, at.relativePath)) {
|
|
482
|
+
throw new Error(`ground reveal has no range basis at ${at.rootUUID}:${at.relativePath}`);
|
|
483
|
+
}
|
|
484
|
+
const generation = visible(at.rootUUID), prefix = `${at.relativePath}/`;
|
|
485
|
+
if (this.#present.run(at.rootUUID, generation, prefix).changes !== 1) {
|
|
486
|
+
throw new Error(`no absence stands at ${at.rootUUID}:${at.relativePath}`);
|
|
487
|
+
}
|
|
488
|
+
// Each row still absent is hidden again under its own top. None
|
|
489
|
+
// lies beneath another, so the prefixes stay prefix-free.
|
|
490
|
+
const paths = new Set();
|
|
491
|
+
for (const uuid of absent) {
|
|
492
|
+
const row = storedAt(uuid);
|
|
493
|
+
if (row?.rootUUID !== at.rootUUID || !row.relativePath.startsWith(prefix) || paths.has(row.relativePath)) {
|
|
494
|
+
throw new Error(`a row still absent must be stored once beneath ${at.rootUUID}:${at.relativePath}: ${uuid}`);
|
|
495
|
+
}
|
|
496
|
+
paths.add(row.relativePath);
|
|
497
|
+
}
|
|
498
|
+
for (const path of paths) {
|
|
499
|
+
for (let up = path.slice(0, path.lastIndexOf("/")); up !== at.relativePath; up = up.slice(0, up.lastIndexOf("/"))) {
|
|
500
|
+
if (paths.has(up))
|
|
501
|
+
throw new Error(`rows still absent lie beneath one another: ${up} and ${path}`);
|
|
502
|
+
}
|
|
503
|
+
this.#absent.run(at.rootUUID, generation, `${path}/`);
|
|
504
|
+
}
|
|
505
|
+
tops.add(top);
|
|
506
|
+
for (const uuid of absent)
|
|
507
|
+
tops.add(uuid);
|
|
508
|
+
shownChanges += 1;
|
|
509
|
+
const range = span(at.rootUUID, generation, at.relativePath);
|
|
510
|
+
covered.push({ rootUUID: at.rootUUID, repository: this.#holdsRepository.get(...range) === 1 });
|
|
511
|
+
const parent = get("entities", top)?.parentUUID;
|
|
512
|
+
return [...parent ? [parent] : [], ...this.#retained.all(...range)
|
|
513
|
+
.flatMap(row => DERIVED_PAYLOAD.has(row.type) ? [row.uuid] : [])];
|
|
514
|
+
};
|
|
515
|
+
/** Whether this O row is stored at or beneath an absence this batch
|
|
516
|
+
* made: its stored address climbs to one still standing. */
|
|
517
|
+
const hiddenByBatch = (uuid) => {
|
|
518
|
+
const row = storedAt(uuid);
|
|
519
|
+
for (let at = row?.relativePath ?? ""; at !== ""; at = at.slice(0, Math.max(0, at.lastIndexOf("/")))) {
|
|
520
|
+
if (absences.has(`${row.rootUUID}\0${at}/`))
|
|
521
|
+
return true;
|
|
522
|
+
}
|
|
523
|
+
return false;
|
|
524
|
+
};
|
|
525
|
+
/** Before a row is placed at this address: an absence covering it is
|
|
526
|
+
* lifted, and the rows it hides are retired, so a dormant row never
|
|
527
|
+
* holds an address. They left the namespace when it was hidden, so
|
|
528
|
+
* their going changes no answer but its range's. */
|
|
529
|
+
const vacate = (rootUUID, generation, relativePath) => {
|
|
530
|
+
const address = `${relativePath}/`;
|
|
531
|
+
const prefix = this.#covering.get(rootUUID, generation, address);
|
|
532
|
+
if (prefix === undefined || !address.startsWith(prefix))
|
|
533
|
+
return;
|
|
534
|
+
const range = span(rootUUID, generation, prefix.slice(0, -1));
|
|
535
|
+
// History first: a departing identity is never allocated fresh again.
|
|
536
|
+
this.#retireRange.run(...range);
|
|
537
|
+
const rows = this.#deleteRange.all(...range);
|
|
538
|
+
left.push(...rows);
|
|
539
|
+
this.#present.run(rootUUID, generation, prefix);
|
|
540
|
+
absences.delete(`${rootUUID}\0${prefix}`);
|
|
541
|
+
covered.push({ rootUUID, repository: false });
|
|
542
|
+
if (evidence)
|
|
543
|
+
evidence.removals += rows.length;
|
|
544
|
+
};
|
|
545
|
+
const replace = (inventory, rows, removals = [], sharing, derived = false, absent = []) => {
|
|
265
546
|
assertActive();
|
|
266
547
|
projectionStarted = true;
|
|
267
|
-
if (inventory === "detection_notebook" && sharing === undefined) {
|
|
268
|
-
throw new Error("sharing writes require an explicit replacement or retention decision");
|
|
548
|
+
if (inventory === "detection_notebook" && (sharing === undefined || absent.length)) {
|
|
549
|
+
throw new Error("sharing writes require an explicit replacement or retention decision, and hide no row");
|
|
269
550
|
}
|
|
270
551
|
const seen = new Set();
|
|
271
552
|
const changed = rows.flatMap(proposed => {
|
|
@@ -277,39 +558,28 @@ class GroundStore {
|
|
|
277
558
|
if (!isAbsolute(row.absolutePath) || resolve(row.absolutePath) !== row.absolutePath) {
|
|
278
559
|
throw new Error(`${inventory} address of ${row.uuid} is not canonical: ${row.absolutePath}`);
|
|
279
560
|
}
|
|
561
|
+
row = qualified(row);
|
|
280
562
|
const before = get(inventory, row.uuid);
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
"absolutePath", "physicalKey", "filesystemMode"].every(key => before[key] === row[key]);
|
|
286
|
-
if (pair) {
|
|
287
|
-
if (row.type !== "repo.git" || row.status !== "active"
|
|
288
|
-
|| ["uuid", "absolutePath", "payloadVersion", "physicalKey", "filesystemMode"]
|
|
289
|
-
.some(key => row[key] !== pair[key]) || stamp !== pair.gitConfigurationObservation) {
|
|
290
|
-
throw new Error("repository observation does not describe the target O row");
|
|
291
|
-
}
|
|
292
|
-
}
|
|
293
|
-
else if (stamp !== null && stamp !== before?.gitConfigurationObservation) {
|
|
294
|
-
throw new Error("a new Git configuration stamp requires a paired repository observation");
|
|
295
|
-
}
|
|
296
|
-
row = { ...row, gitConfigurationObservation: pair ? stamp
|
|
297
|
-
: row.type === "repo.git" && row.status === "active" && sameBasis ? stamp : null };
|
|
298
|
-
}
|
|
563
|
+
// A hidden row proved to have returned keeps the presence its
|
|
564
|
+
// object held before it went: that presence is its proof.
|
|
565
|
+
if (inventory === "entities")
|
|
566
|
+
row = { ...row, presence: presence(before ?? storedAt(row.uuid), row) };
|
|
299
567
|
// Provenance changes before equal-row suppression: replacing A by
|
|
300
568
|
// equal A is a new decision unless the caller explicitly retains it.
|
|
301
|
-
if (inventory === "detection_notebook")
|
|
569
|
+
if (inventory === "detection_notebook") {
|
|
302
570
|
admission.changed(before, row, sharing);
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
571
|
+
row = { ...row, localAdmissionMutationId: admission.provenance(row.uuid, before) };
|
|
572
|
+
}
|
|
573
|
+
const placed = groundRowSnapshot(row, inventory), values = groundRowValues(placed, inventory);
|
|
574
|
+
const stored = before && groundRowValues(before, inventory);
|
|
575
|
+
if (stored && stored.every((value, index) => value === values[index]))
|
|
306
576
|
return [];
|
|
307
|
-
return [{ row, before }];
|
|
577
|
+
return [{ row: placed, before, values, stored }];
|
|
308
578
|
});
|
|
309
579
|
// Prove the whole replacement before releasing any occupied slot.
|
|
310
580
|
// A callback catching a failure still cannot commit a partial batch.
|
|
311
581
|
for (const row of rows)
|
|
312
|
-
authorize(inventory, row.uuid, row);
|
|
582
|
+
authorize(inventory, row.uuid, row, derived);
|
|
313
583
|
for (const uuid of removals)
|
|
314
584
|
if (!seen.has(uuid))
|
|
315
585
|
authorize(inventory, uuid);
|
|
@@ -319,31 +589,64 @@ class GroundStore {
|
|
|
319
589
|
// Only address changes need to release an old occupied slot. Release
|
|
320
590
|
// the entire changed set before placing any row, so swaps are atomic.
|
|
321
591
|
// A row changing root leaves its old root's generation: the same
|
|
322
|
-
// logical row, stored where its new root is visible.
|
|
592
|
+
// logical row, stored where its new root is visible. A hidden row
|
|
593
|
+
// proved to have returned leaves its absence, unretired: it is
|
|
594
|
+
// placed as the identity it always was.
|
|
595
|
+
const relocated = new Set();
|
|
323
596
|
for (const { row, before } of changed) {
|
|
324
|
-
if (!before)
|
|
597
|
+
if (!before) {
|
|
598
|
+
const retained = inventory === "entities" ? storedAt(row.uuid) : undefined;
|
|
599
|
+
if (!retained)
|
|
600
|
+
continue;
|
|
601
|
+
this.#statements.entities.remove.run(row.uuid, visible(retained.rootUUID));
|
|
602
|
+
left.push({ uuid: row.uuid, rootUUID: retained.rootUUID, absolutePath: retained.absolutePath,
|
|
603
|
+
resourceId: retained.resourceId, type: retained.type });
|
|
604
|
+
covered.push({ rootUUID: retained.rootUUID, repository: false });
|
|
325
605
|
continue;
|
|
606
|
+
}
|
|
326
607
|
if (inventory === "entities" && (before.resourceId !== row.resourceId || before.rootUUID !== row.rootUUID
|
|
327
608
|
|| before.relativePath !== row.relativePath))
|
|
328
609
|
remove(inventory, row.uuid);
|
|
329
610
|
else if (before.rootUUID !== row.rootUUID)
|
|
330
611
|
this.#statements[inventory].remove.run(row.uuid, visible(before.rootUUID));
|
|
612
|
+
else
|
|
613
|
+
continue;
|
|
614
|
+
relocated.add(row.uuid);
|
|
331
615
|
}
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
616
|
+
// Every absence is made before any row is placed, so a placement in
|
|
617
|
+
// one retires it. Outer tops come first: a top beneath another is no
|
|
618
|
+
// longer shown.
|
|
619
|
+
for (const top of absent.map(uuid => [get("entities", uuid)?.relativePath ?? "", uuid])
|
|
620
|
+
.sort(([left], [right]) => left < right ? -1 : left > right ? 1 : 0)) {
|
|
621
|
+
if (seen.has(top[1]))
|
|
622
|
+
throw new Error(`an absent row is written by its batch: ${top[1]}`);
|
|
623
|
+
hide(top[1]);
|
|
624
|
+
}
|
|
625
|
+
// A row that stays where it is stored changes only its differing
|
|
626
|
+
// columns, so the write touches only the keys over what changed.
|
|
627
|
+
for (const { row, values, stored } of changed) {
|
|
628
|
+
remember(inventory, row.uuid, row);
|
|
338
629
|
try {
|
|
339
|
-
|
|
630
|
+
if (stored && !relocated.has(row.uuid)) {
|
|
631
|
+
const differing = values.flatMap((value, index) => value === stored[index] ? [] : [index]);
|
|
632
|
+
if (differing.length && this.#statements[inventory].change(differing)
|
|
633
|
+
.run(...differing.map(index => values[index]), row.uuid, placing(row.rootUUID)).changes !== 1) {
|
|
634
|
+
throw new Error(`${inventory} row ${row.uuid} is not stored where it is visible`);
|
|
635
|
+
}
|
|
636
|
+
}
|
|
637
|
+
else {
|
|
638
|
+
const generation = placing(row.rootUUID);
|
|
639
|
+
if (inventory === "entities")
|
|
640
|
+
vacate(row.rootUUID, generation, row.relativePath);
|
|
641
|
+
this.#statements[inventory].upsert.run(generation, ...values);
|
|
642
|
+
}
|
|
340
643
|
if (evidence)
|
|
341
644
|
evidence.upserts += 1;
|
|
342
645
|
}
|
|
343
646
|
catch (error) {
|
|
344
647
|
throw new Error(`${inventory} could not place ${row.uuid} at ${row.rootUUID}:${row.relativePath}`, { cause: error });
|
|
345
648
|
}
|
|
346
|
-
currentRows.set(
|
|
649
|
+
currentRows.set(rowKey(inventory, row.uuid), row);
|
|
347
650
|
}
|
|
348
651
|
};
|
|
349
652
|
const writer = {
|
|
@@ -370,16 +673,21 @@ class GroundStore {
|
|
|
370
673
|
return true;
|
|
371
674
|
}, false),
|
|
372
675
|
get,
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
throw new Error("repository observations must precede projection writes");
|
|
376
|
-
if (repositoryObservations.has(pair.uuid))
|
|
377
|
-
throw new Error("duplicate repository observation");
|
|
378
|
-
repositoryObservations.set(pair.uuid, Object.freeze({ ...pair }));
|
|
379
|
-
}, false),
|
|
380
|
-
replace: (inventory, rows, removals, sharing) => attempt(() => replace(inventory, rows, removals, sharing)),
|
|
676
|
+
hides: uuid => attempt(() => get("entities", uuid) === undefined && storedAt(uuid) !== undefined, false),
|
|
677
|
+
replace: (inventory, rows, removals, sharing, absent) => attempt(() => replace(inventory, rows, removals, sharing, false, absent)),
|
|
381
678
|
remove: (inventory, uuid) => attempt(() => remove(inventory, uuid)),
|
|
382
|
-
|
|
679
|
+
reveal: (top, absent) => attempt(() => reveal(top, absent)),
|
|
680
|
+
admitSharing: records => attempt(() => admission.admit(records)),
|
|
681
|
+
chains: rootUUID => attempt(() => rootChains(rootUUID).chains, false),
|
|
682
|
+
standOn: (rootUUID, qualification, directoryKey, revoke) => attempt(() => {
|
|
683
|
+
if (proofQualification(`${qualification}:0`) !== qualification)
|
|
684
|
+
throw new Error(`malformed qualification ${qualification}`);
|
|
685
|
+
const root = rootChains(rootUUID);
|
|
686
|
+
if (root.chains.current?.qualification !== qualification)
|
|
687
|
+
activated.add(rootUUID);
|
|
688
|
+
root.chains = standOn(root.chains, qualification, directoryKey, revoke);
|
|
689
|
+
root.dirty = true;
|
|
690
|
+
}, false),
|
|
383
691
|
update: (inventory, uuid, fields, sharing) => attempt(() => {
|
|
384
692
|
authorize(inventory, uuid);
|
|
385
693
|
const before = get(inventory, uuid);
|
|
@@ -388,6 +696,16 @@ class GroundStore {
|
|
|
388
696
|
replace(inventory, [{ ...before, ...fields, uuid }], [], sharing);
|
|
389
697
|
return true;
|
|
390
698
|
}),
|
|
699
|
+
refreshMembership: (inventory, uuids) => attempt(() => {
|
|
700
|
+
for (const uuid of uuids) {
|
|
701
|
+
const row = get(inventory, uuid);
|
|
702
|
+
if (!row || !DERIVED_PAYLOAD.has(row.type))
|
|
703
|
+
continue;
|
|
704
|
+
const version = membershipVersion(row, this.#statements[inventory].membership.all(uuid), sha256Hex);
|
|
705
|
+
if (version !== row.version)
|
|
706
|
+
replace(inventory, [{ ...row, version }], [], "retain-equivalent", true);
|
|
707
|
+
}
|
|
708
|
+
}),
|
|
391
709
|
};
|
|
392
710
|
try {
|
|
393
711
|
const result = operation(writer);
|
|
@@ -396,7 +714,23 @@ class GroundStore {
|
|
|
396
714
|
}
|
|
397
715
|
if (failure)
|
|
398
716
|
throw failure.error;
|
|
399
|
-
|
|
717
|
+
// An absence hides only rows its batch leaves alone: no write of the
|
|
718
|
+
// batch names one but its top's going and its top's sharing row.
|
|
719
|
+
if (absences.size)
|
|
720
|
+
for (const { inventory, after } of transitions.values()) {
|
|
721
|
+
const uuid = after?.uuid;
|
|
722
|
+
if (uuid === undefined ? true : !hiddenByBatch(uuid) || (inventory === "detection_notebook" && hidden.has(uuid)))
|
|
723
|
+
continue;
|
|
724
|
+
throw new Error(`a hidden row was written by its batch: ${uuid}`);
|
|
725
|
+
}
|
|
726
|
+
// Before anything reads the final rows: their proofs show only under
|
|
727
|
+
// the qualification this transaction leaves their root in.
|
|
728
|
+
for (const [rootUUID, { chains: { current, aside }, dirty }] of roots) {
|
|
729
|
+
if (dirty && this.#qualify.run(current?.qualification ?? null, current?.clockNs ?? null, current?.directoryKey ?? null, asideText(aside), rootUUID).changes !== 1) {
|
|
730
|
+
throw new Error(`ground root ${rootUUID} has no visible generation to qualify`);
|
|
731
|
+
}
|
|
732
|
+
}
|
|
733
|
+
for (const [uuid, mutationId] of admission.finish()) {
|
|
400
734
|
const before = get("detection_notebook", uuid);
|
|
401
735
|
if (!before || before.localAdmissionMutationId === mutationId)
|
|
402
736
|
continue;
|
|
@@ -404,32 +738,47 @@ class GroundStore {
|
|
|
404
738
|
const after = groundRowSnapshot({ ...before, localAdmissionMutationId: mutationId }, "detection_notebook");
|
|
405
739
|
remember("detection_notebook", uuid, after);
|
|
406
740
|
this.#admissionMutation.run(mutationId, uuid, visible(before.rootUUID));
|
|
407
|
-
currentRows.set(
|
|
741
|
+
currentRows.set(rowKey("detection_notebook", uuid), after);
|
|
408
742
|
}
|
|
409
|
-
if (committed)
|
|
410
|
-
for (const { inventory, before, after } of transitions.values()) {
|
|
411
|
-
// A caller-owned inner savepoint may roll SQL back without rolling
|
|
412
|
-
// this writer's memory back. Such a batch cannot certify a commit.
|
|
413
|
-
// Validate originals' final claims; never replace them by rereading.
|
|
414
|
-
const current = this.visibleRow(inventory, (after ?? before).uuid);
|
|
415
|
-
if (JSON.stringify(current && groundRowValues(current, inventory)) !== JSON.stringify(after && groundRowValues(after, inventory))) {
|
|
416
|
-
throw new Error("ground commit evidence disagrees with the final SQL state");
|
|
417
|
-
}
|
|
418
|
-
}
|
|
419
743
|
// A committed identity that leaves its inventory can never be
|
|
420
|
-
// allocated fresh again; the history outlives every stamp epoch.
|
|
744
|
+
// allocated fresh again; the history outlives every stamp epoch. A
|
|
745
|
+
// hidden top has not left: its stored row is retained evidence.
|
|
421
746
|
for (const { inventory, before, after } of transitions.values()) {
|
|
422
|
-
if (before && !after)
|
|
747
|
+
if (before && !after && !(inventory === "entities" && hidden.has(before.uuid))) {
|
|
423
748
|
this.#retireIdentity.run(inventory, before.uuid);
|
|
749
|
+
}
|
|
424
750
|
}
|
|
425
|
-
|
|
751
|
+
const net = netGroundChanges(transitions.values());
|
|
752
|
+
// A hidden top's going is its absence, which the relations read as
|
|
753
|
+
// one top; the rows beneath it stay where they are stored.
|
|
754
|
+
restateGroundRelations(this.#database, net.filter(({ inventory, before, after }) => inventory !== "entities" || !hidden.has((after ?? before).uuid)), { tops, left }, (inventory, uuid) => get(inventory, uuid)
|
|
755
|
+
?? (inventory === "entities" ? readStoredEntity(this.#database, uuid) : undefined));
|
|
756
|
+
// A notebook row that changes place owes Apply a placement decision
|
|
757
|
+
// for each shared slot it left or took, in this transaction (placement-owed.ts).
|
|
758
|
+
const placements = [], holders = slotHolders(this.#database);
|
|
759
|
+
for (const { inventory, before, after } of transitions.values()) {
|
|
760
|
+
if (inventory !== "detection_notebook")
|
|
761
|
+
continue;
|
|
762
|
+
placements.push(...placementOwed((after ?? before).uuid, placementFacts(before), placementFacts(after), holders));
|
|
763
|
+
}
|
|
764
|
+
if (placements.length)
|
|
765
|
+
owePlacement(this.#database, placements);
|
|
426
766
|
const revisionStart = evidence ? performance.now() : 0;
|
|
427
767
|
if (evidence)
|
|
428
768
|
evidence.callbackMs = revisionStart - entered;
|
|
429
|
-
const
|
|
430
|
-
advanced = afterCommit;
|
|
769
|
+
const revisionWrites = advanceGroundBasis(this.#database, net, activated, covered);
|
|
431
770
|
for (const rootUUID of activated)
|
|
432
771
|
activatedRoots.add(rootUUID);
|
|
772
|
+
if (owed) {
|
|
773
|
+
for (const { inventory, before, after } of transitions.values()) {
|
|
774
|
+
if (inventory !== "entities" || !after || after.sighting === null || after.sighting === before?.sighting)
|
|
775
|
+
continue;
|
|
776
|
+
const wait = qualificationWaitNs(after);
|
|
777
|
+
if (wait !== null && wait <= RACY_HORIZON_NS) {
|
|
778
|
+
owed.push({ path: after.absolutePath, waitMs: Number((wait + 999999n) / 1000000n) });
|
|
779
|
+
}
|
|
780
|
+
}
|
|
781
|
+
}
|
|
433
782
|
if (committed)
|
|
434
783
|
changes = Object.freeze([...transitions.values()].map(change => Object.freeze({ ...change })));
|
|
435
784
|
if (evidence) {
|
|
@@ -441,7 +790,7 @@ class GroundStore {
|
|
|
441
790
|
continue;
|
|
442
791
|
}
|
|
443
792
|
const fields = Object.keys(after).filter(key => before[key] !== after[key]);
|
|
444
|
-
if (fields.length ===
|
|
793
|
+
if (fields.length && fields.every(key => key === "sighting" || key === "presence"))
|
|
445
794
|
evidence.verificationOnlyRows += 1;
|
|
446
795
|
else if (inventory === "detection_notebook" && fields.includes("localAdmissionMutationId")
|
|
447
796
|
|| fields.some(key => ["resourceId", "rootUUID", "type", "parentUUID", "name", "status", "version",
|
|
@@ -460,11 +809,12 @@ class GroundStore {
|
|
|
460
809
|
leaving = performance.now();
|
|
461
810
|
}
|
|
462
811
|
}).immediate();
|
|
463
|
-
advanced();
|
|
464
812
|
if (evidence) {
|
|
465
813
|
evidence.transactionFinishMs = performance.now() - leaving;
|
|
466
814
|
observe(evidence);
|
|
467
815
|
}
|
|
816
|
+
if (owed?.length)
|
|
817
|
+
this.#owed.push(...owed);
|
|
468
818
|
if (committed)
|
|
469
819
|
committed(changes, Object.freeze([...activatedRoots]));
|
|
470
820
|
return result;
|