@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,46 +1,24 @@
|
|
|
1
|
+
import { DERIVED_PAYLOAD } from "@amalgm/live";
|
|
1
2
|
import { cachedStatement } from "./sqlite.js";
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
CREATE TABLE ground_differences (
|
|
22
|
-
root_uuid TEXT NOT NULL, uuid TEXT NOT NULL, PRIMARY KEY(root_uuid, uuid)
|
|
23
|
-
) WITHOUT ROWID;
|
|
24
|
-
CREATE INDEX ground_differences_by_uuid ON ground_differences(uuid);
|
|
25
|
-
INSERT INTO ground_differences(root_uuid, uuid) SELECT root_uuid, uuid FROM ground_disagreements;`))();
|
|
26
|
-
}
|
|
27
|
-
/** Inside the batch that wrote these transitions, after its last row write:
|
|
28
|
-
* each identity whose compared fields changed is stated again from the view,
|
|
29
|
-
* whose per-identity read is a few key lookups. */
|
|
30
|
-
export function restateGroundDifferences(database, transitions) {
|
|
31
|
-
const touched = new Set();
|
|
32
|
-
for (const { before, after } of transitions) {
|
|
33
|
-
if (!before || !after || COMPARED.some(field => before[field] !== after[field]))
|
|
34
|
-
touched.add((after ?? before).uuid);
|
|
35
|
-
}
|
|
36
|
-
if (!touched.size)
|
|
37
|
-
return;
|
|
38
|
-
const forget = cachedStatement(database, "DELETE FROM ground_differences WHERE uuid = ?");
|
|
39
|
-
const state = cachedStatement(database, "INSERT INTO ground_differences(root_uuid, uuid) SELECT root_uuid, uuid FROM ground_disagreements WHERE uuid = ?");
|
|
40
|
-
for (const uuid of touched) {
|
|
41
|
-
forget.run(uuid);
|
|
42
|
-
state.run(uuid);
|
|
43
|
-
}
|
|
3
|
+
export const DIFFERENCES_SCHEMA = `
|
|
4
|
+
CREATE TABLE ground_differences (
|
|
5
|
+
root_uuid TEXT NOT NULL, uuid TEXT NOT NULL, PRIMARY KEY(root_uuid, uuid)
|
|
6
|
+
) WITHOUT ROWID;
|
|
7
|
+
CREATE INDEX ground_differences_by_uuid ON ground_differences(uuid);`;
|
|
8
|
+
/** O and B place an identity alike in O's root. */
|
|
9
|
+
export const placedAlike = (o, b) => b !== undefined
|
|
10
|
+
&& b.rootUUID === o.rootUUID && b.type === o.type && b.parentUUID === o.parentUUID && b.name === o.name
|
|
11
|
+
&& b.status === o.status && b.relativePath === o.relativePath && (DERIVED_PAYLOAD.has(o.type) || b.version === o.version);
|
|
12
|
+
/** One identity's differences, stated from its current rows and whether its
|
|
13
|
+
* B row reaches. An identity lies once in each inventory, so its two arms
|
|
14
|
+
* never name one pair. */
|
|
15
|
+
export function stateDifference(database, uuid, o, b, reached) {
|
|
16
|
+
cachedStatement(database, "DELETE FROM ground_differences WHERE uuid = ?").run(uuid);
|
|
17
|
+
const differ = cachedStatement(database, "INSERT INTO ground_differences(root_uuid, uuid) VALUES (?, ?)");
|
|
18
|
+
if (o && !placedAlike(o, b))
|
|
19
|
+
differ.run(o.rootUUID, uuid);
|
|
20
|
+
if (b && reached)
|
|
21
|
+
differ.run(b.rootUUID, uuid);
|
|
44
22
|
}
|
|
45
23
|
/** Every identity O and B hold differently in this root. */
|
|
46
24
|
export const groundDifferences = (database, rootUUID) => cachedStatement(database, "SELECT uuid FROM ground_differences WHERE root_uuid = ?").pluck().all(rootUUID);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ground-differences.js","sourceRoot":"","sources":["../src/ground-differences.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ground-differences.js","sourceRoot":"","sources":["../src/ground-differences.ts"],"names":[],"mappings":"AAcA,OAAO,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC;AAE/C,OAAO,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;AAE9C,MAAM,CAAC,MAAM,kBAAkB,GAAG;;;;uEAIqC,CAAC;AAExE,mDAAmD;AACnD,MAAM,CAAC,MAAM,WAAW,GAAG,CAAC,CAAY,EAAE,CAAwB,EAAW,EAAE,CAAC,CAAC,KAAK,SAAS;OAC1F,CAAC,CAAC,QAAQ,KAAK,CAAC,CAAC,QAAQ,IAAI,CAAC,CAAC,IAAI,KAAK,CAAC,CAAC,IAAI,IAAI,CAAC,CAAC,UAAU,KAAK,CAAC,CAAC,UAAU,IAAI,CAAC,CAAC,IAAI,KAAK,CAAC,CAAC,IAAI;OACpG,CAAC,CAAC,MAAM,KAAK,CAAC,CAAC,MAAM,IAAI,CAAC,CAAC,YAAY,KAAK,CAAC,CAAC,YAAY,IAAI,CAAC,eAAe,CAAC,GAAG,CAAC,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,OAAO,KAAK,CAAC,CAAC,OAAO,CAAC,CAAC;AAE5H;;0BAE0B;AAC1B,MAAM,UAAU,eAAe,CAAC,QAA2B,EAAE,IAAY,EAAE,CAAwB,EACjG,CAAwB,EAAE,OAAgB;IAC1C,eAAe,CAAC,QAAQ,EAAE,+CAA+C,CAAC,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC;IACrF,MAAM,MAAM,GAAG,eAAe,CAAC,QAAQ,EAAE,+DAA+D,CAAC,CAAC;IAC1G,IAAI,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC,EAAE,CAAC,CAAC;QAAE,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,QAAQ,EAAE,IAAI,CAAC,CAAC;IAC1D,IAAI,CAAC,IAAI,OAAO;QAAE,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,QAAQ,EAAE,IAAI,CAAC,CAAC;AACjD,CAAC;AAED,4DAA4D;AAC5D,MAAM,CAAC,MAAM,iBAAiB,GAAG,CAAC,QAA2B,EAAE,QAAgB,EAAY,EAAE,CAC3F,eAAe,CAAC,QAAQ,EAAE,yDAAyD,CAAC,CAAC,KAAK,EAAE,CAAC,GAAG,CAAC,QAAQ,CAAa,CAAC"}
|
|
@@ -7,6 +7,9 @@ export interface GroundMigration {
|
|
|
7
7
|
readonly entities: number;
|
|
8
8
|
readonly notebook: number;
|
|
9
9
|
readonly roots: number;
|
|
10
|
+
/** Where an earlier contract's ground file now stands, set aside before
|
|
11
|
+
* this one began fresh (ground-contract.ts); null when none was. */
|
|
12
|
+
readonly earlierKeptAt: string | null;
|
|
10
13
|
/** Open, migration body, commits and epoch, on the bootstrap thread. */
|
|
11
14
|
readonly migrationMs: number;
|
|
12
15
|
/** The conversion's exact-contents check, inside its transaction. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ground-initialization.js","sourceRoot":"","sources":["../src/ground-initialization.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AACH,OAAO,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;AACnC,OAAO,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAClD,OAAO,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAC;AACpD,OAAO,EAAE,gBAAgB,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAC;
|
|
1
|
+
{"version":3,"file":"ground-initialization.js","sourceRoot":"","sources":["../src/ground-initialization.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AACH,OAAO,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;AACnC,OAAO,EAAE,YAAY,EAAE,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,CAAC;QACrF,IAAI,WAAW,KAAK,SAAS,CAAC,WAAW,IAAI,KAAK,KAAK,CAAC,EAAE,CAAC;YACzD,MAAM,IAAI,KAAK,CAAC,0EAA0E,CAAC,CAAC;QAC9F,CAAC;IACH,CAAC;YAAS,CAAC;QAAC,QAAQ,CAAC,KAAK,EAAE,CAAC;IAAC,CAAC;IAC/B,WAAW,CAAC,GAAG,CAAC,IAAI,EAAE,QAAQ,CAAC,IAAI,CAAE,CAAC,CAAC;AACzC,CAAC"}
|
|
@@ -1,8 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Installation's writes, run only by the ground file's saver thread
|
|
3
|
+
* (ground-saver.ts): rows an install or direct persist projects, what a
|
|
4
|
+
* placement puts in core ground and its parents' membership, the refreshed
|
|
5
|
+
* fingerprints of revealed members, a root's retired rows, one Add's intent,
|
|
6
|
+
* and the end of a login placement's pin. The main thread derives every
|
|
7
|
+
* row and closes every physical witness before it posts.
|
|
8
|
+
*/
|
|
1
9
|
import type Database from "better-sqlite3";
|
|
2
|
-
import { type
|
|
3
|
-
import type { RepositoryObservationPair } from "./git-repository-host.js";
|
|
10
|
+
import { type InstallMaterialization } from "./apply-window-saves.js";
|
|
4
11
|
import type { GroundRow } from "./ground-row.js";
|
|
5
|
-
import type
|
|
12
|
+
import { type SourceFingerprint } from "./source-signature.js";
|
|
6
13
|
/** Who this ground file belongs to. */
|
|
7
14
|
export interface GroundOwner {
|
|
8
15
|
readonly userId: string;
|
|
@@ -18,29 +25,59 @@ export interface InstalledRows {
|
|
|
18
25
|
readonly observed: readonly GroundRow[];
|
|
19
26
|
readonly shared: readonly GroundRow[] | null;
|
|
20
27
|
};
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
28
|
+
/** Rows held before, each with the root and authority it was held under;
|
|
29
|
+
* each one an inventory's new rows no longer name leaves that inventory. */
|
|
30
|
+
readonly previous: readonly Pick<GroundRow, "uuid" | "rootUUID" | "resourceId">[];
|
|
31
|
+
/** A verified install (root-install.ts): its Apply history commits with
|
|
32
|
+
* its rows (apply-window-saves.ts). */
|
|
33
|
+
readonly verified?: VerifiedInstall;
|
|
34
|
+
}
|
|
35
|
+
/** What one install verified. Every observed row is an installed entity
|
|
36
|
+
* except the occupied ones: a member whose slot an occupant already held
|
|
37
|
+
* enters nowhere, so it claims no materialization and its history stays owed. */
|
|
38
|
+
export interface VerifiedInstall extends Omit<InstallMaterialization, "installed"> {
|
|
39
|
+
readonly occupied: readonly string[];
|
|
40
|
+
/** A login placement takes its watermark as this ground's place and pins
|
|
41
|
+
* its exact graph until Watch covers the reveal. Before this commit it pins
|
|
42
|
+
* nothing: no effect is worth resuming, and a pin crossing a restart could
|
|
43
|
+
* fall below the next session's history floor. */
|
|
44
|
+
readonly joins?: {
|
|
45
|
+
readonly pinnedJson: string;
|
|
46
|
+
};
|
|
47
|
+
/** On a computer whose drive serves it, the root this install marks as
|
|
48
|
+
* served on demand (on-demand-roots.ts): the home a login placed, or a
|
|
49
|
+
* workspace root the fetch lane entered. A root installed without a drive
|
|
50
|
+
* is never marked, and a mark is never removed, so an install resumed after
|
|
51
|
+
* its rows were saved finds its root already marked. */
|
|
52
|
+
readonly onDemandRoot?: string;
|
|
26
53
|
}
|
|
27
54
|
/** `install.rows`. */
|
|
28
55
|
export declare function installRows(database: Database.Database, input: InstalledRows): void;
|
|
29
|
-
/**
|
|
30
|
-
*
|
|
31
|
-
|
|
32
|
-
export declare function installReferences(database: Database.Database, input: {
|
|
56
|
+
/** What one placement put in core ground (reference-placement.ts): the
|
|
57
|
+
* accepted references it rendered. */
|
|
58
|
+
export interface Placement {
|
|
33
59
|
readonly owner: GroundOwner;
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
/**
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
60
|
+
/** Rows now standing on disk: observed and shared alike. */
|
|
61
|
+
readonly placed: readonly GroundRow[];
|
|
62
|
+
/** The accepted prefix the placed records fold. */
|
|
63
|
+
readonly materialization: Omit<InstallMaterialization, "installed" | "absent">;
|
|
64
|
+
}
|
|
65
|
+
/** `install.placement`: placed rows, their parents' derived membership
|
|
66
|
+
* (detection/container-membership.ts), and the Apply history they discharge. */
|
|
67
|
+
export declare function installPlacement(database: Database.Database, input: Placement): void;
|
|
68
|
+
/** One revealed member and what its standing object's stat now says. */
|
|
69
|
+
export interface RevealedMember {
|
|
70
|
+
readonly uuid: string;
|
|
42
71
|
readonly absolutePath: string;
|
|
43
72
|
readonly fingerprint: SourceFingerprint;
|
|
73
|
+
}
|
|
74
|
+
/** `install.refreshRevealed`: a reveal moves members without changing their
|
|
75
|
+
* identity or bytes, but a move may advance a member's ctime or link count,
|
|
76
|
+
* and a merge leaves a member's row naming the directory that already stood
|
|
77
|
+
* there. Each member's one derived fingerprint is refreshed before Watch can
|
|
78
|
+
* observe the committed graph. */
|
|
79
|
+
export declare function refreshRevealed(database: Database.Database, input: {
|
|
80
|
+
readonly members: readonly RevealedMember[];
|
|
44
81
|
}): void;
|
|
45
82
|
/** `install.clearRoot`: every row one root holds, in both inventories. */
|
|
46
83
|
export declare function clearRoot(database: Database.Database, input: {
|
|
@@ -61,3 +98,7 @@ export declare function beginAddIntent(database: Database.Database, proposed: Ad
|
|
|
61
98
|
};
|
|
62
99
|
/** `add.clearIntent`. */
|
|
63
100
|
export declare function clearAddIntent(database: Database.Database, workspaceId: string): void;
|
|
101
|
+
/** `install.clearCore`: Watch covers a login placement's reveal. */
|
|
102
|
+
export declare function clearCoreInstall(database: Database.Database, input: {
|
|
103
|
+
readonly authorityId: string;
|
|
104
|
+
}): void;
|
|
@@ -1,17 +1,9 @@
|
|
|
1
|
-
|
|
2
|
-
* Installation's writes, run only by the ground file's saver thread
|
|
3
|
-
* (ground-saver.ts): rows a login install, direct persist or Add reveal
|
|
4
|
-
* projects, the references Add renders and their parents' membership, the
|
|
5
|
-
* revealed root's refreshed fingerprint, a root's retired rows, and the Add
|
|
6
|
-
* intent that journals one Add. The main thread derives every row and closes
|
|
7
|
-
* every physical witness before it posts.
|
|
8
|
-
*/
|
|
9
|
-
import { createHash } from "node:crypto";
|
|
10
|
-
import { canonicalVersion, membershipHash } from "@amalgm/live";
|
|
11
|
-
import { installRepositorySeal } from "./detection/seal-law.js";
|
|
1
|
+
import { recordInstallMaterialization } from "./apply-window-saves.js";
|
|
12
2
|
import { groundStore } from "./ground-store.js";
|
|
3
|
+
import { isOnDemandRoot, markOnDemandRoot } from "./on-demand-roots.js";
|
|
4
|
+
import { adoptSnapshotDeliveryBaseline } from "./snapshot-delivery-baseline.js";
|
|
5
|
+
import { shownMode } from "./source-signature.js";
|
|
13
6
|
import { cachedStatement } from "./sqlite.js";
|
|
14
|
-
const sha256Hex = (input) => createHash("sha256").update(input).digest("hex");
|
|
15
7
|
function writeOwner(database, owner) {
|
|
16
8
|
cachedStatement(database, `
|
|
17
9
|
INSERT INTO ground_identity(singleton, user_id, user_email, device_id)
|
|
@@ -26,15 +18,13 @@ function writeOwner(database, owner) {
|
|
|
26
18
|
export function installRows(database, input) {
|
|
27
19
|
groundStore(database).write(writer => {
|
|
28
20
|
writeOwner(database, input.owner);
|
|
29
|
-
for (const pair of input.repositoryObservations)
|
|
30
|
-
writer.observeRepository(pair);
|
|
31
21
|
const replace = (inventory, rows) => {
|
|
32
22
|
const current = new Set(rows.map(row => row.uuid));
|
|
33
23
|
for (const old of input.previous) {
|
|
34
24
|
if (current.has(old.uuid))
|
|
35
25
|
continue;
|
|
36
26
|
const held = writer.get(inventory, old.uuid);
|
|
37
|
-
if (held?.resourceId ===
|
|
27
|
+
if (held?.resourceId === old.resourceId && held.rootUUID === old.rootUUID)
|
|
38
28
|
writer.remove(inventory, old.uuid);
|
|
39
29
|
}
|
|
40
30
|
if (inventory === "entities")
|
|
@@ -45,53 +35,63 @@ export function installRows(database, input) {
|
|
|
45
35
|
replace("entities", input.rows.observed);
|
|
46
36
|
if (input.rows.shared)
|
|
47
37
|
replace("detection_notebook", input.rows.shared);
|
|
48
|
-
for (const seal of input.seals)
|
|
49
|
-
installRepositorySeal(database, seal);
|
|
50
38
|
});
|
|
39
|
+
if (input.verified) {
|
|
40
|
+
const { occupied, joins, onDemandRoot, ...verified } = input.verified;
|
|
41
|
+
const unclaimed = new Set(occupied);
|
|
42
|
+
recordInstallMaterialization(database, { ...verified, installed: input.rows.observed
|
|
43
|
+
.flatMap(({ uuid, version }) => unclaimed.has(uuid) ? [] : [{ uuid, version }]) });
|
|
44
|
+
if (joins) {
|
|
45
|
+
adoptSnapshotDeliveryBaseline(database, { authorityId: verified.authorityId, deliverySequence: verified.watermark });
|
|
46
|
+
cachedStatement(database, "INSERT INTO core_install_intents(authority_id, intent_json) VALUES (?, ?)")
|
|
47
|
+
.run(verified.authorityId, joins.pinnedJson);
|
|
48
|
+
}
|
|
49
|
+
if (onDemandRoot !== undefined && !isOnDemandRoot(database, onDemandRoot)) {
|
|
50
|
+
markOnDemandRoot(database, { authorityId: verified.authorityId, rootUUID: onDemandRoot });
|
|
51
|
+
}
|
|
52
|
+
}
|
|
51
53
|
}
|
|
52
|
-
/** `install.
|
|
53
|
-
* membership.
|
|
54
|
-
|
|
55
|
-
|
|
54
|
+
/** `install.placement`: placed rows, their parents' derived membership
|
|
55
|
+
* (detection/container-membership.ts), and the Apply history they discharge. */
|
|
56
|
+
export function installPlacement(database, input) {
|
|
57
|
+
let installed = [];
|
|
56
58
|
groundStore(database).write(writer => {
|
|
57
59
|
writeOwner(database, input.owner);
|
|
58
|
-
writer.replace("entities", input.
|
|
59
|
-
writer.replace("detection_notebook", input.
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
if (!
|
|
64
|
-
throw new Error(`
|
|
65
|
-
const membership = membershipHash(cachedStatement(database, `SELECT uuid, name FROM ${inventory} WHERE parent_uuid = ? AND status = 'active'`)
|
|
66
|
-
.all(parentId), sha256Hex);
|
|
67
|
-
writer.update(inventory, parentId, {
|
|
68
|
-
version: canonicalVersion({
|
|
69
|
-
type: parent.type,
|
|
70
|
-
parentUUID: parent.parentUUID,
|
|
71
|
-
name: parent.name,
|
|
72
|
-
status: parent.status,
|
|
73
|
-
payloadVersion: membership,
|
|
74
|
-
}, sha256Hex),
|
|
75
|
-
}, inventory === "detection_notebook" ? "replace" : undefined);
|
|
60
|
+
writer.replace("entities", input.placed, []);
|
|
61
|
+
writer.replace("detection_notebook", input.placed, [], "replace");
|
|
62
|
+
const parents = new Set(input.placed.map(row => row.parentUUID));
|
|
63
|
+
for (const inventory of ["entities", "detection_notebook"]) {
|
|
64
|
+
for (const row of input.placed) {
|
|
65
|
+
if (!writer.get(inventory, row.parentUUID))
|
|
66
|
+
throw new Error(`placed parent ${row.parentUUID} left ${inventory}`);
|
|
76
67
|
}
|
|
68
|
+
writer.refreshMembership(inventory, parents);
|
|
77
69
|
}
|
|
70
|
+
installed = input.placed.map(({ uuid }) => ({ uuid, version: writer.get("entities", uuid).version }));
|
|
71
|
+
});
|
|
72
|
+
recordInstallMaterialization(database, {
|
|
73
|
+
...input.materialization, installed, absent: [],
|
|
78
74
|
});
|
|
79
75
|
}
|
|
80
|
-
/** `install.
|
|
81
|
-
* bytes but may advance
|
|
82
|
-
*
|
|
83
|
-
*
|
|
84
|
-
|
|
85
|
-
|
|
76
|
+
/** `install.refreshRevealed`: a reveal moves members without changing their
|
|
77
|
+
* identity or bytes, but a move may advance a member's ctime or link count,
|
|
78
|
+
* and a merge leaves a member's row naming the directory that already stood
|
|
79
|
+
* there. Each member's one derived fingerprint is refreshed before Watch can
|
|
80
|
+
* observe the committed graph. */
|
|
81
|
+
export function refreshRevealed(database, input) {
|
|
86
82
|
groundStore(database).write(writer => {
|
|
87
|
-
const
|
|
88
|
-
|
|
89
|
-
|
|
83
|
+
for (const { uuid, absolutePath, fingerprint } of input.members) {
|
|
84
|
+
const current = writer.get("entities", uuid);
|
|
85
|
+
if (!current || current.absolutePath !== absolutePath) {
|
|
86
|
+
throw new Error(`revealed member ${uuid} has no committed row at ${absolutePath}`);
|
|
87
|
+
}
|
|
88
|
+
// A move keeps the posture the staged row recorded (shownMode).
|
|
89
|
+
const shown = { ...fingerprint, filesystemMode: shownMode(fingerprint.filesystemMode, current.filesystemMode) };
|
|
90
|
+
writer.update("entities", uuid, shown);
|
|
91
|
+
const notebook = writer.get("detection_notebook", uuid);
|
|
92
|
+
if (notebook?.absolutePath === absolutePath)
|
|
93
|
+
writer.update("detection_notebook", uuid, shown, "retain-equivalent");
|
|
90
94
|
}
|
|
91
|
-
writer.update("entities", workspaceId, fingerprint);
|
|
92
|
-
const notebook = writer.get("detection_notebook", workspaceId);
|
|
93
|
-
if (notebook?.absolutePath === absolutePath)
|
|
94
|
-
writer.update("detection_notebook", workspaceId, fingerprint, "retain-equivalent");
|
|
95
95
|
});
|
|
96
96
|
}
|
|
97
97
|
/** `install.clearRoot`: every row one root holds, in both inventories. */
|
|
@@ -136,4 +136,8 @@ export function beginAddIntent(database, proposed) {
|
|
|
136
136
|
export function clearAddIntent(database, workspaceId) {
|
|
137
137
|
cachedStatement(database, "DELETE FROM workspace_add_intents WHERE workspace_uuid = ?").run(workspaceId);
|
|
138
138
|
}
|
|
139
|
+
/** `install.clearCore`: Watch covers a login placement's reveal. */
|
|
140
|
+
export function clearCoreInstall(database, input) {
|
|
141
|
+
cachedStatement(database, "DELETE FROM core_install_intents WHERE authority_id = ?").run(input.authorityId);
|
|
142
|
+
}
|
|
139
143
|
//# sourceMappingURL=ground-install-saves.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ground-install-saves.js","sourceRoot":"","sources":["../src/ground-install-saves.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ground-install-saves.js","sourceRoot":"","sources":["../src/ground-install-saves.ts"],"names":[],"mappings":"AAUA,OAAO,EAAE,4BAA4B,EAA+B,MAAM,yBAAyB,CAAC;AAEpG,OAAO,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAChD,OAAO,EA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O,EAAE,IAAI,EAAE,CAAC;IACtF,MAAM,QAAQ,GAAG,eAAe,CAAC,QAAQ,EACvC,sFAAsF,CAAC;SACtF,GAAG,CAAC,QAAQ,CAAC,WAAW,CAAuC,CAAC;IACnE,IAAI,CAAC,QAAQ;QAAE,MAAM,IAAI,KAAK,CAAC,wBAAwB,QAAQ,CAAC,WAAW,oBAAoB,CAAC,CAAC;IACjG,OAAO,EAAE,UAAU,EAAE,QAAQ,CAAC,UAAU,EAAE,OAAO,EAAE,KAAK,EAAE,CAAC;AAC7D,CAAC;AAED,yBAAyB;AACzB,MAAM,UAAU,cAAc,CAAC,QAA2B,EAAE,WAAmB;IAC7E,eAAe,CAAC,QAAQ,EAAE,4DAA4D,CAAC,CAAC,GAAG,CAAC,WAAW,CAAC,CAAC;AAC3G,CAAC;AAED,oEAAoE;AACpE,MAAM,UAAU,gBAAgB,CAAC,QAA2B,EAAE,KAAuC;IACnG,eAAe,CAAC,QAAQ,EAAE,yDAAyD,CAAC,CAAC,GAAG,CAAC,KAAK,CAAC,WAAW,CAAC,CAAC;AAC9G,CAAC"}
|
|
@@ -1,4 +1,44 @@
|
|
|
1
1
|
import type Database from "better-sqlite3";
|
|
2
|
+
/** A stored proof as its root's view shows it: only under the root's
|
|
3
|
+
* qualification, so a root that stores none shows none. */
|
|
4
|
+
export declare const shownProof: (column: string) => string;
|
|
5
|
+
/** The O rows one root's absences hide that hold these physical keys, each
|
|
6
|
+
* as the O view would show it with the absence that covers it: retained
|
|
7
|
+
* evidence (ground-store.ts), read only by a continuity question, and only
|
|
8
|
+
* where that question can be answered yes: a shown presence and no purge
|
|
9
|
+
* (an accepted 'deleted' in B). Its parameters are the keys as one JSON
|
|
10
|
+
* array and the root. The keys lead (CROSS JOIN fixes the order), so the
|
|
11
|
+
* physical-key index reads each key once and no other row is read. */
|
|
12
|
+
export declare const RETAINED_BY_KEY: string;
|
|
13
|
+
/** Every O row one absence hides, its top included, as the O view would show
|
|
14
|
+
* it once revealed, whether another stored row of its root holds its physical
|
|
15
|
+
* key (counted to two, never the whole alias set) and whether B purged it (an accepted 'deleted'): what a proved return
|
|
16
|
+
* claims (root-examination.ts). The absences are prefix-free, so the range
|
|
17
|
+
* `[top/, top0)` holds exactly the rows its top covers. Its parameters are
|
|
18
|
+
* the root, the top, and the range's bounds. */
|
|
19
|
+
export declare const RETURNED_RANGE: string;
|
|
20
|
+
/** A leaf that may have another name: active, its link count not one or never
|
|
21
|
+
* signed (alias-examination.ts). Its partial key and every read of it use this
|
|
22
|
+
* one text, so the planner sees each read imply the key and visits only such
|
|
23
|
+
* leaves, however many others a range stores. */
|
|
24
|
+
export declare const ALIASED_LEAF: string;
|
|
25
|
+
/** Every stored row of one root's visible generation beneath these parents,
|
|
26
|
+
* shown or hidden: what a lifted absence would show (ground-store.ts
|
|
27
|
+
* reveal). Its parameters are the parent UUIDs as one JSON array and the
|
|
28
|
+
* root; the parents lead, so the child key answers each without a row read. */
|
|
29
|
+
export declare const STORED_CHILDREN: string;
|
|
30
|
+
/** Every O row stored in its root's visible generation, shown or hidden, with
|
|
31
|
+
* the columns the O view gives it: what the ground's relations read
|
|
32
|
+
* (ground-relations.ts). */
|
|
33
|
+
export declare const STORED_ENTITIES: string;
|
|
34
|
+
/** Recovery (content-qualification.ts): evidence is eligible only within
|
|
35
|
+
* the boot that minted it. When the boot this file last opened in is not
|
|
36
|
+
* boot, or either is unknown, every root that stands under a qualification
|
|
37
|
+
* is revoked: it keeps its directory and stands under a fresh qualification
|
|
38
|
+
* of its profile with no floor and nothing aside, so none of its earlier
|
|
39
|
+
* evidence shows again. It runs at the one migration, before any basis.
|
|
40
|
+
* Returns how many roots it revoked. */
|
|
41
|
+
export declare function revokeAcrossRecovery(database: Database.Database, boot: string | null): number;
|
|
2
42
|
declare const SHAPES: {
|
|
3
43
|
readonly fresh: "-,-,-,-,-";
|
|
4
44
|
readonly flat: "table,table,-,-,-";
|
|
@@ -12,7 +52,7 @@ export interface InventoryMigration {
|
|
|
12
52
|
readonly keysBuilt: number;
|
|
13
53
|
}
|
|
14
54
|
/** Recognizes one of three coherent states and leaves the generation form
|
|
15
|
-
* with exactly the declared keys. Any other mixture of
|
|
16
|
-
* the open unchanged. */
|
|
55
|
+
* with exactly the declared tables, views and keys. Any other mixture of
|
|
56
|
+
* these objects fails the open unchanged. */
|
|
17
57
|
export declare function ensureInventorySchema(database: Database.Database): InventoryMigration;
|
|
18
58
|
export {};
|