@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
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"alias-examination.js","sourceRoot":"","sources":["../../src/detection/alias-examination.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"alias-examination.js","sourceRoot":"","sources":["../../src/detection/alias-examination.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;0BAe0B;AAC1B,OAAO,EAAE,iBAAiB,EAAkB,MAAM,kBAAkB,CAAC;AACrE,OAAO,EAAE,WAAW,EAAE,MAAM,wBAAwB,CAAC;AAcrD,MAAM,MAAM,GAAmC,IAAI,GAAG,CAAC,CAAC,WAAW,EAAE,aAAa,EAAE,MAAM,CAAC,CAAC,CAAC;AAC7F,MAAM,IAAI,GAAG,CAAC,GAAiC,EAAyB,EAAE,CACxE,GAAG,IAAI,MAAM,CAAC,GAAG,CAAC,GAAG,CAAC,IAAI,CAAC,IAAI,GAAG,CAAC,MAAM,KAAK,QAAQ,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,SAAS,CAAC;AAC3E,uDAAuD;AACvD,MAAM,KAAK,GAAG,CAAC,GAAc,EAAW,EAAE,CAAC,CAAC,WAAW,CAAC,GAAG,CAAC,eAAe,CAAC,IAAI,EAAE,CAAC,GAAG,EAAE,CAAC;AAEzF;iCACiC;AACjC,MAAM,UAAU,WAAW,CAAC,SAAyB,EAAE,WAAmB;IACxE,OAAO,SAAS,CAAC,UAAU,CAAC,WAAW,C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C,EAAE,CAAC;gBAC1F,IAAI,CAAC,GAAG,CAAC,KAAK,CAAC,IAAI,EAAE,KAAK,CAAC,YAAY,CAAC,CAAC;YAC3C,CAAC;QACH,CAAC;IACH,CAAC,CAAC;IACF,KAAK,MAAM,MAAM,IAAI,OAAO,EAAE,CAAC;QAC7B,MAAM,GAAG,GAAG,IAAI,CAAC,MAAM,CAAC,MAAM,CAAC,EAAE,EAAE,GAAG,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;QACzD,IAAI,GAAG,IAAI,EAAE,IAAI,GAAG,CAAC,WAAW,KAAK,EAAE,CAAC,WAAW,IAAI,GAAG,CAAC,eAAe,KAAK,EAAE,CAAC,eAAe;YAAE,SAAS;QAC5G,IAAI,EAAE,IAAI,KAAK,CAAC,EAAE,CAAC;YAAE,GAAG,CAAC,EAAE,CAAC,WAAW,EAAE,EAAE,CAAC,eAAe,CAAC,CAAC;QAC7D,IAAI,GAAG,IAAI,GAAG,CAAC,WAAW,KAAK,EAAE,EAAE,WAAW,IAAI,KAAK,CAAC,GAAG,CAAC;YAAE,GAAG,CAAC,GAAG,CAAC,WAAW,EAAE,IAAI,CAAC,CAAC;IAC3F,CAAC;IACD,OAAO,CAAC,GAAG,IAAI,CAAC,MAAM,EAAE,CAAC,CAAC;AAC5B,CAAC"}
|
|
@@ -1,81 +1,107 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { ApplyGuard, ApplyWindowIntent } from "@amalgm/live";
|
|
2
2
|
import type Database from "better-sqlite3";
|
|
3
|
-
import { type
|
|
4
|
-
import { type UnavailableRoot } from "./unreadable.js";
|
|
3
|
+
import { type WindowMemberReceipt } from "../apply-window-rows.js";
|
|
5
4
|
/** Addresses are compared by containment; identities and owned objects by
|
|
6
5
|
* membership, looked up from each owner's side, so a scope costs nothing per
|
|
7
6
|
* member it names. A scope is held as given until its answer is sealed. */
|
|
8
7
|
export interface AttributionScope {
|
|
9
8
|
readonly entries?: readonly string[];
|
|
10
9
|
readonly subtrees?: readonly string[];
|
|
11
|
-
readonly uuids?:
|
|
10
|
+
readonly uuids?: Membership;
|
|
12
11
|
/** Objects named by ownedObject. */
|
|
13
|
-
readonly physical?:
|
|
12
|
+
readonly physical?: Membership;
|
|
14
13
|
}
|
|
15
|
-
/**
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
*
|
|
19
|
-
*
|
|
20
|
-
|
|
14
|
+
/** What a scope asks of a set: only whether it holds one member. */
|
|
15
|
+
export type Membership = Pick<ReadonlySet<string>, "has">;
|
|
16
|
+
/** Every identity O or B holds in one root, Trash's included, answered one
|
|
17
|
+
* probe per owner's identity: a root's scope costs its owners, never its
|
|
18
|
+
* rows. Each answer is read when asked, inside its caller's transaction. */
|
|
19
|
+
export declare function rootIdentities(database: Database.Database, rootUUID: string): Membership;
|
|
20
|
+
/** An object an Apply may own, named within the root that holds it. Identity
|
|
21
|
+
* continuity is root-local, so an object that leaves its root is a new
|
|
22
|
+
* identity wherever it lands, Apply or not. */
|
|
21
23
|
export declare const ownedObject: (root: string, physicalKey: string) => string;
|
|
24
|
+
/** Where Apply places one object it owns: the member's identity, the
|
|
25
|
+
* addresses its receipt lets it stand at, and whether its tree is Apply's
|
|
26
|
+
* whole (an Enter's staged tree, whose members have no rows until its end). */
|
|
27
|
+
export interface ApplyPlacement {
|
|
28
|
+
readonly uuid: string;
|
|
29
|
+
readonly at: readonly string[];
|
|
30
|
+
readonly opaque: boolean;
|
|
31
|
+
}
|
|
22
32
|
export interface ApplyOwnershipBlocker {
|
|
23
|
-
readonly intent:
|
|
24
|
-
|
|
33
|
+
readonly intent: ApplyWindowIntent;
|
|
34
|
+
/** The window's control tree. */
|
|
25
35
|
readonly control: string;
|
|
36
|
+
/** Addresses a writer must not write while this window is open. */
|
|
26
37
|
readonly cones: readonly string[];
|
|
27
38
|
readonly uuids: readonly string[];
|
|
28
39
|
/** Objects named by ownedObject within this owner's binding. */
|
|
29
40
|
readonly physical: readonly string[];
|
|
30
|
-
/**
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
*
|
|
34
|
-
readonly
|
|
35
|
-
/** The binding resolves to another object, or reading it faulted. This
|
|
36
|
-
* owner cannot lawfully resume here. */
|
|
37
|
-
readonly unsafe?: string;
|
|
41
|
+
/** Each object it shows (ownedObject) and where its receipt places it. */
|
|
42
|
+
readonly placements: ReadonlyMap<string, ApplyPlacement>;
|
|
43
|
+
/** Addresses whose object it takes aside (a Leave, a displaced container):
|
|
44
|
+
* what stood there is the member's until its end. */
|
|
45
|
+
readonly aside: readonly string[];
|
|
38
46
|
}
|
|
39
47
|
export type ApplyOwnershipWait = Extract<ApplyGuard, {
|
|
40
48
|
kind: "dependency";
|
|
41
49
|
}>;
|
|
42
|
-
/** What an Apply
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
export declare
|
|
50
|
+
/** What an Apply window waits on while other open windows own its scope. */
|
|
51
|
+
export declare function ownershipWait(owners: readonly ApplyOwnershipBlocker[]): ApplyOwnershipWait | null;
|
|
52
|
+
/** The entities whose Apply owns ground. */
|
|
53
|
+
export declare const ownerEntityIds: (owners: readonly ApplyOwnershipBlocker[]) => string[];
|
|
54
|
+
/** Whose unfinished Apply this is, for a reason. */
|
|
55
|
+
export declare const ownerName: (owner: ApplyOwnershipBlocker) => string;
|
|
56
|
+
/** One Apply window, whichever ownership collection read it. */
|
|
57
|
+
export declare const sameAttempt: (a: ApplyOwnershipBlocker, b: ApplyOwnershipBlocker) => boolean;
|
|
46
58
|
export interface ApplyOwnershipBasis {
|
|
47
59
|
assertCurrent(): void;
|
|
48
60
|
}
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
*
|
|
60
|
-
export declare function
|
|
61
|
+
/** What one window's receipts own: every member's address and source
|
|
62
|
+
* address, the addresses its sibling moves leave and take, every entity
|
|
63
|
+
* among them, the exact objects it reveals over, stages or moves, and where
|
|
64
|
+
* each of those objects may stand. Shared by writers' exclusion, Detect's
|
|
65
|
+
* attribution and the host's post-end wake. */
|
|
66
|
+
export declare function windowFootprint(members: readonly WindowMemberReceipt[]): Pick<ApplyOwnershipBlocker, "cones" | "uuids" | "physical" | "placements" | "aside">;
|
|
67
|
+
/** An open window's placement of `object`, or null when no window placed
|
|
68
|
+
* it. An object keeps its member's identity wherever it stands, as any
|
|
69
|
+
* object does by physical continuity. It is Apply's own (`own`) only where
|
|
70
|
+
* the receipt places it; anywhere else a person moved it, and that move is
|
|
71
|
+
* recorded now under the member's UUID. */
|
|
72
|
+
export declare function placementOf(owners: readonly ApplyOwnershipBlocker[], object: string, address: string): {
|
|
73
|
+
readonly owner: ApplyOwnershipBlocker;
|
|
74
|
+
readonly placement: ApplyPlacement;
|
|
75
|
+
readonly own: boolean;
|
|
76
|
+
} | null;
|
|
77
|
+
/** The open window whose effect an absence at `address` is: it took what
|
|
78
|
+
* stood there, or what stood above it, aside, or it moves an object from or
|
|
79
|
+
* to exactly there. What last stood there is that member's until its end. */
|
|
80
|
+
export declare function vacatedBy(owners: readonly ApplyOwnershipBlocker[], address: string): ApplyOwnershipBlocker | null;
|
|
61
81
|
export interface ApplyOwnershipReader {
|
|
62
82
|
read(): readonly ApplyOwnershipBlocker[];
|
|
63
83
|
incarnation(): string;
|
|
64
84
|
}
|
|
65
|
-
/** One host adapter reads
|
|
66
|
-
*
|
|
85
|
+
/** One host adapter reads every open window's receipts. A member whose
|
|
86
|
+
* binding root was replaced by another directory owns nothing: what the
|
|
87
|
+
* window held left with the old object, and the new root is compared like
|
|
88
|
+
* any folder. A root absent or on another device is still the window's. */
|
|
67
89
|
export declare function sqliteApplyOwnership(database: Database.Database): ApplyOwnershipReader;
|
|
68
90
|
/** One ownership collection serves every scope in an observation. Admission
|
|
69
91
|
* rechecks complete intersecting answers, including the initially empty set.
|
|
70
|
-
* Unrelated owners do not invalidate this scope.
|
|
71
|
-
* still required: active-owner equality alone cannot prove an effect-free gap. */
|
|
92
|
+
* Unrelated owners do not invalidate this scope. */
|
|
72
93
|
export declare class ApplyOwnershipSnapshot {
|
|
73
94
|
#private;
|
|
74
|
-
|
|
95
|
+
/** `excluding` names the window asking, which never owns against itself. */
|
|
96
|
+
constructor(reader: ApplyOwnershipReader, excluding?: string);
|
|
75
97
|
use(input: AttributionScope): readonly ApplyOwnershipBlocker[];
|
|
76
98
|
/** Owners of one object (ownedObject), collected once, including negative
|
|
77
|
-
* answers.
|
|
78
|
-
* new UUID in its root. */
|
|
99
|
+
* answers. */
|
|
79
100
|
physical(object: string): readonly ApplyOwnershipBlocker[];
|
|
101
|
+
/** Every object (ownedObject) an owner holds, asked once and recorded
|
|
102
|
+
* nowhere: for a walk that answers Apply's holds itself and never seals. */
|
|
103
|
+
held(): ReadonlySet<string>;
|
|
104
|
+
/** Every open window this observation reads around, asked once. */
|
|
105
|
+
owners(): readonly ApplyOwnershipBlocker[];
|
|
80
106
|
seal(): ApplyOwnershipBasis;
|
|
81
107
|
}
|
|
@@ -1,47 +1,47 @@
|
|
|
1
|
-
/**
|
|
2
|
-
*
|
|
3
|
-
*
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
/** Apply's open windows: each bound, not yet ended, naming in its members'
|
|
2
|
+
* receipts every object it shows and every address it writes
|
|
3
|
+
* (src/apply-window-rows.ts). Two laws read them:
|
|
4
|
+
*
|
|
5
|
+
* - Writers exclude writers. Another Apply window, a fetch lane or the
|
|
6
|
+
* placement tidy waits while an open window owns ground it would write
|
|
7
|
+
* (`ownershipWait`).
|
|
8
|
+
* - Detect never waits. An object that stands where its receipt places it
|
|
9
|
+
* is Apply's own: it keeps the member's identity and records nothing,
|
|
10
|
+
* and the window's end rings it. Any other object is a person's, read
|
|
11
|
+
* now. A container is one object: its children are entities of their
|
|
12
|
+
* own, judged by their own identities (`placementOf`, `vacatedBy`).
|
|
13
|
+
*
|
|
14
|
+
* An ended window owns nothing: its result is projected. This is never
|
|
15
|
+
* another journal or a source of physical identity. */
|
|
6
16
|
import { resolve, sep } from "node:path";
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import { physicalKey } from "../source-signature.js";
|
|
17
|
+
import { judgeBoundRoot } from "../apply-control.js";
|
|
18
|
+
import { readOpenWindows } from "../apply-window-rows.js";
|
|
10
19
|
import { cachedStatement } from "../sqlite.js";
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
*
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
20
|
+
/** Every identity O or B holds in one root, Trash's included, answered one
|
|
21
|
+
* probe per owner's identity: a root's scope costs its owners, never its
|
|
22
|
+
* rows. Each answer is read when asked, inside its caller's transaction. */
|
|
23
|
+
export function rootIdentities(database, rootUUID) {
|
|
24
|
+
const held = cachedStatement(database, `SELECT 1 FROM entities WHERE uuid = ? AND root_uuid = ?
|
|
25
|
+
UNION ALL SELECT 1 FROM detection_notebook WHERE uuid = ? AND root_uuid = ? LIMIT 1`).pluck();
|
|
26
|
+
return { has: uuid => held.get(uuid, rootUUID, uuid, rootUUID) !== undefined };
|
|
27
|
+
}
|
|
28
|
+
/** An object an Apply may own, named within the root that holds it. Identity
|
|
29
|
+
* continuity is root-local, so an object that leaves its root is a new
|
|
30
|
+
* identity wherever it lands, Apply or not. */
|
|
18
31
|
export const ownedObject = (root, physicalKey) => JSON.stringify([resolve(root), physicalKey]);
|
|
19
|
-
/** What an Apply
|
|
20
|
-
|
|
21
|
-
* overlap needs explicit repair. */
|
|
22
|
-
export function ownershipWait(owners, bound) {
|
|
32
|
+
/** What an Apply window waits on while other open windows own its scope. */
|
|
33
|
+
export function ownershipWait(owners) {
|
|
23
34
|
if (owners.length === 0)
|
|
24
35
|
return null;
|
|
25
|
-
return { kind: "dependency", reason:
|
|
26
|
-
|
|
27
|
-
waitFor: { producer: bound ? "capability" : "apply", entityIds: [...new Set(owners.map(owner => owner.intent.entityId))] } };
|
|
28
|
-
}
|
|
29
|
-
export class ApplyAttributionDeferred extends Error {
|
|
30
|
-
owners;
|
|
31
|
-
moving;
|
|
32
|
-
unavailable;
|
|
33
|
-
/** `moving` and `unavailable` name roots the same attempt found still
|
|
34
|
-
* moving or could not read: separate causes that travel with the owners
|
|
35
|
-
* and are never erased by them. */
|
|
36
|
-
constructor(owners, moving = [], unavailable = []) {
|
|
37
|
-
const blocked = owners.flatMap(owner => owner.unsafe ? [owner.unsafe] : owner.inaccessible ? [owner.inaccessible.reason] : []);
|
|
38
|
-
super(blocked.length ? `Detect attribution is waiting for Apply recovery: ${blocked.join("; ")}`
|
|
39
|
-
: "Detect attribution is waiting for an unfinished Apply operation");
|
|
40
|
-
this.owners = owners;
|
|
41
|
-
this.moving = moving;
|
|
42
|
-
this.unavailable = unavailable;
|
|
43
|
-
}
|
|
36
|
+
return { kind: "dependency", reason: "Another unfinished Apply window owns this ground.",
|
|
37
|
+
waitFor: { producer: "apply", entityIds: ownerEntityIds(owners) } };
|
|
44
38
|
}
|
|
39
|
+
/** The entities whose Apply owns ground. */
|
|
40
|
+
export const ownerEntityIds = (owners) => [...new Set(owners.flatMap(owner => owner.uuids))];
|
|
41
|
+
/** Whose unfinished Apply this is, for a reason. */
|
|
42
|
+
export const ownerName = (owner) => `the unfinished Apply window ${owner.intent.attemptId} of ${owner.uuids.join(", ")}`;
|
|
43
|
+
/** One Apply window, whichever ownership collection read it. */
|
|
44
|
+
export const sameAttempt = (a, b) => a.intent.attemptId === b.intent.attemptId && a.intent.authorityId === b.intent.authorityId;
|
|
45
45
|
const contains = (cone, path) => cone === path
|
|
46
46
|
|| path.startsWith(cone.endsWith(sep) ? cone : `${cone}${sep}`);
|
|
47
47
|
const NONE = new Set();
|
|
@@ -55,48 +55,78 @@ const intersects = (owner, scope) => owner.uuids.some(uuid => scope.uuids.has(uu
|
|
|
55
55
|
|| owner.physical.some(key => scope.physical.has(key))
|
|
56
56
|
|| owner.cones.some(cone => scope.entries.some(path => contains(cone, path))
|
|
57
57
|
|| scope.subtrees.some(path => contains(cone, path) || contains(path, cone)));
|
|
58
|
-
/**
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
*
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
58
|
+
/** What one window's receipts own: every member's address and source
|
|
59
|
+
* address, the addresses its sibling moves leave and take, every entity
|
|
60
|
+
* among them, the exact objects it reveals over, stages or moves, and where
|
|
61
|
+
* each of those objects may stand. Shared by writers' exclusion, Detect's
|
|
62
|
+
* attribution and the host's post-end wake. */
|
|
63
|
+
export function windowFootprint(members) {
|
|
64
|
+
const cones = new Set(), uuids = new Set(), physical = new Set(), aside = new Set();
|
|
65
|
+
const placements = new Map();
|
|
66
|
+
const place = (object, uuid, at, opaque = false) => {
|
|
67
|
+
physical.add(object);
|
|
68
|
+
const known = placements.get(object);
|
|
69
|
+
if (known && known.uuid !== uuid)
|
|
70
|
+
throw new Error(`Apply window places one object as ${known.uuid} and ${uuid}`);
|
|
71
|
+
const placement = known ?? { uuid, at: new Set(), opaque: false };
|
|
72
|
+
for (const address of at)
|
|
73
|
+
placement.at.add(resolve(address));
|
|
74
|
+
placement.opaque ||= opaque;
|
|
75
|
+
placements.set(object, placement);
|
|
76
|
+
};
|
|
77
|
+
for (const member of members) {
|
|
78
|
+
uuids.add(member.intent.entityId);
|
|
79
|
+
if (member.kind === "construct")
|
|
80
|
+
continue;
|
|
81
|
+
const own = (key) => ownedObject(member.root.path, key);
|
|
82
|
+
const uuid = member.intent.entityId;
|
|
83
|
+
cones.add(resolve(member.address));
|
|
84
|
+
if (member.source) {
|
|
85
|
+
cones.add(resolve(member.source.path));
|
|
86
|
+
place(own(member.source.physicalKey), uuid, [member.source.path, member.address]);
|
|
87
|
+
if (member.kind === "leave" || member.displaced)
|
|
88
|
+
aside.add(resolve(member.source.path));
|
|
89
|
+
}
|
|
90
|
+
if (member.staged)
|
|
91
|
+
place(own(member.staged.physicalKey), uuid, [member.address], member.kind === "enter");
|
|
92
|
+
for (const move of member.room) {
|
|
93
|
+
cones.add(resolve(move.source));
|
|
94
|
+
cones.add(resolve(move.destination));
|
|
95
|
+
uuids.add(move.uuid);
|
|
96
|
+
place(own(move.physicalKey), move.uuid, [move.source, move.destination]);
|
|
97
|
+
}
|
|
65
98
|
}
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
99
|
+
return { cones: Object.freeze([...cones].sort()), uuids: Object.freeze([...uuids].sort()),
|
|
100
|
+
physical: Object.freeze([...physical].sort()), aside: Object.freeze([...aside].sort()),
|
|
101
|
+
placements: new Map([...placements].map(([object, { uuid, at, opaque }]) => [object, Object.freeze({ uuid, at: Object.freeze([...at].sort()), opaque })])) };
|
|
102
|
+
}
|
|
103
|
+
/** An open window's placement of `object`, or null when no window placed
|
|
104
|
+
* it. An object keeps its member's identity wherever it stands, as any
|
|
105
|
+
* object does by physical continuity. It is Apply's own (`own`) only where
|
|
106
|
+
* the receipt places it; anywhere else a person moved it, and that move is
|
|
107
|
+
* recorded now under the member's UUID. */
|
|
108
|
+
export function placementOf(owners, object, address) {
|
|
109
|
+
const at = resolve(address);
|
|
110
|
+
for (const owner of owners) {
|
|
111
|
+
const placement = owner.placements.get(object);
|
|
112
|
+
if (placement)
|
|
113
|
+
return { owner, placement, own: placement.at.includes(at) };
|
|
70
114
|
}
|
|
115
|
+
return null;
|
|
71
116
|
}
|
|
72
|
-
/**
|
|
73
|
-
*
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
? {} : { unsafe: "Apply attribution owner has a replaced binding" };
|
|
117
|
+
/** The open window whose effect an absence at `address` is: it took what
|
|
118
|
+
* stood there, or what stood above it, aside, or it moves an object from or
|
|
119
|
+
* to exactly there. What last stood there is that member's until its end. */
|
|
120
|
+
export function vacatedBy(owners, address) {
|
|
121
|
+
const at = resolve(address);
|
|
122
|
+
return owners.find(owner => owner.aside.some(path => contains(path, at))
|
|
123
|
+
|| [...owner.placements.values()].some(placement => placement.at.includes(at))) ?? null;
|
|
80
124
|
}
|
|
81
|
-
/**
|
|
82
|
-
*
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
...recovery.relocated.map(move => move.source)].filter(value => value !== null);
|
|
86
|
-
return {
|
|
87
|
-
cones: Object.freeze([...new Set([recovery.targetPath, ...preimages.map(source => source.path),
|
|
88
|
-
...recovery.moves.map(move => move.destination)].map(path => resolve(path)))].sort()),
|
|
89
|
-
uuids: Object.freeze([...new Set([recovery.intent.entityId,
|
|
90
|
-
...preimages.flatMap(source => source.rows.map(row => row.record.uuid))])].sort()),
|
|
91
|
-
};
|
|
92
|
-
}
|
|
93
|
-
/** One host adapter reads bound, nonterminal receipts. Unbound preparation
|
|
94
|
-
* owns no effects; terminal cleanup owns no live filesystem attribution. */
|
|
125
|
+
/** One host adapter reads every open window's receipts. A member whose
|
|
126
|
+
* binding root was replaced by another directory owns nothing: what the
|
|
127
|
+
* window held left with the old object, and the new root is compared like
|
|
128
|
+
* any folder. A root absent or on another device is still the window's. */
|
|
95
129
|
export function sqliteApplyOwnership(database) {
|
|
96
|
-
const owners = cachedStatement(database, `SELECT intent_json AS intentJson, recovery_location AS control
|
|
97
|
-
FROM entity_apply_intents WHERE retirement_json IS NULL AND recovery_location IS NOT NULL
|
|
98
|
-
ORDER BY authority_id, entity_id`);
|
|
99
|
-
const physical = cachedStatement(database, "SELECT absolute_path AS path, physical_key AS physical FROM entities WHERE uuid = ?");
|
|
100
130
|
const incarnation = cachedStatement(database, "SELECT identity FROM ground_incarnation WHERE singleton = 1");
|
|
101
131
|
return {
|
|
102
132
|
incarnation: () => {
|
|
@@ -105,58 +135,29 @@ export function sqliteApplyOwnership(database) {
|
|
|
105
135
|
throw new Error("Apply attribution read has no database incarnation");
|
|
106
136
|
return row.identity;
|
|
107
137
|
},
|
|
108
|
-
read: () =>
|
|
109
|
-
const
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
if (!("isDirectory" in reached)) {
|
|
118
|
-
const current = physical.get(intent.entityId);
|
|
119
|
-
return Object.freeze({ intent: Object.freeze(intent), control: row.control, receipt: "",
|
|
120
|
-
cones: Object.freeze([...new Set([resolve(root), ...(current ? [current.path] : [])])].sort()),
|
|
121
|
-
uuids: Object.freeze([intent.entityId]),
|
|
122
|
-
physical: Object.freeze(current ? [ownedObject(root, current.physical)] : []), ...reached });
|
|
123
|
-
}
|
|
124
|
-
const recovery = readApplyRecovery(row.control, intent);
|
|
125
|
-
if (!recovery)
|
|
126
|
-
throw new Error("Apply attribution owner lost its referenced receipt");
|
|
127
|
-
// A readable immutable receipt still names its original obligation when
|
|
128
|
-
// its binding cannot serve it. Keep that state with its actual scopes;
|
|
129
|
-
// it cannot make an unrelated root fail ownership collection.
|
|
130
|
-
const binding = bindingState(recovery);
|
|
131
|
-
const footprint = applyRecoveryFootprint(recovery);
|
|
132
|
-
const attributed = footprint.uuids.flatMap(uuid => {
|
|
133
|
-
const candidate = physical.get(uuid);
|
|
134
|
-
return candidate ? [candidate] : [];
|
|
138
|
+
read: () => readOpenWindows(database).flatMap(window => {
|
|
139
|
+
const roots = new Map();
|
|
140
|
+
const standing = window.members.filter(member => {
|
|
141
|
+
if (member.kind === "construct")
|
|
142
|
+
return false;
|
|
143
|
+
let present = roots.get(member.root.physicalKey);
|
|
144
|
+
if (present === undefined)
|
|
145
|
+
roots.set(member.root.physicalKey, present = judgeBoundRoot(member.root) !== "replaced");
|
|
146
|
+
return present;
|
|
135
147
|
});
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
}
|
|
144
|
-
return Object.freeze({ intent: Object.freeze(intent), control: row.control,
|
|
145
|
-
receipt: createHash("sha256").update(JSON.stringify(recovery)).digest("hex"),
|
|
146
|
-
physical: Object.freeze([...new Set(identities.map(key => ownedObject(recovery.binding.path, key)))].sort()),
|
|
147
|
-
...footprint,
|
|
148
|
-
// Original participant UUIDs also protect their currently attributed
|
|
149
|
-
// addresses. A subtree effect cannot bypass ownership by moving one
|
|
150
|
-
// of those participants outside the original receipt's path cone.
|
|
151
|
-
cones: Object.freeze([...new Set([...footprint.cones, ...attributed.map(row => row.path)])].sort()),
|
|
152
|
-
...binding });
|
|
148
|
+
if (standing.length === 0)
|
|
149
|
+
return [];
|
|
150
|
+
return [Object.freeze({
|
|
151
|
+
intent: window.intent,
|
|
152
|
+
control: standing[0].control,
|
|
153
|
+
...windowFootprint(standing),
|
|
154
|
+
})];
|
|
153
155
|
}),
|
|
154
156
|
};
|
|
155
157
|
}
|
|
156
158
|
/** One ownership collection serves every scope in an observation. Admission
|
|
157
159
|
* rechecks complete intersecting answers, including the initially empty set.
|
|
158
|
-
* Unrelated owners do not invalidate this scope.
|
|
159
|
-
* still required: active-owner equality alone cannot prove an effect-free gap. */
|
|
160
|
+
* Unrelated owners do not invalidate this scope. */
|
|
160
161
|
export class ApplyOwnershipSnapshot {
|
|
161
162
|
#reader;
|
|
162
163
|
#excluding;
|
|
@@ -166,6 +167,7 @@ export class ApplyOwnershipSnapshot {
|
|
|
166
167
|
#physical = new Set();
|
|
167
168
|
#closed = false;
|
|
168
169
|
#failed = false;
|
|
170
|
+
/** `excluding` names the window asking, which never owns against itself. */
|
|
169
171
|
constructor(reader, excluding) {
|
|
170
172
|
this.#reader = reader;
|
|
171
173
|
this.#excluding = excluding;
|
|
@@ -173,10 +175,7 @@ export class ApplyOwnershipSnapshot {
|
|
|
173
175
|
this.#owners = this.#read();
|
|
174
176
|
}
|
|
175
177
|
#read() {
|
|
176
|
-
return this.#reader.read().filter(owner =>
|
|
177
|
-
|| owner.intent.attemptId !== this.#excluding.attemptId
|
|
178
|
-
|| owner.intent.authorityId !== this.#excluding.authorityId
|
|
179
|
-
|| owner.intent.entityId !== this.#excluding.entityId);
|
|
178
|
+
return this.#reader.read().filter(owner => owner.intent.attemptId !== this.#excluding);
|
|
180
179
|
}
|
|
181
180
|
use(input) {
|
|
182
181
|
if (this.#closed || this.#failed)
|
|
@@ -193,14 +192,26 @@ export class ApplyOwnershipSnapshot {
|
|
|
193
192
|
}
|
|
194
193
|
}
|
|
195
194
|
/** Owners of one object (ownedObject), collected once, including negative
|
|
196
|
-
* answers.
|
|
197
|
-
* new UUID in its root. */
|
|
195
|
+
* answers. */
|
|
198
196
|
physical(object) {
|
|
199
197
|
if (this.#closed || this.#failed)
|
|
200
198
|
throw new Error("Apply ownership observation is closed or failed");
|
|
201
199
|
this.#physical.add(object);
|
|
202
200
|
return this.#owners.filter(owner => owner.physical.includes(object));
|
|
203
201
|
}
|
|
202
|
+
/** Every object (ownedObject) an owner holds, asked once and recorded
|
|
203
|
+
* nowhere: for a walk that answers Apply's holds itself and never seals. */
|
|
204
|
+
held() {
|
|
205
|
+
if (this.#closed || this.#failed)
|
|
206
|
+
throw new Error("Apply ownership observation is closed or failed");
|
|
207
|
+
return new Set(this.#owners.flatMap(owner => owner.physical));
|
|
208
|
+
}
|
|
209
|
+
/** Every open window this observation reads around, asked once. */
|
|
210
|
+
owners() {
|
|
211
|
+
if (this.#closed || this.#failed)
|
|
212
|
+
throw new Error("Apply ownership observation is closed or failed");
|
|
213
|
+
return this.#owners;
|
|
214
|
+
}
|
|
204
215
|
seal() {
|
|
205
216
|
if (this.#closed || this.#failed)
|
|
206
217
|
throw new Error("Apply ownership observation is closed or failed");
|
|
@@ -223,10 +234,7 @@ export class ApplyOwnershipSnapshot {
|
|
|
223
234
|
}
|
|
224
235
|
}
|
|
225
236
|
function signature(owners) {
|
|
226
|
-
return JSON.stringify(owners.map(owner => [owner.intent.attemptId, owner.intent.authorityId, owner.
|
|
227
|
-
owner.
|
|
228
|
-
owner.intent.targetState, owner.intent.targetType, owner.intent.createdAt,
|
|
229
|
-
owner.control, owner.receipt, owner.cones, owner.uuids, owner.physical,
|
|
230
|
-
owner.inaccessible?.reason ?? null, owner.unsafe ?? null]).sort((a, b) => JSON.stringify(a).localeCompare(JSON.stringify(b))));
|
|
237
|
+
return JSON.stringify(owners.map(owner => [owner.intent.attemptId, owner.intent.authorityId, owner.cones, owner.uuids,
|
|
238
|
+
owner.physical]).sort((a, b) => JSON.stringify(a).localeCompare(JSON.stringify(b))));
|
|
231
239
|
}
|
|
232
240
|
//# sourceMappingURL=apply-ownership.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"apply-ownership.js","sourceRoot":"","sources":["../../src/detection/apply-ownership.ts"],"names":[],"mappings":"AAAA;;6DAE6D;AAC7D,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AACzC,OAAO,EAAE,SAAS,EAAoB,MAAM,SAAS,CAAC;AACtD,OAAO,EAAE,OAAO,EAAE,GAAG,EAAE,MAAM,WAAW,CAAC;AACzC,OAAO,EAAE,iBAAiB,EAA2C,MAAM,cAAc,CAAC;AAE1F,OAAO,EAAE,gBAAgB,EAAE,iBAAiB,EAAsB,MAAM,sBAAsB,CAAC;AAC/F,OAAO,EAAE,WAAW,EAAE,MAAM,wBAAwB,CAAC;AACrD,OAAO,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC;AAC/C,OAAO,EAAE,YAAY,EAAwB,MAAM,iBAAiB,CAAC;AAarE;;;;;yCAKyC;AACzC,MAAM,CAAC,MAAM,WAAW,GAAG,CAAC,IAAY,EAAE,WAAmB,EAAU,EAAE,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC,OAAO,CAAC,IAAI,CAAC,EAAE,WAAW,CAAC,CAAC,CAAC;AAsBvH;;oCAEoC;AACpC,MAAM,UAAU,aAAa,CAAC,MAAwC,EAAE,KAAc;IACpF,IAAI,MAAM,CAAC,MAAM,KAAK,CAAC;QAAE,OAAO,IAAI,CAAC;IACrC,OAAO,EAAE,IAAI,EAAE,YAAY,EAAE,MAAM,EAAE,KAAK,CAAC,CAAC,CAAC,iEAAiE;YAC5G,CAAC,CAAC,sDAAsD;QACxD,OAAO,EAAE,EAAE,QAAQ,EAAE,KAAK,CAA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1
|
+
/** A committed write is settled once it is visible: ground it moved is read
|
|
2
|
+
* again at once. Ground still moving names its own time, as a Git writer's
|
|
3
|
+
* lock does, or none. */
|
|
4
|
+
export declare const COMMITTED_SETTLES_IN_MS = 0;
|
|
1
5
|
/** The verified notebook, a Watch binding or a Git writer advanced while
|
|
2
6
|
* Detect was observing. The complete generation stays pending and re-reads
|
|
3
7
|
* fresh truth on its next ring. A basis that knows when it settles without
|
|
@@ -1,3 +1,8 @@
|
|
|
1
|
+
import { GroundBasisChangedError } from "../ground-basis.js";
|
|
2
|
+
/** A committed write is settled once it is visible: ground it moved is read
|
|
3
|
+
* again at once. Ground still moving names its own time, as a Git writer's
|
|
4
|
+
* lock does, or none. */
|
|
5
|
+
export const COMMITTED_SETTLES_IN_MS = 0;
|
|
1
6
|
/** The verified notebook, a Watch binding or a Git writer advanced while
|
|
2
7
|
* Detect was observing. The complete generation stays pending and re-reads
|
|
3
8
|
* fresh truth on its next ring. A basis that knows when it settles without
|
|
@@ -9,8 +14,12 @@ export class DetectionBasisAdvancedError extends Error {
|
|
|
9
14
|
this.settlesInMs = settlesInMs;
|
|
10
15
|
}
|
|
11
16
|
}
|
|
17
|
+
/** A ground fact changes only by commit, so a changed one is a basis that
|
|
18
|
+
* already settled. */
|
|
12
19
|
function advancedBasis(error) {
|
|
13
20
|
for (let link = error; link instanceof Error; link = link.cause) {
|
|
21
|
+
if (link instanceof GroundBasisChangedError)
|
|
22
|
+
return { settlesInMs: COMMITTED_SETTLES_IN_MS };
|
|
14
23
|
if (link instanceof DetectionBasisAdvancedError)
|
|
15
24
|
return link;
|
|
16
25
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"basis-advanced.js","sourceRoot":"","sources":["../../src/detection/basis-advanced.ts"],"names":[],"mappings":"AAAA;;;qEAGqE;AACrE,MAAM,OAAO,2BAA4B,SAAQ,KAAK;IAGzC;IAFX,YACE,OAAO,GAAG,iFAAiF,EAClF,cAA6B,IAAI;QAE1C,K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